| 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 |
Amazonka.LexModels.DeleteBotVersion
Description
Deletes a specific version of a bot. To delete all versions of a bot, use the DeleteBot operation.
This operation requires permissions for the lex:DeleteBotVersion
action.
Synopsis
- data DeleteBotVersion = DeleteBotVersion' {}
- newDeleteBotVersion :: Text -> Text -> DeleteBotVersion
- deleteBotVersion_name :: Lens' DeleteBotVersion Text
- deleteBotVersion_version :: Lens' DeleteBotVersion Text
- data DeleteBotVersionResponse = DeleteBotVersionResponse' {
- newDeleteBotVersionResponse :: DeleteBotVersionResponse
Creating a Request
data DeleteBotVersion Source #
See: newDeleteBotVersion smart constructor.
Constructors
| DeleteBotVersion' | |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> DeleteBotVersion |
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:
DeleteBotVersion, deleteBotVersion_name - The name of the bot.
DeleteBotVersion, deleteBotVersion_version - The version of the bot to delete. You cannot delete the $LATEST
version of the bot. To delete the $LATEST version, use the DeleteBot
operation.
Request Lenses
deleteBotVersion_name :: Lens' DeleteBotVersion Text Source #
The name of the bot.
deleteBotVersion_version :: Lens' DeleteBotVersion Text Source #
The version of the bot to delete. You cannot delete the $LATEST
version of the bot. To delete the $LATEST version, use the DeleteBot
operation.
Destructuring the Response
data DeleteBotVersionResponse Source #
See: newDeleteBotVersionResponse smart constructor.
Constructors
| DeleteBotVersionResponse' | |
Instances
newDeleteBotVersionResponse :: DeleteBotVersionResponse Source #
Create a value of DeleteBotVersionResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.