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 a specific version of a bot. To delete all version of a bot, use the DeleteBot operation.
Synopsis
- data DeleteBotVersion = DeleteBotVersion' {}
- newDeleteBotVersion :: Text -> Text -> DeleteBotVersion
- deleteBotVersion_skipResourceInUseCheck :: Lens' DeleteBotVersion (Maybe Bool)
- deleteBotVersion_botId :: Lens' DeleteBotVersion Text
- deleteBotVersion_botVersion :: Lens' DeleteBotVersion Text
- data DeleteBotVersionResponse = DeleteBotVersionResponse' {}
- newDeleteBotVersionResponse :: Int -> DeleteBotVersionResponse
- deleteBotVersionResponse_botId :: Lens' DeleteBotVersionResponse (Maybe Text)
- deleteBotVersionResponse_botStatus :: Lens' DeleteBotVersionResponse (Maybe BotStatus)
- deleteBotVersionResponse_botVersion :: Lens' DeleteBotVersionResponse (Maybe Text)
- deleteBotVersionResponse_httpStatus :: Lens' DeleteBotVersionResponse Int
Creating a Request
data DeleteBotVersion Source #
See: newDeleteBotVersion
smart constructor.
DeleteBotVersion' | |
|
Instances
Create a value of DeleteBotVersion
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:DeleteBotVersion'
, deleteBotVersion_skipResourceInUseCheck
- By default, the DeleteBotVersion
operations throws a
ResourceInUseException
exception if you try to delete a bot version
that has an alias pointing at it. Set the skipResourceInUseCheck
parameter to true
to skip this check and remove the version even if an
alias points to it.
DeleteBotVersion
, deleteBotVersion_botId
- The identifier of the bot that contains the version.
DeleteBotVersion
, deleteBotVersion_botVersion
- The version of the bot to delete.
Request Lenses
deleteBotVersion_skipResourceInUseCheck :: Lens' DeleteBotVersion (Maybe Bool) Source #
By default, the DeleteBotVersion
operations throws a
ResourceInUseException
exception if you try to delete a bot version
that has an alias pointing at it. Set the skipResourceInUseCheck
parameter to true
to skip this check and remove the version even if an
alias points to it.
deleteBotVersion_botId :: Lens' DeleteBotVersion Text Source #
The identifier of the bot that contains the version.
deleteBotVersion_botVersion :: Lens' DeleteBotVersion Text Source #
The version of the bot to delete.
Destructuring the Response
data DeleteBotVersionResponse Source #
See: newDeleteBotVersionResponse
smart constructor.
Instances
newDeleteBotVersionResponse Source #
Create a value of DeleteBotVersionResponse
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:
DeleteBotVersion
, deleteBotVersionResponse_botId
- The identifier of the bot that is being deleted.
DeleteBotVersionResponse
, deleteBotVersionResponse_botStatus
- The current status of the bot.
DeleteBotVersion
, deleteBotVersionResponse_botVersion
- The version of the bot that is being deleted.
$sel:httpStatus:DeleteBotVersionResponse'
, deleteBotVersionResponse_httpStatus
- The response's http status code.
Response Lenses
deleteBotVersionResponse_botId :: Lens' DeleteBotVersionResponse (Maybe Text) Source #
The identifier of the bot that is being deleted.
deleteBotVersionResponse_botStatus :: Lens' DeleteBotVersionResponse (Maybe BotStatus) Source #
The current status of the bot.
deleteBotVersionResponse_botVersion :: Lens' DeleteBotVersionResponse (Maybe Text) Source #
The version of the bot that is being deleted.
deleteBotVersionResponse_httpStatus :: Lens' DeleteBotVersionResponse Int Source #
The response's http status code.