updateCapacityProvider

Modifies the parameters for a capacity provider.

These changes only apply to new Amazon ECS Managed Instances, or EC2 instances, not existing ones.

Samples

// 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
        }
    }
}