@aws-cdk/aws-redshift-alpha 2.22.0-alpha.0 → 2.24.1-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.
- package/.jsii +62 -31
- package/.jsii.tabl.json +238 -237
- package/README.md +21 -18
- package/lib/cluster.js +1 -1
- package/lib/database-secret.js +1 -1
- package/lib/endpoint.js +1 -1
- package/lib/parameter-group.js +1 -1
- package/lib/subnet-group.js +1 -1
- package/lib/table.js +1 -1
- package/lib/user.d.ts +6 -0
- package/lib/user.js +3 -2
- package/package.json +8 -8
package/.jsii.tabl.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "2",
|
|
3
|
-
"toolVersion": "1.
|
|
3
|
+
"toolVersion": "1.58.0",
|
|
4
4
|
"snippets": {
|
|
5
5
|
"77425c7fd1ef15dd1574743be3c65278d07651c9c04e0bd9981eea74eda15594": {
|
|
6
6
|
"translations": {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"version": "1"
|
|
18
18
|
},
|
|
19
19
|
"go": {
|
|
20
|
-
"source": "import ec2 \"github.com/aws/aws-cdk-go/awscdk\"\n\nvpc := ec2.NewVpc(this, jsii.String(\"Vpc\"))\ncluster := NewCluster(this, jsii.String(\"Redshift\"), &clusterProps{\n\tmasterUser: &login{\n\t\tmasterUsername: jsii.String(\"admin\"),\n\t},\n\tvpc: vpc,\n})",
|
|
20
|
+
"source": "import ec2 \"github.com/aws/aws-cdk-go/awscdk\"\n\n\nvpc := ec2.NewVpc(this, jsii.String(\"Vpc\"))\ncluster := awscdkredshiftalpha.NewCluster(this, jsii.String(\"Redshift\"), &clusterProps{\n\tmasterUser: &login{\n\t\tmasterUsername: jsii.String(\"admin\"),\n\t},\n\tvpc: vpc,\n})",
|
|
21
21
|
"version": "1"
|
|
22
22
|
},
|
|
23
23
|
"$": {
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"282": 1,
|
|
62
62
|
"290": 1
|
|
63
63
|
},
|
|
64
|
-
"fqnsFingerprint": "
|
|
64
|
+
"fqnsFingerprint": "5d04d3ccd96ad9d00681b1495d680938f2ff60e20e8afb3eee23b34767847dbb"
|
|
65
65
|
},
|
|
66
66
|
"585b6875877412a14dd2e8e16c2432d724a4db31d1a9f095692345f7966168b0": {
|
|
67
67
|
"translations": {
|
|
@@ -161,114 +161,6 @@
|
|
|
161
161
|
},
|
|
162
162
|
"fqnsFingerprint": "a5a597693b630127d564ba2d9b7169c0adcd97a756716be2544e9cb9c2daa38e"
|
|
163
163
|
},
|
|
164
|
-
"ea7697f36a541ca083e3f22fdf5be6a1d19936e9af89c79f4491e89041cc4c86": {
|
|
165
|
-
"translations": {
|
|
166
|
-
"python": {
|
|
167
|
-
"source": "cluster.add_rotation_single_user()",
|
|
168
|
-
"version": "2"
|
|
169
|
-
},
|
|
170
|
-
"csharp": {
|
|
171
|
-
"source": "cluster.AddRotationSingleUser();",
|
|
172
|
-
"version": "1"
|
|
173
|
-
},
|
|
174
|
-
"java": {
|
|
175
|
-
"source": "cluster.addRotationSingleUser();",
|
|
176
|
-
"version": "1"
|
|
177
|
-
},
|
|
178
|
-
"go": {
|
|
179
|
-
"source": "cluster.addRotationSingleUser()",
|
|
180
|
-
"version": "1"
|
|
181
|
-
},
|
|
182
|
-
"$": {
|
|
183
|
-
"source": "cluster.addRotationSingleUser(); // Will rotate automatically after 30 days",
|
|
184
|
-
"version": "0"
|
|
185
|
-
}
|
|
186
|
-
},
|
|
187
|
-
"location": {
|
|
188
|
-
"api": {
|
|
189
|
-
"api": "moduleReadme",
|
|
190
|
-
"moduleFqn": "@aws-cdk/aws-redshift-alpha"
|
|
191
|
-
},
|
|
192
|
-
"field": {
|
|
193
|
-
"field": "markdown",
|
|
194
|
-
"line": 61
|
|
195
|
-
}
|
|
196
|
-
},
|
|
197
|
-
"didCompile": true,
|
|
198
|
-
"fqnsReferenced": [
|
|
199
|
-
"@aws-cdk/aws-redshift-alpha.Cluster#addRotationSingleUser",
|
|
200
|
-
"@aws-cdk/aws-redshift-alpha.Login",
|
|
201
|
-
"aws-cdk-lib.aws_ec2.IVpc"
|
|
202
|
-
],
|
|
203
|
-
"fullSource": "// Fixture with cluster already created\nimport { SecretValue, Stack } from 'aws-cdk-lib';\nimport { Vpc } from 'aws-cdk-lib/aws-ec2';\nimport { Cluster, Table, TableAction, TableDistStyle, TableSortStyle, User } from '@aws-cdk/aws-redshift-alpha';\nimport { Construct } from 'constructs';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n const vpc = new Vpc(this, 'Vpc');\n const cluster = new Cluster(this, 'Cluster', {\n vpc,\n masterUser: {\n masterUsername: 'admin',\n },\n });\n\n // Code snippet begins after !show marker below\n/// !show\ncluster.addRotationSingleUser();\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
|
204
|
-
"syntaxKindCounter": {
|
|
205
|
-
"75": 2,
|
|
206
|
-
"194": 1,
|
|
207
|
-
"196": 1,
|
|
208
|
-
"226": 1
|
|
209
|
-
},
|
|
210
|
-
"fqnsFingerprint": "8ab9dd8da1d881a3928426b28235fb7932d3996a873e1aaf4e897be10b7fb2c6"
|
|
211
|
-
},
|
|
212
|
-
"e74f34fb7fe6a47b5f7cc19db770a7874292b0618579dc7fbdb83bfb017e5f29": {
|
|
213
|
-
"translations": {
|
|
214
|
-
"python": {
|
|
215
|
-
"source": "import aws_cdk.aws_secretsmanager as secretsmanager\n\n\ncluster.add_rotation_multi_user(\"MyUser\",\n secret=secretsmanager.Secret.from_secret_name_v2(self, \"Imported Secret\", \"my-secret\")\n)",
|
|
216
|
-
"version": "2"
|
|
217
|
-
},
|
|
218
|
-
"csharp": {
|
|
219
|
-
"source": "using Amazon.CDK.AWS.SecretsManager;\n\n\ncluster.AddRotationMultiUser(\"MyUser\", new RotationMultiUserOptions {\n Secret = Secret.FromSecretNameV2(this, \"Imported Secret\", \"my-secret\")\n});",
|
|
220
|
-
"version": "1"
|
|
221
|
-
},
|
|
222
|
-
"java": {
|
|
223
|
-
"source": "import software.amazon.awscdk.services.secretsmanager.*;\n\n\ncluster.addRotationMultiUser(\"MyUser\", RotationMultiUserOptions.builder()\n .secret(Secret.fromSecretNameV2(this, \"Imported Secret\", \"my-secret\"))\n .build());",
|
|
224
|
-
"version": "1"
|
|
225
|
-
},
|
|
226
|
-
"go": {
|
|
227
|
-
"source": "import secretsmanager \"github.com/aws/aws-cdk-go/awscdk\"\n\n\ncluster.addRotationMultiUser(jsii.String(\"MyUser\"), &rotationMultiUserOptions{\n\tsecret: secretsmanager.secret.fromSecretNameV2(this, jsii.String(\"Imported Secret\"), jsii.String(\"my-secret\")),\n})",
|
|
228
|
-
"version": "1"
|
|
229
|
-
},
|
|
230
|
-
"$": {
|
|
231
|
-
"source": "import * as secretsmanager from 'aws-cdk-lib/aws-secretsmanager';\n\ncluster.addRotationMultiUser('MyUser', {\n secret: secretsmanager.Secret.fromSecretNameV2(this, 'Imported Secret', 'my-secret'),\n});",
|
|
232
|
-
"version": "0"
|
|
233
|
-
}
|
|
234
|
-
},
|
|
235
|
-
"location": {
|
|
236
|
-
"api": {
|
|
237
|
-
"api": "moduleReadme",
|
|
238
|
-
"moduleFqn": "@aws-cdk/aws-redshift-alpha"
|
|
239
|
-
},
|
|
240
|
-
"field": {
|
|
241
|
-
"field": "markdown",
|
|
242
|
-
"line": 67
|
|
243
|
-
}
|
|
244
|
-
},
|
|
245
|
-
"didCompile": true,
|
|
246
|
-
"fqnsReferenced": [
|
|
247
|
-
"@aws-cdk/aws-redshift-alpha.Cluster#addRotationMultiUser",
|
|
248
|
-
"@aws-cdk/aws-redshift-alpha.Login",
|
|
249
|
-
"@aws-cdk/aws-redshift-alpha.RotationMultiUserOptions",
|
|
250
|
-
"aws-cdk-lib.aws_ec2.IVpc",
|
|
251
|
-
"aws-cdk-lib.aws_secretsmanager.ISecret",
|
|
252
|
-
"aws-cdk-lib.aws_secretsmanager.Secret",
|
|
253
|
-
"aws-cdk-lib.aws_secretsmanager.Secret#fromSecretNameV2"
|
|
254
|
-
],
|
|
255
|
-
"fullSource": "// Hoisted imports begin after !show marker below\n/// !show\nimport * as secretsmanager from 'aws-cdk-lib/aws-secretsmanager';\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with cluster already created\nimport { SecretValue, Stack } from 'aws-cdk-lib';\nimport { Vpc } from 'aws-cdk-lib/aws-ec2';\nimport { Cluster, Table, TableAction, TableDistStyle, TableSortStyle, User } from '@aws-cdk/aws-redshift-alpha';\nimport { Construct } from 'constructs';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n const vpc = new Vpc(this, 'Vpc');\n const cluster = new Cluster(this, 'Cluster', {\n vpc,\n masterUser: {\n masterUsername: 'admin',\n },\n });\n\n // Code snippet begins after !show marker below\n/// !show\n\n\ncluster.addRotationMultiUser('MyUser', {\n secret: secretsmanager.Secret.fromSecretNameV2(this, 'Imported Secret', 'my-secret'),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
|
256
|
-
"syntaxKindCounter": {
|
|
257
|
-
"10": 4,
|
|
258
|
-
"75": 7,
|
|
259
|
-
"104": 1,
|
|
260
|
-
"193": 1,
|
|
261
|
-
"194": 3,
|
|
262
|
-
"196": 2,
|
|
263
|
-
"226": 1,
|
|
264
|
-
"254": 1,
|
|
265
|
-
"255": 1,
|
|
266
|
-
"256": 1,
|
|
267
|
-
"281": 1,
|
|
268
|
-
"290": 1
|
|
269
|
-
},
|
|
270
|
-
"fqnsFingerprint": "b89828cfab69f5dc44717c6b18ff5fd6f5af16df9549f4b83a0fc0f6b68e566d"
|
|
271
|
-
},
|
|
272
164
|
"60decaed1d4917292cd776865b3b6999cb55ecf2dd2cec4353a9a92d38d4fc3a": {
|
|
273
165
|
"translations": {
|
|
274
166
|
"python": {
|
|
@@ -284,7 +176,7 @@
|
|
|
284
176
|
"version": "1"
|
|
285
177
|
},
|
|
286
178
|
"go": {
|
|
287
|
-
"source": "NewUser(this, jsii.String(\"User\"), &userProps{\n\tcluster: cluster,\n\tdatabaseName: jsii.String(\"databaseName\"),\n})",
|
|
179
|
+
"source": "awscdkredshiftalpha.NewUser(this, jsii.String(\"User\"), &userProps{\n\tcluster: cluster,\n\tdatabaseName: jsii.String(\"databaseName\"),\n})",
|
|
288
180
|
"version": "1"
|
|
289
181
|
},
|
|
290
182
|
"$": {
|
|
@@ -299,7 +191,7 @@
|
|
|
299
191
|
},
|
|
300
192
|
"field": {
|
|
301
193
|
"field": "markdown",
|
|
302
|
-
"line":
|
|
194
|
+
"line": 87
|
|
303
195
|
}
|
|
304
196
|
},
|
|
305
197
|
"didCompile": true,
|
|
@@ -320,7 +212,7 @@
|
|
|
320
212
|
"226": 1,
|
|
321
213
|
"281": 2
|
|
322
214
|
},
|
|
323
|
-
"fqnsFingerprint": "
|
|
215
|
+
"fqnsFingerprint": "fa6de172f0ba01fd7f3e7e3e1f352be9851a97449b9ede6083ef04712a42537e"
|
|
324
216
|
},
|
|
325
217
|
"7cf073ffb5972e1259d951481763f8da403e1fee297039b18b7a0ef91445d9b9": {
|
|
326
218
|
"translations": {
|
|
@@ -337,7 +229,7 @@
|
|
|
337
229
|
"version": "1"
|
|
338
230
|
},
|
|
339
231
|
"go": {
|
|
340
|
-
"source": "import kms \"github.com/aws/aws-cdk-go/awscdk\"\n\n\nencryptionKey := kms.NewKey(this, jsii.String(\"Key\"))\
|
|
232
|
+
"source": "import kms \"github.com/aws/aws-cdk-go/awscdk\"\n\n\nencryptionKey := kms.NewKey(this, jsii.String(\"Key\"))\nawscdkredshiftalpha.NewUser(this, jsii.String(\"User\"), &userProps{\n\tencryptionKey: encryptionKey,\n\tcluster: cluster,\n\tdatabaseName: jsii.String(\"databaseName\"),\n})",
|
|
341
233
|
"version": "1"
|
|
342
234
|
},
|
|
343
235
|
"$": {
|
|
@@ -352,7 +244,7 @@
|
|
|
352
244
|
},
|
|
353
245
|
"field": {
|
|
354
246
|
"field": "markdown",
|
|
355
|
-
"line":
|
|
247
|
+
"line": 98
|
|
356
248
|
}
|
|
357
249
|
},
|
|
358
250
|
"didCompile": true,
|
|
@@ -383,7 +275,7 @@
|
|
|
383
275
|
"281": 3,
|
|
384
276
|
"290": 1
|
|
385
277
|
},
|
|
386
|
-
"fqnsFingerprint": "
|
|
278
|
+
"fqnsFingerprint": "c2f55fd089fe014facd1d1f466b2f021a93da750f774ae47ecd29404e68d2b6f"
|
|
387
279
|
},
|
|
388
280
|
"8b226b5e5f30a1e1dd1cdf8a2c4bb393bf11672cb0f8390eba8f0d4ce86c2b29": {
|
|
389
281
|
"translations": {
|
|
@@ -400,7 +292,7 @@
|
|
|
400
292
|
"version": "1"
|
|
401
293
|
},
|
|
402
294
|
"go": {
|
|
403
|
-
"source": "NewUser(this, jsii.String(\"User\"), &userProps{\n\tusername: jsii.String(\"myuser\"),\n\tcluster: cluster,\n\tdatabaseName: jsii.String(\"databaseName\"),\n})",
|
|
295
|
+
"source": "awscdkredshiftalpha.NewUser(this, jsii.String(\"User\"), &userProps{\n\tusername: jsii.String(\"myuser\"),\n\tcluster: cluster,\n\tdatabaseName: jsii.String(\"databaseName\"),\n})",
|
|
404
296
|
"version": "1"
|
|
405
297
|
},
|
|
406
298
|
"$": {
|
|
@@ -415,7 +307,7 @@
|
|
|
415
307
|
},
|
|
416
308
|
"field": {
|
|
417
309
|
"field": "markdown",
|
|
418
|
-
"line":
|
|
310
|
+
"line": 115
|
|
419
311
|
}
|
|
420
312
|
},
|
|
421
313
|
"didCompile": true,
|
|
@@ -436,7 +328,7 @@
|
|
|
436
328
|
"226": 1,
|
|
437
329
|
"281": 3
|
|
438
330
|
},
|
|
439
|
-
"fqnsFingerprint": "
|
|
331
|
+
"fqnsFingerprint": "fa6de172f0ba01fd7f3e7e3e1f352be9851a97449b9ede6083ef04712a42537e"
|
|
440
332
|
},
|
|
441
333
|
"51173779cc099a9ee0c91df2a0c3ca5d4940c309c4927477053b972d5c7012a7": {
|
|
442
334
|
"translations": {
|
|
@@ -453,7 +345,7 @@
|
|
|
453
345
|
"version": "1"
|
|
454
346
|
},
|
|
455
347
|
"go": {
|
|
456
|
-
"source": "NewTable(this, jsii.String(\"Table\"), &tableProps{\n\ttableColumns: []column{\n\t\t&column{\n\t\t\tname: jsii.String(\"col1\"),\n\t\t\tdataType: jsii.String(\"varchar(4)\"),\n\t\t},\n\t\t&column{\n\t\t\tname: jsii.String(\"col2\"),\n\t\t\tdataType: jsii.String(\"float\"),\n\t\t},\n\t},\n\tcluster: cluster,\n\tdatabaseName: jsii.String(\"databaseName\"),\n})",
|
|
348
|
+
"source": "awscdkredshiftalpha.NewTable(this, jsii.String(\"Table\"), &tableProps{\n\ttableColumns: []column{\n\t\t&column{\n\t\t\tname: jsii.String(\"col1\"),\n\t\t\tdataType: jsii.String(\"varchar(4)\"),\n\t\t},\n\t\t&column{\n\t\t\tname: jsii.String(\"col2\"),\n\t\t\tdataType: jsii.String(\"float\"),\n\t\t},\n\t},\n\tcluster: cluster,\n\tdatabaseName: jsii.String(\"databaseName\"),\n})",
|
|
457
349
|
"version": "1"
|
|
458
350
|
},
|
|
459
351
|
"$": {
|
|
@@ -468,7 +360,7 @@
|
|
|
468
360
|
},
|
|
469
361
|
"field": {
|
|
470
362
|
"field": "markdown",
|
|
471
|
-
"line":
|
|
363
|
+
"line": 138
|
|
472
364
|
}
|
|
473
365
|
},
|
|
474
366
|
"didCompile": true,
|
|
@@ -507,7 +399,7 @@
|
|
|
507
399
|
"version": "1"
|
|
508
400
|
},
|
|
509
401
|
"go": {
|
|
510
|
-
"source": "NewTable(this, jsii.String(\"Table\"), &tableProps{\n\ttableColumns: []column{\n\t\t&column{\n\t\t\tname: jsii.String(\"col1\"),\n\t\t\tdataType: jsii.String(\"varchar(4)\"),\n\t\t\tdistKey: jsii.Boolean(true),\n\t\t},\n\t\t&column{\n\t\t\tname: jsii.String(\"col2\"),\n\t\t\tdataType: jsii.String(\"float\"),\n\t\t},\n\t},\n\tcluster: cluster,\n\tdatabaseName: jsii.String(\"databaseName\"),\n\tdistStyle:
|
|
402
|
+
"source": "awscdkredshiftalpha.NewTable(this, jsii.String(\"Table\"), &tableProps{\n\ttableColumns: []column{\n\t\t&column{\n\t\t\tname: jsii.String(\"col1\"),\n\t\t\tdataType: jsii.String(\"varchar(4)\"),\n\t\t\tdistKey: jsii.Boolean(true),\n\t\t},\n\t\t&column{\n\t\t\tname: jsii.String(\"col2\"),\n\t\t\tdataType: jsii.String(\"float\"),\n\t\t},\n\t},\n\tcluster: cluster,\n\tdatabaseName: jsii.String(\"databaseName\"),\n\tdistStyle: awscdkredshiftalpha.TableDistStyle_KEY,\n})",
|
|
511
403
|
"version": "1"
|
|
512
404
|
},
|
|
513
405
|
"$": {
|
|
@@ -522,7 +414,7 @@
|
|
|
522
414
|
},
|
|
523
415
|
"field": {
|
|
524
416
|
"field": "markdown",
|
|
525
|
-
"line":
|
|
417
|
+
"line": 148
|
|
526
418
|
}
|
|
527
419
|
},
|
|
528
420
|
"didCompile": true,
|
|
@@ -565,7 +457,7 @@
|
|
|
565
457
|
"version": "1"
|
|
566
458
|
},
|
|
567
459
|
"go": {
|
|
568
|
-
"source": "NewTable(this, jsii.String(\"Table\"), &tableProps{\n\ttableColumns: []column{\n\t\t&column{\n\t\t\tname: jsii.String(\"col1\"),\n\t\t\tdataType: jsii.String(\"varchar(4)\"),\n\t\t\tsortKey: jsii.Boolean(true),\n\t\t},\n\t\t&column{\n\t\t\tname: jsii.String(\"col2\"),\n\t\t\tdataType: jsii.String(\"float\"),\n\t\t\tsortKey: jsii.Boolean(true),\n\t\t},\n\t},\n\tcluster: cluster,\n\tdatabaseName: jsii.String(\"databaseName\"),\n\tsortStyle:
|
|
460
|
+
"source": "awscdkredshiftalpha.NewTable(this, jsii.String(\"Table\"), &tableProps{\n\ttableColumns: []column{\n\t\t&column{\n\t\t\tname: jsii.String(\"col1\"),\n\t\t\tdataType: jsii.String(\"varchar(4)\"),\n\t\t\tsortKey: jsii.Boolean(true),\n\t\t},\n\t\t&column{\n\t\t\tname: jsii.String(\"col2\"),\n\t\t\tdataType: jsii.String(\"float\"),\n\t\t\tsortKey: jsii.Boolean(true),\n\t\t},\n\t},\n\tcluster: cluster,\n\tdatabaseName: jsii.String(\"databaseName\"),\n\tsortStyle: awscdkredshiftalpha.TableSortStyle_COMPOUND,\n})",
|
|
569
461
|
"version": "1"
|
|
570
462
|
},
|
|
571
463
|
"$": {
|
|
@@ -580,7 +472,7 @@
|
|
|
580
472
|
},
|
|
581
473
|
"field": {
|
|
582
474
|
"field": "markdown",
|
|
583
|
-
"line":
|
|
475
|
+
"line": 162
|
|
584
476
|
}
|
|
585
477
|
},
|
|
586
478
|
"didCompile": true,
|
|
@@ -623,7 +515,7 @@
|
|
|
623
515
|
"version": "1"
|
|
624
516
|
},
|
|
625
517
|
"go": {
|
|
626
|
-
"source": "user := NewUser(this, jsii.String(\"User\"), &userProps{\n\tcluster: cluster,\n\tdatabaseName: jsii.String(\"databaseName\"),\n})\ntable := NewTable(this, jsii.String(\"Table\"), &tableProps{\n\ttableColumns: []column{\n\t\t&column{\n\t\t\tname: jsii.String(\"col1\"),\n\t\t\tdataType: jsii.String(\"varchar(4)\"),\n\t\t},\n\t\t&column{\n\t\t\tname: jsii.String(\"col2\"),\n\t\t\tdataType: jsii.String(\"float\"),\n\t\t},\n\t},\n\tcluster: cluster,\n\tdatabaseName: jsii.String(\"databaseName\"),\n})\n\ntable.grant(user,
|
|
518
|
+
"source": "user := awscdkredshiftalpha.NewUser(this, jsii.String(\"User\"), &userProps{\n\tcluster: cluster,\n\tdatabaseName: jsii.String(\"databaseName\"),\n})\ntable := awscdkredshiftalpha.NewTable(this, jsii.String(\"Table\"), &tableProps{\n\ttableColumns: []column{\n\t\t&column{\n\t\t\tname: jsii.String(\"col1\"),\n\t\t\tdataType: jsii.String(\"varchar(4)\"),\n\t\t},\n\t\t&column{\n\t\t\tname: jsii.String(\"col2\"),\n\t\t\tdataType: jsii.String(\"float\"),\n\t\t},\n\t},\n\tcluster: cluster,\n\tdatabaseName: jsii.String(\"databaseName\"),\n})\n\ntable.grant(user, awscdkredshiftalpha.TableAction_DROP, awscdkredshiftalpha.TableAction_SELECT)",
|
|
627
519
|
"version": "1"
|
|
628
520
|
},
|
|
629
521
|
"$": {
|
|
@@ -638,7 +530,7 @@
|
|
|
638
530
|
},
|
|
639
531
|
"field": {
|
|
640
532
|
"field": "markdown",
|
|
641
|
-
"line":
|
|
533
|
+
"line": 179
|
|
642
534
|
}
|
|
643
535
|
},
|
|
644
536
|
"didCompile": true,
|
|
@@ -671,7 +563,7 @@
|
|
|
671
563
|
"243": 2,
|
|
672
564
|
"281": 9
|
|
673
565
|
},
|
|
674
|
-
"fqnsFingerprint": "
|
|
566
|
+
"fqnsFingerprint": "d3d0c2470119fa043550e57874aaebcaed3d261f55421b4a678299fd73991b63"
|
|
675
567
|
},
|
|
676
568
|
"b4379cc01ad5b391d08ae26db568d0016283c7d1b7af31f79f4e1566aa2437f3": {
|
|
677
569
|
"translations": {
|
|
@@ -688,7 +580,7 @@
|
|
|
688
580
|
"version": "1"
|
|
689
581
|
},
|
|
690
582
|
"go": {
|
|
691
|
-
"source": "databaseName := \"databaseName\"\nusername := \"myuser\"\ntableName := \"mytable\"\n\nuser := NewUser(this, jsii.String(\"User\"), &userProps{\n\tusername: username,\n\tcluster: cluster,\n\tdatabaseName: databaseName,\n})\ntable := NewTable(this, jsii.String(\"Table\"), &tableProps{\n\ttableColumns: []column{\n\t\t&column{\n\t\t\tname: jsii.String(\"col1\"),\n\t\t\tdataType: jsii.String(\"varchar(4)\"),\n\t\t},\n\t\t&column{\n\t\t\tname: jsii.String(\"col2\"),\n\t\t\tdataType: jsii.String(\"float\"),\n\t\t},\n\t},\n\tcluster: cluster,\n\tdatabaseName: databaseName,\n})\ntable.grant(user,
|
|
583
|
+
"source": "databaseName := \"databaseName\"\nusername := \"myuser\"\ntableName := \"mytable\"\n\nuser := awscdkredshiftalpha.NewUser(this, jsii.String(\"User\"), &userProps{\n\tusername: username,\n\tcluster: cluster,\n\tdatabaseName: databaseName,\n})\ntable := awscdkredshiftalpha.NewTable(this, jsii.String(\"Table\"), &tableProps{\n\ttableColumns: []column{\n\t\t&column{\n\t\t\tname: jsii.String(\"col1\"),\n\t\t\tdataType: jsii.String(\"varchar(4)\"),\n\t\t},\n\t\t&column{\n\t\t\tname: jsii.String(\"col2\"),\n\t\t\tdataType: jsii.String(\"float\"),\n\t\t},\n\t},\n\tcluster: cluster,\n\tdatabaseName: databaseName,\n})\ntable.grant(user, awscdkredshiftalpha.TableAction_INSERT)",
|
|
692
584
|
"version": "1"
|
|
693
585
|
},
|
|
694
586
|
"$": {
|
|
@@ -703,7 +595,7 @@
|
|
|
703
595
|
},
|
|
704
596
|
"field": {
|
|
705
597
|
"field": "markdown",
|
|
706
|
-
"line":
|
|
598
|
+
"line": 199
|
|
707
599
|
}
|
|
708
600
|
},
|
|
709
601
|
"didCompile": true,
|
|
@@ -735,7 +627,7 @@
|
|
|
735
627
|
"243": 5,
|
|
736
628
|
"281": 10
|
|
737
629
|
},
|
|
738
|
-
"fqnsFingerprint": "
|
|
630
|
+
"fqnsFingerprint": "6bdd258e97b756c22c3058c9ab1ccaac304bb93748c7f94836c2d35c0c58fd93"
|
|
739
631
|
},
|
|
740
632
|
"4c475aa8a5033226be368837c77b941d105e17ad04c77aab59db06c8be9b9ac7": {
|
|
741
633
|
"translations": {
|
|
@@ -752,7 +644,7 @@
|
|
|
752
644
|
"version": "1"
|
|
753
645
|
},
|
|
754
646
|
"go": {
|
|
755
|
-
"source": "databaseName := \"databaseName\"\nusername := \"myuser\"\ntableName := \"mytable\"\n\nuser :=
|
|
647
|
+
"source": "databaseName := \"databaseName\"\nusername := \"myuser\"\ntableName := \"mytable\"\n\nuser := awscdkredshiftalpha.User.fromUserAttributes(this, jsii.String(\"User\"), &userAttributes{\n\tusername: username,\n\tpassword: awscdk.SecretValue.unsafePlainText(jsii.String(\"NOT_FOR_PRODUCTION\")),\n\tcluster: cluster,\n\tdatabaseName: databaseName,\n})\ntable := awscdkredshiftalpha.Table.fromTableAttributes(this, jsii.String(\"Table\"), &tableAttributes{\n\ttableName: tableName,\n\ttableColumns: []column{\n\t\t&column{\n\t\t\tname: jsii.String(\"col1\"),\n\t\t\tdataType: jsii.String(\"varchar(4)\"),\n\t\t},\n\t\t&column{\n\t\t\tname: jsii.String(\"col2\"),\n\t\t\tdataType: jsii.String(\"float\"),\n\t\t},\n\t},\n\tcluster: cluster,\n\tdatabaseName: jsii.String(\"databaseName\"),\n})\ntable.grant(user, awscdkredshiftalpha.TableAction_INSERT)",
|
|
756
648
|
"version": "1"
|
|
757
649
|
},
|
|
758
650
|
"$": {
|
|
@@ -767,7 +659,7 @@
|
|
|
767
659
|
},
|
|
768
660
|
"field": {
|
|
769
661
|
"field": "markdown",
|
|
770
|
-
"line":
|
|
662
|
+
"line": 220
|
|
771
663
|
}
|
|
772
664
|
},
|
|
773
665
|
"didCompile": true,
|
|
@@ -804,6 +696,116 @@
|
|
|
804
696
|
},
|
|
805
697
|
"fqnsFingerprint": "24186b7c8a0bcf8435a0339c4d699742b9b83778757438e50e0e9adaf885f8a9"
|
|
806
698
|
},
|
|
699
|
+
"ea7697f36a541ca083e3f22fdf5be6a1d19936e9af89c79f4491e89041cc4c86": {
|
|
700
|
+
"translations": {
|
|
701
|
+
"python": {
|
|
702
|
+
"source": "cluster.add_rotation_single_user()",
|
|
703
|
+
"version": "2"
|
|
704
|
+
},
|
|
705
|
+
"csharp": {
|
|
706
|
+
"source": "cluster.AddRotationSingleUser();",
|
|
707
|
+
"version": "1"
|
|
708
|
+
},
|
|
709
|
+
"java": {
|
|
710
|
+
"source": "cluster.addRotationSingleUser();",
|
|
711
|
+
"version": "1"
|
|
712
|
+
},
|
|
713
|
+
"go": {
|
|
714
|
+
"source": "cluster.addRotationSingleUser()",
|
|
715
|
+
"version": "1"
|
|
716
|
+
},
|
|
717
|
+
"$": {
|
|
718
|
+
"source": "cluster.addRotationSingleUser(); // Will rotate automatically after 30 days",
|
|
719
|
+
"version": "0"
|
|
720
|
+
}
|
|
721
|
+
},
|
|
722
|
+
"location": {
|
|
723
|
+
"api": {
|
|
724
|
+
"api": "moduleReadme",
|
|
725
|
+
"moduleFqn": "@aws-cdk/aws-redshift-alpha"
|
|
726
|
+
},
|
|
727
|
+
"field": {
|
|
728
|
+
"field": "markdown",
|
|
729
|
+
"line": 257
|
|
730
|
+
}
|
|
731
|
+
},
|
|
732
|
+
"didCompile": true,
|
|
733
|
+
"fqnsReferenced": [
|
|
734
|
+
"@aws-cdk/aws-redshift-alpha.Cluster#addRotationSingleUser",
|
|
735
|
+
"@aws-cdk/aws-redshift-alpha.Login",
|
|
736
|
+
"aws-cdk-lib.aws_ec2.IVpc"
|
|
737
|
+
],
|
|
738
|
+
"fullSource": "// Fixture with cluster already created\nimport { SecretValue, Stack } from 'aws-cdk-lib';\nimport { Vpc } from 'aws-cdk-lib/aws-ec2';\nimport { Cluster, Table, TableAction, TableDistStyle, TableSortStyle, User } from '@aws-cdk/aws-redshift-alpha';\nimport { Construct } from 'constructs';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n const vpc = new Vpc(this, 'Vpc');\n const cluster = new Cluster(this, 'Cluster', {\n vpc,\n masterUser: {\n masterUsername: 'admin',\n },\n });\n\n // Code snippet begins after !show marker below\n/// !show\ncluster.addRotationSingleUser();\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
|
739
|
+
"syntaxKindCounter": {
|
|
740
|
+
"75": 2,
|
|
741
|
+
"194": 1,
|
|
742
|
+
"196": 1,
|
|
743
|
+
"226": 1
|
|
744
|
+
},
|
|
745
|
+
"fqnsFingerprint": "8ab9dd8da1d881a3928426b28235fb7932d3996a873e1aaf4e897be10b7fb2c6"
|
|
746
|
+
},
|
|
747
|
+
"9c12ec7d13d9dcb3ffc563e981e9feabc68ef9d380782bb3c3875c9b54b78911": {
|
|
748
|
+
"translations": {
|
|
749
|
+
"python": {
|
|
750
|
+
"source": "user = User(self, \"User\",\n cluster=cluster,\n database_name=\"databaseName\"\n)\ncluster.add_rotation_multi_user(\"MultiUserRotation\",\n secret=user.secret\n)",
|
|
751
|
+
"version": "2"
|
|
752
|
+
},
|
|
753
|
+
"csharp": {
|
|
754
|
+
"source": "User user = new User(this, \"User\", new UserProps {\n Cluster = cluster,\n DatabaseName = \"databaseName\"\n});\ncluster.AddRotationMultiUser(\"MultiUserRotation\", new RotationMultiUserOptions {\n Secret = user.Secret\n});",
|
|
755
|
+
"version": "1"
|
|
756
|
+
},
|
|
757
|
+
"java": {
|
|
758
|
+
"source": "User user = User.Builder.create(this, \"User\")\n .cluster(cluster)\n .databaseName(\"databaseName\")\n .build();\ncluster.addRotationMultiUser(\"MultiUserRotation\", RotationMultiUserOptions.builder()\n .secret(user.getSecret())\n .build());",
|
|
759
|
+
"version": "1"
|
|
760
|
+
},
|
|
761
|
+
"go": {
|
|
762
|
+
"source": "user := awscdkredshiftalpha.NewUser(this, jsii.String(\"User\"), &userProps{\n\tcluster: cluster,\n\tdatabaseName: jsii.String(\"databaseName\"),\n})\ncluster.addRotationMultiUser(jsii.String(\"MultiUserRotation\"), &rotationMultiUserOptions{\n\tsecret: user.secret,\n})",
|
|
763
|
+
"version": "1"
|
|
764
|
+
},
|
|
765
|
+
"$": {
|
|
766
|
+
"source": "\nconst user = new User(this, 'User', {\n cluster: cluster,\n databaseName: 'databaseName',\n});\ncluster.addRotationMultiUser('MultiUserRotation', {\n secret: user.secret,\n});",
|
|
767
|
+
"version": "0"
|
|
768
|
+
}
|
|
769
|
+
},
|
|
770
|
+
"location": {
|
|
771
|
+
"api": {
|
|
772
|
+
"api": "moduleReadme",
|
|
773
|
+
"moduleFqn": "@aws-cdk/aws-redshift-alpha"
|
|
774
|
+
},
|
|
775
|
+
"field": {
|
|
776
|
+
"field": "markdown",
|
|
777
|
+
"line": 263
|
|
778
|
+
}
|
|
779
|
+
},
|
|
780
|
+
"didCompile": true,
|
|
781
|
+
"fqnsReferenced": [
|
|
782
|
+
"@aws-cdk/aws-redshift-alpha.Cluster#addRotationMultiUser",
|
|
783
|
+
"@aws-cdk/aws-redshift-alpha.ICluster",
|
|
784
|
+
"@aws-cdk/aws-redshift-alpha.Login",
|
|
785
|
+
"@aws-cdk/aws-redshift-alpha.RotationMultiUserOptions",
|
|
786
|
+
"@aws-cdk/aws-redshift-alpha.User",
|
|
787
|
+
"@aws-cdk/aws-redshift-alpha.User#secret",
|
|
788
|
+
"@aws-cdk/aws-redshift-alpha.UserProps",
|
|
789
|
+
"aws-cdk-lib.aws_ec2.IVpc",
|
|
790
|
+
"aws-cdk-lib.aws_secretsmanager.ISecret"
|
|
791
|
+
],
|
|
792
|
+
"fullSource": "// Fixture with cluster already created\nimport { SecretValue, Stack } from 'aws-cdk-lib';\nimport { Vpc } from 'aws-cdk-lib/aws-ec2';\nimport { Cluster, Table, TableAction, TableDistStyle, TableSortStyle, User } from '@aws-cdk/aws-redshift-alpha';\nimport { Construct } from 'constructs';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n const vpc = new Vpc(this, 'Vpc');\n const cluster = new Cluster(this, 'Cluster', {\n vpc,\n masterUser: {\n masterUsername: 'admin',\n },\n });\n\n // Code snippet begins after !show marker below\n/// !show\n\nconst user = new User(this, 'User', {\n cluster: cluster,\n databaseName: 'databaseName',\n});\ncluster.addRotationMultiUser('MultiUserRotation', {\n secret: user.secret,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
|
793
|
+
"syntaxKindCounter": {
|
|
794
|
+
"10": 3,
|
|
795
|
+
"75": 10,
|
|
796
|
+
"104": 1,
|
|
797
|
+
"193": 2,
|
|
798
|
+
"194": 2,
|
|
799
|
+
"196": 1,
|
|
800
|
+
"197": 1,
|
|
801
|
+
"225": 1,
|
|
802
|
+
"226": 1,
|
|
803
|
+
"242": 1,
|
|
804
|
+
"243": 1,
|
|
805
|
+
"281": 3
|
|
806
|
+
},
|
|
807
|
+
"fqnsFingerprint": "fa591d4f2cfc5d969d20bf0d6425bfb2dbbb9298ab041cc5860dc6b017f684a5"
|
|
808
|
+
},
|
|
807
809
|
"00e955f4e1ddfc2b0815c24fae2e7cff3ac6ffe45bcf8e64b556074b9678e53f": {
|
|
808
810
|
"translations": {
|
|
809
811
|
"python": {
|
|
@@ -819,7 +821,7 @@
|
|
|
819
821
|
"version": "1"
|
|
820
822
|
},
|
|
821
823
|
"go": {
|
|
822
|
-
"source": "import ec2 \"github.com/aws/aws-cdk-go/awscdk\"\n\nvpc := ec2.NewVpc(this, jsii.String(\"Vpc\"))\ncluster := NewCluster(this, jsii.String(\"Redshift\"), &clusterProps{\n\tmasterUser: &login{\n\t\tmasterUsername: jsii.String(\"admin\"),\n\t},\n\tvpc: vpc,\n})",
|
|
824
|
+
"source": "import ec2 \"github.com/aws/aws-cdk-go/awscdk\"\n\n\nvpc := ec2.NewVpc(this, jsii.String(\"Vpc\"))\ncluster := awscdkredshiftalpha.NewCluster(this, jsii.String(\"Redshift\"), &clusterProps{\n\tmasterUser: &login{\n\t\tmasterUsername: jsii.String(\"admin\"),\n\t},\n\tvpc: vpc,\n})",
|
|
823
825
|
"version": "1"
|
|
824
826
|
},
|
|
825
827
|
"$": {
|
|
@@ -862,7 +864,7 @@
|
|
|
862
864
|
"282": 1,
|
|
863
865
|
"290": 1
|
|
864
866
|
},
|
|
865
|
-
"fqnsFingerprint": "
|
|
867
|
+
"fqnsFingerprint": "5d04d3ccd96ad9d00681b1495d680938f2ff60e20e8afb3eee23b34767847dbb"
|
|
866
868
|
},
|
|
867
869
|
"d6c41af477f219a992322c044392d17fe1bf965cae8a8110aa4110e61ca2f64f": {
|
|
868
870
|
"translations": {
|
|
@@ -879,7 +881,7 @@
|
|
|
879
881
|
"version": "1"
|
|
880
882
|
},
|
|
881
883
|
"go": {
|
|
882
|
-
"source": "
|
|
884
|
+
"source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport redshift_alpha \"github.com/aws/aws-cdk-go/awscdkredshiftalpha\"\nimport \"github.com/aws/aws-cdk-go/awscdk\"\n\nvar securityGroup securityGroup\n\nclusterAttributes := &clusterAttributes{\n\tclusterEndpointAddress: jsii.String(\"clusterEndpointAddress\"),\n\tclusterEndpointPort: jsii.Number(123),\n\tclusterName: jsii.String(\"clusterName\"),\n\n\t// the properties below are optional\n\tsecurityGroups: []iSecurityGroup{\n\t\tsecurityGroup,\n\t},\n}",
|
|
883
885
|
"version": "1"
|
|
884
886
|
},
|
|
885
887
|
"$": {
|
|
@@ -938,7 +940,7 @@
|
|
|
938
940
|
"version": "1"
|
|
939
941
|
},
|
|
940
942
|
"go": {
|
|
941
|
-
"source": "
|
|
943
|
+
"source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport redshift_alpha \"github.com/aws/aws-cdk-go/awscdkredshiftalpha\"\n\nclusterParameterGroup := redshift_alpha.NewClusterParameterGroup(this, jsii.String(\"MyClusterParameterGroup\"), &clusterParameterGroupProps{\n\tparameters: map[string]*string{\n\t\t\"parametersKey\": jsii.String(\"parameters\"),\n\t},\n\n\t// the properties below are optional\n\tdescription: jsii.String(\"description\"),\n})",
|
|
942
944
|
"version": "1"
|
|
943
945
|
},
|
|
944
946
|
"$": {
|
|
@@ -994,7 +996,7 @@
|
|
|
994
996
|
"version": "1"
|
|
995
997
|
},
|
|
996
998
|
"go": {
|
|
997
|
-
"source": "
|
|
999
|
+
"source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport redshift_alpha \"github.com/aws/aws-cdk-go/awscdkredshiftalpha\"\n\nclusterParameterGroupProps := &clusterParameterGroupProps{\n\tparameters: map[string]*string{\n\t\t\"parametersKey\": jsii.String(\"parameters\"),\n\t},\n\n\t// the properties below are optional\n\tdescription: jsii.String(\"description\"),\n}",
|
|
998
1000
|
"version": "1"
|
|
999
1001
|
},
|
|
1000
1002
|
"$": {
|
|
@@ -1048,7 +1050,7 @@
|
|
|
1048
1050
|
"version": "1"
|
|
1049
1051
|
},
|
|
1050
1052
|
"go": {
|
|
1051
|
-
"source": "import ec2 \"github.com/aws/aws-cdk-go/awscdk\"\n\nvpc := ec2.NewVpc(this, jsii.String(\"Vpc\"))\ncluster := NewCluster(this, jsii.String(\"Redshift\"), &clusterProps{\n\tmasterUser: &login{\n\t\tmasterUsername: jsii.String(\"admin\"),\n\t},\n\tvpc: vpc,\n})",
|
|
1053
|
+
"source": "import ec2 \"github.com/aws/aws-cdk-go/awscdk\"\n\n\nvpc := ec2.NewVpc(this, jsii.String(\"Vpc\"))\ncluster := awscdkredshiftalpha.NewCluster(this, jsii.String(\"Redshift\"), &clusterProps{\n\tmasterUser: &login{\n\t\tmasterUsername: jsii.String(\"admin\"),\n\t},\n\tvpc: vpc,\n})",
|
|
1052
1054
|
"version": "1"
|
|
1053
1055
|
},
|
|
1054
1056
|
"$": {
|
|
@@ -1091,7 +1093,7 @@
|
|
|
1091
1093
|
"282": 1,
|
|
1092
1094
|
"290": 1
|
|
1093
1095
|
},
|
|
1094
|
-
"fqnsFingerprint": "
|
|
1096
|
+
"fqnsFingerprint": "5d04d3ccd96ad9d00681b1495d680938f2ff60e20e8afb3eee23b34767847dbb"
|
|
1095
1097
|
},
|
|
1096
1098
|
"51118bb4d5c3de88213dac23d2877a4e785360769254185a9eb4e89b0a0d989a": {
|
|
1097
1099
|
"translations": {
|
|
@@ -1108,7 +1110,7 @@
|
|
|
1108
1110
|
"version": "1"
|
|
1109
1111
|
},
|
|
1110
1112
|
"go": {
|
|
1111
|
-
"source": "
|
|
1113
|
+
"source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport redshift_alpha \"github.com/aws/aws-cdk-go/awscdkredshiftalpha\"\nimport cdk \"github.com/aws/aws-cdk-go/awscdk\"\nimport \"github.com/aws/aws-cdk-go/awscdk\"\n\nvar subnet subnet\nvar subnetFilter subnetFilter\nvar vpc vpc\n\nclusterSubnetGroup := redshift_alpha.NewClusterSubnetGroup(this, jsii.String(\"MyClusterSubnetGroup\"), &clusterSubnetGroupProps{\n\tdescription: jsii.String(\"description\"),\n\tvpc: vpc,\n\n\t// the properties below are optional\n\tremovalPolicy: cdk.removalPolicy_DESTROY,\n\tvpcSubnets: &subnetSelection{\n\t\tavailabilityZones: []*string{\n\t\t\tjsii.String(\"availabilityZones\"),\n\t\t},\n\t\tonePerAz: jsii.Boolean(false),\n\t\tsubnetFilters: []*subnetFilter{\n\t\t\tsubnetFilter,\n\t\t},\n\t\tsubnetGroupName: jsii.String(\"subnetGroupName\"),\n\t\tsubnets: []iSubnet{\n\t\t\tsubnet,\n\t\t},\n\t\tsubnetType: awscdk.Aws_ec2.subnetType_PRIVATE_ISOLATED,\n\t},\n})",
|
|
1112
1114
|
"version": "1"
|
|
1113
1115
|
},
|
|
1114
1116
|
"$": {
|
|
@@ -1177,7 +1179,7 @@
|
|
|
1177
1179
|
"version": "1"
|
|
1178
1180
|
},
|
|
1179
1181
|
"go": {
|
|
1180
|
-
"source": "
|
|
1182
|
+
"source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport redshift_alpha \"github.com/aws/aws-cdk-go/awscdkredshiftalpha\"\nimport cdk \"github.com/aws/aws-cdk-go/awscdk\"\nimport \"github.com/aws/aws-cdk-go/awscdk\"\n\nvar subnet subnet\nvar subnetFilter subnetFilter\nvar vpc vpc\n\nclusterSubnetGroupProps := &clusterSubnetGroupProps{\n\tdescription: jsii.String(\"description\"),\n\tvpc: vpc,\n\n\t// the properties below are optional\n\tremovalPolicy: cdk.removalPolicy_DESTROY,\n\tvpcSubnets: &subnetSelection{\n\t\tavailabilityZones: []*string{\n\t\t\tjsii.String(\"availabilityZones\"),\n\t\t},\n\t\tonePerAz: jsii.Boolean(false),\n\t\tsubnetFilters: []*subnetFilter{\n\t\t\tsubnetFilter,\n\t\t},\n\t\tsubnetGroupName: jsii.String(\"subnetGroupName\"),\n\t\tsubnets: []iSubnet{\n\t\t\tsubnet,\n\t\t},\n\t\tsubnetType: awscdk.Aws_ec2.subnetType_PRIVATE_ISOLATED,\n\t},\n}",
|
|
1181
1183
|
"version": "1"
|
|
1182
1184
|
},
|
|
1183
1185
|
"$": {
|
|
@@ -1243,7 +1245,7 @@
|
|
|
1243
1245
|
"version": "1"
|
|
1244
1246
|
},
|
|
1245
1247
|
"go": {
|
|
1246
|
-
"source": "
|
|
1248
|
+
"source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport redshift_alpha \"github.com/aws/aws-cdk-go/awscdkredshiftalpha\"\n\ncolumn := &column{\n\tdataType: jsii.String(\"dataType\"),\n\tname: jsii.String(\"name\"),\n\n\t// the properties below are optional\n\tdistKey: jsii.Boolean(false),\n\tsortKey: jsii.Boolean(false),\n}",
|
|
1247
1249
|
"version": "1"
|
|
1248
1250
|
},
|
|
1249
1251
|
"$": {
|
|
@@ -1298,7 +1300,7 @@
|
|
|
1298
1300
|
"version": "1"
|
|
1299
1301
|
},
|
|
1300
1302
|
"go": {
|
|
1301
|
-
"source": "
|
|
1303
|
+
"source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport redshift_alpha \"github.com/aws/aws-cdk-go/awscdkredshiftalpha\"\nimport \"github.com/aws/aws-cdk-go/awscdk\"\n\nvar cluster cluster\nvar secret secret\n\ndatabaseOptions := &databaseOptions{\n\tcluster: cluster,\n\tdatabaseName: jsii.String(\"databaseName\"),\n\n\t// the properties below are optional\n\tadminUser: secret,\n}",
|
|
1302
1304
|
"version": "1"
|
|
1303
1305
|
},
|
|
1304
1306
|
"$": {
|
|
@@ -1357,7 +1359,7 @@
|
|
|
1357
1359
|
"version": "1"
|
|
1358
1360
|
},
|
|
1359
1361
|
"go": {
|
|
1360
|
-
"source": "
|
|
1362
|
+
"source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport redshift_alpha \"github.com/aws/aws-cdk-go/awscdkredshiftalpha\"\nimport \"github.com/aws/aws-cdk-go/awscdk\"\n\nvar key key\n\ndatabaseSecret := redshift_alpha.NewDatabaseSecret(this, jsii.String(\"MyDatabaseSecret\"), &databaseSecretProps{\n\tusername: jsii.String(\"username\"),\n\n\t// the properties below are optional\n\tencryptionKey: key,\n})",
|
|
1361
1363
|
"version": "1"
|
|
1362
1364
|
},
|
|
1363
1365
|
"$": {
|
|
@@ -1419,7 +1421,7 @@
|
|
|
1419
1421
|
"version": "1"
|
|
1420
1422
|
},
|
|
1421
1423
|
"go": {
|
|
1422
|
-
"source": "
|
|
1424
|
+
"source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport redshift_alpha \"github.com/aws/aws-cdk-go/awscdkredshiftalpha\"\nimport \"github.com/aws/aws-cdk-go/awscdk\"\n\nvar key key\n\ndatabaseSecretProps := &databaseSecretProps{\n\tusername: jsii.String(\"username\"),\n\n\t// the properties below are optional\n\tencryptionKey: key,\n}",
|
|
1423
1425
|
"version": "1"
|
|
1424
1426
|
},
|
|
1425
1427
|
"$": {
|
|
@@ -1477,7 +1479,7 @@
|
|
|
1477
1479
|
"version": "1"
|
|
1478
1480
|
},
|
|
1479
1481
|
"go": {
|
|
1480
|
-
"source": "
|
|
1482
|
+
"source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport redshift_alpha \"github.com/aws/aws-cdk-go/awscdkredshiftalpha\"\n\nendpoint := redshift_alpha.NewEndpoint(jsii.String(\"address\"), jsii.Number(123))",
|
|
1481
1483
|
"version": "1"
|
|
1482
1484
|
},
|
|
1483
1485
|
"$": {
|
|
@@ -1515,26 +1517,26 @@
|
|
|
1515
1517
|
},
|
|
1516
1518
|
"fqnsFingerprint": "c6644d0c4e31d6f0d49d892ae63fea27c25cfe8f3526cf2fbd4750aed29d8279"
|
|
1517
1519
|
},
|
|
1518
|
-
"
|
|
1520
|
+
"e3f6d7e687b631e8a898681542af004bf210dd16f3872f872f18f58375ee2637": {
|
|
1519
1521
|
"translations": {
|
|
1520
1522
|
"python": {
|
|
1521
|
-
"source": "
|
|
1523
|
+
"source": "user = User(self, \"User\",\n cluster=cluster,\n database_name=\"databaseName\"\n)\ncluster.add_rotation_multi_user(\"MultiUserRotation\",\n secret=user.secret\n)",
|
|
1522
1524
|
"version": "2"
|
|
1523
1525
|
},
|
|
1524
1526
|
"csharp": {
|
|
1525
|
-
"source": "
|
|
1527
|
+
"source": "User user = new User(this, \"User\", new UserProps {\n Cluster = cluster,\n DatabaseName = \"databaseName\"\n});\ncluster.AddRotationMultiUser(\"MultiUserRotation\", new RotationMultiUserOptions {\n Secret = user.Secret\n});",
|
|
1526
1528
|
"version": "1"
|
|
1527
1529
|
},
|
|
1528
1530
|
"java": {
|
|
1529
|
-
"source": "
|
|
1531
|
+
"source": "User user = User.Builder.create(this, \"User\")\n .cluster(cluster)\n .databaseName(\"databaseName\")\n .build();\ncluster.addRotationMultiUser(\"MultiUserRotation\", RotationMultiUserOptions.builder()\n .secret(user.getSecret())\n .build());",
|
|
1530
1532
|
"version": "1"
|
|
1531
1533
|
},
|
|
1532
1534
|
"go": {
|
|
1533
|
-
"source": "
|
|
1535
|
+
"source": "user := awscdkredshiftalpha.NewUser(this, jsii.String(\"User\"), &userProps{\n\tcluster: cluster,\n\tdatabaseName: jsii.String(\"databaseName\"),\n})\ncluster.addRotationMultiUser(jsii.String(\"MultiUserRotation\"), &rotationMultiUserOptions{\n\tsecret: user.secret,\n})",
|
|
1534
1536
|
"version": "1"
|
|
1535
1537
|
},
|
|
1536
1538
|
"$": {
|
|
1537
|
-
"source": "
|
|
1539
|
+
"source": "\nconst user = new User(this, 'User', {\n cluster: cluster,\n databaseName: 'databaseName',\n});\ncluster.addRotationMultiUser('MultiUserRotation', {\n secret: user.secret,\n});",
|
|
1538
1540
|
"version": "0"
|
|
1539
1541
|
}
|
|
1540
1542
|
},
|
|
@@ -1549,54 +1551,53 @@
|
|
|
1549
1551
|
},
|
|
1550
1552
|
"didCompile": true,
|
|
1551
1553
|
"fqnsReferenced": [
|
|
1554
|
+
"@aws-cdk/aws-redshift-alpha.Cluster#addRotationMultiUser",
|
|
1552
1555
|
"@aws-cdk/aws-redshift-alpha.ICluster",
|
|
1553
1556
|
"@aws-cdk/aws-redshift-alpha.Login",
|
|
1557
|
+
"@aws-cdk/aws-redshift-alpha.RotationMultiUserOptions",
|
|
1554
1558
|
"@aws-cdk/aws-redshift-alpha.User",
|
|
1559
|
+
"@aws-cdk/aws-redshift-alpha.User#secret",
|
|
1555
1560
|
"@aws-cdk/aws-redshift-alpha.UserProps",
|
|
1556
1561
|
"aws-cdk-lib.aws_ec2.IVpc",
|
|
1557
|
-
"aws-cdk-lib.
|
|
1558
|
-
"aws-cdk-lib.aws_kms.Key"
|
|
1562
|
+
"aws-cdk-lib.aws_secretsmanager.ISecret"
|
|
1559
1563
|
],
|
|
1560
|
-
"fullSource": "//
|
|
1564
|
+
"fullSource": "// Fixture with cluster already created\nimport { SecretValue, Stack } from 'aws-cdk-lib';\nimport { Vpc } from 'aws-cdk-lib/aws-ec2';\nimport { Cluster, Table, TableAction, TableDistStyle, TableSortStyle, User } from '@aws-cdk/aws-redshift-alpha';\nimport { Construct } from 'constructs';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n const vpc = new Vpc(this, 'Vpc');\n const cluster = new Cluster(this, 'Cluster', {\n vpc,\n masterUser: {\n masterUsername: 'admin',\n },\n });\n\n // Code snippet begins after !show marker below\n/// !show\n\nconst user = new User(this, 'User', {\n cluster: cluster,\n databaseName: 'databaseName',\n});\ncluster.addRotationMultiUser('MultiUserRotation', {\n secret: user.secret,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
|
1561
1565
|
"syntaxKindCounter": {
|
|
1562
|
-
"10":
|
|
1566
|
+
"10": 3,
|
|
1563
1567
|
"75": 10,
|
|
1564
|
-
"104":
|
|
1565
|
-
"193":
|
|
1566
|
-
"194":
|
|
1567
|
-
"
|
|
1568
|
+
"104": 1,
|
|
1569
|
+
"193": 2,
|
|
1570
|
+
"194": 2,
|
|
1571
|
+
"196": 1,
|
|
1572
|
+
"197": 1,
|
|
1568
1573
|
"225": 1,
|
|
1569
1574
|
"226": 1,
|
|
1570
1575
|
"242": 1,
|
|
1571
1576
|
"243": 1,
|
|
1572
|
-
"
|
|
1573
|
-
"255": 1,
|
|
1574
|
-
"256": 1,
|
|
1575
|
-
"281": 3,
|
|
1576
|
-
"290": 1
|
|
1577
|
+
"281": 3
|
|
1577
1578
|
},
|
|
1578
|
-
"fqnsFingerprint": "
|
|
1579
|
+
"fqnsFingerprint": "fa591d4f2cfc5d969d20bf0d6425bfb2dbbb9298ab041cc5860dc6b017f684a5"
|
|
1579
1580
|
},
|
|
1580
|
-
"
|
|
1581
|
+
"ad6779b5715455f5ffcbd38817eb41157a6f5e479549a17625678b92df020204": {
|
|
1581
1582
|
"translations": {
|
|
1582
1583
|
"python": {
|
|
1583
|
-
"source": "
|
|
1584
|
+
"source": "user = User(self, \"User\",\n cluster=cluster,\n database_name=\"databaseName\"\n)\ncluster.add_rotation_multi_user(\"MultiUserRotation\",\n secret=user.secret\n)",
|
|
1584
1585
|
"version": "2"
|
|
1585
1586
|
},
|
|
1586
1587
|
"csharp": {
|
|
1587
|
-
"source": "
|
|
1588
|
+
"source": "User user = new User(this, \"User\", new UserProps {\n Cluster = cluster,\n DatabaseName = \"databaseName\"\n});\ncluster.AddRotationMultiUser(\"MultiUserRotation\", new RotationMultiUserOptions {\n Secret = user.Secret\n});",
|
|
1588
1589
|
"version": "1"
|
|
1589
1590
|
},
|
|
1590
1591
|
"java": {
|
|
1591
|
-
"source": "
|
|
1592
|
+
"source": "User user = User.Builder.create(this, \"User\")\n .cluster(cluster)\n .databaseName(\"databaseName\")\n .build();\ncluster.addRotationMultiUser(\"MultiUserRotation\", RotationMultiUserOptions.builder()\n .secret(user.getSecret())\n .build());",
|
|
1592
1593
|
"version": "1"
|
|
1593
1594
|
},
|
|
1594
1595
|
"go": {
|
|
1595
|
-
"source": "
|
|
1596
|
+
"source": "user := awscdkredshiftalpha.NewUser(this, jsii.String(\"User\"), &userProps{\n\tcluster: cluster,\n\tdatabaseName: jsii.String(\"databaseName\"),\n})\ncluster.addRotationMultiUser(jsii.String(\"MultiUserRotation\"), &rotationMultiUserOptions{\n\tsecret: user.secret,\n})",
|
|
1596
1597
|
"version": "1"
|
|
1597
1598
|
},
|
|
1598
1599
|
"$": {
|
|
1599
|
-
"source": "
|
|
1600
|
+
"source": "\nconst user = new User(this, 'User', {\n cluster: cluster,\n databaseName: 'databaseName',\n});\ncluster.addRotationMultiUser('MultiUserRotation', {\n secret: user.secret,\n});",
|
|
1600
1601
|
"version": "0"
|
|
1601
1602
|
}
|
|
1602
1603
|
},
|
|
@@ -1612,29 +1613,31 @@
|
|
|
1612
1613
|
"didCompile": true,
|
|
1613
1614
|
"fqnsReferenced": [
|
|
1614
1615
|
"@aws-cdk/aws-redshift-alpha.Cluster#addRotationMultiUser",
|
|
1616
|
+
"@aws-cdk/aws-redshift-alpha.ICluster",
|
|
1615
1617
|
"@aws-cdk/aws-redshift-alpha.Login",
|
|
1616
1618
|
"@aws-cdk/aws-redshift-alpha.RotationMultiUserOptions",
|
|
1619
|
+
"@aws-cdk/aws-redshift-alpha.User",
|
|
1620
|
+
"@aws-cdk/aws-redshift-alpha.User#secret",
|
|
1621
|
+
"@aws-cdk/aws-redshift-alpha.UserProps",
|
|
1617
1622
|
"aws-cdk-lib.aws_ec2.IVpc",
|
|
1618
|
-
"aws-cdk-lib.aws_secretsmanager.ISecret"
|
|
1619
|
-
"aws-cdk-lib.aws_secretsmanager.Secret",
|
|
1620
|
-
"aws-cdk-lib.aws_secretsmanager.Secret#fromSecretNameV2"
|
|
1623
|
+
"aws-cdk-lib.aws_secretsmanager.ISecret"
|
|
1621
1624
|
],
|
|
1622
|
-
"fullSource": "//
|
|
1625
|
+
"fullSource": "// Fixture with cluster already created\nimport { SecretValue, Stack } from 'aws-cdk-lib';\nimport { Vpc } from 'aws-cdk-lib/aws-ec2';\nimport { Cluster, Table, TableAction, TableDistStyle, TableSortStyle, User } from '@aws-cdk/aws-redshift-alpha';\nimport { Construct } from 'constructs';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n const vpc = new Vpc(this, 'Vpc');\n const cluster = new Cluster(this, 'Cluster', {\n vpc,\n masterUser: {\n masterUsername: 'admin',\n },\n });\n\n // Code snippet begins after !show marker below\n/// !show\n\nconst user = new User(this, 'User', {\n cluster: cluster,\n databaseName: 'databaseName',\n});\ncluster.addRotationMultiUser('MultiUserRotation', {\n secret: user.secret,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
|
1623
1626
|
"syntaxKindCounter": {
|
|
1624
|
-
"10":
|
|
1625
|
-
"75":
|
|
1627
|
+
"10": 3,
|
|
1628
|
+
"75": 10,
|
|
1626
1629
|
"104": 1,
|
|
1627
|
-
"193":
|
|
1628
|
-
"194":
|
|
1629
|
-
"196":
|
|
1630
|
+
"193": 2,
|
|
1631
|
+
"194": 2,
|
|
1632
|
+
"196": 1,
|
|
1633
|
+
"197": 1,
|
|
1634
|
+
"225": 1,
|
|
1630
1635
|
"226": 1,
|
|
1631
|
-
"
|
|
1632
|
-
"
|
|
1633
|
-
"
|
|
1634
|
-
"281": 1,
|
|
1635
|
-
"290": 1
|
|
1636
|
+
"242": 1,
|
|
1637
|
+
"243": 1,
|
|
1638
|
+
"281": 3
|
|
1636
1639
|
},
|
|
1637
|
-
"fqnsFingerprint": "
|
|
1640
|
+
"fqnsFingerprint": "fa591d4f2cfc5d969d20bf0d6425bfb2dbbb9298ab041cc5860dc6b017f684a5"
|
|
1638
1641
|
},
|
|
1639
1642
|
"2b20eccb399b788ea8ecc892abfae9f31369b856fbe61ed42c4bd8fac0a5bb1c": {
|
|
1640
1643
|
"translations": {
|
|
@@ -1651,7 +1654,7 @@
|
|
|
1651
1654
|
"version": "1"
|
|
1652
1655
|
},
|
|
1653
1656
|
"go": {
|
|
1654
|
-
"source": "NewTable(this, jsii.String(\"Table\"), &tableProps{\n\ttableColumns: []column{\n\t\t&column{\n\t\t\tname: jsii.String(\"col1\"),\n\t\t\tdataType: jsii.String(\"varchar(4)\"),\n\t\t\tdistKey: jsii.Boolean(true),\n\t\t},\n\t\t&column{\n\t\t\tname: jsii.String(\"col2\"),\n\t\t\tdataType: jsii.String(\"float\"),\n\t\t},\n\t},\n\tcluster: cluster,\n\tdatabaseName: jsii.String(\"databaseName\"),\n\tdistStyle:
|
|
1657
|
+
"source": "awscdkredshiftalpha.NewTable(this, jsii.String(\"Table\"), &tableProps{\n\ttableColumns: []column{\n\t\t&column{\n\t\t\tname: jsii.String(\"col1\"),\n\t\t\tdataType: jsii.String(\"varchar(4)\"),\n\t\t\tdistKey: jsii.Boolean(true),\n\t\t},\n\t\t&column{\n\t\t\tname: jsii.String(\"col2\"),\n\t\t\tdataType: jsii.String(\"float\"),\n\t\t},\n\t},\n\tcluster: cluster,\n\tdatabaseName: jsii.String(\"databaseName\"),\n\tdistStyle: awscdkredshiftalpha.TableDistStyle_KEY,\n})",
|
|
1655
1658
|
"version": "1"
|
|
1656
1659
|
},
|
|
1657
1660
|
"$": {
|
|
@@ -1708,7 +1711,7 @@
|
|
|
1708
1711
|
"version": "1"
|
|
1709
1712
|
},
|
|
1710
1713
|
"go": {
|
|
1711
|
-
"source": "databaseName := \"databaseName\"\nusername := \"myuser\"\ntableName := \"mytable\"\n\nuser := NewUser(this, jsii.String(\"User\"), &userProps{\n\tusername: username,\n\tcluster: cluster,\n\tdatabaseName: databaseName,\n})\ntable := NewTable(this, jsii.String(\"Table\"), &tableProps{\n\ttableColumns: []column{\n\t\t&column{\n\t\t\tname: jsii.String(\"col1\"),\n\t\t\tdataType: jsii.String(\"varchar(4)\"),\n\t\t},\n\t\t&column{\n\t\t\tname: jsii.String(\"col2\"),\n\t\t\tdataType: jsii.String(\"float\"),\n\t\t},\n\t},\n\tcluster: cluster,\n\tdatabaseName: databaseName,\n})\ntable.grant(user,
|
|
1714
|
+
"source": "databaseName := \"databaseName\"\nusername := \"myuser\"\ntableName := \"mytable\"\n\nuser := awscdkredshiftalpha.NewUser(this, jsii.String(\"User\"), &userProps{\n\tusername: username,\n\tcluster: cluster,\n\tdatabaseName: databaseName,\n})\ntable := awscdkredshiftalpha.NewTable(this, jsii.String(\"Table\"), &tableProps{\n\ttableColumns: []column{\n\t\t&column{\n\t\t\tname: jsii.String(\"col1\"),\n\t\t\tdataType: jsii.String(\"varchar(4)\"),\n\t\t},\n\t\t&column{\n\t\t\tname: jsii.String(\"col2\"),\n\t\t\tdataType: jsii.String(\"float\"),\n\t\t},\n\t},\n\tcluster: cluster,\n\tdatabaseName: databaseName,\n})\ntable.grant(user, awscdkredshiftalpha.TableAction_INSERT)",
|
|
1712
1715
|
"version": "1"
|
|
1713
1716
|
},
|
|
1714
1717
|
"$": {
|
|
@@ -1754,7 +1757,7 @@
|
|
|
1754
1757
|
"243": 5,
|
|
1755
1758
|
"281": 10
|
|
1756
1759
|
},
|
|
1757
|
-
"fqnsFingerprint": "
|
|
1760
|
+
"fqnsFingerprint": "6bdd258e97b756c22c3058c9ab1ccaac304bb93748c7f94836c2d35c0c58fd93"
|
|
1758
1761
|
},
|
|
1759
1762
|
"01eb515e25d8cf30dd33a23151a9c98a9c6ced1abdff144b661dfb415078489a": {
|
|
1760
1763
|
"translations": {
|
|
@@ -1771,7 +1774,7 @@
|
|
|
1771
1774
|
"version": "1"
|
|
1772
1775
|
},
|
|
1773
1776
|
"go": {
|
|
1774
|
-
"source": "databaseName := \"databaseName\"\nusername := \"myuser\"\ntableName := \"mytable\"\n\nuser :=
|
|
1777
|
+
"source": "databaseName := \"databaseName\"\nusername := \"myuser\"\ntableName := \"mytable\"\n\nuser := awscdkredshiftalpha.User.fromUserAttributes(this, jsii.String(\"User\"), &userAttributes{\n\tusername: username,\n\tpassword: awscdk.SecretValue.unsafePlainText(jsii.String(\"NOT_FOR_PRODUCTION\")),\n\tcluster: cluster,\n\tdatabaseName: databaseName,\n})\ntable := awscdkredshiftalpha.Table.fromTableAttributes(this, jsii.String(\"Table\"), &tableAttributes{\n\ttableName: tableName,\n\ttableColumns: []column{\n\t\t&column{\n\t\t\tname: jsii.String(\"col1\"),\n\t\t\tdataType: jsii.String(\"varchar(4)\"),\n\t\t},\n\t\t&column{\n\t\t\tname: jsii.String(\"col2\"),\n\t\t\tdataType: jsii.String(\"float\"),\n\t\t},\n\t},\n\tcluster: cluster,\n\tdatabaseName: jsii.String(\"databaseName\"),\n})\ntable.grant(user, awscdkredshiftalpha.TableAction_INSERT)",
|
|
1775
1778
|
"version": "1"
|
|
1776
1779
|
},
|
|
1777
1780
|
"$": {
|
|
@@ -1837,7 +1840,7 @@
|
|
|
1837
1840
|
"version": "1"
|
|
1838
1841
|
},
|
|
1839
1842
|
"go": {
|
|
1840
|
-
"source": "NewTable(this, jsii.String(\"Table\"), &tableProps{\n\ttableColumns: []column{\n\t\t&column{\n\t\t\tname: jsii.String(\"col1\"),\n\t\t\tdataType: jsii.String(\"varchar(4)\"),\n\t\t\tdistKey: jsii.Boolean(true),\n\t\t},\n\t\t&column{\n\t\t\tname: jsii.String(\"col2\"),\n\t\t\tdataType: jsii.String(\"float\"),\n\t\t},\n\t},\n\tcluster: cluster,\n\tdatabaseName: jsii.String(\"databaseName\"),\n\tdistStyle:
|
|
1843
|
+
"source": "awscdkredshiftalpha.NewTable(this, jsii.String(\"Table\"), &tableProps{\n\ttableColumns: []column{\n\t\t&column{\n\t\t\tname: jsii.String(\"col1\"),\n\t\t\tdataType: jsii.String(\"varchar(4)\"),\n\t\t\tdistKey: jsii.Boolean(true),\n\t\t},\n\t\t&column{\n\t\t\tname: jsii.String(\"col2\"),\n\t\t\tdataType: jsii.String(\"float\"),\n\t\t},\n\t},\n\tcluster: cluster,\n\tdatabaseName: jsii.String(\"databaseName\"),\n\tdistStyle: awscdkredshiftalpha.TableDistStyle_KEY,\n})",
|
|
1841
1844
|
"version": "1"
|
|
1842
1845
|
},
|
|
1843
1846
|
"$": {
|
|
@@ -1894,7 +1897,7 @@
|
|
|
1894
1897
|
"version": "1"
|
|
1895
1898
|
},
|
|
1896
1899
|
"go": {
|
|
1897
|
-
"source": "NewTable(this, jsii.String(\"Table\"), &tableProps{\n\ttableColumns: []column{\n\t\t&column{\n\t\t\tname: jsii.String(\"col1\"),\n\t\t\tdataType: jsii.String(\"varchar(4)\"),\n\t\t\tdistKey: jsii.Boolean(true),\n\t\t},\n\t\t&column{\n\t\t\tname: jsii.String(\"col2\"),\n\t\t\tdataType: jsii.String(\"float\"),\n\t\t},\n\t},\n\tcluster: cluster,\n\tdatabaseName: jsii.String(\"databaseName\"),\n\tdistStyle:
|
|
1900
|
+
"source": "awscdkredshiftalpha.NewTable(this, jsii.String(\"Table\"), &tableProps{\n\ttableColumns: []column{\n\t\t&column{\n\t\t\tname: jsii.String(\"col1\"),\n\t\t\tdataType: jsii.String(\"varchar(4)\"),\n\t\t\tdistKey: jsii.Boolean(true),\n\t\t},\n\t\t&column{\n\t\t\tname: jsii.String(\"col2\"),\n\t\t\tdataType: jsii.String(\"float\"),\n\t\t},\n\t},\n\tcluster: cluster,\n\tdatabaseName: jsii.String(\"databaseName\"),\n\tdistStyle: awscdkredshiftalpha.TableDistStyle_KEY,\n})",
|
|
1898
1901
|
"version": "1"
|
|
1899
1902
|
},
|
|
1900
1903
|
"$": {
|
|
@@ -1951,7 +1954,7 @@
|
|
|
1951
1954
|
"version": "1"
|
|
1952
1955
|
},
|
|
1953
1956
|
"go": {
|
|
1954
|
-
"source": "NewTable(this, jsii.String(\"Table\"), &tableProps{\n\ttableColumns: []column{\n\t\t&column{\n\t\t\tname: jsii.String(\"col1\"),\n\t\t\tdataType: jsii.String(\"varchar(4)\"),\n\t\t\tsortKey: jsii.Boolean(true),\n\t\t},\n\t\t&column{\n\t\t\tname: jsii.String(\"col2\"),\n\t\t\tdataType: jsii.String(\"float\"),\n\t\t\tsortKey: jsii.Boolean(true),\n\t\t},\n\t},\n\tcluster: cluster,\n\tdatabaseName: jsii.String(\"databaseName\"),\n\tsortStyle:
|
|
1957
|
+
"source": "awscdkredshiftalpha.NewTable(this, jsii.String(\"Table\"), &tableProps{\n\ttableColumns: []column{\n\t\t&column{\n\t\t\tname: jsii.String(\"col1\"),\n\t\t\tdataType: jsii.String(\"varchar(4)\"),\n\t\t\tsortKey: jsii.Boolean(true),\n\t\t},\n\t\t&column{\n\t\t\tname: jsii.String(\"col2\"),\n\t\t\tdataType: jsii.String(\"float\"),\n\t\t\tsortKey: jsii.Boolean(true),\n\t\t},\n\t},\n\tcluster: cluster,\n\tdatabaseName: jsii.String(\"databaseName\"),\n\tsortStyle: awscdkredshiftalpha.TableSortStyle_COMPOUND,\n})",
|
|
1955
1958
|
"version": "1"
|
|
1956
1959
|
},
|
|
1957
1960
|
"$": {
|
|
@@ -1993,26 +1996,26 @@
|
|
|
1993
1996
|
},
|
|
1994
1997
|
"fqnsFingerprint": "ffff7aee2c76aef36666b239828ab1d668f14c49eff63f0efae607658f41e95d"
|
|
1995
1998
|
},
|
|
1996
|
-
"
|
|
1999
|
+
"2d7b7b533f236044c567e80a258f91cf3d90d6c3b93458d9f9ac992379cda6b1": {
|
|
1997
2000
|
"translations": {
|
|
1998
2001
|
"python": {
|
|
1999
|
-
"source": "
|
|
2002
|
+
"source": "user = User(self, \"User\",\n cluster=cluster,\n database_name=\"databaseName\"\n)\ncluster.add_rotation_multi_user(\"MultiUserRotation\",\n secret=user.secret\n)",
|
|
2000
2003
|
"version": "2"
|
|
2001
2004
|
},
|
|
2002
2005
|
"csharp": {
|
|
2003
|
-
"source": "
|
|
2006
|
+
"source": "User user = new User(this, \"User\", new UserProps {\n Cluster = cluster,\n DatabaseName = \"databaseName\"\n});\ncluster.AddRotationMultiUser(\"MultiUserRotation\", new RotationMultiUserOptions {\n Secret = user.Secret\n});",
|
|
2004
2007
|
"version": "1"
|
|
2005
2008
|
},
|
|
2006
2009
|
"java": {
|
|
2007
|
-
"source": "
|
|
2010
|
+
"source": "User user = User.Builder.create(this, \"User\")\n .cluster(cluster)\n .databaseName(\"databaseName\")\n .build();\ncluster.addRotationMultiUser(\"MultiUserRotation\", RotationMultiUserOptions.builder()\n .secret(user.getSecret())\n .build());",
|
|
2008
2011
|
"version": "1"
|
|
2009
2012
|
},
|
|
2010
2013
|
"go": {
|
|
2011
|
-
"source": "
|
|
2014
|
+
"source": "user := awscdkredshiftalpha.NewUser(this, jsii.String(\"User\"), &userProps{\n\tcluster: cluster,\n\tdatabaseName: jsii.String(\"databaseName\"),\n})\ncluster.addRotationMultiUser(jsii.String(\"MultiUserRotation\"), &rotationMultiUserOptions{\n\tsecret: user.secret,\n})",
|
|
2012
2015
|
"version": "1"
|
|
2013
2016
|
},
|
|
2014
2017
|
"$": {
|
|
2015
|
-
"source": "
|
|
2018
|
+
"source": "\nconst user = new User(this, 'User', {\n cluster: cluster,\n databaseName: 'databaseName',\n});\ncluster.addRotationMultiUser('MultiUserRotation', {\n secret: user.secret,\n});",
|
|
2016
2019
|
"version": "0"
|
|
2017
2020
|
}
|
|
2018
2021
|
},
|
|
@@ -2027,33 +2030,32 @@
|
|
|
2027
2030
|
},
|
|
2028
2031
|
"didCompile": true,
|
|
2029
2032
|
"fqnsReferenced": [
|
|
2033
|
+
"@aws-cdk/aws-redshift-alpha.Cluster#addRotationMultiUser",
|
|
2030
2034
|
"@aws-cdk/aws-redshift-alpha.ICluster",
|
|
2031
2035
|
"@aws-cdk/aws-redshift-alpha.Login",
|
|
2036
|
+
"@aws-cdk/aws-redshift-alpha.RotationMultiUserOptions",
|
|
2032
2037
|
"@aws-cdk/aws-redshift-alpha.User",
|
|
2038
|
+
"@aws-cdk/aws-redshift-alpha.User#secret",
|
|
2033
2039
|
"@aws-cdk/aws-redshift-alpha.UserProps",
|
|
2034
2040
|
"aws-cdk-lib.aws_ec2.IVpc",
|
|
2035
|
-
"aws-cdk-lib.
|
|
2036
|
-
"aws-cdk-lib.aws_kms.Key"
|
|
2041
|
+
"aws-cdk-lib.aws_secretsmanager.ISecret"
|
|
2037
2042
|
],
|
|
2038
|
-
"fullSource": "//
|
|
2043
|
+
"fullSource": "// Fixture with cluster already created\nimport { SecretValue, Stack } from 'aws-cdk-lib';\nimport { Vpc } from 'aws-cdk-lib/aws-ec2';\nimport { Cluster, Table, TableAction, TableDistStyle, TableSortStyle, User } from '@aws-cdk/aws-redshift-alpha';\nimport { Construct } from 'constructs';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n const vpc = new Vpc(this, 'Vpc');\n const cluster = new Cluster(this, 'Cluster', {\n vpc,\n masterUser: {\n masterUsername: 'admin',\n },\n });\n\n // Code snippet begins after !show marker below\n/// !show\n\nconst user = new User(this, 'User', {\n cluster: cluster,\n databaseName: 'databaseName',\n});\ncluster.addRotationMultiUser('MultiUserRotation', {\n secret: user.secret,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
|
2039
2044
|
"syntaxKindCounter": {
|
|
2040
|
-
"10":
|
|
2045
|
+
"10": 3,
|
|
2041
2046
|
"75": 10,
|
|
2042
|
-
"104":
|
|
2043
|
-
"193":
|
|
2044
|
-
"194":
|
|
2045
|
-
"
|
|
2047
|
+
"104": 1,
|
|
2048
|
+
"193": 2,
|
|
2049
|
+
"194": 2,
|
|
2050
|
+
"196": 1,
|
|
2051
|
+
"197": 1,
|
|
2046
2052
|
"225": 1,
|
|
2047
2053
|
"226": 1,
|
|
2048
2054
|
"242": 1,
|
|
2049
2055
|
"243": 1,
|
|
2050
|
-
"
|
|
2051
|
-
"255": 1,
|
|
2052
|
-
"256": 1,
|
|
2053
|
-
"281": 3,
|
|
2054
|
-
"290": 1
|
|
2056
|
+
"281": 3
|
|
2055
2057
|
},
|
|
2056
|
-
"fqnsFingerprint": "
|
|
2058
|
+
"fqnsFingerprint": "fa591d4f2cfc5d969d20bf0d6425bfb2dbbb9298ab041cc5860dc6b017f684a5"
|
|
2057
2059
|
},
|
|
2058
2060
|
"2cf21a315059ce9a0656d5b8594fd78fe86ffe7b8fb88234f7e2e2f1443706ce": {
|
|
2059
2061
|
"translations": {
|
|
@@ -2070,7 +2072,7 @@
|
|
|
2070
2072
|
"version": "1"
|
|
2071
2073
|
},
|
|
2072
2074
|
"go": {
|
|
2073
|
-
"source": "databaseName := \"databaseName\"\nusername := \"myuser\"\ntableName := \"mytable\"\n\nuser :=
|
|
2075
|
+
"source": "databaseName := \"databaseName\"\nusername := \"myuser\"\ntableName := \"mytable\"\n\nuser := awscdkredshiftalpha.User.fromUserAttributes(this, jsii.String(\"User\"), &userAttributes{\n\tusername: username,\n\tpassword: awscdk.SecretValue.unsafePlainText(jsii.String(\"NOT_FOR_PRODUCTION\")),\n\tcluster: cluster,\n\tdatabaseName: databaseName,\n})\ntable := awscdkredshiftalpha.Table.fromTableAttributes(this, jsii.String(\"Table\"), &tableAttributes{\n\ttableName: tableName,\n\ttableColumns: []column{\n\t\t&column{\n\t\t\tname: jsii.String(\"col1\"),\n\t\t\tdataType: jsii.String(\"varchar(4)\"),\n\t\t},\n\t\t&column{\n\t\t\tname: jsii.String(\"col2\"),\n\t\t\tdataType: jsii.String(\"float\"),\n\t\t},\n\t},\n\tcluster: cluster,\n\tdatabaseName: jsii.String(\"databaseName\"),\n})\ntable.grant(user, awscdkredshiftalpha.TableAction_INSERT)",
|
|
2074
2076
|
"version": "1"
|
|
2075
2077
|
},
|
|
2076
2078
|
"$": {
|
|
@@ -2121,26 +2123,26 @@
|
|
|
2121
2123
|
},
|
|
2122
2124
|
"fqnsFingerprint": "24186b7c8a0bcf8435a0339c4d699742b9b83778757438e50e0e9adaf885f8a9"
|
|
2123
2125
|
},
|
|
2124
|
-
"
|
|
2126
|
+
"802e3b6844c974c2034052a3e9bbbc164947a7bf6c3797ce958bdbfb4962f43f": {
|
|
2125
2127
|
"translations": {
|
|
2126
2128
|
"python": {
|
|
2127
|
-
"source": "
|
|
2129
|
+
"source": "user = User(self, \"User\",\n cluster=cluster,\n database_name=\"databaseName\"\n)\ncluster.add_rotation_multi_user(\"MultiUserRotation\",\n secret=user.secret\n)",
|
|
2128
2130
|
"version": "2"
|
|
2129
2131
|
},
|
|
2130
2132
|
"csharp": {
|
|
2131
|
-
"source": "
|
|
2133
|
+
"source": "User user = new User(this, \"User\", new UserProps {\n Cluster = cluster,\n DatabaseName = \"databaseName\"\n});\ncluster.AddRotationMultiUser(\"MultiUserRotation\", new RotationMultiUserOptions {\n Secret = user.Secret\n});",
|
|
2132
2134
|
"version": "1"
|
|
2133
2135
|
},
|
|
2134
2136
|
"java": {
|
|
2135
|
-
"source": "
|
|
2137
|
+
"source": "User user = User.Builder.create(this, \"User\")\n .cluster(cluster)\n .databaseName(\"databaseName\")\n .build();\ncluster.addRotationMultiUser(\"MultiUserRotation\", RotationMultiUserOptions.builder()\n .secret(user.getSecret())\n .build());",
|
|
2136
2138
|
"version": "1"
|
|
2137
2139
|
},
|
|
2138
2140
|
"go": {
|
|
2139
|
-
"source": "
|
|
2141
|
+
"source": "user := awscdkredshiftalpha.NewUser(this, jsii.String(\"User\"), &userProps{\n\tcluster: cluster,\n\tdatabaseName: jsii.String(\"databaseName\"),\n})\ncluster.addRotationMultiUser(jsii.String(\"MultiUserRotation\"), &rotationMultiUserOptions{\n\tsecret: user.secret,\n})",
|
|
2140
2142
|
"version": "1"
|
|
2141
2143
|
},
|
|
2142
2144
|
"$": {
|
|
2143
|
-
"source": "
|
|
2145
|
+
"source": "\nconst user = new User(this, 'User', {\n cluster: cluster,\n databaseName: 'databaseName',\n});\ncluster.addRotationMultiUser('MultiUserRotation', {\n secret: user.secret,\n});",
|
|
2144
2146
|
"version": "0"
|
|
2145
2147
|
}
|
|
2146
2148
|
},
|
|
@@ -2155,33 +2157,32 @@
|
|
|
2155
2157
|
},
|
|
2156
2158
|
"didCompile": true,
|
|
2157
2159
|
"fqnsReferenced": [
|
|
2160
|
+
"@aws-cdk/aws-redshift-alpha.Cluster#addRotationMultiUser",
|
|
2158
2161
|
"@aws-cdk/aws-redshift-alpha.ICluster",
|
|
2159
2162
|
"@aws-cdk/aws-redshift-alpha.Login",
|
|
2163
|
+
"@aws-cdk/aws-redshift-alpha.RotationMultiUserOptions",
|
|
2160
2164
|
"@aws-cdk/aws-redshift-alpha.User",
|
|
2165
|
+
"@aws-cdk/aws-redshift-alpha.User#secret",
|
|
2161
2166
|
"@aws-cdk/aws-redshift-alpha.UserProps",
|
|
2162
2167
|
"aws-cdk-lib.aws_ec2.IVpc",
|
|
2163
|
-
"aws-cdk-lib.
|
|
2164
|
-
"aws-cdk-lib.aws_kms.Key"
|
|
2168
|
+
"aws-cdk-lib.aws_secretsmanager.ISecret"
|
|
2165
2169
|
],
|
|
2166
|
-
"fullSource": "//
|
|
2170
|
+
"fullSource": "// Fixture with cluster already created\nimport { SecretValue, Stack } from 'aws-cdk-lib';\nimport { Vpc } from 'aws-cdk-lib/aws-ec2';\nimport { Cluster, Table, TableAction, TableDistStyle, TableSortStyle, User } from '@aws-cdk/aws-redshift-alpha';\nimport { Construct } from 'constructs';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n const vpc = new Vpc(this, 'Vpc');\n const cluster = new Cluster(this, 'Cluster', {\n vpc,\n masterUser: {\n masterUsername: 'admin',\n },\n });\n\n // Code snippet begins after !show marker below\n/// !show\n\nconst user = new User(this, 'User', {\n cluster: cluster,\n databaseName: 'databaseName',\n});\ncluster.addRotationMultiUser('MultiUserRotation', {\n secret: user.secret,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
|
2167
2171
|
"syntaxKindCounter": {
|
|
2168
|
-
"10":
|
|
2172
|
+
"10": 3,
|
|
2169
2173
|
"75": 10,
|
|
2170
|
-
"104":
|
|
2171
|
-
"193":
|
|
2172
|
-
"194":
|
|
2173
|
-
"
|
|
2174
|
+
"104": 1,
|
|
2175
|
+
"193": 2,
|
|
2176
|
+
"194": 2,
|
|
2177
|
+
"196": 1,
|
|
2178
|
+
"197": 1,
|
|
2174
2179
|
"225": 1,
|
|
2175
2180
|
"226": 1,
|
|
2176
2181
|
"242": 1,
|
|
2177
2182
|
"243": 1,
|
|
2178
|
-
"
|
|
2179
|
-
"255": 1,
|
|
2180
|
-
"256": 1,
|
|
2181
|
-
"281": 3,
|
|
2182
|
-
"290": 1
|
|
2183
|
+
"281": 3
|
|
2183
2184
|
},
|
|
2184
|
-
"fqnsFingerprint": "
|
|
2185
|
+
"fqnsFingerprint": "fa591d4f2cfc5d969d20bf0d6425bfb2dbbb9298ab041cc5860dc6b017f684a5"
|
|
2185
2186
|
}
|
|
2186
2187
|
}
|
|
2187
2188
|
}
|