amazonka-ec2-1.3.7: 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.DetachVPNGateway

Contents

Description

Detaches a virtual private gateway from a VPC. You do this if you're planning to turn off the VPC and not use it anymore. You can confirm a virtual private gateway has been completely detached from a VPC by describing the virtual private gateway (any attachments to the virtual private gateway are also described).

You must wait for the attachment's state to switch to detached before you can delete the VPC or attach a different VPC to the virtual private gateway.

See: AWS API Reference for DetachVPNGateway.

Synopsis

Creating a Request

detachVPNGateway Source

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

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

Request Lenses

dvpngDryRun :: Lens' DetachVPNGateway (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.

dvpngVPNGatewayId :: Lens' DetachVPNGateway Text Source

The ID of the virtual private gateway.

Destructuring the Response

detachVPNGatewayResponse :: DetachVPNGatewayResponse Source

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