@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.433Z") @Stability(value=Stable) public interface CredentialsBaseOptions extends software.amazon.jsii.JsiiSerializable
Example:
Vpc vpc;
IInstanceEngine engine = DatabaseInstanceEngine.postgres(PostgresInstanceEngineProps.builder().version(PostgresEngineVersion.VER_12_3).build());
Key myKey = new Key(this, "MyKey");
DatabaseInstance.Builder.create(this, "InstanceWithCustomizedSecret")
.engine(engine)
.vpc(vpc)
.credentials(Credentials.fromGeneratedSecret("postgres", CredentialsBaseOptions.builder()
.secretName("my-cool-name")
.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 |
CredentialsBaseOptions.Builder
A builder for
CredentialsBaseOptions |
static class |
CredentialsBaseOptions.Jsii$Proxy
An implementation for
CredentialsBaseOptions |
| Modifier and Type | Method and Description |
|---|---|
static CredentialsBaseOptions.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.
|
default String |
getSecretName()
The name of the secret.
|
@Stability(value=Stable) @Nullable default IKey getEncryptionKey()
Default: - default master key
@Stability(value=Stable) @Nullable default String getExcludeCharacters()
Has no effect if {@link password} has been provided.
Default: - the DatabaseSecret default exclude character set (" %+~`#$&*()|[]{}:;<>?!'/
@Stability(value=Stable) @Nullable default List<ReplicaRegion> getReplicaRegions()
Default: - Secret is not replicated
@Stability(value=Stable) @Nullable default String getSecretName()
Default: - A name is generated by CloudFormation.
@Stability(value=Stable) static CredentialsBaseOptions.Builder builder()
CredentialsBaseOptions.Builder of CredentialsBaseOptionsCopyright © 2022. All rights reserved.