@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-05-19T23:09:28.675Z") @Stability(value=Stable) public interface DatabaseSecretProps extends software.amazon.jsii.JsiiSerializable
Example:
DatabaseCluster cluster; DatabaseSecret myUserSecret = DatabaseSecret.Builder.create(this, "MyUserSecret") .username("myuser") .masterSecret(cluster.getSecret()) .build(); ISecret myUserSecretAttached = myUserSecret.attach(cluster); // Adds DB connections information in the secret cluster.addRotationMultiUser("MyUser", RotationMultiUserOptions.builder() // Add rotation using the multi user scheme .secret(myUserSecretAttached).build());
Modifier and Type | Interface and Description |
---|---|
static class |
DatabaseSecretProps.Builder
A builder for
DatabaseSecretProps |
static class |
DatabaseSecretProps.Jsii$Proxy
An implementation for
DatabaseSecretProps |
Modifier and Type | Method and Description |
---|---|
static DatabaseSecretProps.Builder |
builder() |
default IKey |
getEncryptionKey()
The KMS key to use to encrypt the secret.
|
default String |
getExcludeCharacters()
Characters to not include in the generated password.
|
default ISecret |
getMasterSecret()
The master secret which will be used to rotate this secret.
|
default String |
getSecretName()
The physical name of the secret.
|
String |
getUsername()
The username.
|
@Stability(value=Stable) @NotNull String getUsername()
@Stability(value=Stable) @Nullable default IKey getEncryptionKey()
Default: default master key
@Stability(value=Stable) @Nullable default String getExcludeCharacters()
Default: "\"
@Stability(value=Stable) @Nullable default ISecret getMasterSecret()
Default: - no master secret information will be included
@Stability(value=Stable) @Nullable default String getSecretName()
Default: Secretsmanager will generate a physical name for the secret
@Stability(value=Stable) static DatabaseSecretProps.Builder builder()
DatabaseSecretProps.Builder
of DatabaseSecretProps
Copyright © 2023. All rights reserved.