LexModelsV2 / Client / delete_bot_version
delete_bot_version#
- LexModelsV2.Client.delete_bot_version(**kwargs)#
Deletes a specific version of a bot. To delete all versions of a bot, use the DeleteBot operation.
See also: AWS API Documentation
Request Syntax
response = client.delete_bot_version( botId='string', botVersion='string', skipResourceInUseCheck=True|False )
- Parameters:
botId (string) –
[REQUIRED]
The identifier of the bot that contains the version.
botVersion (string) –
[REQUIRED]
The version of the bot to delete.
skipResourceInUseCheck (boolean) – By default, Amazon Lex checks if any other resource, such as an alias or bot network, is using the bot version before it is deleted and throws a
ResourceInUseExceptionexception if the version is being used by another resource. Set this parameter totrueto skip this check and remove the version even if it is being used by another resource.
- Return type:
dict
- Returns:
Response Syntax
{ 'botId': 'string', 'botVersion': 'string', 'botStatus': 'Creating'|'Available'|'Inactive'|'Deleting'|'Failed'|'Versioning'|'Importing'|'Updating' }
Response Structure
(dict) –
botId (string) –
The identifier of the bot that is being deleted.
botVersion (string) –
The version of the bot that is being deleted.
botStatus (string) –
The current status of the bot.
Exceptions
LexModelsV2.Client.exceptions.ThrottlingExceptionLexModelsV2.Client.exceptions.ServiceQuotaExceededExceptionLexModelsV2.Client.exceptions.ValidationExceptionLexModelsV2.Client.exceptions.ConflictExceptionLexModelsV2.Client.exceptions.PreconditionFailedExceptionLexModelsV2.Client.exceptions.InternalServerException