Class CfnAssetModel.TransformProperty
Contains an asset transform property.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.IoTSiteWise
Assembly: Amazon.CDK.AWS.IoTSiteWise.dll
Syntax (csharp)
public class TransformProperty : Object, CfnAssetModel.ITransformProperty
Syntax (vb)
Public Class TransformProperty
Inherits Object
Implements CfnAssetModel.ITransformProperty
Remarks
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. Transforms can only input properties that are INTEGER
, DOUBLE
, or BOOLEAN
type. Booleans convert to 0
( FALSE
) and 1
( TRUE
)..
For more information, see Defining data properties in the AWS IoT SiteWise User Guide .
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.IoTSiteWise;
var transformProperty = new TransformProperty {
Expression = "expression",
Variables = new [] { new ExpressionVariableProperty {
Name = "name",
Value = new VariableValueProperty {
PropertyLogicalId = "propertyLogicalId",
// the properties below are optional
HierarchyLogicalId = "hierarchyLogicalId"
}
} }
};
Synopsis
Constructors
TransformProperty() |
Properties
Expression | The mathematical expression that defines the transformation function. |
Variables | The list of variables used in the expression. |
Constructors
TransformProperty()
public TransformProperty()
Properties
Expression
The mathematical expression that defines the transformation function.
public string Expression { get; set; }
Property Value
System.String
Remarks
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 .
Variables
The list of variables used in the expression.
public object Variables { get; set; }
Property Value
System.Object