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/cloudsearch/__pycache__/ |
Upload File : |
o ckF[� � @ s, d dl mZ d dlmZ G dd� de�ZdS )� )�Layer1)�Domainc @ s8 e Zd Z ddd�Zd dd�Zdd � Zd d� ZdS )�Layer2NTr c C s$ t ||||||||| | |d�| _d S )N)�aws_access_key_id�aws_secret_access_key� is_secure�port�proxy� proxy_port�host�debug�security_token�region�validate_certs)r �layer1)�selfr r r r r r r r � session_tokenr r � r �9/usr/lib/python3/dist-packages/boto/cloudsearch/layer2.py�__init__ s �zLayer2.__init__c s � j �|�}� fdd�|D �S )z� Return a list of :class:`boto.cloudsearch.domain.Domain` objects for each domain defined in the current account. c s g | ]}t � j|��qS r )r r )�.0�data�r r r � <listcomp>6 s z'Layer2.list_domains.<locals>.<listcomp>)r �describe_domains)r �domain_names�domain_datar r r �list_domains0 s zLayer2.list_domainsc C s | j �|�}t| j |�S )z� Create a new CloudSearch domain and return the corresponding :class:`boto.cloudsearch.domain.Domain` object. )r � create_domainr )r �domain_namer r r r r 8 s zLayer2.create_domainc C s&