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

Description

Updates the status of a job execution.

Synopsis

Creating a Request

data UpdateJobExecution Source #

See: newUpdateJobExecution smart constructor.

Constructors

UpdateJobExecution' 

Fields

  • includeJobDocument :: Maybe Bool

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

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

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

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

  • includeJobExecutionState :: Maybe Bool

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

  • 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
Eq UpdateJobExecution Source # 
Instance details

Defined in Amazonka.IoTJobsData.UpdateJobExecution

Read UpdateJobExecution Source # 
Instance details

Defined in Amazonka.IoTJobsData.UpdateJobExecution

Show UpdateJobExecution Source # 
Instance details

Defined in Amazonka.IoTJobsData.UpdateJobExecution

Generic UpdateJobExecution Source # 
Instance details

Defined in Amazonka.IoTJobsData.UpdateJobExecution

Associated Types

type Rep UpdateJobExecution :: Type -> Type #

NFData UpdateJobExecution Source # 
Instance details

Defined in Amazonka.IoTJobsData.UpdateJobExecution

Methods

rnf :: UpdateJobExecution -> () #

Hashable UpdateJobExecution Source # 
Instance details

Defined in Amazonka.IoTJobsData.UpdateJobExecution

ToJSON UpdateJobExecution Source # 
Instance details

Defined in Amazonka.IoTJobsData.UpdateJobExecution

AWSRequest UpdateJobExecution Source # 
Instance details

Defined in Amazonka.IoTJobsData.UpdateJobExecution

Associated Types

type AWSResponse 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

type Rep UpdateJobExecution Source # 
Instance details

Defined in Amazonka.IoTJobsData.UpdateJobExecution

type Rep UpdateJobExecution = D1 ('MetaData "UpdateJobExecution" "Amazonka.IoTJobsData.UpdateJobExecution" "libZSservicesZSamazonka-iot-jobs-dataplaneZSamazonka-iot-jobs-dataplane" 'False) (C1 ('MetaCons "UpdateJobExecution'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "includeJobDocument") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: 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 "executionNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)))) :*: ((S1 ('MetaSel ('Just "expectedVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)) :*: S1 ('MetaSel ('Just "includeJobExecutionState") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))) :*: (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))))))
type AWSResponse UpdateJobExecution Source # 
Instance details

Defined in Amazonka.IoTJobsData.UpdateJobExecution

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:

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

Constructors

UpdateJobExecutionResponse' 

Fields

Instances

Instances details
Eq UpdateJobExecutionResponse Source # 
Instance details

Defined in Amazonka.IoTJobsData.UpdateJobExecution

Read UpdateJobExecutionResponse Source # 
Instance details

Defined in Amazonka.IoTJobsData.UpdateJobExecution

Show UpdateJobExecutionResponse Source # 
Instance details

Defined in Amazonka.IoTJobsData.UpdateJobExecution

Generic UpdateJobExecutionResponse Source # 
Instance details

Defined in Amazonka.IoTJobsData.UpdateJobExecution

Associated Types

type Rep UpdateJobExecutionResponse :: Type -> Type #

NFData 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" "libZSservicesZSamazonka-iot-jobs-dataplaneZSamazonka-iot-jobs-dataplane" 'False) (C1 ('MetaCons "UpdateJobExecutionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "jobDocument") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "executionState") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe JobExecutionState)) :*: 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: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