Skip to content

iter_list_identity_pools

iter_list_identity_pools(
    max_results: QueryLimit,
    *,
    config_overrides: Optional[CognitoIdentityClientConfig] = None,
    next_token: Optional[PaginationKey] = None,
) -> Iterator[IdentityPoolShortDescription]
Source code in docs_src/capo_cognito_identity/_services/cognito_identity.py
def iter_list_identity_pools(
    self,
    max_results: "capo_cognito_identity.types.query_limit.QueryLimit",
    *,
    config_overrides: Optional[CognitoIdentityClientConfig] = None,
    next_token: Optional[
        "capo_cognito_identity.types.pagination_key.PaginationKey"
    ] = None,
) -> "Iterator[capo_cognito_identity.types.identity_pool_short_description.IdentityPoolShortDescription]":
    _token = next_token
    while True:
        _response = self.list_identity_pools(
            max_results,
            config_overrides=config_overrides,
            next_token=_token,
        )
        _page = _resolve_path(_response, ("identity_pools",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break