Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
- data CancelAuditTask = CancelAuditTask' {}
- newCancelAuditTask :: Text -> CancelAuditTask
- cancelAuditTask_taskId :: Lens' CancelAuditTask Text
- data CancelAuditTaskResponse = CancelAuditTaskResponse' {
- httpStatus :: Int
- newCancelAuditTaskResponse :: Int -> CancelAuditTaskResponse
- cancelAuditTaskResponse_httpStatus :: Lens' CancelAuditTaskResponse Int
Creating a Request
data CancelAuditTask Source #
See: newCancelAuditTask
smart constructor.
Instances
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.
CancelAuditTaskResponse' | |
|
Instances
Eq CancelAuditTaskResponse Source # | |
Defined in Amazonka.IoT.CancelAuditTask | |
Read CancelAuditTaskResponse Source # | |
Show CancelAuditTaskResponse Source # | |
Defined in Amazonka.IoT.CancelAuditTask showsPrec :: Int -> CancelAuditTaskResponse -> ShowS # show :: CancelAuditTaskResponse -> String # showList :: [CancelAuditTaskResponse] -> ShowS # | |
Generic CancelAuditTaskResponse Source # | |
Defined in Amazonka.IoT.CancelAuditTask type Rep CancelAuditTaskResponse :: Type -> Type # | |
NFData CancelAuditTaskResponse Source # | |
Defined in Amazonka.IoT.CancelAuditTask rnf :: CancelAuditTaskResponse -> () # | |
type Rep CancelAuditTaskResponse Source # | |
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
cancelAuditTaskResponse_httpStatus :: Lens' CancelAuditTaskResponse Int Source #
The response's http status code.