Skip to content

(aws-ec2): Add InterfaceVpcEndpointAwsService.SCHEDULER for EventBridge Scheduler #38588

Description

@amodam-user

Describe the feature

aws-cdk-lib/aws-ec2 exposes static InterfaceVpcEndpointAwsService constants for most AWS services (EVENTBRIDGE, STEP_FUNCTIONS, LAMBDA, etc.), but has no constant for EventBridge Scheduler (com.amazonaws.<region>.scheduler).

Users must currently construct it manually:

this.vpc.addInterfaceEndpoint('SchedulerEndpoint', {
  service: new InterfaceVpcEndpointAwsService('scheduler'),
});

Use Case

VPC-attached Lambdas that call the EventBridge Scheduler API (aws-sdk-scheduler) need an interface VPC endpoint (or NAT egress).

Adding a supported constant would match the ergonomics of other services and avoid the surprise that Scheduler is not covered by EVENTBRIDGE (which points at events, a separate service).

Proposed Solution

Add to packages/aws-cdk-lib/aws-ec2/lib/vpc-endpoint.ts:

public static readonly SCHEDULER = new InterfaceVpcEndpointAwsService('scheduler');

Region availability per AWS docs: https://docs.aws.amazon.com/scheduler/latest/UserGuide/using-vpc-endpoints.html

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

AWS CDK Library version (aws-cdk-lib)

2.258.1

AWS CDK CLI version

2.1135.1 (build 6551740)

Environment details (OS name and version, etc.)

Amazon Linux 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-ec2Related to Amazon Elastic Compute Cloudfeature-requestA feature should be added or improved.needs-triageThis issue or PR still needs to be triaged.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions