Skip to content

Commit

Permalink
chore(ec2): add missing interface VPC endpoints (#31882)
Browse files Browse the repository at this point in the history
### Issue # (if applicable)

None

### Reason for this change

There are some interface VPC endpoints which is not supported by AWS CDK.

### Description of changes

Add three interface VPC endpoints

- WorkMail (com.amazonaws.region.workmail)
- AWS End User Messaging Social (com.amazonaws.region.social-messaging)
- AWS Price List (com.amazonaws.region.pricing.api)

### Description of how you validated changes

Execute AWS CLI:

```sh
❯ aws ec2 describe-vpc-endpoint-services --filters Name=service-type,Values=Interface Name=owner,Values=amazon --region us-east-1 --query ServiceNames | grep workmail
    "com.amazonaws.us-east-1.workmail",

❯ aws ec2 describe-vpc-endpoint-services --filters Name=service-type,Values=Interface Name=owner,Values=amazon --region us-east-1 --query ServiceNames | grep social
    "com.amazonaws.us-east-1.social-messaging",

❯ aws ec2 describe-vpc-endpoint-services --filters Name=service-type,Values=Interface Name=owner,Values=amazon --region us-east-1 --query ServiceNames | grep pricing
    "com.amazonaws.us-east-1.pricing.api",
```

### Checklist
- [x] 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*
  • Loading branch information
badmintoncryer authored Oct 24, 2024
1 parent fc30425 commit 09256db
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/aws-cdk-lib/aws-ec2/lib/vpc-endpoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@ export class InterfaceVpcEndpointAwsService implements IInterfaceVpcEndpointServ
public static readonly EMR_SERVERLESS = new InterfaceVpcEndpointAwsService('emr-serverless');
public static readonly EMR_SERVERLESS_LIVY = new InterfaceVpcEndpointAwsService('emr-serverless-services.livy');
public static readonly EMR_WAL = new InterfaceVpcEndpointAwsService('emrwal.prod');
public static readonly END_USER_MESSAGING_SOCIAL = new InterfaceVpcEndpointAwsService('social-messaging');
public static readonly ENTITY_RESOLUTION = new InterfaceVpcEndpointAwsService('entityresolution');
public static readonly EVENTBRIDGE = new InterfaceVpcEndpointAwsService('events');
public static readonly EVENTBRIDGE_SCHEMA_REGISTRY = new InterfaceVpcEndpointAwsService('schemas');
Expand Down Expand Up @@ -514,6 +515,7 @@ export class InterfaceVpcEndpointAwsService implements IInterfaceVpcEndpointServ
public static readonly PIPES = new InterfaceVpcEndpointAwsService('pipes');
public static readonly PIPES_DATA = new InterfaceVpcEndpointAwsService('pipes-data');
public static readonly PIPES_FIPS = new InterfaceVpcEndpointAwsService('pipes-fips');
public static readonly PRICE_LIST = new InterfaceVpcEndpointAwsService('pricing.api');
public static readonly POLLY = new InterfaceVpcEndpointAwsService('polly');
public static readonly PRIVATE_5G = new InterfaceVpcEndpointAwsService('private-networks');
public static readonly PRIVATE_CERTIFICATE_AUTHORITY = new InterfaceVpcEndpointAwsService('acm-pca');
Expand Down Expand Up @@ -598,6 +600,7 @@ export class InterfaceVpcEndpointAwsService implements IInterfaceVpcEndpointServ
public static readonly TRANSLATE = new InterfaceVpcEndpointAwsService('translate');
public static readonly TRUSTED_ADVISOR = new InterfaceVpcEndpointAwsService('trustedadvisor');
public static readonly WELL_ARCHITECTED_TOOL = new InterfaceVpcEndpointAwsService('wellarchitected');
public static readonly WORKMAIL = new InterfaceVpcEndpointAwsService('workmail');
public static readonly WORKSPACES = new InterfaceVpcEndpointAwsService('workspaces');
public static readonly WORKSPACES_THIN_CLIENT = new InterfaceVpcEndpointAwsService('thinclient.api');
public static readonly XRAY = new InterfaceVpcEndpointAwsService('xray');
Expand Down

0 comments on commit 09256db

Please sign in to comment.