{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-twinmaker/json-schema/amazon-iot-twinmaker-get-sync-job-response-schema.json",
  "title": "GetSyncJobResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iot-twinmaker-sync-jobs-api-openapi.yml#/components/schemas/GetSyncJobResponse",
  "type": "object",
  "properties": {
    "arn": {
      "type": "string",
      "description": "The sync job ARN."
    },
    "workspaceId": {
      "type": "string",
      "description": "The ID of the workspace that contains the sync job."
    },
    "syncSource": {
      "type": "string",
      "description": "The sync soucre. Currently the only supported syncSource is SITEWISE ."
    },
    "syncRole": {
      "type": "string",
      "description": "The sync IAM role."
    },
    "status": {
      "$ref": "#/$defs/SyncJobStatus"
    },
    "creationDateTime": {
      "type": "string",
      "format": "date-time",
      "description": "The creation date and time."
    },
    "updateDateTime": {
      "type": "string",
      "format": "date-time",
      "description": "The update date and time."
    }
  },
  "required": [
    "arn",
    "workspaceId",
    "syncSource",
    "syncRole",
    "status",
    "creationDateTime",
    "updateDateTime"
  ],
  "$defs": {
    "ErrorDetails": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "description": "The error code."
        },
        "message": {
          "type": "string",
          "description": "The error message."
        }
      }
    },
    "SyncJobStatus": {
      "type": "object",
      "properties": {
        "state": {
          "type": "string",
          "description": "The SyncJob status state."
        },
        "error": {
          "$ref": "#/$defs/ErrorDetails"
        }
      }
    }
  }
}