Interface CredentialsFromUsernameOptions
- All Superinterfaces:
CredentialsBaseOptions,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CredentialsFromUsernameOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-13T16:10:12.596Z")
@Stability(Stable)
public interface CredentialsFromUsernameOptions
extends software.amazon.jsii.JsiiSerializable, CredentialsBaseOptions
Options for creating Credentials from a username.
Example:
Vpc vpc;
DatabaseCluster cluster = DatabaseCluster.Builder.create(this, "Database")
.engine(DatabaseClusterEngine.auroraPostgres(AuroraPostgresClusterEngineProps.builder().version(AuroraPostgresEngineVersion.VER_15_2).build()))
.credentials(Credentials.fromUsername("adminuser", CredentialsFromUsernameOptions.builder().password(SecretValue.unsafePlainText("7959866cacc02c2d243ecfe177464fe6")).build()))
.writer(ClusterInstance.provisioned("writer", ProvisionedClusterInstanceProps.builder()
.publiclyAccessible(false)
.build()))
.readers(List.of(ClusterInstance.provisioned("reader")))
.storageType(DBClusterStorageType.AURORA_IOPT1)
.vpcSubnets(SubnetSelection.builder()
.subnetType(SubnetType.PRIVATE_WITH_EGRESS)
.build())
.vpc(vpc)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCredentialsFromUsernameOptionsstatic final classAn implementation forCredentialsFromUsernameOptions -
Method Summary
Methods inherited from interface software.amazon.awscdk.services.rds.CredentialsBaseOptions
getEncryptionKey, getExcludeCharacters, getReplicaRegions, getSecretNameMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getPassword
Password.Do not put passwords in your CDK code directly.
Default: - a Secrets Manager generated password
-
builder
-