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
11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006 12007 12008 12009 12010 12011 12012 12013 12014 12015 12016 12017 12018 12019 12020 12021 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037 12038 12039 12040 12041 12042 12043 12044 12045 12046 12047 12048 12049 12050 12051 12052 12053 12054 12055 12056 12057 12058 12059 12060 12061 12062 12063 12064 12065 12066 12067 12068 12069 12070 12071 12072 12073 12074 12075 12076 12077 12078 12079 | |