cancelDetectMitigationActionsTask method
Cancels a Device Defender ML Detect mitigation action.
Requires permission to access the CancelDetectMitigationActionsTask action.
May throw InternalFailureException.
May throw InvalidRequestException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
Parameter taskId :
The unique identifier of the task.
Implementation
Future<void> cancelDetectMitigationActionsTask({
required String taskId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'PUT',
requestUri:
'/detect/mitigationactions/tasks/${Uri.encodeComponent(taskId)}/cancel',
exceptionFnMap: _exceptionFns,
);
}