executePolicy
Executes the specified policy. This can be useful for testing the design of your scaling policy.
Samples
fun main() {
//sampleStart
// This example executes the specified policy.
autoScalingClient.executePolicy {
autoScalingGroupName = "my-auto-scaling-group"
policyName = "my-step-scale-out-policy"
breachThreshold = 50.0.toDouble()
metricValue = 59.0.toDouble()
}
//sampleEnd
}