Skip to content

OpenSearchService module

Index > OpenSearchService

Auto-generated documentation for OpenSearchService type annotations stubs module types-aiobotocore-opensearch.

How to install

From PyPI with pip

Install types-aioboto3 for OpenSearchService service.

# install with aioboto3 type annotations
python -m pip install 'types-aioboto3[opensearch]'


# Lite version does not provide session.client/resource overloads
# it is more RAM-friendly, but requires explicit type annotations
python -m pip install 'types-aioboto3-lite[opensearch]'


# standalone installation
python -m pip install types-aiobotocore-opensearch

How to uninstall

python -m pip uninstall -y types-aiobotocore-opensearch

Usage

Code samples can be found in Examples.

OpenSearchServiceClient

Type annotations and code completion for session.client("opensearch") as OpenSearchServiceClient boto3 documentation

Usage example
from aioboto3.session import Session

from types_aiobotocore_opensearch.client import OpenSearchServiceClient


session = Session()
async with session.client("opensearch") as client:
    client: OpenSearchServiceClient

Literals

Type annotations for literals used in methods and schema.

Usage example
from types_aiobotocore_opensearch.literals import AutoTuneDesiredStateType

def get_value() -> AutoTuneDesiredStateType:
    return "DISABLED"

Typed dictionaries

Type annotations for typed dictionaries used in methods and schema.

Usage example
from types_aiobotocore_opensearch.type_defs import AWSDomainInformationTypeDef

def get_value() -> AWSDomainInformationTypeDef:
    return {
        "DomainName": ...,
    }