Skip to content

iter_list_routing_rules

iter_list_routing_rules(
    domain_name: __string,
    *,
    config_overrides: Optional[ApiGatewayV2ClientConfig] = None,
    domain_name_id: Optional[__string] = None,
    max_results: Optional[MaxResults] = None,
    next_token: Optional[__string] = None,
) -> Iterator[RoutingRule]
Source code in docs_src/capo_apigatewayv2/_services/api_gateway_v2.py
def iter_list_routing_rules(
    self,
    domain_name: "capo_apigatewayv2.types.__string.__string",
    *,
    config_overrides: Optional[ApiGatewayV2ClientConfig] = None,
    domain_name_id: Optional["capo_apigatewayv2.types.__string.__string"] = None,
    max_results: Optional["capo_apigatewayv2.types.max_results.MaxResults"] = None,
    next_token: Optional["capo_apigatewayv2.types.__string.__string"] = None,
) -> "Iterator[capo_apigatewayv2.types.routing_rule.RoutingRule]":
    _token = next_token
    while True:
        _response = self.list_routing_rules(
            domain_name,
            config_overrides=config_overrides,
            domain_name_id=domain_name_id,
            max_results=max_results,
            next_token=_token,
        )
        _page = _resolve_path(_response, ("routing_rules",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break