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 Modify an AWS EC2 Vpc Create
Public Function: EC2VpcCreate
public EC2VpcCreate(objAWSClient: AWSClient, strInstanceTenancy: string, strCidrBlock: string, intIpv4NetmaskLength: number): EC2Vpc {
let objAmazonEC2Client: AmazonEC2Client = objAWSClient.getAmazonEC2Client();
let objEC2CreateVpcRequest: EC2CreateVpcRequest = new EC2CreateVpcRequest();
objEC2CreateVpcRequest.setInstanceTenancy(strInstanceTenancy);
objEC2CreateVpcRequest.setCidrBlock(strCidrBlock);
objEC2CreateVpcRequest.setIpv4NetmaskLength(intIpv4NetmaskLength);
let objEC2CreateVpcResult: EC2CreateVpcResult = objAmazonEC2Client.createVpc(objEC2CreateVpcRequest);
let objEC2Vpc: EC2Vpc = objEC2CreateVpcResult.getVpc();
return objEC2Vpc;
}Discover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
