variant_stores
Creates, updates, deletes or gets a variant_store resource or lists variant_stores in a region
Overview
| Name | variant_stores |
| Type | Resource |
| Description | Definition of AWS::Omics::VariantStore Resource Type |
| Id | awscc.omics.variant_stores |
Fields
- get (all properties)
- list (identifiers only)
| Name | Datatype | Description |
|---|---|---|
creation_time | string | |
description | string | |
id | string | |
name | string | |
reference | object | |
sse_config | object | |
status | string | |
status_message | string | |
store_arn | string | |
store_size_bytes | number | |
tags | object | A map of resource tags |
update_time | string | |
region | string | AWS region. |
| Name | Datatype | Description |
|---|---|---|
name | string | |
region | string | AWS region. |
For more information, see AWS::Omics::VariantStore.
Methods
| Name | Resource | Accessible by | Required Params |
|---|---|---|---|
create_resource | variant_stores | INSERT | Name, Reference, region |
delete_resource | variant_stores | DELETE | Identifier, region |
update_resource | variant_stores | UPDATE | Identifier, PatchDocument, region |
list_resources | variant_stores_list_only | SELECT | region |
get_resource | variant_stores | SELECT | Identifier, region |
SELECT examples
- get (all properties)
- list (identifiers only)
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 = 'us-east-1' AND
Identifier = '{{ name }}';
Lists all variant_stores in a region.
SELECT
region,
name
FROM awscc.omics.variant_stores_list_only
WHERE
region = 'us-east-1';
INSERT example
Use the following StackQL query and manifest file to create a new variant_store resource, using stack-deploy.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO awscc.omics.variant_stores (
Name,
Reference,
region
)
SELECT
'{{ name }}',
'{{ reference }}',
'{{ region }}';
/*+ create */
INSERT INTO awscc.omics.variant_stores (
Description,
Name,
Reference,
SseConfig,
Tags,
region
)
SELECT
'{{ description }}',
'{{ name }}',
'{{ reference }}',
'{{ sse_config }}',
'{{ tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: variant_store
props:
- name: description
value: '{{ description }}'
- name: name
value: '{{ name }}'
- name: reference
value:
reference_arn: '{{ reference_arn }}'
- name: sse_config
value:
type: '{{ type }}'
key_arn: '{{ key_arn }}'
- name: tags
value: {}
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 }}';
DELETE example
/*+ delete */
DELETE FROM awscc.omics.variant_stores
WHERE
Identifier = '{{ name }}' AND
region = 'us-east-1';
Permissions
To operate on the variant_stores resource, the following permissions are required:
- Create
- Read
- Update
- Delete
- List
omics:CreateVariantStore,
omics:TagResource,
kms:DescribeKey,
kms:GenerateDataKey,
kms:CreateGrant,
ram:AcceptResourceShareInvitation,
ram:GetResourceShareInvitations,
omics:GetVariantStore
omics:GetVariantStore
omics:UpdateVariantStore,
omics:TagResource,
omics:UntagResource,
omics:ListTagsForResource,
omics:GetVariantStore
omics:DeleteVariantStore,
omics:ListVariantStores
omics:ListVariantStores