| 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 | 
Amazonka.LexModels.DeleteSlotType
Description
Deletes all versions of the slot type, including the $LATEST version.
 To delete a specific version of the slot type, use the
 DeleteSlotTypeVersion operation.
You can delete a version of a slot type only if it is not referenced. To delete a slot type that is referred to in one or more intents, you must remove those references first.
If you get the ResourceInUseException exception, the exception
 provides an example reference that shows the intent where the slot type
 is referenced. To remove the reference to the slot type, either update
 the intent or delete it. If you get the same exception when you attempt
 to delete the slot type again, repeat until the slot type has no
 references and the DeleteSlotType call is successful.
This operation requires permission for the lex:DeleteSlotType action.
Synopsis
Creating a Request
data DeleteSlotType Source #
See: newDeleteSlotType smart constructor.
Constructors
| DeleteSlotType' | |
Instances
Arguments
| :: 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:
DeleteSlotType, deleteSlotType_name - The name of the slot type. The name is case sensitive.
Request Lenses
deleteSlotType_name :: Lens' DeleteSlotType Text Source #
The name of the slot type. The name is case sensitive.
Destructuring the Response
data DeleteSlotTypeResponse Source #
See: newDeleteSlotTypeResponse smart constructor.
Constructors
| DeleteSlotTypeResponse' | |
Instances
| Generic DeleteSlotTypeResponse Source # | |
Defined in Amazonka.LexModels.DeleteSlotType Associated Types type Rep DeleteSlotTypeResponse :: Type -> Type # Methods from :: DeleteSlotTypeResponse -> Rep DeleteSlotTypeResponse x # to :: Rep DeleteSlotTypeResponse x -> DeleteSlotTypeResponse #  | |
| Read DeleteSlotTypeResponse Source # | |
Defined in Amazonka.LexModels.DeleteSlotType  | |
| Show DeleteSlotTypeResponse Source # | |
Defined in Amazonka.LexModels.DeleteSlotType Methods showsPrec :: Int -> DeleteSlotTypeResponse -> ShowS # show :: DeleteSlotTypeResponse -> String # showList :: [DeleteSlotTypeResponse] -> ShowS #  | |
| NFData DeleteSlotTypeResponse Source # | |
Defined in Amazonka.LexModels.DeleteSlotType Methods rnf :: DeleteSlotTypeResponse -> () #  | |
| Eq DeleteSlotTypeResponse Source # | |
Defined in Amazonka.LexModels.DeleteSlotType Methods (==) :: DeleteSlotTypeResponse -> DeleteSlotTypeResponse -> Bool # (/=) :: DeleteSlotTypeResponse -> DeleteSlotTypeResponse -> Bool #  | |
| 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.