aws_sdk_deadline/client/
copy_job_template.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CopyJobTemplate`](crate::operation::copy_job_template::builders::CopyJobTemplateFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`farm_id(impl Into<String>)`](crate::operation::copy_job_template::builders::CopyJobTemplateFluentBuilder::farm_id) / [`set_farm_id(Option<String>)`](crate::operation::copy_job_template::builders::CopyJobTemplateFluentBuilder::set_farm_id):<br>required: **true**<br><p>The farm ID to copy.</p><br>
    ///   - [`job_id(impl Into<String>)`](crate::operation::copy_job_template::builders::CopyJobTemplateFluentBuilder::job_id) / [`set_job_id(Option<String>)`](crate::operation::copy_job_template::builders::CopyJobTemplateFluentBuilder::set_job_id):<br>required: **true**<br><p>The job ID to copy.</p><br>
    ///   - [`queue_id(impl Into<String>)`](crate::operation::copy_job_template::builders::CopyJobTemplateFluentBuilder::queue_id) / [`set_queue_id(Option<String>)`](crate::operation::copy_job_template::builders::CopyJobTemplateFluentBuilder::set_queue_id):<br>required: **true**<br><p>The queue ID to copy.</p><br>
    ///   - [`target_s3_location(S3Location)`](crate::operation::copy_job_template::builders::CopyJobTemplateFluentBuilder::target_s3_location) / [`set_target_s3_location(Option<S3Location>)`](crate::operation::copy_job_template::builders::CopyJobTemplateFluentBuilder::set_target_s3_location):<br>required: **true**<br><p>The Amazon S3 bucket name and key where you would like to add a copy of the job template.</p><br>
    /// - On success, responds with [`CopyJobTemplateOutput`](crate::operation::copy_job_template::CopyJobTemplateOutput) with field(s):
    ///   - [`template_type(JobTemplateType)`](crate::operation::copy_job_template::CopyJobTemplateOutput::template_type): <p>The format of the job template, either <code>JSON</code> or <code>YAML</code>.</p>
    /// - On failure, responds with [`SdkError<CopyJobTemplateError>`](crate::operation::copy_job_template::CopyJobTemplateError)
    pub fn copy_job_template(&self) -> crate::operation::copy_job_template::builders::CopyJobTemplateFluentBuilder {
        crate::operation::copy_job_template::builders::CopyJobTemplateFluentBuilder::new(self.handle.clone())
    }
}