aws_sdk_servicediscovery/client/
get_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 [`GetService`](crate::operation::get_service::builders::GetServiceFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`id(impl Into<String>)`](crate::operation::get_service::builders::GetServiceFluentBuilder::id) / [`set_id(Option<String>)`](crate::operation::get_service::builders::GetServiceFluentBuilder::set_id):<br>required: **true**<br><p>The ID or Amazon Resource Name (ARN) of the service that you want to get settings for. For services created by consumers in a shared namespace, 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    /// - On success, responds with [`GetServiceOutput`](crate::operation::get_service::GetServiceOutput) with field(s):
8    ///   - [`service(Option<Service>)`](crate::operation::get_service::GetServiceOutput::service): <p>A complex type that contains information about the service.</p>
9    /// - On failure, responds with [`SdkError<GetServiceError>`](crate::operation::get_service::GetServiceError)
10    pub fn get_service(&self) -> crate::operation::get_service::builders::GetServiceFluentBuilder {
11        crate::operation::get_service::builders::GetServiceFluentBuilder::new(self.handle.clone())
12    }
13}