get_databases
async
¶
get_databases(
*,
config_overrides: Optional[AsyncGlueClientConfig] = None,
catalog_id: Optional[CatalogIdString] = None,
next_token: Optional[Token] = None,
max_results: Optional[CatalogGetterPageSize] = None,
resource_share_type: Optional[ResourceShareType] = None,
attributes_to_get: Optional[DatabaseAttributesList] = None,
) -> GetDatabasesResponse
Retrieves all databases defined in a given Data Catalog.
Parameters:
-
catalog_id(Optional[CatalogIdString], default:None) –The ID of the Data Catalog from which to retrieve
Databases. If none is provided, the Amazon Web Services account ID is used by default. -
next_token(Optional[Token], default:None) –A continuation token, if this is a continuation call.
-
max_results(Optional[CatalogGetterPageSize], default:None) –The maximum number of databases to return in one response.
-
resource_share_type(Optional[ResourceShareType], default:None) –Allows you to specify that you want to list the databases shared with your account. The allowable values are
FEDERATED,FOREIGNorALL.-
If set to
FEDERATED, will list the federated databases (referencing an external entity) shared with your account. -
If set to
FOREIGN, will list the databases shared with your account. -
If set to
ALL, will list the databases shared with your account, as well as the databases in yor local account.
-
-
attributes_to_get(Optional[DatabaseAttributesList], default:None) –Specifies the database fields returned by the
GetDatabasescall. This parameter doesn’t accept an empty list. The request must include theNAME.
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.
Source code in docs_src/capo_glue/_services/async_glue.py
8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030 9031 9032 9033 9034 9035 9036 9037 9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052 9053 9054 9055 9056 9057 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070 9071 | |