LexModelsV2 / Client / delete_slot_type
delete_slot_type¶
- LexModelsV2.Client.delete_slot_type(**kwargs)¶
Deletes a slot type from a bot locale.
If a slot is using the slot type, Amazon Lex throws a
ResourceInUseExceptionexception. To avoid the exception, set theskipResourceInUseCheckparameter totrue.See also: AWS API Documentation
Request Syntax
response = client.delete_slot_type( slotTypeId='string', botId='string', botVersion='string', localeId='string', skipResourceInUseCheck=True|False )
- Parameters:
slotTypeId (string) –
[REQUIRED]
The identifier of the slot type to delete.
botId (string) –
[REQUIRED]
The identifier of the bot associated with the slot type.
botVersion (string) –
[REQUIRED]
The version of the bot associated with the slot type.
localeId (string) –
[REQUIRED]
The identifier of the language and locale that the slot type will be deleted from. The string must match one of the supported locales. For more information, see Supported languages.
skipResourceInUseCheck (boolean) – By default, the
DeleteSlotTypeoperations throws aResourceInUseExceptionexception if you try to delete a slot type used by a slot. Set theskipResourceInUseCheckparameter totrueto skip this check and remove the slot type even if a slot uses it.
- Returns:
None
Exceptions