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 NAT gateway. Deleting a public NAT gateway disassociates its Elastic IP address, but does not release the address from your account. Deleting a NAT gateway does not delete any NAT gateway routes in your route tables.
Synopsis
- data DeleteNatGateway = DeleteNatGateway' {
- dryRun :: Maybe Bool
- natGatewayId :: Text
- newDeleteNatGateway :: Text -> DeleteNatGateway
- deleteNatGateway_dryRun :: Lens' DeleteNatGateway (Maybe Bool)
- deleteNatGateway_natGatewayId :: Lens' DeleteNatGateway Text
- data DeleteNatGatewayResponse = DeleteNatGatewayResponse' {
- natGatewayId :: Maybe Text
- httpStatus :: Int
- newDeleteNatGatewayResponse :: Int -> DeleteNatGatewayResponse
- deleteNatGatewayResponse_natGatewayId :: Lens' DeleteNatGatewayResponse (Maybe Text)
- deleteNatGatewayResponse_httpStatus :: Lens' DeleteNatGatewayResponse Int
Creating a Request
data DeleteNatGateway Source #
See: newDeleteNatGateway
smart constructor.
DeleteNatGateway' | |
|
Instances
Create a value of DeleteNatGateway
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:DeleteNatGateway'
, deleteNatGateway_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
.
DeleteNatGateway
, deleteNatGateway_natGatewayId
- The ID of the NAT gateway.
Request Lenses
deleteNatGateway_dryRun :: Lens' DeleteNatGateway (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
.
deleteNatGateway_natGatewayId :: Lens' DeleteNatGateway Text Source #
The ID of the NAT gateway.
Destructuring the Response
data DeleteNatGatewayResponse Source #
See: newDeleteNatGatewayResponse
smart constructor.
DeleteNatGatewayResponse' | |
|
Instances
newDeleteNatGatewayResponse Source #
Create a value of DeleteNatGatewayResponse
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:
DeleteNatGateway
, deleteNatGatewayResponse_natGatewayId
- The ID of the NAT gateway.
$sel:httpStatus:DeleteNatGatewayResponse'
, deleteNatGatewayResponse_httpStatus
- The response's http status code.
Response Lenses
deleteNatGatewayResponse_natGatewayId :: Lens' DeleteNatGatewayResponse (Maybe Text) Source #
The ID of the NAT gateway.
deleteNatGatewayResponse_httpStatus :: Lens' DeleteNatGatewayResponse Int Source #
The response's http status code.