Skip to content
v2.275.0

Endpoint Class ​

Connection endpoint of a database cluster or instance.

Consists of a combination of hostname and port.

Example ​

ts
// 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 endpoint = new rds.Endpoint('address', 123);
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_rds as rds

endpoint = rds.Endpoint("address", 123)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.rds.*;

Endpoint endpoint = new Endpoint("address", 123);
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.RDS;

var endpoint = new Endpoint("address", 123);
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

endpoint := awscdk.Aws_rds.NewEndpoint(jsii.String("address"), jsii.Number(123))

Initializer ​

ts
new Endpoint(address: string, port: number)
python
Endpoint(address: str, port: int | float)
java
new Endpoint(String address, Number port)
csharp
new Endpoint(string address, double port)
go
NewEndpoint(Address *string, Port *float64)

Properties ​

hostnamestringhostnamestrhostnameStringHostnamestringHostname*string#
The hostname of the endpoint.
portnumberportint | floatportNumberPortdoublePort*float64#
The port of the endpoint.
socketAddressstringsocket_addressstrsocketAddressStringSocketAddressstringSocketAddress*string#
The combination of "HOSTNAME:PORT" for this endpoint.