aws_sdk_ecs/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    ///   - [`cluster(impl Into<String>)`](crate::operation::delete_service::builders::DeleteServiceFluentBuilder::cluster) / [`set_cluster(Option<String>)`](crate::operation::delete_service::builders::DeleteServiceFluentBuilder::set_cluster):<br>required: **false**<br><p>The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service to delete. If you do not specify a cluster, the default cluster is assumed.</p><br>
7    ///   - [`service(impl Into<String>)`](crate::operation::delete_service::builders::DeleteServiceFluentBuilder::service) / [`set_service(Option<String>)`](crate::operation::delete_service::builders::DeleteServiceFluentBuilder::set_service):<br>required: **true**<br><p>The name of the service to delete.</p><br>
8    ///   - [`force(bool)`](crate::operation::delete_service::builders::DeleteServiceFluentBuilder::force) / [`set_force(Option<bool>)`](crate::operation::delete_service::builders::DeleteServiceFluentBuilder::set_force):<br>required: **false**<br><p>If <code>true</code>, allows you to delete a service even if it wasn't scaled down to zero tasks. It's only necessary to use this if the service uses the <code>REPLICA</code> scheduling strategy.</p><br>
9    /// - On success, responds with [`DeleteServiceOutput`](crate::operation::delete_service::DeleteServiceOutput) with field(s):
10    ///   - [`service(Option<Service>)`](crate::operation::delete_service::DeleteServiceOutput::service): <p>The full description of the deleted service.</p>
11    /// - On failure, responds with [`SdkError<DeleteServiceError>`](crate::operation::delete_service::DeleteServiceError)
12    pub fn delete_service(&self) -> crate::operation::delete_service::builders::DeleteServiceFluentBuilder {
13        crate::operation::delete_service::builders::DeleteServiceFluentBuilder::new(self.handle.clone())
14    }
15}