Skip to content

iter_list_chat_response_configurations async

iter_list_chat_response_configurations(
    application_id: ApplicationId,
    *,
    config_overrides: Optional[AsyncQBusinessClientConfig] = None,
    max_results: Optional[Integer] = None,
    next_token: Optional[NextToken] = None,
) -> AsyncIterator[ChatResponseConfiguration]
Source code in docs_src/capo_qbusiness/_services/async_q_business.py
async def iter_list_chat_response_configurations(
    self,
    application_id: "capo_qbusiness.types.application_id.ApplicationId",
    *,
    config_overrides: Optional[AsyncQBusinessClientConfig] = None,
    max_results: Optional["capo_qbusiness.types.integer.Integer"] = None,
    next_token: Optional["capo_qbusiness.types.next_token.NextToken"] = None,
) -> "AsyncIterator[capo_qbusiness.types.chat_response_configuration.ChatResponseConfiguration]":
    _token = next_token
    while True:
        _response = await self.list_chat_response_configurations(
            application_id,
            config_overrides=config_overrides,
            max_results=max_results,
            next_token=_token,
        )
        _page = _resolve_path(_response, ("chat_response_configurations",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break