Skip to content

Commit

Permalink
feat(client-omics): This release adds support for resource policy bas…
Browse files Browse the repository at this point in the history
…ed cross account S3 access to sequence store read sets.
  • Loading branch information
awstools committed Nov 22, 2024
1 parent 5e46efc commit dbe3f07
Show file tree
Hide file tree
Showing 14 changed files with 2,004 additions and 32 deletions.
32 changes: 32 additions & 0 deletions clients/client-omics/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,14 @@ DeleteRunGroup

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

</details>
<details>
<summary>
DeleteS3AccessPolicy
</summary>

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

</details>
<details>
<summary>
Expand Down Expand Up @@ -555,6 +563,14 @@ GetRunTask

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

</details>
<details>
<summary>
GetS3AccessPolicy
</summary>

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

</details>
<details>
<summary>
Expand Down Expand Up @@ -771,6 +787,14 @@ ListWorkflows

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

</details>
<details>
<summary>
PutS3AccessPolicy
</summary>

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

</details>
<details>
<summary>
Expand Down Expand Up @@ -875,6 +899,14 @@ UpdateRunGroup

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

</details>
<details>
<summary>
UpdateSequenceStore
</summary>

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

</details>
<details>
<summary>
Expand Down
92 changes: 92 additions & 0 deletions clients/client-omics/src/Omics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ import {
DeleteRunGroupCommandInput,
DeleteRunGroupCommandOutput,
} from "./commands/DeleteRunGroupCommand";
import {
DeleteS3AccessPolicyCommand,
DeleteS3AccessPolicyCommandInput,
DeleteS3AccessPolicyCommandOutput,
} from "./commands/DeleteS3AccessPolicyCommand";
import {
DeleteSequenceStoreCommand,
DeleteSequenceStoreCommandInput,
Expand Down Expand Up @@ -182,6 +187,11 @@ import { GetRunCacheCommand, GetRunCacheCommandInput, GetRunCacheCommandOutput }
import { GetRunCommand, GetRunCommandInput, GetRunCommandOutput } from "./commands/GetRunCommand";
import { GetRunGroupCommand, GetRunGroupCommandInput, GetRunGroupCommandOutput } from "./commands/GetRunGroupCommand";
import { GetRunTaskCommand, GetRunTaskCommandInput, GetRunTaskCommandOutput } from "./commands/GetRunTaskCommand";
import {
GetS3AccessPolicyCommand,
GetS3AccessPolicyCommandInput,
GetS3AccessPolicyCommandOutput,
} from "./commands/GetS3AccessPolicyCommand";
import {
GetSequenceStoreCommand,
GetSequenceStoreCommandInput,
Expand Down Expand Up @@ -301,6 +311,11 @@ import {
ListWorkflowsCommandInput,
ListWorkflowsCommandOutput,
} from "./commands/ListWorkflowsCommand";
import {
PutS3AccessPolicyCommand,
PutS3AccessPolicyCommandInput,
PutS3AccessPolicyCommandOutput,
} from "./commands/PutS3AccessPolicyCommand";
import {
StartAnnotationImportJobCommand,
StartAnnotationImportJobCommandInput,
Expand Down Expand Up @@ -358,6 +373,11 @@ import {
UpdateRunGroupCommandInput,
UpdateRunGroupCommandOutput,
} from "./commands/UpdateRunGroupCommand";
import {
UpdateSequenceStoreCommand,
UpdateSequenceStoreCommandInput,
UpdateSequenceStoreCommandOutput,
} from "./commands/UpdateSequenceStoreCommand";
import {
UpdateVariantStoreCommand,
UpdateVariantStoreCommandInput,
Expand Down Expand Up @@ -400,6 +420,7 @@ const commands = {
DeleteRunCommand,
DeleteRunCacheCommand,
DeleteRunGroupCommand,
DeleteS3AccessPolicyCommand,
DeleteSequenceStoreCommand,
DeleteShareCommand,
DeleteVariantStoreCommand,
Expand All @@ -420,6 +441,7 @@ const commands = {
GetRunCacheCommand,
GetRunGroupCommand,
GetRunTaskCommand,
GetS3AccessPolicyCommand,
GetSequenceStoreCommand,
GetShareCommand,
GetVariantImportJobCommand,
Expand Down Expand Up @@ -447,6 +469,7 @@ const commands = {
ListVariantImportJobsCommand,
ListVariantStoresCommand,
ListWorkflowsCommand,
PutS3AccessPolicyCommand,
StartAnnotationImportJobCommand,
StartReadSetActivationJobCommand,
StartReadSetExportJobCommand,
Expand All @@ -460,6 +483,7 @@ const commands = {
UpdateAnnotationStoreVersionCommand,
UpdateRunCacheCommand,
UpdateRunGroupCommand,
UpdateSequenceStoreCommand,
UpdateVariantStoreCommand,
UpdateWorkflowCommand,
UploadReadSetPartCommand,
Expand Down Expand Up @@ -832,6 +856,23 @@ export interface Omics {
cb: (err: any, data?: DeleteRunGroupCommandOutput) => void
): void;

/**
* @see {@link DeleteS3AccessPolicyCommand}
*/
deleteS3AccessPolicy(
args: DeleteS3AccessPolicyCommandInput,
options?: __HttpHandlerOptions
): Promise<DeleteS3AccessPolicyCommandOutput>;
deleteS3AccessPolicy(
args: DeleteS3AccessPolicyCommandInput,
cb: (err: any, data?: DeleteS3AccessPolicyCommandOutput) => void
): void;
deleteS3AccessPolicy(
args: DeleteS3AccessPolicyCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: DeleteS3AccessPolicyCommandOutput) => void
): void;

/**
* @see {@link DeleteSequenceStoreCommand}
*/
Expand Down Expand Up @@ -1127,6 +1168,23 @@ export interface Omics {
cb: (err: any, data?: GetRunTaskCommandOutput) => void
): void;

/**
* @see {@link GetS3AccessPolicyCommand}
*/
getS3AccessPolicy(
args: GetS3AccessPolicyCommandInput,
options?: __HttpHandlerOptions
): Promise<GetS3AccessPolicyCommandOutput>;
getS3AccessPolicy(
args: GetS3AccessPolicyCommandInput,
cb: (err: any, data?: GetS3AccessPolicyCommandOutput) => void
): void;
getS3AccessPolicy(
args: GetS3AccessPolicyCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: GetS3AccessPolicyCommandOutput) => void
): void;

/**
* @see {@link GetSequenceStoreCommand}
*/
Expand Down Expand Up @@ -1536,6 +1594,23 @@ export interface Omics {
cb: (err: any, data?: ListWorkflowsCommandOutput) => void
): void;

/**
* @see {@link PutS3AccessPolicyCommand}
*/
putS3AccessPolicy(
args: PutS3AccessPolicyCommandInput,
options?: __HttpHandlerOptions
): Promise<PutS3AccessPolicyCommandOutput>;
putS3AccessPolicy(
args: PutS3AccessPolicyCommandInput,
cb: (err: any, data?: PutS3AccessPolicyCommandOutput) => void
): void;
putS3AccessPolicy(
args: PutS3AccessPolicyCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: PutS3AccessPolicyCommandOutput) => void
): void;

/**
* @see {@link StartAnnotationImportJobCommand}
*/
Expand Down Expand Up @@ -1733,6 +1808,23 @@ export interface Omics {
cb: (err: any, data?: UpdateRunGroupCommandOutput) => void
): void;

/**
* @see {@link UpdateSequenceStoreCommand}
*/
updateSequenceStore(
args: UpdateSequenceStoreCommandInput,
options?: __HttpHandlerOptions
): Promise<UpdateSequenceStoreCommandOutput>;
updateSequenceStore(
args: UpdateSequenceStoreCommandInput,
cb: (err: any, data?: UpdateSequenceStoreCommandOutput) => void
): void;
updateSequenceStore(
args: UpdateSequenceStoreCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: UpdateSequenceStoreCommandOutput) => void
): void;

/**
* @see {@link UpdateVariantStoreCommand}
*/
Expand Down
18 changes: 18 additions & 0 deletions clients/client-omics/src/OmicsClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,10 @@ import {
import { DeleteRunCacheCommandInput, DeleteRunCacheCommandOutput } from "./commands/DeleteRunCacheCommand";
import { DeleteRunCommandInput, DeleteRunCommandOutput } from "./commands/DeleteRunCommand";
import { DeleteRunGroupCommandInput, DeleteRunGroupCommandOutput } from "./commands/DeleteRunGroupCommand";
import {
DeleteS3AccessPolicyCommandInput,
DeleteS3AccessPolicyCommandOutput,
} from "./commands/DeleteS3AccessPolicyCommand";
import {
DeleteSequenceStoreCommandInput,
DeleteSequenceStoreCommandOutput,
Expand Down Expand Up @@ -158,6 +162,7 @@ import { GetRunCacheCommandInput, GetRunCacheCommandOutput } from "./commands/Ge
import { GetRunCommandInput, GetRunCommandOutput } from "./commands/GetRunCommand";
import { GetRunGroupCommandInput, GetRunGroupCommandOutput } from "./commands/GetRunGroupCommand";
import { GetRunTaskCommandInput, GetRunTaskCommandOutput } from "./commands/GetRunTaskCommand";
import { GetS3AccessPolicyCommandInput, GetS3AccessPolicyCommandOutput } from "./commands/GetS3AccessPolicyCommand";
import { GetSequenceStoreCommandInput, GetSequenceStoreCommandOutput } from "./commands/GetSequenceStoreCommand";
import { GetShareCommandInput, GetShareCommandOutput } from "./commands/GetShareCommand";
import {
Expand Down Expand Up @@ -224,6 +229,7 @@ import {
} from "./commands/ListVariantImportJobsCommand";
import { ListVariantStoresCommandInput, ListVariantStoresCommandOutput } from "./commands/ListVariantStoresCommand";
import { ListWorkflowsCommandInput, ListWorkflowsCommandOutput } from "./commands/ListWorkflowsCommand";
import { PutS3AccessPolicyCommandInput, PutS3AccessPolicyCommandOutput } from "./commands/PutS3AccessPolicyCommand";
import {
StartAnnotationImportJobCommandInput,
StartAnnotationImportJobCommandOutput,
Expand Down Expand Up @@ -261,6 +267,10 @@ import {
} from "./commands/UpdateAnnotationStoreVersionCommand";
import { UpdateRunCacheCommandInput, UpdateRunCacheCommandOutput } from "./commands/UpdateRunCacheCommand";
import { UpdateRunGroupCommandInput, UpdateRunGroupCommandOutput } from "./commands/UpdateRunGroupCommand";
import {
UpdateSequenceStoreCommandInput,
UpdateSequenceStoreCommandOutput,
} from "./commands/UpdateSequenceStoreCommand";
import { UpdateVariantStoreCommandInput, UpdateVariantStoreCommandOutput } from "./commands/UpdateVariantStoreCommand";
import { UpdateWorkflowCommandInput, UpdateWorkflowCommandOutput } from "./commands/UpdateWorkflowCommand";
import { UploadReadSetPartCommandInput, UploadReadSetPartCommandOutput } from "./commands/UploadReadSetPartCommand";
Expand Down Expand Up @@ -303,6 +313,7 @@ export type ServiceInputTypes =
| DeleteRunCacheCommandInput
| DeleteRunCommandInput
| DeleteRunGroupCommandInput
| DeleteS3AccessPolicyCommandInput
| DeleteSequenceStoreCommandInput
| DeleteShareCommandInput
| DeleteVariantStoreCommandInput
Expand All @@ -323,6 +334,7 @@ export type ServiceInputTypes =
| GetRunCommandInput
| GetRunGroupCommandInput
| GetRunTaskCommandInput
| GetS3AccessPolicyCommandInput
| GetSequenceStoreCommandInput
| GetShareCommandInput
| GetVariantImportJobCommandInput
Expand Down Expand Up @@ -350,6 +362,7 @@ export type ServiceInputTypes =
| ListVariantImportJobsCommandInput
| ListVariantStoresCommandInput
| ListWorkflowsCommandInput
| PutS3AccessPolicyCommandInput
| StartAnnotationImportJobCommandInput
| StartReadSetActivationJobCommandInput
| StartReadSetExportJobCommandInput
Expand All @@ -363,6 +376,7 @@ export type ServiceInputTypes =
| UpdateAnnotationStoreVersionCommandInput
| UpdateRunCacheCommandInput
| UpdateRunGroupCommandInput
| UpdateSequenceStoreCommandInput
| UpdateVariantStoreCommandInput
| UpdateWorkflowCommandInput
| UploadReadSetPartCommandInput;
Expand Down Expand Up @@ -395,6 +409,7 @@ export type ServiceOutputTypes =
| DeleteRunCacheCommandOutput
| DeleteRunCommandOutput
| DeleteRunGroupCommandOutput
| DeleteS3AccessPolicyCommandOutput
| DeleteSequenceStoreCommandOutput
| DeleteShareCommandOutput
| DeleteVariantStoreCommandOutput
Expand All @@ -415,6 +430,7 @@ export type ServiceOutputTypes =
| GetRunCommandOutput
| GetRunGroupCommandOutput
| GetRunTaskCommandOutput
| GetS3AccessPolicyCommandOutput
| GetSequenceStoreCommandOutput
| GetShareCommandOutput
| GetVariantImportJobCommandOutput
Expand Down Expand Up @@ -442,6 +458,7 @@ export type ServiceOutputTypes =
| ListVariantImportJobsCommandOutput
| ListVariantStoresCommandOutput
| ListWorkflowsCommandOutput
| PutS3AccessPolicyCommandOutput
| StartAnnotationImportJobCommandOutput
| StartReadSetActivationJobCommandOutput
| StartReadSetExportJobCommandOutput
Expand All @@ -455,6 +472,7 @@ export type ServiceOutputTypes =
| UpdateAnnotationStoreVersionCommandOutput
| UpdateRunCacheCommandOutput
| UpdateRunGroupCommandOutput
| UpdateSequenceStoreCommandOutput
| UpdateVariantStoreCommandOutput
| UpdateWorkflowCommandOutput
| UploadReadSetPartCommandOutput;
Expand Down
16 changes: 16 additions & 0 deletions clients/client-omics/src/commands/CreateSequenceStoreCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ export interface CreateSequenceStoreCommandOutput extends CreateSequenceStoreRes
* clientToken: "STRING_VALUE",
* fallbackLocation: "STRING_VALUE",
* eTagAlgorithmFamily: "STRING_VALUE",
* propagatedSetLevelTags: [ // PropagatedSetLevelTags
* "STRING_VALUE",
* ],
* s3AccessConfig: { // S3AccessConfig
* accessLogLocation: "STRING_VALUE",
* },
* };
* const command = new CreateSequenceStoreCommand(input);
* const response = await client.send(command);
Expand All @@ -63,6 +69,16 @@ export interface CreateSequenceStoreCommandOutput extends CreateSequenceStoreRes
* // creationTime: new Date("TIMESTAMP"), // required
* // fallbackLocation: "STRING_VALUE",
* // eTagAlgorithmFamily: "STRING_VALUE",
* // status: "STRING_VALUE",
* // statusMessage: "STRING_VALUE",
* // propagatedSetLevelTags: [ // PropagatedSetLevelTags
* // "STRING_VALUE",
* // ],
* // s3Access: { // SequenceStoreS3Access
* // s3Uri: "STRING_VALUE",
* // s3AccessPointArn: "STRING_VALUE",
* // accessLogLocation: "STRING_VALUE",
* // },
* // };
*
* ```
Expand Down
Loading

0 comments on commit dbe3f07

Please sign in to comment.