Class CfnUserMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.memorydb.CfnUserMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnUserMixinProps>
- Enclosing interface:
CfnUserMixinProps
@Stability(Stable)
public static final class CfnUserMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnUserMixinProps>
A builder for
CfnUserMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccessString(String accessString) Sets the value ofCfnUserMixinProps.getAccessString()authenticationMode(Object authenticationMode) Sets the value ofCfnUserMixinProps.getAuthenticationMode()build()Builds the configured instance.Sets the value ofCfnUserMixinProps.getTags()Sets the value ofCfnUserMixinProps.getUserName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accessString
Sets the value ofCfnUserMixinProps.getAccessString()- Parameters:
accessString- Access permissions string used for this user.- Returns:
this
-
authenticationMode
Sets the value ofCfnUserMixinProps.getAuthenticationMode()- Parameters:
authenticationMode- Denotes whether the user requires a password to authenticate. Example:mynewdbuser: Type: AWS::MemoryDB::User Properties: AccessString: on ~* &* +@all AuthenticationMode: Passwords: '1234567890123456' Type: password UserName: mynewdbuser AuthenticationMode: { "Passwords": ["1234567890123456"], "Type": "Password" }- Returns:
this
-
tags
Sets the value ofCfnUserMixinProps.getTags()- Parameters:
tags- An array of key-value pairs to apply to this resource. For more information, see Tag .- Returns:
this
-
userName
Sets the value ofCfnUserMixinProps.getUserName()- Parameters:
userName- The name of the user.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnUserMixinProps>- Returns:
- a new instance of
CfnUserMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-