Skip to content

iter_list_health_checks async

iter_list_health_checks(
    *,
    config_overrides: Optional[AsyncRoute53ClientConfig] = None,
    marker: Optional[PageMarker] = None,
    max_items: Optional[int] = None,
) -> AsyncIterator[HealthCheck]
Source code in docs_src/capo_route_53/_services/async_route53.py
async def iter_list_health_checks(
    self,
    *,
    config_overrides: Optional[AsyncRoute53ClientConfig] = None,
    marker: Optional["capo_route_53.types.page_marker.PageMarker"] = None,
    max_items: Optional[int] = None,
) -> "AsyncIterator[capo_route_53.types.health_check.HealthCheck]":
    _token = marker
    while True:
        _response = await self.list_health_checks(
            config_overrides=config_overrides,
            marker=_token,
            max_items=max_items,
        )
        _page = _resolve_path(_response, ("health_checks",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_marker",))
        if not _token or not _resolve_path(_response, ("is_truncated",)):
            break