HEX
Server: LiteSpeed
System: Linux s1049.use1.mysecurecloudhost.com 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: xedaptot (3356)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: //usr/lib/python3.6/site-packages/awscli/examples/ec2/terminate-client-vpn-connections.rst
**To terminate a connection to a Client VPN endpoint**

The following ``terminate-client-vpn-connections`` example terminates the specified connection to the Client VPN endpoint. ::

    aws ec2 terminate-client-vpn-connections \
        --client-vpn-endpoint-id vpn-endpoint-123456789123abcde \
        --connection-id cvpn-connection-04edd76f5201e0cb8

Output::

    {
        "ClientVpnEndpointId": "vpn-endpoint-123456789123abcde",
        "ConnectionStatuses": [
            {
                "ConnectionId": "cvpn-connection-04edd76f5201e0cb8",
                "PreviousStatus": {
                    "Code": "active"
                },
                "CurrentStatus": {
                    "Code": "terminating"
                }
            }
        ]
    }

For more information, see `Client Connections <https://docs.aws.amazon.com/vpn/latest/clientvpn-admin/cvpn-working-connections.html>`__ in the *AWS Client VPN Administrator Guide*.