aws_sdk_servicediscovery/client/
get_instance.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 [`GetInstance`](crate::operation::get_instance::builders::GetInstanceFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`service_id(impl Into<String>)`](crate::operation::get_instance::builders::GetInstanceFluentBuilder::service_id) / [`set_service_id(Option<String>)`](crate::operation::get_instance::builders::GetInstanceFluentBuilder::set_service_id):<br>required: **true**<br><p>The ID or Amazon Resource Name (ARN) of the service that the instance is associated with. For services created 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    ///   - [`instance_id(impl Into<String>)`](crate::operation::get_instance::builders::GetInstanceFluentBuilder::instance_id) / [`set_instance_id(Option<String>)`](crate::operation::get_instance::builders::GetInstanceFluentBuilder::set_instance_id):<br>required: **true**<br><p>The ID of the instance that you want to get information about.</p><br>
8    /// - On success, responds with [`GetInstanceOutput`](crate::operation::get_instance::GetInstanceOutput) with field(s):
9    ///   - [`resource_owner(Option<String>)`](crate::operation::get_instance::GetInstanceOutput::resource_owner): <p>The ID of the Amazon Web Services account that created the namespace that contains the service that the instance is associated with. If this isn't your account ID, it's the ID of the account that shared the namespace with your account.</p>
10    ///   - [`instance(Option<Instance>)`](crate::operation::get_instance::GetInstanceOutput::instance): <p>A complex type that contains information about a specified instance.</p>
11    /// - On failure, responds with [`SdkError<GetInstanceError>`](crate::operation::get_instance::GetInstanceError)
12    pub fn get_instance(&self) -> crate::operation::get_instance::builders::GetInstanceFluentBuilder {
13        crate::operation::get_instance::builders::GetInstanceFluentBuilder::new(self.handle.clone())
14    }
15}