Skip to content

iter_list_applications async

iter_list_applications(
    *,
    config_overrides: Optional[AsyncQBusinessClientConfig] = None,
    next_token: Optional[NextToken] = None,
    max_results: Optional[MaxResultsIntegerForListApplications] = None,
) -> AsyncIterator[Application]
Source code in docs_src/capo_qbusiness/_services/async_q_business.py
async def iter_list_applications(
    self,
    *,
    config_overrides: Optional[AsyncQBusinessClientConfig] = None,
    next_token: Optional["capo_qbusiness.types.next_token.NextToken"] = None,
    max_results: Optional[
        "capo_qbusiness.types.max_results_integer_for_list_applications.MaxResultsIntegerForListApplications"
    ] = None,
) -> "AsyncIterator[capo_qbusiness.types.application.Application]":
    _token = next_token
    while True:
        _response = await self.list_applications(
            config_overrides=config_overrides,
            next_token=_token,
            max_results=max_results,
        )
        _page = _resolve_path(_response, ("applications",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break