amazonka-ec2-2.0: Amazon Elastic Compute Cloud SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.EC2.DisassociateClientVpnTargetNetwork

Description

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

Creating a Request

data DisassociateClientVpnTargetNetwork Source #

Constructors

DisassociateClientVpnTargetNetwork' 

Fields

  • dryRun :: Maybe Bool

    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.

  • clientVpnEndpointId :: Text

    The ID of the Client VPN endpoint from which to disassociate the target network.

  • associationId :: Text

    The ID of the target network association.

Instances

Instances details
ToHeaders DisassociateClientVpnTargetNetwork Source # 
Instance details

Defined in Amazonka.EC2.DisassociateClientVpnTargetNetwork

ToPath DisassociateClientVpnTargetNetwork Source # 
Instance details

Defined in Amazonka.EC2.DisassociateClientVpnTargetNetwork

ToQuery DisassociateClientVpnTargetNetwork Source # 
Instance details

Defined in Amazonka.EC2.DisassociateClientVpnTargetNetwork

AWSRequest DisassociateClientVpnTargetNetwork Source # 
Instance details

Defined in Amazonka.EC2.DisassociateClientVpnTargetNetwork

Generic DisassociateClientVpnTargetNetwork Source # 
Instance details

Defined in Amazonka.EC2.DisassociateClientVpnTargetNetwork

Associated Types

type Rep DisassociateClientVpnTargetNetwork :: Type -> Type #

Read DisassociateClientVpnTargetNetwork Source # 
Instance details

Defined in Amazonka.EC2.DisassociateClientVpnTargetNetwork

Show DisassociateClientVpnTargetNetwork Source # 
Instance details

Defined in Amazonka.EC2.DisassociateClientVpnTargetNetwork

NFData DisassociateClientVpnTargetNetwork Source # 
Instance details

Defined in Amazonka.EC2.DisassociateClientVpnTargetNetwork

Eq DisassociateClientVpnTargetNetwork Source # 
Instance details

Defined in Amazonka.EC2.DisassociateClientVpnTargetNetwork

Hashable DisassociateClientVpnTargetNetwork Source # 
Instance details

Defined in Amazonka.EC2.DisassociateClientVpnTargetNetwork

type AWSResponse DisassociateClientVpnTargetNetwork Source # 
Instance details

Defined in Amazonka.EC2.DisassociateClientVpnTargetNetwork

type Rep DisassociateClientVpnTargetNetwork Source # 
Instance details

Defined in Amazonka.EC2.DisassociateClientVpnTargetNetwork

type Rep DisassociateClientVpnTargetNetwork = D1 ('MetaData "DisassociateClientVpnTargetNetwork" "Amazonka.EC2.DisassociateClientVpnTargetNetwork" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DisassociateClientVpnTargetNetwork'" 'PrefixI 'True) (S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "clientVpnEndpointId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "associationId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

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.

Destructuring the Response

data DisassociateClientVpnTargetNetworkResponse Source #

Constructors

DisassociateClientVpnTargetNetworkResponse' 

Fields

Instances

Instances details
Generic DisassociateClientVpnTargetNetworkResponse Source # 
Instance details

Defined in Amazonka.EC2.DisassociateClientVpnTargetNetwork

Read DisassociateClientVpnTargetNetworkResponse Source # 
Instance details

Defined in Amazonka.EC2.DisassociateClientVpnTargetNetwork

Show DisassociateClientVpnTargetNetworkResponse Source # 
Instance details

Defined in Amazonka.EC2.DisassociateClientVpnTargetNetwork

NFData DisassociateClientVpnTargetNetworkResponse Source # 
Instance details

Defined in Amazonka.EC2.DisassociateClientVpnTargetNetwork

Eq DisassociateClientVpnTargetNetworkResponse Source # 
Instance details

Defined in Amazonka.EC2.DisassociateClientVpnTargetNetwork

type Rep DisassociateClientVpnTargetNetworkResponse Source # 
Instance details

Defined in Amazonka.EC2.DisassociateClientVpnTargetNetwork

type Rep DisassociateClientVpnTargetNetworkResponse = D1 ('MetaData "DisassociateClientVpnTargetNetworkResponse" "Amazonka.EC2.DisassociateClientVpnTargetNetwork" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DisassociateClientVpnTargetNetworkResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "associationId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AssociationStatus)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

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