aws_sdk_elasticsearch/client/
list_domain_names.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`ListDomainNames`](crate::operation::list_domain_names::builders::ListDomainNamesFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`engine_type(EngineType)`](crate::operation::list_domain_names::builders::ListDomainNamesFluentBuilder::engine_type) / [`set_engine_type(Option<EngineType>)`](crate::operation::list_domain_names::builders::ListDomainNamesFluentBuilder::set_engine_type):<br>required: **false**<br><p>Optional parameter to filter the output by domain engine type. Acceptable values are 'Elasticsearch' and 'OpenSearch'.</p><br>
7    /// - On success, responds with [`ListDomainNamesOutput`](crate::operation::list_domain_names::ListDomainNamesOutput) with field(s):
8    ///   - [`domain_names(Option<Vec::<DomainInfo>>)`](crate::operation::list_domain_names::ListDomainNamesOutput::domain_names): <p>List of domain names and respective engine types.</p>
9    /// - On failure, responds with [`SdkError<ListDomainNamesError>`](crate::operation::list_domain_names::ListDomainNamesError)
10    pub fn list_domain_names(&self) -> crate::operation::list_domain_names::builders::ListDomainNamesFluentBuilder {
11        crate::operation::list_domain_names::builders::ListDomainNamesFluentBuilder::new(self.handle.clone())
12    }
13}