@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:05.701Z") @Stability(value=Experimental) 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()
(experimental) The KMS key to use to encrypt the secret.
|
default String |
getExcludeCharacters()
(experimental) Characters to not include in the generated password.
|
default ISecret |
getMasterSecret()
(experimental) The master secret which will be used to rotate this secret.
|
default String |
getSecretName()
(experimental) The physical name of the secret.
|
String |
getUsername()
(experimental) The username.
|
@Stability(value=Experimental) @NotNull String getUsername()
@Stability(value=Experimental) @Nullable default IKey getEncryptionKey()
Default: default master key
@Stability(value=Experimental) @Nullable default String getExcludeCharacters()
Default: "\"
@Stability(value=Experimental) @Nullable default ISecret getMasterSecret()
Default: - no master secret information will be included
@Stability(value=Experimental) @Nullable default String getSecretName()
Default: Secretsmanager will generate a physical name for the secret
@Stability(value=Experimental) static DatabaseSecretProps.Builder builder()
DatabaseSecretProps.Builder of DatabaseSecretPropsCopyright © 2022. All rights reserved.