aws_sdk_proton/client/create_environment_template_version.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`CreateEnvironmentTemplateVersion`](crate::operation::create_environment_template_version::builders::CreateEnvironmentTemplateVersionFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`client_token(impl Into<String>)`](crate::operation::create_environment_template_version::builders::CreateEnvironmentTemplateVersionFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_environment_template_version::builders::CreateEnvironmentTemplateVersionFluentBuilder::set_client_token):<br>required: **false**<br><p>When included, if two identical requests are made with the same client token, Proton returns the environment template version that the first request created.</p><br>
7 /// - [`template_name(impl Into<String>)`](crate::operation::create_environment_template_version::builders::CreateEnvironmentTemplateVersionFluentBuilder::template_name) / [`set_template_name(Option<String>)`](crate::operation::create_environment_template_version::builders::CreateEnvironmentTemplateVersionFluentBuilder::set_template_name):<br>required: **true**<br><p>The name of the environment template.</p><br>
8 /// - [`description(impl Into<String>)`](crate::operation::create_environment_template_version::builders::CreateEnvironmentTemplateVersionFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_environment_template_version::builders::CreateEnvironmentTemplateVersionFluentBuilder::set_description):<br>required: **false**<br><p>A description of the new version of an environment template.</p><br>
9 /// - [`major_version(impl Into<String>)`](crate::operation::create_environment_template_version::builders::CreateEnvironmentTemplateVersionFluentBuilder::major_version) / [`set_major_version(Option<String>)`](crate::operation::create_environment_template_version::builders::CreateEnvironmentTemplateVersionFluentBuilder::set_major_version):<br>required: **false**<br><p>To create a new minor version of the environment template, include <code>major Version</code>.</p> <p>To create a new major and minor version of the environment template, exclude <code>major Version</code>.</p><br>
10 /// - [`source(TemplateVersionSourceInput)`](crate::operation::create_environment_template_version::builders::CreateEnvironmentTemplateVersionFluentBuilder::source) / [`set_source(Option<TemplateVersionSourceInput>)`](crate::operation::create_environment_template_version::builders::CreateEnvironmentTemplateVersionFluentBuilder::set_source):<br>required: **true**<br><p>An object that includes the template bundle S3 bucket path and name for the new version of an template.</p><br>
11 /// - [`tags(Tag)`](crate::operation::create_environment_template_version::builders::CreateEnvironmentTemplateVersionFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::create_environment_template_version::builders::CreateEnvironmentTemplateVersionFluentBuilder::set_tags):<br>required: **false**<br><p>An optional list of metadata items that you can associate with the Proton environment template version. A tag is a key-value pair.</p> <p>For more information, see <a href="https://docs.aws.amazon.com/proton/latest/userguide/resources.html">Proton resources and tagging</a> in the <i>Proton User Guide</i>.</p><br>
12 /// - On success, responds with [`CreateEnvironmentTemplateVersionOutput`](crate::operation::create_environment_template_version::CreateEnvironmentTemplateVersionOutput) with field(s):
13 /// - [`environment_template_version(Option<EnvironmentTemplateVersion>)`](crate::operation::create_environment_template_version::CreateEnvironmentTemplateVersionOutput::environment_template_version): <p>The environment template detail data that's returned by Proton.</p>
14 /// - On failure, responds with [`SdkError<CreateEnvironmentTemplateVersionError>`](crate::operation::create_environment_template_version::CreateEnvironmentTemplateVersionError)
15 pub fn create_environment_template_version(
16 &self,
17 ) -> crate::operation::create_environment_template_version::builders::CreateEnvironmentTemplateVersionFluentBuilder {
18 crate::operation::create_environment_template_version::builders::CreateEnvironmentTemplateVersionFluentBuilder::new(self.handle.clone())
19 }
20}