Interface IDatabaseInstanceReadReplicaProps
Construction properties for a DatabaseInstanceReadReplica.
Inherited Members
Namespace: Amazon.CDK.AWS.RDS
Assembly: Amazon.CDK.AWS.RDS.dll
Syntax (csharp)
public interface IDatabaseInstanceReadReplicaProps : IDatabaseInstanceNewProps
Syntax (vb)
Public Interface IDatabaseInstanceReadReplicaProps
Inherits IDatabaseInstanceNewProps
Remarks
ExampleMetadata: infused
Examples
Vpc vpc;
DatabaseInstance sourceInstance;
new DatabaseInstanceFromSnapshot(this, "Instance", new DatabaseInstanceFromSnapshotProps {
SnapshotIdentifier = "my-snapshot",
Engine = DatabaseInstanceEngine.Postgres(new PostgresInstanceEngineProps { Version = PostgresEngineVersion.VER_12_3 }),
// optional, defaults to m5.large
InstanceType = InstanceType.Of(InstanceClass.BURSTABLE2, InstanceSize.LARGE),
Vpc = vpc
});
new DatabaseInstanceReadReplica(this, "ReadReplica", new DatabaseInstanceReadReplicaProps {
SourceDatabaseInstance = sourceInstance,
InstanceType = InstanceType.Of(InstanceClass.BURSTABLE2, InstanceSize.LARGE),
Vpc = vpc
});
Synopsis
Properties
InstanceType | The name of the compute and memory capacity classes. |
SourceDatabaseInstance | The source database instance. |
StorageEncrypted | Indicates whether the DB instance is encrypted. |
StorageEncryptionKey | The KMS key that's used to encrypt the DB instance. |
Properties
InstanceType
The name of the compute and memory capacity classes.
InstanceType InstanceType { get; }
Property Value
SourceDatabaseInstance
The source database instance.
IDatabaseInstance SourceDatabaseInstance { get; }
Property Value
Remarks
Each DB instance can have a limited number of read replicas. For more information, see https://docs.aws.amazon.com/AmazonRDS/latest/DeveloperGuide/USER_ReadRepl.html.
StorageEncrypted
Indicates whether the DB instance is encrypted.
virtual Nullable<bool> StorageEncrypted { get; }
Property Value
System.Nullable<System.Boolean>
Remarks
Default: - true if storageEncryptionKey has been provided, false otherwise
StorageEncryptionKey
The KMS key that's used to encrypt the DB instance.
virtual IKey StorageEncryptionKey { get; }
Property Value
Remarks
Default: - default master key if storageEncrypted is true, no key otherwise