private async Task DeleteVpc(Vpc vpc) { _context.Logger.WriteLine($"DeleteVpc: {vpc.CidrBlock} Id: {vpc.VpcId}"); var request = new DeleteVpcRequest { VpcId = vpc.VpcId }; await _client.DeleteVpcAsync(request); }
// cleans all subelements for a vpc, and then the vpc, created during a test public async Task deleteTestVpcAsync(Vpc vpc) { await deleteTestVpcAsync(vpc.VpcId); }