{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-rekognition/json-schema/amazon-rekognition-get-content-moderation-response-schema.json",
  "title": "GetContentModerationResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-rekognition-content-moderation-api-openapi.yml#/components/schemas/GetContentModerationResponse",
  "type": "object",
  "properties": {
    "JobStatus": {
      "type": "string",
      "enum": [
        "IN_PROGRESS",
        "SUCCEEDED",
        "FAILED"
      ],
      "description": "The current status of the content moderation analysis job."
    },
    "StatusMessage": {
      "type": "string",
      "description": "If the job fails, StatusMessage provides a descriptive error message."
    },
    "VideoMetadata": {
      "$ref": "#/$defs/VideoMetadata"
    },
    "ModerationLabels": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ContentModerationDetection"
      },
      "description": "The detected inappropriate, unwanted, or offensive content moderation labels and the time(s) they were detected."
    },
    "NextToken": {
      "type": "string",
      "description": "If the response is truncated, Amazon Rekognition Video returns this token that you can use in the subsequent request to retrieve the next set of content moderation labels."
    },
    "ModerationModelVersion": {
      "type": "string",
      "description": "Version number of the moderation detection model that was used to detect inappropriate, unwanted, or offensive content."
    },
    "JobId": {
      "type": "string",
      "description": "Job identifier for the content moderation operation for which you want to obtain results. The job identifer is returned by an initial call to StartContentModeration."
    },
    "Video": {
      "$ref": "#/$defs/Video"
    },
    "JobTag": {
      "type": "string",
      "description": "A job identifier specified in the call to StartContentModeration and returned in the job completion notification sent to your Amazon Simple Notification Service topic."
    },
    "GetRequestMetadata": {
      "$ref": "#/$defs/GetContentModerationRequestMetadata"
    }
  },
  "$defs": {
    "ContentModerationDetection": {
      "type": "object",
      "properties": {
        "Timestamp": {
          "type": "integer",
          "description": "Time, in milliseconds from the beginning of the video, that the content moderation label was detected. Note that Timestamp is not guaranteed to be accurate to the individual frame where the moderated content first appears."
        },
        "ModerationLabel": {
          "$ref": "#/$defs/ModerationLabel"
        },
        "StartTimestampMillis": {
          "type": "integer",
          "description": "The time in milliseconds defining the start of the timeline segment containing a continuously detected moderation label."
        },
        "EndTimestampMillis": {
          "type": "integer",
          "description": "The time in milliseconds defining the end of the timeline segment containing a continuously detected moderation label."
        },
        "DurationMillis": {
          "type": "integer",
          "description": "The time duration of a segment in milliseconds, I.e. time elapsed from StartTimestampMillis to EndTimestampMillis."
        },
        "ContentTypes": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ContentType"
          },
          "description": "A list of predicted results for the type of content an image contains. For example, the image content might be from animation, sports, or a video game."
        }
      }
    },
    "ContentType": {
      "type": "object",
      "properties": {
        "Confidence": {
          "type": "number",
          "description": "The confidence level of the label given"
        },
        "Name": {
          "type": "string",
          "description": "The name of the label"
        }
      }
    },
    "GetContentModerationRequestMetadata": {
      "type": "object",
      "properties": {
        "SortBy": {
          "type": "string",
          "enum": [
            "NAME",
            "TIMESTAMP"
          ],
          "description": "The sorting method chosen for a GetContentModeration request."
        },
        "AggregateBy": {
          "type": "string",
          "enum": [
            "TIMESTAMPS",
            "SEGMENTS"
          ],
          "description": "The aggregation method chosen for a GetContentModeration request."
        }
      }
    },
    "ModerationLabel": {
      "type": "object",
      "properties": {
        "Confidence": {
          "type": "number",
          "description": "Specifies the confidence that Amazon Rekognition has that the label has been correctly identified. If you don't specify the MinConfidence parameter in the call to DetectModerationLabels, the operation returns labels with a confidence value greater than or equal to 50 percent."
        },
        "Name": {
          "type": "string",
          "description": "The label name for the type of unsafe content detected in the image."
        },
        "ParentName": {
          "type": "string",
          "description": "The name for the parent label. Labels at the top level of the hierarchy have the parent label \"\"."
        },
        "TaxonomyLevel": {
          "type": "integer",
          "description": "The level of the moderation label with regard to its taxonomy, from 1 to 3."
        }
      }
    },
    "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."
        }
      }
    },
    "Video": {
      "type": "object",
      "properties": {
        "S3Object": {
          "$ref": "#/$defs/S3Object"
        }
      }
    },
    "VideoMetadata": {
      "type": "object",
      "properties": {
        "Codec": {
          "type": "string",
          "description": "Type of compression used in the analyzed video."
        },
        "DurationMillis": {
          "type": "integer",
          "description": "Length of the video in milliseconds."
        },
        "Format": {
          "type": "string",
          "description": "Format of the analyzed video. Possible values are MP4, MOV and AVI."
        },
        "FrameRate": {
          "type": "number",
          "description": "Number of frames per second in the video."
        },
        "FrameHeight": {
          "type": "integer",
          "description": "Vertical pixel dimension of the video."
        },
        "FrameWidth": {
          "type": "integer",
          "description": "Horizontal pixel dimension of the video."
        },
        "ColorRange": {
          "type": "string",
          "enum": [
            "FULL",
            "LIMITED"
          ],
          "description": "A description of the range of luminance values in a video, either LIMITED (16 to 235) or FULL (0 to 255)."
        }
      }
    }
  }
}