Class CfnCustomAction.CustomActionAttachmentProperty
AWS Chatbot is now . Learn more > >
Type
attribute values remain unchanged.
Inheritance
Namespace: Amazon.CDK.AWS.Chatbot
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CustomActionAttachmentProperty : Object, CfnCustomAction.ICustomActionAttachmentProperty
Syntax (vb)
Public Class CustomActionAttachmentProperty
Inherits Object
Implements CfnCustomAction.ICustomActionAttachmentProperty
Remarks
Defines when a custom action button should be attached to a notification.
ExampleMetadata: fixture=_generated
Examples
// 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" }
}
};
Synopsis
Constructors
Custom |
Properties
Button |
The text of the button that appears on the notification. |
Criteria | The criteria for when a button should be shown based on values in the notification. |
Notification |
The type of notification that the custom action should be attached to. |
Variables | The variables to extract from the notification. |
Constructors
CustomActionAttachmentProperty()
public CustomActionAttachmentProperty()
Properties
ButtonText
The text of the button that appears on the notification.
public string ButtonText { get; set; }
Property Value
System.
Remarks
Criteria
The criteria for when a button should be shown based on values in the notification.
public object Criteria { get; set; }
Property Value
System.
Remarks
NotificationType
The type of notification that the custom action should be attached to.
public string NotificationType { get; set; }
Property Value
System.
Remarks
Variables
The variables to extract from the notification.
public object Variables { get; set; }
Property Value
System.