getRunTask method

Future<GetRunTaskResponse> getRunTask({
  1. required String id,
  2. required String taskId,
})

Gets detailed information about a run task using its ID.

May throw AccessDeniedException. May throw ConflictException. May throw InternalServerException. May throw RequestTimeoutException. May throw ResourceNotFoundException. May throw ServiceQuotaExceededException. May throw ThrottlingException. May throw ValidationException.

Parameter id : The workflow run ID.

Parameter taskId : The task's ID.

Implementation

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