updateTaskSet
inline suspend fun EcsClient.updateTaskSet(crossinline block: UpdateTaskSetRequest.Builder.() -> Unit): UpdateTaskSetResponse
Modifies a task set. 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
import aws.sdk.kotlin.services.ecs.model.Scale
import aws.sdk.kotlin.services.ecs.model.ScaleUnit
fun main() {
//sampleStart
// This example updates the task set to adjust the scale.
val resp = ecsClient.updateTaskSet {
cluster = "MyCluster"
service = "MyService"
taskSet = "arn:aws:ecs:us-west-2:123456789012:task-set/MyCluster/MyService/ecs-svc/1234567890123456789"
scale = Scale {
value = 50.toDouble()
unit = ScaleUnit.fromValue("PERCENT")
}
}
//sampleEnd
}