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 all versions of a bot, including the Draft
version. To delete
a specific version, use the DeleteBotVersion
operation.
When you delete a bot, all of the resources contained in the bot are also deleted. Deleting a bot removes all locales, intents, slot, and slot types defined for the bot.
If a bot has an alias, the DeleteBot
operation returns a
ResourceInUseException
exception. If you want to delete the bot and
the alias, set the skipResourceInUseCheck
parameter to true
.
Synopsis
- data DeleteBot = DeleteBot' {}
- newDeleteBot :: Text -> DeleteBot
- deleteBot_skipResourceInUseCheck :: Lens' DeleteBot (Maybe Bool)
- deleteBot_botId :: Lens' DeleteBot Text
- data DeleteBotResponse = DeleteBotResponse' {}
- newDeleteBotResponse :: Int -> DeleteBotResponse
- deleteBotResponse_botId :: Lens' DeleteBotResponse (Maybe Text)
- deleteBotResponse_botStatus :: Lens' DeleteBotResponse (Maybe BotStatus)
- deleteBotResponse_httpStatus :: Lens' DeleteBotResponse Int
Creating a Request
See: newDeleteBot
smart constructor.
DeleteBot' | |
|
Instances
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:skipResourceInUseCheck:DeleteBot'
, deleteBot_skipResourceInUseCheck
- When true
, Amazon Lex doesn't check to see if another resource, such
as an alias, is using the bot before it is deleted.
DeleteBot
, deleteBot_botId
- The identifier of the bot to delete.
Request Lenses
deleteBot_skipResourceInUseCheck :: Lens' DeleteBot (Maybe Bool) Source #
When true
, Amazon Lex doesn't check to see if another resource, such
as an alias, is using the bot before it is deleted.
Destructuring the Response
data DeleteBotResponse Source #
See: newDeleteBotResponse
smart constructor.
Instances
Create a value of DeleteBotResponse
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:
DeleteBot
, deleteBotResponse_botId
- The unique identifier of the bot that Amazon Lex is deleting.
DeleteBotResponse
, deleteBotResponse_botStatus
- The current status of the bot. The status is Deleting
while the bot
and its associated resources are being deleted.
$sel:httpStatus:DeleteBotResponse'
, deleteBotResponse_httpStatus
- The response's http status code.
Response Lenses
deleteBotResponse_botId :: Lens' DeleteBotResponse (Maybe Text) Source #
The unique identifier of the bot that Amazon Lex is deleting.
deleteBotResponse_botStatus :: Lens' DeleteBotResponse (Maybe BotStatus) Source #
The current status of the bot. The status is Deleting
while the bot
and its associated resources are being deleted.
deleteBotResponse_httpStatus :: Lens' DeleteBotResponse Int Source #
The response's http status code.