class ClientAuthentication
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.MSK.Alpha.ClientAuthentication |
![]() | github.com/aws/aws-cdk-go/awscdkmskalpha/v2#ClientAuthentication |
![]() | software.amazon.awscdk.services.msk.alpha.ClientAuthentication |
![]() | aws_cdk.aws_msk_alpha.ClientAuthentication |
![]() | @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
Name | Type | Description |
---|---|---|
sasl | Sasl | - properties for SASL authentication. |
tls | Tls | - properties for TLS authentication. |
saslProps?
Type:
Sasl
(optional)
- properties for SASL authentication.
tlsProps?
Type:
Tls
(optional)
- properties for TLS authentication.
Methods
Name | Description |
---|---|
static sasl(props) | SASL authentication. |
static sasl | SASL + TLS authentication. |
static tls(props) | TLS authentication. |
static sasl(props)
public static sasl(props: SaslAuthProps): ClientAuthentication
Parameters
- props
Sasl
Auth Props
Returns
SASL authentication.
static saslTls(saslTlsProps)
public static saslTls(saslTlsProps: SaslTlsAuthProps): ClientAuthentication
Parameters
- saslTlsProps
Sasl
Tls Auth Props
Returns
SASL + TLS authentication.
static tls(props)
public static tls(props: TlsAuthProps): ClientAuthentication
Parameters
- props
Tls
Auth Props
Returns
TLS authentication.