# EndpointProperty

The VPC endpoint object.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_redshiftserverless as redshiftserverless } from 'aws-cdk-lib';
const endpointProperty: redshiftserverless.CfnWorkgroup.EndpointProperty = {
  address: 'address',
  port: 123,
  vpcEndpoints: [{
    networkInterfaces: [{
      availabilityZone: 'availabilityZone',
      networkInterfaceId: 'networkInterfaceId',
      privateIpAddress: 'privateIpAddress',
      subnetId: 'subnetId',
    }],
    vpcEndpointId: 'vpcEndpointId',
    vpcId: 'vpcId',
  }],
};
```

Python:

```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_redshiftserverless as redshiftserverless

endpoint_property = redshiftserverless.CfnWorkgroup.EndpointProperty(
    address="address",
    port=123,
    vpc_endpoints=[redshiftserverless.CfnWorkgroup.VpcEndpointProperty(
        network_interfaces=[redshiftserverless.CfnWorkgroup.NetworkInterfaceProperty(
            availability_zone="availabilityZone",
            network_interface_id="networkInterfaceId",
            private_ip_address="privateIpAddress",
            subnet_id="subnetId"
        )],
        vpc_endpoint_id="vpcEndpointId",
        vpc_id="vpcId"
    )]
)
```

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.redshiftserverless.*;

EndpointProperty endpointProperty = EndpointProperty.builder()
        .address("address")
        .port(123)
        .vpcEndpoints(List.of(VpcEndpointProperty.builder()
                .networkInterfaces(List.of(NetworkInterfaceProperty.builder()
                        .availabilityZone("availabilityZone")
                        .networkInterfaceId("networkInterfaceId")
                        .privateIpAddress("privateIpAddress")
                        .subnetId("subnetId")
                        .build()))
                .vpcEndpointId("vpcEndpointId")
                .vpcId("vpcId")
                .build()))
        .build();
```

C# / .NET:

```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.RedshiftServerless;

var endpointProperty = new EndpointProperty {
    Address = "address",
    Port = 123,
    VpcEndpoints = new [] { new VpcEndpointProperty {
        NetworkInterfaces = new [] { new NetworkInterfaceProperty {
            AvailabilityZone = "availabilityZone",
            NetworkInterfaceId = "networkInterfaceId",
            PrivateIpAddress = "privateIpAddress",
            SubnetId = "subnetId"
        } },
        VpcEndpointId = "vpcEndpointId",
        VpcId = "vpcId"
    } }
};
```

Golang:

```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"

endpointProperty := &EndpointProperty{
	Address: jsii.String("address"),
	Port: jsii.Number(123),
	VpcEndpoints: []interface{}{
		&VpcEndpointProperty{
			NetworkInterfaces: []interface{}{
				&NetworkInterfaceProperty{
					AvailabilityZone: jsii.String("availabilityZone"),
					NetworkInterfaceId: jsii.String("networkInterfaceId"),
					PrivateIpAddress: jsii.String("privateIpAddress"),
					SubnetId: jsii.String("subnetId"),
				},
			},
			VpcEndpointId: jsii.String("vpcEndpointId"),
			VpcId: jsii.String("vpcId"),
		},
	},
}
```

## Properties

- `address`: string — The DNS address of the VPC endpoint.

- `port`: number — The port that Amazon Redshift Serverless listens on.

- `vpcEndpoints`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnWorkgroup.VpcEndpointProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_redshiftserverless.CfnWorkgroup.VpcEndpointProperty.html)[] — An array of `VpcEndpoint` objects.
