Class CfnAssetModel.AssetModelPropertyProperty
Contains information about an asset model property.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.IoTSiteWise
Assembly: Amazon.CDK.AWS.IoTSiteWise.dll
Syntax (csharp)
public class AssetModelPropertyProperty : Object, CfnAssetModel.IAssetModelPropertyProperty
Syntax (vb)
Public Class AssetModelPropertyProperty
Inherits Object
Implements CfnAssetModel.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",
LogicalId = "logicalId",
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 {
PropertyLogicalId = "propertyLogicalId",
// the properties below are optional
HierarchyLogicalId = "hierarchyLogicalId"
}
} },
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 {
PropertyLogicalId = "propertyLogicalId",
// the properties below are optional
HierarchyLogicalId = "hierarchyLogicalId"
}
} }
}
},
// the properties below are optional
DataTypeSpec = "dataTypeSpec",
Unit = "unit"
};
Synopsis
Constructors
AssetModelPropertyProperty() |
Properties
DataType | The data type of the asset model property. |
DataTypeSpec | The data type of the structure for this property. |
LogicalId | 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 |
Constructors
AssetModelPropertyProperty()
public AssetModelPropertyProperty()
Properties
DataType
The data type of the asset model property.
public string DataType { get; set; }
Property Value
System.String
Remarks
The value can be STRING
, INTEGER
, DOUBLE
, BOOLEAN
, or STRUCT
.
DataTypeSpec
The data type of the structure for this property.
public string DataTypeSpec { get; set; }
Property Value
System.String
Remarks
This parameter exists on properties that have the STRUCT
data type.
LogicalId
The LogicalID
of the asset model property.
public string LogicalId { get; set; }
Property Value
System.String
Remarks
The maximum length is 256 characters, with the pattern [^\ u0000-\ u001F\ u007F]+
.
Name
The name of the asset model property.
public string Name { get; set; }
Property Value
System.String
Remarks
The maximum length is 256 characters with the pattern [^\ u0000-\ u001F\ u007F]+
.
Type
Contains a property type, which can be one of Attribute
, Measurement
, Metric
, or Transform
.
public object Type { get; set; }
Property Value
System.Object
Remarks
Unit
The unit of the asset model property, such as Newtons
or RPM
.
public string Unit { get; set; }
Property Value
System.String