Skip to main content

jobs

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

Overview

Namejobs
TypeResource
Idaws.location.jobs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
actionstringAction performed by the job. (ValidateAddress)
action_optionsobjectAdditional options for configuring job action parameters.
created_atstring (date-time)Job creation time in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sss.
ended_atstring (date-time)Job completion time in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sss. Only returned for jobs in a terminal status: Completed | Failed | Cancelled.
errorobjectError information if the job failed.
execution_role_arnstringIAM role used for permissions when running the job.
input_optionsobjectInput configuration.
job_arnstringAmazon Resource Name (ARN) of the specified job. (pattern: <code>arn(:[a-z0-9]+([.-][a-z0-9]+)):geo(:([a-z0-9]+([.-][a-z0-9]+)))(:[0-9]+):((*)|([-a-z]+[/][*-._\w]+))</code>)
job_idstringUnique job identifier. (pattern: <code>[-._\w]+</code>)
namestringJob name (if provided during creation). (pattern: <code>[-._\w]+</code>)
output_optionsobjectOutput configuration.
statusstringCurrent job status. (Pending, Running, Completed, Failed, Cancelling, Cancelled)
tagsobjectTags and corresponding values associated with the specified job.
updated_atstring (date-time)Last update time in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sss.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_jobselectjob_id, regionGetJob retrieves detailed information about a specific job, including its current status, configuration, and error information if the job failed. For more information, see Job concepts in the Amazon Location Service Developer Guide.
list_jobsselectregionListJobs retrieves a list of jobs with optional filtering and pagination support. For more information, see Job concepts in the Amazon Location Service Developer Guide.

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
job_idstringThe unique identifier of the job to retrieve.
regionstringAWS region (default: us-east-1)

SELECT examples

GetJob retrieves detailed information about a specific job, including its current status, configuration, and error information if the job failed. For more information, see Job concepts in the Amazon Location Service Developer Guide.

SELECT
action,
action_options,
created_at,
ended_at,
error,
execution_role_arn,
input_options,
job_arn,
job_id,
name,
output_options,
status,
tags,
updated_at
FROM aws.location.jobs
WHERE job_id = '{{ job_id }}' -- required
AND region = '{{ region }}' -- required
;