Skip to content

iter_list_domains

iter_list_domains(
    *,
    config_overrides: Optional[VoiceIDClientConfig] = None,
    max_results: Optional[MaxResultsForListDomainFe] = None,
    next_token: Optional[NextToken] = None,
) -> Iterator[DomainSummary]
Source code in docs_src/capo_voice_id/_services/voice_id.py
def iter_list_domains(
    self,
    *,
    config_overrides: Optional[VoiceIDClientConfig] = None,
    max_results: Optional[
        "capo_voice_id.types.max_results_for_list_domain_fe.MaxResultsForListDomainFe"
    ] = None,
    next_token: Optional["capo_voice_id.types.next_token.NextToken"] = None,
) -> "Iterator[capo_voice_id.types.domain_summary.DomainSummary]":
    _token = next_token
    while True:
        _response = self.list_domains(
            config_overrides=config_overrides,
            max_results=max_results,
            next_token=_token,
        )
        _page = _resolve_path(_response, ("domain_summaries",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break