def iter_describe_insight_rules(
self,
*,
config_overrides: Optional[CloudWatchClientConfig] = None,
next_token: Optional["capo_cloudwatch.types.next_token.NextToken"] = None,
max_results: Optional[
"capo_cloudwatch.types.insight_rule_max_results.InsightRuleMaxResults"
] = None,
) -> "Iterator[capo_cloudwatch.types.describe_insight_rules_output.DescribeInsightRulesOutput]":
_token = next_token
while True:
_response = self.describe_insight_rules(
config_overrides=config_overrides,
next_token=_token,
max_results=max_results,
)
yield _response
_token = _resolve_path(_response, ("next_token",))
if not _token:
break