aws_sdk_servicediscovery/client/
deregister_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 [`DeregisterInstance`](crate::operation::deregister_instance::builders::DeregisterInstanceFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`service_id(impl Into<String>)`](crate::operation::deregister_instance::builders::DeregisterInstanceFluentBuilder::service_id) / [`set_service_id(Option<String>)`](crate::operation::deregister_instance::builders::DeregisterInstanceFluentBuilder::set_service_id):<br>required: **true**<br><p>The ID or Amazon Resource Name (ARN) of the service that the instance is associated with. If the namespace associated with the service is shared with your 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    ///   - [`instance_id(impl Into<String>)`](crate::operation::deregister_instance::builders::DeregisterInstanceFluentBuilder::instance_id) / [`set_instance_id(Option<String>)`](crate::operation::deregister_instance::builders::DeregisterInstanceFluentBuilder::set_instance_id):<br>required: **true**<br><p>The value that you specified for <code>Id</code> in the <a href="https://docs.aws.amazon.com/cloud-map/latest/api/API_RegisterInstance.html">RegisterInstance</a> request.</p><br>
8    /// - On success, responds with [`DeregisterInstanceOutput`](crate::operation::deregister_instance::DeregisterInstanceOutput) with field(s):
9    ///   - [`operation_id(Option<String>)`](crate::operation::deregister_instance::DeregisterInstanceOutput::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<DeregisterInstanceError>`](crate::operation::deregister_instance::DeregisterInstanceError)
11    pub fn deregister_instance(&self) -> crate::operation::deregister_instance::builders::DeregisterInstanceFluentBuilder {
12        crate::operation::deregister_instance::builders::DeregisterInstanceFluentBuilder::new(self.handle.clone())
13    }
14}