AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::EC2::VPCEndpointService

CfnVPCEndpointService

Creates a VPC endpoint service configuration to which service consumers ( AWS accounts, users, and IAM roles) can connect. To create an endpoint service configuration, you must first create one of the following for your service: - A [Network Load Balancer](https://docs.aws.amazon.com/elasticloadbalancing/latest/network/introduction.html) . Service consumers connect to your service using an interface endpoint. - A [Gateway Load Balancer](https://docs.aws.amazon.com/elasticloadbalancing/latest/gateway/introduction.html) . Service consumers connect to your service using a Gateway Load Balancer endpoint. For more information, see the [AWS PrivateLink User Guide](https://docs.aws.amazon.com/vpc/latest/privatelink/) .

Import

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

Or use the module namespace:

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

Properties

Configuration passed to the constructor as CfnVPCEndpointServiceProps.

acceptanceRequiredOptional
boolean | IResolvable

Indicates whether requests from service consumers to create an endpoint to your service must be accepted.

contributorInsightsEnabledOptional
boolean | IResolvable

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

gatewayLoadBalancerArnsOptional
string[]

The Amazon Resource Names (ARNs) of the Gateway Load Balancers.

networkLoadBalancerArnsOptional
string | ILoadBalancerRef[]

The Amazon Resource Names (ARNs) of the Network Load Balancers.

payerResponsibilityOptional
string

The entity that is responsible for the endpoint costs. The default is the endpoint owner. If you set the payer responsibility to the service owner, you cannot set it back to the endpoint owner.

supportedIpAddressTypesOptional
string[]

The supported IP address types. The possible values are `ipv4` and `ipv6` .

supportedRegionsOptional
string[]

The Regions from which service consumers can access the service.

tagsOptional
CfnTag[]

The tags to associate with the service.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Get the Amazon EC2 Cheat Sheet

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

Download Free Infographic