associate_source_resource
async
¶
associate_source_resource(
progress_update_stream: ProgressUpdateStream,
migration_task_name: MigrationTaskName,
source_resource: SourceResource,
*,
config_overrides: Optional[AsyncMigrationHubClientConfig] = None,
dry_run: Optional[DryRun] = None,
) -> AssociateSourceResourceResult
Associates a source resource with a migration task. For example, the source resource can be a source server, an application, or a migration wave.
Parameters:
-
progress_update_stream(ProgressUpdateStream) –The name of the progress-update stream, which is used for access control as well as a namespace for migration-task names that is implicitly linked to your AWS account. The progress-update stream must uniquely identify the migration tool as it is used for all updates made by the tool; however, it does not need to be unique for each AWS account because it is scoped to the AWS account.
-
migration_task_name(MigrationTaskName) –A unique identifier that references the migration task. Do not include sensitive data in this field.
-
source_resource(SourceResource) –The source resource that you want to associate.
-
dry_run(Optional[DryRun], default:None) –This is an optional parameter that you can use to test whether the call will succeed. Set this parameter to
trueto verify that you have the permissions that are required to make the call, and that you have specified the other parameters in the call correctly.
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". -
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.