# IpAddressType

IP address types supported for VPC endpoint service.

- Source: [`aws-ec2/lib/vpc-endpoint-service.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-ec2/lib/vpc-endpoint-service.ts#L21)
- Type last changed: v2.186.0 · 27 Mar 2025

## Example

```ts
declare const networkLoadBalancer: elbv2.NetworkLoadBalancer;

new ec2.VpcEndpointService(this, 'EndpointService', {
  vpcEndpointServiceLoadBalancers: [networkLoadBalancer],
  // Support both IPv4 and IPv6 connections to the endpoint service
  supportedIpAddressTypes: [
    ec2.IpAddressType.IPV4,
    ec2.IpAddressType.IPV6,
  ],
});
```

## Members

| Member | Description |
| --- | --- |
| `IPV4` | ipv4 address type. |
| `IPV6` | ipv6 address type. |

## Referenced by

- [`VpcEndpointServiceProps`](/v2/docs/aws-cdk-lib.aws_ec2.VpcEndpointServiceProps).supportedIpAddressTypes
