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

Description

Cancels a job.

Requires permission to access the CancelJob action.

Synopsis

Creating a Request

data CancelJob Source #

See: newCancelJob smart constructor.

Constructors

CancelJob' 

Fields

  • force :: Maybe Bool

    (Optional) If true job executions with status "IN_PROGRESS" and "QUEUED" are canceled, otherwise only job executions with status "QUEUED" are canceled. The default is false.

    Canceling a job which is "IN_PROGRESS", will cause a device which is executing the job to be unable to update the job execution status. Use caution and ensure that each device executing a job which is canceled is able to recover to a valid state.

  • reasonCode :: Maybe Text

    (Optional)A reason code string that explains why the job was canceled.

  • comment :: Maybe Text

    An optional comment string describing why the job was canceled.

  • jobId :: Text

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

Instances

Instances details
Eq CancelJob Source # 
Instance details

Defined in Amazonka.IoT.CancelJob

Read CancelJob Source # 
Instance details

Defined in Amazonka.IoT.CancelJob

Show CancelJob Source # 
Instance details

Defined in Amazonka.IoT.CancelJob

Generic CancelJob Source # 
Instance details

Defined in Amazonka.IoT.CancelJob

Associated Types

type Rep CancelJob :: Type -> Type #

NFData CancelJob Source # 
Instance details

Defined in Amazonka.IoT.CancelJob

Methods

rnf :: CancelJob -> () #

Hashable CancelJob Source # 
Instance details

Defined in Amazonka.IoT.CancelJob

ToJSON CancelJob Source # 
Instance details

Defined in Amazonka.IoT.CancelJob

AWSRequest CancelJob Source # 
Instance details

Defined in Amazonka.IoT.CancelJob

Associated Types

type AWSResponse CancelJob #

ToHeaders CancelJob Source # 
Instance details

Defined in Amazonka.IoT.CancelJob

Methods

toHeaders :: CancelJob -> [Header] #

ToPath CancelJob Source # 
Instance details

Defined in Amazonka.IoT.CancelJob

ToQuery CancelJob Source # 
Instance details

Defined in Amazonka.IoT.CancelJob

type Rep CancelJob Source # 
Instance details

Defined in Amazonka.IoT.CancelJob

type Rep CancelJob = D1 ('MetaData "CancelJob" "Amazonka.IoT.CancelJob" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "CancelJob'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "force") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "reasonCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "comment") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "jobId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse CancelJob Source # 
Instance details

Defined in Amazonka.IoT.CancelJob

newCancelJob Source #

Create a value of CancelJob 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:force:CancelJob', cancelJob_force - (Optional) If true job executions with status "IN_PROGRESS" and "QUEUED" are canceled, otherwise only job executions with status "QUEUED" are canceled. The default is false.

Canceling a job which is "IN_PROGRESS", will cause a device which is executing the job to be unable to update the job execution status. Use caution and ensure that each device executing a job which is canceled is able to recover to a valid state.

$sel:reasonCode:CancelJob', cancelJob_reasonCode - (Optional)A reason code string that explains why the job was canceled.

$sel:comment:CancelJob', cancelJob_comment - An optional comment string describing why the job was canceled.

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

Request Lenses

cancelJob_force :: Lens' CancelJob (Maybe Bool) Source #

(Optional) If true job executions with status "IN_PROGRESS" and "QUEUED" are canceled, otherwise only job executions with status "QUEUED" are canceled. The default is false.

Canceling a job which is "IN_PROGRESS", will cause a device which is executing the job to be unable to update the job execution status. Use caution and ensure that each device executing a job which is canceled is able to recover to a valid state.

cancelJob_reasonCode :: Lens' CancelJob (Maybe Text) Source #

(Optional)A reason code string that explains why the job was canceled.

cancelJob_comment :: Lens' CancelJob (Maybe Text) Source #

An optional comment string describing why the job was canceled.

cancelJob_jobId :: Lens' CancelJob Text Source #

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

Destructuring the Response

data CancelJobResponse Source #

See: newCancelJobResponse smart constructor.

Constructors

CancelJobResponse' 

Fields

Instances

Instances details
Eq CancelJobResponse Source # 
Instance details

Defined in Amazonka.IoT.CancelJob

Read CancelJobResponse Source # 
Instance details

Defined in Amazonka.IoT.CancelJob

Show CancelJobResponse Source # 
Instance details

Defined in Amazonka.IoT.CancelJob

Generic CancelJobResponse Source # 
Instance details

Defined in Amazonka.IoT.CancelJob

Associated Types

type Rep CancelJobResponse :: Type -> Type #

NFData CancelJobResponse Source # 
Instance details

Defined in Amazonka.IoT.CancelJob

Methods

rnf :: CancelJobResponse -> () #

type Rep CancelJobResponse Source # 
Instance details

Defined in Amazonka.IoT.CancelJob

type Rep CancelJobResponse = D1 ('MetaData "CancelJobResponse" "Amazonka.IoT.CancelJob" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "CancelJobResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "jobId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "jobArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newCancelJobResponse Source #

Create a value of CancelJobResponse 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:jobId:CancelJob', cancelJobResponse_jobId - The unique identifier you assigned to this job when it was created.

$sel:jobArn:CancelJobResponse', cancelJobResponse_jobArn - The job ARN.

$sel:description:CancelJobResponse', cancelJobResponse_description - A short text description of the job.

$sel:httpStatus:CancelJobResponse', cancelJobResponse_httpStatus - The response's http status code.

Response Lenses

cancelJobResponse_jobId :: Lens' CancelJobResponse (Maybe Text) Source #

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

cancelJobResponse_description :: Lens' CancelJobResponse (Maybe Text) Source #

A short text description of the job.

cancelJobResponse_httpStatus :: Lens' CancelJobResponse Int Source #

The response's http status code.