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

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

Introduction

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

Prototype

AttachInternetGatewayResult attachInternetGateway(AttachInternetGatewayRequest attachInternetGatewayRequest);

Source Link

Document

Attaches an internet gateway to a VPC, enabling 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 attachInternetGateway(String vpcID, String gatewayID, AmazonEC2AsyncClient client) {
    AttachInternetGatewayRequest req = new AttachInternetGatewayRequest().withVpcId(vpcID)
            .withInternetGatewayId(gatewayID);
    client.attachInternetGateway(req);
}