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
9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 | |