async def iter_list_insights(
self,
status_filter: "capo_devops_guru.types.list_insights_status_filter.ListInsightsStatusFilter",
*,
config_overrides: Optional[AsyncDevOpsGuruClientConfig] = None,
max_results: Optional[
"capo_devops_guru.types.list_insights_max_results.ListInsightsMaxResults"
] = None,
next_token: Optional[
"capo_devops_guru.types.uuid_next_token.UuidNextToken"
] = None,
) -> "AsyncIterator[capo_devops_guru.types.list_insights_response.ListInsightsResponse]":
_token = next_token
while True:
_response = await self.list_insights(
status_filter,
config_overrides=config_overrides,
max_results=max_results,
next_token=_token,
)
yield _response
_token = _resolve_path(_response, ("next_token",))
if not _token:
break