@aws-cdk/aws-msk-alpha 2.5.0-alpha.0 → 2.9.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.tabl.json CHANGED
@@ -1,23 +1,23 @@
1
1
  {
2
2
  "version": "2",
3
- "toolVersion": "1.50.0",
3
+ "toolVersion": "1.52.1",
4
4
  "snippets": {
5
- "cb840666411d496d311c8046f0d8eb51caa3fa8f1ee32506c1aadd00010fde54": {
5
+ "751b9d3d4c86afa5c81487bacae95b3c74eaffe1747c6e690790dee5d2c2c080": {
6
6
  "translations": {
7
7
  "python": {
8
- "source": "import aws_cdk.aws_msk_alpha as msk\n\ncluster = Cluster(self, \"Cluster\",\n kafka_version=msk.KafkaVersion.V2_8_1,\n vpc=vpc\n)",
9
- "version": "1"
8
+ "source": "# vpc: ec2.Vpc\n\ncluster = msk.Cluster(self, \"Cluster\",\n cluster_name=\"myCluster\",\n kafka_version=msk.KafkaVersion.V2_8_1,\n vpc=vpc\n)",
9
+ "version": "2"
10
10
  },
11
11
  "csharp": {
12
- "source": "using Amazon.CDK.AWS.MSK.Alpha;\n\nvar cluster = new Cluster(this, \"Cluster\", new Struct {\n KafkaVersion = KafkaVersion.V2_8_1,\n Vpc = vpc\n});",
12
+ "source": "Vpc vpc;\n\nCluster cluster = new Cluster(this, \"Cluster\", new ClusterProps {\n ClusterName = \"myCluster\",\n KafkaVersion = KafkaVersion.V2_8_1,\n Vpc = vpc\n});",
13
13
  "version": "1"
14
14
  },
15
15
  "java": {
16
- "source": "import software.amazon.awscdk.services.msk.alpha.*;\n\nObject cluster = Cluster.Builder.create(this, \"Cluster\")\n .kafkaVersion(KafkaVersion.V2_8_1)\n .vpc(vpc)\n .build();",
16
+ "source": "Vpc vpc;\n\nCluster cluster = Cluster.Builder.create(this, \"Cluster\")\n .clusterName(\"myCluster\")\n .kafkaVersion(KafkaVersion.V2_8_1)\n .vpc(vpc)\n .build();",
17
17
  "version": "1"
18
18
  },
19
19
  "$": {
20
- "source": "import * as msk from '@aws-cdk/aws-msk-alpha';\n\nconst cluster = new Cluster(this, 'Cluster', {\n kafkaVersion: msk.KafkaVersion.V2_8_1,\n vpc,\n});",
20
+ "source": "declare const vpc: ec2.Vpc;\nconst cluster = new msk.Cluster(this, 'Cluster', {\n clusterName: 'myCluster',\n kafkaVersion: msk.KafkaVersion.V2_8_1,\n vpc,\n});",
21
21
  "version": "0"
22
22
  }
23
23
  },
@@ -31,47 +31,50 @@
31
31
  "line": 22
32
32
  }
33
33
  },
34
- "didCompile": false,
34
+ "didCompile": true,
35
35
  "fqnsReferenced": [
36
+ "@aws-cdk/aws-msk-alpha.Cluster",
37
+ "@aws-cdk/aws-msk-alpha.ClusterProps",
36
38
  "@aws-cdk/aws-msk-alpha.KafkaVersion",
37
- "@aws-cdk/aws-msk-alpha.KafkaVersion#V2_8_1"
39
+ "@aws-cdk/aws-msk-alpha.KafkaVersion#V2_8_1",
40
+ "aws-cdk-lib.aws_ec2.IVpc"
38
41
  ],
39
- "fullSource": "import * as msk from '@aws-cdk/aws-msk-alpha';\n\nconst cluster = new Cluster(this, 'Cluster', {\n kafkaVersion: msk.KafkaVersion.V2_8_1,\n vpc,\n});",
42
+ "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}",
40
43
  "syntaxKindCounter": {
41
44
  "10": 2,
42
- "75": 8,
45
+ "75": 12,
43
46
  "104": 1,
47
+ "130": 1,
48
+ "153": 1,
49
+ "169": 1,
44
50
  "193": 1,
45
- "194": 2,
51
+ "194": 3,
46
52
  "197": 1,
47
- "225": 1,
48
- "242": 1,
49
- "243": 1,
50
- "254": 1,
51
- "255": 1,
52
- "256": 1,
53
- "281": 1,
53
+ "225": 2,
54
+ "242": 2,
55
+ "243": 2,
56
+ "281": 2,
54
57
  "282": 1,
55
58
  "290": 1
56
59
  },
57
- "fqnsFingerprint": "37bac76708249e0cf3ed17b3fd9143d654e8f552c3ad95835955d43ba1556dab"
60
+ "fqnsFingerprint": "cca1b59bd930512be679aa0b2f658be357d3821acf3091eee79d81ac5d894402"
58
61
  },
59
- "c345f8017c1c169b5642d6b3b9d887bb395c15f1f71cebb58b1119623320a7ff": {
62
+ "80f51b8fa4a546bc52dbc4c74672273ce919e51eacb16461ed23f1dcd55fbbfe": {
60
63
  "translations": {
61
64
  "python": {
62
- "source": "import aws_cdk.aws_msk_alpha as msk\nimport aws_cdk.aws_ec2 as ec2\n\ncluster = msk.Cluster(self, \"Cluster\", ...)\n\ncluster.connections.allow_from(\n ec2.Peer.ipv4(\"1.2.3.4/8\"),\n ec2.Port.tcp(2181))\ncluster.connections.allow_from(\n ec2.Peer.ipv4(\"1.2.3.4/8\"),\n ec2.Port.tcp(9094))",
63
- "version": "1"
65
+ "source": "# vpc: ec2.Vpc\n\ncluster = msk.Cluster(self, \"Cluster\",\n cluster_name=\"myCluster\",\n kafka_version=msk.KafkaVersion.V2_8_1,\n vpc=vpc\n)\n\ncluster.connections.allow_from(\n ec2.Peer.ipv4(\"1.2.3.4/8\"),\n ec2.Port.tcp(2181))\ncluster.connections.allow_from(\n ec2.Peer.ipv4(\"1.2.3.4/8\"),\n ec2.Port.tcp(9094))",
66
+ "version": "2"
64
67
  },
65
68
  "csharp": {
66
- "source": "using Amazon.CDK.AWS.MSK.Alpha;\nusing Amazon.CDK.AWS.EC2;\n\nCluster cluster = new Cluster(this, \"Cluster\", new ClusterProps { ... });\n\ncluster.Connections.AllowFrom(Peer.Ipv4(\"1.2.3.4/8\"), Port.Tcp(2181));\ncluster.Connections.AllowFrom(Peer.Ipv4(\"1.2.3.4/8\"), Port.Tcp(9094));",
69
+ "source": "Vpc vpc;\n\nCluster cluster = new Cluster(this, \"Cluster\", new ClusterProps {\n ClusterName = \"myCluster\",\n KafkaVersion = KafkaVersion.V2_8_1,\n Vpc = vpc\n});\n\ncluster.Connections.AllowFrom(Peer.Ipv4(\"1.2.3.4/8\"), Port.Tcp(2181));\ncluster.Connections.AllowFrom(Peer.Ipv4(\"1.2.3.4/8\"), Port.Tcp(9094));",
67
70
  "version": "1"
68
71
  },
69
72
  "java": {
70
- "source": "import software.amazon.awscdk.services.msk.alpha.*;\nimport software.amazon.awscdk.services.ec2.*;\n\nCluster cluster = Cluster.Builder.create(this, \"Cluster\")....build();\n\ncluster.connections.allowFrom(Peer.ipv4(\"1.2.3.4/8\"), Port.tcp(2181));\ncluster.connections.allowFrom(Peer.ipv4(\"1.2.3.4/8\"), Port.tcp(9094));",
73
+ "source": "Vpc vpc;\n\nCluster cluster = Cluster.Builder.create(this, \"Cluster\")\n .clusterName(\"myCluster\")\n .kafkaVersion(KafkaVersion.V2_8_1)\n .vpc(vpc)\n .build();\n\ncluster.connections.allowFrom(Peer.ipv4(\"1.2.3.4/8\"), Port.tcp(2181));\ncluster.connections.allowFrom(Peer.ipv4(\"1.2.3.4/8\"), Port.tcp(9094));",
71
74
  "version": "1"
72
75
  },
73
76
  "$": {
74
- "source": "import * as msk from \"@aws-cdk/aws-msk-alpha\"\nimport * as ec2 from \"aws-cdk-lib/aws-ec2\"\n\nconst cluster = new msk.Cluster(this, \"Cluster\", {...})\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)",
77
+ "source": "declare const vpc: ec2.Vpc;\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);",
75
78
  "version": "0"
76
79
  }
77
80
  },
@@ -85,55 +88,59 @@
85
88
  "line": 35
86
89
  }
87
90
  },
88
- "didCompile": false,
91
+ "didCompile": true,
89
92
  "fqnsReferenced": [
90
93
  "@aws-cdk/aws-msk-alpha.Cluster",
91
94
  "@aws-cdk/aws-msk-alpha.ClusterProps",
95
+ "@aws-cdk/aws-msk-alpha.KafkaVersion",
96
+ "@aws-cdk/aws-msk-alpha.KafkaVersion#V2_8_1",
92
97
  "aws-cdk-lib.aws_ec2.Connections#allowFrom",
93
98
  "aws-cdk-lib.aws_ec2.IConnectable",
99
+ "aws-cdk-lib.aws_ec2.IVpc",
94
100
  "aws-cdk-lib.aws_ec2.Peer",
95
101
  "aws-cdk-lib.aws_ec2.Peer#ipv4",
96
102
  "aws-cdk-lib.aws_ec2.Port",
97
103
  "aws-cdk-lib.aws_ec2.Port#tcp"
98
104
  ],
99
- "fullSource": "import * as msk from \"@aws-cdk/aws-msk-alpha\"\nimport * as ec2 from \"aws-cdk-lib/aws-ec2\"\n\nconst cluster = new msk.Cluster(this, \"Cluster\", {...})\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)",
105
+ "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}",
100
106
  "syntaxKindCounter": {
101
107
  "8": 2,
102
- "10": 5,
103
- "75": 24,
108
+ "10": 4,
109
+ "75": 30,
104
110
  "104": 1,
111
+ "130": 1,
112
+ "153": 1,
113
+ "169": 1,
105
114
  "193": 1,
106
- "194": 13,
115
+ "194": 15,
107
116
  "196": 6,
108
117
  "197": 1,
109
- "225": 1,
118
+ "225": 2,
110
119
  "226": 2,
111
- "242": 1,
112
- "243": 1,
113
- "254": 2,
114
- "255": 2,
115
- "256": 2,
116
- "283": 1,
120
+ "242": 2,
121
+ "243": 2,
122
+ "281": 2,
123
+ "282": 1,
117
124
  "290": 1
118
125
  },
119
- "fqnsFingerprint": "bf0d508ebea6390843197de7a686477535e228fbb28ee3af8ff2a31565fa7465"
126
+ "fqnsFingerprint": "cfb2d76b52712a3a975fa1de53069c6cc397ebee762008142fd6a54d45c2e736"
120
127
  },
121
- "2ae2abef4b783b93c3df13edcc282e3030b82f3b879d2bb23bbb9d21a753a6ca": {
128
+ "d6108f621764f957eb0cf713c39f22d9562c6e38447aa52a89ca3f716e71e4d0": {
122
129
  "translations": {
123
130
  "python": {
124
- "source": "cdk.CfnOutput(self, \"BootstrapBrokers\", value=cluster.bootstrap_brokers)\ncdk.CfnOutput(self, \"BootstrapBrokersTls\", value=cluster.bootstrap_brokers_tls)\ncdk.CfnOutput(self, \"BootstrapBrokersSaslScram\", value=cluster.bootstrap_brokers_sasl_scram)\ncdk.CfnOutput(self, \"ZookeeperConnection\", value=cluster.zookeeper_connection_string)\ncdk.CfnOutput(self, \"ZookeeperConnectionTls\", value=cluster.zookeeper_connection_string_tls)",
125
- "version": "1"
131
+ "source": "# cluster: msk.Cluster\n\nCfnOutput(self, \"BootstrapBrokers\", value=cluster.bootstrap_brokers)\nCfnOutput(self, \"BootstrapBrokersTls\", value=cluster.bootstrap_brokers_tls)\nCfnOutput(self, \"BootstrapBrokersSaslScram\", value=cluster.bootstrap_brokers_sasl_scram)\nCfnOutput(self, \"ZookeeperConnection\", value=cluster.zookeeper_connection_string)\nCfnOutput(self, \"ZookeeperConnectionTls\", value=cluster.zookeeper_connection_string_tls)",
132
+ "version": "2"
126
133
  },
127
134
  "csharp": {
128
- "source": "new cdk.CfnOutput(this, \"BootstrapBrokers\", new Struct { Value = cluster.BootstrapBrokers });\nnew cdk.CfnOutput(this, \"BootstrapBrokersTls\", new Struct { Value = cluster.BootstrapBrokersTls });\nnew cdk.CfnOutput(this, \"BootstrapBrokersSaslScram\", new Struct { Value = cluster.BootstrapBrokersSaslScram });\nnew cdk.CfnOutput(this, \"ZookeeperConnection\", new Struct { Value = cluster.ZookeeperConnectionString });\nnew cdk.CfnOutput(this, \"ZookeeperConnectionTls\", new Struct { Value = cluster.ZookeeperConnectionStringTls });",
135
+ "source": "Cluster cluster;\n\nnew CfnOutput(this, \"BootstrapBrokers\", new CfnOutputProps { Value = cluster.BootstrapBrokers });\nnew CfnOutput(this, \"BootstrapBrokersTls\", new CfnOutputProps { Value = cluster.BootstrapBrokersTls });\nnew CfnOutput(this, \"BootstrapBrokersSaslScram\", new CfnOutputProps { Value = cluster.BootstrapBrokersSaslScram });\nnew CfnOutput(this, \"ZookeeperConnection\", new CfnOutputProps { Value = cluster.ZookeeperConnectionString });\nnew CfnOutput(this, \"ZookeeperConnectionTls\", new CfnOutputProps { Value = cluster.ZookeeperConnectionStringTls });",
129
136
  "version": "1"
130
137
  },
131
138
  "java": {
132
- "source": "CfnOutput.Builder.create(this, \"BootstrapBrokers\").value(cluster.getBootstrapBrokers()).build();\nCfnOutput.Builder.create(this, \"BootstrapBrokersTls\").value(cluster.getBootstrapBrokersTls()).build();\nCfnOutput.Builder.create(this, \"BootstrapBrokersSaslScram\").value(cluster.getBootstrapBrokersSaslScram()).build();\nCfnOutput.Builder.create(this, \"ZookeeperConnection\").value(cluster.getZookeeperConnectionString()).build();\nCfnOutput.Builder.create(this, \"ZookeeperConnectionTls\").value(cluster.getZookeeperConnectionStringTls()).build();",
139
+ "source": "Cluster cluster;\n\nCfnOutput.Builder.create(this, \"BootstrapBrokers\").value(cluster.getBootstrapBrokers()).build();\nCfnOutput.Builder.create(this, \"BootstrapBrokersTls\").value(cluster.getBootstrapBrokersTls()).build();\nCfnOutput.Builder.create(this, \"BootstrapBrokersSaslScram\").value(cluster.getBootstrapBrokersSaslScram()).build();\nCfnOutput.Builder.create(this, \"ZookeeperConnection\").value(cluster.getZookeeperConnectionString()).build();\nCfnOutput.Builder.create(this, \"ZookeeperConnectionTls\").value(cluster.getZookeeperConnectionStringTls()).build();",
133
140
  "version": "1"
134
141
  },
135
142
  "$": {
136
- "source": "new cdk.CfnOutput(this, 'BootstrapBrokers', { value: cluster.bootstrapBrokers });\nnew cdk.CfnOutput(this, 'BootstrapBrokersTls', { value: cluster.bootstrapBrokersTls });\nnew cdk.CfnOutput(this, 'BootstrapBrokersSaslScram', { value: cluster.bootstrapBrokersSaslScram });\nnew cdk.CfnOutput(this, 'ZookeeperConnection', { value: cluster.zookeeperConnectionString });\nnew cdk.CfnOutput(this, 'ZookeeperConnectionTls', { value: cluster.zookeeperConnectionStringTls });",
143
+ "source": "declare const cluster: msk.Cluster;\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 });",
137
144
  "version": "0"
138
145
  }
139
146
  },
@@ -144,41 +151,50 @@
144
151
  },
145
152
  "field": {
146
153
  "field": "markdown",
147
- "line": 55
154
+ "line": 57
148
155
  }
149
156
  },
150
- "didCompile": false,
151
- "fqnsReferenced": [],
152
- "fullSource": "new cdk.CfnOutput(this, 'BootstrapBrokers', { value: cluster.bootstrapBrokers });\nnew cdk.CfnOutput(this, 'BootstrapBrokersTls', { value: cluster.bootstrapBrokersTls });\nnew cdk.CfnOutput(this, 'BootstrapBrokersSaslScram', { value: cluster.bootstrapBrokersSaslScram });\nnew cdk.CfnOutput(this, 'ZookeeperConnection', { value: cluster.zookeeperConnectionString });\nnew cdk.CfnOutput(this, 'ZookeeperConnectionTls', { value: cluster.zookeeperConnectionStringTls });",
157
+ "didCompile": true,
158
+ "fqnsReferenced": [
159
+ "aws-cdk-lib.CfnOutput",
160
+ "aws-cdk-lib.CfnOutputProps"
161
+ ],
162
+ "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}",
153
163
  "syntaxKindCounter": {
154
164
  "10": 5,
155
- "75": 25,
165
+ "75": 23,
156
166
  "104": 5,
167
+ "130": 1,
168
+ "153": 1,
169
+ "169": 1,
157
170
  "193": 5,
158
- "194": 10,
171
+ "194": 5,
159
172
  "197": 5,
173
+ "225": 1,
160
174
  "226": 5,
175
+ "242": 1,
176
+ "243": 1,
161
177
  "281": 5,
162
178
  "290": 1
163
179
  },
164
- "fqnsFingerprint": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
180
+ "fqnsFingerprint": "a2e5d7eab265238359719615bc88190bb00814ca95ad959d5843259854c03639"
165
181
  },
166
- "a29affc49768f714bab93625b38e2762b98c92a21742c9999ee1218fa4b5a92e": {
182
+ "8330183226f60b5d2b09ce4affbf604a60460dad74c0044c637c0fed77cd44a4": {
167
183
  "translations": {
168
184
  "python": {
169
185
  "source": "cluster = msk.Cluster.from_cluster_arn(self, \"Cluster\", \"arn:aws:kafka:us-west-2:1234567890:cluster/a-cluster/11111111-1111-1111-1111-111111111111-1\")",
170
- "version": "1"
186
+ "version": "2"
171
187
  },
172
188
  "csharp": {
173
- "source": "var cluster = msk.Cluster.FromClusterArn(this, \"Cluster\", \"arn:aws:kafka:us-west-2:1234567890:cluster/a-cluster/11111111-1111-1111-1111-111111111111-1\");",
189
+ "source": "ICluster cluster = Cluster.FromClusterArn(this, \"Cluster\", \"arn:aws:kafka:us-west-2:1234567890:cluster/a-cluster/11111111-1111-1111-1111-111111111111-1\");",
174
190
  "version": "1"
175
191
  },
176
192
  "java": {
177
- "source": "Object cluster = msk.Cluster.fromClusterArn(this, \"Cluster\", \"arn:aws:kafka:us-west-2:1234567890:cluster/a-cluster/11111111-1111-1111-1111-111111111111-1\");",
193
+ "source": "ICluster cluster = Cluster.fromClusterArn(this, \"Cluster\", \"arn:aws:kafka:us-west-2:1234567890:cluster/a-cluster/11111111-1111-1111-1111-111111111111-1\");",
178
194
  "version": "1"
179
195
  },
180
196
  "$": {
181
- "source": "const cluster = msk.Cluster.fromClusterArn(this, 'Cluster', 'arn:aws:kafka:us-west-2:1234567890:cluster/a-cluster/11111111-1111-1111-1111-111111111111-1')",
197
+ "source": "const cluster = msk.Cluster.fromClusterArn(this, 'Cluster',\n 'arn:aws:kafka:us-west-2:1234567890:cluster/a-cluster/11111111-1111-1111-1111-111111111111-1',\n);",
182
198
  "version": "0"
183
199
  }
184
200
  },
@@ -189,12 +205,16 @@
189
205
  },
190
206
  "field": {
191
207
  "field": "markdown",
192
- "line": 67
208
+ "line": 70
193
209
  }
194
210
  },
195
- "didCompile": false,
196
- "fqnsReferenced": [],
197
- "fullSource": "const cluster = msk.Cluster.fromClusterArn(this, 'Cluster', 'arn:aws:kafka:us-west-2:1234567890:cluster/a-cluster/11111111-1111-1111-1111-111111111111-1')",
211
+ "didCompile": true,
212
+ "fqnsReferenced": [
213
+ "@aws-cdk/aws-msk-alpha.Cluster",
214
+ "@aws-cdk/aws-msk-alpha.Cluster#fromClusterArn",
215
+ "@aws-cdk/aws-msk-alpha.ICluster"
216
+ ],
217
+ "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}",
198
218
  "syntaxKindCounter": {
199
219
  "10": 2,
200
220
  "75": 4,
@@ -203,27 +223,26 @@
203
223
  "196": 1,
204
224
  "225": 1,
205
225
  "242": 1,
206
- "243": 1,
207
- "290": 1
226
+ "243": 1
208
227
  },
209
- "fqnsFingerprint": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
228
+ "fqnsFingerprint": "776b928466e291656e32c9d5b6d8ef39bf08938722366c1e621f49354e425ca6"
210
229
  },
211
- "f8a5f518f2706a7f376a52637709270c712e6c21b7b5c200abd7c50a44e51641": {
230
+ "e884778546491097d36c3d147b400c75217b54e4f09c8d3a4fb48f69bf9f48c6": {
212
231
  "translations": {
213
232
  "python": {
214
- "source": "import aws_cdk.aws_msk_alpha as msk\nimport aws_cdk.aws_acmpca as acmpca\n\ncluster = msk.Cluster(self, \"Cluster\", msk.ClusterProps(\n (SpreadAssignment ...\n encryptionInTransit\n encryption_in_transit)\n), {\n \"client_broker\": msk.ClientBrokerEncryption.TLS\n}, client_authentication, msk.ClientAuthentication.tls(\n certificate_authorities=[\n acmpca.CertificateAuthority.from_certificate_authority_arn(stack, \"CertificateAuthority\", \"arn:aws:acm-pca:us-west-2:1234567890:certificate-authority/11111111-1111-1111-1111-111111111111\")\n ]\n))",
215
- "version": "1"
233
+ "source": "import aws_cdk.aws_acmpca as acmpca\n\n# vpc: ec2.Vpc\n\ncluster = msk.Cluster(self, \"Cluster\",\n cluster_name=\"myCluster\",\n kafka_version=msk.KafkaVersion.V2_8_1,\n vpc=vpc,\n encryption_in_transit=msk.EncryptionInTransitConfig(\n client_broker=msk.ClientBrokerEncryption.TLS\n ),\n client_authentication=msk.ClientAuthentication.tls(\n certificate_authorities=[\n acmpca.CertificateAuthority.from_certificate_authority_arn(self, \"CertificateAuthority\", \"arn:aws:acm-pca:us-west-2:1234567890:certificate-authority/11111111-1111-1111-1111-111111111111\")\n ]\n )\n)",
234
+ "version": "2"
216
235
  },
217
236
  "csharp": {
218
- "source": "using Amazon.CDK.AWS.MSK.Alpha;\nusing Amazon.CDK.AWS.ACMPCA;\n\nCluster cluster = new Cluster(this, \"Cluster\", new ClusterProps {\n (SpreadAssignment ...\n encryptionInTransit\n encryptionInTransit)\n}, new Dictionary<string, ClientBrokerEncryption> {\n { \"clientBroker\", ClientBrokerEncryption.TLS }\n}, clientAuthentication, ClientAuthentication.Tls(new TlsAuthProps {\n CertificateAuthorities = new [] { CertificateAuthority.FromCertificateAuthorityArn(stack, \"CertificateAuthority\", \"arn:aws:acm-pca:us-west-2:1234567890:certificate-authority/11111111-1111-1111-1111-111111111111\") }\n}));",
237
+ "source": "using Amazon.CDK.AWS.ACMPCA;\n\nVpc vpc;\n\nCluster cluster = new Cluster(this, \"Cluster\", new ClusterProps {\n ClusterName = \"myCluster\",\n KafkaVersion = KafkaVersion.V2_8_1,\n Vpc = vpc,\n EncryptionInTransit = new EncryptionInTransitConfig {\n ClientBroker = ClientBrokerEncryption.TLS\n },\n ClientAuthentication = ClientAuthentication.Tls(new TlsAuthProps {\n CertificateAuthorities = new [] { CertificateAuthority.FromCertificateAuthorityArn(this, \"CertificateAuthority\", \"arn:aws:acm-pca:us-west-2:1234567890:certificate-authority/11111111-1111-1111-1111-111111111111\") }\n })\n});",
219
238
  "version": "1"
220
239
  },
221
240
  "java": {
222
- "source": "import software.amazon.awscdk.services.msk.alpha.*;\nimport software.amazon.awscdk.services.acmpca.*;\n\nCluster cluster = new Cluster(this, \"Cluster\", ClusterProps.builder()\n (SpreadAssignment ...\n encryptionInTransit\n encryptionInTransit)\n .build(), Map.of(\n \"clientBroker\", ClientBrokerEncryption.TLS), clientAuthentication, ClientAuthentication.tls(TlsAuthProps.builder()\n .certificateAuthorities(List.of(CertificateAuthority.fromCertificateAuthorityArn(stack, \"CertificateAuthority\", \"arn:aws:acm-pca:us-west-2:1234567890:certificate-authority/11111111-1111-1111-1111-111111111111\")))\n .build()));",
241
+ "source": "import software.amazon.awscdk.services.acmpca.*;\n\nVpc vpc;\n\nCluster cluster = Cluster.Builder.create(this, \"Cluster\")\n .clusterName(\"myCluster\")\n .kafkaVersion(KafkaVersion.V2_8_1)\n .vpc(vpc)\n .encryptionInTransit(EncryptionInTransitConfig.builder()\n .clientBroker(ClientBrokerEncryption.TLS)\n .build())\n .clientAuthentication(ClientAuthentication.tls(TlsAuthProps.builder()\n .certificateAuthorities(List.of(CertificateAuthority.fromCertificateAuthorityArn(this, \"CertificateAuthority\", \"arn:aws:acm-pca:us-west-2:1234567890:certificate-authority/11111111-1111-1111-1111-111111111111\")))\n .build()))\n .build();",
223
242
  "version": "1"
224
243
  },
225
244
  "$": {
226
- "source": "import * as msk from \"@aws-cdk/aws-msk-alpha\"\nimport * as acmpca from \"aws-cdk-lib/aws-acmpca\"\n\nconst cluster = new msk.Cluster(this, 'Cluster', {\n ...\n encryptionInTransit: {\n clientBroker: msk.ClientBrokerEncryption.TLS,\n },\n clientAuthentication: msk.ClientAuthentication.tls({\n certificateAuthorities: [\n acmpca.CertificateAuthority.fromCertificateAuthorityArn(\n stack,\n \"CertificateAuthority\",\n \"arn:aws:acm-pca:us-west-2:1234567890:certificate-authority/11111111-1111-1111-1111-111111111111\"\n ),\n ],\n }),\n });\n});",
245
+ "source": "import * as acmpca from 'aws-cdk-lib/aws-acmpca';\n\ndeclare const vpc: ec2.Vpc;\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});",
227
246
  "version": "0"
228
247
  }
229
248
  },
@@ -234,10 +253,10 @@
234
253
  },
235
254
  "field": {
236
255
  "field": "markdown",
237
- "line": 81
256
+ "line": 86
238
257
  }
239
258
  },
240
- "didCompile": false,
259
+ "didCompile": true,
241
260
  "fqnsReferenced": [
242
261
  "@aws-cdk/aws-msk-alpha.ClientAuthentication",
243
262
  "@aws-cdk/aws-msk-alpha.ClientAuthentication#tls",
@@ -245,49 +264,55 @@
245
264
  "@aws-cdk/aws-msk-alpha.ClientBrokerEncryption#TLS",
246
265
  "@aws-cdk/aws-msk-alpha.Cluster",
247
266
  "@aws-cdk/aws-msk-alpha.ClusterProps",
267
+ "@aws-cdk/aws-msk-alpha.EncryptionInTransitConfig",
268
+ "@aws-cdk/aws-msk-alpha.KafkaVersion",
269
+ "@aws-cdk/aws-msk-alpha.KafkaVersion#V2_8_1",
248
270
  "@aws-cdk/aws-msk-alpha.TlsAuthProps",
249
271
  "aws-cdk-lib.aws_acmpca.CertificateAuthority",
250
- "aws-cdk-lib.aws_acmpca.CertificateAuthority#fromCertificateAuthorityArn"
272
+ "aws-cdk-lib.aws_acmpca.CertificateAuthority#fromCertificateAuthorityArn",
273
+ "aws-cdk-lib.aws_ec2.IVpc"
251
274
  ],
252
- "fullSource": "import * as msk from \"@aws-cdk/aws-msk-alpha\"\nimport * as acmpca from \"aws-cdk-lib/aws-acmpca\"\n\nconst cluster = new msk.Cluster(this, 'Cluster', {\n ...\n encryptionInTransit: {\n clientBroker: msk.ClientBrokerEncryption.TLS,\n },\n clientAuthentication: msk.ClientAuthentication.tls({\n certificateAuthorities: [\n acmpca.CertificateAuthority.fromCertificateAuthorityArn(\n stack,\n \"CertificateAuthority\",\n \"arn:aws:acm-pca:us-west-2:1234567890:certificate-authority/11111111-1111-1111-1111-111111111111\"\n ),\n ],\n }),\n });\n});",
275
+ "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}",
253
276
  "syntaxKindCounter": {
254
277
  "10": 5,
255
- "75": 19,
256
- "104": 1,
278
+ "75": 26,
279
+ "104": 2,
280
+ "130": 1,
281
+ "153": 1,
282
+ "169": 1,
257
283
  "192": 1,
258
284
  "193": 3,
259
- "194": 7,
285
+ "194": 9,
260
286
  "196": 2,
261
287
  "197": 1,
262
- "224": 2,
263
- "225": 1,
264
- "242": 1,
265
- "243": 1,
266
- "254": 2,
267
- "255": 2,
268
- "256": 2,
269
- "281": 2,
270
- "283": 1,
288
+ "225": 2,
289
+ "242": 2,
290
+ "243": 2,
291
+ "254": 1,
292
+ "255": 1,
293
+ "256": 1,
294
+ "281": 6,
295
+ "282": 1,
271
296
  "290": 1
272
297
  },
273
- "fqnsFingerprint": "1fbbe37159466c82ca72068eb7e2348dab8ff47c306f44aa8ed394aadb075065"
298
+ "fqnsFingerprint": "b2762a7ec44447ae615315d649bc0ffb4175265a5745a30b3b5b5b0540f612ac"
274
299
  },
275
- "fee7787184211e222b00054508278c2e83c9e80dc430cbb227fb5c6077468602": {
300
+ "6473cc4b25cddd0a6b21bd04668d63c816d37abc98e2ffc9784c6d276b80c241": {
276
301
  "translations": {
277
302
  "python": {
278
- "source": "import aws_cdk.aws_msk_alpha as msk\n\ncluster = msk.cluster(self, \"cluster\", {\n (SpreadAssignment ...\n encryptionInTransit\n encryption_in_transit)\n}, {\n \"client_broker\": msk.ClientBrokerEncryption.TLS\n}, client_authentication, msk.ClientAuthentication.sasl(\n scram=True\n))",
279
- "version": "1"
303
+ "source": "# vpc: ec2.Vpc\n\ncluster = msk.Cluster(self, \"cluster\",\n cluster_name=\"myCluster\",\n kafka_version=msk.KafkaVersion.V2_8_1,\n vpc=vpc,\n encryption_in_transit=msk.EncryptionInTransitConfig(\n client_broker=msk.ClientBrokerEncryption.TLS\n ),\n client_authentication=msk.ClientAuthentication.sasl(\n scram=True\n )\n)",
304
+ "version": "2"
280
305
  },
281
306
  "csharp": {
282
- "source": "using Amazon.CDK.AWS.MSK.Alpha;\n\nvar cluster = new Cluster(this, \"cluster\", new Struct {\n (SpreadAssignment ...\n encryptionInTransit\n encryptionInTransit)\n}, new Struct {\n ClientBroker = ClientBrokerEncryption.TLS\n}, clientAuthentication, ClientAuthentication.Sasl(new SaslAuthProps {\n Scram = true\n}));",
307
+ "source": "Vpc vpc;\n\nCluster cluster = new Cluster(this, \"cluster\", new ClusterProps {\n ClusterName = \"myCluster\",\n KafkaVersion = KafkaVersion.V2_8_1,\n Vpc = vpc,\n EncryptionInTransit = new EncryptionInTransitConfig {\n ClientBroker = ClientBrokerEncryption.TLS\n },\n ClientAuthentication = ClientAuthentication.Sasl(new SaslAuthProps {\n Scram = true\n })\n});",
283
308
  "version": "1"
284
309
  },
285
310
  "java": {
286
- "source": "import software.amazon.awscdk.services.msk.alpha.*;\n\nObject cluster = new cluster(this, \"cluster\", Map.of(\n (SpreadAssignment ...\n encryptionInTransit\n encryptionInTransit)), Map.of(\n \"clientBroker\", ClientBrokerEncryption.TLS), clientAuthentication, ClientAuthentication.sasl(SaslAuthProps.builder()\n .scram(true)\n .build()));",
311
+ "source": "Vpc vpc;\n\nCluster cluster = Cluster.Builder.create(this, \"cluster\")\n .clusterName(\"myCluster\")\n .kafkaVersion(KafkaVersion.V2_8_1)\n .vpc(vpc)\n .encryptionInTransit(EncryptionInTransitConfig.builder()\n .clientBroker(ClientBrokerEncryption.TLS)\n .build())\n .clientAuthentication(ClientAuthentication.sasl(SaslAuthProps.builder()\n .scram(true)\n .build()))\n .build();",
287
312
  "version": "1"
288
313
  },
289
314
  "$": {
290
- "source": "import * as msk from \"@aws-cdk/aws-msk-alpha\"\n\nconst cluster = new msk.cluster(this, \"cluster\", {\n ...\n encryptionInTransit: {\n clientBroker: msk.ClientBrokerEncryption.TLS,\n },\n clientAuthentication: msk.ClientAuthentication.sasl({\n scram: true,\n }),\n})",
315
+ "source": "declare const vpc: ec2.Vpc;\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});",
291
316
  "version": "0"
292
317
  }
293
318
  },
@@ -298,55 +323,61 @@
298
323
  },
299
324
  "field": {
300
325
  "field": "markdown",
301
- "line": 107
326
+ "line": 113
302
327
  }
303
328
  },
304
- "didCompile": false,
329
+ "didCompile": true,
305
330
  "fqnsReferenced": [
306
331
  "@aws-cdk/aws-msk-alpha.ClientAuthentication",
307
332
  "@aws-cdk/aws-msk-alpha.ClientAuthentication#sasl",
308
333
  "@aws-cdk/aws-msk-alpha.ClientBrokerEncryption",
309
334
  "@aws-cdk/aws-msk-alpha.ClientBrokerEncryption#TLS",
310
- "@aws-cdk/aws-msk-alpha.SaslAuthProps"
335
+ "@aws-cdk/aws-msk-alpha.Cluster",
336
+ "@aws-cdk/aws-msk-alpha.ClusterProps",
337
+ "@aws-cdk/aws-msk-alpha.EncryptionInTransitConfig",
338
+ "@aws-cdk/aws-msk-alpha.KafkaVersion",
339
+ "@aws-cdk/aws-msk-alpha.KafkaVersion#V2_8_1",
340
+ "@aws-cdk/aws-msk-alpha.SaslAuthProps",
341
+ "aws-cdk-lib.aws_ec2.IVpc"
311
342
  ],
312
- "fullSource": "import * as msk from \"@aws-cdk/aws-msk-alpha\"\n\nconst cluster = new msk.cluster(this, \"cluster\", {\n ...\n encryptionInTransit: {\n clientBroker: msk.ClientBrokerEncryption.TLS,\n },\n clientAuthentication: msk.ClientAuthentication.sasl({\n scram: true,\n }),\n})",
343
+ "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}",
313
344
  "syntaxKindCounter": {
314
345
  "10": 2,
315
- "75": 14,
346
+ "75": 22,
316
347
  "104": 1,
317
348
  "106": 1,
349
+ "130": 1,
350
+ "153": 1,
351
+ "169": 1,
318
352
  "193": 3,
319
- "194": 5,
353
+ "194": 7,
320
354
  "196": 1,
321
355
  "197": 1,
322
- "225": 1,
323
- "242": 1,
324
- "243": 1,
325
- "254": 1,
326
- "255": 1,
327
- "256": 1,
328
- "281": 2,
329
- "283": 1,
356
+ "225": 2,
357
+ "242": 2,
358
+ "243": 2,
359
+ "281": 6,
360
+ "282": 1,
330
361
  "290": 1
331
362
  },
332
- "fqnsFingerprint": "b8f845b2f995b6cc88c24714b4737253b36f57c382e126167e1921b59ba48d10"
363
+ "fqnsFingerprint": "22da5feee19844b7ad16aa6d78b192edfb67d484a4fbbb58ed8e6d8a1ed83349"
333
364
  },
334
- "e6f7a12dfe227cb129f1aa5e7e0eb94a159d7f839e44227aca7cc01e3a229fba": {
365
+ "ff4280f83da88b9826a806ac351865b90d9e26c988ee468ff6a9c34bab93f7cd": {
335
366
  "translations": {
336
367
  "python": {
337
- "source": "import aws_cdk.aws_msk_alpha as msk\n\ncluster = msk.cluster(self, \"cluster\", {\n (SpreadAssignment ...\n encryptionInTransit\n encryption_in_transit)\n}, {\n \"client_broker\": msk.ClientBrokerEncryption.TLS\n}, client_authentication, msk.ClientAuthentication.sasl(\n iam=True\n))",
338
- "version": "1"
368
+ "source": "# vpc: ec2.Vpc\n\ncluster = msk.Cluster(self, \"cluster\",\n cluster_name=\"myCluster\",\n kafka_version=msk.KafkaVersion.V2_8_1,\n vpc=vpc,\n encryption_in_transit=msk.EncryptionInTransitConfig(\n client_broker=msk.ClientBrokerEncryption.TLS\n ),\n client_authentication=msk.ClientAuthentication.sasl(\n iam=True\n )\n)",
369
+ "version": "2"
339
370
  },
340
371
  "csharp": {
341
- "source": "using Amazon.CDK.AWS.MSK.Alpha;\n\nvar cluster = new Cluster(this, \"cluster\", new Struct {\n (SpreadAssignment ...\n encryptionInTransit\n encryptionInTransit)\n}, new Struct {\n ClientBroker = ClientBrokerEncryption.TLS\n}, clientAuthentication, ClientAuthentication.Sasl(new SaslAuthProps {\n Iam = true\n}));",
372
+ "source": "Vpc vpc;\n\nCluster cluster = new Cluster(this, \"cluster\", new ClusterProps {\n ClusterName = \"myCluster\",\n KafkaVersion = KafkaVersion.V2_8_1,\n Vpc = vpc,\n EncryptionInTransit = new EncryptionInTransitConfig {\n ClientBroker = ClientBrokerEncryption.TLS\n },\n ClientAuthentication = ClientAuthentication.Sasl(new SaslAuthProps {\n Iam = true\n })\n});",
342
373
  "version": "1"
343
374
  },
344
375
  "java": {
345
- "source": "import software.amazon.awscdk.services.msk.alpha.*;\n\nObject cluster = new cluster(this, \"cluster\", Map.of(\n (SpreadAssignment ...\n encryptionInTransit\n encryptionInTransit)), Map.of(\n \"clientBroker\", ClientBrokerEncryption.TLS), clientAuthentication, ClientAuthentication.sasl(SaslAuthProps.builder()\n .iam(true)\n .build()));",
376
+ "source": "Vpc vpc;\n\nCluster cluster = Cluster.Builder.create(this, \"cluster\")\n .clusterName(\"myCluster\")\n .kafkaVersion(KafkaVersion.V2_8_1)\n .vpc(vpc)\n .encryptionInTransit(EncryptionInTransitConfig.builder()\n .clientBroker(ClientBrokerEncryption.TLS)\n .build())\n .clientAuthentication(ClientAuthentication.sasl(SaslAuthProps.builder()\n .iam(true)\n .build()))\n .build();",
346
377
  "version": "1"
347
378
  },
348
379
  "$": {
349
- "source": "import * as msk from \"@aws-cdk/aws-msk-alpha\"\n\nconst cluster = new msk.cluster(this, \"cluster\", {\n ...\n encryptionInTransit: {\n clientBroker: msk.ClientBrokerEncryption.TLS,\n },\n clientAuthentication: msk.ClientAuthentication.sasl({\n iam: true,\n }),\n})",
380
+ "source": "declare const vpc: ec2.Vpc;\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});",
350
381
  "version": "0"
351
382
  }
352
383
  },
@@ -357,44 +388,50 @@
357
388
  },
358
389
  "field": {
359
390
  "field": "markdown",
360
- "line": 125
391
+ "line": 132
361
392
  }
362
393
  },
363
- "didCompile": false,
394
+ "didCompile": true,
364
395
  "fqnsReferenced": [
365
396
  "@aws-cdk/aws-msk-alpha.ClientAuthentication",
366
397
  "@aws-cdk/aws-msk-alpha.ClientAuthentication#sasl",
367
398
  "@aws-cdk/aws-msk-alpha.ClientBrokerEncryption",
368
399
  "@aws-cdk/aws-msk-alpha.ClientBrokerEncryption#TLS",
369
- "@aws-cdk/aws-msk-alpha.SaslAuthProps"
400
+ "@aws-cdk/aws-msk-alpha.Cluster",
401
+ "@aws-cdk/aws-msk-alpha.ClusterProps",
402
+ "@aws-cdk/aws-msk-alpha.EncryptionInTransitConfig",
403
+ "@aws-cdk/aws-msk-alpha.KafkaVersion",
404
+ "@aws-cdk/aws-msk-alpha.KafkaVersion#V2_8_1",
405
+ "@aws-cdk/aws-msk-alpha.SaslAuthProps",
406
+ "aws-cdk-lib.aws_ec2.IVpc"
370
407
  ],
371
- "fullSource": "import * as msk from \"@aws-cdk/aws-msk-alpha\"\n\nconst cluster = new msk.cluster(this, \"cluster\", {\n ...\n encryptionInTransit: {\n clientBroker: msk.ClientBrokerEncryption.TLS,\n },\n clientAuthentication: msk.ClientAuthentication.sasl({\n iam: true,\n }),\n})",
408
+ "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}",
372
409
  "syntaxKindCounter": {
373
410
  "10": 2,
374
- "75": 14,
411
+ "75": 22,
375
412
  "104": 1,
376
413
  "106": 1,
414
+ "130": 1,
415
+ "153": 1,
416
+ "169": 1,
377
417
  "193": 3,
378
- "194": 5,
418
+ "194": 7,
379
419
  "196": 1,
380
420
  "197": 1,
381
- "225": 1,
382
- "242": 1,
383
- "243": 1,
384
- "254": 1,
385
- "255": 1,
386
- "256": 1,
387
- "281": 2,
388
- "283": 1,
421
+ "225": 2,
422
+ "242": 2,
423
+ "243": 2,
424
+ "281": 6,
425
+ "282": 1,
389
426
  "290": 1
390
427
  },
391
- "fqnsFingerprint": "b8f845b2f995b6cc88c24714b4737253b36f57c382e126167e1921b59ba48d10"
428
+ "fqnsFingerprint": "22da5feee19844b7ad16aa6d78b192edfb67d484a4fbbb58ed8e6d8a1ed83349"
392
429
  },
393
430
  "88b7418011c4e900758130e11c31562b3097104145fbb989aae0316c16cf9934": {
394
431
  "translations": {
395
432
  "python": {
396
- "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_msk_alpha as msk_alpha\nfrom aws_cdk import aws_logs as logs\nfrom aws_cdk import aws_s3 as s3\n\n# bucket is of type Bucket\n# log_group is of type LogGroup\n\nbroker_logging = msk_alpha.BrokerLogging(\n cloudwatch_log_group=log_group,\n firehose_delivery_stream_name=\"firehoseDeliveryStreamName\",\n s3=msk_alpha.S3LoggingConfiguration(\n bucket=bucket,\n\n # the properties below are optional\n prefix=\"prefix\"\n )\n)",
397
- "version": "1"
433
+ "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_msk_alpha as msk_alpha\nfrom aws_cdk import aws_logs as logs\nfrom aws_cdk import aws_s3 as s3\n\n# bucket: s3.Bucket\n# log_group: logs.LogGroup\n\nbroker_logging = msk_alpha.BrokerLogging(\n cloudwatch_log_group=log_group,\n firehose_delivery_stream_name=\"firehoseDeliveryStreamName\",\n s3=msk_alpha.S3LoggingConfiguration(\n bucket=bucket,\n\n # the properties below are optional\n prefix=\"prefix\"\n )\n)",
434
+ "version": "2"
398
435
  },
399
436
  "csharp": {
400
437
  "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.MSK.Alpha;\nusing Amazon.CDK.AWS.Logs;\nusing Amazon.CDK.AWS.S3;\n\nBucket bucket;\nLogGroup logGroup;\n\nBrokerLogging brokerLogging = new BrokerLogging {\n CloudwatchLogGroup = logGroup,\n FirehoseDeliveryStreamName = \"firehoseDeliveryStreamName\",\n S3 = new S3LoggingConfiguration {\n Bucket = bucket,\n\n // the properties below are optional\n Prefix = \"prefix\"\n }\n};",
@@ -444,24 +481,24 @@
444
481
  "281": 5,
445
482
  "290": 1
446
483
  },
447
- "fqnsFingerprint": "a39f68001c74d09eef80706612a5453569cedcbbeff71e9aad6d21d104b62478"
484
+ "fqnsFingerprint": "989a9894f69ab435d954c7873fffad36949cd422d36e38a91236d00dd370e7b1"
448
485
  },
449
- "abc52bbc5650c79e6165ed74f972426ef4f5c398d51f916ab8e78ae00133b602": {
486
+ "1b506592a03e4321a2590bb92b1d40c2a3b08b1b7f4fc542a634d7ea180092a8": {
450
487
  "translations": {
451
488
  "python": {
452
- "source": "import aws_cdk.aws_msk_alpha as msk\n\ncluster = msk.cluster(self, \"cluster\", {\n (SpreadAssignment ...\n encryptionInTransit\n encryption_in_transit)\n}, {\n \"client_broker\": msk.ClientBrokerEncryption.TLS\n}, client_authentication, msk.ClientAuthentication.sasl(\n scram=True\n))",
453
- "version": "1"
489
+ "source": "# vpc: ec2.Vpc\n\ncluster = msk.Cluster(self, \"cluster\",\n cluster_name=\"myCluster\",\n kafka_version=msk.KafkaVersion.V2_8_1,\n vpc=vpc,\n encryption_in_transit=msk.EncryptionInTransitConfig(\n client_broker=msk.ClientBrokerEncryption.TLS\n ),\n client_authentication=msk.ClientAuthentication.sasl(\n scram=True\n )\n)",
490
+ "version": "2"
454
491
  },
455
492
  "csharp": {
456
- "source": "using Amazon.CDK.AWS.MSK.Alpha;\n\nvar cluster = new Cluster(this, \"cluster\", new Struct {\n (SpreadAssignment ...\n encryptionInTransit\n encryptionInTransit)\n}, new Struct {\n ClientBroker = ClientBrokerEncryption.TLS\n}, clientAuthentication, ClientAuthentication.Sasl(new SaslAuthProps {\n Scram = true\n}));",
493
+ "source": "Vpc vpc;\n\nCluster cluster = new Cluster(this, \"cluster\", new ClusterProps {\n ClusterName = \"myCluster\",\n KafkaVersion = KafkaVersion.V2_8_1,\n Vpc = vpc,\n EncryptionInTransit = new EncryptionInTransitConfig {\n ClientBroker = ClientBrokerEncryption.TLS\n },\n ClientAuthentication = ClientAuthentication.Sasl(new SaslAuthProps {\n Scram = true\n })\n});",
457
494
  "version": "1"
458
495
  },
459
496
  "java": {
460
- "source": "import software.amazon.awscdk.services.msk.alpha.*;\n\nObject cluster = new cluster(this, \"cluster\", Map.of(\n (SpreadAssignment ...\n encryptionInTransit\n encryptionInTransit)), Map.of(\n \"clientBroker\", ClientBrokerEncryption.TLS), clientAuthentication, ClientAuthentication.sasl(SaslAuthProps.builder()\n .scram(true)\n .build()));",
497
+ "source": "Vpc vpc;\n\nCluster cluster = Cluster.Builder.create(this, \"cluster\")\n .clusterName(\"myCluster\")\n .kafkaVersion(KafkaVersion.V2_8_1)\n .vpc(vpc)\n .encryptionInTransit(EncryptionInTransitConfig.builder()\n .clientBroker(ClientBrokerEncryption.TLS)\n .build())\n .clientAuthentication(ClientAuthentication.sasl(SaslAuthProps.builder()\n .scram(true)\n .build()))\n .build();",
461
498
  "version": "1"
462
499
  },
463
500
  "$": {
464
- "source": "import * as msk from \"@aws-cdk/aws-msk-alpha\"\n\nconst cluster = new msk.cluster(this, \"cluster\", {\n ...\n encryptionInTransit: {\n clientBroker: msk.ClientBrokerEncryption.TLS,\n },\n clientAuthentication: msk.ClientAuthentication.sasl({\n scram: true,\n }),\n})",
501
+ "source": "declare const vpc: ec2.Vpc;\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});",
465
502
  "version": "0"
466
503
  }
467
504
  },
@@ -474,52 +511,58 @@
474
511
  "field": "example"
475
512
  }
476
513
  },
477
- "didCompile": false,
514
+ "didCompile": true,
478
515
  "fqnsReferenced": [
479
516
  "@aws-cdk/aws-msk-alpha.ClientAuthentication",
480
517
  "@aws-cdk/aws-msk-alpha.ClientAuthentication#sasl",
481
518
  "@aws-cdk/aws-msk-alpha.ClientBrokerEncryption",
482
519
  "@aws-cdk/aws-msk-alpha.ClientBrokerEncryption#TLS",
483
- "@aws-cdk/aws-msk-alpha.SaslAuthProps"
520
+ "@aws-cdk/aws-msk-alpha.Cluster",
521
+ "@aws-cdk/aws-msk-alpha.ClusterProps",
522
+ "@aws-cdk/aws-msk-alpha.EncryptionInTransitConfig",
523
+ "@aws-cdk/aws-msk-alpha.KafkaVersion",
524
+ "@aws-cdk/aws-msk-alpha.KafkaVersion#V2_8_1",
525
+ "@aws-cdk/aws-msk-alpha.SaslAuthProps",
526
+ "aws-cdk-lib.aws_ec2.IVpc"
484
527
  ],
485
- "fullSource": "import * as msk from \"@aws-cdk/aws-msk-alpha\"\n\nconst cluster = new msk.cluster(this, \"cluster\", {\n ...\n encryptionInTransit: {\n clientBroker: msk.ClientBrokerEncryption.TLS,\n },\n clientAuthentication: msk.ClientAuthentication.sasl({\n scram: true,\n }),\n})",
528
+ "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}",
486
529
  "syntaxKindCounter": {
487
530
  "10": 2,
488
- "75": 14,
531
+ "75": 22,
489
532
  "104": 1,
490
533
  "106": 1,
534
+ "130": 1,
535
+ "153": 1,
536
+ "169": 1,
491
537
  "193": 3,
492
- "194": 5,
538
+ "194": 7,
493
539
  "196": 1,
494
540
  "197": 1,
495
- "225": 1,
496
- "242": 1,
497
- "243": 1,
498
- "254": 1,
499
- "255": 1,
500
- "256": 1,
501
- "281": 2,
502
- "283": 1,
541
+ "225": 2,
542
+ "242": 2,
543
+ "243": 2,
544
+ "281": 6,
545
+ "282": 1,
503
546
  "290": 1
504
547
  },
505
- "fqnsFingerprint": "b8f845b2f995b6cc88c24714b4737253b36f57c382e126167e1921b59ba48d10"
548
+ "fqnsFingerprint": "22da5feee19844b7ad16aa6d78b192edfb67d484a4fbbb58ed8e6d8a1ed83349"
506
549
  },
507
- "cff3b29e78a8161df7384a9caa5d2f6e46259df777c4d149896d9d7bdeafcbb6": {
550
+ "dd782f7b5d131665544df13665a666c6ccd6395ad137dcd571d82e82fbfd4846": {
508
551
  "translations": {
509
552
  "python": {
510
- "source": "import aws_cdk.aws_msk_alpha as msk\n\ncluster = msk.cluster(self, \"cluster\", {\n (SpreadAssignment ...\n encryptionInTransit\n encryption_in_transit)\n}, {\n \"client_broker\": msk.ClientBrokerEncryption.TLS\n}, client_authentication, msk.ClientAuthentication.sasl(\n scram=True\n))",
511
- "version": "1"
553
+ "source": "# vpc: ec2.Vpc\n\ncluster = msk.Cluster(self, \"cluster\",\n cluster_name=\"myCluster\",\n kafka_version=msk.KafkaVersion.V2_8_1,\n vpc=vpc,\n encryption_in_transit=msk.EncryptionInTransitConfig(\n client_broker=msk.ClientBrokerEncryption.TLS\n ),\n client_authentication=msk.ClientAuthentication.sasl(\n scram=True\n )\n)",
554
+ "version": "2"
512
555
  },
513
556
  "csharp": {
514
- "source": "using Amazon.CDK.AWS.MSK.Alpha;\n\nvar cluster = new Cluster(this, \"cluster\", new Struct {\n (SpreadAssignment ...\n encryptionInTransit\n encryptionInTransit)\n}, new Struct {\n ClientBroker = ClientBrokerEncryption.TLS\n}, clientAuthentication, ClientAuthentication.Sasl(new SaslAuthProps {\n Scram = true\n}));",
557
+ "source": "Vpc vpc;\n\nCluster cluster = new Cluster(this, \"cluster\", new ClusterProps {\n ClusterName = \"myCluster\",\n KafkaVersion = KafkaVersion.V2_8_1,\n Vpc = vpc,\n EncryptionInTransit = new EncryptionInTransitConfig {\n ClientBroker = ClientBrokerEncryption.TLS\n },\n ClientAuthentication = ClientAuthentication.Sasl(new SaslAuthProps {\n Scram = true\n })\n});",
515
558
  "version": "1"
516
559
  },
517
560
  "java": {
518
- "source": "import software.amazon.awscdk.services.msk.alpha.*;\n\nObject cluster = new cluster(this, \"cluster\", Map.of(\n (SpreadAssignment ...\n encryptionInTransit\n encryptionInTransit)), Map.of(\n \"clientBroker\", ClientBrokerEncryption.TLS), clientAuthentication, ClientAuthentication.sasl(SaslAuthProps.builder()\n .scram(true)\n .build()));",
561
+ "source": "Vpc vpc;\n\nCluster cluster = Cluster.Builder.create(this, \"cluster\")\n .clusterName(\"myCluster\")\n .kafkaVersion(KafkaVersion.V2_8_1)\n .vpc(vpc)\n .encryptionInTransit(EncryptionInTransitConfig.builder()\n .clientBroker(ClientBrokerEncryption.TLS)\n .build())\n .clientAuthentication(ClientAuthentication.sasl(SaslAuthProps.builder()\n .scram(true)\n .build()))\n .build();",
519
562
  "version": "1"
520
563
  },
521
564
  "$": {
522
- "source": "import * as msk from \"@aws-cdk/aws-msk-alpha\"\n\nconst cluster = new msk.cluster(this, \"cluster\", {\n ...\n encryptionInTransit: {\n clientBroker: msk.ClientBrokerEncryption.TLS,\n },\n clientAuthentication: msk.ClientAuthentication.sasl({\n scram: true,\n }),\n})",
565
+ "source": "declare const vpc: ec2.Vpc;\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});",
523
566
  "version": "0"
524
567
  }
525
568
  },
@@ -532,52 +575,58 @@
532
575
  "field": "example"
533
576
  }
534
577
  },
535
- "didCompile": false,
578
+ "didCompile": true,
536
579
  "fqnsReferenced": [
537
580
  "@aws-cdk/aws-msk-alpha.ClientAuthentication",
538
581
  "@aws-cdk/aws-msk-alpha.ClientAuthentication#sasl",
539
582
  "@aws-cdk/aws-msk-alpha.ClientBrokerEncryption",
540
583
  "@aws-cdk/aws-msk-alpha.ClientBrokerEncryption#TLS",
541
- "@aws-cdk/aws-msk-alpha.SaslAuthProps"
584
+ "@aws-cdk/aws-msk-alpha.Cluster",
585
+ "@aws-cdk/aws-msk-alpha.ClusterProps",
586
+ "@aws-cdk/aws-msk-alpha.EncryptionInTransitConfig",
587
+ "@aws-cdk/aws-msk-alpha.KafkaVersion",
588
+ "@aws-cdk/aws-msk-alpha.KafkaVersion#V2_8_1",
589
+ "@aws-cdk/aws-msk-alpha.SaslAuthProps",
590
+ "aws-cdk-lib.aws_ec2.IVpc"
542
591
  ],
543
- "fullSource": "import * as msk from \"@aws-cdk/aws-msk-alpha\"\n\nconst cluster = new msk.cluster(this, \"cluster\", {\n ...\n encryptionInTransit: {\n clientBroker: msk.ClientBrokerEncryption.TLS,\n },\n clientAuthentication: msk.ClientAuthentication.sasl({\n scram: true,\n }),\n})",
592
+ "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}",
544
593
  "syntaxKindCounter": {
545
594
  "10": 2,
546
- "75": 14,
595
+ "75": 22,
547
596
  "104": 1,
548
597
  "106": 1,
598
+ "130": 1,
599
+ "153": 1,
600
+ "169": 1,
549
601
  "193": 3,
550
- "194": 5,
602
+ "194": 7,
551
603
  "196": 1,
552
604
  "197": 1,
553
- "225": 1,
554
- "242": 1,
555
- "243": 1,
556
- "254": 1,
557
- "255": 1,
558
- "256": 1,
559
- "281": 2,
560
- "283": 1,
605
+ "225": 2,
606
+ "242": 2,
607
+ "243": 2,
608
+ "281": 6,
609
+ "282": 1,
561
610
  "290": 1
562
611
  },
563
- "fqnsFingerprint": "b8f845b2f995b6cc88c24714b4737253b36f57c382e126167e1921b59ba48d10"
612
+ "fqnsFingerprint": "22da5feee19844b7ad16aa6d78b192edfb67d484a4fbbb58ed8e6d8a1ed83349"
564
613
  },
565
- "4fd574236b78643ddafe0c80388ea1a18b3c391617fcbbd998ac54cf88bd9825": {
614
+ "e1622851fca018382002722cbcc82c9042347e9010aba0984d77396019db5ced": {
566
615
  "translations": {
567
616
  "python": {
568
- "source": "import aws_cdk.aws_msk_alpha as msk\nimport aws_cdk.aws_ec2 as ec2\n\ncluster = msk.Cluster(self, \"Cluster\", ...)\n\ncluster.connections.allow_from(\n ec2.Peer.ipv4(\"1.2.3.4/8\"),\n ec2.Port.tcp(2181))\ncluster.connections.allow_from(\n ec2.Peer.ipv4(\"1.2.3.4/8\"),\n ec2.Port.tcp(9094))",
569
- "version": "1"
617
+ "source": "# vpc: ec2.Vpc\n\ncluster = msk.Cluster(self, \"cluster\",\n cluster_name=\"myCluster\",\n kafka_version=msk.KafkaVersion.V2_8_1,\n vpc=vpc,\n encryption_in_transit=msk.EncryptionInTransitConfig(\n client_broker=msk.ClientBrokerEncryption.TLS\n ),\n client_authentication=msk.ClientAuthentication.sasl(\n scram=True\n )\n)",
618
+ "version": "2"
570
619
  },
571
620
  "csharp": {
572
- "source": "using Amazon.CDK.AWS.MSK.Alpha;\nusing Amazon.CDK.AWS.EC2;\n\nCluster cluster = new Cluster(this, \"Cluster\", new ClusterProps { ... });\n\ncluster.Connections.AllowFrom(Peer.Ipv4(\"1.2.3.4/8\"), Port.Tcp(2181));\ncluster.Connections.AllowFrom(Peer.Ipv4(\"1.2.3.4/8\"), Port.Tcp(9094));",
621
+ "source": "Vpc vpc;\n\nCluster cluster = new Cluster(this, \"cluster\", new ClusterProps {\n ClusterName = \"myCluster\",\n KafkaVersion = KafkaVersion.V2_8_1,\n Vpc = vpc,\n EncryptionInTransit = new EncryptionInTransitConfig {\n ClientBroker = ClientBrokerEncryption.TLS\n },\n ClientAuthentication = ClientAuthentication.Sasl(new SaslAuthProps {\n Scram = true\n })\n});",
573
622
  "version": "1"
574
623
  },
575
624
  "java": {
576
- "source": "import software.amazon.awscdk.services.msk.alpha.*;\nimport software.amazon.awscdk.services.ec2.*;\n\nCluster cluster = Cluster.Builder.create(this, \"Cluster\")....build();\n\ncluster.connections.allowFrom(Peer.ipv4(\"1.2.3.4/8\"), Port.tcp(2181));\ncluster.connections.allowFrom(Peer.ipv4(\"1.2.3.4/8\"), Port.tcp(9094));",
625
+ "source": "Vpc vpc;\n\nCluster cluster = Cluster.Builder.create(this, \"cluster\")\n .clusterName(\"myCluster\")\n .kafkaVersion(KafkaVersion.V2_8_1)\n .vpc(vpc)\n .encryptionInTransit(EncryptionInTransitConfig.builder()\n .clientBroker(ClientBrokerEncryption.TLS)\n .build())\n .clientAuthentication(ClientAuthentication.sasl(SaslAuthProps.builder()\n .scram(true)\n .build()))\n .build();",
577
626
  "version": "1"
578
627
  },
579
628
  "$": {
580
- "source": "import * as msk from \"@aws-cdk/aws-msk-alpha\"\nimport * as ec2 from \"aws-cdk-lib/aws-ec2\"\n\nconst cluster = new msk.Cluster(this, \"Cluster\", {...})\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)",
629
+ "source": "declare const vpc: ec2.Vpc;\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});",
581
630
  "version": "0"
582
631
  }
583
632
  },
@@ -590,44 +639,47 @@
590
639
  "field": "example"
591
640
  }
592
641
  },
593
- "didCompile": false,
642
+ "didCompile": true,
594
643
  "fqnsReferenced": [
644
+ "@aws-cdk/aws-msk-alpha.ClientAuthentication",
645
+ "@aws-cdk/aws-msk-alpha.ClientAuthentication#sasl",
646
+ "@aws-cdk/aws-msk-alpha.ClientBrokerEncryption",
647
+ "@aws-cdk/aws-msk-alpha.ClientBrokerEncryption#TLS",
595
648
  "@aws-cdk/aws-msk-alpha.Cluster",
596
649
  "@aws-cdk/aws-msk-alpha.ClusterProps",
597
- "aws-cdk-lib.aws_ec2.Connections#allowFrom",
598
- "aws-cdk-lib.aws_ec2.IConnectable",
599
- "aws-cdk-lib.aws_ec2.Peer",
600
- "aws-cdk-lib.aws_ec2.Peer#ipv4",
601
- "aws-cdk-lib.aws_ec2.Port",
602
- "aws-cdk-lib.aws_ec2.Port#tcp"
650
+ "@aws-cdk/aws-msk-alpha.EncryptionInTransitConfig",
651
+ "@aws-cdk/aws-msk-alpha.KafkaVersion",
652
+ "@aws-cdk/aws-msk-alpha.KafkaVersion#V2_8_1",
653
+ "@aws-cdk/aws-msk-alpha.SaslAuthProps",
654
+ "aws-cdk-lib.aws_ec2.IVpc"
603
655
  ],
604
- "fullSource": "import * as msk from \"@aws-cdk/aws-msk-alpha\"\nimport * as ec2 from \"aws-cdk-lib/aws-ec2\"\n\nconst cluster = new msk.Cluster(this, \"Cluster\", {...})\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)",
656
+ "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}",
605
657
  "syntaxKindCounter": {
606
- "8": 2,
607
- "10": 5,
608
- "75": 24,
658
+ "10": 2,
659
+ "75": 22,
609
660
  "104": 1,
610
- "193": 1,
611
- "194": 13,
612
- "196": 6,
661
+ "106": 1,
662
+ "130": 1,
663
+ "153": 1,
664
+ "169": 1,
665
+ "193": 3,
666
+ "194": 7,
667
+ "196": 1,
613
668
  "197": 1,
614
- "225": 1,
615
- "226": 2,
616
- "242": 1,
617
- "243": 1,
618
- "254": 2,
619
- "255": 2,
620
- "256": 2,
621
- "283": 1,
669
+ "225": 2,
670
+ "242": 2,
671
+ "243": 2,
672
+ "281": 6,
673
+ "282": 1,
622
674
  "290": 1
623
675
  },
624
- "fqnsFingerprint": "bf0d508ebea6390843197de7a686477535e228fbb28ee3af8ff2a31565fa7465"
676
+ "fqnsFingerprint": "22da5feee19844b7ad16aa6d78b192edfb67d484a4fbbb58ed8e6d8a1ed83349"
625
677
  },
626
678
  "8888290d454b2f1c84cb95896d64bf084cbbc6f841bab461b3f4b81a18ddc6f9": {
627
679
  "translations": {
628
680
  "python": {
629
681
  "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_msk_alpha as msk_alpha\n\ncluster_configuration_info = msk_alpha.ClusterConfigurationInfo(\n arn=\"arn\",\n revision=123\n)",
630
- "version": "1"
682
+ "version": "2"
631
683
  },
632
684
  "csharp": {
633
685
  "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.MSK.Alpha;\n\nClusterConfigurationInfo clusterConfigurationInfo = new ClusterConfigurationInfo {\n Arn = \"arn\",\n Revision = 123\n};",
@@ -674,22 +726,22 @@
674
726
  },
675
727
  "fqnsFingerprint": "4bce1b7851c46792b1be92271a292a0647cf08ab1a9ff992cae1f2767916d745"
676
728
  },
677
- "d3f01eb62169205f4e56402730360a1441a771303522aceacabd41e9d47b2106": {
729
+ "38cbe181fb4820d2527fd23c10cd4bf40c1cdeb31c6848c65a7864c26f7991e1": {
678
730
  "translations": {
679
731
  "python": {
680
- "source": "import aws_cdk.aws_msk_alpha as msk\nimport aws_cdk.aws_ec2 as ec2\n\ncluster = msk.Cluster(self, \"Cluster\", ...)\n\ncluster.connections.allow_from(\n ec2.Peer.ipv4(\"1.2.3.4/8\"),\n ec2.Port.tcp(2181))\ncluster.connections.allow_from(\n ec2.Peer.ipv4(\"1.2.3.4/8\"),\n ec2.Port.tcp(9094))",
681
- "version": "1"
732
+ "source": "# vpc: ec2.Vpc\n\ncluster = msk.Cluster(self, \"cluster\",\n cluster_name=\"myCluster\",\n kafka_version=msk.KafkaVersion.V2_8_1,\n vpc=vpc,\n encryption_in_transit=msk.EncryptionInTransitConfig(\n client_broker=msk.ClientBrokerEncryption.TLS\n ),\n client_authentication=msk.ClientAuthentication.sasl(\n scram=True\n )\n)",
733
+ "version": "2"
682
734
  },
683
735
  "csharp": {
684
- "source": "using Amazon.CDK.AWS.MSK.Alpha;\nusing Amazon.CDK.AWS.EC2;\n\nCluster cluster = new Cluster(this, \"Cluster\", new ClusterProps { ... });\n\ncluster.Connections.AllowFrom(Peer.Ipv4(\"1.2.3.4/8\"), Port.Tcp(2181));\ncluster.Connections.AllowFrom(Peer.Ipv4(\"1.2.3.4/8\"), Port.Tcp(9094));",
736
+ "source": "Vpc vpc;\n\nCluster cluster = new Cluster(this, \"cluster\", new ClusterProps {\n ClusterName = \"myCluster\",\n KafkaVersion = KafkaVersion.V2_8_1,\n Vpc = vpc,\n EncryptionInTransit = new EncryptionInTransitConfig {\n ClientBroker = ClientBrokerEncryption.TLS\n },\n ClientAuthentication = ClientAuthentication.Sasl(new SaslAuthProps {\n Scram = true\n })\n});",
685
737
  "version": "1"
686
738
  },
687
739
  "java": {
688
- "source": "import software.amazon.awscdk.services.msk.alpha.*;\nimport software.amazon.awscdk.services.ec2.*;\n\nCluster cluster = Cluster.Builder.create(this, \"Cluster\")....build();\n\ncluster.connections.allowFrom(Peer.ipv4(\"1.2.3.4/8\"), Port.tcp(2181));\ncluster.connections.allowFrom(Peer.ipv4(\"1.2.3.4/8\"), Port.tcp(9094));",
740
+ "source": "Vpc vpc;\n\nCluster cluster = Cluster.Builder.create(this, \"cluster\")\n .clusterName(\"myCluster\")\n .kafkaVersion(KafkaVersion.V2_8_1)\n .vpc(vpc)\n .encryptionInTransit(EncryptionInTransitConfig.builder()\n .clientBroker(ClientBrokerEncryption.TLS)\n .build())\n .clientAuthentication(ClientAuthentication.sasl(SaslAuthProps.builder()\n .scram(true)\n .build()))\n .build();",
689
741
  "version": "1"
690
742
  },
691
743
  "$": {
692
- "source": "import * as msk from \"@aws-cdk/aws-msk-alpha\"\nimport * as ec2 from \"aws-cdk-lib/aws-ec2\"\n\nconst cluster = new msk.Cluster(this, \"Cluster\", {...})\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)",
744
+ "source": "declare const vpc: ec2.Vpc;\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});",
693
745
  "version": "0"
694
746
  }
695
747
  },
@@ -702,44 +754,47 @@
702
754
  "field": "example"
703
755
  }
704
756
  },
705
- "didCompile": false,
757
+ "didCompile": true,
706
758
  "fqnsReferenced": [
759
+ "@aws-cdk/aws-msk-alpha.ClientAuthentication",
760
+ "@aws-cdk/aws-msk-alpha.ClientAuthentication#sasl",
761
+ "@aws-cdk/aws-msk-alpha.ClientBrokerEncryption",
762
+ "@aws-cdk/aws-msk-alpha.ClientBrokerEncryption#TLS",
707
763
  "@aws-cdk/aws-msk-alpha.Cluster",
708
764
  "@aws-cdk/aws-msk-alpha.ClusterProps",
709
- "aws-cdk-lib.aws_ec2.Connections#allowFrom",
710
- "aws-cdk-lib.aws_ec2.IConnectable",
711
- "aws-cdk-lib.aws_ec2.Peer",
712
- "aws-cdk-lib.aws_ec2.Peer#ipv4",
713
- "aws-cdk-lib.aws_ec2.Port",
714
- "aws-cdk-lib.aws_ec2.Port#tcp"
765
+ "@aws-cdk/aws-msk-alpha.EncryptionInTransitConfig",
766
+ "@aws-cdk/aws-msk-alpha.KafkaVersion",
767
+ "@aws-cdk/aws-msk-alpha.KafkaVersion#V2_8_1",
768
+ "@aws-cdk/aws-msk-alpha.SaslAuthProps",
769
+ "aws-cdk-lib.aws_ec2.IVpc"
715
770
  ],
716
- "fullSource": "import * as msk from \"@aws-cdk/aws-msk-alpha\"\nimport * as ec2 from \"aws-cdk-lib/aws-ec2\"\n\nconst cluster = new msk.Cluster(this, \"Cluster\", {...})\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)",
771
+ "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}",
717
772
  "syntaxKindCounter": {
718
- "8": 2,
719
- "10": 5,
720
- "75": 24,
773
+ "10": 2,
774
+ "75": 22,
721
775
  "104": 1,
722
- "193": 1,
723
- "194": 13,
724
- "196": 6,
776
+ "106": 1,
777
+ "130": 1,
778
+ "153": 1,
779
+ "169": 1,
780
+ "193": 3,
781
+ "194": 7,
782
+ "196": 1,
725
783
  "197": 1,
726
- "225": 1,
727
- "226": 2,
728
- "242": 1,
729
- "243": 1,
730
- "254": 2,
731
- "255": 2,
732
- "256": 2,
733
- "283": 1,
784
+ "225": 2,
785
+ "242": 2,
786
+ "243": 2,
787
+ "281": 6,
788
+ "282": 1,
734
789
  "290": 1
735
790
  },
736
- "fqnsFingerprint": "bf0d508ebea6390843197de7a686477535e228fbb28ee3af8ff2a31565fa7465"
791
+ "fqnsFingerprint": "22da5feee19844b7ad16aa6d78b192edfb67d484a4fbbb58ed8e6d8a1ed83349"
737
792
  },
738
793
  "c6e128aabb3ac9937e6654bd018a9974402c4be71960628c3d254bc788c85dd6": {
739
794
  "translations": {
740
795
  "python": {
741
- "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_msk_alpha as msk_alpha\nfrom aws_cdk import aws_kms as kms\n\n# key is of type Key\n\nebs_storage_info = msk_alpha.EbsStorageInfo(\n encryption_key=key,\n volume_size=123\n)",
742
- "version": "1"
796
+ "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_msk_alpha as msk_alpha\nfrom aws_cdk import aws_kms as kms\n\n# key: kms.Key\n\nebs_storage_info = msk_alpha.EbsStorageInfo(\n encryption_key=key,\n volume_size=123\n)",
797
+ "version": "2"
743
798
  },
744
799
  "csharp": {
745
800
  "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.MSK.Alpha;\nusing Amazon.CDK.AWS.KMS;\n\nKey key;\n\nEbsStorageInfo ebsStorageInfo = new EbsStorageInfo {\n EncryptionKey = key,\n VolumeSize = 123\n};",
@@ -788,24 +843,24 @@
788
843
  "281": 2,
789
844
  "290": 1
790
845
  },
791
- "fqnsFingerprint": "563511510522f00600991e4e86fe736217b763b35143741abe2378aa68ec6a02"
846
+ "fqnsFingerprint": "840f7356d2c4fcbc922273763598415867d47aee489d33e1e2edee39405864b8"
792
847
  },
793
- "3bc34cc6d7ebac12150bfd3b150faf00d55037b1debfb3d0941220be889b0707": {
848
+ "b7e8598b96b1b509a2f7bf56711bbb2eb04c32aaf728c688833a2cd39b11a241": {
794
849
  "translations": {
795
850
  "python": {
796
- "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_msk_alpha as msk_alpha\n\nencryption_in_transit_config = msk_alpha.EncryptionInTransitConfig(\n client_broker=msk_alpha.ClientBrokerEncryption.TLS,\n enable_in_cluster=False\n)",
797
- "version": "1"
851
+ "source": "# vpc: ec2.Vpc\n\ncluster = msk.Cluster(self, \"cluster\",\n cluster_name=\"myCluster\",\n kafka_version=msk.KafkaVersion.V2_8_1,\n vpc=vpc,\n encryption_in_transit=msk.EncryptionInTransitConfig(\n client_broker=msk.ClientBrokerEncryption.TLS\n ),\n client_authentication=msk.ClientAuthentication.sasl(\n scram=True\n )\n)",
852
+ "version": "2"
798
853
  },
799
854
  "csharp": {
800
- "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.MSK.Alpha;\n\nEncryptionInTransitConfig encryptionInTransitConfig = new EncryptionInTransitConfig {\n ClientBroker = ClientBrokerEncryption.TLS,\n EnableInCluster = false\n};",
855
+ "source": "Vpc vpc;\n\nCluster cluster = new Cluster(this, \"cluster\", new ClusterProps {\n ClusterName = \"myCluster\",\n KafkaVersion = KafkaVersion.V2_8_1,\n Vpc = vpc,\n EncryptionInTransit = new EncryptionInTransitConfig {\n ClientBroker = ClientBrokerEncryption.TLS\n },\n ClientAuthentication = ClientAuthentication.Sasl(new SaslAuthProps {\n Scram = true\n })\n});",
801
856
  "version": "1"
802
857
  },
803
858
  "java": {
804
- "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.msk.alpha.*;\n\nEncryptionInTransitConfig encryptionInTransitConfig = EncryptionInTransitConfig.builder()\n .clientBroker(ClientBrokerEncryption.TLS)\n .enableInCluster(false)\n .build();",
859
+ "source": "Vpc vpc;\n\nCluster cluster = Cluster.Builder.create(this, \"cluster\")\n .clusterName(\"myCluster\")\n .kafkaVersion(KafkaVersion.V2_8_1)\n .vpc(vpc)\n .encryptionInTransit(EncryptionInTransitConfig.builder()\n .clientBroker(ClientBrokerEncryption.TLS)\n .build())\n .clientAuthentication(ClientAuthentication.sasl(SaslAuthProps.builder()\n .scram(true)\n .build()))\n .build();",
805
860
  "version": "1"
806
861
  },
807
862
  "$": {
808
- "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as msk_alpha from '@aws-cdk/aws-msk-alpha';\nconst encryptionInTransitConfig: msk_alpha.EncryptionInTransitConfig = {\n clientBroker: msk_alpha.ClientBrokerEncryption.TLS,\n enableInCluster: false,\n};",
863
+ "source": "declare const vpc: ec2.Vpc;\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});",
809
864
  "version": "0"
810
865
  }
811
866
  },
@@ -820,46 +875,56 @@
820
875
  },
821
876
  "didCompile": true,
822
877
  "fqnsReferenced": [
878
+ "@aws-cdk/aws-msk-alpha.ClientAuthentication",
879
+ "@aws-cdk/aws-msk-alpha.ClientAuthentication#sasl",
823
880
  "@aws-cdk/aws-msk-alpha.ClientBrokerEncryption",
824
881
  "@aws-cdk/aws-msk-alpha.ClientBrokerEncryption#TLS",
825
- "@aws-cdk/aws-msk-alpha.EncryptionInTransitConfig"
882
+ "@aws-cdk/aws-msk-alpha.Cluster",
883
+ "@aws-cdk/aws-msk-alpha.ClusterProps",
884
+ "@aws-cdk/aws-msk-alpha.EncryptionInTransitConfig",
885
+ "@aws-cdk/aws-msk-alpha.KafkaVersion",
886
+ "@aws-cdk/aws-msk-alpha.KafkaVersion#V2_8_1",
887
+ "@aws-cdk/aws-msk-alpha.SaslAuthProps",
888
+ "aws-cdk-lib.aws_ec2.IVpc"
826
889
  ],
827
- "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 msk_alpha from '@aws-cdk/aws-msk-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 encryptionInTransitConfig: msk_alpha.EncryptionInTransitConfig = {\n clientBroker: msk_alpha.ClientBrokerEncryption.TLS,\n enableInCluster: false,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
890
+ "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}",
828
891
  "syntaxKindCounter": {
829
- "10": 1,
830
- "75": 9,
831
- "91": 1,
892
+ "10": 2,
893
+ "75": 22,
894
+ "104": 1,
895
+ "106": 1,
896
+ "130": 1,
832
897
  "153": 1,
833
898
  "169": 1,
834
- "193": 1,
835
- "194": 2,
836
- "225": 1,
837
- "242": 1,
838
- "243": 1,
839
- "254": 1,
840
- "255": 1,
841
- "256": 1,
842
- "281": 2,
899
+ "193": 3,
900
+ "194": 7,
901
+ "196": 1,
902
+ "197": 1,
903
+ "225": 2,
904
+ "242": 2,
905
+ "243": 2,
906
+ "281": 6,
907
+ "282": 1,
843
908
  "290": 1
844
909
  },
845
- "fqnsFingerprint": "a54408a903cd322fccbd719727365154300116634139ef2ef9ec85b26c490f65"
910
+ "fqnsFingerprint": "22da5feee19844b7ad16aa6d78b192edfb67d484a4fbbb58ed8e6d8a1ed83349"
846
911
  },
847
- "0ad6bfb0f65b51bb3c39ec12fec3fe8e1ba1e1b0bd508166193c12f2124caea6": {
912
+ "9706bb7ec60ca26bf0565bb6843e9ecd368ba381302ba3c8475e30b62c651070": {
848
913
  "translations": {
849
914
  "python": {
850
- "source": "import aws_cdk.aws_msk_alpha as msk\n\ncluster = Cluster(self, \"Cluster\",\n kafka_version=msk.KafkaVersion.V2_8_1,\n vpc=vpc\n)",
851
- "version": "1"
915
+ "source": "# vpc: ec2.Vpc\n\ncluster = msk.Cluster(self, \"cluster\",\n cluster_name=\"myCluster\",\n kafka_version=msk.KafkaVersion.V2_8_1,\n vpc=vpc,\n encryption_in_transit=msk.EncryptionInTransitConfig(\n client_broker=msk.ClientBrokerEncryption.TLS\n ),\n client_authentication=msk.ClientAuthentication.sasl(\n scram=True\n )\n)",
916
+ "version": "2"
852
917
  },
853
918
  "csharp": {
854
- "source": "using Amazon.CDK.AWS.MSK.Alpha;\n\nvar cluster = new Cluster(this, \"Cluster\", new Struct {\n KafkaVersion = KafkaVersion.V2_8_1,\n Vpc = vpc\n});",
919
+ "source": "Vpc vpc;\n\nCluster cluster = new Cluster(this, \"cluster\", new ClusterProps {\n ClusterName = \"myCluster\",\n KafkaVersion = KafkaVersion.V2_8_1,\n Vpc = vpc,\n EncryptionInTransit = new EncryptionInTransitConfig {\n ClientBroker = ClientBrokerEncryption.TLS\n },\n ClientAuthentication = ClientAuthentication.Sasl(new SaslAuthProps {\n Scram = true\n })\n});",
855
920
  "version": "1"
856
921
  },
857
922
  "java": {
858
- "source": "import software.amazon.awscdk.services.msk.alpha.*;\n\nObject cluster = Cluster.Builder.create(this, \"Cluster\")\n .kafkaVersion(KafkaVersion.V2_8_1)\n .vpc(vpc)\n .build();",
923
+ "source": "Vpc vpc;\n\nCluster cluster = Cluster.Builder.create(this, \"cluster\")\n .clusterName(\"myCluster\")\n .kafkaVersion(KafkaVersion.V2_8_1)\n .vpc(vpc)\n .encryptionInTransit(EncryptionInTransitConfig.builder()\n .clientBroker(ClientBrokerEncryption.TLS)\n .build())\n .clientAuthentication(ClientAuthentication.sasl(SaslAuthProps.builder()\n .scram(true)\n .build()))\n .build();",
859
924
  "version": "1"
860
925
  },
861
926
  "$": {
862
- "source": "import * as msk from '@aws-cdk/aws-msk-alpha';\n\nconst cluster = new Cluster(this, 'Cluster', {\n kafkaVersion: msk.KafkaVersion.V2_8_1,\n vpc,\n});",
927
+ "source": "declare const vpc: ec2.Vpc;\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});",
863
928
  "version": "0"
864
929
  }
865
930
  },
@@ -872,36 +937,47 @@
872
937
  "field": "example"
873
938
  }
874
939
  },
875
- "didCompile": false,
940
+ "didCompile": true,
876
941
  "fqnsReferenced": [
942
+ "@aws-cdk/aws-msk-alpha.ClientAuthentication",
943
+ "@aws-cdk/aws-msk-alpha.ClientAuthentication#sasl",
944
+ "@aws-cdk/aws-msk-alpha.ClientBrokerEncryption",
945
+ "@aws-cdk/aws-msk-alpha.ClientBrokerEncryption#TLS",
946
+ "@aws-cdk/aws-msk-alpha.Cluster",
947
+ "@aws-cdk/aws-msk-alpha.ClusterProps",
948
+ "@aws-cdk/aws-msk-alpha.EncryptionInTransitConfig",
877
949
  "@aws-cdk/aws-msk-alpha.KafkaVersion",
878
- "@aws-cdk/aws-msk-alpha.KafkaVersion#V2_8_1"
950
+ "@aws-cdk/aws-msk-alpha.KafkaVersion#V2_8_1",
951
+ "@aws-cdk/aws-msk-alpha.SaslAuthProps",
952
+ "aws-cdk-lib.aws_ec2.IVpc"
879
953
  ],
880
- "fullSource": "import * as msk from '@aws-cdk/aws-msk-alpha';\n\nconst cluster = new Cluster(this, 'Cluster', {\n kafkaVersion: msk.KafkaVersion.V2_8_1,\n vpc,\n});",
954
+ "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}",
881
955
  "syntaxKindCounter": {
882
956
  "10": 2,
883
- "75": 8,
957
+ "75": 22,
884
958
  "104": 1,
885
- "193": 1,
886
- "194": 2,
959
+ "106": 1,
960
+ "130": 1,
961
+ "153": 1,
962
+ "169": 1,
963
+ "193": 3,
964
+ "194": 7,
965
+ "196": 1,
887
966
  "197": 1,
888
- "225": 1,
889
- "242": 1,
890
- "243": 1,
891
- "254": 1,
892
- "255": 1,
893
- "256": 1,
894
- "281": 1,
967
+ "225": 2,
968
+ "242": 2,
969
+ "243": 2,
970
+ "281": 6,
895
971
  "282": 1,
896
972
  "290": 1
897
973
  },
898
- "fqnsFingerprint": "37bac76708249e0cf3ed17b3fd9143d654e8f552c3ad95835955d43ba1556dab"
974
+ "fqnsFingerprint": "22da5feee19844b7ad16aa6d78b192edfb67d484a4fbbb58ed8e6d8a1ed83349"
899
975
  },
900
976
  "5410896da3de0d4f9bec616d980ea951f621e4f32309a422fda56dbe6d125977": {
901
977
  "translations": {
902
978
  "python": {
903
979
  "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_msk_alpha as msk_alpha\n\nmonitoring_configuration = msk_alpha.MonitoringConfiguration(\n cluster_monitoring_level=msk_alpha.ClusterMonitoringLevel.DEFAULT,\n enable_prometheus_jmx_exporter=False,\n enable_prometheus_node_exporter=False\n)",
904
- "version": "1"
980
+ "version": "2"
905
981
  },
906
982
  "csharp": {
907
983
  "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.MSK.Alpha;\n\nMonitoringConfiguration monitoringConfiguration = new MonitoringConfiguration {\n ClusterMonitoringLevel = ClusterMonitoringLevel.DEFAULT,\n EnablePrometheusJmxExporter = false,\n EnablePrometheusNodeExporter = false\n};",
@@ -954,8 +1030,8 @@
954
1030
  "dda542434653872c193e06489d396f34226d26f4df7f5a15d2bc2faec4bcf5c2": {
955
1031
  "translations": {
956
1032
  "python": {
957
- "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_msk_alpha as msk_alpha\nfrom aws_cdk import aws_s3 as s3\n\n# bucket is of type Bucket\n\ns3_logging_configuration = msk_alpha.S3LoggingConfiguration(\n bucket=bucket,\n\n # the properties below are optional\n prefix=\"prefix\"\n)",
958
- "version": "1"
1033
+ "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_msk_alpha as msk_alpha\nfrom aws_cdk import aws_s3 as s3\n\n# bucket: s3.Bucket\n\ns3_logging_configuration = msk_alpha.S3LoggingConfiguration(\n bucket=bucket,\n\n # the properties below are optional\n prefix=\"prefix\"\n)",
1034
+ "version": "2"
959
1035
  },
960
1036
  "csharp": {
961
1037
  "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.MSK.Alpha;\nusing Amazon.CDK.AWS.S3;\n\nBucket bucket;\n\nS3LoggingConfiguration s3LoggingConfiguration = new S3LoggingConfiguration {\n Bucket = bucket,\n\n // the properties below are optional\n Prefix = \"prefix\"\n};",
@@ -1003,24 +1079,24 @@
1003
1079
  "281": 2,
1004
1080
  "290": 1
1005
1081
  },
1006
- "fqnsFingerprint": "b02ed319f415dd6b60a583a7c144765d3d55f4d26cd03a899acd507bd79d38df"
1082
+ "fqnsFingerprint": "96947dcdaa6d7dc3caf519c0b752ebd7ae24330096987ec4747d03f5684198f9"
1007
1083
  },
1008
- "d68e073610bf9fd607121c4de45d0a9eefee66b21670bbc4644342c02bd7395d": {
1084
+ "a870fb223e4e576e1ae5101e635aa0ebda7f1321607410cdcd4e9244d8303799": {
1009
1085
  "translations": {
1010
1086
  "python": {
1011
- "source": "import aws_cdk.aws_msk_alpha as msk\n\ncluster = msk.cluster(self, \"cluster\", {\n (SpreadAssignment ...\n encryptionInTransit\n encryption_in_transit)\n}, {\n \"client_broker\": msk.ClientBrokerEncryption.TLS\n}, client_authentication, msk.ClientAuthentication.sasl(\n scram=True\n))",
1012
- "version": "1"
1087
+ "source": "# vpc: ec2.Vpc\n\ncluster = msk.Cluster(self, \"cluster\",\n cluster_name=\"myCluster\",\n kafka_version=msk.KafkaVersion.V2_8_1,\n vpc=vpc,\n encryption_in_transit=msk.EncryptionInTransitConfig(\n client_broker=msk.ClientBrokerEncryption.TLS\n ),\n client_authentication=msk.ClientAuthentication.sasl(\n scram=True\n )\n)",
1088
+ "version": "2"
1013
1089
  },
1014
1090
  "csharp": {
1015
- "source": "using Amazon.CDK.AWS.MSK.Alpha;\n\nvar cluster = new Cluster(this, \"cluster\", new Struct {\n (SpreadAssignment ...\n encryptionInTransit\n encryptionInTransit)\n}, new Struct {\n ClientBroker = ClientBrokerEncryption.TLS\n}, clientAuthentication, ClientAuthentication.Sasl(new SaslAuthProps {\n Scram = true\n}));",
1091
+ "source": "Vpc vpc;\n\nCluster cluster = new Cluster(this, \"cluster\", new ClusterProps {\n ClusterName = \"myCluster\",\n KafkaVersion = KafkaVersion.V2_8_1,\n Vpc = vpc,\n EncryptionInTransit = new EncryptionInTransitConfig {\n ClientBroker = ClientBrokerEncryption.TLS\n },\n ClientAuthentication = ClientAuthentication.Sasl(new SaslAuthProps {\n Scram = true\n })\n});",
1016
1092
  "version": "1"
1017
1093
  },
1018
1094
  "java": {
1019
- "source": "import software.amazon.awscdk.services.msk.alpha.*;\n\nObject cluster = new cluster(this, \"cluster\", Map.of(\n (SpreadAssignment ...\n encryptionInTransit\n encryptionInTransit)), Map.of(\n \"clientBroker\", ClientBrokerEncryption.TLS), clientAuthentication, ClientAuthentication.sasl(SaslAuthProps.builder()\n .scram(true)\n .build()));",
1095
+ "source": "Vpc vpc;\n\nCluster cluster = Cluster.Builder.create(this, \"cluster\")\n .clusterName(\"myCluster\")\n .kafkaVersion(KafkaVersion.V2_8_1)\n .vpc(vpc)\n .encryptionInTransit(EncryptionInTransitConfig.builder()\n .clientBroker(ClientBrokerEncryption.TLS)\n .build())\n .clientAuthentication(ClientAuthentication.sasl(SaslAuthProps.builder()\n .scram(true)\n .build()))\n .build();",
1020
1096
  "version": "1"
1021
1097
  },
1022
1098
  "$": {
1023
- "source": "import * as msk from \"@aws-cdk/aws-msk-alpha\"\n\nconst cluster = new msk.cluster(this, \"cluster\", {\n ...\n encryptionInTransit: {\n clientBroker: msk.ClientBrokerEncryption.TLS,\n },\n clientAuthentication: msk.ClientAuthentication.sasl({\n scram: true,\n }),\n})",
1099
+ "source": "declare const vpc: ec2.Vpc;\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});",
1024
1100
  "version": "0"
1025
1101
  }
1026
1102
  },
@@ -1033,52 +1109,58 @@
1033
1109
  "field": "example"
1034
1110
  }
1035
1111
  },
1036
- "didCompile": false,
1112
+ "didCompile": true,
1037
1113
  "fqnsReferenced": [
1038
1114
  "@aws-cdk/aws-msk-alpha.ClientAuthentication",
1039
1115
  "@aws-cdk/aws-msk-alpha.ClientAuthentication#sasl",
1040
1116
  "@aws-cdk/aws-msk-alpha.ClientBrokerEncryption",
1041
1117
  "@aws-cdk/aws-msk-alpha.ClientBrokerEncryption#TLS",
1042
- "@aws-cdk/aws-msk-alpha.SaslAuthProps"
1118
+ "@aws-cdk/aws-msk-alpha.Cluster",
1119
+ "@aws-cdk/aws-msk-alpha.ClusterProps",
1120
+ "@aws-cdk/aws-msk-alpha.EncryptionInTransitConfig",
1121
+ "@aws-cdk/aws-msk-alpha.KafkaVersion",
1122
+ "@aws-cdk/aws-msk-alpha.KafkaVersion#V2_8_1",
1123
+ "@aws-cdk/aws-msk-alpha.SaslAuthProps",
1124
+ "aws-cdk-lib.aws_ec2.IVpc"
1043
1125
  ],
1044
- "fullSource": "import * as msk from \"@aws-cdk/aws-msk-alpha\"\n\nconst cluster = new msk.cluster(this, \"cluster\", {\n ...\n encryptionInTransit: {\n clientBroker: msk.ClientBrokerEncryption.TLS,\n },\n clientAuthentication: msk.ClientAuthentication.sasl({\n scram: true,\n }),\n})",
1126
+ "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}",
1045
1127
  "syntaxKindCounter": {
1046
1128
  "10": 2,
1047
- "75": 14,
1129
+ "75": 22,
1048
1130
  "104": 1,
1049
1131
  "106": 1,
1132
+ "130": 1,
1133
+ "153": 1,
1134
+ "169": 1,
1050
1135
  "193": 3,
1051
- "194": 5,
1136
+ "194": 7,
1052
1137
  "196": 1,
1053
1138
  "197": 1,
1054
- "225": 1,
1055
- "242": 1,
1056
- "243": 1,
1057
- "254": 1,
1058
- "255": 1,
1059
- "256": 1,
1060
- "281": 2,
1061
- "283": 1,
1139
+ "225": 2,
1140
+ "242": 2,
1141
+ "243": 2,
1142
+ "281": 6,
1143
+ "282": 1,
1062
1144
  "290": 1
1063
1145
  },
1064
- "fqnsFingerprint": "b8f845b2f995b6cc88c24714b4737253b36f57c382e126167e1921b59ba48d10"
1146
+ "fqnsFingerprint": "22da5feee19844b7ad16aa6d78b192edfb67d484a4fbbb58ed8e6d8a1ed83349"
1065
1147
  },
1066
- "d3d0ae1b223997ca0853812e111fa44cbc96c58d2b12626416a77ce5c910627d": {
1148
+ "7e72f8a099a570edf948251c75401e60ce21ed46329d85e85768f62243c67b6d": {
1067
1149
  "translations": {
1068
1150
  "python": {
1069
- "source": "import aws_cdk.aws_msk_alpha as msk\nimport aws_cdk.aws_acmpca as acmpca\n\ncluster = msk.Cluster(self, \"Cluster\", msk.ClusterProps(\n (SpreadAssignment ...\n encryptionInTransit\n encryption_in_transit)\n), {\n \"client_broker\": msk.ClientBrokerEncryption.TLS\n}, client_authentication, msk.ClientAuthentication.tls(\n certificate_authorities=[\n acmpca.CertificateAuthority.from_certificate_authority_arn(stack, \"CertificateAuthority\", \"arn:aws:acm-pca:us-west-2:1234567890:certificate-authority/11111111-1111-1111-1111-111111111111\")\n ]\n))",
1070
- "version": "1"
1151
+ "source": "import aws_cdk.aws_acmpca as acmpca\n\n# vpc: ec2.Vpc\n\ncluster = msk.Cluster(self, \"Cluster\",\n cluster_name=\"myCluster\",\n kafka_version=msk.KafkaVersion.V2_8_1,\n vpc=vpc,\n encryption_in_transit=msk.EncryptionInTransitConfig(\n client_broker=msk.ClientBrokerEncryption.TLS\n ),\n client_authentication=msk.ClientAuthentication.tls(\n certificate_authorities=[\n acmpca.CertificateAuthority.from_certificate_authority_arn(self, \"CertificateAuthority\", \"arn:aws:acm-pca:us-west-2:1234567890:certificate-authority/11111111-1111-1111-1111-111111111111\")\n ]\n )\n)",
1152
+ "version": "2"
1071
1153
  },
1072
1154
  "csharp": {
1073
- "source": "using Amazon.CDK.AWS.MSK.Alpha;\nusing Amazon.CDK.AWS.ACMPCA;\n\nCluster cluster = new Cluster(this, \"Cluster\", new ClusterProps {\n (SpreadAssignment ...\n encryptionInTransit\n encryptionInTransit)\n}, new Dictionary<string, ClientBrokerEncryption> {\n { \"clientBroker\", ClientBrokerEncryption.TLS }\n}, clientAuthentication, ClientAuthentication.Tls(new TlsAuthProps {\n CertificateAuthorities = new [] { CertificateAuthority.FromCertificateAuthorityArn(stack, \"CertificateAuthority\", \"arn:aws:acm-pca:us-west-2:1234567890:certificate-authority/11111111-1111-1111-1111-111111111111\") }\n}));",
1155
+ "source": "using Amazon.CDK.AWS.ACMPCA;\n\nVpc vpc;\n\nCluster cluster = new Cluster(this, \"Cluster\", new ClusterProps {\n ClusterName = \"myCluster\",\n KafkaVersion = KafkaVersion.V2_8_1,\n Vpc = vpc,\n EncryptionInTransit = new EncryptionInTransitConfig {\n ClientBroker = ClientBrokerEncryption.TLS\n },\n ClientAuthentication = ClientAuthentication.Tls(new TlsAuthProps {\n CertificateAuthorities = new [] { CertificateAuthority.FromCertificateAuthorityArn(this, \"CertificateAuthority\", \"arn:aws:acm-pca:us-west-2:1234567890:certificate-authority/11111111-1111-1111-1111-111111111111\") }\n })\n});",
1074
1156
  "version": "1"
1075
1157
  },
1076
1158
  "java": {
1077
- "source": "import software.amazon.awscdk.services.msk.alpha.*;\nimport software.amazon.awscdk.services.acmpca.*;\n\nCluster cluster = new Cluster(this, \"Cluster\", ClusterProps.builder()\n (SpreadAssignment ...\n encryptionInTransit\n encryptionInTransit)\n .build(), Map.of(\n \"clientBroker\", ClientBrokerEncryption.TLS), clientAuthentication, ClientAuthentication.tls(TlsAuthProps.builder()\n .certificateAuthorities(List.of(CertificateAuthority.fromCertificateAuthorityArn(stack, \"CertificateAuthority\", \"arn:aws:acm-pca:us-west-2:1234567890:certificate-authority/11111111-1111-1111-1111-111111111111\")))\n .build()));",
1159
+ "source": "import software.amazon.awscdk.services.acmpca.*;\n\nVpc vpc;\n\nCluster cluster = Cluster.Builder.create(this, \"Cluster\")\n .clusterName(\"myCluster\")\n .kafkaVersion(KafkaVersion.V2_8_1)\n .vpc(vpc)\n .encryptionInTransit(EncryptionInTransitConfig.builder()\n .clientBroker(ClientBrokerEncryption.TLS)\n .build())\n .clientAuthentication(ClientAuthentication.tls(TlsAuthProps.builder()\n .certificateAuthorities(List.of(CertificateAuthority.fromCertificateAuthorityArn(this, \"CertificateAuthority\", \"arn:aws:acm-pca:us-west-2:1234567890:certificate-authority/11111111-1111-1111-1111-111111111111\")))\n .build()))\n .build();",
1078
1160
  "version": "1"
1079
1161
  },
1080
1162
  "$": {
1081
- "source": "import * as msk from \"@aws-cdk/aws-msk-alpha\"\nimport * as acmpca from \"aws-cdk-lib/aws-acmpca\"\n\nconst cluster = new msk.Cluster(this, 'Cluster', {\n ...\n encryptionInTransit: {\n clientBroker: msk.ClientBrokerEncryption.TLS,\n },\n clientAuthentication: msk.ClientAuthentication.tls({\n certificateAuthorities: [\n acmpca.CertificateAuthority.fromCertificateAuthorityArn(\n stack,\n \"CertificateAuthority\",\n \"arn:aws:acm-pca:us-west-2:1234567890:certificate-authority/11111111-1111-1111-1111-111111111111\"\n ),\n ],\n }),\n });\n});",
1163
+ "source": "import * as acmpca from 'aws-cdk-lib/aws-acmpca';\n\ndeclare const vpc: ec2.Vpc;\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});",
1082
1164
  "version": "0"
1083
1165
  }
1084
1166
  },
@@ -1091,7 +1173,7 @@
1091
1173
  "field": "example"
1092
1174
  }
1093
1175
  },
1094
- "didCompile": false,
1176
+ "didCompile": true,
1095
1177
  "fqnsReferenced": [
1096
1178
  "@aws-cdk/aws-msk-alpha.ClientAuthentication",
1097
1179
  "@aws-cdk/aws-msk-alpha.ClientAuthentication#tls",
@@ -1099,32 +1181,38 @@
1099
1181
  "@aws-cdk/aws-msk-alpha.ClientBrokerEncryption#TLS",
1100
1182
  "@aws-cdk/aws-msk-alpha.Cluster",
1101
1183
  "@aws-cdk/aws-msk-alpha.ClusterProps",
1184
+ "@aws-cdk/aws-msk-alpha.EncryptionInTransitConfig",
1185
+ "@aws-cdk/aws-msk-alpha.KafkaVersion",
1186
+ "@aws-cdk/aws-msk-alpha.KafkaVersion#V2_8_1",
1102
1187
  "@aws-cdk/aws-msk-alpha.TlsAuthProps",
1103
1188
  "aws-cdk-lib.aws_acmpca.CertificateAuthority",
1104
- "aws-cdk-lib.aws_acmpca.CertificateAuthority#fromCertificateAuthorityArn"
1189
+ "aws-cdk-lib.aws_acmpca.CertificateAuthority#fromCertificateAuthorityArn",
1190
+ "aws-cdk-lib.aws_ec2.IVpc"
1105
1191
  ],
1106
- "fullSource": "import * as msk from \"@aws-cdk/aws-msk-alpha\"\nimport * as acmpca from \"aws-cdk-lib/aws-acmpca\"\n\nconst cluster = new msk.Cluster(this, 'Cluster', {\n ...\n encryptionInTransit: {\n clientBroker: msk.ClientBrokerEncryption.TLS,\n },\n clientAuthentication: msk.ClientAuthentication.tls({\n certificateAuthorities: [\n acmpca.CertificateAuthority.fromCertificateAuthorityArn(\n stack,\n \"CertificateAuthority\",\n \"arn:aws:acm-pca:us-west-2:1234567890:certificate-authority/11111111-1111-1111-1111-111111111111\"\n ),\n ],\n }),\n });\n});",
1192
+ "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}",
1107
1193
  "syntaxKindCounter": {
1108
1194
  "10": 5,
1109
- "75": 19,
1110
- "104": 1,
1195
+ "75": 26,
1196
+ "104": 2,
1197
+ "130": 1,
1198
+ "153": 1,
1199
+ "169": 1,
1111
1200
  "192": 1,
1112
1201
  "193": 3,
1113
- "194": 7,
1202
+ "194": 9,
1114
1203
  "196": 2,
1115
1204
  "197": 1,
1116
- "224": 2,
1117
- "225": 1,
1118
- "242": 1,
1119
- "243": 1,
1120
- "254": 2,
1121
- "255": 2,
1122
- "256": 2,
1123
- "281": 2,
1124
- "283": 1,
1205
+ "225": 2,
1206
+ "242": 2,
1207
+ "243": 2,
1208
+ "254": 1,
1209
+ "255": 1,
1210
+ "256": 1,
1211
+ "281": 6,
1212
+ "282": 1,
1125
1213
  "290": 1
1126
1214
  },
1127
- "fqnsFingerprint": "1fbbe37159466c82ca72068eb7e2348dab8ff47c306f44aa8ed394aadb075065"
1215
+ "fqnsFingerprint": "b2762a7ec44447ae615315d649bc0ffb4175265a5745a30b3b5b5b0540f612ac"
1128
1216
  }
1129
1217
  }
1130
1218
  }