Class: AWSCDK::IoT::CfnCommand::CommandParameterValueConditionProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
io_t/cfn_command.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(comparison_operator:, operand:) ⇒ CommandParameterValueConditionProperty

Returns a new instance of CommandParameterValueConditionProperty.



866
867
868
869
870
871
# File 'io_t/cfn_command.rb', line 866

def initialize(comparison_operator:, operand:)
  @comparison_operator = comparison_operator
  Jsii::Type.check_type(@comparison_operator, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "comparisonOperator")
  @operand = operand.is_a?(Hash) ? ::AWSCDK::IoT::CfnCommand::CommandParameterValueComparisonOperandProperty.new(**operand.transform_keys(&:to_sym)) : operand
  Jsii::Type.check_type(@operand, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pb3QuQ2ZuQ29tbWFuZC5Db21tYW5kUGFyYW1ldGVyVmFsdWVDb21wYXJpc29uT3BlcmFuZFByb3BlcnR5In1dfX0=")), "operand")
end

Class Method Details

.jsii_propertiesObject



880
881
882
883
884
885
# File 'io_t/cfn_command.rb', line 880

def self.jsii_properties
  {
    :comparison_operator => "comparisonOperator",
    :operand => "operand",
  }
end

Instance Method Details

#to_jsiiObject



887
888
889
890
891
892
893
894
# File 'io_t/cfn_command.rb', line 887

def to_jsii
  result = {}
  result.merge!({
    "comparisonOperator" => @comparison_operator,
    "operand" => @operand,
  })
  result.compact
end