interface AssetModelCompositeModelProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.IoTSiteWise.CfnAssetModel.AssetModelCompositeModelProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsiotsitewise#CfnAssetModel_AssetModelCompositeModelProperty |
Java | software.amazon.awscdk.services.iotsitewise.CfnAssetModel.AssetModelCompositeModelProperty |
Python | aws_cdk.aws_iotsitewise.CfnAssetModel.AssetModelCompositeModelProperty |
TypeScript | aws-cdk-lib » aws_iotsitewise » CfnAssetModel » AssetModelCompositeModelProperty |
Contains information about a composite model in an asset model.
This object contains the asset property definitions that you define in the composite model.
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 assetModelCompositeModelProperty: iotsitewise.CfnAssetModel.AssetModelCompositeModelProperty = {
name: 'name',
type: 'type',
// the properties below are optional
composedAssetModelId: 'composedAssetModelId',
compositeModelProperties: [{
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',
}],
description: 'description',
externalId: 'externalId',
id: 'id',
parentAssetModelCompositeModelExternalId: 'parentAssetModelCompositeModelExternalId',
path: ['path'],
};
Properties
| Name | Type | Description |
|---|---|---|
| name | string | The name of the composite model. |
| type | string | The type of the composite model. |
| composed | string | The ID of a component model which is reused to create this composite model. |
| composite | IResolvable | (IResolvable | Asset)[] | The asset property definitions for this composite model. |
| description? | string | The description of the composite model. |
| external | string | The external ID of a composite model on this asset model. |
| id? | string | The ID of the asset model composite model. |
| parent | string | The external ID of the parent composite model. |
| path? | string[] | The structured path to the property from the root of the asset using property names. |
name
Type:
string
The name of the composite model.
type
Type:
string
The type of the composite model.
For alarm composite models, this type is AWS/ALARM .
composedAssetModelId?
Type:
string
(optional)
The ID of a component model which is reused to create this composite model.
compositeModelProperties?
Type:
IResolvable | (IResolvable | Asset)[]
(optional)
The asset property definitions for this composite model.
description?
Type:
string
(optional)
The description of the composite model.
If the composite model is a
component-model-basedcomposite model, the description is inherited from theCOMPONENT_MODELasset model and cannot be changed.
externalId?
Type:
string
(optional)
The external ID of a composite model on this asset model.
For more information, see Using external IDs in the AWS IoT SiteWise User Guide .
One of
ExternalIdorPathmust be specified.
id?
Type:
string
(optional)
The ID of the asset model composite model.
This is a return value and can't be set.
parentAssetModelCompositeModelExternalId?
Type:
string
(optional)
The external ID of the parent composite model.
For more information, see Using external IDs in the AWS IoT SiteWise User Guide .
path?
Type:
string[]
(optional)
The structured path to the property from the root of the asset using property names.
Path is used as the ID if the asset model is a derived composite model.
One of
ExternalIdorPathmust be specified.

.NET
Go
Java
Python
TypeScript