LexModelBuildingServiceClient#
Index > LexModelBuildingService > LexModelBuildingServiceClient
Auto-generated documentation for LexModelBuildingService type annotations stubs module mypy-boto3-lex-models.
LexModelBuildingServiceClient#
Type annotations and code completion for boto3.client("lex-models")
.
boto3 documentation
# LexModelBuildingServiceClient usage example
from boto3.session import Session
from mypy_boto3_lex_models.client import LexModelBuildingServiceClient
def get_lex-models_client() -> LexModelBuildingServiceClient:
return Session().client("lex-models")
Exceptions#
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("lex-models").exceptions
structure.
# Exceptions.exceptions usage example
client = boto3.client("lex-models")
try:
do_something(client)
except (
client.exceptions.AccessDeniedException,
client.exceptions.BadRequestException,
client.exceptions.ClientError,
client.exceptions.ConflictException,
client.exceptions.InternalFailureException,
client.exceptions.LimitExceededException,
client.exceptions.NotFoundException,
client.exceptions.PreconditionFailedException,
client.exceptions.ResourceInUseException,
) as e:
print(e)
# Exceptions.exceptions type checking example
from mypy_boto3_lex_models.client import Exceptions
def handle_error(exc: Exceptions.AccessDeniedException) -> None:
...
Methods#
can_paginate#
Check if an operation can be paginated.
Type annotations and code completion for boto3.client("lex-models").can_paginate
method.
boto3 documentation
# can_paginate method definition
def can_paginate(
self,
operation_name: str,
) -> bool:
...
close#
Closes underlying endpoint connections.
Type annotations and code completion for boto3.client("lex-models").close
method.
boto3 documentation
# close method definition
def close(
self,
) -> None:
...
create_bot_version#
Creates a new version of the bot based on the $LATEST
version.
Type annotations and code completion for boto3.client("lex-models").create_bot_version
method.
boto3 documentation
# create_bot_version method definition
def create_bot_version(
self,
*,
name: str,
checksum: str = ...,
) -> CreateBotVersionResponseTypeDef: # (1)
...
# create_bot_version method usage example with argument unpacking
kwargs: CreateBotVersionRequestRequestTypeDef = { # (1)
"name": ...,
}
parent.create_bot_version(**kwargs)
create_intent_version#
Creates a new version of an intent based on the $LATEST
version of the intent.
Type annotations and code completion for boto3.client("lex-models").create_intent_version
method.
boto3 documentation
# create_intent_version method definition
def create_intent_version(
self,
*,
name: str,
checksum: str = ...,
) -> CreateIntentVersionResponseTypeDef: # (1)
...
# create_intent_version method usage example with argument unpacking
kwargs: CreateIntentVersionRequestRequestTypeDef = { # (1)
"name": ...,
}
parent.create_intent_version(**kwargs)
create_slot_type_version#
Creates a new version of a slot type based on the $LATEST
version of the
specified slot
type.
Type annotations and code completion for boto3.client("lex-models").create_slot_type_version
method.
boto3 documentation
# create_slot_type_version method definition
def create_slot_type_version(
self,
*,
name: str,
checksum: str = ...,
) -> CreateSlotTypeVersionResponseTypeDef: # (1)
...
# create_slot_type_version method usage example with argument unpacking
kwargs: CreateSlotTypeVersionRequestRequestTypeDef = { # (1)
"name": ...,
}
parent.create_slot_type_version(**kwargs)
delete_bot#
Deletes all versions of the bot, including the $LATEST
version.
Type annotations and code completion for boto3.client("lex-models").delete_bot
method.
boto3 documentation
# delete_bot method definition
def delete_bot(
self,
*,
name: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# delete_bot method usage example with argument unpacking
kwargs: DeleteBotRequestRequestTypeDef = { # (1)
"name": ...,
}
parent.delete_bot(**kwargs)
delete_bot_alias#
Deletes an alias for the specified bot.
Type annotations and code completion for boto3.client("lex-models").delete_bot_alias
method.
boto3 documentation
# delete_bot_alias method definition
def delete_bot_alias(
self,
*,
name: str,
botName: str,
) -> EmptyResp