list_databases
¶
list_databases(
catalog_name: CatalogNameString,
*,
config_overrides: Optional[AthenaClientConfig] = 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.