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

Description

 
Synopsis

Documentation

data Job Source #

The Job object contains details about a job.

See: newJob smart constructor.

Constructors

Job' 

Fields

  • status :: Maybe JobStatus

    The status of the job, one of IN_PROGRESS, CANCELED, DELETION_IN_PROGRESS or COMPLETED.

  • jobExecutionsRolloutConfig :: Maybe JobExecutionsRolloutConfig

    Allows you to create a staged rollout of a job.

  • jobId :: Maybe Text

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

  • lastUpdatedAt :: Maybe POSIX

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

  • jobArn :: Maybe Text

    An ARN identifying the job with format "arn:aws:iot:region:account:job/jobId".

  • createdAt :: Maybe POSIX

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

  • abortConfig :: Maybe AbortConfig

    Configuration for criteria to abort the job.

  • jobProcessDetails :: Maybe JobProcessDetails

    Details about the job process.

  • namespaceId :: Maybe Text

    The namespace used to indicate that a job is a customer-managed job.

    When you specify a value for this parameter, Amazon Web Services IoT Core sends jobs notifications to MQTT topics that contain the value in the following format.

    $aws/things/THING_NAME/jobs/JOB_ID/notify-namespace-NAMESPACE_ID/

    The namespaceId feature is in public preview.

  • reasonCode :: Maybe Text

    If the job was updated, provides the reason code for the update.

  • presignedUrlConfig :: Maybe PresignedUrlConfig

    Configuration for pre-signed S3 URLs.

  • forceCanceled :: Maybe Bool

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

  • jobTemplateArn :: Maybe Text

    The ARN of the job template used to create the job.

  • targets :: Maybe (NonEmpty Text)

    A list of IoT things and thing groups to which the job should be sent.

  • completedAt :: Maybe POSIX

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

  • comment :: Maybe Text

    If the job was updated, describes the reason for the update.

  • description :: Maybe Text

    A short text description of the job.

  • targetSelection :: Maybe TargetSelection

    Specifies whether the job will continue to run (CONTINUOUS), or will be complete after all those things specified as targets have completed the job (SNAPSHOT). If continuous, the job may also be run on a thing when a change is detected in a target. For example, a job will run on a device when the thing representing the device is added to a target group, even after the job was completed by all things originally in the group.

  • timeoutConfig :: Maybe TimeoutConfig

    Specifies the amount of time each device has to finish its execution of the job. A timer is started when the job execution status is set to IN_PROGRESS. If the job execution status is not set to another terminal state before the timer expires, it will be automatically set to TIMED_OUT.

Instances

Instances details
Eq Job Source # 
Instance details

Defined in Amazonka.IoT.Types.Job

Methods

(==) :: Job -> Job -> Bool #

(/=) :: Job -> Job -> Bool #

Read Job Source # 
Instance details

Defined in Amazonka.IoT.Types.Job

Show Job Source # 
Instance details

Defined in Amazonka.IoT.Types.Job

Methods

showsPrec :: Int -> Job -> ShowS #

show :: Job -> String #

showList :: [Job] -> ShowS #

Generic Job Source # 
Instance details

Defined in Amazonka.IoT.Types.Job

Associated Types

type Rep Job :: Type -> Type #

Methods

from :: Job -> Rep Job x #

to :: Rep Job x -> Job #

NFData Job Source # 
Instance details

Defined in Amazonka.IoT.Types.Job

Methods

rnf :: Job -> () #

Hashable Job Source # 
Instance details

Defined in Amazonka.IoT.Types.Job

Methods

hashWithSalt :: Int -> Job -> Int #

hash :: Job -> Int #

FromJSON Job Source # 
Instance details

Defined in Amazonka.IoT.Types.Job

type Rep Job Source # 
Instance details

Defined in Amazonka.IoT.Types.Job

type Rep Job = D1 ('MetaData "Job" "Amazonka.IoT.Types.Job" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "Job'" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe JobStatus)) :*: S1 ('MetaSel ('Just "jobExecutionsRolloutConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe JobExecutionsRolloutConfig))) :*: (S1 ('MetaSel ('Just "jobId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "lastUpdatedAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)))) :*: ((S1 ('MetaSel ('Just "jobArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "createdAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX))) :*: (S1 ('MetaSel ('Just "abortConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AbortConfig)) :*: (S1 ('MetaSel ('Just "jobProcessDetails") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe JobProcessDetails)) :*: S1 ('MetaSel ('Just "namespaceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))) :*: (((S1 ('MetaSel ('Just "reasonCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "presignedUrlConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe PresignedUrlConfig))) :*: (S1 ('MetaSel ('Just "forceCanceled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "jobTemplateArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "targets") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty Text)))))) :*: ((S1 ('MetaSel ('Just "completedAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "comment") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "targetSelection") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe TargetSelection)) :*: S1 ('MetaSel ('Just "timeoutConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe TimeoutConfig))))))))

newJob :: Job Source #

Create a value of Job 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:Job', job_status - The status of the job, one of IN_PROGRESS, CANCELED, DELETION_IN_PROGRESS or COMPLETED.

$sel:jobExecutionsRolloutConfig:Job', job_jobExecutionsRolloutConfig - Allows you to create a staged rollout of a job.

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

$sel:lastUpdatedAt:Job', job_lastUpdatedAt - The time, in seconds since the epoch, when the job was last updated.

$sel:jobArn:Job', job_jobArn - An ARN identifying the job with format "arn:aws:iot:region:account:job/jobId".

$sel:createdAt:Job', job_createdAt - The time, in seconds since the epoch, when the job was created.

$sel:abortConfig:Job', job_abortConfig - Configuration for criteria to abort the job.

$sel:jobProcessDetails:Job', job_jobProcessDetails - Details about the job process.

$sel:namespaceId:Job', job_namespaceId - The namespace used to indicate that a job is a customer-managed job.

When you specify a value for this parameter, Amazon Web Services IoT Core sends jobs notifications to MQTT topics that contain the value in the following format.

$aws/things/THING_NAME/jobs/JOB_ID/notify-namespace-NAMESPACE_ID/

The namespaceId feature is in public preview.

$sel:reasonCode:Job', job_reasonCode - If the job was updated, provides the reason code for the update.

$sel:presignedUrlConfig:Job', job_presignedUrlConfig - Configuration for pre-signed S3 URLs.

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

$sel:jobTemplateArn:Job', job_jobTemplateArn - The ARN of the job template used to create the job.

$sel:targets:Job', job_targets - A list of IoT things and thing groups to which the job should be sent.

$sel:completedAt:Job', job_completedAt - The time, in seconds since the epoch, when the job was completed.

$sel:comment:Job', job_comment - If the job was updated, describes the reason for the update.

$sel:description:Job', job_description - A short text description of the job.

$sel:targetSelection:Job', job_targetSelection - Specifies whether the job will continue to run (CONTINUOUS), or will be complete after all those things specified as targets have completed the job (SNAPSHOT). If continuous, the job may also be run on a thing when a change is detected in a target. For example, a job will run on a device when the thing representing the device is added to a target group, even after the job was completed by all things originally in the group.

$sel:timeoutConfig:Job', job_timeoutConfig - Specifies the amount of time each device has to finish its execution of the job. A timer is started when the job execution status is set to IN_PROGRESS. If the job execution status is not set to another terminal state before the timer expires, it will be automatically set to TIMED_OUT.

job_status :: Lens' Job (Maybe JobStatus) Source #

The status of the job, one of IN_PROGRESS, CANCELED, DELETION_IN_PROGRESS or COMPLETED.

job_jobExecutionsRolloutConfig :: Lens' Job (Maybe JobExecutionsRolloutConfig) Source #

Allows you to create a staged rollout of a job.

job_jobId :: Lens' Job (Maybe Text) Source #

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

job_lastUpdatedAt :: Lens' Job (Maybe UTCTime) Source #

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

job_jobArn :: Lens' Job (Maybe Text) Source #

An ARN identifying the job with format "arn:aws:iot:region:account:job/jobId".

job_createdAt :: Lens' Job (Maybe UTCTime) Source #

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

job_abortConfig :: Lens' Job (Maybe AbortConfig) Source #

Configuration for criteria to abort the job.

job_jobProcessDetails :: Lens' Job (Maybe JobProcessDetails) Source #

Details about the job process.

job_namespaceId :: Lens' Job (Maybe Text) Source #

The namespace used to indicate that a job is a customer-managed job.

When you specify a value for this parameter, Amazon Web Services IoT Core sends jobs notifications to MQTT topics that contain the value in the following format.

$aws/things/THING_NAME/jobs/JOB_ID/notify-namespace-NAMESPACE_ID/

The namespaceId feature is in public preview.

job_reasonCode :: Lens' Job (Maybe Text) Source #

If the job was updated, provides the reason code for the update.

job_presignedUrlConfig :: Lens' Job (Maybe PresignedUrlConfig) Source #

Configuration for pre-signed S3 URLs.

job_forceCanceled :: Lens' Job (Maybe Bool) Source #

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

job_jobTemplateArn :: Lens' Job (Maybe Text) Source #

The ARN of the job template used to create the job.

job_targets :: Lens' Job (Maybe (NonEmpty Text)) Source #

A list of IoT things and thing groups to which the job should be sent.

job_completedAt :: Lens' Job (Maybe UTCTime) Source #

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

job_comment :: Lens' Job (Maybe Text) Source #

If the job was updated, describes the reason for the update.

job_description :: Lens' Job (Maybe Text) Source #

A short text description of the job.

job_targetSelection :: Lens' Job (Maybe TargetSelection) Source #

Specifies whether the job will continue to run (CONTINUOUS), or will be complete after all those things specified as targets have completed the job (SNAPSHOT). If continuous, the job may also be run on a thing when a change is detected in a target. For example, a job will run on a device when the thing representing the device is added to a target group, even after the job was completed by all things originally in the group.

job_timeoutConfig :: Lens' Job (Maybe TimeoutConfig) Source #

Specifies the amount of time each device has to finish its execution of the job. A timer is started when the job execution status is set to IN_PROGRESS. If the job execution status is not set to another terminal state before the timer expires, it will be automatically set to TIMED_OUT.