{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-kendra/json-schema/amazon-kendra-list-data-source-sync-jobs-response-schema.json",
  "title": "ListDataSourceSyncJobsResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-kendra-data-source-sync-job-api-openapi.yml#/components/schemas/ListDataSourceSyncJobsResponse",
  "type": "object",
  "properties": {
    "History": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DataSourceSyncJob"
      },
      "description": "A history of synchronization jobs for the data source connector."
    },
    "NextToken": {
      "type": "string",
      "description": "If the response is truncated, Amazon Kendra returns this token that you can use in the subsequent request to retrieve the next set of jobs."
    }
  },
  "$defs": {
    "DataSourceSyncJob": {
      "type": "object",
      "properties": {
        "ExecutionId": {
          "type": "string",
          "description": "A identifier for the synchronization job."
        },
        "StartTime": {
          "type": "string",
          "format": "date-time",
          "description": "The Unix timestamp when the synchronization job started."
        },
        "EndTime": {
          "type": "string",
          "format": "date-time",
          "description": "The Unix timestamp when the synchronization job completed."
        },
        "Status": {
          "type": "string",
          "enum": [
            "FAILED",
            "SUCCEEDED",
            "SYNCING",
            "INCOMPLETE",
            "STOPPING",
            "ABORTED",
            "SYNCING_INDEXING"
          ],
          "description": "The execution status of the synchronization job. When the Status field is set to SUCCEEDED, the synchronization job is done. If the status code is set to FAILED, the ErrorCode and ErrorMessage fields give you the reason for the failure."
        },
        "ErrorMessage": {
          "type": "string",
          "description": "If the Status field is set to ERROR, the ErrorMessage field contains a description of the error that caused the synchronization to fail."
        },
        "ErrorCode": {
          "type": "string",
          "enum": [
            "InternalError",
            "InvalidRequest"
          ],
          "description": "If the Status field is set to FAILED, the ErrorCode field indicates the reason the synchronization failed."
        },
        "DataSourceErrorCode": {
          "type": "string",
          "description": "If the reason that the synchronization failed is due to an error with the underlying data source, this field contains a code that identifies the error."
        },
        "Metrics": {
          "$ref": "#/$defs/DataSourceSyncJobMetrics"
        }
      }
    },
    "DataSourceSyncJobMetrics": {
      "type": "object",
      "properties": {
        "DocumentsAdded": {
          "type": "string",
          "description": "The number of documents added from the data source up to now in the data source sync."
        },
        "DocumentsModified": {
          "type": "string",
          "description": "The number of documents modified in the data source up to now in the data source sync run."
        },
        "DocumentsDeleted": {
          "type": "string",
          "description": "The number of documents deleted from the data source up to now in the data source sync run."
        },
        "DocumentsFailed": {
          "type": "string",
          "description": "The number of documents that failed to sync from the data source up to now in the data source sync run."
        },
        "DocumentsScanned": {
          "type": "string",
          "description": "The current number of documents crawled by the current sync job in the data source."
        }
      }
    }
  }
}