{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-deadline-cloud/json-schema/amazon-deadline-cloud-list-tasks-response-schema.json",
  "title": "ListTasksResponse",
  "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/ListTasksResponse",
  "type": "object",
  "properties": {
    "tasks": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/TaskSummary"
      },
      "description": "Tasks for the job."
    },
    "nextToken": {
      "type": "string",
      "description": "If Deadline Cloud returns nextToken, then there are more results available. The value of nextToken is a unique pagination token for each page. To retrieve the next page, call the operation again using the returned token. Keep all other arguments unchanged. If no results remain, then nextToken is set to null. Each pagination token expires after 24 hours. If you provide a token that isn't valid, then you receive an HTTP 400 ValidationException error."
    }
  },
  "required": [
    "tasks"
  ],
  "$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."
    },
    "TaskSummary": {
      "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 of the task."
        },
        "targetRunStatus": {
          "type": "string",
          "enum": [
            "READY",
            "FAILED",
            "SUCCEEDED",
            "CANCELED",
            "SUSPENDED",
            "PENDING"
          ],
          "description": "The run status on which the started."
        },
        "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 task parameters."
        }
      },
      "required": [
        "taskId",
        "createdAt",
        "createdBy",
        "runStatus"
      ]
    }
  }
}