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 |
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
- 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.
Constructors
CancelAuditTask' | |
Instances
Arguments
:: Text | |
-> CancelAuditTask |
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
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.