async def iter_list_organization_enrollment_configurations(
self,
*,
config_overrides: Optional[AsyncComputeOptimizerAutomationClientConfig] = None,
target_type: Optional[
"capo_compute_optimizer_automation.types.organization_target_type.OrganizationTargetType"
] = None,
max_results: Optional[int] = None,
next_token: Optional[
"capo_compute_optimizer_automation.types.next_token.NextToken"
] = None,
) -> "AsyncIterator[capo_compute_optimizer_automation.types.organization_enrollment_configuration.OrganizationEnrollmentConfiguration]":
_token = next_token
while True:
_response = await self.list_organization_enrollment_configurations(
config_overrides=config_overrides,
target_type=target_type,
max_results=max_results,
next_token=_token,
)
_page = _resolve_path(
_response, ("organization_enrollment_configurations",)
)
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break