Class: AWSCDK::IoTSiteWise::CfnAssetModel::ExpressionVariableProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoTSiteWise::CfnAssetModel::ExpressionVariableProperty
- Defined in:
- io_t_site_wise/cfn_asset_model.rb
Overview
Contains expression variable information.
Instance Attribute Summary collapse
-
#name ⇒ String
readonly
The friendly name of the variable to be used in the expression.
-
#value ⇒ AWSCDK::IResolvable, AWSCDK::IoTSiteWise::CfnAssetModel::VariableValueProperty
readonly
The variable that identifies an asset property from which to use values.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, value:) ⇒ ExpressionVariableProperty
constructor
A new instance of ExpressionVariableProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, value:) ⇒ ExpressionVariableProperty
Returns a new instance of ExpressionVariableProperty.
1127 1128 1129 1130 1131 1132 |
# File 'io_t_site_wise/cfn_asset_model.rb', line 1127 def initialize(name:, value:) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @value = value.is_a?(Hash) ? ::AWSCDK::IoTSiteWise::CfnAssetModel::VariableValueProperty.new(**value.transform_keys(&:to_sym)) : value Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pb3RzaXRld2lzZS5DZm5Bc3NldE1vZGVsLlZhcmlhYmxlVmFsdWVQcm9wZXJ0eSJ9XX19")), "value") end |
Instance Attribute Details
#name ⇒ String (readonly)
The friendly name of the variable to be used in the expression.
1138 1139 1140 |
# File 'io_t_site_wise/cfn_asset_model.rb', line 1138 def name @name end |
#value ⇒ AWSCDK::IResolvable, AWSCDK::IoTSiteWise::CfnAssetModel::VariableValueProperty (readonly)
The variable that identifies an asset property from which to use values.
1143 1144 1145 |
# File 'io_t_site_wise/cfn_asset_model.rb', line 1143 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
1145 1146 1147 1148 1149 1150 |
# File 'io_t_site_wise/cfn_asset_model.rb', line 1145 def self.jsii_properties { :name => "name", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
1152 1153 1154 1155 1156 1157 1158 1159 |
# File 'io_t_site_wise/cfn_asset_model.rb', line 1152 def to_jsii result = {} result.merge!({ "name" => @name, "value" => @value, }) result.compact end |