| 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.GetMigration
Description
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.
Synopsis
- data GetMigration = GetMigration' {
- migrationId :: Text
 
 - newGetMigration :: Text -> GetMigration
 - getMigration_migrationId :: Lens' GetMigration Text
 - data GetMigrationResponse = GetMigrationResponse' {
- alerts :: Maybe [MigrationAlert]
 - migrationId :: Maybe Text
 - migrationStatus :: Maybe MigrationStatus
 - migrationStrategy :: Maybe MigrationStrategy
 - migrationTimestamp :: Maybe POSIX
 - v1BotLocale :: Maybe Locale
 - v1BotName :: Maybe Text
 - v1BotVersion :: Maybe Text
 - v2BotId :: Maybe Text
 - v2BotRole :: Maybe Text
 - httpStatus :: Int
 
 - newGetMigrationResponse :: Int -> GetMigrationResponse
 - getMigrationResponse_alerts :: Lens' GetMigrationResponse (Maybe [MigrationAlert])
 - getMigrationResponse_migrationId :: Lens' GetMigrationResponse (Maybe Text)
 - getMigrationResponse_migrationStatus :: Lens' GetMigrationResponse (Maybe MigrationStatus)
 - getMigrationResponse_migrationStrategy :: Lens' GetMigrationResponse (Maybe MigrationStrategy)
 - getMigrationResponse_migrationTimestamp :: Lens' GetMigrationResponse (Maybe UTCTime)
 - getMigrationResponse_v1BotLocale :: Lens' GetMigrationResponse (Maybe Locale)
 - getMigrationResponse_v1BotName :: Lens' GetMigrationResponse (Maybe Text)
 - getMigrationResponse_v1BotVersion :: Lens' GetMigrationResponse (Maybe Text)
 - getMigrationResponse_v2BotId :: Lens' GetMigrationResponse (Maybe Text)
 - getMigrationResponse_v2BotRole :: Lens' GetMigrationResponse (Maybe Text)
 - getMigrationResponse_httpStatus :: Lens' GetMigrationResponse Int
 
Creating a Request
data GetMigration Source #
See: newGetMigration smart constructor.
Constructors
| GetMigration' | |
Fields 
  | |
Instances
Arguments
| :: Text | |
| -> GetMigration | 
Create a value of GetMigration 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:
GetMigration, getMigration_migrationId - The unique identifier of the migration to view. The migrationID is
 returned by the operation.
Request Lenses
getMigration_migrationId :: Lens' GetMigration Text Source #
The unique identifier of the migration to view. The migrationID is
 returned by the operation.
Destructuring the Response
data GetMigrationResponse Source #
See: newGetMigrationResponse smart constructor.
Constructors
| GetMigrationResponse' | |
Fields 
  | |
Instances
newGetMigrationResponse Source #
Arguments
| :: Int | |
| -> GetMigrationResponse | 
Create a value of GetMigrationResponse 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:
$sel:alerts:GetMigrationResponse', getMigrationResponse_alerts - A 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.
GetMigration, getMigrationResponse_migrationId - The unique identifier of the migration. This is the same as the
 identifier used when calling the GetMigration operation.
GetMigrationResponse, getMigrationResponse_migrationStatus - Indicates 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.
GetMigrationResponse, getMigrationResponse_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.
GetMigrationResponse, getMigrationResponse_migrationTimestamp - The date and time that the migration started.
GetMigrationResponse, getMigrationResponse_v1BotLocale - The locale of the Amazon Lex V1 bot migrated to Amazon Lex V2.
GetMigrationResponse, getMigrationResponse_v1BotName - The name of the Amazon Lex V1 bot migrated to Amazon Lex V2.
GetMigrationResponse, getMigrationResponse_v1BotVersion - The version of the Amazon Lex V1 bot migrated to Amazon Lex V2.
GetMigrationResponse, getMigrationResponse_v2BotId - The unique identifier of the Amazon Lex V2 bot that the Amazon Lex V1 is
 being migrated to.
GetMigrationResponse, getMigrationResponse_v2BotRole - The IAM role that Amazon Lex uses to run the Amazon Lex V2 bot.
$sel:httpStatus:GetMigrationResponse', getMigrationResponse_httpStatus - The response's http status code.
Response Lenses
getMigrationResponse_alerts :: Lens' GetMigrationResponse (Maybe [MigrationAlert]) Source #
A 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.
getMigrationResponse_migrationId :: Lens' GetMigrationResponse (Maybe Text) Source #
The unique identifier of the migration. This is the same as the
 identifier used when calling the GetMigration operation.
getMigrationResponse_migrationStatus :: Lens' GetMigrationResponse (Maybe MigrationStatus) Source #
Indicates 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.
getMigrationResponse_migrationStrategy :: Lens' GetMigrationResponse (Maybe 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.
getMigrationResponse_migrationTimestamp :: Lens' GetMigrationResponse (Maybe UTCTime) Source #
The date and time that the migration started.
getMigrationResponse_v1BotLocale :: Lens' GetMigrationResponse (Maybe Locale) Source #
The locale of the Amazon Lex V1 bot migrated to Amazon Lex V2.
getMigrationResponse_v1BotName :: Lens' GetMigrationResponse (Maybe Text) Source #
The name of the Amazon Lex V1 bot migrated to Amazon Lex V2.
getMigrationResponse_v1BotVersion :: Lens' GetMigrationResponse (Maybe Text) Source #
The version of the Amazon Lex V1 bot migrated to Amazon Lex V2.
getMigrationResponse_v2BotId :: Lens' GetMigrationResponse (Maybe Text) Source #
The unique identifier of the Amazon Lex V2 bot that the Amazon Lex V1 is being migrated to.
getMigrationResponse_v2BotRole :: Lens' GetMigrationResponse (Maybe Text) Source #
The IAM role that Amazon Lex uses to run the Amazon Lex V2 bot.
getMigrationResponse_httpStatus :: Lens' GetMigrationResponse Int Source #
The response's http status code.