HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/boto/ecs/__pycache__/__init__.cpython-310.pyc
o

ckF[Q�@shddlZddlmZmZddlmZddlZddlZddlZ	ddl
mZddlmZGdd�de�Z
dS)�N)�AWSQueryConnection�AWSAuthConnection)�BotoServerError)�ItemSet)�handlercsReZdZdZdZ					d�fdd	�	Zd
d�Zddd
�Zdd�Zdd�Z	�Z
S)�
ECSConnectionz�
    ECommerce Connection

    For more information on how to use this module see:

    http://blog.coredumped.org/2010/09/search-for-books-on-amazon-using-boto.html
    z
2010-11-01NT�ecs.amazonaws.comr�/cs0tt|�j|||||||||	|
|||
|d�dS)N)�security_token�profile_name)�superr�__init__)�self�aws_access_key_id�aws_secret_access_key�	is_secure�port�proxy�
proxy_port�
proxy_user�
proxy_pass�host�debug�https_connection_factory�pathr
r��	__class__��3/usr/lib/python3/dist-packages/boto/ecs/__init__.pyr
*s
�zECSConnection.__init__cCsdgS)N�ecsr)rrrr�_required_auth_capability5sz'ECSConnection._required_auth_capabilityc	Cs�d|d<||d<|r||d<|�d|d�}|���d�}tj�|�|jdkrCtj�d	|j|jf�tj�d
|�t	|j|j|��|durOt
||||�}n|}t�||�}t
j�|�d�|�|jsst	|jdjd
i|jd����|S)zQ
        Utility method to handle calls to ECS and parsing of responses.
        �AWSECommerceService�Service�	Operation�ItemPageNz	/onca/xmlzutf-8��z%s %sz%sz{Code}: {Message}rr)�make_request�read�decode�boto�logr�status�error�reasonrrr�
XmlHandler�xml�sax�parseString�encode�is_valid�format�errors)	r�action�params�page�itemSet�response�body�rs�hrrr�get_response8s&
zECSConnection.get_responsecKs||d<|�d|�S)a
        Returns items that satisfy the search criteria, including one or more search
        indices.

        For a full list of search terms,
        :see: http://docs.amazonwebservices.com/AWSECommerceService/2010-09-01/DG/index.html?ItemSearch.html
        �SearchIndex�
ItemSearch�r>)r�search_indexr7rrr�item_searchWszECSConnection.item_searchcKs|�d|�S)z�
        Returns items that satisfy the lookup query.

        For a full list of parameters, see:
        http://s3.amazonaws.com/awsdocs/Associates/2011-08-01/prod-adv-api-dg-2011-08-01.pdf
        �
ItemLookuprA)rr7rrr�item_lookupbszECSConnection.item_lookup)NNTNNNNNrrNr	NN)rN)�__name__�
__module__�__qualname__�__doc__�
APIVersionr
r r>rCrE�
__classcell__rrrrrs�
r)r)�boto.connectionrr�boto.exceptionr�time�urllib�xml.saxr/�
boto.ecs.itemrrrrrrr�<module>s