@Override
    public AttachInternetGatewayResult attachInternetGateway(AttachInternetGatewayRequest request) {
        request = beforeClientExecution(request);
        return executeAttachInternetGateway(request);
    }
<p>
Attaches an internet gateway or a virtual private gateway to a VPC, enabling connectivity between the internet
and the VPC. For more information, see <a
href="https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Internet_Gateway.html">Internet gateways</a> in the
<i>Amazon VPC User Guide</i>.
</p>

@param attachInternetGatewayRequest
@return Result of the AttachInternetGateway operation returned by the service.
@sample AmazonEC2.AttachInternetGateway
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachInternetGateway" target="_top">AWS API
     Documentation</a>
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/AmazonEC2Client.java