copyJobTemplate method
Copies a job template to an Amazon S3 bucket.
May throw AccessDeniedException.
May throw InternalServerErrorException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter farmId :
The farm ID to copy.
Parameter jobId :
The job ID to copy.
Parameter queueId :
The queue ID to copy.
Parameter targetS3Location :
The Amazon S3 bucket name and key where you would like to add a copy of
the job template.
Implementation
Future<CopyJobTemplateResponse> copyJobTemplate({
required String farmId,
required String jobId,
required String queueId,
required S3Location targetS3Location,
}) async {
final $payload = <String, dynamic>{
'targetS3Location': targetS3Location,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri:
'/2023-10-12/farms/${Uri.encodeComponent(farmId)}/queues/${Uri.encodeComponent(queueId)}/jobs/${Uri.encodeComponent(jobId)}/template',
exceptionFnMap: _exceptionFns,
);
return CopyJobTemplateResponse.fromJson(response);
}