get_tables
async
¶
get_tables(
database_name: NameString,
*,
config_overrides: Optional[AsyncGlueClientConfig] = 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/async_glue.py
12613 12614 12615 12616 12617 12618 12619 12620 12621 12622 12623 12624 12625 12626 12627 12628 12629 12630 12631 12632 12633 12634 12635 12636 12637 12638 12639 12640 12641 12642 12643 12644 12645 12646 12647 12648 12649 12650 12651 12652 12653 12654 12655 12656 12657 12658 12659 12660 12661 12662 12663 12664 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674 12675 12676 12677 12678 12679 12680 12681 12682 12683 12684 12685 12686 12687 12688 12689 12690 12691 12692 12693 12694 12695 12696 12697 12698 12699 12700 12701 12702 12703 12704 12705 12706 12707 12708 12709 12710 12711 12712 12713 12714 12715 | |