SequenceStore
The SequenceStore resource lets you manage AWS Omics SequenceStores for storing and processing genomic data effectively.
Minimal Example
Section titled “Minimal Example”Create a basic SequenceStore with required properties and one optional description.
import AWS from "alchemy/aws/control";
const basicSequenceStore = await AWS.Omics.SequenceStore("basic-sequence-store", { name: "HumanGenomes", description: "A SequenceStore for human genomic data"});
Advanced Configuration
Section titled “Advanced Configuration”Configure a SequenceStore with additional options such as access logging and SSE configuration.
const advancedSequenceStore = await AWS.Omics.SequenceStore("advanced-sequence-store", { name: "HumanGenomesSecure", description: "A secure SequenceStore for human genomic data", accessLogLocation: "s3://my-log-bucket/access-logs/", sseConfig: { sseAlgorithm: "AES256" }, propagatedSetLevelTags: ["ProjectA", "Research"], tags: { Environment: "Production", Department: "Genomics" }});
Using S3 Access Policies
Section titled “Using S3 Access Policies”Create a SequenceStore with a specific S3 access policy to control permissions for data access.
const sequenceStoreWithPolicy = await AWS.Omics.SequenceStore("policy-sequence-store", { name: "SecureGenomicsStore", s3AccessPolicy: { Version: "2012-10-17", Statement: [ { Effect: "Allow", Principal: { AWS: "arn:aws:iam::123456789012:role/MyGenomicsRole" }, Action: "s3:GetObject", Resource: "arn:aws:s3:::my-genomics-bucket/*" } ] }});
Fallback Location Example
Section titled “Fallback Location Example”Create a SequenceStore with a fallback location for data storage.
const sequenceStoreWithFallback = await AWS.Omics.SequenceStore("fallback-sequence-store", { name: "FallbackGenomicsStore", fallbackLocation: "s3://my-fallback-bucket/", description: "A SequenceStore with a fallback location for data storage"});
Adoption of Existing Resource
Section titled “Adoption of Existing Resource”Create a SequenceStore that adopts an existing resource if it already exists.
const adoptedSequenceStore = await AWS.Omics.SequenceStore("adopted-sequence-store", { name: "AdoptedGenomicsStore", adopt: true, description: "This SequenceStore will adopt an existing resource if found"});