aws_sdk_proton/client/
update_service.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 [`UpdateService`](crate::operation::update_service::builders::UpdateServiceFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`name(impl Into<String>)`](crate::operation::update_service::builders::UpdateServiceFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::update_service::builders::UpdateServiceFluentBuilder::set_name):<br>required: **true**<br><p>The name of the service to edit.</p><br>
7    ///   - [`description(impl Into<String>)`](crate::operation::update_service::builders::UpdateServiceFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::update_service::builders::UpdateServiceFluentBuilder::set_description):<br>required: **false**<br><p>The edited service description.</p><br>
8    ///   - [`spec(impl Into<String>)`](crate::operation::update_service::builders::UpdateServiceFluentBuilder::spec) / [`set_spec(Option<String>)`](crate::operation::update_service::builders::UpdateServiceFluentBuilder::set_spec):<br>required: **false**<br><p>Lists the service instances to add and the existing service instances to remain. Omit the existing service instances to delete from the list. <i>Don't</i> include edits to the existing service instances or pipeline. For more information, see <a href="https://docs.aws.amazon.com/proton/latest/userguide/ag-svc-update.html">Edit a service</a> in the <i>Proton User Guide</i>.</p><br>
9    /// - On success, responds with [`UpdateServiceOutput`](crate::operation::update_service::UpdateServiceOutput) with field(s):
10    ///   - [`service(Option<Service>)`](crate::operation::update_service::UpdateServiceOutput::service): <p>The service detail data that's returned by Proton.</p>
11    /// - On failure, responds with [`SdkError<UpdateServiceError>`](crate::operation::update_service::UpdateServiceError)
12    pub fn update_service(&self) -> crate::operation::update_service::builders::UpdateServiceFluentBuilder {
13        crate::operation::update_service::builders::UpdateServiceFluentBuilder::new(self.handle.clone())
14    }
15}