-
Notifications
You must be signed in to change notification settings - Fork 17
/
CfnAssetModel_PropertyTypeProperty.go
96 lines (93 loc) · 4.29 KB
/
CfnAssetModel_PropertyTypeProperty.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
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{
// 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"),
// },
// },
// },
// },
// },
// },
// }
//
// 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 [IIoT](https://docs.aws.amazon.com/https://en.wikipedia.org/wiki/Internet_of_things#Industrial_applications) wind turbine.
// 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.
// 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.
// 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"`
}