Skip to content

GlueClient.search_tables

rboto-glue==0.4.0 · Service index · Types

Model summary (excerpt): Searches a set of tables based on properties in the table metadata as well as on the parent database. You can search against text or filter conditions. You can only get tables that you have access to based on the security policies defined in Lake Formation. You need at least a read-only access to the table for it to be returned. If you do not have access to all the columns in the table, these...

Install and imports

python -m pip install "rboto[glue]==0.4.0"
from rboto import GlueClient
from collections.abc import Sequence
from rboto_glue.types import (
    PropertyPredicate,
    ResourceShareType,
    SearchTablesOutput,
    SortCriterion,
)

Signature

async def search_tables(
    *,
    catalog_id: str | None = None,
    next_token: str | None = None,
    filters: Sequence[PropertyPredicate] | None = None,
    search_text: str | None = None,
    sort_criteria: Sequence[SortCriterion] | None = None,
    max_results: int | None = None,
    resource_share_type: ResourceShareType | None = None,
    include_status_details: bool | None = None,
) -> SearchTablesOutput: ...

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)
catalog_id No A unique identifier, consisting of account_id .
next_token No A continuation token, included if this is a continuation call.
filters No A list of key-value pairs, and a comparator used to filter the search results. Returns all entities matching the predicate. The Comparator member of the PropertyPredicate struct is used only for time fields, and can be omitted for other field types. Also, when comparing string values, such as when Key=Name , a fuzzy match algorithm is used. The Key field (for example, the value of the Name...
search_text No A string used for a text search. Specifying a value in quotes filters based on an exact match to the value.
sort_criteria No A list of criteria for sorting the results by a field name, in an ascending or descending order.
max_results No The maximum number of tables to return in a single response.
resource_share_type No Allows you to specify that you want to search the tables shared with your account. The allowable values are FOREIGN or ALL . If set to FOREIGN , will search the tables shared with your account. If set to ALL , will search the tables shared with your account, as well as the tables in yor local account.
include_status_details No Specifies whether to include status details related to a request to create or update an Glue Data Catalog view.

Output

SearchTablesOutput.

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
next_token str | None Always present —
table_list list[TableOutput] | None Always present TableOutput

| 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.

PropertyPredicate, ResourceShareType, SearchTablesOutput, SortCriterion

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

client.paginators.search_tables(...) accepts the same arguments and returns AsyncIterator[SearchTablesOutput]. 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:

InternalServiceError, InvalidInputError, OperationTimeoutError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model