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