-
Notifications
You must be signed in to change notification settings - Fork 17
/
awsiotanalytics_CfnDatasetProps.go
151 lines (148 loc) · 5.86 KB
/
awsiotanalytics_CfnDatasetProps.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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
package awsiotanalytics
import (
"github.com/aws/aws-cdk-go/awscdk/v2"
)
// Properties for defining a `CfnDataset`.
//
// 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"
//
// cfnDatasetProps := &cfnDatasetProps{
// actions: []interface{}{
// &actionProperty{
// actionName: jsii.String("actionName"),
//
// // the properties below are optional
// containerAction: &containerActionProperty{
// executionRoleArn: jsii.String("executionRoleArn"),
// image: jsii.String("image"),
// resourceConfiguration: &resourceConfigurationProperty{
// computeType: jsii.String("computeType"),
// volumeSizeInGb: jsii.Number(123),
// },
//
// // the properties below are optional
// variables: []interface{}{
// &variableProperty{
// variableName: jsii.String("variableName"),
//
// // the properties below are optional
// datasetContentVersionValue: &datasetContentVersionValueProperty{
// datasetName: jsii.String("datasetName"),
// },
// doubleValue: jsii.Number(123),
// outputFileUriValue: &outputFileUriValueProperty{
// fileName: jsii.String("fileName"),
// },
// stringValue: jsii.String("stringValue"),
// },
// },
// },
// queryAction: &queryActionProperty{
// sqlQuery: jsii.String("sqlQuery"),
//
// // the properties below are optional
// filters: []interface{}{
// &filterProperty{
// deltaTime: &deltaTimeProperty{
// offsetSeconds: jsii.Number(123),
// timeExpression: jsii.String("timeExpression"),
// },
// },
// },
// },
// },
// },
//
// // the properties below are optional
// contentDeliveryRules: []interface{}{
// &datasetContentDeliveryRuleProperty{
// destination: &datasetContentDeliveryRuleDestinationProperty{
// iotEventsDestinationConfiguration: &iotEventsDestinationConfigurationProperty{
// inputName: jsii.String("inputName"),
// roleArn: jsii.String("roleArn"),
// },
// s3DestinationConfiguration: &s3DestinationConfigurationProperty{
// bucket: jsii.String("bucket"),
// key: jsii.String("key"),
// roleArn: jsii.String("roleArn"),
//
// // the properties below are optional
// glueConfiguration: &glueConfigurationProperty{
// databaseName: jsii.String("databaseName"),
// tableName: jsii.String("tableName"),
// },
// },
// },
//
// // the properties below are optional
// entryName: jsii.String("entryName"),
// },
// },
// datasetName: jsii.String("datasetName"),
// lateDataRules: []interface{}{
// &lateDataRuleProperty{
// ruleConfiguration: &lateDataRuleConfigurationProperty{
// deltaTimeSessionWindowConfiguration: &deltaTimeSessionWindowConfigurationProperty{
// timeoutInMinutes: jsii.Number(123),
// },
// },
//
// // the properties below are optional
// ruleName: jsii.String("ruleName"),
// },
// },
// retentionPeriod: &retentionPeriodProperty{
// numberOfDays: jsii.Number(123),
// unlimited: jsii.Boolean(false),
// },
// tags: []cfnTag{
// &cfnTag{
// key: jsii.String("key"),
// value: jsii.String("value"),
// },
// },
// triggers: []interface{}{
// &triggerProperty{
// schedule: &scheduleProperty{
// scheduleExpression: jsii.String("scheduleExpression"),
// },
// triggeringDataset: &triggeringDatasetProperty{
// datasetName: jsii.String("datasetName"),
// },
// },
// },
// versioningConfiguration: &versioningConfigurationProperty{
// maxVersions: jsii.Number(123),
// unlimited: jsii.Boolean(false),
// },
// }
//
type CfnDatasetProps struct {
// The `DatasetAction` objects that automatically create the dataset contents.
Actions interface{} `field:"required" json:"actions" yaml:"actions"`
// When dataset contents are created they are delivered to destinations specified here.
ContentDeliveryRules interface{} `field:"optional" json:"contentDeliveryRules" yaml:"contentDeliveryRules"`
// The name of the dataset.
DatasetName *string `field:"optional" json:"datasetName" yaml:"datasetName"`
// A list of data rules that send notifications to CloudWatch, when data arrives late.
//
// To specify `lateDataRules` , the dataset must use a [DeltaTimer](https://docs.aws.amazon.com/iotanalytics/latest/APIReference/API_DeltaTime.html) filter.
LateDataRules interface{} `field:"optional" json:"lateDataRules" yaml:"lateDataRules"`
// Optional.
//
// How long, in days, message data is kept for the dataset.
RetentionPeriod interface{} `field:"optional" json:"retentionPeriod" yaml:"retentionPeriod"`
// Metadata which can be used to manage the data set.
//
// For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
Tags *[]*awscdk.CfnTag `field:"optional" json:"tags" yaml:"tags"`
// The `DatasetTrigger` objects that specify when the dataset is automatically updated.
Triggers interface{} `field:"optional" json:"triggers" yaml:"triggers"`
// Optional.
//
// How many versions of dataset contents are kept. If not specified or set to null, only the latest version plus the latest succeeded version (if they are different) are kept for the time period specified by the `retentionPeriod` parameter. For more information, see [Keeping Multiple Versions of AWS IoT Analytics datasets](https://docs.aws.amazon.com/iotanalytics/latest/userguide/getting-started.html#aws-iot-analytics-dataset-versions) in the *AWS IoT Analytics User Guide* .
VersioningConfiguration interface{} `field:"optional" json:"versioningConfiguration" yaml:"versioningConfiguration"`
}