Interface DatabaseSecretProps

All Superinterfaces:
All Known Implementing Classes:

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:41.917Z") @Stability(Stable) public interface DatabaseSecretProps extends
Construction properties for a DatabaseSecret.


 DatabaseCluster cluster;
 DatabaseSecret myUserSecret = DatabaseSecret.Builder.create(this, "MyUserSecret")
 ISecret myUserSecretAttached = myUserSecret.attach(cluster); // Adds DB connections information in the secret
 cluster.addRotationMultiUser("MyUser", RotationMultiUserOptions.builder() // Add rotation using the multi user scheme
  • Method Details

    • getUsername

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

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

      Default: default master key

    • getExcludeCharacters

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

      Default: "\"

    • getMasterSecret

      @Stability(Stable) @Nullable default ISecret getMasterSecret()
      The master secret which will be used to rotate this secret.

      Default: - no master secret information will be included

    • getSecretName

      @Stability(Stable) @Nullable default String getSecretName()
      The physical name of the secret.

      Default: Secretsmanager will generate a physical name for the secret

    • builder

      @Stability(Stable) static DatabaseSecretProps.Builder builder()
      a DatabaseSecretProps.Builder of DatabaseSecretProps