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 = '{{ region }}' AND
Identifier = '{{ name }}';
Lists all variant_stores in a region.
SELECT
region,
name
FROM awscc.omics.variant_stores_list_only
WHERE
region = '{{ region }}';
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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
/*+ create */
INSERT INTO awscc.omics.variant_stores (
Description,
Name,
Reference,
SseConfig,
Tags,
region
)
SELECT
'{{ description }}',
'{{ name }}',
'{{ reference }}',
'{{ sse_config }}',
'{{ tags }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
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 }}'
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:
| Parameter | Description |
|---|---|
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:
- 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