Struct aws_sdk_cloudsearch::model::DomainStatus
source · #[non_exhaustive]pub struct DomainStatus { /* private fields */ }Expand description
The current status of the search domain.
Implementations§
source§impl DomainStatus
impl DomainStatus
sourcepub fn domain_id(&self) -> Option<&str>
pub fn domain_id(&self) -> Option<&str>
An internally generated unique identifier for a domain.
sourcepub fn domain_name(&self) -> Option<&str>
pub fn domain_name(&self) -> Option<&str>
A string that represents the name of a domain. Domain names are unique across the domains owned by an account within an AWS region. Domain names start with a letter or number and can contain the following characters: a-z (lowercase), 0-9, and - (hyphen).
sourcepub fn arn(&self) -> Option<&str>
pub fn arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the search domain. See Identifiers for IAM Entities in Using AWS Identity and Access Management for more information.
sourcepub fn created(&self) -> Option<bool>
pub fn created(&self) -> Option<bool>
True if the search domain is created. It can take several minutes to initialize a domain when CreateDomain is called. Newly created search domains are returned from DescribeDomains with a false value for Created until domain creation is complete.
sourcepub fn deleted(&self) -> Option<bool>
pub fn deleted(&self) -> Option<bool>
True if the search domain has been deleted. The system must clean up resources dedicated to the search domain when DeleteDomain is called. Newly deleted search domains are returned from DescribeDomains with a true value for IsDeleted for several minutes until resource cleanup is complete.
sourcepub fn doc_service(&self) -> Option<&ServiceEndpoint>
pub fn doc_service(&self) -> Option<&ServiceEndpoint>
The service endpoint for updating documents in a search domain.
sourcepub fn search_service(&self) -> Option<&ServiceEndpoint>
pub fn search_service(&self) -> Option<&ServiceEndpoint>
The service endpoint for requesting search results from a search domain.
sourcepub fn requires_index_documents(&self) -> Option<bool>
pub fn requires_index_documents(&self) -> Option<bool>
True if IndexDocuments needs to be called to activate the current domain configuration.
sourcepub fn processing(&self) -> Option<bool>
pub fn processing(&self) -> Option<bool>
True if processing is being done to activate the current domain configuration.
sourcepub fn search_instance_type(&self) -> Option<&str>
pub fn search_instance_type(&self) -> Option<&str>
The instance type that is being used to process search requests.
sourcepub fn search_partition_count(&self) -> i32
pub fn search_partition_count(&self) -> i32
The number of partitions across which the search index is spread.
sourcepub fn search_instance_count(&self) -> i32
pub fn search_instance_count(&self) -> i32
The number of search instances that are available to process search requests.
pub fn limits(&self) -> Option<&Limits>
source§impl DomainStatus
impl DomainStatus
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture DomainStatus.
Examples found in repository?
1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883
pub fn deser_structure_crate_model_domain_status(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::DomainStatus, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::DomainStatus::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("DomainId") /* DomainId com.amazonaws.cloudsearch#DomainStatus$DomainId */ => {
let var_43 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_domain_id(var_43);
}
,
s if s.matches("DomainName") /* DomainName com.amazonaws.cloudsearch#DomainStatus$DomainName */ => {
let var_44 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_domain_name(var_44);
}
,
s if s.matches("ARN") /* ARN com.amazonaws.cloudsearch#DomainStatus$ARN */ => {
let var_45 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_arn(var_45);
}
,
s if s.matches("Created") /* Created com.amazonaws.cloudsearch#DomainStatus$Created */ => {
let var_46 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.cloudsearch#Boolean`)"))
}
?
)
;
builder = builder.set_created(var_46);
}
,
s if s.matches("Deleted") /* Deleted com.amazonaws.cloudsearch#DomainStatus$Deleted */ => {
let var_47 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.cloudsearch#Boolean`)"))
}
?
)
;
builder = builder.set_deleted(var_47);
}
,
s if s.matches("DocService") /* DocService com.amazonaws.cloudsearch#DomainStatus$DocService */ => {
let var_48 =
Some(
crate::xml_deser::deser_structure_crate_model_service_endpoint(&mut tag)
?
)
;
builder = builder.set_doc_service(var_48);
}
,
s if s.matches("SearchService") /* SearchService com.amazonaws.cloudsearch#DomainStatus$SearchService */ => {
let var_49 =
Some(
crate::xml_deser::deser_structure_crate_model_service_endpoint(&mut tag)
?
)
;
builder = builder.set_search_service(var_49);
}
,
s if s.matches("RequiresIndexDocuments") /* RequiresIndexDocuments com.amazonaws.cloudsearch#DomainStatus$RequiresIndexDocuments */ => {
let var_50 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.cloudsearch#Boolean`)"))
}
?
)
;
builder = builder.set_requires_index_documents(var_50);
}
,
s if s.matches("Processing") /* Processing com.amazonaws.cloudsearch#DomainStatus$Processing */ => {
let var_51 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.cloudsearch#Boolean`)"))
}
?
)
;
builder = builder.set_processing(var_51);
}
,
s if s.matches("SearchInstanceType") /* SearchInstanceType com.amazonaws.cloudsearch#DomainStatus$SearchInstanceType */ => {
let var_52 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_search_instance_type(var_52);
}
,
s if s.matches("SearchPartitionCount") /* SearchPartitionCount com.amazonaws.cloudsearch#DomainStatus$SearchPartitionCount */ => {
let var_53 =
Some(
{
<i32 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `com.amazonaws.cloudsearch#PartitionCount`)"))
}
?
)
;
builder = builder.set_search_partition_count(var_53);
}
,
s if s.matches("SearchInstanceCount") /* SearchInstanceCount com.amazonaws.cloudsearch#DomainStatus$SearchInstanceCount */ => {
let var_54 =
Some(
{
<i32 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `com.amazonaws.cloudsearch#InstanceCount`)"))
}
?
)
;
builder = builder.set_search_instance_count(var_54);
}
,
s if s.matches("Limits") /* Limits com.amazonaws.cloudsearch#DomainStatus$Limits */ => {
let var_55 =
Some(
crate::xml_deser::deser_structure_crate_model_limits(&mut tag)
?
)
;
builder = builder.set_limits(var_55);
}
,
_ => {}
}
}
Ok(builder.build())
}Trait Implementations§
source§impl Clone for DomainStatus
impl Clone for DomainStatus
source§fn clone(&self) -> DomainStatus
fn clone(&self) -> DomainStatus
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more