Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data Job = Job' {
- abortConfig :: Maybe AbortConfig
- comment :: Maybe Text
- completedAt :: Maybe POSIX
- createdAt :: Maybe POSIX
- description :: Maybe Text
- documentParameters :: Maybe (HashMap Text Text)
- forceCanceled :: Maybe Bool
- isConcurrent :: Maybe Bool
- jobArn :: Maybe Text
- jobExecutionsRetryConfig :: Maybe JobExecutionsRetryConfig
- jobExecutionsRolloutConfig :: Maybe JobExecutionsRolloutConfig
- jobId :: Maybe Text
- jobProcessDetails :: Maybe JobProcessDetails
- jobTemplateArn :: Maybe Text
- lastUpdatedAt :: Maybe POSIX
- namespaceId :: Maybe Text
- presignedUrlConfig :: Maybe PresignedUrlConfig
- reasonCode :: Maybe Text
- schedulingConfig :: Maybe SchedulingConfig
- status :: Maybe JobStatus
- targetSelection :: Maybe TargetSelection
- targets :: Maybe (NonEmpty Text)
- timeoutConfig :: Maybe TimeoutConfig
- newJob :: Job
- job_abortConfig :: Lens' Job (Maybe AbortConfig)
- job_comment :: Lens' Job (Maybe Text)
- job_completedAt :: Lens' Job (Maybe UTCTime)
- job_createdAt :: Lens' Job (Maybe UTCTime)
- job_description :: Lens' Job (Maybe Text)
- job_documentParameters :: Lens' Job (Maybe (HashMap Text Text))
- job_forceCanceled :: Lens' Job (Maybe Bool)
- job_isConcurrent :: Lens' Job (Maybe Bool)
- job_jobArn :: Lens' Job (Maybe Text)
- job_jobExecutionsRetryConfig :: Lens' Job (Maybe JobExecutionsRetryConfig)
- job_jobExecutionsRolloutConfig :: Lens' Job (Maybe JobExecutionsRolloutConfig)
- job_jobId :: Lens' Job (Maybe Text)
- job_jobProcessDetails :: Lens' Job (Maybe JobProcessDetails)
- job_jobTemplateArn :: Lens' Job (Maybe Text)
- job_lastUpdatedAt :: Lens' Job (Maybe UTCTime)
- job_namespaceId :: Lens' Job (Maybe Text)
- job_presignedUrlConfig :: Lens' Job (Maybe PresignedUrlConfig)
- job_reasonCode :: Lens' Job (Maybe Text)
- job_schedulingConfig :: Lens' Job (Maybe SchedulingConfig)
- job_status :: Lens' Job (Maybe JobStatus)
- job_targetSelection :: Lens' Job (Maybe TargetSelection)
- job_targets :: Lens' Job (Maybe (NonEmpty Text))
- job_timeoutConfig :: Lens' Job (Maybe TimeoutConfig)
Documentation
The Job
object contains details about a job.
See: newJob
smart constructor.
Job' | |
|
Instances
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:abortConfig:Job'
, job_abortConfig
- Configuration for criteria to abort the job.
$sel:comment:Job'
, job_comment
- If the job was updated, describes the reason for the update.
$sel:completedAt:Job'
, job_completedAt
- The time, in seconds since the epoch, when the job was completed.
$sel:createdAt:Job'
, job_createdAt
- The time, in seconds since the epoch, when the job was created.
$sel:description:Job'
, job_description
- A short text description of the job.
$sel:documentParameters:Job'
, job_documentParameters
- A key-value map that pairs the patterns that need to be replaced in a
managed template job document schema. You can use the description of
each key as a guidance to specify the inputs during runtime when
creating a job.
documentParameters
can only be used when creating jobs from Amazon Web
Services managed templates. This parameter can't be used with custom
job templates or to create jobs from them.
$sel:forceCanceled:Job'
, job_forceCanceled
- Will be true
if the job was canceled with the optional force
parameter set to true
.
$sel:isConcurrent:Job'
, job_isConcurrent
- Indicates whether a job is concurrent. Will be true when a job is
rolling out new job executions or canceling previously created
executions, otherwise false.
$sel:jobArn:Job'
, job_jobArn
- An ARN identifying the job with format
"arn:aws:iot:region:account:job/jobId".
$sel:jobExecutionsRetryConfig:Job'
, job_jobExecutionsRetryConfig
- The configuration for the criteria to retry the job.
$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:jobProcessDetails:Job'
, job_jobProcessDetails
- Details about the job process.
$sel:jobTemplateArn:Job'
, job_jobTemplateArn
- The ARN of the job template used to create the job.
$sel:lastUpdatedAt:Job'
, job_lastUpdatedAt
- The time, in seconds since the epoch, when the job was last updated.
$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:presignedUrlConfig:Job'
, job_presignedUrlConfig
- Configuration for pre-signed S3 URLs.
$sel:reasonCode:Job'
, job_reasonCode
- If the job was updated, provides the reason code for the update.
$sel:schedulingConfig:Job'
, job_schedulingConfig
- The configuration that allows you to schedule a job for a future date
and time in addition to specifying the end behavior for each job
execution.
$sel:status:Job'
, job_status
- The status of the job, one of IN_PROGRESS
, CANCELED
,
DELETION_IN_PROGRESS
or COMPLETED
.
$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.
We recommend that you use continuous jobs instead of snapshot jobs for dynamic thing group targets. By using continuous jobs, devices that join the group receive the job execution even after the job has been created.
$sel:targets:Job'
, job_targets
- A list of IoT things and thing groups to which the job should be sent.
$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_abortConfig :: Lens' Job (Maybe AbortConfig) Source #
Configuration for criteria to abort the job.
job_comment :: Lens' Job (Maybe Text) Source #
If the job was updated, describes the reason for the update.
job_completedAt :: Lens' Job (Maybe UTCTime) Source #
The time, in seconds since the epoch, when the job was completed.
job_createdAt :: Lens' Job (Maybe UTCTime) Source #
The time, in seconds since the epoch, when the job was created.
job_documentParameters :: Lens' Job (Maybe (HashMap Text Text)) Source #
A key-value map that pairs the patterns that need to be replaced in a managed template job document schema. You can use the description of each key as a guidance to specify the inputs during runtime when creating a job.
documentParameters
can only be used when creating jobs from Amazon Web
Services managed templates. This parameter can't be used with custom
job templates or to create jobs from them.
job_forceCanceled :: Lens' Job (Maybe Bool) Source #
Will be true
if the job was canceled with the optional force
parameter set to true
.
job_isConcurrent :: Lens' Job (Maybe Bool) Source #
Indicates whether a job is concurrent. Will be true when a job is rolling out new job executions or canceling previously created executions, otherwise false.
job_jobArn :: Lens' Job (Maybe Text) Source #
An ARN identifying the job with format "arn:aws:iot:region:account:job/jobId".
job_jobExecutionsRetryConfig :: Lens' Job (Maybe JobExecutionsRetryConfig) Source #
The configuration for the criteria to retry the job.
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_jobProcessDetails :: Lens' Job (Maybe JobProcessDetails) Source #
Details about the job process.
job_jobTemplateArn :: Lens' Job (Maybe Text) Source #
The ARN of the job template used to create the job.
job_lastUpdatedAt :: Lens' Job (Maybe UTCTime) Source #
The time, in seconds since the epoch, when the job was last updated.
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_presignedUrlConfig :: Lens' Job (Maybe PresignedUrlConfig) Source #
Configuration for pre-signed S3 URLs.
job_reasonCode :: Lens' Job (Maybe Text) Source #
If the job was updated, provides the reason code for the update.
job_schedulingConfig :: Lens' Job (Maybe SchedulingConfig) Source #
The configuration that allows you to schedule a job for a future date and time in addition to specifying the end behavior for each job execution.
job_status :: Lens' Job (Maybe JobStatus) Source #
The status of the job, one of IN_PROGRESS
, CANCELED
,
DELETION_IN_PROGRESS
or COMPLETED
.
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.
We recommend that you use continuous jobs instead of snapshot jobs for dynamic thing group targets. By using continuous jobs, devices that join the group receive the job execution even after the job has been created.
job_targets :: Lens' Job (Maybe (NonEmpty Text)) Source #
A list of IoT things and thing groups to which the job should be sent.
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
.