Skip to content

iter_search_vocabularies

iter_search_vocabularies(
    instance_id: InstanceId,
    *,
    config_overrides: Optional[ConnectClientConfig] = None,
    max_results: Optional[MaxResult100] = None,
    next_token: Optional[VocabularyNextToken] = None,
    state: Optional[VocabularyState] = None,
    name_starts_with: Optional[VocabularyName] = None,
    language_code: Optional[VocabularyLanguageCode] = None,
) -> Iterator[VocabularySummary]
Source code in docs_src/capo_connect/_services/connect.py
def iter_search_vocabularies(
    self,
    instance_id: "capo_connect.types.instance_id.InstanceId",
    *,
    config_overrides: Optional[ConnectClientConfig] = None,
    max_results: Optional["capo_connect.types.max_result100.MaxResult100"] = None,
    next_token: Optional[
        "capo_connect.types.vocabulary_next_token.VocabularyNextToken"
    ] = None,
    state: Optional["capo_connect.types.vocabulary_state.VocabularyState"] = None,
    name_starts_with: Optional[
        "capo_connect.types.vocabulary_name.VocabularyName"
    ] = None,
    language_code: Optional[
        "capo_connect.types.vocabulary_language_code.VocabularyLanguageCode"
    ] = None,
) -> "Iterator[capo_connect.types.vocabulary_summary.VocabularySummary]":
    _token = next_token
    while True:
        _response = self.search_vocabularies(
            instance_id,
            config_overrides=config_overrides,
            max_results=max_results,
            next_token=_token,
            state=state,
            name_starts_with=name_starts_with,
            language_code=language_code,
        )
        _page = _resolve_path(_response, ("vocabulary_summary_list",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break