Skip to content

iter_list_applications async

iter_list_applications(
    *,
    config_overrides: Optional[Asyncm2ClientConfig] = None,
    next_token: Optional[NextToken] = None,
    max_results: Optional[MaxResults] = None,
    names: Optional[EntityNameList] = None,
    environment_id: Optional[Identifier] = None,
) -> AsyncIterator[ApplicationSummary]
Source code in docs_src/capo_m2/_services/async_m2.py
async def iter_list_applications(
    self,
    *,
    config_overrides: Optional[Asyncm2ClientConfig] = None,
    next_token: Optional["capo_m2.types.next_token.NextToken"] = None,
    max_results: Optional["capo_m2.types.max_results.MaxResults"] = None,
    names: Optional["capo_m2.types.entity_name_list.EntityNameList"] = None,
    environment_id: Optional["capo_m2.types.identifier.Identifier"] = None,
) -> "AsyncIterator[capo_m2.types.application_summary.ApplicationSummary]":
    _token = next_token
    while True:
        _response = await self.list_applications(
            config_overrides=config_overrides,
            next_token=_token,
            max_results=max_results,
            names=names,
            environment_id=environment_id,
        )
        _page = _resolve_path(_response, ("applications",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break