Skip to content
v2.278.0

EndpointProperty Struct ​

The VPC endpoint object.

Example ​

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
# 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
// 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();
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"
    } }
};
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 ​

addressoptionalstringaddressoptionalstraddressoptionalStringAddressoptionalstringAddressoptional*string #
The DNS address of the VPC endpoint.
portoptionalnumberportoptionalint | floatportoptionalNumberPortoptionaldoublePortoptional*float64 #
The port that Amazon Redshift Serverless listens on.
vpcEndpointsoptionalIResolvable | IResolvable | CfnWorkgroup.VpcEndpointProperty[]vpc_endpointsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, VpcEndpointProperty]]]vpcEndpointsoptionalIResolvableVpcEndpointsoptionalIResolvableVpcEndpointsoptionalinterface{} #
An array of `VpcEndpoint` objects.