Skip to content

delete_variant_store async

delete_variant_store(
    name: str,
    *,
    config_overrides: Optional[AsyncOmicsClientConfig] = None,
    force: Optional[bool] = None,
) -> DeleteVariantStoreResponse

Amazon Web Services HealthOmics variant stores and annotation stores are no longer open to new customers. Existing customers can continue to use the service as normal. For more information, see Amazon Web Services HealthOmics variant store and annotation store availability change.

Deletes a variant store.

Parameters:

  • name (str) –

    The store's name.

  • force (Optional[bool], default: None ) –

    Whether to force deletion.

Raises:

Source code in docs_src/capo_omics/_services/async_omics.py
async def delete_variant_store(
    self,
    name: str,
    *,
    config_overrides: Optional[AsyncOmicsClientConfig] = None,
    force: Optional[bool] = None,
) -> "capo_omics.types.delete_variant_store_response.DeleteVariantStoreResponse":
    """<important> <p>Amazon Web Services HealthOmics variant stores and annotation stores are no longer open to new customers. Existing customers can continue to use the service as normal. For more information, see <a href="https://docs.aws.amazon.com/omics/latest/dev/variant-store-availability-change.html"> Amazon Web Services HealthOmics variant store and annotation store availability change</a>.</p> </important> <p>Deletes a variant store.</p>

    Args:
        name: <p>The store's name.</p>
        force: <p>Whether to force deletion.</p>

    Raises:
        capo_omics.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action.</p>
        capo_omics.errors.conflict_exception.ConflictException: <p>The request cannot be applied to the target resource in its current state.</p>
        capo_omics.errors.internal_server_exception.InternalServerException: <p>An unexpected error occurred. Try the request again.</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.delete_variant_store_request.DeleteVariantStoreRequest]",
    ) -> AsyncOperationResponse[
        "capo_omics.types.delete_variant_store_response.DeleteVariantStoreResponse"
    ]:
        import capo_omics._operations.omics.delete_variant_store

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DeleteVariantStore")
    )
    input_: capo_omics.types.delete_variant_store_request.DeleteVariantStoreRequest = {
        "name": name
    }
    if force is not None:
        input_["force"] = force

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