@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.509Z") @Stability(value=Stable) public interface SnapshotCredentialsFromGeneratedPasswordOptions extends software.amazon.jsii.JsiiSerializable
SnapshotCredentials.fromGeneratedPassword method.
Example:
Vpc vpc;
IInstanceEngine engine = DatabaseInstanceEngine.postgres(PostgresInstanceEngineProps.builder().version(PostgresEngineVersion.VER_12_3).build());
Key myKey = new Key(this, "MyKey");
DatabaseInstanceFromSnapshot.Builder.create(this, "InstanceFromSnapshotWithCustomizedSecret")
.engine(engine)
.vpc(vpc)
.snapshotIdentifier("mySnapshot")
.credentials(SnapshotCredentials.fromGeneratedSecret("username", SnapshotCredentialsFromGeneratedPasswordOptions.builder()
.encryptionKey(myKey)
.excludeCharacters("!&*^#@()")
.replicaRegions(List.of(ReplicaRegion.builder().region("eu-west-1").build(), ReplicaRegion.builder().region("eu-west-2").build()))
.build()))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
SnapshotCredentialsFromGeneratedPasswordOptions.Builder
A builder for
SnapshotCredentialsFromGeneratedPasswordOptions |
static class |
SnapshotCredentialsFromGeneratedPasswordOptions.Jsii$Proxy
An implementation for
SnapshotCredentialsFromGeneratedPasswordOptions |
| Modifier and Type | Method and Description |
|---|---|
static SnapshotCredentialsFromGeneratedPasswordOptions.Builder |
builder() |
default IKey |
getEncryptionKey()
KMS encryption key to encrypt the generated secret.
|
default String |
getExcludeCharacters()
The characters to exclude from the generated password.
|
default List<ReplicaRegion> |
getReplicaRegions()
A list of regions where to replicate this secret.
|
@Stability(value=Stable) @Nullable default IKey getEncryptionKey()
Default: - default master key
@Stability(value=Stable) @Nullable default String getExcludeCharacters()
Default: - the DatabaseSecret default exclude character set (" %+~`#$&*()|[]{}:;<>?!'/
@Stability(value=Stable) @Nullable default List<ReplicaRegion> getReplicaRegions()
Default: - Secret is not replicated
@Stability(value=Stable) static SnapshotCredentialsFromGeneratedPasswordOptions.Builder builder()
Copyright © 2022. All rights reserved.