GlueClient.get_tables
rboto-glue==0.4.0 · Service index · Types
Model summary (excerpt): Retrieves the definitions of some or all of the tables in a given Database .
Install and imports
from rboto import GlueClient
from collections.abc import Sequence
from rboto_glue.types import (
AuditContext,
GetTablesOutput,
TableAttributes,
TableResourceShareType,
)
Signature
async def get_tables(
*,
database_name: str,
catalog_id: str | None = None,
expression: str | None = None,
next_token: str | None = None,
max_results: int | None = None,
transaction_id: str | None = None,
query_as_of_time: str | None = None,
audit_context: AuditContext | None = None,
resource_share_type: TableResourceShareType | None = None,
include_status_details: bool | None = None,
attributes_to_get: Sequence[TableAttributes] | None = None,
) -> GetTablesOutput: ...
Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.
Arguments
| Argument | Required | Model notes (excerpt) |
|---|---|---|
database_name |
Yes | The database in the catalog whose tables to list. For Hive compatibility, this name is entirely lowercase. |
catalog_id |
No | The ID of the Data Catalog where the tables reside. If none is provided, the Amazon Web Services account ID is used by default. |
expression |
No | A regular expression pattern. If present, only those tables whose names match the pattern are returned. |
next_token |
No | A continuation token, included if this is a continuation call. |
max_results |
No | The maximum number of tables to return in a single response. |
transaction_id |
No | The transaction ID at which to read the table contents. |
query_as_of_time |
No | 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 |
No | A structure containing the Lake Formation audit context . |
resource_share_type |
No | Specifies which tables the GetTables call returns. The allowable values are FEDERATED or ALL . 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 |
No | Specifies whether to include status details related to a request to create or update an Glue Data Catalog view. |
attributes_to_get |
No | Specifies the table fields returned by the GetTables call. This parameter doesn’t accept an empty list. The request must include NAME . 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. |
Output
GetTablesOutput.
Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.
| Field | Type | Presence | References |
|---|---|---|---|
table_list |
list[TableOutput] | None |
Always present | TableOutput |
next_token |
str | None |
Always present | — |
| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.
Related types
AuditContext, GetTablesOutput, TableAttributes, TableResourceShareType
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
client.paginators.get_tables(...) accepts the same arguments and returns AsyncIterator[GetTablesOutput]. Direct calls return one page. Pages preserve the Output representation above.
Input cursors: next_token. Page-size argument: max_results.
No output stream.
Errors
Import from rboto_glue.exceptions:
EntityNotFoundError, FederationSourceError, FederationSourceRetryableError, GlueEncryptionError, InternalServiceError, InvalidInputError, OperationTimeoutError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.