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 a carrier gateway.
If you do not delete the route that contains the carrier gateway as the Target, the route is a blackhole route. For information about how to delete a route, see DeleteRoute.
Synopsis
- data DeleteCarrierGateway = DeleteCarrierGateway' {
- dryRun :: Maybe Bool
- carrierGatewayId :: Text
- newDeleteCarrierGateway :: Text -> DeleteCarrierGateway
- deleteCarrierGateway_dryRun :: Lens' DeleteCarrierGateway (Maybe Bool)
- deleteCarrierGateway_carrierGatewayId :: Lens' DeleteCarrierGateway Text
- data DeleteCarrierGatewayResponse = DeleteCarrierGatewayResponse' {}
- newDeleteCarrierGatewayResponse :: Int -> DeleteCarrierGatewayResponse
- deleteCarrierGatewayResponse_carrierGateway :: Lens' DeleteCarrierGatewayResponse (Maybe CarrierGateway)
- deleteCarrierGatewayResponse_httpStatus :: Lens' DeleteCarrierGatewayResponse Int
Creating a Request
data DeleteCarrierGateway Source #
See: newDeleteCarrierGateway
smart constructor.
DeleteCarrierGateway' | |
|
Instances
newDeleteCarrierGateway Source #
Create a value of DeleteCarrierGateway
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:DeleteCarrierGateway'
, deleteCarrierGateway_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
.
DeleteCarrierGateway
, deleteCarrierGateway_carrierGatewayId
- The ID of the carrier gateway.
Request Lenses
deleteCarrierGateway_dryRun :: Lens' DeleteCarrierGateway (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
.
deleteCarrierGateway_carrierGatewayId :: Lens' DeleteCarrierGateway Text Source #
The ID of the carrier gateway.
Destructuring the Response
data DeleteCarrierGatewayResponse Source #
See: newDeleteCarrierGatewayResponse
smart constructor.
DeleteCarrierGatewayResponse' | |
|
Instances
newDeleteCarrierGatewayResponse Source #
Create a value of DeleteCarrierGatewayResponse
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:carrierGateway:DeleteCarrierGatewayResponse'
, deleteCarrierGatewayResponse_carrierGateway
- Information about the carrier gateway.
$sel:httpStatus:DeleteCarrierGatewayResponse'
, deleteCarrierGatewayResponse_httpStatus
- The response's http status code.
Response Lenses
deleteCarrierGatewayResponse_carrierGateway :: Lens' DeleteCarrierGatewayResponse (Maybe CarrierGateway) Source #
Information about the carrier gateway.
deleteCarrierGatewayResponse_httpStatus :: Lens' DeleteCarrierGatewayResponse Int Source #
The response's http status code.