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

Description

Derived from API version 2017-09-29 of the AWS service descriptions, licensed under Apache 2.0.

AWS IoT Jobs is a service that allows you to define a set of jobs — remote operations that are sent to and executed on one or more devices connected to AWS IoT. For example, you can define a job that instructs a set of devices to download and install application or firmware updates, reboot, rotate certificates, or perform remote troubleshooting operations.

To create a job, you make a job document which is a description of the remote operations to be performed, and you specify a list of targets that should perform the operations. The targets can be individual things, thing groups or both.

AWS IoT Jobs sends a message to inform the targets that a job is available. The target starts the execution of the job by downloading the job document, performing the operations it specifies, and reporting its progress to AWS IoT. The Jobs service provides commands to track the progress of a job on a specific target and for all the targets of the job

Synopsis

Service Configuration

defaultService :: Service Source #

API version 2017-09-29 of the Amazon IoT Jobs Data Plane SDK configuration.

Errors

Error matchers are designed for use with the functions provided by Control.Exception.Lens. This allows catching (and rethrowing) service specific errors returned by IoTJobsData.

CertificateValidationException

_CertificateValidationException :: AsError a => Fold a ServiceError Source #

The certificate is invalid.

InvalidRequestException

_InvalidRequestException :: AsError a => Fold a ServiceError Source #

The contents of the request were invalid. For example, this code is returned when an UpdateJobExecution request contains invalid status details. The message contains details about the error.

InvalidStateTransitionException

_InvalidStateTransitionException :: AsError a => Fold a ServiceError Source #

An update attempted to change the job execution to a state that is invalid because of the job execution's current state (for example, an attempt to change a request in state SUCCESS to state IN_PROGRESS). In this case, the body of the error message also contains the executionState field.

ResourceNotFoundException

_ResourceNotFoundException :: AsError a => Fold a ServiceError Source #

The specified resource does not exist.

ServiceUnavailableException

_ServiceUnavailableException :: AsError a => Fold a ServiceError Source #

The service is temporarily unavailable.

TerminalStateException

_TerminalStateException :: AsError a => Fold a ServiceError Source #

The job is in a terminal state.

ThrottlingException

_ThrottlingException :: AsError a => Fold a ServiceError Source #

The rate exceeds the limit.

Waiters

Waiters poll by repeatedly sending a request until some remote success condition configured by the Wait specification is fulfilled. The Wait specification determines how many attempts should be made, in addition to delay and retry strategies.

Operations

Some AWS operations return results that are incomplete and require subsequent requests in order to obtain the entire result set. The process of sending subsequent requests to continue where a previous request left off is called pagination. For example, the ListObjects operation of Amazon S3 returns up to 1000 objects at a time, and you must send subsequent requests with the appropriate Marker in order to retrieve the next page of results.

Operations that have an AWSPager instance can transparently perform subsequent requests, correctly setting Markers and other request facets to iterate through the entire result set of a truncated API operation. Operations which support this have an additional note in the documentation.

Many operations have the ability to filter results on the server side. See the individual operation parameters for details.

DescribeJobExecution

data DescribeJobExecution Source #

See: newDescribeJobExecution smart constructor.

Instances

Instances details
ToHeaders DescribeJobExecution Source # 
Instance details

Defined in Amazonka.IoTJobsData.DescribeJobExecution

ToPath DescribeJobExecution Source # 
Instance details

Defined in Amazonka.IoTJobsData.DescribeJobExecution

ToQuery DescribeJobExecution Source # 
Instance details

Defined in Amazonka.IoTJobsData.DescribeJobExecution

AWSRequest DescribeJobExecution Source # 
Instance details

Defined in Amazonka.IoTJobsData.DescribeJobExecution

Associated Types

type AWSResponse DescribeJobExecution #

Generic DescribeJobExecution Source # 
Instance details

Defined in Amazonka.IoTJobsData.DescribeJobExecution

Associated Types

type Rep DescribeJobExecution :: Type -> Type #

Read DescribeJobExecution Source # 
Instance details

Defined in Amazonka.IoTJobsData.DescribeJobExecution

Show DescribeJobExecution Source # 
Instance details

Defined in Amazonka.IoTJobsData.DescribeJobExecution

NFData DescribeJobExecution Source # 
Instance details

Defined in Amazonka.IoTJobsData.DescribeJobExecution

Methods

rnf :: DescribeJobExecution -> () #

Eq DescribeJobExecution Source # 
Instance details

Defined in Amazonka.IoTJobsData.DescribeJobExecution

Hashable DescribeJobExecution Source # 
Instance details

Defined in Amazonka.IoTJobsData.DescribeJobExecution

type AWSResponse DescribeJobExecution Source # 
Instance details

Defined in Amazonka.IoTJobsData.DescribeJobExecution

type Rep DescribeJobExecution Source # 
Instance details

Defined in Amazonka.IoTJobsData.DescribeJobExecution

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

newDescribeJobExecution Source #

Create a value of DescribeJobExecution 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:

DescribeJobExecution, describeJobExecution_executionNumber - Optional. A number that identifies a particular job execution on a particular device. If not specified, the latest job execution is returned.

$sel:includeJobDocument:DescribeJobExecution', describeJobExecution_includeJobDocument - Optional. When set to true, the response contains the job document. The default is false.

DescribeJobExecution, describeJobExecution_jobId - The unique identifier assigned to this job when it was created.

DescribeJobExecution, describeJobExecution_thingName - The thing name associated with the device the job execution is running on.

data DescribeJobExecutionResponse Source #

See: newDescribeJobExecutionResponse smart constructor.

Instances

Instances details
Generic DescribeJobExecutionResponse Source # 
Instance details

Defined in Amazonka.IoTJobsData.DescribeJobExecution

Associated Types

type Rep DescribeJobExecutionResponse :: Type -> Type #

Read DescribeJobExecutionResponse Source # 
Instance details

Defined in Amazonka.IoTJobsData.DescribeJobExecution

Show DescribeJobExecutionResponse Source # 
Instance details

Defined in Amazonka.IoTJobsData.DescribeJobExecution

NFData DescribeJobExecutionResponse Source # 
Instance details

Defined in Amazonka.IoTJobsData.DescribeJobExecution

Eq DescribeJobExecutionResponse Source # 
Instance details

Defined in Amazonka.IoTJobsData.DescribeJobExecution

type Rep DescribeJobExecutionResponse Source # 
Instance details

Defined in Amazonka.IoTJobsData.DescribeJobExecution

type Rep DescribeJobExecutionResponse = D1 ('MetaData "DescribeJobExecutionResponse" "Amazonka.IoTJobsData.DescribeJobExecution" "amazonka-iot-jobs-dataplane-2.0-8C3LLBSYBtOF7RBF3JFCku" 'False) (C1 ('MetaCons "DescribeJobExecutionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "execution") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe JobExecution)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newDescribeJobExecutionResponse Source #

Create a value of DescribeJobExecutionResponse 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:DescribeJobExecutionResponse', describeJobExecutionResponse_execution - Contains data about a job execution.

$sel:httpStatus:DescribeJobExecutionResponse', describeJobExecutionResponse_httpStatus - The response's http status code.

GetPendingJobExecutions

data GetPendingJobExecutions Source #

See: newGetPendingJobExecutions smart constructor.

Instances

Instances details
ToHeaders GetPendingJobExecutions Source # 
Instance details

Defined in Amazonka.IoTJobsData.GetPendingJobExecutions

ToPath GetPendingJobExecutions Source # 
Instance details

Defined in Amazonka.IoTJobsData.GetPendingJobExecutions

ToQuery GetPendingJobExecutions Source # 
Instance details

Defined in Amazonka.IoTJobsData.GetPendingJobExecutions

AWSRequest GetPendingJobExecutions Source # 
Instance details

Defined in Amazonka.IoTJobsData.GetPendingJobExecutions

Generic GetPendingJobExecutions Source # 
Instance details

Defined in Amazonka.IoTJobsData.GetPendingJobExecutions

Associated Types

type Rep GetPendingJobExecutions :: Type -> Type #

Read GetPendingJobExecutions Source # 
Instance details

Defined in Amazonka.IoTJobsData.GetPendingJobExecutions

Show GetPendingJobExecutions Source # 
Instance details

Defined in Amazonka.IoTJobsData.GetPendingJobExecutions

NFData GetPendingJobExecutions Source # 
Instance details

Defined in Amazonka.IoTJobsData.GetPendingJobExecutions

Methods

rnf :: GetPendingJobExecutions -> () #

Eq GetPendingJobExecutions Source # 
Instance details

Defined in Amazonka.IoTJobsData.GetPendingJobExecutions

Hashable GetPendingJobExecutions Source # 
Instance details

Defined in Amazonka.IoTJobsData.GetPendingJobExecutions

type AWSResponse GetPendingJobExecutions Source # 
Instance details

Defined in Amazonka.IoTJobsData.GetPendingJobExecutions

type Rep GetPendingJobExecutions Source # 
Instance details

Defined in Amazonka.IoTJobsData.GetPendingJobExecutions

type Rep GetPendingJobExecutions = D1 ('MetaData "GetPendingJobExecutions" "Amazonka.IoTJobsData.GetPendingJobExecutions" "amazonka-iot-jobs-dataplane-2.0-8C3LLBSYBtOF7RBF3JFCku" 'False) (C1 ('MetaCons "GetPendingJobExecutions'" 'PrefixI 'True) (S1 ('MetaSel ('Just "thingName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newGetPendingJobExecutions Source #

Create a value of GetPendingJobExecutions 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:

GetPendingJobExecutions, getPendingJobExecutions_thingName - The name of the thing that is executing the job.

data GetPendingJobExecutionsResponse Source #

See: newGetPendingJobExecutionsResponse smart constructor.

Instances

Instances details
Generic GetPendingJobExecutionsResponse Source # 
Instance details

Defined in Amazonka.IoTJobsData.GetPendingJobExecutions

Associated Types

type Rep GetPendingJobExecutionsResponse :: Type -> Type #

Read GetPendingJobExecutionsResponse Source # 
Instance details

Defined in Amazonka.IoTJobsData.GetPendingJobExecutions

Show GetPendingJobExecutionsResponse Source # 
Instance details

Defined in Amazonka.IoTJobsData.GetPendingJobExecutions

NFData GetPendingJobExecutionsResponse Source # 
Instance details

Defined in Amazonka.IoTJobsData.GetPendingJobExecutions

Eq GetPendingJobExecutionsResponse Source # 
Instance details

Defined in Amazonka.IoTJobsData.GetPendingJobExecutions

type Rep GetPendingJobExecutionsResponse Source # 
Instance details

Defined in Amazonka.IoTJobsData.GetPendingJobExecutions

type Rep GetPendingJobExecutionsResponse = D1 ('MetaData "GetPendingJobExecutionsResponse" "Amazonka.IoTJobsData.GetPendingJobExecutions" "amazonka-iot-jobs-dataplane-2.0-8C3LLBSYBtOF7RBF3JFCku" 'False) (C1 ('MetaCons "GetPendingJobExecutionsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "inProgressJobs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [JobExecutionSummary])) :*: (S1 ('MetaSel ('Just "queuedJobs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [JobExecutionSummary])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newGetPendingJobExecutionsResponse Source #

Create a value of GetPendingJobExecutionsResponse 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:inProgressJobs:GetPendingJobExecutionsResponse', getPendingJobExecutionsResponse_inProgressJobs - A list of JobExecutionSummary objects with status IN_PROGRESS.

$sel:queuedJobs:GetPendingJobExecutionsResponse', getPendingJobExecutionsResponse_queuedJobs - A list of JobExecutionSummary objects with status QUEUED.

$sel:httpStatus:GetPendingJobExecutionsResponse', getPendingJobExecutionsResponse_httpStatus - The response's http status code.

StartNextPendingJobExecution

data StartNextPendingJobExecution Source #

See: newStartNextPendingJobExecution smart constructor.

Instances

Instances details
ToJSON 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

AWSRequest 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 #

Read StartNextPendingJobExecution Source # 
Instance details

Defined in Amazonka.IoTJobsData.StartNextPendingJobExecution

Show StartNextPendingJobExecution Source # 
Instance details

Defined in Amazonka.IoTJobsData.StartNextPendingJobExecution

NFData StartNextPendingJobExecution Source # 
Instance details

Defined in Amazonka.IoTJobsData.StartNextPendingJobExecution

Eq StartNextPendingJobExecution Source # 
Instance details

Defined in Amazonka.IoTJobsData.StartNextPendingJobExecution

Hashable StartNextPendingJobExecution Source # 
Instance details

Defined in Amazonka.IoTJobsData.StartNextPendingJobExecution

type AWSResponse 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" "amazonka-iot-jobs-dataplane-2.0-8C3LLBSYBtOF7RBF3JFCku" 'False) (C1 ('MetaCons "StartNextPendingJobExecution'" 'PrefixI 'True) (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 "thingName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

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:

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.

data StartNextPendingJobExecutionResponse Source #

Instances

Instances details
Generic 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

NFData StartNextPendingJobExecutionResponse Source # 
Instance details

Defined in Amazonka.IoTJobsData.StartNextPendingJobExecution

Eq 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" "amazonka-iot-jobs-dataplane-2.0-8C3LLBSYBtOF7RBF3JFCku" '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.

UpdateJobExecution

data UpdateJobExecution Source #

See: newUpdateJobExecution smart constructor.

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.

data UpdateJobExecutionResponse Source #

See: newUpdateJobExecutionResponse smart constructor.

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.

Types

JobExecutionStatus

newtype JobExecutionStatus Source #

Instances

Instances details
FromJSON JobExecutionStatus Source # 
Instance details

Defined in Amazonka.IoTJobsData.Types.JobExecutionStatus

FromJSONKey JobExecutionStatus Source # 
Instance details

Defined in Amazonka.IoTJobsData.Types.JobExecutionStatus

ToJSON JobExecutionStatus Source # 
Instance details

Defined in Amazonka.IoTJobsData.Types.JobExecutionStatus

ToJSONKey JobExecutionStatus Source # 
Instance details

Defined in Amazonka.IoTJobsData.Types.JobExecutionStatus

ToByteString JobExecutionStatus Source # 
Instance details

Defined in Amazonka.IoTJobsData.Types.JobExecutionStatus

ToHeader JobExecutionStatus Source # 
Instance details

Defined in Amazonka.IoTJobsData.Types.JobExecutionStatus

ToLog JobExecutionStatus Source # 
Instance details

Defined in Amazonka.IoTJobsData.Types.JobExecutionStatus

ToQuery JobExecutionStatus Source # 
Instance details

Defined in Amazonka.IoTJobsData.Types.JobExecutionStatus

FromText JobExecutionStatus Source # 
Instance details

Defined in Amazonka.IoTJobsData.Types.JobExecutionStatus

ToText JobExecutionStatus Source # 
Instance details

Defined in Amazonka.IoTJobsData.Types.JobExecutionStatus

FromXML JobExecutionStatus Source # 
Instance details

Defined in Amazonka.IoTJobsData.Types.JobExecutionStatus

ToXML JobExecutionStatus Source # 
Instance details

Defined in Amazonka.IoTJobsData.Types.JobExecutionStatus

Generic JobExecutionStatus Source # 
Instance details

Defined in Amazonka.IoTJobsData.Types.JobExecutionStatus

Associated Types

type Rep JobExecutionStatus :: Type -> Type #

Read JobExecutionStatus Source # 
Instance details

Defined in Amazonka.IoTJobsData.Types.JobExecutionStatus

Show JobExecutionStatus Source # 
Instance details

Defined in Amazonka.IoTJobsData.Types.JobExecutionStatus

NFData JobExecutionStatus Source # 
Instance details

Defined in Amazonka.IoTJobsData.Types.JobExecutionStatus

Methods

rnf :: JobExecutionStatus -> () #

Eq JobExecutionStatus Source # 
Instance details

Defined in Amazonka.IoTJobsData.Types.JobExecutionStatus

Ord JobExecutionStatus Source # 
Instance details

Defined in Amazonka.IoTJobsData.Types.JobExecutionStatus

Hashable JobExecutionStatus Source # 
Instance details

Defined in Amazonka.IoTJobsData.Types.JobExecutionStatus

type Rep JobExecutionStatus Source # 
Instance details

Defined in Amazonka.IoTJobsData.Types.JobExecutionStatus

type Rep JobExecutionStatus = D1 ('MetaData "JobExecutionStatus" "Amazonka.IoTJobsData.Types.JobExecutionStatus" "amazonka-iot-jobs-dataplane-2.0-8C3LLBSYBtOF7RBF3JFCku" 'True) (C1 ('MetaCons "JobExecutionStatus'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromJobExecutionStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

JobExecution

data JobExecution Source #

Contains data about a job execution.

See: newJobExecution smart constructor.

Instances

Instances details
FromJSON JobExecution Source # 
Instance details

Defined in Amazonka.IoTJobsData.Types.JobExecution

Generic JobExecution Source # 
Instance details

Defined in Amazonka.IoTJobsData.Types.JobExecution

Associated Types

type Rep JobExecution :: Type -> Type #

Read JobExecution Source # 
Instance details

Defined in Amazonka.IoTJobsData.Types.JobExecution

Show JobExecution Source # 
Instance details

Defined in Amazonka.IoTJobsData.Types.JobExecution

NFData JobExecution Source # 
Instance details

Defined in Amazonka.IoTJobsData.Types.JobExecution

Methods

rnf :: JobExecution -> () #

Eq JobExecution Source # 
Instance details

Defined in Amazonka.IoTJobsData.Types.JobExecution

Hashable JobExecution Source # 
Instance details

Defined in Amazonka.IoTJobsData.Types.JobExecution

type Rep JobExecution Source # 
Instance details

Defined in Amazonka.IoTJobsData.Types.JobExecution

type Rep JobExecution = D1 ('MetaData "JobExecution" "Amazonka.IoTJobsData.Types.JobExecution" "amazonka-iot-jobs-dataplane-2.0-8C3LLBSYBtOF7RBF3JFCku" 'False) (C1 ('MetaCons "JobExecution'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "approximateSecondsBeforeTimedOut") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)) :*: S1 ('MetaSel ('Just "executionNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer))) :*: (S1 ('MetaSel ('Just "jobDocument") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "jobId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "lastUpdatedAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer))))) :*: ((S1 ('MetaSel ('Just "queuedAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)) :*: (S1 ('MetaSel ('Just "startedAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)) :*: S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe JobExecutionStatus)))) :*: (S1 ('MetaSel ('Just "statusDetails") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: (S1 ('MetaSel ('Just "thingName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "versionNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)))))))

newJobExecution :: JobExecution Source #

Create a value of JobExecution 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:approximateSecondsBeforeTimedOut:JobExecution', jobExecution_approximateSecondsBeforeTimedOut - The estimated number of seconds that remain before the job execution status will be changed to TIMED_OUT.

$sel:executionNumber:JobExecution', jobExecution_executionNumber - A number that identifies a particular job execution on a particular device. It can be used later in commands that return or update job execution information.

$sel:jobDocument:JobExecution', jobExecution_jobDocument - The content of the job document.

$sel:jobId:JobExecution', jobExecution_jobId - The unique identifier you assigned to this job when it was created.

$sel:lastUpdatedAt:JobExecution', jobExecution_lastUpdatedAt - The time, in milliseconds since the epoch, when the job execution was last updated.

$sel:queuedAt:JobExecution', jobExecution_queuedAt - The time, in milliseconds since the epoch, when the job execution was enqueued.

$sel:startedAt:JobExecution', jobExecution_startedAt - The time, in milliseconds since the epoch, when the job execution was started.

$sel:status:JobExecution', jobExecution_status - The status of the job execution. Can be one of: "QUEUED", "IN_PROGRESS", "FAILED", "SUCCESS", "CANCELED", "REJECTED", or "REMOVED".

$sel:statusDetails:JobExecution', jobExecution_statusDetails - A collection of name/value pairs that describe the status of the job execution.

$sel:thingName:JobExecution', jobExecution_thingName - The name of the thing that is executing the job.

$sel:versionNumber:JobExecution', jobExecution_versionNumber - The version of the job execution. Job execution versions are incremented each time they are updated by a device.

JobExecutionState

data JobExecutionState Source #

Contains data about the state of a job execution.

See: newJobExecutionState smart constructor.

Instances

Instances details
FromJSON JobExecutionState Source # 
Instance details

Defined in Amazonka.IoTJobsData.Types.JobExecutionState

Generic JobExecutionState Source # 
Instance details

Defined in Amazonka.IoTJobsData.Types.JobExecutionState

Associated Types

type Rep JobExecutionState :: Type -> Type #

Read JobExecutionState Source # 
Instance details

Defined in Amazonka.IoTJobsData.Types.JobExecutionState

Show JobExecutionState Source # 
Instance details

Defined in Amazonka.IoTJobsData.Types.JobExecutionState

NFData JobExecutionState Source # 
Instance details

Defined in Amazonka.IoTJobsData.Types.JobExecutionState

Methods

rnf :: JobExecutionState -> () #

Eq JobExecutionState Source # 
Instance details

Defined in Amazonka.IoTJobsData.Types.JobExecutionState

Hashable JobExecutionState Source # 
Instance details

Defined in Amazonka.IoTJobsData.Types.JobExecutionState

type Rep JobExecutionState Source # 
Instance details

Defined in Amazonka.IoTJobsData.Types.JobExecutionState

type Rep JobExecutionState = D1 ('MetaData "JobExecutionState" "Amazonka.IoTJobsData.Types.JobExecutionState" "amazonka-iot-jobs-dataplane-2.0-8C3LLBSYBtOF7RBF3JFCku" 'False) (C1 ('MetaCons "JobExecutionState'" 'PrefixI 'True) (S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe JobExecutionStatus)) :*: (S1 ('MetaSel ('Just "statusDetails") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "versionNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)))))

newJobExecutionState :: JobExecutionState Source #

Create a value of JobExecutionState 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:status:JobExecutionState', jobExecutionState_status - The status of the job execution. Can be one of: "QUEUED", "IN_PROGRESS", "FAILED", "SUCCESS", "CANCELED", "REJECTED", or "REMOVED".

$sel:statusDetails:JobExecutionState', jobExecutionState_statusDetails - A collection of name/value pairs that describe the status of the job execution.

$sel:versionNumber:JobExecutionState', jobExecutionState_versionNumber - The version of the job execution. Job execution versions are incremented each time they are updated by a device.

JobExecutionSummary

data JobExecutionSummary Source #

Contains a subset of information about a job execution.

See: newJobExecutionSummary smart constructor.

Instances

Instances details
FromJSON JobExecutionSummary Source # 
Instance details

Defined in Amazonka.IoTJobsData.Types.JobExecutionSummary

Generic JobExecutionSummary Source # 
Instance details

Defined in Amazonka.IoTJobsData.Types.JobExecutionSummary

Associated Types

type Rep JobExecutionSummary :: Type -> Type #

Read JobExecutionSummary Source # 
Instance details

Defined in Amazonka.IoTJobsData.Types.JobExecutionSummary

Show JobExecutionSummary Source # 
Instance details

Defined in Amazonka.IoTJobsData.Types.JobExecutionSummary

NFData JobExecutionSummary Source # 
Instance details

Defined in Amazonka.IoTJobsData.Types.JobExecutionSummary

Methods

rnf :: JobExecutionSummary -> () #

Eq JobExecutionSummary Source # 
Instance details

Defined in Amazonka.IoTJobsData.Types.JobExecutionSummary

Hashable JobExecutionSummary Source # 
Instance details

Defined in Amazonka.IoTJobsData.Types.JobExecutionSummary

type Rep JobExecutionSummary Source # 
Instance details

Defined in Amazonka.IoTJobsData.Types.JobExecutionSummary

type Rep JobExecutionSummary = D1 ('MetaData "JobExecutionSummary" "Amazonka.IoTJobsData.Types.JobExecutionSummary" "amazonka-iot-jobs-dataplane-2.0-8C3LLBSYBtOF7RBF3JFCku" 'False) (C1 ('MetaCons "JobExecutionSummary'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "executionNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)) :*: (S1 ('MetaSel ('Just "jobId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "lastUpdatedAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)))) :*: (S1 ('MetaSel ('Just "queuedAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)) :*: (S1 ('MetaSel ('Just "startedAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)) :*: S1 ('MetaSel ('Just "versionNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer))))))

newJobExecutionSummary :: JobExecutionSummary Source #

Create a value of JobExecutionSummary 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:executionNumber:JobExecutionSummary', jobExecutionSummary_executionNumber - A number that identifies a particular job execution on a particular device.

$sel:jobId:JobExecutionSummary', jobExecutionSummary_jobId - The unique identifier you assigned to this job when it was created.

$sel:lastUpdatedAt:JobExecutionSummary', jobExecutionSummary_lastUpdatedAt - The time, in milliseconds since the epoch, when the job execution was last updated.

$sel:queuedAt:JobExecutionSummary', jobExecutionSummary_queuedAt - The time, in milliseconds since the epoch, when the job execution was enqueued.

$sel:startedAt:JobExecutionSummary', jobExecutionSummary_startedAt - The time, in milliseconds since the epoch, when the job execution started.

$sel:versionNumber:JobExecutionSummary', jobExecutionSummary_versionNumber - The version of the job execution. Job execution versions are incremented each time AWS IoT Jobs receives an update from a device.