aws_sdk_servicediscovery/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    ///   - [`id(impl Into<String>)`](crate::operation::update_service::builders::UpdateServiceFluentBuilder::id) / [`set_id(Option<String>)`](crate::operation::update_service::builders::UpdateServiceFluentBuilder::set_id):<br>required: **true**<br><p>The ID or Amazon Resource Name (ARN) of the service that you want to update. If the namespace associated with the service is shared with your Amazon Web Services account, specify the service ARN. For more information about shared namespaces, see <a href="https://docs.aws.amazon.com/cloud-map/latest/dg/sharing-namespaces.html">Cross-account Cloud Map namespace sharing</a> in the <i>Cloud Map Developer Guide</i></p><br>
7    ///   - [`service(ServiceChange)`](crate::operation::update_service::builders::UpdateServiceFluentBuilder::service) / [`set_service(Option<ServiceChange>)`](crate::operation::update_service::builders::UpdateServiceFluentBuilder::set_service):<br>required: **true**<br><p>A complex type that contains the new settings for the service. You can specify a maximum of 30 attributes (key-value pairs).</p><br>
8    /// - On success, responds with [`UpdateServiceOutput`](crate::operation::update_service::UpdateServiceOutput) with field(s):
9    ///   - [`operation_id(Option<String>)`](crate::operation::update_service::UpdateServiceOutput::operation_id): <p>A value that you can use to determine whether the request completed successfully. To get the status of the operation, see <a href="https://docs.aws.amazon.com/cloud-map/latest/api/API_GetOperation.html">GetOperation</a>.</p>
10    /// - On failure, responds with [`SdkError<UpdateServiceError>`](crate::operation::update_service::UpdateServiceError)
11    pub fn update_service(&self) -> crate::operation::update_service::builders::UpdateServiceFluentBuilder {
12        crate::operation::update_service::builders::UpdateServiceFluentBuilder::new(self.handle.clone())
13    }
14}