{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cloudfront/json-schema/cloudfront-test-function-request-schema.json",
  "title": "TestFunctionRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cloudfront-functions-api-openapi.yml#/components/schemas/TestFunctionRequest",
  "type": "object",
  "properties": {
    "Name": {
      "type": "string",
      "description": "The name of the function that you are testing."
    },
    "IfMatch": {
      "type": "string",
      "description": "The current version (ETag value) of the function that you are testing, which you can get using DescribeFunction."
    },
    "Stage": {
      "type": "string",
      "enum": [
        "DEVELOPMENT",
        "LIVE"
      ],
      "description": "The stage of the function that you are testing, either DEVELOPMENT or LIVE."
    },
    "EventObject": {
      "type": "string",
      "format": "byte",
      "description": "The event object to test the function with. For more information about the structure of the event object, see Testing functions in the Amazon CloudFront Developer Guide."
    }
  },
  "required": [
    "Name",
    "IfMatch",
    "EventObject"
  ]
}