Class CfnUser.Builder

java.lang.Object
software.amazon.awscdk.services.elasticache.CfnUser.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnUser>
Enclosing class:
CfnUser

@Stability(Stable) public static final class CfnUser.Builder extends Object implements software.amazon.jsii.Builder<CfnUser>
A fluent builder for CfnUser.
  • Method Details

    • create

      @Stability(Stable) public static CfnUser.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnUser.Builder.
    • engine

      @Stability(Stable) public CfnUser.Builder engine(String engine)
      The current supported value is redis.

      Parameters:
      engine - The current supported value is redis. This parameter is required.
      Returns:
      this
    • userId

      @Stability(Stable) public CfnUser.Builder userId(String userId)
      The ID of the user.

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

      @Stability(Stable) public CfnUser.Builder userName(String userName)
      The username of the user.

      Parameters:
      userName - The username of the user. This parameter is required.
      Returns:
      this
    • accessString

      @Stability(Stable) public CfnUser.Builder accessString(String accessString)
      Access permissions string used for this user.

      Parameters:
      accessString - Access permissions string used for this user. This parameter is required.
      Returns:
      this
    • authenticationMode

      @Stability(Stable) public CfnUser.Builder authenticationMode(Object authenticationMode)
      Specifies the authentication mode to use. Below is an example of the possible JSON values:.

       { Type: <iam | no-password-required | password> Passwords: ["*****", "******"] // If Type is password.
       }
       

      Parameters:
      authenticationMode - Specifies the authentication mode to use. Below is an example of the possible JSON values:. This parameter is required.
      Returns:
      this
    • noPasswordRequired

      @Stability(Stable) public CfnUser.Builder noPasswordRequired(Boolean noPasswordRequired)
      Indicates a password is not required for this user.

      Parameters:
      noPasswordRequired - Indicates a password is not required for this user. This parameter is required.
      Returns:
      this
    • noPasswordRequired

      @Stability(Stable) public CfnUser.Builder noPasswordRequired(IResolvable noPasswordRequired)
      Indicates a password is not required for this user.

      Parameters:
      noPasswordRequired - Indicates a password is not required for this user. This parameter is required.
      Returns:
      this
    • passwords

      @Stability(Stable) public CfnUser.Builder passwords(List<String> passwords)
      Passwords used for this user.

      You can create up to two passwords for each user.

      Parameters:
      passwords - Passwords used for this user. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnUser.Builder tags(List<? extends CfnTag> tags)
      AWS::ElastiCache::User.Tags.

      Parameters:
      tags - AWS::ElastiCache::User.Tags. This parameter is required.
      Returns:
      this
    • build

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