Interface CfnAssetModel.IAssetModelPropertyProperty
Contains information about an asset model property.
Namespace: Amazon.CDK.AWS.IoTSiteWise
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IAssetModelPropertyProperty
Syntax (vb)
Public Interface IAssetModelPropertyProperty
Remarks
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 assetModelPropertyProperty = 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"
};
Synopsis
Properties
Data |
The data type of the asset model property. |
Data |
The data type of the structure for this property. |
External |
The external ID of the asset property. |
Id | The ID of the property. |
Logical |
The |
Name | The name of the asset model property. |
Type | Contains a property type, which can be one of |
Unit | The unit of the asset model property, such as |
Properties
DataType
The data type of the asset model property.
string DataType { get; }
Property Value
System.
Remarks
If you specify STRUCT
, you must also specify dataTypeSpec
to identify the type of the structure for this property.
DataTypeSpec
The data type of the structure for this property.
virtual string DataTypeSpec { get; }
Property Value
System.
Remarks
This parameter exists on properties that have the STRUCT
data type.
ExternalId
The external ID of the asset property.
virtual string ExternalId { get; }
Property Value
System.
Remarks
For more information, see Using external IDs in the AWS IoT SiteWise User Guide .
One of ExternalId
or LogicalId
must be specified.
Id
The ID of the property.
virtual string Id { get; }
Property Value
System.
Remarks
This is a return value and can't be set.
LogicalId
The LogicalID
of the asset model property.
virtual string LogicalId { get; }
Property Value
System.
Remarks
One of ExternalId
or LogicalId
must be specified.
Name
The name of the asset model property.
string Name { get; }
Property Value
System.
Remarks
Type
Contains a property type, which can be one of attribute
, measurement
, metric
, or transform
.
object Type { get; }
Property Value
System.
Remarks
Unit
The unit of the asset model property, such as Newtons
or RPM
.
virtual string Unit { get; }
Property Value
System.