Skip to content

Typed dictionaries

Index > CloudSearchDomain > Typed dictionaries

Auto-generated documentation for CloudSearchDomain type annotations stubs module mypy-boto3-cloudsearchdomain.

BucketTypeDef

Usage Example
from mypy_boto3_cloudsearchdomain.type_defs import BucketTypeDef

def get_value() -> BucketTypeDef:
    return {
        "value": ...,
    }
Definition
class BucketTypeDef(TypedDict):
    value: NotRequired[str],
    count: NotRequired[int],

DocumentServiceWarningTypeDef

Usage Example
from mypy_boto3_cloudsearchdomain.type_defs import DocumentServiceWarningTypeDef

def get_value() -> DocumentServiceWarningTypeDef:
    return {
        "message": ...,
    }
Definition
class DocumentServiceWarningTypeDef(TypedDict):
    message: NotRequired[str],

FieldStatsTypeDef

Usage Example
from mypy_boto3_cloudsearchdomain.type_defs import FieldStatsTypeDef

def get_value() -> FieldStatsTypeDef:
    return {
        "min": ...,
    }
Definition
class FieldStatsTypeDef(TypedDict):
    min: NotRequired[str],
    max: NotRequired[str],
    count: NotRequired[int],
    missing: NotRequired[int],
    sum: NotRequired[float],
    sumOfSquares: NotRequired[float],
    mean: NotRequired[str],
    stddev: NotRequired[float],

HitTypeDef

Usage Example
from mypy_boto3_cloudsearchdomain.type_defs import HitTypeDef

def get_value() -> HitTypeDef:
    return {
        "id": ...,
    }
Definition
class HitTypeDef(TypedDict):
    id: NotRequired[str],
    fields: NotRequired[Dict[str, List[str]]],
    exprs: NotRequired[Dict[str, str]],
    highlights: NotRequired[Dict[str, str]],

ResponseMetadataTypeDef

Usage Example
from mypy_boto3_cloudsearchdomain.type_defs import ResponseMetadataTypeDef

def get_value() -> ResponseMetadataTypeDef:
    return {
        "RequestId": ...,
        "HostId": ...,
        "HTTPStatusCode": ...,
        "HTTPHeaders": ...,
        "RetryAttempts": ...,
    }
Definition
class ResponseMetadataTypeDef(TypedDict):
    RequestId: str,
    HostId: str,
    HTTPStatusCode: int,
    HTTPHeaders: Dict[str, str],
    RetryAttempts: int,

SearchRequestRequestTypeDef

Usage Example
from mypy_boto3_cloudsearchdomain.type_defs import SearchRequestRequestTypeDef

def get_value() -> SearchRequestRequestTypeDef:
    return {
        "query": ...,
    }
Definition
class SearchRequestRequestTypeDef(TypedDict):
    query: str,
    cursor: NotRequired[str],
    expr: NotRequired[str],
    facet: NotRequired[str],
    filterQuery: NotRequired[str],
    highlight: NotRequired[str],
    partial: NotRequired[bool],
    queryOptions: NotRequired[str],
    queryParser: NotRequired[QueryParserType],  # (1)
    returnFields: NotRequired[str],
    size: NotRequired[int],
    sort: NotRequired[str],
    start: NotRequired[int],
    stats: NotRequired[str],
  1. See QueryParserType

SearchStatusTypeDef

Usage Example
from mypy_boto3_cloudsearchdomain.type_defs import SearchStatusTypeDef

def get_value() -> SearchStatusTypeDef:
    return {
        "timems": ...,
    }
Definition
class SearchStatusTypeDef(TypedDict):
    timems: NotRequired[int],
    rid: NotRequired[str],

SuggestionMatchTypeDef

Usage Example
from mypy_boto3_cloudsearchdomain.type_defs import SuggestionMatchTypeDef

def get_value() -> SuggestionMatchTypeDef:
    return {
        "suggestion": ...,
    }
Definition
class SuggestionMatchTypeDef(TypedDict):
    suggestion: NotRequired[str],
    score: NotRequired[int],
    id: NotRequired[str],

SuggestRequestRequestTypeDef

Usage Example
from mypy_boto3_cloudsearchdomain.type_defs import SuggestRequestRequestTypeDef

def get_value() -> SuggestRequestRequestTypeDef:
    return {
        "query": ...,
        "suggester": ...,
    }
Definition
class SuggestRequestRequestTypeDef(TypedDict):
    query: str,
    suggester: str,
    size: NotRequired[int],

SuggestStatusTypeDef

Usage Example
from mypy_boto3_cloudsearchdomain.type_defs import SuggestStatusTypeDef

def get_value() -> SuggestStatusTypeDef:
    return {
        "timems": ...,
    }
Definition
class SuggestStatusTypeDef(TypedDict):
    timems: NotRequired[int],
    rid: NotRequired[str],

UploadDocumentsRequestRequestTypeDef

Usage Example
from mypy_boto3_cloudsearchdomain.type_defs import UploadDocumentsRequestRequestTypeDef

def get_value() -> UploadDocumentsRequestRequestTypeDef:
    return {
        "documents": ...,
        "contentType": ...,
    }
Definition
class UploadDocumentsRequestRequestTypeDef(TypedDict):
    documents: Union[str, bytes, IO[Any], StreamingBody],
    contentType: ContentTypeType,  # (1)
  1. See ContentTypeType

BucketInfoTypeDef

Usage Example
from mypy_boto3_cloudsearchdomain.type_defs import BucketInfoTypeDef

def get_value() -> BucketInfoTypeDef:
    return {
        "buckets": ...,
    }
Definition
class BucketInfoTypeDef(TypedDict):
    buckets: NotRequired[List[BucketTypeDef]],  # (1)
  1. See BucketTypeDef

HitsTypeDef

Usage Example
from mypy_boto3_cloudsearchdomain.type_defs import HitsTypeDef

def get_value() -> HitsTypeDef:
    return {
        "found": ...,
    }
Definition
class HitsTypeDef(TypedDict):
    found: NotRequired[int],
    start: NotRequired[int],
    cursor: NotRequired[str],
    hit: NotRequired[List[HitTypeDef]],  # (1)
  1. See HitTypeDef

UploadDocumentsResponseTypeDef

Usage Example
from mypy_boto3_cloudsearchdomain.type_defs import UploadDocumentsResponseTypeDef

def get_value() -> UploadDocumentsResponseTypeDef:
    return {
        "status": ...,
        "adds": ...,
        "deletes": ...,
        "warnings": ...,
        "ResponseMetadata": ...,
    }
Definition
class UploadDocumentsResponseTypeDef(TypedDict):
    status: str,
    adds: int,
    deletes: int,
    warnings: List[DocumentServiceWarningTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See DocumentServiceWarningTypeDef
  2. See ResponseMetadataTypeDef

SuggestModelTypeDef

Usage Example
from mypy_boto3_cloudsearchdomain.type_defs import SuggestModelTypeDef

def get_value() -> SuggestModelTypeDef:
    return {
        "query": ...,
    }
Definition
class SuggestModelTypeDef(TypedDict):
    query: NotRequired[str],
    found: NotRequired[int],
    suggestions: NotRequired[List[SuggestionMatchTypeDef]],  # (1)
  1. See SuggestionMatchTypeDef

SearchResponseTypeDef

Usage Example
from mypy_boto3_cloudsearchdomain.type_defs import SearchResponseTypeDef

def get_value() -> SearchResponseTypeDef:
    return {
        "status": ...,
        "hits": ...,
        "facets": ...,
        "stats": ...,
        "ResponseMetadata": ...,
    }
Definition
class SearchResponseTypeDef(TypedDict):
    status: SearchStatusTypeDef,  # (1)
    hits: HitsTypeDef,  # (2)
    facets: Dict[str, BucketInfoTypeDef],  # (3)
    stats: Dict[str, FieldStatsTypeDef],  # (4)
    ResponseMetadata: ResponseMetadataTypeDef,  # (5)
  1. See SearchStatusTypeDef
  2. See HitsTypeDef
  3. See BucketInfoTypeDef
  4. See FieldStatsTypeDef
  5. See ResponseMetadataTypeDef

SuggestResponseTypeDef

Usage Example
from mypy_boto3_cloudsearchdomain.type_defs import SuggestResponseTypeDef

def get_value() -> SuggestResponseTypeDef:
    return {
        "status": ...,
        "suggest": ...,
        "ResponseMetadata": ...,
    }
Definition
class SuggestResponseTypeDef(TypedDict):
    status: SuggestStatusTypeDef,  # (1)
    suggest: SuggestModelTypeDef,  # (2)
    ResponseMetadata: ResponseMetadataTypeDef,  # (3)
  1. See SuggestStatusTypeDef
  2. See SuggestModelTypeDef
  3. See ResponseMetadataTypeDef