clients/client-omics/README.md
AWS SDK for JavaScript Omics Client for Node.js, Browser and React Native.
<p>Amazon Web Services HealthOmics is a service that helps users such as bioinformaticians, researchers, and scientists to store, query, analyze, and generate insights from genomics and other biological data. It simplifies and accelerates the process of storing and analyzing genomic information for Amazon Web Services.</p> <p>For an introduction to the service, see <a href="https://docs.aws.amazon.com/omics/latest/dev/what-is-healthomics.html">What is Amazon Web Services HealthOmics?</a> in the <i>Amazon Web Services HealthOmics User Guide</i>.</p>To install this package, use the CLI of your favorite package manager:
npm install @aws-sdk/client-omicsyarn add @aws-sdk/client-omicspnpm add @aws-sdk/client-omicsThe AWS SDK is modulized by clients and commands.
To send a request, you only need to import the OmicsClient and
the commands you need, for example ListBatchCommand:
// ES5 example
const { OmicsClient, ListBatchCommand } = require("@aws-sdk/client-omics");
// ES6+ example
import { OmicsClient, ListBatchCommand } from "@aws-sdk/client-omics";
To send a request:
send operation on the client, providing the command object as input.const client = new OmicsClient({ region: "REGION" });
const params = { /** input parameters */ };
const command = new ListBatchCommand(params);
We recommend using the await operator to wait for the promise returned by send operation as follows:
// async/await.
try {
const data = await client.send(command);
// process data.
} catch (error) {
// error handling.
} finally {
// finally.
}
You can also use Promise chaining.
client
.send(command)
.then((data) => {
// process data.
})
.catch((error) => {
// error handling.
})
.finally(() => {
// finally.
});
The aggregated client class is exported from the same package, but without the "Client" suffix.
Omics extends OmicsClient and additionally supports all operations, waiters, and paginators as methods.
This style may be familiar to you from the AWS SDK for JavaScript v2.
If you are bundling the AWS SDK, we recommend using only the bare-bones client (OmicsClient).
More details are in the blog post on
modular packages in AWS SDK for JavaScript.
import { Omics } from "@aws-sdk/client-omics";
const client = new Omics({ region: "REGION" });
// async/await.
try {
const data = await client.listBatch(params);
// process data.
} catch (error) {
// error handling.
}
// Promises.
client
.listBatch(params)
.then((data) => {
// process data.
})
.catch((error) => {
// error handling.
});
// callbacks (not recommended).
client.listBatch(params, (err, data) => {
// process err and data.
});
When the service returns an exception, the error will include the exception information, as well as response metadata (e.g. request id).
try {
const data = await client.send(command);
// process data.
} catch (error) {
const { requestId, cfId, extendedRequestId } = error.$metadata;
console.log({ requestId, cfId, extendedRequestId });
/**
* The keys within exceptions are also parsed.
* You can access them by specifying exception names:
* if (error.name === 'SomeServiceException') {
* const value = error.specialKeyInException;
* }
*/
}
See also docs/ERROR_HANDLING.
Please use these community resources for getting help. We use GitHub issues for tracking bugs and feature requests, but have limited bandwidth to address them.
aws-sdk-js
on AWS Developer Blog.aws-sdk-js.To test your universal JavaScript code in Node.js, browser and react-native environments, visit our code samples repo.
This client code is generated automatically. Any modifications will be overwritten the next time the @aws-sdk/client-omics package is updated.
To contribute to client you can check our generate clients scripts.
This SDK is distributed under the Apache License, Version 2.0, see LICENSE for more information.
Command API Reference / Input / Output
</details> <details> <summary> AcceptShare </summary>Command API Reference / Input / Output
</details> <details> <summary> BatchDeleteReadSet </summary>Command API Reference / Input / Output
</details> <details> <summary> CancelAnnotationImportJob </summary>Command API Reference / Input / Output
</details> <details> <summary> CancelRun </summary>Command API Reference / Input / Output
</details> <details> <summary> CancelRunBatch </summary>Command API Reference / Input / Output
</details> <details> <summary> CancelVariantImportJob </summary>Command API Reference / Input / Output
</details> <details> <summary> CompleteMultipartReadSetUpload </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateAnnotationStore </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateAnnotationStoreVersion </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateConfiguration </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateMultipartReadSetUpload </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateReferenceStore </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateRunCache </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateRunGroup </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateSequenceStore </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateShare </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateVariantStore </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateWorkflow </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateWorkflowVersion </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteAnnotationStore </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteAnnotationStoreVersions </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteBatch </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteConfiguration </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteReference </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteReferenceStore </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteRun </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteRunBatch </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteRunCache </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteRunGroup </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteS3AccessPolicy </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteSequenceStore </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteShare </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteVariantStore </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteWorkflow </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteWorkflowVersion </summary>Command API Reference / Input / Output
</details> <details> <summary> GetAnnotationImportJob </summary>Command API Reference / Input / Output
</details> <details> <summary> GetAnnotationStore </summary>Command API Reference / Input / Output
</details> <details> <summary> GetAnnotationStoreVersion </summary>Command API Reference / Input / Output
</details> <details> <summary> GetBatch </summary>Command API Reference / Input / Output
</details> <details> <summary> GetConfiguration </summary>Command API Reference / Input / Output
</details> <details> <summary> GetReadSet </summary>Command API Reference / Input / Output
</details> <details> <summary> GetReadSetActivationJob </summary>Command API Reference / Input / Output
</details> <details> <summary> GetReadSetExportJob </summary>Command API Reference / Input / Output
</details> <details> <summary> GetReadSetImportJob </summary>Command API Reference / Input / Output
</details> <details> <summary> GetReadSetMetadata </summary>Command API Reference / Input / Output
</details> <details> <summary> GetReference </summary>Command API Reference / Input / Output
</details> <details> <summary> GetReferenceImportJob </summary>Command API Reference / Input / Output
</details> <details> <summary> GetReferenceMetadata </summary>Command API Reference / Input / Output
</details> <details> <summary> GetReferenceStore </summary>Command API Reference / Input / Output
</details> <details> <summary> GetRun </summary>Command API Reference / Input / Output
</details> <details> <summary> GetRunCache </summary>Command API Reference / Input / Output
</details> <details> <summary> GetRunGroup </summary>Command API Reference / Input / Output
</details> <details> <summary> GetRunTask </summary>Command API Reference / Input / Output
</details> <details> <summary> GetS3AccessPolicy </summary>Command API Reference / Input / Output
</details> <details> <summary> GetSequenceStore </summary>Command API Reference / Input / Output
</details> <details> <summary> GetShare </summary>Command API Reference / Input / Output
</details> <details> <summary> GetVariantImportJob </summary>Command API Reference / Input / Output
</details> <details> <summary> GetVariantStore </summary>Command API Reference / Input / Output
</details> <details> <summary> GetWorkflow </summary>Command API Reference / Input / Output
</details> <details> <summary> GetWorkflowVersion </summary>Command API Reference / Input / Output
</details> <details> <summary> ListAnnotationImportJobs </summary>Command API Reference / Input / Output
</details> <details> <summary> ListAnnotationStores </summary>Command API Reference / Input / Output
</details> <details> <summary> ListAnnotationStoreVersions </summary>Command API Reference / Input / Output
</details> <details> <summary> ListBatch </summary>Command API Reference / Input / Output
</details> <details> <summary> ListConfigurations </summary>Command API Reference / Input / Output
</details> <details> <summary> ListMultipartReadSetUploads </summary>Command API Reference / Input / Output
</details> <details> <summary> ListReadSetActivationJobs </summary>Command API Reference / Input / Output
</details> <details> <summary> ListReadSetExportJobs </summary>Command API Reference / Input / Output
</details> <details> <summary> ListReadSetImportJobs </summary>Command API Reference / Input / Output
</details> <details> <summary> ListReadSets </summary>Command API Reference / Input / Output
</details> <details> <summary> ListReadSetUploadParts </summary>Command API Reference / Input / Output
</details> <details> <summary> ListReferenceImportJobs </summary>Command API Reference / Input / Output
</details> <details> <summary> ListReferences </summary>Command API Reference / Input / Output
</details> <details> <summary> ListReferenceStores </summary>Command API Reference / Input / Output
</details> <details> <summary> ListRunCaches </summary>Command API Reference / Input / Output
</details> <details> <summary> ListRunGroups </summary>Command API Reference / Input / Output
</details> <details> <summary> ListRuns </summary>Command API Reference / Input / Output
</details> <details> <summary> ListRunsInBatch </summary>Command API Reference / Input / Output
</details> <details> <summary> ListRunTasks </summary>Command API Reference / Input / Output
</details> <details> <summary> ListSequenceStores </summary>Command API Reference / Input / Output
</details> <details> <summary> ListShares </summary>Command API Reference / Input / Output
</details> <details> <summary> ListTagsForResource </summary>Command API Reference / Input / Output
</details> <details> <summary> ListVariantImportJobs </summary>Command API Reference / Input / Output
</details> <details> <summary> ListVariantStores </summary>Command API Reference / Input / Output
</details> <details> <summary> ListWorkflows </summary>Command API Reference / Input / Output
</details> <details> <summary> ListWorkflowVersions </summary>Command API Reference / Input / Output
</details> <details> <summary> PutS3AccessPolicy </summary>Command API Reference / Input / Output
</details> <details> <summary> StartAnnotationImportJob </summary>Command API Reference / Input / Output
</details> <details> <summary> StartReadSetActivationJob </summary>Command API Reference / Input / Output
</details> <details> <summary> StartReadSetExportJob </summary>Command API Reference / Input / Output
</details> <details> <summary> StartReadSetImportJob </summary>Command API Reference / Input / Output
</details> <details> <summary> StartReferenceImportJob </summary>Command API Reference / Input / Output
</details> <details> <summary> StartRun </summary>Command API Reference / Input / Output
</details> <details> <summary> StartRunBatch </summary>Command API Reference / Input / Output
</details> <details> <summary> StartVariantImportJob </summary>Command API Reference / Input / Output
</details> <details> <summary> TagResource </summary>Command API Reference / Input / Output
</details> <details> <summary> UntagResource </summary>Command API Reference / Input / Output
</details> <details> <summary> UpdateAnnotationStore </summary>Command API Reference / Input / Output
</details> <details> <summary> UpdateAnnotationStoreVersion </summary>Command API Reference / Input / Output
</details> <details> <summary> UpdateRunCache </summary>Command API Reference / Input / Output
</details> <details> <summary> UpdateRunGroup </summary>Command API Reference / Input / Output
</details> <details> <summary> UpdateSequenceStore </summary>Command API Reference / Input / Output
</details> <details> <summary> UpdateVariantStore </summary>Command API Reference / Input / Output
</details> <details> <summary> UpdateWorkflow </summary>Command API Reference / Input / Output
</details> <details> <summary> UpdateWorkflowVersion </summary> </details> <details> <summary> UploadReadSetPart </summary> </details>