Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Registers a new migration task which represents a server, database, etc., being migrated to AWS by a migration tool.
This API is a prerequisite to calling the NotifyMigrationTaskState
API
as the migration tool must first register the migration task with
Migration Hub.
Synopsis
- data ImportMigrationTask = ImportMigrationTask' {}
- newImportMigrationTask :: Text -> Text -> ImportMigrationTask
- importMigrationTask_dryRun :: Lens' ImportMigrationTask (Maybe Bool)
- importMigrationTask_progressUpdateStream :: Lens' ImportMigrationTask Text
- importMigrationTask_migrationTaskName :: Lens' ImportMigrationTask Text
- data ImportMigrationTaskResponse = ImportMigrationTaskResponse' {
- httpStatus :: Int
- newImportMigrationTaskResponse :: Int -> ImportMigrationTaskResponse
- importMigrationTaskResponse_httpStatus :: Lens' ImportMigrationTaskResponse Int
Creating a Request
data ImportMigrationTask Source #
See: newImportMigrationTask
smart constructor.
ImportMigrationTask' | |
|
Instances
newImportMigrationTask Source #
:: Text | |
-> Text | |
-> ImportMigrationTask |
Create a value of ImportMigrationTask
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:dryRun:ImportMigrationTask'
, importMigrationTask_dryRun
- Optional boolean flag to indicate whether any effect should take place.
Used to test if the caller has permission to make the call.
$sel:progressUpdateStream:ImportMigrationTask'
, importMigrationTask_progressUpdateStream
- The name of the ProgressUpdateStream. >
$sel:migrationTaskName:ImportMigrationTask'
, importMigrationTask_migrationTaskName
- Unique identifier that references the migration task. /Do not store
personal data in this field./
Request Lenses
importMigrationTask_dryRun :: Lens' ImportMigrationTask (Maybe Bool) Source #
Optional boolean flag to indicate whether any effect should take place. Used to test if the caller has permission to make the call.
importMigrationTask_progressUpdateStream :: Lens' ImportMigrationTask Text Source #
The name of the ProgressUpdateStream. >
importMigrationTask_migrationTaskName :: Lens' ImportMigrationTask Text Source #
Unique identifier that references the migration task. /Do not store personal data in this field./
Destructuring the Response
data ImportMigrationTaskResponse Source #
See: newImportMigrationTaskResponse
smart constructor.
ImportMigrationTaskResponse' | |
|
Instances
newImportMigrationTaskResponse Source #
Create a value of ImportMigrationTaskResponse
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:httpStatus:ImportMigrationTaskResponse'
, importMigrationTaskResponse_httpStatus
- The response's http status code.
Response Lenses
importMigrationTaskResponse_httpStatus :: Lens' ImportMigrationTaskResponse Int Source #
The response's http status code.