Skip to content

/AWS1/CL_IOT=>CREATEJOBTEMPLATE()

About CreateJobTemplate

Creates a job template.

Requires permission to access the CreateJobTemplate action.

Method Signature

IMPORTING

Required arguments:

IV_JOBTEMPLATEID TYPE /AWS1/IOTJOBTEMPLATEID /AWS1/IOTJOBTEMPLATEID

A unique identifier for the job template. We recommend using a UUID. Alpha-numeric characters, "-", and "_" are valid for use here.

IV_DESCRIPTION TYPE /AWS1/IOTJOBDESCRIPTION /AWS1/IOTJOBDESCRIPTION

A description of the job document.

Optional arguments:

IV_JOBARN TYPE /AWS1/IOTJOBARN /AWS1/IOTJOBARN

The ARN of the job to use as the basis for the job template.

IV_DOCUMENTSOURCE TYPE /AWS1/IOTJOBDOCUMENTSOURCE /AWS1/IOTJOBDOCUMENTSOURCE

An S3 link, or S3 object URL, to the job document. The link is an Amazon S3 object URL and is required if you don't specify a value for document.

For example, --document-source https://s3.region-code.amazonaws.com/example-firmware/device-firmware.1.0

For more information, see Methods for accessing a bucket.

IV_DOCUMENT TYPE /AWS1/IOTJOBDOCUMENT /AWS1/IOTJOBDOCUMENT

The job document. Required if you don't specify a value for documentSource.

IO_PRESIGNEDURLCONFIG TYPE REF TO /AWS1/CL_IOTPRESIGNEDURLCONFIG /AWS1/CL_IOTPRESIGNEDURLCONFIG

presignedUrlConfig

IO_JOBEXECSROLLOUTCONFIG TYPE REF TO /AWS1/CL_IOTJOBEXECSRLOUTCFG /AWS1/CL_IOTJOBEXECSRLOUTCFG

jobExecutionsRolloutConfig

IO_ABORTCONFIG TYPE REF TO /AWS1/CL_IOTABORTCONFIG /AWS1/CL_IOTABORTCONFIG

abortConfig

IO_TIMEOUTCONFIG TYPE REF TO /AWS1/CL_IOTTIMEOUTCONFIG /AWS1/CL_IOTTIMEOUTCONFIG

timeoutConfig

IT_TAGS TYPE /AWS1/CL_IOTTAG=>TT_TAGLIST TT_TAGLIST

Metadata that can be used to manage the job template.

IO_JOBEXECUTIONSRETRYCONFIG TYPE REF TO /AWS1/CL_IOTJOBEXECSRETRYCFG /AWS1/CL_IOTJOBEXECSRETRYCFG

Allows you to create the criteria to retry a job.

IT_MAINTENANCEWINDOWS TYPE /AWS1/CL_IOTMAINTENANCEWINDOW=>TT_MAINTENANCEWINDOWS TT_MAINTENANCEWINDOWS

Allows you to configure an optional maintenance window for the rollout of a job document to all devices in the target group for a job.

IT_DSTPACKAGEVERSIONS TYPE /AWS1/CL_IOTDSTPACKAGEVRSS_W=>TT_DESTINATIONPACKAGEVERSIONS TT_DESTINATIONPACKAGEVERSIONS

The package version Amazon Resource Names (ARNs) that are installed on the device when the job successfully completes. The package version must be in either the Published or Deprecated state when the job deploys. For more information, see Package version lifecycle.

Note:The following Length Constraints relates to a single ARN. Up to 25 package version ARNs are allowed.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_IOTCREATEJOBTMPLRSP /AWS1/CL_IOTCREATEJOBTMPLRSP