Skip to content

iter_list_tables async

iter_list_tables(
    table_bucket_arn: TableBucketARN,
    *,
    config_overrides: Optional[AsyncS3TablesClientConfig] = None,
    namespace: Optional[NamespaceName] = None,
    prefix: Optional[str] = None,
    continuation_token: Optional[NextToken] = None,
    max_tables: Optional[ListTablesLimit] = None,
) -> AsyncIterator[TableSummary]
Source code in docs_src/capo_s3tables/_services/async_s3_tables.py
async def iter_list_tables(
    self,
    table_bucket_arn: "capo_s3tables.types.table_bucket_arn.TableBucketARN",
    *,
    config_overrides: Optional[AsyncS3TablesClientConfig] = None,
    namespace: Optional["capo_s3tables.types.namespace_name.NamespaceName"] = None,
    prefix: Optional[str] = None,
    continuation_token: Optional["capo_s3tables.types.next_token.NextToken"] = None,
    max_tables: Optional[
        "capo_s3tables.types.list_tables_limit.ListTablesLimit"
    ] = None,
) -> "AsyncIterator[capo_s3tables.types.table_summary.TableSummary]":
    _token = continuation_token
    while True:
        _response = await self.list_tables(
            table_bucket_arn,
            config_overrides=config_overrides,
            namespace=namespace,
            prefix=prefix,
            continuation_token=_token,
            max_tables=max_tables,
        )
        _page = _resolve_path(_response, ("tables",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("continuation_token",))
        if not _token:
            break