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 |
Gets and starts the next pending (status IN_PROGRESS or QUEUED) job execution for a thing.
Synopsis
- data StartNextPendingJobExecution = StartNextPendingJobExecution' {}
- newStartNextPendingJobExecution :: Text -> StartNextPendingJobExecution
- startNextPendingJobExecution_stepTimeoutInMinutes :: Lens' StartNextPendingJobExecution (Maybe Integer)
- startNextPendingJobExecution_statusDetails :: Lens' StartNextPendingJobExecution (Maybe (HashMap Text Text))
- startNextPendingJobExecution_thingName :: Lens' StartNextPendingJobExecution Text
- data StartNextPendingJobExecutionResponse = StartNextPendingJobExecutionResponse' {}
- newStartNextPendingJobExecutionResponse :: Int -> StartNextPendingJobExecutionResponse
- startNextPendingJobExecutionResponse_execution :: Lens' StartNextPendingJobExecutionResponse (Maybe JobExecution)
- startNextPendingJobExecutionResponse_httpStatus :: Lens' StartNextPendingJobExecutionResponse Int
Creating a Request
data StartNextPendingJobExecution Source #
See: newStartNextPendingJobExecution
smart constructor.
StartNextPendingJobExecution' | |
|
Instances
newStartNextPendingJobExecution Source #
Create a value of StartNextPendingJobExecution
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:stepTimeoutInMinutes:StartNextPendingJobExecution'
, startNextPendingJobExecution_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 calling
UpdateJobExecution
, setting the status to IN_PROGRESS
and specifying
a new timeout value in field stepTimeoutInMinutes
) the job execution
status will be automatically set to TIMED_OUT
. Note that setting 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:StartNextPendingJobExecution'
, startNextPendingJobExecution_statusDetails
- A collection of name/value pairs that describe the status of the job
execution. If not specified, the statusDetails are unchanged.
$sel:thingName:StartNextPendingJobExecution'
, startNextPendingJobExecution_thingName
- The name of the thing associated with the device.
Request Lenses
startNextPendingJobExecution_stepTimeoutInMinutes :: Lens' StartNextPendingJobExecution (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 calling
UpdateJobExecution
, setting the status to IN_PROGRESS
and specifying
a new timeout value in field stepTimeoutInMinutes
) the job execution
status will be automatically set to TIMED_OUT
. Note that setting this
timeout has no effect on that job execution timeout which may have been
specified when the job was created (CreateJob
using field
timeoutConfig
).
startNextPendingJobExecution_statusDetails :: Lens' StartNextPendingJobExecution (Maybe (HashMap Text Text)) Source #
A collection of name/value pairs that describe the status of the job execution. If not specified, the statusDetails are unchanged.
startNextPendingJobExecution_thingName :: Lens' StartNextPendingJobExecution Text Source #
The name of the thing associated with the device.
Destructuring the Response
data StartNextPendingJobExecutionResponse Source #
See: newStartNextPendingJobExecutionResponse
smart constructor.
StartNextPendingJobExecutionResponse' | |
|
Instances
newStartNextPendingJobExecutionResponse Source #
Create a value of StartNextPendingJobExecutionResponse
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:execution:StartNextPendingJobExecutionResponse'
, startNextPendingJobExecutionResponse_execution
- A JobExecution object.
$sel:httpStatus:StartNextPendingJobExecutionResponse'
, startNextPendingJobExecutionResponse_httpStatus
- The response's http status code.
Response Lenses
startNextPendingJobExecutionResponse_execution :: Lens' StartNextPendingJobExecutionResponse (Maybe JobExecution) Source #
A JobExecution object.
startNextPendingJobExecutionResponse_httpStatus :: Lens' StartNextPendingJobExecutionResponse Int Source #
The response's http status code.