KafkaVersion

class aws_cdk.aws_msk.KafkaVersion(*args: Any, **kwargs)

Bases: object

(experimental) Kafka cluster version.

Stability

experimental

ExampleMetadata

infused

Example:

# vpc: ec2.Vpc

cluster = msk.Cluster(self, "cluster",
    cluster_name="myCluster",
    kafka_version=msk.KafkaVersion.V2_8_1,
    vpc=vpc,
    encryption_in_transit=msk.EncryptionInTransitConfig(
        client_broker=msk.ClientBrokerEncryption.TLS
    ),
    client_authentication=msk.ClientAuthentication.sasl(
        scram=True
    )
)

Attributes

V1_1_1 = <aws_cdk.aws_msk.KafkaVersion object>
V2_2_1 = <aws_cdk.aws_msk.KafkaVersion object>
V2_3_1 = <aws_cdk.aws_msk.KafkaVersion object>
V2_4_1_1 = <aws_cdk.aws_msk.KafkaVersion object>
V2_5_1 = <aws_cdk.aws_msk.KafkaVersion object>
V2_6_0 = <aws_cdk.aws_msk.KafkaVersion object>
V2_6_1 = <aws_cdk.aws_msk.KafkaVersion object>
V2_6_2 = <aws_cdk.aws_msk.KafkaVersion object>
V2_6_3 = <aws_cdk.aws_msk.KafkaVersion object>
V2_7_0 = <aws_cdk.aws_msk.KafkaVersion object>
V2_7_1 = <aws_cdk.aws_msk.KafkaVersion object>
V2_7_2 = <aws_cdk.aws_msk.KafkaVersion object>
V2_8_0 = <aws_cdk.aws_msk.KafkaVersion object>
V2_8_1 = <aws_cdk.aws_msk.KafkaVersion object>
version

(experimental) cluster version number.

Stability

experimental

Return type

str

Static Methods

classmethod of(version)

(experimental) Custom cluster version.

Parameters

version (str) – custom version number.

Stability

experimental

Return type

KafkaVersion