updateJob method
You use this operation to change the parameters specified in the original manifest file by supplying a new manifest file. The manifest file attached to this request replaces the original manifest file. You can only use the operation after a CreateJob request but before the data transfer starts and you can only use it on jobs you own.
May throw MissingParameterException. May throw InvalidParameterException. May throw InvalidAccessKeyIdException. May throw InvalidAddressException. May throw InvalidManifestFieldException. May throw InvalidJobIdException. May throw MissingManifestFieldException. May throw NoSuchBucketException. May throw ExpiredJobIdException. May throw CanceledJobIdException. May throw MissingCustomsException. May throw InvalidCustomsException. May throw InvalidFileSystemException. May throw MultipleRegionsException. May throw BucketPermissionException. May throw MalformedManifestException. May throw UnableToUpdateJobIdException. May throw InvalidVersionException.
Implementation
Future<UpdateJobOutput> updateJob({
required String jobId,
required JobType jobType,
required String manifest,
required bool validateOnly,
String? aPIVersion,
}) async {
ArgumentError.checkNotNull(jobId, 'jobId');
ArgumentError.checkNotNull(jobType, 'jobType');
ArgumentError.checkNotNull(manifest, 'manifest');
ArgumentError.checkNotNull(validateOnly, 'validateOnly');
final $request = <String, dynamic>{};
$request['JobId'] = jobId;
$request['JobType'] = jobType.toValue();
$request['Manifest'] = manifest;
$request['ValidateOnly'] = validateOnly;
aPIVersion?.also((arg) => $request['APIVersion'] = arg);
final $result = await _protocol.send(
$request,
action: 'UpdateJob',
version: '2010-06-01',
method: 'POST',
requestUri: '/?Operation=UpdateJob',
exceptionFnMap: _exceptionFns,
shape: shapes['UpdateJobInput'],
shapes: shapes,
resultWrapper: 'UpdateJobResult',
);
return UpdateJobOutput.fromXml($result);
}