Server : Apache System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : dh_edsupp ( 6597262) PHP Version : 8.2.26 Disable Function : NONE Directory : /lib/python3/dist-packages/boto/route53/__pycache__/ |
Upload File : |
o ckF[� � @ s d Z G dd� de�ZdS )a( From http://docs.aws.amazon.com/Route53/latest/APIReference/API_CreateHealthCheck.html POST /2013-04-01/healthcheck HTTP/1.1 <?xml version="1.0" encoding="UTF-8"?> <CreateHealthCheckRequest xmlns="https://route53.amazonaws.com/doc/2013-04-01/"> <CallerReference>unique description</CallerReference> <HealthCheckConfig> <IPAddress>IP address of the endpoint to check</IPAddress> <Port>port on the endpoint to check</Port> <Type>HTTP | HTTPS | HTTP_STR_MATCH | HTTPS_STR_MATCH | TCP</Type> <ResourcePath>path of the file that you want Amazon Route 53 to request</ResourcePath> <FullyQualifiedDomainName>domain name of the endpoint to check</FullyQualifiedDomainName> <SearchString>if Type is HTTP_STR_MATCH or HTTPS_STR_MATCH, the string to search for in the response body from the specified resource</SearchString> <RequestInterval>10 | 30</RequestInterval> <FailureThreshold>integer between 1 and 10</FailureThreshold> </HealthCheckConfig> </CreateHealthCheckRequest> c @ s: e Zd ZdZdZdZdZdZdZdZ ddd�Z d d� ZdS )�HealthCheckzAn individual health checka~ <HealthCheckConfig> %(ip_addr_part)s <Port>%(port)s</Port> <Type>%(type)s</Type> <ResourcePath>%(resource_path)s</ResourcePath> %(fqdn_part)s %(string_match_part)s %(request_interval)s <FailureThreshold>%(failure_threshold)s</FailureThreshold> </HealthCheckConfig> z"<IPAddress>%(ip_addr)s</IPAddress>z=<FullyQualifiedDomainName>%(fqdn)s</FullyQualifiedDomainName>z-<SearchString>%(string_match)s</SearchString>z7<RequestInterval>%(request_interval)d</RequestInterval>)� � Nr � c C sv || _ || _|| _|| _|| _|| _|| _|| jv r|| _nt dd� dd� | jD �� ��|dk s5|dkr9t d��dS ) 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)�.0�i� r �:/usr/lib/python3/dist-packages/boto/route53/healthcheck.py� <genexpr>w s � z'HealthCheck.__init__.<locals>.<genexpr>� r z.Valid values for failure_threshold are 1 - 10.N)�ip_addr�port�hc_type� resource_path�fqdn�string_match�failure_threshold�valid_request_intervals�request_interval�AttributeError�join) �selfr r r r r r r r r r r �__init__M s&