Skip to main content

reference_stores

Creates, updates, deletes, gets or lists a reference_stores resource.

Overview

Namereference_stores
TypeResource
Idaws.omics.reference_stores

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe store's ID. (pattern: <code>[0-9]+</code>)
namestringThe store's name. (pattern: <code>[\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+</code>)
arnstringThe store's ARN. (pattern: <code>arn:.+</code>)
creation_timestring (date-time)When the store was created.
descriptionstringThe store's description. (pattern: <code>[\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+</code>)
sse_configobjectServer-side encryption (SSE) settings for a store.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_reference_storeselectid, regionGets information about a reference store.
list_reference_storesselectregionmaxResults, nextTokenRetrieves a list of reference stores linked to your account and returns their metadata in JSON format. For more information, see Creating a reference store in the Amazon Web Services HealthOmics User Guide.
create_reference_storeinsertregion, nameCreates a reference store and returns metadata in JSON format. Reference stores are used to store reference genomes in FASTA format. A reference store is created when the first reference genome is imported. To import additional reference genomes from an Amazon S3 bucket, use the StartReferenceImportJob API operation. For more information, see Creating a HealthOmics reference store in the Amazon Web Services HealthOmics User Guide.
delete_reference_storedeleteid, regionDeletes a reference store and returns a response with no body if the operation is successful. You can only delete a reference store when it does not contain any reference genomes. To empty a reference store, use DeleteReference. For more information about your workflow status, see Deleting HealthOmics reference and sequence stores in the Amazon Web Services HealthOmics User Guide.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
idstringThe store's ID.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of stores to return in one page of results.
nextTokenstringSpecify the pagination token from a previous request to retrieve the next page of results.

SELECT examples

Gets information about a reference store.

SELECT
id,
name,
arn,
creation_time,
description,
sse_config
FROM aws.omics.reference_stores
WHERE id = '{{ id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a reference store and returns metadata in JSON format. Reference stores are used to store reference genomes in FASTA format. A reference store is created when the first reference genome is imported. To import additional reference genomes from an Amazon S3 bucket, use the StartReferenceImportJob API operation. For more information, see Creating a HealthOmics reference store in the Amazon Web Services HealthOmics User Guide.

INSERT INTO aws.omics.reference_stores (
name,
description,
sseConfig,
tags,
clientToken,
region
)
SELECT
'{{ name }}' /* required */,
'{{ description }}',
'{{ sseConfig }}',
'{{ tags }}',
'{{ clientToken }}',
'{{ region }}'
RETURNING
id,
name,
arn,
creation_time,
description,
sse_config
;

DELETE examples

Deletes a reference store and returns a response with no body if the operation is successful. You can only delete a reference store when it does not contain any reference genomes. To empty a reference store, use DeleteReference. For more information about your workflow status, see Deleting HealthOmics reference and sequence stores in the Amazon Web Services HealthOmics User Guide.

DELETE FROM aws.omics.reference_stores
WHERE id = '{{ id }}' --required
AND region = '{{ region }}' --required
;