Interface CfnAssetModel.IAssetModelCompositeModelProperty
Contains information about a composite model in an asset model.
Namespace: Amazon.CDK.AWS.IoTSiteWise
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IAssetModelCompositeModelProperty
Syntax (vb)
Public Interface IAssetModelCompositeModelProperty
Remarks
This object contains the asset property definitions that you define in the composite model.
ExampleMetadata: fixture=_generated
Examples
// 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 assetModelCompositeModelProperty = 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" }
};
Synopsis
Properties
ComposedAssetModelId | The ID of a component model which is reused to create this composite model. |
CompositeModelProperties | The asset property definitions for this composite model. |
Description | The description of the composite model. |
ExternalId | The external ID of a composite model on this asset model. |
Id | The ID of the asset model composite model. |
Name | The name of the composite model. |
ParentAssetModelCompositeModelExternalId | The external ID of the parent composite model. |
Path | The structured path to the property from the root of the asset using property names. |
Type | The type of the composite model. |
Properties
ComposedAssetModelId
The ID of a component model which is reused to create this composite model.
virtual string ComposedAssetModelId { get; }
Property Value
System.String
Remarks
CompositeModelProperties
The asset property definitions for this composite model.
virtual object CompositeModelProperties { get; }
Property Value
System.Object
Remarks
Description
The description of the composite model.
virtual string Description { get; }
Property Value
System.String
Remarks
If the composite model is a component-model-based
composite model, the description is inherited from the COMPONENT_MODEL
asset model and cannot be changed.
ExternalId
The external ID of a composite model on this asset model.
virtual string ExternalId { get; }
Property Value
System.String
Remarks
For more information, see Using external IDs in the AWS IoT SiteWise User Guide .
One of ExternalId
or Path
must be specified.
Id
The ID of the asset model composite model.
virtual string Id { get; }
Property Value
System.String
Remarks
This is a return value and can't be set.
Name
The name of the composite model.
string Name { get; }
Property Value
System.String
Remarks
ParentAssetModelCompositeModelExternalId
The external ID of the parent composite model.
virtual string ParentAssetModelCompositeModelExternalId { get; }
Property Value
System.String
Remarks
For more information, see Using external IDs in the AWS IoT SiteWise User Guide .
Path
The structured path to the property from the root of the asset using property names.
virtual string[] Path { get; }
Property Value
System.String[]
Remarks
Path is used as the ID if the asset model is a derived composite model.
One of ExternalId
or Path
must be specified.
Type
The type of the composite model.
string Type { get; }
Property Value
System.String
Remarks
For alarm composite models, this type is AWS/ALARM
.