{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aws-batch/json-schema/aws-batch-list-jobs-response-schema.json",
  "title": "ListJobsResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aws-batch-jobs-api-openapi.yml#/components/schemas/ListJobsResponse",
  "type": "object",
  "properties": {
    "jobSummaryList": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/JobSummary"
      },
      "description": "A list of job summaries that match the request."
    },
    "nextToken": {
      "type": "string",
      "description": "The nextToken value to include in a future ListJobs request. When the results of a ListJobs request exceed maxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return."
    }
  },
  "required": [
    "jobSummaryList"
  ],
  "$defs": {
    "ArrayPropertiesSummary": {
      "type": "object",
      "properties": {
        "size": {
          "type": "integer",
          "description": "The size of the array job. This parameter is returned for parent array jobs."
        },
        "index": {
          "type": "integer",
          "description": "The job index within the array that's associated with this job. This parameter is returned for children of array jobs."
        },
        "statusSummary": {
          "type": "object",
          "additionalProperties": {
            "type": "integer"
          },
          "description": "A summary of the number of array job children in each available job status. This parameter is returned for parent array jobs."
        },
        "statusSummaryLastUpdatedAt": {
          "type": "integer",
          "description": "The Unix timestamp (in milliseconds) for when the statusSummary was last updated."
        }
      }
    },
    "ContainerSummary": {
      "type": "object",
      "properties": {
        "exitCode": {
          "type": "integer",
          "description": "The exit code to return upon completion."
        },
        "reason": {
          "type": "string",
          "description": "A short (255 max characters) human-readable string to provide additional details for a running or stopped container."
        }
      }
    },
    "JobCapacityUsageSummary": {
      "type": "object",
      "properties": {
        "capacityUnit": {
          "type": "string",
          "description": "The unit of measure for the capacity usage. This is VCPU for Amazon EC2 and cpu for Amazon EKS."
        },
        "quantity": {
          "type": "number",
          "description": "The quantity of capacity being used by the job, measured in the units specified by capacityUnit."
        }
      }
    },
    "JobSummary": {
      "type": "object",
      "properties": {
        "jobArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the job."
        },
        "jobId": {
          "type": "string",
          "description": "The job ID."
        },
        "jobName": {
          "type": "string",
          "description": "The job name."
        },
        "capacityUsage": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/JobCapacityUsageSummary"
          },
          "description": "The configured capacity usage information for this job, including the unit of measure and quantity of resources."
        },
        "createdAt": {
          "type": "integer",
          "description": "The Unix timestamp (in milliseconds) for when the job was created. For non-array jobs and parent array jobs, this is when the job entered the SUBMITTED state (at the time SubmitJob was called). For array child jobs, this is when the child job was spawned by its parent and entered the PENDING state."
        },
        "scheduledAt": {
          "type": "integer",
          "description": "The Unix timestamp (in milliseconds) for when the job was scheduled for execution. For more information on job statues, see Service job status in the Batch User Guide."
        },
        "shareIdentifier": {
          "type": "string",
          "description": "The share identifier for the fairshare scheduling queue that this job is associated with."
        },
        "status": {
          "type": "string",
          "enum": [
            "SUBMITTED",
            "PENDING",
            "RUNNABLE",
            "STARTING",
            "RUNNING",
            "SUCCEEDED",
            "FAILED"
          ],
          "description": "The current status for the job."
        },
        "statusReason": {
          "type": "string",
          "description": "A short, human-readable string to provide more details for the current status of the job."
        },
        "startedAt": {
          "type": "integer",
          "description": "The Unix timestamp for when the job was started. More specifically, it's when the job transitioned from the STARTING state to the RUNNING state."
        },
        "stoppedAt": {
          "type": "integer",
          "description": "The Unix timestamp for when the job was stopped. More specifically, it's when the job transitioned from the RUNNING state to a terminal state, such as SUCCEEDED or FAILED."
        },
        "container": {
          "$ref": "#/$defs/ContainerSummary"
        },
        "arrayProperties": {
          "$ref": "#/$defs/ArrayPropertiesSummary"
        },
        "nodeProperties": {
          "$ref": "#/$defs/NodePropertiesSummary"
        },
        "jobDefinition": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the job definition."
        },
        "isCancelled": {
          "type": "boolean",
          "description": "Indicates whether a cancellation request has been accepted for the job. This field is only present when the value is true."
        },
        "isTerminated": {
          "type": "boolean",
          "description": "Indicates whether a termination request has been accepted for the job. This field is only present when the value is true."
        }
      },
      "required": [
        "jobId",
        "jobName"
      ]
    },
    "NodePropertiesSummary": {
      "type": "object",
      "properties": {
        "isMainNode": {
          "type": "boolean",
          "description": "Specifies whether the current node is the main node for a multi-node parallel job."
        },
        "numNodes": {
          "type": "integer",
          "description": "The number of nodes that are associated with a multi-node parallel job."
        },
        "nodeIndex": {
          "type": "integer",
          "description": "The node index for the node. Node index numbering begins at zero. This index is also available on the node with the AWS_BATCH_JOB_NODE_INDEX environment variable."
        }
      }
    }
  }
}