Skip to content

iter_list_profiles

iter_list_profiles(
    *,
    config_overrides: Optional[WellArchitectedClientConfig] = None,
    profile_name_prefix: Optional[ProfileNamePrefix] = None,
    profile_owner_type: Optional[ProfileOwnerType] = None,
    next_token: Optional[NextToken] = None,
    max_results: Optional[MaxResults] = None,
) -> Iterator[ListProfilesOutput]
Source code in docs_src/capo_wellarchitected/_services/well_architected.py
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