def iter_describe_organization_resource_collection_health(
self,
organization_resource_collection_type: "capo_devops_guru.types.organization_resource_collection_type.OrganizationResourceCollectionType",
*,
config_overrides: Optional[DevOpsGuruClientConfig] = None,
account_ids: Optional[
"capo_devops_guru.types.account_id_list.AccountIdList"
] = None,
organizational_unit_ids: Optional[
"capo_devops_guru.types.organizational_unit_id_list.OrganizationalUnitIdList"
] = None,
next_token: Optional[
"capo_devops_guru.types.uuid_next_token.UuidNextToken"
] = None,
max_results: Optional[
"capo_devops_guru.types.organization_resource_collection_max_results.OrganizationResourceCollectionMaxResults"
] = None,
) -> "Iterator[capo_devops_guru.types.describe_organization_resource_collection_health_response.DescribeOrganizationResourceCollectionHealthResponse]":
_token = next_token
while True:
_response = self.describe_organization_resource_collection_health(
organization_resource_collection_type,
config_overrides=config_overrides,
account_ids=account_ids,
organizational_unit_ids=organizational_unit_ids,
next_token=_token,
max_results=max_results,
)
yield _response
_token = _resolve_path(_response, ("next_token",))
if not _token:
break