AWS Fundamentals Logo
AWS Fundamentals
L2 Construct

GatewayVpcEndpoint

A gateway VPC endpoint.

Import

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

Or use the module namespace:

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

Properties

Configuration passed to the constructor as GatewayVpcEndpointProps.

vpcRequired
IVpc

The VPC network in which the gateway endpoint will be used.

2 properties inherited from GatewayVpcEndpointOptions
serviceRequiredinherited from GatewayVpcEndpointOptions
IGatewayVpcEndpointService

The service to use for this gateway VPC endpoint.

subnetsOptionalinherited from GatewayVpcEndpointOptions
SubnetSelection[]

Where to add endpoint routing. By default, this endpoint will be routable from all subnets in the VPC. Specify a list of subnet selection objects here to be more specific.

Default: - All subnets in the VPC

Get the Amazon EC2 Cheat Sheet

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

Download Free Infographic