Class CfnUserProps.Builder
java.lang.Object
software.amazon.awscdk.services.elasticache.CfnUserProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnUserProps>
- Enclosing interface:
CfnUserProps
@Stability(Stable)
public static final class CfnUserProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnUserProps>
A builder for
CfnUserProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccessString(String accessString) Sets the value ofCfnUserProps.getAccessString()authenticationMode(Object authenticationMode) Sets the value ofCfnUserProps.getAuthenticationMode()build()Builds the configured instance.Sets the value ofCfnUserProps.getEngine()noPasswordRequired(Boolean noPasswordRequired) Sets the value ofCfnUserProps.getNoPasswordRequired()noPasswordRequired(IResolvable noPasswordRequired) Sets the value ofCfnUserProps.getNoPasswordRequired()Sets the value ofCfnUserProps.getPasswords()Sets the value ofCfnUserProps.getTags()Sets the value ofCfnUserProps.getUserId()Sets the value ofCfnUserProps.getUserName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
engine
Sets the value ofCfnUserProps.getEngine()- Parameters:
engine- The current supported values are valkey and redis. This parameter is required.- Returns:
this
-
userId
Sets the value ofCfnUserProps.getUserId()- Parameters:
userId- The ID of the user. This parameter is required.- Returns:
this
-
userName
Sets the value ofCfnUserProps.getUserName()- Parameters:
userName- The username of the user. This parameter is required.- Returns:
this
-
accessString
Sets the value ofCfnUserProps.getAccessString()- Parameters:
accessString- Access permissions string used for this user.- Returns:
this
-
authenticationMode
Sets the value ofCfnUserProps.getAuthenticationMode()- Parameters:
authenticationMode- Specifies the authentication mode to use. Below is an example of the possible JSON values:.{ Passwords: ["*****", "******"] // If Type is password. }- Returns:
this
-
noPasswordRequired
Sets the value ofCfnUserProps.getNoPasswordRequired()- Parameters:
noPasswordRequired- Indicates a password is not required for this user.- Returns:
this
-
noPasswordRequired
Sets the value ofCfnUserProps.getNoPasswordRequired()- Parameters:
noPasswordRequired- Indicates a password is not required for this user.- Returns:
this
-
passwords
Sets the value ofCfnUserProps.getPasswords()- Parameters:
passwords- Passwords used for this user. You can create up to two passwords for each user.- Returns:
this
-
tags
Sets the value ofCfnUserProps.getTags()- Parameters:
tags- The list of tags.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnUserProps>- Returns:
- a new instance of
CfnUserProps - Throws:
NullPointerException- if any required attribute was not provided
-