Amazon Elastic Compute Cloud
API Reference (API Version 2016-11-15)


Creates a Client VPN endpoint. A Client VPN endpoint is the resource you create and configure to enable and manage client VPN sessions. It is the destination endpoint at which all client VPN sessions are terminated.

Request Parameters

The following parameters are for this specific action. For more information about required and optional parameters that are common to all actions, see Common Query Parameters.


Information about the authentication method to be used to authenticate clients.

Type: Array of ClientVpnAuthenticationRequest objects

Required: Yes


The IPv4 address range, in CIDR notation, from which to assign client IP addresses. The address range cannot overlap with the local CIDR of the VPC in which the associated subnet is located, or the routes that you add manually. The address range cannot be changed after the Client VPN endpoint has been created. The CIDR block should be /22 or greater.

Type: String

Required: Yes


Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency.

Type: String

Required: No


Information about the client connection logging options.

If you enable client connection logging, data about client connections is sent to a Cloudwatch Logs log stream. The following information is logged:

  • Client connection requests

  • Client connection results (successful and unsuccessful)

  • Reasons for unsuccessful client connection requests

  • Client connection termination time

Type: ConnectionLogOptions object

Required: Yes


A brief description of the Client VPN endpoint.

Type: String

Required: No


Information about the DNS servers to be used for DNS resolution. A Client VPN endpoint can have up to two DNS servers. If no DNS server is specified, the DNS address configured on the device is used for the DNS server.

Type: Array of strings

Required: No


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.

Type: Boolean

Required: No


The ARN of the server certificate. For more information, see the AWS Certificate Manager User Guide.

Type: String

Required: Yes


Indicates whether split-tunnel is enabled on the AWS Client VPN endpoint.

By default, split-tunnel on a VPN endpoint is disabled.

For information about split-tunnel VPN endpoints, see Split-Tunnel AWS Client VPN Endpoint in the AWS Client VPN Administrator Guide.

Type: Boolean

Required: No


The tags to apply to the Client VPN endpoint during creation.

Type: Array of TagSpecification objects

Required: No


The transport protocol to be used by the VPN session.

Default value: udp

Type: String

Valid Values: tcp | udp

Required: No

Response Elements

The following elements are returned by the service.


The ID of the Client VPN endpoint.

Type: String


The DNS name to be used by clients when establishing their VPN session.

Type: String


The ID of the request.

Type: String


The current state of the Client VPN endpoint.

Type: ClientVpnEndpointStatus object


For information about the errors that are common to all actions, see Common Client Errors.



This example creates a Client VPN endpoint.

Sample Request &ClientCidrBlock= &ServerCertificateArn=arn:aws:acm:us-east-1:123456789098:certificate/82916b3c-7449-43cf-ab9e-EXAMPLE &Authentication.1.Type=certificate-authentication &Authentication.1.MutualAuthentication.1.ClientRootCertificateChainArn=arn:aws:acm:us-east-1:123456789098:certificate/82916b3c-7449-43cf-ab9e-EXAMPLE &ConnectionLogOptions.Enabled=false &DnsServers= &AUTHPARAMS

Sample Response

<CreateClientVpnEndpointResponse xmlns=""> <requestId>c11b2aa2-c48d-4711-a394-43cbe8961c46</requestId> <dnsName></dnsName> <status> <code>pending-associate</code> </status> <clientVpnEndpointId>cvpn-endpoint-00c5d11fc4729f2a5</clientVpnEndpointId> </CreateClientVpnEndpointResponse>

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: