Skip to content

delete_replication_task_assessment_run

delete_replication_task_assessment_run(
    replication_task_assessment_run_arn: String,
    *,
    config_overrides: Optional[DatabaseMigrationServiceClientConfig] = None,
) -> DeleteReplicationTaskAssessmentRunResponse

Deletes the record of a single premigration assessment run.

This operation removes all metadata that 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.

Parameters:

  • replication_task_assessment_run_arn (String) –

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

Raises:

Source code in docs_src/capo_database_migration_service/_services/database_migration_service.py
def delete_replication_task_assessment_run(
    self,
    replication_task_assessment_run_arn: "capo_database_migration_service.types.string.String",
    *,
    config_overrides: Optional[DatabaseMigrationServiceClientConfig] = None,
) -> "capo_database_migration_service.types.delete_replication_task_assessment_run_response.DeleteReplicationTaskAssessmentRunResponse":
    """<p>Deletes the record of a single premigration assessment run.</p> <p>This operation removes all metadata that 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.</p>

    Args:
        replication_task_assessment_run_arn: <p>Amazon Resource Name (ARN) of the premigration assessment run to be deleted.</p>

    Raises:
        capo_database_migration_service.errors.access_denied_fault.AccessDeniedFault: <p>DMS was denied access to the endpoint. Check that the role is correctly configured.</p>
        capo_database_migration_service.errors.invalid_resource_state_fault.InvalidResourceStateFault: <p>The resource is in a state that prevents it from being used for database migration.</p>
        capo_database_migration_service.errors.resource_not_found_fault.ResourceNotFoundFault: <p>The resource could not be found.</p>
        capo_database_migration_service.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_database_migration_service.types.delete_replication_task_assessment_run_message.DeleteReplicationTaskAssessmentRunMessage]",
    ) -> OperationResponse[
        "capo_database_migration_service.types.delete_replication_task_assessment_run_response.DeleteReplicationTaskAssessmentRunResponse"
    ]:
        import capo_database_migration_service._operations.amazon_dm_sv20160101.delete_replication_task_assessment_run

        output, http_response = (
            capo_database_migration_service._operations.amazon_dm_sv20160101.delete_replication_task_assessment_run.delete_replication_task_assessment_run(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DeleteReplicationTaskAssessmentRun")
    )
    input_: capo_database_migration_service.types.delete_replication_task_assessment_run_message.DeleteReplicationTaskAssessmentRunMessage = {
        "replication_task_assessment_run_arn": replication_task_assessment_run_arn
    }

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output