AWS Fundamentals Logo
AWS Fundamentals
L2 Construct

VpcEndpointService

A VPC endpoint service.

Import

import { VpcEndpointService } from 'aws-cdk-lib/aws-ec2';

Or use the module namespace:

import * as ec2 from 'aws-cdk-lib/aws-ec2';
// ec2.VpcEndpointService

Properties

Configuration passed to the constructor as VpcEndpointServiceProps.

vpcEndpointServiceLoadBalancersRequired
IVpcEndpointServiceLoadBalancer[]

One or more load balancers to host the VPC Endpoint Service.

acceptanceRequiredOptional
boolean

Whether requests from service consumers to connect to the service through an endpoint must be accepted.

Default: true

allowedPrincipalsOptional
ArnPrincipal[]

IAM users, IAM roles, or AWS accounts to allow inbound connections from. These principals can connect to your service using VPC endpoints. Takes a list of one or more ArnPrincipal.

Default: - no principals

allowedRegionsOptional
string[]

The Regions from which service consumers can access the service.

Default: - No Region restrictions

contributorInsightsOptional
boolean

Indicates whether to enable the built-in Contributor Insights rules provided by AWS PrivateLink.

Default: false

supportedIpAddressTypesOptional
IpAddressType[]

Specify which IP address types are supported for VPC endpoint service.

Default: - No specific IP address types configured

Get the Amazon EC2 Cheat Sheet

Everything you need to know about Amazon EC2 on one page. HD quality, print-friendly.

Download Free Infographic