{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-deadline-cloud/json-schema/amazon-deadline-cloud-search-steps-response-schema.json",
  "title": "SearchStepsResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-deadline-cloud-search-api-openapi.yml#/components/schemas/SearchStepsResponse",
  "type": "object",
  "properties": {
    "steps": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/StepSearchSummary"
      },
      "description": "The steps in the search."
    },
    "nextItemOffset": {
      "type": "integer",
      "description": "The next item offset for the search results."
    },
    "totalResults": {
      "type": "integer",
      "description": "The total number of results in the search."
    }
  },
  "required": [
    "steps",
    "totalResults"
  ],
  "$defs": {
    "ParameterSpace": {
      "type": "object",
      "properties": {
        "parameters": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/StepParameter"
          },
          "description": "The parameters to search for."
        },
        "combination": {
          "type": "string",
          "description": "The combination expression to use in the search."
        }
      },
      "required": [
        "parameters"
      ]
    },
    "StepParameter": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the parameter."
        },
        "type": {
          "type": "string",
          "enum": [
            "INT",
            "FLOAT",
            "STRING",
            "PATH",
            "CHUNK_INT"
          ],
          "description": "The data type of the parameter."
        },
        "chunks": {
          "$ref": "#/$defs/StepParameterChunks"
        }
      },
      "required": [
        "name",
        "type"
      ]
    },
    "StepParameterChunks": {
      "type": "object",
      "properties": {
        "defaultTaskCount": {
          "type": "integer",
          "description": "The number of tasks to combine into a single chunk by default."
        },
        "targetRuntimeSeconds": {
          "type": "integer",
          "description": "The number of seconds to aim for when forming chunks."
        },
        "rangeConstraint": {
          "type": "string",
          "enum": [
            "CONTIGUOUS",
            "NONCONTIGUOUS"
          ],
          "description": "Specifies whether the chunked ranges must be contiguous or can have gaps between them."
        }
      },
      "required": [
        "defaultTaskCount",
        "rangeConstraint"
      ]
    },
    "StepSearchSummary": {
      "type": "object",
      "properties": {
        "stepId": {
          "type": "string",
          "description": "The step ID."
        },
        "jobId": {
          "type": "string",
          "description": "The job ID."
        },
        "queueId": {
          "type": "string",
          "description": "The queue ID."
        },
        "name": {
          "type": "string",
          "description": "The step name."
        },
        "lifecycleStatus": {
          "type": "string",
          "enum": [
            "CREATE_COMPLETE",
            "UPDATE_IN_PROGRESS",
            "UPDATE_FAILED",
            "UPDATE_SUCCEEDED"
          ],
          "description": "The life cycle status."
        },
        "lifecycleStatusMessage": {
          "type": "string",
          "description": "The life cycle status message."
        },
        "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 be processed. ASSIGNED–assigned and will run next on a worker. SCHEDULED–scheduled to be 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."
        },
        "targetTaskRunStatus": {
          "type": "string",
          "enum": [
            "READY",
            "FAILED",
            "SUCCEEDED",
            "CANCELED",
            "SUSPENDED",
            "PENDING"
          ],
          "description": "The task status to update the job's tasks to."
        },
        "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."
        },
        "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."
        },
        "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."
        },
        "parameterSpace": {
          "$ref": "#/$defs/ParameterSpace"
        }
      }
    }
  }
}