start_migration
async
¶
start_migration(
v1_bot_name: BotName,
v1_bot_version: Version,
v2_bot_name: V2BotName,
v2_bot_role: IamRoleArn,
migration_strategy: MigrationStrategy,
*,
config_overrides: Optional[AsyncLexModelBuildingServiceClientConfig] = None,
) -> StartMigrationResponse
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.
Parameters:
-
v1_bot_name(BotName) –The name of the Amazon Lex V1 bot that you are migrating to Amazon Lex V2.
-
v1_bot_version(Version) –The version of the bot to migrate to Amazon Lex V2. You can migrate the
$LATESTversion as well as any numbered version. -
v2_bot_name(V2BotName) –The name of the Amazon Lex V2 bot that you are migrating the Amazon Lex V1 bot to.
-
If the Amazon Lex V2 bot doesn't exist, you must use the
CREATE_NEWmigration strategy. -
If the Amazon Lex V2 bot exists, you must use the
UPDATE_EXISTINGmigration strategy to change the contents of the Amazon Lex V2 bot.
-
-
v2_bot_role(IamRoleArn) –The IAM role that Amazon Lex uses to run the Amazon Lex V2 bot.
-
migration_strategy(MigrationStrategy) –The 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.
-
Raises:
-
AccessDeniedException–Your IAM user or role does not have permission to call the Amazon Lex V2 APIs required to migrate your bot.
-
BadRequestException–The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and try again.
-
InternalFailureException–An internal Amazon Lex error occurred. Try your request again.
-
LimitExceededException–The request exceeded a limit. Try your request again.
-
NotFoundException–The resource specified in the request was not found. Check the resource and try again.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_lex_model_building_service/_services/async_lex_model_building_service.py
3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 | |