o ckF[¿ã@sGdd„deƒZdS)c@s>eZdZdZ  ddd„Zdd „Zd d „Zd d „Zdd„ZdS)Ú HealthCheckz¦ Represents an EC2 Access Point Health Check. See :ref:`elb-configuring-a-health-check` for a walkthrough on configuring load balancer health checks. NééécCs(||_||_||_||_||_||_dS)aì :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)Ú access_pointÚintervalÚtargetÚhealthy_thresholdÚtimeoutÚunhealthy_threshold)Úselfrrrrr r ©r ú:/usr/lib/python3/dist-packages/boto/ec2/elb/healthcheck.pyÚ__init__s   zHealthCheck.__init__cCs d|jS)NzHealthCheck:%s)r)r r r r Ú__repr__2s zHealthCheck.__repr__cCsdS)Nr )r ÚnameÚattrsÚ connectionr r r Ú startElement5szHealthCheck.startElementcCsz|dkr t|ƒ|_dS|dkr||_dS|dkrt|ƒ|_dS|dkr*t|ƒ|_dS|dkr5t|ƒ|_dSt|||ƒdS)NÚIntervalÚTargetÚHealthyThresholdÚTimeoutÚUnhealthyThreshold)Úintrrrr r Úsetattr)r rÚvaluerr r r Ú endElement8s zHealthCheck.endElementcCsF|jsdS|j |j|¡}|j|_|j|_|j|_|j|_|j|_dS)a‘ 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)rrÚconfigure_health_checkrrrr r )r Únew_hcr r r ÚupdateFs  ÿ zHealthCheck.update)NrNrrr) Ú__name__Ú __module__Ú __qualname__Ú__doc__rrrrrr r r r rs ÿ rN)Úobjectrr r r r Ús