amazonka-iot-jobs-dataplane-2.0: Amazon IoT Jobs Data Plane SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.IoTJobsData.UpdateJobExecution

Description

Updates the status of a job execution.

Synopsis

Creating a Request

data UpdateJobExecution Source #

See: newUpdateJobExecution smart constructor.

Constructors

UpdateJobExecution' 

Fields

  • executionNumber :: Maybe Integer

    Optional. A number that identifies a particular job execution on a particular device.

  • expectedVersion :: Maybe Integer

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

  • includeJobDocument :: Maybe Bool

    Optional. When set to true, the response contains the job document. The default is false.

  • includeJobExecutionState :: Maybe Bool

    Optional. When included and set to true, the response contains the JobExecutionState data. The default is false.

  • statusDetails :: Maybe (HashMap Text Text)

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

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

  • jobId :: Text

    The unique identifier assigned to this job when it was created.

  • thingName :: Text

    The name of the thing associated with the device.

  • status :: JobExecutionStatus

    The new status for the job execution (IN_PROGRESS, FAILED, SUCCESS, or REJECTED). This must be specified on every update.

Instances

Instances details
ToJSON UpdateJobExecution Source # 
Instance details

Defined in Amazonka.IoTJobsData.UpdateJobExecution

ToHeaders UpdateJobExecution Source # 
Instance details

Defined in Amazonka.IoTJobsData.UpdateJobExecution

ToPath UpdateJobExecution Source # 
Instance details

Defined in Amazonka.IoTJobsData.UpdateJobExecution

ToQuery UpdateJobExecution Source # 
Instance details

Defined in Amazonka.IoTJobsData.UpdateJobExecution

AWSRequest UpdateJobExecution Source # 
Instance details

Defined in Amazonka.IoTJobsData.UpdateJobExecution

Associated Types

type AWSResponse UpdateJobExecution #

Generic UpdateJobExecution Source # 
Instance details

Defined in Amazonka.IoTJobsData.UpdateJobExecution

Associated Types

type Rep UpdateJobExecution :: Type -> Type #

Read UpdateJobExecution Source # 
Instance details

Defined in Amazonka.IoTJobsData.UpdateJobExecution

Show UpdateJobExecution Source # 
Instance details

Defined in Amazonka.IoTJobsData.UpdateJobExecution

NFData UpdateJobExecution Source # 
Instance details

Defined in Amazonka.IoTJobsData.UpdateJobExecution

Methods

rnf :: UpdateJobExecution -> () #

Eq UpdateJobExecution Source # 
Instance details

Defined in Amazonka.IoTJobsData.UpdateJobExecution

Hashable UpdateJobExecution Source # 
Instance details

Defined in Amazonka.IoTJobsData.UpdateJobExecution

type AWSResponse UpdateJobExecution Source # 
Instance details

Defined in Amazonka.IoTJobsData.UpdateJobExecution

type Rep UpdateJobExecution Source # 
Instance details

Defined in Amazonka.IoTJobsData.UpdateJobExecution

type Rep UpdateJobExecution = D1 ('MetaData "UpdateJobExecution" "Amazonka.IoTJobsData.UpdateJobExecution" "amazonka-iot-jobs-dataplane-2.0-8C3LLBSYBtOF7RBF3JFCku" 'False) (C1 ('MetaCons "UpdateJobExecution'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "executionNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)) :*: S1 ('MetaSel ('Just "expectedVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer))) :*: (S1 ('MetaSel ('Just "includeJobDocument") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "includeJobExecutionState") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)))) :*: ((S1 ('MetaSel ('Just "statusDetails") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "stepTimeoutInMinutes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer))) :*: (S1 ('MetaSel ('Just "jobId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "thingName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 JobExecutionStatus))))))

newUpdateJobExecution Source #

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:

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:includeJobDocument:UpdateJobExecution', updateJobExecution_includeJobDocument - Optional. When set to true, the response contains the job document. The default is false.

$sel:includeJobExecutionState:UpdateJobExecution', updateJobExecution_includeJobExecutionState - Optional. When included and set to true, the response contains the JobExecutionState data. The default is false.

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

UpdateJobExecution, updateJobExecution_jobId - The unique identifier assigned to this job when it was created.

UpdateJobExecution, updateJobExecution_thingName - The name of the thing associated with the device.

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_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_includeJobDocument :: Lens' UpdateJobExecution (Maybe Bool) Source #

Optional. When set to true, the response contains the job document. The default is false.

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

Constructors

UpdateJobExecutionResponse' 

Fields

Instances

Instances details
Generic UpdateJobExecutionResponse Source # 
Instance details

Defined in Amazonka.IoTJobsData.UpdateJobExecution

Associated Types

type Rep UpdateJobExecutionResponse :: Type -> Type #

Read UpdateJobExecutionResponse Source # 
Instance details

Defined in Amazonka.IoTJobsData.UpdateJobExecution

Show UpdateJobExecutionResponse Source # 
Instance details

Defined in Amazonka.IoTJobsData.UpdateJobExecution

NFData UpdateJobExecutionResponse Source # 
Instance details

Defined in Amazonka.IoTJobsData.UpdateJobExecution

Eq UpdateJobExecutionResponse Source # 
Instance details

Defined in Amazonka.IoTJobsData.UpdateJobExecution

type Rep UpdateJobExecutionResponse Source # 
Instance details

Defined in Amazonka.IoTJobsData.UpdateJobExecution

type Rep UpdateJobExecutionResponse = D1 ('MetaData "UpdateJobExecutionResponse" "Amazonka.IoTJobsData.UpdateJobExecution" "amazonka-iot-jobs-dataplane-2.0-8C3LLBSYBtOF7RBF3JFCku" 'False) (C1 ('MetaCons "UpdateJobExecutionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "executionState") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe JobExecutionState)) :*: (S1 ('MetaSel ('Just "jobDocument") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

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:executionState:UpdateJobExecutionResponse', updateJobExecutionResponse_executionState - A JobExecutionState object.

UpdateJobExecutionResponse, updateJobExecutionResponse_jobDocument - The contents of the Job Documents.

$sel:httpStatus:UpdateJobExecutionResponse', updateJobExecutionResponse_httpStatus - The response's http status code.

Response Lenses