CustomActionAttachment - AWS Chatbot

CustomActionAttachment

Defines when a custom action button should be attached to a notification.

Contents

ButtonText

The text of the button that appears on the notification.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 50.

Pattern: [\S\s]+

Required: No

Criteria

The criteria for when a button should be shown based on values in the notification.

Type: Array of CustomActionAttachmentCriteria objects

Array Members: Minimum number of 1 item. Maximum number of 5 items.

Required: No

NotificationType

The type of notification that the custom action should be attached to.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 100.

Pattern: [a-zA-Z0-9-]+

Required: No

Variables

The variables to extract from the notification.

Type: String to string map

Map Entries: Maximum number of 5 items.

Key Length Constraints: Minimum length of 1. Maximum length of 100.

Key Pattern: [A-Za-z0-9-_]+

Value Length Constraints: Minimum length of 0. Maximum length of 1024.

Value Pattern: [\x21-\x7F]+

Required: No

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: