IoTJobsDataPlane.Client.
update_job_execution
(**kwargs)¶Updates the status of a job execution.
See also: AWS API Documentation
Request Syntax
response = client.update_job_execution(
jobId='string',
thingName='string',
status='QUEUED'|'IN_PROGRESS'|'SUCCEEDED'|'FAILED'|'TIMED_OUT'|'REJECTED'|'REMOVED'|'CANCELED',
statusDetails={
'string': 'string'
},
stepTimeoutInMinutes=123,
expectedVersion=123,
includeJobExecutionState=True|False,
includeJobDocument=True|False,
executionNumber=123
)
[REQUIRED]
The unique identifier assigned to this job when it was created.
[REQUIRED]
The name of the thing associated with the device.
[REQUIRED]
The new status for the job execution (IN_PROGRESS, FAILED, SUCCESS, or REJECTED). This must be specified on every update.
Optional. A collection of name/value pairs that describe the status of the job execution. If not specified, the statusDetails are unchanged.
UpdateJobExecution
, setting the status to IN_PROGRESS
and specifying a new timeout value in this field) the job execution status will be automatically set to TIMED_OUT
. Note that setting or resetting this timeout has no effect on that job execution timeout which may have been specified when the job was created ( CreateJob
using field timeoutConfig
).dict
Response Syntax
{
'executionState': {
'status': 'QUEUED'|'IN_PROGRESS'|'SUCCEEDED'|'FAILED'|'TIMED_OUT'|'REJECTED'|'REMOVED'|'CANCELED',
'statusDetails': {
'string': 'string'
},
'versionNumber': 123
},
'jobDocument': 'string'
}
Response Structure
(dict) --
executionState (dict) --
A JobExecutionState object.
status (string) --
The status of the job execution. Can be one of: "QUEUED", "IN_PROGRESS", "FAILED", "SUCCESS", "CANCELED", "REJECTED", or "REMOVED".
statusDetails (dict) --
A collection of name/value pairs that describe the status of the job execution.
versionNumber (integer) --
The version of the job execution. Job execution versions are incremented each time they are updated by a device.
jobDocument (string) --
The contents of the Job Documents.
Exceptions
IoTJobsDataPlane.Client.exceptions.InvalidRequestException
IoTJobsDataPlane.Client.exceptions.ResourceNotFoundException
IoTJobsDataPlane.Client.exceptions.ThrottlingException
IoTJobsDataPlane.Client.exceptions.ServiceUnavailableException
IoTJobsDataPlane.Client.exceptions.CertificateValidationException
IoTJobsDataPlane.Client.exceptions.InvalidStateTransitionException