Class PasswordUser
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.elasticache.alpha.UserBase
software.amazon.awscdk.services.elasticache.alpha.PasswordUser
- All Implemented Interfaces:
IEnvironmentAware,IResource,IUser,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-20T23:37:34.219Z")
@Stability(Experimental)
public class PasswordUser
extends UserBase
(experimental) Define 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 TypeClassDescriptionstatic final class(experimental) A fluent builder forPasswordUser.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.elasticache.alpha.IUser
IUser.Jsii$Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String(experimental) Uniquely identifies this class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPasswordUser(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedPasswordUser(software.amazon.jsii.JsiiObjectRef objRef) PasswordUser(software.constructs.Construct scope, String id, PasswordUserProps props) -
Method Summary
Modifier and TypeMethodDescription(experimental) The access string that defines the user's permissions.(experimental) The engine for the user.(experimental) The user's ARN.(experimental) The user's ID.(experimental) The user's name.(experimental) The user's status.static Boolean(experimental) Return whether the given object is aPasswordUser.Methods inherited from class software.amazon.awscdk.services.elasticache.alpha.UserBase
fromUserArn, fromUserAttributes, fromUserIdMethods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourceMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
PROPERTY_INJECTION_ID
(experimental) Uniquely identifies this class.
-
-
Constructor Details
-
PasswordUser
protected PasswordUser(software.amazon.jsii.JsiiObjectRef objRef) -
PasswordUser
protected PasswordUser(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
PasswordUser
@Stability(Experimental) public PasswordUser(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull PasswordUserProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props- This parameter is required.
-
-
Method Details
-
isPasswordUser
(experimental) Return whether the given object is aPasswordUser.- Parameters:
x- This parameter is required.
-
getAccessString
(experimental) The access string that defines the user's permissions. -
getUserArn
(experimental) The user's ARN.- Specified by:
getUserArnin interfaceIUser- Specified by:
getUserArnin classUserBase
-
getUserId
(experimental) The user's ID. -
getUserStatus
(experimental) The user's status.Can be 'active', 'modifying', 'deleting'.
-
getEngine
(experimental) The engine for the user. -
getUserName
(experimental) The user's name.- Specified by:
getUserNamein interfaceIUser- Specified by:
getUserNamein classUserBase
-