Skip to content

Create Bot Version

lexmodelsv2_create_bot_version R Documentation

Creates an immutable version of the bot

Description

Creates an immutable version of the bot. When you create the first version of a bot, Amazon Lex sets the version number to 1. Subsequent bot versions increase in an increment of 1. The version number will always represent the total number of versions created of the bot, not the current number of versions. If a bot version is deleted, that bot version number will not be reused.

Usage

lexmodelsv2_create_bot_version(botId, description,
  botVersionLocaleSpecification)

Arguments

botId

[required] The identifier of the bot to create the version for.

description

A description of the version. Use the description to help identify the version in lists.

botVersionLocaleSpecification

[required] Specifies the locales that Amazon Lex adds to this version. You can choose the Draft version or any other previously published version for each locale. When you specify a source version, the locale data is copied from the source version to the new version.

Value

A list with the following syntax:

list(
  botId = "string",
  description = "string",
  botVersion = "string",
  botVersionLocaleSpecification = list(
    list(
      sourceBotVersion = "string"
    )
  ),
  botStatus = "Creating"|"Available"|"Inactive"|"Deleting"|"Failed"|"Versioning"|"Importing"|"Updating",
  creationDateTime = as.POSIXct(
    "2015-01-01"
  )
)

Request syntax

svc$create_bot_version(
  botId = "string",
  description = "string",
  botVersionLocaleSpecification = list(
    list(
      sourceBotVersion = "string"
    )
  )
)