-
Notifications
You must be signed in to change notification settings - Fork 17
/
CfnAssetModel_TransformProperty.go
53 lines (50 loc) · 2.59 KB
/
CfnAssetModel_TransformProperty.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
package awsiotsitewise
// Contains an asset transform property.
//
// A transform is a one-to-one mapping of a property's data points from one form to another. For example, you can use a transform to convert a Celsius data stream to Fahrenheit by applying the transformation expression to each data point of the Celsius stream. A transform can only have a data type of `DOUBLE` and consume properties with data types of `INTEGER` or `DOUBLE` .
//
// For more information, see [Transforms](https://docs.aws.amazon.com/iot-sitewise/latest/userguide/asset-properties.html#transforms) in the *AWS IoT SiteWise User Guide* .
//
// 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"
//
// transformProperty := &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-transform.html
//
type CfnAssetModel_TransformProperty struct {
// The mathematical expression that defines the transformation function.
//
// You can specify up to 10 variables per expression. You can specify up to 10 functions per expression.
//
// For more information, see [Quotas](https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) in the *AWS IoT SiteWise User Guide* .
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotsitewise-assetmodel-transform.html#cfn-iotsitewise-assetmodel-transform-expression
//
Expression *string `field:"required" json:"expression" yaml:"expression"`
// The list of variables used in the expression.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotsitewise-assetmodel-transform.html#cfn-iotsitewise-assetmodel-transform-variables
//
Variables interface{} `field:"required" json:"variables" yaml:"variables"`
}