Class: AWSCDK::Cases::CfnCaseRule::BooleanOperandsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
cases/cfn_case_rule.rb

Overview

Boolean operands for a condition.

In the Amazon Connect admin website, case rules are known as case field conditions . For more information about case field conditions, see Add case field conditions to a case template .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(operand_one:, operand_two:, result:) ⇒ BooleanOperandsProperty

Returns a new instance of BooleanOperandsProperty.

Parameters:



645
646
647
648
649
650
651
652
# File 'cases/cfn_case_rule.rb', line 645

def initialize(operand_one:, operand_two:, result:)
  @operand_one = operand_one.is_a?(Hash) ? ::AWSCDK::Cases::CfnCaseRule::OperandOneProperty.new(**operand_one.transform_keys(&:to_sym)) : operand_one
  Jsii::Type.check_type(@operand_one, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jYXNlcy5DZm5DYXNlUnVsZS5PcGVyYW5kT25lUHJvcGVydHkifV19fQ==")), "operandOne")
  @operand_two = operand_two.is_a?(Hash) ? ::AWSCDK::Cases::CfnCaseRule::OperandTwoProperty.new(**operand_two.transform_keys(&:to_sym)) : operand_two
  Jsii::Type.check_type(@operand_two, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jYXNlcy5DZm5DYXNlUnVsZS5PcGVyYW5kVHdvUHJvcGVydHkifV19fQ==")), "operandTwo")
  @result = result
  Jsii::Type.check_type(@result, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "result")
end

Instance Attribute Details

#operand_oneAWSCDK::IResolvable, AWSCDK::Cases::CfnCaseRule::OperandOneProperty (readonly)

Represents the left hand operand in the condition.



658
659
660
# File 'cases/cfn_case_rule.rb', line 658

def operand_one
  @operand_one
end

#operand_twoAWSCDK::IResolvable, AWSCDK::Cases::CfnCaseRule::OperandTwoProperty (readonly)

Represents the right hand operand in the condition.



663
664
665
# File 'cases/cfn_case_rule.rb', line 663

def operand_two
  @operand_two
end

#resultBoolean, AWSCDK::IResolvable (readonly)

The value of the outer rule if the condition evaluates to true.



668
669
670
# File 'cases/cfn_case_rule.rb', line 668

def result
  @result
end

Class Method Details

.jsii_propertiesObject



670
671
672
673
674
675
676
# File 'cases/cfn_case_rule.rb', line 670

def self.jsii_properties
  {
    :operand_one => "operandOne",
    :operand_two => "operandTwo",
    :result => "result",
  }
end

Instance Method Details

#to_jsiiObject



678
679
680
681
682
683
684
685
686
# File 'cases/cfn_case_rule.rb', line 678

def to_jsii
  result = {}
  result.merge!({
    "operandOne" => @operand_one,
    "operandTwo" => @operand_two,
    "result" => @result,
  })
  result.compact
end