Example usage for com.amazonaws.services.ec2 AmazonEC2AsyncClient deleteVpc

List of usage examples for com.amazonaws.services.ec2 AmazonEC2AsyncClient deleteVpc

Introduction

In this page you can find the example usage for com.amazonaws.services.ec2 AmazonEC2AsyncClient deleteVpc.

Prototype

DeleteVpcResult deleteVpc(DeleteVpcRequest deleteVpcRequest);

Source Link

Document

Deletes the specified VPC.

Usage

From source file:com.vmware.photon.controller.model.adapters.awsadapter.AWSNetworkService.java

License:Open Source License

public void deleteVPC(String vpcID, AmazonEC2AsyncClient client) {
    DeleteVpcRequest req = new DeleteVpcRequest().withVpcId(vpcID);
    client.deleteVpc(req);
}