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.
Request Request Example
Shell
JavaScript
Java
Swift
curl--location-g--request PUT 'https://api.iotwireless.{region}.amazonaws.com/audit/tasks//cancel'
Response Response Example
200 - Example 1
{}
Request
Path Params
taskId
stringÂ
required
The ID of the audit you want to cancel. You can only cancel an audit that is "IN_PROGRESS".