updateServicePrimaryTaskSet
inline suspend fun EcsClient.updateServicePrimaryTaskSet(crossinline block: UpdateServicePrimaryTaskSetRequest.Builder.() -> Unit): UpdateServicePrimaryTaskSetResponse
Modifies which task set in a service is the primary task set. Any parameters that are updated on the primary task set in a service will transition to the 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 updates the primary task set for a service MyService that uses the EXTERNAL deployment
// controller type.
val resp = ecsClient.updateServicePrimaryTaskSet {
cluster = "MyCluster"
service = "MyService"
primaryTaskSet = "arn:aws:ecs:us-west-2:123456789012:task-set/MyCluster/MyService/ecs-svc/1234567890123456789"
}
//sampleEnd
}