Skip to content

iter_list_hosted_configuration_versions async

iter_list_hosted_configuration_versions(
    application_id: Name,
    configuration_profile_id: LongName,
    *,
    config_overrides: Optional[AsyncAppConfigClientConfig] = None,
    max_results: Optional[MaxResults] = None,
    next_token: Optional[NextToken] = None,
    version_label: Optional[QueryName] = None,
) -> AsyncIterator[HostedConfigurationVersionSummary]
Source code in docs_src/capo_appconfig/_services/async_app_config.py
async def iter_list_hosted_configuration_versions(
    self,
    application_id: "capo_appconfig.types.name.Name",
    configuration_profile_id: "capo_appconfig.types.long_name.LongName",
    *,
    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,
    version_label: Optional["capo_appconfig.types.query_name.QueryName"] = None,
) -> "AsyncIterator[capo_appconfig.types.hosted_configuration_version_summary.HostedConfigurationVersionSummary]":
    _token = next_token
    while True:
        _response = await self.list_hosted_configuration_versions(
            application_id,
            configuration_profile_id,
            config_overrides=config_overrides,
            max_results=max_results,
            next_token=_token,
            version_label=version_label,
        )
        _page = _resolve_path(_response, ("items",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break