@aws-cdk/aws-redshift-alpha 2.40.0-alpha.0 → 2.41.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.
- package/.jsii +3 -3
- package/.jsii.tabl.json.gz +0 -0
- package/lib/cluster.js +3 -3
- package/lib/database-secret.js +1 -1
- package/lib/endpoint.js +1 -1
- package/lib/parameter-group.js +1 -1
- package/lib/subnet-group.js +3 -3
- package/lib/table.js +1 -1
- package/lib/user.js +1 -1
- package/package.json +8 -8
- package/.jsii.tabl.json +0 -2465
package/.jsii.tabl.json
DELETED
|
@@ -1,2465 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": "2",
|
|
3
|
-
"toolVersion": "1.66.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": "2"
|
|
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
|
-
"go": {
|
|
20
|
-
"source": "import ec2 \"github.com/aws/aws-cdk-go/awscdk\"\n\n\nvpc := ec2.NewVpc(this, jsii.String(\"Vpc\"))\ncluster := awscdkredshiftalpha.NewCluster(this, jsii.String(\"Redshift\"), &clusterProps{\n\tmasterUser: &login{\n\t\tmasterUsername: jsii.String(\"admin\"),\n\t},\n\tvpc: vpc,\n})",
|
|
21
|
-
"version": "1"
|
|
22
|
-
},
|
|
23
|
-
"$": {
|
|
24
|
-
"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});",
|
|
25
|
-
"version": "0"
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
"location": {
|
|
29
|
-
"api": {
|
|
30
|
-
"api": "moduleReadme",
|
|
31
|
-
"moduleFqn": "@aws-cdk/aws-redshift-alpha"
|
|
32
|
-
},
|
|
33
|
-
"field": {
|
|
34
|
-
"field": "markdown",
|
|
35
|
-
"line": 23
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
"didCompile": true,
|
|
39
|
-
"fqnsReferenced": [
|
|
40
|
-
"@aws-cdk/aws-redshift-alpha.Cluster",
|
|
41
|
-
"@aws-cdk/aws-redshift-alpha.ClusterProps",
|
|
42
|
-
"@aws-cdk/aws-redshift-alpha.Login",
|
|
43
|
-
"aws-cdk-lib.aws_ec2.IVpc",
|
|
44
|
-
"aws-cdk-lib.aws_ec2.Vpc",
|
|
45
|
-
"constructs.Construct"
|
|
46
|
-
],
|
|
47
|
-
"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",
|
|
48
|
-
"syntaxKindCounter": {
|
|
49
|
-
"10": 4,
|
|
50
|
-
"75": 9,
|
|
51
|
-
"104": 2,
|
|
52
|
-
"193": 2,
|
|
53
|
-
"194": 1,
|
|
54
|
-
"197": 2,
|
|
55
|
-
"225": 2,
|
|
56
|
-
"242": 2,
|
|
57
|
-
"243": 2,
|
|
58
|
-
"254": 1,
|
|
59
|
-
"255": 1,
|
|
60
|
-
"256": 1,
|
|
61
|
-
"281": 2,
|
|
62
|
-
"282": 1,
|
|
63
|
-
"290": 1
|
|
64
|
-
},
|
|
65
|
-
"fqnsFingerprint": "f31653c5265c32339c8d610650b4838a13753685f5f279a437e57a92f6987540"
|
|
66
|
-
},
|
|
67
|
-
"78d0feeb4c2189cb5970344c67ff7d2631a0a4d5bef9d364ef4c529bff3c1818": {
|
|
68
|
-
"translations": {
|
|
69
|
-
"python": {
|
|
70
|
-
"source": "import aws_cdk.aws_ec2 as ec2\nimport aws_cdk.aws_s3 as s3\n\n\nvpc = ec2.Vpc(self, \"Vpc\")\nbucket = s3.Bucket.from_bucket_name(stack, \"bucket\", \"logging-bucket\")\n\ncluster = Cluster(self, \"Redshift\",\n master_user=Login(\n master_username=\"admin\"\n ),\n vpc=vpc,\n logging_properties=LoggingProperties(\n logging_bucket=logging_bucket,\n logging_key_prefix=\"prefix\"\n )\n)",
|
|
71
|
-
"version": "2"
|
|
72
|
-
},
|
|
73
|
-
"csharp": {
|
|
74
|
-
"source": "using Amazon.CDK.AWS.EC2;\nusing Amazon.CDK.AWS.S3;\n\n\nVpc vpc = new Vpc(this, \"Vpc\");\nIBucket bucket = Bucket.FromBucketName(stack, \"bucket\", \"logging-bucket\");\n\nCluster cluster = new Cluster(this, \"Redshift\", new ClusterProps {\n MasterUser = new Login {\n MasterUsername = \"admin\"\n },\n Vpc = vpc,\n LoggingProperties = new LoggingProperties {\n LoggingBucket = loggingBucket,\n LoggingKeyPrefix = \"prefix\"\n }\n});",
|
|
75
|
-
"version": "1"
|
|
76
|
-
},
|
|
77
|
-
"java": {
|
|
78
|
-
"source": "import software.amazon.awscdk.services.ec2.*;\nimport software.amazon.awscdk.services.s3.*;\n\n\nVpc vpc = new Vpc(this, \"Vpc\");\nIBucket bucket = Bucket.fromBucketName(stack, \"bucket\", \"logging-bucket\");\n\nCluster cluster = Cluster.Builder.create(this, \"Redshift\")\n .masterUser(Login.builder()\n .masterUsername(\"admin\")\n .build())\n .vpc(vpc)\n .loggingProperties(LoggingProperties.builder()\n .loggingBucket(loggingBucket)\n .loggingKeyPrefix(\"prefix\")\n .build())\n .build();",
|
|
79
|
-
"version": "1"
|
|
80
|
-
},
|
|
81
|
-
"go": {
|
|
82
|
-
"source": "import ec2 \"github.com/aws/aws-cdk-go/awscdk\"\nimport s3 \"github.com/aws/aws-cdk-go/awscdk\"\n\n\nvpc := ec2.NewVpc(this, jsii.String(\"Vpc\"))\nbucket := s3.bucket.fromBucketName(stack, jsii.String(\"bucket\"), jsii.String(\"logging-bucket\"))\n\ncluster := awscdkredshiftalpha.NewCluster(this, jsii.String(\"Redshift\"), &clusterProps{\n\tmasterUser: &login{\n\t\tmasterUsername: jsii.String(\"admin\"),\n\t},\n\tvpc: vpc,\n\tloggingProperties: &loggingProperties{\n\t\tloggingBucket: loggingBucket,\n\t\tloggingKeyPrefix: jsii.String(\"prefix\"),\n\t},\n})",
|
|
83
|
-
"version": "1"
|
|
84
|
-
},
|
|
85
|
-
"$": {
|
|
86
|
-
"source": "import * as ec2 from 'aws-cdk-lib/aws-ec2';\nimport * as s3 from 'aws-cdk-lib/aws-s3';\n\nconst vpc = new ec2.Vpc(this, 'Vpc');\nconst bucket = s3.Bucket.fromBucketName(stack, 'bucket', 'logging-bucket');\n\nconst cluster = new Cluster(this, 'Redshift', {\n masterUser: {\n masterUsername: 'admin',\n },\n vpc,\n loggingProperties: {\n loggingBucket = bucket,\n loggingKeyPrefix: 'prefix',\n }\n});",
|
|
87
|
-
"version": "0"
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
"location": {
|
|
91
|
-
"api": {
|
|
92
|
-
"api": "moduleReadme",
|
|
93
|
-
"moduleFqn": "@aws-cdk/aws-redshift-alpha"
|
|
94
|
-
},
|
|
95
|
-
"field": {
|
|
96
|
-
"field": "markdown",
|
|
97
|
-
"line": 46
|
|
98
|
-
}
|
|
99
|
-
},
|
|
100
|
-
"didCompile": false,
|
|
101
|
-
"fqnsReferenced": [
|
|
102
|
-
"@aws-cdk/aws-redshift-alpha.Cluster",
|
|
103
|
-
"@aws-cdk/aws-redshift-alpha.ClusterProps",
|
|
104
|
-
"@aws-cdk/aws-redshift-alpha.LoggingProperties",
|
|
105
|
-
"@aws-cdk/aws-redshift-alpha.Login",
|
|
106
|
-
"aws-cdk-lib.aws_ec2.IVpc",
|
|
107
|
-
"aws-cdk-lib.aws_ec2.Vpc",
|
|
108
|
-
"aws-cdk-lib.aws_s3.Bucket",
|
|
109
|
-
"aws-cdk-lib.aws_s3.Bucket#fromBucketName",
|
|
110
|
-
"aws-cdk-lib.aws_s3.IBucket",
|
|
111
|
-
"constructs.Construct"
|
|
112
|
-
],
|
|
113
|
-
"fullSource": "// Hoisted imports begin after !show marker below\n/// !show\nimport * as ec2 from 'aws-cdk-lib/aws-ec2';\nimport * as s3 from 'aws-cdk-lib/aws-s3';\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 bucket = s3.Bucket.fromBucketName(stack, 'bucket', 'logging-bucket');\n\nconst cluster = new Cluster(this, 'Redshift', {\n masterUser: {\n masterUsername: 'admin',\n },\n vpc,\n loggingProperties: {\n loggingBucket = bucket,\n loggingKeyPrefix: 'prefix',\n }\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
|
114
|
-
"syntaxKindCounter": {
|
|
115
|
-
"10": 8,
|
|
116
|
-
"62": 1,
|
|
117
|
-
"75": 19,
|
|
118
|
-
"104": 2,
|
|
119
|
-
"193": 3,
|
|
120
|
-
"194": 3,
|
|
121
|
-
"196": 1,
|
|
122
|
-
"197": 2,
|
|
123
|
-
"225": 3,
|
|
124
|
-
"242": 3,
|
|
125
|
-
"243": 3,
|
|
126
|
-
"254": 2,
|
|
127
|
-
"255": 2,
|
|
128
|
-
"256": 2,
|
|
129
|
-
"281": 4,
|
|
130
|
-
"282": 2,
|
|
131
|
-
"290": 1
|
|
132
|
-
},
|
|
133
|
-
"fqnsFingerprint": "7e0d6e431188e78497296f296526ebae7efb8b433e9ab782804d25069b7b79bb"
|
|
134
|
-
},
|
|
135
|
-
"585b6875877412a14dd2e8e16c2432d724a4db31d1a9f095692345f7966168b0": {
|
|
136
|
-
"translations": {
|
|
137
|
-
"python": {
|
|
138
|
-
"source": "cluster.connections.allow_default_port_from_any_ipv4(\"Open to the world\")",
|
|
139
|
-
"version": "2"
|
|
140
|
-
},
|
|
141
|
-
"csharp": {
|
|
142
|
-
"source": "cluster.Connections.AllowDefaultPortFromAnyIpv4(\"Open to the world\");",
|
|
143
|
-
"version": "1"
|
|
144
|
-
},
|
|
145
|
-
"java": {
|
|
146
|
-
"source": "cluster.connections.allowDefaultPortFromAnyIpv4(\"Open to the world\");",
|
|
147
|
-
"version": "1"
|
|
148
|
-
},
|
|
149
|
-
"go": {
|
|
150
|
-
"source": "cluster.connections.allowDefaultPortFromAnyIpv4(jsii.String(\"Open to the world\"))",
|
|
151
|
-
"version": "1"
|
|
152
|
-
},
|
|
153
|
-
"$": {
|
|
154
|
-
"source": "cluster.connections.allowDefaultPortFromAnyIpv4('Open to the world');",
|
|
155
|
-
"version": "0"
|
|
156
|
-
}
|
|
157
|
-
},
|
|
158
|
-
"location": {
|
|
159
|
-
"api": {
|
|
160
|
-
"api": "moduleReadme",
|
|
161
|
-
"moduleFqn": "@aws-cdk/aws-redshift-alpha"
|
|
162
|
-
},
|
|
163
|
-
"field": {
|
|
164
|
-
"field": "markdown",
|
|
165
|
-
"line": 70
|
|
166
|
-
}
|
|
167
|
-
},
|
|
168
|
-
"didCompile": true,
|
|
169
|
-
"fqnsReferenced": [
|
|
170
|
-
"@aws-cdk/aws-redshift-alpha.Cluster#connections",
|
|
171
|
-
"@aws-cdk/aws-redshift-alpha.Login",
|
|
172
|
-
"aws-cdk-lib.aws_ec2.Connections#allowDefaultPortFromAnyIpv4",
|
|
173
|
-
"aws-cdk-lib.aws_ec2.IVpc"
|
|
174
|
-
],
|
|
175
|
-
"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",
|
|
176
|
-
"syntaxKindCounter": {
|
|
177
|
-
"10": 1,
|
|
178
|
-
"75": 3,
|
|
179
|
-
"194": 2,
|
|
180
|
-
"196": 1,
|
|
181
|
-
"226": 1
|
|
182
|
-
},
|
|
183
|
-
"fqnsFingerprint": "63f52ccbb1d5819a16218fec0c44c330595ccda01e51fbe4b221007220e8ca05"
|
|
184
|
-
},
|
|
185
|
-
"53898f5c76a5790226ff3b2e6dc225fa1c4e4ce020d0dd2ec508edfc011431a9": {
|
|
186
|
-
"translations": {
|
|
187
|
-
"python": {
|
|
188
|
-
"source": "cluster.cluster_endpoint.socket_address",
|
|
189
|
-
"version": "2"
|
|
190
|
-
},
|
|
191
|
-
"csharp": {
|
|
192
|
-
"source": "cluster.ClusterEndpoint.SocketAddress;",
|
|
193
|
-
"version": "1"
|
|
194
|
-
},
|
|
195
|
-
"java": {
|
|
196
|
-
"source": "cluster.getClusterEndpoint().getSocketAddress();",
|
|
197
|
-
"version": "1"
|
|
198
|
-
},
|
|
199
|
-
"go": {
|
|
200
|
-
"source": "cluster.clusterEndpoint.socketAddress",
|
|
201
|
-
"version": "1"
|
|
202
|
-
},
|
|
203
|
-
"$": {
|
|
204
|
-
"source": "cluster.clusterEndpoint.socketAddress; // \"HOSTNAME:PORT\"",
|
|
205
|
-
"version": "0"
|
|
206
|
-
}
|
|
207
|
-
},
|
|
208
|
-
"location": {
|
|
209
|
-
"api": {
|
|
210
|
-
"api": "moduleReadme",
|
|
211
|
-
"moduleFqn": "@aws-cdk/aws-redshift-alpha"
|
|
212
|
-
},
|
|
213
|
-
"field": {
|
|
214
|
-
"field": "markdown",
|
|
215
|
-
"line": 76
|
|
216
|
-
}
|
|
217
|
-
},
|
|
218
|
-
"didCompile": true,
|
|
219
|
-
"fqnsReferenced": [
|
|
220
|
-
"@aws-cdk/aws-redshift-alpha.Cluster#clusterEndpoint",
|
|
221
|
-
"@aws-cdk/aws-redshift-alpha.Endpoint#socketAddress",
|
|
222
|
-
"@aws-cdk/aws-redshift-alpha.Login",
|
|
223
|
-
"aws-cdk-lib.aws_ec2.IVpc"
|
|
224
|
-
],
|
|
225
|
-
"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",
|
|
226
|
-
"syntaxKindCounter": {
|
|
227
|
-
"75": 3,
|
|
228
|
-
"194": 2,
|
|
229
|
-
"226": 1
|
|
230
|
-
},
|
|
231
|
-
"fqnsFingerprint": "4eb9d5a86df1b1f104a3bc83a43127e5d7fe350662d7336f30a123e5f8a392a9"
|
|
232
|
-
},
|
|
233
|
-
"60decaed1d4917292cd776865b3b6999cb55ecf2dd2cec4353a9a92d38d4fc3a": {
|
|
234
|
-
"translations": {
|
|
235
|
-
"python": {
|
|
236
|
-
"source": "User(self, \"User\",\n cluster=cluster,\n database_name=\"databaseName\"\n)",
|
|
237
|
-
"version": "2"
|
|
238
|
-
},
|
|
239
|
-
"csharp": {
|
|
240
|
-
"source": "new User(this, \"User\", new UserProps {\n Cluster = cluster,\n DatabaseName = \"databaseName\"\n});",
|
|
241
|
-
"version": "1"
|
|
242
|
-
},
|
|
243
|
-
"java": {
|
|
244
|
-
"source": "User.Builder.create(this, \"User\")\n .cluster(cluster)\n .databaseName(\"databaseName\")\n .build();",
|
|
245
|
-
"version": "1"
|
|
246
|
-
},
|
|
247
|
-
"go": {
|
|
248
|
-
"source": "awscdkredshiftalpha.NewUser(this, jsii.String(\"User\"), &userProps{\n\tcluster: cluster,\n\tdatabaseName: jsii.String(\"databaseName\"),\n})",
|
|
249
|
-
"version": "1"
|
|
250
|
-
},
|
|
251
|
-
"$": {
|
|
252
|
-
"source": "new User(this, 'User', {\n cluster: cluster,\n databaseName: 'databaseName',\n});",
|
|
253
|
-
"version": "0"
|
|
254
|
-
}
|
|
255
|
-
},
|
|
256
|
-
"location": {
|
|
257
|
-
"api": {
|
|
258
|
-
"api": "moduleReadme",
|
|
259
|
-
"moduleFqn": "@aws-cdk/aws-redshift-alpha"
|
|
260
|
-
},
|
|
261
|
-
"field": {
|
|
262
|
-
"field": "markdown",
|
|
263
|
-
"line": 110
|
|
264
|
-
}
|
|
265
|
-
},
|
|
266
|
-
"didCompile": true,
|
|
267
|
-
"fqnsReferenced": [
|
|
268
|
-
"@aws-cdk/aws-redshift-alpha.ICluster",
|
|
269
|
-
"@aws-cdk/aws-redshift-alpha.Login",
|
|
270
|
-
"@aws-cdk/aws-redshift-alpha.User",
|
|
271
|
-
"@aws-cdk/aws-redshift-alpha.UserProps",
|
|
272
|
-
"aws-cdk-lib.aws_ec2.IVpc",
|
|
273
|
-
"constructs.Construct"
|
|
274
|
-
],
|
|
275
|
-
"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",
|
|
276
|
-
"syntaxKindCounter": {
|
|
277
|
-
"10": 2,
|
|
278
|
-
"75": 4,
|
|
279
|
-
"104": 1,
|
|
280
|
-
"193": 1,
|
|
281
|
-
"197": 1,
|
|
282
|
-
"226": 1,
|
|
283
|
-
"281": 2
|
|
284
|
-
},
|
|
285
|
-
"fqnsFingerprint": "a58a8718abad64e90e291be5e5466c33694b5d1a22e39d10f52dfbfd29e0043a"
|
|
286
|
-
},
|
|
287
|
-
"7cf073ffb5972e1259d951481763f8da403e1fee297039b18b7a0ef91445d9b9": {
|
|
288
|
-
"translations": {
|
|
289
|
-
"python": {
|
|
290
|
-
"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)",
|
|
291
|
-
"version": "2"
|
|
292
|
-
},
|
|
293
|
-
"csharp": {
|
|
294
|
-
"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});",
|
|
295
|
-
"version": "1"
|
|
296
|
-
},
|
|
297
|
-
"java": {
|
|
298
|
-
"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();",
|
|
299
|
-
"version": "1"
|
|
300
|
-
},
|
|
301
|
-
"go": {
|
|
302
|
-
"source": "import kms \"github.com/aws/aws-cdk-go/awscdk\"\n\n\nencryptionKey := kms.NewKey(this, jsii.String(\"Key\"))\nawscdkredshiftalpha.NewUser(this, jsii.String(\"User\"), &userProps{\n\tencryptionKey: encryptionKey,\n\tcluster: cluster,\n\tdatabaseName: jsii.String(\"databaseName\"),\n})",
|
|
303
|
-
"version": "1"
|
|
304
|
-
},
|
|
305
|
-
"$": {
|
|
306
|
-
"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});",
|
|
307
|
-
"version": "0"
|
|
308
|
-
}
|
|
309
|
-
},
|
|
310
|
-
"location": {
|
|
311
|
-
"api": {
|
|
312
|
-
"api": "moduleReadme",
|
|
313
|
-
"moduleFqn": "@aws-cdk/aws-redshift-alpha"
|
|
314
|
-
},
|
|
315
|
-
"field": {
|
|
316
|
-
"field": "markdown",
|
|
317
|
-
"line": 121
|
|
318
|
-
}
|
|
319
|
-
},
|
|
320
|
-
"didCompile": true,
|
|
321
|
-
"fqnsReferenced": [
|
|
322
|
-
"@aws-cdk/aws-redshift-alpha.ICluster",
|
|
323
|
-
"@aws-cdk/aws-redshift-alpha.Login",
|
|
324
|
-
"@aws-cdk/aws-redshift-alpha.User",
|
|
325
|
-
"@aws-cdk/aws-redshift-alpha.UserProps",
|
|
326
|
-
"aws-cdk-lib.aws_ec2.IVpc",
|
|
327
|
-
"aws-cdk-lib.aws_kms.IKey",
|
|
328
|
-
"aws-cdk-lib.aws_kms.Key",
|
|
329
|
-
"constructs.Construct"
|
|
330
|
-
],
|
|
331
|
-
"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",
|
|
332
|
-
"syntaxKindCounter": {
|
|
333
|
-
"10": 4,
|
|
334
|
-
"75": 10,
|
|
335
|
-
"104": 2,
|
|
336
|
-
"193": 1,
|
|
337
|
-
"194": 1,
|
|
338
|
-
"197": 2,
|
|
339
|
-
"225": 1,
|
|
340
|
-
"226": 1,
|
|
341
|
-
"242": 1,
|
|
342
|
-
"243": 1,
|
|
343
|
-
"254": 1,
|
|
344
|
-
"255": 1,
|
|
345
|
-
"256": 1,
|
|
346
|
-
"281": 3,
|
|
347
|
-
"290": 1
|
|
348
|
-
},
|
|
349
|
-
"fqnsFingerprint": "1b352fae225b1f77abc563a09cb8b28b8a6c2987f59ba1199b0b05fcfb6b715d"
|
|
350
|
-
},
|
|
351
|
-
"8b226b5e5f30a1e1dd1cdf8a2c4bb393bf11672cb0f8390eba8f0d4ce86c2b29": {
|
|
352
|
-
"translations": {
|
|
353
|
-
"python": {
|
|
354
|
-
"source": "User(self, \"User\",\n username=\"myuser\",\n cluster=cluster,\n database_name=\"databaseName\"\n)",
|
|
355
|
-
"version": "2"
|
|
356
|
-
},
|
|
357
|
-
"csharp": {
|
|
358
|
-
"source": "new User(this, \"User\", new UserProps {\n Username = \"myuser\",\n Cluster = cluster,\n DatabaseName = \"databaseName\"\n});",
|
|
359
|
-
"version": "1"
|
|
360
|
-
},
|
|
361
|
-
"java": {
|
|
362
|
-
"source": "User.Builder.create(this, \"User\")\n .username(\"myuser\")\n .cluster(cluster)\n .databaseName(\"databaseName\")\n .build();",
|
|
363
|
-
"version": "1"
|
|
364
|
-
},
|
|
365
|
-
"go": {
|
|
366
|
-
"source": "awscdkredshiftalpha.NewUser(this, jsii.String(\"User\"), &userProps{\n\tusername: jsii.String(\"myuser\"),\n\tcluster: cluster,\n\tdatabaseName: jsii.String(\"databaseName\"),\n})",
|
|
367
|
-
"version": "1"
|
|
368
|
-
},
|
|
369
|
-
"$": {
|
|
370
|
-
"source": "new User(this, 'User', {\n username: 'myuser',\n cluster: cluster,\n databaseName: 'databaseName',\n});",
|
|
371
|
-
"version": "0"
|
|
372
|
-
}
|
|
373
|
-
},
|
|
374
|
-
"location": {
|
|
375
|
-
"api": {
|
|
376
|
-
"api": "moduleReadme",
|
|
377
|
-
"moduleFqn": "@aws-cdk/aws-redshift-alpha"
|
|
378
|
-
},
|
|
379
|
-
"field": {
|
|
380
|
-
"field": "markdown",
|
|
381
|
-
"line": 138
|
|
382
|
-
}
|
|
383
|
-
},
|
|
384
|
-
"didCompile": true,
|
|
385
|
-
"fqnsReferenced": [
|
|
386
|
-
"@aws-cdk/aws-redshift-alpha.ICluster",
|
|
387
|
-
"@aws-cdk/aws-redshift-alpha.Login",
|
|
388
|
-
"@aws-cdk/aws-redshift-alpha.User",
|
|
389
|
-
"@aws-cdk/aws-redshift-alpha.UserProps",
|
|
390
|
-
"aws-cdk-lib.aws_ec2.IVpc",
|
|
391
|
-
"constructs.Construct"
|
|
392
|
-
],
|
|
393
|
-
"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",
|
|
394
|
-
"syntaxKindCounter": {
|
|
395
|
-
"10": 3,
|
|
396
|
-
"75": 5,
|
|
397
|
-
"104": 1,
|
|
398
|
-
"193": 1,
|
|
399
|
-
"197": 1,
|
|
400
|
-
"226": 1,
|
|
401
|
-
"281": 3
|
|
402
|
-
},
|
|
403
|
-
"fqnsFingerprint": "a58a8718abad64e90e291be5e5466c33694b5d1a22e39d10f52dfbfd29e0043a"
|
|
404
|
-
},
|
|
405
|
-
"51173779cc099a9ee0c91df2a0c3ca5d4940c309c4927477053b972d5c7012a7": {
|
|
406
|
-
"translations": {
|
|
407
|
-
"python": {
|
|
408
|
-
"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)",
|
|
409
|
-
"version": "2"
|
|
410
|
-
},
|
|
411
|
-
"csharp": {
|
|
412
|
-
"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});",
|
|
413
|
-
"version": "1"
|
|
414
|
-
},
|
|
415
|
-
"java": {
|
|
416
|
-
"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();",
|
|
417
|
-
"version": "1"
|
|
418
|
-
},
|
|
419
|
-
"go": {
|
|
420
|
-
"source": "awscdkredshiftalpha.NewTable(this, jsii.String(\"Table\"), &tableProps{\n\ttableColumns: []column{\n\t\t&column{\n\t\t\tname: jsii.String(\"col1\"),\n\t\t\tdataType: jsii.String(\"varchar(4)\"),\n\t\t},\n\t\t&column{\n\t\t\tname: jsii.String(\"col2\"),\n\t\t\tdataType: jsii.String(\"float\"),\n\t\t},\n\t},\n\tcluster: cluster,\n\tdatabaseName: jsii.String(\"databaseName\"),\n})",
|
|
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": 161
|
|
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
|
-
"constructs.Construct"
|
|
446
|
-
],
|
|
447
|
-
"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",
|
|
448
|
-
"syntaxKindCounter": {
|
|
449
|
-
"10": 6,
|
|
450
|
-
"75": 9,
|
|
451
|
-
"104": 1,
|
|
452
|
-
"192": 1,
|
|
453
|
-
"193": 3,
|
|
454
|
-
"197": 1,
|
|
455
|
-
"226": 1,
|
|
456
|
-
"281": 7
|
|
457
|
-
},
|
|
458
|
-
"fqnsFingerprint": "9528fadfe11e6376e574598c1fbb70a212b7ea75e491b8e297e7d0b7e5ea1d93"
|
|
459
|
-
},
|
|
460
|
-
"aad92f9790d1e46c93d01e7996a2c3516cc660f3bbcf1f752db71f9d7aec0844": {
|
|
461
|
-
"translations": {
|
|
462
|
-
"python": {
|
|
463
|
-
"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)",
|
|
464
|
-
"version": "2"
|
|
465
|
-
},
|
|
466
|
-
"csharp": {
|
|
467
|
-
"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});",
|
|
468
|
-
"version": "1"
|
|
469
|
-
},
|
|
470
|
-
"java": {
|
|
471
|
-
"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();",
|
|
472
|
-
"version": "1"
|
|
473
|
-
},
|
|
474
|
-
"go": {
|
|
475
|
-
"source": "awscdkredshiftalpha.NewTable(this, jsii.String(\"Table\"), &tableProps{\n\ttableColumns: []column{\n\t\t&column{\n\t\t\tname: jsii.String(\"col1\"),\n\t\t\tdataType: jsii.String(\"varchar(4)\"),\n\t\t\tdistKey: jsii.Boolean(true),\n\t\t},\n\t\t&column{\n\t\t\tname: jsii.String(\"col2\"),\n\t\t\tdataType: jsii.String(\"float\"),\n\t\t},\n\t},\n\tcluster: cluster,\n\tdatabaseName: jsii.String(\"databaseName\"),\n\tdistStyle: awscdkredshiftalpha.TableDistStyle_KEY,\n})",
|
|
476
|
-
"version": "1"
|
|
477
|
-
},
|
|
478
|
-
"$": {
|
|
479
|
-
"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});",
|
|
480
|
-
"version": "0"
|
|
481
|
-
}
|
|
482
|
-
},
|
|
483
|
-
"location": {
|
|
484
|
-
"api": {
|
|
485
|
-
"api": "moduleReadme",
|
|
486
|
-
"moduleFqn": "@aws-cdk/aws-redshift-alpha"
|
|
487
|
-
},
|
|
488
|
-
"field": {
|
|
489
|
-
"field": "markdown",
|
|
490
|
-
"line": 171
|
|
491
|
-
}
|
|
492
|
-
},
|
|
493
|
-
"didCompile": true,
|
|
494
|
-
"fqnsReferenced": [
|
|
495
|
-
"@aws-cdk/aws-redshift-alpha.ICluster",
|
|
496
|
-
"@aws-cdk/aws-redshift-alpha.Login",
|
|
497
|
-
"@aws-cdk/aws-redshift-alpha.Table",
|
|
498
|
-
"@aws-cdk/aws-redshift-alpha.TableDistStyle",
|
|
499
|
-
"@aws-cdk/aws-redshift-alpha.TableDistStyle#KEY",
|
|
500
|
-
"@aws-cdk/aws-redshift-alpha.TableProps",
|
|
501
|
-
"aws-cdk-lib.aws_ec2.IVpc",
|
|
502
|
-
"constructs.Construct"
|
|
503
|
-
],
|
|
504
|
-
"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",
|
|
505
|
-
"syntaxKindCounter": {
|
|
506
|
-
"10": 6,
|
|
507
|
-
"75": 13,
|
|
508
|
-
"104": 1,
|
|
509
|
-
"106": 1,
|
|
510
|
-
"192": 1,
|
|
511
|
-
"193": 3,
|
|
512
|
-
"194": 1,
|
|
513
|
-
"197": 1,
|
|
514
|
-
"226": 1,
|
|
515
|
-
"281": 9
|
|
516
|
-
},
|
|
517
|
-
"fqnsFingerprint": "4ea37f9c292f195c5773da8fb1f45c5d34be9bb6fbfb37a39c2acb25a9ea0ca6"
|
|
518
|
-
},
|
|
519
|
-
"5dabd6075cf5a4e05b77f35019b5909e7f3107d296e8a29d7b241f560dfbaeb7": {
|
|
520
|
-
"translations": {
|
|
521
|
-
"python": {
|
|
522
|
-
"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)",
|
|
523
|
-
"version": "2"
|
|
524
|
-
},
|
|
525
|
-
"csharp": {
|
|
526
|
-
"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});",
|
|
527
|
-
"version": "1"
|
|
528
|
-
},
|
|
529
|
-
"java": {
|
|
530
|
-
"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();",
|
|
531
|
-
"version": "1"
|
|
532
|
-
},
|
|
533
|
-
"go": {
|
|
534
|
-
"source": "awscdkredshiftalpha.NewTable(this, jsii.String(\"Table\"), &tableProps{\n\ttableColumns: []column{\n\t\t&column{\n\t\t\tname: jsii.String(\"col1\"),\n\t\t\tdataType: jsii.String(\"varchar(4)\"),\n\t\t\tsortKey: jsii.Boolean(true),\n\t\t},\n\t\t&column{\n\t\t\tname: jsii.String(\"col2\"),\n\t\t\tdataType: jsii.String(\"float\"),\n\t\t\tsortKey: jsii.Boolean(true),\n\t\t},\n\t},\n\tcluster: cluster,\n\tdatabaseName: jsii.String(\"databaseName\"),\n\tsortStyle: awscdkredshiftalpha.TableSortStyle_COMPOUND,\n})",
|
|
535
|
-
"version": "1"
|
|
536
|
-
},
|
|
537
|
-
"$": {
|
|
538
|
-
"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});",
|
|
539
|
-
"version": "0"
|
|
540
|
-
}
|
|
541
|
-
},
|
|
542
|
-
"location": {
|
|
543
|
-
"api": {
|
|
544
|
-
"api": "moduleReadme",
|
|
545
|
-
"moduleFqn": "@aws-cdk/aws-redshift-alpha"
|
|
546
|
-
},
|
|
547
|
-
"field": {
|
|
548
|
-
"field": "markdown",
|
|
549
|
-
"line": 185
|
|
550
|
-
}
|
|
551
|
-
},
|
|
552
|
-
"didCompile": true,
|
|
553
|
-
"fqnsReferenced": [
|
|
554
|
-
"@aws-cdk/aws-redshift-alpha.ICluster",
|
|
555
|
-
"@aws-cdk/aws-redshift-alpha.Login",
|
|
556
|
-
"@aws-cdk/aws-redshift-alpha.Table",
|
|
557
|
-
"@aws-cdk/aws-redshift-alpha.TableProps",
|
|
558
|
-
"@aws-cdk/aws-redshift-alpha.TableSortStyle",
|
|
559
|
-
"@aws-cdk/aws-redshift-alpha.TableSortStyle#COMPOUND",
|
|
560
|
-
"aws-cdk-lib.aws_ec2.IVpc",
|
|
561
|
-
"constructs.Construct"
|
|
562
|
-
],
|
|
563
|
-
"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",
|
|
564
|
-
"syntaxKindCounter": {
|
|
565
|
-
"10": 6,
|
|
566
|
-
"75": 14,
|
|
567
|
-
"104": 1,
|
|
568
|
-
"106": 2,
|
|
569
|
-
"192": 1,
|
|
570
|
-
"193": 3,
|
|
571
|
-
"194": 1,
|
|
572
|
-
"197": 1,
|
|
573
|
-
"226": 1,
|
|
574
|
-
"281": 10
|
|
575
|
-
},
|
|
576
|
-
"fqnsFingerprint": "bc2c9d3166394b58349444f34b62c0a630a2e78d249ba83726ee5695e6637335"
|
|
577
|
-
},
|
|
578
|
-
"1480b6e1d343428ee577d62201289b975f6f40a5bde029a5216d1505fba1ce6b": {
|
|
579
|
-
"translations": {
|
|
580
|
-
"python": {
|
|
581
|
-
"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)",
|
|
582
|
-
"version": "2"
|
|
583
|
-
},
|
|
584
|
-
"csharp": {
|
|
585
|
-
"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);",
|
|
586
|
-
"version": "1"
|
|
587
|
-
},
|
|
588
|
-
"java": {
|
|
589
|
-
"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);",
|
|
590
|
-
"version": "1"
|
|
591
|
-
},
|
|
592
|
-
"go": {
|
|
593
|
-
"source": "user := awscdkredshiftalpha.NewUser(this, jsii.String(\"User\"), &userProps{\n\tcluster: cluster,\n\tdatabaseName: jsii.String(\"databaseName\"),\n})\ntable := awscdkredshiftalpha.NewTable(this, jsii.String(\"Table\"), &tableProps{\n\ttableColumns: []column{\n\t\t&column{\n\t\t\tname: jsii.String(\"col1\"),\n\t\t\tdataType: jsii.String(\"varchar(4)\"),\n\t\t},\n\t\t&column{\n\t\t\tname: jsii.String(\"col2\"),\n\t\t\tdataType: jsii.String(\"float\"),\n\t\t},\n\t},\n\tcluster: cluster,\n\tdatabaseName: jsii.String(\"databaseName\"),\n})\n\ntable.grant(user, awscdkredshiftalpha.TableAction_DROP, awscdkredshiftalpha.TableAction_SELECT)",
|
|
594
|
-
"version": "1"
|
|
595
|
-
},
|
|
596
|
-
"$": {
|
|
597
|
-
"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);",
|
|
598
|
-
"version": "0"
|
|
599
|
-
}
|
|
600
|
-
},
|
|
601
|
-
"location": {
|
|
602
|
-
"api": {
|
|
603
|
-
"api": "moduleReadme",
|
|
604
|
-
"moduleFqn": "@aws-cdk/aws-redshift-alpha"
|
|
605
|
-
},
|
|
606
|
-
"field": {
|
|
607
|
-
"field": "markdown",
|
|
608
|
-
"line": 202
|
|
609
|
-
}
|
|
610
|
-
},
|
|
611
|
-
"didCompile": true,
|
|
612
|
-
"fqnsReferenced": [
|
|
613
|
-
"@aws-cdk/aws-redshift-alpha.ICluster",
|
|
614
|
-
"@aws-cdk/aws-redshift-alpha.IUser",
|
|
615
|
-
"@aws-cdk/aws-redshift-alpha.Login",
|
|
616
|
-
"@aws-cdk/aws-redshift-alpha.Table",
|
|
617
|
-
"@aws-cdk/aws-redshift-alpha.TableAction",
|
|
618
|
-
"@aws-cdk/aws-redshift-alpha.TableAction#DROP",
|
|
619
|
-
"@aws-cdk/aws-redshift-alpha.TableAction#SELECT",
|
|
620
|
-
"@aws-cdk/aws-redshift-alpha.TableProps",
|
|
621
|
-
"@aws-cdk/aws-redshift-alpha.User",
|
|
622
|
-
"@aws-cdk/aws-redshift-alpha.UserProps",
|
|
623
|
-
"aws-cdk-lib.aws_ec2.IVpc",
|
|
624
|
-
"constructs.Construct"
|
|
625
|
-
],
|
|
626
|
-
"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",
|
|
627
|
-
"syntaxKindCounter": {
|
|
628
|
-
"10": 8,
|
|
629
|
-
"75": 22,
|
|
630
|
-
"104": 2,
|
|
631
|
-
"192": 1,
|
|
632
|
-
"193": 4,
|
|
633
|
-
"194": 3,
|
|
634
|
-
"196": 1,
|
|
635
|
-
"197": 2,
|
|
636
|
-
"225": 2,
|
|
637
|
-
"226": 1,
|
|
638
|
-
"242": 2,
|
|
639
|
-
"243": 2,
|
|
640
|
-
"281": 9
|
|
641
|
-
},
|
|
642
|
-
"fqnsFingerprint": "74201abf91d04e2f28fe44bb039c73c7c00e9734d4c7bf29bbf00e6ac882d73b"
|
|
643
|
-
},
|
|
644
|
-
"b4379cc01ad5b391d08ae26db568d0016283c7d1b7af31f79f4e1566aa2437f3": {
|
|
645
|
-
"translations": {
|
|
646
|
-
"python": {
|
|
647
|
-
"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)",
|
|
648
|
-
"version": "2"
|
|
649
|
-
},
|
|
650
|
-
"csharp": {
|
|
651
|
-
"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);",
|
|
652
|
-
"version": "1"
|
|
653
|
-
},
|
|
654
|
-
"java": {
|
|
655
|
-
"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);",
|
|
656
|
-
"version": "1"
|
|
657
|
-
},
|
|
658
|
-
"go": {
|
|
659
|
-
"source": "databaseName := \"databaseName\"\nusername := \"myuser\"\ntableName := \"mytable\"\n\nuser := awscdkredshiftalpha.NewUser(this, jsii.String(\"User\"), &userProps{\n\tusername: username,\n\tcluster: cluster,\n\tdatabaseName: databaseName,\n})\ntable := awscdkredshiftalpha.NewTable(this, jsii.String(\"Table\"), &tableProps{\n\ttableColumns: []column{\n\t\t&column{\n\t\t\tname: jsii.String(\"col1\"),\n\t\t\tdataType: jsii.String(\"varchar(4)\"),\n\t\t},\n\t\t&column{\n\t\t\tname: jsii.String(\"col2\"),\n\t\t\tdataType: jsii.String(\"float\"),\n\t\t},\n\t},\n\tcluster: cluster,\n\tdatabaseName: databaseName,\n})\ntable.grant(user, awscdkredshiftalpha.TableAction_INSERT)",
|
|
660
|
-
"version": "1"
|
|
661
|
-
},
|
|
662
|
-
"$": {
|
|
663
|
-
"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);",
|
|
664
|
-
"version": "0"
|
|
665
|
-
}
|
|
666
|
-
},
|
|
667
|
-
"location": {
|
|
668
|
-
"api": {
|
|
669
|
-
"api": "moduleReadme",
|
|
670
|
-
"moduleFqn": "@aws-cdk/aws-redshift-alpha"
|
|
671
|
-
},
|
|
672
|
-
"field": {
|
|
673
|
-
"field": "markdown",
|
|
674
|
-
"line": 222
|
|
675
|
-
}
|
|
676
|
-
},
|
|
677
|
-
"didCompile": true,
|
|
678
|
-
"fqnsReferenced": [
|
|
679
|
-
"@aws-cdk/aws-redshift-alpha.ICluster",
|
|
680
|
-
"@aws-cdk/aws-redshift-alpha.IUser",
|
|
681
|
-
"@aws-cdk/aws-redshift-alpha.Login",
|
|
682
|
-
"@aws-cdk/aws-redshift-alpha.Table",
|
|
683
|
-
"@aws-cdk/aws-redshift-alpha.TableAction",
|
|
684
|
-
"@aws-cdk/aws-redshift-alpha.TableAction#INSERT",
|
|
685
|
-
"@aws-cdk/aws-redshift-alpha.TableProps",
|
|
686
|
-
"@aws-cdk/aws-redshift-alpha.User",
|
|
687
|
-
"@aws-cdk/aws-redshift-alpha.UserProps",
|
|
688
|
-
"aws-cdk-lib.aws_ec2.IVpc",
|
|
689
|
-
"constructs.Construct"
|
|
690
|
-
],
|
|
691
|
-
"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",
|
|
692
|
-
"syntaxKindCounter": {
|
|
693
|
-
"10": 9,
|
|
694
|
-
"75": 27,
|
|
695
|
-
"104": 2,
|
|
696
|
-
"192": 1,
|
|
697
|
-
"193": 4,
|
|
698
|
-
"194": 2,
|
|
699
|
-
"196": 1,
|
|
700
|
-
"197": 2,
|
|
701
|
-
"225": 5,
|
|
702
|
-
"226": 1,
|
|
703
|
-
"242": 5,
|
|
704
|
-
"243": 5,
|
|
705
|
-
"281": 10
|
|
706
|
-
},
|
|
707
|
-
"fqnsFingerprint": "cb6e7dbd05a1ae48509c55f73d4010f00ce421d8be49923ff4b93c489ea300e4"
|
|
708
|
-
},
|
|
709
|
-
"4c475aa8a5033226be368837c77b941d105e17ad04c77aab59db06c8be9b9ac7": {
|
|
710
|
-
"translations": {
|
|
711
|
-
"python": {
|
|
712
|
-
"source": "database_name = \"databaseName\"\nusername = \"myuser\"\ntable_name = \"mytable\"\n\nuser = User.from_user_attributes(self, \"User\",\n username=username,\n password=SecretValue.unsafe_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)",
|
|
713
|
-
"version": "2"
|
|
714
|
-
},
|
|
715
|
-
"csharp": {
|
|
716
|
-
"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.UnsafePlainText(\"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);",
|
|
717
|
-
"version": "1"
|
|
718
|
-
},
|
|
719
|
-
"java": {
|
|
720
|
-
"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.unsafePlainText(\"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);",
|
|
721
|
-
"version": "1"
|
|
722
|
-
},
|
|
723
|
-
"go": {
|
|
724
|
-
"source": "databaseName := \"databaseName\"\nusername := \"myuser\"\ntableName := \"mytable\"\n\nuser := awscdkredshiftalpha.User.fromUserAttributes(this, jsii.String(\"User\"), &userAttributes{\n\tusername: username,\n\tpassword: awscdk.SecretValue.unsafePlainText(jsii.String(\"NOT_FOR_PRODUCTION\")),\n\tcluster: cluster,\n\tdatabaseName: databaseName,\n})\ntable := awscdkredshiftalpha.Table.fromTableAttributes(this, jsii.String(\"Table\"), &tableAttributes{\n\ttableName: tableName,\n\ttableColumns: []column{\n\t\t&column{\n\t\t\tname: jsii.String(\"col1\"),\n\t\t\tdataType: jsii.String(\"varchar(4)\"),\n\t\t},\n\t\t&column{\n\t\t\tname: jsii.String(\"col2\"),\n\t\t\tdataType: jsii.String(\"float\"),\n\t\t},\n\t},\n\tcluster: cluster,\n\tdatabaseName: jsii.String(\"databaseName\"),\n})\ntable.grant(user, awscdkredshiftalpha.TableAction_INSERT)",
|
|
725
|
-
"version": "1"
|
|
726
|
-
},
|
|
727
|
-
"$": {
|
|
728
|
-
"source": "const databaseName = 'databaseName';\nconst username = 'myuser'\nconst tableName = 'mytable'\n\nconst user = User.fromUserAttributes(this, 'User', {\n username: username,\n password: SecretValue.unsafePlainText('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);",
|
|
729
|
-
"version": "0"
|
|
730
|
-
}
|
|
731
|
-
},
|
|
732
|
-
"location": {
|
|
733
|
-
"api": {
|
|
734
|
-
"api": "moduleReadme",
|
|
735
|
-
"moduleFqn": "@aws-cdk/aws-redshift-alpha"
|
|
736
|
-
},
|
|
737
|
-
"field": {
|
|
738
|
-
"field": "markdown",
|
|
739
|
-
"line": 243
|
|
740
|
-
}
|
|
741
|
-
},
|
|
742
|
-
"didCompile": true,
|
|
743
|
-
"fqnsReferenced": [
|
|
744
|
-
"@aws-cdk/aws-redshift-alpha.ICluster",
|
|
745
|
-
"@aws-cdk/aws-redshift-alpha.ITable",
|
|
746
|
-
"@aws-cdk/aws-redshift-alpha.ITable#grant",
|
|
747
|
-
"@aws-cdk/aws-redshift-alpha.IUser",
|
|
748
|
-
"@aws-cdk/aws-redshift-alpha.Login",
|
|
749
|
-
"@aws-cdk/aws-redshift-alpha.Table#fromTableAttributes",
|
|
750
|
-
"@aws-cdk/aws-redshift-alpha.TableAction",
|
|
751
|
-
"@aws-cdk/aws-redshift-alpha.TableAction#INSERT",
|
|
752
|
-
"@aws-cdk/aws-redshift-alpha.TableAttributes",
|
|
753
|
-
"@aws-cdk/aws-redshift-alpha.User#fromUserAttributes",
|
|
754
|
-
"@aws-cdk/aws-redshift-alpha.UserAttributes",
|
|
755
|
-
"aws-cdk-lib.SecretValue",
|
|
756
|
-
"aws-cdk-lib.SecretValue#unsafePlainText",
|
|
757
|
-
"aws-cdk-lib.aws_ec2.IVpc",
|
|
758
|
-
"constructs.Construct"
|
|
759
|
-
],
|
|
760
|
-
"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.unsafePlainText('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",
|
|
761
|
-
"syntaxKindCounter": {
|
|
762
|
-
"10": 11,
|
|
763
|
-
"75": 33,
|
|
764
|
-
"104": 2,
|
|
765
|
-
"192": 1,
|
|
766
|
-
"193": 4,
|
|
767
|
-
"194": 5,
|
|
768
|
-
"196": 4,
|
|
769
|
-
"225": 5,
|
|
770
|
-
"226": 1,
|
|
771
|
-
"242": 5,
|
|
772
|
-
"243": 5,
|
|
773
|
-
"281": 12
|
|
774
|
-
},
|
|
775
|
-
"fqnsFingerprint": "08b1d34c50e7e6c2e3787bc61f2188de75404c266b73b7ef7e9fb90f14b87d92"
|
|
776
|
-
},
|
|
777
|
-
"ea7697f36a541ca083e3f22fdf5be6a1d19936e9af89c79f4491e89041cc4c86": {
|
|
778
|
-
"translations": {
|
|
779
|
-
"python": {
|
|
780
|
-
"source": "cluster.add_rotation_single_user()",
|
|
781
|
-
"version": "2"
|
|
782
|
-
},
|
|
783
|
-
"csharp": {
|
|
784
|
-
"source": "cluster.AddRotationSingleUser();",
|
|
785
|
-
"version": "1"
|
|
786
|
-
},
|
|
787
|
-
"java": {
|
|
788
|
-
"source": "cluster.addRotationSingleUser();",
|
|
789
|
-
"version": "1"
|
|
790
|
-
},
|
|
791
|
-
"go": {
|
|
792
|
-
"source": "cluster.addRotationSingleUser()",
|
|
793
|
-
"version": "1"
|
|
794
|
-
},
|
|
795
|
-
"$": {
|
|
796
|
-
"source": "cluster.addRotationSingleUser(); // Will rotate automatically after 30 days",
|
|
797
|
-
"version": "0"
|
|
798
|
-
}
|
|
799
|
-
},
|
|
800
|
-
"location": {
|
|
801
|
-
"api": {
|
|
802
|
-
"api": "moduleReadme",
|
|
803
|
-
"moduleFqn": "@aws-cdk/aws-redshift-alpha"
|
|
804
|
-
},
|
|
805
|
-
"field": {
|
|
806
|
-
"field": "markdown",
|
|
807
|
-
"line": 280
|
|
808
|
-
}
|
|
809
|
-
},
|
|
810
|
-
"didCompile": true,
|
|
811
|
-
"fqnsReferenced": [
|
|
812
|
-
"@aws-cdk/aws-redshift-alpha.Cluster#addRotationSingleUser",
|
|
813
|
-
"@aws-cdk/aws-redshift-alpha.Login",
|
|
814
|
-
"aws-cdk-lib.aws_ec2.IVpc"
|
|
815
|
-
],
|
|
816
|
-
"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",
|
|
817
|
-
"syntaxKindCounter": {
|
|
818
|
-
"75": 2,
|
|
819
|
-
"194": 1,
|
|
820
|
-
"196": 1,
|
|
821
|
-
"226": 1
|
|
822
|
-
},
|
|
823
|
-
"fqnsFingerprint": "aac722d673e7ed7bd6274c8d2cc26602cc947f1b46ee50b8d22ad63bc9d41742"
|
|
824
|
-
},
|
|
825
|
-
"9c12ec7d13d9dcb3ffc563e981e9feabc68ef9d380782bb3c3875c9b54b78911": {
|
|
826
|
-
"translations": {
|
|
827
|
-
"python": {
|
|
828
|
-
"source": "user = User(self, \"User\",\n cluster=cluster,\n database_name=\"databaseName\"\n)\ncluster.add_rotation_multi_user(\"MultiUserRotation\",\n secret=user.secret\n)",
|
|
829
|
-
"version": "2"
|
|
830
|
-
},
|
|
831
|
-
"csharp": {
|
|
832
|
-
"source": "User user = new User(this, \"User\", new UserProps {\n Cluster = cluster,\n DatabaseName = \"databaseName\"\n});\ncluster.AddRotationMultiUser(\"MultiUserRotation\", new RotationMultiUserOptions {\n Secret = user.Secret\n});",
|
|
833
|
-
"version": "1"
|
|
834
|
-
},
|
|
835
|
-
"java": {
|
|
836
|
-
"source": "User user = User.Builder.create(this, \"User\")\n .cluster(cluster)\n .databaseName(\"databaseName\")\n .build();\ncluster.addRotationMultiUser(\"MultiUserRotation\", RotationMultiUserOptions.builder()\n .secret(user.getSecret())\n .build());",
|
|
837
|
-
"version": "1"
|
|
838
|
-
},
|
|
839
|
-
"go": {
|
|
840
|
-
"source": "user := awscdkredshiftalpha.NewUser(this, jsii.String(\"User\"), &userProps{\n\tcluster: cluster,\n\tdatabaseName: jsii.String(\"databaseName\"),\n})\ncluster.addRotationMultiUser(jsii.String(\"MultiUserRotation\"), &rotationMultiUserOptions{\n\tsecret: user.secret,\n})",
|
|
841
|
-
"version": "1"
|
|
842
|
-
},
|
|
843
|
-
"$": {
|
|
844
|
-
"source": "\nconst user = new User(this, 'User', {\n cluster: cluster,\n databaseName: 'databaseName',\n});\ncluster.addRotationMultiUser('MultiUserRotation', {\n secret: user.secret,\n});",
|
|
845
|
-
"version": "0"
|
|
846
|
-
}
|
|
847
|
-
},
|
|
848
|
-
"location": {
|
|
849
|
-
"api": {
|
|
850
|
-
"api": "moduleReadme",
|
|
851
|
-
"moduleFqn": "@aws-cdk/aws-redshift-alpha"
|
|
852
|
-
},
|
|
853
|
-
"field": {
|
|
854
|
-
"field": "markdown",
|
|
855
|
-
"line": 286
|
|
856
|
-
}
|
|
857
|
-
},
|
|
858
|
-
"didCompile": true,
|
|
859
|
-
"fqnsReferenced": [
|
|
860
|
-
"@aws-cdk/aws-redshift-alpha.Cluster#addRotationMultiUser",
|
|
861
|
-
"@aws-cdk/aws-redshift-alpha.ICluster",
|
|
862
|
-
"@aws-cdk/aws-redshift-alpha.Login",
|
|
863
|
-
"@aws-cdk/aws-redshift-alpha.RotationMultiUserOptions",
|
|
864
|
-
"@aws-cdk/aws-redshift-alpha.User",
|
|
865
|
-
"@aws-cdk/aws-redshift-alpha.User#secret",
|
|
866
|
-
"@aws-cdk/aws-redshift-alpha.UserProps",
|
|
867
|
-
"aws-cdk-lib.aws_ec2.IVpc",
|
|
868
|
-
"aws-cdk-lib.aws_secretsmanager.ISecret",
|
|
869
|
-
"constructs.Construct"
|
|
870
|
-
],
|
|
871
|
-
"fullSource": "// Fixture with cluster already created\nimport { SecretValue, Stack } from 'aws-cdk-lib';\nimport { Vpc } from 'aws-cdk-lib/aws-ec2';\nimport { Cluster, Table, TableAction, TableDistStyle, TableSortStyle, User } from '@aws-cdk/aws-redshift-alpha';\nimport { Construct } from 'constructs';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n const vpc = new Vpc(this, 'Vpc');\n const cluster = new Cluster(this, 'Cluster', {\n vpc,\n masterUser: {\n masterUsername: 'admin',\n },\n });\n\n // Code snippet begins after !show marker below\n/// !show\n\nconst user = new User(this, 'User', {\n cluster: cluster,\n databaseName: 'databaseName',\n});\ncluster.addRotationMultiUser('MultiUserRotation', {\n secret: user.secret,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
|
872
|
-
"syntaxKindCounter": {
|
|
873
|
-
"10": 3,
|
|
874
|
-
"75": 10,
|
|
875
|
-
"104": 1,
|
|
876
|
-
"193": 2,
|
|
877
|
-
"194": 2,
|
|
878
|
-
"196": 1,
|
|
879
|
-
"197": 1,
|
|
880
|
-
"225": 1,
|
|
881
|
-
"226": 1,
|
|
882
|
-
"242": 1,
|
|
883
|
-
"243": 1,
|
|
884
|
-
"281": 3
|
|
885
|
-
},
|
|
886
|
-
"fqnsFingerprint": "0af2d452a565970915dfd1e318284343fcdc47fab2c1e4ab556f67021a7e9b4c"
|
|
887
|
-
},
|
|
888
|
-
"648e36fea226e6c250f406ea3dc2e1e863a904fb75411f886abae9f5a8115445": {
|
|
889
|
-
"translations": {
|
|
890
|
-
"python": {
|
|
891
|
-
"source": "# vpc: ec2.Vpc\n\n\nCluster(stack, \"Redshift\",\n master_user=Login(\n master_username=\"admin\",\n master_password=cdk.SecretValue.unsafe_plain_text(\"tooshort\")\n ),\n vpc=vpc,\n publicly_accessible=True,\n elastic_ip=\"10.123.123.255\"\n)",
|
|
892
|
-
"version": "2"
|
|
893
|
-
},
|
|
894
|
-
"csharp": {
|
|
895
|
-
"source": "ec2.Vpc vpc;\n\n\nnew Cluster(stack, \"Redshift\", new ClusterProps {\n MasterUser = new Login {\n MasterUsername = \"admin\",\n MasterPassword = cdk.SecretValue.UnsafePlainText(\"tooshort\")\n },\n Vpc = vpc,\n PubliclyAccessible = true,\n ElasticIp = \"10.123.123.255\"\n});",
|
|
896
|
-
"version": "1"
|
|
897
|
-
},
|
|
898
|
-
"java": {
|
|
899
|
-
"source": "ec2.Vpc vpc;\n\n\nCluster.Builder.create(stack, \"Redshift\")\n .masterUser(Login.builder()\n .masterUsername(\"admin\")\n .masterPassword(cdk.SecretValue.unsafePlainText(\"tooshort\"))\n .build())\n .vpc(vpc)\n .publiclyAccessible(true)\n .elasticIp(\"10.123.123.255\")\n .build();",
|
|
900
|
-
"version": "1"
|
|
901
|
-
},
|
|
902
|
-
"go": {
|
|
903
|
-
"source": "var vpc ec2.Vpc\n\n\nawscdkredshiftalpha.NewCluster(stack, jsii.String(\"Redshift\"), &clusterProps{\n\tmasterUser: &login{\n\t\tmasterUsername: jsii.String(\"admin\"),\n\t\tmasterPassword: cdk.secretValue_UnsafePlainText(jsii.String(\"tooshort\")),\n\t},\n\tvpc: vpc,\n\tpubliclyAccessible: jsii.Boolean(true),\n\telasticIp: jsii.String(\"10.123.123.255\"),\n})",
|
|
904
|
-
"version": "1"
|
|
905
|
-
},
|
|
906
|
-
"$": {
|
|
907
|
-
"source": "declare const vpc: ec2.Vpc;\n\nnew Cluster(stack, 'Redshift', {\n masterUser: {\n masterUsername: 'admin',\n masterPassword: cdk.SecretValue.unsafePlainText('tooshort'),\n },\n vpc,\n publiclyAccessible: true,\n elasticIp: '10.123.123.255', // A elastic ip you own\n})",
|
|
908
|
-
"version": "0"
|
|
909
|
-
}
|
|
910
|
-
},
|
|
911
|
-
"location": {
|
|
912
|
-
"api": {
|
|
913
|
-
"api": "moduleReadme",
|
|
914
|
-
"moduleFqn": "@aws-cdk/aws-redshift-alpha"
|
|
915
|
-
},
|
|
916
|
-
"field": {
|
|
917
|
-
"field": "markdown",
|
|
918
|
-
"line": 301
|
|
919
|
-
}
|
|
920
|
-
},
|
|
921
|
-
"didCompile": false,
|
|
922
|
-
"fqnsReferenced": [
|
|
923
|
-
"@aws-cdk/aws-redshift-alpha.Cluster",
|
|
924
|
-
"@aws-cdk/aws-redshift-alpha.ClusterProps",
|
|
925
|
-
"@aws-cdk/aws-redshift-alpha.Login",
|
|
926
|
-
"aws-cdk-lib.SecretValue",
|
|
927
|
-
"aws-cdk-lib.aws_ec2.IVpc",
|
|
928
|
-
"constructs.Construct"
|
|
929
|
-
],
|
|
930
|
-
"fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const vpc: ec2.Vpc;\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\nnew Cluster(stack, 'Redshift', {\n masterUser: {\n masterUsername: 'admin',\n masterPassword: cdk.SecretValue.unsafePlainText('tooshort'),\n },\n vpc,\n publiclyAccessible: true,\n elasticIp: '10.123.123.255', // A elastic ip you own\n})\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
|
931
|
-
"syntaxKindCounter": {
|
|
932
|
-
"10": 4,
|
|
933
|
-
"75": 14,
|
|
934
|
-
"106": 1,
|
|
935
|
-
"130": 1,
|
|
936
|
-
"153": 1,
|
|
937
|
-
"169": 1,
|
|
938
|
-
"193": 2,
|
|
939
|
-
"194": 2,
|
|
940
|
-
"196": 1,
|
|
941
|
-
"197": 1,
|
|
942
|
-
"225": 1,
|
|
943
|
-
"226": 1,
|
|
944
|
-
"242": 1,
|
|
945
|
-
"243": 1,
|
|
946
|
-
"281": 5,
|
|
947
|
-
"282": 1,
|
|
948
|
-
"290": 1
|
|
949
|
-
},
|
|
950
|
-
"fqnsFingerprint": "037b94af489937a0645798e9dfea1efa2714addbba9184e98b11690bef263045"
|
|
951
|
-
},
|
|
952
|
-
"55d26b83ce62614119955c4f71127caaf11fc6315de14280160077f8cd7df1c9": {
|
|
953
|
-
"translations": {
|
|
954
|
-
"python": {
|
|
955
|
-
"source": "vpc = ec2.Vpc(self, \"VPC\",\n enable_dns_support=True,\n enable_dns_hostnames=True\n)",
|
|
956
|
-
"version": "2"
|
|
957
|
-
},
|
|
958
|
-
"csharp": {
|
|
959
|
-
"source": "var vpc = new ec2.Vpc(this, \"VPC\", new Struct {\n EnableDnsSupport = true,\n EnableDnsHostnames = true\n});",
|
|
960
|
-
"version": "1"
|
|
961
|
-
},
|
|
962
|
-
"java": {
|
|
963
|
-
"source": "Object vpc = Vpc.Builder.create(this, \"VPC\")\n .enableDnsSupport(true)\n .enableDnsHostnames(true)\n .build();",
|
|
964
|
-
"version": "1"
|
|
965
|
-
},
|
|
966
|
-
"go": {
|
|
967
|
-
"source": "vpc := ec2.NewVpc(this, jsii.String(\"VPC\"), map[string]*bool{\n\t\"enableDnsSupport\": jsii.Boolean(true),\n\t\"enableDnsHostnames\": jsii.Boolean(true),\n})",
|
|
968
|
-
"version": "1"
|
|
969
|
-
},
|
|
970
|
-
"$": {
|
|
971
|
-
"source": "const vpc = new ec2.Vpc(this, 'VPC', {\n enableDnsSupport: true,\n enableDnsHostnames: true,\n});",
|
|
972
|
-
"version": "0"
|
|
973
|
-
}
|
|
974
|
-
},
|
|
975
|
-
"location": {
|
|
976
|
-
"api": {
|
|
977
|
-
"api": "moduleReadme",
|
|
978
|
-
"moduleFqn": "@aws-cdk/aws-redshift-alpha"
|
|
979
|
-
},
|
|
980
|
-
"field": {
|
|
981
|
-
"field": "markdown",
|
|
982
|
-
"line": 317
|
|
983
|
-
}
|
|
984
|
-
},
|
|
985
|
-
"didCompile": false,
|
|
986
|
-
"fqnsReferenced": [],
|
|
987
|
-
"fullSource": "// 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\nconst vpc = new ec2.Vpc(this, 'VPC', {\n enableDnsSupport: true,\n enableDnsHostnames: true,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
|
988
|
-
"syntaxKindCounter": {
|
|
989
|
-
"10": 1,
|
|
990
|
-
"75": 5,
|
|
991
|
-
"104": 1,
|
|
992
|
-
"106": 2,
|
|
993
|
-
"193": 1,
|
|
994
|
-
"194": 1,
|
|
995
|
-
"197": 1,
|
|
996
|
-
"225": 1,
|
|
997
|
-
"242": 1,
|
|
998
|
-
"243": 1,
|
|
999
|
-
"281": 2
|
|
1000
|
-
},
|
|
1001
|
-
"fqnsFingerprint": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
|
|
1002
|
-
},
|
|
1003
|
-
"00e955f4e1ddfc2b0815c24fae2e7cff3ac6ffe45bcf8e64b556074b9678e53f": {
|
|
1004
|
-
"translations": {
|
|
1005
|
-
"python": {
|
|
1006
|
-
"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)",
|
|
1007
|
-
"version": "2"
|
|
1008
|
-
},
|
|
1009
|
-
"csharp": {
|
|
1010
|
-
"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});",
|
|
1011
|
-
"version": "1"
|
|
1012
|
-
},
|
|
1013
|
-
"java": {
|
|
1014
|
-
"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();",
|
|
1015
|
-
"version": "1"
|
|
1016
|
-
},
|
|
1017
|
-
"go": {
|
|
1018
|
-
"source": "import ec2 \"github.com/aws/aws-cdk-go/awscdk\"\n\n\nvpc := ec2.NewVpc(this, jsii.String(\"Vpc\"))\ncluster := awscdkredshiftalpha.NewCluster(this, jsii.String(\"Redshift\"), &clusterProps{\n\tmasterUser: &login{\n\t\tmasterUsername: jsii.String(\"admin\"),\n\t},\n\tvpc: vpc,\n})",
|
|
1019
|
-
"version": "1"
|
|
1020
|
-
},
|
|
1021
|
-
"$": {
|
|
1022
|
-
"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});",
|
|
1023
|
-
"version": "0"
|
|
1024
|
-
}
|
|
1025
|
-
},
|
|
1026
|
-
"location": {
|
|
1027
|
-
"api": {
|
|
1028
|
-
"api": "type",
|
|
1029
|
-
"fqn": "@aws-cdk/aws-redshift-alpha.Cluster"
|
|
1030
|
-
},
|
|
1031
|
-
"field": {
|
|
1032
|
-
"field": "example"
|
|
1033
|
-
}
|
|
1034
|
-
},
|
|
1035
|
-
"didCompile": true,
|
|
1036
|
-
"fqnsReferenced": [
|
|
1037
|
-
"@aws-cdk/aws-redshift-alpha.Cluster",
|
|
1038
|
-
"@aws-cdk/aws-redshift-alpha.ClusterProps",
|
|
1039
|
-
"@aws-cdk/aws-redshift-alpha.Login",
|
|
1040
|
-
"aws-cdk-lib.aws_ec2.IVpc",
|
|
1041
|
-
"aws-cdk-lib.aws_ec2.Vpc",
|
|
1042
|
-
"constructs.Construct"
|
|
1043
|
-
],
|
|
1044
|
-
"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",
|
|
1045
|
-
"syntaxKindCounter": {
|
|
1046
|
-
"10": 4,
|
|
1047
|
-
"75": 9,
|
|
1048
|
-
"104": 2,
|
|
1049
|
-
"193": 2,
|
|
1050
|
-
"194": 1,
|
|
1051
|
-
"197": 2,
|
|
1052
|
-
"225": 2,
|
|
1053
|
-
"242": 2,
|
|
1054
|
-
"243": 2,
|
|
1055
|
-
"254": 1,
|
|
1056
|
-
"255": 1,
|
|
1057
|
-
"256": 1,
|
|
1058
|
-
"281": 2,
|
|
1059
|
-
"282": 1,
|
|
1060
|
-
"290": 1
|
|
1061
|
-
},
|
|
1062
|
-
"fqnsFingerprint": "f31653c5265c32339c8d610650b4838a13753685f5f279a437e57a92f6987540"
|
|
1063
|
-
},
|
|
1064
|
-
"d6c41af477f219a992322c044392d17fe1bf965cae8a8110aa4110e61ca2f64f": {
|
|
1065
|
-
"translations": {
|
|
1066
|
-
"python": {
|
|
1067
|
-
"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: ec2.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)",
|
|
1068
|
-
"version": "2"
|
|
1069
|
-
},
|
|
1070
|
-
"csharp": {
|
|
1071
|
-
"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};",
|
|
1072
|
-
"version": "1"
|
|
1073
|
-
},
|
|
1074
|
-
"java": {
|
|
1075
|
-
"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();",
|
|
1076
|
-
"version": "1"
|
|
1077
|
-
},
|
|
1078
|
-
"go": {
|
|
1079
|
-
"source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport redshift_alpha \"github.com/aws/aws-cdk-go/awscdkredshiftalpha\"\nimport \"github.com/aws/aws-cdk-go/awscdk\"\n\nvar securityGroup securityGroup\n\nclusterAttributes := &clusterAttributes{\n\tclusterEndpointAddress: jsii.String(\"clusterEndpointAddress\"),\n\tclusterEndpointPort: jsii.Number(123),\n\tclusterName: jsii.String(\"clusterName\"),\n\n\t// the properties below are optional\n\tsecurityGroups: []iSecurityGroup{\n\t\tsecurityGroup,\n\t},\n}",
|
|
1080
|
-
"version": "1"
|
|
1081
|
-
},
|
|
1082
|
-
"$": {
|
|
1083
|
-
"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};",
|
|
1084
|
-
"version": "0"
|
|
1085
|
-
}
|
|
1086
|
-
},
|
|
1087
|
-
"location": {
|
|
1088
|
-
"api": {
|
|
1089
|
-
"api": "type",
|
|
1090
|
-
"fqn": "@aws-cdk/aws-redshift-alpha.ClusterAttributes"
|
|
1091
|
-
},
|
|
1092
|
-
"field": {
|
|
1093
|
-
"field": "example"
|
|
1094
|
-
}
|
|
1095
|
-
},
|
|
1096
|
-
"didCompile": true,
|
|
1097
|
-
"fqnsReferenced": [
|
|
1098
|
-
"@aws-cdk/aws-redshift-alpha.ClusterAttributes"
|
|
1099
|
-
],
|
|
1100
|
-
"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} }",
|
|
1101
|
-
"syntaxKindCounter": {
|
|
1102
|
-
"8": 1,
|
|
1103
|
-
"10": 4,
|
|
1104
|
-
"75": 14,
|
|
1105
|
-
"130": 1,
|
|
1106
|
-
"153": 2,
|
|
1107
|
-
"169": 2,
|
|
1108
|
-
"192": 1,
|
|
1109
|
-
"193": 1,
|
|
1110
|
-
"225": 2,
|
|
1111
|
-
"242": 2,
|
|
1112
|
-
"243": 2,
|
|
1113
|
-
"254": 2,
|
|
1114
|
-
"255": 2,
|
|
1115
|
-
"256": 1,
|
|
1116
|
-
"257": 1,
|
|
1117
|
-
"258": 1,
|
|
1118
|
-
"281": 4,
|
|
1119
|
-
"290": 1
|
|
1120
|
-
},
|
|
1121
|
-
"fqnsFingerprint": "197cb7a4975510a26be0af7afaa901553c4c4207f325e30937299c46454296ac"
|
|
1122
|
-
},
|
|
1123
|
-
"65a9cd36a8b9594b38c0a0d95fa00643ef6c7b854e295a2e78d7533f6c0d4fb8": {
|
|
1124
|
-
"translations": {
|
|
1125
|
-
"python": {
|
|
1126
|
-
"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)",
|
|
1127
|
-
"version": "2"
|
|
1128
|
-
},
|
|
1129
|
-
"csharp": {
|
|
1130
|
-
"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});",
|
|
1131
|
-
"version": "1"
|
|
1132
|
-
},
|
|
1133
|
-
"java": {
|
|
1134
|
-
"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();",
|
|
1135
|
-
"version": "1"
|
|
1136
|
-
},
|
|
1137
|
-
"go": {
|
|
1138
|
-
"source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport redshift_alpha \"github.com/aws/aws-cdk-go/awscdkredshiftalpha\"\n\nclusterParameterGroup := redshift_alpha.NewClusterParameterGroup(this, jsii.String(\"MyClusterParameterGroup\"), &clusterParameterGroupProps{\n\tparameters: map[string]*string{\n\t\t\"parametersKey\": jsii.String(\"parameters\"),\n\t},\n\n\t// the properties below are optional\n\tdescription: jsii.String(\"description\"),\n})",
|
|
1139
|
-
"version": "1"
|
|
1140
|
-
},
|
|
1141
|
-
"$": {
|
|
1142
|
-
"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});",
|
|
1143
|
-
"version": "0"
|
|
1144
|
-
}
|
|
1145
|
-
},
|
|
1146
|
-
"location": {
|
|
1147
|
-
"api": {
|
|
1148
|
-
"api": "type",
|
|
1149
|
-
"fqn": "@aws-cdk/aws-redshift-alpha.ClusterParameterGroup"
|
|
1150
|
-
},
|
|
1151
|
-
"field": {
|
|
1152
|
-
"field": "example"
|
|
1153
|
-
}
|
|
1154
|
-
},
|
|
1155
|
-
"didCompile": true,
|
|
1156
|
-
"fqnsReferenced": [
|
|
1157
|
-
"@aws-cdk/aws-redshift-alpha.ClusterParameterGroup",
|
|
1158
|
-
"@aws-cdk/aws-redshift-alpha.ClusterParameterGroupProps",
|
|
1159
|
-
"constructs.Construct"
|
|
1160
|
-
],
|
|
1161
|
-
"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} }",
|
|
1162
|
-
"syntaxKindCounter": {
|
|
1163
|
-
"10": 4,
|
|
1164
|
-
"75": 7,
|
|
1165
|
-
"104": 1,
|
|
1166
|
-
"193": 2,
|
|
1167
|
-
"194": 1,
|
|
1168
|
-
"197": 1,
|
|
1169
|
-
"225": 1,
|
|
1170
|
-
"242": 1,
|
|
1171
|
-
"243": 1,
|
|
1172
|
-
"254": 1,
|
|
1173
|
-
"255": 1,
|
|
1174
|
-
"256": 1,
|
|
1175
|
-
"281": 3,
|
|
1176
|
-
"290": 1
|
|
1177
|
-
},
|
|
1178
|
-
"fqnsFingerprint": "c6c2fc78c6b44de8d32d3c3d097ecf85bf94d48c027a968aea373dabb8f1af86"
|
|
1179
|
-
},
|
|
1180
|
-
"668d0c5fe079c3e36b822c3c1f1c479f3b651c6374572bcc88da7ece64888418": {
|
|
1181
|
-
"translations": {
|
|
1182
|
-
"python": {
|
|
1183
|
-
"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)",
|
|
1184
|
-
"version": "2"
|
|
1185
|
-
},
|
|
1186
|
-
"csharp": {
|
|
1187
|
-
"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};",
|
|
1188
|
-
"version": "1"
|
|
1189
|
-
},
|
|
1190
|
-
"java": {
|
|
1191
|
-
"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();",
|
|
1192
|
-
"version": "1"
|
|
1193
|
-
},
|
|
1194
|
-
"go": {
|
|
1195
|
-
"source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport redshift_alpha \"github.com/aws/aws-cdk-go/awscdkredshiftalpha\"\n\nclusterParameterGroupProps := &clusterParameterGroupProps{\n\tparameters: map[string]*string{\n\t\t\"parametersKey\": jsii.String(\"parameters\"),\n\t},\n\n\t// the properties below are optional\n\tdescription: jsii.String(\"description\"),\n}",
|
|
1196
|
-
"version": "1"
|
|
1197
|
-
},
|
|
1198
|
-
"$": {
|
|
1199
|
-
"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};",
|
|
1200
|
-
"version": "0"
|
|
1201
|
-
}
|
|
1202
|
-
},
|
|
1203
|
-
"location": {
|
|
1204
|
-
"api": {
|
|
1205
|
-
"api": "type",
|
|
1206
|
-
"fqn": "@aws-cdk/aws-redshift-alpha.ClusterParameterGroupProps"
|
|
1207
|
-
},
|
|
1208
|
-
"field": {
|
|
1209
|
-
"field": "example"
|
|
1210
|
-
}
|
|
1211
|
-
},
|
|
1212
|
-
"didCompile": true,
|
|
1213
|
-
"fqnsReferenced": [
|
|
1214
|
-
"@aws-cdk/aws-redshift-alpha.ClusterParameterGroupProps"
|
|
1215
|
-
],
|
|
1216
|
-
"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} }",
|
|
1217
|
-
"syntaxKindCounter": {
|
|
1218
|
-
"10": 3,
|
|
1219
|
-
"75": 7,
|
|
1220
|
-
"153": 1,
|
|
1221
|
-
"169": 1,
|
|
1222
|
-
"193": 2,
|
|
1223
|
-
"225": 1,
|
|
1224
|
-
"242": 1,
|
|
1225
|
-
"243": 1,
|
|
1226
|
-
"254": 1,
|
|
1227
|
-
"255": 1,
|
|
1228
|
-
"256": 1,
|
|
1229
|
-
"281": 3,
|
|
1230
|
-
"290": 1
|
|
1231
|
-
},
|
|
1232
|
-
"fqnsFingerprint": "dc5736d6868916dcb6665b1c2a0f7a444894c18bf0a739ab8ce1548384dae15f"
|
|
1233
|
-
},
|
|
1234
|
-
"857282a70b80501cd849b21543428c56ead7508adc43541e30b23d3e9c532df3": {
|
|
1235
|
-
"translations": {
|
|
1236
|
-
"python": {
|
|
1237
|
-
"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)",
|
|
1238
|
-
"version": "2"
|
|
1239
|
-
},
|
|
1240
|
-
"csharp": {
|
|
1241
|
-
"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});",
|
|
1242
|
-
"version": "1"
|
|
1243
|
-
},
|
|
1244
|
-
"java": {
|
|
1245
|
-
"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();",
|
|
1246
|
-
"version": "1"
|
|
1247
|
-
},
|
|
1248
|
-
"go": {
|
|
1249
|
-
"source": "import ec2 \"github.com/aws/aws-cdk-go/awscdk\"\n\n\nvpc := ec2.NewVpc(this, jsii.String(\"Vpc\"))\ncluster := awscdkredshiftalpha.NewCluster(this, jsii.String(\"Redshift\"), &clusterProps{\n\tmasterUser: &login{\n\t\tmasterUsername: jsii.String(\"admin\"),\n\t},\n\tvpc: vpc,\n})",
|
|
1250
|
-
"version": "1"
|
|
1251
|
-
},
|
|
1252
|
-
"$": {
|
|
1253
|
-
"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});",
|
|
1254
|
-
"version": "0"
|
|
1255
|
-
}
|
|
1256
|
-
},
|
|
1257
|
-
"location": {
|
|
1258
|
-
"api": {
|
|
1259
|
-
"api": "type",
|
|
1260
|
-
"fqn": "@aws-cdk/aws-redshift-alpha.ClusterProps"
|
|
1261
|
-
},
|
|
1262
|
-
"field": {
|
|
1263
|
-
"field": "example"
|
|
1264
|
-
}
|
|
1265
|
-
},
|
|
1266
|
-
"didCompile": true,
|
|
1267
|
-
"fqnsReferenced": [
|
|
1268
|
-
"@aws-cdk/aws-redshift-alpha.Cluster",
|
|
1269
|
-
"@aws-cdk/aws-redshift-alpha.ClusterProps",
|
|
1270
|
-
"@aws-cdk/aws-redshift-alpha.Login",
|
|
1271
|
-
"aws-cdk-lib.aws_ec2.IVpc",
|
|
1272
|
-
"aws-cdk-lib.aws_ec2.Vpc",
|
|
1273
|
-
"constructs.Construct"
|
|
1274
|
-
],
|
|
1275
|
-
"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",
|
|
1276
|
-
"syntaxKindCounter": {
|
|
1277
|
-
"10": 4,
|
|
1278
|
-
"75": 9,
|
|
1279
|
-
"104": 2,
|
|
1280
|
-
"193": 2,
|
|
1281
|
-
"194": 1,
|
|
1282
|
-
"197": 2,
|
|
1283
|
-
"225": 2,
|
|
1284
|
-
"242": 2,
|
|
1285
|
-
"243": 2,
|
|
1286
|
-
"254": 1,
|
|
1287
|
-
"255": 1,
|
|
1288
|
-
"256": 1,
|
|
1289
|
-
"281": 2,
|
|
1290
|
-
"282": 1,
|
|
1291
|
-
"290": 1
|
|
1292
|
-
},
|
|
1293
|
-
"fqnsFingerprint": "f31653c5265c32339c8d610650b4838a13753685f5f279a437e57a92f6987540"
|
|
1294
|
-
},
|
|
1295
|
-
"51118bb4d5c3de88213dac23d2877a4e785360769254185a9eb4e89b0a0d989a": {
|
|
1296
|
-
"translations": {
|
|
1297
|
-
"python": {
|
|
1298
|
-
"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: ec2.Subnet\n# subnet_filter: ec2.SubnetFilter\n# vpc: ec2.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)",
|
|
1299
|
-
"version": "2"
|
|
1300
|
-
},
|
|
1301
|
-
"csharp": {
|
|
1302
|
-
"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});",
|
|
1303
|
-
"version": "1"
|
|
1304
|
-
},
|
|
1305
|
-
"java": {
|
|
1306
|
-
"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();",
|
|
1307
|
-
"version": "1"
|
|
1308
|
-
},
|
|
1309
|
-
"go": {
|
|
1310
|
-
"source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport redshift_alpha \"github.com/aws/aws-cdk-go/awscdkredshiftalpha\"\nimport cdk \"github.com/aws/aws-cdk-go/awscdk\"\nimport \"github.com/aws/aws-cdk-go/awscdk\"\n\nvar subnet subnet\nvar subnetFilter subnetFilter\nvar vpc vpc\n\nclusterSubnetGroup := redshift_alpha.NewClusterSubnetGroup(this, jsii.String(\"MyClusterSubnetGroup\"), &clusterSubnetGroupProps{\n\tdescription: jsii.String(\"description\"),\n\tvpc: vpc,\n\n\t// the properties below are optional\n\tremovalPolicy: cdk.removalPolicy_DESTROY,\n\tvpcSubnets: &subnetSelection{\n\t\tavailabilityZones: []*string{\n\t\t\tjsii.String(\"availabilityZones\"),\n\t\t},\n\t\tonePerAz: jsii.Boolean(false),\n\t\tsubnetFilters: []*subnetFilter{\n\t\t\tsubnetFilter,\n\t\t},\n\t\tsubnetGroupName: jsii.String(\"subnetGroupName\"),\n\t\tsubnets: []iSubnet{\n\t\t\tsubnet,\n\t\t},\n\t\tsubnetType: awscdk.Aws_ec2.subnetType_PRIVATE_ISOLATED,\n\t},\n})",
|
|
1311
|
-
"version": "1"
|
|
1312
|
-
},
|
|
1313
|
-
"$": {
|
|
1314
|
-
"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});",
|
|
1315
|
-
"version": "0"
|
|
1316
|
-
}
|
|
1317
|
-
},
|
|
1318
|
-
"location": {
|
|
1319
|
-
"api": {
|
|
1320
|
-
"api": "type",
|
|
1321
|
-
"fqn": "@aws-cdk/aws-redshift-alpha.ClusterSubnetGroup"
|
|
1322
|
-
},
|
|
1323
|
-
"field": {
|
|
1324
|
-
"field": "example"
|
|
1325
|
-
}
|
|
1326
|
-
},
|
|
1327
|
-
"didCompile": true,
|
|
1328
|
-
"fqnsReferenced": [
|
|
1329
|
-
"@aws-cdk/aws-redshift-alpha.ClusterSubnetGroup",
|
|
1330
|
-
"@aws-cdk/aws-redshift-alpha.ClusterSubnetGroupProps",
|
|
1331
|
-
"aws-cdk-lib.RemovalPolicy",
|
|
1332
|
-
"aws-cdk-lib.RemovalPolicy#DESTROY",
|
|
1333
|
-
"aws-cdk-lib.aws_ec2.IVpc",
|
|
1334
|
-
"aws-cdk-lib.aws_ec2.SubnetSelection",
|
|
1335
|
-
"aws-cdk-lib.aws_ec2.SubnetType",
|
|
1336
|
-
"aws-cdk-lib.aws_ec2.SubnetType#PRIVATE_ISOLATED",
|
|
1337
|
-
"constructs.Construct"
|
|
1338
|
-
],
|
|
1339
|
-
"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} }",
|
|
1340
|
-
"syntaxKindCounter": {
|
|
1341
|
-
"10": 7,
|
|
1342
|
-
"75": 35,
|
|
1343
|
-
"91": 1,
|
|
1344
|
-
"104": 1,
|
|
1345
|
-
"130": 3,
|
|
1346
|
-
"153": 3,
|
|
1347
|
-
"169": 3,
|
|
1348
|
-
"192": 3,
|
|
1349
|
-
"193": 2,
|
|
1350
|
-
"194": 5,
|
|
1351
|
-
"197": 1,
|
|
1352
|
-
"225": 4,
|
|
1353
|
-
"242": 4,
|
|
1354
|
-
"243": 4,
|
|
1355
|
-
"254": 3,
|
|
1356
|
-
"255": 3,
|
|
1357
|
-
"256": 2,
|
|
1358
|
-
"257": 1,
|
|
1359
|
-
"258": 1,
|
|
1360
|
-
"281": 10,
|
|
1361
|
-
"290": 1
|
|
1362
|
-
},
|
|
1363
|
-
"fqnsFingerprint": "74db46fbeca4cec671692995f52022ea441af48614067f82676b0660552cc217"
|
|
1364
|
-
},
|
|
1365
|
-
"cacf629afc7210cdf46232db41dea37b5ea7283b293ab5c51b1a6383b15dd69f": {
|
|
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\nimport aws_cdk as cdk\nfrom aws_cdk import aws_ec2 as ec2\n\n# subnet: ec2.Subnet\n# subnet_filter: ec2.SubnetFilter\n# vpc: ec2.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)",
|
|
1369
|
-
"version": "2"
|
|
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;\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};",
|
|
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.*;\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();",
|
|
1377
|
-
"version": "1"
|
|
1378
|
-
},
|
|
1379
|
-
"go": {
|
|
1380
|
-
"source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport redshift_alpha \"github.com/aws/aws-cdk-go/awscdkredshiftalpha\"\nimport cdk \"github.com/aws/aws-cdk-go/awscdk\"\nimport \"github.com/aws/aws-cdk-go/awscdk\"\n\nvar subnet subnet\nvar subnetFilter subnetFilter\nvar vpc vpc\n\nclusterSubnetGroupProps := &clusterSubnetGroupProps{\n\tdescription: jsii.String(\"description\"),\n\tvpc: vpc,\n\n\t// the properties below are optional\n\tremovalPolicy: cdk.removalPolicy_DESTROY,\n\tvpcSubnets: &subnetSelection{\n\t\tavailabilityZones: []*string{\n\t\t\tjsii.String(\"availabilityZones\"),\n\t\t},\n\t\tonePerAz: jsii.Boolean(false),\n\t\tsubnetFilters: []*subnetFilter{\n\t\t\tsubnetFilter,\n\t\t},\n\t\tsubnetGroupName: jsii.String(\"subnetGroupName\"),\n\t\tsubnets: []iSubnet{\n\t\t\tsubnet,\n\t\t},\n\t\tsubnetType: awscdk.Aws_ec2.subnetType_PRIVATE_ISOLATED,\n\t},\n}",
|
|
1381
|
-
"version": "1"
|
|
1382
|
-
},
|
|
1383
|
-
"$": {
|
|
1384
|
-
"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};",
|
|
1385
|
-
"version": "0"
|
|
1386
|
-
}
|
|
1387
|
-
},
|
|
1388
|
-
"location": {
|
|
1389
|
-
"api": {
|
|
1390
|
-
"api": "type",
|
|
1391
|
-
"fqn": "@aws-cdk/aws-redshift-alpha.ClusterSubnetGroupProps"
|
|
1392
|
-
},
|
|
1393
|
-
"field": {
|
|
1394
|
-
"field": "example"
|
|
1395
|
-
}
|
|
1396
|
-
},
|
|
1397
|
-
"didCompile": true,
|
|
1398
|
-
"fqnsReferenced": [
|
|
1399
|
-
"@aws-cdk/aws-redshift-alpha.ClusterSubnetGroupProps",
|
|
1400
|
-
"aws-cdk-lib.RemovalPolicy",
|
|
1401
|
-
"aws-cdk-lib.RemovalPolicy#DESTROY",
|
|
1402
|
-
"aws-cdk-lib.aws_ec2.IVpc",
|
|
1403
|
-
"aws-cdk-lib.aws_ec2.SubnetSelection",
|
|
1404
|
-
"aws-cdk-lib.aws_ec2.SubnetType",
|
|
1405
|
-
"aws-cdk-lib.aws_ec2.SubnetType#PRIVATE_ISOLATED"
|
|
1406
|
-
],
|
|
1407
|
-
"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} }",
|
|
1408
|
-
"syntaxKindCounter": {
|
|
1409
|
-
"10": 6,
|
|
1410
|
-
"75": 35,
|
|
1411
|
-
"91": 1,
|
|
1412
|
-
"130": 3,
|
|
1413
|
-
"153": 4,
|
|
1414
|
-
"169": 4,
|
|
1415
|
-
"192": 3,
|
|
1416
|
-
"193": 2,
|
|
1417
|
-
"194": 4,
|
|
1418
|
-
"225": 4,
|
|
1419
|
-
"242": 4,
|
|
1420
|
-
"243": 4,
|
|
1421
|
-
"254": 3,
|
|
1422
|
-
"255": 3,
|
|
1423
|
-
"256": 2,
|
|
1424
|
-
"257": 1,
|
|
1425
|
-
"258": 1,
|
|
1426
|
-
"281": 10,
|
|
1427
|
-
"290": 1
|
|
1428
|
-
},
|
|
1429
|
-
"fqnsFingerprint": "0a078636e9f914ee339e1196f17770863abee2f89f53d272dcd68345fb989129"
|
|
1430
|
-
},
|
|
1431
|
-
"9d65edf9675c71e5f9327fd575b79ed4e29fb6829dd43b32a72959790b1e8b4e": {
|
|
1432
|
-
"translations": {
|
|
1433
|
-
"python": {
|
|
1434
|
-
"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)",
|
|
1435
|
-
"version": "2"
|
|
1436
|
-
},
|
|
1437
|
-
"csharp": {
|
|
1438
|
-
"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};",
|
|
1439
|
-
"version": "1"
|
|
1440
|
-
},
|
|
1441
|
-
"java": {
|
|
1442
|
-
"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();",
|
|
1443
|
-
"version": "1"
|
|
1444
|
-
},
|
|
1445
|
-
"go": {
|
|
1446
|
-
"source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport redshift_alpha \"github.com/aws/aws-cdk-go/awscdkredshiftalpha\"\n\ncolumn := &column{\n\tdataType: jsii.String(\"dataType\"),\n\tname: jsii.String(\"name\"),\n\n\t// the properties below are optional\n\tdistKey: jsii.Boolean(false),\n\tsortKey: jsii.Boolean(false),\n}",
|
|
1447
|
-
"version": "1"
|
|
1448
|
-
},
|
|
1449
|
-
"$": {
|
|
1450
|
-
"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};",
|
|
1451
|
-
"version": "0"
|
|
1452
|
-
}
|
|
1453
|
-
},
|
|
1454
|
-
"location": {
|
|
1455
|
-
"api": {
|
|
1456
|
-
"api": "type",
|
|
1457
|
-
"fqn": "@aws-cdk/aws-redshift-alpha.Column"
|
|
1458
|
-
},
|
|
1459
|
-
"field": {
|
|
1460
|
-
"field": "example"
|
|
1461
|
-
}
|
|
1462
|
-
},
|
|
1463
|
-
"didCompile": true,
|
|
1464
|
-
"fqnsReferenced": [
|
|
1465
|
-
"@aws-cdk/aws-redshift-alpha.Column"
|
|
1466
|
-
],
|
|
1467
|
-
"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} }",
|
|
1468
|
-
"syntaxKindCounter": {
|
|
1469
|
-
"10": 3,
|
|
1470
|
-
"75": 8,
|
|
1471
|
-
"91": 2,
|
|
1472
|
-
"153": 1,
|
|
1473
|
-
"169": 1,
|
|
1474
|
-
"193": 1,
|
|
1475
|
-
"225": 1,
|
|
1476
|
-
"242": 1,
|
|
1477
|
-
"243": 1,
|
|
1478
|
-
"254": 1,
|
|
1479
|
-
"255": 1,
|
|
1480
|
-
"256": 1,
|
|
1481
|
-
"281": 4,
|
|
1482
|
-
"290": 1
|
|
1483
|
-
},
|
|
1484
|
-
"fqnsFingerprint": "6a827b347a686e1b6bf4f83c02bc783f7278b6781973efddc64f11f5609179bf"
|
|
1485
|
-
},
|
|
1486
|
-
"2a94f1762c54ae443534e62c0ff067f0dc3deab6c91d9d83e4e25c3bca40483c": {
|
|
1487
|
-
"translations": {
|
|
1488
|
-
"python": {
|
|
1489
|
-
"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: redshift_alpha.Cluster\n# secret: secretsmanager.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)",
|
|
1490
|
-
"version": "2"
|
|
1491
|
-
},
|
|
1492
|
-
"csharp": {
|
|
1493
|
-
"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};",
|
|
1494
|
-
"version": "1"
|
|
1495
|
-
},
|
|
1496
|
-
"java": {
|
|
1497
|
-
"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();",
|
|
1498
|
-
"version": "1"
|
|
1499
|
-
},
|
|
1500
|
-
"go": {
|
|
1501
|
-
"source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport redshift_alpha \"github.com/aws/aws-cdk-go/awscdkredshiftalpha\"\nimport \"github.com/aws/aws-cdk-go/awscdk\"\n\nvar cluster cluster\nvar secret secret\n\ndatabaseOptions := &databaseOptions{\n\tcluster: cluster,\n\tdatabaseName: jsii.String(\"databaseName\"),\n\n\t// the properties below are optional\n\tadminUser: secret,\n}",
|
|
1502
|
-
"version": "1"
|
|
1503
|
-
},
|
|
1504
|
-
"$": {
|
|
1505
|
-
"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};",
|
|
1506
|
-
"version": "0"
|
|
1507
|
-
}
|
|
1508
|
-
},
|
|
1509
|
-
"location": {
|
|
1510
|
-
"api": {
|
|
1511
|
-
"api": "type",
|
|
1512
|
-
"fqn": "@aws-cdk/aws-redshift-alpha.DatabaseOptions"
|
|
1513
|
-
},
|
|
1514
|
-
"field": {
|
|
1515
|
-
"field": "example"
|
|
1516
|
-
}
|
|
1517
|
-
},
|
|
1518
|
-
"didCompile": true,
|
|
1519
|
-
"fqnsReferenced": [
|
|
1520
|
-
"@aws-cdk/aws-redshift-alpha.DatabaseOptions",
|
|
1521
|
-
"@aws-cdk/aws-redshift-alpha.ICluster",
|
|
1522
|
-
"aws-cdk-lib.aws_secretsmanager.ISecret"
|
|
1523
|
-
],
|
|
1524
|
-
"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} }",
|
|
1525
|
-
"syntaxKindCounter": {
|
|
1526
|
-
"10": 3,
|
|
1527
|
-
"75": 17,
|
|
1528
|
-
"130": 2,
|
|
1529
|
-
"153": 3,
|
|
1530
|
-
"169": 3,
|
|
1531
|
-
"193": 1,
|
|
1532
|
-
"225": 3,
|
|
1533
|
-
"242": 3,
|
|
1534
|
-
"243": 3,
|
|
1535
|
-
"254": 2,
|
|
1536
|
-
"255": 2,
|
|
1537
|
-
"256": 1,
|
|
1538
|
-
"257": 1,
|
|
1539
|
-
"258": 1,
|
|
1540
|
-
"281": 3,
|
|
1541
|
-
"290": 1
|
|
1542
|
-
},
|
|
1543
|
-
"fqnsFingerprint": "deca590576ea92e01f8b5083b2c6fb557fccb109b369f2662234a575ac4247bf"
|
|
1544
|
-
},
|
|
1545
|
-
"1cbaf8b1aac1962ba0b44b0610c1ce54309fc8e11fcf7d1cd5f65eb2b58c4e5a": {
|
|
1546
|
-
"translations": {
|
|
1547
|
-
"python": {
|
|
1548
|
-
"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: kms.Key\n\ndatabase_secret = redshift_alpha.DatabaseSecret(self, \"MyDatabaseSecret\",\n username=\"username\",\n\n # the properties below are optional\n encryption_key=key\n)",
|
|
1549
|
-
"version": "2"
|
|
1550
|
-
},
|
|
1551
|
-
"csharp": {
|
|
1552
|
-
"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});",
|
|
1553
|
-
"version": "1"
|
|
1554
|
-
},
|
|
1555
|
-
"java": {
|
|
1556
|
-
"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();",
|
|
1557
|
-
"version": "1"
|
|
1558
|
-
},
|
|
1559
|
-
"go": {
|
|
1560
|
-
"source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport redshift_alpha \"github.com/aws/aws-cdk-go/awscdkredshiftalpha\"\nimport \"github.com/aws/aws-cdk-go/awscdk\"\n\nvar key key\n\ndatabaseSecret := redshift_alpha.NewDatabaseSecret(this, jsii.String(\"MyDatabaseSecret\"), &databaseSecretProps{\n\tusername: jsii.String(\"username\"),\n\n\t// the properties below are optional\n\tencryptionKey: key,\n})",
|
|
1561
|
-
"version": "1"
|
|
1562
|
-
},
|
|
1563
|
-
"$": {
|
|
1564
|
-
"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});",
|
|
1565
|
-
"version": "0"
|
|
1566
|
-
}
|
|
1567
|
-
},
|
|
1568
|
-
"location": {
|
|
1569
|
-
"api": {
|
|
1570
|
-
"api": "type",
|
|
1571
|
-
"fqn": "@aws-cdk/aws-redshift-alpha.DatabaseSecret"
|
|
1572
|
-
},
|
|
1573
|
-
"field": {
|
|
1574
|
-
"field": "example"
|
|
1575
|
-
}
|
|
1576
|
-
},
|
|
1577
|
-
"didCompile": true,
|
|
1578
|
-
"fqnsReferenced": [
|
|
1579
|
-
"@aws-cdk/aws-redshift-alpha.DatabaseSecret",
|
|
1580
|
-
"@aws-cdk/aws-redshift-alpha.DatabaseSecretProps",
|
|
1581
|
-
"aws-cdk-lib.aws_kms.IKey",
|
|
1582
|
-
"constructs.Construct"
|
|
1583
|
-
],
|
|
1584
|
-
"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} }",
|
|
1585
|
-
"syntaxKindCounter": {
|
|
1586
|
-
"10": 4,
|
|
1587
|
-
"75": 12,
|
|
1588
|
-
"104": 1,
|
|
1589
|
-
"130": 1,
|
|
1590
|
-
"153": 1,
|
|
1591
|
-
"169": 1,
|
|
1592
|
-
"193": 1,
|
|
1593
|
-
"194": 1,
|
|
1594
|
-
"197": 1,
|
|
1595
|
-
"225": 2,
|
|
1596
|
-
"242": 2,
|
|
1597
|
-
"243": 2,
|
|
1598
|
-
"254": 2,
|
|
1599
|
-
"255": 2,
|
|
1600
|
-
"256": 1,
|
|
1601
|
-
"257": 1,
|
|
1602
|
-
"258": 1,
|
|
1603
|
-
"281": 2,
|
|
1604
|
-
"290": 1
|
|
1605
|
-
},
|
|
1606
|
-
"fqnsFingerprint": "5d8bfcb61994158aca354a4808f8c0631e932971a1581ab16791e29f2c2294d0"
|
|
1607
|
-
},
|
|
1608
|
-
"137822026ba7f09588c483e8a9294bef457823e48fb16bab283aafb4229bdc3d": {
|
|
1609
|
-
"translations": {
|
|
1610
|
-
"python": {
|
|
1611
|
-
"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: kms.Key\n\ndatabase_secret_props = redshift_alpha.DatabaseSecretProps(\n username=\"username\",\n\n # the properties below are optional\n encryption_key=key\n)",
|
|
1612
|
-
"version": "2"
|
|
1613
|
-
},
|
|
1614
|
-
"csharp": {
|
|
1615
|
-
"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};",
|
|
1616
|
-
"version": "1"
|
|
1617
|
-
},
|
|
1618
|
-
"java": {
|
|
1619
|
-
"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();",
|
|
1620
|
-
"version": "1"
|
|
1621
|
-
},
|
|
1622
|
-
"go": {
|
|
1623
|
-
"source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport redshift_alpha \"github.com/aws/aws-cdk-go/awscdkredshiftalpha\"\nimport \"github.com/aws/aws-cdk-go/awscdk\"\n\nvar key key\n\ndatabaseSecretProps := &databaseSecretProps{\n\tusername: jsii.String(\"username\"),\n\n\t// the properties below are optional\n\tencryptionKey: key,\n}",
|
|
1624
|
-
"version": "1"
|
|
1625
|
-
},
|
|
1626
|
-
"$": {
|
|
1627
|
-
"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};",
|
|
1628
|
-
"version": "0"
|
|
1629
|
-
}
|
|
1630
|
-
},
|
|
1631
|
-
"location": {
|
|
1632
|
-
"api": {
|
|
1633
|
-
"api": "type",
|
|
1634
|
-
"fqn": "@aws-cdk/aws-redshift-alpha.DatabaseSecretProps"
|
|
1635
|
-
},
|
|
1636
|
-
"field": {
|
|
1637
|
-
"field": "example"
|
|
1638
|
-
}
|
|
1639
|
-
},
|
|
1640
|
-
"didCompile": true,
|
|
1641
|
-
"fqnsReferenced": [
|
|
1642
|
-
"@aws-cdk/aws-redshift-alpha.DatabaseSecretProps",
|
|
1643
|
-
"aws-cdk-lib.aws_kms.IKey"
|
|
1644
|
-
],
|
|
1645
|
-
"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} }",
|
|
1646
|
-
"syntaxKindCounter": {
|
|
1647
|
-
"10": 3,
|
|
1648
|
-
"75": 12,
|
|
1649
|
-
"130": 1,
|
|
1650
|
-
"153": 2,
|
|
1651
|
-
"169": 2,
|
|
1652
|
-
"193": 1,
|
|
1653
|
-
"225": 2,
|
|
1654
|
-
"242": 2,
|
|
1655
|
-
"243": 2,
|
|
1656
|
-
"254": 2,
|
|
1657
|
-
"255": 2,
|
|
1658
|
-
"256": 1,
|
|
1659
|
-
"257": 1,
|
|
1660
|
-
"258": 1,
|
|
1661
|
-
"281": 2,
|
|
1662
|
-
"290": 1
|
|
1663
|
-
},
|
|
1664
|
-
"fqnsFingerprint": "171a78189765bdcc13b638a29983b173e76d8f68732f7a903a2e851d7feaef00"
|
|
1665
|
-
},
|
|
1666
|
-
"5d424095bc3cd60253a00e7548444d4d80b37613a65c65b4340a708e832cd5e6": {
|
|
1667
|
-
"translations": {
|
|
1668
|
-
"python": {
|
|
1669
|
-
"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)",
|
|
1670
|
-
"version": "2"
|
|
1671
|
-
},
|
|
1672
|
-
"csharp": {
|
|
1673
|
-
"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);",
|
|
1674
|
-
"version": "1"
|
|
1675
|
-
},
|
|
1676
|
-
"java": {
|
|
1677
|
-
"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);",
|
|
1678
|
-
"version": "1"
|
|
1679
|
-
},
|
|
1680
|
-
"go": {
|
|
1681
|
-
"source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport redshift_alpha \"github.com/aws/aws-cdk-go/awscdkredshiftalpha\"\n\nendpoint := redshift_alpha.NewEndpoint(jsii.String(\"address\"), jsii.Number(123))",
|
|
1682
|
-
"version": "1"
|
|
1683
|
-
},
|
|
1684
|
-
"$": {
|
|
1685
|
-
"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);",
|
|
1686
|
-
"version": "0"
|
|
1687
|
-
}
|
|
1688
|
-
},
|
|
1689
|
-
"location": {
|
|
1690
|
-
"api": {
|
|
1691
|
-
"api": "type",
|
|
1692
|
-
"fqn": "@aws-cdk/aws-redshift-alpha.Endpoint"
|
|
1693
|
-
},
|
|
1694
|
-
"field": {
|
|
1695
|
-
"field": "example"
|
|
1696
|
-
}
|
|
1697
|
-
},
|
|
1698
|
-
"didCompile": true,
|
|
1699
|
-
"fqnsReferenced": [
|
|
1700
|
-
"@aws-cdk/aws-redshift-alpha.Endpoint"
|
|
1701
|
-
],
|
|
1702
|
-
"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} }",
|
|
1703
|
-
"syntaxKindCounter": {
|
|
1704
|
-
"8": 1,
|
|
1705
|
-
"10": 2,
|
|
1706
|
-
"75": 4,
|
|
1707
|
-
"194": 1,
|
|
1708
|
-
"197": 1,
|
|
1709
|
-
"225": 1,
|
|
1710
|
-
"242": 1,
|
|
1711
|
-
"243": 1,
|
|
1712
|
-
"254": 1,
|
|
1713
|
-
"255": 1,
|
|
1714
|
-
"256": 1,
|
|
1715
|
-
"290": 1
|
|
1716
|
-
},
|
|
1717
|
-
"fqnsFingerprint": "c6644d0c4e31d6f0d49d892ae63fea27c25cfe8f3526cf2fbd4750aed29d8279"
|
|
1718
|
-
},
|
|
1719
|
-
"68e2820f1c47ad1381216c906973921b2b0e2e94008a4000ffd4c554f3fcc83b": {
|
|
1720
|
-
"translations": {
|
|
1721
|
-
"python": {
|
|
1722
|
-
"source": "import aws_cdk.aws_ec2 as ec2\nimport aws_cdk.aws_s3 as s3\n\n\nvpc = ec2.Vpc(self, \"Vpc\")\nbucket = s3.Bucket.from_bucket_name(stack, \"bucket\", \"logging-bucket\")\n\ncluster = Cluster(self, \"Redshift\",\n master_user=Login(\n master_username=\"admin\"\n ),\n vpc=vpc,\n logging_properties=LoggingProperties(\n logging_bucket=logging_bucket,\n logging_key_prefix=\"prefix\"\n )\n)",
|
|
1723
|
-
"version": "2"
|
|
1724
|
-
},
|
|
1725
|
-
"csharp": {
|
|
1726
|
-
"source": "using Amazon.CDK.AWS.EC2;\nusing Amazon.CDK.AWS.S3;\n\n\nVpc vpc = new Vpc(this, \"Vpc\");\nIBucket bucket = Bucket.FromBucketName(stack, \"bucket\", \"logging-bucket\");\n\nCluster cluster = new Cluster(this, \"Redshift\", new ClusterProps {\n MasterUser = new Login {\n MasterUsername = \"admin\"\n },\n Vpc = vpc,\n LoggingProperties = new LoggingProperties {\n LoggingBucket = loggingBucket,\n LoggingKeyPrefix = \"prefix\"\n }\n});",
|
|
1727
|
-
"version": "1"
|
|
1728
|
-
},
|
|
1729
|
-
"java": {
|
|
1730
|
-
"source": "import software.amazon.awscdk.services.ec2.*;\nimport software.amazon.awscdk.services.s3.*;\n\n\nVpc vpc = new Vpc(this, \"Vpc\");\nIBucket bucket = Bucket.fromBucketName(stack, \"bucket\", \"logging-bucket\");\n\nCluster cluster = Cluster.Builder.create(this, \"Redshift\")\n .masterUser(Login.builder()\n .masterUsername(\"admin\")\n .build())\n .vpc(vpc)\n .loggingProperties(LoggingProperties.builder()\n .loggingBucket(loggingBucket)\n .loggingKeyPrefix(\"prefix\")\n .build())\n .build();",
|
|
1731
|
-
"version": "1"
|
|
1732
|
-
},
|
|
1733
|
-
"go": {
|
|
1734
|
-
"source": "import ec2 \"github.com/aws/aws-cdk-go/awscdk\"\nimport s3 \"github.com/aws/aws-cdk-go/awscdk\"\n\n\nvpc := ec2.NewVpc(this, jsii.String(\"Vpc\"))\nbucket := s3.bucket.fromBucketName(stack, jsii.String(\"bucket\"), jsii.String(\"logging-bucket\"))\n\ncluster := awscdkredshiftalpha.NewCluster(this, jsii.String(\"Redshift\"), &clusterProps{\n\tmasterUser: &login{\n\t\tmasterUsername: jsii.String(\"admin\"),\n\t},\n\tvpc: vpc,\n\tloggingProperties: &loggingProperties{\n\t\tloggingBucket: loggingBucket,\n\t\tloggingKeyPrefix: jsii.String(\"prefix\"),\n\t},\n})",
|
|
1735
|
-
"version": "1"
|
|
1736
|
-
},
|
|
1737
|
-
"$": {
|
|
1738
|
-
"source": "import * as ec2 from 'aws-cdk-lib/aws-ec2';\nimport * as s3 from 'aws-cdk-lib/aws-s3';\n\nconst vpc = new ec2.Vpc(this, 'Vpc');\nconst bucket = s3.Bucket.fromBucketName(stack, 'bucket', 'logging-bucket');\n\nconst cluster = new Cluster(this, 'Redshift', {\n masterUser: {\n masterUsername: 'admin',\n },\n vpc,\n loggingProperties: {\n loggingBucket = bucket,\n loggingKeyPrefix: 'prefix',\n }\n});",
|
|
1739
|
-
"version": "0"
|
|
1740
|
-
}
|
|
1741
|
-
},
|
|
1742
|
-
"location": {
|
|
1743
|
-
"api": {
|
|
1744
|
-
"api": "type",
|
|
1745
|
-
"fqn": "@aws-cdk/aws-redshift-alpha.LoggingProperties"
|
|
1746
|
-
},
|
|
1747
|
-
"field": {
|
|
1748
|
-
"field": "example"
|
|
1749
|
-
}
|
|
1750
|
-
},
|
|
1751
|
-
"didCompile": false,
|
|
1752
|
-
"fqnsReferenced": [
|
|
1753
|
-
"@aws-cdk/aws-redshift-alpha.Cluster",
|
|
1754
|
-
"@aws-cdk/aws-redshift-alpha.ClusterProps",
|
|
1755
|
-
"@aws-cdk/aws-redshift-alpha.LoggingProperties",
|
|
1756
|
-
"@aws-cdk/aws-redshift-alpha.Login",
|
|
1757
|
-
"aws-cdk-lib.aws_ec2.IVpc",
|
|
1758
|
-
"aws-cdk-lib.aws_ec2.Vpc",
|
|
1759
|
-
"aws-cdk-lib.aws_s3.Bucket",
|
|
1760
|
-
"aws-cdk-lib.aws_s3.Bucket#fromBucketName",
|
|
1761
|
-
"aws-cdk-lib.aws_s3.IBucket",
|
|
1762
|
-
"constructs.Construct"
|
|
1763
|
-
],
|
|
1764
|
-
"fullSource": "// Hoisted imports begin after !show marker below\n/// !show\nimport * as ec2 from 'aws-cdk-lib/aws-ec2';\nimport * as s3 from 'aws-cdk-lib/aws-s3';\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 bucket = s3.Bucket.fromBucketName(stack, 'bucket', 'logging-bucket');\n\nconst cluster = new Cluster(this, 'Redshift', {\n masterUser: {\n masterUsername: 'admin',\n },\n vpc,\n loggingProperties: {\n loggingBucket = bucket,\n loggingKeyPrefix: 'prefix',\n }\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
|
1765
|
-
"syntaxKindCounter": {
|
|
1766
|
-
"10": 8,
|
|
1767
|
-
"62": 1,
|
|
1768
|
-
"75": 19,
|
|
1769
|
-
"104": 2,
|
|
1770
|
-
"193": 3,
|
|
1771
|
-
"194": 3,
|
|
1772
|
-
"196": 1,
|
|
1773
|
-
"197": 2,
|
|
1774
|
-
"225": 3,
|
|
1775
|
-
"242": 3,
|
|
1776
|
-
"243": 3,
|
|
1777
|
-
"254": 2,
|
|
1778
|
-
"255": 2,
|
|
1779
|
-
"256": 2,
|
|
1780
|
-
"281": 4,
|
|
1781
|
-
"282": 2,
|
|
1782
|
-
"290": 1
|
|
1783
|
-
},
|
|
1784
|
-
"fqnsFingerprint": "7e0d6e431188e78497296f296526ebae7efb8b433e9ab782804d25069b7b79bb"
|
|
1785
|
-
},
|
|
1786
|
-
"e3f6d7e687b631e8a898681542af004bf210dd16f3872f872f18f58375ee2637": {
|
|
1787
|
-
"translations": {
|
|
1788
|
-
"python": {
|
|
1789
|
-
"source": "user = User(self, \"User\",\n cluster=cluster,\n database_name=\"databaseName\"\n)\ncluster.add_rotation_multi_user(\"MultiUserRotation\",\n secret=user.secret\n)",
|
|
1790
|
-
"version": "2"
|
|
1791
|
-
},
|
|
1792
|
-
"csharp": {
|
|
1793
|
-
"source": "User user = new User(this, \"User\", new UserProps {\n Cluster = cluster,\n DatabaseName = \"databaseName\"\n});\ncluster.AddRotationMultiUser(\"MultiUserRotation\", new RotationMultiUserOptions {\n Secret = user.Secret\n});",
|
|
1794
|
-
"version": "1"
|
|
1795
|
-
},
|
|
1796
|
-
"java": {
|
|
1797
|
-
"source": "User user = User.Builder.create(this, \"User\")\n .cluster(cluster)\n .databaseName(\"databaseName\")\n .build();\ncluster.addRotationMultiUser(\"MultiUserRotation\", RotationMultiUserOptions.builder()\n .secret(user.getSecret())\n .build());",
|
|
1798
|
-
"version": "1"
|
|
1799
|
-
},
|
|
1800
|
-
"go": {
|
|
1801
|
-
"source": "user := awscdkredshiftalpha.NewUser(this, jsii.String(\"User\"), &userProps{\n\tcluster: cluster,\n\tdatabaseName: jsii.String(\"databaseName\"),\n})\ncluster.addRotationMultiUser(jsii.String(\"MultiUserRotation\"), &rotationMultiUserOptions{\n\tsecret: user.secret,\n})",
|
|
1802
|
-
"version": "1"
|
|
1803
|
-
},
|
|
1804
|
-
"$": {
|
|
1805
|
-
"source": "\nconst user = new User(this, 'User', {\n cluster: cluster,\n databaseName: 'databaseName',\n});\ncluster.addRotationMultiUser('MultiUserRotation', {\n secret: user.secret,\n});",
|
|
1806
|
-
"version": "0"
|
|
1807
|
-
}
|
|
1808
|
-
},
|
|
1809
|
-
"location": {
|
|
1810
|
-
"api": {
|
|
1811
|
-
"api": "type",
|
|
1812
|
-
"fqn": "@aws-cdk/aws-redshift-alpha.Login"
|
|
1813
|
-
},
|
|
1814
|
-
"field": {
|
|
1815
|
-
"field": "example"
|
|
1816
|
-
}
|
|
1817
|
-
},
|
|
1818
|
-
"didCompile": true,
|
|
1819
|
-
"fqnsReferenced": [
|
|
1820
|
-
"@aws-cdk/aws-redshift-alpha.Cluster#addRotationMultiUser",
|
|
1821
|
-
"@aws-cdk/aws-redshift-alpha.ICluster",
|
|
1822
|
-
"@aws-cdk/aws-redshift-alpha.Login",
|
|
1823
|
-
"@aws-cdk/aws-redshift-alpha.RotationMultiUserOptions",
|
|
1824
|
-
"@aws-cdk/aws-redshift-alpha.User",
|
|
1825
|
-
"@aws-cdk/aws-redshift-alpha.User#secret",
|
|
1826
|
-
"@aws-cdk/aws-redshift-alpha.UserProps",
|
|
1827
|
-
"aws-cdk-lib.aws_ec2.IVpc",
|
|
1828
|
-
"aws-cdk-lib.aws_secretsmanager.ISecret",
|
|
1829
|
-
"constructs.Construct"
|
|
1830
|
-
],
|
|
1831
|
-
"fullSource": "// Fixture with cluster already created\nimport { SecretValue, Stack } from 'aws-cdk-lib';\nimport { Vpc } from 'aws-cdk-lib/aws-ec2';\nimport { Cluster, Table, TableAction, TableDistStyle, TableSortStyle, User } from '@aws-cdk/aws-redshift-alpha';\nimport { Construct } from 'constructs';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n const vpc = new Vpc(this, 'Vpc');\n const cluster = new Cluster(this, 'Cluster', {\n vpc,\n masterUser: {\n masterUsername: 'admin',\n },\n });\n\n // Code snippet begins after !show marker below\n/// !show\n\nconst user = new User(this, 'User', {\n cluster: cluster,\n databaseName: 'databaseName',\n});\ncluster.addRotationMultiUser('MultiUserRotation', {\n secret: user.secret,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
|
1832
|
-
"syntaxKindCounter": {
|
|
1833
|
-
"10": 3,
|
|
1834
|
-
"75": 10,
|
|
1835
|
-
"104": 1,
|
|
1836
|
-
"193": 2,
|
|
1837
|
-
"194": 2,
|
|
1838
|
-
"196": 1,
|
|
1839
|
-
"197": 1,
|
|
1840
|
-
"225": 1,
|
|
1841
|
-
"226": 1,
|
|
1842
|
-
"242": 1,
|
|
1843
|
-
"243": 1,
|
|
1844
|
-
"281": 3
|
|
1845
|
-
},
|
|
1846
|
-
"fqnsFingerprint": "0af2d452a565970915dfd1e318284343fcdc47fab2c1e4ab556f67021a7e9b4c"
|
|
1847
|
-
},
|
|
1848
|
-
"ad6779b5715455f5ffcbd38817eb41157a6f5e479549a17625678b92df020204": {
|
|
1849
|
-
"translations": {
|
|
1850
|
-
"python": {
|
|
1851
|
-
"source": "user = User(self, \"User\",\n cluster=cluster,\n database_name=\"databaseName\"\n)\ncluster.add_rotation_multi_user(\"MultiUserRotation\",\n secret=user.secret\n)",
|
|
1852
|
-
"version": "2"
|
|
1853
|
-
},
|
|
1854
|
-
"csharp": {
|
|
1855
|
-
"source": "User user = new User(this, \"User\", new UserProps {\n Cluster = cluster,\n DatabaseName = \"databaseName\"\n});\ncluster.AddRotationMultiUser(\"MultiUserRotation\", new RotationMultiUserOptions {\n Secret = user.Secret\n});",
|
|
1856
|
-
"version": "1"
|
|
1857
|
-
},
|
|
1858
|
-
"java": {
|
|
1859
|
-
"source": "User user = User.Builder.create(this, \"User\")\n .cluster(cluster)\n .databaseName(\"databaseName\")\n .build();\ncluster.addRotationMultiUser(\"MultiUserRotation\", RotationMultiUserOptions.builder()\n .secret(user.getSecret())\n .build());",
|
|
1860
|
-
"version": "1"
|
|
1861
|
-
},
|
|
1862
|
-
"go": {
|
|
1863
|
-
"source": "user := awscdkredshiftalpha.NewUser(this, jsii.String(\"User\"), &userProps{\n\tcluster: cluster,\n\tdatabaseName: jsii.String(\"databaseName\"),\n})\ncluster.addRotationMultiUser(jsii.String(\"MultiUserRotation\"), &rotationMultiUserOptions{\n\tsecret: user.secret,\n})",
|
|
1864
|
-
"version": "1"
|
|
1865
|
-
},
|
|
1866
|
-
"$": {
|
|
1867
|
-
"source": "\nconst user = new User(this, 'User', {\n cluster: cluster,\n databaseName: 'databaseName',\n});\ncluster.addRotationMultiUser('MultiUserRotation', {\n secret: user.secret,\n});",
|
|
1868
|
-
"version": "0"
|
|
1869
|
-
}
|
|
1870
|
-
},
|
|
1871
|
-
"location": {
|
|
1872
|
-
"api": {
|
|
1873
|
-
"api": "type",
|
|
1874
|
-
"fqn": "@aws-cdk/aws-redshift-alpha.RotationMultiUserOptions"
|
|
1875
|
-
},
|
|
1876
|
-
"field": {
|
|
1877
|
-
"field": "example"
|
|
1878
|
-
}
|
|
1879
|
-
},
|
|
1880
|
-
"didCompile": true,
|
|
1881
|
-
"fqnsReferenced": [
|
|
1882
|
-
"@aws-cdk/aws-redshift-alpha.Cluster#addRotationMultiUser",
|
|
1883
|
-
"@aws-cdk/aws-redshift-alpha.ICluster",
|
|
1884
|
-
"@aws-cdk/aws-redshift-alpha.Login",
|
|
1885
|
-
"@aws-cdk/aws-redshift-alpha.RotationMultiUserOptions",
|
|
1886
|
-
"@aws-cdk/aws-redshift-alpha.User",
|
|
1887
|
-
"@aws-cdk/aws-redshift-alpha.User#secret",
|
|
1888
|
-
"@aws-cdk/aws-redshift-alpha.UserProps",
|
|
1889
|
-
"aws-cdk-lib.aws_ec2.IVpc",
|
|
1890
|
-
"aws-cdk-lib.aws_secretsmanager.ISecret",
|
|
1891
|
-
"constructs.Construct"
|
|
1892
|
-
],
|
|
1893
|
-
"fullSource": "// Fixture with cluster already created\nimport { SecretValue, Stack } from 'aws-cdk-lib';\nimport { Vpc } from 'aws-cdk-lib/aws-ec2';\nimport { Cluster, Table, TableAction, TableDistStyle, TableSortStyle, User } from '@aws-cdk/aws-redshift-alpha';\nimport { Construct } from 'constructs';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n const vpc = new Vpc(this, 'Vpc');\n const cluster = new Cluster(this, 'Cluster', {\n vpc,\n masterUser: {\n masterUsername: 'admin',\n },\n });\n\n // Code snippet begins after !show marker below\n/// !show\n\nconst user = new User(this, 'User', {\n cluster: cluster,\n databaseName: 'databaseName',\n});\ncluster.addRotationMultiUser('MultiUserRotation', {\n secret: user.secret,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
|
1894
|
-
"syntaxKindCounter": {
|
|
1895
|
-
"10": 3,
|
|
1896
|
-
"75": 10,
|
|
1897
|
-
"104": 1,
|
|
1898
|
-
"193": 2,
|
|
1899
|
-
"194": 2,
|
|
1900
|
-
"196": 1,
|
|
1901
|
-
"197": 1,
|
|
1902
|
-
"225": 1,
|
|
1903
|
-
"226": 1,
|
|
1904
|
-
"242": 1,
|
|
1905
|
-
"243": 1,
|
|
1906
|
-
"281": 3
|
|
1907
|
-
},
|
|
1908
|
-
"fqnsFingerprint": "0af2d452a565970915dfd1e318284343fcdc47fab2c1e4ab556f67021a7e9b4c"
|
|
1909
|
-
},
|
|
1910
|
-
"2b20eccb399b788ea8ecc892abfae9f31369b856fbe61ed42c4bd8fac0a5bb1c": {
|
|
1911
|
-
"translations": {
|
|
1912
|
-
"python": {
|
|
1913
|
-
"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)",
|
|
1914
|
-
"version": "2"
|
|
1915
|
-
},
|
|
1916
|
-
"csharp": {
|
|
1917
|
-
"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});",
|
|
1918
|
-
"version": "1"
|
|
1919
|
-
},
|
|
1920
|
-
"java": {
|
|
1921
|
-
"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();",
|
|
1922
|
-
"version": "1"
|
|
1923
|
-
},
|
|
1924
|
-
"go": {
|
|
1925
|
-
"source": "awscdkredshiftalpha.NewTable(this, jsii.String(\"Table\"), &tableProps{\n\ttableColumns: []column{\n\t\t&column{\n\t\t\tname: jsii.String(\"col1\"),\n\t\t\tdataType: jsii.String(\"varchar(4)\"),\n\t\t\tdistKey: jsii.Boolean(true),\n\t\t},\n\t\t&column{\n\t\t\tname: jsii.String(\"col2\"),\n\t\t\tdataType: jsii.String(\"float\"),\n\t\t},\n\t},\n\tcluster: cluster,\n\tdatabaseName: jsii.String(\"databaseName\"),\n\tdistStyle: awscdkredshiftalpha.TableDistStyle_KEY,\n})",
|
|
1926
|
-
"version": "1"
|
|
1927
|
-
},
|
|
1928
|
-
"$": {
|
|
1929
|
-
"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});",
|
|
1930
|
-
"version": "0"
|
|
1931
|
-
}
|
|
1932
|
-
},
|
|
1933
|
-
"location": {
|
|
1934
|
-
"api": {
|
|
1935
|
-
"api": "type",
|
|
1936
|
-
"fqn": "@aws-cdk/aws-redshift-alpha.Table"
|
|
1937
|
-
},
|
|
1938
|
-
"field": {
|
|
1939
|
-
"field": "example"
|
|
1940
|
-
}
|
|
1941
|
-
},
|
|
1942
|
-
"didCompile": true,
|
|
1943
|
-
"fqnsReferenced": [
|
|
1944
|
-
"@aws-cdk/aws-redshift-alpha.ICluster",
|
|
1945
|
-
"@aws-cdk/aws-redshift-alpha.Login",
|
|
1946
|
-
"@aws-cdk/aws-redshift-alpha.Table",
|
|
1947
|
-
"@aws-cdk/aws-redshift-alpha.TableDistStyle",
|
|
1948
|
-
"@aws-cdk/aws-redshift-alpha.TableDistStyle#KEY",
|
|
1949
|
-
"@aws-cdk/aws-redshift-alpha.TableProps",
|
|
1950
|
-
"aws-cdk-lib.aws_ec2.IVpc",
|
|
1951
|
-
"constructs.Construct"
|
|
1952
|
-
],
|
|
1953
|
-
"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",
|
|
1954
|
-
"syntaxKindCounter": {
|
|
1955
|
-
"10": 6,
|
|
1956
|
-
"75": 13,
|
|
1957
|
-
"104": 1,
|
|
1958
|
-
"106": 1,
|
|
1959
|
-
"192": 1,
|
|
1960
|
-
"193": 3,
|
|
1961
|
-
"194": 1,
|
|
1962
|
-
"197": 1,
|
|
1963
|
-
"226": 1,
|
|
1964
|
-
"281": 9
|
|
1965
|
-
},
|
|
1966
|
-
"fqnsFingerprint": "4ea37f9c292f195c5773da8fb1f45c5d34be9bb6fbfb37a39c2acb25a9ea0ca6"
|
|
1967
|
-
},
|
|
1968
|
-
"91729184329521792ab5572ab15ce150ce589686a01c22a256663eaf6c6aae16": {
|
|
1969
|
-
"translations": {
|
|
1970
|
-
"python": {
|
|
1971
|
-
"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)",
|
|
1972
|
-
"version": "2"
|
|
1973
|
-
},
|
|
1974
|
-
"csharp": {
|
|
1975
|
-
"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);",
|
|
1976
|
-
"version": "1"
|
|
1977
|
-
},
|
|
1978
|
-
"java": {
|
|
1979
|
-
"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);",
|
|
1980
|
-
"version": "1"
|
|
1981
|
-
},
|
|
1982
|
-
"go": {
|
|
1983
|
-
"source": "databaseName := \"databaseName\"\nusername := \"myuser\"\ntableName := \"mytable\"\n\nuser := awscdkredshiftalpha.NewUser(this, jsii.String(\"User\"), &userProps{\n\tusername: username,\n\tcluster: cluster,\n\tdatabaseName: databaseName,\n})\ntable := awscdkredshiftalpha.NewTable(this, jsii.String(\"Table\"), &tableProps{\n\ttableColumns: []column{\n\t\t&column{\n\t\t\tname: jsii.String(\"col1\"),\n\t\t\tdataType: jsii.String(\"varchar(4)\"),\n\t\t},\n\t\t&column{\n\t\t\tname: jsii.String(\"col2\"),\n\t\t\tdataType: jsii.String(\"float\"),\n\t\t},\n\t},\n\tcluster: cluster,\n\tdatabaseName: databaseName,\n})\ntable.grant(user, awscdkredshiftalpha.TableAction_INSERT)",
|
|
1984
|
-
"version": "1"
|
|
1985
|
-
},
|
|
1986
|
-
"$": {
|
|
1987
|
-
"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);",
|
|
1988
|
-
"version": "0"
|
|
1989
|
-
}
|
|
1990
|
-
},
|
|
1991
|
-
"location": {
|
|
1992
|
-
"api": {
|
|
1993
|
-
"api": "type",
|
|
1994
|
-
"fqn": "@aws-cdk/aws-redshift-alpha.TableAction"
|
|
1995
|
-
},
|
|
1996
|
-
"field": {
|
|
1997
|
-
"field": "example"
|
|
1998
|
-
}
|
|
1999
|
-
},
|
|
2000
|
-
"didCompile": true,
|
|
2001
|
-
"fqnsReferenced": [
|
|
2002
|
-
"@aws-cdk/aws-redshift-alpha.ICluster",
|
|
2003
|
-
"@aws-cdk/aws-redshift-alpha.IUser",
|
|
2004
|
-
"@aws-cdk/aws-redshift-alpha.Login",
|
|
2005
|
-
"@aws-cdk/aws-redshift-alpha.Table",
|
|
2006
|
-
"@aws-cdk/aws-redshift-alpha.TableAction",
|
|
2007
|
-
"@aws-cdk/aws-redshift-alpha.TableAction#INSERT",
|
|
2008
|
-
"@aws-cdk/aws-redshift-alpha.TableProps",
|
|
2009
|
-
"@aws-cdk/aws-redshift-alpha.User",
|
|
2010
|
-
"@aws-cdk/aws-redshift-alpha.UserProps",
|
|
2011
|
-
"aws-cdk-lib.aws_ec2.IVpc",
|
|
2012
|
-
"constructs.Construct"
|
|
2013
|
-
],
|
|
2014
|
-
"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",
|
|
2015
|
-
"syntaxKindCounter": {
|
|
2016
|
-
"10": 9,
|
|
2017
|
-
"75": 27,
|
|
2018
|
-
"104": 2,
|
|
2019
|
-
"192": 1,
|
|
2020
|
-
"193": 4,
|
|
2021
|
-
"194": 2,
|
|
2022
|
-
"196": 1,
|
|
2023
|
-
"197": 2,
|
|
2024
|
-
"225": 5,
|
|
2025
|
-
"226": 1,
|
|
2026
|
-
"242": 5,
|
|
2027
|
-
"243": 5,
|
|
2028
|
-
"281": 10
|
|
2029
|
-
},
|
|
2030
|
-
"fqnsFingerprint": "cb6e7dbd05a1ae48509c55f73d4010f00ce421d8be49923ff4b93c489ea300e4"
|
|
2031
|
-
},
|
|
2032
|
-
"01eb515e25d8cf30dd33a23151a9c98a9c6ced1abdff144b661dfb415078489a": {
|
|
2033
|
-
"translations": {
|
|
2034
|
-
"python": {
|
|
2035
|
-
"source": "database_name = \"databaseName\"\nusername = \"myuser\"\ntable_name = \"mytable\"\n\nuser = User.from_user_attributes(self, \"User\",\n username=username,\n password=SecretValue.unsafe_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)",
|
|
2036
|
-
"version": "2"
|
|
2037
|
-
},
|
|
2038
|
-
"csharp": {
|
|
2039
|
-
"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.UnsafePlainText(\"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);",
|
|
2040
|
-
"version": "1"
|
|
2041
|
-
},
|
|
2042
|
-
"java": {
|
|
2043
|
-
"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.unsafePlainText(\"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);",
|
|
2044
|
-
"version": "1"
|
|
2045
|
-
},
|
|
2046
|
-
"go": {
|
|
2047
|
-
"source": "databaseName := \"databaseName\"\nusername := \"myuser\"\ntableName := \"mytable\"\n\nuser := awscdkredshiftalpha.User.fromUserAttributes(this, jsii.String(\"User\"), &userAttributes{\n\tusername: username,\n\tpassword: awscdk.SecretValue.unsafePlainText(jsii.String(\"NOT_FOR_PRODUCTION\")),\n\tcluster: cluster,\n\tdatabaseName: databaseName,\n})\ntable := awscdkredshiftalpha.Table.fromTableAttributes(this, jsii.String(\"Table\"), &tableAttributes{\n\ttableName: tableName,\n\ttableColumns: []column{\n\t\t&column{\n\t\t\tname: jsii.String(\"col1\"),\n\t\t\tdataType: jsii.String(\"varchar(4)\"),\n\t\t},\n\t\t&column{\n\t\t\tname: jsii.String(\"col2\"),\n\t\t\tdataType: jsii.String(\"float\"),\n\t\t},\n\t},\n\tcluster: cluster,\n\tdatabaseName: jsii.String(\"databaseName\"),\n})\ntable.grant(user, awscdkredshiftalpha.TableAction_INSERT)",
|
|
2048
|
-
"version": "1"
|
|
2049
|
-
},
|
|
2050
|
-
"$": {
|
|
2051
|
-
"source": "const databaseName = 'databaseName';\nconst username = 'myuser'\nconst tableName = 'mytable'\n\nconst user = User.fromUserAttributes(this, 'User', {\n username: username,\n password: SecretValue.unsafePlainText('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);",
|
|
2052
|
-
"version": "0"
|
|
2053
|
-
}
|
|
2054
|
-
},
|
|
2055
|
-
"location": {
|
|
2056
|
-
"api": {
|
|
2057
|
-
"api": "type",
|
|
2058
|
-
"fqn": "@aws-cdk/aws-redshift-alpha.TableAttributes"
|
|
2059
|
-
},
|
|
2060
|
-
"field": {
|
|
2061
|
-
"field": "example"
|
|
2062
|
-
}
|
|
2063
|
-
},
|
|
2064
|
-
"didCompile": true,
|
|
2065
|
-
"fqnsReferenced": [
|
|
2066
|
-
"@aws-cdk/aws-redshift-alpha.ICluster",
|
|
2067
|
-
"@aws-cdk/aws-redshift-alpha.ITable",
|
|
2068
|
-
"@aws-cdk/aws-redshift-alpha.ITable#grant",
|
|
2069
|
-
"@aws-cdk/aws-redshift-alpha.IUser",
|
|
2070
|
-
"@aws-cdk/aws-redshift-alpha.Login",
|
|
2071
|
-
"@aws-cdk/aws-redshift-alpha.Table#fromTableAttributes",
|
|
2072
|
-
"@aws-cdk/aws-redshift-alpha.TableAction",
|
|
2073
|
-
"@aws-cdk/aws-redshift-alpha.TableAction#INSERT",
|
|
2074
|
-
"@aws-cdk/aws-redshift-alpha.TableAttributes",
|
|
2075
|
-
"@aws-cdk/aws-redshift-alpha.User#fromUserAttributes",
|
|
2076
|
-
"@aws-cdk/aws-redshift-alpha.UserAttributes",
|
|
2077
|
-
"aws-cdk-lib.SecretValue",
|
|
2078
|
-
"aws-cdk-lib.SecretValue#unsafePlainText",
|
|
2079
|
-
"aws-cdk-lib.aws_ec2.IVpc",
|
|
2080
|
-
"constructs.Construct"
|
|
2081
|
-
],
|
|
2082
|
-
"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.unsafePlainText('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",
|
|
2083
|
-
"syntaxKindCounter": {
|
|
2084
|
-
"10": 11,
|
|
2085
|
-
"75": 33,
|
|
2086
|
-
"104": 2,
|
|
2087
|
-
"192": 1,
|
|
2088
|
-
"193": 4,
|
|
2089
|
-
"194": 5,
|
|
2090
|
-
"196": 4,
|
|
2091
|
-
"225": 5,
|
|
2092
|
-
"226": 1,
|
|
2093
|
-
"242": 5,
|
|
2094
|
-
"243": 5,
|
|
2095
|
-
"281": 12
|
|
2096
|
-
},
|
|
2097
|
-
"fqnsFingerprint": "08b1d34c50e7e6c2e3787bc61f2188de75404c266b73b7ef7e9fb90f14b87d92"
|
|
2098
|
-
},
|
|
2099
|
-
"a0a5aed3be3356c67a02e5502202634478962191b5543456299f752646eeb729": {
|
|
2100
|
-
"translations": {
|
|
2101
|
-
"python": {
|
|
2102
|
-
"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)",
|
|
2103
|
-
"version": "2"
|
|
2104
|
-
},
|
|
2105
|
-
"csharp": {
|
|
2106
|
-
"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});",
|
|
2107
|
-
"version": "1"
|
|
2108
|
-
},
|
|
2109
|
-
"java": {
|
|
2110
|
-
"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();",
|
|
2111
|
-
"version": "1"
|
|
2112
|
-
},
|
|
2113
|
-
"go": {
|
|
2114
|
-
"source": "awscdkredshiftalpha.NewTable(this, jsii.String(\"Table\"), &tableProps{\n\ttableColumns: []column{\n\t\t&column{\n\t\t\tname: jsii.String(\"col1\"),\n\t\t\tdataType: jsii.String(\"varchar(4)\"),\n\t\t\tdistKey: jsii.Boolean(true),\n\t\t},\n\t\t&column{\n\t\t\tname: jsii.String(\"col2\"),\n\t\t\tdataType: jsii.String(\"float\"),\n\t\t},\n\t},\n\tcluster: cluster,\n\tdatabaseName: jsii.String(\"databaseName\"),\n\tdistStyle: awscdkredshiftalpha.TableDistStyle_KEY,\n})",
|
|
2115
|
-
"version": "1"
|
|
2116
|
-
},
|
|
2117
|
-
"$": {
|
|
2118
|
-
"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});",
|
|
2119
|
-
"version": "0"
|
|
2120
|
-
}
|
|
2121
|
-
},
|
|
2122
|
-
"location": {
|
|
2123
|
-
"api": {
|
|
2124
|
-
"api": "type",
|
|
2125
|
-
"fqn": "@aws-cdk/aws-redshift-alpha.TableDistStyle"
|
|
2126
|
-
},
|
|
2127
|
-
"field": {
|
|
2128
|
-
"field": "example"
|
|
2129
|
-
}
|
|
2130
|
-
},
|
|
2131
|
-
"didCompile": true,
|
|
2132
|
-
"fqnsReferenced": [
|
|
2133
|
-
"@aws-cdk/aws-redshift-alpha.ICluster",
|
|
2134
|
-
"@aws-cdk/aws-redshift-alpha.Login",
|
|
2135
|
-
"@aws-cdk/aws-redshift-alpha.Table",
|
|
2136
|
-
"@aws-cdk/aws-redshift-alpha.TableDistStyle",
|
|
2137
|
-
"@aws-cdk/aws-redshift-alpha.TableDistStyle#KEY",
|
|
2138
|
-
"@aws-cdk/aws-redshift-alpha.TableProps",
|
|
2139
|
-
"aws-cdk-lib.aws_ec2.IVpc",
|
|
2140
|
-
"constructs.Construct"
|
|
2141
|
-
],
|
|
2142
|
-
"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",
|
|
2143
|
-
"syntaxKindCounter": {
|
|
2144
|
-
"10": 6,
|
|
2145
|
-
"75": 13,
|
|
2146
|
-
"104": 1,
|
|
2147
|
-
"106": 1,
|
|
2148
|
-
"192": 1,
|
|
2149
|
-
"193": 3,
|
|
2150
|
-
"194": 1,
|
|
2151
|
-
"197": 1,
|
|
2152
|
-
"226": 1,
|
|
2153
|
-
"281": 9
|
|
2154
|
-
},
|
|
2155
|
-
"fqnsFingerprint": "4ea37f9c292f195c5773da8fb1f45c5d34be9bb6fbfb37a39c2acb25a9ea0ca6"
|
|
2156
|
-
},
|
|
2157
|
-
"7ad9117d90fbe2a452185442e885e420097c162f2973db550809c3b5bff11d00": {
|
|
2158
|
-
"translations": {
|
|
2159
|
-
"python": {
|
|
2160
|
-
"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)",
|
|
2161
|
-
"version": "2"
|
|
2162
|
-
},
|
|
2163
|
-
"csharp": {
|
|
2164
|
-
"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});",
|
|
2165
|
-
"version": "1"
|
|
2166
|
-
},
|
|
2167
|
-
"java": {
|
|
2168
|
-
"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();",
|
|
2169
|
-
"version": "1"
|
|
2170
|
-
},
|
|
2171
|
-
"go": {
|
|
2172
|
-
"source": "awscdkredshiftalpha.NewTable(this, jsii.String(\"Table\"), &tableProps{\n\ttableColumns: []column{\n\t\t&column{\n\t\t\tname: jsii.String(\"col1\"),\n\t\t\tdataType: jsii.String(\"varchar(4)\"),\n\t\t\tdistKey: jsii.Boolean(true),\n\t\t},\n\t\t&column{\n\t\t\tname: jsii.String(\"col2\"),\n\t\t\tdataType: jsii.String(\"float\"),\n\t\t},\n\t},\n\tcluster: cluster,\n\tdatabaseName: jsii.String(\"databaseName\"),\n\tdistStyle: awscdkredshiftalpha.TableDistStyle_KEY,\n})",
|
|
2173
|
-
"version": "1"
|
|
2174
|
-
},
|
|
2175
|
-
"$": {
|
|
2176
|
-
"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});",
|
|
2177
|
-
"version": "0"
|
|
2178
|
-
}
|
|
2179
|
-
},
|
|
2180
|
-
"location": {
|
|
2181
|
-
"api": {
|
|
2182
|
-
"api": "type",
|
|
2183
|
-
"fqn": "@aws-cdk/aws-redshift-alpha.TableProps"
|
|
2184
|
-
},
|
|
2185
|
-
"field": {
|
|
2186
|
-
"field": "example"
|
|
2187
|
-
}
|
|
2188
|
-
},
|
|
2189
|
-
"didCompile": true,
|
|
2190
|
-
"fqnsReferenced": [
|
|
2191
|
-
"@aws-cdk/aws-redshift-alpha.ICluster",
|
|
2192
|
-
"@aws-cdk/aws-redshift-alpha.Login",
|
|
2193
|
-
"@aws-cdk/aws-redshift-alpha.Table",
|
|
2194
|
-
"@aws-cdk/aws-redshift-alpha.TableDistStyle",
|
|
2195
|
-
"@aws-cdk/aws-redshift-alpha.TableDistStyle#KEY",
|
|
2196
|
-
"@aws-cdk/aws-redshift-alpha.TableProps",
|
|
2197
|
-
"aws-cdk-lib.aws_ec2.IVpc",
|
|
2198
|
-
"constructs.Construct"
|
|
2199
|
-
],
|
|
2200
|
-
"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",
|
|
2201
|
-
"syntaxKindCounter": {
|
|
2202
|
-
"10": 6,
|
|
2203
|
-
"75": 13,
|
|
2204
|
-
"104": 1,
|
|
2205
|
-
"106": 1,
|
|
2206
|
-
"192": 1,
|
|
2207
|
-
"193": 3,
|
|
2208
|
-
"194": 1,
|
|
2209
|
-
"197": 1,
|
|
2210
|
-
"226": 1,
|
|
2211
|
-
"281": 9
|
|
2212
|
-
},
|
|
2213
|
-
"fqnsFingerprint": "4ea37f9c292f195c5773da8fb1f45c5d34be9bb6fbfb37a39c2acb25a9ea0ca6"
|
|
2214
|
-
},
|
|
2215
|
-
"7233d53f95d6c8e89498a7df318041aa7a223d09479f71a86b787c9bd8b89ce0": {
|
|
2216
|
-
"translations": {
|
|
2217
|
-
"python": {
|
|
2218
|
-
"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)",
|
|
2219
|
-
"version": "2"
|
|
2220
|
-
},
|
|
2221
|
-
"csharp": {
|
|
2222
|
-
"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});",
|
|
2223
|
-
"version": "1"
|
|
2224
|
-
},
|
|
2225
|
-
"java": {
|
|
2226
|
-
"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();",
|
|
2227
|
-
"version": "1"
|
|
2228
|
-
},
|
|
2229
|
-
"go": {
|
|
2230
|
-
"source": "awscdkredshiftalpha.NewTable(this, jsii.String(\"Table\"), &tableProps{\n\ttableColumns: []column{\n\t\t&column{\n\t\t\tname: jsii.String(\"col1\"),\n\t\t\tdataType: jsii.String(\"varchar(4)\"),\n\t\t\tsortKey: jsii.Boolean(true),\n\t\t},\n\t\t&column{\n\t\t\tname: jsii.String(\"col2\"),\n\t\t\tdataType: jsii.String(\"float\"),\n\t\t\tsortKey: jsii.Boolean(true),\n\t\t},\n\t},\n\tcluster: cluster,\n\tdatabaseName: jsii.String(\"databaseName\"),\n\tsortStyle: awscdkredshiftalpha.TableSortStyle_COMPOUND,\n})",
|
|
2231
|
-
"version": "1"
|
|
2232
|
-
},
|
|
2233
|
-
"$": {
|
|
2234
|
-
"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});",
|
|
2235
|
-
"version": "0"
|
|
2236
|
-
}
|
|
2237
|
-
},
|
|
2238
|
-
"location": {
|
|
2239
|
-
"api": {
|
|
2240
|
-
"api": "type",
|
|
2241
|
-
"fqn": "@aws-cdk/aws-redshift-alpha.TableSortStyle"
|
|
2242
|
-
},
|
|
2243
|
-
"field": {
|
|
2244
|
-
"field": "example"
|
|
2245
|
-
}
|
|
2246
|
-
},
|
|
2247
|
-
"didCompile": true,
|
|
2248
|
-
"fqnsReferenced": [
|
|
2249
|
-
"@aws-cdk/aws-redshift-alpha.ICluster",
|
|
2250
|
-
"@aws-cdk/aws-redshift-alpha.Login",
|
|
2251
|
-
"@aws-cdk/aws-redshift-alpha.Table",
|
|
2252
|
-
"@aws-cdk/aws-redshift-alpha.TableProps",
|
|
2253
|
-
"@aws-cdk/aws-redshift-alpha.TableSortStyle",
|
|
2254
|
-
"@aws-cdk/aws-redshift-alpha.TableSortStyle#COMPOUND",
|
|
2255
|
-
"aws-cdk-lib.aws_ec2.IVpc",
|
|
2256
|
-
"constructs.Construct"
|
|
2257
|
-
],
|
|
2258
|
-
"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",
|
|
2259
|
-
"syntaxKindCounter": {
|
|
2260
|
-
"10": 6,
|
|
2261
|
-
"75": 14,
|
|
2262
|
-
"104": 1,
|
|
2263
|
-
"106": 2,
|
|
2264
|
-
"192": 1,
|
|
2265
|
-
"193": 3,
|
|
2266
|
-
"194": 1,
|
|
2267
|
-
"197": 1,
|
|
2268
|
-
"226": 1,
|
|
2269
|
-
"281": 10
|
|
2270
|
-
},
|
|
2271
|
-
"fqnsFingerprint": "bc2c9d3166394b58349444f34b62c0a630a2e78d249ba83726ee5695e6637335"
|
|
2272
|
-
},
|
|
2273
|
-
"2d7b7b533f236044c567e80a258f91cf3d90d6c3b93458d9f9ac992379cda6b1": {
|
|
2274
|
-
"translations": {
|
|
2275
|
-
"python": {
|
|
2276
|
-
"source": "user = User(self, \"User\",\n cluster=cluster,\n database_name=\"databaseName\"\n)\ncluster.add_rotation_multi_user(\"MultiUserRotation\",\n secret=user.secret\n)",
|
|
2277
|
-
"version": "2"
|
|
2278
|
-
},
|
|
2279
|
-
"csharp": {
|
|
2280
|
-
"source": "User user = new User(this, \"User\", new UserProps {\n Cluster = cluster,\n DatabaseName = \"databaseName\"\n});\ncluster.AddRotationMultiUser(\"MultiUserRotation\", new RotationMultiUserOptions {\n Secret = user.Secret\n});",
|
|
2281
|
-
"version": "1"
|
|
2282
|
-
},
|
|
2283
|
-
"java": {
|
|
2284
|
-
"source": "User user = User.Builder.create(this, \"User\")\n .cluster(cluster)\n .databaseName(\"databaseName\")\n .build();\ncluster.addRotationMultiUser(\"MultiUserRotation\", RotationMultiUserOptions.builder()\n .secret(user.getSecret())\n .build());",
|
|
2285
|
-
"version": "1"
|
|
2286
|
-
},
|
|
2287
|
-
"go": {
|
|
2288
|
-
"source": "user := awscdkredshiftalpha.NewUser(this, jsii.String(\"User\"), &userProps{\n\tcluster: cluster,\n\tdatabaseName: jsii.String(\"databaseName\"),\n})\ncluster.addRotationMultiUser(jsii.String(\"MultiUserRotation\"), &rotationMultiUserOptions{\n\tsecret: user.secret,\n})",
|
|
2289
|
-
"version": "1"
|
|
2290
|
-
},
|
|
2291
|
-
"$": {
|
|
2292
|
-
"source": "\nconst user = new User(this, 'User', {\n cluster: cluster,\n databaseName: 'databaseName',\n});\ncluster.addRotationMultiUser('MultiUserRotation', {\n secret: user.secret,\n});",
|
|
2293
|
-
"version": "0"
|
|
2294
|
-
}
|
|
2295
|
-
},
|
|
2296
|
-
"location": {
|
|
2297
|
-
"api": {
|
|
2298
|
-
"api": "type",
|
|
2299
|
-
"fqn": "@aws-cdk/aws-redshift-alpha.User"
|
|
2300
|
-
},
|
|
2301
|
-
"field": {
|
|
2302
|
-
"field": "example"
|
|
2303
|
-
}
|
|
2304
|
-
},
|
|
2305
|
-
"didCompile": true,
|
|
2306
|
-
"fqnsReferenced": [
|
|
2307
|
-
"@aws-cdk/aws-redshift-alpha.Cluster#addRotationMultiUser",
|
|
2308
|
-
"@aws-cdk/aws-redshift-alpha.ICluster",
|
|
2309
|
-
"@aws-cdk/aws-redshift-alpha.Login",
|
|
2310
|
-
"@aws-cdk/aws-redshift-alpha.RotationMultiUserOptions",
|
|
2311
|
-
"@aws-cdk/aws-redshift-alpha.User",
|
|
2312
|
-
"@aws-cdk/aws-redshift-alpha.User#secret",
|
|
2313
|
-
"@aws-cdk/aws-redshift-alpha.UserProps",
|
|
2314
|
-
"aws-cdk-lib.aws_ec2.IVpc",
|
|
2315
|
-
"aws-cdk-lib.aws_secretsmanager.ISecret",
|
|
2316
|
-
"constructs.Construct"
|
|
2317
|
-
],
|
|
2318
|
-
"fullSource": "// Fixture with cluster already created\nimport { SecretValue, Stack } from 'aws-cdk-lib';\nimport { Vpc } from 'aws-cdk-lib/aws-ec2';\nimport { Cluster, Table, TableAction, TableDistStyle, TableSortStyle, User } from '@aws-cdk/aws-redshift-alpha';\nimport { Construct } from 'constructs';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n const vpc = new Vpc(this, 'Vpc');\n const cluster = new Cluster(this, 'Cluster', {\n vpc,\n masterUser: {\n masterUsername: 'admin',\n },\n });\n\n // Code snippet begins after !show marker below\n/// !show\n\nconst user = new User(this, 'User', {\n cluster: cluster,\n databaseName: 'databaseName',\n});\ncluster.addRotationMultiUser('MultiUserRotation', {\n secret: user.secret,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
|
2319
|
-
"syntaxKindCounter": {
|
|
2320
|
-
"10": 3,
|
|
2321
|
-
"75": 10,
|
|
2322
|
-
"104": 1,
|
|
2323
|
-
"193": 2,
|
|
2324
|
-
"194": 2,
|
|
2325
|
-
"196": 1,
|
|
2326
|
-
"197": 1,
|
|
2327
|
-
"225": 1,
|
|
2328
|
-
"226": 1,
|
|
2329
|
-
"242": 1,
|
|
2330
|
-
"243": 1,
|
|
2331
|
-
"281": 3
|
|
2332
|
-
},
|
|
2333
|
-
"fqnsFingerprint": "0af2d452a565970915dfd1e318284343fcdc47fab2c1e4ab556f67021a7e9b4c"
|
|
2334
|
-
},
|
|
2335
|
-
"2cf21a315059ce9a0656d5b8594fd78fe86ffe7b8fb88234f7e2e2f1443706ce": {
|
|
2336
|
-
"translations": {
|
|
2337
|
-
"python": {
|
|
2338
|
-
"source": "database_name = \"databaseName\"\nusername = \"myuser\"\ntable_name = \"mytable\"\n\nuser = User.from_user_attributes(self, \"User\",\n username=username,\n password=SecretValue.unsafe_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)",
|
|
2339
|
-
"version": "2"
|
|
2340
|
-
},
|
|
2341
|
-
"csharp": {
|
|
2342
|
-
"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.UnsafePlainText(\"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);",
|
|
2343
|
-
"version": "1"
|
|
2344
|
-
},
|
|
2345
|
-
"java": {
|
|
2346
|
-
"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.unsafePlainText(\"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);",
|
|
2347
|
-
"version": "1"
|
|
2348
|
-
},
|
|
2349
|
-
"go": {
|
|
2350
|
-
"source": "databaseName := \"databaseName\"\nusername := \"myuser\"\ntableName := \"mytable\"\n\nuser := awscdkredshiftalpha.User.fromUserAttributes(this, jsii.String(\"User\"), &userAttributes{\n\tusername: username,\n\tpassword: awscdk.SecretValue.unsafePlainText(jsii.String(\"NOT_FOR_PRODUCTION\")),\n\tcluster: cluster,\n\tdatabaseName: databaseName,\n})\ntable := awscdkredshiftalpha.Table.fromTableAttributes(this, jsii.String(\"Table\"), &tableAttributes{\n\ttableName: tableName,\n\ttableColumns: []column{\n\t\t&column{\n\t\t\tname: jsii.String(\"col1\"),\n\t\t\tdataType: jsii.String(\"varchar(4)\"),\n\t\t},\n\t\t&column{\n\t\t\tname: jsii.String(\"col2\"),\n\t\t\tdataType: jsii.String(\"float\"),\n\t\t},\n\t},\n\tcluster: cluster,\n\tdatabaseName: jsii.String(\"databaseName\"),\n})\ntable.grant(user, awscdkredshiftalpha.TableAction_INSERT)",
|
|
2351
|
-
"version": "1"
|
|
2352
|
-
},
|
|
2353
|
-
"$": {
|
|
2354
|
-
"source": "const databaseName = 'databaseName';\nconst username = 'myuser'\nconst tableName = 'mytable'\n\nconst user = User.fromUserAttributes(this, 'User', {\n username: username,\n password: SecretValue.unsafePlainText('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);",
|
|
2355
|
-
"version": "0"
|
|
2356
|
-
}
|
|
2357
|
-
},
|
|
2358
|
-
"location": {
|
|
2359
|
-
"api": {
|
|
2360
|
-
"api": "type",
|
|
2361
|
-
"fqn": "@aws-cdk/aws-redshift-alpha.UserAttributes"
|
|
2362
|
-
},
|
|
2363
|
-
"field": {
|
|
2364
|
-
"field": "example"
|
|
2365
|
-
}
|
|
2366
|
-
},
|
|
2367
|
-
"didCompile": true,
|
|
2368
|
-
"fqnsReferenced": [
|
|
2369
|
-
"@aws-cdk/aws-redshift-alpha.ICluster",
|
|
2370
|
-
"@aws-cdk/aws-redshift-alpha.ITable",
|
|
2371
|
-
"@aws-cdk/aws-redshift-alpha.ITable#grant",
|
|
2372
|
-
"@aws-cdk/aws-redshift-alpha.IUser",
|
|
2373
|
-
"@aws-cdk/aws-redshift-alpha.Login",
|
|
2374
|
-
"@aws-cdk/aws-redshift-alpha.Table#fromTableAttributes",
|
|
2375
|
-
"@aws-cdk/aws-redshift-alpha.TableAction",
|
|
2376
|
-
"@aws-cdk/aws-redshift-alpha.TableAction#INSERT",
|
|
2377
|
-
"@aws-cdk/aws-redshift-alpha.TableAttributes",
|
|
2378
|
-
"@aws-cdk/aws-redshift-alpha.User#fromUserAttributes",
|
|
2379
|
-
"@aws-cdk/aws-redshift-alpha.UserAttributes",
|
|
2380
|
-
"aws-cdk-lib.SecretValue",
|
|
2381
|
-
"aws-cdk-lib.SecretValue#unsafePlainText",
|
|
2382
|
-
"aws-cdk-lib.aws_ec2.IVpc",
|
|
2383
|
-
"constructs.Construct"
|
|
2384
|
-
],
|
|
2385
|
-
"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.unsafePlainText('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",
|
|
2386
|
-
"syntaxKindCounter": {
|
|
2387
|
-
"10": 11,
|
|
2388
|
-
"75": 33,
|
|
2389
|
-
"104": 2,
|
|
2390
|
-
"192": 1,
|
|
2391
|
-
"193": 4,
|
|
2392
|
-
"194": 5,
|
|
2393
|
-
"196": 4,
|
|
2394
|
-
"225": 5,
|
|
2395
|
-
"226": 1,
|
|
2396
|
-
"242": 5,
|
|
2397
|
-
"243": 5,
|
|
2398
|
-
"281": 12
|
|
2399
|
-
},
|
|
2400
|
-
"fqnsFingerprint": "08b1d34c50e7e6c2e3787bc61f2188de75404c266b73b7ef7e9fb90f14b87d92"
|
|
2401
|
-
},
|
|
2402
|
-
"802e3b6844c974c2034052a3e9bbbc164947a7bf6c3797ce958bdbfb4962f43f": {
|
|
2403
|
-
"translations": {
|
|
2404
|
-
"python": {
|
|
2405
|
-
"source": "user = User(self, \"User\",\n cluster=cluster,\n database_name=\"databaseName\"\n)\ncluster.add_rotation_multi_user(\"MultiUserRotation\",\n secret=user.secret\n)",
|
|
2406
|
-
"version": "2"
|
|
2407
|
-
},
|
|
2408
|
-
"csharp": {
|
|
2409
|
-
"source": "User user = new User(this, \"User\", new UserProps {\n Cluster = cluster,\n DatabaseName = \"databaseName\"\n});\ncluster.AddRotationMultiUser(\"MultiUserRotation\", new RotationMultiUserOptions {\n Secret = user.Secret\n});",
|
|
2410
|
-
"version": "1"
|
|
2411
|
-
},
|
|
2412
|
-
"java": {
|
|
2413
|
-
"source": "User user = User.Builder.create(this, \"User\")\n .cluster(cluster)\n .databaseName(\"databaseName\")\n .build();\ncluster.addRotationMultiUser(\"MultiUserRotation\", RotationMultiUserOptions.builder()\n .secret(user.getSecret())\n .build());",
|
|
2414
|
-
"version": "1"
|
|
2415
|
-
},
|
|
2416
|
-
"go": {
|
|
2417
|
-
"source": "user := awscdkredshiftalpha.NewUser(this, jsii.String(\"User\"), &userProps{\n\tcluster: cluster,\n\tdatabaseName: jsii.String(\"databaseName\"),\n})\ncluster.addRotationMultiUser(jsii.String(\"MultiUserRotation\"), &rotationMultiUserOptions{\n\tsecret: user.secret,\n})",
|
|
2418
|
-
"version": "1"
|
|
2419
|
-
},
|
|
2420
|
-
"$": {
|
|
2421
|
-
"source": "\nconst user = new User(this, 'User', {\n cluster: cluster,\n databaseName: 'databaseName',\n});\ncluster.addRotationMultiUser('MultiUserRotation', {\n secret: user.secret,\n});",
|
|
2422
|
-
"version": "0"
|
|
2423
|
-
}
|
|
2424
|
-
},
|
|
2425
|
-
"location": {
|
|
2426
|
-
"api": {
|
|
2427
|
-
"api": "type",
|
|
2428
|
-
"fqn": "@aws-cdk/aws-redshift-alpha.UserProps"
|
|
2429
|
-
},
|
|
2430
|
-
"field": {
|
|
2431
|
-
"field": "example"
|
|
2432
|
-
}
|
|
2433
|
-
},
|
|
2434
|
-
"didCompile": true,
|
|
2435
|
-
"fqnsReferenced": [
|
|
2436
|
-
"@aws-cdk/aws-redshift-alpha.Cluster#addRotationMultiUser",
|
|
2437
|
-
"@aws-cdk/aws-redshift-alpha.ICluster",
|
|
2438
|
-
"@aws-cdk/aws-redshift-alpha.Login",
|
|
2439
|
-
"@aws-cdk/aws-redshift-alpha.RotationMultiUserOptions",
|
|
2440
|
-
"@aws-cdk/aws-redshift-alpha.User",
|
|
2441
|
-
"@aws-cdk/aws-redshift-alpha.User#secret",
|
|
2442
|
-
"@aws-cdk/aws-redshift-alpha.UserProps",
|
|
2443
|
-
"aws-cdk-lib.aws_ec2.IVpc",
|
|
2444
|
-
"aws-cdk-lib.aws_secretsmanager.ISecret",
|
|
2445
|
-
"constructs.Construct"
|
|
2446
|
-
],
|
|
2447
|
-
"fullSource": "// Fixture with cluster already created\nimport { SecretValue, Stack } from 'aws-cdk-lib';\nimport { Vpc } from 'aws-cdk-lib/aws-ec2';\nimport { Cluster, Table, TableAction, TableDistStyle, TableSortStyle, User } from '@aws-cdk/aws-redshift-alpha';\nimport { Construct } from 'constructs';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n const vpc = new Vpc(this, 'Vpc');\n const cluster = new Cluster(this, 'Cluster', {\n vpc,\n masterUser: {\n masterUsername: 'admin',\n },\n });\n\n // Code snippet begins after !show marker below\n/// !show\n\nconst user = new User(this, 'User', {\n cluster: cluster,\n databaseName: 'databaseName',\n});\ncluster.addRotationMultiUser('MultiUserRotation', {\n secret: user.secret,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
|
2448
|
-
"syntaxKindCounter": {
|
|
2449
|
-
"10": 3,
|
|
2450
|
-
"75": 10,
|
|
2451
|
-
"104": 1,
|
|
2452
|
-
"193": 2,
|
|
2453
|
-
"194": 2,
|
|
2454
|
-
"196": 1,
|
|
2455
|
-
"197": 1,
|
|
2456
|
-
"225": 1,
|
|
2457
|
-
"226": 1,
|
|
2458
|
-
"242": 1,
|
|
2459
|
-
"243": 1,
|
|
2460
|
-
"281": 3
|
|
2461
|
-
},
|
|
2462
|
-
"fqnsFingerprint": "0af2d452a565970915dfd1e318284343fcdc47fab2c1e4ab556f67021a7e9b4c"
|
|
2463
|
-
}
|
|
2464
|
-
}
|
|
2465
|
-
}
|