def instance_health(self, instances=None): """ Return the instance health for the specified instances in this ELB (or all instances if none are specified.) """ if instances is not None: instances = get_names( instances, exception_type=SGELBException, message="Invalid object/string passed " "as instance" ) return self._get_boto_elb_object().get_instance_health(instances)
def disable_zones(self, names_or_entities): """ Disable availability zones for this ELB. """ if len(names_or_entities) < 1: raise ValueError("Must provide a non-empty name, object, or " "sequence.") elb = self._get_boto_elb_object() names = get_names( names_or_entities, exception_type=SGELBException, message="Invalid object/string passed as " "availability zone", ) elb.disable_zones(names)