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

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

Introduction

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

Prototype

DetachInternetGatewayResult detachInternetGateway(DetachInternetGatewayRequest detachInternetGatewayRequest);

Source Link

Document

Detaches an internet gateway from a VPC, disabling connectivity between the internet and the VPC.

Usage

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

License:Open Source License

public void detachInternetGateway(String vpcID, String gatewayID, AmazonEC2AsyncClient client) {
    DetachInternetGatewayRequest req = new DetachInternetGatewayRequest().withVpcId(vpcID)
            .withInternetGatewayId(gatewayID);
    client.detachInternetGateway(req);
}