{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-rekognition/json-schema/amazon-rekognition-start-stream-processor-request-schema.json",
  "title": "StartStreamProcessorRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-rekognition-stream-processor-api-openapi.yml#/components/schemas/StartStreamProcessorRequest",
  "type": "object",
  "properties": {
    "Name": {
      "type": "string",
      "description": "The name of the stream processor to start processing."
    },
    "StartSelector": {
      "$ref": "#/$defs/StreamProcessingStartSelector"
    },
    "StopSelector": {
      "$ref": "#/$defs/StreamProcessingStopSelector"
    }
  },
  "required": [
    "Name"
  ],
  "$defs": {
    "KinesisVideoStreamStartSelector": {
      "type": "object",
      "properties": {
        "ProducerTimestamp": {
          "type": "integer",
          "description": "The timestamp from the producer corresponding to the fragment, in milliseconds, expressed in unix time format."
        },
        "FragmentNumber": {
          "type": "string",
          "description": "The unique identifier of the fragment. This value monotonically increases based on the ingestion order."
        }
      }
    },
    "StreamProcessingStartSelector": {
      "type": "object",
      "properties": {
        "KVSStreamStartSelector": {
          "$ref": "#/$defs/KinesisVideoStreamStartSelector"
        }
      }
    },
    "StreamProcessingStopSelector": {
      "type": "object",
      "properties": {
        "MaxDurationInSeconds": {
          "type": "integer",
          "description": "Specifies the maximum amount of time in seconds that you want the stream to be processed. The largest amount of time is 2 minutes. The default is 10 seconds."
        }
      }
    }
  }
}