Skip to content

iter_select_aggregate_resource_config

iter_select_aggregate_resource_config(
    expression: Expression,
    configuration_aggregator_name: ConfigurationAggregatorName,
    *,
    config_overrides: Optional[ConfigServiceClientConfig] = None,
    limit: Optional[Limit] = None,
    max_results: Optional[Limit] = None,
    next_token: Optional[NextToken] = None,
) -> Iterator[String]
Source code in docs_src/capo_config_service/_services/config_service.py
def iter_select_aggregate_resource_config(
    self,
    expression: "capo_config_service.types.expression.Expression",
    configuration_aggregator_name: "capo_config_service.types.configuration_aggregator_name.ConfigurationAggregatorName",
    *,
    config_overrides: Optional[ConfigServiceClientConfig] = None,
    limit: Optional["capo_config_service.types.limit.Limit"] = None,
    max_results: Optional["capo_config_service.types.limit.Limit"] = None,
    next_token: Optional["capo_config_service.types.next_token.NextToken"] = None,
) -> "Iterator[capo_config_service.types.string.String]":
    _token = next_token
    while True:
        _response = self.select_aggregate_resource_config(
            expression,
            configuration_aggregator_name,
            config_overrides=config_overrides,
            limit=limit,
            max_results=max_results,
            next_token=_token,
        )
        _page = _resolve_path(_response, ("results",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break