Class: AWSCDK::IoTSiteWise::CfnAssetModel::TransformProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoTSiteWise::CfnAssetModel::TransformProperty
- Defined in:
- io_t_site_wise/cfn_asset_model.rb
Overview
Contains an asset transform property.
A transform is a one-to-one mapping of a property's data points from one form to another. For example, you can use a transform to convert a Celsius data stream to Fahrenheit by applying the transformation expression to each data point of the Celsius stream. A transform can only have a data type of DOUBLE and consume properties with data types of INTEGER or DOUBLE .
For more information, see Transforms in the AWS IoT SiteWise User Guide .
Instance Attribute Summary collapse
-
#expression ⇒ String
readonly
The mathematical expression that defines the transformation function.
-
#variables ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::IoTSiteWise::CfnAssetModel::ExpressionVariableProperty>
readonly
The list of variables used in the expression.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(expression:, variables:) ⇒ TransformProperty
constructor
A new instance of TransformProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(expression:, variables:) ⇒ TransformProperty
Returns a new instance of TransformProperty.
1374 1375 1376 1377 1378 1379 |
# File 'io_t_site_wise/cfn_asset_model.rb', line 1374 def initialize(expression:, variables:) @expression = expression Jsii::Type.check_type(@expression, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "expression") @variables = variables Jsii::Type.check_type(@variables, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaW90c2l0ZXdpc2UuQ2ZuQXNzZXRNb2RlbC5FeHByZXNzaW9uVmFyaWFibGVQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "variables") end |
Instance Attribute Details
#expression ⇒ String (readonly)
The mathematical expression that defines the transformation function.
You can specify up to 10 variables per expression. You can specify up to 10 functions per expression.
For more information, see Quotas in the AWS IoT SiteWise User Guide .
1389 1390 1391 |
# File 'io_t_site_wise/cfn_asset_model.rb', line 1389 def expression @expression end |
#variables ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::IoTSiteWise::CfnAssetModel::ExpressionVariableProperty> (readonly)
The list of variables used in the expression.
1394 1395 1396 |
# File 'io_t_site_wise/cfn_asset_model.rb', line 1394 def variables @variables end |
Class Method Details
.jsii_properties ⇒ Object
1396 1397 1398 1399 1400 1401 |
# File 'io_t_site_wise/cfn_asset_model.rb', line 1396 def self.jsii_properties { :expression => "expression", :variables => "variables", } end |
Instance Method Details
#to_jsii ⇒ Object
1403 1404 1405 1406 1407 1408 1409 1410 |
# File 'io_t_site_wise/cfn_asset_model.rb', line 1403 def to_jsii result = {} result.merge!({ "expression" => @expression, "variables" => @variables, }) result.compact end |