Struct aws_sdk_ecs::client::fluent_builders::DeleteCapacityProvider
source · [−]pub struct DeleteCapacityProvider { /* private fields */ }
Expand description
Fluent builder constructing a request to DeleteCapacityProvider
.
Deletes the specified capacity provider.
The FARGATE
and FARGATE_SPOT
capacity providers are reserved and can't be deleted. You can disassociate them from a cluster using either the PutClusterCapacityProviders
API or by deleting the cluster.
Prior to a capacity provider being deleted, the capacity provider must be removed from the capacity provider strategy from all services. The UpdateService
API can be used to remove a capacity provider from a service's capacity provider strategy. When updating a service, the forceNewDeployment
option can be used to ensure that any tasks using the Amazon EC2 instance capacity provided by the capacity provider are transitioned to use the capacity from the remaining capacity providers. Only capacity providers that aren't associated with a cluster can be deleted. To remove a capacity provider from a cluster, you can either use PutClusterCapacityProviders
or delete the cluster.
Implementations
sourceimpl DeleteCapacityProvider
impl DeleteCapacityProvider
sourcepub async fn send(
self
) -> Result<DeleteCapacityProviderOutput, SdkError<DeleteCapacityProviderError>>
pub async fn send(
self
) -> Result<DeleteCapacityProviderOutput, SdkError<DeleteCapacityProviderError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn capacity_provider(self, input: impl Into<String>) -> Self
pub fn capacity_provider(self, input: impl Into<String>) -> Self
The short name or full Amazon Resource Name (ARN) of the capacity provider to delete.
sourcepub fn set_capacity_provider(self, input: Option<String>) -> Self
pub fn set_capacity_provider(self, input: Option<String>) -> Self
The short name or full Amazon Resource Name (ARN) of the capacity provider to delete.
Trait Implementations
sourceimpl Clone for DeleteCapacityProvider
impl Clone for DeleteCapacityProvider
sourcefn clone(&self) -> DeleteCapacityProvider
fn clone(&self) -> DeleteCapacityProvider
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl !RefUnwindSafe for DeleteCapacityProvider
impl Send for DeleteCapacityProvider
impl Sync for DeleteCapacityProvider
impl Unpin for DeleteCapacityProvider
impl !UnwindSafe for DeleteCapacityProvider
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more