interface AssetModelPropertyProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.IoTSiteWise.CfnAssetModel.AssetModelPropertyProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsiotsitewise#CfnAssetModel_AssetModelPropertyProperty |
Java | software.amazon.awscdk.services.iotsitewise.CfnAssetModel.AssetModelPropertyProperty |
Python | aws_cdk.aws_iotsitewise.CfnAssetModel.AssetModelPropertyProperty |
TypeScript | aws-cdk-lib » 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 { aws_iotsitewise as iotsitewise } from 'aws-cdk-lib';
const assetModelPropertyProperty: iotsitewise.CfnAssetModel.AssetModelPropertyProperty = {
dataType: 'dataType',
name: 'name',
type: {
typeName: 'typeName',
// the properties below are optional
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',
// the properties below are optional
offset: 'offset',
},
},
},
transform: {
expression: 'expression',
variables: [{
name: 'name',
value: {
hierarchyExternalId: 'hierarchyExternalId',
hierarchyId: 'hierarchyId',
hierarchyLogicalId: 'hierarchyLogicalId',
propertyExternalId: 'propertyExternalId',
propertyId: 'propertyId',
propertyLogicalId: 'propertyLogicalId',
propertyPath: [{
name: 'name',
}],
},
}],
},
},
// the properties below are optional
dataTypeSpec: 'dataTypeSpec',
externalId: 'externalId',
id: 'id',
logicalId: 'logicalId',
unit: 'unit',
};
Properties
Name | Type | Description |
---|---|---|
data | string | The data type 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. |
external | string | The External ID of the Asset Model Property. |
id? | string | The ID of the Asset Model Property. |
logical | string | The LogicalID of the asset model 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.
name
Type:
string
The name of the asset model property.
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.
externalId?
Type:
string
(optional)
The External ID of the Asset Model Property.
id?
Type:
string
(optional)
The ID of the Asset Model Property.
logicalId?
Type:
string
(optional)
The LogicalID
of the asset model property.
unit?
Type:
string
(optional)
The unit of the asset model property, such as Newtons
or RPM
.