associate_discovered_resource
async
¶
associate_discovered_resource(
progress_update_stream: ProgressUpdateStream,
migration_task_name: MigrationTaskName,
discovered_resource: DiscoveredResource,
*,
config_overrides: Optional[AsyncMigrationHubClientConfig] = None,
dry_run: Optional[DryRun] = None,
) -> AssociateDiscoveredResourceResult
Associates a discovered resource ID from Application Discovery Service with a migration task.
Parameters:
-
progress_update_stream(ProgressUpdateStream) –The name of the ProgressUpdateStream.
-
migration_task_name(MigrationTaskName) –The identifier given to the MigrationTask. Do not store personal data in this field.
-
discovered_resource(DiscoveredResource) –Object representing a Resource.
-
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.