start_replication_task_assessment_run
async
¶
start_replication_task_assessment_run(
replication_task_arn: String,
service_access_role_arn: String,
result_location_bucket: String,
assessment_run_name: String,
*,
config_overrides: Optional[AsyncDatabaseMigrationServiceClientConfig] = None,
result_location_folder: Optional[String] = None,
result_encryption_mode: Optional[String] = None,
result_kms_key_arn: Optional[String] = None,
include_only: Optional[IncludeTestList] = None,
exclude: Optional[ExcludeTestList] = None,
tags: Optional[TagList] = None,
) -> StartReplicationTaskAssessmentRunResponse
Starts a new premigration assessment run for one or more individual assessments of a migration task.
The assessments that you can specify depend on the source and target database engine and the migration type defined for the given task. To run this operation, your migration task must already be created. After you run this operation, you can review the status of each individual assessment. You can also run the migration task manually after the assessment run and its individual assessments complete.
Parameters:
-
replication_task_arn(String) –Amazon Resource Name (ARN) of the migration task associated with the premigration assessment run that you want to start.
-
service_access_role_arn(String) –ARN of the service role needed to start the assessment run. The role must allow the
iam:PassRoleaction. -
result_location_bucket(String) –Amazon S3 bucket where you want DMS to store the results of this assessment run.
-
result_location_folder(Optional[String], default:None) –Folder within an Amazon S3 bucket where you want DMS to store the results of this assessment run.
-
result_encryption_mode(Optional[String], default:None) –Encryption mode that you can specify to encrypt the results of this assessment run. If you don't specify this request parameter, DMS stores the assessment run results without encryption. You can specify one of the options following:
-
"SSE_S3"– The server-side encryption provided as a default by Amazon S3. -
"SSE_KMS"– Key Management Service (KMS) encryption. This encryption can use either a custom KMS encryption key that you specify or the default KMS encryption key that DMS provides.
-
-
result_kms_key_arn(Optional[String], default:None) –ARN of a custom KMS encryption key that you specify when you set
ResultEncryptionModeto"SSE_KMS". -
assessment_run_name(String) –Unique name to identify the assessment run.
-
include_only(Optional[IncludeTestList], default:None) –Space-separated list of names for specific individual assessments that you want to include. These names come from the default list of individual assessments that DMS supports for the associated migration task. This task is specified by
ReplicationTaskArn.You can't set a value for
IncludeOnlyif you also set a value forExcludein the API operation.To identify the names of the default individual assessments that DMS supports for the associated migration task, run the
DescribeApplicableIndividualAssessmentsoperation using its ownReplicationTaskArnrequest parameter. -
exclude(Optional[ExcludeTestList], default:None) –Space-separated list of names for specific individual assessments that you want to exclude. These names come from the default list of individual assessments that DMS supports for the associated migration task. This task is specified by
ReplicationTaskArn.You can't set a value for
Excludeif you also set a value forIncludeOnlyin the API operation.To identify the names of the default individual assessments that DMS supports for the associated migration task, run the
DescribeApplicableIndividualAssessmentsoperation using its ownReplicationTaskArnrequest parameter. -
tags(Optional[TagList], default:None) –One or more tags to be assigned to the premigration assessment run that you want to start.
Raises:
-
AccessDeniedFault–DMS was denied access to the endpoint. Check that the role is correctly configured.
-
InvalidResourceStateFault–The resource is in a state that prevents it from being used for database migration.
-
KMSAccessDeniedFault–The ciphertext references a key that doesn't exist or that the DMS account doesn't have access to.
-
KMSDisabledFault–The specified KMS key isn't enabled.
-
KMSFault–An Key Management Service (KMS) error is preventing access to KMS.
-
KMSInvalidStateFault–The state of the specified KMS resource isn't valid for this request.
-
KMSKeyNotAccessibleFault–DMS cannot access the KMS key.
-
KMSNotFoundFault–The specified KMS entity or resource can't be found.
-
ResourceAlreadyExistsFault–The resource you are attempting to create already exists.
-
ResourceNotFoundFault–The resource could not be found.
-
S3AccessDeniedFault–Insufficient privileges are preventing access to an Amazon S3 object.
-
S3ResourceNotFoundFault–A specified Amazon S3 bucket, bucket folder, or other object can't be found.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_database_migration_service/_services/async_database_migration_service.py
9587 9588 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598 9599 9600 9601 9602 9603 9604 9605 9606 9607 9608 9609 9610 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623 9624 9625 9626 9627 9628 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647 9648 9649 9650 9651 9652 9653 9654 9655 9656 9657 9658 9659 9660 9661 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 | |