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