#NEWLINE# def set_health_check( name , health_check , region = None , key = None , keyid = None , profile = None ) : #NEWLINE# #INDENT# '\n    Set attributes on an ELB.\n\n    CLI example to set attributes on an ELB:\n\n    .. code-block:: bash\n\n        salt myminion boto_elb.set_health_check myelb \'{"target": "HTTP:80/"}\'\n    ' #NEWLINE# conn = _get_conn ( region = region , key = key , keyid = keyid , profile = profile ) #NEWLINE# hc = HealthCheck ( ** health_check ) #NEWLINE# try : #NEWLINE# #INDENT# conn . configure_health_check ( name , health_check ) #NEWLINE# log . info ( 'Configured health check on ELB {0}' . format ( name ) ) #NEWLINE# #UNINDENT# except boto . exception . BotoServerError as error : #NEWLINE# #INDENT# log . debug ( error ) #NEWLINE# log . info ( 'Failed to configure health check on ELB {0}: {1}' . format ( name , error ) ) #NEWLINE# return False #NEWLINE# #UNINDENT# return True