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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/.jsii +420 -1482
  2. package/.jsii.tabl.json +2039 -0
  3. package/.warnings.jsii.js +139 -0
  4. package/LICENSE +1 -1
  5. package/NOTICE +1 -1
  6. package/README.md +31 -9
  7. package/lib/cluster.js +9 -5
  8. package/lib/database-secret.js +4 -2
  9. package/lib/endpoint.js +2 -2
  10. package/lib/parameter-group.js +4 -2
  11. package/lib/private/database-query-provider/privileges.d.ts +1 -1
  12. package/lib/private/database-query-provider/privileges.js +4 -3
  13. package/lib/private/database-query-provider/redshift-data.d.ts +2 -0
  14. package/lib/private/database-query-provider/redshift-data.js +37 -0
  15. package/lib/private/database-query-provider/table.d.ts +2 -3
  16. package/lib/private/database-query-provider/table.js +77 -16
  17. package/lib/private/database-query-provider/types.d.ts +22 -0
  18. package/lib/private/database-query-provider/types.js +24 -0
  19. package/lib/private/database-query-provider/user.d.ts +1 -1
  20. package/lib/private/database-query-provider/user.js +5 -4
  21. package/lib/private/database-query-provider/util.d.ts +5 -3
  22. package/lib/private/database-query-provider/util.js +27 -34
  23. package/lib/private/database-query.js +1 -1
  24. package/lib/private/handler-props.d.ts +4 -2
  25. package/lib/private/handler-props.js +1 -1
  26. package/lib/private/privileges.js +1 -1
  27. package/lib/redshift-canned-metrics.generated.d.ts +222 -67
  28. package/lib/redshift-canned-metrics.generated.js +105 -25
  29. package/lib/subnet-group.js +4 -2
  30. package/lib/table.d.ts +88 -0
  31. package/lib/table.js +71 -5
  32. package/lib/user.js +5 -2
  33. package/package.json +14 -16
  34. package/rosetta/_generated.ts-fixture +6 -0
  35. package/rosetta/cluster.ts-fixture +3 -3
  36. package/rosetta/default.ts-fixture +2 -2
@@ -0,0 +1,2039 @@
1
+ {
2
+ "version": "2",
3
+ "toolVersion": "1.50.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": "140fb49f3c852684ef4efbf666432160ad18e0a465bf3bdfa2042820fa390fff"
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": "d7d49a32b47cbfc52070e69a9cf126267ffe7f792666ac1c4450374baf2a7c16"
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": "1db9d399e51e7f8ede73e0a5fae1041536b8e12523b6104bde7fc7ea63b6d5fe"
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": "c3b5c0765fcf41e4919f6021daf0ea713e860c3eae474e529203eaa032a3ef01"
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": "b83aee34af18596385c5daeb7640671682c0c748322803a9f2f334d2017d914d"
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": "e1ee4b63572d56e3a448d7eea782968be739d561d642062a4925e7ec7305e0cf"
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": "e24c6a84f3c727f8a84c613aaf036b24228b9846536ee47b3c05a3d47aa5e164"
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": "e1ee4b63572d56e3a448d7eea782968be739d561d642062a4925e7ec7305e0cf"
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": "bd0bb15c1b77df9dac2df4f83f16305820ac64cb00e667a480e962e858f40e14"
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": "5584a85a624947f0ac1d202bc0c496b931c629eb9236f070dc21f08212befbc7"
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": "b9cf8ff3ccdf56016a78361120ece31c3142f0fa5580de1363e1ee57cde29e17"
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": "c22741c92164e60d543e5fad4bd4948f7734c6a375c67697d5fe04ca989d21eb"
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": "477c0ba06758b9ca3f2009b6cdfbfc3f5f221d39302db81d6a478dff0d8c5ac4"
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": "28fc9811350ede7a47cc184d26afaf60f249ffdb6b8931e9def605a0c1157650"
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": "140fb49f3c852684ef4efbf666432160ad18e0a465bf3bdfa2042820fa390fff"
806
+ },
807
+ "d6c41af477f219a992322c044392d17fe1bf965cae8a8110aa4110e61ca2f64f": {
808
+ "translations": {
809
+ "python": {
810
+ "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_redshift_alpha as redshift_alpha\nfrom aws_cdk import aws_ec2 as ec2\n\n# security_group is of type SecurityGroup\n\ncluster_attributes = redshift_alpha.ClusterAttributes(\n cluster_endpoint_address=\"clusterEndpointAddress\",\n cluster_endpoint_port=123,\n cluster_name=\"clusterName\",\n\n # the properties below are optional\n security_groups=[security_group]\n)",
811
+ "version": "1"
812
+ },
813
+ "csharp": {
814
+ "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Redshift.Alpha;\nusing Amazon.CDK.AWS.EC2;\n\nSecurityGroup securityGroup;\n\nClusterAttributes clusterAttributes = new ClusterAttributes {\n ClusterEndpointAddress = \"clusterEndpointAddress\",\n ClusterEndpointPort = 123,\n ClusterName = \"clusterName\",\n\n // the properties below are optional\n SecurityGroups = new [] { securityGroup }\n};",
815
+ "version": "1"
816
+ },
817
+ "java": {
818
+ "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.redshift.alpha.*;\nimport software.amazon.awscdk.services.ec2.*;\n\nSecurityGroup securityGroup;\n\nClusterAttributes clusterAttributes = ClusterAttributes.builder()\n .clusterEndpointAddress(\"clusterEndpointAddress\")\n .clusterEndpointPort(123)\n .clusterName(\"clusterName\")\n\n // the properties below are optional\n .securityGroups(List.of(securityGroup))\n .build();",
819
+ "version": "1"
820
+ },
821
+ "$": {
822
+ "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as redshift_alpha from '@aws-cdk/aws-redshift-alpha';\nimport { aws_ec2 as ec2 } from 'aws-cdk-lib';\n\ndeclare const securityGroup: ec2.SecurityGroup;\nconst clusterAttributes: redshift_alpha.ClusterAttributes = {\n clusterEndpointAddress: 'clusterEndpointAddress',\n clusterEndpointPort: 123,\n clusterName: 'clusterName',\n\n // the properties below are optional\n securityGroups: [securityGroup],\n};",
823
+ "version": "0"
824
+ }
825
+ },
826
+ "location": {
827
+ "api": {
828
+ "api": "type",
829
+ "fqn": "@aws-cdk/aws-redshift-alpha.ClusterAttributes"
830
+ },
831
+ "field": {
832
+ "field": "example"
833
+ }
834
+ },
835
+ "didCompile": true,
836
+ "fqnsReferenced": [
837
+ "@aws-cdk/aws-redshift-alpha.ClusterAttributes"
838
+ ],
839
+ "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as redshift_alpha from '@aws-cdk/aws-redshift-alpha';\nimport { aws_ec2 as ec2 } from 'aws-cdk-lib';\n\ndeclare const securityGroup: ec2.SecurityGroup;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"constructs\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst clusterAttributes: redshift_alpha.ClusterAttributes = {\n clusterEndpointAddress: 'clusterEndpointAddress',\n clusterEndpointPort: 123,\n clusterName: 'clusterName',\n\n // the properties below are optional\n securityGroups: [securityGroup],\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
840
+ "syntaxKindCounter": {
841
+ "8": 1,
842
+ "10": 4,
843
+ "75": 14,
844
+ "130": 1,
845
+ "153": 2,
846
+ "169": 2,
847
+ "192": 1,
848
+ "193": 1,
849
+ "225": 2,
850
+ "242": 2,
851
+ "243": 2,
852
+ "254": 2,
853
+ "255": 2,
854
+ "256": 1,
855
+ "257": 1,
856
+ "258": 1,
857
+ "281": 4,
858
+ "290": 1
859
+ },
860
+ "fqnsFingerprint": "33e5e1f5a32a5889c3f93f883897ef86d22351ebdc34c5f57b4cb18065f67909"
861
+ },
862
+ "65a9cd36a8b9594b38c0a0d95fa00643ef6c7b854e295a2e78d7533f6c0d4fb8": {
863
+ "translations": {
864
+ "python": {
865
+ "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_redshift_alpha as redshift_alpha\n\ncluster_parameter_group = redshift_alpha.ClusterParameterGroup(self, \"MyClusterParameterGroup\",\n parameters={\n \"parameters_key\": \"parameters\"\n },\n\n # the properties below are optional\n description=\"description\"\n)",
866
+ "version": "1"
867
+ },
868
+ "csharp": {
869
+ "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Redshift.Alpha;\n\nClusterParameterGroup clusterParameterGroup = new ClusterParameterGroup(this, \"MyClusterParameterGroup\", new ClusterParameterGroupProps {\n Parameters = new Dictionary<string, string> {\n { \"parametersKey\", \"parameters\" }\n },\n\n // the properties below are optional\n Description = \"description\"\n});",
870
+ "version": "1"
871
+ },
872
+ "java": {
873
+ "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.redshift.alpha.*;\n\nClusterParameterGroup clusterParameterGroup = ClusterParameterGroup.Builder.create(this, \"MyClusterParameterGroup\")\n .parameters(Map.of(\n \"parametersKey\", \"parameters\"))\n\n // the properties below are optional\n .description(\"description\")\n .build();",
874
+ "version": "1"
875
+ },
876
+ "$": {
877
+ "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as redshift_alpha from '@aws-cdk/aws-redshift-alpha';\nconst clusterParameterGroup = new redshift_alpha.ClusterParameterGroup(this, 'MyClusterParameterGroup', {\n parameters: {\n parametersKey: 'parameters',\n },\n\n // the properties below are optional\n description: 'description',\n});",
878
+ "version": "0"
879
+ }
880
+ },
881
+ "location": {
882
+ "api": {
883
+ "api": "type",
884
+ "fqn": "@aws-cdk/aws-redshift-alpha.ClusterParameterGroup"
885
+ },
886
+ "field": {
887
+ "field": "example"
888
+ }
889
+ },
890
+ "didCompile": true,
891
+ "fqnsReferenced": [
892
+ "@aws-cdk/aws-redshift-alpha.ClusterParameterGroup",
893
+ "@aws-cdk/aws-redshift-alpha.ClusterParameterGroupProps"
894
+ ],
895
+ "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as redshift_alpha from '@aws-cdk/aws-redshift-alpha';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"constructs\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst clusterParameterGroup = new redshift_alpha.ClusterParameterGroup(this, 'MyClusterParameterGroup', {\n parameters: {\n parametersKey: 'parameters',\n },\n\n // the properties below are optional\n description: 'description',\n});\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
896
+ "syntaxKindCounter": {
897
+ "10": 4,
898
+ "75": 7,
899
+ "104": 1,
900
+ "193": 2,
901
+ "194": 1,
902
+ "197": 1,
903
+ "225": 1,
904
+ "242": 1,
905
+ "243": 1,
906
+ "254": 1,
907
+ "255": 1,
908
+ "256": 1,
909
+ "281": 3,
910
+ "290": 1
911
+ },
912
+ "fqnsFingerprint": "2c310bca48220d49567076d9b0b6013568234f9f0b62729139f650eb7615ce39"
913
+ },
914
+ "668d0c5fe079c3e36b822c3c1f1c479f3b651c6374572bcc88da7ece64888418": {
915
+ "translations": {
916
+ "python": {
917
+ "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_redshift_alpha as redshift_alpha\n\ncluster_parameter_group_props = redshift_alpha.ClusterParameterGroupProps(\n parameters={\n \"parameters_key\": \"parameters\"\n },\n\n # the properties below are optional\n description=\"description\"\n)",
918
+ "version": "1"
919
+ },
920
+ "csharp": {
921
+ "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Redshift.Alpha;\n\nClusterParameterGroupProps clusterParameterGroupProps = new ClusterParameterGroupProps {\n Parameters = new Dictionary<string, string> {\n { \"parametersKey\", \"parameters\" }\n },\n\n // the properties below are optional\n Description = \"description\"\n};",
922
+ "version": "1"
923
+ },
924
+ "java": {
925
+ "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.redshift.alpha.*;\n\nClusterParameterGroupProps clusterParameterGroupProps = ClusterParameterGroupProps.builder()\n .parameters(Map.of(\n \"parametersKey\", \"parameters\"))\n\n // the properties below are optional\n .description(\"description\")\n .build();",
926
+ "version": "1"
927
+ },
928
+ "$": {
929
+ "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as redshift_alpha from '@aws-cdk/aws-redshift-alpha';\nconst clusterParameterGroupProps: redshift_alpha.ClusterParameterGroupProps = {\n parameters: {\n parametersKey: 'parameters',\n },\n\n // the properties below are optional\n description: 'description',\n};",
930
+ "version": "0"
931
+ }
932
+ },
933
+ "location": {
934
+ "api": {
935
+ "api": "type",
936
+ "fqn": "@aws-cdk/aws-redshift-alpha.ClusterParameterGroupProps"
937
+ },
938
+ "field": {
939
+ "field": "example"
940
+ }
941
+ },
942
+ "didCompile": true,
943
+ "fqnsReferenced": [
944
+ "@aws-cdk/aws-redshift-alpha.ClusterParameterGroupProps"
945
+ ],
946
+ "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as redshift_alpha from '@aws-cdk/aws-redshift-alpha';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"constructs\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst clusterParameterGroupProps: redshift_alpha.ClusterParameterGroupProps = {\n parameters: {\n parametersKey: 'parameters',\n },\n\n // the properties below are optional\n description: 'description',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
947
+ "syntaxKindCounter": {
948
+ "10": 3,
949
+ "75": 7,
950
+ "153": 1,
951
+ "169": 1,
952
+ "193": 2,
953
+ "225": 1,
954
+ "242": 1,
955
+ "243": 1,
956
+ "254": 1,
957
+ "255": 1,
958
+ "256": 1,
959
+ "281": 3,
960
+ "290": 1
961
+ },
962
+ "fqnsFingerprint": "dc5736d6868916dcb6665b1c2a0f7a444894c18bf0a739ab8ce1548384dae15f"
963
+ },
964
+ "857282a70b80501cd849b21543428c56ead7508adc43541e30b23d3e9c532df3": {
965
+ "translations": {
966
+ "python": {
967
+ "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)",
968
+ "version": "1"
969
+ },
970
+ "csharp": {
971
+ "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});",
972
+ "version": "1"
973
+ },
974
+ "java": {
975
+ "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();",
976
+ "version": "1"
977
+ },
978
+ "$": {
979
+ "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});",
980
+ "version": "0"
981
+ }
982
+ },
983
+ "location": {
984
+ "api": {
985
+ "api": "type",
986
+ "fqn": "@aws-cdk/aws-redshift-alpha.ClusterProps"
987
+ },
988
+ "field": {
989
+ "field": "example"
990
+ }
991
+ },
992
+ "didCompile": true,
993
+ "fqnsReferenced": [
994
+ "@aws-cdk/aws-redshift-alpha.Cluster",
995
+ "@aws-cdk/aws-redshift-alpha.ClusterProps",
996
+ "@aws-cdk/aws-redshift-alpha.Login",
997
+ "aws-cdk-lib.aws_ec2.IVpc",
998
+ "aws-cdk-lib.aws_ec2.Vpc"
999
+ ],
1000
+ "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",
1001
+ "syntaxKindCounter": {
1002
+ "10": 4,
1003
+ "75": 9,
1004
+ "104": 2,
1005
+ "193": 2,
1006
+ "194": 1,
1007
+ "197": 2,
1008
+ "225": 2,
1009
+ "242": 2,
1010
+ "243": 2,
1011
+ "254": 1,
1012
+ "255": 1,
1013
+ "256": 1,
1014
+ "281": 2,
1015
+ "282": 1,
1016
+ "290": 1
1017
+ },
1018
+ "fqnsFingerprint": "140fb49f3c852684ef4efbf666432160ad18e0a465bf3bdfa2042820fa390fff"
1019
+ },
1020
+ "51118bb4d5c3de88213dac23d2877a4e785360769254185a9eb4e89b0a0d989a": {
1021
+ "translations": {
1022
+ "python": {
1023
+ "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_redshift_alpha as redshift_alpha\nimport aws_cdk as cdk\nfrom aws_cdk import aws_ec2 as ec2\n\n# subnet is of type Subnet\n# subnet_filter is of type SubnetFilter\n# vpc is of type Vpc\n\ncluster_subnet_group = redshift_alpha.ClusterSubnetGroup(self, \"MyClusterSubnetGroup\",\n description=\"description\",\n vpc=vpc,\n\n # the properties below are optional\n removal_policy=cdk.RemovalPolicy.DESTROY,\n vpc_subnets=ec2.SubnetSelection(\n availability_zones=[\"availabilityZones\"],\n one_per_az=False,\n subnet_filters=[subnet_filter],\n subnet_group_name=\"subnetGroupName\",\n subnets=[subnet],\n subnet_type=ec2.SubnetType.PRIVATE_ISOLATED\n )\n)",
1024
+ "version": "1"
1025
+ },
1026
+ "csharp": {
1027
+ "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Redshift.Alpha;\nusing Amazon.CDK;\nusing Amazon.CDK.AWS.EC2;\n\nSubnet subnet;\nSubnetFilter subnetFilter;\nVpc vpc;\n\nClusterSubnetGroup clusterSubnetGroup = new ClusterSubnetGroup(this, \"MyClusterSubnetGroup\", new ClusterSubnetGroupProps {\n Description = \"description\",\n Vpc = vpc,\n\n // the properties below are optional\n RemovalPolicy = RemovalPolicy.DESTROY,\n VpcSubnets = new SubnetSelection {\n AvailabilityZones = new [] { \"availabilityZones\" },\n OnePerAz = false,\n SubnetFilters = new [] { subnetFilter },\n SubnetGroupName = \"subnetGroupName\",\n Subnets = new [] { subnet },\n SubnetType = SubnetType.PRIVATE_ISOLATED\n }\n});",
1028
+ "version": "1"
1029
+ },
1030
+ "java": {
1031
+ "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.redshift.alpha.*;\nimport software.amazon.awscdk.*;\nimport software.amazon.awscdk.services.ec2.*;\n\nSubnet subnet;\nSubnetFilter subnetFilter;\nVpc vpc;\n\nClusterSubnetGroup clusterSubnetGroup = ClusterSubnetGroup.Builder.create(this, \"MyClusterSubnetGroup\")\n .description(\"description\")\n .vpc(vpc)\n\n // the properties below are optional\n .removalPolicy(RemovalPolicy.DESTROY)\n .vpcSubnets(SubnetSelection.builder()\n .availabilityZones(List.of(\"availabilityZones\"))\n .onePerAz(false)\n .subnetFilters(List.of(subnetFilter))\n .subnetGroupName(\"subnetGroupName\")\n .subnets(List.of(subnet))\n .subnetType(SubnetType.PRIVATE_ISOLATED)\n .build())\n .build();",
1032
+ "version": "1"
1033
+ },
1034
+ "$": {
1035
+ "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as redshift_alpha from '@aws-cdk/aws-redshift-alpha';\nimport * as cdk from 'aws-cdk-lib';\nimport { aws_ec2 as ec2 } from 'aws-cdk-lib';\n\ndeclare const subnet: ec2.Subnet;\ndeclare const subnetFilter: ec2.SubnetFilter;\ndeclare const vpc: ec2.Vpc;\nconst clusterSubnetGroup = new redshift_alpha.ClusterSubnetGroup(this, 'MyClusterSubnetGroup', {\n description: 'description',\n vpc: vpc,\n\n // the properties below are optional\n removalPolicy: cdk.RemovalPolicy.DESTROY,\n vpcSubnets: {\n availabilityZones: ['availabilityZones'],\n onePerAz: false,\n subnetFilters: [subnetFilter],\n subnetGroupName: 'subnetGroupName',\n subnets: [subnet],\n subnetType: ec2.SubnetType.PRIVATE_ISOLATED,\n },\n});",
1036
+ "version": "0"
1037
+ }
1038
+ },
1039
+ "location": {
1040
+ "api": {
1041
+ "api": "type",
1042
+ "fqn": "@aws-cdk/aws-redshift-alpha.ClusterSubnetGroup"
1043
+ },
1044
+ "field": {
1045
+ "field": "example"
1046
+ }
1047
+ },
1048
+ "didCompile": true,
1049
+ "fqnsReferenced": [
1050
+ "@aws-cdk/aws-redshift-alpha.ClusterSubnetGroup",
1051
+ "@aws-cdk/aws-redshift-alpha.ClusterSubnetGroupProps",
1052
+ "aws-cdk-lib.RemovalPolicy",
1053
+ "aws-cdk-lib.RemovalPolicy#DESTROY",
1054
+ "aws-cdk-lib.aws_ec2.IVpc",
1055
+ "aws-cdk-lib.aws_ec2.SubnetSelection",
1056
+ "aws-cdk-lib.aws_ec2.SubnetType",
1057
+ "aws-cdk-lib.aws_ec2.SubnetType#PRIVATE_ISOLATED"
1058
+ ],
1059
+ "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as redshift_alpha from '@aws-cdk/aws-redshift-alpha';\nimport * as cdk from 'aws-cdk-lib';\nimport { aws_ec2 as ec2 } from 'aws-cdk-lib';\n\ndeclare const subnet: ec2.Subnet;\ndeclare const subnetFilter: ec2.SubnetFilter;\ndeclare const vpc: ec2.Vpc;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"constructs\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst clusterSubnetGroup = new redshift_alpha.ClusterSubnetGroup(this, 'MyClusterSubnetGroup', {\n description: 'description',\n vpc: vpc,\n\n // the properties below are optional\n removalPolicy: cdk.RemovalPolicy.DESTROY,\n vpcSubnets: {\n availabilityZones: ['availabilityZones'],\n onePerAz: false,\n subnetFilters: [subnetFilter],\n subnetGroupName: 'subnetGroupName',\n subnets: [subnet],\n subnetType: ec2.SubnetType.PRIVATE_ISOLATED,\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
1060
+ "syntaxKindCounter": {
1061
+ "10": 7,
1062
+ "75": 35,
1063
+ "91": 1,
1064
+ "104": 1,
1065
+ "130": 3,
1066
+ "153": 3,
1067
+ "169": 3,
1068
+ "192": 3,
1069
+ "193": 2,
1070
+ "194": 5,
1071
+ "197": 1,
1072
+ "225": 4,
1073
+ "242": 4,
1074
+ "243": 4,
1075
+ "254": 3,
1076
+ "255": 3,
1077
+ "256": 2,
1078
+ "257": 1,
1079
+ "258": 1,
1080
+ "281": 10,
1081
+ "290": 1
1082
+ },
1083
+ "fqnsFingerprint": "205e7fed9d2ab4ebbbf78f2e8d56d8cbd8e93abaf8962e3bae61dac77bc70aa5"
1084
+ },
1085
+ "cacf629afc7210cdf46232db41dea37b5ea7283b293ab5c51b1a6383b15dd69f": {
1086
+ "translations": {
1087
+ "python": {
1088
+ "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_redshift_alpha as redshift_alpha\nimport aws_cdk as cdk\nfrom aws_cdk import aws_ec2 as ec2\n\n# subnet is of type Subnet\n# subnet_filter is of type SubnetFilter\n# vpc is of type Vpc\n\ncluster_subnet_group_props = redshift_alpha.ClusterSubnetGroupProps(\n description=\"description\",\n vpc=vpc,\n\n # the properties below are optional\n removal_policy=cdk.RemovalPolicy.DESTROY,\n vpc_subnets=ec2.SubnetSelection(\n availability_zones=[\"availabilityZones\"],\n one_per_az=False,\n subnet_filters=[subnet_filter],\n subnet_group_name=\"subnetGroupName\",\n subnets=[subnet],\n subnet_type=ec2.SubnetType.PRIVATE_ISOLATED\n )\n)",
1089
+ "version": "1"
1090
+ },
1091
+ "csharp": {
1092
+ "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Redshift.Alpha;\nusing Amazon.CDK;\nusing Amazon.CDK.AWS.EC2;\n\nSubnet subnet;\nSubnetFilter subnetFilter;\nVpc vpc;\n\nClusterSubnetGroupProps clusterSubnetGroupProps = new ClusterSubnetGroupProps {\n Description = \"description\",\n Vpc = vpc,\n\n // the properties below are optional\n RemovalPolicy = RemovalPolicy.DESTROY,\n VpcSubnets = new SubnetSelection {\n AvailabilityZones = new [] { \"availabilityZones\" },\n OnePerAz = false,\n SubnetFilters = new [] { subnetFilter },\n SubnetGroupName = \"subnetGroupName\",\n Subnets = new [] { subnet },\n SubnetType = SubnetType.PRIVATE_ISOLATED\n }\n};",
1093
+ "version": "1"
1094
+ },
1095
+ "java": {
1096
+ "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.redshift.alpha.*;\nimport software.amazon.awscdk.*;\nimport software.amazon.awscdk.services.ec2.*;\n\nSubnet subnet;\nSubnetFilter subnetFilter;\nVpc vpc;\n\nClusterSubnetGroupProps clusterSubnetGroupProps = ClusterSubnetGroupProps.builder()\n .description(\"description\")\n .vpc(vpc)\n\n // the properties below are optional\n .removalPolicy(RemovalPolicy.DESTROY)\n .vpcSubnets(SubnetSelection.builder()\n .availabilityZones(List.of(\"availabilityZones\"))\n .onePerAz(false)\n .subnetFilters(List.of(subnetFilter))\n .subnetGroupName(\"subnetGroupName\")\n .subnets(List.of(subnet))\n .subnetType(SubnetType.PRIVATE_ISOLATED)\n .build())\n .build();",
1097
+ "version": "1"
1098
+ },
1099
+ "$": {
1100
+ "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as redshift_alpha from '@aws-cdk/aws-redshift-alpha';\nimport * as cdk from 'aws-cdk-lib';\nimport { aws_ec2 as ec2 } from 'aws-cdk-lib';\n\ndeclare const subnet: ec2.Subnet;\ndeclare const subnetFilter: ec2.SubnetFilter;\ndeclare const vpc: ec2.Vpc;\nconst clusterSubnetGroupProps: redshift_alpha.ClusterSubnetGroupProps = {\n description: 'description',\n vpc: vpc,\n\n // the properties below are optional\n removalPolicy: cdk.RemovalPolicy.DESTROY,\n vpcSubnets: {\n availabilityZones: ['availabilityZones'],\n onePerAz: false,\n subnetFilters: [subnetFilter],\n subnetGroupName: 'subnetGroupName',\n subnets: [subnet],\n subnetType: ec2.SubnetType.PRIVATE_ISOLATED,\n },\n};",
1101
+ "version": "0"
1102
+ }
1103
+ },
1104
+ "location": {
1105
+ "api": {
1106
+ "api": "type",
1107
+ "fqn": "@aws-cdk/aws-redshift-alpha.ClusterSubnetGroupProps"
1108
+ },
1109
+ "field": {
1110
+ "field": "example"
1111
+ }
1112
+ },
1113
+ "didCompile": true,
1114
+ "fqnsReferenced": [
1115
+ "@aws-cdk/aws-redshift-alpha.ClusterSubnetGroupProps",
1116
+ "aws-cdk-lib.RemovalPolicy",
1117
+ "aws-cdk-lib.RemovalPolicy#DESTROY",
1118
+ "aws-cdk-lib.aws_ec2.IVpc",
1119
+ "aws-cdk-lib.aws_ec2.SubnetSelection",
1120
+ "aws-cdk-lib.aws_ec2.SubnetType",
1121
+ "aws-cdk-lib.aws_ec2.SubnetType#PRIVATE_ISOLATED"
1122
+ ],
1123
+ "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as redshift_alpha from '@aws-cdk/aws-redshift-alpha';\nimport * as cdk from 'aws-cdk-lib';\nimport { aws_ec2 as ec2 } from 'aws-cdk-lib';\n\ndeclare const subnet: ec2.Subnet;\ndeclare const subnetFilter: ec2.SubnetFilter;\ndeclare const vpc: ec2.Vpc;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"constructs\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst clusterSubnetGroupProps: redshift_alpha.ClusterSubnetGroupProps = {\n description: 'description',\n vpc: vpc,\n\n // the properties below are optional\n removalPolicy: cdk.RemovalPolicy.DESTROY,\n vpcSubnets: {\n availabilityZones: ['availabilityZones'],\n onePerAz: false,\n subnetFilters: [subnetFilter],\n subnetGroupName: 'subnetGroupName',\n subnets: [subnet],\n subnetType: ec2.SubnetType.PRIVATE_ISOLATED,\n },\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
1124
+ "syntaxKindCounter": {
1125
+ "10": 6,
1126
+ "75": 35,
1127
+ "91": 1,
1128
+ "130": 3,
1129
+ "153": 4,
1130
+ "169": 4,
1131
+ "192": 3,
1132
+ "193": 2,
1133
+ "194": 4,
1134
+ "225": 4,
1135
+ "242": 4,
1136
+ "243": 4,
1137
+ "254": 3,
1138
+ "255": 3,
1139
+ "256": 2,
1140
+ "257": 1,
1141
+ "258": 1,
1142
+ "281": 10,
1143
+ "290": 1
1144
+ },
1145
+ "fqnsFingerprint": "0e8eb3170b9100724225159b04e14b26743b056eb6d2f3a58a51eb23590acb37"
1146
+ },
1147
+ "9d65edf9675c71e5f9327fd575b79ed4e29fb6829dd43b32a72959790b1e8b4e": {
1148
+ "translations": {
1149
+ "python": {
1150
+ "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_redshift_alpha as redshift_alpha\n\ncolumn = redshift_alpha.Column(\n data_type=\"dataType\",\n name=\"name\",\n\n # the properties below are optional\n dist_key=False,\n sort_key=False\n)",
1151
+ "version": "1"
1152
+ },
1153
+ "csharp": {
1154
+ "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Redshift.Alpha;\n\nColumn column = new Column {\n DataType = \"dataType\",\n Name = \"name\",\n\n // the properties below are optional\n DistKey = false,\n SortKey = false\n};",
1155
+ "version": "1"
1156
+ },
1157
+ "java": {
1158
+ "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.redshift.alpha.*;\n\nColumn column = Column.builder()\n .dataType(\"dataType\")\n .name(\"name\")\n\n // the properties below are optional\n .distKey(false)\n .sortKey(false)\n .build();",
1159
+ "version": "1"
1160
+ },
1161
+ "$": {
1162
+ "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as redshift_alpha from '@aws-cdk/aws-redshift-alpha';\nconst column: redshift_alpha.Column = {\n dataType: 'dataType',\n name: 'name',\n\n // the properties below are optional\n distKey: false,\n sortKey: false,\n};",
1163
+ "version": "0"
1164
+ }
1165
+ },
1166
+ "location": {
1167
+ "api": {
1168
+ "api": "type",
1169
+ "fqn": "@aws-cdk/aws-redshift-alpha.Column"
1170
+ },
1171
+ "field": {
1172
+ "field": "example"
1173
+ }
1174
+ },
1175
+ "didCompile": true,
1176
+ "fqnsReferenced": [
1177
+ "@aws-cdk/aws-redshift-alpha.Column"
1178
+ ],
1179
+ "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as redshift_alpha from '@aws-cdk/aws-redshift-alpha';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"constructs\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst column: redshift_alpha.Column = {\n dataType: 'dataType',\n name: 'name',\n\n // the properties below are optional\n distKey: false,\n sortKey: false,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
1180
+ "syntaxKindCounter": {
1181
+ "10": 3,
1182
+ "75": 8,
1183
+ "91": 2,
1184
+ "153": 1,
1185
+ "169": 1,
1186
+ "193": 1,
1187
+ "225": 1,
1188
+ "242": 1,
1189
+ "243": 1,
1190
+ "254": 1,
1191
+ "255": 1,
1192
+ "256": 1,
1193
+ "281": 4,
1194
+ "290": 1
1195
+ },
1196
+ "fqnsFingerprint": "6a827b347a686e1b6bf4f83c02bc783f7278b6781973efddc64f11f5609179bf"
1197
+ },
1198
+ "2a94f1762c54ae443534e62c0ff067f0dc3deab6c91d9d83e4e25c3bca40483c": {
1199
+ "translations": {
1200
+ "python": {
1201
+ "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_redshift_alpha as redshift_alpha\nfrom aws_cdk import aws_secretsmanager as secretsmanager\n\n# cluster is of type Cluster\n# secret is of type Secret\n\ndatabase_options = redshift_alpha.DatabaseOptions(\n cluster=cluster,\n database_name=\"databaseName\",\n\n # the properties below are optional\n admin_user=secret\n)",
1202
+ "version": "1"
1203
+ },
1204
+ "csharp": {
1205
+ "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Redshift.Alpha;\nusing Amazon.CDK.AWS.SecretsManager;\n\nCluster cluster;\nSecret secret;\n\nDatabaseOptions databaseOptions = new DatabaseOptions {\n Cluster = cluster,\n DatabaseName = \"databaseName\",\n\n // the properties below are optional\n AdminUser = secret\n};",
1206
+ "version": "1"
1207
+ },
1208
+ "java": {
1209
+ "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.redshift.alpha.*;\nimport software.amazon.awscdk.services.secretsmanager.*;\n\nCluster cluster;\nSecret secret;\n\nDatabaseOptions databaseOptions = DatabaseOptions.builder()\n .cluster(cluster)\n .databaseName(\"databaseName\")\n\n // the properties below are optional\n .adminUser(secret)\n .build();",
1210
+ "version": "1"
1211
+ },
1212
+ "$": {
1213
+ "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as redshift_alpha from '@aws-cdk/aws-redshift-alpha';\nimport { aws_secretsmanager as secretsmanager } from 'aws-cdk-lib';\n\ndeclare const cluster: redshift_alpha.Cluster;\ndeclare const secret: secretsmanager.Secret;\nconst databaseOptions: redshift_alpha.DatabaseOptions = {\n cluster: cluster,\n databaseName: 'databaseName',\n\n // the properties below are optional\n adminUser: secret,\n};",
1214
+ "version": "0"
1215
+ }
1216
+ },
1217
+ "location": {
1218
+ "api": {
1219
+ "api": "type",
1220
+ "fqn": "@aws-cdk/aws-redshift-alpha.DatabaseOptions"
1221
+ },
1222
+ "field": {
1223
+ "field": "example"
1224
+ }
1225
+ },
1226
+ "didCompile": true,
1227
+ "fqnsReferenced": [
1228
+ "@aws-cdk/aws-redshift-alpha.DatabaseOptions",
1229
+ "@aws-cdk/aws-redshift-alpha.ICluster",
1230
+ "aws-cdk-lib.aws_secretsmanager.ISecret"
1231
+ ],
1232
+ "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as redshift_alpha from '@aws-cdk/aws-redshift-alpha';\nimport { aws_secretsmanager as secretsmanager } from 'aws-cdk-lib';\n\ndeclare const cluster: redshift_alpha.Cluster;\ndeclare const secret: secretsmanager.Secret;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"constructs\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst databaseOptions: redshift_alpha.DatabaseOptions = {\n cluster: cluster,\n databaseName: 'databaseName',\n\n // the properties below are optional\n adminUser: secret,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
1233
+ "syntaxKindCounter": {
1234
+ "10": 3,
1235
+ "75": 17,
1236
+ "130": 2,
1237
+ "153": 3,
1238
+ "169": 3,
1239
+ "193": 1,
1240
+ "225": 3,
1241
+ "242": 3,
1242
+ "243": 3,
1243
+ "254": 2,
1244
+ "255": 2,
1245
+ "256": 1,
1246
+ "257": 1,
1247
+ "258": 1,
1248
+ "281": 3,
1249
+ "290": 1
1250
+ },
1251
+ "fqnsFingerprint": "af312e77ab6b2cbf689e2c261d047a12ab037f5dfd3b48a74cb04b4ee48ac56f"
1252
+ },
1253
+ "1cbaf8b1aac1962ba0b44b0610c1ce54309fc8e11fcf7d1cd5f65eb2b58c4e5a": {
1254
+ "translations": {
1255
+ "python": {
1256
+ "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_redshift_alpha as redshift_alpha\nfrom aws_cdk import aws_kms as kms\n\n# key is of type Key\n\ndatabase_secret = redshift_alpha.DatabaseSecret(self, \"MyDatabaseSecret\",\n username=\"username\",\n\n # the properties below are optional\n encryption_key=key\n)",
1257
+ "version": "1"
1258
+ },
1259
+ "csharp": {
1260
+ "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Redshift.Alpha;\nusing Amazon.CDK.AWS.KMS;\n\nKey key;\n\nDatabaseSecret databaseSecret = new DatabaseSecret(this, \"MyDatabaseSecret\", new DatabaseSecretProps {\n Username = \"username\",\n\n // the properties below are optional\n EncryptionKey = key\n});",
1261
+ "version": "1"
1262
+ },
1263
+ "java": {
1264
+ "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.redshift.alpha.*;\nimport software.amazon.awscdk.services.kms.*;\n\nKey key;\n\nDatabaseSecret databaseSecret = DatabaseSecret.Builder.create(this, \"MyDatabaseSecret\")\n .username(\"username\")\n\n // the properties below are optional\n .encryptionKey(key)\n .build();",
1265
+ "version": "1"
1266
+ },
1267
+ "$": {
1268
+ "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as redshift_alpha from '@aws-cdk/aws-redshift-alpha';\nimport { aws_kms as kms } from 'aws-cdk-lib';\n\ndeclare const key: kms.Key;\nconst databaseSecret = new redshift_alpha.DatabaseSecret(this, 'MyDatabaseSecret', {\n username: 'username',\n\n // the properties below are optional\n encryptionKey: key,\n});",
1269
+ "version": "0"
1270
+ }
1271
+ },
1272
+ "location": {
1273
+ "api": {
1274
+ "api": "type",
1275
+ "fqn": "@aws-cdk/aws-redshift-alpha.DatabaseSecret"
1276
+ },
1277
+ "field": {
1278
+ "field": "example"
1279
+ }
1280
+ },
1281
+ "didCompile": true,
1282
+ "fqnsReferenced": [
1283
+ "@aws-cdk/aws-redshift-alpha.DatabaseSecret",
1284
+ "@aws-cdk/aws-redshift-alpha.DatabaseSecretProps",
1285
+ "aws-cdk-lib.aws_kms.IKey"
1286
+ ],
1287
+ "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as redshift_alpha from '@aws-cdk/aws-redshift-alpha';\nimport { aws_kms as kms } from 'aws-cdk-lib';\n\ndeclare const key: kms.Key;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"constructs\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst databaseSecret = new redshift_alpha.DatabaseSecret(this, 'MyDatabaseSecret', {\n username: 'username',\n\n // the properties below are optional\n encryptionKey: key,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
1288
+ "syntaxKindCounter": {
1289
+ "10": 4,
1290
+ "75": 12,
1291
+ "104": 1,
1292
+ "130": 1,
1293
+ "153": 1,
1294
+ "169": 1,
1295
+ "193": 1,
1296
+ "194": 1,
1297
+ "197": 1,
1298
+ "225": 2,
1299
+ "242": 2,
1300
+ "243": 2,
1301
+ "254": 2,
1302
+ "255": 2,
1303
+ "256": 1,
1304
+ "257": 1,
1305
+ "258": 1,
1306
+ "281": 2,
1307
+ "290": 1
1308
+ },
1309
+ "fqnsFingerprint": "71bccb8bb7c915911d1d28296e4b2b06eaf61c7c6110ee5259718296de353264"
1310
+ },
1311
+ "137822026ba7f09588c483e8a9294bef457823e48fb16bab283aafb4229bdc3d": {
1312
+ "translations": {
1313
+ "python": {
1314
+ "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_redshift_alpha as redshift_alpha\nfrom aws_cdk import aws_kms as kms\n\n# key is of type Key\n\ndatabase_secret_props = redshift_alpha.DatabaseSecretProps(\n username=\"username\",\n\n # the properties below are optional\n encryption_key=key\n)",
1315
+ "version": "1"
1316
+ },
1317
+ "csharp": {
1318
+ "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Redshift.Alpha;\nusing Amazon.CDK.AWS.KMS;\n\nKey key;\n\nDatabaseSecretProps databaseSecretProps = new DatabaseSecretProps {\n Username = \"username\",\n\n // the properties below are optional\n EncryptionKey = key\n};",
1319
+ "version": "1"
1320
+ },
1321
+ "java": {
1322
+ "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.redshift.alpha.*;\nimport software.amazon.awscdk.services.kms.*;\n\nKey key;\n\nDatabaseSecretProps databaseSecretProps = DatabaseSecretProps.builder()\n .username(\"username\")\n\n // the properties below are optional\n .encryptionKey(key)\n .build();",
1323
+ "version": "1"
1324
+ },
1325
+ "$": {
1326
+ "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as redshift_alpha from '@aws-cdk/aws-redshift-alpha';\nimport { aws_kms as kms } from 'aws-cdk-lib';\n\ndeclare const key: kms.Key;\nconst databaseSecretProps: redshift_alpha.DatabaseSecretProps = {\n username: 'username',\n\n // the properties below are optional\n encryptionKey: key,\n};",
1327
+ "version": "0"
1328
+ }
1329
+ },
1330
+ "location": {
1331
+ "api": {
1332
+ "api": "type",
1333
+ "fqn": "@aws-cdk/aws-redshift-alpha.DatabaseSecretProps"
1334
+ },
1335
+ "field": {
1336
+ "field": "example"
1337
+ }
1338
+ },
1339
+ "didCompile": true,
1340
+ "fqnsReferenced": [
1341
+ "@aws-cdk/aws-redshift-alpha.DatabaseSecretProps",
1342
+ "aws-cdk-lib.aws_kms.IKey"
1343
+ ],
1344
+ "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as redshift_alpha from '@aws-cdk/aws-redshift-alpha';\nimport { aws_kms as kms } from 'aws-cdk-lib';\n\ndeclare const key: kms.Key;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"constructs\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst databaseSecretProps: redshift_alpha.DatabaseSecretProps = {\n username: 'username',\n\n // the properties below are optional\n encryptionKey: key,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
1345
+ "syntaxKindCounter": {
1346
+ "10": 3,
1347
+ "75": 12,
1348
+ "130": 1,
1349
+ "153": 2,
1350
+ "169": 2,
1351
+ "193": 1,
1352
+ "225": 2,
1353
+ "242": 2,
1354
+ "243": 2,
1355
+ "254": 2,
1356
+ "255": 2,
1357
+ "256": 1,
1358
+ "257": 1,
1359
+ "258": 1,
1360
+ "281": 2,
1361
+ "290": 1
1362
+ },
1363
+ "fqnsFingerprint": "93246c5d62854a72727135952ddfdbd06347a08509d283d0370c97b1dcd4fe59"
1364
+ },
1365
+ "5d424095bc3cd60253a00e7548444d4d80b37613a65c65b4340a708e832cd5e6": {
1366
+ "translations": {
1367
+ "python": {
1368
+ "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_redshift_alpha as redshift_alpha\n\nendpoint = redshift_alpha.Endpoint(\"address\", 123)",
1369
+ "version": "1"
1370
+ },
1371
+ "csharp": {
1372
+ "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Redshift.Alpha;\n\nEndpoint endpoint = new Endpoint(\"address\", 123);",
1373
+ "version": "1"
1374
+ },
1375
+ "java": {
1376
+ "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.redshift.alpha.*;\n\nEndpoint endpoint = new Endpoint(\"address\", 123);",
1377
+ "version": "1"
1378
+ },
1379
+ "$": {
1380
+ "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as redshift_alpha from '@aws-cdk/aws-redshift-alpha';\nconst endpoint = new redshift_alpha.Endpoint('address', 123);",
1381
+ "version": "0"
1382
+ }
1383
+ },
1384
+ "location": {
1385
+ "api": {
1386
+ "api": "type",
1387
+ "fqn": "@aws-cdk/aws-redshift-alpha.Endpoint"
1388
+ },
1389
+ "field": {
1390
+ "field": "example"
1391
+ }
1392
+ },
1393
+ "didCompile": true,
1394
+ "fqnsReferenced": [
1395
+ "@aws-cdk/aws-redshift-alpha.Endpoint"
1396
+ ],
1397
+ "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as redshift_alpha from '@aws-cdk/aws-redshift-alpha';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"constructs\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst endpoint = new redshift_alpha.Endpoint('address', 123);\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
1398
+ "syntaxKindCounter": {
1399
+ "8": 1,
1400
+ "10": 2,
1401
+ "75": 4,
1402
+ "194": 1,
1403
+ "197": 1,
1404
+ "225": 1,
1405
+ "242": 1,
1406
+ "243": 1,
1407
+ "254": 1,
1408
+ "255": 1,
1409
+ "256": 1,
1410
+ "290": 1
1411
+ },
1412
+ "fqnsFingerprint": "c6644d0c4e31d6f0d49d892ae63fea27c25cfe8f3526cf2fbd4750aed29d8279"
1413
+ },
1414
+ "143212fce98dfc0a53630d77de6de173ddeccd1cdec5094802d8644c3ace4962": {
1415
+ "translations": {
1416
+ "python": {
1417
+ "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)",
1418
+ "version": "1"
1419
+ },
1420
+ "csharp": {
1421
+ "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});",
1422
+ "version": "1"
1423
+ },
1424
+ "java": {
1425
+ "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();",
1426
+ "version": "1"
1427
+ },
1428
+ "$": {
1429
+ "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});",
1430
+ "version": "0"
1431
+ }
1432
+ },
1433
+ "location": {
1434
+ "api": {
1435
+ "api": "type",
1436
+ "fqn": "@aws-cdk/aws-redshift-alpha.Login"
1437
+ },
1438
+ "field": {
1439
+ "field": "example"
1440
+ }
1441
+ },
1442
+ "didCompile": true,
1443
+ "fqnsReferenced": [
1444
+ "@aws-cdk/aws-redshift-alpha.ICluster",
1445
+ "@aws-cdk/aws-redshift-alpha.Login",
1446
+ "@aws-cdk/aws-redshift-alpha.User",
1447
+ "@aws-cdk/aws-redshift-alpha.UserProps",
1448
+ "aws-cdk-lib.aws_ec2.IVpc",
1449
+ "aws-cdk-lib.aws_kms.IKey",
1450
+ "aws-cdk-lib.aws_kms.Key"
1451
+ ],
1452
+ "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",
1453
+ "syntaxKindCounter": {
1454
+ "10": 4,
1455
+ "75": 10,
1456
+ "104": 2,
1457
+ "193": 1,
1458
+ "194": 1,
1459
+ "197": 2,
1460
+ "225": 1,
1461
+ "226": 1,
1462
+ "242": 1,
1463
+ "243": 1,
1464
+ "254": 1,
1465
+ "255": 1,
1466
+ "256": 1,
1467
+ "281": 3,
1468
+ "290": 1
1469
+ },
1470
+ "fqnsFingerprint": "e24c6a84f3c727f8a84c613aaf036b24228b9846536ee47b3c05a3d47aa5e164"
1471
+ },
1472
+ "7800987fc1783761f4bb788edff16535132cea4ea94fa3086de531e97f933579": {
1473
+ "translations": {
1474
+ "python": {
1475
+ "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)",
1476
+ "version": "1"
1477
+ },
1478
+ "csharp": {
1479
+ "source": "using Amazon.CDK.AWS.SecretsManager;\n\n\ncluster.AddRotationMultiUser(\"MyUser\", new RotationMultiUserOptions {\n Secret = Secret.FromSecretNameV2(this, \"Imported Secret\", \"my-secret\")\n});",
1480
+ "version": "1"
1481
+ },
1482
+ "java": {
1483
+ "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());",
1484
+ "version": "1"
1485
+ },
1486
+ "$": {
1487
+ "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});",
1488
+ "version": "0"
1489
+ }
1490
+ },
1491
+ "location": {
1492
+ "api": {
1493
+ "api": "type",
1494
+ "fqn": "@aws-cdk/aws-redshift-alpha.RotationMultiUserOptions"
1495
+ },
1496
+ "field": {
1497
+ "field": "example"
1498
+ }
1499
+ },
1500
+ "didCompile": true,
1501
+ "fqnsReferenced": [
1502
+ "@aws-cdk/aws-redshift-alpha.Cluster#addRotationMultiUser",
1503
+ "@aws-cdk/aws-redshift-alpha.Login",
1504
+ "@aws-cdk/aws-redshift-alpha.RotationMultiUserOptions",
1505
+ "aws-cdk-lib.aws_ec2.IVpc",
1506
+ "aws-cdk-lib.aws_secretsmanager.ISecret",
1507
+ "aws-cdk-lib.aws_secretsmanager.Secret",
1508
+ "aws-cdk-lib.aws_secretsmanager.Secret#fromSecretNameV2"
1509
+ ],
1510
+ "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",
1511
+ "syntaxKindCounter": {
1512
+ "10": 4,
1513
+ "75": 7,
1514
+ "104": 1,
1515
+ "193": 1,
1516
+ "194": 3,
1517
+ "196": 2,
1518
+ "226": 1,
1519
+ "254": 1,
1520
+ "255": 1,
1521
+ "256": 1,
1522
+ "281": 1,
1523
+ "290": 1
1524
+ },
1525
+ "fqnsFingerprint": "b83aee34af18596385c5daeb7640671682c0c748322803a9f2f334d2017d914d"
1526
+ },
1527
+ "2b20eccb399b788ea8ecc892abfae9f31369b856fbe61ed42c4bd8fac0a5bb1c": {
1528
+ "translations": {
1529
+ "python": {
1530
+ "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)",
1531
+ "version": "1"
1532
+ },
1533
+ "csharp": {
1534
+ "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});",
1535
+ "version": "1"
1536
+ },
1537
+ "java": {
1538
+ "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();",
1539
+ "version": "1"
1540
+ },
1541
+ "$": {
1542
+ "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});",
1543
+ "version": "0"
1544
+ }
1545
+ },
1546
+ "location": {
1547
+ "api": {
1548
+ "api": "type",
1549
+ "fqn": "@aws-cdk/aws-redshift-alpha.Table"
1550
+ },
1551
+ "field": {
1552
+ "field": "example"
1553
+ }
1554
+ },
1555
+ "didCompile": true,
1556
+ "fqnsReferenced": [
1557
+ "@aws-cdk/aws-redshift-alpha.ICluster",
1558
+ "@aws-cdk/aws-redshift-alpha.Login",
1559
+ "@aws-cdk/aws-redshift-alpha.Table",
1560
+ "@aws-cdk/aws-redshift-alpha.TableDistStyle",
1561
+ "@aws-cdk/aws-redshift-alpha.TableDistStyle#KEY",
1562
+ "@aws-cdk/aws-redshift-alpha.TableProps",
1563
+ "aws-cdk-lib.aws_ec2.IVpc"
1564
+ ],
1565
+ "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",
1566
+ "syntaxKindCounter": {
1567
+ "10": 6,
1568
+ "75": 13,
1569
+ "104": 1,
1570
+ "106": 1,
1571
+ "192": 1,
1572
+ "193": 3,
1573
+ "194": 1,
1574
+ "197": 1,
1575
+ "226": 1,
1576
+ "281": 9
1577
+ },
1578
+ "fqnsFingerprint": "5584a85a624947f0ac1d202bc0c496b931c629eb9236f070dc21f08212befbc7"
1579
+ },
1580
+ "91729184329521792ab5572ab15ce150ce589686a01c22a256663eaf6c6aae16": {
1581
+ "translations": {
1582
+ "python": {
1583
+ "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)",
1584
+ "version": "1"
1585
+ },
1586
+ "csharp": {
1587
+ "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);",
1588
+ "version": "1"
1589
+ },
1590
+ "java": {
1591
+ "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);",
1592
+ "version": "1"
1593
+ },
1594
+ "$": {
1595
+ "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);",
1596
+ "version": "0"
1597
+ }
1598
+ },
1599
+ "location": {
1600
+ "api": {
1601
+ "api": "type",
1602
+ "fqn": "@aws-cdk/aws-redshift-alpha.TableAction"
1603
+ },
1604
+ "field": {
1605
+ "field": "example"
1606
+ }
1607
+ },
1608
+ "didCompile": true,
1609
+ "fqnsReferenced": [
1610
+ "@aws-cdk/aws-redshift-alpha.ICluster",
1611
+ "@aws-cdk/aws-redshift-alpha.IUser",
1612
+ "@aws-cdk/aws-redshift-alpha.Login",
1613
+ "@aws-cdk/aws-redshift-alpha.Table",
1614
+ "@aws-cdk/aws-redshift-alpha.TableAction",
1615
+ "@aws-cdk/aws-redshift-alpha.TableAction#INSERT",
1616
+ "@aws-cdk/aws-redshift-alpha.TableProps",
1617
+ "@aws-cdk/aws-redshift-alpha.User",
1618
+ "@aws-cdk/aws-redshift-alpha.UserProps",
1619
+ "aws-cdk-lib.aws_ec2.IVpc"
1620
+ ],
1621
+ "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",
1622
+ "syntaxKindCounter": {
1623
+ "10": 9,
1624
+ "75": 27,
1625
+ "104": 2,
1626
+ "192": 1,
1627
+ "193": 4,
1628
+ "194": 2,
1629
+ "196": 1,
1630
+ "197": 2,
1631
+ "225": 5,
1632
+ "226": 1,
1633
+ "242": 5,
1634
+ "243": 5,
1635
+ "281": 10
1636
+ },
1637
+ "fqnsFingerprint": "477c0ba06758b9ca3f2009b6cdfbfc3f5f221d39302db81d6a478dff0d8c5ac4"
1638
+ },
1639
+ "c8a2c585b848c78158390b993cc45ddd5c2f2115d95912379ce7564524e0387b": {
1640
+ "translations": {
1641
+ "python": {
1642
+ "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)",
1643
+ "version": "1"
1644
+ },
1645
+ "csharp": {
1646
+ "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);",
1647
+ "version": "1"
1648
+ },
1649
+ "java": {
1650
+ "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);",
1651
+ "version": "1"
1652
+ },
1653
+ "$": {
1654
+ "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);",
1655
+ "version": "0"
1656
+ }
1657
+ },
1658
+ "location": {
1659
+ "api": {
1660
+ "api": "type",
1661
+ "fqn": "@aws-cdk/aws-redshift-alpha.TableAttributes"
1662
+ },
1663
+ "field": {
1664
+ "field": "example"
1665
+ }
1666
+ },
1667
+ "didCompile": true,
1668
+ "fqnsReferenced": [
1669
+ "@aws-cdk/aws-redshift-alpha.ICluster",
1670
+ "@aws-cdk/aws-redshift-alpha.ITable",
1671
+ "@aws-cdk/aws-redshift-alpha.ITable#grant",
1672
+ "@aws-cdk/aws-redshift-alpha.IUser",
1673
+ "@aws-cdk/aws-redshift-alpha.Login",
1674
+ "@aws-cdk/aws-redshift-alpha.Table#fromTableAttributes",
1675
+ "@aws-cdk/aws-redshift-alpha.TableAction",
1676
+ "@aws-cdk/aws-redshift-alpha.TableAction#INSERT",
1677
+ "@aws-cdk/aws-redshift-alpha.TableAttributes",
1678
+ "@aws-cdk/aws-redshift-alpha.User#fromUserAttributes",
1679
+ "@aws-cdk/aws-redshift-alpha.UserAttributes",
1680
+ "aws-cdk-lib.SecretValue",
1681
+ "aws-cdk-lib.SecretValue#plainText",
1682
+ "aws-cdk-lib.aws_ec2.IVpc"
1683
+ ],
1684
+ "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",
1685
+ "syntaxKindCounter": {
1686
+ "10": 11,
1687
+ "75": 33,
1688
+ "104": 2,
1689
+ "192": 1,
1690
+ "193": 4,
1691
+ "194": 5,
1692
+ "196": 4,
1693
+ "225": 5,
1694
+ "226": 1,
1695
+ "242": 5,
1696
+ "243": 5,
1697
+ "281": 12
1698
+ },
1699
+ "fqnsFingerprint": "28fc9811350ede7a47cc184d26afaf60f249ffdb6b8931e9def605a0c1157650"
1700
+ },
1701
+ "a0a5aed3be3356c67a02e5502202634478962191b5543456299f752646eeb729": {
1702
+ "translations": {
1703
+ "python": {
1704
+ "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)",
1705
+ "version": "1"
1706
+ },
1707
+ "csharp": {
1708
+ "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});",
1709
+ "version": "1"
1710
+ },
1711
+ "java": {
1712
+ "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();",
1713
+ "version": "1"
1714
+ },
1715
+ "$": {
1716
+ "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});",
1717
+ "version": "0"
1718
+ }
1719
+ },
1720
+ "location": {
1721
+ "api": {
1722
+ "api": "type",
1723
+ "fqn": "@aws-cdk/aws-redshift-alpha.TableDistStyle"
1724
+ },
1725
+ "field": {
1726
+ "field": "example"
1727
+ }
1728
+ },
1729
+ "didCompile": true,
1730
+ "fqnsReferenced": [
1731
+ "@aws-cdk/aws-redshift-alpha.ICluster",
1732
+ "@aws-cdk/aws-redshift-alpha.Login",
1733
+ "@aws-cdk/aws-redshift-alpha.Table",
1734
+ "@aws-cdk/aws-redshift-alpha.TableDistStyle",
1735
+ "@aws-cdk/aws-redshift-alpha.TableDistStyle#KEY",
1736
+ "@aws-cdk/aws-redshift-alpha.TableProps",
1737
+ "aws-cdk-lib.aws_ec2.IVpc"
1738
+ ],
1739
+ "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",
1740
+ "syntaxKindCounter": {
1741
+ "10": 6,
1742
+ "75": 13,
1743
+ "104": 1,
1744
+ "106": 1,
1745
+ "192": 1,
1746
+ "193": 3,
1747
+ "194": 1,
1748
+ "197": 1,
1749
+ "226": 1,
1750
+ "281": 9
1751
+ },
1752
+ "fqnsFingerprint": "5584a85a624947f0ac1d202bc0c496b931c629eb9236f070dc21f08212befbc7"
1753
+ },
1754
+ "7ad9117d90fbe2a452185442e885e420097c162f2973db550809c3b5bff11d00": {
1755
+ "translations": {
1756
+ "python": {
1757
+ "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)",
1758
+ "version": "1"
1759
+ },
1760
+ "csharp": {
1761
+ "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});",
1762
+ "version": "1"
1763
+ },
1764
+ "java": {
1765
+ "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();",
1766
+ "version": "1"
1767
+ },
1768
+ "$": {
1769
+ "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});",
1770
+ "version": "0"
1771
+ }
1772
+ },
1773
+ "location": {
1774
+ "api": {
1775
+ "api": "type",
1776
+ "fqn": "@aws-cdk/aws-redshift-alpha.TableProps"
1777
+ },
1778
+ "field": {
1779
+ "field": "example"
1780
+ }
1781
+ },
1782
+ "didCompile": true,
1783
+ "fqnsReferenced": [
1784
+ "@aws-cdk/aws-redshift-alpha.ICluster",
1785
+ "@aws-cdk/aws-redshift-alpha.Login",
1786
+ "@aws-cdk/aws-redshift-alpha.Table",
1787
+ "@aws-cdk/aws-redshift-alpha.TableDistStyle",
1788
+ "@aws-cdk/aws-redshift-alpha.TableDistStyle#KEY",
1789
+ "@aws-cdk/aws-redshift-alpha.TableProps",
1790
+ "aws-cdk-lib.aws_ec2.IVpc"
1791
+ ],
1792
+ "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",
1793
+ "syntaxKindCounter": {
1794
+ "10": 6,
1795
+ "75": 13,
1796
+ "104": 1,
1797
+ "106": 1,
1798
+ "192": 1,
1799
+ "193": 3,
1800
+ "194": 1,
1801
+ "197": 1,
1802
+ "226": 1,
1803
+ "281": 9
1804
+ },
1805
+ "fqnsFingerprint": "5584a85a624947f0ac1d202bc0c496b931c629eb9236f070dc21f08212befbc7"
1806
+ },
1807
+ "7233d53f95d6c8e89498a7df318041aa7a223d09479f71a86b787c9bd8b89ce0": {
1808
+ "translations": {
1809
+ "python": {
1810
+ "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)",
1811
+ "version": "1"
1812
+ },
1813
+ "csharp": {
1814
+ "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});",
1815
+ "version": "1"
1816
+ },
1817
+ "java": {
1818
+ "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();",
1819
+ "version": "1"
1820
+ },
1821
+ "$": {
1822
+ "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});",
1823
+ "version": "0"
1824
+ }
1825
+ },
1826
+ "location": {
1827
+ "api": {
1828
+ "api": "type",
1829
+ "fqn": "@aws-cdk/aws-redshift-alpha.TableSortStyle"
1830
+ },
1831
+ "field": {
1832
+ "field": "example"
1833
+ }
1834
+ },
1835
+ "didCompile": true,
1836
+ "fqnsReferenced": [
1837
+ "@aws-cdk/aws-redshift-alpha.ICluster",
1838
+ "@aws-cdk/aws-redshift-alpha.Login",
1839
+ "@aws-cdk/aws-redshift-alpha.Table",
1840
+ "@aws-cdk/aws-redshift-alpha.TableProps",
1841
+ "@aws-cdk/aws-redshift-alpha.TableSortStyle",
1842
+ "@aws-cdk/aws-redshift-alpha.TableSortStyle#COMPOUND",
1843
+ "aws-cdk-lib.aws_ec2.IVpc"
1844
+ ],
1845
+ "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",
1846
+ "syntaxKindCounter": {
1847
+ "10": 6,
1848
+ "75": 14,
1849
+ "104": 1,
1850
+ "106": 2,
1851
+ "192": 1,
1852
+ "193": 3,
1853
+ "194": 1,
1854
+ "197": 1,
1855
+ "226": 1,
1856
+ "281": 10
1857
+ },
1858
+ "fqnsFingerprint": "b9cf8ff3ccdf56016a78361120ece31c3142f0fa5580de1363e1ee57cde29e17"
1859
+ },
1860
+ "05356cf6bd0f7860b1cc80c83cc76841efd6b3139a7158efbd0c3ac57aa4a083": {
1861
+ "translations": {
1862
+ "python": {
1863
+ "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)",
1864
+ "version": "1"
1865
+ },
1866
+ "csharp": {
1867
+ "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});",
1868
+ "version": "1"
1869
+ },
1870
+ "java": {
1871
+ "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();",
1872
+ "version": "1"
1873
+ },
1874
+ "$": {
1875
+ "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});",
1876
+ "version": "0"
1877
+ }
1878
+ },
1879
+ "location": {
1880
+ "api": {
1881
+ "api": "type",
1882
+ "fqn": "@aws-cdk/aws-redshift-alpha.User"
1883
+ },
1884
+ "field": {
1885
+ "field": "example"
1886
+ }
1887
+ },
1888
+ "didCompile": true,
1889
+ "fqnsReferenced": [
1890
+ "@aws-cdk/aws-redshift-alpha.ICluster",
1891
+ "@aws-cdk/aws-redshift-alpha.Login",
1892
+ "@aws-cdk/aws-redshift-alpha.User",
1893
+ "@aws-cdk/aws-redshift-alpha.UserProps",
1894
+ "aws-cdk-lib.aws_ec2.IVpc",
1895
+ "aws-cdk-lib.aws_kms.IKey",
1896
+ "aws-cdk-lib.aws_kms.Key"
1897
+ ],
1898
+ "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",
1899
+ "syntaxKindCounter": {
1900
+ "10": 4,
1901
+ "75": 10,
1902
+ "104": 2,
1903
+ "193": 1,
1904
+ "194": 1,
1905
+ "197": 2,
1906
+ "225": 1,
1907
+ "226": 1,
1908
+ "242": 1,
1909
+ "243": 1,
1910
+ "254": 1,
1911
+ "255": 1,
1912
+ "256": 1,
1913
+ "281": 3,
1914
+ "290": 1
1915
+ },
1916
+ "fqnsFingerprint": "e24c6a84f3c727f8a84c613aaf036b24228b9846536ee47b3c05a3d47aa5e164"
1917
+ },
1918
+ "1597e838b084979e172670a4892a0b93fb1750ebb51dd5156aa46813a7c5d0d4": {
1919
+ "translations": {
1920
+ "python": {
1921
+ "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)",
1922
+ "version": "1"
1923
+ },
1924
+ "csharp": {
1925
+ "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);",
1926
+ "version": "1"
1927
+ },
1928
+ "java": {
1929
+ "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);",
1930
+ "version": "1"
1931
+ },
1932
+ "$": {
1933
+ "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);",
1934
+ "version": "0"
1935
+ }
1936
+ },
1937
+ "location": {
1938
+ "api": {
1939
+ "api": "type",
1940
+ "fqn": "@aws-cdk/aws-redshift-alpha.UserAttributes"
1941
+ },
1942
+ "field": {
1943
+ "field": "example"
1944
+ }
1945
+ },
1946
+ "didCompile": true,
1947
+ "fqnsReferenced": [
1948
+ "@aws-cdk/aws-redshift-alpha.ICluster",
1949
+ "@aws-cdk/aws-redshift-alpha.ITable",
1950
+ "@aws-cdk/aws-redshift-alpha.ITable#grant",
1951
+ "@aws-cdk/aws-redshift-alpha.IUser",
1952
+ "@aws-cdk/aws-redshift-alpha.Login",
1953
+ "@aws-cdk/aws-redshift-alpha.Table#fromTableAttributes",
1954
+ "@aws-cdk/aws-redshift-alpha.TableAction",
1955
+ "@aws-cdk/aws-redshift-alpha.TableAction#INSERT",
1956
+ "@aws-cdk/aws-redshift-alpha.TableAttributes",
1957
+ "@aws-cdk/aws-redshift-alpha.User#fromUserAttributes",
1958
+ "@aws-cdk/aws-redshift-alpha.UserAttributes",
1959
+ "aws-cdk-lib.SecretValue",
1960
+ "aws-cdk-lib.SecretValue#plainText",
1961
+ "aws-cdk-lib.aws_ec2.IVpc"
1962
+ ],
1963
+ "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",
1964
+ "syntaxKindCounter": {
1965
+ "10": 11,
1966
+ "75": 33,
1967
+ "104": 2,
1968
+ "192": 1,
1969
+ "193": 4,
1970
+ "194": 5,
1971
+ "196": 4,
1972
+ "225": 5,
1973
+ "226": 1,
1974
+ "242": 5,
1975
+ "243": 5,
1976
+ "281": 12
1977
+ },
1978
+ "fqnsFingerprint": "28fc9811350ede7a47cc184d26afaf60f249ffdb6b8931e9def605a0c1157650"
1979
+ },
1980
+ "853a0f6597ea3e622c5057694caeca46674cf434bde105571b72205b6c8edb72": {
1981
+ "translations": {
1982
+ "python": {
1983
+ "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)",
1984
+ "version": "1"
1985
+ },
1986
+ "csharp": {
1987
+ "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});",
1988
+ "version": "1"
1989
+ },
1990
+ "java": {
1991
+ "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();",
1992
+ "version": "1"
1993
+ },
1994
+ "$": {
1995
+ "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});",
1996
+ "version": "0"
1997
+ }
1998
+ },
1999
+ "location": {
2000
+ "api": {
2001
+ "api": "type",
2002
+ "fqn": "@aws-cdk/aws-redshift-alpha.UserProps"
2003
+ },
2004
+ "field": {
2005
+ "field": "example"
2006
+ }
2007
+ },
2008
+ "didCompile": true,
2009
+ "fqnsReferenced": [
2010
+ "@aws-cdk/aws-redshift-alpha.ICluster",
2011
+ "@aws-cdk/aws-redshift-alpha.Login",
2012
+ "@aws-cdk/aws-redshift-alpha.User",
2013
+ "@aws-cdk/aws-redshift-alpha.UserProps",
2014
+ "aws-cdk-lib.aws_ec2.IVpc",
2015
+ "aws-cdk-lib.aws_kms.IKey",
2016
+ "aws-cdk-lib.aws_kms.Key"
2017
+ ],
2018
+ "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",
2019
+ "syntaxKindCounter": {
2020
+ "10": 4,
2021
+ "75": 10,
2022
+ "104": 2,
2023
+ "193": 1,
2024
+ "194": 1,
2025
+ "197": 2,
2026
+ "225": 1,
2027
+ "226": 1,
2028
+ "242": 1,
2029
+ "243": 1,
2030
+ "254": 1,
2031
+ "255": 1,
2032
+ "256": 1,
2033
+ "281": 3,
2034
+ "290": 1
2035
+ },
2036
+ "fqnsFingerprint": "e24c6a84f3c727f8a84c613aaf036b24228b9846536ee47b3c05a3d47aa5e164"
2037
+ }
2038
+ }
2039
+ }