describeDetectMitigationActionsTask method

Future<DescribeDetectMitigationActionsTaskResponse> describeDetectMitigationActionsTask({
  1. required String taskId,
})

Gets information about a Device Defender ML Detect mitigation action.

Requires permission to access the DescribeDetectMitigationActionsTask action.

May throw InternalFailureException. May throw InvalidRequestException. May throw ResourceNotFoundException. May throw ThrottlingException.

Parameter taskId : The unique identifier of the task.

Implementation

Future<DescribeDetectMitigationActionsTaskResponse>
    describeDetectMitigationActionsTask({
  required String taskId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/detect/mitigationactions/tasks/${Uri.encodeComponent(taskId)}',
    exceptionFnMap: _exceptionFns,
  );
  return DescribeDetectMitigationActionsTaskResponse.fromJson(response);
}