{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-deadline-cloud/json-schema/amazon-deadline-cloud-get-step-response-schema.json",
  "title": "GetStepResponse",
  "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/GetStepResponse",
  "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 of the step."
    },
    "lifecycleStatusMessage": {
      "type": "string",
      "description": "A message that describes the lifecycle status 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."
    },
    "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 with which the job started."
    },
    "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"
    },
    "requiredCapabilities": {
      "$ref": "#/$defs/StepRequiredCapabilities"
    },
    "parameterSpace": {
      "$ref": "#/$defs/ParameterSpace"
    },
    "description": {
      "type": "string",
      "description": "The description of the step. This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field."
    }
  },
  "required": [
    "stepId",
    "name",
    "lifecycleStatus",
    "taskRunStatus",
    "taskRunStatusCounts",
    "createdAt",
    "createdBy"
  ],
  "$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"
      ]
    },
    "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"
      ]
    },
    "StepAmountCapability": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the step."
        },
        "min": {
          "type": "number",
          "description": "The minimum amount."
        },
        "max": {
          "type": "number",
          "description": "The maximum amount."
        },
        "value": {
          "type": "number",
          "description": "The amount value."
        }
      },
      "required": [
        "name"
      ]
    },
    "StepAttributeCapability": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the step attribute."
        },
        "anyOf": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Requires any of the step attributes in a given list."
        },
        "allOf": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Requires all of the step attribute values."
        }
      },
      "required": [
        "name"
      ]
    },
    "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"
      ]
    },
    "StepRequiredCapabilities": {
      "type": "object",
      "properties": {
        "attributes": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/StepAttributeCapability"
          },
          "description": "The capability attributes that the step requires."
        },
        "amounts": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/StepAmountCapability"
          },
          "description": "The capability amounts that the step requires."
        }
      },
      "required": [
        "attributes",
        "amounts"
      ]
    }
  }
}