async def iter_list_identity_pools(
self,
max_results: "capo_cognito_identity.types.query_limit.QueryLimit",
*,
config_overrides: Optional[AsyncCognitoIdentityClientConfig] = None,
next_token: Optional[
"capo_cognito_identity.types.pagination_key.PaginationKey"
] = None,
) -> "AsyncIterator[capo_cognito_identity.types.identity_pool_short_description.IdentityPoolShortDescription]":
_token = next_token
while True:
_response = await 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