LexModelsV2Client#
Index > LexModelsV2 > LexModelsV2Client
Auto-generated documentation for LexModelsV2 type annotations stubs module mypy-boto3-lexv2-models.
LexModelsV2Client#
Type annotations and code completion for boto3.client("lexv2-models")
.
boto3 documentation
# LexModelsV2Client usage example
from boto3.session import Session
from mypy_boto3_lexv2_models.client import LexModelsV2Client
def get_lexv2-models_client() -> LexModelsV2Client:
return Session().client("lexv2-models")
Exceptions#
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("lexv2-models").exceptions
structure.
# Exceptions.exceptions usage example
client = boto3.client("lexv2-models")
try:
do_something(client)
except (
client.exceptions.ClientError,
client.exceptions.ConflictException,
client.exceptions.InternalServerException,
client.exceptions.PreconditionFailedException,
client.exceptions.ResourceNotFoundException,
client.exceptions.ServiceQuotaExceededException,
client.exceptions.ThrottlingException,
client.exceptions.ValidationException,
) as e:
print(e)
# Exceptions.exceptions type checking example
from mypy_boto3_lexv2_models.client import Exceptions
def handle_error(exc: Exceptions.ClientError) -> None:
...
Methods#
batch_create_custom_vocabulary_item#
Create a batch of custom vocabulary items for a given bot locale's custom vocabulary.
Type annotations and code completion for boto3.client("lexv2-models").batch_create_custom_vocabulary_item
method.
boto3 documentation
# batch_create_custom_vocabulary_item method definition
def batch_create_custom_vocabulary_item(
self,
*,
botId: str,
botVersion: str,
localeId: str,
customVocabularyItemList: Sequence[NewCustomVocabularyItemTypeDef], # (1)
) -> BatchCreateCustomVocabularyItemResponseTypeDef: # (2)
...