def iter_list_voice_profile_domains(
self,
*,
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_profile_domains_response.ListVoiceProfileDomainsResponse]":
_token = next_token
while True:
_response = self.list_voice_profile_domains(
config_overrides=config_overrides,
next_token=_token,
max_results=max_results,
)
yield _response
_token = _resolve_path(_response, ("next_token",))
if not _token:
break