Skip to content

iter_describe_event_aggregates

iter_describe_event_aggregates(
    aggregate_field: eventAggregateField,
    *,
    config_overrides: Optional[HealthClientConfig] = None,
    filter: Optional[EventFilter] = None,
    max_results: Optional[maxResults] = None,
    next_token: Optional[nextToken] = None,
) -> Iterator[EventAggregate]
Source code in docs_src/capo_health/_services/health.py
def iter_describe_event_aggregates(
    self,
    aggregate_field: "capo_health.types.event_aggregate_field.eventAggregateField",
    *,
    config_overrides: Optional[HealthClientConfig] = None,
    filter: Optional["capo_health.types.event_filter.EventFilter"] = None,
    max_results: Optional["capo_health.types.max_results.maxResults"] = None,
    next_token: Optional["capo_health.types.next_token.nextToken"] = None,
) -> "Iterator[capo_health.types.event_aggregate.EventAggregate]":
    _token = next_token
    while True:
        _response = self.describe_event_aggregates(
            aggregate_field,
            config_overrides=config_overrides,
            filter=filter,
            max_results=max_results,
            next_token=_token,
        )
        _page = _resolve_path(_response, ("event_aggregates",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break