Skip to content
v2.275.0

VpcEndpointIpAddressType Enum ​

IP address type for the endpoint.

Example ​

ts
// Interface endpoint with IPv6
vpc.addInterfaceEndpoint('ExampleEndpoint', {
  service: ec2.InterfaceVpcEndpointAwsService.ECR,
  ipAddressType: ec2.VpcEndpointIpAddressType.IPV6,
  dnsRecordIpType: ec2.VpcEndpointDnsRecordIpType.IPV6,
});

// Gateway endpoint with dualstack
vpc.addGatewayEndpoint('S3DualstackEndpoint', {
  service: ec2.GatewayVpcEndpointAwsService.S3,
  ipAddressType: ec2.VpcEndpointIpAddressType.DUALSTACK,
  dnsRecordIpType: ec2.VpcEndpointDnsRecordIpType.DUALSTACK,
});

Members ​

MemberDescription
IPV4Assign IPv4 addresses to the endpoint network interfaces.
IPV6Assign IPv6 addresses to the endpoint network interfaces.
DUALSTACKAssign both IPv4 and IPv6 addresses to the endpoint network interfaces.

Referenced by ​