def iter_list_rules(
self,
*,
config_overrides: Optional[Route53RecoveryReadinessClientConfig] = None,
max_results: Optional[
"capo_route53_recovery_readiness.types.max_results.MaxResults"
] = None,
next_token: Optional[
"capo_route53_recovery_readiness.types.__string.__string"
] = None,
resource_type: Optional[
"capo_route53_recovery_readiness.types.__string.__string"
] = None,
) -> "Iterator[capo_route53_recovery_readiness.types.list_rules_output.ListRulesOutput]":
_token = next_token
while True:
_response = self.list_rules(
config_overrides=config_overrides,
max_results=max_results,
next_token=_token,
resource_type=resource_type,
)
_page = _resolve_path(_response, ("rules",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break