Skip to content

get_annotation_store_version async

get_annotation_store_version(
    name: str,
    version_name: str,
    *,
    config_overrides: Optional[AsyncOmicsClientConfig] = None,
) -> GetAnnotationStoreVersionResponse

Retrieves the metadata for an annotation store version.

Parameters:

  • name (str) –

    The name given to an annotation store version to distinguish it from others.

  • version_name (str) –

    The name given to an annotation store version to distinguish it from others.

Raises:

Source code in docs_src/capo_omics/_services/async_omics.py
async def get_annotation_store_version(
    self,
    name: str,
    version_name: str,
    *,
    config_overrides: Optional[AsyncOmicsClientConfig] = None,
) -> "capo_omics.types.get_annotation_store_version_response.GetAnnotationStoreVersionResponse":
    """<p> Retrieves the metadata for an annotation store version. </p>

    Args:
        name: <p> The name given to an annotation store version to distinguish it from others. </p>
        version_name: <p> The name given to an annotation store version to distinguish it from others. </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.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.get_annotation_store_version_request.GetAnnotationStoreVersionRequest]",
    ) -> AsyncOperationResponse[
        "capo_omics.types.get_annotation_store_version_response.GetAnnotationStoreVersionResponse"
    ]:
        import capo_omics._operations.omics.get_annotation_store_version

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetAnnotationStoreVersion")
    )
    input_: capo_omics.types.get_annotation_store_version_request.GetAnnotationStoreVersionRequest = {
        "name": name,
        "version_name": version_name,
    }

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