associate_created_artifact
async
¶
associate_created_artifact(
progress_update_stream: ProgressUpdateStream,
migration_task_name: MigrationTaskName,
created_artifact: CreatedArtifact,
*,
config_overrides: Optional[AsyncMigrationHubClientConfig] = None,
dry_run: Optional[DryRun] = None,
) -> AssociateCreatedArtifactResult
Associates a created artifact of an AWS cloud resource, the target receiving the migration, with the migration task performed by a migration tool. This API has the following traits:
-
Migration tools can call the
AssociateCreatedArtifactoperation to indicate which AWS artifact is associated with a migration task. -
The created artifact name must be provided in ARN (Amazon Resource Name) format which will contain information about type and region; for example:
arn:aws:ec2:us-east-1:488216288981:image/ami-6d0ba87b. -
Examples of the AWS resource behind the created artifact are, AMI's, EC2 instance, or DMS endpoint, etc.
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.
-
created_artifact(CreatedArtifact) –An ARN of the AWS resource related to the migration (e.g., AMI, EC2 instance, RDS instance, etc.)
-
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.