aws-cdk-lib.aws_rds.CfnDBCluster.ReadEndpointProperty

interface ReadEndpointProperty

LanguageType name
.NETAmazon.CDK.AWS.RDS.CfnDBCluster.ReadEndpointProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsrds#CfnDBCluster_ReadEndpointProperty
Javasoftware.amazon.awscdk.services.rds.CfnDBCluster.ReadEndpointProperty
Pythonaws_cdk.aws_rds.CfnDBCluster.ReadEndpointProperty
TypeScript aws-cdk-lib » aws_rds » CfnDBCluster » ReadEndpointProperty

The ReadEndpoint return value specifies the reader endpoint for the DB cluster.

The reader endpoint for a DB cluster load-balances connections across the Aurora Replicas that are available in a DB cluster. As clients request new connections to the reader endpoint, Aurora distributes the connection requests among the Aurora Replicas in the DB cluster. This functionality can help balance your read workload across multiple Aurora Replicas in your DB cluster.

If a failover occurs, and the Aurora Replica that you are connected to is promoted to be the primary instance, your connection is dropped. To continue sending your read workload to other Aurora Replicas in the cluster, you can then reconnect to the reader endpoint.

For more information about Aurora endpoints, see Amazon Aurora connection management in the Amazon Aurora User Guide .

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_rds as rds } from 'aws-cdk-lib';
const readEndpointProperty: rds.CfnDBCluster.ReadEndpointProperty = {
  address: 'address',
};

Properties

NameTypeDescription
address?stringThe host address of the reader endpoint.

address?

Type: string (optional)

The host address of the reader endpoint.