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

Description

 
Synopsis

Service Configuration

defaultService :: Service Source #

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

Errors

_TerminalStateException :: AsError a => Getting (First ServiceError) a ServiceError Source #

The job is in a terminal state.

_InvalidRequestException :: AsError a => Getting (First ServiceError) 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.

_ServiceUnavailableException :: AsError a => Getting (First ServiceError) a ServiceError Source #

The service is temporarily unavailable.

_InvalidStateTransitionException :: AsError a => Getting (First ServiceError) 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 :: AsError a => Getting (First ServiceError) a ServiceError Source #

The specified resource does not exist.

JobExecutionStatus

newtype JobExecutionStatus Source #

Instances

Instances details
Eq JobExecutionStatus Source # 
Instance details

Defined in Amazonka.IoTJobsData.Types.JobExecutionStatus

Ord JobExecutionStatus Source # 
Instance details

Defined in Amazonka.IoTJobsData.Types.JobExecutionStatus

Read JobExecutionStatus Source # 
Instance details

Defined in Amazonka.IoTJobsData.Types.JobExecutionStatus

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

NFData JobExecutionStatus Source # 
Instance details

Defined in Amazonka.IoTJobsData.Types.JobExecutionStatus

Methods

rnf :: JobExecutionStatus -> () #

Hashable 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

FromJSON JobExecutionStatus Source # 
Instance details

Defined in Amazonka.IoTJobsData.Types.JobExecutionStatus

FromJSONKey JobExecutionStatus Source # 
Instance details

Defined in Amazonka.IoTJobsData.Types.JobExecutionStatus

ToLog JobExecutionStatus Source # 
Instance details

Defined in Amazonka.IoTJobsData.Types.JobExecutionStatus

ToHeader JobExecutionStatus Source # 
Instance details

Defined in Amazonka.IoTJobsData.Types.JobExecutionStatus

ToQuery 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

ToByteString 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

type Rep JobExecutionStatus Source # 
Instance details

Defined in Amazonka.IoTJobsData.Types.JobExecutionStatus

type Rep JobExecutionStatus = D1 ('MetaData "JobExecutionStatus" "Amazonka.IoTJobsData.Types.JobExecutionStatus" "libZSservicesZSamazonka-iot-jobs-dataplaneZSamazonka-iot-jobs-dataplane" '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.

Constructors

JobExecution' 

Fields

Instances

Instances details
Eq JobExecution Source # 
Instance details

Defined in Amazonka.IoTJobsData.Types.JobExecution

Read JobExecution Source # 
Instance details

Defined in Amazonka.IoTJobsData.Types.JobExecution

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

NFData JobExecution Source # 
Instance details

Defined in Amazonka.IoTJobsData.Types.JobExecution

Methods

rnf :: JobExecution -> () #

Hashable JobExecution Source # 
Instance details

Defined in Amazonka.IoTJobsData.Types.JobExecution

FromJSON 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" "libZSservicesZSamazonka-iot-jobs-dataplaneZSamazonka-iot-jobs-dataplane" 'False) (C1 ('MetaCons "JobExecution'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe JobExecutionStatus)) :*: S1 ('MetaSel ('Just "jobId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "lastUpdatedAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)) :*: (S1 ('MetaSel ('Just "approximateSecondsBeforeTimedOut") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)) :*: S1 ('MetaSel ('Just "queuedAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer))))) :*: ((S1 ('MetaSel ('Just "jobDocument") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (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 "versionNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)) :*: (S1 ('MetaSel ('Just "startedAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)) :*: S1 ('MetaSel ('Just "thingName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))))

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

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

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

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

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

$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:versionNumber:JobExecution', jobExecution_versionNumber - The version of the job execution. Job execution versions are incremented each time they are updated by a device.

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

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

jobExecution_status :: Lens' JobExecution (Maybe JobExecutionStatus) Source #

The status of the job execution. Can be one of: "QUEUED", "IN_PROGRESS", "FAILED", "SUCCESS", "CANCELED", "REJECTED", or "REMOVED".

jobExecution_jobId :: Lens' JobExecution (Maybe Text) Source #

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

jobExecution_lastUpdatedAt :: Lens' JobExecution (Maybe Integer) Source #

The time, in milliseconds since the epoch, when the job execution was last updated.

jobExecution_approximateSecondsBeforeTimedOut :: Lens' JobExecution (Maybe Integer) Source #

The estimated number of seconds that remain before the job execution status will be changed to TIMED_OUT.

jobExecution_queuedAt :: Lens' JobExecution (Maybe Integer) Source #

The time, in milliseconds since the epoch, when the job execution was enqueued.

jobExecution_jobDocument :: Lens' JobExecution (Maybe Text) Source #

The content of the job document.

jobExecution_statusDetails :: Lens' JobExecution (Maybe (HashMap Text Text)) Source #

A collection of name/value pairs that describe the status of the job execution.

jobExecution_executionNumber :: Lens' JobExecution (Maybe Integer) Source #

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.

jobExecution_versionNumber :: Lens' JobExecution (Maybe Integer) Source #

The version of the job execution. Job execution versions are incremented each time they are updated by a device.

jobExecution_startedAt :: Lens' JobExecution (Maybe Integer) Source #

The time, in milliseconds since the epoch, when the job execution was started.

jobExecution_thingName :: Lens' JobExecution (Maybe Text) Source #

The name of the thing that is executing the job.

JobExecutionState

data JobExecutionState Source #

Contains data about the state of a job execution.

See: newJobExecutionState smart constructor.

Constructors

JobExecutionState' 

Fields

Instances

Instances details
Eq JobExecutionState Source # 
Instance details

Defined in Amazonka.IoTJobsData.Types.JobExecutionState

Read JobExecutionState Source # 
Instance details

Defined in Amazonka.IoTJobsData.Types.JobExecutionState

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

NFData JobExecutionState Source # 
Instance details

Defined in Amazonka.IoTJobsData.Types.JobExecutionState

Methods

rnf :: JobExecutionState -> () #

Hashable JobExecutionState Source # 
Instance details

Defined in Amazonka.IoTJobsData.Types.JobExecutionState

FromJSON 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" "libZSservicesZSamazonka-iot-jobs-dataplaneZSamazonka-iot-jobs-dataplane" '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.

jobExecutionState_status :: Lens' JobExecutionState (Maybe JobExecutionStatus) Source #

The status of the job execution. Can be one of: "QUEUED", "IN_PROGRESS", "FAILED", "SUCCESS", "CANCELED", "REJECTED", or "REMOVED".

jobExecutionState_statusDetails :: Lens' JobExecutionState (Maybe (HashMap Text Text)) Source #

A collection of name/value pairs that describe the status of the job execution.

jobExecutionState_versionNumber :: Lens' JobExecutionState (Maybe Integer) Source #

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.

Constructors

JobExecutionSummary' 

Fields

  • jobId :: Maybe Text

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

  • lastUpdatedAt :: Maybe Integer

    The time, in milliseconds since the epoch, when the job execution was last updated.

  • queuedAt :: Maybe Integer

    The time, in milliseconds since the epoch, when the job execution was enqueued.

  • executionNumber :: Maybe Integer

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

  • versionNumber :: Maybe Integer

    The version of the job execution. Job execution versions are incremented each time AWS IoT Jobs receives an update from a device.

  • startedAt :: Maybe Integer

    The time, in milliseconds since the epoch, when the job execution started.

Instances

Instances details
Eq JobExecutionSummary Source # 
Instance details

Defined in Amazonka.IoTJobsData.Types.JobExecutionSummary

Read JobExecutionSummary Source # 
Instance details

Defined in Amazonka.IoTJobsData.Types.JobExecutionSummary

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

NFData JobExecutionSummary Source # 
Instance details

Defined in Amazonka.IoTJobsData.Types.JobExecutionSummary

Methods

rnf :: JobExecutionSummary -> () #

Hashable JobExecutionSummary Source # 
Instance details

Defined in Amazonka.IoTJobsData.Types.JobExecutionSummary

FromJSON 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" "libZSservicesZSamazonka-iot-jobs-dataplaneZSamazonka-iot-jobs-dataplane" 'False) (C1 ('MetaCons "JobExecutionSummary'" 'PrefixI 'True) ((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 "executionNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)) :*: (S1 ('MetaSel ('Just "versionNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)) :*: S1 ('MetaSel ('Just "startedAt") '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: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:executionNumber:JobExecutionSummary', jobExecutionSummary_executionNumber - A number that identifies a particular job execution on a particular device.

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

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

jobExecutionSummary_jobId :: Lens' JobExecutionSummary (Maybe Text) Source #

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

jobExecutionSummary_lastUpdatedAt :: Lens' JobExecutionSummary (Maybe Integer) Source #

The time, in milliseconds since the epoch, when the job execution was last updated.

jobExecutionSummary_queuedAt :: Lens' JobExecutionSummary (Maybe Integer) Source #

The time, in milliseconds since the epoch, when the job execution was enqueued.

jobExecutionSummary_executionNumber :: Lens' JobExecutionSummary (Maybe Integer) Source #

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

jobExecutionSummary_versionNumber :: Lens' JobExecutionSummary (Maybe Integer) Source #

The version of the job execution. Job execution versions are incremented each time AWS IoT Jobs receives an update from a device.

jobExecutionSummary_startedAt :: Lens' JobExecutionSummary (Maybe Integer) Source #

The time, in milliseconds since the epoch, when the job execution started.