getStatus method

Future<GetStatusOutput> getStatus({
  1. required String jobId,
  2. String? aPIVersion,
})

This operation returns information about a job, including where the job is in the processing pipeline, the status of the results, and the signature value associated with the job. You can only return information about jobs you own.

May throw InvalidJobIdException. May throw ExpiredJobIdException. May throw CanceledJobIdException. May throw InvalidAccessKeyIdException. May throw InvalidVersionException.

Implementation

Future<GetStatusOutput> getStatus({
  required String jobId,
  String? aPIVersion,
}) async {
  ArgumentError.checkNotNull(jobId, 'jobId');
  final $request = <String, dynamic>{};
  $request['JobId'] = jobId;
  aPIVersion?.also((arg) => $request['APIVersion'] = arg);
  final $result = await _protocol.send(
    $request,
    action: 'GetStatus',
    version: '2010-06-01',
    method: 'POST',
    requestUri: '/?Operation=GetStatus',
    exceptionFnMap: _exceptionFns,
    shape: shapes['GetStatusInput'],
    shapes: shapes,
    resultWrapper: 'GetStatusResult',
  );
  return GetStatusOutput.fromXml($result);
}