aws-cdk-lib.aws_iotsitewise.CfnAssetModel.TransformProperty

interface TransformProperty

LanguageType name
.NETAmazon.CDK.AWS.IoTSiteWise.CfnAssetModel.TransformProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsiotsitewise#CfnAssetModel_TransformProperty
Javasoftware.amazon.awscdk.services.iotsitewise.CfnAssetModel.TransformProperty
Pythonaws_cdk.aws_iotsitewise.CfnAssetModel.TransformProperty
TypeScript aws-cdk-lib » aws_iotsitewise » CfnAssetModel » 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. 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 .

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iotsitewise as iotsitewise } from 'aws-cdk-lib';
const transformProperty: iotsitewise.CfnAssetModel.TransformProperty = {
  expression: 'expression',
  variables: [{
    name: 'name',
    value: {
      propertyLogicalId: 'propertyLogicalId',

      // the properties below are optional
      hierarchyLogicalId: 'hierarchyLogicalId',
    },
  }],
};

Properties

NameTypeDescription
expressionstringThe mathematical expression that defines the transformation function.
variablesIResolvable | IResolvable | ExpressionVariableProperty[]The list of variables used in the expression.

expression

Type: string

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 | ExpressionVariableProperty[]

The list of variables used in the expression.