{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-mediapackage/json-schema/amazon-mediapackage-create-harvest-job-response-schema.json",
  "title": "CreateHarvestJobResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-mediapackage-harvest-jobs-api-openapi.yml#/components/schemas/CreateHarvestJobResponse",
  "type": "object",
  "properties": {
    "Arn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) assigned to the HarvestJob."
    },
    "ChannelId": {
      "type": "string",
      "description": "The ID of the Channel that the HarvestJob will harvest from."
    },
    "CreatedAt": {
      "type": "string",
      "description": "The date and time the HarvestJob was submitted."
    },
    "EndTime": {
      "type": "string",
      "description": "The end of the time-window which will be harvested."
    },
    "Id": {
      "type": "string",
      "description": "The ID of the HarvestJob. The ID must be unique within the region and it cannot be changed after the HarvestJob is submitted."
    },
    "OriginEndpointId": {
      "type": "string",
      "description": "The ID of the OriginEndpoint that the HarvestJob will harvest from. This cannot be changed after the HarvestJob is submitted."
    },
    "S3Destination": {
      "$ref": "#/$defs/S3Destination"
    },
    "StartTime": {
      "type": "string",
      "description": "The start of the time-window which will be harvested."
    },
    "Status": {
      "type": "string",
      "enum": [
        "IN_PROGRESS",
        "SUCCEEDED",
        "FAILED"
      ],
      "description": "The current status of the HarvestJob. Consider setting up a CloudWatch Event to listen for HarvestJobs as they succeed or fail. In the event of failure, the CloudWatch Event will include an explanation of why the HarvestJob failed."
    }
  },
  "$defs": {
    "S3Destination": {
      "type": "object",
      "properties": {
        "BucketName": {
          "type": "string",
          "description": "The name of an S3 bucket within which harvested content will be exported"
        },
        "ManifestKey": {
          "type": "string",
          "description": "The key in the specified S3 bucket where the harvested top-level manifest will be placed."
        },
        "RoleArn": {
          "type": "string",
          "description": "The IAM role used to write to the specified S3 bucket"
        }
      },
      "required": [
        "BucketName",
        "ManifestKey",
        "RoleArn"
      ]
    }
  }
}