Skip to main content

migrations

Creates, updates, deletes, gets or lists a migrations resource.

Overview

Namemigrations
TypeResource
Idaws.lex_models.migrations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
alertsarrayA list of alerts and warnings that indicate issues with the migration for the Amazon Lex V1 bot to Amazon Lex V2. You receive a warning when an Amazon Lex V1 feature has a different implementation if Amazon Lex V2. For more information, see Migrating a bot in the Amazon Lex V2 developer guide.
migration_idstringThe unique identifier of the migration. This is the same as the identifier used when calling the GetMigration operation. (pattern: <code>^[0-9a-zA-Z]+$</code>)
migration_statusstringIndicates the status of the migration. When the status is COMPLETE the migration is finished and the bot is available in Amazon Lex V2. There may be alerts and warnings that need to be resolved to complete the migration. (IN_PROGRESS, COMPLETED, FAILED)
migration_strategystringThe strategy used to conduct the migration. CREATE_NEW - Creates a new Amazon Lex V2 bot and migrates the Amazon Lex V1 bot to the new bot. UPDATE_EXISTING - 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. (CREATE_NEW, UPDATE_EXISTING)
migration_timestampstring (date-time)The date and time that the migration started.
v_1_bot_localestringThe locale of the Amazon Lex V1 bot migrated to Amazon Lex V2. (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)
v_1_bot_namestringThe name of the Amazon Lex V1 bot migrated to Amazon Lex V2. (pattern: <code>^([A-Za-z]_?)+$</code>)
v_1_bot_versionstringThe version of the Amazon Lex V1 bot migrated to Amazon Lex V2. (pattern: <code>$LATEST|[0-9]+</code>)
v_2_bot_idstringThe unique identifier of the Amazon Lex V2 bot that the Amazon Lex V1 is being migrated to. (pattern: <code>^[0-9a-zA-Z]+$</code>)
v_2_bot_rolestringThe IAM role that Amazon Lex uses to run the Amazon Lex V2 bot. (pattern: <code>^arn:[\w-]+:iam::[\d]{12}:role/.+$</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_migrationselectmigration_id, regionProvides details about an ongoing or complete migration from an Amazon Lex V1 bot to an Amazon Lex V2 bot. Use this operation to view the migration alerts and warnings related to the migration.
get_migrationsselectregionsortByAttribute, sortByOrder, v1BotNameContains, migrationStatusEquals, maxResults, nextTokenGets a list of migrations between Amazon Lex V1 and Amazon Lex V2.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
migration_idstringThe unique identifier of the migration to view. The migrationID is returned by the operation.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of migrations to return in the response. The default is 10.
migrationStatusEqualsstringFilters the list to contain only migrations in the specified state.
nextTokenstringA pagination token that fetches the next page of migrations. If the response to this operation is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of migrations, specify the pagination token in the request.
sortByAttributestringThe field to sort the list of migrations by. You can sort by the Amazon Lex V1 bot name or the date and time that the migration was started.
sortByOrderstringThe order so sort the list.
v1BotNameContainsstringFilters the list to contain only bots whose name contains the specified string. The string is matched anywhere in bot name.

SELECT examples

Provides details about an ongoing or complete migration from an Amazon Lex V1 bot to an Amazon Lex V2 bot. Use this operation to view the migration alerts and warnings related to the migration.

SELECT
alerts,
migration_id,
migration_status,
migration_strategy,
migration_timestamp,
v_1_bot_locale,
v_1_bot_name,
v_1_bot_version,
v_2_bot_id,
v_2_bot_role
FROM aws.lex_models.migrations
WHERE migration_id = '{{ migration_id }}' -- required
AND region = '{{ region }}' -- required
;