aws_sdk_ecs/client/
delete_capacity_provider.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 [`DeleteCapacityProvider`](crate::operation::delete_capacity_provider::builders::DeleteCapacityProviderFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`capacity_provider(impl Into<String>)`](crate::operation::delete_capacity_provider::builders::DeleteCapacityProviderFluentBuilder::capacity_provider) / [`set_capacity_provider(Option<String>)`](crate::operation::delete_capacity_provider::builders::DeleteCapacityProviderFluentBuilder::set_capacity_provider):<br>required: **true**<br><p>The short name or full Amazon Resource Name (ARN) of the capacity provider to delete.</p><br>
7    ///   - [`cluster(impl Into<String>)`](crate::operation::delete_capacity_provider::builders::DeleteCapacityProviderFluentBuilder::cluster) / [`set_cluster(Option<String>)`](crate::operation::delete_capacity_provider::builders::DeleteCapacityProviderFluentBuilder::set_cluster):<br>required: **false**<br><p>The name of the cluster that contains the capacity provider to delete. Managed instances capacity providers are cluster-scoped and can only be deleted from their associated cluster.</p><br>
8    /// - On success, responds with [`DeleteCapacityProviderOutput`](crate::operation::delete_capacity_provider::DeleteCapacityProviderOutput) with field(s):
9    ///   - [`capacity_provider(Option<CapacityProvider>)`](crate::operation::delete_capacity_provider::DeleteCapacityProviderOutput::capacity_provider): <p>The details of the capacity provider.</p>
10    /// - On failure, responds with [`SdkError<DeleteCapacityProviderError>`](crate::operation::delete_capacity_provider::DeleteCapacityProviderError)
11    pub fn delete_capacity_provider(&self) -> crate::operation::delete_capacity_provider::builders::DeleteCapacityProviderFluentBuilder {
12        crate::operation::delete_capacity_provider::builders::DeleteCapacityProviderFluentBuilder::new(self.handle.clone())
13    }
14}