setInstanceHealth
Sets the health status of the specified instance.
For more information, see Health checks for Auto Scaling instances in the Amazon EC2 Auto Scaling User Guide.
Samples
fun main() {
//sampleStart
// This example sets the health status of the specified instance to Unhealthy.
autoScalingClient.setInstanceHealth {
instanceId = "i-93633f9b"
healthStatus = "Unhealthy"
}
//sampleEnd
}