ó
č?F[c           @   s   d  e  f d     YZ d S(   t   HealthCheckc           B   sM   e  Z d  Z d	 d d	 d d d d  Z d   Z d   Z d   Z d   Z RS(
   sĶ   
    Represents an EC2 Access Point Health Check. See
    :ref:`elb-configuring-a-health-check` for a walkthrough on configuring
    load balancer health checks.
    i   i   i   c         C   s:   | |  _  | |  _ | |  _ | |  _ | |  _ | |  _ d S(   sė  
        :ivar str access_point: The name of the load balancer this
            health check is associated with.
        :ivar int interval: Specifies how many seconds there are between
            health checks.
        :ivar str target: Determines what to check on an instance. See the
            Amazon HealthCheck_ documentation for possible Target values.

        .. _HealthCheck: http://docs.amazonwebservices.com/ElasticLoadBalancing/latest/APIReference/API_HealthCheck.html
        N(   t   access_pointt   intervalt   targett   healthy_thresholdt   timeoutt   unhealthy_threshold(   t   selfR   R   R   R   R   R   (    (    s7   lib/python2.7/site-packages/boto/ec2/elb/healthcheck.pyt   __init__   s    					c         C   s   d |  j  S(   Ns   HealthCheck:%s(   R   (   R   (    (    s7   lib/python2.7/site-packages/boto/ec2/elb/healthcheck.pyt   __repr__2   s    c         C   s   d  S(   N(   t   None(   R   t   namet   attrst
   connection(    (    s7   lib/python2.7/site-packages/boto/ec2/elb/healthcheck.pyt   startElement5   s    c         C   sĪ   | d k r t  |  |  _ n | d k r6 | |  _ nj | d k rT t  |  |  _ nL | d k rr t  |  |  _ n. | d k r t  |  |  _ n t |  | |  d  S(   Nt   Intervalt   Targett   HealthyThresholdt   Timeoutt   UnhealthyThreshold(   t   intR   R   R   R   R   t   setattr(   R   R   t   valueR   (    (    s7   lib/python2.7/site-packages/boto/ec2/elb/healthcheck.pyt
   endElement8   s    c         C   se   |  j  s d S|  j j |  j  |   } | j |  _ | j |  _ | j |  _ | j |  _ | j |  _ d S(   s  
        In the case where you have accessed an existing health check on a
        load balancer, this method applies this instance's health check
        values to the load balancer it is attached to.

        .. note:: This method will not do anything if the :py:attr:`access_point`
            attribute isn't set, as is the case with a newly instantiated
            HealthCheck instance.
        N(   R   R   t   configure_health_checkR   R   R   R   R   (   R   t   new_hc(    (    s7   lib/python2.7/site-packages/boto/ec2/elb/healthcheck.pyt   updateF   s    
		N(	   t   __name__t
   __module__t   __doc__R
   R   R	   R   R   R   (    (    (    s7   lib/python2.7/site-packages/boto/ec2/elb/healthcheck.pyR       s   				N(   t   objectR    (    (    (    s7   lib/python2.7/site-packages/boto/ec2/elb/healthcheck.pyt   <module>   s    