Skip to content

iter_list_custom_actions

iter_list_custom_actions(
    *,
    config_overrides: Optional[chatbotClientConfig] = None,
    max_results: Optional[int] = None,
    next_token: Optional[str] = None,
) -> Iterator[CustomActionArn]
Source code in docs_src/capo_chatbot/_services/chatbot.py
def iter_list_custom_actions(
    self,
    *,
    config_overrides: Optional[chatbotClientConfig] = None,
    max_results: Optional[int] = None,
    next_token: Optional[str] = None,
) -> "Iterator[capo_chatbot.types.custom_action_arn.CustomActionArn]":
    _token = next_token
    while True:
        _response = self.list_custom_actions(
            config_overrides=config_overrides,
            max_results=max_results,
            next_token=_token,
        )
        _page = _resolve_path(_response, ("custom_actions",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break