Skip to content

iter_describe_account_limits async

iter_describe_account_limits(
    *,
    config_overrides: Optional[AsyncCloudFormationClientConfig] = None,
    next_token: Optional[NextToken] = None,
) -> AsyncIterator[AccountLimit]
Source code in docs_src/capo_cloudformation/_services/async_cloud_formation.py
async def iter_describe_account_limits(
    self,
    *,
    config_overrides: Optional[AsyncCloudFormationClientConfig] = None,
    next_token: Optional["capo_cloudformation.types.next_token.NextToken"] = None,
) -> "AsyncIterator[capo_cloudformation.types.account_limit.AccountLimit]":
    _token = next_token
    while True:
        _response = await self.describe_account_limits(
            config_overrides=config_overrides,
            next_token=_token,
        )
        _page = _resolve_path(_response, ("account_limits",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break