DeleteReplicationTaskAssessmentRun - Amazon Database Migration Service
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

DeleteReplicationTaskAssessmentRun

Deletes the record of a single premigration assessment run.

This operation removes all metadata that Amazon DMS maintains about this assessment run. However, the operation leaves untouched all information about this assessment run that is stored in your Amazon S3 bucket.

Request Syntax

{ "ReplicationTaskAssessmentRunArn": "string" }

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

The request accepts the following data in JSON format.

ReplicationTaskAssessmentRunArn

Amazon Resource Name (ARN) of the premigration assessment run to be deleted.

Type: String

Required: Yes

Response Syntax

{ "ReplicationTaskAssessmentRun": { "AssessmentProgress": { "IndividualAssessmentCompletedCount": number, "IndividualAssessmentCount": number }, "AssessmentRunName": "string", "IsLatestTaskAssessmentRun": boolean, "LastFailureMessage": "string", "ReplicationTaskArn": "string", "ReplicationTaskAssessmentRunArn": "string", "ReplicationTaskAssessmentRunCreationDate": number, "ResultEncryptionMode": "string", "ResultKmsKeyArn": "string", "ResultLocationBucket": "string", "ResultLocationFolder": "string", "ResultStatistic": { "Cancelled": number, "Error": number, "Failed": number, "Passed": number, "Warning": number }, "ServiceAccessRoleArn": "string", "Status": "string" } }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

ReplicationTaskAssessmentRun

The ReplicationTaskAssessmentRun object for the deleted assessment run.

Type: ReplicationTaskAssessmentRun object

Errors

For information about the errors that are common to all actions, see Common Errors.

AccessDeniedFault

Amazon DMS was denied access to the endpoint. Check that the role is correctly configured.

HTTP Status Code: 400

InvalidResourceStateFault

The resource is in a state that prevents it from being used for database migration.

HTTP Status Code: 400

ResourceNotFoundFault

The resource could not be found.

HTTP Status Code: 400

Examples

Example

This example illustrates one usage of DeleteReplicationTaskAssessmentRun.

Sample Request

POST / HTTP/1.1 Host: dms.<region>.<domain> x-amz-Date: <Date> Authorization: AWS4-HMAC-SHA256 Credential=<Credential>, SignedHeaders=contenttype;date;host;user- agent;x-amz-date;x-amz-target;x-amzn- requestid,Signature=<Signature> User-Agent: <UserAgentString> Content-Type: application/x-amz-json-1.1 Content-Length: <PayloadSizeBytes> Connection: Keep-Alive X-Amz-Target: AmazonDMSv20160101.DeleteReplicationTaskAssessmentRun { "ReplicationTaskAssessmentRunArn": "arn:aws:dms:us-west-2:123456789012:assessment-run:FCBLKM7PRVDJ3S4DJKFZYV6XJE6KDMIUHJX4O4I" }

Sample Response

HTTP/1.1 200 OK x-amzn-RequestId: <RequestId> Content-Type: application/x-amz-json-1.1 Content-Length: <PayloadSizeBytes> Date: <Date> { "ReplicationTaskAssessmentRun": { "AssessmentProgress": { "IndividualAssessmentCompletedCount": 4, "IndividualAssessmentCount": 4 }, "AssessmentRunName": "myRun", "ReplicationTaskArn": "arn:aws:dms:us-west-2:123456789012:task:L6XROPGLRF25LCREVEDPT3XL5QJM5IZNUSVFV6A", "ReplicationTaskAssessmentRunArn": "arn:aws:dms:us-west-2:123456789012:assessment-run:FCBLKM7PRVDJ3S4DJKFZYV6XJE6KDMIUHJX4O4I", "ReplicationTaskAssessmentRunCreationDate": 1594068046.933, "ResultEncryptionMode": "NONE", "ResultLocationBucket": "myBucket", "ResultLocationFolder": "myFolder", "ServiceAccessRoleArn": "arn:aws:iam::123456789012:role/Admin", "Status": "deleting" } }

See Also

For more information about using this API in one of the language-specific Amazon SDKs, see the following: