Skip to content

OpenSearchServiceServerless module#

Index > OpenSearchServiceServerless

Auto-generated documentation for OpenSearchServiceServerless type annotations stubs module types-aiobotocore-opensearchserverless.

How to install#

From PyPI with pip#

Install types-aioboto3 for OpenSearchServiceServerless service.

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


# 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[opensearchserverless]'


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

How to uninstall#

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

Usage#

Code samples can be found in Examples.

OpenSearchServiceServerlessClient#

Type annotations and code completion for session.client("opensearchserverless") as OpenSearchServiceServerlessClient boto3 documentation

# OpenSearchServiceServerlessClient usage example

from aioboto3.session import Session

from types_aiobotocore_opensearchserverless.client import OpenSearchServiceServerlessClient


session = Session()
async with session.client("opensearchserverless") as client:
    client: OpenSearchServiceServerlessClient

Literals#

Type annotations for literals used in methods and schema.

# AccessPolicyTypeType usage example

from types_aiobotocore_opensearchserverless.literals import AccessPolicyTypeType

def get_value() -> AccessPolicyTypeType:
    return "data"

Type definitions#

Type annotations for type definitions used in methods and schema.