aws_sdk_servicediscovery/client/delete_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 [`DeleteService`](crate::operation::delete_service::builders::DeleteServiceFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`id(impl Into<String>)`](crate::operation::delete_service::builders::DeleteServiceFluentBuilder::id) / [`set_id(Option<String>)`](crate::operation::delete_service::builders::DeleteServiceFluentBuilder::set_id):<br>required: **true**<br><p>The ID or Amazon Resource Name (ARN) of the service that you want to delete. If the namespace associated with the service is 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>.</p><br>
7 /// - On success, responds with [`DeleteServiceOutput`](crate::operation::delete_service::DeleteServiceOutput)
8 /// - On failure, responds with [`SdkError<DeleteServiceError>`](crate::operation::delete_service::DeleteServiceError)
9 pub fn delete_service(&self) -> crate::operation::delete_service::builders::DeleteServiceFluentBuilder {
10 crate::operation::delete_service::builders::DeleteServiceFluentBuilder::new(self.handle.clone())
11 }
12}