Skip to content

(aws_ec2): (add batch to InterfaceVpcEndpointAwsService) #21338

@shimi7o

Description

@shimi7o

Describe the feature

My request is to add batch to InterfaceVpcEndpointAwsService.

    declare const vpc: ec2.Vpc;

    new ec2.InterfaceVpcEndpoint(
      this,
      'VpcEndpoint',
      {
        vpc: vpc,
        service: ec2.InterfaceVpcEndpointAwsService.Batch,  // Currently, I can't
      }
    );

Use Case

Currently, I must be written as below.

    declare const vpc: ec2.Vpc;

    new ec2.InterfaceVpcEndpoint(
      this,
      'VpcEndpoint',
      {
        vpc: vpc,
        service: new ec2.InterfaceVpcEndpointService(
          `com.amazonaws.${region}.batch` // not good
        )
      }
    );

Proposed Solution

My idea is to add one line in aws-cdk/packages/@aws-cdk/aws-ec2/lib/vpc-endpoint.ts

export class InterfaceVpcEndpointAwsService implements IInterfaceVpcEndpointService {
  public static readonly BATCH = new InterfaceVpcEndpointAwsService('batch');  

Other Information

No response

Acknowledgements

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

CDK version used

2.33.0

Environment details (OS name and version, etc.)

Debian10.12

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-ec2Related to Amazon Elastic Compute Cloudeffort/smallSmall work item – less than a day of effortfeature-requestA feature should be added or improved.p2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions