getJob method
Retrieves an existing job definition.
May throw InvalidInputException. May throw EntityNotFoundException. May throw InternalServiceException. May throw OperationTimeoutException.
Parameter jobName
:
The name of the job definition to retrieve.
Implementation
Future<GetJobResponse> getJob({
required String jobName,
}) async {
ArgumentError.checkNotNull(jobName, 'jobName');
_s.validateStringLength(
'jobName',
jobName,
1,
255,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSGlue.GetJob'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'JobName': jobName,
},
);
return GetJobResponse.fromJson(jsonResponse.body);
}