| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.IoTJobsData.StartNextPendingJobExecution
Description
Gets and starts the next pending (status IN_PROGRESS or QUEUED) job execution for a thing.
Synopsis
- data StartNextPendingJobExecution = StartNextPendingJobExecution' {}
- newStartNextPendingJobExecution :: Text -> StartNextPendingJobExecution
- startNextPendingJobExecution_statusDetails :: Lens' StartNextPendingJobExecution (Maybe (HashMap Text Text))
- startNextPendingJobExecution_stepTimeoutInMinutes :: Lens' StartNextPendingJobExecution (Maybe Integer)
- 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.
Constructors
| StartNextPendingJobExecution' | |
Fields
| |
Instances
newStartNextPendingJobExecution Source #
Arguments
| :: Text | |
| -> StartNextPendingJobExecution |
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:
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: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).
StartNextPendingJobExecution, startNextPendingJobExecution_thingName - The name of the thing associated with the device.
Request Lenses
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_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_thingName :: Lens' StartNextPendingJobExecution Text Source #
The name of the thing associated with the device.
Destructuring the Response
data StartNextPendingJobExecutionResponse Source #
See: newStartNextPendingJobExecutionResponse smart constructor.
Constructors
| StartNextPendingJobExecutionResponse' | |
Fields
| |
Instances
newStartNextPendingJobExecutionResponse Source #
Arguments
| :: Int | |
| -> StartNextPendingJobExecutionResponse |
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.