Skip to content

delete_replication_task_assessment_run async

delete_replication_task_assessment_run(
    replication_task_assessment_run_arn: String,
    *,
    config_overrides: Optional[AsyncDatabaseMigrationServiceClientConfig] = 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/async_database_migration_service.py
async def delete_replication_task_assessment_run(
    self,
    replication_task_assessment_run_arn: "capo_database_migration_service.types.string.String",
    *,
    config_overrides: Optional[AsyncDatabaseMigrationServiceClientConfig] = 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.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_database_migration_service.types.delete_replication_task_assessment_run_message.DeleteReplicationTaskAssessmentRunMessage]",
    ) -> AsyncOperationResponse[
        "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,
        ) = await capo_database_migration_service._operations.amazon_dm_sv20160101.delete_replication_task_assessment_run.async_delete_replication_task_assessment_run(
            req.options, req.input
        )
        return AsyncOperationResponse(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 = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output