Skip to main content

variant_stores

Creates, updates, deletes or gets a variant_store resource or lists variant_stores in a region

Overview

Namevariant_stores
TypeResource
DescriptionDefinition of AWS::Omics::VariantStore Resource Type
Idawscc.omics.variant_stores

Fields

NameDatatypeDescription
creation_timestring
descriptionstring
idstring
namestring
referenceobject
sse_configobject
statusstring
status_messagestring
store_arnstring
store_size_bytesnumber
tagsobjectA map of resource tags
update_timestring
regionstringAWS region.

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

Methods

NameResourceAccessible byRequired Params
create_resourcevariant_storesINSERTName, Reference, region
delete_resourcevariant_storesDELETEIdentifier, region
update_resourcevariant_storesUPDATEIdentifier, PatchDocument, region
list_resourcesvariant_stores_list_onlySELECTregion
get_resourcevariant_storesSELECTIdentifier, region

SELECT examples

Gets all properties from an individual variant_store.

SELECT
region,
creation_time,
description,
id,
name,
reference,
sse_config,
status,
status_message,
store_arn,
store_size_bytes,
tags,
update_time
FROM awscc.omics.variant_stores
WHERE
region = '{{ region }}' AND
Identifier = '{{ name }}';

INSERT example

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

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

UPDATE example

Use the following StackQL query and manifest file to update a variant_store resource, using stack-deploy.

/*+ update */
UPDATE awscc.omics.variant_stores
SET PatchDocument = string('{{ {
"Description": description
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ name }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.omics.variant_stores
WHERE
Identifier = '{{ name }}' 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 variant_stores resource, the following permissions are required:

omics:CreateVariantStore,
omics:TagResource,
kms:DescribeKey,
kms:GenerateDataKey,
kms:CreateGrant,
ram:AcceptResourceShareInvitation,
ram:GetResourceShareInvitations,
omics:GetVariantStore