LexModelsV2.Client.
delete_custom_vocabulary
(**kwargs)¶Removes a custom vocabulary from the specified locale in the specified bot.
See also: AWS API Documentation
Request Syntax
response = client.delete_custom_vocabulary(
botId='string',
botVersion='string',
localeId='string'
)
[REQUIRED]
The unique identifier of the bot to remove the custom vocabulary from.
[REQUIRED]
The version of the bot to remove the custom vocabulary from.
[REQUIRED]
The locale identifier for the locale that contains the custom vocabulary to remove.
dict
Response Syntax
{
'botId': 'string',
'botVersion': 'string',
'localeId': 'string',
'customVocabularyStatus': 'Ready'|'Deleting'|'Exporting'|'Importing'|'Creating'
}
Response Structure
(dict) --
botId (string) --
The identifier of the bot that the custom vocabulary was removed from.
botVersion (string) --
The version of the bot that the custom vocabulary was removed from.
localeId (string) --
The locale identifier for the locale that the custom vocabulary was removed from.
customVocabularyStatus (string) --
The status of removing the custom vocabulary.
Exceptions
LexModelsV2.Client.exceptions.ThrottlingException
LexModelsV2.Client.exceptions.ServiceQuotaExceededException
LexModelsV2.Client.exceptions.ValidationException
LexModelsV2.Client.exceptions.PreconditionFailedException
LexModelsV2.Client.exceptions.ConflictException
LexModelsV2.Client.exceptions.InternalServerException