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 Create an AWS EC2 Vpc Delete
Public Function: EC2VpcDelete
publicEC2VpcDelete(objAWSClient:AWSClient,strVpcId:string):string{
letobjAmazonEC2Client:AmazonEC2Client=objAWSClient.getAmazonEC2Client();
letobjEC2DeleteVpcRequest:EC2DeleteVpcRequest=newEC2DeleteVpcRequest();
objEC2DeleteVpcRequest.setVpcId(strVpcId);
letobjEC2DeleteVpcResult:EC2DeleteVpcResult=objAmazonEC2Client.deleteVpc(objEC2DeleteVpcRequest);
letstrEC2DeleteVpcResult:string=objEC2DeleteVpcResult.toString();
returnstrEC2DeleteVpcResult;
}Discover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
