From eb2dfda6ede2565cf1102d5b92fc26c119e65d74 Mon Sep 17 00:00:00 2001 From: Naoto Enokawa Date: Fri, 20 Sep 2024 22:45:43 +0900 Subject: [PATCH] chore(ec2): add Compute Optimizer Interface VPC Endpoint (#31504) ### Issue # (if applicable) None ### Reason for this change Compute Optimizer supports private link access but AWS CDK does not support creating an interface VPC endpoint. ### Description of changes Add Interface VPC Endpoint for Compute Optimizer. ### Description of how you validated changes I executed the AWS CLI command as shown below. ```sh $ aws ec2 describe-vpc-endpoint-services --filters Name=service-type,Values=Interface Name=owner,Values=amazon --region us-east-1 --query ServiceNames | grep compute-optimizer "com.amazonaws.us-east-1.compute-optimizer", ``` ### 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* --- packages/aws-cdk-lib/aws-ec2/lib/vpc-endpoint.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/aws-cdk-lib/aws-ec2/lib/vpc-endpoint.ts b/packages/aws-cdk-lib/aws-ec2/lib/vpc-endpoint.ts index 945050af0b48d..63924c0186c37 100644 --- a/packages/aws-cdk-lib/aws-ec2/lib/vpc-endpoint.ts +++ b/packages/aws-cdk-lib/aws-ec2/lib/vpc-endpoint.ts @@ -355,6 +355,7 @@ export class InterfaceVpcEndpointAwsService implements IInterfaceVpcEndpointServ public static readonly CODE_CONNECTIONS = new InterfaceVpcEndpointAwsService('codeconnections.api'); public static readonly COMPREHEND = new InterfaceVpcEndpointAwsService('comprehend'); public static readonly COMPREHEND_MEDICAL = new InterfaceVpcEndpointAwsService('comprehendmedical'); + public static readonly COMPUTE_OPTIMIZER = new InterfaceVpcEndpointAwsService('compute-optimizer'); public static readonly CONFIG = new InterfaceVpcEndpointAwsService('config'); public static readonly CONNECT_APP_INTEGRATIONS = new InterfaceVpcEndpointAwsService('app-integrations'); public static readonly CONNECT_CASES = new InterfaceVpcEndpointAwsService('cases');