def GetELBInstanceHealth(region, instance_id, node_types=None):
 balancers = GetLoadBalancers(region, node_types=node_types)
 if (not balancers):
  return None
 for b in balancers:
  for state in b.get_instance_health():
   if (state.instance_id == instance_id):
    return state.state
 return None

def GetELBInstanceHealth ( region , instance_id , node_types = None ) : balancers = GetLoadBalancers ( region , node_types = node_types ) if ( not balancers ) : return None for b in balancers : for state in b . get_instance_health ( ) : if ( state . instance_id == instance_id ) : return state . state return None
lookup an instance in the load balancers in a region and return its health status .