BotVersion
Source:
src/AWS/LexV2/BotVersion.ts
An immutable numbered version of an Amazon Lex V2 bot, snapshot from the
DRAFT version. The provider builds each included locale first (if needed),
so the version is immediately usable behind a BotAlias.
Versions are immutable: any prop change replaces the resource with a newly created version.
Creating a Version
Section titled “Creating a Version”import * as AWS from "alchemy/AWS";
const version = yield* AWS.LexV2.BotVersion("V1", { botId: intent.botId, // depend on the intent so the build includes it localeIds: [intent.localeId],});const alias = yield* AWS.LexV2.BotAlias("Live", { botId: version.botId, botVersion: version.botVersion,});