amazonka-iot-2.0: Amazon IoT SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.IoT.UpdateJob

Description

Updates supported fields of the specified job.

Requires permission to access the UpdateJob action.

Synopsis

Creating a Request

data UpdateJob Source #

See: newUpdateJob smart constructor.

Constructors

UpdateJob' 

Fields

Instances

Instances details
ToJSON UpdateJob Source # 
Instance details

Defined in Amazonka.IoT.UpdateJob

ToHeaders UpdateJob Source # 
Instance details

Defined in Amazonka.IoT.UpdateJob

Methods

toHeaders :: UpdateJob -> [Header] #

ToPath UpdateJob Source # 
Instance details

Defined in Amazonka.IoT.UpdateJob

ToQuery UpdateJob Source # 
Instance details

Defined in Amazonka.IoT.UpdateJob

AWSRequest UpdateJob Source # 
Instance details

Defined in Amazonka.IoT.UpdateJob

Associated Types

type AWSResponse UpdateJob #

Generic UpdateJob Source # 
Instance details

Defined in Amazonka.IoT.UpdateJob

Associated Types

type Rep UpdateJob :: Type -> Type #

Read UpdateJob Source # 
Instance details

Defined in Amazonka.IoT.UpdateJob

Show UpdateJob Source # 
Instance details

Defined in Amazonka.IoT.UpdateJob

NFData UpdateJob Source # 
Instance details

Defined in Amazonka.IoT.UpdateJob

Methods

rnf :: UpdateJob -> () #

Eq UpdateJob Source # 
Instance details

Defined in Amazonka.IoT.UpdateJob

Hashable UpdateJob Source # 
Instance details

Defined in Amazonka.IoT.UpdateJob

type AWSResponse UpdateJob Source # 
Instance details

Defined in Amazonka.IoT.UpdateJob

type Rep UpdateJob Source # 
Instance details

Defined in Amazonka.IoT.UpdateJob

newUpdateJob Source #

Arguments

:: Text

UpdateJob

-> UpdateJob 

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_description :: Lens' UpdateJob (Maybe Text) Source #

A short text description of the 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.

updateJob_jobId :: Lens' UpdateJob Text Source #

The ID of the job to be updated.

Destructuring the Response

data UpdateJobResponse Source #

See: newUpdateJobResponse smart constructor.

Constructors

UpdateJobResponse' 

Instances

Instances details
Generic UpdateJobResponse Source # 
Instance details

Defined in Amazonka.IoT.UpdateJob

Associated Types

type Rep UpdateJobResponse :: Type -> Type #

Read UpdateJobResponse Source # 
Instance details

Defined in Amazonka.IoT.UpdateJob

Show UpdateJobResponse Source # 
Instance details

Defined in Amazonka.IoT.UpdateJob

NFData UpdateJobResponse Source # 
Instance details

Defined in Amazonka.IoT.UpdateJob

Methods

rnf :: UpdateJobResponse -> () #

Eq UpdateJobResponse Source # 
Instance details

Defined in Amazonka.IoT.UpdateJob

type Rep UpdateJobResponse Source # 
Instance details

Defined in Amazonka.IoT.UpdateJob

type Rep UpdateJobResponse = D1 ('MetaData "UpdateJobResponse" "Amazonka.IoT.UpdateJob" "amazonka-iot-2.0-6w03vgAfmrM1SG22OsNJXL" 'False) (C1 ('MetaCons "UpdateJobResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newUpdateJobResponse :: UpdateJobResponse Source #

Create a value of UpdateJobResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.