describeDetectMitigationActionsTask method
Future<DescribeDetectMitigationActionsTaskResponse>
describeDetectMitigationActionsTask({
- required String taskId,
Gets information about 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<DescribeDetectMitigationActionsTaskResponse>
describeDetectMitigationActionsTask({
required String taskId,
}) async {
ArgumentError.checkNotNull(taskId, 'taskId');
_s.validateStringLength(
'taskId',
taskId,
1,
128,
isRequired: true,
);
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/detect/mitigationactions/tasks/${Uri.encodeComponent(taskId)}',
exceptionFnMap: _exceptionFns,
);
return DescribeDetectMitigationActionsTaskResponse.fromJson(response);
}