Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- defaultService :: Service
- _TerminalStateException :: AsError a => Getting (First ServiceError) a ServiceError
- _InvalidRequestException :: AsError a => Getting (First ServiceError) a ServiceError
- _CertificateValidationException :: AsError a => Getting (First ServiceError) a ServiceError
- _ThrottlingException :: AsError a => Getting (First ServiceError) a ServiceError
- _ServiceUnavailableException :: AsError a => Getting (First ServiceError) a ServiceError
- _InvalidStateTransitionException :: AsError a => Getting (First ServiceError) a ServiceError
- _ResourceNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError
- newtype JobExecutionStatus where
- JobExecutionStatus' { }
- pattern JobExecutionStatus_CANCELED :: JobExecutionStatus
- pattern JobExecutionStatus_FAILED :: JobExecutionStatus
- pattern JobExecutionStatus_IN_PROGRESS :: JobExecutionStatus
- pattern JobExecutionStatus_QUEUED :: JobExecutionStatus
- pattern JobExecutionStatus_REJECTED :: JobExecutionStatus
- pattern JobExecutionStatus_REMOVED :: JobExecutionStatus
- pattern JobExecutionStatus_SUCCEEDED :: JobExecutionStatus
- pattern JobExecutionStatus_TIMED_OUT :: JobExecutionStatus
- data JobExecution = JobExecution' {
- status :: Maybe JobExecutionStatus
- jobId :: Maybe Text
- lastUpdatedAt :: Maybe Integer
- approximateSecondsBeforeTimedOut :: Maybe Integer
- queuedAt :: Maybe Integer
- jobDocument :: Maybe Text
- statusDetails :: Maybe (HashMap Text Text)
- executionNumber :: Maybe Integer
- versionNumber :: Maybe Integer
- startedAt :: Maybe Integer
- thingName :: Maybe Text
- newJobExecution :: JobExecution
- jobExecution_status :: Lens' JobExecution (Maybe JobExecutionStatus)
- jobExecution_jobId :: Lens' JobExecution (Maybe Text)
- jobExecution_lastUpdatedAt :: Lens' JobExecution (Maybe Integer)
- jobExecution_approximateSecondsBeforeTimedOut :: Lens' JobExecution (Maybe Integer)
- jobExecution_queuedAt :: Lens' JobExecution (Maybe Integer)
- jobExecution_jobDocument :: Lens' JobExecution (Maybe Text)
- jobExecution_statusDetails :: Lens' JobExecution (Maybe (HashMap Text Text))
- jobExecution_executionNumber :: Lens' JobExecution (Maybe Integer)
- jobExecution_versionNumber :: Lens' JobExecution (Maybe Integer)
- jobExecution_startedAt :: Lens' JobExecution (Maybe Integer)
- jobExecution_thingName :: Lens' JobExecution (Maybe Text)
- data JobExecutionState = JobExecutionState' {}
- newJobExecutionState :: JobExecutionState
- jobExecutionState_status :: Lens' JobExecutionState (Maybe JobExecutionStatus)
- jobExecutionState_statusDetails :: Lens' JobExecutionState (Maybe (HashMap Text Text))
- jobExecutionState_versionNumber :: Lens' JobExecutionState (Maybe Integer)
- data JobExecutionSummary = JobExecutionSummary' {}
- newJobExecutionSummary :: JobExecutionSummary
- jobExecutionSummary_jobId :: Lens' JobExecutionSummary (Maybe Text)
- jobExecutionSummary_lastUpdatedAt :: Lens' JobExecutionSummary (Maybe Integer)
- jobExecutionSummary_queuedAt :: Lens' JobExecutionSummary (Maybe Integer)
- jobExecutionSummary_executionNumber :: Lens' JobExecutionSummary (Maybe Integer)
- jobExecutionSummary_versionNumber :: Lens' JobExecutionSummary (Maybe Integer)
- jobExecutionSummary_startedAt :: Lens' JobExecutionSummary (Maybe Integer)
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.
_CertificateValidationException :: AsError a => Getting (First ServiceError) a ServiceError Source #
The certificate is invalid.
_ThrottlingException :: AsError a => Getting (First ServiceError) a ServiceError Source #
The rate exceeds the limit.
_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 #
pattern JobExecutionStatus_CANCELED :: JobExecutionStatus | |
pattern JobExecutionStatus_FAILED :: JobExecutionStatus | |
pattern JobExecutionStatus_IN_PROGRESS :: JobExecutionStatus | |
pattern JobExecutionStatus_QUEUED :: JobExecutionStatus | |
pattern JobExecutionStatus_REJECTED :: JobExecutionStatus | |
pattern JobExecutionStatus_REMOVED :: JobExecutionStatus | |
pattern JobExecutionStatus_SUCCEEDED :: JobExecutionStatus | |
pattern JobExecutionStatus_TIMED_OUT :: JobExecutionStatus |
Instances
JobExecution
data JobExecution Source #
Contains data about a job execution.
See: newJobExecution
smart constructor.
JobExecution' | |
|
Instances
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.
JobExecutionState' | |
|
Instances
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.
JobExecutionSummary' | |
|
Instances
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.