CustomActionAttachmentProperty Struct
AWS Chatbot is now Amazon Q Developer . Learn more > >
Typeattribute values remain unchanged.
Defines when a custom action button should be attached to a notification.
| Source | |
|---|---|
| Type last changed |
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',
},
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_chatbot as chatbot
custom_action_attachment_property = chatbot.CfnCustomAction.CustomActionAttachmentProperty(
button_text="buttonText",
criteria=[chatbot.CfnCustomAction.CustomActionAttachmentCriteriaProperty(
operator="operator",
variable_name="variableName",
# the properties below are optional
value="value"
)],
notification_type="notificationType",
variables={
"variables_key": "variables"
}
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.chatbot.*;
CustomActionAttachmentProperty customActionAttachmentProperty = CustomActionAttachmentProperty.builder()
.buttonText("buttonText")
.criteria(List.of(CustomActionAttachmentCriteriaProperty.builder()
.operator("operator")
.variableName("variableName")
// the properties below are optional
.value("value")
.build()))
.notificationType("notificationType")
.variables(Map.of(
"variablesKey", "variables"))
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Chatbot;
var customActionAttachmentProperty = new CustomActionAttachmentProperty {
ButtonText = "buttonText",
Criteria = new [] { new CustomActionAttachmentCriteriaProperty {
Operator = "operator",
VariableName = "variableName",
// the properties below are optional
Value = "value"
} },
NotificationType = "notificationType",
Variables = new Dictionary<string, string> {
{ "variablesKey", "variables" }
}
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
customActionAttachmentProperty := &CustomActionAttachmentProperty{
ButtonText: jsii.String("buttonText"),
Criteria: []interface{}{
&CustomActionAttachmentCriteriaProperty{
Operator: jsii.String("operator"),
VariableName: jsii.String("variableName"),
// the properties below are optional
Value: jsii.String("value"),
},
},
NotificationType: jsii.String("notificationType"),
Variables: map[string]*string{
"variablesKey": jsii.String("variables"),
},
}
Properties
buttonTextoptionalstringbutton_textoptionalstrbuttonTextoptionalStringButtonTextoptionalstringButtonTextoptional*string #The text of the button that appears on the notification.
criteriaoptionalIResolvable | IResolvable | CfnCustomAction.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.