types-aiobotocore-opensearchserverless

raw JSON →
3.5.0 verified Fri May 01 auth: no python

Type annotations for aiobotocore OpenSearchServiceServerless 3.5.0 service, generated with mypy-boto3-builder 8.12.0. Provides static type checking support for the OpenSearch Serverless service in async boto3 applications. Currently at version 3.5.0, released with minor updates aligned to aiobotocore releases.

pip install types-aiobotocore[opensearchserverless]
error ModuleNotFoundError: No module named 'types_aiobotocore_opensearchserverless'
cause Package not installed or misspelled.
fix
Run 'pip install types-aiobotocore[opensearchserverless]'
error Cannot import name 'OpenSearchServerlessClient' from 'types_aiobotocore_opensearchserverless'
cause Incorrect import path or package version mismatch.
fix
Use 'from types_aiobotocore_opensearchserverless import OpenSearchServerlessClient' and ensure package is up to date.
breaking Version 8.9.0 of the builder renamed many TypeDefs (e.g., CreateDistributionRequestRequestTypeDef -> CreateDistributionRequestTypeDef); existing type annotations may silently break.
fix Update your type annotations to match new shorter names; run mypy to detect mismatches.
breaking Python 3.8 support removed in builder 8.12.0; this package now requires Python >=3.9.
fix Upgrade to Python 3.9 or later.
deprecated The service 'sms-voice' is no longer supported; use 'pinpoint-sms-voice' instead. This does not directly affect opensearchserverless but indicates broader deprecations.
fix No action required for this service.

Basic async usage with OpenSearchServerlessClient type hints.

import asyncio
from types_aiobotocore_opensearchserverless import OpenSearchServerlessClient

async def main():
    session = get_session()  # Assume aiobotocore AioSession
    async with session.create_client('opensearchserverless', region_name='us-east-1') as client:
        response = await client.list_collections()
        print(response)

asyncio.run(main())