> **Experimental**
>
> `@aws-cdk/aws-redshift-alpha` is an [**experimental**](/stability) (alpha) package: its API may change in any release, without a major version bump.
# Endpoint

Connection endpoint of a redshift cluster.

Consists of a combination of hostname and port.

- Stability: [Experimental](/cdk/api/stability.html)
- Source: [`lib/endpoint.ts`](https://github.com/aws/aws-cdk/blob/v2.277.0/packages/@aws-cdk/aws-redshift-alpha/lib/endpoint.ts#L9)

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as redshift_alpha from '@aws-cdk/aws-redshift-alpha';
const endpoint = new redshift_alpha.Endpoint('address', 123);
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_redshift_alpha as redshift_alpha

endpoint = redshift_alpha.Endpoint("address", 123)
```

Java:

```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.redshift.alpha.*;

Endpoint endpoint = new Endpoint("address", 123);
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.AWS.Redshift.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Redshift.Alpha;

var endpoint = new Endpoint("address", 123);
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdkredshiftalpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import redshift_alpha "github.com/aws/aws-cdk-go/awscdkredshiftalpha"

endpoint := redshift_alpha.NewEndpoint(jsii.String("address"), jsii.Number(123))
```

## Initializer

TypeScript:

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

Python:

```python
Endpoint(address: str, port: int | float)
```

Java:

```java
new Endpoint(String address, Number port)
```

C# / .NET:

```csharp
new Endpoint(string address, double port)
```

Golang:

```go
NewEndpoint(Address *string, Port *float64)
```

## 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.
