Orchestrator Function: AWS EC2 Route Delete ( IPv4 )

by Simon Sparks · 7 February 2026

To use this function add it to the class library file named OrchestratorPluginAWSService.ts

GitHub Repository: https://github.com/SimonSparksUK/Orchestrator

Filename: OrchestratorPluginAWSService.ts

Description: Orchestrator Function to Delete an AWS EC2 Route IPv4

Private Function: EC2RouteDeleteIPv4

publicEC2RouteDeleteIPv4(objAWSClient:AWSClient,strCidrBlock:string,objEC2RouteTable:EC2RouteTable):string{

letobjEC2DeleteRouteRequest:EC2DeleteRouteRequest=newEC2DeleteRouteRequest();
objEC2DeleteRouteRequest.setRouteTableId(objEC2RouteTable.getRouteTableId());
objEC2DeleteRouteRequest.setDestinationCidrBlock(strCidrBlock);

letstrEC2DeleteRouteResult:string=this.EC2RouteDelete(objAWSClient,objEC2DeleteRouteRequest);

returnstrEC2DeleteRouteResult;
}

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like