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 an alias for the specified bot.
You can't delete an alias that is used in the association between a bot
and a messaging channel. If an alias is used in a channel association,
the DeleteBot
operation returns a ResourceInUseException
exception
that includes a reference to the channel association that refers to the
bot. You can remove the reference to the alias by deleting the channel
association. If you get the same exception again, delete the referring
association until the DeleteBotAlias
operation is successful.
Synopsis
Creating a Request
data DeleteBotAlias Source #
See: newDeleteBotAlias
smart constructor.
Instances
Create a value of DeleteBotAlias
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:DeleteBotAlias'
, deleteBotAlias_name
- The name of the alias to delete. The name is case sensitive.
$sel:botName:DeleteBotAlias'
, deleteBotAlias_botName
- The name of the bot that the alias points to.
Request Lenses
deleteBotAlias_name :: Lens' DeleteBotAlias Text Source #
The name of the alias to delete. The name is case sensitive.
deleteBotAlias_botName :: Lens' DeleteBotAlias Text Source #
The name of the bot that the alias points to.
Destructuring the Response
data DeleteBotAliasResponse Source #
See: newDeleteBotAliasResponse
smart constructor.
Instances
Eq DeleteBotAliasResponse Source # | |
Defined in Amazonka.LexModels.DeleteBotAlias | |
Read DeleteBotAliasResponse Source # | |
Show DeleteBotAliasResponse Source # | |
Defined in Amazonka.LexModels.DeleteBotAlias showsPrec :: Int -> DeleteBotAliasResponse -> ShowS # show :: DeleteBotAliasResponse -> String # showList :: [DeleteBotAliasResponse] -> ShowS # | |
Generic DeleteBotAliasResponse Source # | |
Defined in Amazonka.LexModels.DeleteBotAlias type Rep DeleteBotAliasResponse :: Type -> Type # | |
NFData DeleteBotAliasResponse Source # | |
Defined in Amazonka.LexModels.DeleteBotAlias rnf :: DeleteBotAliasResponse -> () # | |
type Rep DeleteBotAliasResponse Source # | |
newDeleteBotAliasResponse :: DeleteBotAliasResponse Source #
Create a value of DeleteBotAliasResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.