interface AssetModelPropertyProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.IoTSiteWise.CfnAssetModel.AssetModelPropertyProperty |
Java | software.amazon.awscdk.services.iotsitewise.CfnAssetModel.AssetModelPropertyProperty |
Python | aws_cdk.aws_iotsitewise.CfnAssetModel.AssetModelPropertyProperty |
TypeScript | @aws-cdk/aws-iotsitewise » CfnAssetModel » AssetModelPropertyProperty |
Contains information about an asset model property.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as iotsitewise from '@aws-cdk/aws-iotsitewise';
const assetModelPropertyProperty: iotsitewise.CfnAssetModel.AssetModelPropertyProperty = {
dataType: 'dataType',
logicalId: 'logicalId',
name: 'name',
type: {
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',
},
}],
},
},
// the properties below are optional
dataTypeSpec: 'dataTypeSpec',
unit: 'unit',
};
Properties
Name | Type | Description |
---|---|---|
data | string | The data type of the asset model property. |
logical | string | The LogicalID of the asset model property. |
name | string | The name of the asset model property. |
type | IResolvable | Property | Contains a property type, which can be one of Attribute , Measurement , Metric , or Transform . |
data | string | The data type of the structure for this property. |
unit? | string | The unit of the asset model property, such as Newtons or RPM . |
dataType
Type:
string
The data type of the asset model property.
The value can be STRING
, INTEGER
, DOUBLE
, BOOLEAN
, or STRUCT
.
logicalId
Type:
string
The LogicalID
of the asset model property.
The maximum length is 256 characters, with the pattern [^\\ u0000-\\ u001F\\ u007F]+
.
name
Type:
string
The name of the asset model property.
The maximum length is 256 characters with the pattern [^\ u0000-\ u001F\ u007F]+
.
type
Type:
IResolvable
|
Property
Contains a property type, which can be one of Attribute
, Measurement
, Metric
, or Transform
.
dataTypeSpec?
Type:
string
(optional)
The data type of the structure for this property.
This parameter exists on properties that have the STRUCT
data type.
unit?
Type:
string
(optional)
The unit of the asset model property, such as Newtons
or RPM
.