get_tables
¶
get_tables(
database_name: NameString,
*,
config_overrides: Optional[GlueClientConfig] = None,
catalog_id: Optional[CatalogIdString] = None,
expression: Optional[FilterString] = None,
next_token: Optional[Token] = None,
max_results: Optional[CatalogGetterPageSize] = None,
transaction_id: Optional[TransactionIdString] = None,
query_as_of_time: Optional[Timestamp] = None,
audit_context: Optional[AuditContext] = None,
resource_share_type: Optional[TableResourceShareType] = None,
include_status_details: Optional[BooleanNullable] = None,
attributes_to_get: Optional[TableAttributesList] = None,
) -> GetTablesResponse
Retrieves the definitions of some or all of the tables in a given Database.
Parameters:
-
catalog_id(Optional[CatalogIdString], default:None) –The ID of the Data Catalog where the tables reside. If none is provided, the Amazon Web Services account ID is used by default.
-
database_name(NameString) –The database in the catalog whose tables to list. For Hive compatibility, this name is entirely lowercase.
-
expression(Optional[FilterString], default:None) –A regular expression pattern. If present, only those tables whose names match the pattern are returned.
-
next_token(Optional[Token], default:None) –A continuation token, included if this is a continuation call.
-
max_results(Optional[CatalogGetterPageSize], default:None) –The maximum number of tables to return in a single response.
-
transaction_id(Optional[TransactionIdString], default:None) –The transaction ID at which to read the table contents.
-
query_as_of_time(Optional[Timestamp], default:None) –The time as of when to read the table contents. If not set, the most recent transaction commit time will be used. Cannot be specified along with
TransactionId. -
audit_context(Optional[AuditContext], default:None) –A structure containing the Lake Formation audit context.
-
resource_share_type(Optional[TableResourceShareType], default:None) –Specifies which tables the
GetTablescall returns. The allowable values areFEDERATEDorALL.-
If set to
FEDERATED, returns only federated tables, which reference an entity outside the Glue Data Catalog. -
If set to
ALL, returns all tables in the database, both federated and non-federated.
-
-
include_status_details(Optional[BooleanNullable], default:None) –Specifies whether to include status details related to a request to create or update an Glue Data Catalog view.
-
attributes_to_get(Optional[TableAttributesList], default:None) –Specifies the table fields returned by the
GetTablescall. This parameter doesn’t accept an empty list. The request must includeNAME.The following are the valid combinations of values:
-
NAME- Names of all tables in the database. -
NAME,TABLE_TYPE- Names of all tables and the table types.
-
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/glue.py
12406 12407 12408 12409 12410 12411 12412 12413 12414 12415 12416 12417 12418 12419 12420 12421 12422 12423 12424 12425 12426 12427 12428 12429 12430 12431 12432 12433 12434 12435 12436 12437 12438 12439 12440 12441 12442 12443 12444 12445 12446 12447 12448 12449 12450 12451 12452 12453 12454 12455 12456 12457 12458 12459 12460 12461 12462 12463 12464 12465 12466 12467 12468 12469 12470 12471 12472 12473 12474 12475 12476 12477 12478 12479 12480 12481 12482 12483 12484 12485 12486 12487 12488 12489 12490 12491 12492 12493 12494 12495 12496 12497 12498 12499 12500 12501 12502 12503 12504 12505 | |