Skip to content

iter_list_table_buckets async

iter_list_table_buckets(
    *,
    config_overrides: Optional[AsyncS3TablesClientConfig] = None,
    prefix: Optional[str] = None,
    continuation_token: Optional[NextToken] = None,
    max_buckets: Optional[ListTableBucketsLimit] = None,
    type: Optional[TableBucketType] = None,
) -> AsyncIterator[TableBucketSummary]
Source code in docs_src/capo_s3tables/_services/async_s3_tables.py
async def iter_list_table_buckets(
    self,
    *,
    config_overrides: Optional[AsyncS3TablesClientConfig] = None,
    prefix: Optional[str] = None,
    continuation_token: Optional["capo_s3tables.types.next_token.NextToken"] = None,
    max_buckets: Optional[
        "capo_s3tables.types.list_table_buckets_limit.ListTableBucketsLimit"
    ] = None,
    type: Optional["capo_s3tables.types.table_bucket_type.TableBucketType"] = None,
) -> "AsyncIterator[capo_s3tables.types.table_bucket_summary.TableBucketSummary]":
    _token = continuation_token
    while True:
        _response = await self.list_table_buckets(
            config_overrides=config_overrides,
            prefix=prefix,
            continuation_token=_token,
            max_buckets=max_buckets,
            type=type,
        )
        _page = _resolve_path(_response, ("table_buckets",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("continuation_token",))
        if not _token:
            break