Skip to content

iter_list_identities async

iter_list_identities(
    *,
    config_overrides: Optional[AsyncSESClientConfig] = None,
    identity_type: Optional[IdentityType] = None,
    next_token: Optional[NextToken] = None,
    max_items: Optional[MaxItems] = None,
) -> AsyncIterator[Identity]
Source code in docs_src/capo_ses/_services/async_ses.py
async def iter_list_identities(
    self,
    *,
    config_overrides: Optional[AsyncSESClientConfig] = None,
    identity_type: Optional["capo_ses.types.identity_type.IdentityType"] = None,
    next_token: Optional["capo_ses.types.next_token.NextToken"] = None,
    max_items: Optional["capo_ses.types.max_items.MaxItems"] = None,
) -> "AsyncIterator[capo_ses.types.identity.Identity]":
    _token = next_token
    while True:
        _response = await self.list_identities(
            config_overrides=config_overrides,
            identity_type=identity_type,
            next_token=_token,
            max_items=max_items,
        )
        _page = _resolve_path(_response, ("identities",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break