interface CustomActionAttachmentProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Chatbot.Mixins.CfnCustomActionPropsMixin.CustomActionAttachmentProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awschatbot/mixins#CfnCustomActionPropsMixin_CustomActionAttachmentProperty |
Java | software.amazon.awscdk.mixins.preview.services.chatbot.mixins.CfnCustomActionPropsMixin.CustomActionAttachmentProperty |
Python | aws_cdk.mixins_preview.aws_chatbot.mixins.CfnCustomActionPropsMixin.CustomActionAttachmentProperty |
TypeScript | @aws-cdk/mixins-preview » aws_chatbot » mixins » CfnCustomActionPropsMixin » CustomActionAttachmentProperty |
AWS Chatbot is now . Learn more > >
Typeattribute values remain unchanged.
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 { mixins as chatbot_mixins } from '@aws-cdk/mixins-preview/aws-chatbot';
const customActionAttachmentProperty: chatbot_mixins.CfnCustomActionPropsMixin.CustomActionAttachmentProperty = {
buttonText: 'buttonText',
criteria: [{
operator: 'operator',
value: 'value',
variableName: 'variableName',
}],
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.

.NET
Go
Java
Python
TypeScript