@Generated(value="jsii-pacmak/1.47.0 (build 86d2c33)", date="2021-12-22T10:27:16.837Z") @Stability(value=Stable) public interface DatabaseSecretProps extends software.amazon.jsii.JsiiSerializable
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.docdb.*;
import software.amazon.awscdk.services.kms.*;
import software.amazon.awscdk.services.secretsmanager.*;
Key key;
Secret secret;
DatabaseSecretProps databaseSecretProps = DatabaseSecretProps.builder()
.username("username")
// the properties below are optional
.encryptionKey(key)
.excludeCharacters("excludeCharacters")
.masterSecret(secret)
.secretName("secretName")
.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) @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) @NotNull String getUsername()
@Stability(value=Stable) static DatabaseSecretProps.Builder builder()
DatabaseSecretProps.Builder of DatabaseSecretPropsCopyright © 2021. All rights reserved.