Class: AWSCDK::IoTEvents::CfnDetectorModel::SetVariableProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
io_t_events/cfn_detector_model.rb

Overview

Information about the variable and its new value.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value:, variable_name:) ⇒ SetVariableProperty

Returns a new instance of SetVariableProperty.

Parameters:

  • value (String)

    The new value of the variable.

  • variable_name (String)

    The name of the variable.



1879
1880
1881
1882
1883
1884
# File 'io_t_events/cfn_detector_model.rb', line 1879

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

Instance Attribute Details

#valueString (readonly)

The new value of the variable.



1890
1891
1892
# File 'io_t_events/cfn_detector_model.rb', line 1890

def value
  @value
end

#variable_nameString (readonly)

The name of the variable.



1895
1896
1897
# File 'io_t_events/cfn_detector_model.rb', line 1895

def variable_name
  @variable_name
end

Class Method Details

.jsii_propertiesObject



1897
1898
1899
1900
1901
1902
# File 'io_t_events/cfn_detector_model.rb', line 1897

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

Instance Method Details

#to_jsiiObject



1904
1905
1906
1907
1908
1909
1910
1911
# File 'io_t_events/cfn_detector_model.rb', line 1904

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