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.NoPasswordUser
All Implemented Interfaces:
IResource, IUser, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.113.0 (build fc68b25)", date="2025-10-01T17:47:05.832Z") @Stability(Experimental) public class NoPasswordUser extends UserBase
(experimental) Define an ElastiCache user with no password authentication.

Example:

 // use the original `default` user by using import method
 IUser defaultUser = NoPasswordUser.fromUserAttributes(this, "DefaultUser", UserBaseAttributes.builder()
         // userId and userName must be 'default'
         .userId("default")
         .build());
 // create a new default user
 NoPasswordUser newDefaultUser = NoPasswordUser.Builder.create(this, "NewDefaultUser")
         // new default user id must not be 'default'
         .userId("new-default")
         // new default username must be 'default'
         .userName("default")
         // set access string
         .accessControl(AccessControl.fromAccessString("on ~* +@all"))
         .build();
 
  • Field Details

    • PROPERTY_INJECTION_ID

      @Stability(Experimental) public static final String PROPERTY_INJECTION_ID
      (experimental) Uniquely identifies this class.
  • Constructor Details

    • NoPasswordUser

      protected NoPasswordUser(software.amazon.jsii.JsiiObjectRef objRef)
    • NoPasswordUser

      protected NoPasswordUser(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • NoPasswordUser

      @Stability(Experimental) public NoPasswordUser(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull NoPasswordUserProps props)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      props - This parameter is required.
  • Method Details

    • isNoPasswordUser

      @Stability(Experimental) @NotNull public static Boolean isNoPasswordUser(@NotNull Object x)
      (experimental) Return whether the given object is a NoPasswordUser.

      Parameters:
      x - This parameter is required.
    • getAccessString

      @Stability(Experimental) @NotNull public String getAccessString()
      (experimental) The access string that defines the user's permissions.
    • getUserArn

      @Stability(Experimental) @NotNull public String getUserArn()
      (experimental) The user's ARN.
      Specified by:
      getUserArn in interface IUser
      Specified by:
      getUserArn in class UserBase
    • getUserId

      @Stability(Experimental) @NotNull public String getUserId()
      (experimental) The user's ID.
      Specified by:
      getUserId in interface IUser
      Specified by:
      getUserId in class UserBase
    • getUserStatus

      @Stability(Experimental) @NotNull public String getUserStatus()
      (experimental) The user's status.

      Can be 'active', 'modifying', 'deleting'.

    • getEngine

      @Stability(Experimental) @Nullable public UserEngine getEngine()
      (experimental) The engine for the user.
      Specified by:
      getEngine in interface IUser
      Specified by:
      getEngine in class UserBase
    • getUserName

      @Stability(Experimental) @Nullable public String getUserName()
      (experimental) The user's name.
      Specified by:
      getUserName in interface IUser
      Specified by:
      getUserName in class UserBase