Skip to main content

custom_actions

Creates, updates, deletes or gets a custom_action resource or lists custom_actions in a region

Overview

Namecustom_actions
TypeResource
DescriptionDefinition of AWS::Chatbot::CustomAction Resource Type
Idaws.chatbot.custom_actions

Fields

NameDatatypeDescription
action_namestring
alias_namestring
attachmentsarray
custom_action_arnstring
definitionobject
tagsarray
regionstringAWS region.

For more information, see AWS::Chatbot::CustomAction.

Methods

NameAccessible byRequired Params
create_resourceINSERTActionName, Definition, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all custom_actions in a region.

SELECT
region,
action_name,
alias_name,
attachments,
custom_action_arn,
definition,
tags
FROM aws.chatbot.custom_actions
WHERE region = 'us-east-1';

Gets all properties from an individual custom_action.

SELECT
region,
action_name,
alias_name,
attachments,
custom_action_arn,
definition,
tags
FROM aws.chatbot.custom_actions
WHERE region = 'us-east-1' AND data__Identifier = '<CustomActionArn>';

INSERT example

Use the following StackQL query and manifest file to create a new custom_action resource, using stack-deploy.

/*+ create */
INSERT INTO aws.chatbot.custom_actions (
ActionName,
Definition,
region
)
SELECT
'{{ ActionName }}',
'{{ Definition }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.chatbot.custom_actions
WHERE data__Identifier = '<CustomActionArn>'
AND region = 'us-east-1';

Permissions

To operate on the custom_actions resource, the following permissions are required:

Create

chatbot:CreateCustomAction,
chatbot:GetCustomAction,
chatbot:TagResource,
chatbot:ListTagsForResource

Read

chatbot:GetCustomAction,
chatbot:ListTagsForResource

Update

chatbot:UpdateCustomAction,
chatbot:GetCustomAction,
chatbot:TagResource,
chatbot:UntagResource,
chatbot:ListTagsForResource

Delete

chatbot:DeleteCustomAction

List

chatbot:ListCustomActions