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 route from a Client VPN endpoint. You can only delete routes that you manually added using the CreateClientVpnRoute action. You cannot delete routes that were automatically added when associating a subnet. To remove routes that have been automatically added, disassociate the target subnet from the Client VPN endpoint.
Synopsis
- data DeleteClientVpnRoute = DeleteClientVpnRoute' {}
- newDeleteClientVpnRoute :: Text -> Text -> DeleteClientVpnRoute
- deleteClientVpnRoute_dryRun :: Lens' DeleteClientVpnRoute (Maybe Bool)
- deleteClientVpnRoute_targetVpcSubnetId :: Lens' DeleteClientVpnRoute (Maybe Text)
- deleteClientVpnRoute_clientVpnEndpointId :: Lens' DeleteClientVpnRoute Text
- deleteClientVpnRoute_destinationCidrBlock :: Lens' DeleteClientVpnRoute Text
- data DeleteClientVpnRouteResponse = DeleteClientVpnRouteResponse' {}
- newDeleteClientVpnRouteResponse :: Int -> DeleteClientVpnRouteResponse
- deleteClientVpnRouteResponse_status :: Lens' DeleteClientVpnRouteResponse (Maybe ClientVpnRouteStatus)
- deleteClientVpnRouteResponse_httpStatus :: Lens' DeleteClientVpnRouteResponse Int
Creating a Request
data DeleteClientVpnRoute Source #
See: newDeleteClientVpnRoute
smart constructor.
DeleteClientVpnRoute' | |
|
Instances
newDeleteClientVpnRoute Source #
Create a value of DeleteClientVpnRoute
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:DeleteClientVpnRoute'
, deleteClientVpnRoute_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
.
$sel:targetVpcSubnetId:DeleteClientVpnRoute'
, deleteClientVpnRoute_targetVpcSubnetId
- The ID of the target subnet used by the route.
DeleteClientVpnRoute
, deleteClientVpnRoute_clientVpnEndpointId
- The ID of the Client VPN endpoint from which the route is to be deleted.
DeleteClientVpnRoute
, deleteClientVpnRoute_destinationCidrBlock
- The IPv4 address range, in CIDR notation, of the route to be deleted.
Request Lenses
deleteClientVpnRoute_dryRun :: Lens' DeleteClientVpnRoute (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
.
deleteClientVpnRoute_targetVpcSubnetId :: Lens' DeleteClientVpnRoute (Maybe Text) Source #
The ID of the target subnet used by the route.
deleteClientVpnRoute_clientVpnEndpointId :: Lens' DeleteClientVpnRoute Text Source #
The ID of the Client VPN endpoint from which the route is to be deleted.
deleteClientVpnRoute_destinationCidrBlock :: Lens' DeleteClientVpnRoute Text Source #
The IPv4 address range, in CIDR notation, of the route to be deleted.
Destructuring the Response
data DeleteClientVpnRouteResponse Source #
See: newDeleteClientVpnRouteResponse
smart constructor.
DeleteClientVpnRouteResponse' | |
|
Instances
newDeleteClientVpnRouteResponse Source #
Create a value of DeleteClientVpnRouteResponse
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:
DeleteClientVpnRouteResponse
, deleteClientVpnRouteResponse_status
- The current state of the route.
$sel:httpStatus:DeleteClientVpnRouteResponse'
, deleteClientVpnRouteResponse_httpStatus
- The response's http status code.
Response Lenses
deleteClientVpnRouteResponse_status :: Lens' DeleteClientVpnRouteResponse (Maybe ClientVpnRouteStatus) Source #
The current state of the route.
deleteClientVpnRouteResponse_httpStatus :: Lens' DeleteClientVpnRouteResponse Int Source #
The response's http status code.