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
public EC2RouteDeleteIPv4(objAWSClient: AWSClient, strCidrBlock: string, objEC2RouteTable: EC2RouteTable): string {
let objEC2DeleteRouteRequest: EC2DeleteRouteRequest = new EC2DeleteRouteRequest();
objEC2DeleteRouteRequest.setRouteTableId(objEC2RouteTable.getRouteTableId());
objEC2DeleteRouteRequest.setDestinationCidrBlock(strCidrBlock);
let strEC2DeleteRouteResult: string = this.EC2RouteDelete(objAWSClient, objEC2DeleteRouteRequest);
return strEC2DeleteRouteResult;
}Discover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
