Skip to main content

harvest_jobs

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

Overview

Nameharvest_jobs
TypeResource
Idaws.mediapackage.harvest_jobs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe Amazon Resource Name (ARN) assigned to the HarvestJob.
channel_idstringThe ID of the Channel that the HarvestJob will harvest from.
created_atstringThe date and time the HarvestJob was submitted.
end_timestringThe end of the time-window which will be harvested.
idstringThe ID of the HarvestJob. The ID must be unique within the region and it cannot be changed after the HarvestJob is submitted.
origin_endpoint_idstringThe ID of the OriginEndpoint that the HarvestJob will harvest from. This cannot be changed after the HarvestJob is submitted.
s3_destinationobjectConfiguration parameters for where in an S3 bucket to place the harvested content
start_timestringThe start of the time-window which will be harvested.
statusstringThe 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. (IN_PROGRESS, SUCCEEDED, FAILED)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_harvest_jobselectid, regionGets details about an existing HarvestJob.
list_harvest_jobsselectregionincludeChannelId, includeStatus, maxResults, nextTokenReturns a collection of HarvestJob records.
create_harvest_jobinsertregion, EndTime, OriginEndpointId, S3Destination, StartTimeCreates a new HarvestJob record.

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
idstringThe ID of the HarvestJob.
regionstringAWS region (default: us-east-1)
includeChannelIdstringWhen specified, the request will return only HarvestJobs associated with the given Channel ID.
includeStatusstringWhen specified, the request will return only HarvestJobs in the given status.
maxResultsintegerThe upper bound on the number of records to return.
nextTokenstringA token used to resume pagination from the end of a previous request.

SELECT examples

Gets details about an existing HarvestJob.

SELECT
arn,
channel_id,
created_at,
end_time,
id,
origin_endpoint_id,
s3_destination,
start_time,
status
FROM aws.mediapackage.harvest_jobs
WHERE id = '{{ id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a new HarvestJob record.

INSERT INTO aws.mediapackage.harvest_jobs (
EndTime,
Id,
OriginEndpointId,
S3Destination,
StartTime,
region
)
SELECT
'{{ EndTime }}' /* required */,
'{{ Id }}',
'{{ OriginEndpointId }}' /* required */,
'{{ S3Destination }}' /* required */,
'{{ StartTime }}' /* required */,
'{{ region }}'
RETURNING
arn,
channel_id,
created_at,
end_time,
id,
origin_endpoint_id,
s3_destination,
start_time,
status
;