Skip to content

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)
    ...
  1. See BuildSuggestersResponseTypeDef
# build_suggesters method usage example with argument unpacking

kwargs: BuildSuggestersRequestRequestTypeDef = {  # (1)
    "DomainName": ...,
}

parent.build_suggesters(**kwargs)
  1. See BuildSuggestersRequestRequestTypeDef

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)
    ...
  1. See CreateDomainResponseTypeDef
# create_domain method usage example with argument unpacking

kwargs: CreateDomainRequestRequestTypeDef = {  # (1)
    "DomainName": ...,
}

parent.create_domain(**kwargs)
  1. See CreateDomainRequestRequestTypeDef

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)
    ...
  1. See AnalysisSchemeTypeDef
  2. See DefineAnalysisSchemeResponseTypeDef
# define_analysis_scheme method usage example with argument unpacking

kwargs: DefineAnalysisSchemeRequestRequestTypeDef = {  # (1)
    "DomainName": ...,
    "AnalysisScheme": ...,
}

parent.define_analysis_scheme(**kwargs)
  1. See DefineAnalysisSchemeRequestRequestTypeDef

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)
    ...
  1. See ExpressionTypeDef
  2. See DefineExpressionResponseTypeDef
# define_expression method usage example with argument unpacking

kwargs: DefineExpressionRequestRequestTypeDef = {  # (1)
    "DomainName": ...,
    "Expression": ...,
}

parent.define_expression(**kwargs)
  1. See DefineExpressionRequestRequestTypeDef

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)
    ...
  1. See IndexFieldTypeDef
  2. See DefineIndexFieldResponseTypeDef
# define_index_field method usage example with argument unpacking

kwargs: DefineIndexFieldRequestRequestTypeDef = {  # (1)
    "DomainName": ...,
    "IndexField": ...,
}

parent.define_index_field(**kwargs)
  1. See DefineIndexFieldRequestRequestTypeDef

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)
    ...
  1. See SuggesterTypeDef
  2. See DefineSuggesterResponseTypeDef
# define_suggester method usage example with argument unpacking

kwargs: DefineSuggesterRequestRequestTypeDef = {  # (1)
    "DomainName": ...,
    "Suggester": ...,
}

parent.define_suggester(**kwargs)
  1. See DefineSuggesterRequestRequestTypeDef

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)
    ...
  1. See DeleteAnalysisSchemeResponseTypeDef
# delete_analysis_scheme method usage example with argument unpacking

kwargs: DeleteAnalysisSchemeRequestRequestTypeDef = {  # (1)
    "DomainName": ...,
    "AnalysisSchemeName": ...,
}

parent.delete_analysis_scheme(**kwargs)
  1. See DeleteAnalysisSchemeRequestRequestTypeDef

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)
    ...
  1. See DeleteDomainResponseTypeDef
# delete_domain method usage example with argument unpacking

kwargs: DeleteDomainRequestRequestTypeDef = {  # (1)
    "DomainName": ...,
}

parent.delete_domain(**kwargs)
  1. See DeleteDomainRequestRequestTypeDef

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)
    ...
  1. See DeleteExpressionResponseTypeDef
# delete_expression method usage example with argument unpacking

kwargs: DeleteExpressionRequestRequestTypeDef = {  # (1)
    "DomainName": ...,
    "ExpressionName": ...,
}

parent.delete_expression(**kwargs)
  1. See DeleteExpressionRequestRequestTypeDef

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)
    ...
  1. See DeleteIndexFieldResponseTypeDef
# delete_index_field method usage example with argument unpacking

kwargs: DeleteIndexFieldRequestRequestTypeDef = {  # (1)
    "DomainName": ...,
    "IndexFieldName": ...,
}

parent.delete_index_field(**kwargs)
  1. See DeleteIndexFieldRequestRequestTypeDef

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)
    ...
  1. See DeleteSuggesterResponseTypeDef
# delete_suggester method usage example with argument unpacking

kwargs: DeleteSuggesterRequestRequestTypeDef = {  # (1)
    "DomainName": ...,
    "SuggesterName": ...,
}

parent.delete_suggester(**kwargs)
  1. See DeleteSuggesterRequestRequestTypeDef

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)
    ...
  1. See DescribeAnalysisSchemesResponseTypeDef
# describe_analysis_schemes method usage example with argument unpacking

kwargs: DescribeAnalysisSchemesRequestRequestTypeDef = {  # (1)
    "DomainName": ...,
}

parent.describe_analysis_schemes(**kwargs)
  1. See DescribeAnalysisSchemesRequestRequestTypeDef

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)
    ...
  1. See DescribeAvailabilityOptionsResponseTypeDef
# describe_availability_options method usage example with argument unpacking

kwargs: DescribeAvailabilityOptionsRequestRequestTypeDef = {  # (1)
    "DomainName": ...,
}

parent.describe_availability_options(**kwargs)
  1. See DescribeAvailabilityOptionsRequestRequestTypeDef

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)
    ...
  1. See DescribeDomainEndpointOptionsResponseTypeDef
# describe_domain_endpoint_options method usage example with argument unpacking

kwargs: DescribeDomainEndpointOptionsRequestRequestTypeDef = {  # (1)
    "DomainName": ...,
}

parent.describe_domain_endpoint_options(**kwargs)
  1. See DescribeDomainEndpointOptionsRequestRequestTypeDef

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)
    ...
  1. See DescribeDomainsResponseTypeDef
# describe_domains method usage example with argument unpacking

kwargs: DescribeDomainsRequestRequestTypeDef = {  # (1)
    "DomainNames": ...,
}

parent.describe_domains(**kwargs)
  1. See DescribeDomainsRequestRequestTypeDef<