# VpcEndpointServiceProps

Construction properties for a VpcEndpointService.

Extends: VpcEndpointServiceProps
Used as props by: VpcEndpointService

- Source: [`aws-ec2/lib/vpc-endpoint-service.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-ec2/lib/vpc-endpoint-service.ts#L194)
- Type last changed: v2.271.0 · 25 Sep 2026

## 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,
  ],
});
```

## Properties

- `acceptanceRequired`: boolean = true — Whether requests from service consumers to connect to the service through an endpoint must be accepted.

- `allowedPrincipals`: [ArnPrincipal](/cdk/api/v2/docs/aws-cdk-lib.aws_iam.ArnPrincipal.html)[] — IAM users, IAM roles, or AWS accounts to allow inbound connections from.

  **Default:** no principals

  These principals can connect to your service using VPC endpoints. Takes a
  list of one or more ArnPrincipal.

- `allowedRegions`: string[] — The Regions from which service consumers can access the service.

  **Default:** the region hosting the service only

- `contributorInsights`: boolean = false — Indicates whether to enable the built-in Contributor Insights rules provided by AWS PrivateLink.

- `supportedIpAddressTypes`: [IpAddressType](/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.IpAddressType.html)[] — Specify which IP address types are supported for VPC endpoint service.

  **Default:** No specific IP address types configured

- `vpcEndpointServiceLoadBalancers`: [IVpcEndpointServiceLoadBalancer](/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.IVpcEndpointServiceLoadBalancer.html)[] (required) — One or more load balancers to host the VPC Endpoint Service.
