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
publicEC2VpcCreate(objAWSClient:AWSClient,strInstanceTenancy:string,strCidrBlock:string,intIpv4NetmaskLength:number):EC2Vpc{
letobjAmazonEC2Client:AmazonEC2Client=objAWSClient.getAmazonEC2Client();
letobjEC2CreateVpcRequest:EC2CreateVpcRequest=newEC2CreateVpcRequest();
objEC2CreateVpcRequest.setInstanceTenancy(strInstanceTenancy);
objEC2CreateVpcRequest.setCidrBlock(strCidrBlock);
objEC2CreateVpcRequest.setIpv4NetmaskLength(intIpv4NetmaskLength);
letobjEC2CreateVpcResult:EC2CreateVpcResult=objAmazonEC2Client.createVpc(objEC2CreateVpcRequest);
letobjEC2Vpc:EC2Vpc=objEC2CreateVpcResult.getVpc();
returnobjEC2Vpc;
}Discover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
