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 |
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
- data PutBotAlias = PutBotAlias' {
- checksum :: Maybe Text
- conversationLogs :: Maybe ConversationLogsRequest
- description :: Maybe Text
- tags :: Maybe [Tag]
- name :: Text
- botVersion :: Text
- botName :: Text
- newPutBotAlias :: Text -> Text -> Text -> PutBotAlias
- putBotAlias_checksum :: Lens' PutBotAlias (Maybe Text)
- putBotAlias_conversationLogs :: Lens' PutBotAlias (Maybe ConversationLogsRequest)
- putBotAlias_description :: Lens' PutBotAlias (Maybe Text)
- putBotAlias_tags :: Lens' PutBotAlias (Maybe [Tag])
- putBotAlias_name :: Lens' PutBotAlias Text
- putBotAlias_botVersion :: Lens' PutBotAlias Text
- putBotAlias_botName :: Lens' PutBotAlias Text
- data PutBotAliasResponse = PutBotAliasResponse' {
- checksum :: Maybe Text
- botVersion :: Maybe Text
- botName :: Maybe Text
- createdDate :: Maybe POSIX
- name :: Maybe Text
- conversationLogs :: Maybe ConversationLogsResponse
- lastUpdatedDate :: Maybe POSIX
- description :: Maybe Text
- tags :: Maybe [Tag]
- httpStatus :: Int
- newPutBotAliasResponse :: Int -> PutBotAliasResponse
- putBotAliasResponse_checksum :: Lens' PutBotAliasResponse (Maybe Text)
- putBotAliasResponse_botVersion :: Lens' PutBotAliasResponse (Maybe Text)
- putBotAliasResponse_botName :: Lens' PutBotAliasResponse (Maybe Text)
- putBotAliasResponse_createdDate :: Lens' PutBotAliasResponse (Maybe UTCTime)
- putBotAliasResponse_name :: Lens' PutBotAliasResponse (Maybe Text)
- putBotAliasResponse_conversationLogs :: Lens' PutBotAliasResponse (Maybe ConversationLogsResponse)
- putBotAliasResponse_lastUpdatedDate :: Lens' PutBotAliasResponse (Maybe UTCTime)
- putBotAliasResponse_description :: Lens' PutBotAliasResponse (Maybe Text)
- putBotAliasResponse_tags :: Lens' PutBotAliasResponse (Maybe [Tag])
- putBotAliasResponse_httpStatus :: Lens' PutBotAliasResponse Int
Creating a Request
data PutBotAlias Source #
See: newPutBotAlias
smart constructor.
PutBotAlias' | |
|
Instances
:: Text | |
-> Text | |
-> Text | |
-> PutBotAlias |
Create a value of PutBotAlias
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:checksum:PutBotAlias'
, putBotAlias_checksum
- 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.
$sel:conversationLogs:PutBotAlias'
, putBotAlias_conversationLogs
- Settings for conversation logs for the alias.
$sel:description:PutBotAlias'
, putBotAlias_description
- A description of the alias.
$sel:tags:PutBotAlias'
, putBotAlias_tags
- A list of tags to add to the bot alias. You can only add tags when you
create an alias, you can't use the PutBotAlias
operation to update
the tags on a bot alias. To update tags, use the TagResource
operation.
$sel:name:PutBotAlias'
, putBotAlias_name
- The name of the alias. The name is not case sensitive.
$sel:botVersion:PutBotAlias'
, putBotAlias_botVersion
- The version of the bot.
$sel:botName:PutBotAlias'
, putBotAlias_botName
- The name of the bot.
Request Lenses
putBotAlias_checksum :: 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.
putBotAlias_conversationLogs :: Lens' PutBotAlias (Maybe ConversationLogsRequest) Source #
Settings for conversation logs for the alias.
putBotAlias_description :: Lens' PutBotAlias (Maybe Text) Source #
A description of the alias.
putBotAlias_tags :: Lens' PutBotAlias (Maybe [Tag]) Source #
A list of tags to add to the bot alias. You can only add tags when you
create an alias, you can't use the PutBotAlias
operation to update
the tags on a bot alias. To update tags, use the TagResource
operation.
putBotAlias_name :: Lens' PutBotAlias Text Source #
The name of the alias. The name is not case sensitive.
putBotAlias_botVersion :: Lens' PutBotAlias Text Source #
The version of the bot.
putBotAlias_botName :: Lens' PutBotAlias Text Source #
The name of the bot.
Destructuring the Response
data PutBotAliasResponse Source #
See: newPutBotAliasResponse
smart constructor.
PutBotAliasResponse' | |
|
Instances
newPutBotAliasResponse Source #
Create a value of PutBotAliasResponse
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:checksum:PutBotAlias'
, putBotAliasResponse_checksum
- The checksum for the current version of the alias.
$sel:botVersion:PutBotAlias'
, putBotAliasResponse_botVersion
- The version of the bot that the alias points to.
$sel:botName:PutBotAlias'
, putBotAliasResponse_botName
- The name of the bot that the alias points to.
$sel:createdDate:PutBotAliasResponse'
, putBotAliasResponse_createdDate
- The date that the bot alias was created.
$sel:name:PutBotAlias'
, putBotAliasResponse_name
- The name of the alias.
$sel:conversationLogs:PutBotAlias'
, putBotAliasResponse_conversationLogs
- The settings that determine how Amazon Lex uses conversation logs for
the alias.
$sel:lastUpdatedDate:PutBotAliasResponse'
, putBotAliasResponse_lastUpdatedDate
- The date that the bot alias was updated. When you create a resource, the
creation date and the last updated date are the same.
$sel:description:PutBotAlias'
, putBotAliasResponse_description
- A description of the alias.
$sel:tags:PutBotAlias'
, putBotAliasResponse_tags
- A list of tags associated with a bot.
$sel:httpStatus:PutBotAliasResponse'
, putBotAliasResponse_httpStatus
- The response's http status code.
Response Lenses
putBotAliasResponse_checksum :: Lens' PutBotAliasResponse (Maybe Text) Source #
The checksum for the current version of the alias.
putBotAliasResponse_botVersion :: Lens' PutBotAliasResponse (Maybe Text) Source #
The version of the bot that the alias points to.
putBotAliasResponse_botName :: Lens' PutBotAliasResponse (Maybe Text) Source #
The name of the bot that the alias points to.
putBotAliasResponse_createdDate :: Lens' PutBotAliasResponse (Maybe UTCTime) Source #
The date that the bot alias was created.
putBotAliasResponse_name :: Lens' PutBotAliasResponse (Maybe Text) Source #
The name of the alias.
putBotAliasResponse_conversationLogs :: Lens' PutBotAliasResponse (Maybe ConversationLogsResponse) Source #
The settings that determine how Amazon Lex uses conversation logs for the alias.
putBotAliasResponse_lastUpdatedDate :: 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.
putBotAliasResponse_description :: Lens' PutBotAliasResponse (Maybe Text) Source #
A description of the alias.
putBotAliasResponse_tags :: Lens' PutBotAliasResponse (Maybe [Tag]) Source #
A list of tags associated with a bot.
putBotAliasResponse_httpStatus :: Lens' PutBotAliasResponse Int Source #
The response's http status code.