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 „Zd d „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)Úselfr rrrrÚ__init__&s zS3Origin.__init__cCó d|jS)Nz©r ©r rrrÚ__repr__:ó zS3Origin.__repr__cCódSrr©r ÚnameÚattrsÚ connectionrrrÚ startElement=ózS3Origin.startElementcCs4|dkr ||_dS|dkr||_dSt|||ƒdS)NÚDNSNamer)r rÚsetattr©r rÚvaluerrrrÚ endElement@s   zS3Origin.endElementcCs:d}|d|j7}|jrt|jƒ}|d|7}|d7}|S)Nz ú %s z4 %s z )r rr )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 „Zd d „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 r r,r-r.rrrr Xs zCustomOrigin.__init__cCr)NzrrrrrrvrzCustomOrigin.__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 rz %d z %d z4 %s z r+)r r rrrr"ŽszCustomOrigin.to_xml)Nr)r*Nr#rrrrr(Qs ÿ r(N)Úboto.cloudfront.identityrr Úobjectr r(rrrrÚs 2