Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Updates the status of a job execution.
Synopsis
- data UpdateJobExecution = UpdateJobExecution' {}
- newUpdateJobExecution :: Text -> Text -> JobExecutionStatus -> UpdateJobExecution
- updateJobExecution_includeJobDocument :: Lens' UpdateJobExecution (Maybe Bool)
- updateJobExecution_stepTimeoutInMinutes :: Lens' UpdateJobExecution (Maybe Integer)
- updateJobExecution_statusDetails :: Lens' UpdateJobExecution (Maybe (HashMap Text Text))
- updateJobExecution_executionNumber :: Lens' UpdateJobExecution (Maybe Integer)
- updateJobExecution_expectedVersion :: Lens' UpdateJobExecution (Maybe Integer)
- updateJobExecution_includeJobExecutionState :: Lens' UpdateJobExecution (Maybe Bool)
- updateJobExecution_jobId :: Lens' UpdateJobExecution Text
- updateJobExecution_thingName :: Lens' UpdateJobExecution Text
- updateJobExecution_status :: Lens' UpdateJobExecution JobExecutionStatus
- data UpdateJobExecutionResponse = UpdateJobExecutionResponse' {}
- newUpdateJobExecutionResponse :: Int -> UpdateJobExecutionResponse
- updateJobExecutionResponse_jobDocument :: Lens' UpdateJobExecutionResponse (Maybe Text)
- updateJobExecutionResponse_executionState :: Lens' UpdateJobExecutionResponse (Maybe JobExecutionState)
- updateJobExecutionResponse_httpStatus :: Lens' UpdateJobExecutionResponse Int
Creating a Request
data UpdateJobExecution Source #
See: newUpdateJobExecution
smart constructor.
UpdateJobExecution' | |
|
Instances
newUpdateJobExecution Source #
:: Text | |
-> Text | |
-> JobExecutionStatus | |
-> UpdateJobExecution |
Create a value of UpdateJobExecution
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:includeJobDocument:UpdateJobExecution'
, updateJobExecution_includeJobDocument
- Optional. When set to true, the response contains the job document. The
default is false.
$sel:stepTimeoutInMinutes:UpdateJobExecution'
, updateJobExecution_stepTimeoutInMinutes
- Specifies the amount of time this device has to finish execution of this
job. If the job execution status is not set to a terminal state before
this timer expires, or before the timer is reset (by again calling
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
).
$sel:statusDetails:UpdateJobExecution'
, updateJobExecution_statusDetails
- Optional. A collection of name/value pairs that describe the status of
the job execution. If not specified, the statusDetails are unchanged.
$sel:executionNumber:UpdateJobExecution'
, updateJobExecution_executionNumber
- Optional. A number that identifies a particular job execution on a
particular device.
$sel:expectedVersion:UpdateJobExecution'
, updateJobExecution_expectedVersion
- Optional. The expected current version of the job execution. Each time
you update the job execution, its version is incremented. If the version
of the job execution stored in Jobs does not match, the update is
rejected with a VersionMismatch error, and an ErrorResponse that
contains the current job execution status data is returned. (This makes
it unnecessary to perform a separate DescribeJobExecution request in
order to obtain the job execution status data.)
$sel:includeJobExecutionState:UpdateJobExecution'
, updateJobExecution_includeJobExecutionState
- Optional. When included and set to true, the response contains the
JobExecutionState data. The default is false.
$sel:jobId:UpdateJobExecution'
, updateJobExecution_jobId
- The unique identifier assigned to this job when it was created.
$sel:thingName:UpdateJobExecution'
, updateJobExecution_thingName
- The name of the thing associated with the device.
$sel:status:UpdateJobExecution'
, updateJobExecution_status
- The new status for the job execution (IN_PROGRESS, FAILED, SUCCESS, or
REJECTED). This must be specified on every update.
Request Lenses
updateJobExecution_includeJobDocument :: Lens' UpdateJobExecution (Maybe Bool) Source #
Optional. When set to true, the response contains the job document. The default is false.
updateJobExecution_stepTimeoutInMinutes :: Lens' UpdateJobExecution (Maybe Integer) Source #
Specifies the amount of time this device has to finish execution of this
job. If the job execution status is not set to a terminal state before
this timer expires, or before the timer is reset (by again calling
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
).
updateJobExecution_statusDetails :: Lens' UpdateJobExecution (Maybe (HashMap Text Text)) Source #
Optional. A collection of name/value pairs that describe the status of the job execution. If not specified, the statusDetails are unchanged.
updateJobExecution_executionNumber :: Lens' UpdateJobExecution (Maybe Integer) Source #
Optional. A number that identifies a particular job execution on a particular device.
updateJobExecution_expectedVersion :: Lens' UpdateJobExecution (Maybe Integer) Source #
Optional. The expected current version of the job execution. Each time you update the job execution, its version is incremented. If the version of the job execution stored in Jobs does not match, the update is rejected with a VersionMismatch error, and an ErrorResponse that contains the current job execution status data is returned. (This makes it unnecessary to perform a separate DescribeJobExecution request in order to obtain the job execution status data.)
updateJobExecution_includeJobExecutionState :: Lens' UpdateJobExecution (Maybe Bool) Source #
Optional. When included and set to true, the response contains the JobExecutionState data. The default is false.
updateJobExecution_jobId :: Lens' UpdateJobExecution Text Source #
The unique identifier assigned to this job when it was created.
updateJobExecution_thingName :: Lens' UpdateJobExecution Text Source #
The name of the thing associated with the device.
updateJobExecution_status :: Lens' UpdateJobExecution JobExecutionStatus Source #
The new status for the job execution (IN_PROGRESS, FAILED, SUCCESS, or REJECTED). This must be specified on every update.
Destructuring the Response
data UpdateJobExecutionResponse Source #
See: newUpdateJobExecutionResponse
smart constructor.
UpdateJobExecutionResponse' | |
|
Instances
newUpdateJobExecutionResponse Source #
Create a value of UpdateJobExecutionResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:jobDocument:UpdateJobExecutionResponse'
, updateJobExecutionResponse_jobDocument
- The contents of the Job Documents.
$sel:executionState:UpdateJobExecutionResponse'
, updateJobExecutionResponse_executionState
- A JobExecutionState object.
$sel:httpStatus:UpdateJobExecutionResponse'
, updateJobExecutionResponse_httpStatus
- The response's http status code.
Response Lenses
updateJobExecutionResponse_jobDocument :: Lens' UpdateJobExecutionResponse (Maybe Text) Source #
The contents of the Job Documents.
updateJobExecutionResponse_executionState :: Lens' UpdateJobExecutionResponse (Maybe JobExecutionState) Source #
A JobExecutionState object.
updateJobExecutionResponse_httpStatus :: Lens' UpdateJobExecutionResponse Int Source #
The response's http status code.