# Endpoint

Connection endpoint of a database cluster or instance.

Consists of a combination of hostname and port.

- Source: [`aws-rds/lib/endpoint.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-rds/lib/endpoint.ts#L8)

## 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);
```

## Initializer

```ts
new Endpoint(address: string, port: number)
```

## Properties

- `hostname`: string — The hostname of the endpoint.

- `port`: number — The port of the endpoint.

- `socketAddress`: string — The combination of "HOSTNAME:PORT" for this endpoint.
