Skip to content

/AWS1/CL_EC2=>DISASSOCCLIVPNTARGETNETWORK()

About DisassociateClientVpnTargetNetwork

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

Method Signature

IMPORTING

Required arguments:

IV_CLIENTVPNENDPOINTID TYPE /AWS1/EC2CLIENTVPNENDPOINTID /AWS1/EC2CLIENTVPNENDPOINTID

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

IV_ASSOCIATIONID TYPE /AWS1/EC2STRING /AWS1/EC2STRING

The ID of the target network association.

Optional arguments:

IV_DRYRUN TYPE /AWS1/EC2BOOLEAN /AWS1/EC2BOOLEAN

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.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_EC2DISASCCLIVPNTGTN01 /AWS1/CL_EC2DISASCCLIVPNTGTN01