@aws-cdk/aws-redshift-alpha 2.0.0-alpha.9 → 2.2.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.
@@ -0,0 +1,1488 @@
1
+ {
2
+ "version": "2",
3
+ "toolVersion": "1.47.0",
4
+ "snippets": {
5
+ "77425c7fd1ef15dd1574743be3c65278d07651c9c04e0bd9981eea74eda15594": {
6
+ "translations": {
7
+ "python": {
8
+ "source": "import aws_cdk.aws_ec2 as ec2\n\n\nvpc = ec2.Vpc(self, \"Vpc\")\ncluster = Cluster(self, \"Redshift\",\n master_user=Login(\n master_username=\"admin\"\n ),\n vpc=vpc\n)",
9
+ "version": "1"
10
+ },
11
+ "csharp": {
12
+ "source": "using Amazon.CDK.AWS.EC2;\n\n\nVpc vpc = new Vpc(this, \"Vpc\");\nCluster cluster = new Cluster(this, \"Redshift\", new ClusterProps {\n MasterUser = new Login {\n MasterUsername = \"admin\"\n },\n Vpc = vpc\n});",
13
+ "version": "1"
14
+ },
15
+ "java": {
16
+ "source": "import software.amazon.awscdk.services.ec2.*;\n\n\nVpc vpc = new Vpc(this, \"Vpc\");\nCluster cluster = Cluster.Builder.create(this, \"Redshift\")\n .masterUser(Login.builder()\n .masterUsername(\"admin\")\n .build())\n .vpc(vpc)\n .build();",
17
+ "version": "1"
18
+ },
19
+ "$": {
20
+ "source": "import * as ec2 from 'aws-cdk-lib/aws-ec2';\n\nconst vpc = new ec2.Vpc(this, 'Vpc');\nconst cluster = new Cluster(this, 'Redshift', {\n masterUser: {\n masterUsername: 'admin',\n },\n vpc\n});",
21
+ "version": "0"
22
+ }
23
+ },
24
+ "location": {
25
+ "api": {
26
+ "api": "moduleReadme",
27
+ "moduleFqn": "@aws-cdk/aws-redshift-alpha"
28
+ },
29
+ "field": {
30
+ "field": "markdown",
31
+ "line": 23
32
+ }
33
+ },
34
+ "didCompile": true,
35
+ "fqnsReferenced": [
36
+ "@aws-cdk/aws-redshift-alpha.Cluster",
37
+ "@aws-cdk/aws-redshift-alpha.ClusterProps",
38
+ "@aws-cdk/aws-redshift-alpha.Login",
39
+ "aws-cdk-lib.aws_ec2.IVpc",
40
+ "aws-cdk-lib.aws_ec2.Vpc"
41
+ ],
42
+ "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\nimport * as ec2 from 'aws-cdk-lib/aws-ec2';\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Stack } from 'aws-cdk-lib';\nimport { Cluster } 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 // Code snippet begins after !show marker below\n/// !show\n\n\nconst vpc = new ec2.Vpc(this, 'Vpc');\nconst cluster = new Cluster(this, 'Redshift', {\n masterUser: {\n masterUsername: 'admin',\n },\n vpc\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
43
+ "syntaxKindCounter": {
44
+ "10": 4,
45
+ "75": 9,
46
+ "104": 2,
47
+ "193": 2,
48
+ "194": 1,
49
+ "197": 2,
50
+ "225": 2,
51
+ "242": 2,
52
+ "243": 2,
53
+ "254": 1,
54
+ "255": 1,
55
+ "256": 1,
56
+ "281": 2,
57
+ "282": 1,
58
+ "290": 1
59
+ },
60
+ "fqnsFingerprint": "f112f27bb099f5727310ff70783c566dc474a01ddf1ce62e9b851cefd59f48da"
61
+ },
62
+ "585b6875877412a14dd2e8e16c2432d724a4db31d1a9f095692345f7966168b0": {
63
+ "translations": {
64
+ "python": {
65
+ "source": "cluster.connections.allow_default_port_from_any_ipv4(\"Open to the world\")",
66
+ "version": "1"
67
+ },
68
+ "csharp": {
69
+ "source": "cluster.Connections.AllowDefaultPortFromAnyIpv4(\"Open to the world\");",
70
+ "version": "1"
71
+ },
72
+ "java": {
73
+ "source": "cluster.connections.allowDefaultPortFromAnyIpv4(\"Open to the world\");",
74
+ "version": "1"
75
+ },
76
+ "$": {
77
+ "source": "cluster.connections.allowDefaultPortFromAnyIpv4('Open to the world');",
78
+ "version": "0"
79
+ }
80
+ },
81
+ "location": {
82
+ "api": {
83
+ "api": "moduleReadme",
84
+ "moduleFqn": "@aws-cdk/aws-redshift-alpha"
85
+ },
86
+ "field": {
87
+ "field": "markdown",
88
+ "line": 47
89
+ }
90
+ },
91
+ "didCompile": true,
92
+ "fqnsReferenced": [
93
+ "@aws-cdk/aws-redshift-alpha.Cluster#connections",
94
+ "@aws-cdk/aws-redshift-alpha.Login",
95
+ "aws-cdk-lib.aws_ec2.Connections#allowDefaultPortFromAnyIpv4",
96
+ "aws-cdk-lib.aws_ec2.IVpc"
97
+ ],
98
+ "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.connections.allowDefaultPortFromAnyIpv4('Open to the world');\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
99
+ "syntaxKindCounter": {
100
+ "10": 1,
101
+ "75": 3,
102
+ "194": 2,
103
+ "196": 1,
104
+ "226": 1
105
+ },
106
+ "fqnsFingerprint": "801845dac76262d0841ac571cc88c1fe21b0151381be33fcbbaa210d7a356eb0"
107
+ },
108
+ "53898f5c76a5790226ff3b2e6dc225fa1c4e4ce020d0dd2ec508edfc011431a9": {
109
+ "translations": {
110
+ "python": {
111
+ "source": "cluster.cluster_endpoint.socket_address",
112
+ "version": "1"
113
+ },
114
+ "csharp": {
115
+ "source": "cluster.ClusterEndpoint.SocketAddress;",
116
+ "version": "1"
117
+ },
118
+ "java": {
119
+ "source": "cluster.getClusterEndpoint().getSocketAddress();",
120
+ "version": "1"
121
+ },
122
+ "$": {
123
+ "source": "cluster.clusterEndpoint.socketAddress; // \"HOSTNAME:PORT\"",
124
+ "version": "0"
125
+ }
126
+ },
127
+ "location": {
128
+ "api": {
129
+ "api": "moduleReadme",
130
+ "moduleFqn": "@aws-cdk/aws-redshift-alpha"
131
+ },
132
+ "field": {
133
+ "field": "markdown",
134
+ "line": 53
135
+ }
136
+ },
137
+ "didCompile": true,
138
+ "fqnsReferenced": [
139
+ "@aws-cdk/aws-redshift-alpha.Cluster#clusterEndpoint",
140
+ "@aws-cdk/aws-redshift-alpha.Endpoint#socketAddress",
141
+ "@aws-cdk/aws-redshift-alpha.Login",
142
+ "aws-cdk-lib.aws_ec2.IVpc"
143
+ ],
144
+ "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.clusterEndpoint.socketAddress;\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
145
+ "syntaxKindCounter": {
146
+ "75": 3,
147
+ "194": 2,
148
+ "226": 1
149
+ },
150
+ "fqnsFingerprint": "2f16561a9971aef1fd2b91bef76686a7ea158a1028284b248c2cf71798c365ec"
151
+ },
152
+ "ea7697f36a541ca083e3f22fdf5be6a1d19936e9af89c79f4491e89041cc4c86": {
153
+ "translations": {
154
+ "python": {
155
+ "source": "cluster.add_rotation_single_user()",
156
+ "version": "1"
157
+ },
158
+ "csharp": {
159
+ "source": "cluster.AddRotationSingleUser();",
160
+ "version": "1"
161
+ },
162
+ "java": {
163
+ "source": "cluster.addRotationSingleUser();",
164
+ "version": "1"
165
+ },
166
+ "$": {
167
+ "source": "cluster.addRotationSingleUser(); // Will rotate automatically after 30 days",
168
+ "version": "0"
169
+ }
170
+ },
171
+ "location": {
172
+ "api": {
173
+ "api": "moduleReadme",
174
+ "moduleFqn": "@aws-cdk/aws-redshift-alpha"
175
+ },
176
+ "field": {
177
+ "field": "markdown",
178
+ "line": 61
179
+ }
180
+ },
181
+ "didCompile": true,
182
+ "fqnsReferenced": [
183
+ "@aws-cdk/aws-redshift-alpha.Cluster#addRotationSingleUser",
184
+ "@aws-cdk/aws-redshift-alpha.Login",
185
+ "aws-cdk-lib.aws_ec2.IVpc"
186
+ ],
187
+ "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",
188
+ "syntaxKindCounter": {
189
+ "75": 2,
190
+ "194": 1,
191
+ "196": 1,
192
+ "226": 1
193
+ },
194
+ "fqnsFingerprint": "86730bf8c257eaa67afbfb8541224abeb9283e732c8b93600de7c995d2629ebd"
195
+ },
196
+ "e74f34fb7fe6a47b5f7cc19db770a7874292b0618579dc7fbdb83bfb017e5f29": {
197
+ "translations": {
198
+ "python": {
199
+ "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)",
200
+ "version": "1"
201
+ },
202
+ "csharp": {
203
+ "source": "using Amazon.CDK.AWS.SecretsManager;\n\n\ncluster.AddRotationMultiUser(\"MyUser\", new RotationMultiUserOptions {\n Secret = Secret.FromSecretNameV2(this, \"Imported Secret\", \"my-secret\")\n});",
204
+ "version": "1"
205
+ },
206
+ "java": {
207
+ "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());",
208
+ "version": "1"
209
+ },
210
+ "$": {
211
+ "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});",
212
+ "version": "0"
213
+ }
214
+ },
215
+ "location": {
216
+ "api": {
217
+ "api": "moduleReadme",
218
+ "moduleFqn": "@aws-cdk/aws-redshift-alpha"
219
+ },
220
+ "field": {
221
+ "field": "markdown",
222
+ "line": 67
223
+ }
224
+ },
225
+ "didCompile": true,
226
+ "fqnsReferenced": [
227
+ "@aws-cdk/aws-redshift-alpha.Cluster#addRotationMultiUser",
228
+ "@aws-cdk/aws-redshift-alpha.Login",
229
+ "@aws-cdk/aws-redshift-alpha.RotationMultiUserOptions",
230
+ "aws-cdk-lib.aws_ec2.IVpc",
231
+ "aws-cdk-lib.aws_secretsmanager.ISecret",
232
+ "aws-cdk-lib.aws_secretsmanager.Secret",
233
+ "aws-cdk-lib.aws_secretsmanager.Secret#fromSecretNameV2"
234
+ ],
235
+ "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",
236
+ "syntaxKindCounter": {
237
+ "10": 4,
238
+ "75": 7,
239
+ "104": 1,
240
+ "193": 1,
241
+ "194": 3,
242
+ "196": 2,
243
+ "226": 1,
244
+ "254": 1,
245
+ "255": 1,
246
+ "256": 1,
247
+ "281": 1,
248
+ "290": 1
249
+ },
250
+ "fqnsFingerprint": "0205305a542164ab1df5d64fbad5bb9f90e5bd653eecee5d92e4c7ea6adc282e"
251
+ },
252
+ "60decaed1d4917292cd776865b3b6999cb55ecf2dd2cec4353a9a92d38d4fc3a": {
253
+ "translations": {
254
+ "python": {
255
+ "source": "User(self, \"User\",\n cluster=cluster,\n database_name=\"databaseName\"\n)",
256
+ "version": "1"
257
+ },
258
+ "csharp": {
259
+ "source": "new User(this, \"User\", new UserProps {\n Cluster = cluster,\n DatabaseName = \"databaseName\"\n});",
260
+ "version": "1"
261
+ },
262
+ "java": {
263
+ "source": "User.Builder.create(this, \"User\")\n .cluster(cluster)\n .databaseName(\"databaseName\")\n .build();",
264
+ "version": "1"
265
+ },
266
+ "$": {
267
+ "source": "new User(this, 'User', {\n cluster: cluster,\n databaseName: 'databaseName',\n});",
268
+ "version": "0"
269
+ }
270
+ },
271
+ "location": {
272
+ "api": {
273
+ "api": "moduleReadme",
274
+ "moduleFqn": "@aws-cdk/aws-redshift-alpha"
275
+ },
276
+ "field": {
277
+ "field": "markdown",
278
+ "line": 105
279
+ }
280
+ },
281
+ "didCompile": true,
282
+ "fqnsReferenced": [
283
+ "@aws-cdk/aws-redshift-alpha.ICluster",
284
+ "@aws-cdk/aws-redshift-alpha.Login",
285
+ "@aws-cdk/aws-redshift-alpha.User",
286
+ "@aws-cdk/aws-redshift-alpha.UserProps",
287
+ "aws-cdk-lib.aws_ec2.IVpc"
288
+ ],
289
+ "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\nnew User(this, 'User', {\n cluster: cluster,\n databaseName: 'databaseName',\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
290
+ "syntaxKindCounter": {
291
+ "10": 2,
292
+ "75": 4,
293
+ "104": 1,
294
+ "193": 1,
295
+ "197": 1,
296
+ "226": 1,
297
+ "281": 2
298
+ },
299
+ "fqnsFingerprint": "217af1ff700491b860d6b318218604ab5531737f32fe8c2a6b7330c41f1b351b"
300
+ },
301
+ "7cf073ffb5972e1259d951481763f8da403e1fee297039b18b7a0ef91445d9b9": {
302
+ "translations": {
303
+ "python": {
304
+ "source": "import aws_cdk.aws_kms as kms\n\n\nencryption_key = kms.Key(self, \"Key\")\nUser(self, \"User\",\n encryption_key=encryption_key,\n cluster=cluster,\n database_name=\"databaseName\"\n)",
305
+ "version": "1"
306
+ },
307
+ "csharp": {
308
+ "source": "using Amazon.CDK.AWS.KMS;\n\n\nKey encryptionKey = new Key(this, \"Key\");\nnew User(this, \"User\", new UserProps {\n EncryptionKey = encryptionKey,\n Cluster = cluster,\n DatabaseName = \"databaseName\"\n});",
309
+ "version": "1"
310
+ },
311
+ "java": {
312
+ "source": "import software.amazon.awscdk.services.kms.*;\n\n\nKey encryptionKey = new Key(this, \"Key\");\nUser.Builder.create(this, \"User\")\n .encryptionKey(encryptionKey)\n .cluster(cluster)\n .databaseName(\"databaseName\")\n .build();",
313
+ "version": "1"
314
+ },
315
+ "$": {
316
+ "source": "import * as kms from 'aws-cdk-lib/aws-kms';\n\nconst encryptionKey = new kms.Key(this, 'Key');\nnew User(this, 'User', {\n encryptionKey: encryptionKey,\n cluster: cluster,\n databaseName: 'databaseName',\n});",
317
+ "version": "0"
318
+ }
319
+ },
320
+ "location": {
321
+ "api": {
322
+ "api": "moduleReadme",
323
+ "moduleFqn": "@aws-cdk/aws-redshift-alpha"
324
+ },
325
+ "field": {
326
+ "field": "markdown",
327
+ "line": 116
328
+ }
329
+ },
330
+ "didCompile": true,
331
+ "fqnsReferenced": [
332
+ "@aws-cdk/aws-redshift-alpha.ICluster",
333
+ "@aws-cdk/aws-redshift-alpha.Login",
334
+ "@aws-cdk/aws-redshift-alpha.User",
335
+ "@aws-cdk/aws-redshift-alpha.UserProps",
336
+ "aws-cdk-lib.aws_ec2.IVpc",
337
+ "aws-cdk-lib.aws_kms.IKey",
338
+ "aws-cdk-lib.aws_kms.Key"
339
+ ],
340
+ "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\nimport * as kms from 'aws-cdk-lib/aws-kms';\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\nconst encryptionKey = new kms.Key(this, 'Key');\nnew User(this, 'User', {\n encryptionKey: encryptionKey,\n cluster: cluster,\n databaseName: 'databaseName',\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
341
+ "syntaxKindCounter": {
342
+ "10": 4,
343
+ "75": 10,
344
+ "104": 2,
345
+ "193": 1,
346
+ "194": 1,
347
+ "197": 2,
348
+ "225": 1,
349
+ "226": 1,
350
+ "242": 1,
351
+ "243": 1,
352
+ "254": 1,
353
+ "255": 1,
354
+ "256": 1,
355
+ "281": 3,
356
+ "290": 1
357
+ },
358
+ "fqnsFingerprint": "63284dcabfe522bbb2ca08f151970f850ecd197b7e0350605a713aa9613baff7"
359
+ },
360
+ "8b226b5e5f30a1e1dd1cdf8a2c4bb393bf11672cb0f8390eba8f0d4ce86c2b29": {
361
+ "translations": {
362
+ "python": {
363
+ "source": "User(self, \"User\",\n username=\"myuser\",\n cluster=cluster,\n database_name=\"databaseName\"\n)",
364
+ "version": "1"
365
+ },
366
+ "csharp": {
367
+ "source": "new User(this, \"User\", new UserProps {\n Username = \"myuser\",\n Cluster = cluster,\n DatabaseName = \"databaseName\"\n});",
368
+ "version": "1"
369
+ },
370
+ "java": {
371
+ "source": "User.Builder.create(this, \"User\")\n .username(\"myuser\")\n .cluster(cluster)\n .databaseName(\"databaseName\")\n .build();",
372
+ "version": "1"
373
+ },
374
+ "$": {
375
+ "source": "new User(this, 'User', {\n username: 'myuser',\n cluster: cluster,\n databaseName: 'databaseName',\n});",
376
+ "version": "0"
377
+ }
378
+ },
379
+ "location": {
380
+ "api": {
381
+ "api": "moduleReadme",
382
+ "moduleFqn": "@aws-cdk/aws-redshift-alpha"
383
+ },
384
+ "field": {
385
+ "field": "markdown",
386
+ "line": 133
387
+ }
388
+ },
389
+ "didCompile": true,
390
+ "fqnsReferenced": [
391
+ "@aws-cdk/aws-redshift-alpha.ICluster",
392
+ "@aws-cdk/aws-redshift-alpha.Login",
393
+ "@aws-cdk/aws-redshift-alpha.User",
394
+ "@aws-cdk/aws-redshift-alpha.UserProps",
395
+ "aws-cdk-lib.aws_ec2.IVpc"
396
+ ],
397
+ "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\nnew User(this, 'User', {\n username: 'myuser',\n cluster: cluster,\n databaseName: 'databaseName',\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
398
+ "syntaxKindCounter": {
399
+ "10": 3,
400
+ "75": 5,
401
+ "104": 1,
402
+ "193": 1,
403
+ "197": 1,
404
+ "226": 1,
405
+ "281": 3
406
+ },
407
+ "fqnsFingerprint": "217af1ff700491b860d6b318218604ab5531737f32fe8c2a6b7330c41f1b351b"
408
+ },
409
+ "51173779cc099a9ee0c91df2a0c3ca5d4940c309c4927477053b972d5c7012a7": {
410
+ "translations": {
411
+ "python": {
412
+ "source": "Table(self, \"Table\",\n table_columns=[Column(name=\"col1\", data_type=\"varchar(4)\"), Column(name=\"col2\", data_type=\"float\")],\n cluster=cluster,\n database_name=\"databaseName\"\n)",
413
+ "version": "1"
414
+ },
415
+ "csharp": {
416
+ "source": "new Table(this, \"Table\", new TableProps {\n TableColumns = new [] { new Column { Name = \"col1\", DataType = \"varchar(4)\" }, new Column { Name = \"col2\", DataType = \"float\" } },\n Cluster = cluster,\n DatabaseName = \"databaseName\"\n});",
417
+ "version": "1"
418
+ },
419
+ "java": {
420
+ "source": "Table.Builder.create(this, \"Table\")\n .tableColumns(List.of(Column.builder().name(\"col1\").dataType(\"varchar(4)\").build(), Column.builder().name(\"col2\").dataType(\"float\").build()))\n .cluster(cluster)\n .databaseName(\"databaseName\")\n .build();",
421
+ "version": "1"
422
+ },
423
+ "$": {
424
+ "source": "new Table(this, 'Table', {\n tableColumns: [{ name: 'col1', dataType: 'varchar(4)' }, { name: 'col2', dataType: 'float' }],\n cluster: cluster,\n databaseName: 'databaseName',\n});",
425
+ "version": "0"
426
+ }
427
+ },
428
+ "location": {
429
+ "api": {
430
+ "api": "moduleReadme",
431
+ "moduleFqn": "@aws-cdk/aws-redshift-alpha"
432
+ },
433
+ "field": {
434
+ "field": "markdown",
435
+ "line": 156
436
+ }
437
+ },
438
+ "didCompile": true,
439
+ "fqnsReferenced": [
440
+ "@aws-cdk/aws-redshift-alpha.ICluster",
441
+ "@aws-cdk/aws-redshift-alpha.Login",
442
+ "@aws-cdk/aws-redshift-alpha.Table",
443
+ "@aws-cdk/aws-redshift-alpha.TableProps",
444
+ "aws-cdk-lib.aws_ec2.IVpc"
445
+ ],
446
+ "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\nnew Table(this, 'Table', {\n tableColumns: [{ name: 'col1', dataType: 'varchar(4)' }, { name: 'col2', dataType: 'float' }],\n cluster: cluster,\n databaseName: 'databaseName',\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
447
+ "syntaxKindCounter": {
448
+ "10": 6,
449
+ "75": 9,
450
+ "104": 1,
451
+ "192": 1,
452
+ "193": 3,
453
+ "197": 1,
454
+ "226": 1,
455
+ "281": 7
456
+ },
457
+ "fqnsFingerprint": "aade9ee849eaa14a9c5807bcb436232d19c9fb15855330dfabe83fe59e1e8455"
458
+ },
459
+ "aad92f9790d1e46c93d01e7996a2c3516cc660f3bbcf1f752db71f9d7aec0844": {
460
+ "translations": {
461
+ "python": {
462
+ "source": "Table(self, \"Table\",\n table_columns=[Column(name=\"col1\", data_type=\"varchar(4)\", dist_key=True), Column(name=\"col2\", data_type=\"float\")\n ],\n cluster=cluster,\n database_name=\"databaseName\",\n dist_style=TableDistStyle.KEY\n)",
463
+ "version": "1"
464
+ },
465
+ "csharp": {
466
+ "source": "new Table(this, \"Table\", new TableProps {\n TableColumns = new [] { new Column { Name = \"col1\", DataType = \"varchar(4)\", DistKey = true }, new Column { Name = \"col2\", DataType = \"float\" } },\n Cluster = cluster,\n DatabaseName = \"databaseName\",\n DistStyle = TableDistStyle.KEY\n});",
467
+ "version": "1"
468
+ },
469
+ "java": {
470
+ "source": "Table.Builder.create(this, \"Table\")\n .tableColumns(List.of(Column.builder().name(\"col1\").dataType(\"varchar(4)\").distKey(true).build(), Column.builder().name(\"col2\").dataType(\"float\").build()))\n .cluster(cluster)\n .databaseName(\"databaseName\")\n .distStyle(TableDistStyle.KEY)\n .build();",
471
+ "version": "1"
472
+ },
473
+ "$": {
474
+ "source": "new Table(this, 'Table', {\n tableColumns: [\n { name: 'col1', dataType: 'varchar(4)', distKey: true },\n { name: 'col2', dataType: 'float' },\n ],\n cluster: cluster,\n databaseName: 'databaseName',\n distStyle: TableDistStyle.KEY,\n});",
475
+ "version": "0"
476
+ }
477
+ },
478
+ "location": {
479
+ "api": {
480
+ "api": "moduleReadme",
481
+ "moduleFqn": "@aws-cdk/aws-redshift-alpha"
482
+ },
483
+ "field": {
484
+ "field": "markdown",
485
+ "line": 166
486
+ }
487
+ },
488
+ "didCompile": true,
489
+ "fqnsReferenced": [
490
+ "@aws-cdk/aws-redshift-alpha.ICluster",
491
+ "@aws-cdk/aws-redshift-alpha.Login",
492
+ "@aws-cdk/aws-redshift-alpha.Table",
493
+ "@aws-cdk/aws-redshift-alpha.TableDistStyle",
494
+ "@aws-cdk/aws-redshift-alpha.TableDistStyle#KEY",
495
+ "@aws-cdk/aws-redshift-alpha.TableProps",
496
+ "aws-cdk-lib.aws_ec2.IVpc"
497
+ ],
498
+ "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\nnew Table(this, 'Table', {\n tableColumns: [\n { name: 'col1', dataType: 'varchar(4)', distKey: true },\n { name: 'col2', dataType: 'float' },\n ],\n cluster: cluster,\n databaseName: 'databaseName',\n distStyle: TableDistStyle.KEY,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
499
+ "syntaxKindCounter": {
500
+ "10": 6,
501
+ "75": 13,
502
+ "104": 1,
503
+ "106": 1,
504
+ "192": 1,
505
+ "193": 3,
506
+ "194": 1,
507
+ "197": 1,
508
+ "226": 1,
509
+ "281": 9
510
+ },
511
+ "fqnsFingerprint": "6c68ecfe9a805fb44653da4b0cee6b104f493dccea4101b49caa1fb8a9e93287"
512
+ },
513
+ "5dabd6075cf5a4e05b77f35019b5909e7f3107d296e8a29d7b241f560dfbaeb7": {
514
+ "translations": {
515
+ "python": {
516
+ "source": "Table(self, \"Table\",\n table_columns=[Column(name=\"col1\", data_type=\"varchar(4)\", sort_key=True), Column(name=\"col2\", data_type=\"float\", sort_key=True)\n ],\n cluster=cluster,\n database_name=\"databaseName\",\n sort_style=TableSortStyle.COMPOUND\n)",
517
+ "version": "1"
518
+ },
519
+ "csharp": {
520
+ "source": "new Table(this, \"Table\", new TableProps {\n TableColumns = new [] { new Column { Name = \"col1\", DataType = \"varchar(4)\", SortKey = true }, new Column { Name = \"col2\", DataType = \"float\", SortKey = true } },\n Cluster = cluster,\n DatabaseName = \"databaseName\",\n SortStyle = TableSortStyle.COMPOUND\n});",
521
+ "version": "1"
522
+ },
523
+ "java": {
524
+ "source": "Table.Builder.create(this, \"Table\")\n .tableColumns(List.of(Column.builder().name(\"col1\").dataType(\"varchar(4)\").sortKey(true).build(), Column.builder().name(\"col2\").dataType(\"float\").sortKey(true).build()))\n .cluster(cluster)\n .databaseName(\"databaseName\")\n .sortStyle(TableSortStyle.COMPOUND)\n .build();",
525
+ "version": "1"
526
+ },
527
+ "$": {
528
+ "source": "new Table(this, 'Table', {\n tableColumns: [\n { name: 'col1', dataType: 'varchar(4)', sortKey: true },\n { name: 'col2', dataType: 'float', sortKey: true },\n ],\n cluster: cluster,\n databaseName: 'databaseName',\n sortStyle: TableSortStyle.COMPOUND,\n});",
529
+ "version": "0"
530
+ }
531
+ },
532
+ "location": {
533
+ "api": {
534
+ "api": "moduleReadme",
535
+ "moduleFqn": "@aws-cdk/aws-redshift-alpha"
536
+ },
537
+ "field": {
538
+ "field": "markdown",
539
+ "line": 180
540
+ }
541
+ },
542
+ "didCompile": true,
543
+ "fqnsReferenced": [
544
+ "@aws-cdk/aws-redshift-alpha.ICluster",
545
+ "@aws-cdk/aws-redshift-alpha.Login",
546
+ "@aws-cdk/aws-redshift-alpha.Table",
547
+ "@aws-cdk/aws-redshift-alpha.TableProps",
548
+ "@aws-cdk/aws-redshift-alpha.TableSortStyle",
549
+ "@aws-cdk/aws-redshift-alpha.TableSortStyle#COMPOUND",
550
+ "aws-cdk-lib.aws_ec2.IVpc"
551
+ ],
552
+ "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\nnew Table(this, 'Table', {\n tableColumns: [\n { name: 'col1', dataType: 'varchar(4)', sortKey: true },\n { name: 'col2', dataType: 'float', sortKey: true },\n ],\n cluster: cluster,\n databaseName: 'databaseName',\n sortStyle: TableSortStyle.COMPOUND,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
553
+ "syntaxKindCounter": {
554
+ "10": 6,
555
+ "75": 14,
556
+ "104": 1,
557
+ "106": 2,
558
+ "192": 1,
559
+ "193": 3,
560
+ "194": 1,
561
+ "197": 1,
562
+ "226": 1,
563
+ "281": 10
564
+ },
565
+ "fqnsFingerprint": "749ea207a9ffa4f1e596b47eb88d6235907725a948328be2db8066087b3c648c"
566
+ },
567
+ "1480b6e1d343428ee577d62201289b975f6f40a5bde029a5216d1505fba1ce6b": {
568
+ "translations": {
569
+ "python": {
570
+ "source": "user = User(self, \"User\",\n cluster=cluster,\n database_name=\"databaseName\"\n)\ntable = Table(self, \"Table\",\n table_columns=[Column(name=\"col1\", data_type=\"varchar(4)\"), Column(name=\"col2\", data_type=\"float\")],\n cluster=cluster,\n database_name=\"databaseName\"\n)\n\ntable.grant(user, TableAction.DROP, TableAction.SELECT)",
571
+ "version": "1"
572
+ },
573
+ "csharp": {
574
+ "source": "User user = new User(this, \"User\", new UserProps {\n Cluster = cluster,\n DatabaseName = \"databaseName\"\n});\nTable table = new Table(this, \"Table\", new TableProps {\n TableColumns = new [] { new Column { Name = \"col1\", DataType = \"varchar(4)\" }, new Column { Name = \"col2\", DataType = \"float\" } },\n Cluster = cluster,\n DatabaseName = \"databaseName\"\n});\n\ntable.Grant(user, TableAction.DROP, TableAction.SELECT);",
575
+ "version": "1"
576
+ },
577
+ "java": {
578
+ "source": "User user = User.Builder.create(this, \"User\")\n .cluster(cluster)\n .databaseName(\"databaseName\")\n .build();\nTable table = Table.Builder.create(this, \"Table\")\n .tableColumns(List.of(Column.builder().name(\"col1\").dataType(\"varchar(4)\").build(), Column.builder().name(\"col2\").dataType(\"float\").build()))\n .cluster(cluster)\n .databaseName(\"databaseName\")\n .build();\n\ntable.grant(user, TableAction.DROP, TableAction.SELECT);",
579
+ "version": "1"
580
+ },
581
+ "$": {
582
+ "source": "const user = new User(this, 'User', {\n cluster: cluster,\n databaseName: 'databaseName',\n});\nconst table = new Table(this, 'Table', {\n tableColumns: [{ name: 'col1', dataType: 'varchar(4)' }, { name: 'col2', dataType: 'float' }],\n cluster: cluster,\n databaseName: 'databaseName',\n});\n\ntable.grant(user, TableAction.DROP, TableAction.SELECT);",
583
+ "version": "0"
584
+ }
585
+ },
586
+ "location": {
587
+ "api": {
588
+ "api": "moduleReadme",
589
+ "moduleFqn": "@aws-cdk/aws-redshift-alpha"
590
+ },
591
+ "field": {
592
+ "field": "markdown",
593
+ "line": 197
594
+ }
595
+ },
596
+ "didCompile": true,
597
+ "fqnsReferenced": [
598
+ "@aws-cdk/aws-redshift-alpha.ICluster",
599
+ "@aws-cdk/aws-redshift-alpha.IUser",
600
+ "@aws-cdk/aws-redshift-alpha.Login",
601
+ "@aws-cdk/aws-redshift-alpha.Table",
602
+ "@aws-cdk/aws-redshift-alpha.TableAction",
603
+ "@aws-cdk/aws-redshift-alpha.TableAction#DROP",
604
+ "@aws-cdk/aws-redshift-alpha.TableAction#SELECT",
605
+ "@aws-cdk/aws-redshift-alpha.TableProps",
606
+ "@aws-cdk/aws-redshift-alpha.User",
607
+ "@aws-cdk/aws-redshift-alpha.UserProps",
608
+ "aws-cdk-lib.aws_ec2.IVpc"
609
+ ],
610
+ "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\nconst user = new User(this, 'User', {\n cluster: cluster,\n databaseName: 'databaseName',\n});\nconst table = new Table(this, 'Table', {\n tableColumns: [{ name: 'col1', dataType: 'varchar(4)' }, { name: 'col2', dataType: 'float' }],\n cluster: cluster,\n databaseName: 'databaseName',\n});\n\ntable.grant(user, TableAction.DROP, TableAction.SELECT);\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
611
+ "syntaxKindCounter": {
612
+ "10": 8,
613
+ "75": 22,
614
+ "104": 2,
615
+ "192": 1,
616
+ "193": 4,
617
+ "194": 3,
618
+ "196": 1,
619
+ "197": 2,
620
+ "225": 2,
621
+ "226": 1,
622
+ "242": 2,
623
+ "243": 2,
624
+ "281": 9
625
+ },
626
+ "fqnsFingerprint": "6ebf9b507713fbaa792233370223a07877de6b1f3b773a6853008093f4f4ccbf"
627
+ },
628
+ "b4379cc01ad5b391d08ae26db568d0016283c7d1b7af31f79f4e1566aa2437f3": {
629
+ "translations": {
630
+ "python": {
631
+ "source": "database_name = \"databaseName\"\nusername = \"myuser\"\ntable_name = \"mytable\"\n\nuser = User(self, \"User\",\n username=username,\n cluster=cluster,\n database_name=database_name\n)\ntable = Table(self, \"Table\",\n table_columns=[Column(name=\"col1\", data_type=\"varchar(4)\"), Column(name=\"col2\", data_type=\"float\")],\n cluster=cluster,\n database_name=database_name\n)\ntable.grant(user, TableAction.INSERT)",
632
+ "version": "1"
633
+ },
634
+ "csharp": {
635
+ "source": "string databaseName = \"databaseName\";\nstring username = \"myuser\";\nstring tableName = \"mytable\";\n\nUser user = new User(this, \"User\", new UserProps {\n Username = username,\n Cluster = cluster,\n DatabaseName = databaseName\n});\nTable table = new Table(this, \"Table\", new TableProps {\n TableColumns = new [] { new Column { Name = \"col1\", DataType = \"varchar(4)\" }, new Column { Name = \"col2\", DataType = \"float\" } },\n Cluster = cluster,\n DatabaseName = databaseName\n});\ntable.Grant(user, TableAction.INSERT);",
636
+ "version": "1"
637
+ },
638
+ "java": {
639
+ "source": "String databaseName = \"databaseName\";\nString username = \"myuser\";\nString tableName = \"mytable\";\n\nUser user = User.Builder.create(this, \"User\")\n .username(username)\n .cluster(cluster)\n .databaseName(databaseName)\n .build();\nTable table = Table.Builder.create(this, \"Table\")\n .tableColumns(List.of(Column.builder().name(\"col1\").dataType(\"varchar(4)\").build(), Column.builder().name(\"col2\").dataType(\"float\").build()))\n .cluster(cluster)\n .databaseName(databaseName)\n .build();\ntable.grant(user, TableAction.INSERT);",
640
+ "version": "1"
641
+ },
642
+ "$": {
643
+ "source": "const databaseName = 'databaseName';\nconst username = 'myuser'\nconst tableName = 'mytable'\n\nconst user = new User(this, 'User', {\n username: username,\n cluster: cluster,\n databaseName: databaseName,\n});\nconst table = new Table(this, 'Table', {\n tableColumns: [{ name: 'col1', dataType: 'varchar(4)' }, { name: 'col2', dataType: 'float' }],\n cluster: cluster,\n databaseName: databaseName,\n});\ntable.grant(user, TableAction.INSERT);",
644
+ "version": "0"
645
+ }
646
+ },
647
+ "location": {
648
+ "api": {
649
+ "api": "moduleReadme",
650
+ "moduleFqn": "@aws-cdk/aws-redshift-alpha"
651
+ },
652
+ "field": {
653
+ "field": "markdown",
654
+ "line": 217
655
+ }
656
+ },
657
+ "didCompile": true,
658
+ "fqnsReferenced": [
659
+ "@aws-cdk/aws-redshift-alpha.ICluster",
660
+ "@aws-cdk/aws-redshift-alpha.IUser",
661
+ "@aws-cdk/aws-redshift-alpha.Login",
662
+ "@aws-cdk/aws-redshift-alpha.Table",
663
+ "@aws-cdk/aws-redshift-alpha.TableAction",
664
+ "@aws-cdk/aws-redshift-alpha.TableAction#INSERT",
665
+ "@aws-cdk/aws-redshift-alpha.TableProps",
666
+ "@aws-cdk/aws-redshift-alpha.User",
667
+ "@aws-cdk/aws-redshift-alpha.UserProps",
668
+ "aws-cdk-lib.aws_ec2.IVpc"
669
+ ],
670
+ "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\nconst databaseName = 'databaseName';\nconst username = 'myuser'\nconst tableName = 'mytable'\n\nconst user = new User(this, 'User', {\n username: username,\n cluster: cluster,\n databaseName: databaseName,\n});\nconst table = new Table(this, 'Table', {\n tableColumns: [{ name: 'col1', dataType: 'varchar(4)' }, { name: 'col2', dataType: 'float' }],\n cluster: cluster,\n databaseName: databaseName,\n});\ntable.grant(user, TableAction.INSERT);\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
671
+ "syntaxKindCounter": {
672
+ "10": 9,
673
+ "75": 27,
674
+ "104": 2,
675
+ "192": 1,
676
+ "193": 4,
677
+ "194": 2,
678
+ "196": 1,
679
+ "197": 2,
680
+ "225": 5,
681
+ "226": 1,
682
+ "242": 5,
683
+ "243": 5,
684
+ "281": 10
685
+ },
686
+ "fqnsFingerprint": "6034ebf0c259292729d6d6cf872757e8de666295e0086215e86b4d1ad9b3abef"
687
+ },
688
+ "59218a7967d64db0f9bfb7fb099bd3b2c6e3b3eb231c2519c00faf4880007987": {
689
+ "translations": {
690
+ "python": {
691
+ "source": "database_name = \"databaseName\"\nusername = \"myuser\"\ntable_name = \"mytable\"\n\nuser = User.from_user_attributes(self, \"User\",\n username=username,\n password=SecretValue.plain_text(\"NOT_FOR_PRODUCTION\"),\n cluster=cluster,\n database_name=database_name\n)\ntable = Table.from_table_attributes(self, \"Table\",\n table_name=table_name,\n table_columns=[Column(name=\"col1\", data_type=\"varchar(4)\"), Column(name=\"col2\", data_type=\"float\")],\n cluster=cluster,\n database_name=\"databaseName\"\n)\ntable.grant(user, TableAction.INSERT)",
692
+ "version": "1"
693
+ },
694
+ "csharp": {
695
+ "source": "string databaseName = \"databaseName\";\nstring username = \"myuser\";\nstring tableName = \"mytable\";\n\nIUser user = User.FromUserAttributes(this, \"User\", new UserAttributes {\n Username = username,\n Password = SecretValue.PlainText(\"NOT_FOR_PRODUCTION\"),\n Cluster = cluster,\n DatabaseName = databaseName\n});\nITable table = Table.FromTableAttributes(this, \"Table\", new TableAttributes {\n TableName = tableName,\n TableColumns = new [] { new Column { Name = \"col1\", DataType = \"varchar(4)\" }, new Column { Name = \"col2\", DataType = \"float\" } },\n Cluster = cluster,\n DatabaseName = \"databaseName\"\n});\ntable.Grant(user, TableAction.INSERT);",
696
+ "version": "1"
697
+ },
698
+ "java": {
699
+ "source": "String databaseName = \"databaseName\";\nString username = \"myuser\";\nString tableName = \"mytable\";\n\nIUser user = User.fromUserAttributes(this, \"User\", UserAttributes.builder()\n .username(username)\n .password(SecretValue.plainText(\"NOT_FOR_PRODUCTION\"))\n .cluster(cluster)\n .databaseName(databaseName)\n .build());\nITable table = Table.fromTableAttributes(this, \"Table\", TableAttributes.builder()\n .tableName(tableName)\n .tableColumns(List.of(Column.builder().name(\"col1\").dataType(\"varchar(4)\").build(), Column.builder().name(\"col2\").dataType(\"float\").build()))\n .cluster(cluster)\n .databaseName(\"databaseName\")\n .build());\ntable.grant(user, TableAction.INSERT);",
700
+ "version": "1"
701
+ },
702
+ "$": {
703
+ "source": "const databaseName = 'databaseName';\nconst username = 'myuser'\nconst tableName = 'mytable'\n\nconst user = User.fromUserAttributes(this, 'User', {\n username: username,\n password: SecretValue.plainText('NOT_FOR_PRODUCTION'),\n cluster: cluster,\n databaseName: databaseName,\n});\nconst table = Table.fromTableAttributes(this, 'Table', {\n tableName: tableName,\n tableColumns: [{ name: 'col1', dataType: 'varchar(4)' }, { name: 'col2', dataType: 'float' }],\n cluster: cluster,\n databaseName: 'databaseName',\n});\ntable.grant(user, TableAction.INSERT);",
704
+ "version": "0"
705
+ }
706
+ },
707
+ "location": {
708
+ "api": {
709
+ "api": "moduleReadme",
710
+ "moduleFqn": "@aws-cdk/aws-redshift-alpha"
711
+ },
712
+ "field": {
713
+ "field": "markdown",
714
+ "line": 238
715
+ }
716
+ },
717
+ "didCompile": true,
718
+ "fqnsReferenced": [
719
+ "@aws-cdk/aws-redshift-alpha.ICluster",
720
+ "@aws-cdk/aws-redshift-alpha.ITable",
721
+ "@aws-cdk/aws-redshift-alpha.ITable#grant",
722
+ "@aws-cdk/aws-redshift-alpha.IUser",
723
+ "@aws-cdk/aws-redshift-alpha.Login",
724
+ "@aws-cdk/aws-redshift-alpha.Table#fromTableAttributes",
725
+ "@aws-cdk/aws-redshift-alpha.TableAction",
726
+ "@aws-cdk/aws-redshift-alpha.TableAction#INSERT",
727
+ "@aws-cdk/aws-redshift-alpha.TableAttributes",
728
+ "@aws-cdk/aws-redshift-alpha.User#fromUserAttributes",
729
+ "@aws-cdk/aws-redshift-alpha.UserAttributes",
730
+ "aws-cdk-lib.SecretValue",
731
+ "aws-cdk-lib.SecretValue#plainText",
732
+ "aws-cdk-lib.aws_ec2.IVpc"
733
+ ],
734
+ "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\nconst databaseName = 'databaseName';\nconst username = 'myuser'\nconst tableName = 'mytable'\n\nconst user = User.fromUserAttributes(this, 'User', {\n username: username,\n password: SecretValue.plainText('NOT_FOR_PRODUCTION'),\n cluster: cluster,\n databaseName: databaseName,\n});\nconst table = Table.fromTableAttributes(this, 'Table', {\n tableName: tableName,\n tableColumns: [{ name: 'col1', dataType: 'varchar(4)' }, { name: 'col2', dataType: 'float' }],\n cluster: cluster,\n databaseName: 'databaseName',\n});\ntable.grant(user, TableAction.INSERT);\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
735
+ "syntaxKindCounter": {
736
+ "10": 11,
737
+ "75": 33,
738
+ "104": 2,
739
+ "192": 1,
740
+ "193": 4,
741
+ "194": 5,
742
+ "196": 4,
743
+ "225": 5,
744
+ "226": 1,
745
+ "242": 5,
746
+ "243": 5,
747
+ "281": 12
748
+ },
749
+ "fqnsFingerprint": "91110524d7f72c663bfc5b017975e431bb65cefa7d29c3e7740860acede2cff6"
750
+ },
751
+ "00e955f4e1ddfc2b0815c24fae2e7cff3ac6ffe45bcf8e64b556074b9678e53f": {
752
+ "translations": {
753
+ "python": {
754
+ "source": "import aws_cdk.aws_ec2 as ec2\n\n\nvpc = ec2.Vpc(self, \"Vpc\")\ncluster = Cluster(self, \"Redshift\",\n master_user=Login(\n master_username=\"admin\"\n ),\n vpc=vpc\n)",
755
+ "version": "1"
756
+ },
757
+ "csharp": {
758
+ "source": "using Amazon.CDK.AWS.EC2;\n\n\nVpc vpc = new Vpc(this, \"Vpc\");\nCluster cluster = new Cluster(this, \"Redshift\", new ClusterProps {\n MasterUser = new Login {\n MasterUsername = \"admin\"\n },\n Vpc = vpc\n});",
759
+ "version": "1"
760
+ },
761
+ "java": {
762
+ "source": "import software.amazon.awscdk.services.ec2.*;\n\n\nVpc vpc = new Vpc(this, \"Vpc\");\nCluster cluster = Cluster.Builder.create(this, \"Redshift\")\n .masterUser(Login.builder()\n .masterUsername(\"admin\")\n .build())\n .vpc(vpc)\n .build();",
763
+ "version": "1"
764
+ },
765
+ "$": {
766
+ "source": "import * as ec2 from 'aws-cdk-lib/aws-ec2';\n\nconst vpc = new ec2.Vpc(this, 'Vpc');\nconst cluster = new Cluster(this, 'Redshift', {\n masterUser: {\n masterUsername: 'admin',\n },\n vpc\n});",
767
+ "version": "0"
768
+ }
769
+ },
770
+ "location": {
771
+ "api": {
772
+ "api": "type",
773
+ "fqn": "@aws-cdk/aws-redshift-alpha.Cluster"
774
+ },
775
+ "field": {
776
+ "field": "example"
777
+ }
778
+ },
779
+ "didCompile": true,
780
+ "fqnsReferenced": [
781
+ "@aws-cdk/aws-redshift-alpha.Cluster",
782
+ "@aws-cdk/aws-redshift-alpha.ClusterProps",
783
+ "@aws-cdk/aws-redshift-alpha.Login",
784
+ "aws-cdk-lib.aws_ec2.IVpc",
785
+ "aws-cdk-lib.aws_ec2.Vpc"
786
+ ],
787
+ "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\nimport * as ec2 from 'aws-cdk-lib/aws-ec2';\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Stack } from 'aws-cdk-lib';\nimport { Cluster } 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 // Code snippet begins after !show marker below\n/// !show\n\n\nconst vpc = new ec2.Vpc(this, 'Vpc');\nconst cluster = new Cluster(this, 'Redshift', {\n masterUser: {\n masterUsername: 'admin',\n },\n vpc\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
788
+ "syntaxKindCounter": {
789
+ "10": 4,
790
+ "75": 9,
791
+ "104": 2,
792
+ "193": 2,
793
+ "194": 1,
794
+ "197": 2,
795
+ "225": 2,
796
+ "242": 2,
797
+ "243": 2,
798
+ "254": 1,
799
+ "255": 1,
800
+ "256": 1,
801
+ "281": 2,
802
+ "282": 1,
803
+ "290": 1
804
+ },
805
+ "fqnsFingerprint": "f112f27bb099f5727310ff70783c566dc474a01ddf1ce62e9b851cefd59f48da"
806
+ },
807
+ "857282a70b80501cd849b21543428c56ead7508adc43541e30b23d3e9c532df3": {
808
+ "translations": {
809
+ "python": {
810
+ "source": "import aws_cdk.aws_ec2 as ec2\n\n\nvpc = ec2.Vpc(self, \"Vpc\")\ncluster = Cluster(self, \"Redshift\",\n master_user=Login(\n master_username=\"admin\"\n ),\n vpc=vpc\n)",
811
+ "version": "1"
812
+ },
813
+ "csharp": {
814
+ "source": "using Amazon.CDK.AWS.EC2;\n\n\nVpc vpc = new Vpc(this, \"Vpc\");\nCluster cluster = new Cluster(this, \"Redshift\", new ClusterProps {\n MasterUser = new Login {\n MasterUsername = \"admin\"\n },\n Vpc = vpc\n});",
815
+ "version": "1"
816
+ },
817
+ "java": {
818
+ "source": "import software.amazon.awscdk.services.ec2.*;\n\n\nVpc vpc = new Vpc(this, \"Vpc\");\nCluster cluster = Cluster.Builder.create(this, \"Redshift\")\n .masterUser(Login.builder()\n .masterUsername(\"admin\")\n .build())\n .vpc(vpc)\n .build();",
819
+ "version": "1"
820
+ },
821
+ "$": {
822
+ "source": "import * as ec2 from 'aws-cdk-lib/aws-ec2';\n\nconst vpc = new ec2.Vpc(this, 'Vpc');\nconst cluster = new Cluster(this, 'Redshift', {\n masterUser: {\n masterUsername: 'admin',\n },\n vpc\n});",
823
+ "version": "0"
824
+ }
825
+ },
826
+ "location": {
827
+ "api": {
828
+ "api": "type",
829
+ "fqn": "@aws-cdk/aws-redshift-alpha.ClusterProps"
830
+ },
831
+ "field": {
832
+ "field": "example"
833
+ }
834
+ },
835
+ "didCompile": true,
836
+ "fqnsReferenced": [
837
+ "@aws-cdk/aws-redshift-alpha.Cluster",
838
+ "@aws-cdk/aws-redshift-alpha.ClusterProps",
839
+ "@aws-cdk/aws-redshift-alpha.Login",
840
+ "aws-cdk-lib.aws_ec2.IVpc",
841
+ "aws-cdk-lib.aws_ec2.Vpc"
842
+ ],
843
+ "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\nimport * as ec2 from 'aws-cdk-lib/aws-ec2';\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Stack } from 'aws-cdk-lib';\nimport { Cluster } 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 // Code snippet begins after !show marker below\n/// !show\n\n\nconst vpc = new ec2.Vpc(this, 'Vpc');\nconst cluster = new Cluster(this, 'Redshift', {\n masterUser: {\n masterUsername: 'admin',\n },\n vpc\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
844
+ "syntaxKindCounter": {
845
+ "10": 4,
846
+ "75": 9,
847
+ "104": 2,
848
+ "193": 2,
849
+ "194": 1,
850
+ "197": 2,
851
+ "225": 2,
852
+ "242": 2,
853
+ "243": 2,
854
+ "254": 1,
855
+ "255": 1,
856
+ "256": 1,
857
+ "281": 2,
858
+ "282": 1,
859
+ "290": 1
860
+ },
861
+ "fqnsFingerprint": "f112f27bb099f5727310ff70783c566dc474a01ddf1ce62e9b851cefd59f48da"
862
+ },
863
+ "143212fce98dfc0a53630d77de6de173ddeccd1cdec5094802d8644c3ace4962": {
864
+ "translations": {
865
+ "python": {
866
+ "source": "import aws_cdk.aws_kms as kms\n\n\nencryption_key = kms.Key(self, \"Key\")\nUser(self, \"User\",\n encryption_key=encryption_key,\n cluster=cluster,\n database_name=\"databaseName\"\n)",
867
+ "version": "1"
868
+ },
869
+ "csharp": {
870
+ "source": "using Amazon.CDK.AWS.KMS;\n\n\nKey encryptionKey = new Key(this, \"Key\");\nnew User(this, \"User\", new UserProps {\n EncryptionKey = encryptionKey,\n Cluster = cluster,\n DatabaseName = \"databaseName\"\n});",
871
+ "version": "1"
872
+ },
873
+ "java": {
874
+ "source": "import software.amazon.awscdk.services.kms.*;\n\n\nKey encryptionKey = new Key(this, \"Key\");\nUser.Builder.create(this, \"User\")\n .encryptionKey(encryptionKey)\n .cluster(cluster)\n .databaseName(\"databaseName\")\n .build();",
875
+ "version": "1"
876
+ },
877
+ "$": {
878
+ "source": "import * as kms from 'aws-cdk-lib/aws-kms';\n\nconst encryptionKey = new kms.Key(this, 'Key');\nnew User(this, 'User', {\n encryptionKey: encryptionKey,\n cluster: cluster,\n databaseName: 'databaseName',\n});",
879
+ "version": "0"
880
+ }
881
+ },
882
+ "location": {
883
+ "api": {
884
+ "api": "type",
885
+ "fqn": "@aws-cdk/aws-redshift-alpha.Login"
886
+ },
887
+ "field": {
888
+ "field": "example"
889
+ }
890
+ },
891
+ "didCompile": true,
892
+ "fqnsReferenced": [
893
+ "@aws-cdk/aws-redshift-alpha.ICluster",
894
+ "@aws-cdk/aws-redshift-alpha.Login",
895
+ "@aws-cdk/aws-redshift-alpha.User",
896
+ "@aws-cdk/aws-redshift-alpha.UserProps",
897
+ "aws-cdk-lib.aws_ec2.IVpc",
898
+ "aws-cdk-lib.aws_kms.IKey",
899
+ "aws-cdk-lib.aws_kms.Key"
900
+ ],
901
+ "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\nimport * as kms from 'aws-cdk-lib/aws-kms';\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\nconst encryptionKey = new kms.Key(this, 'Key');\nnew User(this, 'User', {\n encryptionKey: encryptionKey,\n cluster: cluster,\n databaseName: 'databaseName',\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
902
+ "syntaxKindCounter": {
903
+ "10": 4,
904
+ "75": 10,
905
+ "104": 2,
906
+ "193": 1,
907
+ "194": 1,
908
+ "197": 2,
909
+ "225": 1,
910
+ "226": 1,
911
+ "242": 1,
912
+ "243": 1,
913
+ "254": 1,
914
+ "255": 1,
915
+ "256": 1,
916
+ "281": 3,
917
+ "290": 1
918
+ },
919
+ "fqnsFingerprint": "63284dcabfe522bbb2ca08f151970f850ecd197b7e0350605a713aa9613baff7"
920
+ },
921
+ "7800987fc1783761f4bb788edff16535132cea4ea94fa3086de531e97f933579": {
922
+ "translations": {
923
+ "python": {
924
+ "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)",
925
+ "version": "1"
926
+ },
927
+ "csharp": {
928
+ "source": "using Amazon.CDK.AWS.SecretsManager;\n\n\ncluster.AddRotationMultiUser(\"MyUser\", new RotationMultiUserOptions {\n Secret = Secret.FromSecretNameV2(this, \"Imported Secret\", \"my-secret\")\n});",
929
+ "version": "1"
930
+ },
931
+ "java": {
932
+ "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());",
933
+ "version": "1"
934
+ },
935
+ "$": {
936
+ "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});",
937
+ "version": "0"
938
+ }
939
+ },
940
+ "location": {
941
+ "api": {
942
+ "api": "type",
943
+ "fqn": "@aws-cdk/aws-redshift-alpha.RotationMultiUserOptions"
944
+ },
945
+ "field": {
946
+ "field": "example"
947
+ }
948
+ },
949
+ "didCompile": true,
950
+ "fqnsReferenced": [
951
+ "@aws-cdk/aws-redshift-alpha.Cluster#addRotationMultiUser",
952
+ "@aws-cdk/aws-redshift-alpha.Login",
953
+ "@aws-cdk/aws-redshift-alpha.RotationMultiUserOptions",
954
+ "aws-cdk-lib.aws_ec2.IVpc",
955
+ "aws-cdk-lib.aws_secretsmanager.ISecret",
956
+ "aws-cdk-lib.aws_secretsmanager.Secret",
957
+ "aws-cdk-lib.aws_secretsmanager.Secret#fromSecretNameV2"
958
+ ],
959
+ "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",
960
+ "syntaxKindCounter": {
961
+ "10": 4,
962
+ "75": 7,
963
+ "104": 1,
964
+ "193": 1,
965
+ "194": 3,
966
+ "196": 2,
967
+ "226": 1,
968
+ "254": 1,
969
+ "255": 1,
970
+ "256": 1,
971
+ "281": 1,
972
+ "290": 1
973
+ },
974
+ "fqnsFingerprint": "0205305a542164ab1df5d64fbad5bb9f90e5bd653eecee5d92e4c7ea6adc282e"
975
+ },
976
+ "2b20eccb399b788ea8ecc892abfae9f31369b856fbe61ed42c4bd8fac0a5bb1c": {
977
+ "translations": {
978
+ "python": {
979
+ "source": "Table(self, \"Table\",\n table_columns=[Column(name=\"col1\", data_type=\"varchar(4)\", dist_key=True), Column(name=\"col2\", data_type=\"float\")\n ],\n cluster=cluster,\n database_name=\"databaseName\",\n dist_style=TableDistStyle.KEY\n)",
980
+ "version": "1"
981
+ },
982
+ "csharp": {
983
+ "source": "new Table(this, \"Table\", new TableProps {\n TableColumns = new [] { new Column { Name = \"col1\", DataType = \"varchar(4)\", DistKey = true }, new Column { Name = \"col2\", DataType = \"float\" } },\n Cluster = cluster,\n DatabaseName = \"databaseName\",\n DistStyle = TableDistStyle.KEY\n});",
984
+ "version": "1"
985
+ },
986
+ "java": {
987
+ "source": "Table.Builder.create(this, \"Table\")\n .tableColumns(List.of(Column.builder().name(\"col1\").dataType(\"varchar(4)\").distKey(true).build(), Column.builder().name(\"col2\").dataType(\"float\").build()))\n .cluster(cluster)\n .databaseName(\"databaseName\")\n .distStyle(TableDistStyle.KEY)\n .build();",
988
+ "version": "1"
989
+ },
990
+ "$": {
991
+ "source": "new Table(this, 'Table', {\n tableColumns: [\n { name: 'col1', dataType: 'varchar(4)', distKey: true },\n { name: 'col2', dataType: 'float' },\n ],\n cluster: cluster,\n databaseName: 'databaseName',\n distStyle: TableDistStyle.KEY,\n});",
992
+ "version": "0"
993
+ }
994
+ },
995
+ "location": {
996
+ "api": {
997
+ "api": "type",
998
+ "fqn": "@aws-cdk/aws-redshift-alpha.Table"
999
+ },
1000
+ "field": {
1001
+ "field": "example"
1002
+ }
1003
+ },
1004
+ "didCompile": true,
1005
+ "fqnsReferenced": [
1006
+ "@aws-cdk/aws-redshift-alpha.ICluster",
1007
+ "@aws-cdk/aws-redshift-alpha.Login",
1008
+ "@aws-cdk/aws-redshift-alpha.Table",
1009
+ "@aws-cdk/aws-redshift-alpha.TableDistStyle",
1010
+ "@aws-cdk/aws-redshift-alpha.TableDistStyle#KEY",
1011
+ "@aws-cdk/aws-redshift-alpha.TableProps",
1012
+ "aws-cdk-lib.aws_ec2.IVpc"
1013
+ ],
1014
+ "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\nnew Table(this, 'Table', {\n tableColumns: [\n { name: 'col1', dataType: 'varchar(4)', distKey: true },\n { name: 'col2', dataType: 'float' },\n ],\n cluster: cluster,\n databaseName: 'databaseName',\n distStyle: TableDistStyle.KEY,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
1015
+ "syntaxKindCounter": {
1016
+ "10": 6,
1017
+ "75": 13,
1018
+ "104": 1,
1019
+ "106": 1,
1020
+ "192": 1,
1021
+ "193": 3,
1022
+ "194": 1,
1023
+ "197": 1,
1024
+ "226": 1,
1025
+ "281": 9
1026
+ },
1027
+ "fqnsFingerprint": "6c68ecfe9a805fb44653da4b0cee6b104f493dccea4101b49caa1fb8a9e93287"
1028
+ },
1029
+ "91729184329521792ab5572ab15ce150ce589686a01c22a256663eaf6c6aae16": {
1030
+ "translations": {
1031
+ "python": {
1032
+ "source": "database_name = \"databaseName\"\nusername = \"myuser\"\ntable_name = \"mytable\"\n\nuser = User(self, \"User\",\n username=username,\n cluster=cluster,\n database_name=database_name\n)\ntable = Table(self, \"Table\",\n table_columns=[Column(name=\"col1\", data_type=\"varchar(4)\"), Column(name=\"col2\", data_type=\"float\")],\n cluster=cluster,\n database_name=database_name\n)\ntable.grant(user, TableAction.INSERT)",
1033
+ "version": "1"
1034
+ },
1035
+ "csharp": {
1036
+ "source": "string databaseName = \"databaseName\";\nstring username = \"myuser\";\nstring tableName = \"mytable\";\n\nUser user = new User(this, \"User\", new UserProps {\n Username = username,\n Cluster = cluster,\n DatabaseName = databaseName\n});\nTable table = new Table(this, \"Table\", new TableProps {\n TableColumns = new [] { new Column { Name = \"col1\", DataType = \"varchar(4)\" }, new Column { Name = \"col2\", DataType = \"float\" } },\n Cluster = cluster,\n DatabaseName = databaseName\n});\ntable.Grant(user, TableAction.INSERT);",
1037
+ "version": "1"
1038
+ },
1039
+ "java": {
1040
+ "source": "String databaseName = \"databaseName\";\nString username = \"myuser\";\nString tableName = \"mytable\";\n\nUser user = User.Builder.create(this, \"User\")\n .username(username)\n .cluster(cluster)\n .databaseName(databaseName)\n .build();\nTable table = Table.Builder.create(this, \"Table\")\n .tableColumns(List.of(Column.builder().name(\"col1\").dataType(\"varchar(4)\").build(), Column.builder().name(\"col2\").dataType(\"float\").build()))\n .cluster(cluster)\n .databaseName(databaseName)\n .build();\ntable.grant(user, TableAction.INSERT);",
1041
+ "version": "1"
1042
+ },
1043
+ "$": {
1044
+ "source": "const databaseName = 'databaseName';\nconst username = 'myuser'\nconst tableName = 'mytable'\n\nconst user = new User(this, 'User', {\n username: username,\n cluster: cluster,\n databaseName: databaseName,\n});\nconst table = new Table(this, 'Table', {\n tableColumns: [{ name: 'col1', dataType: 'varchar(4)' }, { name: 'col2', dataType: 'float' }],\n cluster: cluster,\n databaseName: databaseName,\n});\ntable.grant(user, TableAction.INSERT);",
1045
+ "version": "0"
1046
+ }
1047
+ },
1048
+ "location": {
1049
+ "api": {
1050
+ "api": "type",
1051
+ "fqn": "@aws-cdk/aws-redshift-alpha.TableAction"
1052
+ },
1053
+ "field": {
1054
+ "field": "example"
1055
+ }
1056
+ },
1057
+ "didCompile": true,
1058
+ "fqnsReferenced": [
1059
+ "@aws-cdk/aws-redshift-alpha.ICluster",
1060
+ "@aws-cdk/aws-redshift-alpha.IUser",
1061
+ "@aws-cdk/aws-redshift-alpha.Login",
1062
+ "@aws-cdk/aws-redshift-alpha.Table",
1063
+ "@aws-cdk/aws-redshift-alpha.TableAction",
1064
+ "@aws-cdk/aws-redshift-alpha.TableAction#INSERT",
1065
+ "@aws-cdk/aws-redshift-alpha.TableProps",
1066
+ "@aws-cdk/aws-redshift-alpha.User",
1067
+ "@aws-cdk/aws-redshift-alpha.UserProps",
1068
+ "aws-cdk-lib.aws_ec2.IVpc"
1069
+ ],
1070
+ "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\nconst databaseName = 'databaseName';\nconst username = 'myuser'\nconst tableName = 'mytable'\n\nconst user = new User(this, 'User', {\n username: username,\n cluster: cluster,\n databaseName: databaseName,\n});\nconst table = new Table(this, 'Table', {\n tableColumns: [{ name: 'col1', dataType: 'varchar(4)' }, { name: 'col2', dataType: 'float' }],\n cluster: cluster,\n databaseName: databaseName,\n});\ntable.grant(user, TableAction.INSERT);\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
1071
+ "syntaxKindCounter": {
1072
+ "10": 9,
1073
+ "75": 27,
1074
+ "104": 2,
1075
+ "192": 1,
1076
+ "193": 4,
1077
+ "194": 2,
1078
+ "196": 1,
1079
+ "197": 2,
1080
+ "225": 5,
1081
+ "226": 1,
1082
+ "242": 5,
1083
+ "243": 5,
1084
+ "281": 10
1085
+ },
1086
+ "fqnsFingerprint": "6034ebf0c259292729d6d6cf872757e8de666295e0086215e86b4d1ad9b3abef"
1087
+ },
1088
+ "c8a2c585b848c78158390b993cc45ddd5c2f2115d95912379ce7564524e0387b": {
1089
+ "translations": {
1090
+ "python": {
1091
+ "source": "database_name = \"databaseName\"\nusername = \"myuser\"\ntable_name = \"mytable\"\n\nuser = User.from_user_attributes(self, \"User\",\n username=username,\n password=SecretValue.plain_text(\"NOT_FOR_PRODUCTION\"),\n cluster=cluster,\n database_name=database_name\n)\ntable = Table.from_table_attributes(self, \"Table\",\n table_name=table_name,\n table_columns=[Column(name=\"col1\", data_type=\"varchar(4)\"), Column(name=\"col2\", data_type=\"float\")],\n cluster=cluster,\n database_name=\"databaseName\"\n)\ntable.grant(user, TableAction.INSERT)",
1092
+ "version": "1"
1093
+ },
1094
+ "csharp": {
1095
+ "source": "string databaseName = \"databaseName\";\nstring username = \"myuser\";\nstring tableName = \"mytable\";\n\nIUser user = User.FromUserAttributes(this, \"User\", new UserAttributes {\n Username = username,\n Password = SecretValue.PlainText(\"NOT_FOR_PRODUCTION\"),\n Cluster = cluster,\n DatabaseName = databaseName\n});\nITable table = Table.FromTableAttributes(this, \"Table\", new TableAttributes {\n TableName = tableName,\n TableColumns = new [] { new Column { Name = \"col1\", DataType = \"varchar(4)\" }, new Column { Name = \"col2\", DataType = \"float\" } },\n Cluster = cluster,\n DatabaseName = \"databaseName\"\n});\ntable.Grant(user, TableAction.INSERT);",
1096
+ "version": "1"
1097
+ },
1098
+ "java": {
1099
+ "source": "String databaseName = \"databaseName\";\nString username = \"myuser\";\nString tableName = \"mytable\";\n\nIUser user = User.fromUserAttributes(this, \"User\", UserAttributes.builder()\n .username(username)\n .password(SecretValue.plainText(\"NOT_FOR_PRODUCTION\"))\n .cluster(cluster)\n .databaseName(databaseName)\n .build());\nITable table = Table.fromTableAttributes(this, \"Table\", TableAttributes.builder()\n .tableName(tableName)\n .tableColumns(List.of(Column.builder().name(\"col1\").dataType(\"varchar(4)\").build(), Column.builder().name(\"col2\").dataType(\"float\").build()))\n .cluster(cluster)\n .databaseName(\"databaseName\")\n .build());\ntable.grant(user, TableAction.INSERT);",
1100
+ "version": "1"
1101
+ },
1102
+ "$": {
1103
+ "source": "const databaseName = 'databaseName';\nconst username = 'myuser'\nconst tableName = 'mytable'\n\nconst user = User.fromUserAttributes(this, 'User', {\n username: username,\n password: SecretValue.plainText('NOT_FOR_PRODUCTION'),\n cluster: cluster,\n databaseName: databaseName,\n});\nconst table = Table.fromTableAttributes(this, 'Table', {\n tableName: tableName,\n tableColumns: [{ name: 'col1', dataType: 'varchar(4)' }, { name: 'col2', dataType: 'float' }],\n cluster: cluster,\n databaseName: 'databaseName',\n});\ntable.grant(user, TableAction.INSERT);",
1104
+ "version": "0"
1105
+ }
1106
+ },
1107
+ "location": {
1108
+ "api": {
1109
+ "api": "type",
1110
+ "fqn": "@aws-cdk/aws-redshift-alpha.TableAttributes"
1111
+ },
1112
+ "field": {
1113
+ "field": "example"
1114
+ }
1115
+ },
1116
+ "didCompile": true,
1117
+ "fqnsReferenced": [
1118
+ "@aws-cdk/aws-redshift-alpha.ICluster",
1119
+ "@aws-cdk/aws-redshift-alpha.ITable",
1120
+ "@aws-cdk/aws-redshift-alpha.ITable#grant",
1121
+ "@aws-cdk/aws-redshift-alpha.IUser",
1122
+ "@aws-cdk/aws-redshift-alpha.Login",
1123
+ "@aws-cdk/aws-redshift-alpha.Table#fromTableAttributes",
1124
+ "@aws-cdk/aws-redshift-alpha.TableAction",
1125
+ "@aws-cdk/aws-redshift-alpha.TableAction#INSERT",
1126
+ "@aws-cdk/aws-redshift-alpha.TableAttributes",
1127
+ "@aws-cdk/aws-redshift-alpha.User#fromUserAttributes",
1128
+ "@aws-cdk/aws-redshift-alpha.UserAttributes",
1129
+ "aws-cdk-lib.SecretValue",
1130
+ "aws-cdk-lib.SecretValue#plainText",
1131
+ "aws-cdk-lib.aws_ec2.IVpc"
1132
+ ],
1133
+ "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\nconst databaseName = 'databaseName';\nconst username = 'myuser'\nconst tableName = 'mytable'\n\nconst user = User.fromUserAttributes(this, 'User', {\n username: username,\n password: SecretValue.plainText('NOT_FOR_PRODUCTION'),\n cluster: cluster,\n databaseName: databaseName,\n});\nconst table = Table.fromTableAttributes(this, 'Table', {\n tableName: tableName,\n tableColumns: [{ name: 'col1', dataType: 'varchar(4)' }, { name: 'col2', dataType: 'float' }],\n cluster: cluster,\n databaseName: 'databaseName',\n});\ntable.grant(user, TableAction.INSERT);\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
1134
+ "syntaxKindCounter": {
1135
+ "10": 11,
1136
+ "75": 33,
1137
+ "104": 2,
1138
+ "192": 1,
1139
+ "193": 4,
1140
+ "194": 5,
1141
+ "196": 4,
1142
+ "225": 5,
1143
+ "226": 1,
1144
+ "242": 5,
1145
+ "243": 5,
1146
+ "281": 12
1147
+ },
1148
+ "fqnsFingerprint": "91110524d7f72c663bfc5b017975e431bb65cefa7d29c3e7740860acede2cff6"
1149
+ },
1150
+ "a0a5aed3be3356c67a02e5502202634478962191b5543456299f752646eeb729": {
1151
+ "translations": {
1152
+ "python": {
1153
+ "source": "Table(self, \"Table\",\n table_columns=[Column(name=\"col1\", data_type=\"varchar(4)\", dist_key=True), Column(name=\"col2\", data_type=\"float\")\n ],\n cluster=cluster,\n database_name=\"databaseName\",\n dist_style=TableDistStyle.KEY\n)",
1154
+ "version": "1"
1155
+ },
1156
+ "csharp": {
1157
+ "source": "new Table(this, \"Table\", new TableProps {\n TableColumns = new [] { new Column { Name = \"col1\", DataType = \"varchar(4)\", DistKey = true }, new Column { Name = \"col2\", DataType = \"float\" } },\n Cluster = cluster,\n DatabaseName = \"databaseName\",\n DistStyle = TableDistStyle.KEY\n});",
1158
+ "version": "1"
1159
+ },
1160
+ "java": {
1161
+ "source": "Table.Builder.create(this, \"Table\")\n .tableColumns(List.of(Column.builder().name(\"col1\").dataType(\"varchar(4)\").distKey(true).build(), Column.builder().name(\"col2\").dataType(\"float\").build()))\n .cluster(cluster)\n .databaseName(\"databaseName\")\n .distStyle(TableDistStyle.KEY)\n .build();",
1162
+ "version": "1"
1163
+ },
1164
+ "$": {
1165
+ "source": "new Table(this, 'Table', {\n tableColumns: [\n { name: 'col1', dataType: 'varchar(4)', distKey: true },\n { name: 'col2', dataType: 'float' },\n ],\n cluster: cluster,\n databaseName: 'databaseName',\n distStyle: TableDistStyle.KEY,\n});",
1166
+ "version": "0"
1167
+ }
1168
+ },
1169
+ "location": {
1170
+ "api": {
1171
+ "api": "type",
1172
+ "fqn": "@aws-cdk/aws-redshift-alpha.TableDistStyle"
1173
+ },
1174
+ "field": {
1175
+ "field": "example"
1176
+ }
1177
+ },
1178
+ "didCompile": true,
1179
+ "fqnsReferenced": [
1180
+ "@aws-cdk/aws-redshift-alpha.ICluster",
1181
+ "@aws-cdk/aws-redshift-alpha.Login",
1182
+ "@aws-cdk/aws-redshift-alpha.Table",
1183
+ "@aws-cdk/aws-redshift-alpha.TableDistStyle",
1184
+ "@aws-cdk/aws-redshift-alpha.TableDistStyle#KEY",
1185
+ "@aws-cdk/aws-redshift-alpha.TableProps",
1186
+ "aws-cdk-lib.aws_ec2.IVpc"
1187
+ ],
1188
+ "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\nnew Table(this, 'Table', {\n tableColumns: [\n { name: 'col1', dataType: 'varchar(4)', distKey: true },\n { name: 'col2', dataType: 'float' },\n ],\n cluster: cluster,\n databaseName: 'databaseName',\n distStyle: TableDistStyle.KEY,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
1189
+ "syntaxKindCounter": {
1190
+ "10": 6,
1191
+ "75": 13,
1192
+ "104": 1,
1193
+ "106": 1,
1194
+ "192": 1,
1195
+ "193": 3,
1196
+ "194": 1,
1197
+ "197": 1,
1198
+ "226": 1,
1199
+ "281": 9
1200
+ },
1201
+ "fqnsFingerprint": "6c68ecfe9a805fb44653da4b0cee6b104f493dccea4101b49caa1fb8a9e93287"
1202
+ },
1203
+ "7ad9117d90fbe2a452185442e885e420097c162f2973db550809c3b5bff11d00": {
1204
+ "translations": {
1205
+ "python": {
1206
+ "source": "Table(self, \"Table\",\n table_columns=[Column(name=\"col1\", data_type=\"varchar(4)\", dist_key=True), Column(name=\"col2\", data_type=\"float\")\n ],\n cluster=cluster,\n database_name=\"databaseName\",\n dist_style=TableDistStyle.KEY\n)",
1207
+ "version": "1"
1208
+ },
1209
+ "csharp": {
1210
+ "source": "new Table(this, \"Table\", new TableProps {\n TableColumns = new [] { new Column { Name = \"col1\", DataType = \"varchar(4)\", DistKey = true }, new Column { Name = \"col2\", DataType = \"float\" } },\n Cluster = cluster,\n DatabaseName = \"databaseName\",\n DistStyle = TableDistStyle.KEY\n});",
1211
+ "version": "1"
1212
+ },
1213
+ "java": {
1214
+ "source": "Table.Builder.create(this, \"Table\")\n .tableColumns(List.of(Column.builder().name(\"col1\").dataType(\"varchar(4)\").distKey(true).build(), Column.builder().name(\"col2\").dataType(\"float\").build()))\n .cluster(cluster)\n .databaseName(\"databaseName\")\n .distStyle(TableDistStyle.KEY)\n .build();",
1215
+ "version": "1"
1216
+ },
1217
+ "$": {
1218
+ "source": "new Table(this, 'Table', {\n tableColumns: [\n { name: 'col1', dataType: 'varchar(4)', distKey: true },\n { name: 'col2', dataType: 'float' },\n ],\n cluster: cluster,\n databaseName: 'databaseName',\n distStyle: TableDistStyle.KEY,\n});",
1219
+ "version": "0"
1220
+ }
1221
+ },
1222
+ "location": {
1223
+ "api": {
1224
+ "api": "type",
1225
+ "fqn": "@aws-cdk/aws-redshift-alpha.TableProps"
1226
+ },
1227
+ "field": {
1228
+ "field": "example"
1229
+ }
1230
+ },
1231
+ "didCompile": true,
1232
+ "fqnsReferenced": [
1233
+ "@aws-cdk/aws-redshift-alpha.ICluster",
1234
+ "@aws-cdk/aws-redshift-alpha.Login",
1235
+ "@aws-cdk/aws-redshift-alpha.Table",
1236
+ "@aws-cdk/aws-redshift-alpha.TableDistStyle",
1237
+ "@aws-cdk/aws-redshift-alpha.TableDistStyle#KEY",
1238
+ "@aws-cdk/aws-redshift-alpha.TableProps",
1239
+ "aws-cdk-lib.aws_ec2.IVpc"
1240
+ ],
1241
+ "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\nnew Table(this, 'Table', {\n tableColumns: [\n { name: 'col1', dataType: 'varchar(4)', distKey: true },\n { name: 'col2', dataType: 'float' },\n ],\n cluster: cluster,\n databaseName: 'databaseName',\n distStyle: TableDistStyle.KEY,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
1242
+ "syntaxKindCounter": {
1243
+ "10": 6,
1244
+ "75": 13,
1245
+ "104": 1,
1246
+ "106": 1,
1247
+ "192": 1,
1248
+ "193": 3,
1249
+ "194": 1,
1250
+ "197": 1,
1251
+ "226": 1,
1252
+ "281": 9
1253
+ },
1254
+ "fqnsFingerprint": "6c68ecfe9a805fb44653da4b0cee6b104f493dccea4101b49caa1fb8a9e93287"
1255
+ },
1256
+ "7233d53f95d6c8e89498a7df318041aa7a223d09479f71a86b787c9bd8b89ce0": {
1257
+ "translations": {
1258
+ "python": {
1259
+ "source": "Table(self, \"Table\",\n table_columns=[Column(name=\"col1\", data_type=\"varchar(4)\", sort_key=True), Column(name=\"col2\", data_type=\"float\", sort_key=True)\n ],\n cluster=cluster,\n database_name=\"databaseName\",\n sort_style=TableSortStyle.COMPOUND\n)",
1260
+ "version": "1"
1261
+ },
1262
+ "csharp": {
1263
+ "source": "new Table(this, \"Table\", new TableProps {\n TableColumns = new [] { new Column { Name = \"col1\", DataType = \"varchar(4)\", SortKey = true }, new Column { Name = \"col2\", DataType = \"float\", SortKey = true } },\n Cluster = cluster,\n DatabaseName = \"databaseName\",\n SortStyle = TableSortStyle.COMPOUND\n});",
1264
+ "version": "1"
1265
+ },
1266
+ "java": {
1267
+ "source": "Table.Builder.create(this, \"Table\")\n .tableColumns(List.of(Column.builder().name(\"col1\").dataType(\"varchar(4)\").sortKey(true).build(), Column.builder().name(\"col2\").dataType(\"float\").sortKey(true).build()))\n .cluster(cluster)\n .databaseName(\"databaseName\")\n .sortStyle(TableSortStyle.COMPOUND)\n .build();",
1268
+ "version": "1"
1269
+ },
1270
+ "$": {
1271
+ "source": "new Table(this, 'Table', {\n tableColumns: [\n { name: 'col1', dataType: 'varchar(4)', sortKey: true },\n { name: 'col2', dataType: 'float', sortKey: true },\n ],\n cluster: cluster,\n databaseName: 'databaseName',\n sortStyle: TableSortStyle.COMPOUND,\n});",
1272
+ "version": "0"
1273
+ }
1274
+ },
1275
+ "location": {
1276
+ "api": {
1277
+ "api": "type",
1278
+ "fqn": "@aws-cdk/aws-redshift-alpha.TableSortStyle"
1279
+ },
1280
+ "field": {
1281
+ "field": "example"
1282
+ }
1283
+ },
1284
+ "didCompile": true,
1285
+ "fqnsReferenced": [
1286
+ "@aws-cdk/aws-redshift-alpha.ICluster",
1287
+ "@aws-cdk/aws-redshift-alpha.Login",
1288
+ "@aws-cdk/aws-redshift-alpha.Table",
1289
+ "@aws-cdk/aws-redshift-alpha.TableProps",
1290
+ "@aws-cdk/aws-redshift-alpha.TableSortStyle",
1291
+ "@aws-cdk/aws-redshift-alpha.TableSortStyle#COMPOUND",
1292
+ "aws-cdk-lib.aws_ec2.IVpc"
1293
+ ],
1294
+ "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\nnew Table(this, 'Table', {\n tableColumns: [\n { name: 'col1', dataType: 'varchar(4)', sortKey: true },\n { name: 'col2', dataType: 'float', sortKey: true },\n ],\n cluster: cluster,\n databaseName: 'databaseName',\n sortStyle: TableSortStyle.COMPOUND,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
1295
+ "syntaxKindCounter": {
1296
+ "10": 6,
1297
+ "75": 14,
1298
+ "104": 1,
1299
+ "106": 2,
1300
+ "192": 1,
1301
+ "193": 3,
1302
+ "194": 1,
1303
+ "197": 1,
1304
+ "226": 1,
1305
+ "281": 10
1306
+ },
1307
+ "fqnsFingerprint": "749ea207a9ffa4f1e596b47eb88d6235907725a948328be2db8066087b3c648c"
1308
+ },
1309
+ "05356cf6bd0f7860b1cc80c83cc76841efd6b3139a7158efbd0c3ac57aa4a083": {
1310
+ "translations": {
1311
+ "python": {
1312
+ "source": "import aws_cdk.aws_kms as kms\n\n\nencryption_key = kms.Key(self, \"Key\")\nUser(self, \"User\",\n encryption_key=encryption_key,\n cluster=cluster,\n database_name=\"databaseName\"\n)",
1313
+ "version": "1"
1314
+ },
1315
+ "csharp": {
1316
+ "source": "using Amazon.CDK.AWS.KMS;\n\n\nKey encryptionKey = new Key(this, \"Key\");\nnew User(this, \"User\", new UserProps {\n EncryptionKey = encryptionKey,\n Cluster = cluster,\n DatabaseName = \"databaseName\"\n});",
1317
+ "version": "1"
1318
+ },
1319
+ "java": {
1320
+ "source": "import software.amazon.awscdk.services.kms.*;\n\n\nKey encryptionKey = new Key(this, \"Key\");\nUser.Builder.create(this, \"User\")\n .encryptionKey(encryptionKey)\n .cluster(cluster)\n .databaseName(\"databaseName\")\n .build();",
1321
+ "version": "1"
1322
+ },
1323
+ "$": {
1324
+ "source": "import * as kms from 'aws-cdk-lib/aws-kms';\n\nconst encryptionKey = new kms.Key(this, 'Key');\nnew User(this, 'User', {\n encryptionKey: encryptionKey,\n cluster: cluster,\n databaseName: 'databaseName',\n});",
1325
+ "version": "0"
1326
+ }
1327
+ },
1328
+ "location": {
1329
+ "api": {
1330
+ "api": "type",
1331
+ "fqn": "@aws-cdk/aws-redshift-alpha.User"
1332
+ },
1333
+ "field": {
1334
+ "field": "example"
1335
+ }
1336
+ },
1337
+ "didCompile": true,
1338
+ "fqnsReferenced": [
1339
+ "@aws-cdk/aws-redshift-alpha.ICluster",
1340
+ "@aws-cdk/aws-redshift-alpha.Login",
1341
+ "@aws-cdk/aws-redshift-alpha.User",
1342
+ "@aws-cdk/aws-redshift-alpha.UserProps",
1343
+ "aws-cdk-lib.aws_ec2.IVpc",
1344
+ "aws-cdk-lib.aws_kms.IKey",
1345
+ "aws-cdk-lib.aws_kms.Key"
1346
+ ],
1347
+ "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\nimport * as kms from 'aws-cdk-lib/aws-kms';\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\nconst encryptionKey = new kms.Key(this, 'Key');\nnew User(this, 'User', {\n encryptionKey: encryptionKey,\n cluster: cluster,\n databaseName: 'databaseName',\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
1348
+ "syntaxKindCounter": {
1349
+ "10": 4,
1350
+ "75": 10,
1351
+ "104": 2,
1352
+ "193": 1,
1353
+ "194": 1,
1354
+ "197": 2,
1355
+ "225": 1,
1356
+ "226": 1,
1357
+ "242": 1,
1358
+ "243": 1,
1359
+ "254": 1,
1360
+ "255": 1,
1361
+ "256": 1,
1362
+ "281": 3,
1363
+ "290": 1
1364
+ },
1365
+ "fqnsFingerprint": "63284dcabfe522bbb2ca08f151970f850ecd197b7e0350605a713aa9613baff7"
1366
+ },
1367
+ "1597e838b084979e172670a4892a0b93fb1750ebb51dd5156aa46813a7c5d0d4": {
1368
+ "translations": {
1369
+ "python": {
1370
+ "source": "database_name = \"databaseName\"\nusername = \"myuser\"\ntable_name = \"mytable\"\n\nuser = User.from_user_attributes(self, \"User\",\n username=username,\n password=SecretValue.plain_text(\"NOT_FOR_PRODUCTION\"),\n cluster=cluster,\n database_name=database_name\n)\ntable = Table.from_table_attributes(self, \"Table\",\n table_name=table_name,\n table_columns=[Column(name=\"col1\", data_type=\"varchar(4)\"), Column(name=\"col2\", data_type=\"float\")],\n cluster=cluster,\n database_name=\"databaseName\"\n)\ntable.grant(user, TableAction.INSERT)",
1371
+ "version": "1"
1372
+ },
1373
+ "csharp": {
1374
+ "source": "string databaseName = \"databaseName\";\nstring username = \"myuser\";\nstring tableName = \"mytable\";\n\nIUser user = User.FromUserAttributes(this, \"User\", new UserAttributes {\n Username = username,\n Password = SecretValue.PlainText(\"NOT_FOR_PRODUCTION\"),\n Cluster = cluster,\n DatabaseName = databaseName\n});\nITable table = Table.FromTableAttributes(this, \"Table\", new TableAttributes {\n TableName = tableName,\n TableColumns = new [] { new Column { Name = \"col1\", DataType = \"varchar(4)\" }, new Column { Name = \"col2\", DataType = \"float\" } },\n Cluster = cluster,\n DatabaseName = \"databaseName\"\n});\ntable.Grant(user, TableAction.INSERT);",
1375
+ "version": "1"
1376
+ },
1377
+ "java": {
1378
+ "source": "String databaseName = \"databaseName\";\nString username = \"myuser\";\nString tableName = \"mytable\";\n\nIUser user = User.fromUserAttributes(this, \"User\", UserAttributes.builder()\n .username(username)\n .password(SecretValue.plainText(\"NOT_FOR_PRODUCTION\"))\n .cluster(cluster)\n .databaseName(databaseName)\n .build());\nITable table = Table.fromTableAttributes(this, \"Table\", TableAttributes.builder()\n .tableName(tableName)\n .tableColumns(List.of(Column.builder().name(\"col1\").dataType(\"varchar(4)\").build(), Column.builder().name(\"col2\").dataType(\"float\").build()))\n .cluster(cluster)\n .databaseName(\"databaseName\")\n .build());\ntable.grant(user, TableAction.INSERT);",
1379
+ "version": "1"
1380
+ },
1381
+ "$": {
1382
+ "source": "const databaseName = 'databaseName';\nconst username = 'myuser'\nconst tableName = 'mytable'\n\nconst user = User.fromUserAttributes(this, 'User', {\n username: username,\n password: SecretValue.plainText('NOT_FOR_PRODUCTION'),\n cluster: cluster,\n databaseName: databaseName,\n});\nconst table = Table.fromTableAttributes(this, 'Table', {\n tableName: tableName,\n tableColumns: [{ name: 'col1', dataType: 'varchar(4)' }, { name: 'col2', dataType: 'float' }],\n cluster: cluster,\n databaseName: 'databaseName',\n});\ntable.grant(user, TableAction.INSERT);",
1383
+ "version": "0"
1384
+ }
1385
+ },
1386
+ "location": {
1387
+ "api": {
1388
+ "api": "type",
1389
+ "fqn": "@aws-cdk/aws-redshift-alpha.UserAttributes"
1390
+ },
1391
+ "field": {
1392
+ "field": "example"
1393
+ }
1394
+ },
1395
+ "didCompile": true,
1396
+ "fqnsReferenced": [
1397
+ "@aws-cdk/aws-redshift-alpha.ICluster",
1398
+ "@aws-cdk/aws-redshift-alpha.ITable",
1399
+ "@aws-cdk/aws-redshift-alpha.ITable#grant",
1400
+ "@aws-cdk/aws-redshift-alpha.IUser",
1401
+ "@aws-cdk/aws-redshift-alpha.Login",
1402
+ "@aws-cdk/aws-redshift-alpha.Table#fromTableAttributes",
1403
+ "@aws-cdk/aws-redshift-alpha.TableAction",
1404
+ "@aws-cdk/aws-redshift-alpha.TableAction#INSERT",
1405
+ "@aws-cdk/aws-redshift-alpha.TableAttributes",
1406
+ "@aws-cdk/aws-redshift-alpha.User#fromUserAttributes",
1407
+ "@aws-cdk/aws-redshift-alpha.UserAttributes",
1408
+ "aws-cdk-lib.SecretValue",
1409
+ "aws-cdk-lib.SecretValue#plainText",
1410
+ "aws-cdk-lib.aws_ec2.IVpc"
1411
+ ],
1412
+ "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\nconst databaseName = 'databaseName';\nconst username = 'myuser'\nconst tableName = 'mytable'\n\nconst user = User.fromUserAttributes(this, 'User', {\n username: username,\n password: SecretValue.plainText('NOT_FOR_PRODUCTION'),\n cluster: cluster,\n databaseName: databaseName,\n});\nconst table = Table.fromTableAttributes(this, 'Table', {\n tableName: tableName,\n tableColumns: [{ name: 'col1', dataType: 'varchar(4)' }, { name: 'col2', dataType: 'float' }],\n cluster: cluster,\n databaseName: 'databaseName',\n});\ntable.grant(user, TableAction.INSERT);\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
1413
+ "syntaxKindCounter": {
1414
+ "10": 11,
1415
+ "75": 33,
1416
+ "104": 2,
1417
+ "192": 1,
1418
+ "193": 4,
1419
+ "194": 5,
1420
+ "196": 4,
1421
+ "225": 5,
1422
+ "226": 1,
1423
+ "242": 5,
1424
+ "243": 5,
1425
+ "281": 12
1426
+ },
1427
+ "fqnsFingerprint": "91110524d7f72c663bfc5b017975e431bb65cefa7d29c3e7740860acede2cff6"
1428
+ },
1429
+ "853a0f6597ea3e622c5057694caeca46674cf434bde105571b72205b6c8edb72": {
1430
+ "translations": {
1431
+ "python": {
1432
+ "source": "import aws_cdk.aws_kms as kms\n\n\nencryption_key = kms.Key(self, \"Key\")\nUser(self, \"User\",\n encryption_key=encryption_key,\n cluster=cluster,\n database_name=\"databaseName\"\n)",
1433
+ "version": "1"
1434
+ },
1435
+ "csharp": {
1436
+ "source": "using Amazon.CDK.AWS.KMS;\n\n\nKey encryptionKey = new Key(this, \"Key\");\nnew User(this, \"User\", new UserProps {\n EncryptionKey = encryptionKey,\n Cluster = cluster,\n DatabaseName = \"databaseName\"\n});",
1437
+ "version": "1"
1438
+ },
1439
+ "java": {
1440
+ "source": "import software.amazon.awscdk.services.kms.*;\n\n\nKey encryptionKey = new Key(this, \"Key\");\nUser.Builder.create(this, \"User\")\n .encryptionKey(encryptionKey)\n .cluster(cluster)\n .databaseName(\"databaseName\")\n .build();",
1441
+ "version": "1"
1442
+ },
1443
+ "$": {
1444
+ "source": "import * as kms from 'aws-cdk-lib/aws-kms';\n\nconst encryptionKey = new kms.Key(this, 'Key');\nnew User(this, 'User', {\n encryptionKey: encryptionKey,\n cluster: cluster,\n databaseName: 'databaseName',\n});",
1445
+ "version": "0"
1446
+ }
1447
+ },
1448
+ "location": {
1449
+ "api": {
1450
+ "api": "type",
1451
+ "fqn": "@aws-cdk/aws-redshift-alpha.UserProps"
1452
+ },
1453
+ "field": {
1454
+ "field": "example"
1455
+ }
1456
+ },
1457
+ "didCompile": true,
1458
+ "fqnsReferenced": [
1459
+ "@aws-cdk/aws-redshift-alpha.ICluster",
1460
+ "@aws-cdk/aws-redshift-alpha.Login",
1461
+ "@aws-cdk/aws-redshift-alpha.User",
1462
+ "@aws-cdk/aws-redshift-alpha.UserProps",
1463
+ "aws-cdk-lib.aws_ec2.IVpc",
1464
+ "aws-cdk-lib.aws_kms.IKey",
1465
+ "aws-cdk-lib.aws_kms.Key"
1466
+ ],
1467
+ "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\nimport * as kms from 'aws-cdk-lib/aws-kms';\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\nconst encryptionKey = new kms.Key(this, 'Key');\nnew User(this, 'User', {\n encryptionKey: encryptionKey,\n cluster: cluster,\n databaseName: 'databaseName',\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
1468
+ "syntaxKindCounter": {
1469
+ "10": 4,
1470
+ "75": 10,
1471
+ "104": 2,
1472
+ "193": 1,
1473
+ "194": 1,
1474
+ "197": 2,
1475
+ "225": 1,
1476
+ "226": 1,
1477
+ "242": 1,
1478
+ "243": 1,
1479
+ "254": 1,
1480
+ "255": 1,
1481
+ "256": 1,
1482
+ "281": 3,
1483
+ "290": 1
1484
+ },
1485
+ "fqnsFingerprint": "63284dcabfe522bbb2ca08f151970f850ecd197b7e0350605a713aa9613baff7"
1486
+ }
1487
+ }
1488
+ }