Put Bot Alias
lexmodelbuildingservice_put_bot_alias | R Documentation |
Creates an alias for the specified version of the bot or replaces an alias for the specified bot¶
Description¶
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.
Usage¶
lexmodelbuildingservice_put_bot_alias(name, description, botVersion,
botName, checksum, conversationLogs, tags)
Arguments¶
name
[required] The name of the alias. The name is not case sensitive.
description
A description of the alias.
botVersion
[required] The version of the bot.
botName
[required] The name of the bot.
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 aBadRequestException
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 thechecksum
field, or if the checksum does not match the$LATEST
version, you get aPreconditionFailedException
exception.conversationLogs
Settings for conversation logs for the alias.
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
put_bot_alias
operation to update the tags on a bot alias. To update tags, use thetag_resource
operation.
Value¶
A list with the following syntax:
list(
name = "string",
description = "string",
botVersion = "string",
botName = "string",
lastUpdatedDate = as.POSIXct(
"2015-01-01"
),
createdDate = as.POSIXct(
"2015-01-01"
),
checksum = "string",
conversationLogs = list(
logSettings = list(
list(
logType = "AUDIO"|"TEXT",
destination = "CLOUDWATCH_LOGS"|"S3",
kmsKeyArn = "string",
resourceArn = "string",
resourcePrefix = "string"
)
),
iamRoleArn = "string"
),
tags = list(
list(
key = "string",
value = "string"
)
)
)
Request syntax¶
svc$put_bot_alias(
name = "string",
description = "string",
botVersion = "string",
botName = "string",
checksum = "string",
conversationLogs = list(
logSettings = list(
list(
logType = "AUDIO"|"TEXT",
destination = "CLOUDWATCH_LOGS"|"S3",
kmsKeyArn = "string",
resourceArn = "string"
)
),
iamRoleArn = "string"
),
tags = list(
list(
key = "string",
value = "string"
)
)
)