CfnAssetModelProps Struct
Properties for defining a CfnAssetModel.
| Source | |
|---|---|
| Type last changed |
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 cfnAssetModelProps: iotsitewise.CfnAssetModelProps = {
assetModelName: 'assetModelName',
// the properties below are optional
assetModelCompositeModels: [{
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'],
}],
assetModelDescription: 'assetModelDescription',
assetModelExternalId: 'assetModelExternalId',
assetModelHierarchies: [{
childAssetModelId: 'childAssetModelId',
name: 'name',
// the properties below are optional
externalId: 'externalId',
id: 'id',
logicalId: 'logicalId',
}],
assetModelProperties: [{
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',
}],
assetModelType: 'assetModelType',
enforcedAssetModelInterfaceRelationships: [{
interfaceAssetModelId: 'interfaceAssetModelId',
propertyMappings: [{
interfaceAssetModelPropertyExternalId: 'interfaceAssetModelPropertyExternalId',
// the properties below are optional
assetModelPropertyExternalId: 'assetModelPropertyExternalId',
assetModelPropertyLogicalId: 'assetModelPropertyLogicalId',
}],
}],
tags: [{
key: 'key',
value: 'value',
}],
};
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_iotsitewise as iotsitewise
cfn_asset_model_props = iotsitewise.CfnAssetModelProps(
asset_model_name="assetModelName",
# the properties below are optional
asset_model_composite_models=[iotsitewise.CfnAssetModel.AssetModelCompositeModelProperty(
name="name",
type="type",
# the properties below are optional
composed_asset_model_id="composedAssetModelId",
composite_model_properties=[iotsitewise.CfnAssetModel.AssetModelPropertyProperty(
data_type="dataType",
name="name",
type=iotsitewise.CfnAssetModel.PropertyTypeProperty(
type_name="typeName",
# the properties below are optional
attribute=iotsitewise.CfnAssetModel.AttributeProperty(
default_value="defaultValue"
),
metric=iotsitewise.CfnAssetModel.MetricProperty(
expression="expression",
variables=[iotsitewise.CfnAssetModel.ExpressionVariableProperty(
name="name",
value=iotsitewise.CfnAssetModel.VariableValueProperty(
hierarchy_external_id="hierarchyExternalId",
hierarchy_id="hierarchyId",
hierarchy_logical_id="hierarchyLogicalId",
property_external_id="propertyExternalId",
property_id="propertyId",
property_logical_id="propertyLogicalId",
property_path=[iotsitewise.CfnAssetModel.PropertyPathDefinitionProperty(
name="name"
)]
)
)],
window=iotsitewise.CfnAssetModel.MetricWindowProperty(
tumbling=iotsitewise.CfnAssetModel.TumblingWindowProperty(
interval="interval",
# the properties below are optional
offset="offset"
)
)
),
transform=iotsitewise.CfnAssetModel.TransformProperty(
expression="expression",
variables=[iotsitewise.CfnAssetModel.ExpressionVariableProperty(
name="name",
value=iotsitewise.CfnAssetModel.VariableValueProperty(
hierarchy_external_id="hierarchyExternalId",
hierarchy_id="hierarchyId",
hierarchy_logical_id="hierarchyLogicalId",
property_external_id="propertyExternalId",
property_id="propertyId",
property_logical_id="propertyLogicalId",
property_path=[iotsitewise.CfnAssetModel.PropertyPathDefinitionProperty(
name="name"
)]
)
)]
)
),
# the properties below are optional
data_type_spec="dataTypeSpec",
external_id="externalId",
id="id",
logical_id="logicalId",
unit="unit"
)],
description="description",
external_id="externalId",
id="id",
parent_asset_model_composite_model_external_id="parentAssetModelCompositeModelExternalId",
path=["path"]
)],
asset_model_description="assetModelDescription",
asset_model_external_id="assetModelExternalId",
asset_model_hierarchies=[iotsitewise.CfnAssetModel.AssetModelHierarchyProperty(
child_asset_model_id="childAssetModelId",
name="name",
# the properties below are optional
external_id="externalId",
id="id",
logical_id="logicalId"
)],
asset_model_properties=[iotsitewise.CfnAssetModel.AssetModelPropertyProperty(
data_type="dataType",
name="name",
type=iotsitewise.CfnAssetModel.PropertyTypeProperty(
type_name="typeName",
# the properties below are optional
attribute=iotsitewise.CfnAssetModel.AttributeProperty(
default_value="defaultValue"
),
metric=iotsitewise.CfnAssetModel.MetricProperty(
expression="expression",
variables=[iotsitewise.CfnAssetModel.ExpressionVariableProperty(
name="name",
value=iotsitewise.CfnAssetModel.VariableValueProperty(
hierarchy_external_id="hierarchyExternalId",
hierarchy_id="hierarchyId",
hierarchy_logical_id="hierarchyLogicalId",
property_external_id="propertyExternalId",
property_id="propertyId",
property_logical_id="propertyLogicalId",
property_path=[iotsitewise.CfnAssetModel.PropertyPathDefinitionProperty(
name="name"
)]
)
)],
window=iotsitewise.CfnAssetModel.MetricWindowProperty(
tumbling=iotsitewise.CfnAssetModel.TumblingWindowProperty(
interval="interval",
# the properties below are optional
offset="offset"
)
)
),
transform=iotsitewise.CfnAssetModel.TransformProperty(
expression="expression",
variables=[iotsitewise.CfnAssetModel.ExpressionVariableProperty(
name="name",
value=iotsitewise.CfnAssetModel.VariableValueProperty(
hierarchy_external_id="hierarchyExternalId",
hierarchy_id="hierarchyId",
hierarchy_logical_id="hierarchyLogicalId",
property_external_id="propertyExternalId",
property_id="propertyId",
property_logical_id="propertyLogicalId",
property_path=[iotsitewise.CfnAssetModel.PropertyPathDefinitionProperty(
name="name"
)]
)
)]
)
),
# the properties below are optional
data_type_spec="dataTypeSpec",
external_id="externalId",
id="id",
logical_id="logicalId",
unit="unit"
)],
asset_model_type="assetModelType",
enforced_asset_model_interface_relationships=[iotsitewise.CfnAssetModel.EnforcedAssetModelInterfaceRelationshipProperty(
interface_asset_model_id="interfaceAssetModelId",
property_mappings=[iotsitewise.CfnAssetModel.EnforcedAssetModelInterfacePropertyMappingProperty(
interface_asset_model_property_external_id="interfaceAssetModelPropertyExternalId",
# the properties below are optional
asset_model_property_external_id="assetModelPropertyExternalId",
asset_model_property_logical_id="assetModelPropertyLogicalId"
)]
)],
tags=[CfnTag(
key="key",
value="value"
)]
)
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.iotsitewise.*;
CfnAssetModelProps cfnAssetModelProps = CfnAssetModelProps.builder()
.assetModelName("assetModelName")
// the properties below are optional
.assetModelCompositeModels(List.of(AssetModelCompositeModelProperty.builder()
.name("name")
.type("type")
// the properties below are optional
.composedAssetModelId("composedAssetModelId")
.compositeModelProperties(List.of(AssetModelPropertyProperty.builder()
.dataType("dataType")
.name("name")
.type(PropertyTypeProperty.builder()
.typeName("typeName")
// the properties below are optional
.attribute(AttributeProperty.builder()
.defaultValue("defaultValue")
.build())
.metric(MetricProperty.builder()
.expression("expression")
.variables(List.of(ExpressionVariableProperty.builder()
.name("name")
.value(VariableValueProperty.builder()
.hierarchyExternalId("hierarchyExternalId")
.hierarchyId("hierarchyId")
.hierarchyLogicalId("hierarchyLogicalId")
.propertyExternalId("propertyExternalId")
.propertyId("propertyId")
.propertyLogicalId("propertyLogicalId")
.propertyPath(List.of(PropertyPathDefinitionProperty.builder()
.name("name")
.build()))
.build())
.build()))
.window(MetricWindowProperty.builder()
.tumbling(TumblingWindowProperty.builder()
.interval("interval")
// the properties below are optional
.offset("offset")
.build())
.build())
.build())
.transform(TransformProperty.builder()
.expression("expression")
.variables(List.of(ExpressionVariableProperty.builder()
.name("name")
.value(VariableValueProperty.builder()
.hierarchyExternalId("hierarchyExternalId")
.hierarchyId("hierarchyId")
.hierarchyLogicalId("hierarchyLogicalId")
.propertyExternalId("propertyExternalId")
.propertyId("propertyId")
.propertyLogicalId("propertyLogicalId")
.propertyPath(List.of(PropertyPathDefinitionProperty.builder()
.name("name")
.build()))
.build())
.build()))
.build())
.build())
// the properties below are optional
.dataTypeSpec("dataTypeSpec")
.externalId("externalId")
.id("id")
.logicalId("logicalId")
.unit("unit")
.build()))
.description("description")
.externalId("externalId")
.id("id")
.parentAssetModelCompositeModelExternalId("parentAssetModelCompositeModelExternalId")
.path(List.of("path"))
.build()))
.assetModelDescription("assetModelDescription")
.assetModelExternalId("assetModelExternalId")
.assetModelHierarchies(List.of(AssetModelHierarchyProperty.builder()
.childAssetModelId("childAssetModelId")
.name("name")
// the properties below are optional
.externalId("externalId")
.id("id")
.logicalId("logicalId")
.build()))
.assetModelProperties(List.of(AssetModelPropertyProperty.builder()
.dataType("dataType")
.name("name")
.type(PropertyTypeProperty.builder()
.typeName("typeName")
// the properties below are optional
.attribute(AttributeProperty.builder()
.defaultValue("defaultValue")
.build())
.metric(MetricProperty.builder()
.expression("expression")
.variables(List.of(ExpressionVariableProperty.builder()
.name("name")
.value(VariableValueProperty.builder()
.hierarchyExternalId("hierarchyExternalId")
.hierarchyId("hierarchyId")
.hierarchyLogicalId("hierarchyLogicalId")
.propertyExternalId("propertyExternalId")
.propertyId("propertyId")
.propertyLogicalId("propertyLogicalId")
.propertyPath(List.of(PropertyPathDefinitionProperty.builder()
.name("name")
.build()))
.build())
.build()))
.window(MetricWindowProperty.builder()
.tumbling(TumblingWindowProperty.builder()
.interval("interval")
// the properties below are optional
.offset("offset")
.build())
.build())
.build())
.transform(TransformProperty.builder()
.expression("expression")
.variables(List.of(ExpressionVariableProperty.builder()
.name("name")
.value(VariableValueProperty.builder()
.hierarchyExternalId("hierarchyExternalId")
.hierarchyId("hierarchyId")
.hierarchyLogicalId("hierarchyLogicalId")
.propertyExternalId("propertyExternalId")
.propertyId("propertyId")
.propertyLogicalId("propertyLogicalId")
.propertyPath(List.of(PropertyPathDefinitionProperty.builder()
.name("name")
.build()))
.build())
.build()))
.build())
.build())
// the properties below are optional
.dataTypeSpec("dataTypeSpec")
.externalId("externalId")
.id("id")
.logicalId("logicalId")
.unit("unit")
.build()))
.assetModelType("assetModelType")
.enforcedAssetModelInterfaceRelationships(List.of(EnforcedAssetModelInterfaceRelationshipProperty.builder()
.interfaceAssetModelId("interfaceAssetModelId")
.propertyMappings(List.of(EnforcedAssetModelInterfacePropertyMappingProperty.builder()
.interfaceAssetModelPropertyExternalId("interfaceAssetModelPropertyExternalId")
// the properties below are optional
.assetModelPropertyExternalId("assetModelPropertyExternalId")
.assetModelPropertyLogicalId("assetModelPropertyLogicalId")
.build()))
.build()))
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.IoTSiteWise;
var cfnAssetModelProps = new CfnAssetModelProps {
AssetModelName = "assetModelName",
// the properties below are optional
AssetModelCompositeModels = new [] { new AssetModelCompositeModelProperty {
Name = "name",
Type = "type",
// the properties below are optional
ComposedAssetModelId = "composedAssetModelId",
CompositeModelProperties = new [] { new AssetModelPropertyProperty {
DataType = "dataType",
Name = "name",
Type = new PropertyTypeProperty {
TypeName = "typeName",
// the properties below are optional
Attribute = new AttributeProperty {
DefaultValue = "defaultValue"
},
Metric = new MetricProperty {
Expression = "expression",
Variables = new [] { new ExpressionVariableProperty {
Name = "name",
Value = new VariableValueProperty {
HierarchyExternalId = "hierarchyExternalId",
HierarchyId = "hierarchyId",
HierarchyLogicalId = "hierarchyLogicalId",
PropertyExternalId = "propertyExternalId",
PropertyId = "propertyId",
PropertyLogicalId = "propertyLogicalId",
PropertyPath = new [] { new PropertyPathDefinitionProperty {
Name = "name"
} }
}
} },
Window = new MetricWindowProperty {
Tumbling = new TumblingWindowProperty {
Interval = "interval",
// the properties below are optional
Offset = "offset"
}
}
},
Transform = new TransformProperty {
Expression = "expression",
Variables = new [] { new ExpressionVariableProperty {
Name = "name",
Value = new VariableValueProperty {
HierarchyExternalId = "hierarchyExternalId",
HierarchyId = "hierarchyId",
HierarchyLogicalId = "hierarchyLogicalId",
PropertyExternalId = "propertyExternalId",
PropertyId = "propertyId",
PropertyLogicalId = "propertyLogicalId",
PropertyPath = new [] { new PropertyPathDefinitionProperty {
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 = new [] { "path" }
} },
AssetModelDescription = "assetModelDescription",
AssetModelExternalId = "assetModelExternalId",
AssetModelHierarchies = new [] { new AssetModelHierarchyProperty {
ChildAssetModelId = "childAssetModelId",
Name = "name",
// the properties below are optional
ExternalId = "externalId",
Id = "id",
LogicalId = "logicalId"
} },
AssetModelProperties = new [] { new AssetModelPropertyProperty {
DataType = "dataType",
Name = "name",
Type = new PropertyTypeProperty {
TypeName = "typeName",
// the properties below are optional
Attribute = new AttributeProperty {
DefaultValue = "defaultValue"
},
Metric = new MetricProperty {
Expression = "expression",
Variables = new [] { new ExpressionVariableProperty {
Name = "name",
Value = new VariableValueProperty {
HierarchyExternalId = "hierarchyExternalId",
HierarchyId = "hierarchyId",
HierarchyLogicalId = "hierarchyLogicalId",
PropertyExternalId = "propertyExternalId",
PropertyId = "propertyId",
PropertyLogicalId = "propertyLogicalId",
PropertyPath = new [] { new PropertyPathDefinitionProperty {
Name = "name"
} }
}
} },
Window = new MetricWindowProperty {
Tumbling = new TumblingWindowProperty {
Interval = "interval",
// the properties below are optional
Offset = "offset"
}
}
},
Transform = new TransformProperty {
Expression = "expression",
Variables = new [] { new ExpressionVariableProperty {
Name = "name",
Value = new VariableValueProperty {
HierarchyExternalId = "hierarchyExternalId",
HierarchyId = "hierarchyId",
HierarchyLogicalId = "hierarchyLogicalId",
PropertyExternalId = "propertyExternalId",
PropertyId = "propertyId",
PropertyLogicalId = "propertyLogicalId",
PropertyPath = new [] { new PropertyPathDefinitionProperty {
Name = "name"
} }
}
} }
}
},
// the properties below are optional
DataTypeSpec = "dataTypeSpec",
ExternalId = "externalId",
Id = "id",
LogicalId = "logicalId",
Unit = "unit"
} },
AssetModelType = "assetModelType",
EnforcedAssetModelInterfaceRelationships = new [] { new EnforcedAssetModelInterfaceRelationshipProperty {
InterfaceAssetModelId = "interfaceAssetModelId",
PropertyMappings = new [] { new EnforcedAssetModelInterfacePropertyMappingProperty {
InterfaceAssetModelPropertyExternalId = "interfaceAssetModelPropertyExternalId",
// the properties below are optional
AssetModelPropertyExternalId = "assetModelPropertyExternalId",
AssetModelPropertyLogicalId = "assetModelPropertyLogicalId"
} }
} },
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnAssetModelProps := &CfnAssetModelProps{
AssetModelName: jsii.String("assetModelName"),
// the properties below are optional
AssetModelCompositeModels: []interface{}{
&AssetModelCompositeModelProperty{
Name: jsii.String("name"),
Type: jsii.String("type"),
// the properties below are optional
ComposedAssetModelId: jsii.String("composedAssetModelId"),
CompositeModelProperties: []interface{}{
&AssetModelPropertyProperty{
DataType: jsii.String("dataType"),
Name: jsii.String("name"),
Type: &PropertyTypeProperty{
TypeName: jsii.String("typeName"),
// the properties below are optional
Attribute: &AttributeProperty{
DefaultValue: jsii.String("defaultValue"),
},
Metric: &MetricProperty{
Expression: jsii.String("expression"),
Variables: []interface{}{
&ExpressionVariableProperty{
Name: jsii.String("name"),
Value: &VariableValueProperty{
HierarchyExternalId: jsii.String("hierarchyExternalId"),
HierarchyId: jsii.String("hierarchyId"),
HierarchyLogicalId: jsii.String("hierarchyLogicalId"),
PropertyExternalId: jsii.String("propertyExternalId"),
PropertyId: jsii.String("propertyId"),
PropertyLogicalId: jsii.String("propertyLogicalId"),
PropertyPath: []interface{}{
&PropertyPathDefinitionProperty{
Name: jsii.String("name"),
},
},
},
},
},
Window: &MetricWindowProperty{
Tumbling: &TumblingWindowProperty{
Interval: jsii.String("interval"),
// the properties below are optional
Offset: jsii.String("offset"),
},
},
},
Transform: &TransformProperty{
Expression: jsii.String("expression"),
Variables: []interface{}{
&ExpressionVariableProperty{
Name: jsii.String("name"),
Value: &VariableValueProperty{
HierarchyExternalId: jsii.String("hierarchyExternalId"),
HierarchyId: jsii.String("hierarchyId"),
HierarchyLogicalId: jsii.String("hierarchyLogicalId"),
PropertyExternalId: jsii.String("propertyExternalId"),
PropertyId: jsii.String("propertyId"),
PropertyLogicalId: jsii.String("propertyLogicalId"),
PropertyPath: []interface{}{
&PropertyPathDefinitionProperty{
Name: jsii.String("name"),
},
},
},
},
},
},
},
// the properties below are optional
DataTypeSpec: jsii.String("dataTypeSpec"),
ExternalId: jsii.String("externalId"),
Id: jsii.String("id"),
LogicalId: jsii.String("logicalId"),
Unit: jsii.String("unit"),
},
},
Description: jsii.String("description"),
ExternalId: jsii.String("externalId"),
Id: jsii.String("id"),
ParentAssetModelCompositeModelExternalId: jsii.String("parentAssetModelCompositeModelExternalId"),
Path: []*string{
jsii.String("path"),
},
},
},
AssetModelDescription: jsii.String("assetModelDescription"),
AssetModelExternalId: jsii.String("assetModelExternalId"),
AssetModelHierarchies: []interface{}{
&AssetModelHierarchyProperty{
ChildAssetModelId: jsii.String("childAssetModelId"),
Name: jsii.String("name"),
// the properties below are optional
ExternalId: jsii.String("externalId"),
Id: jsii.String("id"),
LogicalId: jsii.String("logicalId"),
},
},
AssetModelProperties: []interface{}{
&AssetModelPropertyProperty{
DataType: jsii.String("dataType"),
Name: jsii.String("name"),
Type: &PropertyTypeProperty{
TypeName: jsii.String("typeName"),
// the properties below are optional
Attribute: &AttributeProperty{
DefaultValue: jsii.String("defaultValue"),
},
Metric: &MetricProperty{
Expression: jsii.String("expression"),
Variables: []interface{}{
&ExpressionVariableProperty{
Name: jsii.String("name"),
Value: &VariableValueProperty{
HierarchyExternalId: jsii.String("hierarchyExternalId"),
HierarchyId: jsii.String("hierarchyId"),
HierarchyLogicalId: jsii.String("hierarchyLogicalId"),
PropertyExternalId: jsii.String("propertyExternalId"),
PropertyId: jsii.String("propertyId"),
PropertyLogicalId: jsii.String("propertyLogicalId"),
PropertyPath: []interface{}{
&PropertyPathDefinitionProperty{
Name: jsii.String("name"),
},
},
},
},
},
Window: &MetricWindowProperty{
Tumbling: &TumblingWindowProperty{
Interval: jsii.String("interval"),
// the properties below are optional
Offset: jsii.String("offset"),
},
},
},
Transform: &TransformProperty{
Expression: jsii.String("expression"),
Variables: []interface{}{
&ExpressionVariableProperty{
Name: jsii.String("name"),
Value: &VariableValueProperty{
HierarchyExternalId: jsii.String("hierarchyExternalId"),
HierarchyId: jsii.String("hierarchyId"),
HierarchyLogicalId: jsii.String("hierarchyLogicalId"),
PropertyExternalId: jsii.String("propertyExternalId"),
PropertyId: jsii.String("propertyId"),
PropertyLogicalId: jsii.String("propertyLogicalId"),
PropertyPath: []interface{}{
&PropertyPathDefinitionProperty{
Name: jsii.String("name"),
},
},
},
},
},
},
},
// the properties below are optional
DataTypeSpec: jsii.String("dataTypeSpec"),
ExternalId: jsii.String("externalId"),
Id: jsii.String("id"),
LogicalId: jsii.String("logicalId"),
Unit: jsii.String("unit"),
},
},
AssetModelType: jsii.String("assetModelType"),
EnforcedAssetModelInterfaceRelationships: []interface{}{
&EnforcedAssetModelInterfaceRelationshipProperty{
InterfaceAssetModelId: jsii.String("interfaceAssetModelId"),
PropertyMappings: []interface{}{
&EnforcedAssetModelInterfacePropertyMappingProperty{
InterfaceAssetModelPropertyExternalId: jsii.String("interfaceAssetModelPropertyExternalId"),
// the properties below are optional
AssetModelPropertyExternalId: jsii.String("assetModelPropertyExternalId"),
AssetModelPropertyLogicalId: jsii.String("assetModelPropertyLogicalId"),
},
},
},
},
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
assetModelCompositeModelsoptionalIResolvable | IResolvable | CfnAssetModel.asset_model_composite_modelsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, AssetModelCompositeModelProperty]]]assetModelCompositeModelsoptionalIResolvableAssetModelCompositeModelsoptionalIResolvableAssetModelCompositeModelsoptionalinterface{} #notes
It groups properties (such as attributes, measurements, transforms, and metrics) and child composite models that model parts of your industrial equipment. Each composite model has a type that defines the properties that the composite model supports. Use composite models to define alarms on this asset model.
When creating custom composite models, you need to use CreateAssetModelCompositeModel . For more information, see Creating custom composite models (Components) in the AWS IoT SiteWise User Guide .
assetModelDescriptionoptionalstringasset_model_descriptionoptionalstrassetModelDescriptionoptionalStringAssetModelDescriptionoptionalstringAssetModelDescriptionoptional*string #assetModelExternalIdoptionalstringasset_model_external_idoptionalstrassetModelExternalIdoptionalStringAssetModelExternalIdoptionalstringAssetModelExternalIdoptional*string #For more information, see Using external IDs in the AWS IoT SiteWise User Guide .
assetModelHierarchiesoptionalIResolvable | IResolvable | CfnAssetModel.asset_model_hierarchiesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, AssetModelHierarchyProperty]]]assetModelHierarchiesoptionalIResolvableAssetModelHierarchiesoptionalIResolvableAssetModelHierarchiesoptionalinterface{} #notes
Each hierarchy specifies an asset model whose assets can be children of any other assets created from this asset model. For more information, see Asset hierarchies in the AWS IoT SiteWise User Guide .
You can specify up to 10 hierarchies per asset model. For more information, see Quotas in the AWS IoT SiteWise User Guide .
assetModelNamestringasset_model_namestrassetModelNameStringAssetModelNamestringAssetModelName*string required #assetModelPropertiesoptionalIResolvable | IResolvable | CfnAssetModel.asset_model_propertiesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, AssetModelPropertyProperty]]]assetModelPropertiesoptionalIResolvableAssetModelPropertiesoptionalIResolvableAssetModelPropertiesoptionalinterface{} #notes
For more information, see Asset properties in the AWS IoT SiteWise User Guide .
You can specify up to 200 properties per asset model. For more information, see Quotas in the AWS IoT SiteWise User Guide .
assetModelTypeoptionalstringasset_model_typeoptionalstrassetModelTypeoptionalStringAssetModelTypeoptionalstringAssetModelTypeoptional*string #notes
- ASSET_MODEL – (default) An asset model that you can use to create assets. Can't be included as a component in another asset model.
- COMPONENT_MODEL – A reusable component that you can include in the composite models of other asset models. You can't create assets directly from this type of asset model.
- INTERFACE – An interface is a type of model that defines a standard structure that can be applied to different asset models.
enforcedAssetModelInterfaceRelationshipsoptionalIResolvable | IResolvable | CfnAssetModel.enforced_asset_model_interface_relationshipsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, EnforcedAssetModelInterfaceRelationshipProperty]]]enforcedAssetModelInterfaceRelationshipsoptionalIResolvableEnforcedAssetModelInterfaceRelationshipsoptionalIResolvableEnforcedAssetModelInterfaceRelationshipsoptionalinterface{} #