[ aws . lexv2-models ]

create-bot-version

Description

Creates a new version of the bot based on the DRAFT version. If the DRAFT 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.

When you create the first version of a bot, Amazon Lex sets the version to 1. Subsequent versions increment by 1.

See also: AWS API Documentation

See ‘aws help’ for descriptions of global parameters.

Synopsis

  create-bot-version
--bot-id <value>
[--description <value>]
--bot-version-locale-specification <value>
[--cli-input-json | --cli-input-yaml]
[--generate-cli-skeleton <value>]

Options

--bot-id (string)

The identifier of the bot to create the version for.

--description (string)

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

--bot-version-locale-specification (map)

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.

key -> (string)

value -> (structure)

The version of a bot used for a bot locale.

sourceBotVersion -> (string)

The version of a bot used for a bot locale.

Shorthand Syntax:

KeyName1=sourceBotVersion=string,KeyName2=sourceBotVersion=string

JSON Syntax:

{"string": {
      "sourceBotVersion": "string"
    }
  ...}

--cli-input-json | --cli-input-yaml (string) Reads arguments from the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton. If other arguments are provided on the command line, those values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally. This may not be specified along with --cli-input-yaml.

--generate-cli-skeleton (string) Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value input, prints a sample input JSON that can be used as an argument for --cli-input-json. Similarly, if provided yaml-input it will print a sample input YAML that can be used with --cli-input-yaml. If provided with the value output, it validates the command inputs and returns a sample output JSON for that command. The generated JSON skeleton is not stable between versions of the AWS CLI and there are no backwards compatibility guarantees in the JSON skeleton generated.

See ‘aws help’ for descriptions of global parameters.

Output

botId -> (string)

The bot identifier specified in the request.

description -> (string)

The description of the version specified in the request.

botVersion -> (string)

The version number assigned to the version.

botVersionLocaleSpecification -> (map)

The source versions used for each locale in the new version.

key -> (string)

value -> (structure)

The version of a bot used for a bot locale.

sourceBotVersion -> (string)

The version of a bot used for a bot locale.

botStatus -> (string)

When you send a request to create or update a bot, Amazon Lex sets the status response element to Creating . After Amazon Lex builds the bot, it sets status to Available . If Amazon Lex can’t build the bot, it sets status to Failed .

creationDateTime -> (timestamp)

A timestamp of the date and time that the version was created.