Skip to content

LexRuntimeV2 module

Index > LexRuntimeV2

Auto-generated documentation for LexRuntimeV2 type annotations stubs module types-aiobotocore-lexv2-runtime.

How to install

From PyPI with pip

Install types-aioboto3 for LexRuntimeV2 service.

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


# 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-runtime]'


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

How to uninstall

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

Usage

Code samples can be found in Examples.

LexRuntimeV2Client

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

Usage example
from aioboto3.session import Session

from types_aiobotocore_lexv2_runtime.client import LexRuntimeV2Client


session = Session()
async with session.client("lexv2-runtime") as client:
    client: LexRuntimeV2Client

Literals

Type annotations for literals used in methods and schema.

Usage example
from types_aiobotocore_lexv2_runtime.literals import ConfirmationStateType

def get_value() -> ConfirmationStateType:
    return "Confirmed"

Typed dictionaries

Type annotations for typed dictionaries used in methods and schema.

Usage example
from types_aiobotocore_lexv2_runtime.type_defs import ActiveContextTimeToLiveTypeDef

def get_value() -> ActiveContextTimeToLiveTypeDef:
    return {
        "timeToLiveInSeconds": ...,
        "turnsToLive": ...,
    }