Skip to content

Commit 6966c03

Browse files
authored
feat(ec2): add BEDROCK_AGENTCORE and BEDROCK_AGENTCORE_GATEWAY to InterfaceVpcEndpointAwsService (#35667)
[AgentCore's VPC Endpoint support announced on Sep 25, 2025 was announced](https://aws.amazon.com/about-aws/whats-new/2025/09/amazon-bedrock-agentcore-runtime-browser-code-interpreter-vpc-privatelink-cloudformation-tagging/). The service names bedrock-agentcore and bedrock-agentcore.gateway mentioned in [this document](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/vpc-interface-endpoints.html) have been added to InterfaceVpcEndpointAwsService. ### Reason for this change New VPC Endpoints exist now. ### Description of changes Add the missing constants. ### Describe any new or updated permissions being added None. ### Description of how you validated changes The following code works as expected. ``` // Deploy on us-east-1 import * as cdk from 'aws-cdk-lib'; import { Construct } from 'constructs'; import * as ec2 from 'aws-cdk-lib/aws-ec2'; export class VpcEndpointTestStack extends cdk.Stack { constructor(scope: Construct, id: string, props?: cdk.StackProps) { super(scope, id, props); const vpc = new ec2.Vpc(this, 'Vpc', { availabilityZones: [ 'us-east-1a', 'us-east-1c', 'us-east-1d', ], }); // AgentCore new ec2.InterfaceVpcEndpoint(this, 'AgentCore', { vpc, service: ec2.InterfaceVpcEndpointAwsService.BEDROCK_AGENTCORE, }); // AgentCore Gateway new ec2.InterfaceVpcEndpoint(this, 'AgentCoreGateway', { vpc, service: ec2.InterfaceVpcEndpointAwsService.BEDROCK_AGENTCORE_GATEWAY, }); } } ``` ### 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* Yes, and I am an AWS employee.
1 parent 919b14b commit 6966c03

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,8 @@ export class InterfaceVpcEndpointAwsService implements IInterfaceVpcEndpointServ
405405
public static readonly BEDROCK = new InterfaceVpcEndpointAwsService('bedrock');
406406
public static readonly BEDROCK_AGENT = new InterfaceVpcEndpointAwsService('bedrock-agent');
407407
public static readonly BEDROCK_AGENT_RUNTIME = new InterfaceVpcEndpointAwsService('bedrock-agent-runtime');
408+
public static readonly BEDROCK_AGENTCORE = new InterfaceVpcEndpointAwsService('bedrock-agentcore');
409+
public static readonly BEDROCK_AGENTCORE_GATEWAY = new InterfaceVpcEndpointAwsService('bedrock-agentcore.gateway');
408410
public static readonly BEDROCK_RUNTIME = new InterfaceVpcEndpointAwsService('bedrock-runtime');
409411
public static readonly BEDROCK_DATA_AUTOMATION = new InterfaceVpcEndpointAwsService('bedrock-data-automation');
410412
public static readonly BEDROCK_DATA_AUTOMATION_FIPS = new InterfaceVpcEndpointAwsService('bedrock-data-automation-fips');

0 commit comments

Comments
 (0)