Struct aws_sdk_ecs::client::fluent_builders::DeleteCapacityProvider
source · [−]pub struct DeleteCapacityProvider<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* 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
impl<C, M, R> DeleteCapacityProvider<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> DeleteCapacityProvider<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<DeleteCapacityProviderOutput, SdkError<DeleteCapacityProviderError>> where
R::Policy: SmithyRetryPolicy<DeleteCapacityProviderInputOperationOutputAlias, DeleteCapacityProviderOutput, DeleteCapacityProviderError, DeleteCapacityProviderInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<DeleteCapacityProviderOutput, SdkError<DeleteCapacityProviderError>> where
R::Policy: SmithyRetryPolicy<DeleteCapacityProviderInputOperationOutputAlias, DeleteCapacityProviderOutput, DeleteCapacityProviderError, DeleteCapacityProviderInputOperationRetryAlias>,
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.
The short name or full Amazon Resource Name (ARN) of the capacity provider to delete.
The short name or full Amazon Resource Name (ARN) of the capacity provider to delete.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for DeleteCapacityProvider<C, M, R>
impl<C, M, R> Send for DeleteCapacityProvider<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for DeleteCapacityProvider<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for DeleteCapacityProvider<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for DeleteCapacityProvider<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more