updateCapacityProvider

Modifies the parameters for a capacity provider.

Samples

import aws.sdk.kotlin.services.ecs.model.AutoScalingGroupProviderUpdate
import aws.sdk.kotlin.services.ecs.model.ManagedScaling
import aws.sdk.kotlin.services.ecs.model.ManagedScalingStatus

fun main() { 
   //sampleStart 
   // This example updates the targetCapacity and instanceWarmupPeriod parameters for the capacity
// provider MyCapacityProvider to 90 and 150 respectively.
val resp = ecsClient.updateCapacityProvider {
    name = "MyCapacityProvider"
    autoScalingGroupProvider = AutoScalingGroupProviderUpdate {
        managedScaling = ManagedScaling {
            status = ManagedScalingStatus.fromValue("ENABLED")
            targetCapacity = 90
            instanceWarmupPeriod = 150
        }
    }
} 
   //sampleEnd
}