Skip to content

iter_list_voice_profiles

iter_list_voice_profiles(
    voice_profile_domain_id: NonEmptyString256,
    *,
    config_overrides: Optional[ChimeSDKVoiceClientConfig] = None,
    next_token: Optional[String] = None,
    max_results: Optional[ResultMax] = None,
) -> Iterator[ListVoiceProfilesResponse]
Source code in docs_src/capo_chime_sdk_voice/_services/chime_sdk_voice.py
def iter_list_voice_profiles(
    self,
    voice_profile_domain_id: "capo_chime_sdk_voice.types.non_empty_string256.NonEmptyString256",
    *,
    config_overrides: Optional[ChimeSDKVoiceClientConfig] = None,
    next_token: Optional["capo_chime_sdk_voice.types.string.String"] = None,
    max_results: Optional["capo_chime_sdk_voice.types.result_max.ResultMax"] = None,
) -> "Iterator[capo_chime_sdk_voice.types.list_voice_profiles_response.ListVoiceProfilesResponse]":
    _token = next_token
    while True:
        _response = self.list_voice_profiles(
            voice_profile_domain_id,
            config_overrides=config_overrides,
            next_token=_token,
            max_results=max_results,
        )
        yield _response
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break