amazonka-ec2-1.0.1: Amazon Elastic Compute Cloud SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.EC2.DetachInternetGateway

Contents

Description

Detaches an Internet gateway from a VPC, disabling connectivity between the Internet and the VPC. The VPC must not contain any running instances with Elastic IP addresses.

See: AWS API Reference for DetachInternetGateway.

Synopsis

Creating a Request

detachInternetGateway Source

Creates a value of DetachInternetGateway with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

digDryRun :: Lens' DetachInternetGateway (Maybe Bool) Source

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

digInternetGatewayId :: Lens' DetachInternetGateway Text Source

The ID of the Internet gateway.

Destructuring the Response

detachInternetGatewayResponse :: DetachInternetGatewayResponse Source

Creates a value of DetachInternetGatewayResponse with the minimum fields required to make a request.