Skip to content
v2.273.0

EncryptionInTransitConfig Struct ​

The settings for encrypting data in transit.

Example ​

ts
import * as acmpca from 'aws-cdk-lib/aws-acmpca';

declare const vpc: ec2.Vpc;
const cluster = new msk.Cluster(this, 'Cluster', {
  clusterName: 'myCluster',
  kafkaVersion: msk.KafkaVersion.V4_1_X_KRAFT,
  vpc,
  encryptionInTransit: {
    clientBroker: msk.ClientBrokerEncryption.TLS,
  },
  clientAuthentication: msk.ClientAuthentication.tls({
    certificateAuthorities: [
      acmpca.CertificateAuthority.fromCertificateAuthorityArn(
        this,
        'CertificateAuthority',
        'arn:aws:acm-pca:us-west-2:1234567890:certificate-authority/11111111-1111-1111-1111-111111111111',
      ),
    ],
  }),
});

Properties ​

Indicates the encryption setting for data in transit between clients and brokers.
enableInClusterbooleanenable_in_clusterboolenableInClusterBooleanEnableInClusterboolEnableInCluster*bool= true#
Indicates that data communication among the broker nodes of the cluster is encrypted.