Interface CfnAssetModel.PropertyTypeProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnAssetModel.PropertyTypeProperty.Jsii$Proxy
Enclosing class:
CfnAssetModel

@Stability(Stable) public static interface CfnAssetModel.PropertyTypeProperty extends software.amazon.jsii.JsiiSerializable
Contains a property type, which can be one of attribute , measurement , metric , or transform .

Example:

 // 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();
 

See Also: