async def iter_search_organization_insights(
self,
account_ids: "capo_devops_guru.types.search_insights_account_id_list.SearchInsightsAccountIdList",
start_time_range: "capo_devops_guru.types.start_time_range.StartTimeRange",
type: "capo_devops_guru.types.insight_type.InsightType",
*,
config_overrides: Optional[AsyncDevOpsGuruClientConfig] = None,
filters: Optional[
"capo_devops_guru.types.search_organization_insights_filters.SearchOrganizationInsightsFilters"
] = None,
max_results: Optional[
"capo_devops_guru.types.search_organization_insights_max_results.SearchOrganizationInsightsMaxResults"
] = None,
next_token: Optional[
"capo_devops_guru.types.uuid_next_token.UuidNextToken"
] = None,
) -> "AsyncIterator[capo_devops_guru.types.search_organization_insights_response.SearchOrganizationInsightsResponse]":
_token = next_token
while True:
_response = await self.search_organization_insights(
account_ids,
start_time_range,
type,
config_overrides=config_overrides,
filters=filters,
max_results=max_results,
next_token=_token,
)
yield _response
_token = _resolve_path(_response, ("next_token",))
if not _token:
break