Skip to main content

annotation_stores

Creates, updates, deletes or gets an annotation_store resource or lists annotation_stores in a region

Overview

Nameannotation_stores
TypeResource
DescriptionDefinition of AWS::Omics::AnnotationStore Resource Type
Idawscc.omics.annotation_stores

Fields

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

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

Methods

NameResourceAccessible byRequired Params
create_resourceannotation_storesINSERTName, StoreFormat, region
delete_resourceannotation_storesDELETEIdentifier, region
update_resourceannotation_storesUPDATEIdentifier, PatchDocument, region
list_resourcesannotation_stores_list_onlySELECTregion
get_resourceannotation_storesSELECTIdentifier, region

SELECT examples

Gets all properties from an individual annotation_store.

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

INSERT example

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

/*+ create */
INSERT INTO awscc.omics.annotation_stores (
Name,
StoreFormat,
region
)
SELECT
'{{ name }}',
'{{ store_format }}',
'{{ 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 annotation_store resource, using stack-deploy.

/*+ update */
UPDATE awscc.omics.annotation_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.annotation_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 annotation_stores resource, the following permissions are required:

omics:CreateAnnotationStore,
omics:TagResource,
kms:DescribeKey,
kms:GenerateDataKey,
kms:CreateGrant,
ram:AcceptResourceShareInvitation,
ram:GetResourceShareInvitations,
omics:GetAnnotationStore