aws_sdk_proton/client/
update_service_pipeline.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 [`UpdateServicePipeline`](crate::operation::update_service_pipeline::builders::UpdateServicePipelineFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`service_name(impl Into<String>)`](crate::operation::update_service_pipeline::builders::UpdateServicePipelineFluentBuilder::service_name) / [`set_service_name(Option<String>)`](crate::operation::update_service_pipeline::builders::UpdateServicePipelineFluentBuilder::set_service_name):<br>required: **true**<br><p>The name of the service to that the pipeline is associated with.</p><br>
7    ///   - [`spec(impl Into<String>)`](crate::operation::update_service_pipeline::builders::UpdateServicePipelineFluentBuilder::spec) / [`set_spec(Option<String>)`](crate::operation::update_service_pipeline::builders::UpdateServicePipelineFluentBuilder::set_spec):<br>required: **true**<br><p>The spec for the service pipeline to update.</p><br>
8    ///   - [`deployment_type(DeploymentUpdateType)`](crate::operation::update_service_pipeline::builders::UpdateServicePipelineFluentBuilder::deployment_type) / [`set_deployment_type(Option<DeploymentUpdateType>)`](crate::operation::update_service_pipeline::builders::UpdateServicePipelineFluentBuilder::set_deployment_type):<br>required: **true**<br><p>The deployment type.</p> <p>There are four modes for updating a service pipeline. The <code>deploymentType</code> field defines the mode.</p> <dl>  <dt></dt>  <dd>   <p><code>NONE</code></p>   <p>In this mode, a deployment <i>doesn't</i> occur. Only the requested metadata parameters are updated.</p>  </dd>  <dt></dt>  <dd>   <p><code>CURRENT_VERSION</code></p>   <p>In this mode, the service pipeline is deployed and updated with the new spec that you provide. Only requested parameters are updated. <i>Don’t</i> include major or minor version parameters when you use this <code>deployment-type</code>.</p>  </dd>  <dt></dt>  <dd>   <p><code>MINOR_VERSION</code></p>   <p>In this mode, the service pipeline is deployed and updated with the published, recommended (latest) minor version of the current major version in use, by default. You can specify a different minor version of the current major version in use.</p>  </dd>  <dt></dt>  <dd>   <p><code>MAJOR_VERSION</code></p>   <p>In this mode, the service pipeline is deployed and updated with the published, recommended (latest) major and minor version of the current template, by default. You can specify a different major version that's higher than the major version in use and a minor version.</p>  </dd> </dl><br>
9    ///   - [`template_major_version(impl Into<String>)`](crate::operation::update_service_pipeline::builders::UpdateServicePipelineFluentBuilder::template_major_version) / [`set_template_major_version(Option<String>)`](crate::operation::update_service_pipeline::builders::UpdateServicePipelineFluentBuilder::set_template_major_version):<br>required: **false**<br><p>The major version of the service template that was used to create the service that the pipeline is associated with.</p><br>
10    ///   - [`template_minor_version(impl Into<String>)`](crate::operation::update_service_pipeline::builders::UpdateServicePipelineFluentBuilder::template_minor_version) / [`set_template_minor_version(Option<String>)`](crate::operation::update_service_pipeline::builders::UpdateServicePipelineFluentBuilder::set_template_minor_version):<br>required: **false**<br><p>The minor version of the service template that was used to create the service that the pipeline is associated with.</p><br>
11    /// - On success, responds with [`UpdateServicePipelineOutput`](crate::operation::update_service_pipeline::UpdateServicePipelineOutput) with field(s):
12    ///   - [`pipeline(Option<ServicePipeline>)`](crate::operation::update_service_pipeline::UpdateServicePipelineOutput::pipeline): <p>The pipeline details that are returned by Proton.</p>
13    /// - On failure, responds with [`SdkError<UpdateServicePipelineError>`](crate::operation::update_service_pipeline::UpdateServicePipelineError)
14    pub fn update_service_pipeline(&self) -> crate::operation::update_service_pipeline::builders::UpdateServicePipelineFluentBuilder {
15        crate::operation::update_service_pipeline::builders::UpdateServicePipelineFluentBuilder::new(self.handle.clone())
16    }
17}