| Copyright | (c) 2013-2023 Brendan Hay | 
|---|---|
| License | Mozilla Public License, v. 2.0. | 
| Maintainer | Brendan Hay | 
| Stability | auto-generated | 
| Portability | non-portable (GHC extensions) | 
| Safe Haskell | Safe-Inferred | 
| Language | Haskell2010 | 
Amazonka.LexModels.StartMigration
Description
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.
Synopsis
- data StartMigration = StartMigration' {}
 - newStartMigration :: Text -> Text -> Text -> Text -> MigrationStrategy -> StartMigration
 - startMigration_v1BotName :: Lens' StartMigration Text
 - startMigration_v1BotVersion :: Lens' StartMigration Text
 - startMigration_v2BotName :: Lens' StartMigration Text
 - startMigration_v2BotRole :: Lens' StartMigration Text
 - startMigration_migrationStrategy :: Lens' StartMigration MigrationStrategy
 - data StartMigrationResponse = StartMigrationResponse' {}
 - newStartMigrationResponse :: Int -> StartMigrationResponse
 - startMigrationResponse_migrationId :: Lens' StartMigrationResponse (Maybe Text)
 - startMigrationResponse_migrationStrategy :: Lens' StartMigrationResponse (Maybe MigrationStrategy)
 - startMigrationResponse_migrationTimestamp :: Lens' StartMigrationResponse (Maybe UTCTime)
 - startMigrationResponse_v1BotLocale :: Lens' StartMigrationResponse (Maybe Locale)
 - startMigrationResponse_v1BotName :: Lens' StartMigrationResponse (Maybe Text)
 - startMigrationResponse_v1BotVersion :: Lens' StartMigrationResponse (Maybe Text)
 - startMigrationResponse_v2BotId :: Lens' StartMigrationResponse (Maybe Text)
 - startMigrationResponse_v2BotRole :: Lens' StartMigrationResponse (Maybe Text)
 - startMigrationResponse_httpStatus :: Lens' StartMigrationResponse Int
 
Creating a Request
data StartMigration Source #
See: newStartMigration smart constructor.
Constructors
| StartMigration' | |
Fields 
  | |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> Text | |
| -> MigrationStrategy | |
| -> StartMigration | 
Create a value of StartMigration with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
StartMigration, startMigration_v1BotName - The name of the Amazon Lex V1 bot that you are migrating to Amazon Lex
 V2.
StartMigration, startMigration_v1BotVersion - The version of the bot to migrate to Amazon Lex V2. You can migrate the
 $LATEST version as well as any numbered version.
$sel:v2BotName:StartMigration', startMigration_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. 
StartMigration, startMigration_v2BotRole - The IAM role that Amazon Lex uses to run the Amazon Lex V2 bot.
StartMigration, startMigration_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.
Request Lenses
startMigration_v1BotName :: Lens' StartMigration Text Source #
The name of the Amazon Lex V1 bot that you are migrating to Amazon Lex V2.
startMigration_v1BotVersion :: Lens' StartMigration Text Source #
The version of the bot to migrate to Amazon Lex V2. You can migrate the
 $LATEST version as well as any numbered version.
startMigration_v2BotName :: Lens' StartMigration Text Source #
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. 
startMigration_v2BotRole :: Lens' StartMigration Text Source #
The IAM role that Amazon Lex uses to run the Amazon Lex V2 bot.
startMigration_migrationStrategy :: Lens' StartMigration MigrationStrategy Source #
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.
Destructuring the Response
data StartMigrationResponse Source #
See: newStartMigrationResponse smart constructor.
Constructors
| StartMigrationResponse' | |
Fields 
  | |
Instances
newStartMigrationResponse Source #
Create a value of StartMigrationResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
StartMigrationResponse, startMigrationResponse_migrationId - The unique identifier that Amazon Lex assigned to the migration.
StartMigration, startMigrationResponse_migrationStrategy - The strategy used to conduct the migration.
StartMigrationResponse, startMigrationResponse_migrationTimestamp - The date and time that the migration started.
StartMigrationResponse, startMigrationResponse_v1BotLocale - The locale used for the Amazon Lex V1 bot.
StartMigration, startMigrationResponse_v1BotName - The name of the Amazon Lex V1 bot that you are migrating to Amazon Lex
 V2.
StartMigration, startMigrationResponse_v1BotVersion - The version of the bot to migrate to Amazon Lex V2.
StartMigrationResponse, startMigrationResponse_v2BotId - The unique identifier for the Amazon Lex V2 bot.
StartMigration, startMigrationResponse_v2BotRole - The IAM role that Amazon Lex uses to run the Amazon Lex V2 bot.
$sel:httpStatus:StartMigrationResponse', startMigrationResponse_httpStatus - The response's http status code.
Response Lenses
startMigrationResponse_migrationId :: Lens' StartMigrationResponse (Maybe Text) Source #
The unique identifier that Amazon Lex assigned to the migration.
startMigrationResponse_migrationStrategy :: Lens' StartMigrationResponse (Maybe MigrationStrategy) Source #
The strategy used to conduct the migration.
startMigrationResponse_migrationTimestamp :: Lens' StartMigrationResponse (Maybe UTCTime) Source #
The date and time that the migration started.
startMigrationResponse_v1BotLocale :: Lens' StartMigrationResponse (Maybe Locale) Source #
The locale used for the Amazon Lex V1 bot.
startMigrationResponse_v1BotName :: Lens' StartMigrationResponse (Maybe Text) Source #
The name of the Amazon Lex V1 bot that you are migrating to Amazon Lex V2.
startMigrationResponse_v1BotVersion :: Lens' StartMigrationResponse (Maybe Text) Source #
The version of the bot to migrate to Amazon Lex V2.
startMigrationResponse_v2BotId :: Lens' StartMigrationResponse (Maybe Text) Source #
The unique identifier for the Amazon Lex V2 bot.
startMigrationResponse_v2BotRole :: Lens' StartMigrationResponse (Maybe Text) Source #
The IAM role that Amazon Lex uses to run the Amazon Lex V2 bot.
startMigrationResponse_httpStatus :: Lens' StartMigrationResponse Int Source #
The response's http status code.