@aws-cdk/aws-msk-alpha 2.30.0-alpha.0 → 2.31.2-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 +90 -77
- package/.jsii.tabl.json +147 -72
- package/README.md +37 -0
- package/lib/cluster-version.js +1 -1
- package/lib/cluster.js +55 -5
- package/package.json +9 -8
- package/rosetta/default.ts-fixture +2 -1
package/.jsii.tabl.json
CHANGED
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"aws-cdk-lib.aws_ec2.IVpc",
|
|
45
45
|
"constructs.Construct"
|
|
46
46
|
],
|
|
47
|
-
"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 { CfnOutput, Stack } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\nimport * as msk from '@aws-cdk/aws-msk-alpha';\nimport * as ec2 from 'aws-cdk-lib/aws-ec2';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n // Code snippet begins after !show marker below\n/// !show\n\nconst cluster = new msk.Cluster(this, 'Cluster', {\n clusterName: 'myCluster',\n kafkaVersion: msk.KafkaVersion.V2_8_1,\n vpc,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}",
|
|
47
|
+
"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 { CfnOutput, Stack } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\nimport * as msk from '@aws-cdk/aws-msk-alpha';\nimport * as ec2 from 'aws-cdk-lib/aws-ec2';\nimport * as s3 from 'aws-cdk-lib/aws-s3';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n // Code snippet begins after !show marker below\n/// !show\n\nconst cluster = new msk.Cluster(this, 'Cluster', {\n clusterName: 'myCluster',\n kafkaVersion: msk.KafkaVersion.V2_8_1,\n vpc,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
|
48
48
|
"syntaxKindCounter": {
|
|
49
49
|
"10": 2,
|
|
50
50
|
"75": 12,
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"282": 1,
|
|
63
63
|
"290": 1
|
|
64
64
|
},
|
|
65
|
-
"fqnsFingerprint": "
|
|
65
|
+
"fqnsFingerprint": "a178c002ed074fcfdd45727e7da3af3443e9516c912f088ea20e0b6171cdc390"
|
|
66
66
|
},
|
|
67
67
|
"80f51b8fa4a546bc52dbc4c74672273ce919e51eacb16461ed23f1dcd55fbbfe": {
|
|
68
68
|
"translations": {
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"aws-cdk-lib.aws_ec2.Port#tcp",
|
|
113
113
|
"constructs.Construct"
|
|
114
114
|
],
|
|
115
|
-
"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 { CfnOutput, Stack } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\nimport * as msk from '@aws-cdk/aws-msk-alpha';\nimport * as ec2 from 'aws-cdk-lib/aws-ec2';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n // Code snippet begins after !show marker below\n/// !show\n\nconst cluster = new msk.Cluster(this, 'Cluster', {\n clusterName: 'myCluster',\n kafkaVersion: msk.KafkaVersion.V2_8_1,\n vpc,\n});\n\ncluster.connections.allowFrom(\n ec2.Peer.ipv4('1.2.3.4/8'),\n ec2.Port.tcp(2181),\n);\ncluster.connections.allowFrom(\n ec2.Peer.ipv4('1.2.3.4/8'),\n ec2.Port.tcp(9094),\n);\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}",
|
|
115
|
+
"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 { CfnOutput, Stack } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\nimport * as msk from '@aws-cdk/aws-msk-alpha';\nimport * as ec2 from 'aws-cdk-lib/aws-ec2';\nimport * as s3 from 'aws-cdk-lib/aws-s3';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n // Code snippet begins after !show marker below\n/// !show\n\nconst cluster = new msk.Cluster(this, 'Cluster', {\n clusterName: 'myCluster',\n kafkaVersion: msk.KafkaVersion.V2_8_1,\n vpc,\n});\n\ncluster.connections.allowFrom(\n ec2.Peer.ipv4('1.2.3.4/8'),\n ec2.Port.tcp(2181),\n);\ncluster.connections.allowFrom(\n ec2.Peer.ipv4('1.2.3.4/8'),\n ec2.Port.tcp(9094),\n);\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
|
116
116
|
"syntaxKindCounter": {
|
|
117
117
|
"8": 2,
|
|
118
118
|
"10": 4,
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
"282": 1,
|
|
134
134
|
"290": 1
|
|
135
135
|
},
|
|
136
|
-
"fqnsFingerprint": "
|
|
136
|
+
"fqnsFingerprint": "1cef49d058fc7e49617cb7cc8550a84dbc69a5fabebd444eb90ac5b6c169b9c1"
|
|
137
137
|
},
|
|
138
138
|
"d6108f621764f957eb0cf713c39f22d9562c6e38447aa52a89ca3f716e71e4d0": {
|
|
139
139
|
"translations": {
|
|
@@ -174,7 +174,7 @@
|
|
|
174
174
|
"aws-cdk-lib.CfnOutputProps",
|
|
175
175
|
"constructs.Construct"
|
|
176
176
|
],
|
|
177
|
-
"fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const cluster: msk.Cluster;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { CfnOutput, Stack } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\nimport * as msk from '@aws-cdk/aws-msk-alpha';\nimport * as ec2 from 'aws-cdk-lib/aws-ec2';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n // Code snippet begins after !show marker below\n/// !show\n\nnew CfnOutput(this, 'BootstrapBrokers', { value: cluster.bootstrapBrokers });\nnew CfnOutput(this, 'BootstrapBrokersTls', { value: cluster.bootstrapBrokersTls });\nnew CfnOutput(this, 'BootstrapBrokersSaslScram', { value: cluster.bootstrapBrokersSaslScram });\nnew CfnOutput(this, 'ZookeeperConnection', { value: cluster.zookeeperConnectionString });\nnew CfnOutput(this, 'ZookeeperConnectionTls', { value: cluster.zookeeperConnectionStringTls });\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}",
|
|
177
|
+
"fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const cluster: msk.Cluster;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { CfnOutput, Stack } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\nimport * as msk from '@aws-cdk/aws-msk-alpha';\nimport * as ec2 from 'aws-cdk-lib/aws-ec2';\nimport * as s3 from 'aws-cdk-lib/aws-s3';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n // Code snippet begins after !show marker below\n/// !show\n\nnew CfnOutput(this, 'BootstrapBrokers', { value: cluster.bootstrapBrokers });\nnew CfnOutput(this, 'BootstrapBrokersTls', { value: cluster.bootstrapBrokersTls });\nnew CfnOutput(this, 'BootstrapBrokersSaslScram', { value: cluster.bootstrapBrokersSaslScram });\nnew CfnOutput(this, 'ZookeeperConnection', { value: cluster.zookeeperConnectionString });\nnew CfnOutput(this, 'ZookeeperConnectionTls', { value: cluster.zookeeperConnectionStringTls });\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
|
178
178
|
"syntaxKindCounter": {
|
|
179
179
|
"10": 5,
|
|
180
180
|
"75": 23,
|
|
@@ -234,7 +234,7 @@
|
|
|
234
234
|
"@aws-cdk/aws-msk-alpha.ICluster",
|
|
235
235
|
"constructs.Construct"
|
|
236
236
|
],
|
|
237
|
-
"fullSource": "// Fixture with packages imported, but nothing else\nimport { CfnOutput, Stack } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\nimport * as msk from '@aws-cdk/aws-msk-alpha';\nimport * as ec2 from 'aws-cdk-lib/aws-ec2';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n // Code snippet begins after !show marker below\n/// !show\nconst cluster = msk.Cluster.fromClusterArn(this, 'Cluster',\n 'arn:aws:kafka:us-west-2:1234567890:cluster/a-cluster/11111111-1111-1111-1111-111111111111-1',\n);\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}",
|
|
237
|
+
"fullSource": "// Fixture with packages imported, but nothing else\nimport { CfnOutput, Stack } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\nimport * as msk from '@aws-cdk/aws-msk-alpha';\nimport * as ec2 from 'aws-cdk-lib/aws-ec2';\nimport * as s3 from 'aws-cdk-lib/aws-s3';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n // Code snippet begins after !show marker below\n/// !show\nconst cluster = msk.Cluster.fromClusterArn(this, 'Cluster',\n 'arn:aws:kafka:us-west-2:1234567890:cluster/a-cluster/11111111-1111-1111-1111-111111111111-1',\n);\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
|
238
238
|
"syntaxKindCounter": {
|
|
239
239
|
"10": 2,
|
|
240
240
|
"75": 4,
|
|
@@ -245,7 +245,7 @@
|
|
|
245
245
|
"242": 1,
|
|
246
246
|
"243": 1
|
|
247
247
|
},
|
|
248
|
-
"fqnsFingerprint": "
|
|
248
|
+
"fqnsFingerprint": "c65edc4b79c780846881b4fbf47d36df6a797f3159ef045240da3b0127373910"
|
|
249
249
|
},
|
|
250
250
|
"e884778546491097d36c3d147b400c75217b54e4f09c8d3a4fb48f69bf9f48c6": {
|
|
251
251
|
"translations": {
|
|
@@ -297,7 +297,7 @@
|
|
|
297
297
|
"aws-cdk-lib.aws_ec2.IVpc",
|
|
298
298
|
"constructs.Construct"
|
|
299
299
|
],
|
|
300
|
-
"fullSource": "// Hoisted imports begin after !show marker below\n/// !show\nimport * as acmpca from 'aws-cdk-lib/aws-acmpca';\n\ndeclare const vpc: ec2.Vpc;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { CfnOutput, Stack } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\nimport * as msk from '@aws-cdk/aws-msk-alpha';\nimport * as ec2 from 'aws-cdk-lib/aws-ec2';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n // Code snippet begins after !show marker below\n/// !show\n\nconst cluster = new msk.Cluster(this, 'Cluster', {\n clusterName: 'myCluster',\n kafkaVersion: msk.KafkaVersion.V2_8_1,\n vpc,\n encryptionInTransit: {\n clientBroker: msk.ClientBrokerEncryption.TLS,\n },\n clientAuthentication: msk.ClientAuthentication.tls({\n certificateAuthorities: [\n acmpca.CertificateAuthority.fromCertificateAuthorityArn(\n this,\n 'CertificateAuthority',\n 'arn:aws:acm-pca:us-west-2:1234567890:certificate-authority/11111111-1111-1111-1111-111111111111',\n ),\n ],\n }),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}",
|
|
300
|
+
"fullSource": "// Hoisted imports begin after !show marker below\n/// !show\nimport * as acmpca from 'aws-cdk-lib/aws-acmpca';\n\ndeclare const vpc: ec2.Vpc;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { CfnOutput, Stack } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\nimport * as msk from '@aws-cdk/aws-msk-alpha';\nimport * as ec2 from 'aws-cdk-lib/aws-ec2';\nimport * as s3 from 'aws-cdk-lib/aws-s3';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n // Code snippet begins after !show marker below\n/// !show\n\nconst cluster = new msk.Cluster(this, 'Cluster', {\n clusterName: 'myCluster',\n kafkaVersion: msk.KafkaVersion.V2_8_1,\n vpc,\n encryptionInTransit: {\n clientBroker: msk.ClientBrokerEncryption.TLS,\n },\n clientAuthentication: msk.ClientAuthentication.tls({\n certificateAuthorities: [\n acmpca.CertificateAuthority.fromCertificateAuthorityArn(\n this,\n 'CertificateAuthority',\n 'arn:aws:acm-pca:us-west-2:1234567890:certificate-authority/11111111-1111-1111-1111-111111111111',\n ),\n ],\n }),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
|
301
301
|
"syntaxKindCounter": {
|
|
302
302
|
"10": 5,
|
|
303
303
|
"75": 26,
|
|
@@ -320,7 +320,7 @@
|
|
|
320
320
|
"282": 1,
|
|
321
321
|
"290": 1
|
|
322
322
|
},
|
|
323
|
-
"fqnsFingerprint": "
|
|
323
|
+
"fqnsFingerprint": "ac39ec419b247df95255ea5b60050e21dd26660c7dfaddc8e65285690acd111f"
|
|
324
324
|
},
|
|
325
325
|
"6473cc4b25cddd0a6b21bd04668d63c816d37abc98e2ffc9784c6d276b80c241": {
|
|
326
326
|
"translations": {
|
|
@@ -370,7 +370,7 @@
|
|
|
370
370
|
"aws-cdk-lib.aws_ec2.IVpc",
|
|
371
371
|
"constructs.Construct"
|
|
372
372
|
],
|
|
373
|
-
"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 { CfnOutput, Stack } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\nimport * as msk from '@aws-cdk/aws-msk-alpha';\nimport * as ec2 from 'aws-cdk-lib/aws-ec2';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n // Code snippet begins after !show marker below\n/// !show\n\nconst cluster = new msk.Cluster(this, 'cluster', {\n clusterName: 'myCluster',\n kafkaVersion: msk.KafkaVersion.V2_8_1,\n vpc,\n encryptionInTransit: {\n clientBroker: msk.ClientBrokerEncryption.TLS,\n },\n clientAuthentication: msk.ClientAuthentication.sasl({\n scram: true,\n }),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}",
|
|
373
|
+
"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 { CfnOutput, Stack } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\nimport * as msk from '@aws-cdk/aws-msk-alpha';\nimport * as ec2 from 'aws-cdk-lib/aws-ec2';\nimport * as s3 from 'aws-cdk-lib/aws-s3';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n // Code snippet begins after !show marker below\n/// !show\n\nconst cluster = new msk.Cluster(this, 'cluster', {\n clusterName: 'myCluster',\n kafkaVersion: msk.KafkaVersion.V2_8_1,\n vpc,\n encryptionInTransit: {\n clientBroker: msk.ClientBrokerEncryption.TLS,\n },\n clientAuthentication: msk.ClientAuthentication.sasl({\n scram: true,\n }),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
|
374
374
|
"syntaxKindCounter": {
|
|
375
375
|
"10": 2,
|
|
376
376
|
"75": 22,
|
|
@@ -390,7 +390,7 @@
|
|
|
390
390
|
"282": 1,
|
|
391
391
|
"290": 1
|
|
392
392
|
},
|
|
393
|
-
"fqnsFingerprint": "
|
|
393
|
+
"fqnsFingerprint": "0ccb62f02c0c4c6e6612791611d48b0d240b0be5a15249da66ed2aec962c645c"
|
|
394
394
|
},
|
|
395
395
|
"ff4280f83da88b9826a806ac351865b90d9e26c988ee468ff6a9c34bab93f7cd": {
|
|
396
396
|
"translations": {
|
|
@@ -440,7 +440,7 @@
|
|
|
440
440
|
"aws-cdk-lib.aws_ec2.IVpc",
|
|
441
441
|
"constructs.Construct"
|
|
442
442
|
],
|
|
443
|
-
"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 { CfnOutput, Stack } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\nimport * as msk from '@aws-cdk/aws-msk-alpha';\nimport * as ec2 from 'aws-cdk-lib/aws-ec2';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n // Code snippet begins after !show marker below\n/// !show\n\nconst cluster = new msk.Cluster(this, 'cluster', {\n clusterName: 'myCluster',\n kafkaVersion: msk.KafkaVersion.V2_8_1,\n vpc,\n encryptionInTransit: {\n clientBroker: msk.ClientBrokerEncryption.TLS,\n },\n clientAuthentication: msk.ClientAuthentication.sasl({\n iam: true,\n }),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}",
|
|
443
|
+
"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 { CfnOutput, Stack } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\nimport * as msk from '@aws-cdk/aws-msk-alpha';\nimport * as ec2 from 'aws-cdk-lib/aws-ec2';\nimport * as s3 from 'aws-cdk-lib/aws-s3';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n // Code snippet begins after !show marker below\n/// !show\n\nconst cluster = new msk.Cluster(this, 'cluster', {\n clusterName: 'myCluster',\n kafkaVersion: msk.KafkaVersion.V2_8_1,\n vpc,\n encryptionInTransit: {\n clientBroker: msk.ClientBrokerEncryption.TLS,\n },\n clientAuthentication: msk.ClientAuthentication.sasl({\n iam: true,\n }),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
|
444
444
|
"syntaxKindCounter": {
|
|
445
445
|
"10": 2,
|
|
446
446
|
"75": 22,
|
|
@@ -460,28 +460,93 @@
|
|
|
460
460
|
"282": 1,
|
|
461
461
|
"290": 1
|
|
462
462
|
},
|
|
463
|
-
"fqnsFingerprint": "
|
|
463
|
+
"fqnsFingerprint": "0ccb62f02c0c4c6e6612791611d48b0d240b0be5a15249da66ed2aec962c645c"
|
|
464
464
|
},
|
|
465
|
-
"
|
|
465
|
+
"fb10c9d479d6ea3373c3fa41395f5c5706bf075978eaf7531a694fd7d8aa5423": {
|
|
466
466
|
"translations": {
|
|
467
467
|
"python": {
|
|
468
|
-
"source": "#
|
|
468
|
+
"source": "# vpc: ec2.Vpc\n# bucket: s3.IBucket\n\ncluster = msk.Cluster(self, \"cluster\",\n cluster_name=\"myCluster\",\n kafka_version=msk.KafkaVersion.V2_8_1,\n vpc=vpc,\n logging=msk.BrokerLogging(\n s3=msk.S3LoggingConfiguration(\n bucket=bucket\n )\n )\n)",
|
|
469
469
|
"version": "2"
|
|
470
470
|
},
|
|
471
471
|
"csharp": {
|
|
472
|
-
"source": "
|
|
472
|
+
"source": "Vpc vpc;\nIBucket bucket;\n\nCluster cluster = new Cluster(this, \"cluster\", new ClusterProps {\n ClusterName = \"myCluster\",\n KafkaVersion = KafkaVersion.V2_8_1,\n Vpc = vpc,\n Logging = new BrokerLogging {\n S3 = new S3LoggingConfiguration {\n Bucket = bucket\n }\n }\n});",
|
|
473
473
|
"version": "1"
|
|
474
474
|
},
|
|
475
475
|
"java": {
|
|
476
|
-
"source": "
|
|
476
|
+
"source": "Vpc vpc;\nIBucket bucket;\n\nCluster cluster = Cluster.Builder.create(this, \"cluster\")\n .clusterName(\"myCluster\")\n .kafkaVersion(KafkaVersion.V2_8_1)\n .vpc(vpc)\n .logging(BrokerLogging.builder()\n .s3(S3LoggingConfiguration.builder()\n .bucket(bucket)\n .build())\n .build())\n .build();",
|
|
477
477
|
"version": "1"
|
|
478
478
|
},
|
|
479
479
|
"go": {
|
|
480
|
-
"source": "
|
|
480
|
+
"source": "var vpc vpc\nvar bucket iBucket\n\ncluster := msk.NewCluster(this, jsii.String(\"cluster\"), &clusterProps{\n\tclusterName: jsii.String(\"myCluster\"),\n\tkafkaVersion: msk.kafkaVersion_V2_8_1(),\n\tvpc: vpc,\n\tlogging: &brokerLogging{\n\t\ts3: &s3LoggingConfiguration{\n\t\t\tbucket: bucket,\n\t\t},\n\t},\n})",
|
|
481
481
|
"version": "1"
|
|
482
482
|
},
|
|
483
483
|
"$": {
|
|
484
|
-
"source": "
|
|
484
|
+
"source": "declare const vpc: ec2.Vpc;\ndeclare const bucket: s3.IBucket;\nconst cluster = new msk.Cluster(this, 'cluster', {\n clusterName: 'myCluster',\n kafkaVersion: msk.KafkaVersion.V2_8_1,\n vpc,\n logging: {\n s3: {\n bucket,\n },\n },\n});",
|
|
485
|
+
"version": "0"
|
|
486
|
+
}
|
|
487
|
+
},
|
|
488
|
+
"location": {
|
|
489
|
+
"api": {
|
|
490
|
+
"api": "moduleReadme",
|
|
491
|
+
"moduleFqn": "@aws-cdk/aws-msk-alpha"
|
|
492
|
+
},
|
|
493
|
+
"field": {
|
|
494
|
+
"field": "markdown",
|
|
495
|
+
"line": 154
|
|
496
|
+
}
|
|
497
|
+
},
|
|
498
|
+
"didCompile": true,
|
|
499
|
+
"fqnsReferenced": [
|
|
500
|
+
"@aws-cdk/aws-msk-alpha.BrokerLogging",
|
|
501
|
+
"@aws-cdk/aws-msk-alpha.Cluster",
|
|
502
|
+
"@aws-cdk/aws-msk-alpha.ClusterProps",
|
|
503
|
+
"@aws-cdk/aws-msk-alpha.KafkaVersion",
|
|
504
|
+
"@aws-cdk/aws-msk-alpha.KafkaVersion#V2_8_1",
|
|
505
|
+
"@aws-cdk/aws-msk-alpha.S3LoggingConfiguration",
|
|
506
|
+
"aws-cdk-lib.aws_ec2.IVpc",
|
|
507
|
+
"aws-cdk-lib.aws_s3.IBucket",
|
|
508
|
+
"constructs.Construct"
|
|
509
|
+
],
|
|
510
|
+
"fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const vpc: ec2.Vpc;\ndeclare const bucket: s3.IBucket;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { CfnOutput, Stack } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\nimport * as msk from '@aws-cdk/aws-msk-alpha';\nimport * as ec2 from 'aws-cdk-lib/aws-ec2';\nimport * as s3 from 'aws-cdk-lib/aws-s3';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n // Code snippet begins after !show marker below\n/// !show\n\nconst cluster = new msk.Cluster(this, 'cluster', {\n clusterName: 'myCluster',\n kafkaVersion: msk.KafkaVersion.V2_8_1,\n vpc,\n logging: {\n s3: {\n bucket,\n },\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
|
511
|
+
"syntaxKindCounter": {
|
|
512
|
+
"10": 2,
|
|
513
|
+
"75": 18,
|
|
514
|
+
"104": 1,
|
|
515
|
+
"130": 2,
|
|
516
|
+
"153": 2,
|
|
517
|
+
"169": 2,
|
|
518
|
+
"193": 3,
|
|
519
|
+
"194": 3,
|
|
520
|
+
"197": 1,
|
|
521
|
+
"225": 3,
|
|
522
|
+
"242": 3,
|
|
523
|
+
"243": 3,
|
|
524
|
+
"281": 4,
|
|
525
|
+
"282": 2,
|
|
526
|
+
"290": 1
|
|
527
|
+
},
|
|
528
|
+
"fqnsFingerprint": "7315f94146c8c3c4932bdacae903c4bbe4d40c1f32810147a9633fc6c19d3daa"
|
|
529
|
+
},
|
|
530
|
+
"370d5a436be1e16e1c5411237198771e3d093ce4b991cd65b2313947b9205de7": {
|
|
531
|
+
"translations": {
|
|
532
|
+
"python": {
|
|
533
|
+
"source": "# vpc: ec2.Vpc\n# bucket: s3.IBucket\n\ncluster = msk.Cluster(self, \"cluster\",\n cluster_name=\"myCluster\",\n kafka_version=msk.KafkaVersion.V2_8_1,\n vpc=vpc,\n logging=msk.BrokerLogging(\n s3=msk.S3LoggingConfiguration(\n bucket=bucket\n )\n )\n)",
|
|
534
|
+
"version": "2"
|
|
535
|
+
},
|
|
536
|
+
"csharp": {
|
|
537
|
+
"source": "Vpc vpc;\nIBucket bucket;\n\nCluster cluster = new Cluster(this, \"cluster\", new ClusterProps {\n ClusterName = \"myCluster\",\n KafkaVersion = KafkaVersion.V2_8_1,\n Vpc = vpc,\n Logging = new BrokerLogging {\n S3 = new S3LoggingConfiguration {\n Bucket = bucket\n }\n }\n});",
|
|
538
|
+
"version": "1"
|
|
539
|
+
},
|
|
540
|
+
"java": {
|
|
541
|
+
"source": "Vpc vpc;\nIBucket bucket;\n\nCluster cluster = Cluster.Builder.create(this, \"cluster\")\n .clusterName(\"myCluster\")\n .kafkaVersion(KafkaVersion.V2_8_1)\n .vpc(vpc)\n .logging(BrokerLogging.builder()\n .s3(S3LoggingConfiguration.builder()\n .bucket(bucket)\n .build())\n .build())\n .build();",
|
|
542
|
+
"version": "1"
|
|
543
|
+
},
|
|
544
|
+
"go": {
|
|
545
|
+
"source": "var vpc vpc\nvar bucket iBucket\n\ncluster := msk.NewCluster(this, jsii.String(\"cluster\"), &clusterProps{\n\tclusterName: jsii.String(\"myCluster\"),\n\tkafkaVersion: msk.kafkaVersion_V2_8_1(),\n\tvpc: vpc,\n\tlogging: &brokerLogging{\n\t\ts3: &s3LoggingConfiguration{\n\t\t\tbucket: bucket,\n\t\t},\n\t},\n})",
|
|
546
|
+
"version": "1"
|
|
547
|
+
},
|
|
548
|
+
"$": {
|
|
549
|
+
"source": "declare const vpc: ec2.Vpc;\ndeclare const bucket: s3.IBucket;\nconst cluster = new msk.Cluster(this, 'cluster', {\n clusterName: 'myCluster',\n kafkaVersion: msk.KafkaVersion.V2_8_1,\n vpc,\n logging: {\n s3: {\n bucket,\n },\n },\n});",
|
|
485
550
|
"version": "0"
|
|
486
551
|
}
|
|
487
552
|
},
|
|
@@ -497,30 +562,34 @@
|
|
|
497
562
|
"didCompile": true,
|
|
498
563
|
"fqnsReferenced": [
|
|
499
564
|
"@aws-cdk/aws-msk-alpha.BrokerLogging",
|
|
565
|
+
"@aws-cdk/aws-msk-alpha.Cluster",
|
|
566
|
+
"@aws-cdk/aws-msk-alpha.ClusterProps",
|
|
567
|
+
"@aws-cdk/aws-msk-alpha.KafkaVersion",
|
|
568
|
+
"@aws-cdk/aws-msk-alpha.KafkaVersion#V2_8_1",
|
|
500
569
|
"@aws-cdk/aws-msk-alpha.S3LoggingConfiguration",
|
|
501
|
-
"aws-cdk-lib.
|
|
502
|
-
"aws-cdk-lib.aws_s3.IBucket"
|
|
570
|
+
"aws-cdk-lib.aws_ec2.IVpc",
|
|
571
|
+
"aws-cdk-lib.aws_s3.IBucket",
|
|
572
|
+
"constructs.Construct"
|
|
503
573
|
],
|
|
504
|
-
"fullSource": "// Hoisted imports begin after !show marker below\n/// !show\
|
|
574
|
+
"fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const vpc: ec2.Vpc;\ndeclare const bucket: s3.IBucket;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { CfnOutput, Stack } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\nimport * as msk from '@aws-cdk/aws-msk-alpha';\nimport * as ec2 from 'aws-cdk-lib/aws-ec2';\nimport * as s3 from 'aws-cdk-lib/aws-s3';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n // Code snippet begins after !show marker below\n/// !show\n\nconst cluster = new msk.Cluster(this, 'cluster', {\n clusterName: 'myCluster',\n kafkaVersion: msk.KafkaVersion.V2_8_1,\n vpc,\n logging: {\n s3: {\n bucket,\n },\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
|
505
575
|
"syntaxKindCounter": {
|
|
506
|
-
"10":
|
|
507
|
-
"75":
|
|
576
|
+
"10": 2,
|
|
577
|
+
"75": 18,
|
|
578
|
+
"104": 1,
|
|
508
579
|
"130": 2,
|
|
509
|
-
"153":
|
|
510
|
-
"169":
|
|
511
|
-
"193":
|
|
580
|
+
"153": 2,
|
|
581
|
+
"169": 2,
|
|
582
|
+
"193": 3,
|
|
583
|
+
"194": 3,
|
|
584
|
+
"197": 1,
|
|
512
585
|
"225": 3,
|
|
513
586
|
"242": 3,
|
|
514
587
|
"243": 3,
|
|
515
|
-
"
|
|
516
|
-
"
|
|
517
|
-
"256": 1,
|
|
518
|
-
"257": 2,
|
|
519
|
-
"258": 2,
|
|
520
|
-
"281": 5,
|
|
588
|
+
"281": 4,
|
|
589
|
+
"282": 2,
|
|
521
590
|
"290": 1
|
|
522
591
|
},
|
|
523
|
-
"fqnsFingerprint": "
|
|
592
|
+
"fqnsFingerprint": "7315f94146c8c3c4932bdacae903c4bbe4d40c1f32810147a9633fc6c19d3daa"
|
|
524
593
|
},
|
|
525
594
|
"1b506592a03e4321a2590bb92b1d40c2a3b08b1b7f4fc542a634d7ea180092a8": {
|
|
526
595
|
"translations": {
|
|
@@ -569,7 +638,7 @@
|
|
|
569
638
|
"aws-cdk-lib.aws_ec2.IVpc",
|
|
570
639
|
"constructs.Construct"
|
|
571
640
|
],
|
|
572
|
-
"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 { CfnOutput, Stack } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\nimport * as msk from '@aws-cdk/aws-msk-alpha';\nimport * as ec2 from 'aws-cdk-lib/aws-ec2';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n // Code snippet begins after !show marker below\n/// !show\n\nconst cluster = new msk.Cluster(this, 'cluster', {\n clusterName: 'myCluster',\n kafkaVersion: msk.KafkaVersion.V2_8_1,\n vpc,\n encryptionInTransit: {\n clientBroker: msk.ClientBrokerEncryption.TLS,\n },\n clientAuthentication: msk.ClientAuthentication.sasl({\n scram: true,\n }),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}",
|
|
641
|
+
"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 { CfnOutput, Stack } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\nimport * as msk from '@aws-cdk/aws-msk-alpha';\nimport * as ec2 from 'aws-cdk-lib/aws-ec2';\nimport * as s3 from 'aws-cdk-lib/aws-s3';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n // Code snippet begins after !show marker below\n/// !show\n\nconst cluster = new msk.Cluster(this, 'cluster', {\n clusterName: 'myCluster',\n kafkaVersion: msk.KafkaVersion.V2_8_1,\n vpc,\n encryptionInTransit: {\n clientBroker: msk.ClientBrokerEncryption.TLS,\n },\n clientAuthentication: msk.ClientAuthentication.sasl({\n scram: true,\n }),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
|
573
642
|
"syntaxKindCounter": {
|
|
574
643
|
"10": 2,
|
|
575
644
|
"75": 22,
|
|
@@ -589,7 +658,7 @@
|
|
|
589
658
|
"282": 1,
|
|
590
659
|
"290": 1
|
|
591
660
|
},
|
|
592
|
-
"fqnsFingerprint": "
|
|
661
|
+
"fqnsFingerprint": "0ccb62f02c0c4c6e6612791611d48b0d240b0be5a15249da66ed2aec962c645c"
|
|
593
662
|
},
|
|
594
663
|
"dd782f7b5d131665544df13665a666c6ccd6395ad137dcd571d82e82fbfd4846": {
|
|
595
664
|
"translations": {
|
|
@@ -638,7 +707,7 @@
|
|
|
638
707
|
"aws-cdk-lib.aws_ec2.IVpc",
|
|
639
708
|
"constructs.Construct"
|
|
640
709
|
],
|
|
641
|
-
"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 { CfnOutput, Stack } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\nimport * as msk from '@aws-cdk/aws-msk-alpha';\nimport * as ec2 from 'aws-cdk-lib/aws-ec2';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n // Code snippet begins after !show marker below\n/// !show\n\nconst cluster = new msk.Cluster(this, 'cluster', {\n clusterName: 'myCluster',\n kafkaVersion: msk.KafkaVersion.V2_8_1,\n vpc,\n encryptionInTransit: {\n clientBroker: msk.ClientBrokerEncryption.TLS,\n },\n clientAuthentication: msk.ClientAuthentication.sasl({\n scram: true,\n }),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}",
|
|
710
|
+
"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 { CfnOutput, Stack } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\nimport * as msk from '@aws-cdk/aws-msk-alpha';\nimport * as ec2 from 'aws-cdk-lib/aws-ec2';\nimport * as s3 from 'aws-cdk-lib/aws-s3';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n // Code snippet begins after !show marker below\n/// !show\n\nconst cluster = new msk.Cluster(this, 'cluster', {\n clusterName: 'myCluster',\n kafkaVersion: msk.KafkaVersion.V2_8_1,\n vpc,\n encryptionInTransit: {\n clientBroker: msk.ClientBrokerEncryption.TLS,\n },\n clientAuthentication: msk.ClientAuthentication.sasl({\n scram: true,\n }),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
|
642
711
|
"syntaxKindCounter": {
|
|
643
712
|
"10": 2,
|
|
644
713
|
"75": 22,
|
|
@@ -658,7 +727,7 @@
|
|
|
658
727
|
"282": 1,
|
|
659
728
|
"290": 1
|
|
660
729
|
},
|
|
661
|
-
"fqnsFingerprint": "
|
|
730
|
+
"fqnsFingerprint": "0ccb62f02c0c4c6e6612791611d48b0d240b0be5a15249da66ed2aec962c645c"
|
|
662
731
|
},
|
|
663
732
|
"e1622851fca018382002722cbcc82c9042347e9010aba0984d77396019db5ced": {
|
|
664
733
|
"translations": {
|
|
@@ -707,7 +776,7 @@
|
|
|
707
776
|
"aws-cdk-lib.aws_ec2.IVpc",
|
|
708
777
|
"constructs.Construct"
|
|
709
778
|
],
|
|
710
|
-
"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 { CfnOutput, Stack } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\nimport * as msk from '@aws-cdk/aws-msk-alpha';\nimport * as ec2 from 'aws-cdk-lib/aws-ec2';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n // Code snippet begins after !show marker below\n/// !show\n\nconst cluster = new msk.Cluster(this, 'cluster', {\n clusterName: 'myCluster',\n kafkaVersion: msk.KafkaVersion.V2_8_1,\n vpc,\n encryptionInTransit: {\n clientBroker: msk.ClientBrokerEncryption.TLS,\n },\n clientAuthentication: msk.ClientAuthentication.sasl({\n scram: true,\n }),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}",
|
|
779
|
+
"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 { CfnOutput, Stack } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\nimport * as msk from '@aws-cdk/aws-msk-alpha';\nimport * as ec2 from 'aws-cdk-lib/aws-ec2';\nimport * as s3 from 'aws-cdk-lib/aws-s3';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n // Code snippet begins after !show marker below\n/// !show\n\nconst cluster = new msk.Cluster(this, 'cluster', {\n clusterName: 'myCluster',\n kafkaVersion: msk.KafkaVersion.V2_8_1,\n vpc,\n encryptionInTransit: {\n clientBroker: msk.ClientBrokerEncryption.TLS,\n },\n clientAuthentication: msk.ClientAuthentication.sasl({\n scram: true,\n }),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
|
711
780
|
"syntaxKindCounter": {
|
|
712
781
|
"10": 2,
|
|
713
782
|
"75": 22,
|
|
@@ -727,7 +796,7 @@
|
|
|
727
796
|
"282": 1,
|
|
728
797
|
"290": 1
|
|
729
798
|
},
|
|
730
|
-
"fqnsFingerprint": "
|
|
799
|
+
"fqnsFingerprint": "0ccb62f02c0c4c6e6612791611d48b0d240b0be5a15249da66ed2aec962c645c"
|
|
731
800
|
},
|
|
732
801
|
"8888290d454b2f1c84cb95896d64bf084cbbc6f841bab461b3f4b81a18ddc6f9": {
|
|
733
802
|
"translations": {
|
|
@@ -831,7 +900,7 @@
|
|
|
831
900
|
"aws-cdk-lib.aws_ec2.IVpc",
|
|
832
901
|
"constructs.Construct"
|
|
833
902
|
],
|
|
834
|
-
"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 { CfnOutput, Stack } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\nimport * as msk from '@aws-cdk/aws-msk-alpha';\nimport * as ec2 from 'aws-cdk-lib/aws-ec2';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n // Code snippet begins after !show marker below\n/// !show\n\nconst cluster = new msk.Cluster(this, 'cluster', {\n clusterName: 'myCluster',\n kafkaVersion: msk.KafkaVersion.V2_8_1,\n vpc,\n encryptionInTransit: {\n clientBroker: msk.ClientBrokerEncryption.TLS,\n },\n clientAuthentication: msk.ClientAuthentication.sasl({\n scram: true,\n }),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}",
|
|
903
|
+
"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 { CfnOutput, Stack } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\nimport * as msk from '@aws-cdk/aws-msk-alpha';\nimport * as ec2 from 'aws-cdk-lib/aws-ec2';\nimport * as s3 from 'aws-cdk-lib/aws-s3';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n // Code snippet begins after !show marker below\n/// !show\n\nconst cluster = new msk.Cluster(this, 'cluster', {\n clusterName: 'myCluster',\n kafkaVersion: msk.KafkaVersion.V2_8_1,\n vpc,\n encryptionInTransit: {\n clientBroker: msk.ClientBrokerEncryption.TLS,\n },\n clientAuthentication: msk.ClientAuthentication.sasl({\n scram: true,\n }),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
|
835
904
|
"syntaxKindCounter": {
|
|
836
905
|
"10": 2,
|
|
837
906
|
"75": 22,
|
|
@@ -851,7 +920,7 @@
|
|
|
851
920
|
"282": 1,
|
|
852
921
|
"290": 1
|
|
853
922
|
},
|
|
854
|
-
"fqnsFingerprint": "
|
|
923
|
+
"fqnsFingerprint": "0ccb62f02c0c4c6e6612791611d48b0d240b0be5a15249da66ed2aec962c645c"
|
|
855
924
|
},
|
|
856
925
|
"c6e128aabb3ac9937e6654bd018a9974402c4be71960628c3d254bc788c85dd6": {
|
|
857
926
|
"translations": {
|
|
@@ -959,7 +1028,7 @@
|
|
|
959
1028
|
"aws-cdk-lib.aws_ec2.IVpc",
|
|
960
1029
|
"constructs.Construct"
|
|
961
1030
|
],
|
|
962
|
-
"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 { CfnOutput, Stack } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\nimport * as msk from '@aws-cdk/aws-msk-alpha';\nimport * as ec2 from 'aws-cdk-lib/aws-ec2';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n // Code snippet begins after !show marker below\n/// !show\n\nconst cluster = new msk.Cluster(this, 'cluster', {\n clusterName: 'myCluster',\n kafkaVersion: msk.KafkaVersion.V2_8_1,\n vpc,\n encryptionInTransit: {\n clientBroker: msk.ClientBrokerEncryption.TLS,\n },\n clientAuthentication: msk.ClientAuthentication.sasl({\n scram: true,\n }),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}",
|
|
1031
|
+
"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 { CfnOutput, Stack } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\nimport * as msk from '@aws-cdk/aws-msk-alpha';\nimport * as ec2 from 'aws-cdk-lib/aws-ec2';\nimport * as s3 from 'aws-cdk-lib/aws-s3';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n // Code snippet begins after !show marker below\n/// !show\n\nconst cluster = new msk.Cluster(this, 'cluster', {\n clusterName: 'myCluster',\n kafkaVersion: msk.KafkaVersion.V2_8_1,\n vpc,\n encryptionInTransit: {\n clientBroker: msk.ClientBrokerEncryption.TLS,\n },\n clientAuthentication: msk.ClientAuthentication.sasl({\n scram: true,\n }),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
|
963
1032
|
"syntaxKindCounter": {
|
|
964
1033
|
"10": 2,
|
|
965
1034
|
"75": 22,
|
|
@@ -979,7 +1048,7 @@
|
|
|
979
1048
|
"282": 1,
|
|
980
1049
|
"290": 1
|
|
981
1050
|
},
|
|
982
|
-
"fqnsFingerprint": "
|
|
1051
|
+
"fqnsFingerprint": "0ccb62f02c0c4c6e6612791611d48b0d240b0be5a15249da66ed2aec962c645c"
|
|
983
1052
|
},
|
|
984
1053
|
"9706bb7ec60ca26bf0565bb6843e9ecd368ba381302ba3c8475e30b62c651070": {
|
|
985
1054
|
"translations": {
|
|
@@ -1028,7 +1097,7 @@
|
|
|
1028
1097
|
"aws-cdk-lib.aws_ec2.IVpc",
|
|
1029
1098
|
"constructs.Construct"
|
|
1030
1099
|
],
|
|
1031
|
-
"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 { CfnOutput, Stack } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\nimport * as msk from '@aws-cdk/aws-msk-alpha';\nimport * as ec2 from 'aws-cdk-lib/aws-ec2';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n // Code snippet begins after !show marker below\n/// !show\n\nconst cluster = new msk.Cluster(this, 'cluster', {\n clusterName: 'myCluster',\n kafkaVersion: msk.KafkaVersion.V2_8_1,\n vpc,\n encryptionInTransit: {\n clientBroker: msk.ClientBrokerEncryption.TLS,\n },\n clientAuthentication: msk.ClientAuthentication.sasl({\n scram: true,\n }),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}",
|
|
1100
|
+
"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 { CfnOutput, Stack } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\nimport * as msk from '@aws-cdk/aws-msk-alpha';\nimport * as ec2 from 'aws-cdk-lib/aws-ec2';\nimport * as s3 from 'aws-cdk-lib/aws-s3';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n // Code snippet begins after !show marker below\n/// !show\n\nconst cluster = new msk.Cluster(this, 'cluster', {\n clusterName: 'myCluster',\n kafkaVersion: msk.KafkaVersion.V2_8_1,\n vpc,\n encryptionInTransit: {\n clientBroker: msk.ClientBrokerEncryption.TLS,\n },\n clientAuthentication: msk.ClientAuthentication.sasl({\n scram: true,\n }),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
|
1032
1101
|
"syntaxKindCounter": {
|
|
1033
1102
|
"10": 2,
|
|
1034
1103
|
"75": 22,
|
|
@@ -1048,7 +1117,7 @@
|
|
|
1048
1117
|
"282": 1,
|
|
1049
1118
|
"290": 1
|
|
1050
1119
|
},
|
|
1051
|
-
"fqnsFingerprint": "
|
|
1120
|
+
"fqnsFingerprint": "0ccb62f02c0c4c6e6612791611d48b0d240b0be5a15249da66ed2aec962c645c"
|
|
1052
1121
|
},
|
|
1053
1122
|
"5410896da3de0d4f9bec616d980ea951f621e4f32309a422fda56dbe6d125977": {
|
|
1054
1123
|
"translations": {
|
|
@@ -1108,26 +1177,26 @@
|
|
|
1108
1177
|
},
|
|
1109
1178
|
"fqnsFingerprint": "3bca81424de8d7cc1f47d1cce71a658d46254ac4f690ef598343fedd3284ac54"
|
|
1110
1179
|
},
|
|
1111
|
-
"
|
|
1180
|
+
"6f5f6524b847ae63f562cb33c5a49e868766e4dacddee5042c68dc0f6a5c4dae": {
|
|
1112
1181
|
"translations": {
|
|
1113
1182
|
"python": {
|
|
1114
|
-
"source": "#
|
|
1183
|
+
"source": "# vpc: ec2.Vpc\n# bucket: s3.IBucket\n\ncluster = msk.Cluster(self, \"cluster\",\n cluster_name=\"myCluster\",\n kafka_version=msk.KafkaVersion.V2_8_1,\n vpc=vpc,\n logging=msk.BrokerLogging(\n s3=msk.S3LoggingConfiguration(\n bucket=bucket\n )\n )\n)",
|
|
1115
1184
|
"version": "2"
|
|
1116
1185
|
},
|
|
1117
1186
|
"csharp": {
|
|
1118
|
-
"source": "
|
|
1187
|
+
"source": "Vpc vpc;\nIBucket bucket;\n\nCluster cluster = new Cluster(this, \"cluster\", new ClusterProps {\n ClusterName = \"myCluster\",\n KafkaVersion = KafkaVersion.V2_8_1,\n Vpc = vpc,\n Logging = new BrokerLogging {\n S3 = new S3LoggingConfiguration {\n Bucket = bucket\n }\n }\n});",
|
|
1119
1188
|
"version": "1"
|
|
1120
1189
|
},
|
|
1121
1190
|
"java": {
|
|
1122
|
-
"source": "
|
|
1191
|
+
"source": "Vpc vpc;\nIBucket bucket;\n\nCluster cluster = Cluster.Builder.create(this, \"cluster\")\n .clusterName(\"myCluster\")\n .kafkaVersion(KafkaVersion.V2_8_1)\n .vpc(vpc)\n .logging(BrokerLogging.builder()\n .s3(S3LoggingConfiguration.builder()\n .bucket(bucket)\n .build())\n .build())\n .build();",
|
|
1123
1192
|
"version": "1"
|
|
1124
1193
|
},
|
|
1125
1194
|
"go": {
|
|
1126
|
-
"source": "
|
|
1195
|
+
"source": "var vpc vpc\nvar bucket iBucket\n\ncluster := msk.NewCluster(this, jsii.String(\"cluster\"), &clusterProps{\n\tclusterName: jsii.String(\"myCluster\"),\n\tkafkaVersion: msk.kafkaVersion_V2_8_1(),\n\tvpc: vpc,\n\tlogging: &brokerLogging{\n\t\ts3: &s3LoggingConfiguration{\n\t\t\tbucket: bucket,\n\t\t},\n\t},\n})",
|
|
1127
1196
|
"version": "1"
|
|
1128
1197
|
},
|
|
1129
1198
|
"$": {
|
|
1130
|
-
"source": "
|
|
1199
|
+
"source": "declare const vpc: ec2.Vpc;\ndeclare const bucket: s3.IBucket;\nconst cluster = new msk.Cluster(this, 'cluster', {\n clusterName: 'myCluster',\n kafkaVersion: msk.KafkaVersion.V2_8_1,\n vpc,\n logging: {\n s3: {\n bucket,\n },\n },\n});",
|
|
1131
1200
|
"version": "0"
|
|
1132
1201
|
}
|
|
1133
1202
|
},
|
|
@@ -1142,29 +1211,35 @@
|
|
|
1142
1211
|
},
|
|
1143
1212
|
"didCompile": true,
|
|
1144
1213
|
"fqnsReferenced": [
|
|
1214
|
+
"@aws-cdk/aws-msk-alpha.BrokerLogging",
|
|
1215
|
+
"@aws-cdk/aws-msk-alpha.Cluster",
|
|
1216
|
+
"@aws-cdk/aws-msk-alpha.ClusterProps",
|
|
1217
|
+
"@aws-cdk/aws-msk-alpha.KafkaVersion",
|
|
1218
|
+
"@aws-cdk/aws-msk-alpha.KafkaVersion#V2_8_1",
|
|
1145
1219
|
"@aws-cdk/aws-msk-alpha.S3LoggingConfiguration",
|
|
1146
|
-
"aws-cdk-lib.
|
|
1220
|
+
"aws-cdk-lib.aws_ec2.IVpc",
|
|
1221
|
+
"aws-cdk-lib.aws_s3.IBucket",
|
|
1222
|
+
"constructs.Construct"
|
|
1147
1223
|
],
|
|
1148
|
-
"fullSource": "// Hoisted imports begin after !show marker below\n/// !show\
|
|
1224
|
+
"fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const vpc: ec2.Vpc;\ndeclare const bucket: s3.IBucket;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { CfnOutput, Stack } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\nimport * as msk from '@aws-cdk/aws-msk-alpha';\nimport * as ec2 from 'aws-cdk-lib/aws-ec2';\nimport * as s3 from 'aws-cdk-lib/aws-s3';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n // Code snippet begins after !show marker below\n/// !show\n\nconst cluster = new msk.Cluster(this, 'cluster', {\n clusterName: 'myCluster',\n kafkaVersion: msk.KafkaVersion.V2_8_1,\n vpc,\n logging: {\n s3: {\n bucket,\n },\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
|
1149
1225
|
"syntaxKindCounter": {
|
|
1150
|
-
"10":
|
|
1151
|
-
"75":
|
|
1152
|
-
"
|
|
1226
|
+
"10": 2,
|
|
1227
|
+
"75": 18,
|
|
1228
|
+
"104": 1,
|
|
1229
|
+
"130": 2,
|
|
1153
1230
|
"153": 2,
|
|
1154
1231
|
"169": 2,
|
|
1155
|
-
"193":
|
|
1156
|
-
"
|
|
1157
|
-
"
|
|
1158
|
-
"
|
|
1159
|
-
"
|
|
1160
|
-
"
|
|
1161
|
-
"
|
|
1162
|
-
"
|
|
1163
|
-
"258": 1,
|
|
1164
|
-
"281": 2,
|
|
1232
|
+
"193": 3,
|
|
1233
|
+
"194": 3,
|
|
1234
|
+
"197": 1,
|
|
1235
|
+
"225": 3,
|
|
1236
|
+
"242": 3,
|
|
1237
|
+
"243": 3,
|
|
1238
|
+
"281": 4,
|
|
1239
|
+
"282": 2,
|
|
1165
1240
|
"290": 1
|
|
1166
1241
|
},
|
|
1167
|
-
"fqnsFingerprint": "
|
|
1242
|
+
"fqnsFingerprint": "7315f94146c8c3c4932bdacae903c4bbe4d40c1f32810147a9633fc6c19d3daa"
|
|
1168
1243
|
},
|
|
1169
1244
|
"a870fb223e4e576e1ae5101e635aa0ebda7f1321607410cdcd4e9244d8303799": {
|
|
1170
1245
|
"translations": {
|
|
@@ -1213,7 +1288,7 @@
|
|
|
1213
1288
|
"aws-cdk-lib.aws_ec2.IVpc",
|
|
1214
1289
|
"constructs.Construct"
|
|
1215
1290
|
],
|
|
1216
|
-
"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 { CfnOutput, Stack } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\nimport * as msk from '@aws-cdk/aws-msk-alpha';\nimport * as ec2 from 'aws-cdk-lib/aws-ec2';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n // Code snippet begins after !show marker below\n/// !show\n\nconst cluster = new msk.Cluster(this, 'cluster', {\n clusterName: 'myCluster',\n kafkaVersion: msk.KafkaVersion.V2_8_1,\n vpc,\n encryptionInTransit: {\n clientBroker: msk.ClientBrokerEncryption.TLS,\n },\n clientAuthentication: msk.ClientAuthentication.sasl({\n scram: true,\n }),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}",
|
|
1291
|
+
"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 { CfnOutput, Stack } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\nimport * as msk from '@aws-cdk/aws-msk-alpha';\nimport * as ec2 from 'aws-cdk-lib/aws-ec2';\nimport * as s3 from 'aws-cdk-lib/aws-s3';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n // Code snippet begins after !show marker below\n/// !show\n\nconst cluster = new msk.Cluster(this, 'cluster', {\n clusterName: 'myCluster',\n kafkaVersion: msk.KafkaVersion.V2_8_1,\n vpc,\n encryptionInTransit: {\n clientBroker: msk.ClientBrokerEncryption.TLS,\n },\n clientAuthentication: msk.ClientAuthentication.sasl({\n scram: true,\n }),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
|
1217
1292
|
"syntaxKindCounter": {
|
|
1218
1293
|
"10": 2,
|
|
1219
1294
|
"75": 22,
|
|
@@ -1233,7 +1308,7 @@
|
|
|
1233
1308
|
"282": 1,
|
|
1234
1309
|
"290": 1
|
|
1235
1310
|
},
|
|
1236
|
-
"fqnsFingerprint": "
|
|
1311
|
+
"fqnsFingerprint": "0ccb62f02c0c4c6e6612791611d48b0d240b0be5a15249da66ed2aec962c645c"
|
|
1237
1312
|
},
|
|
1238
1313
|
"7e72f8a099a570edf948251c75401e60ce21ed46329d85e85768f62243c67b6d": {
|
|
1239
1314
|
"translations": {
|
|
@@ -1284,7 +1359,7 @@
|
|
|
1284
1359
|
"aws-cdk-lib.aws_ec2.IVpc",
|
|
1285
1360
|
"constructs.Construct"
|
|
1286
1361
|
],
|
|
1287
|
-
"fullSource": "// Hoisted imports begin after !show marker below\n/// !show\nimport * as acmpca from 'aws-cdk-lib/aws-acmpca';\n\ndeclare const vpc: ec2.Vpc;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { CfnOutput, Stack } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\nimport * as msk from '@aws-cdk/aws-msk-alpha';\nimport * as ec2 from 'aws-cdk-lib/aws-ec2';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n // Code snippet begins after !show marker below\n/// !show\n\nconst cluster = new msk.Cluster(this, 'Cluster', {\n clusterName: 'myCluster',\n kafkaVersion: msk.KafkaVersion.V2_8_1,\n vpc,\n encryptionInTransit: {\n clientBroker: msk.ClientBrokerEncryption.TLS,\n },\n clientAuthentication: msk.ClientAuthentication.tls({\n certificateAuthorities: [\n acmpca.CertificateAuthority.fromCertificateAuthorityArn(\n this,\n 'CertificateAuthority',\n 'arn:aws:acm-pca:us-west-2:1234567890:certificate-authority/11111111-1111-1111-1111-111111111111',\n ),\n ],\n }),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}",
|
|
1362
|
+
"fullSource": "// Hoisted imports begin after !show marker below\n/// !show\nimport * as acmpca from 'aws-cdk-lib/aws-acmpca';\n\ndeclare const vpc: ec2.Vpc;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { CfnOutput, Stack } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\nimport * as msk from '@aws-cdk/aws-msk-alpha';\nimport * as ec2 from 'aws-cdk-lib/aws-ec2';\nimport * as s3 from 'aws-cdk-lib/aws-s3';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n // Code snippet begins after !show marker below\n/// !show\n\nconst cluster = new msk.Cluster(this, 'Cluster', {\n clusterName: 'myCluster',\n kafkaVersion: msk.KafkaVersion.V2_8_1,\n vpc,\n encryptionInTransit: {\n clientBroker: msk.ClientBrokerEncryption.TLS,\n },\n clientAuthentication: msk.ClientAuthentication.tls({\n certificateAuthorities: [\n acmpca.CertificateAuthority.fromCertificateAuthorityArn(\n this,\n 'CertificateAuthority',\n 'arn:aws:acm-pca:us-west-2:1234567890:certificate-authority/11111111-1111-1111-1111-111111111111',\n ),\n ],\n }),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
|
1288
1363
|
"syntaxKindCounter": {
|
|
1289
1364
|
"10": 5,
|
|
1290
1365
|
"75": 26,
|
|
@@ -1307,7 +1382,7 @@
|
|
|
1307
1382
|
"282": 1,
|
|
1308
1383
|
"290": 1
|
|
1309
1384
|
},
|
|
1310
|
-
"fqnsFingerprint": "
|
|
1385
|
+
"fqnsFingerprint": "ac39ec419b247df95255ea5b60050e21dd26660c7dfaddc8e65285690acd111f"
|
|
1311
1386
|
}
|
|
1312
1387
|
}
|
|
1313
1388
|
}
|
package/README.md
CHANGED
|
@@ -143,3 +143,40 @@ const cluster = new msk.Cluster(this, 'cluster', {
|
|
|
143
143
|
}),
|
|
144
144
|
});
|
|
145
145
|
```
|
|
146
|
+
|
|
147
|
+
## Logging
|
|
148
|
+
|
|
149
|
+
You can deliver Apache Kafka broker logs to one or more of the following destination types:
|
|
150
|
+
Amazon CloudWatch Logs, Amazon S3, Amazon Kinesis Data Firehose.
|
|
151
|
+
|
|
152
|
+
To configure logs to be sent to an S3 bucket, provide a bucket in the `logging` config.
|
|
153
|
+
|
|
154
|
+
```ts
|
|
155
|
+
declare const vpc: ec2.Vpc;
|
|
156
|
+
declare const bucket: s3.IBucket;
|
|
157
|
+
const cluster = new msk.Cluster(this, 'cluster', {
|
|
158
|
+
clusterName: 'myCluster',
|
|
159
|
+
kafkaVersion: msk.KafkaVersion.V2_8_1,
|
|
160
|
+
vpc,
|
|
161
|
+
logging: {
|
|
162
|
+
s3: {
|
|
163
|
+
bucket,
|
|
164
|
+
},
|
|
165
|
+
},
|
|
166
|
+
});
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
When the S3 destination is configured, AWS will automatically create an S3 bucket policy
|
|
170
|
+
that allows the service to write logs to the bucket. This makes it impossible to later update
|
|
171
|
+
that bucket policy. To have CDK create the bucket policy so that future updates can be made,
|
|
172
|
+
the `@aws-cdk/aws-s3:createDefaultLoggingPolicy` [feature flag](https://docs.aws.amazon.com/cdk/v2/guide/featureflags.html) can be used. This can be set
|
|
173
|
+
in the `cdk.json` file.
|
|
174
|
+
|
|
175
|
+
```json
|
|
176
|
+
{
|
|
177
|
+
"context": {
|
|
178
|
+
"@aws-cdk/aws-s3:createDefaultLoggingPolicy": true
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
```
|
|
182
|
+
|
package/lib/cluster-version.js
CHANGED
|
@@ -24,7 +24,7 @@ class KafkaVersion {
|
|
|
24
24
|
}
|
|
25
25
|
exports.KafkaVersion = KafkaVersion;
|
|
26
26
|
_a = JSII_RTTI_SYMBOL_1;
|
|
27
|
-
KafkaVersion[_a] = { fqn: "@aws-cdk/aws-msk-alpha.KafkaVersion", version: "2.
|
|
27
|
+
KafkaVersion[_a] = { fqn: "@aws-cdk/aws-msk-alpha.KafkaVersion", version: "2.31.2-alpha.0" };
|
|
28
28
|
/**
|
|
29
29
|
* Kafka version 1.1.1
|
|
30
30
|
*/
|