CloudSearchClient#
Index > CloudSearch > CloudSearchClient
Auto-generated documentation for CloudSearch type annotations stubs module types-boto3-cloudsearch.
CloudSearchClient#
Type annotations and code completion for boto3.client("cloudsearch").
 boto3 documentation
# CloudSearchClient usage example
from boto3.session import Session
from types_boto3_cloudsearch.client import CloudSearchClient
def get_cloudsearch_client() -> CloudSearchClient:
    return Session().client("cloudsearch")Exceptions#
boto3 client exceptions are generated in runtime.
This class provides code completion for boto3.client("cloudsearch").exceptions structure.
# Exceptions.exceptions usage example
client = boto3.client("cloudsearch")
try:
    do_something(client)
except (
    client.exceptions.BaseException,
    client.exceptions.ClientError,
    client.exceptions.DisabledOperationException,
    client.exceptions.InternalException,
    client.exceptions.InvalidTypeException,
    client.exceptions.LimitExceededException,
    client.exceptions.ResourceAlreadyExistsException,
    client.exceptions.ResourceNotFoundException,
    client.exceptions.ValidationException,
) as e:
    print(e)# Exceptions.exceptions type checking example
from types_boto3_cloudsearch.client import Exceptions
def handle_error(exc: Exceptions.BaseException) -> None:
    ...Methods#
can_paginate#
Type annotations and code completion for boto3.client("cloudsearch").can_paginate method.
 boto3 documentation
# can_paginate method definition
def can_paginate(
    self,
    operation_name: str,
) -> bool:
    ...generate_presigned_url#
Type annotations and code completion for boto3.client("cloudsearch").generate_presigned_url method.
 boto3 documentation
# generate_presigned_url method definition
def generate_presigned_url(
    self,
    ClientMethod: str,
    Params: Mapping[str, Any] = ...,
    ExpiresIn: int = 3600,
    HttpMethod: str = ...,
) -> str:
    ...build_suggesters#
Indexes the search suggestions.
Type annotations and code completion for boto3.client("cloudsearch").build_suggesters method.
 boto3 documentation
# build_suggesters method definition
def build_suggesters(
    self,
    *,
    DomainName: str,
) -> BuildSuggestersResponseTypeDef:  # (1)
    ...# build_suggesters method usage example with argument unpacking
kwargs: BuildSuggestersRequestTypeDef = {  # (1)
    "DomainName": ...,
}
parent.build_suggesters(**kwargs)create_domain#
Creates a new search domain.
Type annotations and code completion for boto3.client("cloudsearch").create_domain method.
 boto3 documentation
# create_domain method definition
def create_domain(
    self,
    *,
    DomainName: str,
) -> CreateDomainResponseTypeDef:  # (1)
    ...# create_domain method usage example with argument unpacking
kwargs: CreateDomainRequestTypeDef = {  # (1)
    "DomainName": ...,
}
parent.create_domain(**kwargs)define_analysis_scheme#
Configures an analysis scheme that can be applied to a text or
text-array field to define language-specific text processing
options.
Type annotations and code completion for boto3.client("cloudsearch").define_analysis_scheme method.
 boto3 documentation
# define_analysis_scheme method definition
def define_analysis_scheme(
    self,
    *,
    DomainName: str,
    AnalysisScheme: AnalysisSchemeTypeDef,  # (1)
) -> DefineAnalysisSchemeResponseTypeDef:  # (2)
    ...# define_analysis_scheme method usage example with argument unpacking
kwargs: DefineAnalysisSchemeRequestTypeDef = {  # (1)
    "DomainName": ...,
    "AnalysisScheme": ...,
}
parent.define_analysis_scheme(**kwargs)define_expression#
Configures an Expression for the search domain.
Type annotations and code completion for boto3.client("cloudsearch").define_expression method.
 boto3 documentation
# define_expression method definition
def define_expression(
    self,
    *,
    DomainName: str,
    Expression: ExpressionTypeDef,  # (1)
) -> DefineExpressionResponseTypeDef:  # (2)
    ...# define_expression method usage example with argument unpacking
kwargs: DefineExpressionRequestTypeDef = {  # (1)
    "DomainName": ...,
    "Expression": ...,
}
parent.define_expression(**kwargs)define_index_field#
Configures an IndexField for the search domain.
Type annotations and code completion for boto3.client("cloudsearch").define_index_field method.
 boto3 documentation
# define_index_field method definition
def define_index_field(
    self,
    *,
    DomainName: str,
    IndexField: IndexFieldTypeDef,  # (1)
) -> DefineIndexFieldResponseTypeDef:  # (2)
    ...# define_index_field method usage example with argument unpacking
kwargs: DefineIndexFieldRequestTypeDef = {  # (1)
    "DomainName": ...,
    "IndexField": ...,
}
parent.define_index_field(**kwargs)define_suggester#
Configures a suggester for a domain.
Type annotations and code completion for boto3.client("cloudsearch").define_suggester method.
 boto3 documentation
# define_suggester method definition
def define_suggester(
    self,
    *,
    DomainName: str,
    Suggester: SuggesterTypeDef,  # (1)
) -> DefineSuggesterResponseTypeDef:  # (2)
    ...# define_suggester method usage example with argument unpacking
kwargs: DefineSuggesterRequestTypeDef = {  # (1)
    "DomainName": ...,
    "Suggester": ...,
}
parent.define_suggester(**kwargs)delete_analysis_scheme#
Deletes an analysis scheme.
Type annotations and code completion for boto3.client("cloudsearch").delete_analysis_scheme method.
 boto3 documentation
# delete_analysis_scheme method definition
def delete_analysis_scheme(
    self,
    *,
    DomainName: str,
    AnalysisSchemeName: str,
) -> DeleteAnalysisSchemeResponseTypeDef:  # (1)
    ...# delete_analysis_scheme method usage example with argument unpacking
kwargs: DeleteAnalysisSchemeRequestTypeDef = {  # (1)
    "DomainName": ...,
    "AnalysisSchemeName": ...,
}
parent.delete_analysis_scheme(**kwargs)delete_domain#
Permanently deletes a search domain and all of its data.
Type annotations and code completion for boto3.client("cloudsearch").delete_domain method.
 boto3 documentation
# delete_domain method definition
def delete_domain(
    self,
    *,
    DomainName: str,
) -> DeleteDomainResponseTypeDef:  # (1)
    ...# delete_domain method usage example with argument unpacking
kwargs: DeleteDomainRequestTypeDef = {  # (1)
    "DomainName": ...,
}
parent.delete_domain(**kwargs)delete_expression#
Removes an Expression from the search domain.
Type annotations and code completion for boto3.client("cloudsearch").delete_expression method.
 boto3 documentation
# delete_expression method definition
def delete_expression(
    self,
    *,
    DomainName: str,
    ExpressionName: str,
) -> DeleteExpressionResponseTypeDef:  # (1)
    ...# delete_expression method usage example with argument unpacking
kwargs: DeleteExpressionRequestTypeDef = {  # (1)
    "DomainName": ...,
    "ExpressionName": ...,
}
parent.delete_expression(**kwargs)delete_index_field#
Removes an IndexField from the search domain.
Type annotations and code completion for boto3.client("cloudsearch").delete_index_field method.
 boto3 documentation
# delete_index_field method definition
def delete_index_field(
    self,
    *,
    DomainName: str,
    IndexFieldName: str,
) -> DeleteIndexFieldResponseTypeDef:  # (1)
    ...# delete_index_field method usage example with argument unpacking
kwargs: DeleteIndexFieldRequestTypeDef = {  # (1)
    "DomainName": ...,
    "IndexFieldName": ...,
}
parent.delete_index_field(**kwargs)delete_suggester#
Deletes a suggester.
Type annotations and code completion for boto3.client("cloudsearch").delete_suggester method.
 boto3 documentation
# delete_suggester method definition
def delete_suggester(
    self,
    *,
    DomainName: str,
    SuggesterName: str,
) -> DeleteSuggesterResponseTypeDef:  # (1)
    ...# delete_suggester method usage example with argument unpacking
kwargs: DeleteSuggesterRequestTypeDef = {  # (1)
    "DomainName": ...,
    "SuggesterName": ...,
}
parent.delete_suggester(**kwargs)describe_analysis_schemes#
Gets the analysis schemes configured for a domain.
Type annotations and code completion for boto3.client("cloudsearch").describe_analysis_schemes method.
 boto3 documentation
# describe_analysis_schemes method definition
def describe_analysis_schemes(
    self,
    *,
    DomainName: str,
    AnalysisSchemeNames: Sequence[str] = ...,
    Deployed: bool = ...,
) -> DescribeAnalysisSchemesResponseTypeDef:  # (1)
    ...# describe_analysis_schemes method usage example with argument unpacking
kwargs: DescribeAnalysisSchemesRequestTypeDef = {  # (1)
    "DomainName": ...,
}
parent.describe_analysis_schemes(**kwargs)describe_availability_options#
Gets the availability options configured for a domain.
Type annotations and code completion for boto3.client("cloudsearch").describe_availability_options method.
 boto3 documentation
# describe_availability_options method definition
def describe_availability_options(
    self,
    *,
    DomainName: str,
    Deployed: bool = ...,
) -> DescribeAvailabilityOptionsResponseTypeDef:  # (1)
    ...# describe_availability_options method usage example with argument unpacking
kwargs: DescribeAvailabilityOptionsRequestTypeDef = {  # (1)
    "DomainName": ...,
}
parent.describe_availability_options(**kwargs)describe_domain_endpoint_options#
Returns the domain's endpoint options, specifically whether all requests to the domain must arrive over HTTPS.
Type annotations and code completion for boto3.client("cloudsearch").describe_domain_endpoint_options method.
 boto3 documentation
# describe_domain_endpoint_options method definition
def describe_domain_endpoint_options(
    self,
    *,
    DomainName: str,
    Deployed: bool = ...,
) -> DescribeDomainEndpointOptionsResponseTypeDef:  # (1)
    ...# describe_domain_endpoint_options method usage example with argument unpacking
kwargs: DescribeDomainEndpointOptionsRequestTypeDef = {  # (1)
    "DomainName": ...,
}
parent.describe_domain_endpoint_options(**kwargs)describe_domains#
Gets information about the search domains owned by this account.
Type annotations and code completion for boto3.client("cloudsearch").describe_domains method.
 boto3 documentation
# describe_domains method definition
def describe_domains(
    self,
    *,
    DomainNames: Sequence[str] = ...,
) -> DescribeDomainsResponseTypeDef:  # (1)
    ...# describe_domains method usage example with argument unpacking
kwargs: DescribeDomainsRequestTypeDef = {  # (1)
    "DomainNames": ...,
}
parent.describe_domains(**kwargs)describe_expressions#
Gets the expressions configured for the search domain.
Type annotations and code completion for boto3.client("cloudsearch").describe_expressions method.
 boto3 documentation
# describe_expressions method definition
def describe_expressions(
    self,
    *,
    DomainName: str,
    ExpressionNames: Sequence[str] = ...,
    Deployed: bool = ...,
) -> DescribeExpressionsResponseTypeDef:  # (1)
    ...# describe_expressions method usage example with argument unpacking
kwargs: DescribeExpressionsRequestTypeDef = {  # (1)
    "DomainName": ...,
}
parent.describe_expressions(**kwargs)describe_index_fields#
Gets information about the index fields configured for the search domain.
Type annotations and code completion for boto3.client("cloudsearch").describe_index_fields method.
 boto3 documentation
# describe_index_fields method definition
def describe_index_fields(
    self,
    *,
    DomainName: str,
    FieldNames: Sequence[str] = ...,
    Deployed: bool = ...,
) -> DescribeIndexFieldsResponseTypeDef:  # (1)
    ...# describe_index_fields method usage example with argument unpacking
kwargs: DescribeIndexFieldsRequestTypeDef = {  # (1)
    "DomainName": ...,
}
parent.describe_index_fields(**kwargs)describe_scaling_parameters#
Gets the scaling parameters configured for a domain.
Type annotations and code completion for boto3.client("cloudsearch").describe_scaling_parameters method.
 boto3 documentation
# describe_scaling_parameters method definition
def describe_scaling_parameters(
    self,
    *,
    DomainName: str,
) -> DescribeScalingParametersResponseTypeDef:  # (1)
    ...# describe_scaling_parameters method usage example with argument unpacking
kwargs: DescribeScalingParametersRequestTypeDef = {  # (1)
    "DomainName": ...,
}
parent.describe_scaling_parameters(**kwargs)describe_service_access_policies#
Gets information about the access policies that control access to the domain's document and search endpoints.
Type annotations and code completion for boto3.client("cloudsearch").describe_service_access_policies method.
 boto3 documentation
# describe_service_access_policies method definition
def describe_service_access_policies(
    self,
    *,
    DomainName: str,
    Deployed: bool = ...,
) -> DescribeServiceAccessPoliciesResponseTypeDef:  # (1)
    ...# describe_service_access_policies method usage example with argument unpacking
kwargs: DescribeServiceAccessPoliciesRequestTypeDef = {  # (1)
    "DomainName": ...,
}
parent.describe_service_access_policies(**kwargs)describe_suggesters#
Gets the suggesters configured for a domain.
Type annotations and code completion for boto3.client("cloudsearch").describe_suggesters method.
 boto3 documentation
# describe_suggesters method definition
def describe_suggesters(
    self,
    *,
    DomainName: str,
    SuggesterNames: Sequence[str] = ...,
    Deployed: bool = ...,
) -> DescribeSuggestersResponseTypeDef:  # (1)
    ...# describe_suggesters method usage example with argument unpacking
kwargs: DescribeSuggestersRequestTypeDef = {  # (1)
    "DomainName": ...,
}
parent.describe_suggesters(**kwargs)index_documents#
Tells the search domain to start indexing its documents using the latest indexing options.
Type annotations and code completion for boto3.client("cloudsearch").index_documents method.
 boto3 documentation
# index_documents method definition
def index_documents(
    self,
    *,
    DomainName: str,
) -> IndexDocumentsResponseTypeDef:  # (1)
    ...# index_documents method usage example with argument unpacking
kwargs: IndexDocumentsRequestTypeDef = {  # (1)
    "DomainName": ...,
}
parent.index_documents(**kwargs)list_domain_names#
Lists all search domains owned by an account.
Type annotations and code completion for boto3.client("cloudsearch").list_domain_names method.
 boto3 documentation
# list_domain_names method definition
def list_domain_names(
    self,
) -> ListDomainNamesResponseTypeDef:  # (1)
    ...update_availability_options#
Configures the availability options for a domain.
Type annotations and code completion for boto3.client("cloudsearch").update_availability_options method.
 boto3 documentation
# update_availability_options method definition
def update_availability_options(
    self,
    *,
    DomainName: str,
    MultiAZ: bool,
) -> UpdateAvailabilityOptionsResponseTypeDef:  # (1)
    ...# update_availability_options method usage example with argument unpacking
kwargs: UpdateAvailabilityOptionsRequestTypeDef = {  # (1)
    "DomainName": ...,
    "MultiAZ": ...,
}
parent.update_availability_options(**kwargs)update_domain_endpoint_options#
Updates the domain's endpoint options, specifically whether all requests to the domain must arrive over HTTPS.
Type annotations and code completion for boto3.client("cloudsearch").update_domain_endpoint_options method.
 boto3 documentation
# update_domain_endpoint_options method definition
def update_domain_endpoint_options(
    self,
    *,
    DomainName: str,
    DomainEndpointOptions: DomainEndpointOptionsTypeDef,  # (1)
) -> UpdateDomainEndpointOptionsResponseTypeDef:  # (2)
    ...# update_domain_endpoint_options method usage example with argument unpacking
kwargs: UpdateDomainEndpointOptionsRequestTypeDef = {  # (1)
    "DomainName": ...,
    "DomainEndpointOptions": ...,
}
parent.update_domain_endpoint_options(**kwargs)update_scaling_parameters#
Configures scaling parameters for a domain.
Type annotations and code completion for boto3.client("cloudsearch").update_scaling_parameters method.
 boto3 documentation
# update_scaling_parameters method definition
def update_scaling_parameters(
    self,
    *,
    DomainName: str,
    ScalingParameters: ScalingParametersTypeDef,  # (1)
) -> UpdateScalingParametersResponseTypeDef:  # (2)
    ...# update_scaling_parameters method usage example with argument unpacking
kwargs: UpdateScalingParametersRequestTypeDef = {  # (1)
    "DomainName": ...,
    "ScalingParameters": ...,
}
parent.update_scaling_parameters(**kwargs)update_service_access_policies#
Configures the access rules that control access to the domain's document and search endpoints.
Type annotations and code completion for boto3.client("cloudsearch").update_service_access_policies method.
 boto3 documentation
# update_service_access_policies method definition
def update_service_access_policies(
    self,
    *,
    DomainName: str,
    AccessPolicies: str,
) -> UpdateServiceAccessPoliciesResponseTypeDef:  # (1)
    ...# update_service_access_policies method usage example with argument unpacking
kwargs: UpdateServiceAccessPoliciesRequestTypeDef = {  # (1)
    "DomainName": ...,
    "AccessPolicies": ...,
}
parent.update_service_access_policies(**kwargs)