ó FRTc@sJddlmZddlmZddlmZdefd„ƒYZdS(i˙˙˙˙(tCloudSearchConnection(tDomain(tsixtLayer2c BsPeZddeddddddded„ Zdd„Zd„Zd„ZRS(ic CsŚt| tjƒrTddl} x3| jjƒD]} | j| kr.| } Pq.q.Wntd|d|d|d|d|d|d|d |d | d | d | ƒ |_dS( Ni˙˙˙˙taws_access_key_idtaws_secret_access_keyt is_securetporttproxyt proxy_portthosttdebugtsecurity_tokentregiontvalidate_certs( t isinstanceRt string_typestboto.cloudsearch2t cloudsearch2tregionstnameRtlayer1(tselfRRRRRR R R t session_tokenR Rtbotot region_info((sE/opt/freeware/lib/python2.7/site-packages/boto/cloudsearch2/layer2.pyt__init__ s$  cCsG|jj|ƒ}|ddd}g|D]}t|j|ƒ^q+S(sŁ Return a list of objects for each domain defined in the current account. :rtype: list of :class:`boto.cloudsearch2.domain.Domain` tDescribeDomainsResponsetDescribeDomainsResulttDomainStatusList(Rtdescribe_domainsR(Rt domain_namest domain_datatdata((sE/opt/freeware/lib/python2.7/site-packages/boto/cloudsearch2/layer2.pyt list_domains9s cCs.|jj|ƒ}t|j|dddƒS(sŃ Create a new CloudSearch domain and return the corresponding object. :return: Domain object, or None if the domain isn't found :rtype: :class:`boto.cloudsearch2.domain.Domain` tCreateDomainResponsetCreateDomainResultt DomainStatus(Rt create_domainR(Rt domain_nameR!((sE/opt/freeware/lib/python2.7/site-packages/boto/cloudsearch2/layer2.pyR&GscCs3|jd|gƒ}t|ƒdkr/|dSdS(s 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.cloudsearch2.domain.Domain` RiN(R"tlen(RR'tdomains((sE/opt/freeware/lib/python2.7/site-packages/boto/cloudsearch2/layer2.pytlookupRs N(t__name__t __module__tNonetTrueRR"R&R*(((sE/opt/freeware/lib/python2.7/site-packages/boto/cloudsearch2/layer2.pyRs     N(tboto.cloudsearch2.layer1Rtboto.cloudsearch2.domainRt boto.compatRtobjectR(((sE/opt/freeware/lib/python2.7/site-packages/boto/cloudsearch2/layer2.pyts