Skip to content
v2.273.0

CustomActionAttachmentCriteriaProperty Struct ​

AWS Chatbot is now . Learn more > > Type attribute values remain unchanged.

A criteria for when a button should be shown based on values in the notification.

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 customActionAttachmentCriteriaProperty: chatbot.CfnCustomAction.CustomActionAttachmentCriteriaProperty = {
  operator: 'operator',
  variableName: 'variableName',

  // the properties below are optional
  value: 'value',
};

Properties ​

operatorstringoperatorstroperatorStringOperatorstringOperator*stringrequired#
The operation to perform on the named variable.
valuestringvaluestrvalueStringValuestringValue*string#
A value that is compared with the actual value of the variable based on the behavior of the operator.
variableNamestringvariable_namestrvariableNameStringVariableNamestringVariableName*stringrequired#
The name of the variable to operate on.