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)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun toRequest(): Request
Link copied to clipboard
open override fun toResult(response: Response): Result<CreatedJob, RemoteFailure>