Interface PasswordUserProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable,UserBaseProps
- All Known Implementing Classes:
PasswordUserProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-20T23:37:34.220Z")
@Stability(Experimental)
public interface PasswordUserProps
extends software.amazon.jsii.JsiiSerializable, UserBaseProps
(experimental) Properties for defining an ElastiCache user with password authentication.
Example:
PasswordUser user = PasswordUser.Builder.create(this, "User")
// set user engine
.engine(UserEngine.VALKEY)
// set user id
.userId("my-user-id")
// set access string
.accessControl(AccessControl.fromAccessString("on ~* +@all"))
// set username
.userName("my-user-name")
// set up to two passwords
.passwords(List.of(SecretValue.secretsManager("SecretIdForPassword"), SecretValue.secretsManager("AnotherSecretIdForPassword")))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forPasswordUserPropsstatic final classAn implementation forPasswordUserProps -
Method Summary
Modifier and TypeMethodDescriptionstatic PasswordUserProps.Builderbuilder()(experimental) The passwords for the user.default String(experimental) The name of the user.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJsonMethods inherited from interface software.amazon.awscdk.services.elasticache.alpha.UserBaseProps
getAccessControl, getEngine, getUserId
-
Method Details
-
getPasswords
(experimental) The passwords for the user.Password authentication requires using 1-2 passwords.
-
getUserName
(experimental) The name of the user.Default: - Same as userId.
-
builder
- Returns:
- a
PasswordUserProps.BuilderofPasswordUserProps
-