Class CfnUser.Builder

java.lang.Object
software.amazon.awscdk.services.memorydb.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.
    • userName

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

      Parameters:
      userName - The name 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)
      Denotes whether the user requires a password to authenticate.

      Example:

      mynewdbuser: Type: AWS::MemoryDB::User Properties: AccessString: on ~* &* +@all AuthenticationMode: Passwords: '1234567890123456' Type: password UserName: mynewdbuser AuthenticationMode: { "Passwords": ["1234567890123456"], "Type": "Password" }

      Parameters:
      authenticationMode - Denotes whether the user requires a password to authenticate. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnUser.Builder tags(List<? extends CfnTag> tags)
      An array of key-value pairs to apply to this resource.

      For more information, see Tag .

      Parameters:
      tags - An array of key-value pairs to apply to this resource. 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.