Class SaslAuthProps
(experimental) SASL authentication properties.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.MSK
Assembly: Amazon.CDK.AWS.MSK.dll
Syntax (csharp)
public class SaslAuthProps : Object, ISaslAuthProps
Syntax (vb)
Public Class SaslAuthProps
Inherits Object
Implements ISaslAuthProps
Remarks
Stability: Experimental
ExampleMetadata: infused
Examples
Vpc vpc;
var cluster = new Cluster(this, "cluster", new ClusterProps {
ClusterName = "myCluster",
KafkaVersion = KafkaVersion.V2_8_1,
Vpc = vpc,
EncryptionInTransit = new EncryptionInTransitConfig {
ClientBroker = ClientBrokerEncryption.TLS
},
ClientAuthentication = ClientAuthentication.Sasl(new SaslAuthProps {
Scram = true
})
});
Synopsis
Constructors
SaslAuthProps() |
Properties
Iam | (experimental) Enable IAM access control. |
Key | (experimental) KMS Key to encrypt SASL/SCRAM secrets. |
Scram | (experimental) Enable SASL/SCRAM authentication. |
Constructors
SaslAuthProps()
public SaslAuthProps()
Properties
Iam
(experimental) Enable IAM access control.
public Nullable<bool> Iam { get; set; }
Property Value
System.Nullable<System.Boolean>
Remarks
Default: false
Stability: Experimental
Key
(experimental) KMS Key to encrypt SASL/SCRAM secrets.
public IKey Key { get; set; }
Property Value
Remarks
You must use a customer master key (CMK) when creating users in secrets manager. You cannot use a Secret with Amazon MSK that uses the default Secrets Manager encryption key.
Default: - CMK will be created with alias msk/{clusterName}/sasl/scram
Stability: Experimental
Scram
(experimental) Enable SASL/SCRAM authentication.
public Nullable<bool> Scram { get; set; }
Property Value
System.Nullable<System.Boolean>
Remarks
Default: false
Stability: Experimental