{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-core/json-schema/amazon-iot-core-test-invoke-authorizer-request-schema.json",
  "title": "TestInvokeAuthorizerRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iot-core-authorizer-api-openapi.yml#/components/schemas/TestInvokeAuthorizerRequest",
  "type": "object",
  "properties": {
    "authorizerName": {
      "type": "string",
      "description": "The custom authorizer name."
    },
    "token": {
      "type": "string",
      "description": "The token returned by your custom authentication service."
    },
    "tokenSignature": {
      "type": "string",
      "description": "The signature made with the token and your custom authentication service's private key. This value must be Base-64-encoded."
    },
    "httpContext": {
      "$ref": "#/$defs/HttpContext"
    },
    "mqttContext": {
      "$ref": "#/$defs/MqttContext"
    },
    "tlsContext": {
      "$ref": "#/$defs/TlsContext"
    }
  },
  "required": [
    "authorizerName"
  ],
  "$defs": {
    "HttpContext": {
      "type": "object",
      "properties": {
        "headers": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The header keys and values in an HTTP authorization request."
        },
        "queryString": {
          "type": "string",
          "description": "The query string keys and values in an HTTP authorization request."
        }
      }
    },
    "MqttContext": {
      "type": "object",
      "properties": {
        "username": {
          "type": "string",
          "description": "The value of the username key in an MQTT authorization request."
        },
        "password": {
          "type": "string",
          "format": "byte",
          "description": "The value of the password key in an MQTT authorization request."
        },
        "clientId": {
          "type": "string",
          "description": "The value of the clientId key in an MQTT authorization request."
        }
      }
    },
    "TlsContext": {
      "type": "object",
      "properties": {
        "serverName": {
          "type": "string",
          "description": "The value of the serverName key in a TLS authorization request."
        }
      }
    }
  }
}