Skip to main content

annotation_store_versions

Creates, updates, deletes, gets or lists an annotation_store_versions resource.

Overview

Nameannotation_store_versions
TypeResource
Idaws.omics.annotation_store_versions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe annotation store version ID. (pattern: <code>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}</code>)
namestringThe name of the annotation store. (pattern: <code>([a-z]){1}([a-z0-9_]){2,254}</code>)
creation_timestring (date-time)The time stamp for when an annotation store version was created.
descriptionstringThe description for an annotation store version.
statusstringThe status of an annotation store version. (CREATING, UPDATING, DELETING, ACTIVE, FAILED)
status_messagestringThe status of an annotation store version.
store_idstringThe store ID for annotation store version. (pattern: <code>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}</code>)
tagsobjectAny tags associated with an annotation store version.
update_timestring (date-time)The time stamp for when an annotation store version was updated.
version_arnstringThe Arn for the annotation store. (pattern: <code>arn:([^: ]):([^: ]):([^: ]):([0-9]{12}):([^: ])</code>)
version_namestringThe name given to an annotation store version to distinguish it from others. (pattern: <code>([a-z]){1}([a-z0-9_]){2,254}</code>)
version_optionsobjectThe options for an annotation store version.
version_size_bytesinteger (int64)The size of the annotation store version in Bytes.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_annotation_store_versionselectname, version_name, regionRetrieves the metadata for an annotation store version.
list_annotation_store_versionsselectname, regionmaxResults, nextTokenLists the versions of an annotation store.
create_annotation_store_versioninsertname, region, versionNameCreates a new version of an annotation store.
update_annotation_store_versionupdatename, version_name, regionUpdates the description of an annotation store version.
delete_annotation_store_versionsdeletename, regionforceDeletes one or multiple versions of an annotation store.

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
namestringThe name of the annotation store from which versions are being deleted.
regionstringAWS region (default: us-east-1)
version_namestringThe name of an annotation store version.
forcebooleanForces the deletion of an annotation store version when imports are in-progress..
maxResultsintegerThe maximum number of annotation store versions to return in one page of results.
nextTokenstringSpecifies the pagination token from a previous request to retrieve the next page of results.

SELECT examples

Retrieves the metadata for an annotation store version.

SELECT
id,
name,
creation_time,
description,
status,
status_message,
store_id,
tags,
update_time,
version_arn,
version_name,
version_options,
version_size_bytes
FROM aws.omics.annotation_store_versions
WHERE name = '{{ name }}' -- required
AND version_name = '{{ version_name }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a new version of an annotation store.

INSERT INTO aws.omics.annotation_store_versions (
versionName,
description,
versionOptions,
tags,
name,
region
)
SELECT
'{{ versionName }}' /* required */,
'{{ description }}',
'{{ versionOptions }}',
'{{ tags }}',
'{{ name }}',
'{{ region }}'
RETURNING
id,
name,
creation_time,
status,
store_id,
version_name,
version_options
;

UPDATE examples

Updates the description of an annotation store version.

UPDATE aws.omics.annotation_store_versions
SET
description = '{{ description }}'
WHERE
name = '{{ name }}' --required
AND version_name = '{{ version_name }}' --required
AND region = '{{ region }}' --required
RETURNING
id,
name,
creation_time,
description,
status,
store_id,
update_time,
version_name;

DELETE examples

Deletes one or multiple versions of an annotation store.

DELETE FROM aws.omics.annotation_store_versions
WHERE name = '{{ name }}' --required
AND region = '{{ region }}' --required
AND force = '{{ force }}'
;