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-aiobotocore for OpenSearchService service.

# install with aiobotocore type annotations
python -m pip install 'types-aiobotocore[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-aiobotocore-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.create_client("opensearch") as OpenSearchServiceClient boto3 documentation

# OpenSearchServiceClient usage example

from aiobotocore.session import get_session

from types_aiobotocore_opensearch.client import OpenSearchServiceClient


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

Literals#

Type annotations for literals used in methods and schema.

# ActionSeverityType usage example

from types_aiobotocore_opensearch.literals import ActionSeverityType

def get_value() -> ActionSeverityType:
    return "HIGH"

Type definitions#

Type annotations for type definitions used in methods and schema.