Skip to main content

reference_stores

Creates, updates, deletes or gets a reference_store resource or lists reference_stores in a region

Overview

Namereference_stores
TypeResource
DescriptionDefinition of AWS::Omics::ReferenceStore Resource Type
Idawscc.omics.reference_stores

Fields

NameDatatypeDescription
arnstringThe store's ARN.
creation_timestringWhen the store was created.
descriptionstringA description for the store.
namestringA name for the store.
reference_store_idstring
sse_configobject
tagsobjectA map of resource tags
regionstringAWS region.

For more information, see AWS::Omics::ReferenceStore.

Methods

NameResourceAccessible byRequired Params
create_resourcereference_storesINSERTName, region
delete_resourcereference_storesDELETEIdentifier, region
list_resourcesreference_stores_list_onlySELECTregion
get_resourcereference_storesSELECTIdentifier, region

SELECT examples

Gets all properties from an individual reference_store.

SELECT
region,
arn,
creation_time,
description,
name,
reference_store_id,
sse_config,
tags
FROM awscc.omics.reference_stores
WHERE
region = '{{ region }}' AND
Identifier = '{{ reference_store_id }}';

INSERT example

Use the following StackQL query and manifest file to create a new reference_store resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.omics.reference_stores (
Name,
region
)
SELECT
'{{ name }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.omics.reference_stores
WHERE
Identifier = '{{ reference_store_id }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

To operate on the reference_stores resource, the following permissions are required:

omics:CreateReferenceStore,
omics:TagResource,
kms:DescribeKey