{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/kinesis/json-schema/kinesis-uploader-config-schema.json",
  "title": "UploaderConfig",
  "description": "The configuration that consists of the <code>ScheduleExpression</code> and the <code>DurationInMinutesdetails</code>, that specify the scheduling to record from a camera, or local media file, onto the Edge Agent. If the <code>ScheduleExpression</code> is not provided, then the Edge Agent will always be in upload mode. ",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/kinesis-start-edge-configuration-update-api-openapi.yml#/components/schemas/UploaderConfig",
  "type": "object",
  "required": [
    "ScheduleConfig"
  ],
  "properties": {
    "ScheduleConfig": {
      "allOf": [
        {
          "$ref": "#/$defs/ScheduleConfig"
        },
        {
          "description": "The configuration that consists of the <code>ScheduleExpression</code> and the <code>DurationInMinutes</code>details that specify the scheduling to record from a camera, or local media file, onto the Edge Agent. If the <code>ScheduleExpression</code> is not provided, then the Edge Agent will always be in recording mode."
        }
      ]
    }
  },
  "$defs": {
    "DurationInSeconds": {
      "type": "integer",
      "minimum": 60,
      "maximum": 3600
    },
    "ScheduleConfig": {
      "type": "object",
      "required": [
        "ScheduleExpression",
        "DurationInSeconds"
      ],
      "properties": {
        "ScheduleExpression": {
          "allOf": [
            {
              "$ref": "#/$defs/ScheduleExpression"
            },
            {
              "description": "<p>The Quartz cron expression that takes care of scheduling jobs to record from the camera, or local media file, onto the Edge Agent. If the <code>ScheduleExpression</code> is not provided for the <code>RecorderConfig</code>, then the Edge Agent will always be set to recording mode.</p> <p>For more information about Quartz, refer to the <a href=\"http://www.quartz-scheduler.org/documentation/quartz-2.3.0/tutorials/crontrigger.html\"> <i>Cron Trigger Tutorial</i> </a> page to understand the valid expressions and its use.</p>"
            }
          ]
        },
        "DurationInSeconds": {
          "allOf": [
            {
              "$ref": "#/$defs/DurationInSeconds"
            },
            {
              "description": "The total duration to record the media. If the <code>ScheduleExpression</code> attribute is provided, then the <code>DurationInSeconds</code> attribute should also be specified."
            }
          ]
        }
      },
      "description": "<p>This API enables you to specify the duration that the camera, or local media file, should record onto the Edge Agent. The <code>ScheduleConfig</code> consists of the <code>ScheduleExpression</code> and the <code>DurationInMinutes</code> attributes. </p> <p>If the <code>ScheduleExpression</code> is not provided, then the Edge Agent will always be set to recording mode.</p>"
    },
    "ScheduleExpression": {
      "type": "string",
      "pattern": "[^\\n]{11,100}",
      "minLength": 11,
      "maxLength": 100
    }
  }
}