describeTask method

Future<DescribeTaskOutput> describeTask({
  1. required String taskId,
})

Checks the metadata for a given task on a device.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter taskId : The ID of the task to be described.

Implementation

Future<DescribeTaskOutput> describeTask({
  required String taskId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'POST',
    requestUri: '/task/${Uri.encodeComponent(taskId)}',
    exceptionFnMap: _exceptionFns,
  );
  return DescribeTaskOutput.fromJson(response);
}