Skip to content

iter_list_configuration_profiles async

iter_list_configuration_profiles(
    application_id: Name,
    *,
    config_overrides: Optional[AsyncAppConfigClientConfig] = None,
    max_results: Optional[MaxResults] = None,
    next_token: Optional[NextToken] = None,
    type: Optional[ConfigurationProfileType] = None,
) -> AsyncIterator[ConfigurationProfileSummary]
Source code in docs_src/capo_appconfig/_services/async_app_config.py
async def iter_list_configuration_profiles(
    self,
    application_id: "capo_appconfig.types.name.Name",
    *,
    config_overrides: Optional[AsyncAppConfigClientConfig] = None,
    max_results: Optional["capo_appconfig.types.max_results.MaxResults"] = None,
    next_token: Optional["capo_appconfig.types.next_token.NextToken"] = None,
    type: Optional[
        "capo_appconfig.types.configuration_profile_type.ConfigurationProfileType"
    ] = None,
) -> "AsyncIterator[capo_appconfig.types.configuration_profile_summary.ConfigurationProfileSummary]":
    _token = next_token
    while True:
        _response = await self.list_configuration_profiles(
            application_id,
            config_overrides=config_overrides,
            max_results=max_results,
            next_token=_token,
            type=type,
        )
        _page = _resolve_path(_response, ("items",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break