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 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

      @Stability(Experimental) public PasswordUser.Builder accessControl(AccessControl accessControl)
      (experimental) Access control configuration for the user.

      Parameters:
      accessControl - Access control configuration for the user. This parameter is required.
      Returns:
      this
    • userId

      @Stability(Experimental) public PasswordUser.Builder userId(String userId)
      (experimental) The ID of the user.

      Parameters:
      userId - The ID of the user. This parameter is required.
      Returns:
      this
    • engine

      @Stability(Experimental) public PasswordUser.Builder engine(UserEngine 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

      @Stability(Experimental) public PasswordUser.Builder userName(String 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

      @Stability(Experimental) public PasswordUser build()
      Specified by:
      build in interface software.amazon.jsii.Builder<PasswordUser>
      Returns:
      a newly built instance of PasswordUser.