LexModelBuildingService / Client / delete_bot_alias
delete_bot_alias#
- LexModelBuildingService.Client.delete_bot_alias(**kwargs)#
Deletes an alias for the specified bot.
You can’t delete an alias that is used in the association between a bot and a messaging channel. If an alias is used in a channel association, the
DeleteBot
operation returns aResourceInUseException
exception that includes a reference to the channel association that refers to the bot. You can remove the reference to the alias by deleting the channel association. If you get the same exception again, delete the referring association until theDeleteBotAlias
operation is successful.See also: AWS API Documentation
Request Syntax
response = client.delete_bot_alias( name='string', botName='string' )
- Parameters:
name (string) –
[REQUIRED]
The name of the alias to delete. The name is case sensitive.
botName (string) –
[REQUIRED]
The name of the bot that the alias points to.
- Returns:
None
Exceptions
LexModelBuildingService.Client.exceptions.NotFoundException
LexModelBuildingService.Client.exceptions.ConflictException
LexModelBuildingService.Client.exceptions.LimitExceededException
LexModelBuildingService.Client.exceptions.InternalFailureException
LexModelBuildingService.Client.exceptions.BadRequestException
LexModelBuildingService.Client.exceptions.ResourceInUseException