CustomActionAttachmentProperty Struct
AWS Chatbot is now . Learn more > >
Typeattribute values remain unchanged.
Defines when a custom action button should be attached to a notification.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_chatbot as chatbot } from 'aws-cdk-lib';
const customActionAttachmentProperty: chatbot.CfnCustomAction.CustomActionAttachmentProperty = {
buttonText: 'buttonText',
criteria: [{
operator: 'operator',
variableName: 'variableName',
// the properties below are optional
value: 'value',
}],
notificationType: 'notificationType',
variables: {
variablesKey: 'variables',
},
};
Properties
buttonTextoptionalstringbutton_textoptionalstrbuttonTextoptionalStringButtonTextoptionalstringButtonTextoptional*string#The text of the button that appears on the notification.
criteriaoptionalIResolvable | IResolvable | CfnCustomAction.CustomActionAttachmentCriteriaProperty[]criteriaoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, CustomActionAttachmentCriteriaProperty]]]criteriaoptionalIResolvableCriteriaoptionalIResolvableCriteriaoptionalinterface{}#The criteria for when a button should be shown based on values in the notification.
notificationTypeoptionalstringnotification_typeoptionalstrnotificationTypeoptionalStringNotificationTypeoptionalstringNotificationTypeoptional*string#The type of notification that the custom action should be attached to.
variablesoptionalIResolvable | { [key: string]: string }variablesoptionaltyping.Union[IResolvable, typing.Mapping[str, str]]variablesoptionalIResolvableVariablesoptionalIResolvableVariablesoptionalinterface{}#The variables to extract from the notification.