Skip to content

iter_describe_events async

iter_describe_events(
    *,
    config_overrides: Optional[AsyncHealthClientConfig] = None,
    filter: Optional[EventFilter] = None,
    next_token: Optional[nextToken] = None,
    max_results: Optional[maxResultsLowerRange] = None,
    locale: Optional[locale] = None,
) -> AsyncIterator[Event]
Source code in docs_src/capo_health/_services/async_health.py
async def iter_describe_events(
    self,
    *,
    config_overrides: Optional[AsyncHealthClientConfig] = None,
    filter: Optional["capo_health.types.event_filter.EventFilter"] = None,
    next_token: Optional["capo_health.types.next_token.nextToken"] = None,
    max_results: Optional[
        "capo_health.types.max_results_lower_range.maxResultsLowerRange"
    ] = None,
    locale: Optional["capo_health.types.locale.locale"] = None,
) -> "AsyncIterator[capo_health.types.event.Event]":
    _token = next_token
    while True:
        _response = await self.describe_events(
            config_overrides=config_overrides,
            filter=filter,
            next_token=_token,
            max_results=max_results,
            locale=locale,
        )
        _page = _resolve_path(_response, ("events",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break