package awsiotsitewise // 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 "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{ // PropertyLogicalId: jsii.String("propertyLogicalId"), // // // the properties below are optional // HierarchyLogicalId: jsii.String("hierarchyLogicalId"), // }, // }, // }, // 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{ // PropertyLogicalId: jsii.String("propertyLogicalId"), // // // the properties below are optional // HierarchyLogicalId: jsii.String("hierarchyLogicalId"), // }, // }, // }, // }, // } // // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotsitewise-assetmodel-propertytype.html // type CfnAssetModel_PropertyTypeProperty struct { // The type of property type, which can be one of `Attribute` , `Measurement` , `Metric` , or `Transform` . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotsitewise-assetmodel-propertytype.html#cfn-iotsitewise-assetmodel-propertytype-typename // TypeName *string `field:"required" json:"typeName" yaml:"typeName"` // Specifies an asset attribute property. // // An attribute generally contains static information, such as the serial number of an [industrial IoT](https://docs.aws.amazon.com/https://en.wikipedia.org/wiki/Internet_of_things#Industrial_applications) wind turbine. // // This is required if the `TypeName` is `Attribute` and has a `DefaultValue` . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotsitewise-assetmodel-propertytype.html#cfn-iotsitewise-assetmodel-propertytype-attribute // Attribute interface{} `field:"optional" json:"attribute" yaml:"attribute"` // 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. // // This is required if the `TypeName` is `Metric` . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotsitewise-assetmodel-propertytype.html#cfn-iotsitewise-assetmodel-propertytype-metric // Metric interface{} `field:"optional" json:"metric" yaml:"metric"` // 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. // // This is required if the `TypeName` is `Transform` . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotsitewise-assetmodel-propertytype.html#cfn-iotsitewise-assetmodel-propertytype-transform // Transform interface{} `field:"optional" json:"transform" yaml:"transform"` }