Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Creates an alias for the specified version of the bot or replaces an alias for the specified bot. To change the version of the bot that the alias points to, replace the alias. For more information about aliases, see 'versioning-aliases' .
This operation requires permissions for the lex:PutBotAlias
action.
Synopsis
- putBotAlias :: Text -> Text -> Text -> PutBotAlias
- data PutBotAlias
- pbaChecksum :: Lens' PutBotAlias (Maybe Text)
- pbaDescription :: Lens' PutBotAlias (Maybe Text)
- pbaName :: Lens' PutBotAlias Text
- pbaBotVersion :: Lens' PutBotAlias Text
- pbaBotName :: Lens' PutBotAlias Text
- putBotAliasResponse :: Int -> PutBotAliasResponse
- data PutBotAliasResponse
- pbarsChecksum :: Lens' PutBotAliasResponse (Maybe Text)
- pbarsBotVersion :: Lens' PutBotAliasResponse (Maybe Text)
- pbarsBotName :: Lens' PutBotAliasResponse (Maybe Text)
- pbarsCreatedDate :: Lens' PutBotAliasResponse (Maybe UTCTime)
- pbarsName :: Lens' PutBotAliasResponse (Maybe Text)
- pbarsLastUpdatedDate :: Lens' PutBotAliasResponse (Maybe UTCTime)
- pbarsDescription :: Lens' PutBotAliasResponse (Maybe Text)
- pbarsResponseStatus :: Lens' PutBotAliasResponse Int
Creating a Request
Creates a value of PutBotAlias
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
pbaChecksum
- Identifies a specific revision of the> LATEST
version. When you create a new bot alias, leave thechecksum
field blank. If you specify a checksum you get aBadRequestException
exception. When you want to update a bot alias, set thechecksum
field to the checksum of the most recent revision of the> LATEST
version. If you don't specify thechecksum
field, or if the checksum does not match the> LATEST
version, you get aPreconditionFailedException
exception.pbaDescription
- A description of the alias.pbaName
- The name of the alias. The name is not case sensitive.pbaBotVersion
- The version of the bot.pbaBotName
- The name of the bot.
data PutBotAlias Source #
See: putBotAlias
smart constructor.
Instances
Request Lenses
pbaChecksum :: Lens' PutBotAlias (Maybe Text) Source #
Identifies a specific revision of the > LATEST
version. When you create a new bot alias, leave the checksum
field blank. If you specify a checksum you get a BadRequestException
exception. When you want to update a bot alias, set the checksum
field to the checksum of the most recent revision of the > LATEST
version. If you don't specify the checksum
field, or if the checksum does not match the > LATEST
version, you get a PreconditionFailedException
exception.
pbaDescription :: Lens' PutBotAlias (Maybe Text) Source #
A description of the alias.
pbaBotVersion :: Lens' PutBotAlias Text Source #
The version of the bot.
pbaBotName :: Lens' PutBotAlias Text Source #
The name of the bot.
Destructuring the Response
Creates a value of PutBotAliasResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
pbarsChecksum
- The checksum for the current version of the alias.pbarsBotVersion
- The version of the bot that the alias points to.pbarsBotName
- The name of the bot that the alias points to.pbarsCreatedDate
- The date that the bot alias was created.pbarsName
- The name of the alias.pbarsLastUpdatedDate
- The date that the bot alias was updated. When you create a resource, the creation date and the last updated date are the same.pbarsDescription
- A description of the alias.pbarsResponseStatus
- -- | The response status code.
data PutBotAliasResponse Source #
See: putBotAliasResponse
smart constructor.
Instances
Response Lenses
pbarsChecksum :: Lens' PutBotAliasResponse (Maybe Text) Source #
The checksum for the current version of the alias.
pbarsBotVersion :: Lens' PutBotAliasResponse (Maybe Text) Source #
The version of the bot that the alias points to.
pbarsBotName :: Lens' PutBotAliasResponse (Maybe Text) Source #
The name of the bot that the alias points to.
pbarsCreatedDate :: Lens' PutBotAliasResponse (Maybe UTCTime) Source #
The date that the bot alias was created.
pbarsLastUpdatedDate :: Lens' PutBotAliasResponse (Maybe UTCTime) Source #
The date that the bot alias was updated. When you create a resource, the creation date and the last updated date are the same.
pbarsDescription :: Lens' PutBotAliasResponse (Maybe Text) Source #
A description of the alias.
pbarsResponseStatus :: Lens' PutBotAliasResponse Int Source #
- - | The response status code.