Class SaslAuthProps.Builder
java.lang.Object
software.amazon.awscdk.services.msk.alpha.SaslAuthProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<SaslAuthProps>
- Enclosing interface:
SaslAuthProps
@Stability(Experimental)
public static final class SaslAuthProps.Builder
extends Object
implements software.amazon.jsii.Builder<SaslAuthProps>
A builder for
SaslAuthProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofSaslAuthProps.getIam()
Sets the value ofSaslAuthProps.getKey()
Sets the value ofSaslAuthProps.getScram()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
iam
Sets the value ofSaslAuthProps.getIam()
- Parameters:
iam
- Enable IAM access control.- Returns:
this
-
key
Sets the value ofSaslAuthProps.getKey()
- Parameters:
key
- KMS Key to encrypt SASL/SCRAM secrets. 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.- Returns:
this
-
scram
Sets the value ofSaslAuthProps.getScram()
- Parameters:
scram
- Enable SASL/SCRAM authentication.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<SaslAuthProps>
- Returns:
- a new instance of
SaslAuthProps
- Throws:
NullPointerException
- if any required attribute was not provided
-