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

Description

Cancels an audit that is in progress. The audit can be either scheduled or on demand. If the audit isn't in progress, an "InvalidRequestException" occurs.

Requires permission to access the CancelAuditTask action.

Synopsis

Creating a Request

data CancelAuditTask Source #

See: newCancelAuditTask smart constructor.

Constructors

CancelAuditTask' 

Fields

  • taskId :: Text

    The ID of the audit you want to cancel. You can only cancel an audit that is "IN_PROGRESS".

Instances

Instances details
Eq CancelAuditTask Source # 
Instance details

Defined in Amazonka.IoT.CancelAuditTask

Read CancelAuditTask Source # 
Instance details

Defined in Amazonka.IoT.CancelAuditTask

Show CancelAuditTask Source # 
Instance details

Defined in Amazonka.IoT.CancelAuditTask

Generic CancelAuditTask Source # 
Instance details

Defined in Amazonka.IoT.CancelAuditTask

Associated Types

type Rep CancelAuditTask :: Type -> Type #

NFData CancelAuditTask Source # 
Instance details

Defined in Amazonka.IoT.CancelAuditTask

Methods

rnf :: CancelAuditTask -> () #

Hashable CancelAuditTask Source # 
Instance details

Defined in Amazonka.IoT.CancelAuditTask

ToJSON CancelAuditTask Source # 
Instance details

Defined in Amazonka.IoT.CancelAuditTask

AWSRequest CancelAuditTask Source # 
Instance details

Defined in Amazonka.IoT.CancelAuditTask

Associated Types

type AWSResponse CancelAuditTask #

ToHeaders CancelAuditTask Source # 
Instance details

Defined in Amazonka.IoT.CancelAuditTask

ToPath CancelAuditTask Source # 
Instance details

Defined in Amazonka.IoT.CancelAuditTask

ToQuery CancelAuditTask Source # 
Instance details

Defined in Amazonka.IoT.CancelAuditTask

type Rep CancelAuditTask Source # 
Instance details

Defined in Amazonka.IoT.CancelAuditTask

type Rep CancelAuditTask = D1 ('MetaData "CancelAuditTask" "Amazonka.IoT.CancelAuditTask" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "CancelAuditTask'" 'PrefixI 'True) (S1 ('MetaSel ('Just "taskId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse CancelAuditTask Source # 
Instance details

Defined in Amazonka.IoT.CancelAuditTask

newCancelAuditTask Source #

Create a value of CancelAuditTask 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:taskId:CancelAuditTask', cancelAuditTask_taskId - The ID of the audit you want to cancel. You can only cancel an audit that is "IN_PROGRESS".

Request Lenses

cancelAuditTask_taskId :: Lens' CancelAuditTask Text Source #

The ID of the audit you want to cancel. You can only cancel an audit that is "IN_PROGRESS".

Destructuring the Response

data CancelAuditTaskResponse Source #

See: newCancelAuditTaskResponse smart constructor.

Constructors

CancelAuditTaskResponse' 

Fields

Instances

Instances details
Eq CancelAuditTaskResponse Source # 
Instance details

Defined in Amazonka.IoT.CancelAuditTask

Read CancelAuditTaskResponse Source # 
Instance details

Defined in Amazonka.IoT.CancelAuditTask

Show CancelAuditTaskResponse Source # 
Instance details

Defined in Amazonka.IoT.CancelAuditTask

Generic CancelAuditTaskResponse Source # 
Instance details

Defined in Amazonka.IoT.CancelAuditTask

Associated Types

type Rep CancelAuditTaskResponse :: Type -> Type #

NFData CancelAuditTaskResponse Source # 
Instance details

Defined in Amazonka.IoT.CancelAuditTask

Methods

rnf :: CancelAuditTaskResponse -> () #

type Rep CancelAuditTaskResponse Source # 
Instance details

Defined in Amazonka.IoT.CancelAuditTask

type Rep CancelAuditTaskResponse = D1 ('MetaData "CancelAuditTaskResponse" "Amazonka.IoT.CancelAuditTask" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "CancelAuditTaskResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCancelAuditTaskResponse Source #

Create a value of CancelAuditTaskResponse 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:httpStatus:CancelAuditTaskResponse', cancelAuditTaskResponse_httpStatus - The response's http status code.

Response Lenses