Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Network.AWS.EC2.DeleteCustomerGateway
Description
Deletes the specified customer gateway. You must delete the VPN connection before you can delete the customer gateway.
Creating a Request
Arguments
:: Text | |
-> DeleteCustomerGateway |
Creates a value of DeleteCustomerGateway
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dcgcDryRun
- 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
.dcgcCustomerGatewayId
- The ID of the customer gateway.
data DeleteCustomerGateway #
Contains the parameters for DeleteCustomerGateway.
See: deleteCustomerGateway
smart constructor.
Instances
Request Lenses
dcgcDryRun :: Lens' DeleteCustomerGateway (Maybe Bool) #
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
.
dcgcCustomerGatewayId :: Lens' DeleteCustomerGateway Text #
The ID of the customer gateway.
Destructuring the Response
deleteCustomerGatewayResponse :: DeleteCustomerGatewayResponse #
Creates a value of DeleteCustomerGatewayResponse
with the minimum fields required to make a request.
data DeleteCustomerGatewayResponse #
See: deleteCustomerGatewayResponse
smart constructor.