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
public EC2VpcDelete(objAWSClient: AWSClient, strVpcId: string): string {
let objAmazonEC2Client: AmazonEC2Client = objAWSClient.getAmazonEC2Client();
let objEC2DeleteVpcRequest: EC2DeleteVpcRequest = new EC2DeleteVpcRequest();
objEC2DeleteVpcRequest.setVpcId(strVpcId);
let objEC2DeleteVpcResult: EC2DeleteVpcResult = objAmazonEC2Client.deleteVpc(objEC2DeleteVpcRequest);
let strEC2DeleteVpcResult: string = objEC2DeleteVpcResult.toString();
return strEC2DeleteVpcResult;
}Discover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
