CloudSearchClient#
Index > CloudSearch > CloudSearchClient
Auto-generated documentation for CloudSearch type annotations stubs module mypy-boto3-cloudsearch.
CloudSearchClient#
Type annotations and code completion for boto3.client("cloudsearch")
.
boto3 documentation
# CloudSearchClient usage example
from boto3.session import Session
from mypy_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 mypy_boto3_cloudsearch.client import Exceptions
def handle_error(exc: Exceptions.BaseException) -> None:
...
Methods#
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: BuildSuggestersRequestRequestTypeDef = { # (1)
"DomainName": ...,
}
parent.build_suggesters(**kwargs)
can_paginate#
Check if an operation can be paginated.
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:
...
close#
Closes underlying endpoint connections.
Type annotations and code completion for boto3.client("cloudsearch").close
method.
boto3 documentation
# close method definition
def close(
self,
) -> None:
...
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: CreateDomainRequestRequestTypeDef = { # (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: DefineAnalysisSchemeRequestRequestTypeDef = { # (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: DefineExpressionRequestRequestTypeDef = { # (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: DefineIndexFieldRequestRequestTypeDef = { # (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)
...