Class DatabaseSecret.Builder

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

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

    • create

      @Stability(Experimental) public static DatabaseSecret.Builder create(software.constructs.Construct scope, String id)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      Returns:
      a new instance of DatabaseSecret.Builder.
    • username

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

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

      @Stability(Experimental) public DatabaseSecret.Builder encryptionKey(IKey encryptionKey)
      (experimental) The KMS key to use to encrypt the secret.

      Default: default master key

      Parameters:
      encryptionKey - The KMS key to use to encrypt the secret. This parameter is required.
      Returns:
      this
    • excludeCharacters

      @Stability(Experimental) public DatabaseSecret.Builder excludeCharacters(String excludeCharacters)
      (experimental) Characters to not include in the generated password.

      Default: '"@/\\\ \''

      Parameters:
      excludeCharacters - Characters to not include in the generated password. This parameter is required.
      Returns:
      this
    • build

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