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 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.
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:name:DeleteBotVersion'
, deleteBotVersion_name
- The name of the bot.
$sel:version: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.
Instances
Eq DeleteBotVersionResponse Source # | |
Defined in Amazonka.LexModels.DeleteBotVersion | |
Read DeleteBotVersionResponse Source # | |
Show DeleteBotVersionResponse Source # | |
Defined in Amazonka.LexModels.DeleteBotVersion showsPrec :: Int -> DeleteBotVersionResponse -> ShowS # show :: DeleteBotVersionResponse -> String # showList :: [DeleteBotVersionResponse] -> ShowS # | |
Generic DeleteBotVersionResponse Source # | |
Defined in Amazonka.LexModels.DeleteBotVersion type Rep DeleteBotVersionResponse :: Type -> Type # | |
NFData DeleteBotVersionResponse Source # | |
Defined in Amazonka.LexModels.DeleteBotVersion rnf :: DeleteBotVersionResponse -> () # | |
type Rep DeleteBotVersionResponse Source # | |
Defined in Amazonka.LexModels.DeleteBotVersion |
newDeleteBotVersionResponse :: DeleteBotVersionResponse Source #
Create a value of DeleteBotVersionResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.