Interface CfnCustomAction.CustomActionAttachmentProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnCustomAction.CustomActionAttachmentProperty.Jsii$Proxy
- Enclosing class:
CfnCustomAction
@Stability(Stable)
public static interface CfnCustomAction.CustomActionAttachmentProperty
extends software.amazon.jsii.JsiiSerializable
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 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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnCustomAction.CustomActionAttachmentPropertystatic final classAn implementation forCfnCustomAction.CustomActionAttachmentProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringThe text of the button that appears on the notification.default ObjectThe criteria for when a button should be shown based on values in the notification.default StringThe type of notification that the custom action should be attached to.default ObjectThe variables to extract from the notification.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getButtonText
The text of the button that appears on the notification.- See Also:
-
getCriteria
The criteria for when a button should be shown based on values in the notification.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnCustomAction.CustomActionAttachmentCriteriaProperty>- See Also:
-
getNotificationType
The type of notification that the custom action should be attached to.- See Also:
-
getVariables
The variables to extract from the notification.Returns union: either Mapinvalid input: '<'String,
String> orIResolvable- See Also:
-
builder
-