Create Bot Version
lexmodelbuildingservice_create_bot_version | R Documentation |
Creates a new version of the bot based on the $LATEST version¶
Description¶
Creates a new version of the bot based on the $LATEST
version. If the
$LATEST
version of this resource hasn't changed since you created the
last version, Amazon Lex doesn't create a new version. It returns the
last created version.
You can update only the $LATEST
version of the bot. You can't update
the numbered versions that you create with the create_bot_version
operation.
When you create the first version of a bot, Amazon Lex sets the version to 1. Subsequent versions increment by 1. For more information, see versioning-intro.
This operation requires permission for the lex:CreateBotVersion
action.
Usage¶
Arguments¶
name
[required] The name of the bot that you want to create a new version of. The name is case sensitive.
checksum
Identifies a specific revision of the
$LATEST
version of the bot. If you specify a checksum and the$LATEST
version of the bot has a different checksum, aPreconditionFailedException
exception is returned and Amazon Lex doesn't publish a new version. If you don't specify a checksum, Amazon Lex publishes the$LATEST
version.
Value¶
A list with the following syntax:
list(
name = "string",
description = "string",
intents = list(
list(
intentName = "string",
intentVersion = "string"
)
),
clarificationPrompt = list(
messages = list(
list(
contentType = "PlainText"|"SSML"|"CustomPayload",
content = "string",
groupNumber = 123
)
),
maxAttempts = 123,
responseCard = "string"
),
abortStatement = list(
messages = list(
list(
contentType = "PlainText"|"SSML"|"CustomPayload",
content = "string",
groupNumber = 123
)
),
responseCard = "string"
),
status = "BUILDING"|"READY"|"READY_BASIC_TESTING"|"FAILED"|"NOT_BUILT",
failureReason = "string",
lastUpdatedDate = as.POSIXct(
"2015-01-01"
),
createdDate = as.POSIXct(
"2015-01-01"
),
idleSessionTTLInSeconds = 123,
voiceId = "string",
checksum = "string",
version = "string",
locale = "de-DE"|"en-AU"|"en-GB"|"en-IN"|"en-US"|"es-419"|"es-ES"|"es-US"|"fr-FR"|"fr-CA"|"it-IT"|"ja-JP"|"ko-KR",
childDirected = TRUE|FALSE,
enableModelImprovements = TRUE|FALSE,
detectSentiment = TRUE|FALSE
)