@Generated(value="jsii-pacmak/1.70.0 (build 03c2f6f)", date="2022-11-01T13:16:46.026Z") @Stability(value=Experimental) 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.R5, 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()
(experimental) Specifies characters to not include in generated passwords.
|
default IKey |
getKmsKey()
(experimental) KMS encryption key to encrypt the generated secret.
|
default SecretValue |
getPassword()
(experimental) Password.
|
default String |
getSecretName()
(experimental) The physical name of the secret, that will be generated.
|
String |
getUsername()
(experimental) Username.
|
@Stability(value=Experimental) @NotNull String getUsername()
@Stability(value=Experimental) @Nullable default String getExcludeCharacters()
Default: "\"
@Stability(value=Experimental) @Nullable default IKey getKmsKey()
Default: default master key
@Stability(value=Experimental) @Nullable default SecretValue getPassword()
Do not put passwords in your CDK code directly.
Default: a Secrets Manager generated password
@Stability(value=Experimental) @Nullable default String getSecretName()
Default: Secretsmanager will generate a physical name for the secret
@Stability(value=Experimental) static Login.Builder builder()
Login.Builder of LoginCopyright © 2022. All rights reserved.