Skip to content

iter_list_route53_health_checks_in_region

iter_list_route53_health_checks_in_region(
    arn: PlanArn,
    *,
    config_overrides: Optional[ARCRegionswitchClientConfig] = None,
    hosted_zone_id: Optional[Route53HostedZoneId] = None,
    record_name: Optional[Route53RecordName] = None,
    max_results: Optional[MaxResults] = None,
    next_token: Optional[NextToken] = None,
) -> Iterator[Route53HealthCheck]
Source code in docs_src/capo_arc_region_switch/_services/arc_regionswitch.py
def iter_list_route53_health_checks_in_region(
    self,
    arn: "capo_arc_region_switch.types.plan_arn.PlanArn",
    *,
    config_overrides: Optional[ARCRegionswitchClientConfig] = None,
    hosted_zone_id: Optional[
        "capo_arc_region_switch.types.route53_hosted_zone_id.Route53HostedZoneId"
    ] = None,
    record_name: Optional[
        "capo_arc_region_switch.types.route53_record_name.Route53RecordName"
    ] = None,
    max_results: Optional[
        "capo_arc_region_switch.types.max_results.MaxResults"
    ] = None,
    next_token: Optional[
        "capo_arc_region_switch.types.next_token.NextToken"
    ] = None,
) -> (
    "Iterator[capo_arc_region_switch.types.route53_health_check.Route53HealthCheck]"
):
    _token = next_token
    while True:
        _response = self.list_route53_health_checks_in_region(
            arn,
            config_overrides=config_overrides,
            hosted_zone_id=hosted_zone_id,
            record_name=record_name,
            max_results=max_results,
            next_token=_token,
        )
        _page = _resolve_path(_response, ("health_checks",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break