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
| Member | Description |
|---|---|
IPV4 | Assign IPv4 addresses to the endpoint network interfaces. |
IPV6 | Assign IPv6 addresses to the endpoint network interfaces. |
DUALSTACK | Assign both IPv4 and IPv6 addresses to the endpoint network interfaces. |
Referenced by
GatewayVpcEndpointOptions.ipAddressTypeip_address_typeipAddressTypeIpAddressTypeIpAddressTypeInterfaceVpcEndpointOptions.ipAddressTypeip_address_typeipAddressTypeIpAddressTypeIpAddressType