Class: AWSCDK::IoTSiteWise::CfnAssetModel::ExpressionVariableProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
io_t_site_wise/cfn_asset_model.rb

Overview

Contains expression variable information.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, value:) ⇒ ExpressionVariableProperty

Returns a new instance of ExpressionVariableProperty.

Parameters:



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

#nameString (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

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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