aws_sdk_servicediscovery/client/
get_service_attributes.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 [`GetServiceAttributes`](crate::operation::get_service_attributes::builders::GetServiceAttributesFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`service_id(impl Into<String>)`](crate::operation::get_service_attributes::builders::GetServiceAttributesFluentBuilder::service_id) / [`set_service_id(Option<String>)`](crate::operation::get_service_attributes::builders::GetServiceAttributesFluentBuilder::set_service_id):<br>required: **true**<br><p>The ID or Amazon Resource Name (ARN) of the service that you want to get attributes for. For services created in a namespace 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    /// - On success, responds with [`GetServiceAttributesOutput`](crate::operation::get_service_attributes::GetServiceAttributesOutput) with field(s):
8    ///   - [`service_attributes(Option<ServiceAttributes>)`](crate::operation::get_service_attributes::GetServiceAttributesOutput::service_attributes): <p>A complex type that contains the service ARN and a list of attribute key-value pairs associated with the service.</p>
9    /// - On failure, responds with [`SdkError<GetServiceAttributesError>`](crate::operation::get_service_attributes::GetServiceAttributesError)
10    pub fn get_service_attributes(&self) -> crate::operation::get_service_attributes::builders::GetServiceAttributesFluentBuilder {
11        crate::operation::get_service_attributes::builders::GetServiceAttributesFluentBuilder::new(self.handle.clone())
12    }
13}