@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.027Z") @Stability(value=Stable) public interface Login extends software.amazon.jsii.JsiiSerializable
Example:
Vpc vpc;
DatabaseCluster cluster = DatabaseCluster.Builder.create(this, "Database")
.masterUser(Login.builder()
.username("myuser") // NOTE: 'admin' is reserved by DocumentDB
.excludeCharacters("\"@/:") // optional, defaults to the set "\"@/" and is also used for eventually created rotations
.secretName("/myapp/mydocdb/masteruser")
.build())
.instanceType(InstanceType.of(InstanceClass.MEMORY5, InstanceSize.LARGE))
.vpcSubnets(SubnetSelection.builder()
.subnetType(SubnetType.PUBLIC)
.build())
.vpc(vpc)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
Login.Builder
A builder for
Login |
static class |
Login.Jsii$Proxy
An implementation for
Login |
| Modifier and Type | Method and Description |
|---|---|
static Login.Builder |
builder() |
default String |
getExcludeCharacters()
Specifies characters to not include in generated passwords.
|
default IKey |
getKmsKey()
KMS encryption key to encrypt the generated secret.
|
default SecretValue |
getPassword()
Password.
|
default String |
getSecretName()
The physical name of the secret, that will be generated.
|
String |
getUsername()
Username.
|
@Stability(value=Stable) @NotNull String getUsername()
@Stability(value=Stable) @Nullable default String getExcludeCharacters()
Default: "\"
@Stability(value=Stable) @Nullable default IKey getKmsKey()
Default: default master key
@Stability(value=Stable) @Nullable default SecretValue getPassword()
Do not put passwords in your CDK code directly.
Default: a Secrets Manager generated password
@Stability(value=Stable) @Nullable default String getSecretName()
Default: Secretsmanager will generate a physical name for the secret
@Stability(value=Stable) static Login.Builder builder()
Login.Builder of LoginCopyright © 2022. All rights reserved.