Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Deletes a slot type from a bot locale.
If a slot is using the slot type, Amazon Lex throws a
ResourceInUseException
exception. To avoid the exception, set the
skipResourceInUseCheck
parameter to true
.
Synopsis
- data DeleteSlotType = DeleteSlotType' {
- skipResourceInUseCheck :: Maybe Bool
- slotTypeId :: Text
- botId :: Text
- botVersion :: Text
- localeId :: Text
- newDeleteSlotType :: Text -> Text -> Text -> Text -> DeleteSlotType
- deleteSlotType_skipResourceInUseCheck :: Lens' DeleteSlotType (Maybe Bool)
- deleteSlotType_slotTypeId :: Lens' DeleteSlotType Text
- deleteSlotType_botId :: Lens' DeleteSlotType Text
- deleteSlotType_botVersion :: Lens' DeleteSlotType Text
- deleteSlotType_localeId :: Lens' DeleteSlotType Text
- data DeleteSlotTypeResponse = DeleteSlotTypeResponse' {
- newDeleteSlotTypeResponse :: DeleteSlotTypeResponse
Creating a Request
data DeleteSlotType Source #
See: newDeleteSlotType
smart constructor.
DeleteSlotType' | |
|
Instances
:: Text | |
-> Text | |
-> Text | |
-> Text | |
-> DeleteSlotType |
Create a value of DeleteSlotType
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:skipResourceInUseCheck:DeleteSlotType'
, deleteSlotType_skipResourceInUseCheck
- By default, the DeleteSlotType
operations throws a
ResourceInUseException
exception if you try to delete a slot type used
by a slot. Set the skipResourceInUseCheck
parameter to true
to skip
this check and remove the slot type even if a slot uses it.
DeleteSlotType
, deleteSlotType_slotTypeId
- The identifier of the slot type to delete.
DeleteSlotType
, deleteSlotType_botId
- The identifier of the bot associated with the slot type.
DeleteSlotType
, deleteSlotType_botVersion
- The version of the bot associated with the slot type.
DeleteSlotType
, deleteSlotType_localeId
- 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.
Request Lenses
deleteSlotType_skipResourceInUseCheck :: Lens' DeleteSlotType (Maybe Bool) Source #
By default, the DeleteSlotType
operations throws a
ResourceInUseException
exception if you try to delete a slot type used
by a slot. Set the skipResourceInUseCheck
parameter to true
to skip
this check and remove the slot type even if a slot uses it.
deleteSlotType_slotTypeId :: Lens' DeleteSlotType Text Source #
The identifier of the slot type to delete.
deleteSlotType_botId :: Lens' DeleteSlotType Text Source #
The identifier of the bot associated with the slot type.
deleteSlotType_botVersion :: Lens' DeleteSlotType Text Source #
The version of the bot associated with the slot type.
deleteSlotType_localeId :: Lens' DeleteSlotType Text Source #
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.
Destructuring the Response
data DeleteSlotTypeResponse Source #
See: newDeleteSlotTypeResponse
smart constructor.
Instances
Generic DeleteSlotTypeResponse Source # | |
Defined in Amazonka.LexV2Models.DeleteSlotType type Rep DeleteSlotTypeResponse :: Type -> Type # | |
Read DeleteSlotTypeResponse Source # | |
Show DeleteSlotTypeResponse Source # | |
Defined in Amazonka.LexV2Models.DeleteSlotType showsPrec :: Int -> DeleteSlotTypeResponse -> ShowS # show :: DeleteSlotTypeResponse -> String # showList :: [DeleteSlotTypeResponse] -> ShowS # | |
NFData DeleteSlotTypeResponse Source # | |
Defined in Amazonka.LexV2Models.DeleteSlotType rnf :: DeleteSlotTypeResponse -> () # | |
Eq DeleteSlotTypeResponse Source # | |
Defined in Amazonka.LexV2Models.DeleteSlotType | |
type Rep DeleteSlotTypeResponse Source # | |
newDeleteSlotTypeResponse :: DeleteSlotTypeResponse Source #
Create a value of DeleteSlotTypeResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.