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 |
Notifies Migration Hub of the current status, progress, or other detail regarding a migration task. This API has the following traits:
- Migration tools will call the
NotifyMigrationTaskState
API to share the latest progress and status. MigrationTaskName
is used for addressing updates to the correct target.ProgressUpdateStream
is used for access control and to provide a namespace for each migration tool.
Synopsis
- data NotifyMigrationTaskState = NotifyMigrationTaskState' {}
- newNotifyMigrationTaskState :: Text -> Text -> Task -> UTCTime -> Natural -> NotifyMigrationTaskState
- notifyMigrationTaskState_dryRun :: Lens' NotifyMigrationTaskState (Maybe Bool)
- notifyMigrationTaskState_progressUpdateStream :: Lens' NotifyMigrationTaskState Text
- notifyMigrationTaskState_migrationTaskName :: Lens' NotifyMigrationTaskState Text
- notifyMigrationTaskState_task :: Lens' NotifyMigrationTaskState Task
- notifyMigrationTaskState_updateDateTime :: Lens' NotifyMigrationTaskState UTCTime
- notifyMigrationTaskState_nextUpdateSeconds :: Lens' NotifyMigrationTaskState Natural
- data NotifyMigrationTaskStateResponse = NotifyMigrationTaskStateResponse' {
- httpStatus :: Int
- newNotifyMigrationTaskStateResponse :: Int -> NotifyMigrationTaskStateResponse
- notifyMigrationTaskStateResponse_httpStatus :: Lens' NotifyMigrationTaskStateResponse Int
Creating a Request
data NotifyMigrationTaskState Source #
See: newNotifyMigrationTaskState
smart constructor.
NotifyMigrationTaskState' | |
|
Instances
newNotifyMigrationTaskState Source #
Create a value of NotifyMigrationTaskState
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:NotifyMigrationTaskState'
, notifyMigrationTaskState_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:NotifyMigrationTaskState'
, notifyMigrationTaskState_progressUpdateStream
- The name of the ProgressUpdateStream.
$sel:migrationTaskName:NotifyMigrationTaskState'
, notifyMigrationTaskState_migrationTaskName
- Unique identifier that references the migration task. /Do not store
personal data in this field./
$sel:task:NotifyMigrationTaskState'
, notifyMigrationTaskState_task
- Information about the task's progress and status.
$sel:updateDateTime:NotifyMigrationTaskState'
, notifyMigrationTaskState_updateDateTime
- The timestamp when the task was gathered.
$sel:nextUpdateSeconds:NotifyMigrationTaskState'
, notifyMigrationTaskState_nextUpdateSeconds
- Number of seconds after the UpdateDateTime within which the Migration
Hub can expect an update. If Migration Hub does not receive an update
within the specified interval, then the migration task will be
considered stale.
Request Lenses
notifyMigrationTaskState_dryRun :: Lens' NotifyMigrationTaskState (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.
notifyMigrationTaskState_progressUpdateStream :: Lens' NotifyMigrationTaskState Text Source #
The name of the ProgressUpdateStream.
notifyMigrationTaskState_migrationTaskName :: Lens' NotifyMigrationTaskState Text Source #
Unique identifier that references the migration task. /Do not store personal data in this field./
notifyMigrationTaskState_task :: Lens' NotifyMigrationTaskState Task Source #
Information about the task's progress and status.
notifyMigrationTaskState_updateDateTime :: Lens' NotifyMigrationTaskState UTCTime Source #
The timestamp when the task was gathered.
notifyMigrationTaskState_nextUpdateSeconds :: Lens' NotifyMigrationTaskState Natural Source #
Number of seconds after the UpdateDateTime within which the Migration Hub can expect an update. If Migration Hub does not receive an update within the specified interval, then the migration task will be considered stale.
Destructuring the Response
data NotifyMigrationTaskStateResponse Source #
See: newNotifyMigrationTaskStateResponse
smart constructor.
NotifyMigrationTaskStateResponse' | |
|
Instances
Eq NotifyMigrationTaskStateResponse Source # | |
Read NotifyMigrationTaskStateResponse Source # | |
Show NotifyMigrationTaskStateResponse Source # | |
Generic NotifyMigrationTaskStateResponse Source # | |
NFData NotifyMigrationTaskStateResponse Source # | |
Defined in Amazonka.MigrationHub.NotifyMigrationTaskState rnf :: NotifyMigrationTaskStateResponse -> () # | |
type Rep NotifyMigrationTaskStateResponse Source # | |
Defined in Amazonka.MigrationHub.NotifyMigrationTaskState type Rep NotifyMigrationTaskStateResponse = D1 ('MetaData "NotifyMigrationTaskStateResponse" "Amazonka.MigrationHub.NotifyMigrationTaskState" "libZSservicesZSamazonka-migrationhubZSamazonka-migrationhub" 'False) (C1 ('MetaCons "NotifyMigrationTaskStateResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newNotifyMigrationTaskStateResponse Source #
Create a value of NotifyMigrationTaskStateResponse
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:NotifyMigrationTaskStateResponse'
, notifyMigrationTaskStateResponse_httpStatus
- The response's http status code.
Response Lenses
notifyMigrationTaskStateResponse_httpStatus :: Lens' NotifyMigrationTaskStateResponse Int Source #
The response's http status code.