{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-sagemaker/json-schema/amazon-sagemaker-describe-job-response-schema.json",
  "title": "DescribeJobResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-sagemaker-job-api-openapi.yml#/components/schemas/DescribeJobResponse",
  "type": "object",
  "properties": {
    "JobName": {
      "type": "string",
      "description": "The name of the job."
    },
    "JobArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the job."
    },
    "RoleArn": {
      "type": "string",
      "description": "The ARN of the IAM role associated with the job."
    },
    "JobCategory": {
      "type": "string",
      "enum": [
        "AgentRFT",
        "AgentRFTEvaluation"
      ],
      "description": "The category of the job."
    },
    "JobConfigSchemaVersion": {
      "type": "string",
      "description": "The schema version used for the job configuration document."
    },
    "JobConfigDocument": {
      "type": "string",
      "description": "The JSON configuration document for the job."
    },
    "CreationTime": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time that the job was created."
    },
    "LastModifiedTime": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time that the job was last modified."
    },
    "EndTime": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time that the job ended."
    },
    "JobStatus": {
      "type": "string",
      "enum": [
        "InProgress",
        "Completed",
        "Failed",
        "Stopping",
        "Stopped",
        "Deleting",
        "DeleteFailed"
      ],
      "description": "The current status of the job."
    },
    "SecondaryStatus": {
      "type": "string",
      "enum": [
        "Starting",
        "Downloading",
        "Training",
        "Uploading",
        "Stopping",
        "Stopped",
        "MaxRuntimeExceeded",
        "Interrupted",
        "Failed",
        "Completed",
        "Restarting",
        "Pending",
        "Evaluating",
        "Deleting",
        "DeleteFailed"
      ],
      "description": "The detailed secondary status of the job, providing more granular information about the job's progress. Secondary statuses may change between releases."
    },
    "SecondaryStatusTransitions": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/JobSecondaryStatusTransition"
      },
      "description": "A list of secondary status transitions for the job, with timestamps and optional status messages."
    },
    "FailureReason": {
      "type": "string",
      "description": "If the job failed, the reason it failed."
    },
    "Tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "The tags associated with the job."
    }
  },
  "required": [
    "JobName",
    "JobArn",
    "RoleArn",
    "JobCategory",
    "JobConfigSchemaVersion",
    "CreationTime",
    "LastModifiedTime",
    "JobStatus",
    "SecondaryStatus",
    "SecondaryStatusTransitions"
  ],
  "$defs": {
    "JobSecondaryStatusTransition": {
      "type": "object",
      "properties": {
        "Status": {
          "type": "string",
          "enum": [
            "Starting",
            "Downloading",
            "Training",
            "Uploading",
            "Stopping",
            "Stopped",
            "MaxRuntimeExceeded",
            "Interrupted",
            "Failed",
            "Completed",
            "Restarting",
            "Pending",
            "Evaluating",
            "Deleting",
            "DeleteFailed"
          ],
          "description": "The secondary status of the job at this transition point."
        },
        "StartTime": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time that the status transition started."
        },
        "EndTime": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time that the status transition ended."
        },
        "StatusMessage": {
          "type": "string",
          "description": "A detailed message about the status transition."
        }
      },
      "required": [
        "Status",
        "StartTime"
      ]
    },
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "The tag key. Tag keys must be unique per resource."
        },
        "Value": {
          "type": "string",
          "description": "The tag value."
        }
      },
      "required": [
        "Key",
        "Value"
      ]
    }
  }
}