def iter_list_anomalies_for_insight(
self,
insight_id: "capo_devops_guru.types.insight_id.InsightId",
*,
config_overrides: Optional[DevOpsGuruClientConfig] = None,
start_time_range: Optional[
"capo_devops_guru.types.start_time_range.StartTimeRange"
] = None,
max_results: Optional[
"capo_devops_guru.types.list_anomalies_for_insight_max_results.ListAnomaliesForInsightMaxResults"
] = None,
next_token: Optional[
"capo_devops_guru.types.uuid_next_token.UuidNextToken"
] = None,
account_id: Optional[
"capo_devops_guru.types.aws_account_id.AwsAccountId"
] = None,
filters: Optional[
"capo_devops_guru.types.list_anomalies_for_insight_filters.ListAnomaliesForInsightFilters"
] = None,
) -> "Iterator[capo_devops_guru.types.list_anomalies_for_insight_response.ListAnomaliesForInsightResponse]":
_token = next_token
while True:
_response = self.list_anomalies_for_insight(
insight_id,
config_overrides=config_overrides,
start_time_range=start_time_range,
max_results=max_results,
next_token=_token,
account_id=account_id,
filters=filters,
)
yield _response
_token = _resolve_path(_response, ("next_token",))
if not _token:
break