Class DatabaseInstanceReadReplica
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.rds.DatabaseInstanceBase
software.amazon.awscdk.services.rds.DatabaseInstanceReadReplica
- All Implemented Interfaces:
IResource,IConnectable,IDatabaseInstance,ISecretAttachmentTarget,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:45.517Z")
@Stability(Stable)
public class DatabaseInstanceReadReplica
extends DatabaseInstanceBase
implements IDatabaseInstance
A read replica database instance.
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 TypeClassDescriptionstatic final classA fluent builder forDatabaseInstanceReadReplica.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.rds.IDatabaseInstance
IDatabaseInstance.Jsii$Default, IDatabaseInstance.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDatabaseInstanceReadReplica(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedDatabaseInstanceReadReplica(software.amazon.jsii.JsiiObjectRef objRef) DatabaseInstanceReadReplica(software.constructs.Construct scope, String id, DatabaseInstanceReadReplicaProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe log group is created whencloudwatchLogsExportsis set.Access to network connections.The instance endpoint address.The instance endpoint port.protected BooleanThe engine of this database Instance.The instance endpoint.The instance identifier.The AWS Region-unique, immutable identifier for the DB instance.protected InstanceTypeprotected CfnDBInstancePropsgetVpc()The VPC where this database instance is deployed.protected SubnetSelectionprotected voidprotected voidMethods inherited from class software.amazon.awscdk.services.rds.DatabaseInstanceBase
addProxy, asSecretAttachmentTarget, fromDatabaseInstanceAttributes, fromLookup, getInstanceArn, grantConnect, grantConnect, metric, metric, metricCPUUtilization, metricCPUUtilization, metricDatabaseConnections, metricDatabaseConnections, metricFreeableMemory, metricFreeableMemory, metricFreeStorageSpace, metricFreeStorageSpace, metricReadIOPS, metricReadIOPS, metricWriteIOPS, metricWriteIOPS, onEvent, onEventMethods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourceMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.services.rds.IDatabaseInstance
addProxy, getInstanceArn, grantConnect, grantConnect, metric, metric, metricCPUUtilization, metricCPUUtilization, metricDatabaseConnections, metricDatabaseConnections, metricFreeableMemory, metricFreeableMemory, metricFreeStorageSpace, metricFreeStorageSpace, metricReadIOPS, metricReadIOPS, metricWriteIOPS, metricWriteIOPS, onEvent, onEventMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getEnv, getStackMethods inherited from interface software.amazon.awscdk.services.secretsmanager.ISecretAttachmentTarget
asSecretAttachmentTargetMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
PROPERTY_INJECTION_ID
Uniquely identifies this class.
-
-
Constructor Details
-
DatabaseInstanceReadReplica
protected DatabaseInstanceReadReplica(software.amazon.jsii.JsiiObjectRef objRef) -
DatabaseInstanceReadReplica
protected DatabaseInstanceReadReplica(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
DatabaseInstanceReadReplica
@Stability(Stable) public DatabaseInstanceReadReplica(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull DatabaseInstanceReadReplicaProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props- This parameter is required.
-
-
Method Details
-
setLogRetention
@Stability(Stable) protected void setLogRetention() -
getCloudwatchLogGroups
The log group is created whencloudwatchLogsExportsis set.Each export value will create a separate log group.
-
getConnections
Access to network connections.- Specified by:
getConnectionsin interfaceIConnectable- Specified by:
getConnectionsin classDatabaseInstanceBase
-
getDbInstanceEndpointAddress
The instance endpoint address.- Specified by:
getDbInstanceEndpointAddressin interfaceIDatabaseInstance- Specified by:
getDbInstanceEndpointAddressin classDatabaseInstanceBase
-
getDbInstanceEndpointPort
The instance endpoint port.- Specified by:
getDbInstanceEndpointPortin interfaceIDatabaseInstance- Specified by:
getDbInstanceEndpointPortin classDatabaseInstanceBase
-
getInstanceEndpoint
The instance endpoint.- Specified by:
getInstanceEndpointin interfaceIDatabaseInstance- Specified by:
getInstanceEndpointin classDatabaseInstanceBase
-
getInstanceIdentifier
The instance identifier.- Specified by:
getInstanceIdentifierin interfaceIDatabaseInstance- Specified by:
getInstanceIdentifierin classDatabaseInstanceBase
-
getInstanceType
-
getNewCfnProps
-
getVpc
The VPC where this database instance is deployed. -
getEngine
The engine of this database Instance.May be not known for imported Instances if it wasn't provided explicitly, or for read replicas.
- Specified by:
getEnginein interfaceIDatabaseInstance- Specified by:
getEnginein classDatabaseInstanceBase
-
getInstanceResourceId
The AWS Region-unique, immutable identifier for the DB instance.This identifier is found in AWS CloudTrail log entries whenever the AWS KMS key for the DB instance is accessed.
- Specified by:
getInstanceResourceIdin interfaceIDatabaseInstance- Specified by:
getInstanceResourceIdin classDatabaseInstanceBase- See Also:
-
getVpcPlacement
-
getEnableIamAuthentication
- Specified by:
getEnableIamAuthenticationin classDatabaseInstanceBase
-
setEnableIamAuthentication
- Specified by:
setEnableIamAuthenticationin classDatabaseInstanceBase
-