Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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.
Creating a Request
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:
dvpngDryRun
- 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 isDryRunOperation
. Otherwise, it isUnauthorizedOperation
.dvpngVPCId
- The ID of the VPC.dvpngVPNGatewayId
- The ID of the virtual private gateway.
data DetachVPNGateway Source #
Contains the parameters for DetachVpnGateway.
See: detachVPNGateway
smart constructor.
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
.
dvpngVPCId :: Lens' DetachVPNGateway Text Source #
The ID of the VPC.
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.
data DetachVPNGatewayResponse Source #
See: detachVPNGatewayResponse
smart constructor.