{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-sitewise/json-schema/amazon-iot-sitewise-describe-dataset-export-job-response-schema.json",
  "title": "DescribeDatasetExportJobResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iot-sitewise-dataset-export-jobs-api-openapi.yml#/components/schemas/DescribeDatasetExportJobResponse",
  "type": "object",
  "properties": {
    "jobId": {
      "type": "string",
      "description": "The unique identifier for the dataset export job."
    },
    "workspaceName": {
      "type": "string",
      "description": "The name of the workspace that contains the dataset export job."
    },
    "jobName": {
      "type": "string",
      "description": "The name of the dataset export job."
    },
    "status": {
      "type": "string",
      "enum": [
        "SUBMITTED",
        "RUNNING",
        "COMPLETED",
        "COMPLETED_WITH_ERRORS",
        "FAILED"
      ],
      "description": "The current status of the dataset export job."
    },
    "startedAt": {
      "type": "string",
      "description": "The timestamp when the job started processing."
    },
    "completedAt": {
      "type": "string",
      "description": "The timestamp when the job completed, or null if the job is still running."
    },
    "destinationS3Uri": {
      "type": "string",
      "description": "The S3 URI where output clips are written."
    },
    "errorReportLocation": {
      "$ref": "#/$defs/ExportErrorReportLocation"
    },
    "input": {
      "$ref": "#/$defs/ProcessingInput"
    }
  },
  "required": [
    "jobId",
    "workspaceName",
    "status",
    "startedAt",
    "destinationS3Uri",
    "errorReportLocation",
    "input"
  ],
  "$defs": {
    "DatasetItem": {
      "type": "object",
      "properties": {
        "datasetId": {
          "type": "string",
          "description": "The unique identifier for the dataset."
        },
        "trimSettings": {
          "$ref": "#/$defs/TrimSettings"
        },
        "exportDataTypes": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "VIDEO",
              "TELEMETRY",
              "ANNOTATION"
            ]
          },
          "description": "The optional subset of data types to export. If omitted, all data types are exported."
        }
      },
      "required": [
        "datasetId"
      ]
    },
    "ExportErrorReportLocation": {
      "type": "object",
      "properties": {
        "s3Uri": {
          "type": "string",
          "description": "The S3 URI prefix for the error report."
        }
      },
      "required": [
        "s3Uri"
      ]
    },
    "FormatSettings": {
      "type": "object",
      "properties": {
        "framesPerSecond": {
          "type": "integer",
          "description": "The target frame rate for the output."
        },
        "widthInPixels": {
          "type": "integer",
          "description": "The target width of the output, in pixels."
        },
        "heightInPixels": {
          "type": "integer",
          "description": "The target height of the output, in pixels."
        }
      }
    },
    "ProcessingInput": {
      "type": "object",
      "properties": {
        "timeseries": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/TimeseriesItem"
          },
          "description": "List of individual timeseries items to process."
        },
        "dataset": {
          "$ref": "#/$defs/DatasetItem"
        }
      },
      "description": "Exactly one member is set."
    },
    "TimeInNanos": {
      "type": "object",
      "properties": {
        "timeInSeconds": {
          "type": "integer",
          "description": "The timestamp date, in seconds, in the Unix epoch format. Fractional nanosecond data is provided by offsetInNanos."
        },
        "offsetInNanos": {
          "type": "integer",
          "description": "The nanosecond offset from timeInSeconds."
        }
      },
      "required": [
        "timeInSeconds"
      ]
    },
    "TimeseriesItem": {
      "type": "object",
      "properties": {
        "timeSeriesId": {
          "type": "string",
          "description": "The unique identifier for the timeseries. Mutually exclusive with propertyAlias."
        },
        "propertyAlias": {
          "type": "string",
          "description": "The customer-friendly alias for the timeseries. Mutually exclusive with timeSeriesId."
        },
        "trimSettings": {
          "$ref": "#/$defs/TrimSettings"
        },
        "formatSettings": {
          "$ref": "#/$defs/FormatSettings"
        }
      }
    },
    "TrimSettings": {
      "type": "object",
      "properties": {
        "startTime": {
          "$ref": "#/$defs/TimeInNanos"
        },
        "endTime": {
          "$ref": "#/$defs/TimeInNanos"
        }
      },
      "required": [
        "startTime",
        "endTime"
      ]
    }
  }
}