Class CfnAssetModel.PropertyTypeProperty
Contains a property type, which can be one of Attribute
, Measurement
, Metric
, or Transform
.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.IoTSiteWise
Assembly: Amazon.CDK.AWS.IoTSiteWise.dll
Syntax (csharp)
public class PropertyTypeProperty : Object, CfnAssetModel.IPropertyTypeProperty
Syntax (vb)
Public Class PropertyTypeProperty
Inherits Object
Implements CfnAssetModel.IPropertyTypeProperty
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 propertyTypeProperty = 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"
}
} }
}
};
Synopsis
Constructors
PropertyTypeProperty() |
Properties
Attribute | Specifies an asset attribute property. |
Metric | Specifies an asset metric property. |
Transform | Specifies an asset transform property. |
TypeName | The type of property type, which can be one of |
Constructors
PropertyTypeProperty()
public PropertyTypeProperty()
Properties
Attribute
Specifies an asset attribute property.
public object Attribute { get; set; }
Property Value
System.Object
Remarks
An attribute generally contains static information, such as the serial number of an industrial IoT wind turbine.
This is required if the TypeName
is Attribute
and has a DefaultValue
.
Metric
Specifies an asset metric property.
public object Metric { get; set; }
Property Value
System.Object
Remarks
A metric contains a mathematical expression that uses aggregate functions to process all input data points over a time interval and output a single data point, such as to calculate the average hourly temperature.
This is required if the TypeName
is Metric
.
Transform
Specifies an asset transform property.
public object Transform { get; set; }
Property Value
System.Object
Remarks
A transform contains a mathematical expression that maps a property's data points from one form to another, such as a unit conversion from Celsius to Fahrenheit.
This is required if the TypeName
is Transform
.
TypeName
The type of property type, which can be one of Attribute
, Measurement
, Metric
, or Transform
.
public string TypeName { get; set; }
Property Value
System.String