LexModelBuildingService.Client.
get_migrations
(**kwargs)¶Gets a list of migrations between Amazon Lex V1 and Amazon Lex V2.
See also: AWS API Documentation
Request Syntax
response = client.get_migrations(
sortByAttribute='V1_BOT_NAME'|'MIGRATION_DATE_TIME',
sortByOrder='ASCENDING'|'DESCENDING',
v1BotNameContains='string',
migrationStatusEquals='IN_PROGRESS'|'COMPLETED'|'FAILED',
maxResults=123,
nextToken='string'
)
dict
Response Syntax
{
'migrationSummaries': [
{
'migrationId': 'string',
'v1BotName': 'string',
'v1BotVersion': 'string',
'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',
'v2BotId': 'string',
'v2BotRole': 'string',
'migrationStatus': 'IN_PROGRESS'|'COMPLETED'|'FAILED',
'migrationStrategy': 'CREATE_NEW'|'UPDATE_EXISTING',
'migrationTimestamp': datetime(2015, 1, 1)
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
migrationSummaries (list) --
An array of summaries for migrations from Amazon Lex V1 to Amazon Lex V2. To see details of the migration, use the migrationId
from the summary in a call to the operation.
(dict) --
Provides information about migrating a bot from Amazon Lex V1 to Amazon Lex V2.
migrationId (string) --
The unique identifier that Amazon Lex assigned to the migration.
v1BotName (string) --
The name of the Amazon Lex V1 bot that is the source of the migration.
v1BotVersion (string) --
The version of the Amazon Lex V1 bot that is the source of the migration.
v1BotLocale (string) --
The locale of the Amazon Lex V1 bot that is the source of the migration.
v2BotId (string) --
The unique identifier of the Amazon Lex V2 that is the destination of the migration.
v2BotRole (string) --
The IAM role that Amazon Lex uses to run the Amazon Lex V2 bot.
migrationStatus (string) --
The status of the operation. When the status is COMPLETE
the bot is available in Amazon Lex V2. There may be alerts and warnings that need to be resolved to complete the migration.
migrationStrategy (string) --
The strategy used to conduct the migration.
migrationTimestamp (datetime) --
The date and time that the migration started.
nextToken (string) --
If the response is truncated, it includes a pagination token that you can specify in your next request to fetch the next page of migrations.
Exceptions
LexModelBuildingService.Client.exceptions.LimitExceededException
LexModelBuildingService.Client.exceptions.InternalFailureException
LexModelBuildingService.Client.exceptions.BadRequestException