describeJob method
Returns information about a specific job including shipping information, job status, and other important metadata.
May throw InvalidResourceException.
Parameter jobId
:
The automatically generated ID for a job, for example
JID123e4567-e89b-12d3-a456-426655440000
.
Implementation
Future<DescribeJobResult> describeJob({
required String jobId,
}) async {
ArgumentError.checkNotNull(jobId, 'jobId');
_s.validateStringLength(
'jobId',
jobId,
39,
39,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSIESnowballJobManagementService.DescribeJob'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'JobId': jobId,
},
);
return DescribeJobResult.fromJson(jsonResponse.body);
}