Skip to content

LexModelsV2 module

Index > LexModelsV2

Auto-generated documentation for LexModelsV2 type annotations stubs module types-aiobotocore-lexv2-models.

How to install

From PyPI with pip

Install types-aioboto3 for LexModelsV2 service.

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


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


# standalone installation
python -m pip install types-aiobotocore-lexv2-models

How to uninstall

python -m pip uninstall -y types-aiobotocore-lexv2-models

Usage

Code samples can be found in Examples.

LexModelsV2Client

Type annotations and code completion for session.client("lexv2-models") as LexModelsV2Client boto3 documentation

Usage example
from aioboto3.session import Session

from types_aiobotocore_lexv2_models.client import LexModelsV2Client


session = Session()
async with session.client("lexv2-models") as client:
    client: LexModelsV2Client

Waiters

Type annotations and code completion for waiters from session.client("lexv2-models").get_waiter("...").

Usage example
from types_aiobotocore_lexv2_models.waiter import BotAliasAvailableWaiter

def get_bot_alias_available_waiter() -> BotAliasAvailableWaiter:
    return Session().client("lexv2-models").get_waiter("bot_alias_available")

Literals

Type annotations for literals used in methods and schema.

Usage example
from types_aiobotocore_lexv2_models.literals import AggregatedUtterancesFilterNameType

def get_value() -> AggregatedUtterancesFilterNameType:
    return "Utterance"

Typed dictionaries

Type annotations for typed dictionaries used in methods and schema.

Usage example
from types_aiobotocore_lexv2_models.type_defs import AdvancedRecognitionSettingTypeDef

def get_value() -> AdvancedRecognitionSettingTypeDef:
    return {
        "audioRecognitionStrategy": ...,
    }