notify_application_state
¶
notify_application_state(
application_id: ApplicationId,
status: ApplicationStatus,
*,
config_overrides: Optional[MigrationHubClientConfig] = None,
update_date_time: Optional[UpdateDateTime] = None,
dry_run: Optional[DryRun] = None,
) -> NotifyApplicationStateResult
Sets the migration state of an application. For a given application identified by the value passed to ApplicationId, its status is set or updated by passing one of three values to Status: NOT_STARTED | IN_PROGRESS | COMPLETED.
Parameters:
-
application_id(ApplicationId) –The configurationId in Application Discovery Service that uniquely identifies the grouped application.
-
status(ApplicationStatus) –Status of the application - Not Started, In-Progress, Complete.
-
update_date_time(Optional[UpdateDateTime], default:None) –The timestamp when the application state changed.
-
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.
-
PolicyErrorException–Exception raised when there are problems accessing Application Discovery Service (Application Discovery Service); most likely due to a misconfigured policy or the
migrationhub-discoveryrole is missing or not configured correctly. -
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
1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 | |