Skip to content

CloudSearchDomainClient

Index > CloudSearchDomain > CloudSearchDomainClient

Auto-generated documentation for CloudSearchDomain type annotations stubs module types-aiobotocore-cloudsearchdomain.

CloudSearchDomainClient

Type annotations and code completion for session.client("cloudsearchdomain") boto3 documentation

Usage example
from aioboto3.session import Session
from types_aiobotocore_cloudsearchdomain.client import CloudSearchDomainClient

session = Session()
async with session.client("cloudsearchdomain") as client:
    client: CloudSearchDomainClient

Exceptions

aioboto3 client exceptions are generated in runtime. This class provides code completion for session.client("cloudsearchdomain").exceptions structure.

Usage example
async with session.client("cloudsearchdomain") as client:
    try:
        do_something(client)
    except (
            client.ClientError,
        client.DocumentServiceException,
        client.SearchException,
    ) as e:
        print(e)
Type checking example
from types_aiobotocore_cloudsearchdomain.client import Exceptions

def handle_error(exc: Exceptions.ClientError) -> None:
    ...

Methods

can_paginate

Check if an operation can be paginated.

Type annotations and code completion for session.client("cloudsearchdomain").can_paginate method. boto3 documentation

Method definition
def can_paginate(
    self,
    operation_name: str,
) -> bool:
    ...

close

Closes underlying endpoint connections.

Type annotations and code completion for session.client("cloudsearchdomain").close method. boto3 documentation

Method definition
await def close(
    self,
) -> None:
    ...

generate_presigned_url

Generate a presigned url given a client, its method, and arguments.

Type annotations and code completion for session.client("cloudsearchdomain").generate_presigned_url method. boto3 documentation

Method definition
await def generate_presigned_url(
    self,
    ClientMethod: str,
    Params: Mapping[str, Any] = ...,
    ExpiresIn: int = 3600,
    HttpMethod: str = ...,
) -> str:
    ...

Retrieves a list of documents that match the specified search criteria.

Type annotations and code completion for session.client("cloudsearchdomain").search method. boto3 documentation

Method definition
await def search(
    self,
    *,
    query: str,
    cursor: str = ...,
    expr: str = ...,
    facet: str = ...,
    filterQuery: str = ...,
    highlight: str = ...,
    partial: bool = ...,
    queryOptions: str = ...,
    queryParser: QueryParserType = ...,  # (1)
    returnFields: str = ...,
    size: int = ...,
    sort: str = ...,
    start: int = ...,
    stats: str = ...,
) -> SearchResponseTypeDef:  # (2)
    ...
  1. See QueryParserType
  2. See SearchResponseTypeDef
Usage example with kwargs
kwargs: SearchRequestRequestTypeDef = {  # (1)
    "query": ...,
}

parent.search(**kwargs)
  1. See SearchRequestRequestTypeDef

suggest

Retrieves autocomplete suggestions for a partial query string.

Type annotations and code completion for session.client("cloudsearchdomain").suggest method. boto3 documentation

Method definition
await def suggest(
    self,
    *,
    query: str,
    suggester: str,
    size: int = ...,
) -> SuggestResponseTypeDef:  # (1)
    ...
  1. See SuggestResponseTypeDef
Usage example with kwargs
kwargs: SuggestRequestRequestTypeDef = {  # (1)
    "query": ...,
    "suggester": ...,
}

parent.suggest(**kwargs)
  1. See SuggestRequestRequestTypeDef

upload_documents

Posts a batch of documents to a search domain for indexing.

Type annotations and code completion for session.client("cloudsearchdomain").upload_documents method. boto3 documentation

Method definition
await def upload_documents(
    self,
    *,
    documents: Union[str, bytes, IO[Any], StreamingBody],
    contentType: ContentTypeType,  # (1)
) -> UploadDocumentsResponseTypeDef:  # (2)
    ...
  1. See ContentTypeType
  2. See UploadDocumentsResponseTypeDef
Usage example with kwargs
kwargs: UploadDocumentsRequestRequestTypeDef = {  # (1)
    "documents": ...,
    "contentType": ...,
}

parent.upload_documents(**kwargs)
  1. See UploadDocumentsRequestRequestTypeDef

__aenter__

Type annotations and code completion for session.client("cloudsearchdomain").__aenter__ method. boto3 documentation

Method definition
await def __aenter__(
    self,
) -> CloudSearchDomainClient:
    ...

__aexit__

Type annotations and code completion for session.client("cloudsearchdomain").__aexit__ method. boto3 documentation

Method definition
await def __aexit__(
    self,
    exc_type: Any,
    exc_val: Any,
    exc_tb: Any,
) -> Any:
    ...