Skip to content

iter_get_partition_indexes async

iter_get_partition_indexes(
    database_name: NameString,
    table_name: NameString,
    *,
    config_overrides: Optional[AsyncGlueClientConfig] = None,
    catalog_id: Optional[CatalogIdString] = None,
    next_token: Optional[Token] = None,
) -> AsyncIterator[PartitionIndexDescriptor]
Source code in docs_src/capo_glue/_services/async_glue.py
async def iter_get_partition_indexes(
    self,
    database_name: "capo_glue.types.name_string.NameString",
    table_name: "capo_glue.types.name_string.NameString",
    *,
    config_overrides: Optional[AsyncGlueClientConfig] = None,
    catalog_id: Optional[
        "capo_glue.types.catalog_id_string.CatalogIdString"
    ] = None,
    next_token: Optional["capo_glue.types.token.Token"] = None,
) -> "AsyncIterator[capo_glue.types.partition_index_descriptor.PartitionIndexDescriptor]":
    _token = next_token
    while True:
        _response = await self.get_partition_indexes(
            database_name,
            table_name,
            config_overrides=config_overrides,
            catalog_id=catalog_id,
            next_token=_token,
        )
        _page = _resolve_path(_response, ("partition_index_descriptor_list",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break