Class CfnUserProps.Builder

java.lang.Object
software.amazon.awscdk.services.memorydb.CfnUserProps.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnUserProps>
Enclosing interface:
CfnUserProps

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

    • Builder

      public Builder()
  • Method Details

    • userName

      @Stability(Stable) public CfnUserProps.Builder userName(String userName)
      Sets the value of CfnUserProps.getUserName()
      Parameters:
      userName - The name of the user. This parameter is required.
      Returns:
      this
    • accessString

      @Stability(Stable) public CfnUserProps.Builder accessString(String accessString)
      Parameters:
      accessString - Access permissions string used for this user.
      Returns:
      this
    • authenticationMode

      @Stability(Stable) public CfnUserProps.Builder authenticationMode(Object authenticationMode)
      Parameters:
      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" }

      Returns:
      this
    • tags

      @Stability(Stable) public CfnUserProps.Builder tags(List<? extends CfnTag> tags)
      Sets the value of CfnUserProps.getTags()
      Parameters:
      tags - An array of key-value pairs to apply to this resource. For more information, see Tag .
      Returns:
      this
    • build

      @Stability(Stable) public CfnUserProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnUserProps>
      Returns:
      a new instance of CfnUserProps
      Throws:
      NullPointerException - if any required attribute was not provided