Class BasicAuth.Builder

java.lang.Object
software.amazon.awscdk.services.amplify.alpha.BasicAuth.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<BasicAuth>
Enclosing class:
BasicAuth

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

    • create

      @Stability(Experimental) public static BasicAuth.Builder create()
      Returns:
      a new instance of BasicAuth.Builder.
    • username

      @Stability(Experimental) public BasicAuth.Builder username(String username)
      (experimental) The username.

      Parameters:
      username - The username. This parameter is required.
      Returns:
      this
    • encryptionKey

      @Stability(Experimental) public BasicAuth.Builder encryptionKey(IKey encryptionKey)
      (experimental) The encryption key to use to encrypt the password when it's generated in Secrets Manager.

      Default: - default master key

      Parameters:
      encryptionKey - The encryption key to use to encrypt the password when it's generated in Secrets Manager. This parameter is required.
      Returns:
      this
    • password

      @Stability(Experimental) public BasicAuth.Builder password(SecretValue password)
      (experimental) The password.

      Default: - A Secrets Manager generated password

      Parameters:
      password - The password. This parameter is required.
      Returns:
      this
    • build

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