interface PropertyTypeProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.IoTSiteWise.Mixins.CfnAssetModelPropsMixin.PropertyTypeProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsiotsitewise/mixins#CfnAssetModelPropsMixin_PropertyTypeProperty |
Java | software.amazon.awscdk.mixins.preview.services.iotsitewise.mixins.CfnAssetModelPropsMixin.PropertyTypeProperty |
Python | aws_cdk.mixins_preview.aws_iotsitewise.mixins.CfnAssetModelPropsMixin.PropertyTypeProperty |
TypeScript | @aws-cdk/mixins-preview » aws_iotsitewise » mixins » CfnAssetModelPropsMixin » 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 { mixins as iotsitewise_mixins } from '@aws-cdk/mixins-preview/aws-iotsitewise';
const propertyTypeProperty: iotsitewise_mixins.CfnAssetModelPropsMixin.PropertyTypeProperty = {
attribute: {
defaultValue: 'defaultValue',
},
metric: {
expression: 'expression',
variables: [{
name: 'name',
value: {
hierarchyExternalId: 'hierarchyExternalId',
hierarchyId: 'hierarchyId',
hierarchyLogicalId: 'hierarchyLogicalId',
propertyExternalId: 'propertyExternalId',
propertyId: 'propertyId',
propertyLogicalId: 'propertyLogicalId',
propertyPath: [{
name: 'name',
}],
},
}],
window: {
tumbling: {
interval: 'interval',
offset: 'offset',
},
},
},
transform: {
expression: 'expression',
variables: [{
name: 'name',
value: {
hierarchyExternalId: 'hierarchyExternalId',
hierarchyId: 'hierarchyId',
hierarchyLogicalId: 'hierarchyLogicalId',
propertyExternalId: 'propertyExternalId',
propertyId: 'propertyId',
propertyLogicalId: 'propertyLogicalId',
propertyPath: [{
name: 'name',
}],
},
}],
},
typeName: 'typeName',
};
Properties
| Name | Type | Description |
|---|---|---|
| attribute? | IResolvable | Attribute | Specifies an asset attribute property. |
| metric? | IResolvable | Metric | Specifies an asset metric property. |
| transform? | IResolvable | Transform | Specifies an asset transform property. |
| type | string | The type of property type, which can be one of Attribute , Measurement , Metric , or Transform . |
attribute?
Type:
IResolvable | Attribute
(optional)
Specifies an asset attribute property.
An attribute generally contains static information, such as the serial number of an IIoT wind turbine.
metric?
Type:
IResolvable | Metric
(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.
transform?
Type:
IResolvable | Transform
(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.
typeName?
Type:
string
(optional)
The type of property type, which can be one of Attribute , Measurement , Metric , or Transform .

.NET
Go
Java
Python
TypeScript