Class: AWSCDK::IoTEvents::CfnDetectorModel::SetVariableProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoTEvents::CfnDetectorModel::SetVariableProperty
- Defined in:
- io_t_events/cfn_detector_model.rb
Overview
Information about the variable and its new value.
Instance Attribute Summary collapse
-
#value ⇒ String
readonly
The new value of the variable.
-
#variable_name ⇒ String
readonly
The name of the variable.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(value:, variable_name:) ⇒ SetVariableProperty
constructor
A new instance of SetVariableProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(value:, variable_name:) ⇒ SetVariableProperty
Returns a new instance of SetVariableProperty.
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
#value ⇒ String (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_name ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |