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 bot, including the $LATEST
version. To
delete a specific version of the bot, use the DeleteBotVersion
operation. The DeleteBot
operation doesn't immediately remove the bot
schema. Instead, it is marked for deletion and removed later.
Amazon Lex stores utterances indefinitely for improving the ability of your bot to respond to user inputs. These utterances are not removed when the bot is deleted. To remove the utterances, use the DeleteUtterances operation.
If a bot has an alias, you can't delete it. Instead, the DeleteBot
operation returns a ResourceInUseException
exception that includes a
reference to the alias that refers to the bot. To remove the reference
to the bot, delete the alias. If you get the same exception again,
delete the referring alias until the DeleteBot
operation is
successful.
This operation requires permissions for the lex:DeleteBot
action.
Synopsis
- data DeleteBot = DeleteBot' {}
- newDeleteBot :: Text -> DeleteBot
- deleteBot_name :: Lens' DeleteBot Text
- data DeleteBotResponse = DeleteBotResponse' {
- newDeleteBotResponse :: DeleteBotResponse
Creating a Request
See: newDeleteBot
smart constructor.
Instances
Eq DeleteBot Source # | |
Read DeleteBot Source # | |
Show DeleteBot Source # | |
Generic DeleteBot Source # | |
NFData DeleteBot Source # | |
Defined in Amazonka.LexModels.DeleteBot | |
Hashable DeleteBot Source # | |
Defined in Amazonka.LexModels.DeleteBot | |
AWSRequest DeleteBot Source # | |
Defined in Amazonka.LexModels.DeleteBot type AWSResponse DeleteBot # request :: DeleteBot -> Request DeleteBot # response :: MonadResource m => Logger -> Service -> Proxy DeleteBot -> ClientResponse ClientBody -> m (Either Error (ClientResponse (AWSResponse DeleteBot))) # | |
ToHeaders DeleteBot Source # | |
Defined in Amazonka.LexModels.DeleteBot | |
ToPath DeleteBot Source # | |
Defined in Amazonka.LexModels.DeleteBot toPath :: DeleteBot -> ByteString # | |
ToQuery DeleteBot Source # | |
Defined in Amazonka.LexModels.DeleteBot toQuery :: DeleteBot -> QueryString # | |
type Rep DeleteBot Source # | |
Defined in Amazonka.LexModels.DeleteBot | |
type AWSResponse DeleteBot Source # | |
Defined in Amazonka.LexModels.DeleteBot |
Create a value of DeleteBot
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:DeleteBot'
, deleteBot_name
- The name of the bot. The name is case sensitive.
Request Lenses
Destructuring the Response
data DeleteBotResponse Source #
See: newDeleteBotResponse
smart constructor.
Instances
Eq DeleteBotResponse Source # | |
Defined in Amazonka.LexModels.DeleteBot (==) :: DeleteBotResponse -> DeleteBotResponse -> Bool # (/=) :: DeleteBotResponse -> DeleteBotResponse -> Bool # | |
Read DeleteBotResponse Source # | |
Defined in Amazonka.LexModels.DeleteBot | |
Show DeleteBotResponse Source # | |
Defined in Amazonka.LexModels.DeleteBot showsPrec :: Int -> DeleteBotResponse -> ShowS # show :: DeleteBotResponse -> String # showList :: [DeleteBotResponse] -> ShowS # | |
Generic DeleteBotResponse Source # | |
Defined in Amazonka.LexModels.DeleteBot type Rep DeleteBotResponse :: Type -> Type # from :: DeleteBotResponse -> Rep DeleteBotResponse x # to :: Rep DeleteBotResponse x -> DeleteBotResponse # | |
NFData DeleteBotResponse Source # | |
Defined in Amazonka.LexModels.DeleteBot rnf :: DeleteBotResponse -> () # | |
type Rep DeleteBotResponse Source # | |
newDeleteBotResponse :: DeleteBotResponse Source #
Create a value of DeleteBotResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.