Struct aws_sdk_cloudsearch::Client
source · [−]pub struct Client { /* private fields */ }Expand description
Client for Amazon CloudSearch
Client for invoking operations on Amazon CloudSearch. Each operation on Amazon CloudSearch is a method on this
this struct. .send() MUST be invoked on the generated operations to dispatch the request to the service.
Examples
Constructing a client and invoking an operation
// create a shared configuration. This can be used & shared between multiple service clients.
let shared_config = aws_config::load_from_env().await;
let client = aws_sdk_cloudsearch::Client::new(&shared_config);
// invoke an operation
/* let rsp = client
.<operation_name>().
.<param>("some value")
.send().await; */Constructing a client with custom configuration
use aws_config::RetryConfig;
let shared_config = aws_config::load_from_env().await;
let config = aws_sdk_cloudsearch::config::Builder::from(&shared_config)
.retry_config(RetryConfig::disabled())
.build();
let client = aws_sdk_cloudsearch::Client::from_conf(config);Implementations
sourceimpl Client
impl Client
sourcepub fn with_config(
client: Client<DynConnector, DynMiddleware<DynConnector>>,
conf: Config
) -> Self
pub fn with_config(
client: Client<DynConnector, DynMiddleware<DynConnector>>,
conf: Config
) -> Self
Creates a client with the given service configuration.
sourceimpl Client
impl Client
sourcepub fn build_suggesters(&self) -> BuildSuggesters
pub fn build_suggesters(&self) -> BuildSuggesters
Constructs a fluent builder for the BuildSuggesters operation.
- The fluent builder is configurable:
domain_name(impl Into<String>)/set_domain_name(Option<String>):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).
- On success, responds with
BuildSuggestersOutputwith field(s):field_names(Option<Vec<String>>):A list of field names.
- On failure, responds with
SdkError<BuildSuggestersError>
sourcepub fn create_domain(&self) -> CreateDomain
pub fn create_domain(&self) -> CreateDomain
Constructs a fluent builder for the CreateDomain operation.
- The fluent builder is configurable:
domain_name(impl Into<String>)/set_domain_name(Option<String>):A name for the domain you are creating. Allowed characters are a-z (lower-case letters), 0-9, and hyphen (-). Domain names must start with a letter or number and be at least 3 and no more than 28 characters long.
- On success, responds with
CreateDomainOutputwith field(s):domain_status(Option<DomainStatus>):The current status of the search domain.
- On failure, responds with
SdkError<CreateDomainError>
sourcepub fn define_analysis_scheme(&self) -> DefineAnalysisScheme
pub fn define_analysis_scheme(&self) -> DefineAnalysisScheme
Constructs a fluent builder for the DefineAnalysisScheme operation.
- The fluent builder is configurable:
domain_name(impl Into<String>)/set_domain_name(Option<String>):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).
analysis_scheme(AnalysisScheme)/set_analysis_scheme(Option<AnalysisScheme>):Configuration information for an analysis scheme. Each analysis scheme has a unique name and specifies the language of the text to be processed. The following options can be configured for an analysis scheme:
Synonyms,Stopwords,StemmingDictionary,JapaneseTokenizationDictionaryandAlgorithmicStemming.
- On success, responds with
DefineAnalysisSchemeOutputwith field(s):analysis_scheme(Option<AnalysisSchemeStatus>):The status and configuration of an
AnalysisScheme.
- On failure, responds with
SdkError<DefineAnalysisSchemeError>
sourcepub fn define_expression(&self) -> DefineExpression
pub fn define_expression(&self) -> DefineExpression
Constructs a fluent builder for the DefineExpression operation.
- The fluent builder is configurable:
domain_name(impl Into<String>)/set_domain_name(Option<String>):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).
expression(Expression)/set_expression(Option<Expression>):A named expression that can be evaluated at search time. Can be used to sort the search results, define other expressions, or return computed information in the search results.
- On success, responds with
DefineExpressionOutputwith field(s):expression(Option<ExpressionStatus>):The value of an
Expressionand its current status.
- On failure, responds with
SdkError<DefineExpressionError>
sourcepub fn define_index_field(&self) -> DefineIndexField
pub fn define_index_field(&self) -> DefineIndexField
Constructs a fluent builder for the DefineIndexField operation.
- The fluent builder is configurable:
domain_name(impl Into<String>)/set_domain_name(Option<String>):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).
index_field(IndexField)/set_index_field(Option<IndexField>):The index field and field options you want to configure.
- On success, responds with
DefineIndexFieldOutputwith field(s):index_field(Option<IndexFieldStatus>):The value of an
IndexFieldand its current status.
- On failure, responds with
SdkError<DefineIndexFieldError>
sourcepub fn define_suggester(&self) -> DefineSuggester
pub fn define_suggester(&self) -> DefineSuggester
Constructs a fluent builder for the DefineSuggester operation.
- The fluent builder is configurable:
domain_name(impl Into<String>)/set_domain_name(Option<String>):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).
suggester(Suggester)/set_suggester(Option<Suggester>):Configuration information for a search suggester. Each suggester has a unique name and specifies the text field you want to use for suggestions. The following options can be configured for a suggester:
FuzzyMatching,SortExpression.
- On success, responds with
DefineSuggesterOutputwith field(s):suggester(Option<SuggesterStatus>):The value of a
Suggesterand its current status.
- On failure, responds with
SdkError<DefineSuggesterError>
sourcepub fn delete_analysis_scheme(&self) -> DeleteAnalysisScheme
pub fn delete_analysis_scheme(&self) -> DeleteAnalysisScheme
Constructs a fluent builder for the DeleteAnalysisScheme operation.
- The fluent builder is configurable:
domain_name(impl Into<String>)/set_domain_name(Option<String>):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).
analysis_scheme_name(impl Into<String>)/set_analysis_scheme_name(Option<String>):The name of the analysis scheme you want to delete.
- On success, responds with
DeleteAnalysisSchemeOutputwith field(s):analysis_scheme(Option<AnalysisSchemeStatus>):The status of the analysis scheme being deleted.
- On failure, responds with
SdkError<DeleteAnalysisSchemeError>
sourcepub fn delete_domain(&self) -> DeleteDomain
pub fn delete_domain(&self) -> DeleteDomain
Constructs a fluent builder for the DeleteDomain operation.
- The fluent builder is configurable:
domain_name(impl Into<String>)/set_domain_name(Option<String>):The name of the domain you want to permanently delete.
- On success, responds with
DeleteDomainOutputwith field(s):domain_status(Option<DomainStatus>):The current status of the search domain.
- On failure, responds with
SdkError<DeleteDomainError>
sourcepub fn delete_expression(&self) -> DeleteExpression
pub fn delete_expression(&self) -> DeleteExpression
Constructs a fluent builder for the DeleteExpression operation.
- The fluent builder is configurable:
domain_name(impl Into<String>)/set_domain_name(Option<String>):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).
expression_name(impl Into<String>)/set_expression_name(Option<String>):The name of the
to delete.Expression
- On success, responds with
DeleteExpressionOutputwith field(s):expression(Option<ExpressionStatus>):The status of the expression being deleted.
- On failure, responds with
SdkError<DeleteExpressionError>
sourcepub fn delete_index_field(&self) -> DeleteIndexField
pub fn delete_index_field(&self) -> DeleteIndexField
Constructs a fluent builder for the DeleteIndexField operation.
- The fluent builder is configurable:
domain_name(impl Into<String>)/set_domain_name(Option<String>):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).
index_field_name(impl Into<String>)/set_index_field_name(Option<String>):The name of the index field your want to remove from the domain’s indexing options.
- On success, responds with
DeleteIndexFieldOutputwith field(s):index_field(Option<IndexFieldStatus>):The status of the index field being deleted.
- On failure, responds with
SdkError<DeleteIndexFieldError>
sourcepub fn delete_suggester(&self) -> DeleteSuggester
pub fn delete_suggester(&self) -> DeleteSuggester
Constructs a fluent builder for the DeleteSuggester operation.
- The fluent builder is configurable:
domain_name(impl Into<String>)/set_domain_name(Option<String>):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).
suggester_name(impl Into<String>)/set_suggester_name(Option<String>):Specifies the name of the suggester you want to delete.
- On success, responds with
DeleteSuggesterOutputwith field(s):suggester(Option<SuggesterStatus>):The status of the suggester being deleted.
- On failure, responds with
SdkError<DeleteSuggesterError>
sourcepub fn describe_analysis_schemes(&self) -> DescribeAnalysisSchemes
pub fn describe_analysis_schemes(&self) -> DescribeAnalysisSchemes
Constructs a fluent builder for the DescribeAnalysisSchemes operation.
- The fluent builder is configurable:
domain_name(impl Into<String>)/set_domain_name(Option<String>):The name of the domain you want to describe.
analysis_scheme_names(Vec<String>)/set_analysis_scheme_names(Option<Vec<String>>):The analysis schemes you want to describe.
deployed(bool)/set_deployed(Option<bool>):Whether to display the deployed configuration (
true) or include any pending changes (false). Defaults tofalse.
- On success, responds with
DescribeAnalysisSchemesOutputwith field(s):analysis_schemes(Option<Vec<AnalysisSchemeStatus>>):The analysis scheme descriptions.
- On failure, responds with
SdkError<DescribeAnalysisSchemesError>
sourcepub fn describe_availability_options(&self) -> DescribeAvailabilityOptions
pub fn describe_availability_options(&self) -> DescribeAvailabilityOptions
Constructs a fluent builder for the DescribeAvailabilityOptions operation.
- The fluent builder is configurable:
domain_name(impl Into<String>)/set_domain_name(Option<String>):The name of the domain you want to describe.
deployed(bool)/set_deployed(Option<bool>):Whether to display the deployed configuration (
true) or include any pending changes (false). Defaults tofalse.
- On success, responds with
DescribeAvailabilityOptionsOutputwith field(s):availability_options(Option<AvailabilityOptionsStatus>):The availability options configured for the domain. Indicates whether Multi-AZ is enabled for the domain.
- On failure, responds with
SdkError<DescribeAvailabilityOptionsError>
sourcepub fn describe_domain_endpoint_options(&self) -> DescribeDomainEndpointOptions
pub fn describe_domain_endpoint_options(&self) -> DescribeDomainEndpointOptions
Constructs a fluent builder for the DescribeDomainEndpointOptions operation.
- The fluent builder is configurable:
domain_name(impl Into<String>)/set_domain_name(Option<String>):A string that represents the name of a domain.
deployed(bool)/set_deployed(Option<bool>):Whether to retrieve the latest configuration (which might be in a Processing state) or the current, active configuration. Defaults to
false.
- On success, responds with
DescribeDomainEndpointOptionsOutputwith field(s):domain_endpoint_options(Option<DomainEndpointOptionsStatus>):The status and configuration of a search domain’s endpoint options.
- On failure, responds with
SdkError<DescribeDomainEndpointOptionsError>
sourcepub fn describe_domains(&self) -> DescribeDomains
pub fn describe_domains(&self) -> DescribeDomains
Constructs a fluent builder for the DescribeDomains operation.
- The fluent builder is configurable:
domain_names(Vec<String>)/set_domain_names(Option<Vec<String>>):The names of the domains you want to include in the response.
- On success, responds with
DescribeDomainsOutputwith field(s):domain_status_list(Option<Vec<DomainStatus>>):A list that contains the status of each requested domain.
- On failure, responds with
SdkError<DescribeDomainsError>
sourcepub fn describe_expressions(&self) -> DescribeExpressions
pub fn describe_expressions(&self) -> DescribeExpressions
Constructs a fluent builder for the DescribeExpressions operation.
- The fluent builder is configurable:
domain_name(impl Into<String>)/set_domain_name(Option<String>):The name of the domain you want to describe.
expression_names(Vec<String>)/set_expression_names(Option<Vec<String>>):Limits the
response to the specified expressions. If not specified, all expressions are shown.DescribeExpressionsdeployed(bool)/set_deployed(Option<bool>):Whether to display the deployed configuration (
true) or include any pending changes (false). Defaults tofalse.
- On success, responds with
DescribeExpressionsOutputwith field(s):expressions(Option<Vec<ExpressionStatus>>):The expressions configured for the domain.
- On failure, responds with
SdkError<DescribeExpressionsError>
sourcepub fn describe_index_fields(&self) -> DescribeIndexFields
pub fn describe_index_fields(&self) -> DescribeIndexFields
Constructs a fluent builder for the DescribeIndexFields operation.
- The fluent builder is configurable:
domain_name(impl Into<String>)/set_domain_name(Option<String>):The name of the domain you want to describe.
field_names(Vec<String>)/set_field_names(Option<Vec<String>>):A list of the index fields you want to describe. If not specified, information is returned for all configured index fields.
deployed(bool)/set_deployed(Option<bool>):Whether to display the deployed configuration (
true) or include any pending changes (false). Defaults tofalse.
- On success, responds with
DescribeIndexFieldsOutputwith field(s):index_fields(Option<Vec<IndexFieldStatus>>):The index fields configured for the domain.
- On failure, responds with
SdkError<DescribeIndexFieldsError>
sourcepub fn describe_scaling_parameters(&self) -> DescribeScalingParameters
pub fn describe_scaling_parameters(&self) -> DescribeScalingParameters
Constructs a fluent builder for the DescribeScalingParameters operation.
- The fluent builder is configurable:
domain_name(impl Into<String>)/set_domain_name(Option<String>):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).
- On success, responds with
DescribeScalingParametersOutputwith field(s):scaling_parameters(Option<ScalingParametersStatus>):The status and configuration of a search domain’s scaling parameters.
- On failure, responds with
SdkError<DescribeScalingParametersError>
sourcepub fn describe_service_access_policies(&self) -> DescribeServiceAccessPolicies
pub fn describe_service_access_policies(&self) -> DescribeServiceAccessPolicies
Constructs a fluent builder for the DescribeServiceAccessPolicies operation.
- The fluent builder is configurable:
domain_name(impl Into<String>)/set_domain_name(Option<String>):The name of the domain you want to describe.
deployed(bool)/set_deployed(Option<bool>):Whether to display the deployed configuration (
true) or include any pending changes (false). Defaults tofalse.
- On success, responds with
DescribeServiceAccessPoliciesOutputwith field(s):access_policies(Option<AccessPoliciesStatus>):The access rules configured for the domain specified in the request.
- On failure, responds with
SdkError<DescribeServiceAccessPoliciesError>
sourcepub fn describe_suggesters(&self) -> DescribeSuggesters
pub fn describe_suggesters(&self) -> DescribeSuggesters
Constructs a fluent builder for the DescribeSuggesters operation.
- The fluent builder is configurable:
domain_name(impl Into<String>)/set_domain_name(Option<String>):The name of the domain you want to describe.
suggester_names(Vec<String>)/set_suggester_names(Option<Vec<String>>):The suggesters you want to describe.
deployed(bool)/set_deployed(Option<bool>):Whether to display the deployed configuration (
true) or include any pending changes (false). Defaults tofalse.
- On success, responds with
DescribeSuggestersOutputwith field(s):suggesters(Option<Vec<SuggesterStatus>>):The suggesters configured for the domain specified in the request.
- On failure, responds with
SdkError<DescribeSuggestersError>
sourcepub fn index_documents(&self) -> IndexDocuments
pub fn index_documents(&self) -> IndexDocuments
Constructs a fluent builder for the IndexDocuments operation.
- The fluent builder is configurable:
domain_name(impl Into<String>)/set_domain_name(Option<String>):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).
- On success, responds with
IndexDocumentsOutputwith field(s):field_names(Option<Vec<String>>):The names of the fields that are currently being indexed.
- On failure, responds with
SdkError<IndexDocumentsError>
sourcepub fn list_domain_names(&self) -> ListDomainNames
pub fn list_domain_names(&self) -> ListDomainNames
Constructs a fluent builder for the ListDomainNames operation.
- The fluent builder takes no input, just
sendit. - On success, responds with
ListDomainNamesOutputwith field(s):domain_names(Option<HashMap<String, String>>):The names of the search domains owned by an account.
- On failure, responds with
SdkError<ListDomainNamesError>
sourcepub fn update_availability_options(&self) -> UpdateAvailabilityOptions
pub fn update_availability_options(&self) -> UpdateAvailabilityOptions
Constructs a fluent builder for the UpdateAvailabilityOptions operation.
- The fluent builder is configurable:
domain_name(impl Into<String>)/set_domain_name(Option<String>):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).
multi_az(bool)/set_multi_az(Option<bool>):You expand an existing search domain to a second Availability Zone by setting the Multi-AZ option to true. Similarly, you can turn off the Multi-AZ option to downgrade the domain to a single Availability Zone by setting the Multi-AZ option to
false.
- On success, responds with
UpdateAvailabilityOptionsOutputwith field(s):availability_options(Option<AvailabilityOptionsStatus>):The newly-configured availability options. Indicates whether Multi-AZ is enabled for the domain.
- On failure, responds with
SdkError<UpdateAvailabilityOptionsError>
sourcepub fn update_domain_endpoint_options(&self) -> UpdateDomainEndpointOptions
pub fn update_domain_endpoint_options(&self) -> UpdateDomainEndpointOptions
Constructs a fluent builder for the UpdateDomainEndpointOptions operation.
- The fluent builder is configurable:
domain_name(impl Into<String>)/set_domain_name(Option<String>):A string that represents the name of a domain.
domain_endpoint_options(DomainEndpointOptions)/set_domain_endpoint_options(Option<DomainEndpointOptions>):Whether to require that all requests to the domain arrive over HTTPS. We recommend Policy-Min-TLS-1-2-2019-07 for TLSSecurityPolicy. For compatibility with older clients, the default is Policy-Min-TLS-1-0-2019-07.
- On success, responds with
UpdateDomainEndpointOptionsOutputwith field(s):domain_endpoint_options(Option<DomainEndpointOptionsStatus>):The newly-configured domain endpoint options.
- On failure, responds with
SdkError<UpdateDomainEndpointOptionsError>
sourcepub fn update_scaling_parameters(&self) -> UpdateScalingParameters
pub fn update_scaling_parameters(&self) -> UpdateScalingParameters
Constructs a fluent builder for the UpdateScalingParameters operation.
- The fluent builder is configurable:
domain_name(impl Into<String>)/set_domain_name(Option<String>):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).
scaling_parameters(ScalingParameters)/set_scaling_parameters(Option<ScalingParameters>):The desired instance type and desired number of replicas of each index partition.
- On success, responds with
UpdateScalingParametersOutputwith field(s):scaling_parameters(Option<ScalingParametersStatus>):The status and configuration of a search domain’s scaling parameters.
- On failure, responds with
SdkError<UpdateScalingParametersError>
sourcepub fn update_service_access_policies(&self) -> UpdateServiceAccessPolicies
pub fn update_service_access_policies(&self) -> UpdateServiceAccessPolicies
Constructs a fluent builder for the UpdateServiceAccessPolicies operation.
- The fluent builder is configurable:
domain_name(impl Into<String>)/set_domain_name(Option<String>):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).
access_policies(impl Into<String>)/set_access_policies(Option<String>):The access rules you want to configure. These rules replace any existing rules.
- On success, responds with
UpdateServiceAccessPoliciesOutputwith field(s):access_policies(Option<AccessPoliciesStatus>):The access rules configured for the domain.
- On failure, responds with
SdkError<UpdateServiceAccessPoliciesError>
sourceimpl Client
impl Client
sourcepub fn from_conf_conn<C, E>(conf: Config, conn: C) -> Self where
C: SmithyConnector<Error = E> + Send + 'static,
E: Into<ConnectorError>,
pub fn from_conf_conn<C, E>(conf: Config, conn: C) -> Self where
C: SmithyConnector<Error = E> + Send + 'static,
E: Into<ConnectorError>,
Creates a client with the given service config and connector override.
Trait Implementations
sourceimpl From<Client<DynConnector, DynMiddleware<DynConnector>, Standard>> for Client
impl From<Client<DynConnector, DynMiddleware<DynConnector>, Standard>> for Client
sourcefn from(client: Client<DynConnector, DynMiddleware<DynConnector>>) -> Self
fn from(client: Client<DynConnector, DynMiddleware<DynConnector>>) -> Self
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more