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
CDK version used
2.33.0
Environment details (OS name and version, etc.)
Debian10.12
Describe the feature
My request is to add batch to InterfaceVpcEndpointAwsService.
Use Case
Currently, I must be written as below.
Proposed Solution
My idea is to add one line in aws-cdk/packages/@aws-cdk/aws-ec2/lib/vpc-endpoint.ts
Other Information
No response
Acknowledgements
CDK version used
2.33.0
Environment details (OS name and version, etc.)
Debian10.12