Skip to main content

software_update_jobs

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

Overview

Namesoftware_update_jobs
TypeResource
Idaws.greengrass.software_update_jobs

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
create_software_update_jobinsertregion, S3UrlSignerRole, SoftwareToUpdate, UpdateTargets, UpdateTargetsArchitecture, UpdateTargetsOperatingSystemX-Amzn-Client-TokenCreates a software update for a core or group of cores (specified as an IoT thing group.) Use this to update the OTA Agent as well as the Greengrass core software. It makes use of the IoT Jobs feature which provides additional commands to manage a Greengrass core software update 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
regionstringAWS region (default: us-east-1)
X-Amzn-Client-TokenstringA client token used to correlate requests and responses.

INSERT examples

Creates a software update for a core or group of cores (specified as an IoT thing group.) Use this to update the OTA Agent as well as the Greengrass core software. It makes use of the IoT Jobs feature which provides additional commands to manage a Greengrass core software update job.

INSERT INTO aws.greengrass.software_update_jobs (
S3UrlSignerRole,
SoftwareToUpdate,
UpdateAgentLogLevel,
UpdateTargets,
UpdateTargetsArchitecture,
UpdateTargetsOperatingSystem,
region,
`X-Amzn-Client-Token`
)
SELECT
'{{ S3UrlSignerRole }}' /* required */,
'{{ SoftwareToUpdate }}' /* required */,
'{{ UpdateAgentLogLevel }}',
'{{ UpdateTargets }}' /* required */,
'{{ UpdateTargetsArchitecture }}' /* required */,
'{{ UpdateTargetsOperatingSystem }}' /* required */,
'{{ region }}',
'{{ X-Amzn-Client-Token }}'
RETURNING
iot_job_arn,
iot_job_id,
platform_software_version
;