Package-level declarations

Types

Link copied to clipboard
@JsonSerializable
data class JobExecution(val jobId: JobId, val status: JobExecutionStatus, val versionNumber: Long, val thingName: ThingName? = null, val statusDetails: Map<String, String>? = null, val queuedAt: Timestamp? = null, val startedAt: Timestamp? = null, val lastUpdatedAt: Timestamp? = null, val approximateSecondsBeforeTimedOut: Long? = null, val executionNumber: Long? = null, val jobDocument: String? = null)

A job execution as the jobs data plane reports it. Unlike the control plane, the status details are a bare map and the job document travels inline. All timestamps are seconds since the epoch.

Link copied to clipboard

Of these, a device may only set IN_PROGRESS, SUCCEEDED, FAILED and REJECTED through UpdateJobExecution.

Link copied to clipboard
class JobId : AbstractValue<String>

A job identifier as the jobs data plane accepts it: alphanumerics, "-" and "_", or the reserved literal $next which addresses the device's next pending execution.

Link copied to clipboard
class ThingName : AbstractValue<String>

AWS does not allow slashes in a thing name, which is what lets it be dropped straight into the /things/{thingName}/jobs path.