interface TransformProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.IoTSiteWise.Mixins.CfnAssetModelPropsMixin.TransformProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsiotsitewise/mixins#CfnAssetModelPropsMixin_TransformProperty |
Java | software.amazon.awscdk.mixins.preview.services.iotsitewise.mixins.CfnAssetModelPropsMixin.TransformProperty |
Python | aws_cdk.mixins_preview.aws_iotsitewise.mixins.CfnAssetModelPropsMixin.TransformProperty |
TypeScript | @aws-cdk/mixins-preview » aws_iotsitewise » mixins » CfnAssetModelPropsMixin » TransformProperty |
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 .
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as iotsitewise_mixins } from '@aws-cdk/mixins-preview/aws-iotsitewise';
const transformProperty: iotsitewise_mixins.CfnAssetModelPropsMixin.TransformProperty = {
expression: 'expression',
variables: [{
name: 'name',
value: {
hierarchyExternalId: 'hierarchyExternalId',
hierarchyId: 'hierarchyId',
hierarchyLogicalId: 'hierarchyLogicalId',
propertyExternalId: 'propertyExternalId',
propertyId: 'propertyId',
propertyLogicalId: 'propertyLogicalId',
propertyPath: [{
name: 'name',
}],
},
}],
};
Properties
| Name | Type | Description |
|---|---|---|
| expression? | string | The mathematical expression that defines the transformation function. |
| variables? | IResolvable | (IResolvable | Expression)[] | The list of variables used in the expression. |
expression?
Type:
string
(optional)
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 .
variables?
Type:
IResolvable | (IResolvable | Expression)[]
(optional)
The list of variables used in the expression.

.NET
Go
Java
Python
TypeScript