notify_migration_task_state
¶
notify_migration_task_state(
progress_update_stream: ProgressUpdateStream,
migration_task_name: MigrationTaskName,
task: Task,
update_date_time: UpdateDateTime,
next_update_seconds: NextUpdateSeconds,
*,
config_overrides: Optional[MigrationHubClientConfig] = None,
dry_run: Optional[DryRun] = None,
) -> NotifyMigrationTaskStateResult
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
NotifyMigrationTaskStateAPI to share the latest progress and status. -
MigrationTaskNameis used for addressing updates to the correct target. -
ProgressUpdateStreamis used for access control and to provide a namespace for each migration tool.
Parameters:
-
progress_update_stream(ProgressUpdateStream) –The name of the ProgressUpdateStream.
-
migration_task_name(MigrationTaskName) –Unique identifier that references the migration task. Do not store personal data in this field.
-
task(Task) –Information about the task's progress and status.
-
update_date_time(UpdateDateTime) –The timestamp when the task was gathered.
-
next_update_seconds(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.
-
dry_run(Optional[DryRun], default:None) –Optional boolean flag to indicate whether any effect should take place. Used to test if the caller has permission to make the call.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
DryRunOperation–Exception raised to indicate a successfully authorized action when the
DryRunflag is set to "true". -
HomeRegionNotSetException–The home region is not set. Set the home region to continue.
-
InternalServerError–Exception raised when an internal, configuration, or dependency error is encountered.
-
InvalidInputException–Exception raised when the provided input violates a policy constraint or is entered in the wrong format or data type.
-
ResourceNotFoundException–Exception raised when the request references a resource (Application Discovery Service configuration, update stream, migration task, etc.) that does not exist in Application Discovery Service (Application Discovery Service) or in Migration Hub's repository.
-
ServiceUnavailableException–Exception raised when there is an internal, configuration, or dependency error encountered.
-
ThrottlingException–The request was denied due to request throttling.
-
UnauthorizedOperation–Exception raised to indicate a request was not authorized when the
DryRunflag is set to "true". -
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_migration_hub/_services/migration_hub.py
1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 | |