libZSservicesZSamazonka-iot-jobs-dataplaneZSamazonka-iot-jobs-dataplane
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.IoTJobsData.StartNextPendingJobExecution

Description

Gets and starts the next pending (status IN_PROGRESS or QUEUED) job execution for a thing.

Synopsis

Creating a Request

data StartNextPendingJobExecution Source #

See: newStartNextPendingJobExecution smart constructor.

Constructors

StartNextPendingJobExecution' 

Fields

  • stepTimeoutInMinutes :: Maybe Integer

    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).

  • statusDetails :: Maybe (HashMap Text Text)

    A collection of name/value pairs that describe the status of the job execution. If not specified, the statusDetails are unchanged.

  • thingName :: Text

    The name of the thing associated with the device.

Instances

Instances details
Eq StartNextPendingJobExecution Source # 
Instance details

Defined in Amazonka.IoTJobsData.StartNextPendingJobExecution

Read StartNextPendingJobExecution Source # 
Instance details

Defined in Amazonka.IoTJobsData.StartNextPendingJobExecution

Show StartNextPendingJobExecution Source # 
Instance details

Defined in Amazonka.IoTJobsData.StartNextPendingJobExecution

Generic StartNextPendingJobExecution Source # 
Instance details

Defined in Amazonka.IoTJobsData.StartNextPendingJobExecution

Associated Types

type Rep StartNextPendingJobExecution :: Type -> Type #

NFData StartNextPendingJobExecution Source # 
Instance details

Defined in Amazonka.IoTJobsData.StartNextPendingJobExecution

Hashable StartNextPendingJobExecution Source # 
Instance details

Defined in Amazonka.IoTJobsData.StartNextPendingJobExecution

ToJSON StartNextPendingJobExecution Source # 
Instance details

Defined in Amazonka.IoTJobsData.StartNextPendingJobExecution

AWSRequest StartNextPendingJobExecution Source # 
Instance details

Defined in Amazonka.IoTJobsData.StartNextPendingJobExecution

ToHeaders StartNextPendingJobExecution Source # 
Instance details

Defined in Amazonka.IoTJobsData.StartNextPendingJobExecution

ToPath StartNextPendingJobExecution Source # 
Instance details

Defined in Amazonka.IoTJobsData.StartNextPendingJobExecution

ToQuery StartNextPendingJobExecution Source # 
Instance details

Defined in Amazonka.IoTJobsData.StartNextPendingJobExecution

type Rep StartNextPendingJobExecution Source # 
Instance details

Defined in Amazonka.IoTJobsData.StartNextPendingJobExecution

type Rep StartNextPendingJobExecution = D1 ('MetaData "StartNextPendingJobExecution" "Amazonka.IoTJobsData.StartNextPendingJobExecution" "libZSservicesZSamazonka-iot-jobs-dataplaneZSamazonka-iot-jobs-dataplane" 'False) (C1 ('MetaCons "StartNextPendingJobExecution'" 'PrefixI 'True) (S1 ('MetaSel ('Just "stepTimeoutInMinutes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)) :*: (S1 ('MetaSel ('Just "statusDetails") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "thingName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse StartNextPendingJobExecution Source # 
Instance details

Defined in Amazonka.IoTJobsData.StartNextPendingJobExecution

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 #

Constructors

StartNextPendingJobExecutionResponse' 

Fields

Instances

Instances details
Eq StartNextPendingJobExecutionResponse Source # 
Instance details

Defined in Amazonka.IoTJobsData.StartNextPendingJobExecution

Read StartNextPendingJobExecutionResponse Source # 
Instance details

Defined in Amazonka.IoTJobsData.StartNextPendingJobExecution

Show StartNextPendingJobExecutionResponse Source # 
Instance details

Defined in Amazonka.IoTJobsData.StartNextPendingJobExecution

Generic StartNextPendingJobExecutionResponse Source # 
Instance details

Defined in Amazonka.IoTJobsData.StartNextPendingJobExecution

NFData StartNextPendingJobExecutionResponse Source # 
Instance details

Defined in Amazonka.IoTJobsData.StartNextPendingJobExecution

type Rep StartNextPendingJobExecutionResponse Source # 
Instance details

Defined in Amazonka.IoTJobsData.StartNextPendingJobExecution

type Rep StartNextPendingJobExecutionResponse = D1 ('MetaData "StartNextPendingJobExecutionResponse" "Amazonka.IoTJobsData.StartNextPendingJobExecution" "libZSservicesZSamazonka-iot-jobs-dataplaneZSamazonka-iot-jobs-dataplane" 'False) (C1 ('MetaCons "StartNextPendingJobExecutionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "execution") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe JobExecution)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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