Interface DatabaseSecretProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
DatabaseSecretProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2025-01-15T21:09:29.486Z") @Stability(Experimental) public interface DatabaseSecretProps extends software.amazon.jsii.JsiiSerializable
(experimental) Construction properties for a DatabaseSecret.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.redshift.alpha.*;
 import software.amazon.awscdk.services.kms.*;
 Key key;
 DatabaseSecretProps databaseSecretProps = DatabaseSecretProps.builder()
         .username("username")
         // the properties below are optional
         .encryptionKey(key)
         .excludeCharacters("excludeCharacters")
         .build();
 
  • Method Details

    • getUsername

      @Stability(Experimental) @NotNull String getUsername()
      (experimental) The username.
    • getEncryptionKey

      @Stability(Experimental) @Nullable default IKey getEncryptionKey()
      (experimental) The KMS key to use to encrypt the secret.

      Default: default master key

    • getExcludeCharacters

      @Stability(Experimental) @Nullable default String getExcludeCharacters()
      (experimental) Characters to not include in the generated password.

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

    • builder

      @Stability(Experimental) static DatabaseSecretProps.Builder builder()
      Returns:
      a DatabaseSecretProps.Builder of DatabaseSecretProps