Class PasswordUser.Builder
java.lang.Object
software.amazon.awscdk.services.elasticache.alpha.PasswordUser.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<PasswordUser>
- Enclosing class:
PasswordUser
@Stability(Experimental)
public static final class PasswordUser.Builder
extends Object
implements software.amazon.jsii.Builder<PasswordUser>
(experimental) A fluent builder for
PasswordUser.-
Method Summary
Modifier and TypeMethodDescriptionaccessControl(AccessControl accessControl) (experimental) Access control configuration for the user.build()static PasswordUser.Builderengine(UserEngine engine) (experimental) The engine type for the user.passwords(List<? extends SecretValue> passwords) (experimental) The passwords for the user.(experimental) The ID of the user.(experimental) The name of the user.
-
Method Details
-
create
@Stability(Experimental) public static PasswordUser.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- This parameter is required.id- This parameter is required.- Returns:
- a new instance of
PasswordUser.Builder.
-
accessControl
(experimental) Access control configuration for the user.- Parameters:
accessControl- Access control configuration for the user. This parameter is required.- Returns:
this
-
userId
(experimental) The ID of the user.- Parameters:
userId- The ID of the user. This parameter is required.- Returns:
this
-
engine
(experimental) The engine type for the user.Enum options: UserEngine.VALKEY, UserEngine.REDIS.
Default: UserEngine.VALKEY.
- Parameters:
engine- The engine type for the user. This parameter is required.- Returns:
this
-
passwords
@Stability(Experimental) public PasswordUser.Builder passwords(List<? extends SecretValue> passwords) (experimental) The passwords for the user.Password authentication requires using 1-2 passwords.
- Parameters:
passwords- The passwords for the user. This parameter is required.- Returns:
this
-
userName
(experimental) The name of the user.Default: - Same as userId.
- Parameters:
userName- The name of the user. This parameter is required.- Returns:
this
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<PasswordUser>- Returns:
- a newly built instance of
PasswordUser.
-