Class: AWSCDK::Chatbot::CfnCustomAction::CustomActionAttachmentCriteriaProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Chatbot::CfnCustomAction::CustomActionAttachmentCriteriaProperty
- Defined in:
- chatbot/cfn_custom_action.rb
Overview
AWS Chatbot is now . Learn more > >
Typeattribute values remain unchanged.
A criteria for when a button should be shown based on values in the notification.
Instance Attribute Summary collapse
-
#operator ⇒ String
readonly
The operation to perform on the named variable.
-
#value ⇒ String?
readonly
A value that is compared with the actual value of the variable based on the behavior of the operator.
-
#variable_name ⇒ String
readonly
The name of the variable to operate on.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(operator:, variable_name:, value: nil) ⇒ CustomActionAttachmentCriteriaProperty
constructor
A new instance of CustomActionAttachmentCriteriaProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(operator:, variable_name:, value: nil) ⇒ CustomActionAttachmentCriteriaProperty
Returns a new instance of CustomActionAttachmentCriteriaProperty.
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
#operator ⇒ String (readonly)
The operation to perform on the named variable.
591 592 593 |
# File 'chatbot/cfn_custom_action.rb', line 591 def operator @operator end |
#value ⇒ String? (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_name ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |