v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1442228254.5 KB

Starts migrating a bot from Amazon Lex V1 to Amazon Lex V2. Migrate your bot when you want to take advantage of the new features of Amazon Lex V2.

For more information, see Migrating a bot in the Amazon Lex developer guide.

post/migrations

Request body

v1BotNamestring required

The name of the Amazon Lex V1 bot that you are migrating to Amazon Lex V2.

v1BotVersionstring required

The version of the bot to migrate to Amazon Lex V2. You can migrate the <code>$LATEST</code> version as well as any numbered version.

v2BotNamestring required
<p>The name of the Amazon Lex V2 bot that you are migrating the Amazon Lex V1 bot to. </p> <ul> <li> <p>If the Amazon Lex V2 bot doesn't exist, you must use the <code>CREATE_NEW</code> migration strategy.</p> </li> <li> <p>If the Amazon Lex V2 bot exists, you must use the <code>UPDATE_EXISTING</code> migration strategy to change the contents of the Amazon Lex V2 bot.</p> </li> </ul>
v2BotRolestring required

The IAM role that Amazon Lex uses to run the Amazon Lex V2 bot.

migrationStrategy'CREATE_NEW' | 'UPDATE_EXISTING' required
<p>The strategy used to conduct the migration.</p> <ul> <li> <p> <code>CREATE_NEW</code> - Creates a new Amazon Lex V2 bot and migrates the Amazon Lex V1 bot to the new bot.</p> </li> <li> <p> <code>UPDATE_EXISTING</code> - Overwrites the existing Amazon Lex V2 bot metadata and the locale being migrated. It doesn't change any other locales in the Amazon Lex V2 bot. If the locale doesn't exist, a new locale is created in the Amazon Lex V2 bot.</p> </li> </ul>

Response

Success

v1BotNamestring

The name of the Amazon Lex V1 bot that you are migrating to Amazon Lex V2.

v1BotVersionstring

The version of the bot to migrate to Amazon Lex V2.

v1BotLocale'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'

The locale used for the Amazon Lex V1 bot.

v2BotIdstring

The unique identifier for the Amazon Lex V2 bot.

v2BotRolestring

The IAM role that Amazon Lex uses to run the Amazon Lex V2 bot.

migrationIdstring

The unique identifier that Amazon Lex assigned to the migration.

migrationStrategy'CREATE_NEW' | 'UPDATE_EXISTING'

The strategy used to conduct the migration.

migrationTimestampstring date-time

The date and time that the migration started.