Interface ISnapshotCredentialsFromGeneratedPasswordOptions
Options used in the {@link SnapshotCredentials.fromGeneratedPassword} method.
Namespace: Amazon.CDK.AWS.RDS
Assembly: Amazon.CDK.AWS.RDS.dll
Syntax (csharp)
public interface ISnapshotCredentialsFromGeneratedPasswordOptions
Syntax (vb)
Public Interface ISnapshotCredentialsFromGeneratedPasswordOptions
Remarks
ExampleMetadata: infused
Examples
Vpc vpc;
var engine = DatabaseInstanceEngine.Postgres(new PostgresInstanceEngineProps { Version = PostgresEngineVersion.VER_12_3 });
var myKey = new Key(this, "MyKey");
new DatabaseInstanceFromSnapshot(this, "InstanceFromSnapshotWithCustomizedSecret", new DatabaseInstanceFromSnapshotProps {
Engine = engine,
Vpc = vpc,
SnapshotIdentifier = "mySnapshot",
Credentials = SnapshotCredentials.FromGeneratedSecret("username", new SnapshotCredentialsFromGeneratedPasswordOptions {
EncryptionKey = myKey,
ExcludeCharacters = "!&*^#@()",
ReplicaRegions = new [] { new ReplicaRegion { Region = "eu-west-1" }, new ReplicaRegion { Region = "eu-west-2" } }
})
});
Synopsis
Properties
EncryptionKey | KMS encryption key to encrypt the generated secret. |
ExcludeCharacters | |
ReplicaRegions | A list of regions where to replicate this secret. |
Properties
EncryptionKey
KMS encryption key to encrypt the generated secret.
virtual IKey EncryptionKey { get; }
Property Value
Remarks
Default: - default master key
ExcludeCharacters
virtual string ExcludeCharacters { get; }
Property Value
System.String
ReplicaRegions
A list of regions where to replicate this secret.
virtual IReplicaRegion[] ReplicaRegions { get; }
Property Value
Remarks
Default: - Secret is not replicated