Deletes the specified capacity provider.
The FARGATE
and FARGATE_SPOT
capacity providers are reserved and
cannot be deleted. You can disassociate them from a cluster using either
the
put_cluster_capacity_providers
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
update_service
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 are not
associated with a cluster can be deleted. To remove a capacity provider
from a cluster, you can either use
put_cluster_capacity_providers
or delete the cluster.
ecs_delete_capacity_provider(capacityProvider)
A list with the following syntax:
list(
capacityProvider = list(
capacityProviderArn = "string",
name = "string",
status = "ACTIVE"|"INACTIVE",
autoScalingGroupProvider = list(
autoScalingGroupArn = "string",
managedScaling = list(
status = "ENABLED"|"DISABLED",
targetCapacity = 123,
minimumScalingStepSize = 123,
maximumScalingStepSize = 123,
instanceWarmupPeriod = 123
),
managedTerminationProtection = "ENABLED"|"DISABLED"
),
updateStatus = "DELETE_IN_PROGRESS"|"DELETE_COMPLETE"|"DELETE_FAILED"|"UPDATE_IN_PROGRESS"|"UPDATE_COMPLETE"|"UPDATE_FAILED",
updateStatusReason = "string",
tags = list(
list(
key = "string",
value = "string"
)
)
)
)
[required] The short name or full Amazon Resource Name (ARN) of the capacity provider to delete.
svc$delete_capacity_provider(
capacityProvider = "string"
)