Skip to content

batch_delete_read_set async

batch_delete_read_set(
    ids: ReadSetIdList,
    sequence_store_id: SequenceStoreId,
    *,
    config_overrides: Optional[AsyncOmicsClientConfig] = None,
) -> BatchDeleteReadSetResponse

Deletes one or more read sets. If the operation is successful, it returns a response with no body. If there is an error with deleting one of the read sets, the operation returns an error list. If the operation successfully deletes only a subset of files, it will return an error list for the remaining files that fail to be deleted. There is a limit of 100 read sets that can be deleted in each BatchDeleteReadSet API call.

Parameters:

Raises:

Source code in docs_src/capo_omics/_services/async_omics.py
async def batch_delete_read_set(
    self,
    ids: "capo_omics.types.read_set_id_list.ReadSetIdList",
    sequence_store_id: "capo_omics.types.sequence_store_id.SequenceStoreId",
    *,
    config_overrides: Optional[AsyncOmicsClientConfig] = None,
) -> "capo_omics.types.batch_delete_read_set_response.BatchDeleteReadSetResponse":
    """<p>Deletes one or more read sets. If the operation is successful, it returns a response with no body. If there is an error with deleting one of the read sets, the operation returns an error list. If the operation successfully deletes only a subset of files, it will return an error list for the remaining files that fail to be deleted. There is a limit of 100 read sets that can be deleted in each <code>BatchDeleteReadSet</code> API call.</p>

    Args:
        ids: <p>The read sets' IDs.</p>
        sequence_store_id: <p>The read sets' sequence store ID.</p>

    Raises:
        capo_omics.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action.</p>
        capo_omics.errors.internal_server_exception.InternalServerException: <p>An unexpected error occurred. Try the request again.</p>
        capo_omics.errors.request_timeout_exception.RequestTimeoutException: <p>The request timed out.</p>
        capo_omics.errors.resource_not_found_exception.ResourceNotFoundException: <p>The target resource was not found in the current Region.</p>
        capo_omics.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
        capo_omics.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
        capo_omics.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_omics.types.batch_delete_read_set_request.BatchDeleteReadSetRequest]",
    ) -> AsyncOperationResponse[
        "capo_omics.types.batch_delete_read_set_response.BatchDeleteReadSetResponse"
    ]:
        import capo_omics._operations.omics.batch_delete_read_set

        (
            output,
            http_response,
        ) = await capo_omics._operations.omics.batch_delete_read_set.async_batch_delete_read_set(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("BatchDeleteReadSet")
    )
    input_: capo_omics.types.batch_delete_read_set_request.BatchDeleteReadSetRequest = {
        "ids": ids,
        "sequence_store_id": sequence_store_id,
    }

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output