Skip to content

Commit

Permalink
feat(client-omics): Enabling call caching feature that allows custome…
Browse files Browse the repository at this point in the history
…rs to reuse previously computed results from a set of completed tasks in a new workflow run.
  • Loading branch information
awstools committed Nov 20, 2024
1 parent efe0aaf commit ede3768
Show file tree
Hide file tree
Showing 19 changed files with 2,312 additions and 21 deletions.
40 changes: 40 additions & 0 deletions clients/client-omics/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,14 @@ CreateReferenceStore

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/omics/command/CreateReferenceStoreCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-omics/Interface/CreateReferenceStoreCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-omics/Interface/CreateReferenceStoreCommandOutput/)

</details>
<details>
<summary>
CreateRunCache
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/omics/command/CreateRunCacheCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-omics/Interface/CreateRunCacheCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-omics/Interface/CreateRunCacheCommandOutput/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -371,6 +379,14 @@ DeleteRun

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/omics/command/DeleteRunCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-omics/Interface/DeleteRunCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-omics/Interface/DeleteRunCommandOutput/)

</details>
<details>
<summary>
DeleteRunCache
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/omics/command/DeleteRunCacheCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-omics/Interface/DeleteRunCacheCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-omics/Interface/DeleteRunCacheCommandOutput/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -515,6 +531,14 @@ GetRun

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/omics/command/GetRunCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-omics/Interface/GetRunCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-omics/Interface/GetRunCommandOutput/)

</details>
<details>
<summary>
GetRunCache
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/omics/command/GetRunCacheCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-omics/Interface/GetRunCacheCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-omics/Interface/GetRunCacheCommandOutput/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -667,6 +691,14 @@ ListReferenceStores

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/omics/command/ListReferenceStoresCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-omics/Interface/ListReferenceStoresCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-omics/Interface/ListReferenceStoresCommandOutput/)

</details>
<details>
<summary>
ListRunCaches
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/omics/command/ListRunCachesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-omics/Interface/ListRunCachesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-omics/Interface/ListRunCachesCommandOutput/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -827,6 +859,14 @@ UpdateAnnotationStoreVersion

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/omics/command/UpdateAnnotationStoreVersionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-omics/Interface/UpdateAnnotationStoreVersionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-omics/Interface/UpdateAnnotationStoreVersionCommandOutput/)

</details>
<details>
<summary>
UpdateRunCache
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/omics/command/UpdateRunCacheCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-omics/Interface/UpdateRunCacheCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-omics/Interface/UpdateRunCacheCommandOutput/)

</details>
<details>
<summary>
Expand Down
91 changes: 91 additions & 0 deletions clients/client-omics/src/Omics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ import {
CreateReferenceStoreCommandInput,
CreateReferenceStoreCommandOutput,
} from "./commands/CreateReferenceStoreCommand";
import {
CreateRunCacheCommand,
CreateRunCacheCommandInput,
CreateRunCacheCommandOutput,
} from "./commands/CreateRunCacheCommand";
import {
CreateRunGroupCommand,
CreateRunGroupCommandInput,
Expand Down Expand Up @@ -90,6 +95,11 @@ import {
DeleteReferenceStoreCommandInput,
DeleteReferenceStoreCommandOutput,
} from "./commands/DeleteReferenceStoreCommand";
import {
DeleteRunCacheCommand,
DeleteRunCacheCommandInput,
DeleteRunCacheCommandOutput,
} from "./commands/DeleteRunCacheCommand";
import { DeleteRunCommand, DeleteRunCommandInput, DeleteRunCommandOutput } from "./commands/DeleteRunCommand";
import {
DeleteRunGroupCommand,
Expand Down Expand Up @@ -168,6 +178,7 @@ import {
GetReferenceStoreCommandInput,
GetReferenceStoreCommandOutput,
} from "./commands/GetReferenceStoreCommand";
import { GetRunCacheCommand, GetRunCacheCommandInput, GetRunCacheCommandOutput } from "./commands/GetRunCacheCommand";
import { GetRunCommand, GetRunCommandInput, GetRunCommandOutput } from "./commands/GetRunCommand";
import { GetRunGroupCommand, GetRunGroupCommandInput, GetRunGroupCommandOutput } from "./commands/GetRunGroupCommand";
import { GetRunTaskCommand, GetRunTaskCommandInput, GetRunTaskCommandOutput } from "./commands/GetRunTaskCommand";
Expand Down Expand Up @@ -248,6 +259,11 @@ import {
ListReferenceStoresCommandInput,
ListReferenceStoresCommandOutput,
} from "./commands/ListReferenceStoresCommand";
import {
ListRunCachesCommand,
ListRunCachesCommandInput,
ListRunCachesCommandOutput,
} from "./commands/ListRunCachesCommand";
import {
ListRunGroupsCommand,
ListRunGroupsCommandInput,
Expand Down Expand Up @@ -332,6 +348,11 @@ import {
UpdateAnnotationStoreVersionCommandInput,
UpdateAnnotationStoreVersionCommandOutput,
} from "./commands/UpdateAnnotationStoreVersionCommand";
import {
UpdateRunCacheCommand,
UpdateRunCacheCommandInput,
UpdateRunCacheCommandOutput,
} from "./commands/UpdateRunCacheCommand";
import {
UpdateRunGroupCommand,
UpdateRunGroupCommandInput,
Expand Down Expand Up @@ -366,6 +387,7 @@ const commands = {
CreateAnnotationStoreVersionCommand,
CreateMultipartReadSetUploadCommand,
CreateReferenceStoreCommand,
CreateRunCacheCommand,
CreateRunGroupCommand,
CreateSequenceStoreCommand,
CreateShareCommand,
Expand All @@ -376,6 +398,7 @@ const commands = {
DeleteReferenceCommand,
DeleteReferenceStoreCommand,
DeleteRunCommand,
DeleteRunCacheCommand,
DeleteRunGroupCommand,
DeleteSequenceStoreCommand,
DeleteShareCommand,
Expand All @@ -394,6 +417,7 @@ const commands = {
GetReferenceMetadataCommand,
GetReferenceStoreCommand,
GetRunCommand,
GetRunCacheCommand,
GetRunGroupCommand,
GetRunTaskCommand,
GetSequenceStoreCommand,
Expand All @@ -413,6 +437,7 @@ const commands = {
ListReferenceImportJobsCommand,
ListReferencesCommand,
ListReferenceStoresCommand,
ListRunCachesCommand,
ListRunGroupsCommand,
ListRunsCommand,
ListRunTasksCommand,
Expand All @@ -433,6 +458,7 @@ const commands = {
UntagResourceCommand,
UpdateAnnotationStoreCommand,
UpdateAnnotationStoreVersionCommand,
UpdateRunCacheCommand,
UpdateRunGroupCommand,
UpdateVariantStoreCommand,
UpdateWorkflowCommand,
Expand Down Expand Up @@ -615,6 +641,20 @@ export interface Omics {
cb: (err: any, data?: CreateReferenceStoreCommandOutput) => void
): void;

/**
* @see {@link CreateRunCacheCommand}
*/
createRunCache(
args: CreateRunCacheCommandInput,
options?: __HttpHandlerOptions
): Promise<CreateRunCacheCommandOutput>;
createRunCache(args: CreateRunCacheCommandInput, cb: (err: any, data?: CreateRunCacheCommandOutput) => void): void;
createRunCache(
args: CreateRunCacheCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: CreateRunCacheCommandOutput) => void
): void;

/**
* @see {@link CreateRunGroupCommand}
*/
Expand Down Expand Up @@ -764,6 +804,20 @@ export interface Omics {
cb: (err: any, data?: DeleteRunCommandOutput) => void
): void;

/**
* @see {@link DeleteRunCacheCommand}
*/
deleteRunCache(
args: DeleteRunCacheCommandInput,
options?: __HttpHandlerOptions
): Promise<DeleteRunCacheCommandOutput>;
deleteRunCache(args: DeleteRunCacheCommandInput, cb: (err: any, data?: DeleteRunCacheCommandOutput) => void): void;
deleteRunCache(
args: DeleteRunCacheCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: DeleteRunCacheCommandOutput) => void
): void;

/**
* @see {@link DeleteRunGroupCommand}
*/
Expand Down Expand Up @@ -1040,6 +1094,17 @@ export interface Omics {
cb: (err: any, data?: GetRunCommandOutput) => void
): void;

/**
* @see {@link GetRunCacheCommand}
*/
getRunCache(args: GetRunCacheCommandInput, options?: __HttpHandlerOptions): Promise<GetRunCacheCommandOutput>;
getRunCache(args: GetRunCacheCommandInput, cb: (err: any, data?: GetRunCacheCommandOutput) => void): void;
getRunCache(
args: GetRunCacheCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: GetRunCacheCommandOutput) => void
): void;

/**
* @see {@link GetRunGroupCommand}
*/
Expand Down Expand Up @@ -1330,6 +1395,18 @@ export interface Omics {
cb: (err: any, data?: ListReferenceStoresCommandOutput) => void
): void;

/**
* @see {@link ListRunCachesCommand}
*/
listRunCaches(): Promise<ListRunCachesCommandOutput>;
listRunCaches(args: ListRunCachesCommandInput, options?: __HttpHandlerOptions): Promise<ListRunCachesCommandOutput>;
listRunCaches(args: ListRunCachesCommandInput, cb: (err: any, data?: ListRunCachesCommandOutput) => void): void;
listRunCaches(
args: ListRunCachesCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ListRunCachesCommandOutput) => void
): void;

/**
* @see {@link ListRunGroupsCommand}
*/
Expand Down Expand Up @@ -1628,6 +1705,20 @@ export interface Omics {
cb: (err: any, data?: UpdateAnnotationStoreVersionCommandOutput) => void
): void;

/**
* @see {@link UpdateRunCacheCommand}
*/
updateRunCache(
args: UpdateRunCacheCommandInput,
options?: __HttpHandlerOptions
): Promise<UpdateRunCacheCommandOutput>;
updateRunCache(args: UpdateRunCacheCommandInput, cb: (err: any, data?: UpdateRunCacheCommandOutput) => void): void;
updateRunCache(
args: UpdateRunCacheCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: UpdateRunCacheCommandOutput) => void
): void;

/**
* @see {@link UpdateRunGroupCommand}
*/
Expand Down
15 changes: 15 additions & 0 deletions clients/client-omics/src/OmicsClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ import {
CreateReferenceStoreCommandInput,
CreateReferenceStoreCommandOutput,
} from "./commands/CreateReferenceStoreCommand";
import { CreateRunCacheCommandInput, CreateRunCacheCommandOutput } from "./commands/CreateRunCacheCommand";
import { CreateRunGroupCommandInput, CreateRunGroupCommandOutput } from "./commands/CreateRunGroupCommand";
import {
CreateSequenceStoreCommandInput,
Expand All @@ -110,6 +111,7 @@ import {
DeleteReferenceStoreCommandInput,
DeleteReferenceStoreCommandOutput,
} from "./commands/DeleteReferenceStoreCommand";
import { DeleteRunCacheCommandInput, DeleteRunCacheCommandOutput } from "./commands/DeleteRunCacheCommand";
import { DeleteRunCommandInput, DeleteRunCommandOutput } from "./commands/DeleteRunCommand";
import { DeleteRunGroupCommandInput, DeleteRunGroupCommandOutput } from "./commands/DeleteRunGroupCommand";
import {
Expand Down Expand Up @@ -152,6 +154,7 @@ import {
GetReferenceMetadataCommandOutput,
} from "./commands/GetReferenceMetadataCommand";
import { GetReferenceStoreCommandInput, GetReferenceStoreCommandOutput } from "./commands/GetReferenceStoreCommand";
import { GetRunCacheCommandInput, GetRunCacheCommandOutput } from "./commands/GetRunCacheCommand";
import { GetRunCommandInput, GetRunCommandOutput } from "./commands/GetRunCommand";
import { GetRunGroupCommandInput, GetRunGroupCommandOutput } from "./commands/GetRunGroupCommand";
import { GetRunTaskCommandInput, GetRunTaskCommandOutput } from "./commands/GetRunTaskCommand";
Expand Down Expand Up @@ -205,6 +208,7 @@ import {
ListReferenceStoresCommandInput,
ListReferenceStoresCommandOutput,
} from "./commands/ListReferenceStoresCommand";
import { ListRunCachesCommandInput, ListRunCachesCommandOutput } from "./commands/ListRunCachesCommand";
import { ListRunGroupsCommandInput, ListRunGroupsCommandOutput } from "./commands/ListRunGroupsCommand";
import { ListRunsCommandInput, ListRunsCommandOutput } from "./commands/ListRunsCommand";
import { ListRunTasksCommandInput, ListRunTasksCommandOutput } from "./commands/ListRunTasksCommand";
Expand Down Expand Up @@ -255,6 +259,7 @@ import {
UpdateAnnotationStoreVersionCommandInput,
UpdateAnnotationStoreVersionCommandOutput,
} from "./commands/UpdateAnnotationStoreVersionCommand";
import { UpdateRunCacheCommandInput, UpdateRunCacheCommandOutput } from "./commands/UpdateRunCacheCommand";
import { UpdateRunGroupCommandInput, UpdateRunGroupCommandOutput } from "./commands/UpdateRunGroupCommand";
import { UpdateVariantStoreCommandInput, UpdateVariantStoreCommandOutput } from "./commands/UpdateVariantStoreCommand";
import { UpdateWorkflowCommandInput, UpdateWorkflowCommandOutput } from "./commands/UpdateWorkflowCommand";
Expand Down Expand Up @@ -285,6 +290,7 @@ export type ServiceInputTypes =
| CreateAnnotationStoreVersionCommandInput
| CreateMultipartReadSetUploadCommandInput
| CreateReferenceStoreCommandInput
| CreateRunCacheCommandInput
| CreateRunGroupCommandInput
| CreateSequenceStoreCommandInput
| CreateShareCommandInput
Expand All @@ -294,6 +300,7 @@ export type ServiceInputTypes =
| DeleteAnnotationStoreVersionsCommandInput
| DeleteReferenceCommandInput
| DeleteReferenceStoreCommandInput
| DeleteRunCacheCommandInput
| DeleteRunCommandInput
| DeleteRunGroupCommandInput
| DeleteSequenceStoreCommandInput
Expand All @@ -312,6 +319,7 @@ export type ServiceInputTypes =
| GetReferenceImportJobCommandInput
| GetReferenceMetadataCommandInput
| GetReferenceStoreCommandInput
| GetRunCacheCommandInput
| GetRunCommandInput
| GetRunGroupCommandInput
| GetRunTaskCommandInput
Expand All @@ -332,6 +340,7 @@ export type ServiceInputTypes =
| ListReferenceImportJobsCommandInput
| ListReferenceStoresCommandInput
| ListReferencesCommandInput
| ListRunCachesCommandInput
| ListRunGroupsCommandInput
| ListRunTasksCommandInput
| ListRunsCommandInput
Expand All @@ -352,6 +361,7 @@ export type ServiceInputTypes =
| UntagResourceCommandInput
| UpdateAnnotationStoreCommandInput
| UpdateAnnotationStoreVersionCommandInput
| UpdateRunCacheCommandInput
| UpdateRunGroupCommandInput
| UpdateVariantStoreCommandInput
| UpdateWorkflowCommandInput
Expand All @@ -372,6 +382,7 @@ export type ServiceOutputTypes =
| CreateAnnotationStoreVersionCommandOutput
| CreateMultipartReadSetUploadCommandOutput
| CreateReferenceStoreCommandOutput
| CreateRunCacheCommandOutput
| CreateRunGroupCommandOutput
| CreateSequenceStoreCommandOutput
| CreateShareCommandOutput
Expand All @@ -381,6 +392,7 @@ export type ServiceOutputTypes =
| DeleteAnnotationStoreVersionsCommandOutput
| DeleteReferenceCommandOutput
| DeleteReferenceStoreCommandOutput
| DeleteRunCacheCommandOutput
| DeleteRunCommandOutput
| DeleteRunGroupCommandOutput
| DeleteSequenceStoreCommandOutput
Expand All @@ -399,6 +411,7 @@ export type ServiceOutputTypes =
| GetReferenceImportJobCommandOutput
| GetReferenceMetadataCommandOutput
| GetReferenceStoreCommandOutput
| GetRunCacheCommandOutput
| GetRunCommandOutput
| GetRunGroupCommandOutput
| GetRunTaskCommandOutput
Expand All @@ -419,6 +432,7 @@ export type ServiceOutputTypes =
| ListReferenceImportJobsCommandOutput
| ListReferenceStoresCommandOutput
| ListReferencesCommandOutput
| ListRunCachesCommandOutput
| ListRunGroupsCommandOutput
| ListRunTasksCommandOutput
| ListRunsCommandOutput
Expand All @@ -439,6 +453,7 @@ export type ServiceOutputTypes =
| UntagResourceCommandOutput
| UpdateAnnotationStoreCommandOutput
| UpdateAnnotationStoreVersionCommandOutput
| UpdateRunCacheCommandOutput
| UpdateRunGroupCommandOutput
| UpdateVariantStoreCommandOutput
| UpdateWorkflowCommandOutput
Expand Down
Loading

0 comments on commit ede3768

Please sign in to comment.