deleteTaskSet
inline suspend fun EcsClient.deleteTaskSet(crossinline block: DeleteTaskSetRequest.Builder.() -> Unit): DeleteTaskSetResponse
Deletes a specified task set within a service. This is used when a service uses the EXTERNAL
deployment controller type. For more information, see Amazon ECS deployment types in the Amazon Elastic Container Service Developer Guide.
Samples
fun main() {
//sampleStart
// This example deletes a task set and uses the force flag to force deletion if it hasn t scaled to
// zero.
val resp = ecsClient.deleteTaskSet {
cluster = "MyCluster"
service = "MyService"
taskSet = "arn:aws:ecs:us-west-2:123456789012:task-set/MyCluster/MyService/ecs-svc/1234567890123456789"
force = true
}
//sampleEnd
}