Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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.
Instances
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:name: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.
Instances
Eq DeleteSlotTypeResponse Source # | |
Defined in Amazonka.LexModels.DeleteSlotType | |
Read DeleteSlotTypeResponse Source # | |
Show DeleteSlotTypeResponse Source # | |
Defined in Amazonka.LexModels.DeleteSlotType showsPrec :: Int -> DeleteSlotTypeResponse -> ShowS # show :: DeleteSlotTypeResponse -> String # showList :: [DeleteSlotTypeResponse] -> ShowS # | |
Generic DeleteSlotTypeResponse Source # | |
Defined in Amazonka.LexModels.DeleteSlotType type Rep DeleteSlotTypeResponse :: Type -> Type # | |
NFData DeleteSlotTypeResponse Source # | |
Defined in Amazonka.LexModels.DeleteSlotType rnf :: DeleteSlotTypeResponse -> () # | |
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.