PropertyTypeProperty Struct
Contains a property type, which can be one of attribute , measurement , metric , or transform .
| Source | |
|---|---|
| Type last changed |
Example
ts
// 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 propertyTypeProperty: iotsitewise.CfnAssetModel.PropertyTypeProperty = {
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',
}],
},
}],
},
};
python
# 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
property_type_property = 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"
)]
)
)]
)
)
java
// 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.*;
PropertyTypeProperty propertyTypeProperty = 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();
csharp
// 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 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 {
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"
} }
}
} }
}
};
go
// 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"
propertyTypeProperty := &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"),
},
},
},
},
},
},
}
Properties
attributeoptionalIResolvable | CfnAssetModel.AttributePropertyattributeoptionaltyping.Union[IResolvable, AttributeProperty]attributeoptionalIResolvableAttributeoptionalIResolvableAttributeoptionalinterface{} #Specifies an asset attribute property.
An attribute generally contains static information, such as the serial number of an IIoT wind turbine.
metricoptionalIResolvable | CfnAssetModel.MetricPropertymetricoptionaltyping.Union[IResolvable, MetricProperty]metricoptionalIResolvableMetricoptionalIResolvableMetricoptionalinterface{} #Specifies an asset metric property.
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.
transformoptionalIResolvable | CfnAssetModel.TransformPropertytransformoptionaltyping.Union[IResolvable, TransformProperty]transformoptionalIResolvableTransformoptionalIResolvableTransformoptionalinterface{} #Specifies an asset transform property.
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.
The type of property type, which can be one of `Attribute` , `Measurement` , `Metric` , or `Transform` .