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

# OpenSearchServiceClient 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.

# 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.