'Set health check values on ELB as needed'

def _set_health_check(self):

    if self.health_check:
        health_check_config = {'target': self._get_health_check_target(), 'timeout': self.health_check['response_timeout'], 'interval': self.health_check['interval'], 'unhealthy_threshold': self.health_check['unhealthy_threshold'], 'healthy_threshold': self.health_check['healthy_threshold']}
        update_health_check = False
        if (not self.elb.health_check):
            self.elb.health_check = HealthCheck()
        for (attr, desired_value) in health_check_config.iteritems():
            if (getattr(self.elb.health_check, attr) != desired_value):
                setattr(self.elb.health_check, attr, desired_value)
                update_health_check = True
        if update_health_check:
            self.elb.configure_health_check(self.elb.health_check)
            self.changed = True
