File: //usr/lib/python3/dist-packages/boto/cloudsearch2/__pycache__/domain.cpython-310.pyc
o
ckF[�R � @ sp d dl mZ d dl mZ d dl mZ d dl mZ d dl mZ d dlmZ d dlm Z dd � Z
G d
d� de�ZdS )
� ��IndexFieldStatus)�ServicePoliciesStatus��ExpressionStatus)�AvailabilityOptionsStatus)�ScalingParametersStatus��DocumentServiceConnection��SearchConnectionc C s | dv rdS dS )N)T�true�True�TRUE� TF� )�valuer r �:/usr/lib/python3/dist-packages/boto/cloudsearch2/domain.py�handle_bool s r c @ sn e Zd ZdZdd� Zdd� Zedd� �Zedd � �Zed
d� �Z edd
� �Z
e
jdd
� �Z
edd� �Zejdd� �Zedd� �Z
e
jdd� �Z
edd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zed d!� �Zd"d#� Zd$d%� Zd&d'� Zd(d)� Zd*d+� Zd,d-� Zd?d/d0�Z 2 2 . .d@d3d4�Zd?d5d6�Zd7d8� Zd9d:� Zd;d<� Zd=d>� Zd.S )A�Domaina�
A Cloudsearch domain.
:ivar name: The name of the domain.
:ivar id: The internally generated unique identifier for the domain.
:ivar created: A boolean which is True if the domain is
created. It can take several minutes to initialize a domain
when CreateDomain is called. Newly created search domains are
returned with a False value for Created until domain creation
is complete
:ivar deleted: A boolean which is True if the search domain has
been deleted. The system must clean up resources dedicated to
the search domain when delete is called. Newly deleted
search domains are returned from list_domains with a True
value for deleted for several minutes until resource cleanup
is complete.
:ivar processing: True if processing is being done to activate the
current domain configuration.
:ivar num_searchable_docs: The number of documents that have been
submittted to the domain and indexed.
:ivar requires_index_document: True if index_documents needs to be
called to activate the current domain configuration.
:ivar search_instance_count: The number of search instances that are
available to process search requests.
:ivar search_instance_type: The instance type that is being used to
process search requests.
:ivar search_partition_count: The number of partitions across which
the search index is spread.
c C s || _ | �|� dS )a#
Constructor - Create a domain object from a layer1 and data params
:type layer1: :class:`boto.cloudsearch2.layer1.Layer1` object
:param layer1: A :class:`boto.cloudsearch2.layer1.Layer1` object
which is used to perform operations on the domain.
N)�layer1�update_from_data)�selfr �datar r r �__init__N s zDomain.__init__c C s� |d | _ |d | _|d | _|d | _|d | _|d | _|d | _|�dd �| _|d | _ |d
| _
|d | _|d | _d S )
N�Created�Deleted�
Processing�RequiresIndexDocuments�DomainId�
DomainName�SearchInstanceCount�SearchInstanceType�SearchPartitionCount�
DocService�ARN�
SearchService)
�created�deleted�
processing�requires_index_documents� domain_id�domain_name�search_instance_count�get�search_instance_type�search_partition_count�_doc_service�_service_arn�_search_service)r r r r r r Y s
zDomain.update_from_datac C � | j S �N)r2 �r r r r �service_arng � zDomain.service_arnc C �
| j d S �N�Endpoint)r1 r6 r r r �doc_service_endpointk �
zDomain.doc_service_endpointc C r9 r: )r3 r6 r r r �search_service_endpointo r= zDomain.search_service_endpointc C r4 r5 )�_createdr6 r r r r'