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 |
Deletes the specified virtual private gateway. You must first detach the virtual private gateway from the VPC. Note that you don't need to delete the virtual private gateway if you plan to delete and recreate the VPN connection between your VPC and your network.
Synopsis
- data DeleteVpnGateway = DeleteVpnGateway' {
- dryRun :: Maybe Bool
- vpnGatewayId :: Text
- newDeleteVpnGateway :: Text -> DeleteVpnGateway
- deleteVpnGateway_dryRun :: Lens' DeleteVpnGateway (Maybe Bool)
- deleteVpnGateway_vpnGatewayId :: Lens' DeleteVpnGateway Text
- data DeleteVpnGatewayResponse = DeleteVpnGatewayResponse' {
- newDeleteVpnGatewayResponse :: DeleteVpnGatewayResponse
Creating a Request
data DeleteVpnGateway Source #
Contains the parameters for DeleteVpnGateway.
See: newDeleteVpnGateway
smart constructor.
DeleteVpnGateway' | |
|
Instances
Create a value of DeleteVpnGateway
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:DeleteVpnGateway'
, deleteVpnGateway_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
.
DeleteVpnGateway
, deleteVpnGateway_vpnGatewayId
- The ID of the virtual private gateway.
Request Lenses
deleteVpnGateway_dryRun :: Lens' DeleteVpnGateway (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
.
deleteVpnGateway_vpnGatewayId :: Lens' DeleteVpnGateway Text Source #
The ID of the virtual private gateway.
Destructuring the Response
data DeleteVpnGatewayResponse Source #
See: newDeleteVpnGatewayResponse
smart constructor.
Instances
Generic DeleteVpnGatewayResponse Source # | |
Defined in Amazonka.EC2.DeleteVpnGateway type Rep DeleteVpnGatewayResponse :: Type -> Type # | |
Read DeleteVpnGatewayResponse Source # | |
Show DeleteVpnGatewayResponse Source # | |
Defined in Amazonka.EC2.DeleteVpnGateway showsPrec :: Int -> DeleteVpnGatewayResponse -> ShowS # show :: DeleteVpnGatewayResponse -> String # showList :: [DeleteVpnGatewayResponse] -> ShowS # | |
NFData DeleteVpnGatewayResponse Source # | |
Defined in Amazonka.EC2.DeleteVpnGateway rnf :: DeleteVpnGatewayResponse -> () # | |
Eq DeleteVpnGatewayResponse Source # | |
Defined in Amazonka.EC2.DeleteVpnGateway | |
type Rep DeleteVpnGatewayResponse Source # | |
newDeleteVpnGatewayResponse :: DeleteVpnGatewayResponse Source #
Create a value of DeleteVpnGatewayResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.