コード例 #1
0
        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);
        }
コード例 #2
0
ファイル: EC2TestHelper.cs プロジェクト: aws/aws-sdk-net
 // cleans all subelements for a vpc, and then the vpc, created during a test
 public async Task deleteTestVpcAsync(Vpc vpc)
 {
     await deleteTestVpcAsync(vpc.VpcId);
 }