interface CustomActionAttachmentProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Chatbot.CfnCustomAction.CustomActionAttachmentProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awschatbot#CfnCustomAction_CustomActionAttachmentProperty |
![]() | software.amazon.awscdk.services.chatbot.CfnCustomAction.CustomActionAttachmentProperty |
![]() | aws_cdk.aws_chatbot.CfnCustomAction.CustomActionAttachmentProperty |
![]() | aws-cdk-lib » aws_chatbot » CfnCustomAction » CustomActionAttachmentProperty |
Defines when a custom action button should be attached to a notification.
Example
// 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
Name | Type | Description |
---|---|---|
button | string | The text of the button that appears on the notification. |
criteria? | IResolvable | IResolvable | Custom [] | The criteria for when a button should be shown based on values in the notification. |
notification | string | The type of notification that the custom action should be attached to. |
variables? | { [string]: string } | IResolvable | The variables to extract from the notification. |
buttonText?
Type:
string
(optional)
The text of the button that appears on the notification.
criteria?
Type:
IResolvable
|
IResolvable
|
Custom
[]
(optional)
The criteria for when a button should be shown based on values in the notification.
notificationType?
Type:
string
(optional)
The type of notification that the custom action should be attached to.
variables?
Type:
{ [string]: string } |
IResolvable
(optional)
The variables to extract from the notification.