{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-deadline-cloud/json-schema/amazon-deadline-cloud-get-task-response-schema.json",
  "title": "GetTaskResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-deadline-cloud-tasks-api-openapi.yml#/components/schemas/GetTaskResponse",
  "type": "object",
  "properties": {
    "taskId": {
      "type": "string",
      "description": "The task ID."
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time the resource was created."
    },
    "createdBy": {
      "type": "string",
      "description": "The user or system that created this resource."
    },
    "runStatus": {
      "type": "string",
      "enum": [
        "PENDING",
        "READY",
        "ASSIGNED",
        "STARTING",
        "SCHEDULED",
        "INTERRUPTING",
        "RUNNING",
        "SUSPENDED",
        "CANCELED",
        "FAILED",
        "SUCCEEDED",
        "NOT_COMPATIBLE"
      ],
      "description": "The run status for the task."
    },
    "targetRunStatus": {
      "type": "string",
      "enum": [
        "READY",
        "FAILED",
        "SUCCEEDED",
        "CANCELED",
        "SUSPENDED",
        "PENDING"
      ],
      "description": "The run status with which to start the task."
    },
    "failureRetryCount": {
      "type": "integer",
      "description": "The number of times that the task failed and was retried."
    },
    "startedAt": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time the resource started running."
    },
    "endedAt": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time the resource ended running."
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time the resource was updated."
    },
    "updatedBy": {
      "type": "string",
      "description": "The user or system that updated this resource."
    },
    "latestSessionActionId": {
      "type": "string",
      "description": "The latest session action ID for the task."
    },
    "parameters": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/$defs/TaskParameterValue"
      },
      "description": "The parameters for the task."
    }
  },
  "required": [
    "taskId",
    "createdAt",
    "createdBy",
    "runStatus"
  ],
  "$defs": {
    "TaskParameterValue": {
      "type": "object",
      "properties": {
        "int": {
          "type": "string",
          "description": "A signed integer represented as a string."
        },
        "float": {
          "type": "string",
          "description": "A double precision IEEE-754 floating point number represented as a string."
        },
        "string": {
          "type": "string",
          "description": "A UTF-8 string."
        },
        "path": {
          "type": "string",
          "description": "A file system path represented as a string."
        },
        "chunkInt": {
          "type": "string",
          "description": "A range (for example 1-10) or selection of specific (for example 1,3,7,8,10) integers represented as a string."
        }
      },
      "description": "Exactly one member is set."
    }
  }
}