File: //usr/lib/python3/dist-packages/boto/cloudsearchdomain/__pycache__/layer1.cpython-310.pyc
o
ckF[�q � @ sP d dl mZ d dlmZ d dlmZ d dlmZ d dlm Z G dd� de�Z
dS ) � )�json)�JSONResponseError)�AWSAuthConnection)�
RegionInfo)�
exceptionsc s| e Zd ZdZdZdZdZdZeZ e
je
jd�Z
� fdd�Zd d
� Z ddd
�Zddd�Zdd� Z ddd�Z� ZS )�CloudSearchDomainConnectionaK
You use the AmazonCloudSearch2013 API to upload documents to a
search domain and search those documents.
The endpoints for submitting `UploadDocuments`, `Search`, and
`Suggest` requests are domain-specific. To get the endpoints for
your domain, use the Amazon CloudSearch configuration service
`DescribeDomains` action. The domain endpoints are also displayed
on the domain dashboard in the Amazon CloudSearch console. You
submit suggest requests to the search endpoint.
For more information, see the `Amazon CloudSearch Developer
Guide`_.
z
2013-01-01�cloudsearchz us-east-1z#cloudsearch.us-east-1.amazonaws.com)�SearchException�DocumentServiceExceptionc s^ |� d�}|st| | j| j�}n|d= |� dd �d u rtd��tt| �jdi |�� || _d S )N�region�hostz�The argument, host, must be provided when creating a CloudSearchDomainConnection because its methods require the specific domain's endpoint in order to successfully make requests to that CloudSearch Domain.� ) �getr �DefaultRegionName�DefaultRegionEndpoint�
ValueError�superr �__init__r )�self�kwargsr �� __class__r
�?/usr/lib/python3/dist-packages/boto/cloudsearchdomain/layer1.pyr 7 s
��
z$CloudSearchDomainConnection.__init__c C s dgS )Nzhmac-v4r
)r r
r
r �_required_auth_capabilityH s z5CloudSearchDomainConnection._required_auth_capabilityNc C s� d}i }i }i }|dur||d<