Skip to content

LexModelsV2 module

Index > LexModelsV2

Auto-generated documentation for LexModelsV2 type annotations stubs module mypy-boto3-lexv2-models.

How to install

VSCode extension

Add AWS Boto3 extension to your VSCode and run AWS boto3: Quick Start command.

Click Modify and select boto3 common and LexModelsV2.

From PyPI with pip

Install boto3-stubs for LexModelsV2 service.

# install with boto3 type annotations
python -m pip install 'boto3-stubs[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 'boto3-stubs-lite[lexv2-models]'


# standalone installation
python -m pip install mypy-boto3-lexv2-models

How to uninstall

python -m pip uninstall -y mypy-boto3-lexv2-models

Usage

Code samples can be found in Examples.

LexModelsV2Client

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

Usage example
from boto3.session import Session

from mypy_boto3_lexv2_models.client import LexModelsV2Client

def get_client() -> LexModelsV2Client:
    return Session().client("lexv2-models")

Waiters

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

Usage example
from boto3.session import Session

from mypy_boto3_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 schemas.

Usage example
from mypy_boto3_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 mypy_boto3_lexv2_models.type_defs import AdvancedRecognitionSettingTypeDef

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