Interface ICredentialsFromUsernameOptions
Options for creating Credentials from a username.
Inherited Members
Namespace: Amazon.CDK.AWS.RDS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ICredentialsFromUsernameOptions : ICredentialsBaseOptions
Syntax (vb)
Public Interface ICredentialsFromUsernameOptions Inherits ICredentialsBaseOptions
Remarks
ExampleMetadata: infused
Examples
Vpc vpc;
var cluster = new DatabaseCluster(this, "Database", new DatabaseClusterProps {
Engine = DatabaseClusterEngine.AuroraPostgres(new AuroraPostgresClusterEngineProps { Version = AuroraPostgresEngineVersion.VER_15_2 }),
Credentials = Credentials.FromUsername("adminuser", new CredentialsFromUsernameOptions { Password = SecretValue.UnsafePlainText("7959866cacc02c2d243ecfe177464fe6") }),
Writer = ClusterInstance.Provisioned("writer", new ProvisionedClusterInstanceProps {
PubliclyAccessible = false
}),
Readers = new [] { ClusterInstance.Provisioned("reader") },
StorageType = DBClusterStorageType.AURORA_IOPT1,
VpcSubnets = new SubnetSelection {
SubnetType = SubnetType.PRIVATE_WITH_EGRESS
},
Vpc = vpc
});
Synopsis
Properties
| Password | Password. |
Properties
Password
Password.
SecretValue? Password { get; }
Property Value
Remarks
Do not put passwords in your CDK code directly.
Default: - a Secrets Manager generated password