Struct aws_sdk_ecs::operation::delete_capacity_provider::builders::DeleteCapacityProviderFluentBuilder
source · pub struct DeleteCapacityProviderFluentBuilder { /* 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§
source§impl DeleteCapacityProviderFluentBuilder
impl DeleteCapacityProviderFluentBuilder
sourcepub fn as_input(&self) -> &DeleteCapacityProviderInputBuilder
pub fn as_input(&self) -> &DeleteCapacityProviderInputBuilder
Access the DeleteCapacityProvider as a reference.
sourcepub async fn send(
self
) -> Result<DeleteCapacityProviderOutput, SdkError<DeleteCapacityProviderError, HttpResponse>>
pub async fn send( self ) -> Result<DeleteCapacityProviderOutput, SdkError<DeleteCapacityProviderError, HttpResponse>>
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 async fn customize(
self
) -> Result<CustomizableOperation<DeleteCapacityProviderOutput, DeleteCapacityProviderError>, SdkError<DeleteCapacityProviderError>>
pub async fn customize( self ) -> Result<CustomizableOperation<DeleteCapacityProviderOutput, DeleteCapacityProviderError>, SdkError<DeleteCapacityProviderError>>
Consumes this builder, creating a customizable operation that can be modified before being sent.
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.
sourcepub fn get_capacity_provider(&self) -> &Option<String>
pub fn get_capacity_provider(&self) -> &Option<String>
The short name or full Amazon Resource Name (ARN) of the capacity provider to delete.
Trait Implementations§
source§impl Clone for DeleteCapacityProviderFluentBuilder
impl Clone for DeleteCapacityProviderFluentBuilder
source§fn clone(&self) -> DeleteCapacityProviderFluentBuilder
fn clone(&self) -> DeleteCapacityProviderFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more