@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 +71 -16
- package/.jsii.tabl.json +409 -321
- package/README.md +59 -51
- package/lib/cluster-version.js +1 -1
- package/lib/cluster.js +2 -2
- package/package.json +17 -10
- package/rosetta/default.ts-fixture +12 -0
package/.jsii
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"url": "https://aws.amazon.com"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"aws-cdk-lib": "^2.
|
|
11
|
+
"aws-cdk-lib": "^2.9.0",
|
|
12
12
|
"constructs": "^10.0.0"
|
|
13
13
|
},
|
|
14
14
|
"dependencyClosure": {
|
|
@@ -1185,6 +1185,19 @@
|
|
|
1185
1185
|
}
|
|
1186
1186
|
}
|
|
1187
1187
|
},
|
|
1188
|
+
"aws-cdk-lib.aws_forecast": {
|
|
1189
|
+
"targets": {
|
|
1190
|
+
"dotnet": {
|
|
1191
|
+
"namespace": "Amazon.CDK.AWS.Forecast"
|
|
1192
|
+
},
|
|
1193
|
+
"java": {
|
|
1194
|
+
"package": "software.amazon.awscdk.services.forecast"
|
|
1195
|
+
},
|
|
1196
|
+
"python": {
|
|
1197
|
+
"module": "aws_cdk.aws_forecast"
|
|
1198
|
+
}
|
|
1199
|
+
}
|
|
1200
|
+
},
|
|
1188
1201
|
"aws-cdk-lib.aws_frauddetector": {
|
|
1189
1202
|
"targets": {
|
|
1190
1203
|
"dotnet": {
|
|
@@ -1367,6 +1380,19 @@
|
|
|
1367
1380
|
}
|
|
1368
1381
|
}
|
|
1369
1382
|
},
|
|
1383
|
+
"aws-cdk-lib.aws_inspectorv2": {
|
|
1384
|
+
"targets": {
|
|
1385
|
+
"dotnet": {
|
|
1386
|
+
"namespace": "Amazon.CDK.AWS.InspectorV2"
|
|
1387
|
+
},
|
|
1388
|
+
"java": {
|
|
1389
|
+
"package": "software.amazon.awscdk.services.inspectorv2"
|
|
1390
|
+
},
|
|
1391
|
+
"python": {
|
|
1392
|
+
"module": "aws_cdk.aws_inspectorv2"
|
|
1393
|
+
}
|
|
1394
|
+
}
|
|
1395
|
+
},
|
|
1370
1396
|
"aws-cdk-lib.aws_iot": {
|
|
1371
1397
|
"targets": {
|
|
1372
1398
|
"dotnet": {
|
|
@@ -1536,6 +1562,19 @@
|
|
|
1536
1562
|
}
|
|
1537
1563
|
}
|
|
1538
1564
|
},
|
|
1565
|
+
"aws-cdk-lib.aws_kinesisanalyticsv2": {
|
|
1566
|
+
"targets": {
|
|
1567
|
+
"dotnet": {
|
|
1568
|
+
"namespace": "Amazon.CDK.AWS.KinesisAnalyticsV2"
|
|
1569
|
+
},
|
|
1570
|
+
"java": {
|
|
1571
|
+
"package": "software.amazon.awscdk.services.kinesisanalyticsv2"
|
|
1572
|
+
},
|
|
1573
|
+
"python": {
|
|
1574
|
+
"module": "aws_cdk.aws_kinesisanalyticsv2"
|
|
1575
|
+
}
|
|
1576
|
+
}
|
|
1577
|
+
},
|
|
1539
1578
|
"aws-cdk-lib.aws_kinesisfirehose": {
|
|
1540
1579
|
"targets": {
|
|
1541
1580
|
"dotnet": {
|
|
@@ -1549,6 +1588,19 @@
|
|
|
1549
1588
|
}
|
|
1550
1589
|
}
|
|
1551
1590
|
},
|
|
1591
|
+
"aws-cdk-lib.aws_kinesisvideo": {
|
|
1592
|
+
"targets": {
|
|
1593
|
+
"dotnet": {
|
|
1594
|
+
"namespace": "Amazon.CDK.AWS.KinesisVideo"
|
|
1595
|
+
},
|
|
1596
|
+
"java": {
|
|
1597
|
+
"package": "software.amazon.awscdk.services.kinesisvideo"
|
|
1598
|
+
},
|
|
1599
|
+
"python": {
|
|
1600
|
+
"module": "aws_cdk.aws_kinesisvideo"
|
|
1601
|
+
}
|
|
1602
|
+
}
|
|
1603
|
+
},
|
|
1552
1604
|
"aws-cdk-lib.aws_kms": {
|
|
1553
1605
|
"targets": {
|
|
1554
1606
|
"dotnet": {
|
|
@@ -2855,7 +2907,7 @@
|
|
|
2855
2907
|
"stability": "experimental"
|
|
2856
2908
|
},
|
|
2857
2909
|
"homepage": "https://github.com/aws/aws-cdk",
|
|
2858
|
-
"jsiiVersion": "1.
|
|
2910
|
+
"jsiiVersion": "1.52.1 (build 5ccc8f6)",
|
|
2859
2911
|
"keywords": [
|
|
2860
2912
|
"aws",
|
|
2861
2913
|
"cdk",
|
|
@@ -2869,12 +2921,15 @@
|
|
|
2869
2921
|
"compiledWithDeprecationWarnings": true,
|
|
2870
2922
|
"pacmak": {
|
|
2871
2923
|
"hasDefaultInterfaces": true
|
|
2924
|
+
},
|
|
2925
|
+
"rosetta": {
|
|
2926
|
+
"strict": true
|
|
2872
2927
|
}
|
|
2873
2928
|
}
|
|
2874
2929
|
},
|
|
2875
2930
|
"name": "@aws-cdk/aws-msk-alpha",
|
|
2876
2931
|
"readme": {
|
|
2877
|
-
"markdown": "# Amazon Managed Streaming for Apache Kafka Construct Library\n<!--BEGIN STABILITY BANNER-->\n\n---\n\n\n\n> The APIs of higher level constructs in this module are experimental and under active development.\n> They are subject to non-backward compatible changes or removal in any future version. These are\n> not subject to the [Semantic Versioning](https://semver.org/) model and breaking changes will be\n> announced in the release notes. This means that while you may use them, you may need to update\n> your source code when upgrading to a newer version of this package.\n\n---\n\n<!--END STABILITY BANNER-->\n\n[Amazon MSK](https://aws.amazon.com/msk/) is a fully managed service that makes it easy for you to build and run applications that use Apache Kafka to process streaming data.\n\nThe following example creates an MSK Cluster.\n\n```ts\
|
|
2932
|
+
"markdown": "# Amazon Managed Streaming for Apache Kafka Construct Library\n<!--BEGIN STABILITY BANNER-->\n\n---\n\n\n\n> The APIs of higher level constructs in this module are experimental and under active development.\n> They are subject to non-backward compatible changes or removal in any future version. These are\n> not subject to the [Semantic Versioning](https://semver.org/) model and breaking changes will be\n> announced in the release notes. This means that while you may use them, you may need to update\n> your source code when upgrading to a newer version of this package.\n\n---\n\n<!--END STABILITY BANNER-->\n\n[Amazon MSK](https://aws.amazon.com/msk/) is a fully managed service that makes it easy for you to build and run applications that use Apache Kafka to process streaming data.\n\nThe following example creates an MSK Cluster.\n\n```ts\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});\n```\n\n## Allowing Connections\n\nTo control who can access the Cluster, use the `.connections` attribute. For a list of ports used by MSK, refer to the [MSK documentation](https://docs.aws.amazon.com/msk/latest/developerguide/client-access.html#port-info).\n\n```ts\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});\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```\n\n## Cluster Endpoints\n\nYou can use the following attributes to get a list of the Kafka broker or ZooKeeper node endpoints\n\n```ts\ndeclare 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 });\n```\n\n## Importing an existing Cluster\n\nTo import an existing MSK cluster into your CDK app use the `.fromClusterArn()` method.\n\n```ts\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```\n\n## Client Authentication\n\n[MSK supports](https://docs.aws.amazon.com/msk/latest/developerguide/kafka_apis_iam.html) the following authentication mechanisms.\n\n> Only one authentication method can be enabled.\n\n### TLS\n\nTo enable client authentication with TLS set the `certificateAuthorityArns` property to reference your ACM Private CA. [More info on Private CAs.](https://docs.aws.amazon.com/msk/latest/developerguide/msk-authentication.html)\n\n```ts\nimport * 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});\n```\n\n### SASL/SCRAM\n\nEnable client authentication with [SASL/SCRAM](https://docs.aws.amazon.com/msk/latest/developerguide/msk-password.html):\n\n```ts\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.sasl({\n scram: true,\n }),\n});\n```\n\n### SASL/IAM\n\nEnable client authentication with [IAM](https://docs.aws.amazon.com/msk/latest/developerguide/iam-access-control.html):\n\n```ts\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.sasl({\n iam: true,\n }),\n});\n```\n"
|
|
2878
2933
|
},
|
|
2879
2934
|
"repository": {
|
|
2880
2935
|
"directory": "packages/individual-packages/aws-msk",
|
|
@@ -2994,7 +3049,7 @@
|
|
|
2994
3049
|
"custom": {
|
|
2995
3050
|
"exampleMetadata": "infused"
|
|
2996
3051
|
},
|
|
2997
|
-
"example": "
|
|
3052
|
+
"example": "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});",
|
|
2998
3053
|
"stability": "experimental",
|
|
2999
3054
|
"summary": "Configuration properties for client authentication."
|
|
3000
3055
|
},
|
|
@@ -3099,7 +3154,7 @@
|
|
|
3099
3154
|
"custom": {
|
|
3100
3155
|
"exampleMetadata": "infused"
|
|
3101
3156
|
},
|
|
3102
|
-
"example": "
|
|
3157
|
+
"example": "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});",
|
|
3103
3158
|
"stability": "experimental",
|
|
3104
3159
|
"summary": "Indicates the encryption setting for data in transit between clients and brokers."
|
|
3105
3160
|
},
|
|
@@ -3143,7 +3198,7 @@
|
|
|
3143
3198
|
"exampleMetadata": "infused",
|
|
3144
3199
|
"resource": "AWS::MSK::Cluster"
|
|
3145
3200
|
},
|
|
3146
|
-
"example": "
|
|
3201
|
+
"example": "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});",
|
|
3147
3202
|
"stability": "experimental",
|
|
3148
3203
|
"summary": "Create a MSK Cluster."
|
|
3149
3204
|
},
|
|
@@ -3512,7 +3567,7 @@
|
|
|
3512
3567
|
"custom": {
|
|
3513
3568
|
"exampleMetadata": "infused"
|
|
3514
3569
|
},
|
|
3515
|
-
"example": "
|
|
3570
|
+
"example": "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});",
|
|
3516
3571
|
"stability": "experimental",
|
|
3517
3572
|
"summary": "Properties for a MSK Cluster."
|
|
3518
3573
|
},
|
|
@@ -3844,13 +3899,13 @@
|
|
|
3844
3899
|
"assembly": "@aws-cdk/aws-msk-alpha",
|
|
3845
3900
|
"datatype": true,
|
|
3846
3901
|
"docs": {
|
|
3902
|
+
"custom": {
|
|
3903
|
+
"exampleMetadata": "infused"
|
|
3904
|
+
},
|
|
3905
|
+
"example": "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});",
|
|
3847
3906
|
"see": "https://docs.aws.amazon.com/msk/latest/developerguide/msk-encryption.html#msk-encryption-in-transit",
|
|
3848
3907
|
"stability": "experimental",
|
|
3849
|
-
"summary": "The settings for encrypting data in transit."
|
|
3850
|
-
"example": "// 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};",
|
|
3851
|
-
"custom": {
|
|
3852
|
-
"exampleMetadata": "fixture=_generated"
|
|
3853
|
-
}
|
|
3908
|
+
"summary": "The settings for encrypting data in transit."
|
|
3854
3909
|
},
|
|
3855
3910
|
"fqn": "@aws-cdk/aws-msk-alpha.EncryptionInTransitConfig",
|
|
3856
3911
|
"kind": "interface",
|
|
@@ -3964,7 +4019,7 @@
|
|
|
3964
4019
|
"custom": {
|
|
3965
4020
|
"exampleMetadata": "infused"
|
|
3966
4021
|
},
|
|
3967
|
-
"example": "
|
|
4022
|
+
"example": "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});",
|
|
3968
4023
|
"stability": "experimental",
|
|
3969
4024
|
"summary": "Kafka cluster version."
|
|
3970
4025
|
},
|
|
@@ -4402,7 +4457,7 @@
|
|
|
4402
4457
|
"custom": {
|
|
4403
4458
|
"exampleMetadata": "infused"
|
|
4404
4459
|
},
|
|
4405
|
-
"example": "
|
|
4460
|
+
"example": "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});",
|
|
4406
4461
|
"stability": "experimental",
|
|
4407
4462
|
"summary": "SASL authentication properties."
|
|
4408
4463
|
},
|
|
@@ -4479,7 +4534,7 @@
|
|
|
4479
4534
|
"custom": {
|
|
4480
4535
|
"exampleMetadata": "infused"
|
|
4481
4536
|
},
|
|
4482
|
-
"example": "import * as
|
|
4537
|
+
"example": "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});",
|
|
4483
4538
|
"stability": "experimental",
|
|
4484
4539
|
"summary": "TLS authentication properties."
|
|
4485
4540
|
},
|
|
@@ -4518,6 +4573,6 @@
|
|
|
4518
4573
|
"symbolId": "lib/cluster:TlsAuthProps"
|
|
4519
4574
|
}
|
|
4520
4575
|
},
|
|
4521
|
-
"version": "2.
|
|
4576
|
+
"version": "2.9.0-alpha.0",
|
|
4522
4577
|
"fingerprint": "**********"
|
|
4523
4578
|
}
|