readJob method

Future<ReadJobResponse> readJob({
  1. required String id,
})

The ReadJob operation returns detailed information about a job.

May throw ValidationException. May throw IncompatibleVersionException. May throw ResourceNotFoundException. May throw AccessDeniedException. May throw InternalServiceException.

Parameter id : The identifier of the job for which you want to get detailed information.

Implementation

Future<ReadJobResponse> readJob({
  required String id,
}) async {
  ArgumentError.checkNotNull(id, 'id');
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/2012-09-25/jobs/${Uri.encodeComponent(id)}',
    exceptionFnMap: _exceptionFns,
  );
  return ReadJobResponse.fromJson(response);
}