Skip to content

list_annotation_stores async

list_annotation_stores(
    *,
    config_overrides: Optional[AsyncOmicsClientConfig] = None,
    ids: Optional[IdList] = None,
    max_results: Optional[int] = None,
    next_token: Optional[str] = None,
    filter: Optional[ListAnnotationStoresFilter] = None,
) -> ListAnnotationStoresResponse

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.

Retrieves a list of annotation stores.

Parameters:

  • ids (Optional[IdList], default: None ) –

    IDs of stores to list.

  • max_results (Optional[int], default: None ) –

    The maximum number of stores to return in one page of results.

  • next_token (Optional[str], default: None ) –

    Specify the pagination token from a previous request to retrieve the next page of results.

  • filter (Optional[ListAnnotationStoresFilter], default: None ) –

    A filter to apply to the list.

Raises:

Source code in docs_src/capo_omics/_services/async_omics.py
async def list_annotation_stores(
    self,
    *,
    config_overrides: Optional[AsyncOmicsClientConfig] = None,
    ids: Optional["capo_omics.types.id_list.IdList"] = None,
    max_results: Optional[int] = None,
    next_token: Optional[str] = None,
    filter: Optional[
        "capo_omics.types.list_annotation_stores_filter.ListAnnotationStoresFilter"
    ] = None,
) -> (
    "capo_omics.types.list_annotation_stores_response.ListAnnotationStoresResponse"
):
    """<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>Retrieves a list of annotation stores.</p>

    Args:
        ids: <p>IDs of stores to list.</p>
        max_results: <p>The maximum number of stores to return in one page of results.</p>
        next_token: <p>Specify the pagination token from a previous request to retrieve the next page of results.</p>
        filter: <p>A filter to apply to the list.</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.list_annotation_stores_request.ListAnnotationStoresRequest]",
    ) -> AsyncOperationResponse[
        "capo_omics.types.list_annotation_stores_response.ListAnnotationStoresResponse"
    ]:
        import capo_omics._operations.omics.list_annotation_stores

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListAnnotationStores")
    )
    input_: capo_omics.types.list_annotation_stores_request.ListAnnotationStoresRequest = {}
    if ids is not None:
        input_["ids"] = ids
    if max_results is not None:
        input_["max_results"] = max_results
    if next_token is not None:
        input_["next_token"] = next_token
    if filter is not None:
        input_["filter"] = filter

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