AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::Lex::BotVersion

CfnBotVersion

> Amazon Lex V2 is the only supported version in CloudFormation . Specifies 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 specify the first version of a bot, Amazon Lex sets the version to 1. Subsequent versions increment by 1.

Import

import { CfnBotVersion } from 'aws-cdk-lib/aws-lex';

Or use the module namespace:

import * as lex from 'aws-cdk-lib/aws-lex';
// lex.CfnBotVersion

Properties

Configuration passed to the constructor as CfnBotVersionProps.

botIdRequired
string | IBotRef

The unique identifier of the bot.

botVersionLocaleSpecificationRequired
IResolvable | IResolvable | BotVersionLocaleSpecificationProperty[]

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.

descriptionOptional
string

The description of the version.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter