{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-rekognition/json-schema/amazon-rekognition-start-media-analysis-job-request-schema.json",
  "title": "StartMediaAnalysisJobRequest",
  "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/StartMediaAnalysisJobRequest",
  "type": "object",
  "properties": {
    "ClientRequestToken": {
      "type": "string",
      "description": "Idempotency token used to prevent the accidental creation of duplicate versions. If you use the same token with multiple StartMediaAnalysisJobRequest requests, the same response is returned. Use ClientRequestToken to prevent the same request from being processed more than once."
    },
    "JobName": {
      "type": "string",
      "description": "The name of the job. Does not have to be unique."
    },
    "OperationsConfig": {
      "$ref": "#/$defs/MediaAnalysisOperationsConfig"
    },
    "Input": {
      "$ref": "#/$defs/MediaAnalysisInput"
    },
    "OutputConfig": {
      "$ref": "#/$defs/MediaAnalysisOutputConfig"
    },
    "KmsKeyId": {
      "type": "string",
      "description": "The identifier of customer managed AWS KMS key (name or ARN). The key is used to encrypt images copied into the service. The key is also used to encrypt results and manifest files written to the output Amazon S3 bucket."
    }
  },
  "required": [
    "OperationsConfig",
    "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"
      ]
    },
    "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"
      ]
    },
    "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."
        }
      }
    }
  }
}