This is the new AWS CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the AWS CloudFormation User Guide.
AWS::Chatbot::CustomAction
Note
AWS Chatbot is now Amazon Q Developer. Learn more
Type attribute values remain unchanged.
Syntax
To declare this entity in your AWS CloudFormation template, use the following syntax:
JSON
{ "Type" : "AWS::Chatbot::CustomAction", "Properties" : { "ActionName" :String, "AliasName" :String, "Attachments" :[ CustomActionAttachment, ... ], "Definition" :CustomActionDefinition, "Tags" :[ Tag, ... ]} }
YAML
Type: AWS::Chatbot::CustomAction Properties: ActionName:StringAliasName:StringAttachments:- CustomActionAttachmentDefinition:CustomActionDefinitionTags:- Tag
Properties
ActionName-
The name of the custom action. This name is included in the Amazon Resource Name (ARN).
Required: Yes
Type: String
Pattern:
^[a-zA-Z0-9_-]{1,64}$Minimum:
1Maximum:
64Update requires: Replacement
AliasName-
The name used to invoke this action in a chat channel. For example,
@Amazon Q run my-alias.Required: No
Type: String
Pattern:
^[A-Za-z0-9-_]+$Minimum:
1Maximum:
30Update requires: No interruption
Attachments-
Defines when this custom action button should be attached to a notification.
Required: No
Type: Array of CustomActionAttachment
Update requires: No interruption
Definition-
The definition of the command to run when invoked as an alias or as an action button.
Required: Yes
Type: CustomActionDefinition
Update requires: No interruption
-
The tags to add to the configuration.
Required: No
Type: Array of Tag
Minimum:
0Maximum:
200Update requires: No interruption
Return values
Ref
When you pass the logical ID of this resource to the intrinsic Ref function, Ref returns the ARN of the configuration created.
Fn::GetAtt
CustomActionArn-
The fully defined ARN of the custom action.