aws_sdk_servicediscovery/client/
get_namespace.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 [`GetNamespace`](crate::operation::get_namespace::builders::GetNamespaceFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`id(impl Into<String>)`](crate::operation::get_namespace::builders::GetNamespaceFluentBuilder::id) / [`set_id(Option<String>)`](crate::operation::get_namespace::builders::GetNamespaceFluentBuilder::set_id):<br>required: **true**<br><p>The ID or Amazon Resource Name (ARN) of the namespace that you want to get information about. For namespaces shared with your Amazon Web Services account, specify the namespace 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 [`GetNamespaceOutput`](crate::operation::get_namespace::GetNamespaceOutput) with field(s):
8    ///   - [`namespace(Option<Namespace>)`](crate::operation::get_namespace::GetNamespaceOutput::namespace): <p>A complex type that contains information about the specified namespace.</p>
9    /// - On failure, responds with [`SdkError<GetNamespaceError>`](crate::operation::get_namespace::GetNamespaceError)
10    pub fn get_namespace(&self) -> crate::operation::get_namespace::builders::GetNamespaceFluentBuilder {
11        crate::operation::get_namespace::builders::GetNamespaceFluentBuilder::new(self.handle.clone())
12    }
13}