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 |
Disassociates a target network from the specified Client VPN endpoint. When you disassociate the last target network from a Client VPN, the following happens:
- The route that was automatically added for the VPC is deleted
- All active client connections are terminated
- New client connections are disallowed
- The Client VPN endpoint's status changes to
pending-associate
Synopsis
- data DisassociateClientVpnTargetNetwork = DisassociateClientVpnTargetNetwork' {}
- newDisassociateClientVpnTargetNetwork :: Text -> Text -> DisassociateClientVpnTargetNetwork
- disassociateClientVpnTargetNetwork_dryRun :: Lens' DisassociateClientVpnTargetNetwork (Maybe Bool)
- disassociateClientVpnTargetNetwork_clientVpnEndpointId :: Lens' DisassociateClientVpnTargetNetwork Text
- disassociateClientVpnTargetNetwork_associationId :: Lens' DisassociateClientVpnTargetNetwork Text
- data DisassociateClientVpnTargetNetworkResponse = DisassociateClientVpnTargetNetworkResponse' {}
- newDisassociateClientVpnTargetNetworkResponse :: Int -> DisassociateClientVpnTargetNetworkResponse
- disassociateClientVpnTargetNetworkResponse_associationId :: Lens' DisassociateClientVpnTargetNetworkResponse (Maybe Text)
- disassociateClientVpnTargetNetworkResponse_status :: Lens' DisassociateClientVpnTargetNetworkResponse (Maybe AssociationStatus)
- disassociateClientVpnTargetNetworkResponse_httpStatus :: Lens' DisassociateClientVpnTargetNetworkResponse Int
Creating a Request
data DisassociateClientVpnTargetNetwork Source #
See: newDisassociateClientVpnTargetNetwork
smart constructor.
DisassociateClientVpnTargetNetwork' | |
|
Instances
newDisassociateClientVpnTargetNetwork Source #
Create a value of DisassociateClientVpnTargetNetwork
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:DisassociateClientVpnTargetNetwork'
, disassociateClientVpnTargetNetwork_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
.
DisassociateClientVpnTargetNetwork
, disassociateClientVpnTargetNetwork_clientVpnEndpointId
- The ID of the Client VPN endpoint from which to disassociate the target
network.
DisassociateClientVpnTargetNetwork
, disassociateClientVpnTargetNetwork_associationId
- The ID of the target network association.
Request Lenses
disassociateClientVpnTargetNetwork_dryRun :: Lens' DisassociateClientVpnTargetNetwork (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
.
disassociateClientVpnTargetNetwork_clientVpnEndpointId :: Lens' DisassociateClientVpnTargetNetwork Text Source #
The ID of the Client VPN endpoint from which to disassociate the target network.
disassociateClientVpnTargetNetwork_associationId :: Lens' DisassociateClientVpnTargetNetwork Text Source #
The ID of the target network association.
Destructuring the Response
data DisassociateClientVpnTargetNetworkResponse Source #
See: newDisassociateClientVpnTargetNetworkResponse
smart constructor.
DisassociateClientVpnTargetNetworkResponse' | |
|
Instances
newDisassociateClientVpnTargetNetworkResponse Source #
Create a value of DisassociateClientVpnTargetNetworkResponse
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:
DisassociateClientVpnTargetNetwork
, disassociateClientVpnTargetNetworkResponse_associationId
- The ID of the target network association.
DisassociateClientVpnTargetNetworkResponse
, disassociateClientVpnTargetNetworkResponse_status
- The current state of the target network association.
$sel:httpStatus:DisassociateClientVpnTargetNetworkResponse'
, disassociateClientVpnTargetNetworkResponse_httpStatus
- The response's http status code.
Response Lenses
disassociateClientVpnTargetNetworkResponse_associationId :: Lens' DisassociateClientVpnTargetNetworkResponse (Maybe Text) Source #
The ID of the target network association.
disassociateClientVpnTargetNetworkResponse_status :: Lens' DisassociateClientVpnTargetNetworkResponse (Maybe AssociationStatus) Source #
The current state of the target network association.
disassociateClientVpnTargetNetworkResponse_httpStatus :: Lens' DisassociateClientVpnTargetNetworkResponse Int Source #
The response's http status code.