{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-deadline-cloud/json-schema/amazon-deadline-cloud-list-steps-response-schema.json",
  "title": "ListStepsResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-deadline-cloud-steps-api-openapi.yml#/components/schemas/ListStepsResponse",
  "type": "object",
  "properties": {
    "steps": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/StepSummary"
      },
      "description": "The steps on the list."
    },
    "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": [
    "steps"
  ],
  "$defs": {
    "DependencyCounts": {
      "type": "object",
      "properties": {
        "dependenciesResolved": {
          "type": "integer",
          "description": "The number of resolved dependencies."
        },
        "dependenciesUnresolved": {
          "type": "integer",
          "description": "The number of unresolved dependencies."
        },
        "consumersResolved": {
          "type": "integer",
          "description": "The number of consumers resolved."
        },
        "consumersUnresolved": {
          "type": "integer",
          "description": "The number of unresolved consumers."
        }
      },
      "required": [
        "dependenciesResolved",
        "dependenciesUnresolved",
        "consumersResolved",
        "consumersUnresolved"
      ]
    },
    "StepSummary": {
      "type": "object",
      "properties": {
        "stepId": {
          "type": "string",
          "description": "The step ID."
        },
        "name": {
          "type": "string",
          "description": "The name of the step."
        },
        "lifecycleStatus": {
          "type": "string",
          "enum": [
            "CREATE_COMPLETE",
            "UPDATE_IN_PROGRESS",
            "UPDATE_FAILED",
            "UPDATE_SUCCEEDED"
          ],
          "description": "The life cycle status."
        },
        "lifecycleStatusMessage": {
          "type": "string",
          "description": "A message that describes the lifecycle of the step."
        },
        "taskRunStatus": {
          "type": "string",
          "enum": [
            "PENDING",
            "READY",
            "ASSIGNED",
            "STARTING",
            "SCHEDULED",
            "INTERRUPTING",
            "RUNNING",
            "SUSPENDED",
            "CANCELED",
            "FAILED",
            "SUCCEEDED",
            "NOT_COMPATIBLE"
          ],
          "description": "The task run status for the job. PENDING–pending and waiting for resources. READY–ready to process. ASSIGNED–assigned and will run next on a worker. SCHEDULED–scheduled to run on a worker. INTERRUPTING–being interrupted. RUNNING–running on a worker. SUSPENDED–the task is suspended. CANCELED–the task has been canceled. FAILED–the task has failed. SUCCEEDED–the task has succeeded."
        },
        "taskRunStatusCounts": {
          "type": "object",
          "additionalProperties": {
            "type": "integer"
          },
          "description": "The number of tasks running on the job."
        },
        "taskFailureRetryCount": {
          "type": "integer",
          "description": "The total number of times tasks from the step failed and were retried."
        },
        "targetTaskRunStatus": {
          "type": "string",
          "enum": [
            "READY",
            "FAILED",
            "SUCCEEDED",
            "CANCELED",
            "SUSPENDED",
            "PENDING"
          ],
          "description": "The task status to update the job's tasks to."
        },
        "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."
        },
        "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."
        },
        "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."
        },
        "dependencyCounts": {
          "$ref": "#/$defs/DependencyCounts"
        }
      },
      "required": [
        "stepId",
        "name",
        "lifecycleStatus",
        "taskRunStatus",
        "taskRunStatusCounts",
        "createdAt",
        "createdBy"
      ]
    }
  }
}