get_database
async
¶
get_database(
name: NameString,
*,
config_overrides: Optional[AsyncGlueClientConfig] = None,
catalog_id: Optional[CatalogIdString] = None,
) -> GetDatabaseResponse
Retrieves the definition of a specified database.
Parameters:
-
catalog_id(Optional[CatalogIdString], default:None) –The ID of the Data Catalog in which the database resides. If none is provided, the Amazon Web Services account ID is used by default.
-
name(NameString) –The name of the database to retrieve. For Hive compatibility, this should be all lowercase.
Raises:
-
EntityNotFoundException–A specified entity does not exist
-
FederationSourceException–A federation source failed.
-
FederationSourceRetryableException–A federation source failed, but the operation may be retried.
-
GlueEncryptionException–An encryption operation failed.
-
InternalServiceException–An internal service error occurred.
-
InvalidInputException–The input provided was not valid.
-
OperationTimeoutException–The operation timed out.
-
UnknownServiceError–The service returned an error code this client does not model.