Skip to main content

harvest_jobs

Creates, updates, deletes, gets or lists a harvest_jobs resource.

Overview

Nameharvest_jobs
TypeResource
Idaws.mediapackagev2.harvest_jobs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe Amazon Resource Name (ARN) of the harvest job.
channel_group_namestringThe name of the channel group containing the channel associated with the harvest job. (pattern: <code>[a-zA-Z0-9_-]+</code>)
channel_namestringThe name of the channel associated with the harvest job. (pattern: <code>[a-zA-Z0-9_-]+</code>)
created_atstring (date-time)The date and time when the harvest job was created.
descriptionstringThe description of the harvest job, if provided.
destinationobjectThe S3 destination where the harvested content is being placed.
e_tagstringThe current version of the harvest job. Used for concurrency control. (pattern: <code>[\S]+</code>)
error_messagestringAn error message if the harvest job encountered any issues.
harvest_job_namestringThe name of the harvest job. (pattern: <code>[a-zA-Z0-9_-]+</code>)
harvested_manifestsobjectA list of manifests that are being or have been harvested.
modified_atstring (date-time)The date and time when the harvest job was last modified.
origin_endpoint_namestringThe name of the origin endpoint associated with the harvest job. (pattern: <code>[a-zA-Z0-9_-]+</code>)
schedule_configurationobjectThe configuration for when the harvest job is scheduled to run, including start and end times.
statusstringThe current status of the harvest job (e.g., QUEUED, IN_PROGRESS, CANCELLED, COMPLETED, FAILED). (QUEUED, IN_PROGRESS, CANCELLED, COMPLETED, FAILED)
tagsobjectA collection of tags associated with the harvest job.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_harvest_jobselectchannel_group_name, channel_name, origin_endpoint_name, harvest_job_name, regionRetrieves the details of a specific harvest job.
list_harvest_jobsselectchannel_group_name, regionchannelName, originEndpointName, includeStatus, maxResults, nextTokenRetrieves a list of harvest jobs that match the specified criteria.
create_harvest_jobinsertchannel_group_name, channel_name, origin_endpoint_name, region, HarvestedManifests, ScheduleConfigurationx-amzn-client-tokenCreates a new harvest job to export content from a MediaPackage v2 channel to an S3 bucket.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
channel_group_namestringThe name of the channel group containing the channel from which to harvest content.
channel_namestringThe name of the channel from which to harvest content.
harvest_job_namestringThe name of the harvest job to retrieve.
origin_endpoint_namestringThe name of the origin endpoint from which to harvest content.
regionstringAWS region (default: us-east-1)
channelNamestringThe name of the channel to filter the harvest jobs by. If specified, only harvest jobs associated with this channel will be returned.
includeStatusstringThe status to filter the harvest jobs by. If specified, only harvest jobs with this status will be returned.
maxResultsintegerThe maximum number of harvest jobs to return in a single request. If not specified, a default value will be used.
nextTokenstringA token used for pagination. Provide this value in subsequent requests to retrieve the next set of results.
originEndpointNamestringThe name of the origin endpoint to filter the harvest jobs by. If specified, only harvest jobs associated with this origin endpoint will be returned.
x-amzn-client-tokenstringA unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

SELECT examples

Retrieves the details of a specific harvest job.

SELECT
arn,
channel_group_name,
channel_name,
created_at,
description,
destination,
e_tag,
error_message,
harvest_job_name,
harvested_manifests,
modified_at,
origin_endpoint_name,
schedule_configuration,
status,
tags
FROM aws.mediapackagev2.harvest_jobs
WHERE channel_group_name = '{{ channel_group_name }}' -- required
AND channel_name = '{{ channel_name }}' -- required
AND origin_endpoint_name = '{{ origin_endpoint_name }}' -- required
AND harvest_job_name = '{{ harvest_job_name }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a new harvest job to export content from a MediaPackage v2 channel to an S3 bucket.

INSERT INTO aws.mediapackagev2.harvest_jobs (
Description,
HarvestedManifests,
ScheduleConfiguration,
Destination,
HarvestJobName,
Tags,
channel_group_name,
channel_name,
origin_endpoint_name,
region,
`x-amzn-client-token`
)
SELECT
'{{ Description }}',
'{{ HarvestedManifests }}' /* required */,
'{{ ScheduleConfiguration }}' /* required */,
'{{ Destination }}',
'{{ HarvestJobName }}',
'{{ Tags }}',
'{{ channel_group_name }}',
'{{ channel_name }}',
'{{ origin_endpoint_name }}',
'{{ region }}',
'{{ x-amzn-client-token }}'
RETURNING
arn,
channel_group_name,
channel_name,
created_at,
description,
destination,
e_tag,
error_message,
harvest_job_name,
harvested_manifests,
modified_at,
origin_endpoint_name,
schedule_configuration,
status,
tags
;