async def iter_search_vocabularies(
self,
instance_id: "capo_connect.types.instance_id.InstanceId",
*,
config_overrides: Optional[AsyncConnectClientConfig] = 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,
) -> "AsyncIterator[capo_connect.types.vocabulary_summary.VocabularySummary]":
_token = next_token
while True:
_response = await 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