Class: AWSCDK::Chatbot::CfnCustomAction::CustomActionAttachmentCriteriaProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
chatbot/cfn_custom_action.rb

Overview

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.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(operator:, variable_name:, value: nil) ⇒ CustomActionAttachmentCriteriaProperty

Returns a new instance of CustomActionAttachmentCriteriaProperty.

Parameters:

  • operator (String)

    The operation to perform on the named variable.

  • variable_name (String)

    The name of the variable to operate on.

  • value (String, nil) (defaults to: nil)

    A value that is compared with the actual value of the variable based on the behavior of the operator.



578
579
580
581
582
583
584
585
# File 'chatbot/cfn_custom_action.rb', line 578

def initialize(operator:, variable_name:, value: nil)
  @operator = operator
  Jsii::Type.check_type(@operator, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "operator")
  @variable_name = variable_name
  Jsii::Type.check_type(@variable_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "variableName")
  @value = value
  Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value") unless @value.nil?
end

Instance Attribute Details

#operatorString (readonly)

The operation to perform on the named variable.



591
592
593
# File 'chatbot/cfn_custom_action.rb', line 591

def operator
  @operator
end

#valueString? (readonly)

A value that is compared with the actual value of the variable based on the behavior of the operator.



601
602
603
# File 'chatbot/cfn_custom_action.rb', line 601

def value
  @value
end

#variable_nameString (readonly)

The name of the variable to operate on.



596
597
598
# File 'chatbot/cfn_custom_action.rb', line 596

def variable_name
  @variable_name
end

Class Method Details

.jsii_propertiesObject



603
604
605
606
607
608
609
# File 'chatbot/cfn_custom_action.rb', line 603

def self.jsii_properties
  {
    :operator => "operator",
    :variable_name => "variableName",
    :value => "value",
  }
end

Instance Method Details

#to_jsiiObject



611
612
613
614
615
616
617
618
619
# File 'chatbot/cfn_custom_action.rb', line 611

def to_jsii
  result = {}
  result.merge!({
    "operator" => @operator,
    "variableName" => @variable_name,
    "value" => @value,
  })
  result.compact
end