libZSservicesZSamazonka-iotZSamazonka-iot
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.IoT.Types.JobExecution

Description

 
Synopsis

Documentation

data JobExecution Source #

The job execution object represents the execution of a job on a particular device.

See: newJobExecution smart constructor.

Constructors

JobExecution' 

Fields

  • status :: Maybe JobExecutionStatus

    The status of the job execution (IN_PROGRESS, QUEUED, FAILED, SUCCEEDED, TIMED_OUT, CANCELED, or REJECTED).

  • jobId :: Maybe Text

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

  • lastUpdatedAt :: Maybe POSIX

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

  • approximateSecondsBeforeTimedOut :: Maybe Integer

    The estimated number of seconds that remain before the job execution status will be changed to TIMED_OUT. The timeout interval can be anywhere between 1 minute and 7 days (1 to 10080 minutes). The actual job execution timeout can occur up to 60 seconds later than the estimated duration. This value will not be included if the job execution has reached a terminal status.

  • queuedAt :: Maybe POSIX

    The time, in seconds since the epoch, when the job execution was queued.

  • statusDetails :: Maybe JobExecutionStatusDetails

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

  • thingArn :: Maybe Text

    The ARN of the thing on which the job execution is running.

  • executionNumber :: Maybe Integer

    A string (consisting of the digits "0" through "9") which identifies this particular job execution on this particular device. It can be used in commands which return or update job execution information.

  • versionNumber :: Maybe Integer

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

  • startedAt :: Maybe POSIX

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

  • forceCanceled :: Maybe Bool

    Will be true if the job execution was canceled with the optional force parameter set to true.

Instances

Instances details
Eq JobExecution Source # 
Instance details

Defined in Amazonka.IoT.Types.JobExecution

Read JobExecution Source # 
Instance details

Defined in Amazonka.IoT.Types.JobExecution

Show JobExecution Source # 
Instance details

Defined in Amazonka.IoT.Types.JobExecution

Generic JobExecution Source # 
Instance details

Defined in Amazonka.IoT.Types.JobExecution

Associated Types

type Rep JobExecution :: Type -> Type #

NFData JobExecution Source # 
Instance details

Defined in Amazonka.IoT.Types.JobExecution

Methods

rnf :: JobExecution -> () #

Hashable JobExecution Source # 
Instance details

Defined in Amazonka.IoT.Types.JobExecution

FromJSON JobExecution Source # 
Instance details

Defined in Amazonka.IoT.Types.JobExecution

type Rep JobExecution Source # 
Instance details

Defined in Amazonka.IoT.Types.JobExecution

type Rep JobExecution = D1 ('MetaData "JobExecution" "Amazonka.IoT.Types.JobExecution" "libZSservicesZSamazonka-iotZSamazonka-iot" '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 POSIX)) :*: (S1 ('MetaSel ('Just "approximateSecondsBeforeTimedOut") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)) :*: S1 ('MetaSel ('Just "queuedAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX))))) :*: ((S1 ('MetaSel ('Just "statusDetails") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe JobExecutionStatusDetails)) :*: (S1 ('MetaSel ('Just "thingArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe 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 POSIX)) :*: S1 ('MetaSel ('Just "forceCanceled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)))))))

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 (IN_PROGRESS, QUEUED, FAILED, SUCCEEDED, TIMED_OUT, CANCELED, or REJECTED).

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

$sel:lastUpdatedAt:JobExecution', jobExecution_lastUpdatedAt - The time, in seconds 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. The timeout interval can be anywhere between 1 minute and 7 days (1 to 10080 minutes). The actual job execution timeout can occur up to 60 seconds later than the estimated duration. This value will not be included if the job execution has reached a terminal status.

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

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

$sel:thingArn:JobExecution', jobExecution_thingArn - The ARN of the thing on which the job execution is running.

$sel:executionNumber:JobExecution', jobExecution_executionNumber - A string (consisting of the digits "0" through "9") which identifies this particular job execution on this particular device. It can be used in commands which 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 seconds since the epoch, when the job execution started.

$sel:forceCanceled:JobExecution', jobExecution_forceCanceled - Will be true if the job execution was canceled with the optional force parameter set to true.

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

The status of the job execution (IN_PROGRESS, QUEUED, FAILED, SUCCEEDED, TIMED_OUT, CANCELED, or REJECTED).

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

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

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

The time, in seconds 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. The timeout interval can be anywhere between 1 minute and 7 days (1 to 10080 minutes). The actual job execution timeout can occur up to 60 seconds later than the estimated duration. This value will not be included if the job execution has reached a terminal status.

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

The time, in seconds since the epoch, when the job execution was queued.

jobExecution_statusDetails :: Lens' JobExecution (Maybe JobExecutionStatusDetails) Source #

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

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

The ARN of the thing on which the job execution is running.

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

A string (consisting of the digits "0" through "9") which identifies this particular job execution on this particular device. It can be used in commands which 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 UTCTime) Source #

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

jobExecution_forceCanceled :: Lens' JobExecution (Maybe Bool) Source #

Will be true if the job execution was canceled with the optional force parameter set to true.