Skip to content

/AWS1/CL_EC2=>TERMINATECLIENTVPNCONNS()

About TerminateClientVpnConnections

Terminates active Client VPN endpoint connections. This action can be used to terminate a specific client connection, or up to five connections established by a specific user.

Method Signature

IMPORTING

Required arguments:

IV_CLIENTVPNENDPOINTID TYPE /AWS1/EC2CLIENTVPNENDPOINTID /AWS1/EC2CLIENTVPNENDPOINTID

The ID of the Client VPN endpoint to which the client is connected.

Optional arguments:

IV_CONNECTIONID TYPE /AWS1/EC2STRING /AWS1/EC2STRING

The ID of the client connection to be terminated.

IV_USERNAME TYPE /AWS1/EC2STRING /AWS1/EC2STRING

The name of the user who initiated the connection. Use this option to terminate all active connections for the specified user. This option can only be used if the user has established up to five connections.

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_EC2TERMINATECLIVPNC01 /AWS1/CL_EC2TERMINATECLIVPNC01