Skip to main content

backend_jobs

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

Overview

Namebackend_jobs
TypeResource
Idaws.amplifybackend.backend_jobs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
app_idstringThe app ID.
backend_environment_namestringThe name of the backend environment.
create_timestringThe time when the job was created.
errorstringIf the request fails, this error is returned.
job_idstringThe ID for the job.
operationstringThe name of the operation.
statusstringThe current status of the request.
update_timestringThe time when the job was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_backend_jobselectapp_id, backend_environment_name, job_id, regionReturns information about a specific job.
list_backend_jobsselectapp_id, backend_environment_name, regionLists the jobs for the backend of an Amplify app.
update_backend_jobupdateapp_id, backend_environment_name, job_id, regionUpdates a specific job.

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
app_idstringThe app ID.
backend_environment_namestringThe name of the backend environment.
job_idstringThe ID for the job.
regionstringAWS region (default: us-east-1)

SELECT examples

Returns information about a specific job.

SELECT
app_id,
backend_environment_name,
create_time,
error,
job_id,
operation,
status,
update_time
FROM aws.amplifybackend.backend_jobs
WHERE app_id = '{{ app_id }}' -- required
AND backend_environment_name = '{{ backend_environment_name }}' -- required
AND job_id = '{{ job_id }}' -- required
AND region = '{{ region }}' -- required
;

UPDATE examples

Updates a specific job.

UPDATE aws.amplifybackend.backend_jobs
SET
Operation = '{{ Operation }}',
Status = '{{ Status }}'
WHERE
app_id = '{{ app_id }}' --required
AND backend_environment_name = '{{ backend_environment_name }}' --required
AND job_id = '{{ job_id }}' --required
AND region = '{{ region }}' --required
RETURNING
app_id,
backend_environment_name,
create_time,
error,
job_id,
operation,
status,
update_time;