Skip to content

iter_list_auto_scaling_configurations async

iter_list_auto_scaling_configurations(
    *,
    config_overrides: Optional[AsyncAppRunnerClientConfig] = None,
    auto_scaling_configuration_name: Optional[AutoScalingConfigurationName] = None,
    latest_only: Optional[Boolean] = None,
    max_results: Optional[MaxResults] = None,
    next_token: Optional[NextToken] = None,
) -> AsyncIterator[ListAutoScalingConfigurationsResponse]
Source code in docs_src/capo_apprunner/_services/async_app_runner.py
async def iter_list_auto_scaling_configurations(
    self,
    *,
    config_overrides: Optional[AsyncAppRunnerClientConfig] = None,
    auto_scaling_configuration_name: Optional[
        "capo_apprunner.types.auto_scaling_configuration_name.AutoScalingConfigurationName"
    ] = None,
    latest_only: Optional["capo_apprunner.types.boolean.Boolean"] = None,
    max_results: Optional["capo_apprunner.types.max_results.MaxResults"] = None,
    next_token: Optional["capo_apprunner.types.next_token.NextToken"] = None,
) -> "AsyncIterator[capo_apprunner.types.list_auto_scaling_configurations_response.ListAutoScalingConfigurationsResponse]":
    _token = next_token
    while True:
        _response = await self.list_auto_scaling_configurations(
            config_overrides=config_overrides,
            auto_scaling_configuration_name=auto_scaling_configuration_name,
            latest_only=latest_only,
            max_results=max_results,
            next_token=_token,
        )
        yield _response
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break