java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.elasticache.alpha.UserBase
All Implemented Interfaces:
IResource, IUser, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable
Direct Known Subclasses:
IamUser, NoPasswordUser, PasswordUser

@Generated(value="jsii-pacmak/1.113.0 (build fc68b25)", date="2025-10-01T17:47:05.838Z") @Stability(Experimental) public abstract class UserBase extends Resource implements IUser
(experimental) Base class for ElastiCache users.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.elasticache.alpha.*;
 IUser userBase = UserBase.fromUserArn(this, "MyUserBase", "userArn");
 
  • Constructor Details

    • UserBase

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

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

      @Stability(Stable) protected UserBase(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable ResourceProps props)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      props -
    • UserBase

      @Stability(Stable) protected UserBase(@NotNull software.constructs.Construct scope, @NotNull String id)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
  • Method Details

    • fromUserArn

      @Stability(Experimental) @NotNull public static IUser fromUserArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String userArn)
      (experimental) Import an existing user by ARN.

      Parameters:
      scope - The parent creating construct (usually this). This parameter is required.
      id - The construct's name. This parameter is required.
      userArn - The ARN of the existing user. This parameter is required.
    • fromUserAttributes

      @Stability(Experimental) @NotNull public static IUser fromUserAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull UserBaseAttributes attrs)
      (experimental) Import an existing user using attributes.

      Parameters:
      scope - The parent creating construct (usually this). This parameter is required.
      id - The construct's name. This parameter is required.
      attrs - A UserBaseAttributes object. This parameter is required.
    • fromUserId

      @Stability(Experimental) @NotNull public static IUser fromUserId(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String userId)
      (experimental) Import an existing user by ID.

      Parameters:
      scope - The parent creating construct (usually this). This parameter is required.
      id - The construct's name. This parameter is required.
      userId - The ID of the existing user. This parameter is required.
    • getUserArn

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

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

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

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