| 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 |
Amazonka.IoT.UpdateJob
Description
Updates supported fields of the specified job.
Requires permission to access the UpdateJob action.
Synopsis
- data UpdateJob = UpdateJob' {}
- newUpdateJob :: Text -> UpdateJob
- updateJob_abortConfig :: Lens' UpdateJob (Maybe AbortConfig)
- updateJob_description :: Lens' UpdateJob (Maybe Text)
- updateJob_jobExecutionsRetryConfig :: Lens' UpdateJob (Maybe JobExecutionsRetryConfig)
- updateJob_jobExecutionsRolloutConfig :: Lens' UpdateJob (Maybe JobExecutionsRolloutConfig)
- updateJob_namespaceId :: Lens' UpdateJob (Maybe Text)
- updateJob_presignedUrlConfig :: Lens' UpdateJob (Maybe PresignedUrlConfig)
- updateJob_timeoutConfig :: Lens' UpdateJob (Maybe TimeoutConfig)
- updateJob_jobId :: Lens' UpdateJob Text
- data UpdateJobResponse = UpdateJobResponse' {
- newUpdateJobResponse :: UpdateJobResponse
Creating a Request
See: newUpdateJob smart constructor.
Constructors
| UpdateJob' | |
Fields
| |
Instances
Create a value of UpdateJob 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:
UpdateJob, updateJob_abortConfig - Allows you to create criteria to abort a job.
UpdateJob, updateJob_description - A short text description of the job.
UpdateJob, updateJob_jobExecutionsRetryConfig - Allows you to create the criteria to retry a job.
UpdateJob, updateJob_jobExecutionsRolloutConfig - Allows you to create a staged rollout of the job.
UpdateJob, updateJob_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.
UpdateJob, updateJob_presignedUrlConfig - Configuration information for pre-signed S3 URLs.
UpdateJob, updateJob_timeoutConfig - Specifies the amount of time each device has to finish its execution of
the job. The 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 time expires, it will be automatically set to
TIMED_OUT.
UpdateJob, updateJob_jobId - The ID of the job to be updated.
Request Lenses
updateJob_abortConfig :: Lens' UpdateJob (Maybe AbortConfig) Source #
Allows you to create criteria to abort a job.
updateJob_jobExecutionsRetryConfig :: Lens' UpdateJob (Maybe JobExecutionsRetryConfig) Source #
Allows you to create the criteria to retry a job.
updateJob_jobExecutionsRolloutConfig :: Lens' UpdateJob (Maybe JobExecutionsRolloutConfig) Source #
Allows you to create a staged rollout of the job.
updateJob_namespaceId :: Lens' UpdateJob (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.
updateJob_presignedUrlConfig :: Lens' UpdateJob (Maybe PresignedUrlConfig) Source #
Configuration information for pre-signed S3 URLs.
updateJob_timeoutConfig :: Lens' UpdateJob (Maybe TimeoutConfig) Source #
Specifies the amount of time each device has to finish its execution of
the job. The 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 time expires, it will be automatically set to
TIMED_OUT.
Destructuring the Response
data UpdateJobResponse Source #
See: newUpdateJobResponse smart constructor.
Constructors
| UpdateJobResponse' | |
Instances
| Generic UpdateJobResponse Source # | |
Defined in Amazonka.IoT.UpdateJob Associated Types type Rep UpdateJobResponse :: Type -> Type # Methods from :: UpdateJobResponse -> Rep UpdateJobResponse x # to :: Rep UpdateJobResponse x -> UpdateJobResponse # | |
| Read UpdateJobResponse Source # | |
Defined in Amazonka.IoT.UpdateJob Methods readsPrec :: Int -> ReadS UpdateJobResponse # readList :: ReadS [UpdateJobResponse] # | |
| Show UpdateJobResponse Source # | |
Defined in Amazonka.IoT.UpdateJob Methods showsPrec :: Int -> UpdateJobResponse -> ShowS # show :: UpdateJobResponse -> String # showList :: [UpdateJobResponse] -> ShowS # | |
| NFData UpdateJobResponse Source # | |
Defined in Amazonka.IoT.UpdateJob Methods rnf :: UpdateJobResponse -> () # | |
| Eq UpdateJobResponse Source # | |
Defined in Amazonka.IoT.UpdateJob Methods (==) :: UpdateJobResponse -> UpdateJobResponse -> Bool # (/=) :: UpdateJobResponse -> UpdateJobResponse -> Bool # | |
| type Rep UpdateJobResponse Source # | |
newUpdateJobResponse :: UpdateJobResponse Source #
Create a value of UpdateJobResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.