List of usage examples for com.amazonaws.services.ec2 AmazonEC2AsyncClient attachInternetGateway
AttachInternetGatewayResult attachInternetGateway(AttachInternetGatewayRequest attachInternetGatewayRequest);
Attaches an internet gateway to a VPC, enabling connectivity between the internet and the VPC.
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); }