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

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

Introduction

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

Prototype

DeleteInternetGatewayResult deleteInternetGateway(DeleteInternetGatewayRequest deleteInternetGatewayRequest);

Source Link

Document

Deletes the specified internet gateway.

Usage

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

License:Open Source License

public void deleteInternetGateway(String resourceID, AmazonEC2AsyncClient client) {
    DeleteInternetGatewayRequest req = new DeleteInternetGatewayRequest().withInternetGatewayId(resourceID);
    client.deleteInternetGateway(req);
}