{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-mediapackage/json-schema/amazon-mediapackage-mediapackagev2-create-harvest-job-response-schema.json",
  "title": "Mediapackagev2CreateHarvestJobResponse",
  "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/Mediapackagev2CreateHarvestJobResponse",
  "type": "object",
  "properties": {
    "ChannelGroupName": {
      "type": "string",
      "description": "The name of the channel group containing the channel from which content is being harvested."
    },
    "ChannelName": {
      "type": "string",
      "description": "The name of the channel from which content is being harvested."
    },
    "OriginEndpointName": {
      "type": "string",
      "description": "The name of the origin endpoint from which content is being harvested."
    },
    "Destination": {
      "$ref": "#/$defs/Destination"
    },
    "HarvestJobName": {
      "type": "string",
      "description": "The name of the created harvest job."
    },
    "HarvestedManifests": {
      "$ref": "#/$defs/HarvestedManifests"
    },
    "Description": {
      "type": "string",
      "description": "The description of the harvest job, if provided."
    },
    "ScheduleConfiguration": {
      "$ref": "#/$defs/HarvesterScheduleConfiguration"
    },
    "Arn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the created harvest job."
    },
    "CreatedAt": {
      "type": "string",
      "description": "The date and time the harvest job was created."
    },
    "ModifiedAt": {
      "type": "string",
      "description": "The date and time the harvest job was last modified."
    },
    "Status": {
      "type": "string",
      "enum": [
        "QUEUED",
        "IN_PROGRESS",
        "CANCELLED",
        "COMPLETED",
        "FAILED"
      ],
      "description": "The current status of the harvest job (e.g., CREATED, IN_PROGRESS, ABORTED, COMPLETED, FAILED)."
    },
    "ErrorMessage": {
      "type": "string",
      "description": "An error message if the harvest job creation failed."
    },
    "ETag": {
      "type": "string",
      "description": "The current version of the harvest job. Used for concurrency control."
    },
    "Tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "A collection of tags associated with the harvest job."
    }
  },
  "required": [
    "ChannelGroupName",
    "ChannelName",
    "OriginEndpointName",
    "Destination",
    "HarvestJobName",
    "HarvestedManifests",
    "ScheduleConfiguration",
    "Arn",
    "CreatedAt",
    "ModifiedAt",
    "Status"
  ],
  "$defs": {
    "Destination": {
      "type": "object",
      "properties": {
        "S3Destination": {
          "$ref": "#/$defs/S3DestinationConfig"
        }
      },
      "required": [
        "S3Destination"
      ]
    },
    "HarvestedDashManifest": {
      "type": "object",
      "properties": {
        "ManifestName": {
          "type": "string",
          "description": "The name of the harvested DASH manifest."
        }
      },
      "required": [
        "ManifestName"
      ]
    },
    "HarvestedHlsManifest": {
      "type": "object",
      "properties": {
        "ManifestName": {
          "type": "string",
          "description": "The name of the harvested HLS manifest."
        }
      },
      "required": [
        "ManifestName"
      ]
    },
    "HarvestedLowLatencyHlsManifest": {
      "type": "object",
      "properties": {
        "ManifestName": {
          "type": "string",
          "description": "The name of the harvested Low-Latency HLS manifest."
        }
      },
      "required": [
        "ManifestName"
      ]
    },
    "HarvestedManifests": {
      "type": "object",
      "properties": {
        "HlsManifests": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/HarvestedHlsManifest"
          },
          "description": "A list of harvested HLS manifests."
        },
        "DashManifests": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/HarvestedDashManifest"
          },
          "description": "A list of harvested DASH manifests."
        },
        "LowLatencyHlsManifests": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/HarvestedLowLatencyHlsManifest"
          },
          "description": "A list of harvested Low-Latency HLS manifests."
        }
      }
    },
    "HarvesterScheduleConfiguration": {
      "type": "object",
      "properties": {
        "StartTime": {
          "type": "string",
          "description": "The start time for the harvest job."
        },
        "EndTime": {
          "type": "string",
          "description": "The end time for the harvest job."
        }
      },
      "required": [
        "StartTime",
        "EndTime"
      ]
    },
    "S3DestinationConfig": {
      "type": "object",
      "properties": {
        "BucketName": {
          "type": "string",
          "description": "The name of an S3 bucket within which harvested content will be exported."
        },
        "DestinationPath": {
          "type": "string",
          "description": "The path within the specified S3 bucket where the harvested content will be placed."
        }
      },
      "required": [
        "BucketName",
        "DestinationPath"
      ]
    }
  }
}