Skip to main content

jobs

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

Overview

Namejobs
TypeResource
Idaws.mediaconvert.jobs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
acceleration_settingsobjectAccelerated transcoding can significantly speed up jobs with long, visually complex content.
acceleration_statusstringDescribes whether the current job is running with accelerated transcoding. For jobs that have Acceleration (AccelerationMode) set to DISABLED, AccelerationStatus is always NOT_APPLICABLE. For jobs that have Acceleration (AccelerationMode) set to ENABLED or PREFERRED, AccelerationStatus is one of the other states. AccelerationStatus is IN_PROGRESS initially, while the service determines whether the input files and job settings are compatible with accelerated transcoding. If they are, AcclerationStatus is ACCELERATED. If your input files and job settings aren't compatible with accelerated transcoding, the service either fails your job or runs it without accelerated transcoding, depending on how you set Acceleration (AccelerationMode). When the service runs your job without accelerated transcoding, AccelerationStatus is NOT_ACCELERATED. (NOT_APPLICABLE, IN_PROGRESS, ACCELERATED, NOT_ACCELERATED)
arnstringAn identifier for this resource that is unique within all of AWS.
billing_tags_sourcestringThe tag type that AWS Billing and Cost Management will use to sort your AWS Elemental MediaConvert costs on any billing report that you set up. (QUEUE, PRESET, JOB_TEMPLATE, JOB)
client_request_tokenstringPrevent duplicate jobs from being created and ensure idempotency for your requests. A client request token can be any string that includes up to 64 ASCII characters. If you reuse a client request token within one minute of a successful request, the API returns the job details of the original request instead. For more information see https:​//docs.aws.amazon.com/mediaconvert/latest/apireference/idempotency.html.
created_atstring (date-time)The time, in Unix epoch format in seconds, when the job got created.
current_phasestringA job's phase can be PROBING, TRANSCODING OR UPLOADING (PROBING, TRANSCODING, UPLOADING)
elemental_inference_configurationobjectThe Elemental Inference configuration used in this job.
error_codeintegerError code for the job
error_messagestringError message of Job
hop_destinationsarrayOptional list of hop destinations.
idstringA portion of the job's ARN, unique within your AWS Elemental MediaConvert resources
job_engine_version_requestedstringThe Job engine version that you requested for your job. Valid versions are in a YYYY-MM-DD format.
job_engine_version_usedstringThe Job engine version that your job used. Job engine versions are in a YYYY-MM-DD format. When you request an expired version, the response for this property will be empty. Requests to create jobs with an expired version result in a regular job, as if no specific Job engine version was requested. When you request an invalid version, the response for this property will be empty. Requests to create jobs with an invalid version result in a 400 error message, and no job is created.
job_percent_completeintegerAn estimate of how far your job has progressed. This estimate is shown as a percentage of the total time from when your job leaves its queue to when your output files appear in your output Amazon S3 bucket. AWS Elemental MediaConvert provides jobPercentComplete in CloudWatch STATUS_UPDATE events and in the response to GetJob and ListJobs requests. The jobPercentComplete estimate is reliable for the following input containers: Quicktime, Transport Stream, MP4, and MXF. For some jobs, the service can't provide information about job progress. In those cases, jobPercentComplete returns a null value.
job_templatestringThe job template that the job is created from, if it is created from a job template.
last_share_detailsstringContains information about the most recent share attempt for the job. For more information, see https:​//docs.aws.amazon.com/mediaconvert/latest/ug/creating-resource-share.html
messagesobjectProvides messages from the service about jobs that you have already successfully submitted.
output_group_detailsarrayList of output group details
priorityintegerRelative priority on the job.
queuestringWhen you create a job, you can specify a queue to send it to. If you don't specify, the job will go to the default queue. For more about queues, see the User Guide topic at https:​//docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html
queue_transitionsarrayThe job's queue hopping history.
retry_countintegerThe number of times that the service automatically attempted to process your job after encountering an error.
rolestringThe IAM role you use for creating this job. For details about permissions, see the User Guide topic at the User Guide at https:​//docs.aws.amazon.com/mediaconvert/latest/ug/iam-role.html
settingsobjectJobSettings contains all the transcode settings for a job.
share_statusstringA job's share status can be NOT_SHARED, INITIATED, or SHARED (NOT_SHARED, INITIATED, SHARED)
simulate_reserved_queuestringEnable this setting when you run a test job to estimate how many reserved transcoding slots (RTS) you need. When this is enabled, MediaConvert runs your job from an on-demand queue with similar performance to what you will see with one RTS in a reserved queue. This setting is disabled by default. (DISABLED, ENABLED)
statusstringA job's status can be SUBMITTED, PROGRESSING, COMPLETE, CANCELED, or ERROR. (SUBMITTED, PROGRESSING, COMPLETE, CANCELED, ERROR)
status_update_intervalstringSpecify how often MediaConvert sends STATUS_UPDATE events to Amazon CloudWatch Events. Set the interval, in seconds, between status updates. MediaConvert sends an update at this interval from the time the service begins processing your job to the time it completes the transcode or encounters an error. (SECONDS_10, SECONDS_12, SECONDS_15, SECONDS_20, SECONDS_30, SECONDS_60, SECONDS_120, SECONDS_180, SECONDS_240, SECONDS_300, SECONDS_360, SECONDS_420, SECONDS_480, SECONDS_540, SECONDS_600)
timingobjectInformation about when jobs are submitted, started, and finished is specified in Unix epoch format in seconds.
user_metadataobjectUser-defined metadata that you want to associate with an MediaConvert job. You specify metadata in key/value pairs.
warningsarrayContains any warning messages for the job. Use to help identify potential issues with your input, output, or job. For more information, see https:​//docs.aws.amazon.com/mediaconvert/latest/ug/warning_codes.html

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_jobselectid, regionRetrieve the JSON for a specific transcoding job.
list_jobsselectregionmaxResults, nextToken, order, queue, statusRetrieve a JSON array of up to twenty of your most recently created jobs. This array includes in-process, completed, and errored jobs. This will return the jobs themselves, not just a list of the jobs. To retrieve the twenty next most recent jobs, use the nextToken string returned with the array.
create_resource_shareinsertregion, JobId, SupportCaseIdCreate a new resource share request for MediaConvert resources with AWS Support.
create_jobinsertregionCreate a new transcoding job. For information about jobs and job settings, see the User Guide at http:​//docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html
search_jobsexecregioninputFile, maxResults, nextToken, order, queue, statusRetrieve a JSON array that includes job details for up to twenty of your most recent jobs. Optionally filter results further according to input file, queue, or status. To retrieve the twenty next most recent jobs, use the nextToken string returned with the array.
start_jobs_queryexecregionStart an asynchronous jobs query using the provided filters. To receive the list of jobs that match your query, call the GetJobsQueryResults API using the query ID returned by this API.

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 job ID of the job.
regionstringAWS region (default: us-east-1)
inputFilestringOptional. Provide your input file URL or your partial input file name. The maximum length for an input file is 300 characters.
maxResultsintegerOptional. Number of jobs, up to twenty, that will be returned at one time.
nextTokenstringOptional. Use this string, provided with the response to a previous request, to request the next batch of jobs.
orderstringOptional. When you request lists of resources, you can specify whether they are sorted in ASCENDING or DESCENDING order. Default varies by resource.
queuestringOptional. Provide a queue name, or a queue ARN, to return only jobs from that queue.
statusstringOptional. A job's status can be SUBMITTED, PROGRESSING, COMPLETE, CANCELED, or ERROR.

SELECT examples

Retrieve the JSON for a specific transcoding job.

SELECT
acceleration_settings,
acceleration_status,
arn,
billing_tags_source,
client_request_token,
created_at,
current_phase,
elemental_inference_configuration,
error_code,
error_message,
hop_destinations,
id,
job_engine_version_requested,
job_engine_version_used,
job_percent_complete,
job_template,
last_share_details,
messages,
output_group_details,
priority,
queue,
queue_transitions,
retry_count,
role,
settings,
share_status,
simulate_reserved_queue,
status,
status_update_interval,
timing,
user_metadata,
warnings
FROM aws.mediaconvert.jobs
WHERE id = '{{ id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Create a new resource share request for MediaConvert resources with AWS Support.

INSERT INTO aws.mediaconvert.jobs (
JobId,
SupportCaseId,
region
)
SELECT
'{{ JobId }}' /* required */,
'{{ SupportCaseId }}' /* required */,
'{{ region }}'
;

Lifecycle Methods

Retrieve a JSON array that includes job details for up to twenty of your most recent jobs. Optionally filter results further according to input file, queue, or status. To retrieve the twenty next most recent jobs, use the nextToken string returned with the array.

EXEC aws.mediaconvert.jobs.search_jobs
@region='{{ region }}' --required,
@inputFile='{{ inputFile }}',
@maxResults='{{ maxResults }}',
@nextToken='{{ nextToken }}',
@order='{{ order }}',
@queue='{{ queue }}',
@status='{{ status }}'
;