aws-cdk-lib.aws_iotsitewise.CfnAssetModel.PropertyTypeProperty

interface PropertyTypeProperty

LanguageType name
.NETAmazon.CDK.AWS.IoTSiteWise.CfnAssetModel.PropertyTypeProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsiotsitewise#CfnAssetModel_PropertyTypeProperty
Javasoftware.amazon.awscdk.services.iotsitewise.CfnAssetModel.PropertyTypeProperty
Pythonaws_cdk.aws_iotsitewise.CfnAssetModel.PropertyTypeProperty
TypeScript aws-cdk-lib » aws_iotsitewise » CfnAssetModel » PropertyTypeProperty

Contains a property type, which can be one of Attribute , Measurement , Metric , or Transform .

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 propertyTypeProperty: iotsitewise.CfnAssetModel.PropertyTypeProperty = {
  typeName: 'typeName',

  // the properties below are optional
  attribute: {
    defaultValue: 'defaultValue',
  },
  metric: {
    expression: 'expression',
    variables: [{
      name: 'name',
      value: {
        propertyLogicalId: 'propertyLogicalId',

        // the properties below are optional
        hierarchyLogicalId: 'hierarchyLogicalId',
      },
    }],
    window: {
      tumbling: {
        interval: 'interval',

        // the properties below are optional
        offset: 'offset',
      },
    },
  },
  transform: {
    expression: 'expression',
    variables: [{
      name: 'name',
      value: {
        propertyLogicalId: 'propertyLogicalId',

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

Properties

NameTypeDescription
typeNamestringThe type of property type, which can be one of Attribute , Measurement , Metric , or Transform .
attribute?IResolvable | AttributePropertySpecifies an asset attribute property.
metric?IResolvable | MetricPropertySpecifies an asset metric property.
transform?IResolvable | TransformPropertySpecifies an asset transform property.

typeName

Type: string

The type of property type, which can be one of Attribute , Measurement , Metric , or Transform .


attribute?

Type: IResolvable | AttributeProperty (optional)

Specifies an asset attribute property.

An attribute generally contains static information, such as the serial number of an industrial IoT wind turbine.

This is required if the TypeName is Attribute and has a DefaultValue .


metric?

Type: IResolvable | MetricProperty (optional)

Specifies an asset metric property.

A metric contains a mathematical expression that uses aggregate functions to process all input data points over a time interval and output a single data point, such as to calculate the average hourly temperature.

This is required if the TypeName is Metric .


transform?

Type: IResolvable | TransformProperty (optional)

Specifies an asset transform property.

A transform contains a mathematical expression that maps a property's data points from one form to another, such as a unit conversion from Celsius to Fahrenheit.

This is required if the TypeName is Transform .