@aws-cdk/aws-redshift-alpha 2.0.0-rc.24 → 2.4.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/.jsii +420 -1482
  2. package/.jsii.tabl.json +2039 -0
  3. package/.warnings.jsii.js +139 -0
  4. package/LICENSE +1 -1
  5. package/NOTICE +1 -1
  6. package/README.md +31 -9
  7. package/lib/cluster.js +9 -5
  8. package/lib/database-secret.js +4 -2
  9. package/lib/endpoint.js +2 -2
  10. package/lib/parameter-group.js +4 -2
  11. package/lib/private/database-query-provider/privileges.d.ts +1 -1
  12. package/lib/private/database-query-provider/privileges.js +4 -3
  13. package/lib/private/database-query-provider/redshift-data.d.ts +2 -0
  14. package/lib/private/database-query-provider/redshift-data.js +37 -0
  15. package/lib/private/database-query-provider/table.d.ts +2 -3
  16. package/lib/private/database-query-provider/table.js +77 -16
  17. package/lib/private/database-query-provider/types.d.ts +22 -0
  18. package/lib/private/database-query-provider/types.js +24 -0
  19. package/lib/private/database-query-provider/user.d.ts +1 -1
  20. package/lib/private/database-query-provider/user.js +5 -4
  21. package/lib/private/database-query-provider/util.d.ts +5 -3
  22. package/lib/private/database-query-provider/util.js +27 -34
  23. package/lib/private/database-query.js +1 -1
  24. package/lib/private/handler-props.d.ts +4 -2
  25. package/lib/private/handler-props.js +1 -1
  26. package/lib/private/privileges.js +1 -1
  27. package/lib/redshift-canned-metrics.generated.d.ts +222 -67
  28. package/lib/redshift-canned-metrics.generated.js +105 -25
  29. package/lib/subnet-group.js +4 -2
  30. package/lib/table.d.ts +88 -0
  31. package/lib/table.js +71 -5
  32. package/lib/user.js +5 -2
  33. package/package.json +14 -16
  34. package/rosetta/_generated.ts-fixture +6 -0
  35. package/rosetta/cluster.ts-fixture +3 -3
  36. package/rosetta/default.ts-fixture +2 -2
@@ -1,192 +1,347 @@
1
1
  export declare class RedshiftMetrics {
2
- static cpuUtilizationAverage(dimensions: {
2
+ static commitQueueLengthAverage(dimensions: {
3
3
  ClusterIdentifier: string;
4
4
  }): {
5
5
  namespace: string;
6
6
  metricName: string;
7
- dimensions: {
7
+ dimensionsMap: {
8
8
  ClusterIdentifier: string;
9
9
  };
10
10
  statistic: string;
11
11
  };
12
- static percentageDiskSpaceUsedAverage(dimensions: {
12
+ static concurrencyScalingActiveClustersAverage(dimensions: {
13
13
  ClusterIdentifier: string;
14
14
  }): {
15
15
  namespace: string;
16
16
  metricName: string;
17
- dimensions: {
17
+ dimensionsMap: {
18
18
  ClusterIdentifier: string;
19
19
  };
20
20
  statistic: string;
21
21
  };
22
- static databaseConnectionsAverage(dimensions: {
22
+ static concurrencyScalingSecondsAverage(dimensions: {
23
23
  ClusterIdentifier: string;
24
24
  }): {
25
25
  namespace: string;
26
26
  metricName: string;
27
- dimensions: {
27
+ dimensionsMap: {
28
28
  ClusterIdentifier: string;
29
29
  };
30
30
  statistic: string;
31
31
  };
32
- static healthStatusSum(dimensions: {
32
+ static cpuUtilizationAverage(dimensions: {
33
+ ClusterIdentifier: string;
34
+ }): MetricWithDims<{
35
+ ClusterIdentifier: string;
36
+ }>;
37
+ static cpuUtilizationAverage(dimensions: {
38
+ ClusterIdentifier: string;
39
+ NodeID: string;
40
+ }): MetricWithDims<{
41
+ ClusterIdentifier: string;
42
+ NodeID: string;
43
+ }>;
44
+ static databaseConnectionsAverage(dimensions: {
33
45
  ClusterIdentifier: string;
34
46
  }): {
35
47
  namespace: string;
36
48
  metricName: string;
37
- dimensions: {
49
+ dimensionsMap: {
38
50
  ClusterIdentifier: string;
39
51
  };
40
52
  statistic: string;
41
53
  };
42
- static maintenanceModeSum(dimensions: {
54
+ static healthStatusSum(dimensions: {
43
55
  ClusterIdentifier: string;
44
56
  }): {
45
57
  namespace: string;
46
58
  metricName: string;
47
- dimensions: {
59
+ dimensionsMap: {
48
60
  ClusterIdentifier: string;
49
61
  };
50
62
  statistic: string;
51
63
  };
52
- static networkReceiveThroughputSum(dimensions: {
64
+ static maintenanceModeSum(dimensions: {
53
65
  ClusterIdentifier: string;
54
66
  }): {
55
67
  namespace: string;
56
68
  metricName: string;
57
- dimensions: {
69
+ dimensionsMap: {
58
70
  ClusterIdentifier: string;
59
71
  };
60
72
  statistic: string;
61
73
  };
62
- static networkTransmitThroughputSum(dimensions: {
74
+ static maxConfiguredConcurrencyScalingClustersSum(dimensions: {
63
75
  ClusterIdentifier: string;
64
76
  }): {
65
77
  namespace: string;
66
78
  metricName: string;
67
- dimensions: {
79
+ dimensionsMap: {
68
80
  ClusterIdentifier: string;
69
81
  };
70
82
  statistic: string;
71
83
  };
72
- static queriesCompletedPerSecondSum(dimensions: {
84
+ static networkReceiveThroughputSum(dimensions: {
85
+ ClusterIdentifier: string;
86
+ }): MetricWithDims<{
87
+ ClusterIdentifier: string;
88
+ }>;
89
+ static networkReceiveThroughputSum(dimensions: {
90
+ ClusterIdentifier: string;
91
+ NodeID: string;
92
+ }): MetricWithDims<{
93
+ ClusterIdentifier: string;
94
+ NodeID: string;
95
+ }>;
96
+ static networkTransmitThroughputSum(dimensions: {
97
+ ClusterIdentifier: string;
98
+ }): MetricWithDims<{
99
+ ClusterIdentifier: string;
100
+ }>;
101
+ static networkTransmitThroughputSum(dimensions: {
102
+ ClusterIdentifier: string;
103
+ NodeID: string;
104
+ }): MetricWithDims<{
105
+ ClusterIdentifier: string;
106
+ NodeID: string;
107
+ }>;
108
+ static numExceededSchemaQuotasAverage(dimensions: {
73
109
  ClusterIdentifier: string;
74
110
  }): {
75
111
  namespace: string;
76
112
  metricName: string;
77
- dimensions: {
113
+ dimensionsMap: {
78
114
  ClusterIdentifier: string;
79
115
  };
80
116
  statistic: string;
81
117
  };
82
- static queryDurationAverage(dimensions: {
118
+ static percentageDiskSpaceUsedAverage(dimensions: {
83
119
  ClusterIdentifier: string;
84
120
  }): {
85
121
  namespace: string;
86
122
  metricName: string;
87
- dimensions: {
123
+ dimensionsMap: {
88
124
  ClusterIdentifier: string;
89
125
  };
90
126
  statistic: string;
91
127
  };
92
- static queryRuntimeBreakdownSum(dimensions: {
128
+ static percentageQuotaUsedAverage(dimensions: {
93
129
  ClusterIdentifier: string;
94
130
  }): {
95
131
  namespace: string;
96
132
  metricName: string;
97
- dimensions: {
133
+ dimensionsMap: {
98
134
  ClusterIdentifier: string;
99
135
  };
100
136
  statistic: string;
101
137
  };
102
- static readIopsSum(dimensions: {
138
+ static queriesCompletedPerSecondSum(dimensions: {
139
+ ClusterIdentifier: string;
140
+ }): MetricWithDims<{
141
+ ClusterIdentifier: string;
142
+ }>;
143
+ static queriesCompletedPerSecondSum(dimensions: {
144
+ ClusterIdentifier: string;
145
+ wlmid: string;
146
+ }): MetricWithDims<{
147
+ ClusterIdentifier: string;
148
+ wlmid: string;
149
+ }>;
150
+ static queryDurationAverage(dimensions: {
103
151
  ClusterIdentifier: string;
104
152
  }): {
105
153
  namespace: string;
106
154
  metricName: string;
107
- dimensions: {
155
+ dimensionsMap: {
108
156
  ClusterIdentifier: string;
109
157
  };
110
158
  statistic: string;
111
159
  };
112
- static readLatencyAverage(dimensions: {
160
+ static queryRuntimeBreakdownSum(dimensions: {
113
161
  ClusterIdentifier: string;
114
162
  }): {
115
163
  namespace: string;
116
164
  metricName: string;
117
- dimensions: {
165
+ dimensionsMap: {
118
166
  ClusterIdentifier: string;
119
167
  };
120
168
  statistic: string;
121
169
  };
170
+ static readIopsSum(dimensions: {
171
+ ClusterIdentifier: string;
172
+ }): MetricWithDims<{
173
+ ClusterIdentifier: string;
174
+ }>;
175
+ static readIopsSum(dimensions: {
176
+ ClusterIdentifier: string;
177
+ NodeID: string;
178
+ }): MetricWithDims<{
179
+ ClusterIdentifier: string;
180
+ NodeID: string;
181
+ }>;
182
+ static readLatencyAverage(dimensions: {
183
+ ClusterIdentifier: string;
184
+ }): MetricWithDims<{
185
+ ClusterIdentifier: string;
186
+ }>;
187
+ static readLatencyAverage(dimensions: {
188
+ ClusterIdentifier: string;
189
+ NodeID: string;
190
+ }): MetricWithDims<{
191
+ ClusterIdentifier: string;
192
+ NodeID: string;
193
+ }>;
122
194
  static readThroughputSum(dimensions: {
123
195
  ClusterIdentifier: string;
196
+ }): MetricWithDims<{
197
+ ClusterIdentifier: string;
198
+ }>;
199
+ static readThroughputSum(dimensions: {
200
+ ClusterIdentifier: string;
201
+ NodeID: string;
202
+ }): MetricWithDims<{
203
+ ClusterIdentifier: string;
204
+ NodeID: string;
205
+ }>;
206
+ static storageUsedAverage(dimensions: {
207
+ ClusterIdentifier: string;
124
208
  }): {
125
209
  namespace: string;
126
210
  metricName: string;
127
- dimensions: {
211
+ dimensionsMap: {
128
212
  ClusterIdentifier: string;
129
213
  };
130
214
  statistic: string;
131
215
  };
132
- static wlmQueriesCompletedPerSecondAverage(dimensions: {
216
+ static totalTableCountAverage(dimensions: {
133
217
  ClusterIdentifier: string;
134
218
  }): {
135
219
  namespace: string;
136
220
  metricName: string;
137
- dimensions: {
221
+ dimensionsMap: {
138
222
  ClusterIdentifier: string;
139
223
  };
140
224
  statistic: string;
141
225
  };
226
+ static wlmQueriesCompletedPerSecondAverage(dimensions: {
227
+ ClusterIdentifier: string;
228
+ }): MetricWithDims<{
229
+ ClusterIdentifier: string;
230
+ }>;
231
+ static wlmQueriesCompletedPerSecondAverage(dimensions: {
232
+ ClusterIdentifier: string;
233
+ wlmid: string;
234
+ }): MetricWithDims<{
235
+ ClusterIdentifier: string;
236
+ wlmid: string;
237
+ }>;
238
+ static wlmQueriesCompletedPerSecondAverage(dimensions: {
239
+ ClusterIdentifier: string;
240
+ QueueName: string;
241
+ }): MetricWithDims<{
242
+ ClusterIdentifier: string;
243
+ QueueName: string;
244
+ }>;
142
245
  static wlmQueryDurationAverage(dimensions: {
143
246
  ClusterIdentifier: string;
144
- }): {
145
- namespace: string;
146
- metricName: string;
147
- dimensions: {
148
- ClusterIdentifier: string;
149
- };
150
- statistic: string;
151
- };
247
+ }): MetricWithDims<{
248
+ ClusterIdentifier: string;
249
+ }>;
250
+ static wlmQueryDurationAverage(dimensions: {
251
+ ClusterIdentifier: string;
252
+ wlmid: string;
253
+ }): MetricWithDims<{
254
+ ClusterIdentifier: string;
255
+ wlmid: string;
256
+ }>;
257
+ static wlmQueryDurationAverage(dimensions: {
258
+ ClusterIdentifier: string;
259
+ QueueName: string;
260
+ }): MetricWithDims<{
261
+ ClusterIdentifier: string;
262
+ QueueName: string;
263
+ }>;
152
264
  static wlmQueueLengthSum(dimensions: {
153
265
  ClusterIdentifier: string;
154
- }): {
155
- namespace: string;
156
- metricName: string;
157
- dimensions: {
158
- ClusterIdentifier: string;
159
- };
160
- statistic: string;
161
- };
266
+ }): MetricWithDims<{
267
+ ClusterIdentifier: string;
268
+ }>;
269
+ static wlmQueueLengthSum(dimensions: {
270
+ ClusterIdentifier: string;
271
+ QueueName: string;
272
+ }): MetricWithDims<{
273
+ ClusterIdentifier: string;
274
+ QueueName: string;
275
+ }>;
162
276
  static writeIopsSum(dimensions: {
163
277
  ClusterIdentifier: string;
164
- }): {
165
- namespace: string;
166
- metricName: string;
167
- dimensions: {
168
- ClusterIdentifier: string;
169
- };
170
- statistic: string;
171
- };
278
+ }): MetricWithDims<{
279
+ ClusterIdentifier: string;
280
+ }>;
281
+ static writeIopsSum(dimensions: {
282
+ ClusterIdentifier: string;
283
+ NodeID: string;
284
+ }): MetricWithDims<{
285
+ ClusterIdentifier: string;
286
+ NodeID: string;
287
+ }>;
172
288
  static writeLatencyAverage(dimensions: {
173
289
  ClusterIdentifier: string;
174
- }): {
175
- namespace: string;
176
- metricName: string;
177
- dimensions: {
178
- ClusterIdentifier: string;
179
- };
180
- statistic: string;
181
- };
290
+ }): MetricWithDims<{
291
+ ClusterIdentifier: string;
292
+ }>;
293
+ static writeLatencyAverage(dimensions: {
294
+ ClusterIdentifier: string;
295
+ NodeID: string;
296
+ }): MetricWithDims<{
297
+ ClusterIdentifier: string;
298
+ NodeID: string;
299
+ }>;
182
300
  static writeThroughputSum(dimensions: {
183
301
  ClusterIdentifier: string;
184
- }): {
185
- namespace: string;
186
- metricName: string;
187
- dimensions: {
188
- ClusterIdentifier: string;
189
- };
190
- statistic: string;
191
- };
302
+ }): MetricWithDims<{
303
+ ClusterIdentifier: string;
304
+ }>;
305
+ static writeThroughputSum(dimensions: {
306
+ ClusterIdentifier: string;
307
+ NodeID: string;
308
+ }): MetricWithDims<{
309
+ ClusterIdentifier: string;
310
+ NodeID: string;
311
+ }>;
312
+ static wlmQueueWaitTimeAverage(dimensions: {
313
+ ClusterIdentifier: string;
314
+ wlmid: string;
315
+ }): MetricWithDims<{
316
+ ClusterIdentifier: string;
317
+ wlmid: string;
318
+ }>;
319
+ static wlmQueueWaitTimeAverage(dimensions: {
320
+ ClusterIdentifier: string;
321
+ QueueName: string;
322
+ }): MetricWithDims<{
323
+ ClusterIdentifier: string;
324
+ QueueName: string;
325
+ }>;
326
+ static wlmRunningQueriesAverage(dimensions: {
327
+ ClusterIdentifier: string;
328
+ wlmid: string;
329
+ }): MetricWithDims<{
330
+ ClusterIdentifier: string;
331
+ wlmid: string;
332
+ }>;
333
+ static wlmRunningQueriesAverage(dimensions: {
334
+ ClusterIdentifier: string;
335
+ QueueName: string;
336
+ }): MetricWithDims<{
337
+ ClusterIdentifier: string;
338
+ QueueName: string;
339
+ }>;
192
340
  }
341
+ declare type MetricWithDims<D> = {
342
+ namespace: string;
343
+ metricName: string;
344
+ statistic: string;
345
+ dimensionsMap: D;
346
+ };
347
+ export {};