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,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# delete_bot_alias method usage example with argument unpacking
kwargs: DeleteBotAliasRequestRequestTypeDef = { # (1)
"name": ...,
"botName": ...,
}
parent.delete_bot_alias(**kwargs)
delete_bot_channel_association#
Deletes the association between an Amazon Lex bot and a messaging platform.
Type annotations and code completion for boto3.client("lex-models").delete_bot_channel_association
method.
boto3 documentation
# delete_bot_channel_association method definition
def delete_bot_channel_association(
self,
*,
name: str,
botName: str,
botAlias: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# delete_bot_channel_association method usage example with argument unpacking
kwargs: DeleteBotChannelAssociationRequestRequestTypeDef = { # (1)
"name": ...,
"botName": ...,
"botAlias": ...,
}
parent.delete_bot_channel_association(**kwargs)
delete_bot_version#
Deletes a specific version of a bot.
Type annotations and code completion for boto3.client("lex-models").delete_bot_version
method.
boto3 documentation
# delete_bot_version method definition
def delete_bot_version(
self,
*,
name: str,
version: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# delete_bot_version method usage example with argument unpacking
kwargs: DeleteBotVersionRequestRequestTypeDef = { # (1)
"name": ...,
"version": ...,
}
parent.delete_bot_version(**kwargs)
delete_intent#
Deletes all versions of the intent, including the $LATEST
version.
Type annotations and code completion for boto3.client("lex-models").delete_intent
method.
boto3 documentation
# delete_intent method definition
def delete_intent(
self,
*,
name: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# delete_intent method usage example with argument unpacking
kwargs: DeleteIntentRequestRequestTypeDef = { # (1)
"name": ...,
}
parent.delete_intent(**kwargs)
delete_intent_version#
Deletes a specific version of an intent.
Type annotations and code completion for boto3.client("lex-models").delete_intent_version
method.
boto3 documentation
# delete_intent_version method definition
def delete_intent_version(
self,
*,
name: str,
version: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# delete_intent_version method usage example with argument unpacking
kwargs: DeleteIntentVersionRequestRequestTypeDef = { # (1)
"name": ...,
"version": ...,
}
parent.delete_intent_version(**kwargs)
delete_slot_type#
Deletes all versions of the slot type, including the $LATEST
version.
Type annotations and code completion for boto3.client("lex-models").delete_slot_type
method.
boto3 documentation
# delete_slot_type method definition
def delete_slot_type(
self,
*,
name: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# delete_slot_type method usage example with argument unpacking
kwargs: DeleteSlotTypeRequestRequestTypeDef = { # (1)
"name": ...,
}
parent.delete_slot_type(**kwargs)
delete_slot_type_version#
Deletes a specific version of a slot type.
Type annotations and code completion for boto3.client("lex-models").delete_slot_type_version
method.
boto3 documentation
# delete_slot_type_version method definition
def delete_slot_type_version(
self,
*,
name: str,
version: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# delete_slot_type_version method usage example with argument unpacking
kwargs: DeleteSlotTypeVersionRequestRequestTypeDef = { # (1)
"name": ...,
"version": ...,
}
parent.delete_slot_type_version(**kwargs)
delete_utterances#
Deletes stored utterances.
Type annotations and code completion for boto3.client("lex-models").delete_utterances
method.
boto3 documentation
# delete_utterances method definition
def delete_utterances(
self,
*,
botName: str,
userId: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# delete_utterances method usage example with argument unpacking
kwargs: DeleteUtterancesRequestRequestTypeDef = { # (1)
"botName": ...,
"userId": ...,
}
parent.delete_utterances(**kwargs)
generate_presigned_url#
Generate a presigned url given a client, its method, and arguments.
Type annotations and code completion for boto3.client("lex-models").generate_presigned_url
method.
boto3 documentation
# generate_presigned_url method definition
def generate_presigned_url(
self,
ClientMethod: str,
Params: Mapping[str, Any] = ...,
ExpiresIn: int = 3600,
HttpMethod: str = ...,
) -> str:
...
get_bot#
Returns metadata information for a specific bot.
Type annotations and code completion for boto3.client("lex-models").get_bot
method.
boto3 documentation
# get_bot method definition
def get_bot(
self,
*,
name: str,
versionOrAlias: str,
) -> GetBotResponseTypeDef: # (1)
...
# get_bot method usage example with argument unpacking
kwargs: GetBotRequestRequestTypeDef = { # (1)
"name": ...,
"versionOrAlias": ...,
}
parent.get_bot(**kwargs)
get_bot_alias#
Returns information about an Amazon Lex bot alias.
Type annotations and code completion for boto3.client("lex-models").get_bot_alias
method.