

This is the new *CloudFormation Template Reference Guide*. Please update your bookmarks and links. For help getting started with CloudFormation, see the [AWS CloudFormation User Guide](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/Welcome.html).

# AWS::EC2::ClientVpnEndpoint
<a name="aws-resource-ec2-clientvpnendpoint"></a>

Specifies 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.

## Syntax
<a name="aws-resource-ec2-clientvpnendpoint-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-resource-ec2-clientvpnendpoint-syntax.json"></a>

```
{
  "Type" : "AWS::EC2::ClientVpnEndpoint",
  "Properties" : {
      "[AuthenticationOptions](#cfn-ec2-clientvpnendpoint-authenticationoptions)" : [ ClientAuthenticationRequest, ... ],
      "[ClientCidrBlock](#cfn-ec2-clientvpnendpoint-clientcidrblock)" : String,
      "[ClientConnectOptions](#cfn-ec2-clientvpnendpoint-clientconnectoptions)" : ClientConnectOptions,
      "[ClientLoginBannerOptions](#cfn-ec2-clientvpnendpoint-clientloginbanneroptions)" : ClientLoginBannerOptions,
      "[ClientRouteEnforcementOptions](#cfn-ec2-clientvpnendpoint-clientrouteenforcementoptions)" : ClientRouteEnforcementOptions,
      "[ConnectionLogOptions](#cfn-ec2-clientvpnendpoint-connectionlogoptions)" : ConnectionLogOptions,
      "[Description](#cfn-ec2-clientvpnendpoint-description)" : String,
      "[DisconnectOnSessionTimeout](#cfn-ec2-clientvpnendpoint-disconnectonsessiontimeout)" : Boolean,
      "[DnsServers](#cfn-ec2-clientvpnendpoint-dnsservers)" : [ String, ... ],
      "[EndpointIpAddressType](#cfn-ec2-clientvpnendpoint-endpointipaddresstype)" : String,
      "[SecurityGroupIds](#cfn-ec2-clientvpnendpoint-securitygroupids)" : [ String, ... ],
      "[SelfServicePortal](#cfn-ec2-clientvpnendpoint-selfserviceportal)" : String,
      "[ServerCertificateArn](#cfn-ec2-clientvpnendpoint-servercertificatearn)" : String,
      "[SessionTimeoutHours](#cfn-ec2-clientvpnendpoint-sessiontimeouthours)" : Integer,
      "[SplitTunnel](#cfn-ec2-clientvpnendpoint-splittunnel)" : Boolean,
      "[TagSpecifications](#cfn-ec2-clientvpnendpoint-tagspecifications)" : [ TagSpecification, ... ],
      "[TrafficIpAddressType](#cfn-ec2-clientvpnendpoint-trafficipaddresstype)" : String,
      "[TransportProtocol](#cfn-ec2-clientvpnendpoint-transportprotocol)" : String,
      "[VpcId](#cfn-ec2-clientvpnendpoint-vpcid)" : String,
      "[VpnPort](#cfn-ec2-clientvpnendpoint-vpnport)" : Integer
    }
}
```

### YAML
<a name="aws-resource-ec2-clientvpnendpoint-syntax.yaml"></a>

```
Type: AWS::EC2::ClientVpnEndpoint
Properties:
  [AuthenticationOptions](#cfn-ec2-clientvpnendpoint-authenticationoptions): 
    - ClientAuthenticationRequest
  [ClientCidrBlock](#cfn-ec2-clientvpnendpoint-clientcidrblock): String
  [ClientConnectOptions](#cfn-ec2-clientvpnendpoint-clientconnectoptions): 
    ClientConnectOptions
  [ClientLoginBannerOptions](#cfn-ec2-clientvpnendpoint-clientloginbanneroptions): 
    ClientLoginBannerOptions
  [ClientRouteEnforcementOptions](#cfn-ec2-clientvpnendpoint-clientrouteenforcementoptions): 
    ClientRouteEnforcementOptions
  [ConnectionLogOptions](#cfn-ec2-clientvpnendpoint-connectionlogoptions): 
    ConnectionLogOptions
  [Description](#cfn-ec2-clientvpnendpoint-description): String
  [DisconnectOnSessionTimeout](#cfn-ec2-clientvpnendpoint-disconnectonsessiontimeout): Boolean
  [DnsServers](#cfn-ec2-clientvpnendpoint-dnsservers): 
    - String
  [EndpointIpAddressType](#cfn-ec2-clientvpnendpoint-endpointipaddresstype): String
  [SecurityGroupIds](#cfn-ec2-clientvpnendpoint-securitygroupids): 
    - String
  [SelfServicePortal](#cfn-ec2-clientvpnendpoint-selfserviceportal): String
  [ServerCertificateArn](#cfn-ec2-clientvpnendpoint-servercertificatearn): String
  [SessionTimeoutHours](#cfn-ec2-clientvpnendpoint-sessiontimeouthours): Integer
  [SplitTunnel](#cfn-ec2-clientvpnendpoint-splittunnel): Boolean
  [TagSpecifications](#cfn-ec2-clientvpnendpoint-tagspecifications): 
    - TagSpecification
  [TrafficIpAddressType](#cfn-ec2-clientvpnendpoint-trafficipaddresstype): String
  [TransportProtocol](#cfn-ec2-clientvpnendpoint-transportprotocol): String
  [VpcId](#cfn-ec2-clientvpnendpoint-vpcid): String
  [VpnPort](#cfn-ec2-clientvpnendpoint-vpnport): Integer
```

## Properties
<a name="aws-resource-ec2-clientvpnendpoint-properties"></a>

`AuthenticationOptions`  <a name="cfn-ec2-clientvpnendpoint-authenticationoptions"></a>
Information about the authentication method to be used to authenticate clients.  
*Required*: Yes  
*Type*: Array of [ClientAuthenticationRequest](aws-properties-ec2-clientvpnendpoint-clientauthenticationrequest.md)  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`ClientCidrBlock`  <a name="cfn-ec2-clientvpnendpoint-clientcidrblock"></a>
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. Client CIDR range must have a size of at least /22 and must not be greater than /12.  
*Required*: No  
*Type*: String  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`ClientConnectOptions`  <a name="cfn-ec2-clientvpnendpoint-clientconnectoptions"></a>
The options for managing connection authorization for new client connections.  
*Required*: No  
*Type*: [ClientConnectOptions](aws-properties-ec2-clientvpnendpoint-clientconnectoptions.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`ClientLoginBannerOptions`  <a name="cfn-ec2-clientvpnendpoint-clientloginbanneroptions"></a>
Options for enabling a customizable text banner that will be displayed on AWS provided clients when a VPN session is established.  
*Required*: No  
*Type*: [ClientLoginBannerOptions](aws-properties-ec2-clientvpnendpoint-clientloginbanneroptions.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`ClientRouteEnforcementOptions`  <a name="cfn-ec2-clientvpnendpoint-clientrouteenforcementoptions"></a>
Client route enforcement is a feature of the Client VPN service that helps enforce administrator defined routes on devices connected through the VPN. T his feature helps improve your security posture by ensuring that network traffic originating from a connected client is not inadvertently sent outside the VPN tunnel.  
Client route enforcement works by monitoring the route table of a connected device for routing policy changes to the VPN connection. If the feature detects any VPN routing policy modifications, it will automatically force an update to the route table, reverting it back to the expected route configurations.  
*Required*: No  
*Type*: [ClientRouteEnforcementOptions](aws-properties-ec2-clientvpnendpoint-clientrouteenforcementoptions.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`ConnectionLogOptions`  <a name="cfn-ec2-clientvpnendpoint-connectionlogoptions"></a>
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
*Required*: Yes  
*Type*: [ConnectionLogOptions](aws-properties-ec2-clientvpnendpoint-connectionlogoptions.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Description`  <a name="cfn-ec2-clientvpnendpoint-description"></a>
A brief description of the Client VPN endpoint.  
*Required*: No  
*Type*: String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`DisconnectOnSessionTimeout`  <a name="cfn-ec2-clientvpnendpoint-disconnectonsessiontimeout"></a>
Indicates whether the client VPN session is disconnected after the maximum `sessionTimeoutHours` is reached. If `true`, users are prompted to reconnect client VPN. If `false`, client VPN attempts to reconnect automatically. The default value is `true`.  
*Required*: No  
*Type*: Boolean  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`DnsServers`  <a name="cfn-ec2-clientvpnendpoint-dnsservers"></a>
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.  
*Required*: No  
*Type*: Array of String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`EndpointIpAddressType`  <a name="cfn-ec2-clientvpnendpoint-endpointipaddresstype"></a>
The IP address type of the Client VPN endpoint. Possible values are `ipv4` for IPv4 addressing only, `ipv6` for IPv6 addressing only, or `dual-stack `for both IPv4 and IPv6 addressing.  
*Required*: No  
*Type*: String  
*Allowed values*: `ipv4 | ipv6 | dual-stack`  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`SecurityGroupIds`  <a name="cfn-ec2-clientvpnendpoint-securitygroupids"></a>
The IDs of one or more security groups to apply to the target network. You must also specify the ID of the VPC that contains the security groups.  
*Required*: No  
*Type*: Array of String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`SelfServicePortal`  <a name="cfn-ec2-clientvpnendpoint-selfserviceportal"></a>
Specify whether to enable the self-service portal for the Client VPN endpoint.  
Default Value: `enabled`  
*Required*: No  
*Type*: String  
*Allowed values*: `enabled | disabled`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`ServerCertificateArn`  <a name="cfn-ec2-clientvpnendpoint-servercertificatearn"></a>
The ARN of the server certificate. For more information, see the [AWS Certificate Manager User Guide](https://docs.aws.amazon.com/acm/latest/userguide/).  
*Required*: Yes  
*Type*: String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`SessionTimeoutHours`  <a name="cfn-ec2-clientvpnendpoint-sessiontimeouthours"></a>
The maximum VPN session duration time in hours.  
Valid values: `8 | 10 | 12 | 24`  
Default value: `24`  
*Required*: No  
*Type*: Integer  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`SplitTunnel`  <a name="cfn-ec2-clientvpnendpoint-splittunnel"></a>
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](https://docs.aws.amazon.com/vpn/latest/clientvpn-admin/split-tunnel-vpn.html) in the *AWS Client VPN Administrator Guide*.  
*Required*: No  
*Type*: Boolean  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`TagSpecifications`  <a name="cfn-ec2-clientvpnendpoint-tagspecifications"></a>
The tags to apply to the Client VPN endpoint during creation.  
*Required*: No  
*Type*: Array of [TagSpecification](aws-properties-ec2-clientvpnendpoint-tagspecification.md)  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`TrafficIpAddressType`  <a name="cfn-ec2-clientvpnendpoint-trafficipaddresstype"></a>
The IP address type of the Client VPN endpoint. Possible values are either `ipv4` for IPv4 addressing only, `ipv6` for IPv6 addressing only, or `dual-stack` for both IPv4 and IPv6 addressing.  
*Required*: No  
*Type*: String  
*Allowed values*: `ipv4 | ipv6 | dual-stack`  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`TransportProtocol`  <a name="cfn-ec2-clientvpnendpoint-transportprotocol"></a>
The transport protocol to be used by the VPN session.  
Default value: `udp`  
*Required*: No  
*Type*: String  
*Allowed values*: `tcp | udp`  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`VpcId`  <a name="cfn-ec2-clientvpnendpoint-vpcid"></a>
The ID of the VPC to associate with the Client VPN endpoint. If no security group IDs are specified in the request, the default security group for the VPC is applied.  
*Required*: No  
*Type*: String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`VpnPort`  <a name="cfn-ec2-clientvpnendpoint-vpnport"></a>
The port number to assign to the Client VPN endpoint for TCP and UDP traffic.  
Valid Values: `443` \$1 `1194`  
Default Value: `443`  
*Required*: No  
*Type*: Integer  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

## Return values
<a name="aws-resource-ec2-clientvpnendpoint-return-values"></a>

### Ref
<a name="aws-resource-ec2-clientvpnendpoint-return-values-ref"></a>

When you pass the logical ID of this resource to the intrinsic `Ref` function, `Ref` returns the Client VPN endpoint ID. For example: `cvpn-endpoint-1234567890abcdef0`.

For more information about using the `Ref` function, see [https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/intrinsic-function-reference-ref.html](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/intrinsic-function-reference-ref.html).

## Examples
<a name="aws-resource-ec2-clientvpnendpoint--examples"></a>

### Client VPN endpoint
<a name="aws-resource-ec2-clientvpnendpoint--examples--Client_VPN_endpoint"></a>

The following example creates a Client VPN endpoint that uses Active Directory authentication and assigns client IP addresses from the `10.0.0.0/22` CIDR range.

#### YAML
<a name="aws-resource-ec2-clientvpnendpoint--examples--Client_VPN_endpoint--yaml"></a>

```
myClientVpnEndpoint:
  Type: AWS::EC2::ClientVpnEndpoint
  Properties: 
    AuthenticationOptions:
    - Type: "directory-service-authentication"
      ActiveDirectory:
        DirectoryId: d-926example
    ClientCidrBlock: "10.0.0.0/22"
    ConnectionLogOptions: 
      Enabled: false
    Description: "My Client VPN Endpoint"
    DnsServers: 
      - "11.11.0.1"
    SecurityGroupIds:
      - !Ref mySecurityGroup
    ServerCertificateArn: "arn:aws:acm:us-east-1:111122223333:certificate/12345678-1234-1234-1234-123456789012"
    TagSpecifications:
      - ResourceType: "client-vpn-endpoint"
        Tags:
        - Key: "Purpose"
          Value: "Production"
    TransportProtocol: "udp"
```

#### JSON
<a name="aws-resource-ec2-clientvpnendpoint--examples--Client_VPN_endpoint--json"></a>

```
"myClientVpnEndpoint": {
    "Type": "AWS::EC2::ClientVpnEndpoint",
    "Properties": {
        "AuthenticationOptions": [
            {
                "Type": "directory-service-authentication",
                "ActiveDirectory": {
                    "DirectoryId": "d-926example"
                }
            }
        ],
        "ClientCidrBlock": "10.0.0.0/22",
        "ConnectionLogOptions": {
            "Enabled": false
        },
        "Description": "My Client VPN Endpoint",
        "DnsServers": [
            "11.11.0.1"
        ],
        "SecurityGroupIds": [
            {
                "Ref": "mySecurityGroup"
            }
        ],
        "ServerCertificateArn": "arn:aws:acm:us-east-1:111122223333:certificate/12345678-1234-1234-1234-123456789012",
        "TagSpecifications": [
            {
                "ResourceType": "client-vpn-endpoint",
                "Tags": [
                    {
                        "Key": "Purpose",
                        "Value": "Production"
                    }
                ]
            }
        ],
        "TransportProtocol": "udp"
    }
}
```

## See also
<a name="aws-resource-ec2-clientvpnendpoint--seealso"></a>
+ [ Getting Started with Client VPN](https://docs.aws.amazon.com/vpn/latest/clientvpn-admin/cvpn-getting-started.html) in the *AWS Client VPN Administrator Guide*
+ [Client VPN Endpoints](https://docs.aws.amazon.com/vpn/latest/clientvpn-admin/cvpn-working-endpoints.html) in the *AWS Client VPN Administrator Guide*



# AWS::EC2::ClientVpnEndpoint CertificateAuthenticationRequest
<a name="aws-properties-ec2-clientvpnendpoint-certificateauthenticationrequest"></a>

Information about the client certificate to be used for authentication.

## Syntax
<a name="aws-properties-ec2-clientvpnendpoint-certificateauthenticationrequest-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-ec2-clientvpnendpoint-certificateauthenticationrequest-syntax.json"></a>

```
{
  "[ClientRootCertificateChainArn](#cfn-ec2-clientvpnendpoint-certificateauthenticationrequest-clientrootcertificatechainarn)" : String
}
```

### YAML
<a name="aws-properties-ec2-clientvpnendpoint-certificateauthenticationrequest-syntax.yaml"></a>

```
  [ClientRootCertificateChainArn](#cfn-ec2-clientvpnendpoint-certificateauthenticationrequest-clientrootcertificatechainarn): String
```

## Properties
<a name="aws-properties-ec2-clientvpnendpoint-certificateauthenticationrequest-properties"></a>

`ClientRootCertificateChainArn`  <a name="cfn-ec2-clientvpnendpoint-certificateauthenticationrequest-clientrootcertificatechainarn"></a>
The ARN of the client certificate. The certificate must be signed by a certificate authority (CA) and it must be provisioned in AWS Certificate Manager (ACM).  
*Required*: Yes  
*Type*: String  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

# AWS::EC2::ClientVpnEndpoint ClientAuthenticationRequest
<a name="aws-properties-ec2-clientvpnendpoint-clientauthenticationrequest"></a>

Describes the authentication method to be used by a Client VPN endpoint. For more information, see [Authentication](https://docs.aws.amazon.com/vpn/latest/clientvpn-admin/authentication-authrization.html#client-authentication) in the *AWS Client VPN Administrator Guide*.

## Syntax
<a name="aws-properties-ec2-clientvpnendpoint-clientauthenticationrequest-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-ec2-clientvpnendpoint-clientauthenticationrequest-syntax.json"></a>

```
{
  "[ActiveDirectory](#cfn-ec2-clientvpnendpoint-clientauthenticationrequest-activedirectory)" : DirectoryServiceAuthenticationRequest,
  "[FederatedAuthentication](#cfn-ec2-clientvpnendpoint-clientauthenticationrequest-federatedauthentication)" : FederatedAuthenticationRequest,
  "[MutualAuthentication](#cfn-ec2-clientvpnendpoint-clientauthenticationrequest-mutualauthentication)" : CertificateAuthenticationRequest,
  "[Type](#cfn-ec2-clientvpnendpoint-clientauthenticationrequest-type)" : String
}
```

### YAML
<a name="aws-properties-ec2-clientvpnendpoint-clientauthenticationrequest-syntax.yaml"></a>

```
  [ActiveDirectory](#cfn-ec2-clientvpnendpoint-clientauthenticationrequest-activedirectory): 
    DirectoryServiceAuthenticationRequest
  [FederatedAuthentication](#cfn-ec2-clientvpnendpoint-clientauthenticationrequest-federatedauthentication): 
    FederatedAuthenticationRequest
  [MutualAuthentication](#cfn-ec2-clientvpnendpoint-clientauthenticationrequest-mutualauthentication): 
    CertificateAuthenticationRequest
  [Type](#cfn-ec2-clientvpnendpoint-clientauthenticationrequest-type): String
```

## Properties
<a name="aws-properties-ec2-clientvpnendpoint-clientauthenticationrequest-properties"></a>

`ActiveDirectory`  <a name="cfn-ec2-clientvpnendpoint-clientauthenticationrequest-activedirectory"></a>
Information about the Active Directory to be used, if applicable. You must provide this information if **Type** is `directory-service-authentication`.  
*Required*: No  
*Type*: [DirectoryServiceAuthenticationRequest](aws-properties-ec2-clientvpnendpoint-directoryserviceauthenticationrequest.md)  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`FederatedAuthentication`  <a name="cfn-ec2-clientvpnendpoint-clientauthenticationrequest-federatedauthentication"></a>
Information about the IAM SAML identity provider, if applicable.  
*Required*: No  
*Type*: [FederatedAuthenticationRequest](aws-properties-ec2-clientvpnendpoint-federatedauthenticationrequest.md)  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`MutualAuthentication`  <a name="cfn-ec2-clientvpnendpoint-clientauthenticationrequest-mutualauthentication"></a>
Information about the authentication certificates to be used, if applicable. You must provide this information if **Type** is `certificate-authentication`.  
*Required*: No  
*Type*: [CertificateAuthenticationRequest](aws-properties-ec2-clientvpnendpoint-certificateauthenticationrequest.md)  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`Type`  <a name="cfn-ec2-clientvpnendpoint-clientauthenticationrequest-type"></a>
The type of client authentication to be used.  
*Required*: Yes  
*Type*: String  
*Allowed values*: `certificate-authentication | directory-service-authentication | federated-authentication`  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

# AWS::EC2::ClientVpnEndpoint ClientConnectOptions
<a name="aws-properties-ec2-clientvpnendpoint-clientconnectoptions"></a>

Indicates whether client connect options are enabled. The default is `false` (not enabled).

## Syntax
<a name="aws-properties-ec2-clientvpnendpoint-clientconnectoptions-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-ec2-clientvpnendpoint-clientconnectoptions-syntax.json"></a>

```
{
  "[Enabled](#cfn-ec2-clientvpnendpoint-clientconnectoptions-enabled)" : Boolean,
  "[LambdaFunctionArn](#cfn-ec2-clientvpnendpoint-clientconnectoptions-lambdafunctionarn)" : String
}
```

### YAML
<a name="aws-properties-ec2-clientvpnendpoint-clientconnectoptions-syntax.yaml"></a>

```
  [Enabled](#cfn-ec2-clientvpnendpoint-clientconnectoptions-enabled): Boolean
  [LambdaFunctionArn](#cfn-ec2-clientvpnendpoint-clientconnectoptions-lambdafunctionarn): String
```

## Properties
<a name="aws-properties-ec2-clientvpnendpoint-clientconnectoptions-properties"></a>

`Enabled`  <a name="cfn-ec2-clientvpnendpoint-clientconnectoptions-enabled"></a>
Indicates whether client connect options are enabled. The default is `false` (not enabled).  
*Required*: Yes  
*Type*: Boolean  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`LambdaFunctionArn`  <a name="cfn-ec2-clientvpnendpoint-clientconnectoptions-lambdafunctionarn"></a>
The Amazon Resource Name (ARN) of the AWS Lambda function used for connection authorization.  
*Required*: No  
*Type*: String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

# AWS::EC2::ClientVpnEndpoint ClientLoginBannerOptions
<a name="aws-properties-ec2-clientvpnendpoint-clientloginbanneroptions"></a>

Options for enabling a customizable text banner that will be displayed on AWS provided clients when a VPN session is established.

## Syntax
<a name="aws-properties-ec2-clientvpnendpoint-clientloginbanneroptions-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-ec2-clientvpnendpoint-clientloginbanneroptions-syntax.json"></a>

```
{
  "[BannerText](#cfn-ec2-clientvpnendpoint-clientloginbanneroptions-bannertext)" : String,
  "[Enabled](#cfn-ec2-clientvpnendpoint-clientloginbanneroptions-enabled)" : Boolean
}
```

### YAML
<a name="aws-properties-ec2-clientvpnendpoint-clientloginbanneroptions-syntax.yaml"></a>

```
  [BannerText](#cfn-ec2-clientvpnendpoint-clientloginbanneroptions-bannertext): String
  [Enabled](#cfn-ec2-clientvpnendpoint-clientloginbanneroptions-enabled): Boolean
```

## Properties
<a name="aws-properties-ec2-clientvpnendpoint-clientloginbanneroptions-properties"></a>

`BannerText`  <a name="cfn-ec2-clientvpnendpoint-clientloginbanneroptions-bannertext"></a>
Customizable text that will be displayed in a banner on AWS provided clients when a VPN session is established. UTF-8 encoded characters only. Maximum of 1400 characters.  
*Required*: No  
*Type*: String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Enabled`  <a name="cfn-ec2-clientvpnendpoint-clientloginbanneroptions-enabled"></a>
Enable or disable a customizable text banner that will be displayed on AWS provided clients when a VPN session is established.  
Valid values: `true | false`  
Default value: `false`  
*Required*: Yes  
*Type*: Boolean  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

# AWS::EC2::ClientVpnEndpoint ClientRouteEnforcementOptions
<a name="aws-properties-ec2-clientvpnendpoint-clientrouteenforcementoptions"></a>

Client Route Enforcement is a feature of Client VPN that helps enforce administrator defined routes on devices connected through the VPN. This feature helps improve your security posture by ensuring that network traffic originating from a connected client is not inadvertently sent outside the VPN tunnel.

Client Route Enforcement works by monitoring the route table of a connected device for routing policy changes to the VPN connection. If the feature detects any VPN routing policy modifications, it will automatically force an update to the route table, reverting it back to the expected route configurations.

## Syntax
<a name="aws-properties-ec2-clientvpnendpoint-clientrouteenforcementoptions-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-ec2-clientvpnendpoint-clientrouteenforcementoptions-syntax.json"></a>

```
{
  "[Enforced](#cfn-ec2-clientvpnendpoint-clientrouteenforcementoptions-enforced)" : Boolean
}
```

### YAML
<a name="aws-properties-ec2-clientvpnendpoint-clientrouteenforcementoptions-syntax.yaml"></a>

```
  [Enforced](#cfn-ec2-clientvpnendpoint-clientrouteenforcementoptions-enforced): Boolean
```

## Properties
<a name="aws-properties-ec2-clientvpnendpoint-clientrouteenforcementoptions-properties"></a>

`Enforced`  <a name="cfn-ec2-clientvpnendpoint-clientrouteenforcementoptions-enforced"></a>
Enable or disable Client Route Enforcement. The state can either be `true` (enabled) or `false` (disabled). The default is `false`.  
Valid values: `true | false`  
Default value: `false`  
*Required*: No  
*Type*: Boolean  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

# AWS::EC2::ClientVpnEndpoint ConnectionLogOptions
<a name="aws-properties-ec2-clientvpnendpoint-connectionlogoptions"></a>

Describes the client connection logging options for the Client VPN endpoint.

## Syntax
<a name="aws-properties-ec2-clientvpnendpoint-connectionlogoptions-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-ec2-clientvpnendpoint-connectionlogoptions-syntax.json"></a>

```
{
  "[CloudwatchLogGroup](#cfn-ec2-clientvpnendpoint-connectionlogoptions-cloudwatchloggroup)" : String,
  "[CloudwatchLogStream](#cfn-ec2-clientvpnendpoint-connectionlogoptions-cloudwatchlogstream)" : String,
  "[Enabled](#cfn-ec2-clientvpnendpoint-connectionlogoptions-enabled)" : Boolean
}
```

### YAML
<a name="aws-properties-ec2-clientvpnendpoint-connectionlogoptions-syntax.yaml"></a>

```
  [CloudwatchLogGroup](#cfn-ec2-clientvpnendpoint-connectionlogoptions-cloudwatchloggroup): String
  [CloudwatchLogStream](#cfn-ec2-clientvpnendpoint-connectionlogoptions-cloudwatchlogstream): String
  [Enabled](#cfn-ec2-clientvpnendpoint-connectionlogoptions-enabled): Boolean
```

## Properties
<a name="aws-properties-ec2-clientvpnendpoint-connectionlogoptions-properties"></a>

`CloudwatchLogGroup`  <a name="cfn-ec2-clientvpnendpoint-connectionlogoptions-cloudwatchloggroup"></a>
The name of the CloudWatch Logs log group. Required if connection logging is enabled.  
*Required*: No  
*Type*: String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`CloudwatchLogStream`  <a name="cfn-ec2-clientvpnendpoint-connectionlogoptions-cloudwatchlogstream"></a>
The name of the CloudWatch Logs log stream to which the connection data is published.  
*Required*: No  
*Type*: String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Enabled`  <a name="cfn-ec2-clientvpnendpoint-connectionlogoptions-enabled"></a>
Indicates whether connection logging is enabled.  
*Required*: Yes  
*Type*: Boolean  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

# AWS::EC2::ClientVpnEndpoint DirectoryServiceAuthenticationRequest
<a name="aws-properties-ec2-clientvpnendpoint-directoryserviceauthenticationrequest"></a>

Describes the Active Directory to be used for client authentication.

## Syntax
<a name="aws-properties-ec2-clientvpnendpoint-directoryserviceauthenticationrequest-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-ec2-clientvpnendpoint-directoryserviceauthenticationrequest-syntax.json"></a>

```
{
  "[DirectoryId](#cfn-ec2-clientvpnendpoint-directoryserviceauthenticationrequest-directoryid)" : String
}
```

### YAML
<a name="aws-properties-ec2-clientvpnendpoint-directoryserviceauthenticationrequest-syntax.yaml"></a>

```
  [DirectoryId](#cfn-ec2-clientvpnendpoint-directoryserviceauthenticationrequest-directoryid): String
```

## Properties
<a name="aws-properties-ec2-clientvpnendpoint-directoryserviceauthenticationrequest-properties"></a>

`DirectoryId`  <a name="cfn-ec2-clientvpnendpoint-directoryserviceauthenticationrequest-directoryid"></a>
The ID of the Active Directory to be used for authentication.  
*Required*: Yes  
*Type*: String  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

# AWS::EC2::ClientVpnEndpoint FederatedAuthenticationRequest
<a name="aws-properties-ec2-clientvpnendpoint-federatedauthenticationrequest"></a>

The IAM SAML identity provider used for federated authentication.

## Syntax
<a name="aws-properties-ec2-clientvpnendpoint-federatedauthenticationrequest-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-ec2-clientvpnendpoint-federatedauthenticationrequest-syntax.json"></a>

```
{
  "[SAMLProviderArn](#cfn-ec2-clientvpnendpoint-federatedauthenticationrequest-samlproviderarn)" : String,
  "[SelfServiceSAMLProviderArn](#cfn-ec2-clientvpnendpoint-federatedauthenticationrequest-selfservicesamlproviderarn)" : String
}
```

### YAML
<a name="aws-properties-ec2-clientvpnendpoint-federatedauthenticationrequest-syntax.yaml"></a>

```
  [SAMLProviderArn](#cfn-ec2-clientvpnendpoint-federatedauthenticationrequest-samlproviderarn): String
  [SelfServiceSAMLProviderArn](#cfn-ec2-clientvpnendpoint-federatedauthenticationrequest-selfservicesamlproviderarn): String
```

## Properties
<a name="aws-properties-ec2-clientvpnendpoint-federatedauthenticationrequest-properties"></a>

`SAMLProviderArn`  <a name="cfn-ec2-clientvpnendpoint-federatedauthenticationrequest-samlproviderarn"></a>
The Amazon Resource Name (ARN) of the IAM SAML identity provider.  
*Required*: Yes  
*Type*: String  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`SelfServiceSAMLProviderArn`  <a name="cfn-ec2-clientvpnendpoint-federatedauthenticationrequest-selfservicesamlproviderarn"></a>
The Amazon Resource Name (ARN) of the IAM SAML identity provider for the self-service portal.  
*Required*: No  
*Type*: String  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

# AWS::EC2::ClientVpnEndpoint Tag
<a name="aws-properties-ec2-clientvpnendpoint-tag"></a>

Specifies a tag. For more information, see [Resource tags](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html).

## Syntax
<a name="aws-properties-ec2-clientvpnendpoint-tag-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-ec2-clientvpnendpoint-tag-syntax.json"></a>

```
{
  "[Key](#cfn-ec2-clientvpnendpoint-tag-key)" : String,
  "[Value](#cfn-ec2-clientvpnendpoint-tag-value)" : String
}
```

### YAML
<a name="aws-properties-ec2-clientvpnendpoint-tag-syntax.yaml"></a>

```
  [Key](#cfn-ec2-clientvpnendpoint-tag-key): String
  [Value](#cfn-ec2-clientvpnendpoint-tag-value): String
```

## Properties
<a name="aws-properties-ec2-clientvpnendpoint-tag-properties"></a>

`Key`  <a name="cfn-ec2-clientvpnendpoint-tag-key"></a>
The tag key.  
*Required*: Yes  
*Type*: String  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`Value`  <a name="cfn-ec2-clientvpnendpoint-tag-value"></a>
The tag value.  
*Required*: Yes  
*Type*: String  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

## Examples
<a name="aws-properties-ec2-clientvpnendpoint-tag--examples"></a>

### 
<a name="aws-properties-ec2-clientvpnendpoint-tag--examples--"></a>

This example specifies two tags for the Client VPN endpoint.

#### JSON
<a name="aws-properties-ec2-clientvpnendpoint-tag--examples----json"></a>

```
"Tags" : [
   {
      "Key" : "key1",
      "Value" : "value1"
   },
   {
      "Key" : "key2",
      "Value" : "value2"
   }
]
```

#### YAML
<a name="aws-properties-ec2-clientvpnendpoint-tag--examples----yaml"></a>

```
Tags: 
  - Key: "key1"
    Value: "value1"
  - Key: "key2"
    Value: "value2"
```

# AWS::EC2::ClientVpnEndpoint TagSpecification
<a name="aws-properties-ec2-clientvpnendpoint-tagspecification"></a>

Specifies the tags to apply to the Client VPN endpoint.

## Syntax
<a name="aws-properties-ec2-clientvpnendpoint-tagspecification-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-ec2-clientvpnendpoint-tagspecification-syntax.json"></a>

```
{
  "[ResourceType](#cfn-ec2-clientvpnendpoint-tagspecification-resourcetype)" : String,
  "[Tags](#cfn-ec2-clientvpnendpoint-tagspecification-tags)" : [ Tag, ... ]
}
```

### YAML
<a name="aws-properties-ec2-clientvpnendpoint-tagspecification-syntax.yaml"></a>

```
  [ResourceType](#cfn-ec2-clientvpnendpoint-tagspecification-resourcetype): String
  [Tags](#cfn-ec2-clientvpnendpoint-tagspecification-tags): 
    - Tag
```

## Properties
<a name="aws-properties-ec2-clientvpnendpoint-tagspecification-properties"></a>

`ResourceType`  <a name="cfn-ec2-clientvpnendpoint-tagspecification-resourcetype"></a>
The type of resource to tag. To tag a Client VPN endpoint, `ResourceType` must be `client-vpn-endpoint`.  
*Required*: Yes  
*Type*: String  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`Tags`  <a name="cfn-ec2-clientvpnendpoint-tagspecification-tags"></a>
The tags to apply to the resource.  
*Required*: Yes  
*Type*: Array of [Tag](aws-properties-ec2-clientvpnendpoint-tag.md)  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)