{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-rekognition/json-schema/amazon-rekognition-get-media-analysis-job-response-schema.json",
  "title": "GetMediaAnalysisJobResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-rekognition-media-analysis-job-api-openapi.yml#/components/schemas/GetMediaAnalysisJobResponse",
  "type": "object",
  "properties": {
    "JobId": {
      "type": "string",
      "description": "The identifier for the media analysis job."
    },
    "JobName": {
      "type": "string",
      "description": "The name of the media analysis job."
    },
    "OperationsConfig": {
      "$ref": "#/$defs/MediaAnalysisOperationsConfig"
    },
    "Status": {
      "type": "string",
      "enum": [
        "CREATED",
        "QUEUED",
        "IN_PROGRESS",
        "SUCCEEDED",
        "FAILED"
      ],
      "description": "The current status of the media analysis job."
    },
    "FailureDetails": {
      "$ref": "#/$defs/MediaAnalysisJobFailureDetails"
    },
    "CreationTimestamp": {
      "type": "string",
      "format": "date-time",
      "description": "The Unix date and time when the job was started."
    },
    "CompletionTimestamp": {
      "type": "string",
      "format": "date-time",
      "description": "The Unix date and time when the job finished."
    },
    "Input": {
      "$ref": "#/$defs/MediaAnalysisInput"
    },
    "OutputConfig": {
      "$ref": "#/$defs/MediaAnalysisOutputConfig"
    },
    "KmsKeyId": {
      "type": "string",
      "description": "KMS Key that was provided in the creation request."
    },
    "Results": {
      "$ref": "#/$defs/MediaAnalysisResults"
    },
    "ManifestSummary": {
      "$ref": "#/$defs/MediaAnalysisManifestSummary"
    }
  },
  "required": [
    "JobId",
    "OperationsConfig",
    "Status",
    "CreationTimestamp",
    "Input",
    "OutputConfig"
  ],
  "$defs": {
    "MediaAnalysisDetectModerationLabelsConfig": {
      "type": "object",
      "properties": {
        "MinConfidence": {
          "type": "number",
          "description": "Specifies the minimum confidence level for the moderation labels to return. Amazon Rekognition doesn't return any labels with a confidence level lower than this specified value."
        },
        "ProjectVersion": {
          "type": "string",
          "description": "Specifies the custom moderation model to be used during the label detection job. If not provided the pre-trained model is used."
        }
      }
    },
    "MediaAnalysisInput": {
      "type": "object",
      "properties": {
        "S3Object": {
          "$ref": "#/$defs/S3Object"
        }
      },
      "required": [
        "S3Object"
      ]
    },
    "MediaAnalysisJobFailureDetails": {
      "type": "object",
      "properties": {
        "Code": {
          "type": "string",
          "enum": [
            "INTERNAL_ERROR",
            "INVALID_S3_OBJECT",
            "INVALID_MANIFEST",
            "INVALID_OUTPUT_CONFIG",
            "INVALID_KMS_KEY",
            "ACCESS_DENIED",
            "RESOURCE_NOT_FOUND",
            "RESOURCE_NOT_READY",
            "THROTTLED"
          ],
          "description": "Error code for the failed job."
        },
        "Message": {
          "type": "string",
          "description": "Human readable error message."
        }
      }
    },
    "MediaAnalysisManifestSummary": {
      "type": "object",
      "properties": {
        "S3Object": {
          "$ref": "#/$defs/S3Object"
        }
      }
    },
    "MediaAnalysisModelVersions": {
      "type": "object",
      "properties": {
        "Moderation": {
          "type": "string",
          "description": "The Moderation base model version."
        }
      }
    },
    "MediaAnalysisOperationsConfig": {
      "type": "object",
      "properties": {
        "DetectModerationLabels": {
          "$ref": "#/$defs/MediaAnalysisDetectModerationLabelsConfig"
        }
      }
    },
    "MediaAnalysisOutputConfig": {
      "type": "object",
      "properties": {
        "S3Bucket": {
          "type": "string",
          "description": "Specifies the Amazon S3 bucket to contain the output of the media analysis job."
        },
        "S3KeyPrefix": {
          "type": "string",
          "description": "Specifies the Amazon S3 key prefix that comes after the name of the bucket you have designated for storage."
        }
      },
      "required": [
        "S3Bucket"
      ]
    },
    "MediaAnalysisResults": {
      "type": "object",
      "properties": {
        "S3Object": {
          "$ref": "#/$defs/S3Object"
        },
        "ModelVersions": {
          "$ref": "#/$defs/MediaAnalysisModelVersions"
        }
      }
    },
    "S3Object": {
      "type": "object",
      "properties": {
        "Bucket": {
          "type": "string",
          "description": "Name of the S3 bucket."
        },
        "Name": {
          "type": "string",
          "description": "S3 object key name."
        },
        "Version": {
          "type": "string",
          "description": "If the bucket is versioning enabled, you can specify the object version."
        }
      }
    }
  }
}