@Generated(value="jsii-pacmak/1.29.0 (build 41df200)", date="2021-06-02T09:55:32.031Z") @Stability(value=Experimental) public abstract class SnapshotCredentials extends software.amazon.jsii.JsiiObject
| Modifier | Constructor and Description |
|---|---|
protected |
SnapshotCredentials() |
protected |
SnapshotCredentials(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
SnapshotCredentials(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
static SnapshotCredentials |
fromGeneratedSecret(String username)
(experimental) Generate a new password for the snapshot, using the existing username and an optional encryption key.
|
static SnapshotCredentials |
fromGeneratedSecret(String username,
SnapshotCredentialsFromGeneratedPasswordOptions options)
(experimental) Generate a new password for the snapshot, using the existing username and an optional encryption key.
|
static SnapshotCredentials |
fromPassword(SecretValue password)
(experimental) Update the snapshot login with an existing password.
|
static SnapshotCredentials |
fromSecret(Secret secret)
(experimental) Update the snapshot login with an existing password from a Secret.
|
abstract IKey |
getEncryptionKey()
(experimental) KMS encryption key to encrypt the generated secret.
|
abstract String |
getExcludeCharacters()
(experimental) The characters to exclude from the generated password.
|
abstract Boolean |
getGeneratePassword()
(experimental) Whether a new password should be generated.
|
abstract SecretValue |
getPassword()
(experimental) The master user password.
|
abstract Boolean |
getReplaceOnPasswordCriteriaChanges()
(experimental) Whether to replace the generated secret when the criteria for the password change.
|
abstract Secret |
getSecret()
(experimental) Secret used to instantiate this Login.
|
abstract String |
getUsername()
(experimental) The master user name.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected SnapshotCredentials(software.amazon.jsii.JsiiObjectRef objRef)
protected SnapshotCredentials(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental) protected SnapshotCredentials()
@Stability(value=Experimental) @NotNull public static SnapshotCredentials fromGeneratedSecret(@NotNull String username, @Nullable SnapshotCredentialsFromGeneratedPasswordOptions options)
The new credentials are stored in Secrets Manager.
Note - The username must match the existing master username of the snapshot.
username - This parameter is required.options - @Stability(value=Experimental) @NotNull public static SnapshotCredentials fromGeneratedSecret(@NotNull String username)
The new credentials are stored in Secrets Manager.
Note - The username must match the existing master username of the snapshot.
username - This parameter is required.@Stability(value=Experimental) @NotNull public static SnapshotCredentials fromPassword(@NotNull SecretValue password)
password - This parameter is required.@Stability(value=Experimental) @NotNull public static SnapshotCredentials fromSecret(@NotNull Secret secret)
The Secret must be a JSON string with a password field:
{
...
"password": <required: password>,
}
secret - This parameter is required.@Stability(value=Experimental) @NotNull public abstract Boolean getGeneratePassword()
@Stability(value=Experimental) @Nullable public abstract IKey getEncryptionKey()
Default: - default master key
@Stability(value=Experimental) @Nullable public abstract String getExcludeCharacters()
Only used if {@link generatePassword} if true.
Default: - the DatabaseSecret default exclude character set (" %+~`#$&*()|[]{}:;<>?!'/
@Stability(value=Experimental) @Nullable public abstract SecretValue getPassword()
Do not put passwords in your CDK code directly.
Default: - the existing password from the snapshot
@Stability(value=Experimental) @Nullable public abstract Boolean getReplaceOnPasswordCriteriaChanges()
Default: false
@Stability(value=Experimental) @Nullable public abstract Secret getSecret()
Default: - none
@Stability(value=Experimental) @Nullable public abstract String getUsername()
Must be the current master user name of the snapshot. It is not possible to change the master user name of a RDS instance.
Default: - the existing username from the snapshot
Copyright © 2021. All rights reserved.