diff --git a/clients/client-omics/README.md b/clients/client-omics/README.md index 9131c2ca10df4..43f5380f0aa37 100644 --- a/clients/client-omics/README.md +++ b/clients/client-omics/README.md @@ -211,6 +211,14 @@ AbortMultipartReadSetUpload [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-omics/classes/abortmultipartreadsetuploadcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-omics/interfaces/abortmultipartreadsetuploadcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-omics/interfaces/abortmultipartreadsetuploadcommandoutput.html) + +
+ +AcceptShare + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-omics/classes/acceptsharecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-omics/interfaces/acceptsharecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-omics/interfaces/acceptsharecommandoutput.html) +
@@ -259,6 +267,14 @@ CreateAnnotationStore [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-omics/classes/createannotationstorecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-omics/interfaces/createannotationstorecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-omics/interfaces/createannotationstorecommandoutput.html) +
+
+ +CreateAnnotationStoreVersion + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-omics/classes/createannotationstoreversioncommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-omics/interfaces/createannotationstoreversioncommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-omics/interfaces/createannotationstoreversioncommandoutput.html) +
@@ -291,6 +307,14 @@ CreateSequenceStore [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-omics/classes/createsequencestorecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-omics/interfaces/createsequencestorecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-omics/interfaces/createsequencestorecommandoutput.html) +
+
+ +CreateShare + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-omics/classes/createsharecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-omics/interfaces/createsharecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-omics/interfaces/createsharecommandoutput.html) +
@@ -315,6 +339,14 @@ DeleteAnnotationStore [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-omics/classes/deleteannotationstorecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-omics/interfaces/deleteannotationstorecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-omics/interfaces/deleteannotationstorecommandoutput.html) +
+
+ +DeleteAnnotationStoreVersions + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-omics/classes/deleteannotationstoreversionscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-omics/interfaces/deleteannotationstoreversionscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-omics/interfaces/deleteannotationstoreversionscommandoutput.html) +
@@ -355,6 +387,14 @@ DeleteSequenceStore [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-omics/classes/deletesequencestorecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-omics/interfaces/deletesequencestorecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-omics/interfaces/deletesequencestorecommandoutput.html) +
+
+ +DeleteShare + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-omics/classes/deletesharecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-omics/interfaces/deletesharecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-omics/interfaces/deletesharecommandoutput.html) +
@@ -387,6 +427,14 @@ GetAnnotationStore [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-omics/classes/getannotationstorecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-omics/interfaces/getannotationstorecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-omics/interfaces/getannotationstorecommandoutput.html) +
+
+ +GetAnnotationStoreVersion + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-omics/classes/getannotationstoreversioncommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-omics/interfaces/getannotationstoreversioncommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-omics/interfaces/getannotationstoreversioncommandoutput.html) +
@@ -491,6 +539,14 @@ GetSequenceStore [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-omics/classes/getsequencestorecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-omics/interfaces/getsequencestorecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-omics/interfaces/getsequencestorecommandoutput.html) +
+
+ +GetShare + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-omics/classes/getsharecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-omics/interfaces/getsharecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-omics/interfaces/getsharecommandoutput.html) +
@@ -531,6 +587,14 @@ ListAnnotationStores [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-omics/classes/listannotationstorescommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-omics/interfaces/listannotationstorescommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-omics/interfaces/listannotationstorescommandoutput.html) +
+
+ +ListAnnotationStoreVersions + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-omics/classes/listannotationstoreversionscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-omics/interfaces/listannotationstoreversionscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-omics/interfaces/listannotationstoreversionscommandoutput.html) +
@@ -635,6 +699,14 @@ ListSequenceStores [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-omics/classes/listsequencestorescommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-omics/interfaces/listsequencestorescommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-omics/interfaces/listsequencestorescommandoutput.html) +
+
+ +ListShares + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-omics/classes/listsharescommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-omics/interfaces/listsharescommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-omics/interfaces/listsharescommandoutput.html) +
@@ -747,6 +819,14 @@ UpdateAnnotationStore [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-omics/classes/updateannotationstorecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-omics/interfaces/updateannotationstorecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-omics/interfaces/updateannotationstorecommandoutput.html) +
+
+ +UpdateAnnotationStoreVersion + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-omics/classes/updateannotationstoreversioncommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-omics/interfaces/updateannotationstoreversioncommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-omics/interfaces/updateannotationstoreversioncommandoutput.html) +
diff --git a/clients/client-omics/src/Omics.ts b/clients/client-omics/src/Omics.ts index 4136375adfa10..e2c1ba2b077e7 100644 --- a/clients/client-omics/src/Omics.ts +++ b/clients/client-omics/src/Omics.ts @@ -7,6 +7,7 @@ import { AbortMultipartReadSetUploadCommandInput, AbortMultipartReadSetUploadCommandOutput, } from "./commands/AbortMultipartReadSetUploadCommand"; +import { AcceptShareCommand, AcceptShareCommandInput, AcceptShareCommandOutput } from "./commands/AcceptShareCommand"; import { BatchDeleteReadSetCommand, BatchDeleteReadSetCommandInput, @@ -33,6 +34,11 @@ import { CreateAnnotationStoreCommandInput, CreateAnnotationStoreCommandOutput, } from "./commands/CreateAnnotationStoreCommand"; +import { + CreateAnnotationStoreVersionCommand, + CreateAnnotationStoreVersionCommandInput, + CreateAnnotationStoreVersionCommandOutput, +} from "./commands/CreateAnnotationStoreVersionCommand"; import { CreateMultipartReadSetUploadCommand, CreateMultipartReadSetUploadCommandInput, @@ -53,6 +59,7 @@ import { CreateSequenceStoreCommandInput, CreateSequenceStoreCommandOutput, } from "./commands/CreateSequenceStoreCommand"; +import { CreateShareCommand, CreateShareCommandInput, CreateShareCommandOutput } from "./commands/CreateShareCommand"; import { CreateVariantStoreCommand, CreateVariantStoreCommandInput, @@ -68,6 +75,11 @@ import { DeleteAnnotationStoreCommandInput, DeleteAnnotationStoreCommandOutput, } from "./commands/DeleteAnnotationStoreCommand"; +import { + DeleteAnnotationStoreVersionsCommand, + DeleteAnnotationStoreVersionsCommandInput, + DeleteAnnotationStoreVersionsCommandOutput, +} from "./commands/DeleteAnnotationStoreVersionsCommand"; import { DeleteReferenceCommand, DeleteReferenceCommandInput, @@ -89,6 +101,7 @@ import { DeleteSequenceStoreCommandInput, DeleteSequenceStoreCommandOutput, } from "./commands/DeleteSequenceStoreCommand"; +import { DeleteShareCommand, DeleteShareCommandInput, DeleteShareCommandOutput } from "./commands/DeleteShareCommand"; import { DeleteVariantStoreCommand, DeleteVariantStoreCommandInput, @@ -109,6 +122,11 @@ import { GetAnnotationStoreCommandInput, GetAnnotationStoreCommandOutput, } from "./commands/GetAnnotationStoreCommand"; +import { + GetAnnotationStoreVersionCommand, + GetAnnotationStoreVersionCommandInput, + GetAnnotationStoreVersionCommandOutput, +} from "./commands/GetAnnotationStoreVersionCommand"; import { GetReadSetActivationJobCommand, GetReadSetActivationJobCommandInput, @@ -158,6 +176,7 @@ import { GetSequenceStoreCommandInput, GetSequenceStoreCommandOutput, } from "./commands/GetSequenceStoreCommand"; +import { GetShareCommand, GetShareCommandInput, GetShareCommandOutput } from "./commands/GetShareCommand"; import { GetVariantImportJobCommand, GetVariantImportJobCommandInput, @@ -179,6 +198,11 @@ import { ListAnnotationStoresCommandInput, ListAnnotationStoresCommandOutput, } from "./commands/ListAnnotationStoresCommand"; +import { + ListAnnotationStoreVersionsCommand, + ListAnnotationStoreVersionsCommandInput, + ListAnnotationStoreVersionsCommandOutput, +} from "./commands/ListAnnotationStoreVersionsCommand"; import { ListMultipartReadSetUploadsCommand, ListMultipartReadSetUploadsCommandInput, @@ -240,6 +264,7 @@ import { ListSequenceStoresCommandInput, ListSequenceStoresCommandOutput, } from "./commands/ListSequenceStoresCommand"; +import { ListSharesCommand, ListSharesCommandInput, ListSharesCommandOutput } from "./commands/ListSharesCommand"; import { ListTagsForResourceCommand, ListTagsForResourceCommandInput, @@ -302,6 +327,11 @@ import { UpdateAnnotationStoreCommandInput, UpdateAnnotationStoreCommandOutput, } from "./commands/UpdateAnnotationStoreCommand"; +import { + UpdateAnnotationStoreVersionCommand, + UpdateAnnotationStoreVersionCommandInput, + UpdateAnnotationStoreVersionCommandOutput, +} from "./commands/UpdateAnnotationStoreVersionCommand"; import { UpdateRunGroupCommand, UpdateRunGroupCommandInput, @@ -326,28 +356,34 @@ import { OmicsClient, OmicsClientConfig } from "./OmicsClient"; const commands = { AbortMultipartReadSetUploadCommand, + AcceptShareCommand, BatchDeleteReadSetCommand, CancelAnnotationImportJobCommand, CancelRunCommand, CancelVariantImportJobCommand, CompleteMultipartReadSetUploadCommand, CreateAnnotationStoreCommand, + CreateAnnotationStoreVersionCommand, CreateMultipartReadSetUploadCommand, CreateReferenceStoreCommand, CreateRunGroupCommand, CreateSequenceStoreCommand, + CreateShareCommand, CreateVariantStoreCommand, CreateWorkflowCommand, DeleteAnnotationStoreCommand, + DeleteAnnotationStoreVersionsCommand, DeleteReferenceCommand, DeleteReferenceStoreCommand, DeleteRunCommand, DeleteRunGroupCommand, DeleteSequenceStoreCommand, + DeleteShareCommand, DeleteVariantStoreCommand, DeleteWorkflowCommand, GetAnnotationImportJobCommand, GetAnnotationStoreCommand, + GetAnnotationStoreVersionCommand, GetReadSetCommand, GetReadSetActivationJobCommand, GetReadSetExportJobCommand, @@ -361,11 +397,13 @@ const commands = { GetRunGroupCommand, GetRunTaskCommand, GetSequenceStoreCommand, + GetShareCommand, GetVariantImportJobCommand, GetVariantStoreCommand, GetWorkflowCommand, ListAnnotationImportJobsCommand, ListAnnotationStoresCommand, + ListAnnotationStoreVersionsCommand, ListMultipartReadSetUploadsCommand, ListReadSetActivationJobsCommand, ListReadSetExportJobsCommand, @@ -379,6 +417,7 @@ const commands = { ListRunsCommand, ListRunTasksCommand, ListSequenceStoresCommand, + ListSharesCommand, ListTagsForResourceCommand, ListVariantImportJobsCommand, ListVariantStoresCommand, @@ -393,6 +432,7 @@ const commands = { TagResourceCommand, UntagResourceCommand, UpdateAnnotationStoreCommand, + UpdateAnnotationStoreVersionCommand, UpdateRunGroupCommand, UpdateVariantStoreCommand, UpdateWorkflowCommand, @@ -417,6 +457,17 @@ export interface Omics { cb: (err: any, data?: AbortMultipartReadSetUploadCommandOutput) => void ): void; + /** + * @see {@link AcceptShareCommand} + */ + acceptShare(args: AcceptShareCommandInput, options?: __HttpHandlerOptions): Promise; + acceptShare(args: AcceptShareCommandInput, cb: (err: any, data?: AcceptShareCommandOutput) => void): void; + acceptShare( + args: AcceptShareCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: AcceptShareCommandOutput) => void + ): void; + /** * @see {@link BatchDeleteReadSetCommand} */ @@ -513,6 +564,23 @@ export interface Omics { cb: (err: any, data?: CreateAnnotationStoreCommandOutput) => void ): void; + /** + * @see {@link CreateAnnotationStoreVersionCommand} + */ + createAnnotationStoreVersion( + args: CreateAnnotationStoreVersionCommandInput, + options?: __HttpHandlerOptions + ): Promise; + createAnnotationStoreVersion( + args: CreateAnnotationStoreVersionCommandInput, + cb: (err: any, data?: CreateAnnotationStoreVersionCommandOutput) => void + ): void; + createAnnotationStoreVersion( + args: CreateAnnotationStoreVersionCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: CreateAnnotationStoreVersionCommandOutput) => void + ): void; + /** * @see {@link CreateMultipartReadSetUploadCommand} */ @@ -578,6 +646,17 @@ export interface Omics { cb: (err: any, data?: CreateSequenceStoreCommandOutput) => void ): void; + /** + * @see {@link CreateShareCommand} + */ + createShare(args: CreateShareCommandInput, options?: __HttpHandlerOptions): Promise; + createShare(args: CreateShareCommandInput, cb: (err: any, data?: CreateShareCommandOutput) => void): void; + createShare( + args: CreateShareCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: CreateShareCommandOutput) => void + ): void; + /** * @see {@link CreateVariantStoreCommand} */ @@ -626,6 +705,23 @@ export interface Omics { cb: (err: any, data?: DeleteAnnotationStoreCommandOutput) => void ): void; + /** + * @see {@link DeleteAnnotationStoreVersionsCommand} + */ + deleteAnnotationStoreVersions( + args: DeleteAnnotationStoreVersionsCommandInput, + options?: __HttpHandlerOptions + ): Promise; + deleteAnnotationStoreVersions( + args: DeleteAnnotationStoreVersionsCommandInput, + cb: (err: any, data?: DeleteAnnotationStoreVersionsCommandOutput) => void + ): void; + deleteAnnotationStoreVersions( + args: DeleteAnnotationStoreVersionsCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DeleteAnnotationStoreVersionsCommandOutput) => void + ): void; + /** * @see {@link DeleteReferenceCommand} */ @@ -699,6 +795,17 @@ export interface Omics { cb: (err: any, data?: DeleteSequenceStoreCommandOutput) => void ): void; + /** + * @see {@link DeleteShareCommand} + */ + deleteShare(args: DeleteShareCommandInput, options?: __HttpHandlerOptions): Promise; + deleteShare(args: DeleteShareCommandInput, cb: (err: any, data?: DeleteShareCommandOutput) => void): void; + deleteShare( + args: DeleteShareCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DeleteShareCommandOutput) => void + ): void; + /** * @see {@link DeleteVariantStoreCommand} */ @@ -764,6 +871,23 @@ export interface Omics { cb: (err: any, data?: GetAnnotationStoreCommandOutput) => void ): void; + /** + * @see {@link GetAnnotationStoreVersionCommand} + */ + getAnnotationStoreVersion( + args: GetAnnotationStoreVersionCommandInput, + options?: __HttpHandlerOptions + ): Promise; + getAnnotationStoreVersion( + args: GetAnnotationStoreVersionCommandInput, + cb: (err: any, data?: GetAnnotationStoreVersionCommandOutput) => void + ): void; + getAnnotationStoreVersion( + args: GetAnnotationStoreVersionCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: GetAnnotationStoreVersionCommandOutput) => void + ): void; + /** * @see {@link GetReadSetCommand} */ @@ -955,6 +1079,17 @@ export interface Omics { cb: (err: any, data?: GetSequenceStoreCommandOutput) => void ): void; + /** + * @see {@link GetShareCommand} + */ + getShare(args: GetShareCommandInput, options?: __HttpHandlerOptions): Promise; + getShare(args: GetShareCommandInput, cb: (err: any, data?: GetShareCommandOutput) => void): void; + getShare( + args: GetShareCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: GetShareCommandOutput) => void + ): void; + /** * @see {@link GetVariantImportJobCommand} */ @@ -1031,6 +1166,23 @@ export interface Omics { cb: (err: any, data?: ListAnnotationStoresCommandOutput) => void ): void; + /** + * @see {@link ListAnnotationStoreVersionsCommand} + */ + listAnnotationStoreVersions( + args: ListAnnotationStoreVersionsCommandInput, + options?: __HttpHandlerOptions + ): Promise; + listAnnotationStoreVersions( + args: ListAnnotationStoreVersionsCommandInput, + cb: (err: any, data?: ListAnnotationStoreVersionsCommandOutput) => void + ): void; + listAnnotationStoreVersions( + args: ListAnnotationStoreVersionsCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: ListAnnotationStoreVersionsCommandOutput) => void + ): void; + /** * @see {@link ListMultipartReadSetUploadsCommand} */ @@ -1225,6 +1377,17 @@ export interface Omics { cb: (err: any, data?: ListSequenceStoresCommandOutput) => void ): void; + /** + * @see {@link ListSharesCommand} + */ + listShares(args: ListSharesCommandInput, options?: __HttpHandlerOptions): Promise; + listShares(args: ListSharesCommandInput, cb: (err: any, data?: ListSharesCommandOutput) => void): void; + listShares( + args: ListSharesCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: ListSharesCommandOutput) => void + ): void; + /** * @see {@link ListTagsForResourceCommand} */ @@ -1439,6 +1602,23 @@ export interface Omics { cb: (err: any, data?: UpdateAnnotationStoreCommandOutput) => void ): void; + /** + * @see {@link UpdateAnnotationStoreVersionCommand} + */ + updateAnnotationStoreVersion( + args: UpdateAnnotationStoreVersionCommandInput, + options?: __HttpHandlerOptions + ): Promise; + updateAnnotationStoreVersion( + args: UpdateAnnotationStoreVersionCommandInput, + cb: (err: any, data?: UpdateAnnotationStoreVersionCommandOutput) => void + ): void; + updateAnnotationStoreVersion( + args: UpdateAnnotationStoreVersionCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: UpdateAnnotationStoreVersionCommandOutput) => void + ): void; + /** * @see {@link UpdateRunGroupCommand} */ diff --git a/clients/client-omics/src/OmicsClient.ts b/clients/client-omics/src/OmicsClient.ts index 19399c2ecd00d..70abf03c2f386 100644 --- a/clients/client-omics/src/OmicsClient.ts +++ b/clients/client-omics/src/OmicsClient.ts @@ -55,6 +55,7 @@ import { AbortMultipartReadSetUploadCommandInput, AbortMultipartReadSetUploadCommandOutput, } from "./commands/AbortMultipartReadSetUploadCommand"; +import { AcceptShareCommandInput, AcceptShareCommandOutput } from "./commands/AcceptShareCommand"; import { BatchDeleteReadSetCommandInput, BatchDeleteReadSetCommandOutput } from "./commands/BatchDeleteReadSetCommand"; import { CancelAnnotationImportJobCommandInput, @@ -73,6 +74,10 @@ import { CreateAnnotationStoreCommandInput, CreateAnnotationStoreCommandOutput, } from "./commands/CreateAnnotationStoreCommand"; +import { + CreateAnnotationStoreVersionCommandInput, + CreateAnnotationStoreVersionCommandOutput, +} from "./commands/CreateAnnotationStoreVersionCommand"; import { CreateMultipartReadSetUploadCommandInput, CreateMultipartReadSetUploadCommandOutput, @@ -86,12 +91,17 @@ import { CreateSequenceStoreCommandInput, CreateSequenceStoreCommandOutput, } from "./commands/CreateSequenceStoreCommand"; +import { CreateShareCommandInput, CreateShareCommandOutput } from "./commands/CreateShareCommand"; import { CreateVariantStoreCommandInput, CreateVariantStoreCommandOutput } from "./commands/CreateVariantStoreCommand"; import { CreateWorkflowCommandInput, CreateWorkflowCommandOutput } from "./commands/CreateWorkflowCommand"; import { DeleteAnnotationStoreCommandInput, DeleteAnnotationStoreCommandOutput, } from "./commands/DeleteAnnotationStoreCommand"; +import { + DeleteAnnotationStoreVersionsCommandInput, + DeleteAnnotationStoreVersionsCommandOutput, +} from "./commands/DeleteAnnotationStoreVersionsCommand"; import { DeleteReferenceCommandInput, DeleteReferenceCommandOutput } from "./commands/DeleteReferenceCommand"; import { DeleteReferenceStoreCommandInput, @@ -103,6 +113,7 @@ import { DeleteSequenceStoreCommandInput, DeleteSequenceStoreCommandOutput, } from "./commands/DeleteSequenceStoreCommand"; +import { DeleteShareCommandInput, DeleteShareCommandOutput } from "./commands/DeleteShareCommand"; import { DeleteVariantStoreCommandInput, DeleteVariantStoreCommandOutput } from "./commands/DeleteVariantStoreCommand"; import { DeleteWorkflowCommandInput, DeleteWorkflowCommandOutput } from "./commands/DeleteWorkflowCommand"; import { @@ -110,6 +121,10 @@ import { GetAnnotationImportJobCommandOutput, } from "./commands/GetAnnotationImportJobCommand"; import { GetAnnotationStoreCommandInput, GetAnnotationStoreCommandOutput } from "./commands/GetAnnotationStoreCommand"; +import { + GetAnnotationStoreVersionCommandInput, + GetAnnotationStoreVersionCommandOutput, +} from "./commands/GetAnnotationStoreVersionCommand"; import { GetReadSetActivationJobCommandInput, GetReadSetActivationJobCommandOutput, @@ -138,6 +153,7 @@ import { GetRunCommandInput, GetRunCommandOutput } from "./commands/GetRunComman import { GetRunGroupCommandInput, GetRunGroupCommandOutput } from "./commands/GetRunGroupCommand"; import { GetRunTaskCommandInput, GetRunTaskCommandOutput } from "./commands/GetRunTaskCommand"; import { GetSequenceStoreCommandInput, GetSequenceStoreCommandOutput } from "./commands/GetSequenceStoreCommand"; +import { GetShareCommandInput, GetShareCommandOutput } from "./commands/GetShareCommand"; import { GetVariantImportJobCommandInput, GetVariantImportJobCommandOutput, @@ -152,6 +168,10 @@ import { ListAnnotationStoresCommandInput, ListAnnotationStoresCommandOutput, } from "./commands/ListAnnotationStoresCommand"; +import { + ListAnnotationStoreVersionsCommandInput, + ListAnnotationStoreVersionsCommandOutput, +} from "./commands/ListAnnotationStoreVersionsCommand"; import { ListMultipartReadSetUploadsCommandInput, ListMultipartReadSetUploadsCommandOutput, @@ -186,6 +206,7 @@ import { ListRunGroupsCommandInput, ListRunGroupsCommandOutput } from "./command import { ListRunsCommandInput, ListRunsCommandOutput } from "./commands/ListRunsCommand"; import { ListRunTasksCommandInput, ListRunTasksCommandOutput } from "./commands/ListRunTasksCommand"; import { ListSequenceStoresCommandInput, ListSequenceStoresCommandOutput } from "./commands/ListSequenceStoresCommand"; +import { ListSharesCommandInput, ListSharesCommandOutput } from "./commands/ListSharesCommand"; import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, @@ -227,6 +248,10 @@ import { UpdateAnnotationStoreCommandInput, UpdateAnnotationStoreCommandOutput, } from "./commands/UpdateAnnotationStoreCommand"; +import { + UpdateAnnotationStoreVersionCommandInput, + UpdateAnnotationStoreVersionCommandOutput, +} from "./commands/UpdateAnnotationStoreVersionCommand"; import { UpdateRunGroupCommandInput, UpdateRunGroupCommandOutput } from "./commands/UpdateRunGroupCommand"; import { UpdateVariantStoreCommandInput, UpdateVariantStoreCommandOutput } from "./commands/UpdateVariantStoreCommand"; import { UpdateWorkflowCommandInput, UpdateWorkflowCommandOutput } from "./commands/UpdateWorkflowCommand"; @@ -246,28 +271,34 @@ export { __Client }; */ export type ServiceInputTypes = | AbortMultipartReadSetUploadCommandInput + | AcceptShareCommandInput | BatchDeleteReadSetCommandInput | CancelAnnotationImportJobCommandInput | CancelRunCommandInput | CancelVariantImportJobCommandInput | CompleteMultipartReadSetUploadCommandInput | CreateAnnotationStoreCommandInput + | CreateAnnotationStoreVersionCommandInput | CreateMultipartReadSetUploadCommandInput | CreateReferenceStoreCommandInput | CreateRunGroupCommandInput | CreateSequenceStoreCommandInput + | CreateShareCommandInput | CreateVariantStoreCommandInput | CreateWorkflowCommandInput | DeleteAnnotationStoreCommandInput + | DeleteAnnotationStoreVersionsCommandInput | DeleteReferenceCommandInput | DeleteReferenceStoreCommandInput | DeleteRunCommandInput | DeleteRunGroupCommandInput | DeleteSequenceStoreCommandInput + | DeleteShareCommandInput | DeleteVariantStoreCommandInput | DeleteWorkflowCommandInput | GetAnnotationImportJobCommandInput | GetAnnotationStoreCommandInput + | GetAnnotationStoreVersionCommandInput | GetReadSetActivationJobCommandInput | GetReadSetCommandInput | GetReadSetExportJobCommandInput @@ -281,10 +312,12 @@ export type ServiceInputTypes = | GetRunGroupCommandInput | GetRunTaskCommandInput | GetSequenceStoreCommandInput + | GetShareCommandInput | GetVariantImportJobCommandInput | GetVariantStoreCommandInput | GetWorkflowCommandInput | ListAnnotationImportJobsCommandInput + | ListAnnotationStoreVersionsCommandInput | ListAnnotationStoresCommandInput | ListMultipartReadSetUploadsCommandInput | ListReadSetActivationJobsCommandInput @@ -299,6 +332,7 @@ export type ServiceInputTypes = | ListRunTasksCommandInput | ListRunsCommandInput | ListSequenceStoresCommandInput + | ListSharesCommandInput | ListTagsForResourceCommandInput | ListVariantImportJobsCommandInput | ListVariantStoresCommandInput @@ -313,6 +347,7 @@ export type ServiceInputTypes = | TagResourceCommandInput | UntagResourceCommandInput | UpdateAnnotationStoreCommandInput + | UpdateAnnotationStoreVersionCommandInput | UpdateRunGroupCommandInput | UpdateVariantStoreCommandInput | UpdateWorkflowCommandInput @@ -323,28 +358,34 @@ export type ServiceInputTypes = */ export type ServiceOutputTypes = | AbortMultipartReadSetUploadCommandOutput + | AcceptShareCommandOutput | BatchDeleteReadSetCommandOutput | CancelAnnotationImportJobCommandOutput | CancelRunCommandOutput | CancelVariantImportJobCommandOutput | CompleteMultipartReadSetUploadCommandOutput | CreateAnnotationStoreCommandOutput + | CreateAnnotationStoreVersionCommandOutput | CreateMultipartReadSetUploadCommandOutput | CreateReferenceStoreCommandOutput | CreateRunGroupCommandOutput | CreateSequenceStoreCommandOutput + | CreateShareCommandOutput | CreateVariantStoreCommandOutput | CreateWorkflowCommandOutput | DeleteAnnotationStoreCommandOutput + | DeleteAnnotationStoreVersionsCommandOutput | DeleteReferenceCommandOutput | DeleteReferenceStoreCommandOutput | DeleteRunCommandOutput | DeleteRunGroupCommandOutput | DeleteSequenceStoreCommandOutput + | DeleteShareCommandOutput | DeleteVariantStoreCommandOutput | DeleteWorkflowCommandOutput | GetAnnotationImportJobCommandOutput | GetAnnotationStoreCommandOutput + | GetAnnotationStoreVersionCommandOutput | GetReadSetActivationJobCommandOutput | GetReadSetCommandOutput | GetReadSetExportJobCommandOutput @@ -358,10 +399,12 @@ export type ServiceOutputTypes = | GetRunGroupCommandOutput | GetRunTaskCommandOutput | GetSequenceStoreCommandOutput + | GetShareCommandOutput | GetVariantImportJobCommandOutput | GetVariantStoreCommandOutput | GetWorkflowCommandOutput | ListAnnotationImportJobsCommandOutput + | ListAnnotationStoreVersionsCommandOutput | ListAnnotationStoresCommandOutput | ListMultipartReadSetUploadsCommandOutput | ListReadSetActivationJobsCommandOutput @@ -376,6 +419,7 @@ export type ServiceOutputTypes = | ListRunTasksCommandOutput | ListRunsCommandOutput | ListSequenceStoresCommandOutput + | ListSharesCommandOutput | ListTagsForResourceCommandOutput | ListVariantImportJobsCommandOutput | ListVariantStoresCommandOutput @@ -390,6 +434,7 @@ export type ServiceOutputTypes = | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAnnotationStoreCommandOutput + | UpdateAnnotationStoreVersionCommandOutput | UpdateRunGroupCommandOutput | UpdateVariantStoreCommandOutput | UpdateWorkflowCommandOutput diff --git a/clients/client-omics/src/commands/AcceptShareCommand.ts b/clients/client-omics/src/commands/AcceptShareCommand.ts new file mode 100644 index 0000000000000..a808fdab929d6 --- /dev/null +++ b/clients/client-omics/src/commands/AcceptShareCommand.ts @@ -0,0 +1,163 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@smithy/types"; + +import { AcceptShareRequest, AcceptShareResponse } from "../models/models_0"; +import { OmicsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OmicsClient"; +import { de_AcceptShareCommand, se_AcceptShareCommand } from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link AcceptShareCommand}. + */ +export interface AcceptShareCommandInput extends AcceptShareRequest {} +/** + * @public + * + * The output of {@link AcceptShareCommand}. + */ +export interface AcceptShareCommandOutput extends AcceptShareResponse, __MetadataBearer {} + +/** + * @public + *

+ * Accepts a share for an analytics store. + *

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { OmicsClient, AcceptShareCommand } from "@aws-sdk/client-omics"; // ES Modules import + * // const { OmicsClient, AcceptShareCommand } = require("@aws-sdk/client-omics"); // CommonJS import + * const client = new OmicsClient(config); + * const input = { // AcceptShareRequest + * shareId: "STRING_VALUE", // required + * }; + * const command = new AcceptShareCommand(input); + * const response = await client.send(command); + * // { // AcceptShareResponse + * // status: "STRING_VALUE", + * // }; + * + * ``` + * + * @param AcceptShareCommandInput - {@link AcceptShareCommandInput} + * @returns {@link AcceptShareCommandOutput} + * @see {@link AcceptShareCommandInput} for command's `input` shape. + * @see {@link AcceptShareCommandOutput} for command's `response` shape. + * @see {@link OmicsClientResolvedConfig | config} for OmicsClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

You do not have sufficient access to perform this action.

+ * + * @throws {@link ConflictException} (client fault) + *

The request cannot be applied to the target resource in its current state.

+ * + * @throws {@link InternalServerException} (server fault) + *

An unexpected error occurred. Try the request again.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

The target resource was not found in the current Region.

+ * + * @throws {@link ServiceQuotaExceededException} (client fault) + *

The request exceeds a service quota.

+ * + * @throws {@link ThrottlingException} (client fault) + *

The request was denied due to request throttling.

+ * + * @throws {@link ValidationException} (client fault) + *

The input fails to satisfy the constraints specified by an AWS service.

+ * + * @throws {@link OmicsServiceException} + *

Base exception class for all service exceptions from Omics service.

+ * + */ +export class AcceptShareCommand extends $Command< + AcceptShareCommandInput, + AcceptShareCommandOutput, + OmicsClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: AcceptShareCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: OmicsClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getEndpointPlugin(configuration, AcceptShareCommand.getEndpointParameterInstructions())); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "OmicsClient"; + const commandName = "AcceptShareCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: AcceptShareCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_AcceptShareCommand(input, context); + } + + /** + * @internal + */ + private deserialize(output: __HttpResponse, context: __SerdeContext): Promise { + return de_AcceptShareCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-omics/src/commands/CreateAnnotationStoreCommand.ts b/clients/client-omics/src/commands/CreateAnnotationStoreCommand.ts index 47369d08968f1..b970b7e149df2 100644 --- a/clients/client-omics/src/commands/CreateAnnotationStoreCommand.ts +++ b/clients/client-omics/src/commands/CreateAnnotationStoreCommand.ts @@ -52,6 +52,7 @@ export interface CreateAnnotationStoreCommandOutput extends CreateAnnotationStor * tags: { // TagMap * "": "STRING_VALUE", * }, + * versionName: "STRING_VALUE", * sseConfig: { // SseConfig * type: "STRING_VALUE", // required * keyArn: "STRING_VALUE", @@ -94,6 +95,7 @@ export interface CreateAnnotationStoreCommandOutput extends CreateAnnotationStor * // }, * // status: "STRING_VALUE", // required * // name: "STRING_VALUE", // required + * // versionName: "STRING_VALUE", // required * // creationTime: new Date("TIMESTAMP"), // required * // }; * diff --git a/clients/client-omics/src/commands/CreateAnnotationStoreVersionCommand.ts b/clients/client-omics/src/commands/CreateAnnotationStoreVersionCommand.ts new file mode 100644 index 0000000000000..89e0e7009c474 --- /dev/null +++ b/clients/client-omics/src/commands/CreateAnnotationStoreVersionCommand.ts @@ -0,0 +1,209 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@smithy/types"; + +import { CreateAnnotationStoreVersionRequest, CreateAnnotationStoreVersionResponse } from "../models/models_0"; +import { OmicsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OmicsClient"; +import { + de_CreateAnnotationStoreVersionCommand, + se_CreateAnnotationStoreVersionCommand, +} from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link CreateAnnotationStoreVersionCommand}. + */ +export interface CreateAnnotationStoreVersionCommandInput extends CreateAnnotationStoreVersionRequest {} +/** + * @public + * + * The output of {@link CreateAnnotationStoreVersionCommand}. + */ +export interface CreateAnnotationStoreVersionCommandOutput + extends CreateAnnotationStoreVersionResponse, + __MetadataBearer {} + +/** + * @public + *

+ * Creates a new version of an annotation store. + *

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { OmicsClient, CreateAnnotationStoreVersionCommand } from "@aws-sdk/client-omics"; // ES Modules import + * // const { OmicsClient, CreateAnnotationStoreVersionCommand } = require("@aws-sdk/client-omics"); // CommonJS import + * const client = new OmicsClient(config); + * const input = { // CreateAnnotationStoreVersionRequest + * name: "STRING_VALUE", // required + * versionName: "STRING_VALUE", // required + * description: "STRING_VALUE", + * versionOptions: { // VersionOptions Union: only one key present + * tsvVersionOptions: { // TsvVersionOptions + * annotationType: "STRING_VALUE", + * formatToHeader: { // FormatToHeader + * "": "STRING_VALUE", + * }, + * schema: [ // Schema + * { // SchemaItem + * "": "STRING_VALUE", + * }, + * ], + * }, + * }, + * tags: { // TagMap + * "": "STRING_VALUE", + * }, + * }; + * const command = new CreateAnnotationStoreVersionCommand(input); + * const response = await client.send(command); + * // { // CreateAnnotationStoreVersionResponse + * // id: "STRING_VALUE", // required + * // versionName: "STRING_VALUE", // required + * // storeId: "STRING_VALUE", // required + * // versionOptions: { // VersionOptions Union: only one key present + * // tsvVersionOptions: { // TsvVersionOptions + * // annotationType: "STRING_VALUE", + * // formatToHeader: { // FormatToHeader + * // "": "STRING_VALUE", + * // }, + * // schema: [ // Schema + * // { // SchemaItem + * // "": "STRING_VALUE", + * // }, + * // ], + * // }, + * // }, + * // name: "STRING_VALUE", // required + * // status: "STRING_VALUE", // required + * // creationTime: new Date("TIMESTAMP"), // required + * // }; + * + * ``` + * + * @param CreateAnnotationStoreVersionCommandInput - {@link CreateAnnotationStoreVersionCommandInput} + * @returns {@link CreateAnnotationStoreVersionCommandOutput} + * @see {@link CreateAnnotationStoreVersionCommandInput} for command's `input` shape. + * @see {@link CreateAnnotationStoreVersionCommandOutput} for command's `response` shape. + * @see {@link OmicsClientResolvedConfig | config} for OmicsClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

You do not have sufficient access to perform this action.

+ * + * @throws {@link ConflictException} (client fault) + *

The request cannot be applied to the target resource in its current state.

+ * + * @throws {@link InternalServerException} (server fault) + *

An unexpected error occurred. Try the request again.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

The target resource was not found in the current Region.

+ * + * @throws {@link ServiceQuotaExceededException} (client fault) + *

The request exceeds a service quota.

+ * + * @throws {@link ThrottlingException} (client fault) + *

The request was denied due to request throttling.

+ * + * @throws {@link ValidationException} (client fault) + *

The input fails to satisfy the constraints specified by an AWS service.

+ * + * @throws {@link OmicsServiceException} + *

Base exception class for all service exceptions from Omics service.

+ * + */ +export class CreateAnnotationStoreVersionCommand extends $Command< + CreateAnnotationStoreVersionCommandInput, + CreateAnnotationStoreVersionCommandOutput, + OmicsClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: CreateAnnotationStoreVersionCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: OmicsClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CreateAnnotationStoreVersionCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "OmicsClient"; + const commandName = "CreateAnnotationStoreVersionCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: CreateAnnotationStoreVersionCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_CreateAnnotationStoreVersionCommand(input, context); + } + + /** + * @internal + */ + private deserialize( + output: __HttpResponse, + context: __SerdeContext + ): Promise { + return de_CreateAnnotationStoreVersionCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-omics/src/commands/CreateShareCommand.ts b/clients/client-omics/src/commands/CreateShareCommand.ts new file mode 100644 index 0000000000000..20d4497eaae67 --- /dev/null +++ b/clients/client-omics/src/commands/CreateShareCommand.ts @@ -0,0 +1,167 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@smithy/types"; + +import { CreateShareRequest, CreateShareResponse } from "../models/models_0"; +import { OmicsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OmicsClient"; +import { de_CreateShareCommand, se_CreateShareCommand } from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link CreateShareCommand}. + */ +export interface CreateShareCommandInput extends CreateShareRequest {} +/** + * @public + * + * The output of {@link CreateShareCommand}. + */ +export interface CreateShareCommandOutput extends CreateShareResponse, __MetadataBearer {} + +/** + * @public + *

+ * Creates a share offer that can be accepted outside the account by a subscriber. The share is created by the owner and accepted by the principal subscriber. + *

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { OmicsClient, CreateShareCommand } from "@aws-sdk/client-omics"; // ES Modules import + * // const { OmicsClient, CreateShareCommand } = require("@aws-sdk/client-omics"); // CommonJS import + * const client = new OmicsClient(config); + * const input = { // CreateShareRequest + * resourceArn: "STRING_VALUE", // required + * principalSubscriber: "STRING_VALUE", // required + * shareName: "STRING_VALUE", + * }; + * const command = new CreateShareCommand(input); + * const response = await client.send(command); + * // { // CreateShareResponse + * // shareId: "STRING_VALUE", + * // status: "STRING_VALUE", + * // shareName: "STRING_VALUE", + * // }; + * + * ``` + * + * @param CreateShareCommandInput - {@link CreateShareCommandInput} + * @returns {@link CreateShareCommandOutput} + * @see {@link CreateShareCommandInput} for command's `input` shape. + * @see {@link CreateShareCommandOutput} for command's `response` shape. + * @see {@link OmicsClientResolvedConfig | config} for OmicsClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

You do not have sufficient access to perform this action.

+ * + * @throws {@link ConflictException} (client fault) + *

The request cannot be applied to the target resource in its current state.

+ * + * @throws {@link InternalServerException} (server fault) + *

An unexpected error occurred. Try the request again.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

The target resource was not found in the current Region.

+ * + * @throws {@link ServiceQuotaExceededException} (client fault) + *

The request exceeds a service quota.

+ * + * @throws {@link ThrottlingException} (client fault) + *

The request was denied due to request throttling.

+ * + * @throws {@link ValidationException} (client fault) + *

The input fails to satisfy the constraints specified by an AWS service.

+ * + * @throws {@link OmicsServiceException} + *

Base exception class for all service exceptions from Omics service.

+ * + */ +export class CreateShareCommand extends $Command< + CreateShareCommandInput, + CreateShareCommandOutput, + OmicsClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: CreateShareCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: OmicsClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getEndpointPlugin(configuration, CreateShareCommand.getEndpointParameterInstructions())); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "OmicsClient"; + const commandName = "CreateShareCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: CreateShareCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_CreateShareCommand(input, context); + } + + /** + * @internal + */ + private deserialize(output: __HttpResponse, context: __SerdeContext): Promise { + return de_CreateShareCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-omics/src/commands/DeleteAnnotationStoreVersionsCommand.ts b/clients/client-omics/src/commands/DeleteAnnotationStoreVersionsCommand.ts new file mode 100644 index 0000000000000..b2fd8dacf29c2 --- /dev/null +++ b/clients/client-omics/src/commands/DeleteAnnotationStoreVersionsCommand.ts @@ -0,0 +1,179 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@smithy/types"; + +import { DeleteAnnotationStoreVersionsRequest, DeleteAnnotationStoreVersionsResponse } from "../models/models_0"; +import { OmicsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OmicsClient"; +import { + de_DeleteAnnotationStoreVersionsCommand, + se_DeleteAnnotationStoreVersionsCommand, +} from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link DeleteAnnotationStoreVersionsCommand}. + */ +export interface DeleteAnnotationStoreVersionsCommandInput extends DeleteAnnotationStoreVersionsRequest {} +/** + * @public + * + * The output of {@link DeleteAnnotationStoreVersionsCommand}. + */ +export interface DeleteAnnotationStoreVersionsCommandOutput + extends DeleteAnnotationStoreVersionsResponse, + __MetadataBearer {} + +/** + * @public + *

+ * Deletes one or multiple versions of an annotation store. + *

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { OmicsClient, DeleteAnnotationStoreVersionsCommand } from "@aws-sdk/client-omics"; // ES Modules import + * // const { OmicsClient, DeleteAnnotationStoreVersionsCommand } = require("@aws-sdk/client-omics"); // CommonJS import + * const client = new OmicsClient(config); + * const input = { // DeleteAnnotationStoreVersionsRequest + * name: "STRING_VALUE", // required + * versions: [ // VersionList // required + * "STRING_VALUE", + * ], + * force: true || false, + * }; + * const command = new DeleteAnnotationStoreVersionsCommand(input); + * const response = await client.send(command); + * // { // DeleteAnnotationStoreVersionsResponse + * // errors: [ // VersionDeleteErrorList + * // { // VersionDeleteError + * // versionName: "STRING_VALUE", // required + * // message: "STRING_VALUE", // required + * // }, + * // ], + * // }; + * + * ``` + * + * @param DeleteAnnotationStoreVersionsCommandInput - {@link DeleteAnnotationStoreVersionsCommandInput} + * @returns {@link DeleteAnnotationStoreVersionsCommandOutput} + * @see {@link DeleteAnnotationStoreVersionsCommandInput} for command's `input` shape. + * @see {@link DeleteAnnotationStoreVersionsCommandOutput} for command's `response` shape. + * @see {@link OmicsClientResolvedConfig | config} for OmicsClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

You do not have sufficient access to perform this action.

+ * + * @throws {@link ConflictException} (client fault) + *

The request cannot be applied to the target resource in its current state.

+ * + * @throws {@link InternalServerException} (server fault) + *

An unexpected error occurred. Try the request again.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

The target resource was not found in the current Region.

+ * + * @throws {@link ThrottlingException} (client fault) + *

The request was denied due to request throttling.

+ * + * @throws {@link ValidationException} (client fault) + *

The input fails to satisfy the constraints specified by an AWS service.

+ * + * @throws {@link OmicsServiceException} + *

Base exception class for all service exceptions from Omics service.

+ * + */ +export class DeleteAnnotationStoreVersionsCommand extends $Command< + DeleteAnnotationStoreVersionsCommandInput, + DeleteAnnotationStoreVersionsCommandOutput, + OmicsClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: DeleteAnnotationStoreVersionsCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: OmicsClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DeleteAnnotationStoreVersionsCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "OmicsClient"; + const commandName = "DeleteAnnotationStoreVersionsCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: DeleteAnnotationStoreVersionsCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_DeleteAnnotationStoreVersionsCommand(input, context); + } + + /** + * @internal + */ + private deserialize( + output: __HttpResponse, + context: __SerdeContext + ): Promise { + return de_DeleteAnnotationStoreVersionsCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-omics/src/commands/DeleteShareCommand.ts b/clients/client-omics/src/commands/DeleteShareCommand.ts new file mode 100644 index 0000000000000..82087ec9b6b61 --- /dev/null +++ b/clients/client-omics/src/commands/DeleteShareCommand.ts @@ -0,0 +1,163 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@smithy/types"; + +import { DeleteShareRequest, DeleteShareResponse } from "../models/models_0"; +import { OmicsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OmicsClient"; +import { de_DeleteShareCommand, se_DeleteShareCommand } from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link DeleteShareCommand}. + */ +export interface DeleteShareCommandInput extends DeleteShareRequest {} +/** + * @public + * + * The output of {@link DeleteShareCommand}. + */ +export interface DeleteShareCommandOutput extends DeleteShareResponse, __MetadataBearer {} + +/** + * @public + *

+ * Deletes a share of an analytics store. + *

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { OmicsClient, DeleteShareCommand } from "@aws-sdk/client-omics"; // ES Modules import + * // const { OmicsClient, DeleteShareCommand } = require("@aws-sdk/client-omics"); // CommonJS import + * const client = new OmicsClient(config); + * const input = { // DeleteShareRequest + * shareId: "STRING_VALUE", // required + * }; + * const command = new DeleteShareCommand(input); + * const response = await client.send(command); + * // { // DeleteShareResponse + * // status: "STRING_VALUE", + * // }; + * + * ``` + * + * @param DeleteShareCommandInput - {@link DeleteShareCommandInput} + * @returns {@link DeleteShareCommandOutput} + * @see {@link DeleteShareCommandInput} for command's `input` shape. + * @see {@link DeleteShareCommandOutput} for command's `response` shape. + * @see {@link OmicsClientResolvedConfig | config} for OmicsClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

You do not have sufficient access to perform this action.

+ * + * @throws {@link ConflictException} (client fault) + *

The request cannot be applied to the target resource in its current state.

+ * + * @throws {@link InternalServerException} (server fault) + *

An unexpected error occurred. Try the request again.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

The target resource was not found in the current Region.

+ * + * @throws {@link ServiceQuotaExceededException} (client fault) + *

The request exceeds a service quota.

+ * + * @throws {@link ThrottlingException} (client fault) + *

The request was denied due to request throttling.

+ * + * @throws {@link ValidationException} (client fault) + *

The input fails to satisfy the constraints specified by an AWS service.

+ * + * @throws {@link OmicsServiceException} + *

Base exception class for all service exceptions from Omics service.

+ * + */ +export class DeleteShareCommand extends $Command< + DeleteShareCommandInput, + DeleteShareCommandOutput, + OmicsClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: DeleteShareCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: OmicsClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getEndpointPlugin(configuration, DeleteShareCommand.getEndpointParameterInstructions())); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "OmicsClient"; + const commandName = "DeleteShareCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: DeleteShareCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_DeleteShareCommand(input, context); + } + + /** + * @internal + */ + private deserialize(output: __HttpResponse, context: __SerdeContext): Promise { + return de_DeleteShareCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-omics/src/commands/GetAnnotationImportJobCommand.ts b/clients/client-omics/src/commands/GetAnnotationImportJobCommand.ts index 836968e9c4635..e5587b57d31d9 100644 --- a/clients/client-omics/src/commands/GetAnnotationImportJobCommand.ts +++ b/clients/client-omics/src/commands/GetAnnotationImportJobCommand.ts @@ -51,6 +51,7 @@ export interface GetAnnotationImportJobCommandOutput extends GetAnnotationImport * // { // GetAnnotationImportResponse * // id: "STRING_VALUE", // required * // destinationName: "STRING_VALUE", // required + * // versionName: "STRING_VALUE", // required * // roleArn: "STRING_VALUE", // required * // status: "STRING_VALUE", // required * // statusMessage: "STRING_VALUE", // required diff --git a/clients/client-omics/src/commands/GetAnnotationStoreCommand.ts b/clients/client-omics/src/commands/GetAnnotationStoreCommand.ts index 653ee31068418..07edd716ef5b4 100644 --- a/clients/client-omics/src/commands/GetAnnotationStoreCommand.ts +++ b/clients/client-omics/src/commands/GetAnnotationStoreCommand.ts @@ -82,6 +82,7 @@ export interface GetAnnotationStoreCommandOutput extends GetAnnotationStoreRespo * // storeFormat: "STRING_VALUE", * // statusMessage: "STRING_VALUE", // required * // storeSizeBytes: Number("long"), // required + * // numVersions: Number("int"), // required * // }; * * ``` diff --git a/clients/client-omics/src/commands/GetAnnotationStoreVersionCommand.ts b/clients/client-omics/src/commands/GetAnnotationStoreVersionCommand.ts new file mode 100644 index 0000000000000..f52157c4dc2cd --- /dev/null +++ b/clients/client-omics/src/commands/GetAnnotationStoreVersionCommand.ts @@ -0,0 +1,189 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@smithy/types"; + +import { GetAnnotationStoreVersionRequest, GetAnnotationStoreVersionResponse } from "../models/models_0"; +import { OmicsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OmicsClient"; +import { de_GetAnnotationStoreVersionCommand, se_GetAnnotationStoreVersionCommand } from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link GetAnnotationStoreVersionCommand}. + */ +export interface GetAnnotationStoreVersionCommandInput extends GetAnnotationStoreVersionRequest {} +/** + * @public + * + * The output of {@link GetAnnotationStoreVersionCommand}. + */ +export interface GetAnnotationStoreVersionCommandOutput extends GetAnnotationStoreVersionResponse, __MetadataBearer {} + +/** + * @public + *

+ * Retrieves the metadata for an annotation store version. + *

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { OmicsClient, GetAnnotationStoreVersionCommand } from "@aws-sdk/client-omics"; // ES Modules import + * // const { OmicsClient, GetAnnotationStoreVersionCommand } = require("@aws-sdk/client-omics"); // CommonJS import + * const client = new OmicsClient(config); + * const input = { // GetAnnotationStoreVersionRequest + * name: "STRING_VALUE", // required + * versionName: "STRING_VALUE", // required + * }; + * const command = new GetAnnotationStoreVersionCommand(input); + * const response = await client.send(command); + * // { // GetAnnotationStoreVersionResponse + * // storeId: "STRING_VALUE", // required + * // id: "STRING_VALUE", // required + * // status: "STRING_VALUE", // required + * // versionArn: "STRING_VALUE", // required + * // name: "STRING_VALUE", // required + * // versionName: "STRING_VALUE", // required + * // description: "STRING_VALUE", // required + * // creationTime: new Date("TIMESTAMP"), // required + * // updateTime: new Date("TIMESTAMP"), // required + * // tags: { // TagMap // required + * // "": "STRING_VALUE", + * // }, + * // versionOptions: { // VersionOptions Union: only one key present + * // tsvVersionOptions: { // TsvVersionOptions + * // annotationType: "STRING_VALUE", + * // formatToHeader: { // FormatToHeader + * // "": "STRING_VALUE", + * // }, + * // schema: [ // Schema + * // { // SchemaItem + * // "": "STRING_VALUE", + * // }, + * // ], + * // }, + * // }, + * // statusMessage: "STRING_VALUE", // required + * // versionSizeBytes: Number("long"), // required + * // }; + * + * ``` + * + * @param GetAnnotationStoreVersionCommandInput - {@link GetAnnotationStoreVersionCommandInput} + * @returns {@link GetAnnotationStoreVersionCommandOutput} + * @see {@link GetAnnotationStoreVersionCommandInput} for command's `input` shape. + * @see {@link GetAnnotationStoreVersionCommandOutput} for command's `response` shape. + * @see {@link OmicsClientResolvedConfig | config} for OmicsClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

You do not have sufficient access to perform this action.

+ * + * @throws {@link InternalServerException} (server fault) + *

An unexpected error occurred. Try the request again.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

The target resource was not found in the current Region.

+ * + * @throws {@link ThrottlingException} (client fault) + *

The request was denied due to request throttling.

+ * + * @throws {@link ValidationException} (client fault) + *

The input fails to satisfy the constraints specified by an AWS service.

+ * + * @throws {@link OmicsServiceException} + *

Base exception class for all service exceptions from Omics service.

+ * + */ +export class GetAnnotationStoreVersionCommand extends $Command< + GetAnnotationStoreVersionCommandInput, + GetAnnotationStoreVersionCommandOutput, + OmicsClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: GetAnnotationStoreVersionCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: OmicsClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetAnnotationStoreVersionCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "OmicsClient"; + const commandName = "GetAnnotationStoreVersionCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: GetAnnotationStoreVersionCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_GetAnnotationStoreVersionCommand(input, context); + } + + /** + * @internal + */ + private deserialize( + output: __HttpResponse, + context: __SerdeContext + ): Promise { + return de_GetAnnotationStoreVersionCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-omics/src/commands/GetShareCommand.ts b/clients/client-omics/src/commands/GetShareCommand.ts new file mode 100644 index 0000000000000..306d8856942e3 --- /dev/null +++ b/clients/client-omics/src/commands/GetShareCommand.ts @@ -0,0 +1,169 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@smithy/types"; + +import { GetShareRequest, GetShareResponse } from "../models/models_0"; +import { OmicsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OmicsClient"; +import { de_GetShareCommand, se_GetShareCommand } from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link GetShareCommand}. + */ +export interface GetShareCommandInput extends GetShareRequest {} +/** + * @public + * + * The output of {@link GetShareCommand}. + */ +export interface GetShareCommandOutput extends GetShareResponse, __MetadataBearer {} + +/** + * @public + *

+ * Retrieves the metadata for a share. + *

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { OmicsClient, GetShareCommand } from "@aws-sdk/client-omics"; // ES Modules import + * // const { OmicsClient, GetShareCommand } = require("@aws-sdk/client-omics"); // CommonJS import + * const client = new OmicsClient(config); + * const input = { // GetShareRequest + * shareId: "STRING_VALUE", // required + * }; + * const command = new GetShareCommand(input); + * const response = await client.send(command); + * // { // GetShareResponse + * // share: { // ShareDetails + * // shareId: "STRING_VALUE", + * // resourceArn: "STRING_VALUE", + * // principalSubscriber: "STRING_VALUE", + * // ownerId: "STRING_VALUE", + * // status: "STRING_VALUE", + * // statusMessage: "STRING_VALUE", + * // shareName: "STRING_VALUE", + * // creationTime: new Date("TIMESTAMP"), + * // updateTime: new Date("TIMESTAMP"), + * // }, + * // }; + * + * ``` + * + * @param GetShareCommandInput - {@link GetShareCommandInput} + * @returns {@link GetShareCommandOutput} + * @see {@link GetShareCommandInput} for command's `input` shape. + * @see {@link GetShareCommandOutput} for command's `response` shape. + * @see {@link OmicsClientResolvedConfig | config} for OmicsClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

You do not have sufficient access to perform this action.

+ * + * @throws {@link ConflictException} (client fault) + *

The request cannot be applied to the target resource in its current state.

+ * + * @throws {@link InternalServerException} (server fault) + *

An unexpected error occurred. Try the request again.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

The target resource was not found in the current Region.

+ * + * @throws {@link ServiceQuotaExceededException} (client fault) + *

The request exceeds a service quota.

+ * + * @throws {@link ThrottlingException} (client fault) + *

The request was denied due to request throttling.

+ * + * @throws {@link ValidationException} (client fault) + *

The input fails to satisfy the constraints specified by an AWS service.

+ * + * @throws {@link OmicsServiceException} + *

Base exception class for all service exceptions from Omics service.

+ * + */ +export class GetShareCommand extends $Command { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: GetShareCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: OmicsClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getEndpointPlugin(configuration, GetShareCommand.getEndpointParameterInstructions())); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "OmicsClient"; + const commandName = "GetShareCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: GetShareCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_GetShareCommand(input, context); + } + + /** + * @internal + */ + private deserialize(output: __HttpResponse, context: __SerdeContext): Promise { + return de_GetShareCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-omics/src/commands/ListAnnotationImportJobsCommand.ts b/clients/client-omics/src/commands/ListAnnotationImportJobsCommand.ts index 5f86f33001a1b..27adbafc356c6 100644 --- a/clients/client-omics/src/commands/ListAnnotationImportJobsCommand.ts +++ b/clients/client-omics/src/commands/ListAnnotationImportJobsCommand.ts @@ -61,6 +61,7 @@ export interface ListAnnotationImportJobsCommandOutput extends ListAnnotationImp * // { // AnnotationImportJobItem * // id: "STRING_VALUE", // required * // destinationName: "STRING_VALUE", // required + * // versionName: "STRING_VALUE", // required * // roleArn: "STRING_VALUE", // required * // status: "STRING_VALUE", // required * // creationTime: new Date("TIMESTAMP"), // required diff --git a/clients/client-omics/src/commands/ListAnnotationStoreVersionsCommand.ts b/clients/client-omics/src/commands/ListAnnotationStoreVersionsCommand.ts new file mode 100644 index 0000000000000..fe431393ae68b --- /dev/null +++ b/clients/client-omics/src/commands/ListAnnotationStoreVersionsCommand.ts @@ -0,0 +1,187 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@smithy/types"; + +import { ListAnnotationStoreVersionsRequest, ListAnnotationStoreVersionsResponse } from "../models/models_0"; +import { OmicsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OmicsClient"; +import { + de_ListAnnotationStoreVersionsCommand, + se_ListAnnotationStoreVersionsCommand, +} from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link ListAnnotationStoreVersionsCommand}. + */ +export interface ListAnnotationStoreVersionsCommandInput extends ListAnnotationStoreVersionsRequest {} +/** + * @public + * + * The output of {@link ListAnnotationStoreVersionsCommand}. + */ +export interface ListAnnotationStoreVersionsCommandOutput + extends ListAnnotationStoreVersionsResponse, + __MetadataBearer {} + +/** + * @public + *

+ * Lists the versions of an annotation store. + *

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { OmicsClient, ListAnnotationStoreVersionsCommand } from "@aws-sdk/client-omics"; // ES Modules import + * // const { OmicsClient, ListAnnotationStoreVersionsCommand } = require("@aws-sdk/client-omics"); // CommonJS import + * const client = new OmicsClient(config); + * const input = { // ListAnnotationStoreVersionsRequest + * name: "STRING_VALUE", // required + * maxResults: Number("int"), + * nextToken: "STRING_VALUE", + * filter: { // ListAnnotationStoreVersionsFilter + * status: "STRING_VALUE", + * }, + * }; + * const command = new ListAnnotationStoreVersionsCommand(input); + * const response = await client.send(command); + * // { // ListAnnotationStoreVersionsResponse + * // annotationStoreVersions: [ // AnnotationStoreVersionItems + * // { // AnnotationStoreVersionItem + * // storeId: "STRING_VALUE", // required + * // id: "STRING_VALUE", // required + * // status: "STRING_VALUE", // required + * // versionArn: "STRING_VALUE", // required + * // name: "STRING_VALUE", // required + * // versionName: "STRING_VALUE", // required + * // description: "STRING_VALUE", // required + * // creationTime: new Date("TIMESTAMP"), // required + * // updateTime: new Date("TIMESTAMP"), // required + * // statusMessage: "STRING_VALUE", // required + * // versionSizeBytes: Number("long"), // required + * // }, + * // ], + * // nextToken: "STRING_VALUE", + * // }; + * + * ``` + * + * @param ListAnnotationStoreVersionsCommandInput - {@link ListAnnotationStoreVersionsCommandInput} + * @returns {@link ListAnnotationStoreVersionsCommandOutput} + * @see {@link ListAnnotationStoreVersionsCommandInput} for command's `input` shape. + * @see {@link ListAnnotationStoreVersionsCommandOutput} for command's `response` shape. + * @see {@link OmicsClientResolvedConfig | config} for OmicsClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

You do not have sufficient access to perform this action.

+ * + * @throws {@link InternalServerException} (server fault) + *

An unexpected error occurred. Try the request again.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

The target resource was not found in the current Region.

+ * + * @throws {@link ThrottlingException} (client fault) + *

The request was denied due to request throttling.

+ * + * @throws {@link ValidationException} (client fault) + *

The input fails to satisfy the constraints specified by an AWS service.

+ * + * @throws {@link OmicsServiceException} + *

Base exception class for all service exceptions from Omics service.

+ * + */ +export class ListAnnotationStoreVersionsCommand extends $Command< + ListAnnotationStoreVersionsCommandInput, + ListAnnotationStoreVersionsCommandOutput, + OmicsClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: ListAnnotationStoreVersionsCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: OmicsClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListAnnotationStoreVersionsCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "OmicsClient"; + const commandName = "ListAnnotationStoreVersionsCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: ListAnnotationStoreVersionsCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_ListAnnotationStoreVersionsCommand(input, context); + } + + /** + * @internal + */ + private deserialize( + output: __HttpResponse, + context: __SerdeContext + ): Promise { + return de_ListAnnotationStoreVersionsCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-omics/src/commands/ListSharesCommand.ts b/clients/client-omics/src/commands/ListSharesCommand.ts new file mode 100644 index 0000000000000..9164537142e57 --- /dev/null +++ b/clients/client-omics/src/commands/ListSharesCommand.ts @@ -0,0 +1,186 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@smithy/types"; + +import { ListSharesRequest, ListSharesResponse } from "../models/models_0"; +import { OmicsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OmicsClient"; +import { de_ListSharesCommand, se_ListSharesCommand } from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link ListSharesCommand}. + */ +export interface ListSharesCommandInput extends ListSharesRequest {} +/** + * @public + * + * The output of {@link ListSharesCommand}. + */ +export interface ListSharesCommandOutput extends ListSharesResponse, __MetadataBearer {} + +/** + * @public + *

+ * Lists all shares associated with an account. + *

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { OmicsClient, ListSharesCommand } from "@aws-sdk/client-omics"; // ES Modules import + * // const { OmicsClient, ListSharesCommand } = require("@aws-sdk/client-omics"); // CommonJS import + * const client = new OmicsClient(config); + * const input = { // ListSharesRequest + * resourceOwner: "STRING_VALUE", // required + * filter: { // Filter + * resourceArns: [ // ArnList + * "STRING_VALUE", + * ], + * status: [ // StatusList + * "STRING_VALUE", + * ], + * }, + * nextToken: "STRING_VALUE", + * maxResults: Number("int"), + * }; + * const command = new ListSharesCommand(input); + * const response = await client.send(command); + * // { // ListSharesResponse + * // shares: [ // ShareDetailsList // required + * // { // ShareDetails + * // shareId: "STRING_VALUE", + * // resourceArn: "STRING_VALUE", + * // principalSubscriber: "STRING_VALUE", + * // ownerId: "STRING_VALUE", + * // status: "STRING_VALUE", + * // statusMessage: "STRING_VALUE", + * // shareName: "STRING_VALUE", + * // creationTime: new Date("TIMESTAMP"), + * // updateTime: new Date("TIMESTAMP"), + * // }, + * // ], + * // nextToken: "STRING_VALUE", + * // }; + * + * ``` + * + * @param ListSharesCommandInput - {@link ListSharesCommandInput} + * @returns {@link ListSharesCommandOutput} + * @see {@link ListSharesCommandInput} for command's `input` shape. + * @see {@link ListSharesCommandOutput} for command's `response` shape. + * @see {@link OmicsClientResolvedConfig | config} for OmicsClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

You do not have sufficient access to perform this action.

+ * + * @throws {@link ConflictException} (client fault) + *

The request cannot be applied to the target resource in its current state.

+ * + * @throws {@link InternalServerException} (server fault) + *

An unexpected error occurred. Try the request again.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

The target resource was not found in the current Region.

+ * + * @throws {@link ServiceQuotaExceededException} (client fault) + *

The request exceeds a service quota.

+ * + * @throws {@link ThrottlingException} (client fault) + *

The request was denied due to request throttling.

+ * + * @throws {@link ValidationException} (client fault) + *

The input fails to satisfy the constraints specified by an AWS service.

+ * + * @throws {@link OmicsServiceException} + *

Base exception class for all service exceptions from Omics service.

+ * + */ +export class ListSharesCommand extends $Command< + ListSharesCommandInput, + ListSharesCommandOutput, + OmicsClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: ListSharesCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: OmicsClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getEndpointPlugin(configuration, ListSharesCommand.getEndpointParameterInstructions())); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "OmicsClient"; + const commandName = "ListSharesCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: ListSharesCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_ListSharesCommand(input, context); + } + + /** + * @internal + */ + private deserialize(output: __HttpResponse, context: __SerdeContext): Promise { + return de_ListSharesCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-omics/src/commands/StartAnnotationImportJobCommand.ts b/clients/client-omics/src/commands/StartAnnotationImportJobCommand.ts index c4a410e2cd707..c89d5125bb3f4 100644 --- a/clients/client-omics/src/commands/StartAnnotationImportJobCommand.ts +++ b/clients/client-omics/src/commands/StartAnnotationImportJobCommand.ts @@ -51,6 +51,7 @@ export interface StartAnnotationImportJobCommandOutput extends StartAnnotationIm * source: "STRING_VALUE", // required * }, * ], + * versionName: "STRING_VALUE", * formatOptions: { // FormatOptions Union: only one key present * tsvOptions: { // TsvOptions * readOptions: { // ReadOptions diff --git a/clients/client-omics/src/commands/UpdateAnnotationStoreVersionCommand.ts b/clients/client-omics/src/commands/UpdateAnnotationStoreVersionCommand.ts new file mode 100644 index 0000000000000..32675863f47bd --- /dev/null +++ b/clients/client-omics/src/commands/UpdateAnnotationStoreVersionCommand.ts @@ -0,0 +1,176 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@smithy/types"; + +import { UpdateAnnotationStoreVersionRequest, UpdateAnnotationStoreVersionResponse } from "../models/models_0"; +import { OmicsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OmicsClient"; +import { + de_UpdateAnnotationStoreVersionCommand, + se_UpdateAnnotationStoreVersionCommand, +} from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link UpdateAnnotationStoreVersionCommand}. + */ +export interface UpdateAnnotationStoreVersionCommandInput extends UpdateAnnotationStoreVersionRequest {} +/** + * @public + * + * The output of {@link UpdateAnnotationStoreVersionCommand}. + */ +export interface UpdateAnnotationStoreVersionCommandOutput + extends UpdateAnnotationStoreVersionResponse, + __MetadataBearer {} + +/** + * @public + *

+ * Updates the description of an annotation store version. + *

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { OmicsClient, UpdateAnnotationStoreVersionCommand } from "@aws-sdk/client-omics"; // ES Modules import + * // const { OmicsClient, UpdateAnnotationStoreVersionCommand } = require("@aws-sdk/client-omics"); // CommonJS import + * const client = new OmicsClient(config); + * const input = { // UpdateAnnotationStoreVersionRequest + * name: "STRING_VALUE", // required + * versionName: "STRING_VALUE", // required + * description: "STRING_VALUE", + * }; + * const command = new UpdateAnnotationStoreVersionCommand(input); + * const response = await client.send(command); + * // { // UpdateAnnotationStoreVersionResponse + * // storeId: "STRING_VALUE", // required + * // id: "STRING_VALUE", // required + * // status: "STRING_VALUE", // required + * // name: "STRING_VALUE", // required + * // versionName: "STRING_VALUE", // required + * // description: "STRING_VALUE", // required + * // creationTime: new Date("TIMESTAMP"), // required + * // updateTime: new Date("TIMESTAMP"), // required + * // }; + * + * ``` + * + * @param UpdateAnnotationStoreVersionCommandInput - {@link UpdateAnnotationStoreVersionCommandInput} + * @returns {@link UpdateAnnotationStoreVersionCommandOutput} + * @see {@link UpdateAnnotationStoreVersionCommandInput} for command's `input` shape. + * @see {@link UpdateAnnotationStoreVersionCommandOutput} for command's `response` shape. + * @see {@link OmicsClientResolvedConfig | config} for OmicsClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

You do not have sufficient access to perform this action.

+ * + * @throws {@link InternalServerException} (server fault) + *

An unexpected error occurred. Try the request again.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

The target resource was not found in the current Region.

+ * + * @throws {@link ThrottlingException} (client fault) + *

The request was denied due to request throttling.

+ * + * @throws {@link ValidationException} (client fault) + *

The input fails to satisfy the constraints specified by an AWS service.

+ * + * @throws {@link OmicsServiceException} + *

Base exception class for all service exceptions from Omics service.

+ * + */ +export class UpdateAnnotationStoreVersionCommand extends $Command< + UpdateAnnotationStoreVersionCommandInput, + UpdateAnnotationStoreVersionCommandOutput, + OmicsClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: UpdateAnnotationStoreVersionCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: OmicsClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, UpdateAnnotationStoreVersionCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "OmicsClient"; + const commandName = "UpdateAnnotationStoreVersionCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: UpdateAnnotationStoreVersionCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_UpdateAnnotationStoreVersionCommand(input, context); + } + + /** + * @internal + */ + private deserialize( + output: __HttpResponse, + context: __SerdeContext + ): Promise { + return de_UpdateAnnotationStoreVersionCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-omics/src/commands/index.ts b/clients/client-omics/src/commands/index.ts index 2861159035f5d..35e2578b47289 100644 --- a/clients/client-omics/src/commands/index.ts +++ b/clients/client-omics/src/commands/index.ts @@ -1,27 +1,33 @@ // smithy-typescript generated code export * from "./AbortMultipartReadSetUploadCommand"; +export * from "./AcceptShareCommand"; export * from "./BatchDeleteReadSetCommand"; export * from "./CancelAnnotationImportJobCommand"; export * from "./CancelRunCommand"; export * from "./CancelVariantImportJobCommand"; export * from "./CompleteMultipartReadSetUploadCommand"; export * from "./CreateAnnotationStoreCommand"; +export * from "./CreateAnnotationStoreVersionCommand"; export * from "./CreateMultipartReadSetUploadCommand"; export * from "./CreateReferenceStoreCommand"; export * from "./CreateRunGroupCommand"; export * from "./CreateSequenceStoreCommand"; +export * from "./CreateShareCommand"; export * from "./CreateVariantStoreCommand"; export * from "./CreateWorkflowCommand"; export * from "./DeleteAnnotationStoreCommand"; +export * from "./DeleteAnnotationStoreVersionsCommand"; export * from "./DeleteReferenceCommand"; export * from "./DeleteReferenceStoreCommand"; export * from "./DeleteRunCommand"; export * from "./DeleteRunGroupCommand"; export * from "./DeleteSequenceStoreCommand"; +export * from "./DeleteShareCommand"; export * from "./DeleteVariantStoreCommand"; export * from "./DeleteWorkflowCommand"; export * from "./GetAnnotationImportJobCommand"; export * from "./GetAnnotationStoreCommand"; +export * from "./GetAnnotationStoreVersionCommand"; export * from "./GetReadSetActivationJobCommand"; export * from "./GetReadSetCommand"; export * from "./GetReadSetExportJobCommand"; @@ -35,10 +41,12 @@ export * from "./GetRunCommand"; export * from "./GetRunGroupCommand"; export * from "./GetRunTaskCommand"; export * from "./GetSequenceStoreCommand"; +export * from "./GetShareCommand"; export * from "./GetVariantImportJobCommand"; export * from "./GetVariantStoreCommand"; export * from "./GetWorkflowCommand"; export * from "./ListAnnotationImportJobsCommand"; +export * from "./ListAnnotationStoreVersionsCommand"; export * from "./ListAnnotationStoresCommand"; export * from "./ListMultipartReadSetUploadsCommand"; export * from "./ListReadSetActivationJobsCommand"; @@ -53,6 +61,7 @@ export * from "./ListRunGroupsCommand"; export * from "./ListRunTasksCommand"; export * from "./ListRunsCommand"; export * from "./ListSequenceStoresCommand"; +export * from "./ListSharesCommand"; export * from "./ListTagsForResourceCommand"; export * from "./ListVariantImportJobsCommand"; export * from "./ListVariantStoresCommand"; @@ -67,6 +76,7 @@ export * from "./StartVariantImportJobCommand"; export * from "./TagResourceCommand"; export * from "./UntagResourceCommand"; export * from "./UpdateAnnotationStoreCommand"; +export * from "./UpdateAnnotationStoreVersionCommand"; export * from "./UpdateRunGroupCommand"; export * from "./UpdateVariantStoreCommand"; export * from "./UpdateWorkflowCommand"; diff --git a/clients/client-omics/src/models/models_0.ts b/clients/client-omics/src/models/models_0.ts index 842de8d9ed5f7..6fba9321760a2 100644 --- a/clients/client-omics/src/models/models_0.ts +++ b/clients/client-omics/src/models/models_0.ts @@ -209,6 +209,88 @@ export const Accelerators = { */ export type Accelerators = (typeof Accelerators)[keyof typeof Accelerators]; +/** + * @public + */ +export interface AcceptShareRequest { + /** + * @public + *

+ * The ID for a share offer for analytics store data. + *

+ */ + shareId: string | undefined; +} + +/** + * @public + * @enum + */ +export const ShareStatus = { + /** + * The share is activated + */ + ACTIVATING: "ACTIVATING", + /** + * The share is active and can be used + */ + ACTIVE: "ACTIVE", + /** + * The share has been deleted + */ + DELETED: "DELETED", + /** + * The share is being deleted + */ + DELETING: "DELETING", + /** + * The share has failed to activate or delete + */ + FAILED: "FAILED", + /** + * The share has been created but is not yet active + */ + PENDING: "PENDING", +} as const; + +/** + * @public + */ +export type ShareStatus = (typeof ShareStatus)[keyof typeof ShareStatus]; + +/** + * @public + */ +export interface AcceptShareResponse { + /** + * @public + *

+ * The status of an analytics store share. + *

+ */ + status?: ShareStatus | string; +} + +/** + * @public + *

The request cannot be applied to the target resource in its current state.

+ */ +export class ConflictException extends __BaseException { + readonly name: "ConflictException" = "ConflictException"; + readonly $fault: "client" = "client"; + /** + * @internal + */ + constructor(opts: __ExceptionOptionType) { + super({ + name: "ConflictException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, ConflictException.prototype); + } +} + /** * @public * @enum @@ -583,6 +665,14 @@ export interface GetAnnotationImportResponse { */ destinationName: string | undefined; + /** + * @public + *

+ * The name of the annotation store version. + *

+ */ + versionName: string | undefined; + /** * @public *

The job's service role ARN.

@@ -710,6 +800,14 @@ export interface AnnotationImportJobItem { */ destinationName: string | undefined; + /** + * @public + *

+ * The name of the annotation store version. + *

+ */ + versionName: string | undefined; + /** * @public *

The job's service role ARN.

@@ -794,6 +892,14 @@ export interface StartAnnotationImportRequest { */ items: AnnotationImportItemSource[] | undefined; + /** + * @public + *

+ * The name of the annotation store version. + *

+ */ + versionName?: string; + /** * @public *

Formatting options for the annotation file.

@@ -826,26 +932,6 @@ export interface StartAnnotationImportResponse { jobId: string | undefined; } -/** - * @public - *

The request cannot be applied to the target resource in its current state.

- */ -export class ConflictException extends __BaseException { - readonly name: "ConflictException" = "ConflictException"; - readonly $fault: "client" = "client"; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType) { - super({ - name: "ConflictException", - $fault: "client", - ...opts, - }); - Object.setPrototypeOf(this, ConflictException.prototype); - } -} - /** * @public *

A genome reference.

@@ -1126,6 +1212,14 @@ export interface CreateAnnotationStoreRequest { */ tags?: Record; + /** + * @public + *

+ * The name given to an annotation store version to distinguish it from other versions. + *

+ */ + versionName?: string; + /** * @public *

Server-side encryption (SSE) settings for the store.

@@ -1217,6 +1311,14 @@ export interface CreateAnnotationStoreResponse { */ name: string | undefined; + /** + * @public + *

+ * The name given to an annotation store version to distinguish it from other versions. + *

+ */ + versionName: string | undefined; + /** * @public *

When the store was created.

@@ -1350,6 +1452,14 @@ export interface GetAnnotationStoreResponse { *

The store's size in bytes.

*/ storeSizeBytes: number | undefined; + + /** + * @public + *

+ * An integer indicating how many versions of an annotation store exist. + *

+ */ + numVersions: number | undefined; } /** @@ -1517,51 +1627,726 @@ export interface UpdateAnnotationStoreResponse { /** * @public - *

The store's genome reference.

+ *

The store's genome reference.

+ */ + reference: ReferenceItem | undefined; + + /** + * @public + *

The store's status.

+ */ + status: StoreStatus | string | undefined; + + /** + * @public + *

The store's name.

+ */ + name: string | undefined; + + /** + * @public + *

The store's description.

+ */ + description: string | undefined; + + /** + * @public + *

When the store was created.

+ */ + creationTime: Date | undefined; + + /** + * @public + *

When the store was updated.

+ */ + updateTime: Date | undefined; + + /** + * @public + *

Parsing options for the store.

+ */ + storeOptions?: StoreOptions; + + /** + * @public + *

The annotation file format of the store.

+ */ + storeFormat?: StoreFormat | string; +} + +/** + * @public + *

+ * The options for a TSV file. + *

+ */ +export interface TsvVersionOptions { + /** + * @public + *

+ * The store version's annotation type. + *

+ */ + annotationType?: AnnotationType | string; + + /** + * @public + *

+ * The annotation store version's header key to column name mapping. + *

+ */ + formatToHeader?: Record; + + /** + * @public + *

+ * The TSV schema for an annotation store version. + *

+ */ + schema?: Record[]; +} + +/** + * @public + *

+ * The options for an annotation store version. + *

+ */ +export type VersionOptions = VersionOptions.TsvVersionOptionsMember | VersionOptions.$UnknownMember; + +/** + * @public + */ +export namespace VersionOptions { + /** + * @public + *

+ * File settings for a version of a TSV store. + *

+ */ + export interface TsvVersionOptionsMember { + tsvVersionOptions: TsvVersionOptions; + $unknown?: never; + } + + /** + * @public + */ + export interface $UnknownMember { + tsvVersionOptions?: never; + $unknown: [string, any]; + } + + export interface Visitor { + tsvVersionOptions: (value: TsvVersionOptions) => T; + _: (name: string, value: any) => T; + } + + export const visit = (value: VersionOptions, visitor: Visitor): T => { + if (value.tsvVersionOptions !== undefined) return visitor.tsvVersionOptions(value.tsvVersionOptions); + return visitor._(value.$unknown[0], value.$unknown[1]); + }; +} + +/** + * @public + */ +export interface CreateAnnotationStoreVersionRequest { + /** + * @public + *

+ * The name of an annotation store version from which versions are being created. + *

+ */ + name: string | undefined; + + /** + * @public + *

+ * The name given to an annotation store version to distinguish it from other versions. + *

+ */ + versionName: string | undefined; + + /** + * @public + *

+ * The description of an annotation store version. + *

+ */ + description?: string; + + /** + * @public + *

+ * The options for an annotation store version. + *

+ */ + versionOptions?: VersionOptions; + + /** + * @public + *

+ * Any tags added to annotation store version. + *

+ */ + tags?: Record; +} + +/** + * @public + * @enum + */ +export const VersionStatus = { + /** + * The Version is active + */ + ACTIVE: "ACTIVE", + /** + * The Version is being created + */ + CREATING: "CREATING", + /** + * The Version is deleting + */ + DELETING: "DELETING", + /** + * The Version creation failed + */ + FAILED: "FAILED", + /** + * The Version is updating + */ + UPDATING: "UPDATING", +} as const; + +/** + * @public + */ +export type VersionStatus = (typeof VersionStatus)[keyof typeof VersionStatus]; + +/** + * @public + */ +export interface CreateAnnotationStoreVersionResponse { + /** + * @public + *

+ * A generated ID for the annotation store + *

+ */ + id: string | undefined; + + /** + * @public + *

+ * The name given to an annotation store version to distinguish it from other versions. + *

+ */ + versionName: string | undefined; + + /** + * @public + *

+ * The ID for the annotation store from which new versions are being created. + *

+ */ + storeId: string | undefined; + + /** + * @public + *

+ * The options for an annotation store version. + *

+ */ + versionOptions?: VersionOptions; + + /** + * @public + *

+ * The name given to an annotation store version to distinguish it from other versions. + *

+ */ + name: string | undefined; + + /** + * @public + *

+ * The status of a annotation store version. + *

+ */ + status: VersionStatus | string | undefined; + + /** + * @public + *

+ * The time stamp for the creation of an annotation store version. + *

+ */ + creationTime: Date | undefined; +} + +/** + * @public + */ +export interface DeleteAnnotationStoreVersionsRequest { + /** + * @public + *

+ * The name of the annotation store from which versions are being deleted. + *

+ */ + name: string | undefined; + + /** + * @public + *

+ * The versions of an annotation store to be deleted. + *

+ */ + versions: string[] | undefined; + + /** + * @public + *

+ * Forces the deletion of an annotation store version when imports are in-progress.. + *

+ */ + force?: boolean; +} + +/** + * @public + *

+ * The error preventing deletion of the annotation store version. + *

+ */ +export interface VersionDeleteError { + /** + * @public + *

+ * The name given to an annotation store version. + *

+ */ + versionName: string | undefined; + + /** + * @public + *

+ * The message explaining the error in annotation store deletion. + *

+ */ + message: string | undefined; +} + +/** + * @public + */ +export interface DeleteAnnotationStoreVersionsResponse { + /** + * @public + *

+ * Any errors that occur when attempting to delete an annotation store version. + *

+ */ + errors?: VersionDeleteError[]; +} + +/** + * @public + */ +export interface GetAnnotationStoreVersionRequest { + /** + * @public + *

+ * The name given to an annotation store version to distinguish it from others. + *

+ */ + name: string | undefined; + + /** + * @public + *

+ * The name given to an annotation store version to distinguish it from others. + *

+ */ + versionName: string | undefined; +} + +/** + * @public + */ +export interface GetAnnotationStoreVersionResponse { + /** + * @public + *

+ * The store ID for annotation store version. + *

+ */ + storeId: string | undefined; + + /** + * @public + *

+ * The annotation store version ID. + *

+ */ + id: string | undefined; + + /** + * @public + *

+ * The status of an annotation store version. + *

+ */ + status: VersionStatus | string | undefined; + + /** + * @public + *

+ * The Arn for the annotation store. + *

+ */ + versionArn: string | undefined; + + /** + * @public + *

+ * The name of the annotation store. + *

+ */ + name: string | undefined; + + /** + * @public + *

+ * The name given to an annotation store version to distinguish it from others. + *

+ */ + versionName: string | undefined; + + /** + * @public + *

+ * The description for an annotation store version. + *

+ */ + description: string | undefined; + + /** + * @public + *

+ * The time stamp for when an annotation store version was created. + *

+ */ + creationTime: Date | undefined; + + /** + * @public + *

+ * The time stamp for when an annotation store version was updated. + *

+ */ + updateTime: Date | undefined; + + /** + * @public + *

+ * Any tags associated with an annotation store version. + *

+ */ + tags: Record | undefined; + + /** + * @public + *

+ * The options for an annotation store version. + *

+ */ + versionOptions?: VersionOptions; + + /** + * @public + *

+ * The status of an annotation store version. + *

+ */ + statusMessage: string | undefined; + + /** + * @public + *

+ * The size of the annotation store version in Bytes. + *

+ */ + versionSizeBytes: number | undefined; +} + +/** + * @public + *

+ * Use filters to focus the returned annotation store versions on a specific parameter, such as the status of the annotation store. + *

+ */ +export interface ListAnnotationStoreVersionsFilter { + /** + * @public + *

+ * The status of an annotation store version. + *

+ */ + status?: VersionStatus | string; +} + +/** + * @public + */ +export interface ListAnnotationStoreVersionsRequest { + /** + * @public + *

+ * The name of an annotation store. + *

+ */ + name: string | undefined; + + /** + * @public + *

+ * The maximum number of annotation store versions to return in one page of results. + *

+ */ + maxResults?: number; + + /** + * @public + *

+ * Specifies the pagination token from a previous request to retrieve the next page of results. + *

+ */ + nextToken?: string; + + /** + * @public + *

+ * A filter to apply to the list of annotation store versions. + *

+ */ + filter?: ListAnnotationStoreVersionsFilter; +} + +/** + * @public + *

+ * Annotation store versions. + *

+ */ +export interface AnnotationStoreVersionItem { + /** + * @public + *

+ * The store ID for an annotation store version. + *

+ */ + storeId: string | undefined; + + /** + * @public + *

+ * The annotation store version ID. + *

+ */ + id: string | undefined; + + /** + * @public + *

+ * The status of an annotation store version. + *

+ */ + status: VersionStatus | string | undefined; + + /** + * @public + *

+ * The Arn for an annotation store version. + *

+ */ + versionArn: string | undefined; + + /** + * @public + *

+ * A name given to an annotation store version to distinguish it from others. + *

+ */ + name: string | undefined; + + /** + * @public + *

+ * The name of an annotation store version. + *

+ */ + versionName: string | undefined; + + /** + * @public + *

+ * The description of an annotation store version. + *

+ */ + description: string | undefined; + + /** + * @public + *

+ * The time stamp for when an annotation store version was created. + *

+ */ + creationTime: Date | undefined; + + /** + * @public + *

+ * The time stamp for when an annotation store version was updated. + *

+ */ + updateTime: Date | undefined; + + /** + * @public + *

+ * The status of an annotation store version. + *

+ */ + statusMessage: string | undefined; + + /** + * @public + *

+ * The size of an annotation store version in Bytes. + *

+ */ + versionSizeBytes: number | undefined; +} + +/** + * @public + */ +export interface ListAnnotationStoreVersionsResponse { + /** + * @public + *

+ * Lists all versions of an annotation store. + *

+ */ + annotationStoreVersions?: AnnotationStoreVersionItem[]; + + /** + * @public + *

+ * Specifies the pagination token from a previous request to retrieve the next page of results. + *

+ */ + nextToken?: string; +} + +/** + * @public + */ +export interface UpdateAnnotationStoreVersionRequest { + /** + * @public + *

+ * The name of an annotation store. + *

+ */ + name: string | undefined; + + /** + * @public + *

+ * The name of an annotation store version. + *

+ */ + versionName: string | undefined; + + /** + * @public + *

+ * The description of an annotation store. + *

+ */ + description?: string; +} + +/** + * @public + */ +export interface UpdateAnnotationStoreVersionResponse { + /** + * @public + *

+ * The annotation store ID. + *

*/ - reference: ReferenceItem | undefined; + storeId: string | undefined; /** * @public - *

The store's status.

+ *

+ * The annotation store version ID. + *

*/ - status: StoreStatus | string | undefined; + id: string | undefined; /** * @public - *

The store's name.

+ *

+ * The status of an annotation store version. + *

*/ - name: string | undefined; + status: VersionStatus | string | undefined; /** * @public - *

The store's description.

+ *

+ * The name of an annotation store. + *

*/ - description: string | undefined; + name: string | undefined; /** * @public - *

When the store was created.

+ *

+ * The name of an annotation store version.

*/ - creationTime: Date | undefined; + versionName: string | undefined; /** * @public - *

When the store was updated.

+ *

+ * The description of an annotation store version. + *

*/ - updateTime: Date | undefined; + description: string | undefined; /** * @public - *

Parsing options for the store.

+ *

+ * The time stamp for when an annotation store version was created. + *

*/ - storeOptions?: StoreOptions; + creationTime: Date | undefined; /** * @public - *

The annotation file format of the store.

+ *

+ * The time stamp for when an annotation store version was updated. + *

*/ - storeFormat?: StoreFormat | string; + updateTime: Date | undefined; } /** @@ -2164,6 +2949,64 @@ export interface CreateSequenceStoreResponse { fallbackLocation?: string; } +/** + * @public + */ +export interface CreateShareRequest { + /** + * @public + *

+ * The resource ARN for the analytics store to be shared. + *

+ */ + resourceArn: string | undefined; + + /** + * @public + *

+ * The principal subscriber is the account being given access to the analytics store data through the share offer. + *

+ */ + principalSubscriber: string | undefined; + + /** + * @public + *

+ * A name given to the share. + *

+ */ + shareName?: string; +} + +/** + * @public + */ +export interface CreateShareResponse { + /** + * @public + *

+ * An ID generated for the share. + *

+ */ + shareId?: string; + + /** + * @public + *

+ * The status of a share. + *

+ */ + status?: ShareStatus | string; + + /** + * @public + *

+ * A name given to the share. + *

+ */ + shareName?: string; +} + /** * @public */ @@ -2477,6 +3320,32 @@ export interface DeleteSequenceStoreRequest { */ export interface DeleteSequenceStoreResponse {} +/** + * @public + */ +export interface DeleteShareRequest { + /** + * @public + *

+ * The ID for the share request to be deleted. + *

+ */ + shareId: string | undefined; +} + +/** + * @public + */ +export interface DeleteShareResponse { + /** + * @public + *

+ * The status of the share being deleted. + *

+ */ + status?: ShareStatus | string; +} + /** * @public */ @@ -2677,6 +3546,30 @@ export interface FileInformation { contentLength?: number; } +/** + * @public + *

+ * Use filters to focus the returned annotation store versions on a specific parameter, such as the status of the annotation store. + *

+ */ +export interface Filter { + /** + * @public + *

+ * The Amazon Resource Number (Arn) for an analytics store. + *

+ */ + resourceArns?: string[]; + + /** + * @public + *

+ * The status of an annotation store version. + *

+ */ + status?: (ShareStatus | string)[]; +} + /** * @public * @enum @@ -4126,6 +5019,112 @@ export interface GetSequenceStoreResponse { fallbackLocation?: string; } +/** + * @public + */ +export interface GetShareRequest { + /** + * @public + *

+ * The generated ID for a share. + *

+ */ + shareId: string | undefined; +} + +/** + * @public + *

+ * The details of a share. + *

+ */ +export interface ShareDetails { + /** + * @public + *

+ * The ID for a share offer for an analytics store . + *

+ */ + shareId?: string; + + /** + * @public + *

+ * The resource Arn of the analytics store being shared. + *

+ */ + resourceArn?: string; + + /** + * @public + *

+ * The principal subscriber is the account the analytics store data is being shared with. + *

+ */ + principalSubscriber?: string; + + /** + * @public + *

+ * The account ID for the data owner. The owner creates the share offer. + *

+ */ + ownerId?: string; + + /** + * @public + *

+ * The status of a share. + *

+ */ + status?: ShareStatus | string; + + /** + * @public + *

+ * The status message for a share. It provides more details on the status of the share. + *

+ */ + statusMessage?: string; + + /** + * @public + *

+ * The name of the share. + *

+ */ + shareName?: string; + + /** + * @public + *

+ * The timestamp for when the share was created. + *

+ */ + creationTime?: Date; + + /** + * @public + *

+ * The timestamp of the share update. + *

+ */ + updateTime?: Date; +} + +/** + * @public + */ +export interface GetShareResponse { + /** + * @public + *

+ * An analytic store share details object. contains status, resourceArn, ownerId, etc. + *

+ */ + share?: ShareDetails; +} + /** * @public */ @@ -5980,6 +6979,84 @@ export interface ListSequenceStoresResponse { sequenceStores: SequenceStoreDetail[] | undefined; } +/** + * @public + * @enum + */ +export const ResourceOwner = { + /** + * The resource owner is an account other than the caller + */ + OTHER: "OTHER", + /** + * The resource owner is the calling account + */ + SELF: "SELF", +} as const; + +/** + * @public + */ +export type ResourceOwner = (typeof ResourceOwner)[keyof typeof ResourceOwner]; + +/** + * @public + */ +export interface ListSharesRequest { + /** + * @public + *

+ * The account that owns the analytics store shared. + *

+ */ + resourceOwner: ResourceOwner | string | undefined; + + /** + * @public + *

+ * Attributes used to filter for a specific subset of shares. + *

+ */ + filter?: Filter; + + /** + * @public + *

+ * Next token returned in the response of a previous ListReadSetUploadPartsRequest call. Used to get the next page of results. + *

+ */ + nextToken?: string; + + /** + * @public + *

+ * The maximum number of shares to return in one page of results. + *

+ */ + maxResults?: number; +} + +/** + * @public + */ +export interface ListSharesResponse { + /** + * @public + *

+ * The shares available and their meta details. + *

+ */ + shares: ShareDetails[] | undefined; + + /** + * @public + *

+ * Next token returned in the response of a previous ListSharesResponse call. Used to get the next page of results. + *

+ */ + nextToken?: string; +} + /** * @public */ diff --git a/clients/client-omics/src/pagination/ListAnnotationStoreVersionsPaginator.ts b/clients/client-omics/src/pagination/ListAnnotationStoreVersionsPaginator.ts new file mode 100644 index 0000000000000..4c5b3d6e6fe31 --- /dev/null +++ b/clients/client-omics/src/pagination/ListAnnotationStoreVersionsPaginator.ts @@ -0,0 +1,50 @@ +// smithy-typescript generated code +import { Paginator } from "@smithy/types"; + +import { + ListAnnotationStoreVersionsCommand, + ListAnnotationStoreVersionsCommandInput, + ListAnnotationStoreVersionsCommandOutput, +} from "../commands/ListAnnotationStoreVersionsCommand"; +import { OmicsClient } from "../OmicsClient"; +import { OmicsPaginationConfiguration } from "./Interfaces"; + +/** + * @internal + */ +const makePagedClientRequest = async ( + client: OmicsClient, + input: ListAnnotationStoreVersionsCommandInput, + ...args: any +): Promise => { + // @ts-ignore + return await client.send(new ListAnnotationStoreVersionsCommand(input), ...args); +}; +/** + * @public + */ +export async function* paginateListAnnotationStoreVersions( + config: OmicsPaginationConfiguration, + input: ListAnnotationStoreVersionsCommandInput, + ...additionalArguments: any +): Paginator { + // ToDo: replace with actual type instead of typeof input.nextToken + let token: typeof input.nextToken | undefined = config.startingToken || undefined; + let hasNext = true; + let page: ListAnnotationStoreVersionsCommandOutput; + while (hasNext) { + input.nextToken = token; + input["maxResults"] = config.pageSize; + if (config.client instanceof OmicsClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } else { + throw new Error("Invalid client, expected Omics | OmicsClient"); + } + yield page; + const prevToken = token; + token = page.nextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + // @ts-ignore + return undefined; +} diff --git a/clients/client-omics/src/pagination/ListSharesPaginator.ts b/clients/client-omics/src/pagination/ListSharesPaginator.ts new file mode 100644 index 0000000000000..261f76a99179b --- /dev/null +++ b/clients/client-omics/src/pagination/ListSharesPaginator.ts @@ -0,0 +1,46 @@ +// smithy-typescript generated code +import { Paginator } from "@smithy/types"; + +import { ListSharesCommand, ListSharesCommandInput, ListSharesCommandOutput } from "../commands/ListSharesCommand"; +import { OmicsClient } from "../OmicsClient"; +import { OmicsPaginationConfiguration } from "./Interfaces"; + +/** + * @internal + */ +const makePagedClientRequest = async ( + client: OmicsClient, + input: ListSharesCommandInput, + ...args: any +): Promise => { + // @ts-ignore + return await client.send(new ListSharesCommand(input), ...args); +}; +/** + * @public + */ +export async function* paginateListShares( + config: OmicsPaginationConfiguration, + input: ListSharesCommandInput, + ...additionalArguments: any +): Paginator { + // ToDo: replace with actual type instead of typeof input.nextToken + let token: typeof input.nextToken | undefined = config.startingToken || undefined; + let hasNext = true; + let page: ListSharesCommandOutput; + while (hasNext) { + input.nextToken = token; + input["maxResults"] = config.pageSize; + if (config.client instanceof OmicsClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } else { + throw new Error("Invalid client, expected Omics | OmicsClient"); + } + yield page; + const prevToken = token; + token = page.nextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + // @ts-ignore + return undefined; +} diff --git a/clients/client-omics/src/pagination/index.ts b/clients/client-omics/src/pagination/index.ts index 35d4eec03c753..ba01cefff9120 100644 --- a/clients/client-omics/src/pagination/index.ts +++ b/clients/client-omics/src/pagination/index.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code export * from "./Interfaces"; export * from "./ListAnnotationImportJobsPaginator"; +export * from "./ListAnnotationStoreVersionsPaginator"; export * from "./ListAnnotationStoresPaginator"; export * from "./ListMultipartReadSetUploadsPaginator"; export * from "./ListReadSetActivationJobsPaginator"; @@ -15,6 +16,7 @@ export * from "./ListRunGroupsPaginator"; export * from "./ListRunTasksPaginator"; export * from "./ListRunsPaginator"; export * from "./ListSequenceStoresPaginator"; +export * from "./ListSharesPaginator"; export * from "./ListVariantImportJobsPaginator"; export * from "./ListVariantStoresPaginator"; export * from "./ListWorkflowsPaginator"; diff --git a/clients/client-omics/src/protocols/Aws_restJson1.ts b/clients/client-omics/src/protocols/Aws_restJson1.ts index 5d1831ac2a548..ad75168e0a02e 100644 --- a/clients/client-omics/src/protocols/Aws_restJson1.ts +++ b/clients/client-omics/src/protocols/Aws_restJson1.ts @@ -35,6 +35,7 @@ import { AbortMultipartReadSetUploadCommandInput, AbortMultipartReadSetUploadCommandOutput, } from "../commands/AbortMultipartReadSetUploadCommand"; +import { AcceptShareCommandInput, AcceptShareCommandOutput } from "../commands/AcceptShareCommand"; import { BatchDeleteReadSetCommandInput, BatchDeleteReadSetCommandOutput } from "../commands/BatchDeleteReadSetCommand"; import { CancelAnnotationImportJobCommandInput, @@ -53,6 +54,10 @@ import { CreateAnnotationStoreCommandInput, CreateAnnotationStoreCommandOutput, } from "../commands/CreateAnnotationStoreCommand"; +import { + CreateAnnotationStoreVersionCommandInput, + CreateAnnotationStoreVersionCommandOutput, +} from "../commands/CreateAnnotationStoreVersionCommand"; import { CreateMultipartReadSetUploadCommandInput, CreateMultipartReadSetUploadCommandOutput, @@ -66,12 +71,17 @@ import { CreateSequenceStoreCommandInput, CreateSequenceStoreCommandOutput, } from "../commands/CreateSequenceStoreCommand"; +import { CreateShareCommandInput, CreateShareCommandOutput } from "../commands/CreateShareCommand"; import { CreateVariantStoreCommandInput, CreateVariantStoreCommandOutput } from "../commands/CreateVariantStoreCommand"; import { CreateWorkflowCommandInput, CreateWorkflowCommandOutput } from "../commands/CreateWorkflowCommand"; import { DeleteAnnotationStoreCommandInput, DeleteAnnotationStoreCommandOutput, } from "../commands/DeleteAnnotationStoreCommand"; +import { + DeleteAnnotationStoreVersionsCommandInput, + DeleteAnnotationStoreVersionsCommandOutput, +} from "../commands/DeleteAnnotationStoreVersionsCommand"; import { DeleteReferenceCommandInput, DeleteReferenceCommandOutput } from "../commands/DeleteReferenceCommand"; import { DeleteReferenceStoreCommandInput, @@ -83,6 +93,7 @@ import { DeleteSequenceStoreCommandInput, DeleteSequenceStoreCommandOutput, } from "../commands/DeleteSequenceStoreCommand"; +import { DeleteShareCommandInput, DeleteShareCommandOutput } from "../commands/DeleteShareCommand"; import { DeleteVariantStoreCommandInput, DeleteVariantStoreCommandOutput } from "../commands/DeleteVariantStoreCommand"; import { DeleteWorkflowCommandInput, DeleteWorkflowCommandOutput } from "../commands/DeleteWorkflowCommand"; import { @@ -90,6 +101,10 @@ import { GetAnnotationImportJobCommandOutput, } from "../commands/GetAnnotationImportJobCommand"; import { GetAnnotationStoreCommandInput, GetAnnotationStoreCommandOutput } from "../commands/GetAnnotationStoreCommand"; +import { + GetAnnotationStoreVersionCommandInput, + GetAnnotationStoreVersionCommandOutput, +} from "../commands/GetAnnotationStoreVersionCommand"; import { GetReadSetActivationJobCommandInput, GetReadSetActivationJobCommandOutput, @@ -118,6 +133,7 @@ import { GetRunCommandInput, GetRunCommandOutput } from "../commands/GetRunComma import { GetRunGroupCommandInput, GetRunGroupCommandOutput } from "../commands/GetRunGroupCommand"; import { GetRunTaskCommandInput, GetRunTaskCommandOutput } from "../commands/GetRunTaskCommand"; import { GetSequenceStoreCommandInput, GetSequenceStoreCommandOutput } from "../commands/GetSequenceStoreCommand"; +import { GetShareCommandInput, GetShareCommandOutput } from "../commands/GetShareCommand"; import { GetVariantImportJobCommandInput, GetVariantImportJobCommandOutput, @@ -132,6 +148,10 @@ import { ListAnnotationStoresCommandInput, ListAnnotationStoresCommandOutput, } from "../commands/ListAnnotationStoresCommand"; +import { + ListAnnotationStoreVersionsCommandInput, + ListAnnotationStoreVersionsCommandOutput, +} from "../commands/ListAnnotationStoreVersionsCommand"; import { ListMultipartReadSetUploadsCommandInput, ListMultipartReadSetUploadsCommandOutput, @@ -166,6 +186,7 @@ import { ListRunGroupsCommandInput, ListRunGroupsCommandOutput } from "../comman import { ListRunsCommandInput, ListRunsCommandOutput } from "../commands/ListRunsCommand"; import { ListRunTasksCommandInput, ListRunTasksCommandOutput } from "../commands/ListRunTasksCommand"; import { ListSequenceStoresCommandInput, ListSequenceStoresCommandOutput } from "../commands/ListSequenceStoresCommand"; +import { ListSharesCommandInput, ListSharesCommandOutput } from "../commands/ListSharesCommand"; import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, @@ -207,6 +228,10 @@ import { UpdateAnnotationStoreCommandInput, UpdateAnnotationStoreCommandOutput, } from "../commands/UpdateAnnotationStoreCommand"; +import { + UpdateAnnotationStoreVersionCommandInput, + UpdateAnnotationStoreVersionCommandOutput, +} from "../commands/UpdateAnnotationStoreVersionCommand"; import { UpdateRunGroupCommandInput, UpdateRunGroupCommandOutput } from "../commands/UpdateRunGroupCommand"; import { UpdateVariantStoreCommandInput, UpdateVariantStoreCommandOutput } from "../commands/UpdateVariantStoreCommand"; import { UpdateWorkflowCommandInput, UpdateWorkflowCommandOutput } from "../commands/UpdateWorkflowCommand"; @@ -218,11 +243,13 @@ import { AnnotationImportItemSource, AnnotationImportJobItem, AnnotationStoreItem, + AnnotationStoreVersionItem, CompleteReadSetUploadPartListItem, ConflictException, ExportReadSet, ExportReadSetFilter, ExportReadSetJobDetail, + Filter, FormatOptions, ImportReadSetFilter, ImportReadSetJobItem, @@ -231,6 +258,7 @@ import { InternalServerException, ListAnnotationImportJobsFilter, ListAnnotationStoresFilter, + ListAnnotationStoreVersionsFilter, ListVariantImportJobsFilter, ListVariantStoresFilter, MultipartReadSetUploadListItem, @@ -254,6 +282,8 @@ import { SequenceStoreDetail, SequenceStoreFilter, ServiceQuotaExceededException, + ShareDetails, + ShareStatus, SourceFiles, SseConfig, StartReadSetActivationJobSourceItem, @@ -264,11 +294,13 @@ import { ThrottlingException, TsvOptions, TsvStoreOptions, + TsvVersionOptions, ValidationException, VariantImportItemSource, VariantImportJobItem, VariantStoreItem, VcfOptions, + VersionOptions, WorkflowListItem, WorkflowParameter, } from "../models/models_0"; @@ -314,6 +346,36 @@ export const se_AbortMultipartReadSetUploadCommand = async ( }); }; +/** + * serializeAws_restJson1AcceptShareCommand + */ +export const se_AcceptShareCommand = async ( + input: AcceptShareCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = {}; + let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/share/{shareId}"; + resolvedPath = __resolvedPath(resolvedPath, input, "shareId", () => input.shareId!, "{shareId}", false); + let body: any; + let { hostname: resolvedHostname } = await context.endpoint(); + if (context.disableHostPrefix !== true) { + resolvedHostname = "analytics-" + resolvedHostname; + if (!__isValidHostname(resolvedHostname)) { + throw new Error("ValidationError: prefixed hostname must be hostname compatible."); + } + } + return new __HttpRequest({ + protocol, + hostname: resolvedHostname, + port, + method: "POST", + headers, + path: resolvedPath, + body, + }); +}; + /** * serializeAws_restJson1BatchDeleteReadSetCommand */ @@ -520,6 +582,48 @@ export const se_CreateAnnotationStoreCommand = async ( storeFormat: [], storeOptions: (_) => _json(_), tags: (_) => _json(_), + versionName: [], + }) + ); + let { hostname: resolvedHostname } = await context.endpoint(); + if (context.disableHostPrefix !== true) { + resolvedHostname = "analytics-" + resolvedHostname; + if (!__isValidHostname(resolvedHostname)) { + throw new Error("ValidationError: prefixed hostname must be hostname compatible."); + } + } + return new __HttpRequest({ + protocol, + hostname: resolvedHostname, + port, + method: "POST", + headers, + path: resolvedPath, + body, + }); +}; + +/** + * serializeAws_restJson1CreateAnnotationStoreVersionCommand + */ +export const se_CreateAnnotationStoreVersionCommand = async ( + input: CreateAnnotationStoreVersionCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = { + "content-type": "application/json", + }; + let resolvedPath = + `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/annotationStore/{name}/version"; + resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); + let body: any; + body = JSON.stringify( + take(input, { + description: [], + tags: (_) => _json(_), + versionName: [], + versionOptions: (_) => _json(_), }) ); let { hostname: resolvedHostname } = await context.endpoint(); @@ -716,6 +820,44 @@ export const se_CreateSequenceStoreCommand = async ( }); }; +/** + * serializeAws_restJson1CreateShareCommand + */ +export const se_CreateShareCommand = async ( + input: CreateShareCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = { + "content-type": "application/json", + }; + const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/share"; + let body: any; + body = JSON.stringify( + take(input, { + principalSubscriber: [], + resourceArn: [], + shareName: [], + }) + ); + let { hostname: resolvedHostname } = await context.endpoint(); + if (context.disableHostPrefix !== true) { + resolvedHostname = "analytics-" + resolvedHostname; + if (!__isValidHostname(resolvedHostname)) { + throw new Error("ValidationError: prefixed hostname must be hostname compatible."); + } + } + return new __HttpRequest({ + protocol, + hostname: resolvedHostname, + port, + method: "POST", + headers, + path: resolvedPath, + body, + }); +}; + /** * serializeAws_restJson1CreateVariantStoreCommand */ @@ -836,6 +978,48 @@ export const se_DeleteAnnotationStoreCommand = async ( }); }; +/** + * serializeAws_restJson1DeleteAnnotationStoreVersionsCommand + */ +export const se_DeleteAnnotationStoreVersionsCommand = async ( + input: DeleteAnnotationStoreVersionsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = { + "content-type": "application/json", + }; + let resolvedPath = + `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/annotationStore/{name}/versions/delete"; + resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); + const query: any = map({ + force: [() => input.force !== void 0, () => input.force!.toString()], + }); + let body: any; + body = JSON.stringify( + take(input, { + versions: (_) => _json(_), + }) + ); + let { hostname: resolvedHostname } = await context.endpoint(); + if (context.disableHostPrefix !== true) { + resolvedHostname = "analytics-" + resolvedHostname; + if (!__isValidHostname(resolvedHostname)) { + throw new Error("ValidationError: prefixed hostname must be hostname compatible."); + } + } + return new __HttpRequest({ + protocol, + hostname: resolvedHostname, + port, + method: "POST", + headers, + path: resolvedPath, + query, + body, + }); +}; + /** * serializeAws_restJson1DeleteReferenceCommand */ @@ -996,6 +1180,36 @@ export const se_DeleteSequenceStoreCommand = async ( }); }; +/** + * serializeAws_restJson1DeleteShareCommand + */ +export const se_DeleteShareCommand = async ( + input: DeleteShareCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = {}; + let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/share/{shareId}"; + resolvedPath = __resolvedPath(resolvedPath, input, "shareId", () => input.shareId!, "{shareId}", false); + let body: any; + let { hostname: resolvedHostname } = await context.endpoint(); + if (context.disableHostPrefix !== true) { + resolvedHostname = "analytics-" + resolvedHostname; + if (!__isValidHostname(resolvedHostname)) { + throw new Error("ValidationError: prefixed hostname must be hostname compatible."); + } + } + return new __HttpRequest({ + protocol, + hostname: resolvedHostname, + port, + method: "DELETE", + headers, + path: resolvedPath, + body, + }); +}; + /** * serializeAws_restJson1DeleteVariantStoreCommand */ @@ -1121,6 +1335,39 @@ export const se_GetAnnotationStoreCommand = async ( }); }; +/** + * serializeAws_restJson1GetAnnotationStoreVersionCommand + */ +export const se_GetAnnotationStoreVersionCommand = async ( + input: GetAnnotationStoreVersionCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = {}; + let resolvedPath = + `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + + "/annotationStore/{name}/version/{versionName}"; + resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); + resolvedPath = __resolvedPath(resolvedPath, input, "versionName", () => input.versionName!, "{versionName}", false); + let body: any; + let { hostname: resolvedHostname } = await context.endpoint(); + if (context.disableHostPrefix !== true) { + resolvedHostname = "analytics-" + resolvedHostname; + if (!__isValidHostname(resolvedHostname)) { + throw new Error("ValidationError: prefixed hostname must be hostname compatible."); + } + } + return new __HttpRequest({ + protocol, + hostname: resolvedHostname, + port, + method: "GET", + headers, + path: resolvedPath, + body, + }); +}; + /** * serializeAws_restJson1GetReadSetCommand */ @@ -1605,6 +1852,36 @@ export const se_GetSequenceStoreCommand = async ( }); }; +/** + * serializeAws_restJson1GetShareCommand + */ +export const se_GetShareCommand = async ( + input: GetShareCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = {}; + let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/share/{shareId}"; + resolvedPath = __resolvedPath(resolvedPath, input, "shareId", () => input.shareId!, "{shareId}", false); + let body: any; + let { hostname: resolvedHostname } = await context.endpoint(); + if (context.disableHostPrefix !== true) { + resolvedHostname = "analytics-" + resolvedHostname; + if (!__isValidHostname(resolvedHostname)) { + throw new Error("ValidationError: prefixed hostname must be hostname compatible."); + } + } + return new __HttpRequest({ + protocol, + hostname: resolvedHostname, + port, + method: "GET", + headers, + path: resolvedPath, + body, + }); +}; + /** * serializeAws_restJson1GetVariantImportJobCommand */ @@ -1784,6 +2061,49 @@ export const se_ListAnnotationStoresCommand = async ( }); }; +/** + * serializeAws_restJson1ListAnnotationStoreVersionsCommand + */ +export const se_ListAnnotationStoreVersionsCommand = async ( + input: ListAnnotationStoreVersionsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = { + "content-type": "application/json", + }; + let resolvedPath = + `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/annotationStore/{name}/versions"; + resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); + const query: any = map({ + maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + nextToken: [, input.nextToken!], + }); + let body: any; + body = JSON.stringify( + take(input, { + filter: (_) => _json(_), + }) + ); + let { hostname: resolvedHostname } = await context.endpoint(); + if (context.disableHostPrefix !== true) { + resolvedHostname = "analytics-" + resolvedHostname; + if (!__isValidHostname(resolvedHostname)) { + throw new Error("ValidationError: prefixed hostname must be hostname compatible."); + } + } + return new __HttpRequest({ + protocol, + hostname: resolvedHostname, + port, + method: "POST", + headers, + path: resolvedPath, + query, + body, + }); +}; + /** * serializeAws_restJson1ListMultipartReadSetUploadsCommand */ @@ -2376,16 +2696,58 @@ export const se_ListSequenceStoresCommand = async ( }; /** - * serializeAws_restJson1ListTagsForResourceCommand + * serializeAws_restJson1ListSharesCommand */ -export const se_ListTagsForResourceCommand = async ( - input: ListTagsForResourceCommandInput, +export const se_ListSharesCommand = async ( + input: ListSharesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); - const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + const headers: any = { + "content-type": "application/json", + }; + const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/shares"; + const query: any = map({ + nextToken: [, input.nextToken!], + maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + }); + let body: any; + body = JSON.stringify( + take(input, { + filter: (_) => _json(_), + resourceOwner: [], + }) + ); + let { hostname: resolvedHostname } = await context.endpoint(); + if (context.disableHostPrefix !== true) { + resolvedHostname = "analytics-" + resolvedHostname; + if (!__isValidHostname(resolvedHostname)) { + throw new Error("ValidationError: prefixed hostname must be hostname compatible."); + } + } + return new __HttpRequest({ + protocol, + hostname: resolvedHostname, + port, + method: "POST", + headers, + path: resolvedPath, + query, + body, + }); +}; + +/** + * serializeAws_restJson1ListTagsForResourceCommand + */ +export const se_ListTagsForResourceCommand = async ( + input: ListTagsForResourceCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = {}; + let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; + resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -2546,6 +2908,7 @@ export const se_StartAnnotationImportJobCommand = async ( items: (_) => _json(_), roleArn: [], runLeftNormalization: [], + versionName: [], }) ); let { hostname: resolvedHostname } = await context.endpoint(); @@ -2957,6 +3320,46 @@ export const se_UpdateAnnotationStoreCommand = async ( }); }; +/** + * serializeAws_restJson1UpdateAnnotationStoreVersionCommand + */ +export const se_UpdateAnnotationStoreVersionCommand = async ( + input: UpdateAnnotationStoreVersionCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = { + "content-type": "application/json", + }; + let resolvedPath = + `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + + "/annotationStore/{name}/version/{versionName}"; + resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); + resolvedPath = __resolvedPath(resolvedPath, input, "versionName", () => input.versionName!, "{versionName}", false); + let body: any; + body = JSON.stringify( + take(input, { + description: [], + }) + ); + let { hostname: resolvedHostname } = await context.endpoint(); + if (context.disableHostPrefix !== true) { + resolvedHostname = "analytics-" + resolvedHostname; + if (!__isValidHostname(resolvedHostname)) { + throw new Error("ValidationError: prefixed hostname must be hostname compatible."); + } + } + return new __HttpRequest({ + protocol, + hostname: resolvedHostname, + port, + method: "POST", + headers, + path: resolvedPath, + body, + }); +}; + /** * serializeAws_restJson1UpdateRunGroupCommand */ @@ -3188,6 +3591,71 @@ const de_AbortMultipartReadSetUploadCommandError = async ( } }; +/** + * deserializeAws_restJson1AcceptShareCommand + */ +export const de_AcceptShareCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_AcceptShareCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + status: __expectString, + }); + Object.assign(contents, doc); + return contents; +}; + +/** + * deserializeAws_restJson1AcceptShareCommandError + */ +const de_AcceptShareCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.omics#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ConflictException": + case "com.amazonaws.omics#ConflictException": + throw await de_ConflictExceptionRes(parsedOutput, context); + case "InternalServerException": + case "com.amazonaws.omics#InternalServerException": + throw await de_InternalServerExceptionRes(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.omics#ResourceNotFoundException": + throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "ServiceQuotaExceededException": + case "com.amazonaws.omics#ServiceQuotaExceededException": + throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context); + case "ThrottlingException": + case "com.amazonaws.omics#ThrottlingException": + throw await de_ThrottlingExceptionRes(parsedOutput, context); + case "ValidationException": + case "com.amazonaws.omics#ValidationException": + throw await de_ValidationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + /** * deserializeAws_restJson1BatchDeleteReadSetCommand */ @@ -3514,6 +3982,7 @@ export const de_CreateAnnotationStoreCommand = async ( status: __expectString, storeFormat: __expectString, storeOptions: (_) => _json(__expectUnion(_)), + versionName: __expectString, }); Object.assign(contents, doc); return contents; @@ -3563,6 +4032,77 @@ const de_CreateAnnotationStoreCommandError = async ( } }; +/** + * deserializeAws_restJson1CreateAnnotationStoreVersionCommand + */ +export const de_CreateAnnotationStoreVersionCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CreateAnnotationStoreVersionCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), + id: __expectString, + name: __expectString, + status: __expectString, + storeId: __expectString, + versionName: __expectString, + versionOptions: (_) => _json(__expectUnion(_)), + }); + Object.assign(contents, doc); + return contents; +}; + +/** + * deserializeAws_restJson1CreateAnnotationStoreVersionCommandError + */ +const de_CreateAnnotationStoreVersionCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.omics#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ConflictException": + case "com.amazonaws.omics#ConflictException": + throw await de_ConflictExceptionRes(parsedOutput, context); + case "InternalServerException": + case "com.amazonaws.omics#InternalServerException": + throw await de_InternalServerExceptionRes(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.omics#ResourceNotFoundException": + throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "ServiceQuotaExceededException": + case "com.amazonaws.omics#ServiceQuotaExceededException": + throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context); + case "ThrottlingException": + case "com.amazonaws.omics#ThrottlingException": + throw await de_ThrottlingExceptionRes(parsedOutput, context); + case "ValidationException": + case "com.amazonaws.omics#ValidationException": + throw await de_ValidationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + /** * deserializeAws_restJson1CreateMultipartReadSetUploadCommand */ @@ -3846,6 +4386,73 @@ const de_CreateSequenceStoreCommandError = async ( } }; +/** + * deserializeAws_restJson1CreateShareCommand + */ +export const de_CreateShareCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CreateShareCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + shareId: __expectString, + shareName: __expectString, + status: __expectString, + }); + Object.assign(contents, doc); + return contents; +}; + +/** + * deserializeAws_restJson1CreateShareCommandError + */ +const de_CreateShareCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.omics#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ConflictException": + case "com.amazonaws.omics#ConflictException": + throw await de_ConflictExceptionRes(parsedOutput, context); + case "InternalServerException": + case "com.amazonaws.omics#InternalServerException": + throw await de_InternalServerExceptionRes(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.omics#ResourceNotFoundException": + throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "ServiceQuotaExceededException": + case "com.amazonaws.omics#ServiceQuotaExceededException": + throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context); + case "ThrottlingException": + case "com.amazonaws.omics#ThrottlingException": + throw await de_ThrottlingExceptionRes(parsedOutput, context); + case "ValidationException": + case "com.amazonaws.omics#ValidationException": + throw await de_ValidationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + /** * deserializeAws_restJson1CreateVariantStoreCommand */ @@ -4048,6 +4655,68 @@ const de_DeleteAnnotationStoreCommandError = async ( } }; +/** + * deserializeAws_restJson1DeleteAnnotationStoreVersionsCommand + */ +export const de_DeleteAnnotationStoreVersionsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_DeleteAnnotationStoreVersionsCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + errors: _json, + }); + Object.assign(contents, doc); + return contents; +}; + +/** + * deserializeAws_restJson1DeleteAnnotationStoreVersionsCommandError + */ +const de_DeleteAnnotationStoreVersionsCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.omics#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ConflictException": + case "com.amazonaws.omics#ConflictException": + throw await de_ConflictExceptionRes(parsedOutput, context); + case "InternalServerException": + case "com.amazonaws.omics#InternalServerException": + throw await de_InternalServerExceptionRes(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.omics#ResourceNotFoundException": + throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "ThrottlingException": + case "com.amazonaws.omics#ThrottlingException": + throw await de_ThrottlingExceptionRes(parsedOutput, context); + case "ValidationException": + case "com.amazonaws.omics#ValidationException": + throw await de_ValidationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + /** * deserializeAws_restJson1DeleteReferenceCommand */ @@ -4359,6 +5028,71 @@ const de_DeleteSequenceStoreCommandError = async ( } }; +/** + * deserializeAws_restJson1DeleteShareCommand + */ +export const de_DeleteShareCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_DeleteShareCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + status: __expectString, + }); + Object.assign(contents, doc); + return contents; +}; + +/** + * deserializeAws_restJson1DeleteShareCommandError + */ +const de_DeleteShareCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.omics#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ConflictException": + case "com.amazonaws.omics#ConflictException": + throw await de_ConflictExceptionRes(parsedOutput, context); + case "InternalServerException": + case "com.amazonaws.omics#InternalServerException": + throw await de_InternalServerExceptionRes(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.omics#ResourceNotFoundException": + throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "ServiceQuotaExceededException": + case "com.amazonaws.omics#ServiceQuotaExceededException": + throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context); + case "ThrottlingException": + case "com.amazonaws.omics#ThrottlingException": + throw await de_ThrottlingExceptionRes(parsedOutput, context); + case "ValidationException": + case "com.amazonaws.omics#ValidationException": + throw await de_ValidationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + /** * deserializeAws_restJson1DeleteVariantStoreCommand */ @@ -4512,6 +5246,7 @@ export const de_GetAnnotationImportJobCommand = async ( status: __expectString, statusMessage: __expectString, updateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), + versionName: __expectString, }); Object.assign(contents, doc); return contents; @@ -4574,6 +5309,7 @@ export const de_GetAnnotationStoreCommand = async ( description: __expectString, id: __expectString, name: __expectString, + numVersions: __expectInt32, reference: (_) => _json(__expectUnion(_)), sseConfig: _json, status: __expectString, @@ -4627,6 +5363,77 @@ const de_GetAnnotationStoreCommandError = async ( } }; +/** + * deserializeAws_restJson1GetAnnotationStoreVersionCommand + */ +export const de_GetAnnotationStoreVersionCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_GetAnnotationStoreVersionCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), + description: __expectString, + id: __expectString, + name: __expectString, + status: __expectString, + statusMessage: __expectString, + storeId: __expectString, + tags: _json, + updateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), + versionArn: __expectString, + versionName: __expectString, + versionOptions: (_) => _json(__expectUnion(_)), + versionSizeBytes: __expectLong, + }); + Object.assign(contents, doc); + return contents; +}; + +/** + * deserializeAws_restJson1GetAnnotationStoreVersionCommandError + */ +const de_GetAnnotationStoreVersionCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.omics#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "InternalServerException": + case "com.amazonaws.omics#InternalServerException": + throw await de_InternalServerExceptionRes(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.omics#ResourceNotFoundException": + throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "ThrottlingException": + case "com.amazonaws.omics#ThrottlingException": + throw await de_ThrottlingExceptionRes(parsedOutput, context); + case "ValidationException": + case "com.amazonaws.omics#ValidationException": + throw await de_ValidationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + /** * deserializeAws_restJson1GetReadSetCommand */ @@ -5442,12 +6249,86 @@ export const de_GetRunTaskCommand = async ( }; /** - * deserializeAws_restJson1GetRunTaskCommandError + * deserializeAws_restJson1GetRunTaskCommandError + */ +const de_GetRunTaskCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.omics#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ConflictException": + case "com.amazonaws.omics#ConflictException": + throw await de_ConflictExceptionRes(parsedOutput, context); + case "InternalServerException": + case "com.amazonaws.omics#InternalServerException": + throw await de_InternalServerExceptionRes(parsedOutput, context); + case "RequestTimeoutException": + case "com.amazonaws.omics#RequestTimeoutException": + throw await de_RequestTimeoutExceptionRes(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.omics#ResourceNotFoundException": + throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "ServiceQuotaExceededException": + case "com.amazonaws.omics#ServiceQuotaExceededException": + throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context); + case "ThrottlingException": + case "com.amazonaws.omics#ThrottlingException": + throw await de_ThrottlingExceptionRes(parsedOutput, context); + case "ValidationException": + case "com.amazonaws.omics#ValidationException": + throw await de_ValidationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_restJson1GetSequenceStoreCommand + */ +export const de_GetSequenceStoreCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_GetSequenceStoreCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + arn: __expectString, + creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), + description: __expectString, + fallbackLocation: __expectString, + id: __expectString, + name: __expectString, + sseConfig: _json, + }); + Object.assign(contents, doc); + return contents; +}; + +/** + * deserializeAws_restJson1GetSequenceStoreCommandError */ -const de_GetRunTaskCommandError = async ( +const de_GetSequenceStoreCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -5457,9 +6338,6 @@ const de_GetRunTaskCommandError = async ( case "AccessDeniedException": case "com.amazonaws.omics#AccessDeniedException": throw await de_AccessDeniedExceptionRes(parsedOutput, context); - case "ConflictException": - case "com.amazonaws.omics#ConflictException": - throw await de_ConflictExceptionRes(parsedOutput, context); case "InternalServerException": case "com.amazonaws.omics#InternalServerException": throw await de_InternalServerExceptionRes(parsedOutput, context); @@ -5469,9 +6347,6 @@ const de_GetRunTaskCommandError = async ( case "ResourceNotFoundException": case "com.amazonaws.omics#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); - case "ServiceQuotaExceededException": - case "com.amazonaws.omics#ServiceQuotaExceededException": - throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context); case "ThrottlingException": case "com.amazonaws.omics#ThrottlingException": throw await de_ThrottlingExceptionRes(parsedOutput, context); @@ -5489,39 +6364,33 @@ const de_GetRunTaskCommandError = async ( }; /** - * deserializeAws_restJson1GetSequenceStoreCommand + * deserializeAws_restJson1GetShareCommand */ -export const de_GetSequenceStoreCommand = async ( +export const de_GetShareCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_GetSequenceStoreCommandError(output, context); + return de_GetShareCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { - arn: __expectString, - creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), - description: __expectString, - fallbackLocation: __expectString, - id: __expectString, - name: __expectString, - sseConfig: _json, + share: (_) => de_ShareDetails(_, context), }); Object.assign(contents, doc); return contents; }; /** - * deserializeAws_restJson1GetSequenceStoreCommandError + * deserializeAws_restJson1GetShareCommandError */ -const de_GetSequenceStoreCommandError = async ( +const de_GetShareCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -5531,15 +6400,18 @@ const de_GetSequenceStoreCommandError = async ( case "AccessDeniedException": case "com.amazonaws.omics#AccessDeniedException": throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ConflictException": + case "com.amazonaws.omics#ConflictException": + throw await de_ConflictExceptionRes(parsedOutput, context); case "InternalServerException": case "com.amazonaws.omics#InternalServerException": throw await de_InternalServerExceptionRes(parsedOutput, context); - case "RequestTimeoutException": - case "com.amazonaws.omics#RequestTimeoutException": - throw await de_RequestTimeoutExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.omics#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "ServiceQuotaExceededException": + case "com.amazonaws.omics#ServiceQuotaExceededException": + throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context); case "ThrottlingException": case "com.amazonaws.omics#ThrottlingException": throw await de_ThrottlingExceptionRes(parsedOutput, context); @@ -5899,6 +6771,66 @@ const de_ListAnnotationStoresCommandError = async ( } }; +/** + * deserializeAws_restJson1ListAnnotationStoreVersionsCommand + */ +export const de_ListAnnotationStoreVersionsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_ListAnnotationStoreVersionsCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + annotationStoreVersions: (_) => de_AnnotationStoreVersionItems(_, context), + nextToken: __expectString, + }); + Object.assign(contents, doc); + return contents; +}; + +/** + * deserializeAws_restJson1ListAnnotationStoreVersionsCommandError + */ +const de_ListAnnotationStoreVersionsCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.omics#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "InternalServerException": + case "com.amazonaws.omics#InternalServerException": + throw await de_InternalServerExceptionRes(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.omics#ResourceNotFoundException": + throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "ThrottlingException": + case "com.amazonaws.omics#ThrottlingException": + throw await de_ThrottlingExceptionRes(parsedOutput, context); + case "ValidationException": + case "com.amazonaws.omics#ValidationException": + throw await de_ValidationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + /** * deserializeAws_restJson1ListMultipartReadSetUploadsCommand */ @@ -6742,6 +7674,72 @@ const de_ListSequenceStoresCommandError = async ( } }; +/** + * deserializeAws_restJson1ListSharesCommand + */ +export const de_ListSharesCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_ListSharesCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + nextToken: __expectString, + shares: (_) => de_ShareDetailsList(_, context), + }); + Object.assign(contents, doc); + return contents; +}; + +/** + * deserializeAws_restJson1ListSharesCommandError + */ +const de_ListSharesCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.omics#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ConflictException": + case "com.amazonaws.omics#ConflictException": + throw await de_ConflictExceptionRes(parsedOutput, context); + case "InternalServerException": + case "com.amazonaws.omics#InternalServerException": + throw await de_InternalServerExceptionRes(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.omics#ResourceNotFoundException": + throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "ServiceQuotaExceededException": + case "com.amazonaws.omics#ServiceQuotaExceededException": + throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context); + case "ThrottlingException": + case "com.amazonaws.omics#ThrottlingException": + throw await de_ThrottlingExceptionRes(parsedOutput, context); + case "ValidationException": + case "com.amazonaws.omics#ValidationException": + throw await de_ValidationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + /** * deserializeAws_restJson1ListTagsForResourceCommand */ @@ -7664,6 +8662,72 @@ const de_UpdateAnnotationStoreCommandError = async ( } }; +/** + * deserializeAws_restJson1UpdateAnnotationStoreVersionCommand + */ +export const de_UpdateAnnotationStoreVersionCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_UpdateAnnotationStoreVersionCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), + description: __expectString, + id: __expectString, + name: __expectString, + status: __expectString, + storeId: __expectString, + updateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), + versionName: __expectString, + }); + Object.assign(contents, doc); + return contents; +}; + +/** + * deserializeAws_restJson1UpdateAnnotationStoreVersionCommandError + */ +const de_UpdateAnnotationStoreVersionCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.omics#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "InternalServerException": + case "com.amazonaws.omics#InternalServerException": + throw await de_InternalServerExceptionRes(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.omics#ResourceNotFoundException": + throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "ThrottlingException": + case "com.amazonaws.omics#ThrottlingException": + throw await de_ThrottlingExceptionRes(parsedOutput, context); + case "ValidationException": + case "com.amazonaws.omics#ValidationException": + throw await de_ValidationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + /** * deserializeAws_restJson1UpdateRunGroupCommand */ @@ -8134,6 +9198,8 @@ const se_ActivateReadSetFilter = (input: ActivateReadSetFilter, context: __Serde // se_AnnotationImportItemSources omitted. +// se_ArnList omitted. + // se_CompleteReadSetUploadPartList omitted. // se_CompleteReadSetUploadPartListItem omitted. @@ -8153,6 +9219,8 @@ const se_ExportReadSetFilter = (input: ExportReadSetFilter, context: __SerdeCont // se_ExportReadSetList omitted. +// se_Filter omitted. + // se_FormatOptions omitted. // se_FormatToHeader omitted. @@ -8185,6 +9253,8 @@ const se_ImportReferenceFilter = (input: ImportReferenceFilter, context: __Serde // se_ListAnnotationStoresFilter omitted. +// se_ListAnnotationStoreVersionsFilter omitted. + // se_ListVariantImportJobsFilter omitted. // se_ListVariantStoresFilter omitted. @@ -8283,6 +9353,8 @@ const se_SequenceStoreFilter = (input: SequenceStoreFilter, context: __SerdeCont // se_StartReferenceImportJobSourceList omitted. +// se_StatusList omitted. + // se_StoreOptions omitted. // se_TagMap omitted. @@ -8291,12 +9363,18 @@ const se_SequenceStoreFilter = (input: SequenceStoreFilter, context: __SerdeCont // se_TsvStoreOptions omitted. +// se_TsvVersionOptions omitted. + // se_VariantImportItemSource omitted. // se_VariantImportItemSources omitted. // se_VcfOptions omitted. +// se_VersionList omitted. + +// se_VersionOptions omitted. + // se_WorkflowParameter omitted. // se_WorkflowParameterTemplate omitted. @@ -8350,6 +9428,7 @@ const de_AnnotationImportJobItem = (output: any, context: __SerdeContext): Annot runLeftNormalization: __expectBoolean, status: __expectString, updateTime: (_: any) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), + versionName: __expectString, }) as any; }; @@ -8397,6 +9476,37 @@ const de_AnnotationStoreItems = (output: any, context: __SerdeContext): Annotati return retVal; }; +/** + * deserializeAws_restJson1AnnotationStoreVersionItem + */ +const de_AnnotationStoreVersionItem = (output: any, context: __SerdeContext): AnnotationStoreVersionItem => { + return take(output, { + creationTime: (_: any) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), + description: __expectString, + id: __expectString, + name: __expectString, + status: __expectString, + statusMessage: __expectString, + storeId: __expectString, + updateTime: (_: any) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), + versionArn: __expectString, + versionName: __expectString, + versionSizeBytes: __expectLong, + }) as any; +}; + +/** + * deserializeAws_restJson1AnnotationStoreVersionItems + */ +const de_AnnotationStoreVersionItems = (output: any, context: __SerdeContext): AnnotationStoreVersionItem[] => { + const retVal = (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return de_AnnotationStoreVersionItem(entry, context); + }); + return retVal; +}; + // de_ExportReadSetDetail omitted. // de_ExportReadSetDetailList omitted. @@ -8751,6 +9861,35 @@ const de_SequenceStoreDetailList = (output: any, context: __SerdeContext): Seque return retVal; }; +/** + * deserializeAws_restJson1ShareDetails + */ +const de_ShareDetails = (output: any, context: __SerdeContext): ShareDetails => { + return take(output, { + creationTime: (_: any) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), + ownerId: __expectString, + principalSubscriber: __expectString, + resourceArn: __expectString, + shareId: __expectString, + shareName: __expectString, + status: __expectString, + statusMessage: __expectString, + updateTime: (_: any) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), + }) as any; +}; + +/** + * deserializeAws_restJson1ShareDetailsList + */ +const de_ShareDetailsList = (output: any, context: __SerdeContext): ShareDetails[] => { + const retVal = (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return de_ShareDetails(entry, context); + }); + return retVal; +}; + // de_SourceFiles omitted. // de_SseConfig omitted. @@ -8793,6 +9932,8 @@ const de_TaskListItem = (output: any, context: __SerdeContext): TaskListItem => // de_TsvStoreOptions omitted. +// de_TsvVersionOptions omitted. + // de_VariantImportItemDetail omitted. // de_VariantImportItemDetails omitted. @@ -8859,6 +10000,12 @@ const de_VariantStoreItems = (output: any, context: __SerdeContext): VariantStor // de_VcfOptions omitted. +// de_VersionDeleteError omitted. + +// de_VersionDeleteErrorList omitted. + +// de_VersionOptions omitted. + /** * deserializeAws_restJson1WorkflowList */ diff --git a/clients/client-omics/src/waiters/index.ts b/clients/client-omics/src/waiters/index.ts index 019ee3ae9879e..2d3586362613d 100644 --- a/clients/client-omics/src/waiters/index.ts +++ b/clients/client-omics/src/waiters/index.ts @@ -2,6 +2,8 @@ export * from "./waitForAnnotationImportJobCreated"; export * from "./waitForAnnotationStoreCreated"; export * from "./waitForAnnotationStoreDeleted"; +export * from "./waitForAnnotationStoreVersionCreated"; +export * from "./waitForAnnotationStoreVersionDeleted"; export * from "./waitForReadSetActivationJobCompleted"; export * from "./waitForReadSetExportJobCompleted"; export * from "./waitForReadSetImportJobCompleted"; diff --git a/clients/client-omics/src/waiters/waitForAnnotationStoreVersionCreated.ts b/clients/client-omics/src/waiters/waitForAnnotationStoreVersionCreated.ts new file mode 100644 index 0000000000000..654c663b2c1c1 --- /dev/null +++ b/clients/client-omics/src/waiters/waitForAnnotationStoreVersionCreated.ts @@ -0,0 +1,75 @@ +// smithy-typescript generated code +import { checkExceptions, createWaiter, WaiterConfiguration, WaiterResult, WaiterState } from "@smithy/util-waiter"; + +import { + GetAnnotationStoreVersionCommand, + GetAnnotationStoreVersionCommandInput, +} from "../commands/GetAnnotationStoreVersionCommand"; +import { OmicsClient } from "../OmicsClient"; + +const checkState = async (client: OmicsClient, input: GetAnnotationStoreVersionCommandInput): Promise => { + let reason; + try { + const result: any = await client.send(new GetAnnotationStoreVersionCommand(input)); + reason = result; + try { + const returnComparator = () => { + return result.status; + }; + if (returnComparator() === "ACTIVE") { + return { state: WaiterState.SUCCESS, reason }; + } + } catch (e) {} + try { + const returnComparator = () => { + return result.status; + }; + if (returnComparator() === "CREATING") { + return { state: WaiterState.RETRY, reason }; + } + } catch (e) {} + try { + const returnComparator = () => { + return result.status; + }; + if (returnComparator() === "UPDATING") { + return { state: WaiterState.RETRY, reason }; + } + } catch (e) {} + try { + const returnComparator = () => { + return result.status; + }; + if (returnComparator() === "FAILED") { + return { state: WaiterState.FAILURE, reason }; + } + } catch (e) {} + } catch (exception) { + reason = exception; + } + return { state: WaiterState.RETRY, reason }; +}; +/** + * Wait until an annotation store version is created + * @deprecated Use waitUntilAnnotationStoreVersionCreated instead. waitForAnnotationStoreVersionCreated does not throw error in non-success cases. + */ +export const waitForAnnotationStoreVersionCreated = async ( + params: WaiterConfiguration, + input: GetAnnotationStoreVersionCommandInput +): Promise => { + const serviceDefaults = { minDelay: 30, maxDelay: 600 }; + return createWaiter({ ...serviceDefaults, ...params }, input, checkState); +}; +/** + * Wait until an annotation store version is created + * @param params - Waiter configuration options. + * @param input - The input to GetAnnotationStoreVersionCommand for polling. + */ +export const waitUntilAnnotationStoreVersionCreated = async ( + params: WaiterConfiguration, + input: GetAnnotationStoreVersionCommandInput +): Promise => { + const serviceDefaults = { minDelay: 30, maxDelay: 600 }; + const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState); + return checkExceptions(result); +}; diff --git a/clients/client-omics/src/waiters/waitForAnnotationStoreVersionDeleted.ts b/clients/client-omics/src/waiters/waitForAnnotationStoreVersionDeleted.ts new file mode 100644 index 0000000000000..8dfea085426c3 --- /dev/null +++ b/clients/client-omics/src/waiters/waitForAnnotationStoreVersionDeleted.ts @@ -0,0 +1,62 @@ +// smithy-typescript generated code +import { checkExceptions, createWaiter, WaiterConfiguration, WaiterResult, WaiterState } from "@smithy/util-waiter"; + +import { + GetAnnotationStoreVersionCommand, + GetAnnotationStoreVersionCommandInput, +} from "../commands/GetAnnotationStoreVersionCommand"; +import { OmicsClient } from "../OmicsClient"; + +const checkState = async (client: OmicsClient, input: GetAnnotationStoreVersionCommandInput): Promise => { + let reason; + try { + const result: any = await client.send(new GetAnnotationStoreVersionCommand(input)); + reason = result; + try { + const returnComparator = () => { + return result.status; + }; + if (returnComparator() === "DELETED") { + return { state: WaiterState.SUCCESS, reason }; + } + } catch (e) {} + try { + const returnComparator = () => { + return result.status; + }; + if (returnComparator() === "DELETING") { + return { state: WaiterState.RETRY, reason }; + } + } catch (e) {} + } catch (exception) { + reason = exception; + if (exception.name && exception.name == "ResourceNotFoundException") { + return { state: WaiterState.SUCCESS, reason }; + } + } + return { state: WaiterState.RETRY, reason }; +}; +/** + * Wait until an annotation store version is deleted. + * @deprecated Use waitUntilAnnotationStoreVersionDeleted instead. waitForAnnotationStoreVersionDeleted does not throw error in non-success cases. + */ +export const waitForAnnotationStoreVersionDeleted = async ( + params: WaiterConfiguration, + input: GetAnnotationStoreVersionCommandInput +): Promise => { + const serviceDefaults = { minDelay: 30, maxDelay: 600 }; + return createWaiter({ ...serviceDefaults, ...params }, input, checkState); +}; +/** + * Wait until an annotation store version is deleted. + * @param params - Waiter configuration options. + * @param input - The input to GetAnnotationStoreVersionCommand for polling. + */ +export const waitUntilAnnotationStoreVersionDeleted = async ( + params: WaiterConfiguration, + input: GetAnnotationStoreVersionCommandInput +): Promise => { + const serviceDefaults = { minDelay: 30, maxDelay: 600 }; + const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState); + return checkExceptions(result); +}; diff --git a/codegen/sdk-codegen/aws-models/omics.json b/codegen/sdk-codegen/aws-models/omics.json index 872f4929dd578..3d907579b46ee 100644 --- a/codegen/sdk-codegen/aws-models/omics.json +++ b/codegen/sdk-codegen/aws-models/omics.json @@ -92,6 +92,79 @@ } } }, + "com.amazonaws.omics#AcceptShare": { + "type": "operation", + "input": { + "target": "com.amazonaws.omics#AcceptShareRequest" + }, + "output": { + "target": "com.amazonaws.omics#AcceptShareResponse" + }, + "errors": [ + { + "target": "com.amazonaws.omics#AccessDeniedException" + }, + { + "target": "com.amazonaws.omics#ConflictException" + }, + { + "target": "com.amazonaws.omics#InternalServerException" + }, + { + "target": "com.amazonaws.omics#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.omics#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.omics#ThrottlingException" + }, + { + "target": "com.amazonaws.omics#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

\nAccepts a share for an analytics store. \n

", + "smithy.api#endpoint": { + "hostPrefix": "analytics-" + }, + "smithy.api#http": { + "method": "POST", + "uri": "/share/{shareId}", + "code": 200 + } + } + }, + "com.amazonaws.omics#AcceptShareRequest": { + "type": "structure", + "members": { + "shareId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

\nThe ID for a share offer for analytics store data. \n

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.omics#AcceptShareResponse": { + "type": "structure", + "members": { + "status": { + "target": "com.amazonaws.omics#ShareStatus", + "traits": { + "smithy.api#documentation": "

\nThe status of an analytics store share. \n

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.omics#AccessDeniedException": { "type": "structure", "members": { @@ -348,6 +421,13 @@ "smithy.api#required": {} } }, + "versionName": { + "target": "com.amazonaws.omics#VersionName", + "traits": { + "smithy.api#documentation": "

\nThe name of the annotation store version. \n

", + "smithy.api#required": {} + } + }, "roleArn": { "target": "com.amazonaws.omics#Arn", "traits": { @@ -475,7 +555,7 @@ } }, "description": { - "target": "com.amazonaws.omics#StoreDescription", + "target": "com.amazonaws.omics#Description", "traits": { "smithy.api#documentation": "

The store's description.

", "smithy.api#required": {} @@ -527,6 +607,125 @@ "target": "com.amazonaws.omics#AnnotationStoreItem" } }, + "com.amazonaws.omics#AnnotationStoreVersion": { + "type": "resource", + "identifiers": { + "name": { + "target": "smithy.api#String" + }, + "versionName": { + "target": "smithy.api#String" + } + }, + "create": { + "target": "com.amazonaws.omics#CreateAnnotationStoreVersion" + }, + "read": { + "target": "com.amazonaws.omics#GetAnnotationStoreVersion" + }, + "update": { + "target": "com.amazonaws.omics#UpdateAnnotationStoreVersion" + }, + "list": { + "target": "com.amazonaws.omics#ListAnnotationStoreVersions" + }, + "collectionOperations": [ + { + "target": "com.amazonaws.omics#DeleteAnnotationStoreVersions" + } + ] + }, + "com.amazonaws.omics#AnnotationStoreVersionItem": { + "type": "structure", + "members": { + "storeId": { + "target": "com.amazonaws.omics#ResourceId", + "traits": { + "smithy.api#documentation": "

\nThe store ID for an annotation store version. \n

", + "smithy.api#required": {} + } + }, + "id": { + "target": "com.amazonaws.omics#ResourceId", + "traits": { + "smithy.api#documentation": "

\nThe annotation store version ID. \n

", + "smithy.api#required": {} + } + }, + "status": { + "target": "com.amazonaws.omics#VersionStatus", + "traits": { + "smithy.api#documentation": "

\nThe status of an annotation store version. \n

", + "smithy.api#required": {} + } + }, + "versionArn": { + "target": "com.amazonaws.omics#Arn", + "traits": { + "smithy.api#documentation": "

\nThe Arn for an annotation store version. \n

", + "smithy.api#required": {} + } + }, + "name": { + "target": "com.amazonaws.omics#StoreName", + "traits": { + "smithy.api#documentation": "

\nA name given to an annotation store version to distinguish it from others. \n

", + "smithy.api#required": {} + } + }, + "versionName": { + "target": "com.amazonaws.omics#VersionName", + "traits": { + "smithy.api#documentation": "

\nThe name of an annotation store version.\n

", + "smithy.api#required": {} + } + }, + "description": { + "target": "com.amazonaws.omics#Description", + "traits": { + "smithy.api#documentation": "

\nThe description of an annotation store version. \n

", + "smithy.api#required": {} + } + }, + "creationTime": { + "target": "com.amazonaws.omics#CreationTime", + "traits": { + "smithy.api#documentation": "

\nThe time stamp for when an annotation store version was created. \n

", + "smithy.api#required": {} + } + }, + "updateTime": { + "target": "com.amazonaws.omics#UpdateTime", + "traits": { + "smithy.api#documentation": "

\nThe time stamp for when an annotation store version was updated. \n

", + "smithy.api#required": {} + } + }, + "statusMessage": { + "target": "com.amazonaws.omics#StatusMessage", + "traits": { + "smithy.api#documentation": "

\nThe status of an annotation store version.\n

", + "smithy.api#required": {} + } + }, + "versionSizeBytes": { + "target": "smithy.api#Long", + "traits": { + "smithy.api#documentation": "

\nThe size of an annotation store version in Bytes. \n

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

\nAnnotation store versions.\n

" + } + }, + "com.amazonaws.omics#AnnotationStoreVersionItems": { + "type": "list", + "member": { + "target": "com.amazonaws.omics#AnnotationStoreVersionItem" + } + }, "com.amazonaws.omics#AnnotationType": { "type": "string", "traits": { @@ -579,6 +778,19 @@ "smithy.api#pattern": "^arn:([^:\n]*):([^:\n]*):([^:\n]*):([0-9]{12}):([^:\n]*)$" } }, + "com.amazonaws.omics#ArnList": { + "type": "list", + "member": { + "target": "smithy.api#String" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 10 + }, + "smithy.api#uniqueItems": {} + } + }, "com.amazonaws.omics#BatchDeleteReadSet": { "type": "operation", "input": { @@ -1064,14 +1276,13 @@ } }, "name": { - "target": "smithy.api#String", + "target": "com.amazonaws.omics#StoreName", "traits": { - "smithy.api#documentation": "

A name for the store.

", - "smithy.api#pattern": "^([a-z]){1}([a-z0-9_]){2,254}$" + "smithy.api#documentation": "

A name for the store.

" } }, "description": { - "target": "com.amazonaws.omics#StoreDescription", + "target": "com.amazonaws.omics#Description", "traits": { "smithy.api#documentation": "

A description for the store.

" } @@ -1082,6 +1293,12 @@ "smithy.api#documentation": "

Tags for the store.

" } }, + "versionName": { + "target": "com.amazonaws.omics#VersionName", + "traits": { + "smithy.api#documentation": "

\nThe name given to an annotation store version to distinguish it from other versions. \n

" + } + }, "sseConfig": { "target": "com.amazonaws.omics#SseConfig", "traits": { @@ -1148,6 +1365,13 @@ "smithy.api#required": {} } }, + "versionName": { + "target": "com.amazonaws.omics#VersionName", + "traits": { + "smithy.api#documentation": "

\nThe name given to an annotation store version to distinguish it from other versions. \n

", + "smithy.api#required": {} + } + }, "creationTime": { "target": "com.amazonaws.omics#CreationTime", "traits": { @@ -1160,26 +1384,23 @@ "smithy.api#output": {} } }, - "com.amazonaws.omics#CreateMultipartReadSetUpload": { + "com.amazonaws.omics#CreateAnnotationStoreVersion": { "type": "operation", "input": { - "target": "com.amazonaws.omics#CreateMultipartReadSetUploadRequest" + "target": "com.amazonaws.omics#CreateAnnotationStoreVersionRequest" }, "output": { - "target": "com.amazonaws.omics#CreateMultipartReadSetUploadResponse" + "target": "com.amazonaws.omics#CreateAnnotationStoreVersionResponse" }, "errors": [ { "target": "com.amazonaws.omics#AccessDeniedException" }, { - "target": "com.amazonaws.omics#InternalServerException" - }, - { - "target": "com.amazonaws.omics#NotSupportedOperationException" + "target": "com.amazonaws.omics#ConflictException" }, { - "target": "com.amazonaws.omics#RequestTimeoutException" + "target": "com.amazonaws.omics#InternalServerException" }, { "target": "com.amazonaws.omics#ResourceNotFoundException" @@ -1195,84 +1416,51 @@ } ], "traits": { - "smithy.api#documentation": "

\n Begins a multipart read set upload. \n

", + "smithy.api#documentation": "

\nCreates a new version of an annotation store. \n

", "smithy.api#endpoint": { - "hostPrefix": "control-storage-" + "hostPrefix": "analytics-" }, "smithy.api#http": { "method": "POST", - "uri": "/sequencestore/{sequenceStoreId}/upload" + "uri": "/annotationStore/{name}/version", + "code": 200 } } }, - "com.amazonaws.omics#CreateMultipartReadSetUploadRequest": { + "com.amazonaws.omics#CreateAnnotationStoreVersionRequest": { "type": "structure", "members": { - "sequenceStoreId": { - "target": "com.amazonaws.omics#SequenceStoreId", + "name": { + "target": "com.amazonaws.omics#StoreName", "traits": { - "smithy.api#documentation": "

\n The sequence store ID for the store that is the destination of the multipart uploads.\n

", + "smithy.api#documentation": "

\nThe name of an annotation store version from which versions are being created. \n

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, - "clientToken": { - "target": "com.amazonaws.omics#ClientToken", - "traits": { - "smithy.api#documentation": "

\n An idempotency token that can be used to avoid triggering multiple multipart uploads.\n

" - } - }, - "sourceFileType": { - "target": "com.amazonaws.omics#FileType", - "traits": { - "smithy.api#documentation": "

\n The type of file being uploaded.\n

", - "smithy.api#required": {} - } - }, - "subjectId": { - "target": "com.amazonaws.omics#SubjectId", - "traits": { - "smithy.api#documentation": "

\n The source's subject ID.\n

", - "smithy.api#required": {} - } - }, - "sampleId": { - "target": "com.amazonaws.omics#SampleId", - "traits": { - "smithy.api#documentation": "

\n The source's sample ID.\n

", - "smithy.api#required": {} - } - }, - "generatedFrom": { - "target": "com.amazonaws.omics#GeneratedFrom", - "traits": { - "smithy.api#documentation": "

\n Where the source originated.\n

" - } - }, - "referenceArn": { - "target": "com.amazonaws.omics#ReferenceArn", + "versionName": { + "target": "com.amazonaws.omics#VersionName", "traits": { - "smithy.api#documentation": "

\n The ARN of the reference.\n

", + "smithy.api#documentation": "

\nThe name given to an annotation store version to distinguish it from other versions. \n

", "smithy.api#required": {} } }, - "name": { - "target": "com.amazonaws.omics#ReadSetName", + "description": { + "target": "com.amazonaws.omics#Description", "traits": { - "smithy.api#documentation": "

\n The name of the read set.\n

", - "smithy.api#required": {} + "smithy.api#documentation": "

\nThe description of an annotation store version. \n

" } }, - "description": { - "target": "com.amazonaws.omics#ReadSetDescription", + "versionOptions": { + "target": "com.amazonaws.omics#VersionOptions", "traits": { - "smithy.api#documentation": "

\n The description of the read set.\n

" + "smithy.api#documentation": "

\nThe options for an annotation store version. \n

" } }, "tags": { "target": "com.amazonaws.omics#TagMap", "traits": { - "smithy.api#documentation": "

\n Any tags to add to the read set.\n

" + "smithy.api#documentation": "

\nAny tags added to annotation store version. \n

" } } }, @@ -1280,34 +1468,210 @@ "smithy.api#input": {} } }, - "com.amazonaws.omics#CreateMultipartReadSetUploadResponse": { + "com.amazonaws.omics#CreateAnnotationStoreVersionResponse": { "type": "structure", "members": { - "sequenceStoreId": { - "target": "com.amazonaws.omics#SequenceStoreId", + "id": { + "target": "com.amazonaws.omics#ResourceId", "traits": { - "smithy.api#documentation": "

\n The sequence store ID for the store that the read set will be created in.\n

", + "smithy.api#documentation": "

\nA generated ID for the annotation store \n

", "smithy.api#required": {} } }, - "uploadId": { - "target": "com.amazonaws.omics#UploadId", + "versionName": { + "target": "com.amazonaws.omics#VersionName", "traits": { - "smithy.api#documentation": "

\n he ID for the initiated multipart upload.\n

", + "smithy.api#documentation": "

\nThe name given to an annotation store version to distinguish it from other versions. \n

", "smithy.api#required": {} } }, - "sourceFileType": { - "target": "com.amazonaws.omics#FileType", + "storeId": { + "target": "com.amazonaws.omics#ResourceId", "traits": { - "smithy.api#documentation": "

\n The file type of the read set source.\n

", + "smithy.api#documentation": "

\nThe ID for the annotation store from which new versions are being created. \n

", "smithy.api#required": {} } }, - "subjectId": { - "target": "com.amazonaws.omics#SubjectId", + "versionOptions": { + "target": "com.amazonaws.omics#VersionOptions", "traits": { - "smithy.api#documentation": "

\n The source's subject ID.\n

", + "smithy.api#documentation": "

\nThe options for an annotation store version. \n

" + } + }, + "name": { + "target": "com.amazonaws.omics#StoreName", + "traits": { + "smithy.api#documentation": "

\nThe name given to an annotation store version to distinguish it from other versions. \n

", + "smithy.api#required": {} + } + }, + "status": { + "target": "com.amazonaws.omics#VersionStatus", + "traits": { + "smithy.api#documentation": "

\nThe status of a annotation store version. \n

", + "smithy.api#required": {} + } + }, + "creationTime": { + "target": "com.amazonaws.omics#CreationTime", + "traits": { + "smithy.api#documentation": "

\nThe time stamp for the creation of an annotation store version. \n

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.omics#CreateMultipartReadSetUpload": { + "type": "operation", + "input": { + "target": "com.amazonaws.omics#CreateMultipartReadSetUploadRequest" + }, + "output": { + "target": "com.amazonaws.omics#CreateMultipartReadSetUploadResponse" + }, + "errors": [ + { + "target": "com.amazonaws.omics#AccessDeniedException" + }, + { + "target": "com.amazonaws.omics#InternalServerException" + }, + { + "target": "com.amazonaws.omics#NotSupportedOperationException" + }, + { + "target": "com.amazonaws.omics#RequestTimeoutException" + }, + { + "target": "com.amazonaws.omics#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.omics#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.omics#ThrottlingException" + }, + { + "target": "com.amazonaws.omics#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

\n Begins a multipart read set upload. \n

", + "smithy.api#endpoint": { + "hostPrefix": "control-storage-" + }, + "smithy.api#http": { + "method": "POST", + "uri": "/sequencestore/{sequenceStoreId}/upload" + } + } + }, + "com.amazonaws.omics#CreateMultipartReadSetUploadRequest": { + "type": "structure", + "members": { + "sequenceStoreId": { + "target": "com.amazonaws.omics#SequenceStoreId", + "traits": { + "smithy.api#documentation": "

\n The sequence store ID for the store that is the destination of the multipart uploads.\n

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "clientToken": { + "target": "com.amazonaws.omics#ClientToken", + "traits": { + "smithy.api#documentation": "

\n An idempotency token that can be used to avoid triggering multiple multipart uploads.\n

" + } + }, + "sourceFileType": { + "target": "com.amazonaws.omics#FileType", + "traits": { + "smithy.api#documentation": "

\n The type of file being uploaded.\n

", + "smithy.api#required": {} + } + }, + "subjectId": { + "target": "com.amazonaws.omics#SubjectId", + "traits": { + "smithy.api#documentation": "

\n The source's subject ID.\n

", + "smithy.api#required": {} + } + }, + "sampleId": { + "target": "com.amazonaws.omics#SampleId", + "traits": { + "smithy.api#documentation": "

\n The source's sample ID.\n

", + "smithy.api#required": {} + } + }, + "generatedFrom": { + "target": "com.amazonaws.omics#GeneratedFrom", + "traits": { + "smithy.api#documentation": "

\n Where the source originated.\n

" + } + }, + "referenceArn": { + "target": "com.amazonaws.omics#ReferenceArn", + "traits": { + "smithy.api#documentation": "

\n The ARN of the reference.\n

", + "smithy.api#required": {} + } + }, + "name": { + "target": "com.amazonaws.omics#ReadSetName", + "traits": { + "smithy.api#documentation": "

\n The name of the read set.\n

", + "smithy.api#required": {} + } + }, + "description": { + "target": "com.amazonaws.omics#ReadSetDescription", + "traits": { + "smithy.api#documentation": "

\n The description of the read set.\n

" + } + }, + "tags": { + "target": "com.amazonaws.omics#TagMap", + "traits": { + "smithy.api#documentation": "

\n Any tags to add to the read set.\n

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.omics#CreateMultipartReadSetUploadResponse": { + "type": "structure", + "members": { + "sequenceStoreId": { + "target": "com.amazonaws.omics#SequenceStoreId", + "traits": { + "smithy.api#documentation": "

\n The sequence store ID for the store that the read set will be created in.\n

", + "smithy.api#required": {} + } + }, + "uploadId": { + "target": "com.amazonaws.omics#UploadId", + "traits": { + "smithy.api#documentation": "

\n he ID for the initiated multipart upload.\n

", + "smithy.api#required": {} + } + }, + "sourceFileType": { + "target": "com.amazonaws.omics#FileType", + "traits": { + "smithy.api#documentation": "

\n The file type of the read set source.\n

", + "smithy.api#required": {} + } + }, + "subjectId": { + "target": "com.amazonaws.omics#SubjectId", + "traits": { + "smithy.api#documentation": "

\n The source's subject ID.\n

", "smithy.api#required": {} } }, @@ -1768,6 +2132,103 @@ "smithy.api#output": {} } }, + "com.amazonaws.omics#CreateShare": { + "type": "operation", + "input": { + "target": "com.amazonaws.omics#CreateShareRequest" + }, + "output": { + "target": "com.amazonaws.omics#CreateShareResponse" + }, + "errors": [ + { + "target": "com.amazonaws.omics#AccessDeniedException" + }, + { + "target": "com.amazonaws.omics#ConflictException" + }, + { + "target": "com.amazonaws.omics#InternalServerException" + }, + { + "target": "com.amazonaws.omics#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.omics#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.omics#ThrottlingException" + }, + { + "target": "com.amazonaws.omics#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

\n Creates a share offer that can be accepted outside the account by a subscriber. The share is created by the owner and accepted by the principal subscriber. \n

", + "smithy.api#endpoint": { + "hostPrefix": "analytics-" + }, + "smithy.api#http": { + "method": "POST", + "uri": "/share", + "code": 200 + } + } + }, + "com.amazonaws.omics#CreateShareRequest": { + "type": "structure", + "members": { + "resourceArn": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

\n The resource ARN for the analytics store to be shared.\n

", + "smithy.api#required": {} + } + }, + "principalSubscriber": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

\n The principal subscriber is the account being given access to the analytics store data through the share offer. \n

", + "smithy.api#required": {} + } + }, + "shareName": { + "target": "com.amazonaws.omics#ShareName", + "traits": { + "smithy.api#documentation": "

\n A name given to the share. \n

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.omics#CreateShareResponse": { + "type": "structure", + "members": { + "shareId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

\n An ID generated for the share. \n

" + } + }, + "status": { + "target": "com.amazonaws.omics#ShareStatus", + "traits": { + "smithy.api#documentation": "

\n The status of a share. \n

" + } + }, + "shareName": { + "target": "com.amazonaws.omics#ShareName", + "traits": { + "smithy.api#documentation": "

\n A name given to the share. \n

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.omics#CreateVariantStore": { "type": "operation", "input": { @@ -1822,14 +2283,13 @@ } }, "name": { - "target": "smithy.api#String", + "target": "com.amazonaws.omics#StoreName", "traits": { - "smithy.api#documentation": "

A name for the store.

", - "smithy.api#pattern": "^([a-z]){1}([a-z0-9_]){2,254}$" + "smithy.api#documentation": "

A name for the store.

" } }, "description": { - "target": "com.amazonaws.omics#StoreDescription", + "target": "com.amazonaws.omics#Description", "traits": { "smithy.api#documentation": "

A description for the store.

" } @@ -2153,13 +2613,13 @@ "smithy.api#output": {} } }, - "com.amazonaws.omics#DeleteReference": { + "com.amazonaws.omics#DeleteAnnotationStoreVersions": { "type": "operation", "input": { - "target": "com.amazonaws.omics#DeleteReferenceRequest" + "target": "com.amazonaws.omics#DeleteAnnotationStoreVersionsRequest" }, "output": { - "target": "com.amazonaws.omics#DeleteReferenceResponse" + "target": "com.amazonaws.omics#DeleteAnnotationStoreVersionsResponse" }, "errors": [ { @@ -2172,7 +2632,93 @@ "target": "com.amazonaws.omics#InternalServerException" }, { - "target": "com.amazonaws.omics#RequestTimeoutException" + "target": "com.amazonaws.omics#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.omics#ThrottlingException" + }, + { + "target": "com.amazonaws.omics#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

\nDeletes one or multiple versions of an annotation store. \n

", + "smithy.api#endpoint": { + "hostPrefix": "analytics-" + }, + "smithy.api#http": { + "method": "POST", + "uri": "/annotationStore/{name}/versions/delete", + "code": 200 + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.omics#DeleteAnnotationStoreVersionsRequest": { + "type": "structure", + "members": { + "name": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

\nThe name of the annotation store from which versions are being deleted. \n

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "versions": { + "target": "com.amazonaws.omics#VersionList", + "traits": { + "smithy.api#documentation": "

\nThe versions of an annotation store to be deleted. \n

", + "smithy.api#required": {} + } + }, + "force": { + "target": "smithy.api#PrimitiveBoolean", + "traits": { + "smithy.api#default": false, + "smithy.api#documentation": "

\nForces the deletion of an annotation store version when imports are in-progress.. \n

", + "smithy.api#httpQuery": "force" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.omics#DeleteAnnotationStoreVersionsResponse": { + "type": "structure", + "members": { + "errors": { + "target": "com.amazonaws.omics#VersionDeleteErrorList", + "traits": { + "smithy.api#documentation": "

\nAny errors that occur when attempting to delete an annotation store version. \n

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.omics#DeleteReference": { + "type": "operation", + "input": { + "target": "com.amazonaws.omics#DeleteReferenceRequest" + }, + "output": { + "target": "com.amazonaws.omics#DeleteReferenceResponse" + }, + "errors": [ + { + "target": "com.amazonaws.omics#AccessDeniedException" + }, + { + "target": "com.amazonaws.omics#ConflictException" + }, + { + "target": "com.amazonaws.omics#InternalServerException" + }, + { + "target": "com.amazonaws.omics#RequestTimeoutException" }, { "target": "com.amazonaws.omics#ResourceNotFoundException" @@ -2488,6 +3034,80 @@ "smithy.api#output": {} } }, + "com.amazonaws.omics#DeleteShare": { + "type": "operation", + "input": { + "target": "com.amazonaws.omics#DeleteShareRequest" + }, + "output": { + "target": "com.amazonaws.omics#DeleteShareResponse" + }, + "errors": [ + { + "target": "com.amazonaws.omics#AccessDeniedException" + }, + { + "target": "com.amazonaws.omics#ConflictException" + }, + { + "target": "com.amazonaws.omics#InternalServerException" + }, + { + "target": "com.amazonaws.omics#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.omics#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.omics#ThrottlingException" + }, + { + "target": "com.amazonaws.omics#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

\n Deletes a share of an analytics store. \n

", + "smithy.api#endpoint": { + "hostPrefix": "analytics-" + }, + "smithy.api#http": { + "method": "DELETE", + "uri": "/share/{shareId}", + "code": 200 + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.omics#DeleteShareRequest": { + "type": "structure", + "members": { + "shareId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

\n The ID for the share request to be deleted. \n

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.omics#DeleteShareResponse": { + "type": "structure", + "members": { + "status": { + "target": "com.amazonaws.omics#ShareStatus", + "traits": { + "smithy.api#documentation": "

\n The status of the share being deleted. \n

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.omics#DeleteVariantStore": { "type": "operation", "input": { @@ -2631,6 +3251,15 @@ "smithy.api#input": {} } }, + "com.amazonaws.omics#Description": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 500 + } + } + }, "com.amazonaws.omics#Encoding": { "type": "string", "traits": { @@ -2874,6 +3503,26 @@ ] } }, + "com.amazonaws.omics#Filter": { + "type": "structure", + "members": { + "resourceArns": { + "target": "com.amazonaws.omics#ArnList", + "traits": { + "smithy.api#documentation": "

\nThe Amazon Resource Number (Arn) for an analytics store. \n

" + } + }, + "status": { + "target": "com.amazonaws.omics#StatusList", + "traits": { + "smithy.api#documentation": "

\nThe status of an annotation store version. \n

" + } + } + }, + "traits": { + "smithy.api#documentation": "

\nUse filters to focus the returned annotation store versions on a specific parameter, such as the status of the annotation store.\n

" + } + }, "com.amazonaws.omics#FormatOptions": { "type": "union", "members": { @@ -3080,6 +3729,13 @@ "smithy.api#required": {} } }, + "versionName": { + "target": "com.amazonaws.omics#VersionName", + "traits": { + "smithy.api#documentation": "

\nThe name of the annotation store version. \n

", + "smithy.api#required": {} + } + }, "roleArn": { "target": "com.amazonaws.omics#Arn", "traits": { @@ -3132,21 +3788,268 @@ "runLeftNormalization": { "target": "com.amazonaws.omics#RunLeftNormalization", "traits": { - "smithy.api#default": false, - "smithy.api#documentation": "

The job's left normalization setting.

", + "smithy.api#default": false, + "smithy.api#documentation": "

The job's left normalization setting.

", + "smithy.api#required": {} + } + }, + "formatOptions": { + "target": "com.amazonaws.omics#FormatOptions", + "traits": { + "smithy.api#required": {} + } + }, + "annotationFields": { + "target": "com.amazonaws.omics#AnnotationFieldMap", + "traits": { + "smithy.api#documentation": "

\n The annotation schema generated by the parsed annotation data.\n

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.omics#GetAnnotationStore": { + "type": "operation", + "input": { + "target": "com.amazonaws.omics#GetAnnotationStoreRequest" + }, + "output": { + "target": "com.amazonaws.omics#GetAnnotationStoreResponse" + }, + "errors": [ + { + "target": "com.amazonaws.omics#AccessDeniedException" + }, + { + "target": "com.amazonaws.omics#InternalServerException" + }, + { + "target": "com.amazonaws.omics#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.omics#ThrottlingException" + }, + { + "target": "com.amazonaws.omics#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Gets information about an annotation store.

", + "smithy.api#endpoint": { + "hostPrefix": "analytics-" + }, + "smithy.api#http": { + "method": "GET", + "uri": "/annotationStore/{name}", + "code": 200 + }, + "smithy.api#readonly": {}, + "smithy.waiters#waitable": { + "AnnotationStoreCreated": { + "documentation": "Wait until an annotation store is created", + "minDelay": 30, + "maxDelay": 600, + "acceptors": [ + { + "state": "success", + "matcher": { + "output": { + "path": "status", + "expected": "ACTIVE", + "comparator": "stringEquals" + } + } + }, + { + "state": "retry", + "matcher": { + "output": { + "path": "status", + "expected": "CREATING", + "comparator": "stringEquals" + } + } + }, + { + "state": "retry", + "matcher": { + "output": { + "path": "status", + "expected": "UPDATING", + "comparator": "stringEquals" + } + } + }, + { + "state": "failure", + "matcher": { + "output": { + "path": "status", + "expected": "FAILED", + "comparator": "stringEquals" + } + } + } + ] + }, + "AnnotationStoreDeleted": { + "documentation": "Wait until an annotation store is deleted.", + "minDelay": 30, + "maxDelay": 600, + "acceptors": [ + { + "state": "success", + "matcher": { + "output": { + "path": "status", + "expected": "DELETED", + "comparator": "stringEquals" + } + } + }, + { + "state": "success", + "matcher": { + "errorType": "ResourceNotFoundException" + } + }, + { + "state": "retry", + "matcher": { + "output": { + "path": "status", + "expected": "DELETING", + "comparator": "stringEquals" + } + } + } + ] + } + } + } + }, + "com.amazonaws.omics#GetAnnotationStoreRequest": { + "type": "structure", + "members": { + "name": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The store's name.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.omics#GetAnnotationStoreResponse": { + "type": "structure", + "members": { + "id": { + "target": "com.amazonaws.omics#ResourceId", + "traits": { + "smithy.api#documentation": "

The store's ID.

", + "smithy.api#required": {} + } + }, + "reference": { + "target": "com.amazonaws.omics#ReferenceItem", + "traits": { + "smithy.api#documentation": "

The store's genome reference.

", + "smithy.api#required": {} + } + }, + "status": { + "target": "com.amazonaws.omics#StoreStatus", + "traits": { + "smithy.api#documentation": "

The store's status.

", + "smithy.api#required": {} + } + }, + "storeArn": { + "target": "com.amazonaws.omics#Arn", + "traits": { + "smithy.api#documentation": "

The store's ARN.

", + "smithy.api#required": {} + } + }, + "name": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The store's name.

", + "smithy.api#required": {} + } + }, + "description": { + "target": "com.amazonaws.omics#Description", + "traits": { + "smithy.api#documentation": "

The store's description.

", + "smithy.api#required": {} + } + }, + "sseConfig": { + "target": "com.amazonaws.omics#SseConfig", + "traits": { + "smithy.api#documentation": "

The store's server-side encryption (SSE) settings.

", + "smithy.api#required": {} + } + }, + "creationTime": { + "target": "com.amazonaws.omics#CreationTime", + "traits": { + "smithy.api#documentation": "

When the store was created.

", + "smithy.api#required": {} + } + }, + "updateTime": { + "target": "com.amazonaws.omics#UpdateTime", + "traits": { + "smithy.api#documentation": "

When the store was updated.

", + "smithy.api#required": {} + } + }, + "tags": { + "target": "com.amazonaws.omics#TagMap", + "traits": { + "smithy.api#documentation": "

The store's tags.

", + "smithy.api#required": {} + } + }, + "storeOptions": { + "target": "com.amazonaws.omics#StoreOptions", + "traits": { + "smithy.api#documentation": "

The store's parsing options.

" + } + }, + "storeFormat": { + "target": "com.amazonaws.omics#StoreFormat", + "traits": { + "smithy.api#documentation": "

The store's annotation file format.

" + } + }, + "statusMessage": { + "target": "com.amazonaws.omics#StatusMessage", + "traits": { + "smithy.api#documentation": "

A status message.

", "smithy.api#required": {} } }, - "formatOptions": { - "target": "com.amazonaws.omics#FormatOptions", + "storeSizeBytes": { + "target": "smithy.api#Long", "traits": { + "smithy.api#documentation": "

The store's size in bytes.

", "smithy.api#required": {} } }, - "annotationFields": { - "target": "com.amazonaws.omics#AnnotationFieldMap", + "numVersions": { + "target": "smithy.api#Integer", "traits": { - "smithy.api#documentation": "

\n The annotation schema generated by the parsed annotation data.\n

" + "smithy.api#documentation": "

\nAn integer indicating how many versions of an annotation store exist. \n

", + "smithy.api#required": {} } } }, @@ -3154,13 +4057,13 @@ "smithy.api#output": {} } }, - "com.amazonaws.omics#GetAnnotationStore": { + "com.amazonaws.omics#GetAnnotationStoreVersion": { "type": "operation", "input": { - "target": "com.amazonaws.omics#GetAnnotationStoreRequest" + "target": "com.amazonaws.omics#GetAnnotationStoreVersionRequest" }, "output": { - "target": "com.amazonaws.omics#GetAnnotationStoreResponse" + "target": "com.amazonaws.omics#GetAnnotationStoreVersionResponse" }, "errors": [ { @@ -3180,19 +4083,19 @@ } ], "traits": { - "smithy.api#documentation": "

Gets information about an annotation store.

", + "smithy.api#documentation": "

\nRetrieves the metadata for an annotation store version. \n

", "smithy.api#endpoint": { "hostPrefix": "analytics-" }, "smithy.api#http": { "method": "GET", - "uri": "/annotationStore/{name}", + "uri": "/annotationStore/{name}/version/{versionName}", "code": 200 }, "smithy.api#readonly": {}, "smithy.waiters#waitable": { - "AnnotationStoreCreated": { - "documentation": "Wait until an annotation store is created", + "AnnotationStoreVersionCreated": { + "documentation": "Wait until an annotation store version is created", "minDelay": 30, "maxDelay": 600, "acceptors": [ @@ -3238,8 +4141,8 @@ } ] }, - "AnnotationStoreDeleted": { - "documentation": "Wait until an annotation store is deleted.", + "AnnotationStoreVersionDeleted": { + "documentation": "Wait until an annotation store version is deleted.", "minDelay": 30, "maxDelay": 600, "acceptors": [ @@ -3274,13 +4177,21 @@ } } }, - "com.amazonaws.omics#GetAnnotationStoreRequest": { + "com.amazonaws.omics#GetAnnotationStoreVersionRequest": { "type": "structure", "members": { "name": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

The store's name.

", + "smithy.api#documentation": "

\nThe name given to an annotation store version to distinguish it from others. \n

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "versionName": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

\nThe name given to an annotation store version to distinguish it from others. \n

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -3290,102 +4201,96 @@ "smithy.api#input": {} } }, - "com.amazonaws.omics#GetAnnotationStoreResponse": { + "com.amazonaws.omics#GetAnnotationStoreVersionResponse": { "type": "structure", "members": { - "id": { + "storeId": { "target": "com.amazonaws.omics#ResourceId", "traits": { - "smithy.api#documentation": "

The store's ID.

", + "smithy.api#documentation": "

\nThe store ID for annotation store version.\n

", "smithy.api#required": {} } }, - "reference": { - "target": "com.amazonaws.omics#ReferenceItem", + "id": { + "target": "com.amazonaws.omics#ResourceId", "traits": { - "smithy.api#documentation": "

The store's genome reference.

", + "smithy.api#documentation": "

\nThe annotation store version ID.\n

", "smithy.api#required": {} } }, "status": { - "target": "com.amazonaws.omics#StoreStatus", + "target": "com.amazonaws.omics#VersionStatus", "traits": { - "smithy.api#documentation": "

The store's status.

", + "smithy.api#documentation": "

\nThe status of an annotation store version. \n

", "smithy.api#required": {} } }, - "storeArn": { + "versionArn": { "target": "com.amazonaws.omics#Arn", "traits": { - "smithy.api#documentation": "

The store's ARN.

", + "smithy.api#documentation": "

\nThe Arn for the annotation store. \n

", "smithy.api#required": {} } }, "name": { - "target": "smithy.api#String", + "target": "com.amazonaws.omics#StoreName", "traits": { - "smithy.api#documentation": "

The store's name.

", + "smithy.api#documentation": "

\nThe name of the annotation store. \n

", "smithy.api#required": {} } }, - "description": { - "target": "com.amazonaws.omics#StoreDescription", + "versionName": { + "target": "com.amazonaws.omics#VersionName", "traits": { - "smithy.api#documentation": "

The store's description.

", + "smithy.api#documentation": "

\nThe name given to an annotation store version to distinguish it from others. \n

", "smithy.api#required": {} } }, - "sseConfig": { - "target": "com.amazonaws.omics#SseConfig", + "description": { + "target": "com.amazonaws.omics#Description", "traits": { - "smithy.api#documentation": "

The store's server-side encryption (SSE) settings.

", + "smithy.api#documentation": "

\nThe description for an annotation store version. \n

", "smithy.api#required": {} } }, "creationTime": { "target": "com.amazonaws.omics#CreationTime", "traits": { - "smithy.api#documentation": "

When the store was created.

", + "smithy.api#documentation": "

\nThe time stamp for when an annotation store version was created. \n

", "smithy.api#required": {} } }, "updateTime": { "target": "com.amazonaws.omics#UpdateTime", "traits": { - "smithy.api#documentation": "

When the store was updated.

", + "smithy.api#documentation": "

\nThe time stamp for when an annotation store version was updated. \n

", "smithy.api#required": {} } }, "tags": { "target": "com.amazonaws.omics#TagMap", "traits": { - "smithy.api#documentation": "

The store's tags.

", + "smithy.api#documentation": "

\nAny tags associated with an annotation store version. \n

", "smithy.api#required": {} } }, - "storeOptions": { - "target": "com.amazonaws.omics#StoreOptions", - "traits": { - "smithy.api#documentation": "

The store's parsing options.

" - } - }, - "storeFormat": { - "target": "com.amazonaws.omics#StoreFormat", + "versionOptions": { + "target": "com.amazonaws.omics#VersionOptions", "traits": { - "smithy.api#documentation": "

The store's annotation file format.

" + "smithy.api#documentation": "

\nThe options for an annotation store version. \n

" } }, "statusMessage": { "target": "com.amazonaws.omics#StatusMessage", "traits": { - "smithy.api#documentation": "

A status message.

", + "smithy.api#documentation": "

\nThe status of an annotation store version.\n

", "smithy.api#required": {} } }, - "storeSizeBytes": { + "versionSizeBytes": { "target": "smithy.api#Long", "traits": { - "smithy.api#documentation": "

The store's size in bytes.

", + "smithy.api#documentation": "

\nThe size of the annotation store version in Bytes. \n

", "smithy.api#required": {} } } @@ -5739,6 +6644,80 @@ "smithy.api#output": {} } }, + "com.amazonaws.omics#GetShare": { + "type": "operation", + "input": { + "target": "com.amazonaws.omics#GetShareRequest" + }, + "output": { + "target": "com.amazonaws.omics#GetShareResponse" + }, + "errors": [ + { + "target": "com.amazonaws.omics#AccessDeniedException" + }, + { + "target": "com.amazonaws.omics#ConflictException" + }, + { + "target": "com.amazonaws.omics#InternalServerException" + }, + { + "target": "com.amazonaws.omics#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.omics#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.omics#ThrottlingException" + }, + { + "target": "com.amazonaws.omics#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

\n Retrieves the metadata for a share. \n

", + "smithy.api#endpoint": { + "hostPrefix": "analytics-" + }, + "smithy.api#http": { + "method": "GET", + "uri": "/share/{shareId}", + "code": 200 + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.omics#GetShareRequest": { + "type": "structure", + "members": { + "shareId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

\n The generated ID for a share. \n

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.omics#GetShareResponse": { + "type": "structure", + "members": { + "share": { + "target": "com.amazonaws.omics#ShareDetails", + "traits": { + "smithy.api#documentation": "

\n An analytic store share details object. contains status, resourceArn, ownerId, etc. \n

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.omics#GetVariantImportJob": { "type": "operation", "input": { @@ -6111,7 +7090,7 @@ } }, "description": { - "target": "com.amazonaws.omics#StoreDescription", + "target": "com.amazonaws.omics#Description", "traits": { "smithy.api#documentation": "

The store's description.

", "smithy.api#required": {} @@ -6786,38 +7765,168 @@ "name": "COMPLETED_WITH_FAILURES", "documentation": "The Job completed with failed runs" } - ] - } - }, - "com.amazonaws.omics#JobStatusMessage": { - "type": "string", + ] + } + }, + "com.amazonaws.omics#JobStatusMessage": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 127 + }, + "smithy.api#pattern": "^[\\p{L}||\\p{M}||\\p{Z}||\\p{S}||\\p{N}||\\p{P}]+$" + } + }, + "com.amazonaws.omics#JobStatusMsg": { + "type": "string" + }, + "com.amazonaws.omics#LineSep": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 20 + } + } + }, + "com.amazonaws.omics#ListAnnotationImportJobs": { + "type": "operation", + "input": { + "target": "com.amazonaws.omics#ListAnnotationImportJobsRequest" + }, + "output": { + "target": "com.amazonaws.omics#ListAnnotationImportJobsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.omics#AccessDeniedException" + }, + { + "target": "com.amazonaws.omics#InternalServerException" + }, + { + "target": "com.amazonaws.omics#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.omics#ThrottlingException" + }, + { + "target": "com.amazonaws.omics#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Retrieves a list of annotation import jobs.

", + "smithy.api#endpoint": { + "hostPrefix": "analytics-" + }, + "smithy.api#http": { + "method": "POST", + "uri": "/import/annotations", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "nextToken", + "outputToken": "nextToken", + "pageSize": "maxResults", + "items": "annotationImportJobs" + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.omics#ListAnnotationImportJobsFilter": { + "type": "structure", + "members": { + "status": { + "target": "com.amazonaws.omics#JobStatus", + "traits": { + "smithy.api#documentation": "

A status to filter on.

" + } + }, + "storeName": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

A store name to filter on.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

A filter for annotation import jobs.

" + } + }, + "com.amazonaws.omics#ListAnnotationImportJobsRequest": { + "type": "structure", + "members": { + "maxResults": { + "target": "smithy.api#Integer", + "traits": { + "smithy.api#documentation": "

The maximum number of jobs to return in one page of results.

", + "smithy.api#httpQuery": "maxResults", + "smithy.api#range": { + "min": 1, + "max": 100 + } + } + }, + "ids": { + "target": "com.amazonaws.omics#IdList", + "traits": { + "smithy.api#documentation": "

IDs of annotation import jobs to retrieve.

", + "smithy.api#length": { + "min": 1, + "max": 20 + } + } + }, + "nextToken": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

Specifies the pagination token from a previous request to retrieve the next page of results.

", + "smithy.api#httpQuery": "nextToken", + "smithy.api#length": { + "min": 1, + "max": 10000 + } + } + }, + "filter": { + "target": "com.amazonaws.omics#ListAnnotationImportJobsFilter", + "traits": { + "smithy.api#documentation": "

A filter to apply to the list.

" + } + } + }, "traits": { - "smithy.api#length": { - "min": 1, - "max": 127 - }, - "smithy.api#pattern": "^[\\p{L}||\\p{M}||\\p{Z}||\\p{S}||\\p{N}||\\p{P}]+$" + "smithy.api#input": {} } }, - "com.amazonaws.omics#JobStatusMsg": { - "type": "string" - }, - "com.amazonaws.omics#LineSep": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 20 + "com.amazonaws.omics#ListAnnotationImportJobsResponse": { + "type": "structure", + "members": { + "annotationImportJobs": { + "target": "com.amazonaws.omics#AnnotationImportJobItems", + "traits": { + "smithy.api#documentation": "

A list of jobs.

" + } + }, + "nextToken": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

Specifies the pagination token from a previous request to retrieve the next page of results.

" + } } + }, + "traits": { + "smithy.api#output": {} } }, - "com.amazonaws.omics#ListAnnotationImportJobs": { + "com.amazonaws.omics#ListAnnotationStoreVersions": { "type": "operation", "input": { - "target": "com.amazonaws.omics#ListAnnotationImportJobsRequest" + "target": "com.amazonaws.omics#ListAnnotationStoreVersionsRequest" }, "output": { - "target": "com.amazonaws.omics#ListAnnotationImportJobsResponse" + "target": "com.amazonaws.omics#ListAnnotationStoreVersionsResponse" }, "errors": [ { @@ -6837,51 +7946,53 @@ } ], "traits": { - "smithy.api#documentation": "

Retrieves a list of annotation import jobs.

", + "smithy.api#documentation": "

\nLists the versions of an annotation store. \n

", "smithy.api#endpoint": { "hostPrefix": "analytics-" }, "smithy.api#http": { "method": "POST", - "uri": "/import/annotations", + "uri": "/annotationStore/{name}/versions", "code": 200 }, "smithy.api#paginated": { "inputToken": "nextToken", "outputToken": "nextToken", "pageSize": "maxResults", - "items": "annotationImportJobs" + "items": "annotationStoreVersions" }, "smithy.api#readonly": {} } }, - "com.amazonaws.omics#ListAnnotationImportJobsFilter": { + "com.amazonaws.omics#ListAnnotationStoreVersionsFilter": { "type": "structure", "members": { "status": { - "target": "com.amazonaws.omics#JobStatus", - "traits": { - "smithy.api#documentation": "

A status to filter on.

" - } - }, - "storeName": { - "target": "smithy.api#String", + "target": "com.amazonaws.omics#VersionStatus", "traits": { - "smithy.api#documentation": "

A store name to filter on.

" + "smithy.api#documentation": "

\nThe status of an annotation store version. \n

" } } }, "traits": { - "smithy.api#documentation": "

A filter for annotation import jobs.

" + "smithy.api#documentation": "

\nUse filters to focus the returned annotation store versions on a specific parameter, such as the status of the annotation store.\n

" } }, - "com.amazonaws.omics#ListAnnotationImportJobsRequest": { + "com.amazonaws.omics#ListAnnotationStoreVersionsRequest": { "type": "structure", "members": { + "name": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

\nThe name of an annotation store. \n

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, "maxResults": { "target": "smithy.api#Integer", "traits": { - "smithy.api#documentation": "

The maximum number of jobs to return in one page of results.

", + "smithy.api#documentation": "

\nThe maximum number of annotation store versions to return in one page of results.\n

", "smithy.api#httpQuery": "maxResults", "smithy.api#range": { "min": 1, @@ -6889,20 +8000,10 @@ } } }, - "ids": { - "target": "com.amazonaws.omics#IdList", - "traits": { - "smithy.api#documentation": "

IDs of annotation import jobs to retrieve.

", - "smithy.api#length": { - "min": 1, - "max": 20 - } - } - }, "nextToken": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

Specifies the pagination token from a previous request to retrieve the next page of results.

", + "smithy.api#documentation": "

\nSpecifies the pagination token from a previous request to retrieve the next page of results.\n

", "smithy.api#httpQuery": "nextToken", "smithy.api#length": { "min": 1, @@ -6911,9 +8012,9 @@ } }, "filter": { - "target": "com.amazonaws.omics#ListAnnotationImportJobsFilter", + "target": "com.amazonaws.omics#ListAnnotationStoreVersionsFilter", "traits": { - "smithy.api#documentation": "

A filter to apply to the list.

" + "smithy.api#documentation": "

\nA filter to apply to the list of annotation store versions.\n

" } } }, @@ -6921,19 +8022,19 @@ "smithy.api#input": {} } }, - "com.amazonaws.omics#ListAnnotationImportJobsResponse": { + "com.amazonaws.omics#ListAnnotationStoreVersionsResponse": { "type": "structure", "members": { - "annotationImportJobs": { - "target": "com.amazonaws.omics#AnnotationImportJobItems", + "annotationStoreVersions": { + "target": "com.amazonaws.omics#AnnotationStoreVersionItems", "traits": { - "smithy.api#documentation": "

A list of jobs.

" + "smithy.api#documentation": "

\nLists all versions of an annotation store.\n

" } }, "nextToken": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

Specifies the pagination token from a previous request to retrieve the next page of results.

" + "smithy.api#documentation": "

\nSpecifies the pagination token from a previous request to retrieve the next page of results.\n

" } } }, @@ -8468,6 +9569,112 @@ "smithy.api#output": {} } }, + "com.amazonaws.omics#ListShares": { + "type": "operation", + "input": { + "target": "com.amazonaws.omics#ListSharesRequest" + }, + "output": { + "target": "com.amazonaws.omics#ListSharesResponse" + }, + "errors": [ + { + "target": "com.amazonaws.omics#AccessDeniedException" + }, + { + "target": "com.amazonaws.omics#ConflictException" + }, + { + "target": "com.amazonaws.omics#InternalServerException" + }, + { + "target": "com.amazonaws.omics#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.omics#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.omics#ThrottlingException" + }, + { + "target": "com.amazonaws.omics#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

\n Lists all shares associated with an account. \n

", + "smithy.api#endpoint": { + "hostPrefix": "analytics-" + }, + "smithy.api#http": { + "method": "POST", + "uri": "/shares", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "nextToken", + "outputToken": "nextToken", + "pageSize": "maxResults", + "items": "shares" + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.omics#ListSharesRequest": { + "type": "structure", + "members": { + "resourceOwner": { + "target": "com.amazonaws.omics#ResourceOwner", + "traits": { + "smithy.api#documentation": "

\n The account that owns the analytics store shared. \n

", + "smithy.api#required": {} + } + }, + "filter": { + "target": "com.amazonaws.omics#Filter", + "traits": { + "smithy.api#documentation": "

\n Attributes used to filter for a specific subset of shares. \n

" + } + }, + "nextToken": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

\n Next token returned in the response of a previous ListReadSetUploadPartsRequest call. Used to get the next page of results.\n

", + "smithy.api#httpQuery": "nextToken" + } + }, + "maxResults": { + "target": "smithy.api#Integer", + "traits": { + "smithy.api#documentation": "

\n The maximum number of shares to return in one page of results.\n

", + "smithy.api#httpQuery": "maxResults" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.omics#ListSharesResponse": { + "type": "structure", + "members": { + "shares": { + "target": "com.amazonaws.omics#ShareDetailsList", + "traits": { + "smithy.api#documentation": "

\n The shares available and their meta details. \n

", + "smithy.api#required": {} + } + }, + "nextToken": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

\nNext token returned in the response of a previous ListSharesResponse call. Used to get the next page of results.\n

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.omics#ListTagsForResource": { "type": "operation", "input": { @@ -9048,6 +10255,9 @@ { "target": "com.amazonaws.omics#AnnotationStore" }, + { + "target": "com.amazonaws.omics#AnnotationStoreVersion" + }, { "target": "com.amazonaws.omics#ReferenceStoreResource" }, @@ -9060,6 +10270,9 @@ { "target": "com.amazonaws.omics#SequenceStoreResource" }, + { + "target": "com.amazonaws.omics#Share" + }, { "target": "com.amazonaws.omics#TaggingResource" }, @@ -11085,6 +12298,23 @@ "smithy.api#httpError": 404 } }, + "com.amazonaws.omics#ResourceOwner": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "SELF", + "name": "SELF", + "documentation": "The resource owner is the calling account" + }, + { + "value": "OTHER", + "name": "OTHER", + "documentation": "The resource owner is an account other than the caller" + } + ] + } + }, "com.amazonaws.omics#RoleArn": { "type": "string", "traits": { @@ -11961,9 +13191,147 @@ } }, "traits": { - "smithy.api#documentation": "

The request exceeds a service quota.

", - "smithy.api#error": "client", - "smithy.api#httpError": 402 + "smithy.api#documentation": "

The request exceeds a service quota.

", + "smithy.api#error": "client", + "smithy.api#httpError": 402 + } + }, + "com.amazonaws.omics#Share": { + "type": "resource", + "identifiers": { + "shareId": { + "target": "smithy.api#String" + } + }, + "create": { + "target": "com.amazonaws.omics#CreateShare" + }, + "read": { + "target": "com.amazonaws.omics#GetShare" + }, + "update": { + "target": "com.amazonaws.omics#AcceptShare" + }, + "delete": { + "target": "com.amazonaws.omics#DeleteShare" + }, + "list": { + "target": "com.amazonaws.omics#ListShares" + } + }, + "com.amazonaws.omics#ShareDetails": { + "type": "structure", + "members": { + "shareId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

\n The ID for a share offer for an analytics store .\n

" + } + }, + "resourceArn": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

\n The resource Arn of the analytics store being shared. \n

" + } + }, + "principalSubscriber": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

\n The principal subscriber is the account the analytics store data is being shared with. \n

" + } + }, + "ownerId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

\n The account ID for the data owner. The owner creates the share offer. \n

" + } + }, + "status": { + "target": "com.amazonaws.omics#ShareStatus", + "traits": { + "smithy.api#documentation": "

\n The status of a share. \n

" + } + }, + "statusMessage": { + "target": "com.amazonaws.omics#StatusMessage", + "traits": { + "smithy.api#documentation": "

\n The status message for a share. It provides more details on the status of the share.\n

" + } + }, + "shareName": { + "target": "com.amazonaws.omics#ShareName", + "traits": { + "smithy.api#documentation": "

\n The name of the share. \n

" + } + }, + "creationTime": { + "target": "com.amazonaws.omics#CreationTime", + "traits": { + "smithy.api#documentation": "

\n The timestamp for when the share was created. \n

" + } + }, + "updateTime": { + "target": "com.amazonaws.omics#UpdateTime", + "traits": { + "smithy.api#documentation": "

\n The timestamp of the share update. \n

" + } + } + }, + "traits": { + "smithy.api#documentation": "

\n The details of a share. \n

" + } + }, + "com.amazonaws.omics#ShareDetailsList": { + "type": "list", + "member": { + "target": "com.amazonaws.omics#ShareDetails" + } + }, + "com.amazonaws.omics#ShareName": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 256 + }, + "smithy.api#pattern": "^[a-zA-Z0-9_-]+$" + } + }, + "com.amazonaws.omics#ShareStatus": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "PENDING", + "name": "PENDING", + "documentation": "The share has been created but is not yet active" + }, + { + "value": "ACTIVATING", + "name": "ACTIVATING", + "documentation": "The share is activated" + }, + { + "value": "ACTIVE", + "name": "ACTIVE", + "documentation": "The share is active and can be used" + }, + { + "value": "DELETING", + "name": "DELETING", + "documentation": "The share is being deleted" + }, + { + "value": "DELETED", + "name": "DELETED", + "documentation": "The share has been deleted" + }, + { + "value": "FAILED", + "name": "FAILED", + "documentation": "The share has failed to activate or delete" + } + ] } }, "com.amazonaws.omics#SourceFiles": { @@ -12077,6 +13445,12 @@ "smithy.api#required": {} } }, + "versionName": { + "target": "com.amazonaws.omics#VersionName", + "traits": { + "smithy.api#documentation": "

\nThe name of the annotation store version. \n

" + } + }, "formatOptions": { "target": "com.amazonaws.omics#FormatOptions", "traits": { @@ -13019,21 +14393,21 @@ "smithy.api#output": {} } }, - "com.amazonaws.omics#StatusMessage": { - "type": "string", + "com.amazonaws.omics#StatusList": { + "type": "list", + "member": { + "target": "com.amazonaws.omics#ShareStatus" + }, "traits": { - "smithy.api#length": { - "min": 0, - "max": 1000 - } + "smithy.api#uniqueItems": {} } }, - "com.amazonaws.omics#StoreDescription": { + "com.amazonaws.omics#StatusMessage": { "type": "string", "traits": { "smithy.api#length": { "min": 0, - "max": 500 + "max": 1000 } } }, @@ -13537,6 +14911,36 @@ "smithy.api#documentation": "

File settings for a TSV store.

" } }, + "com.amazonaws.omics#TsvVersionOptions": { + "type": "structure", + "members": { + "annotationType": { + "target": "com.amazonaws.omics#AnnotationType", + "traits": { + "smithy.api#documentation": "

\nThe store version's annotation type.\n

" + } + }, + "formatToHeader": { + "target": "com.amazonaws.omics#FormatToHeader", + "traits": { + "smithy.api#documentation": "

\nThe annotation store version's header key to column name mapping.\n

" + } + }, + "schema": { + "target": "com.amazonaws.omics#Schema", + "traits": { + "smithy.api#documentation": "

\nThe TSV schema for an annotation store version. \n

", + "smithy.api#length": { + "min": 1, + "max": 5000 + } + } + } + }, + "traits": { + "smithy.api#documentation": "

\nThe options for a TSV file.\n

" + } + }, "com.amazonaws.omics#UntagResource": { "type": "operation", "input": { @@ -13664,7 +15068,7 @@ } }, "description": { - "target": "com.amazonaws.omics#StoreDescription", + "target": "com.amazonaws.omics#Description", "traits": { "smithy.api#documentation": "

A description for the store.

" } @@ -13706,7 +15110,7 @@ } }, "description": { - "target": "com.amazonaws.omics#StoreDescription", + "target": "com.amazonaws.omics#Description", "traits": { "smithy.api#documentation": "

The store's description.

", "smithy.api#required": {} @@ -13743,6 +15147,137 @@ "smithy.api#output": {} } }, + "com.amazonaws.omics#UpdateAnnotationStoreVersion": { + "type": "operation", + "input": { + "target": "com.amazonaws.omics#UpdateAnnotationStoreVersionRequest" + }, + "output": { + "target": "com.amazonaws.omics#UpdateAnnotationStoreVersionResponse" + }, + "errors": [ + { + "target": "com.amazonaws.omics#AccessDeniedException" + }, + { + "target": "com.amazonaws.omics#InternalServerException" + }, + { + "target": "com.amazonaws.omics#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.omics#ThrottlingException" + }, + { + "target": "com.amazonaws.omics#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

\nUpdates the description of an annotation store version. \n

", + "smithy.api#endpoint": { + "hostPrefix": "analytics-" + }, + "smithy.api#http": { + "method": "POST", + "uri": "/annotationStore/{name}/version/{versionName}", + "code": 200 + } + } + }, + "com.amazonaws.omics#UpdateAnnotationStoreVersionRequest": { + "type": "structure", + "members": { + "name": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

\nThe name of an annotation store. \n

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "versionName": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

\nThe name of an annotation store version. \n

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "description": { + "target": "com.amazonaws.omics#Description", + "traits": { + "smithy.api#documentation": "

\nThe description of an annotation store. \n

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.omics#UpdateAnnotationStoreVersionResponse": { + "type": "structure", + "members": { + "storeId": { + "target": "com.amazonaws.omics#ResourceId", + "traits": { + "smithy.api#documentation": "

\nThe annotation store ID. \n

", + "smithy.api#required": {} + } + }, + "id": { + "target": "com.amazonaws.omics#ResourceId", + "traits": { + "smithy.api#documentation": "

\nThe annotation store version ID.\n

", + "smithy.api#required": {} + } + }, + "status": { + "target": "com.amazonaws.omics#VersionStatus", + "traits": { + "smithy.api#documentation": "

\nThe status of an annotation store version. \n

", + "smithy.api#required": {} + } + }, + "name": { + "target": "com.amazonaws.omics#StoreName", + "traits": { + "smithy.api#documentation": "

\nThe name of an annotation store. \n

", + "smithy.api#required": {} + } + }, + "versionName": { + "target": "com.amazonaws.omics#VersionName", + "traits": { + "smithy.api#documentation": "

\nThe name of an annotation store version.

", + "smithy.api#required": {} + } + }, + "description": { + "target": "com.amazonaws.omics#Description", + "traits": { + "smithy.api#documentation": "

\nThe description of an annotation store version.\n

", + "smithy.api#required": {} + } + }, + "creationTime": { + "target": "com.amazonaws.omics#CreationTime", + "traits": { + "smithy.api#documentation": "

\nThe time stamp for when an annotation store version was created. \n

", + "smithy.api#required": {} + } + }, + "updateTime": { + "target": "com.amazonaws.omics#UpdateTime", + "traits": { + "smithy.api#documentation": "

\nThe time stamp for when an annotation store version was updated. \n

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.omics#UpdateRunGroup": { "type": "operation", "input": { @@ -13906,7 +15441,7 @@ } }, "description": { - "target": "com.amazonaws.omics#StoreDescription", + "target": "com.amazonaws.omics#Description", "traits": { "smithy.api#documentation": "

A description for the store.

" } @@ -13948,7 +15483,7 @@ } }, "description": { - "target": "com.amazonaws.omics#StoreDescription", + "target": "com.amazonaws.omics#Description", "traits": { "smithy.api#documentation": "

The store's description.

", "smithy.api#required": {} @@ -14408,7 +15943,7 @@ } }, "description": { - "target": "com.amazonaws.omics#StoreDescription", + "target": "com.amazonaws.omics#Description", "traits": { "smithy.api#documentation": "

The store's description.

", "smithy.api#required": {} @@ -14480,6 +16015,102 @@ "smithy.api#documentation": "

Formatting options for a VCF file.

" } }, + "com.amazonaws.omics#VersionDeleteError": { + "type": "structure", + "members": { + "versionName": { + "target": "com.amazonaws.omics#VersionName", + "traits": { + "smithy.api#documentation": "

\nThe name given to an annotation store version.\n

", + "smithy.api#required": {} + } + }, + "message": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

\nThe message explaining the error in annotation store deletion.\n

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

\nThe error preventing deletion of the annotation store version. \n

" + } + }, + "com.amazonaws.omics#VersionDeleteErrorList": { + "type": "list", + "member": { + "target": "com.amazonaws.omics#VersionDeleteError" + } + }, + "com.amazonaws.omics#VersionList": { + "type": "list", + "member": { + "target": "com.amazonaws.omics#VersionName" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 10 + } + } + }, + "com.amazonaws.omics#VersionName": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 3, + "max": 255 + }, + "smithy.api#pattern": "^([a-z]){1}([a-z0-9_]){2,254}$" + } + }, + "com.amazonaws.omics#VersionOptions": { + "type": "union", + "members": { + "tsvVersionOptions": { + "target": "com.amazonaws.omics#TsvVersionOptions", + "traits": { + "smithy.api#documentation": "

\nFile settings for a version of a TSV store.\n

" + } + } + }, + "traits": { + "smithy.api#documentation": "

\nThe options for an annotation store version. \n

" + } + }, + "com.amazonaws.omics#VersionStatus": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "CREATING", + "name": "CREATING", + "documentation": "The Version is being created" + }, + { + "value": "UPDATING", + "name": "UPDATING", + "documentation": "The Version is updating" + }, + { + "value": "DELETING", + "name": "DELETING", + "documentation": "The Version is deleting" + }, + { + "value": "ACTIVE", + "name": "ACTIVE", + "documentation": "The Version is active" + }, + { + "value": "FAILED", + "name": "FAILED", + "documentation": "The Version creation failed" + } + ] + } + }, "com.amazonaws.omics#WorkflowArn": { "type": "string", "traits": {