@aws-cdk_aws-msk-alpha.ClientAuthentication

class ClientAuthentication ๐Ÿ”น

LanguageType name
.NETAmazon.CDK.AWS.MSK.Alpha.ClientAuthentication
Gogithub.com/aws/aws-cdk-go/awscdkmskalpha/v2#ClientAuthentication
Javasoftware.amazon.awscdk.services.msk.alpha.ClientAuthentication
Pythonaws_cdk.aws_msk_alpha.ClientAuthentication
TypeScript (source)@aws-cdk/aws-msk-alpha ยป ClientAuthentication

Configuration properties for client authentication.

Example

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.V2_8_1,
  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

NameTypeDescription
saslProps?๐Ÿ”นSaslAuthProps- properties for SASL authentication.
tlsProps?๐Ÿ”นTlsAuthProps- properties for TLS authentication.

saslProps?๐Ÿ”น

Type: SaslAuthProps (optional)

  • properties for SASL authentication.

tlsProps?๐Ÿ”น

Type: TlsAuthProps (optional)

  • properties for TLS authentication.

Methods

NameDescription
static sasl(props)๐Ÿ”นSASL authentication.
static saslTls(saslTlsProps)๐Ÿ”นSASL + TLS authentication.
static tls(props)๐Ÿ”นTLS authentication.

static sasl(props)๐Ÿ”น

public static sasl(props: SaslAuthProps): ClientAuthentication

Parameters

  • props SaslAuthProps

Returns

  • ClientAuthentication

SASL authentication.


static saslTls(saslTlsProps)๐Ÿ”น

public static saslTls(saslTlsProps: SaslTlsAuthProps): ClientAuthentication

Parameters

  • saslTlsProps SaslTlsAuthProps

Returns

  • ClientAuthentication

SASL + TLS authentication.


static tls(props)๐Ÿ”น

public static tls(props: TlsAuthProps): ClientAuthentication

Parameters

  • props TlsAuthProps

Returns

  • ClientAuthentication

TLS authentication.