list_databases
async
¶
list_databases(
catalog_name: CatalogNameString,
*,
config_overrides: Optional[AsyncAthenaClientConfig] = None,
next_token: Optional[Token] = None,
max_results: Optional[MaxDatabasesCount] = None,
work_group: Optional[WorkGroupName] = None,
) -> ListDatabasesOutput
Lists the databases in the specified data catalog.
Parameters:
-
catalog_name(CatalogNameString) –The name of the data catalog that contains the databases to return.
-
next_token(Optional[Token], default:None) –A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the
NextTokenfrom the response object of the previous page call. -
max_results(Optional[MaxDatabasesCount], default:None) –Specifies the maximum number of results to return.
-
work_group(Optional[WorkGroupName], default:None) –The name of the workgroup for which the metadata is being fetched. Required if requesting an IAM Identity Center enabled Glue Data Catalog.
Raises:
-
InternalServerException–Indicates a platform issue, which may be due to a transient condition or outage.
-
InvalidRequestException–Indicates that something is wrong with the input to the request. For example, a required parameter may be missing or out of range.
-
MetadataException–An exception that Athena received when it called a custom metastore. Occurs if the error is not caused by user input (
InvalidRequestException) or from the Athena platform (InternalServerException). For example, if a user-created Lambda function is missing permissions, the Lambda4XXexception is returned in aMetadataException. -
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_athena/_services/async_athena.py
2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 | |