Interface DatabaseInstanceReadReplicaProps
- All Superinterfaces:
DatabaseInstanceNewProps,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
DatabaseInstanceReadReplicaProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.113.0 (build fc68b25)",
date="2025-10-14T12:28:18.940Z")
@Stability(Stable)
public interface DatabaseInstanceReadReplicaProps
extends software.amazon.jsii.JsiiSerializable, DatabaseInstanceNewProps
Construction properties for a DatabaseInstanceReadReplica.
Example:
Vpc vpc;
DatabaseInstance sourceInstance;
DatabaseInstanceFromSnapshot.Builder.create(this, "Instance")
.snapshotIdentifier("my-snapshot")
.engine(DatabaseInstanceEngine.postgres(PostgresInstanceEngineProps.builder().version(PostgresEngineVersion.VER_16_3).build()))
// optional, defaults to m5.large
.instanceType(InstanceType.of(InstanceClass.BURSTABLE2, InstanceSize.LARGE))
.vpc(vpc)
.build();
DatabaseInstanceReadReplica.Builder.create(this, "ReadReplica")
.sourceDatabaseInstance(sourceInstance)
.instanceType(InstanceType.of(InstanceClass.BURSTABLE2, InstanceSize.LARGE))
.vpc(vpc)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forDatabaseInstanceReadReplicaPropsstatic final classAn implementation forDatabaseInstanceReadReplicaProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default NumberThe allocated storage size, specified in gibibytes (GiB).The name of the compute and memory capacity classes.The source database instance.default BooleanIndicates whether the DB instance is encrypted.default IKeyRefThe KMS key that's used to encrypt the DB instance.Methods inherited from interface software.amazon.awscdk.services.rds.DatabaseInstanceNewProps
getApplyImmediately, getAutoMinorVersionUpgrade, getAvailabilityZone, getBackupRetention, getCaCertificate, getCloudwatchLogsExports, getCloudwatchLogsRetention, getCloudwatchLogsRetentionRole, getCopyTagsToSnapshot, getDatabaseInsightsMode, getDeleteAutomatedBackups, getDeletionProtection, getDomain, getDomainRole, getEnablePerformanceInsights, getEngineLifecycleSupport, getIamAuthentication, getInstanceIdentifier, getIops, getMaxAllocatedStorage, getMonitoringInterval, getMonitoringRole, getMultiAz, getNetworkType, getOptionGroup, getParameterGroup, getPerformanceInsightEncryptionKey, getPerformanceInsightRetention, getPort, getPreferredBackupWindow, getPreferredMaintenanceWindow, getProcessorFeatures, getPubliclyAccessible, getRemovalPolicy, getS3ExportBuckets, getS3ExportRole, getS3ImportBuckets, getS3ImportRole, getSecurityGroups, getStorageThroughput, getStorageType, getSubnetGroup, getVpc, getVpcSubnetsMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getInstanceType
The name of the compute and memory capacity classes. -
getSourceDatabaseInstance
The source database instance.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.
-
getAllocatedStorage
The allocated storage size, specified in gibibytes (GiB).Default: - The replica will inherit the allocated storage of the source database instance
-
getStorageEncrypted
Indicates whether the DB instance is encrypted.Default: - true if storageEncryptionKey has been provided, false otherwise
-
getStorageEncryptionKey
The KMS key that's used to encrypt the DB instance.Default: - default master key if storageEncrypted is true, no key otherwise
-
builder
-