{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-ec2/json-schema/amazon-ec2-modify-client-vpn-endpoint-request-schema.json",
  "title": "ModifyClientVpnEndpointRequest",
  "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/ModifyClientVpnEndpointRequest",
  "type": "object",
  "properties": {
    "ClientVpnEndpointId": {
      "type": "string",
      "description": "The ID of the Client VPN endpoint to modify."
    },
    "ServerCertificateArn": {
      "type": "string",
      "description": "The ARN of the server certificate to be used. The server certificate must be provisioned in Certificate Manager (ACM)."
    },
    "ConnectionLogOptions": {
      "$ref": "#/$defs/ConnectionLogOptions"
    },
    "DnsServers": {
      "$ref": "#/$defs/DnsServersOptionsModifyStructure"
    },
    "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 the VPN is split-tunnel. 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."
    },
    "SecurityGroupIds": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The IDs of one or more security groups to apply to the target network."
    },
    "VpcId": {
      "type": "string",
      "description": "The ID of the VPC to associate with the Client VPN endpoint."
    },
    "SelfServicePortal": {
      "type": "string",
      "enum": [
        "enabled",
        "disabled"
      ],
      "description": "Specify whether to enable the self-service portal for the Client VPN endpoint."
    },
    "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."
    },
    "TransitGatewayConfiguration": {
      "$ref": "#/$defs/TransitGatewayConfigurationInputStructure"
    },
    "DevicePostureOptions": {
      "$ref": "#/$defs/DevicePostureOptions"
    }
  },
  "required": [
    "ClientVpnEndpointId"
  ],
  "$defs": {
    "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"
        }
      }
    },
    "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."
        }
      }
    },
    "DnsServersOptionsModifyStructure": {
      "type": "object",
      "properties": {
        "CustomDnsServers": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The IPv4 address range, in CIDR notation, of the DNS servers to be used. You can specify up to two DNS servers. Ensure that the DNS servers can be reached by the clients. The specified values overwrite the existing values."
        },
        "Enabled": {
          "type": "boolean",
          "description": "Indicates whether DNS servers should be used. Specify False to delete the existing DNS servers."
        }
      }
    },
    "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."
        }
      }
    }
  }
}