libZSservicesZSamazonka-lex-modelsZSamazonka-lex-models
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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

Creating a Request

data StartMigration Source #

See: newStartMigration smart constructor.

Constructors

StartMigration' 

Fields

  • v1BotName :: Text

    The name of the Amazon Lex V1 bot that you are migrating to Amazon Lex V2.

  • v1BotVersion :: Text

    The version of the bot to migrate to Amazon Lex V2. You can migrate the $LATEST version as well as any numbered version.

  • v2BotName :: Text

    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_NEW migration strategy.
    • If the Amazon Lex V2 bot exists, you must use the UPDATE_EXISTING migration strategy to change the contents of the Amazon Lex V2 bot.
  • v2BotRole :: Text

    The IAM role that Amazon Lex uses to run the Amazon Lex V2 bot.

  • migrationStrategy :: 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.

Instances

Instances details
Eq StartMigration Source # 
Instance details

Defined in Amazonka.LexModels.StartMigration

Read StartMigration Source # 
Instance details

Defined in Amazonka.LexModels.StartMigration

Show StartMigration Source # 
Instance details

Defined in Amazonka.LexModels.StartMigration

Generic StartMigration Source # 
Instance details

Defined in Amazonka.LexModels.StartMigration

Associated Types

type Rep StartMigration :: Type -> Type #

NFData StartMigration Source # 
Instance details

Defined in Amazonka.LexModels.StartMigration

Methods

rnf :: StartMigration -> () #

Hashable StartMigration Source # 
Instance details

Defined in Amazonka.LexModels.StartMigration

ToJSON StartMigration Source # 
Instance details

Defined in Amazonka.LexModels.StartMigration

AWSRequest StartMigration Source # 
Instance details

Defined in Amazonka.LexModels.StartMigration

Associated Types

type AWSResponse StartMigration #

ToHeaders StartMigration Source # 
Instance details

Defined in Amazonka.LexModels.StartMigration

ToPath StartMigration Source # 
Instance details

Defined in Amazonka.LexModels.StartMigration

ToQuery StartMigration Source # 
Instance details

Defined in Amazonka.LexModels.StartMigration

type Rep StartMigration Source # 
Instance details

Defined in Amazonka.LexModels.StartMigration

type Rep StartMigration = D1 ('MetaData "StartMigration" "Amazonka.LexModels.StartMigration" "libZSservicesZSamazonka-lex-modelsZSamazonka-lex-models" 'False) (C1 ('MetaCons "StartMigration'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "v1BotName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "v1BotVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "v2BotName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "v2BotRole") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "migrationStrategy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 MigrationStrategy)))))
type AWSResponse StartMigration Source # 
Instance details

Defined in Amazonka.LexModels.StartMigration

newStartMigration Source #

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:

$sel:v1BotName:StartMigration', startMigration_v1BotName - The name of the Amazon Lex V1 bot that you are migrating to Amazon Lex V2.

$sel:v1BotVersion: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_NEW migration strategy.
  • If the Amazon Lex V2 bot exists, you must use the UPDATE_EXISTING migration strategy to change the contents of the Amazon Lex V2 bot.

$sel:v2BotRole:StartMigration', startMigration_v2BotRole - The IAM role that Amazon Lex uses to run the Amazon Lex V2 bot.

$sel:migrationStrategy: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_NEW migration strategy.
  • If the Amazon Lex V2 bot exists, you must use the UPDATE_EXISTING migration 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

Instances details
Eq StartMigrationResponse Source # 
Instance details

Defined in Amazonka.LexModels.StartMigration

Read StartMigrationResponse Source # 
Instance details

Defined in Amazonka.LexModels.StartMigration

Show StartMigrationResponse Source # 
Instance details

Defined in Amazonka.LexModels.StartMigration

Generic StartMigrationResponse Source # 
Instance details

Defined in Amazonka.LexModels.StartMigration

Associated Types

type Rep StartMigrationResponse :: Type -> Type #

NFData StartMigrationResponse Source # 
Instance details

Defined in Amazonka.LexModels.StartMigration

Methods

rnf :: StartMigrationResponse -> () #

type Rep StartMigrationResponse Source # 
Instance details

Defined in Amazonka.LexModels.StartMigration

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:

$sel:v1BotVersion:StartMigration', startMigrationResponse_v1BotVersion - The version of the bot to migrate to Amazon Lex V2.

$sel:migrationStrategy:StartMigration', startMigrationResponse_migrationStrategy - The strategy used to conduct the migration.

$sel:migrationTimestamp:StartMigrationResponse', startMigrationResponse_migrationTimestamp - The date and time that the migration started.

$sel:v2BotId:StartMigrationResponse', startMigrationResponse_v2BotId - The unique identifier for the Amazon Lex V2 bot.

$sel:v1BotLocale:StartMigrationResponse', startMigrationResponse_v1BotLocale - The locale used for the Amazon Lex V1 bot.

$sel:v1BotName:StartMigration', startMigrationResponse_v1BotName - The name of the Amazon Lex V1 bot that you are migrating to Amazon Lex V2.

$sel:v2BotRole:StartMigration', startMigrationResponse_v2BotRole - The IAM role that Amazon Lex uses to run the Amazon Lex V2 bot.

$sel:migrationId:StartMigrationResponse', startMigrationResponse_migrationId - The unique identifier that Amazon Lex assigned to the migration.

$sel:httpStatus:StartMigrationResponse', startMigrationResponse_httpStatus - The response's http status code.

Response Lenses

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_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_v2BotRole :: Lens' StartMigrationResponse (Maybe Text) Source #

The IAM role that Amazon Lex uses to run the Amazon Lex V2 bot.

startMigrationResponse_migrationId :: Lens' StartMigrationResponse (Maybe Text) Source #

The unique identifier that Amazon Lex assigned to the migration.