CreateJob
data class CreateJob(val jobId: JobId, val targets: List<ARN>, val document: String, val description: String? = null, val targetSelection: TargetSelection? = null, val timeoutConfig: TimeoutConfig? = null) : IotAction<CreatedJob> (source)
Creates a job which is sent to the targets (thing or thing group ARNs), carrying the inline JSON document. A duplicate jobId is refused with ResourceAlreadyExistsException (409).
The document is required: documentSource (an S3 link instead of an inline document) is not supported, and neither are the rollout, retry, abort and scheduling configs.
Constructors
Link copied to clipboard
constructor(jobId: JobId, targets: List<ARN>, document: String, description: String? = null, targetSelection: TargetSelection? = null, timeoutConfig: TimeoutConfig? = null)