Skip to content

complete_multipart_read_set_upload async

complete_multipart_read_set_upload(
    sequence_store_id: SequenceStoreId,
    upload_id: UploadId,
    parts: CompleteReadSetUploadPartList,
    *,
    config_overrides: Optional[AsyncOmicsClientConfig] = None,
) -> CompleteMultipartReadSetUploadResponse

Completes a multipart read set upload into a sequence store after you have initiated the upload process with CreateMultipartReadSetUpload and uploaded all read set parts using UploadReadSetPart. You must specify the parts you uploaded using the parts parameter. If the operation is successful, it returns the read set ID(s) of the uploaded read set(s).

For more information, see Direct upload to a sequence store in the Amazon Web Services HealthOmics User Guide.

Parameters:

  • sequence_store_id (SequenceStoreId) –

    The sequence store ID for the store involved in the multipart upload.

  • upload_id (UploadId) –

    The ID for the multipart upload.

  • parts (CompleteReadSetUploadPartList) –

    The individual uploads or parts of a multipart upload.

Raises:

Source code in docs_src/capo_omics/_services/async_omics.py
async def complete_multipart_read_set_upload(
    self,
    sequence_store_id: "capo_omics.types.sequence_store_id.SequenceStoreId",
    upload_id: "capo_omics.types.upload_id.UploadId",
    parts: "capo_omics.types.complete_read_set_upload_part_list.CompleteReadSetUploadPartList",
    *,
    config_overrides: Optional[AsyncOmicsClientConfig] = None,
) -> "capo_omics.types.complete_multipart_read_set_upload_response.CompleteMultipartReadSetUploadResponse":
    """<p>Completes a multipart read set upload into a sequence store after you have initiated the upload process with <code>CreateMultipartReadSetUpload</code> and uploaded all read set parts using <code>UploadReadSetPart</code>. You must specify the parts you uploaded using the parts parameter. If the operation is successful, it returns the read set ID(s) of the uploaded read set(s).</p> <p>For more information, see <a href="https://docs.aws.amazon.com/omics/latest/dev/synchronous-uploads.html">Direct upload to a sequence store</a> in the <i>Amazon Web Services HealthOmics User Guide</i>.</p>

    Args:
        sequence_store_id: <p>The sequence store ID for the store involved in the multipart upload.</p>
        upload_id: <p>The ID for the multipart upload.</p>
        parts: <p>The individual uploads or parts of a multipart upload.</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.not_supported_operation_exception.NotSupportedOperationException: <p> The operation is not supported by Amazon Omics, or the API does not exist. </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.service_quota_exceeded_exception.ServiceQuotaExceededException: <p>The request exceeds a service quota.</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.complete_multipart_read_set_upload_request.CompleteMultipartReadSetUploadRequest]",
    ) -> AsyncOperationResponse[
        "capo_omics.types.complete_multipart_read_set_upload_response.CompleteMultipartReadSetUploadResponse"
    ]:
        import capo_omics._operations.omics.complete_multipart_read_set_upload

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("CompleteMultipartReadSetUpload")
    )
    input_: capo_omics.types.complete_multipart_read_set_upload_request.CompleteMultipartReadSetUploadRequest = {
        "sequence_store_id": sequence_store_id,
        "upload_id": upload_id,
        "parts": parts,
    }

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