o
ckF[ @ s d Z G dd deZdS )a(
From http://docs.aws.amazon.com/Route53/latest/APIReference/API_CreateHealthCheck.html
POST /2013-04-01/healthcheck HTTP/1.1
unique description
IP address of the endpoint to check
port on the endpoint to check
HTTP | HTTPS | HTTP_STR_MATCH | HTTPS_STR_MATCH | TCP
path of the file that
you want Amazon Route 53 to request
domain name of the
endpoint to check
if Type is HTTP_STR_MATCH or HTTPS_STR_MATCH,
the string to search for in the response body
from the specified resource
10 | 30
integer between 1 and 10
c @ s: e Zd ZdZdZdZdZdZdZdZ dddZ
d
d ZdS )HealthCheckzAn individual health checka~
%(ip_addr_part)s
%(port)s
%(type)s
%(resource_path)s
%(fqdn_part)s
%(string_match_part)s
%(request_interval)s
%(failure_threshold)s
z"%(ip_addr)sz=%(fqdn)sz-%(string_match)sz7%(request_interval)d)
Nr c C sv || _ || _|| _|| _|| _|| _|| _|| jv r|| _nt dd
dd | jD |dk s5|dkr9t ddS ) aP
HealthCheck object
:type ip_addr: str
:param ip_addr: Optional IP Address
:type port: int
:param port: Port to check
:type hc_type: str
:param hc_type: One of HTTP | HTTPS | HTTP_STR_MATCH | HTTPS_STR_MATCH | TCP
:type resource_path: str
:param resource_path: Path to check
:type fqdn: str
:param fqdn: domain name of the endpoint to check
:type string_match: str
:param string_match: if hc_type is HTTP_STR_MATCH or HTTPS_STR_MATCH, the string to search for in the response body from the specified resource
:type request_interval: int
:param request_interval: The number of seconds between the time that Amazon Route 53 gets a response from your endpoint and the time that it sends the next health-check request.
:type failure_threshold: int
:param failure_threshold: The number of consecutive health checks that an endpoint must pass or fail for Amazon Route 53 to change the current status of the endpoint from unhealthy to healthy or vice versa.
z)Valid values for request_interval are: %s,c s s | ]}t |V qd S )N)str).0i r :/usr/lib/python3/dist-packages/boto/route53/healthcheck.py w s z'HealthCheck.__init__.. r z.Valid values for failure_threshold are 1 - 10.N)ip_addrporthc_type
resource_pathfqdnstring_matchfailure_thresholdvalid_request_intervalsrequest_intervalAttributeErrorjoin) selfr
r r r r r r r r r r
__init__M s&