Skip to content

Commit ae3fd67

Browse files
authored
feat(ec2): backfill missing enums for ec2 (#33821)
### Description of changes feat(ec2): backfill missing enums for ec2 Ref CFN docs: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpc.html#cfn-ec2-vpc-instancetenancy https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#cfn-ec2-vpcendpoint-vpcendpointtype ### Checklist - [ ] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 4eebc2a commit ae3fd67

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

packages/aws-cdk-lib/aws-ec2/lib/vpc-endpoint.ts

+19
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,25 @@ export enum VpcEndpointType {
7575
* your route table, used for traffic destined to a supported AWS service.
7676
*/
7777
GATEWAY = 'Gateway',
78+
79+
/**
80+
* A Gateway Load Balancer (GWLB) endpoint is an entry/exit point in your VPC that allows traffic
81+
* to flow between your VPC and Gateway Load Balancer appliances (like firewalls, intrusion detection systems,
82+
* or other security appliances) deployed in a separate VPC.
83+
*/
84+
GATEWAYLOADBALANCER = 'GatewayLoadBalancer',
85+
86+
/**
87+
* A ServiceNetwork VPC endpoint is a feature to connect your VPC to an AWS Cloud WAN (Wide Area Network)
88+
* or Amazon VPC Lattice service.
89+
*/
90+
SERVICENETWORK = 'ServiceNetwork',
91+
92+
/**
93+
* A Resource VPC endpoint in AWS is specifically designed to connect to AWS Resource Access Manager (RAM) service
94+
* privately within your VPC, without requiring access through the public internet.
95+
*/
96+
RESOURCE = 'Resource',
7897
}
7998

8099
/**

packages/aws-cdk-lib/aws-ec2/lib/vpc.ts

+6
Original file line numberDiff line numberDiff line change
@@ -1150,6 +1150,12 @@ export enum DefaultInstanceTenancy {
11501150
* Any instance launched into the VPC automatically has dedicated tenancy, unless you launch it with the default tenancy.
11511151
*/
11521152
DEDICATED = 'dedicated',
1153+
1154+
/**
1155+
* Instances must be launched on dedicated hosts. This provides additional visibility
1156+
* and control over instance placement at the physical host level.
1157+
*/
1158+
HOST = 'host',
11531159
}
11541160

11551161
/**

0 commit comments

Comments
 (0)