Lists custom actions defined in this account.
Parameters:
-
max_results
(Optional[int], default:
None
)
–
The maximum number of results to include in the response. If more results exist than the specified MaxResults value, a token is included in the response so that the remaining results can be retrieved.
-
next_token
(Optional[str], default:
None
)
–
An optional token returned from a prior request. Use this token for pagination of results from this action. If this parameter is specified, the response includes only results beyond the token, up to the value specified by MaxResults.
Raises:
Examples:
List custom actions
>>> client.list_custom_actions()
Source code in docs_src/capo_chatbot/_services/chatbot.py
| def list_custom_actions(
self,
*,
config_overrides: Optional[chatbotClientConfig] = None,
max_results: Optional[int] = None,
next_token: Optional[str] = None,
) -> "capo_chatbot.types.list_custom_actions_result.ListCustomActionsResult":
"""<p>Lists custom actions defined in this account.</p>
Args:
max_results: <p>The maximum number of results to include in the response. If more results exist than the specified MaxResults value, a token is included in the response so that the remaining results can be retrieved.</p>
next_token: <p>An optional token returned from a prior request. Use this token for pagination of results from this action. If this parameter is specified, the response includes only results beyond the token, up to the value specified by MaxResults.</p>
Raises:
capo_chatbot.errors.internal_service_error.InternalServiceError: <p>Unexpected error during processing of request.</p>
capo_chatbot.errors.invalid_request_exception.InvalidRequestException: <p>Your request input doesn't meet the constraints required by AWS Chatbot.</p>
capo_chatbot.errors.unauthorized_exception.UnauthorizedException: <p>The request was rejected because it doesn't have valid credentials for the target resource.</p>
capo_chatbot.errors.UnknownServiceError: The service returned an error code this client does not model.
Examples:
List custom actions
>>> client.list_custom_actions()
"""
def _handler(
req: "OperationRequest[capo_chatbot.types.list_custom_actions_request.ListCustomActionsRequest]",
) -> OperationResponse[
"capo_chatbot.types.list_custom_actions_result.ListCustomActionsResult"
]:
import capo_chatbot._operations.wheatley_orchestration_20171011.list_custom_actions
output, http_response = (
capo_chatbot._operations.wheatley_orchestration_20171011.list_custom_actions.list_custom_actions(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ListCustomActions")
)
input_: capo_chatbot.types.list_custom_actions_request.ListCustomActionsRequest = {}
if max_results is not None:
input_["max_results"] = max_results
if next_token is not None:
input_["next_token"] = next_token
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|