{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-ec2/json-schema/amazon-ec2-create-client-vpn-endpoint-request-schema.json",
  "title": "CreateClientVpnEndpointRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-ec2-client-vpn-endpoint-api-openapi.yml#/components/schemas/CreateClientVpnEndpointRequest",
  "type": "object",
  "properties": {
    "ClientCidrBlock": {
      "type": "string",
      "description": "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."
    },
    "ServerCertificateArn": {
      "type": "string",
      "description": "The ARN of the server certificate. For more information, see the Certificate Manager User Guide."
    },
    "AuthenticationOptions": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ClientVpnAuthenticationRequest"
      },
      "description": "Information about the authentication method to be used to authenticate clients."
    },
    "ConnectionLogOptions": {
      "$ref": "#/$defs/ConnectionLogOptions"
    },
    "DnsServers": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "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."
    },
    "TransportProtocol": {
      "type": "string",
      "enum": [
        "tcp",
        "udp"
      ],
      "description": "The transport protocol to be used by the VPN session. Default value: udp"
    },
    "VpnPort": {
      "type": "integer",
      "description": "The port number to assign to the Client VPN endpoint for TCP and UDP traffic. Valid Values: 443 | 1194 Default Value: 443"
    },
    "Description": {
      "type": "string",
      "description": "A brief description of the Client VPN endpoint."
    },
    "SplitTunnel": {
      "type": "boolean",
      "description": "Indicates whether split-tunnel is enabled on the Client VPN endpoint. By default, split-tunnel on a VPN endpoint is disabled. For information about split-tunnel VPN endpoints, see Split-tunnel Client VPN endpoint in the Client VPN Administrator Guide."
    },
    "DryRun": {
      "type": "boolean",
      "description": "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."
    },
    "ClientToken": {
      "type": "string",
      "description": "Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring idempotency."
    },
    "TagSpecifications": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/TagSpecification"
      },
      "description": "The tags to apply to the Client VPN endpoint during creation."
    },
    "SecurityGroupIds": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "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."
    },
    "VpcId": {
      "type": "string",
      "description": "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."
    },
    "SelfServicePortal": {
      "type": "string",
      "enum": [
        "enabled",
        "disabled"
      ],
      "description": "Specify whether to enable the self-service portal for the Client VPN endpoint. Default Value: enabled"
    },
    "ClientConnectOptions": {
      "$ref": "#/$defs/ClientConnectOptions"
    },
    "SessionTimeoutHours": {
      "type": "integer",
      "description": "The maximum VPN session duration time in hours. Valid values: 8 | 10 | 12 | 24 Default value: 24"
    },
    "ClientLoginBannerOptions": {
      "$ref": "#/$defs/ClientLoginBannerOptions"
    },
    "ClientRouteEnforcementOptions": {
      "$ref": "#/$defs/ClientRouteEnforcementOptions"
    },
    "DisconnectOnSessionTimeout": {
      "type": "boolean",
      "description": "Indicates whether the client VPN session is disconnected after the maximum timeout specified in 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."
    },
    "EndpointIpAddressType": {
      "type": "string",
      "enum": [
        "ipv4",
        "ipv6",
        "dual-stack"
      ],
      "description": "The IP address type for the Client VPN endpoint. Valid values are ipv4 (default) for IPv4 addressing only, ipv6 for IPv6 addressing only, or dual-stack for both IPv4 and IPv6 addressing. When set to dual-stack, clients can connect to the endpoint using either IPv4 or IPv6 addresses.."
    },
    "TrafficIpAddressType": {
      "type": "string",
      "enum": [
        "ipv4",
        "ipv6",
        "dual-stack"
      ],
      "description": "The IP address type for traffic within the Client VPN tunnel. Valid values are ipv4 (default) for IPv4 traffic only, ipv6 for IPv6 addressing only, or dual-stack for both IPv4 and IPv6 traffic. When set to dual-stack, clients can access both IPv4 and IPv6 resources through the VPN ."
    },
    "TransitGatewayConfiguration": {
      "$ref": "#/$defs/TransitGatewayConfigurationInputStructure"
    },
    "DevicePostureOptions": {
      "$ref": "#/$defs/DevicePostureOptions"
    }
  },
  "required": [
    "ServerCertificateArn",
    "AuthenticationOptions",
    "ConnectionLogOptions"
  ],
  "$defs": {
    "CertificateAuthenticationRequest": {
      "type": "object",
      "properties": {
        "ClientRootCertificateChainArn": {
          "type": "string",
          "description": "The ARN of the client certificate. The certificate must be signed by a certificate authority (CA) and it must be provisioned in Certificate Manager (ACM)."
        }
      }
    },
    "ClientConnectOptions": {
      "type": "object",
      "properties": {
        "Enabled": {
          "type": "boolean",
          "description": "Indicates whether client connect options are enabled. The default is false (not enabled)."
        },
        "LambdaFunctionArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the Lambda function used for connection authorization."
        }
      }
    },
    "ClientLoginBannerOptions": {
      "type": "object",
      "properties": {
        "Enabled": {
          "type": "boolean",
          "description": "Enable or disable a customizable text banner that will be displayed on Amazon Web Services provided clients when a VPN session is established. Valid values: true | false Default value: false"
        },
        "BannerText": {
          "type": "string",
          "description": "Customizable text that will be displayed in a banner on Amazon Web Services provided clients when a VPN session is established. UTF-8 encoded characters only. Maximum of 1400 characters."
        }
      }
    },
    "ClientRouteEnforcementOptions": {
      "type": "object",
      "properties": {
        "Enforced": {
          "type": "boolean",
          "description": "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"
        }
      }
    },
    "ClientVpnAuthenticationRequest": {
      "type": "object",
      "properties": {
        "Type": {
          "type": "string",
          "enum": [
            "certificate-authentication",
            "directory-service-authentication",
            "federated-authentication"
          ],
          "description": "The type of client authentication to be used."
        },
        "ActiveDirectory": {
          "$ref": "#/$defs/DirectoryServiceAuthenticationRequest"
        },
        "MutualAuthentication": {
          "$ref": "#/$defs/CertificateAuthenticationRequest"
        },
        "FederatedAuthentication": {
          "$ref": "#/$defs/FederatedAuthenticationRequest"
        }
      }
    },
    "ClientVpnTrustProviderRequest": {
      "type": "object",
      "properties": {
        "TrustProviderType": {
          "type": "string",
          "enum": [
            "crowdstrike",
            "jamf",
            "jumpcloud"
          ],
          "description": "The type of the device trust provider. Possible values include: crowdstrike - CrowdStrike device trust provider. jamf - Jamf device trust provider. jumpcloud - JumpCloud device trust provider."
        },
        "TenantId": {
          "type": "string",
          "description": "The tenant ID associated with your device trust provider account."
        },
        "PublicSigningKeyUrl": {
          "type": "string",
          "description": "The URL of the public signing key that is used to verify the identity token issued by the device trust provider."
        }
      }
    },
    "ConnectionLogOptions": {
      "type": "object",
      "properties": {
        "Enabled": {
          "type": "boolean",
          "description": "Indicates whether connection logging is enabled."
        },
        "CloudwatchLogGroup": {
          "type": "string",
          "description": "The name of the CloudWatch Logs log group. Required if connection logging is enabled."
        },
        "CloudwatchLogStream": {
          "type": "string",
          "description": "The name of the CloudWatch Logs log stream to which the connection data is published."
        },
        "IncludeAuthorizationPolicyContext": {
          "type": "boolean",
          "description": "Specifies whether to include the authorization policy evaluation context in the connection logs for the Client VPN endpoint."
        }
      }
    },
    "DevicePostureOptions": {
      "type": "object",
      "properties": {
        "TrustProviders": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ClientVpnTrustProviderRequest"
          },
          "description": "The device trust providers to configure for the Client VPN endpoint."
        },
        "Enabled": {
          "type": "boolean",
          "description": "Indicates whether device posture evaluation is enabled for the Client VPN endpoint. Specify false to disable device posture, which clears the configured device trust providers."
        }
      }
    },
    "DirectoryServiceAuthenticationRequest": {
      "type": "object",
      "properties": {
        "DirectoryId": {
          "type": "string",
          "description": "The ID of the Active Directory to be used for authentication."
        }
      }
    },
    "FederatedAuthenticationRequest": {
      "type": "object",
      "properties": {
        "SAMLProviderArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the IAM SAML identity provider."
        },
        "SelfServiceSAMLProviderArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the IAM SAML identity provider for the self-service portal."
        }
      }
    },
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "The key of the tag. Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:."
        },
        "Value": {
          "type": "string",
          "description": "The value of the tag. Constraints: Tag values are case-sensitive and accept a maximum of 256 Unicode characters."
        }
      }
    },
    "TagSpecification": {
      "type": "object",
      "properties": {
        "ResourceType": {
          "type": "string",
          "enum": [
            "capacity-reservation",
            "client-vpn-endpoint",
            "customer-gateway",
            "carrier-gateway",
            "coip-pool",
            "declarative-policies-report",
            "dedicated-host",
            "dhcp-options",
            "egress-only-internet-gateway",
            "elastic-ip",
            "elastic-gpu",
            "export-image-task",
            "export-instance-task",
            "fleet",
            "fpga-image",
            "host-reservation",
            "image",
            "image-usage-report",
            "import-image-task",
            "import-snapshot-task",
            "instance",
            "instance-event-window",
            "internet-gateway",
            "ipam",
            "ipam-pool",
            "ipam-scope",
            "ipv4pool-ec2",
            "ipv6pool-ec2",
            "key-pair",
            "launch-template",
            "local-gateway",
            "local-gateway-route-table",
            "local-gateway-virtual-interface",
            "local-gateway-virtual-interface-group",
            "local-gateway-route-table-vpc-association",
            "local-gateway-route-table-virtual-interface-group-association",
            "natgateway",
            "network-acl",
            "network-interface",
            "network-insights-analysis",
            "network-insights-path",
            "network-insights-access-scope",
            "network-insights-access-scope-analysis",
            "outpost-lag",
            "placement-group",
            "prefix-list",
            "replace-root-volume-task",
            "reserved-instances",
            "route-table",
            "security-group",
            "security-group-rule",
            "service-link-virtual-interface",
            "snapshot",
            "spot-fleet-request",
            "spot-instances-request",
            "subnet",
            "subnet-cidr-reservation",
            "traffic-mirror-filter",
            "traffic-mirror-session",
            "traffic-mirror-target",
            "transit-gateway",
            "transit-gateway-attachment",
            "transit-gateway-connect-peer",
            "transit-gateway-multicast-domain",
            "transit-gateway-policy-table",
            "transit-gateway-metering-policy",
            "transit-gateway-route-table",
            "transit-gateway-route-table-announcement",
            "volume",
            "vpc",
            "vpc-endpoint",
            "vpc-endpoint-connection",
            "vpc-endpoint-service",
            "vpc-endpoint-service-permission",
            "vpc-peering-connection",
            "vpn-connection",
            "vpn-gateway",
            "vpc-flow-log",
            "capacity-reservation-fleet",
            "traffic-mirror-filter-rule",
            "vpc-endpoint-connection-device-type",
            "verified-access-instance",
            "verified-access-group",
            "verified-access-endpoint",
            "verified-access-policy",
            "verified-access-trust-provider",
            "vpn-connection-device-type",
            "vpc-block-public-access-exclusion",
            "vpc-encryption-control",
            "route-server",
            "route-server-endpoint",
            "route-server-peer",
            "ipam-resource-discovery",
            "ipam-resource-discovery-association",
            "instance-connect-endpoint",
            "verified-access-endpoint-target",
            "ipam-external-resource-verification-token",
            "capacity-block",
            "mac-modification-task",
            "ipam-prefix-list-resolver",
            "ipam-policy",
            "ipam-prefix-list-resolver-target",
            "ipam-internet-registry-association",
            "secondary-interface",
            "secondary-network",
            "secondary-subnet",
            "capacity-manager-data-export",
            "vpn-concentrator",
            "ipam-pool-allocation",
            "capacity-reservation-cancellation-quote",
            "application-status-check",
            "capacity-reservation-modification-quote"
          ],
          "description": "The type of resource to tag on creation."
        },
        "Tags": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Tag"
          },
          "description": "The tags to apply to the resource."
        }
      }
    },
    "TransitGatewayConfigurationInputStructure": {
      "type": "object",
      "properties": {
        "TransitGatewayId": {
          "type": "string",
          "description": "The ID of the Transit Gateway to associate with the Client VPN endpoint."
        },
        "AvailabilityZones": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The Availability Zone names for the Transit Gateway association. You can specify up to the maximum number of Availability Zones supported by the Transit Gateway. You cannot specify both AvailabilityZones and AvailabilityZoneIds."
        },
        "AvailabilityZoneIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The Availability Zone IDs for the Transit Gateway association. You can specify up to the maximum number of Availability Zones supported by the Transit Gateway. You cannot specify both AvailabilityZones and AvailabilityZoneIds."
        }
      }
    }
  }
}