Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
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.
Synopsis
- data DetachVpnGateway = DetachVpnGateway' {}
- newDetachVpnGateway :: Text -> Text -> DetachVpnGateway
- detachVpnGateway_dryRun :: Lens' DetachVpnGateway (Maybe Bool)
- detachVpnGateway_vpcId :: Lens' DetachVpnGateway Text
- detachVpnGateway_vpnGatewayId :: Lens' DetachVpnGateway Text
- data DetachVpnGatewayResponse = DetachVpnGatewayResponse' {
- newDetachVpnGatewayResponse :: DetachVpnGatewayResponse
Creating a Request
data DetachVpnGateway Source #
Contains the parameters for DetachVpnGateway.
See: newDetachVpnGateway
smart constructor.
DetachVpnGateway' | |
|
Instances
Create a value of DetachVpnGateway
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:dryRun:DetachVpnGateway'
, detachVpnGateway_dryRun
- 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
.
DetachVpnGateway
, detachVpnGateway_vpcId
- The ID of the VPC.
DetachVpnGateway
, detachVpnGateway_vpnGatewayId
- The ID of the virtual private gateway.
Request Lenses
detachVpnGateway_dryRun :: 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
.
detachVpnGateway_vpcId :: Lens' DetachVpnGateway Text Source #
The ID of the VPC.
detachVpnGateway_vpnGatewayId :: Lens' DetachVpnGateway Text Source #
The ID of the virtual private gateway.
Destructuring the Response
data DetachVpnGatewayResponse Source #
See: newDetachVpnGatewayResponse
smart constructor.
Instances
Generic DetachVpnGatewayResponse Source # | |
Defined in Amazonka.EC2.DetachVpnGateway type Rep DetachVpnGatewayResponse :: Type -> Type # | |
Read DetachVpnGatewayResponse Source # | |
Show DetachVpnGatewayResponse Source # | |
Defined in Amazonka.EC2.DetachVpnGateway showsPrec :: Int -> DetachVpnGatewayResponse -> ShowS # show :: DetachVpnGatewayResponse -> String # showList :: [DetachVpnGatewayResponse] -> ShowS # | |
NFData DetachVpnGatewayResponse Source # | |
Defined in Amazonka.EC2.DetachVpnGateway rnf :: DetachVpnGatewayResponse -> () # | |
Eq DetachVpnGatewayResponse Source # | |
Defined in Amazonka.EC2.DetachVpnGateway | |
type Rep DetachVpnGatewayResponse Source # | |
newDetachVpnGatewayResponse :: DetachVpnGatewayResponse Source #
Create a value of DetachVpnGatewayResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.