async def iter_list_managed_insight_rules(
self,
*,
config_overrides: Optional[AsyncCloudWatchClientConfig] = None,
resource_arn: Optional[
"capo_cloudwatch.types.amazon_resource_name.AmazonResourceName"
] = None,
next_token: Optional["capo_cloudwatch.types.next_token.NextToken"] = None,
max_results: Optional[
"capo_cloudwatch.types.insight_rule_max_results.InsightRuleMaxResults"
] = None,
) -> "AsyncIterator[capo_cloudwatch.types.list_managed_insight_rules_output.ListManagedInsightRulesOutput]":
_token = next_token
while True:
_response = await self.list_managed_insight_rules(
config_overrides=config_overrides,
resource_arn=resource_arn,
next_token=_token,
max_results=max_results,
)
yield _response
_token = _resolve_path(_response, ("next_token",))
if not _token:
break