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 |
Associates a target network with a Client VPN endpoint. A target network is a subnet in a VPC. You can associate multiple subnets from the same VPC with a Client VPN endpoint. You can associate only one subnet in each Availability Zone. We recommend that you associate at least two subnets to provide Availability Zone redundancy.
If you specified a VPC when you created the Client VPN endpoint or if you have previous subnet associations, the specified subnet must be in the same VPC. To specify a subnet that's in a different VPC, you must first modify the Client VPN endpoint (ModifyClientVpnEndpoint) and change the VPC that's associated with it.
Synopsis
- data AssociateClientVpnTargetNetwork = AssociateClientVpnTargetNetwork' {
- clientToken :: Maybe Text
- dryRun :: Maybe Bool
- clientVpnEndpointId :: Text
- subnetId :: Text
- newAssociateClientVpnTargetNetwork :: Text -> Text -> AssociateClientVpnTargetNetwork
- associateClientVpnTargetNetwork_clientToken :: Lens' AssociateClientVpnTargetNetwork (Maybe Text)
- associateClientVpnTargetNetwork_dryRun :: Lens' AssociateClientVpnTargetNetwork (Maybe Bool)
- associateClientVpnTargetNetwork_clientVpnEndpointId :: Lens' AssociateClientVpnTargetNetwork Text
- associateClientVpnTargetNetwork_subnetId :: Lens' AssociateClientVpnTargetNetwork Text
- data AssociateClientVpnTargetNetworkResponse = AssociateClientVpnTargetNetworkResponse' {}
- newAssociateClientVpnTargetNetworkResponse :: Int -> AssociateClientVpnTargetNetworkResponse
- associateClientVpnTargetNetworkResponse_associationId :: Lens' AssociateClientVpnTargetNetworkResponse (Maybe Text)
- associateClientVpnTargetNetworkResponse_status :: Lens' AssociateClientVpnTargetNetworkResponse (Maybe AssociationStatus)
- associateClientVpnTargetNetworkResponse_httpStatus :: Lens' AssociateClientVpnTargetNetworkResponse Int
Creating a Request
data AssociateClientVpnTargetNetwork Source #
See: newAssociateClientVpnTargetNetwork
smart constructor.
AssociateClientVpnTargetNetwork' | |
|
Instances
newAssociateClientVpnTargetNetwork Source #
Create a value of AssociateClientVpnTargetNetwork
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:
AssociateClientVpnTargetNetwork
, associateClientVpnTargetNetwork_clientToken
- Unique, case-sensitive identifier that you provide to ensure the
idempotency of the request. For more information, see
How to ensure idempotency.
$sel:dryRun:AssociateClientVpnTargetNetwork'
, associateClientVpnTargetNetwork_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
.
AssociateClientVpnTargetNetwork
, associateClientVpnTargetNetwork_clientVpnEndpointId
- The ID of the Client VPN endpoint.
AssociateClientVpnTargetNetwork
, associateClientVpnTargetNetwork_subnetId
- The ID of the subnet to associate with the Client VPN endpoint.
Request Lenses
associateClientVpnTargetNetwork_clientToken :: Lens' AssociateClientVpnTargetNetwork (Maybe Text) Source #
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to ensure idempotency.
associateClientVpnTargetNetwork_dryRun :: Lens' AssociateClientVpnTargetNetwork (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
.
associateClientVpnTargetNetwork_clientVpnEndpointId :: Lens' AssociateClientVpnTargetNetwork Text Source #
The ID of the Client VPN endpoint.
associateClientVpnTargetNetwork_subnetId :: Lens' AssociateClientVpnTargetNetwork Text Source #
The ID of the subnet to associate with the Client VPN endpoint.
Destructuring the Response
data AssociateClientVpnTargetNetworkResponse Source #
See: newAssociateClientVpnTargetNetworkResponse
smart constructor.
AssociateClientVpnTargetNetworkResponse' | |
|
Instances
newAssociateClientVpnTargetNetworkResponse Source #
Create a value of AssociateClientVpnTargetNetworkResponse
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:
AssociateClientVpnTargetNetworkResponse
, associateClientVpnTargetNetworkResponse_associationId
- The unique ID of the target network association.
AssociateClientVpnTargetNetworkResponse
, associateClientVpnTargetNetworkResponse_status
- The current state of the target network association.
$sel:httpStatus:AssociateClientVpnTargetNetworkResponse'
, associateClientVpnTargetNetworkResponse_httpStatus
- The response's http status code.
Response Lenses
associateClientVpnTargetNetworkResponse_associationId :: Lens' AssociateClientVpnTargetNetworkResponse (Maybe Text) Source #
The unique ID of the target network association.
associateClientVpnTargetNetworkResponse_status :: Lens' AssociateClientVpnTargetNetworkResponse (Maybe AssociationStatus) Source #
The current state of the target network association.
associateClientVpnTargetNetworkResponse_httpStatus :: Lens' AssociateClientVpnTargetNetworkResponse Int Source #
The response's http status code.