class ClientAuthentication
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.MSK.ClientAuthentication |
![]() | software.amazon.awscdk.services.msk.ClientAuthentication |
![]() | aws_cdk.aws_msk.ClientAuthentication |
![]() | @aws-cdk/aws-msk » ClientAuthentication |
Configuration properties for client authentication.
Example
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.sasl({
scram: true,
}),
});
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 tls(props) | TLS authentication. |
static sasl(props)
public static sasl(props: SaslAuthProps): ClientAuthentication
Parameters
- props
Sasl
Auth Props
Returns
SASL authentication.
static tls(props)
public static tls(props: TlsAuthProps): ClientAuthentication
Parameters
- props
Tls
Auth Props
Returns
TLS authentication.