describeInstanceHealth

Describes the state of the specified instances with respect to the specified load balancer. If no instances are specified, the call describes the state of all instances that are currently registered with the load balancer. If instances are specified, their state is returned even if they are no longer registered with the load balancer. The state of terminated instances is not returned.

Samples


fun main() { 
   //sampleStart 
   // This example describes the health of the instances for the specified load balancer.
val resp = elasticLoadBalancingClient.describeInstanceHealth {
    loadBalancerName = "my-load-balancer"
} 
   //sampleEnd
}