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