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 intent, including the $LATEST
version. To
delete a specific version of the intent, use the DeleteIntentVersion
operation.
You can delete a version of an intent only if it is not referenced. To delete an intent that is referred to in one or more bots (see how-it-works), you must remove those references first.
If you get the ResourceInUseException
exception, it provides an
example reference that shows where the intent is referenced. To remove
the reference to the intent, either update the bot or delete it. If you
get the same exception when you attempt to delete the intent again,
repeat until the intent has no references and the call to DeleteIntent
is successful.
This operation requires permission for the lex:DeleteIntent
action.
Synopsis
Creating a Request
data DeleteIntent Source #
See: newDeleteIntent
smart constructor.
Instances
Create a value of DeleteIntent
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:DeleteIntent'
, deleteIntent_name
- The name of the intent. The name is case sensitive.
Request Lenses
deleteIntent_name :: Lens' DeleteIntent Text Source #
The name of the intent. The name is case sensitive.
Destructuring the Response
data DeleteIntentResponse Source #
See: newDeleteIntentResponse
smart constructor.
Instances
Eq DeleteIntentResponse Source # | |
Defined in Amazonka.LexModels.DeleteIntent (==) :: DeleteIntentResponse -> DeleteIntentResponse -> Bool # (/=) :: DeleteIntentResponse -> DeleteIntentResponse -> Bool # | |
Read DeleteIntentResponse Source # | |
Show DeleteIntentResponse Source # | |
Defined in Amazonka.LexModels.DeleteIntent showsPrec :: Int -> DeleteIntentResponse -> ShowS # show :: DeleteIntentResponse -> String # showList :: [DeleteIntentResponse] -> ShowS # | |
Generic DeleteIntentResponse Source # | |
Defined in Amazonka.LexModels.DeleteIntent type Rep DeleteIntentResponse :: Type -> Type # from :: DeleteIntentResponse -> Rep DeleteIntentResponse x # to :: Rep DeleteIntentResponse x -> DeleteIntentResponse # | |
NFData DeleteIntentResponse Source # | |
Defined in Amazonka.LexModels.DeleteIntent rnf :: DeleteIntentResponse -> () # | |
type Rep DeleteIntentResponse Source # | |
newDeleteIntentResponse :: DeleteIntentResponse Source #
Create a value of DeleteIntentResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.