https://t.me/RX1948
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/boto/route53/__pycache__/healthcheck.cpython-310.pyc
o

ckF[��@sdZGdd�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:eZdZdZdZdZdZdZdZdZ	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		Csv||_||_||_||_||_||_||_||jvr||_nt	dd�
dd�|jD����|dks5|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�,css�|]}t|�VqdS)N)�str)�.0�i�r	�:/usr/lib/python3/dist-packages/boto/route53/healthcheck.py�	<genexpr>ws�z'HealthCheck.__init__.<locals>.<genexpr>�rz.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
rrrrrrrr	r	r
�__init__Ms&
����zHealthCheck.__init__c	Cs�d|j|j|jdd|jd|ji|jd�}|jdur$|jd|ji|d<|jr1|j	d|ji|d<|j
dur@|jd|j
i|d	<|j|S)
N�r)�ip_addr_partr�typer�	fqdn_part�string_match_partrrrrr
rrr)
rrr�XMLRequestIntervalPartrrr�XMLFQDNPartr
�
XMLIpAddrPartr�XMLStringMatchPart�POSTXMLBody)r�paramsr	r	r
�to_xml}s$��


zHealthCheck.to_xml)NNrr)�__name__�
__module__�__qualname__�__doc__r#r!r r"rrrr%r	r	r	r
r2s

0rN)r)�objectrr	r	r	r
�<module>s

https://t.me/RX1948 - 2025