def iter_list_profiles(
self,
*,
config_overrides: Optional[WellArchitectedClientConfig] = None,
profile_name_prefix: Optional[
"capo_wellarchitected.types.profile_name_prefix.ProfileNamePrefix"
] = None,
profile_owner_type: Optional[
"capo_wellarchitected.types.profile_owner_type.ProfileOwnerType"
] = None,
next_token: Optional["capo_wellarchitected.types.next_token.NextToken"] = None,
max_results: Optional[
"capo_wellarchitected.types.max_results.MaxResults"
] = None,
) -> "Iterator[capo_wellarchitected.types.list_profiles_output.ListProfilesOutput]":
_token = next_token
while True:
_response = self.list_profiles(
config_overrides=config_overrides,
profile_name_prefix=profile_name_prefix,
profile_owner_type=profile_owner_type,
next_token=_token,
max_results=max_results,
)
yield _response
_token = _resolve_path(_response, ("next_token",))
if not _token:
break