o ckF[ @s,ddlmZddlmZGdddeZdS))Layer1)Domainc@s8eZdZ    d ddZd ddZdd Zd d ZdS)Layer2NTrc Cs$t||||||||| | | d |_dS)N) aws_access_key_idaws_secret_access_key is_secureportproxy proxy_porthostdebugsecurity_tokenregionvalidate_certs)rlayer1) selfrrrrr r r r session_tokenrrr9/usr/lib/python3/dist-packages/boto/cloudsearch/layer2.py__init__s zLayer2.__init__csj|}fdd|DS)z Return a list of :class:`boto.cloudsearch.domain.Domain` objects for each domain defined in the current account. csg|]}tj|qSr)rr).0datarrr 6sz'Layer2.list_domains..)rdescribe_domains)r domain_names domain_datarrr list_domains0s zLayer2.list_domainscCs|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_namerrrrr8s  zLayer2.create_domaincCs&|j|gd}t|dkr|dSdS)a Lookup a single domain :param domain_name: The name of the domain to look up :type domain_name: str :return: Domain object, or None if the domain isn't found :rtype: :class:`boto.cloudsearch.domain.Domain` )rrN)rlen)rrdomainsrrrlookup@s z Layer2.lookup) NNTNNNNrNNT)N)__name__ __module__ __qualname__rrrr"rrrrrs  rN)boto.cloudsearch.layer1rboto.cloudsearch.domainrobjectrrrrrs