@aws-sdk/client-omics 3.388.0 → 3.391.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/README.md +80 -0
  2. package/dist-cjs/Omics.js +20 -0
  3. package/dist-cjs/commands/AcceptShareCommand.js +46 -0
  4. package/dist-cjs/commands/CreateAnnotationStoreVersionCommand.js +46 -0
  5. package/dist-cjs/commands/CreateShareCommand.js +46 -0
  6. package/dist-cjs/commands/DeleteAnnotationStoreVersionsCommand.js +46 -0
  7. package/dist-cjs/commands/DeleteShareCommand.js +46 -0
  8. package/dist-cjs/commands/GetAnnotationStoreVersionCommand.js +46 -0
  9. package/dist-cjs/commands/GetShareCommand.js +46 -0
  10. package/dist-cjs/commands/ListAnnotationStoreVersionsCommand.js +46 -0
  11. package/dist-cjs/commands/ListSharesCommand.js +46 -0
  12. package/dist-cjs/commands/UpdateAnnotationStoreVersionCommand.js +46 -0
  13. package/dist-cjs/commands/index.js +10 -0
  14. package/dist-cjs/models/models_0.js +42 -14
  15. package/dist-cjs/pagination/ListAnnotationStoreVersionsPaginator.js +29 -0
  16. package/dist-cjs/pagination/ListSharesPaginator.js +29 -0
  17. package/dist-cjs/pagination/index.js +2 -0
  18. package/dist-cjs/protocols/Aws_restJson1.js +911 -38
  19. package/dist-cjs/waiters/index.js +2 -0
  20. package/dist-cjs/waiters/waitForAnnotationStoreVersionCreated.js +63 -0
  21. package/dist-cjs/waiters/waitForAnnotationStoreVersionDeleted.js +48 -0
  22. package/dist-es/Omics.js +20 -0
  23. package/dist-es/commands/AcceptShareCommand.js +42 -0
  24. package/dist-es/commands/CreateAnnotationStoreVersionCommand.js +42 -0
  25. package/dist-es/commands/CreateShareCommand.js +42 -0
  26. package/dist-es/commands/DeleteAnnotationStoreVersionsCommand.js +42 -0
  27. package/dist-es/commands/DeleteShareCommand.js +42 -0
  28. package/dist-es/commands/GetAnnotationStoreVersionCommand.js +42 -0
  29. package/dist-es/commands/GetShareCommand.js +42 -0
  30. package/dist-es/commands/ListAnnotationStoreVersionsCommand.js +42 -0
  31. package/dist-es/commands/ListSharesCommand.js +42 -0
  32. package/dist-es/commands/UpdateAnnotationStoreVersionCommand.js +42 -0
  33. package/dist-es/commands/index.js +10 -0
  34. package/dist-es/models/models_0.js +39 -12
  35. package/dist-es/pagination/ListAnnotationStoreVersionsPaginator.js +25 -0
  36. package/dist-es/pagination/ListSharesPaginator.js +25 -0
  37. package/dist-es/pagination/index.js +2 -0
  38. package/dist-es/protocols/Aws_restJson1.js +886 -34
  39. package/dist-es/waiters/index.js +2 -0
  40. package/dist-es/waiters/waitForAnnotationStoreVersionCreated.js +58 -0
  41. package/dist-es/waiters/waitForAnnotationStoreVersionDeleted.js +43 -0
  42. package/dist-types/Omics.d.ts +70 -0
  43. package/dist-types/OmicsClient.d.ts +12 -2
  44. package/dist-types/commands/AcceptShareCommand.d.ts +96 -0
  45. package/dist-types/commands/CreateAnnotationStoreCommand.d.ts +2 -0
  46. package/dist-types/commands/CreateAnnotationStoreVersionCommand.d.ts +132 -0
  47. package/dist-types/commands/CreateShareCommand.d.ts +100 -0
  48. package/dist-types/commands/DeleteAnnotationStoreVersionsCommand.d.ts +102 -0
  49. package/dist-types/commands/DeleteShareCommand.d.ts +96 -0
  50. package/dist-types/commands/GetAnnotationImportJobCommand.d.ts +1 -0
  51. package/dist-types/commands/GetAnnotationStoreCommand.d.ts +1 -0
  52. package/dist-types/commands/GetAnnotationStoreVersionCommand.d.ts +117 -0
  53. package/dist-types/commands/GetRunTaskCommand.d.ts +1 -0
  54. package/dist-types/commands/GetShareCommand.d.ts +106 -0
  55. package/dist-types/commands/ListAnnotationImportJobsCommand.d.ts +1 -0
  56. package/dist-types/commands/ListAnnotationStoreVersionsCommand.d.ts +110 -0
  57. package/dist-types/commands/ListRunTasksCommand.d.ts +1 -0
  58. package/dist-types/commands/ListSharesCommand.d.ts +119 -0
  59. package/dist-types/commands/StartAnnotationImportJobCommand.d.ts +1 -0
  60. package/dist-types/commands/UpdateAnnotationStoreVersionCommand.d.ts +99 -0
  61. package/dist-types/commands/index.d.ts +10 -0
  62. package/dist-types/models/models_0.d.ts +1021 -44
  63. package/dist-types/pagination/ListAnnotationStoreVersionsPaginator.d.ts +7 -0
  64. package/dist-types/pagination/ListSharesPaginator.d.ts +7 -0
  65. package/dist-types/pagination/index.d.ts +2 -0
  66. package/dist-types/protocols/Aws_restJson1.d.ts +90 -0
  67. package/dist-types/ts3.4/Omics.d.ts +170 -0
  68. package/dist-types/ts3.4/OmicsClient.d.ts +60 -0
  69. package/dist-types/ts3.4/commands/AcceptShareCommand.d.ts +35 -0
  70. package/dist-types/ts3.4/commands/CreateAnnotationStoreVersionCommand.d.ts +42 -0
  71. package/dist-types/ts3.4/commands/CreateShareCommand.d.ts +35 -0
  72. package/dist-types/ts3.4/commands/DeleteAnnotationStoreVersionsCommand.d.ts +42 -0
  73. package/dist-types/ts3.4/commands/DeleteShareCommand.d.ts +35 -0
  74. package/dist-types/ts3.4/commands/GetAnnotationStoreVersionCommand.d.ts +42 -0
  75. package/dist-types/ts3.4/commands/GetShareCommand.d.ts +35 -0
  76. package/dist-types/ts3.4/commands/ListAnnotationStoreVersionsCommand.d.ts +42 -0
  77. package/dist-types/ts3.4/commands/ListSharesCommand.d.ts +35 -0
  78. package/dist-types/ts3.4/commands/UpdateAnnotationStoreVersionCommand.d.ts +42 -0
  79. package/dist-types/ts3.4/commands/index.d.ts +10 -0
  80. package/dist-types/ts3.4/models/models_0.d.ts +199 -5
  81. package/dist-types/ts3.4/pagination/ListAnnotationStoreVersionsPaginator.d.ts +11 -0
  82. package/dist-types/ts3.4/pagination/ListSharesPaginator.d.ts +11 -0
  83. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  84. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +120 -0
  85. package/dist-types/ts3.4/waiters/index.d.ts +2 -0
  86. package/dist-types/ts3.4/waiters/waitForAnnotationStoreVersionCreated.d.ts +11 -0
  87. package/dist-types/ts3.4/waiters/waitForAnnotationStoreVersionDeleted.d.ts +11 -0
  88. package/dist-types/waiters/index.d.ts +2 -0
  89. package/dist-types/waiters/waitForAnnotationStoreVersionCreated.d.ts +14 -0
  90. package/dist-types/waiters/waitForAnnotationStoreVersionDeleted.d.ts +14 -0
  91. package/package.json +30 -30
@@ -1,8 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.se_ListReferenceStoresCommand = exports.se_ListReferencesCommand = exports.se_ListReferenceImportJobsCommand = exports.se_ListReadSetUploadPartsCommand = exports.se_ListReadSetsCommand = exports.se_ListReadSetImportJobsCommand = exports.se_ListReadSetExportJobsCommand = exports.se_ListReadSetActivationJobsCommand = exports.se_ListMultipartReadSetUploadsCommand = exports.se_ListAnnotationStoresCommand = exports.se_ListAnnotationImportJobsCommand = exports.se_GetWorkflowCommand = exports.se_GetVariantStoreCommand = exports.se_GetVariantImportJobCommand = exports.se_GetSequenceStoreCommand = exports.se_GetRunTaskCommand = exports.se_GetRunGroupCommand = exports.se_GetRunCommand = exports.se_GetReferenceStoreCommand = exports.se_GetReferenceMetadataCommand = exports.se_GetReferenceImportJobCommand = exports.se_GetReferenceCommand = exports.se_GetReadSetMetadataCommand = exports.se_GetReadSetImportJobCommand = exports.se_GetReadSetExportJobCommand = exports.se_GetReadSetActivationJobCommand = exports.se_GetReadSetCommand = exports.se_GetAnnotationStoreCommand = exports.se_GetAnnotationImportJobCommand = exports.se_DeleteWorkflowCommand = exports.se_DeleteVariantStoreCommand = exports.se_DeleteSequenceStoreCommand = exports.se_DeleteRunGroupCommand = exports.se_DeleteRunCommand = exports.se_DeleteReferenceStoreCommand = exports.se_DeleteReferenceCommand = exports.se_DeleteAnnotationStoreCommand = exports.se_CreateWorkflowCommand = exports.se_CreateVariantStoreCommand = exports.se_CreateSequenceStoreCommand = exports.se_CreateRunGroupCommand = exports.se_CreateReferenceStoreCommand = exports.se_CreateMultipartReadSetUploadCommand = exports.se_CreateAnnotationStoreCommand = exports.se_CompleteMultipartReadSetUploadCommand = exports.se_CancelVariantImportJobCommand = exports.se_CancelRunCommand = exports.se_CancelAnnotationImportJobCommand = exports.se_BatchDeleteReadSetCommand = exports.se_AbortMultipartReadSetUploadCommand = void 0;
4
- exports.de_GetReadSetMetadataCommand = exports.de_GetReadSetImportJobCommand = exports.de_GetReadSetExportJobCommand = exports.de_GetReadSetActivationJobCommand = exports.de_GetReadSetCommand = exports.de_GetAnnotationStoreCommand = exports.de_GetAnnotationImportJobCommand = exports.de_DeleteWorkflowCommand = exports.de_DeleteVariantStoreCommand = exports.de_DeleteSequenceStoreCommand = exports.de_DeleteRunGroupCommand = exports.de_DeleteRunCommand = exports.de_DeleteReferenceStoreCommand = exports.de_DeleteReferenceCommand = exports.de_DeleteAnnotationStoreCommand = exports.de_CreateWorkflowCommand = exports.de_CreateVariantStoreCommand = exports.de_CreateSequenceStoreCommand = exports.de_CreateRunGroupCommand = exports.de_CreateReferenceStoreCommand = exports.de_CreateMultipartReadSetUploadCommand = exports.de_CreateAnnotationStoreCommand = exports.de_CompleteMultipartReadSetUploadCommand = exports.de_CancelVariantImportJobCommand = exports.de_CancelRunCommand = exports.de_CancelAnnotationImportJobCommand = exports.de_BatchDeleteReadSetCommand = exports.de_AbortMultipartReadSetUploadCommand = exports.se_UploadReadSetPartCommand = exports.se_UpdateWorkflowCommand = exports.se_UpdateVariantStoreCommand = exports.se_UpdateRunGroupCommand = exports.se_UpdateAnnotationStoreCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StartVariantImportJobCommand = exports.se_StartRunCommand = exports.se_StartReferenceImportJobCommand = exports.se_StartReadSetImportJobCommand = exports.se_StartReadSetExportJobCommand = exports.se_StartReadSetActivationJobCommand = exports.se_StartAnnotationImportJobCommand = exports.se_ListWorkflowsCommand = exports.se_ListVariantStoresCommand = exports.se_ListVariantImportJobsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSequenceStoresCommand = exports.se_ListRunTasksCommand = exports.se_ListRunsCommand = exports.se_ListRunGroupsCommand = void 0;
5
- exports.de_UploadReadSetPartCommand = exports.de_UpdateWorkflowCommand = exports.de_UpdateVariantStoreCommand = exports.de_UpdateRunGroupCommand = exports.de_UpdateAnnotationStoreCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartVariantImportJobCommand = exports.de_StartRunCommand = exports.de_StartReferenceImportJobCommand = exports.de_StartReadSetImportJobCommand = exports.de_StartReadSetExportJobCommand = exports.de_StartReadSetActivationJobCommand = exports.de_StartAnnotationImportJobCommand = exports.de_ListWorkflowsCommand = exports.de_ListVariantStoresCommand = exports.de_ListVariantImportJobsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSequenceStoresCommand = exports.de_ListRunTasksCommand = exports.de_ListRunsCommand = exports.de_ListRunGroupsCommand = exports.de_ListReferenceStoresCommand = exports.de_ListReferencesCommand = exports.de_ListReferenceImportJobsCommand = exports.de_ListReadSetUploadPartsCommand = exports.de_ListReadSetsCommand = exports.de_ListReadSetImportJobsCommand = exports.de_ListReadSetExportJobsCommand = exports.de_ListReadSetActivationJobsCommand = exports.de_ListMultipartReadSetUploadsCommand = exports.de_ListAnnotationStoresCommand = exports.de_ListAnnotationImportJobsCommand = exports.de_GetWorkflowCommand = exports.de_GetVariantStoreCommand = exports.de_GetVariantImportJobCommand = exports.de_GetSequenceStoreCommand = exports.de_GetRunTaskCommand = exports.de_GetRunGroupCommand = exports.de_GetRunCommand = exports.de_GetReferenceStoreCommand = exports.de_GetReferenceMetadataCommand = exports.de_GetReferenceImportJobCommand = exports.de_GetReferenceCommand = void 0;
3
+ exports.se_ListMultipartReadSetUploadsCommand = exports.se_ListAnnotationStoreVersionsCommand = exports.se_ListAnnotationStoresCommand = exports.se_ListAnnotationImportJobsCommand = exports.se_GetWorkflowCommand = exports.se_GetVariantStoreCommand = exports.se_GetVariantImportJobCommand = exports.se_GetShareCommand = exports.se_GetSequenceStoreCommand = exports.se_GetRunTaskCommand = exports.se_GetRunGroupCommand = exports.se_GetRunCommand = exports.se_GetReferenceStoreCommand = exports.se_GetReferenceMetadataCommand = exports.se_GetReferenceImportJobCommand = exports.se_GetReferenceCommand = exports.se_GetReadSetMetadataCommand = exports.se_GetReadSetImportJobCommand = exports.se_GetReadSetExportJobCommand = exports.se_GetReadSetActivationJobCommand = exports.se_GetReadSetCommand = exports.se_GetAnnotationStoreVersionCommand = exports.se_GetAnnotationStoreCommand = exports.se_GetAnnotationImportJobCommand = exports.se_DeleteWorkflowCommand = exports.se_DeleteVariantStoreCommand = exports.se_DeleteShareCommand = exports.se_DeleteSequenceStoreCommand = exports.se_DeleteRunGroupCommand = exports.se_DeleteRunCommand = exports.se_DeleteReferenceStoreCommand = exports.se_DeleteReferenceCommand = exports.se_DeleteAnnotationStoreVersionsCommand = exports.se_DeleteAnnotationStoreCommand = exports.se_CreateWorkflowCommand = exports.se_CreateVariantStoreCommand = exports.se_CreateShareCommand = exports.se_CreateSequenceStoreCommand = exports.se_CreateRunGroupCommand = exports.se_CreateReferenceStoreCommand = exports.se_CreateMultipartReadSetUploadCommand = exports.se_CreateAnnotationStoreVersionCommand = exports.se_CreateAnnotationStoreCommand = exports.se_CompleteMultipartReadSetUploadCommand = exports.se_CancelVariantImportJobCommand = exports.se_CancelRunCommand = exports.se_CancelAnnotationImportJobCommand = exports.se_BatchDeleteReadSetCommand = exports.se_AcceptShareCommand = exports.se_AbortMultipartReadSetUploadCommand = void 0;
4
+ exports.de_DeleteAnnotationStoreVersionsCommand = exports.de_DeleteAnnotationStoreCommand = exports.de_CreateWorkflowCommand = exports.de_CreateVariantStoreCommand = exports.de_CreateShareCommand = exports.de_CreateSequenceStoreCommand = exports.de_CreateRunGroupCommand = exports.de_CreateReferenceStoreCommand = exports.de_CreateMultipartReadSetUploadCommand = exports.de_CreateAnnotationStoreVersionCommand = exports.de_CreateAnnotationStoreCommand = exports.de_CompleteMultipartReadSetUploadCommand = exports.de_CancelVariantImportJobCommand = exports.de_CancelRunCommand = exports.de_CancelAnnotationImportJobCommand = exports.de_BatchDeleteReadSetCommand = exports.de_AcceptShareCommand = exports.de_AbortMultipartReadSetUploadCommand = exports.se_UploadReadSetPartCommand = exports.se_UpdateWorkflowCommand = exports.se_UpdateVariantStoreCommand = exports.se_UpdateRunGroupCommand = exports.se_UpdateAnnotationStoreVersionCommand = exports.se_UpdateAnnotationStoreCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StartVariantImportJobCommand = exports.se_StartRunCommand = exports.se_StartReferenceImportJobCommand = exports.se_StartReadSetImportJobCommand = exports.se_StartReadSetExportJobCommand = exports.se_StartReadSetActivationJobCommand = exports.se_StartAnnotationImportJobCommand = exports.se_ListWorkflowsCommand = exports.se_ListVariantStoresCommand = exports.se_ListVariantImportJobsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSharesCommand = exports.se_ListSequenceStoresCommand = exports.se_ListRunTasksCommand = exports.se_ListRunsCommand = exports.se_ListRunGroupsCommand = exports.se_ListReferenceStoresCommand = exports.se_ListReferencesCommand = exports.se_ListReferenceImportJobsCommand = exports.se_ListReadSetUploadPartsCommand = exports.se_ListReadSetsCommand = exports.se_ListReadSetImportJobsCommand = exports.se_ListReadSetExportJobsCommand = exports.se_ListReadSetActivationJobsCommand = void 0;
5
+ exports.de_StartAnnotationImportJobCommand = exports.de_ListWorkflowsCommand = exports.de_ListVariantStoresCommand = exports.de_ListVariantImportJobsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSharesCommand = exports.de_ListSequenceStoresCommand = exports.de_ListRunTasksCommand = exports.de_ListRunsCommand = exports.de_ListRunGroupsCommand = exports.de_ListReferenceStoresCommand = exports.de_ListReferencesCommand = exports.de_ListReferenceImportJobsCommand = exports.de_ListReadSetUploadPartsCommand = exports.de_ListReadSetsCommand = exports.de_ListReadSetImportJobsCommand = exports.de_ListReadSetExportJobsCommand = exports.de_ListReadSetActivationJobsCommand = exports.de_ListMultipartReadSetUploadsCommand = exports.de_ListAnnotationStoreVersionsCommand = exports.de_ListAnnotationStoresCommand = exports.de_ListAnnotationImportJobsCommand = exports.de_GetWorkflowCommand = exports.de_GetVariantStoreCommand = exports.de_GetVariantImportJobCommand = exports.de_GetShareCommand = exports.de_GetSequenceStoreCommand = exports.de_GetRunTaskCommand = exports.de_GetRunGroupCommand = exports.de_GetRunCommand = exports.de_GetReferenceStoreCommand = exports.de_GetReferenceMetadataCommand = exports.de_GetReferenceImportJobCommand = exports.de_GetReferenceCommand = exports.de_GetReadSetMetadataCommand = exports.de_GetReadSetImportJobCommand = exports.de_GetReadSetExportJobCommand = exports.de_GetReadSetActivationJobCommand = exports.de_GetReadSetCommand = exports.de_GetAnnotationStoreVersionCommand = exports.de_GetAnnotationStoreCommand = exports.de_GetAnnotationImportJobCommand = exports.de_DeleteWorkflowCommand = exports.de_DeleteVariantStoreCommand = exports.de_DeleteShareCommand = exports.de_DeleteSequenceStoreCommand = exports.de_DeleteRunGroupCommand = exports.de_DeleteRunCommand = exports.de_DeleteReferenceStoreCommand = exports.de_DeleteReferenceCommand = void 0;
6
+ exports.de_UploadReadSetPartCommand = exports.de_UpdateWorkflowCommand = exports.de_UpdateVariantStoreCommand = exports.de_UpdateRunGroupCommand = exports.de_UpdateAnnotationStoreVersionCommand = exports.de_UpdateAnnotationStoreCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartVariantImportJobCommand = exports.de_StartRunCommand = exports.de_StartReferenceImportJobCommand = exports.de_StartReadSetImportJobCommand = exports.de_StartReadSetExportJobCommand = exports.de_StartReadSetActivationJobCommand = void 0;
6
7
  const protocol_http_1 = require("@smithy/protocol-http");
7
8
  const smithy_client_1 = require("@smithy/smithy-client");
8
9
  const uuid_1 = require("uuid");
@@ -34,6 +35,30 @@ const se_AbortMultipartReadSetUploadCommand = async (input, context) => {
34
35
  });
35
36
  };
36
37
  exports.se_AbortMultipartReadSetUploadCommand = se_AbortMultipartReadSetUploadCommand;
38
+ const se_AcceptShareCommand = async (input, context) => {
39
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
40
+ const headers = {};
41
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/share/{shareId}";
42
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "shareId", () => input.shareId, "{shareId}", false);
43
+ let body;
44
+ let { hostname: resolvedHostname } = await context.endpoint();
45
+ if (context.disableHostPrefix !== true) {
46
+ resolvedHostname = "analytics-" + resolvedHostname;
47
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
48
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
49
+ }
50
+ }
51
+ return new protocol_http_1.HttpRequest({
52
+ protocol,
53
+ hostname: resolvedHostname,
54
+ port,
55
+ method: "POST",
56
+ headers,
57
+ path: resolvedPath,
58
+ body,
59
+ });
60
+ };
61
+ exports.se_AcceptShareCommand = se_AcceptShareCommand;
37
62
  const se_BatchDeleteReadSetCommand = async (input, context) => {
38
63
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
39
64
  const headers = {
@@ -182,6 +207,7 @@ const se_CreateAnnotationStoreCommand = async (input, context) => {
182
207
  storeFormat: [],
183
208
  storeOptions: (_) => (0, smithy_client_1._json)(_),
184
209
  tags: (_) => (0, smithy_client_1._json)(_),
210
+ versionName: [],
185
211
  }));
186
212
  let { hostname: resolvedHostname } = await context.endpoint();
187
213
  if (context.disableHostPrefix !== true) {
@@ -201,6 +227,38 @@ const se_CreateAnnotationStoreCommand = async (input, context) => {
201
227
  });
202
228
  };
203
229
  exports.se_CreateAnnotationStoreCommand = se_CreateAnnotationStoreCommand;
230
+ const se_CreateAnnotationStoreVersionCommand = async (input, context) => {
231
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
232
+ const headers = {
233
+ "content-type": "application/json",
234
+ };
235
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/annotationStore/{name}/version";
236
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
237
+ let body;
238
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
239
+ description: [],
240
+ tags: (_) => (0, smithy_client_1._json)(_),
241
+ versionName: [],
242
+ versionOptions: (_) => (0, smithy_client_1._json)(_),
243
+ }));
244
+ let { hostname: resolvedHostname } = await context.endpoint();
245
+ if (context.disableHostPrefix !== true) {
246
+ resolvedHostname = "analytics-" + resolvedHostname;
247
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
248
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
249
+ }
250
+ }
251
+ return new protocol_http_1.HttpRequest({
252
+ protocol,
253
+ hostname: resolvedHostname,
254
+ port,
255
+ method: "POST",
256
+ headers,
257
+ path: resolvedPath,
258
+ body,
259
+ });
260
+ };
261
+ exports.se_CreateAnnotationStoreVersionCommand = se_CreateAnnotationStoreVersionCommand;
204
262
  const se_CreateMultipartReadSetUploadCommand = async (input, context) => {
205
263
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
206
264
  const headers = {
@@ -337,6 +395,36 @@ const se_CreateSequenceStoreCommand = async (input, context) => {
337
395
  });
338
396
  };
339
397
  exports.se_CreateSequenceStoreCommand = se_CreateSequenceStoreCommand;
398
+ const se_CreateShareCommand = async (input, context) => {
399
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
400
+ const headers = {
401
+ "content-type": "application/json",
402
+ };
403
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/share";
404
+ let body;
405
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
406
+ principalSubscriber: [],
407
+ resourceArn: [],
408
+ shareName: [],
409
+ }));
410
+ let { hostname: resolvedHostname } = await context.endpoint();
411
+ if (context.disableHostPrefix !== true) {
412
+ resolvedHostname = "analytics-" + resolvedHostname;
413
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
414
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
415
+ }
416
+ }
417
+ return new protocol_http_1.HttpRequest({
418
+ protocol,
419
+ hostname: resolvedHostname,
420
+ port,
421
+ method: "POST",
422
+ headers,
423
+ path: resolvedPath,
424
+ body,
425
+ });
426
+ };
427
+ exports.se_CreateShareCommand = se_CreateShareCommand;
340
428
  const se_CreateVariantStoreCommand = async (input, context) => {
341
429
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
342
430
  const headers = {
@@ -435,6 +523,39 @@ const se_DeleteAnnotationStoreCommand = async (input, context) => {
435
523
  });
436
524
  };
437
525
  exports.se_DeleteAnnotationStoreCommand = se_DeleteAnnotationStoreCommand;
526
+ const se_DeleteAnnotationStoreVersionsCommand = async (input, context) => {
527
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
528
+ const headers = {
529
+ "content-type": "application/json",
530
+ };
531
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/annotationStore/{name}/versions/delete";
532
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
533
+ const query = (0, smithy_client_1.map)({
534
+ force: [() => input.force !== void 0, () => input.force.toString()],
535
+ });
536
+ let body;
537
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
538
+ versions: (_) => (0, smithy_client_1._json)(_),
539
+ }));
540
+ let { hostname: resolvedHostname } = await context.endpoint();
541
+ if (context.disableHostPrefix !== true) {
542
+ resolvedHostname = "analytics-" + resolvedHostname;
543
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
544
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
545
+ }
546
+ }
547
+ return new protocol_http_1.HttpRequest({
548
+ protocol,
549
+ hostname: resolvedHostname,
550
+ port,
551
+ method: "POST",
552
+ headers,
553
+ path: resolvedPath,
554
+ query,
555
+ body,
556
+ });
557
+ };
558
+ exports.se_DeleteAnnotationStoreVersionsCommand = se_DeleteAnnotationStoreVersionsCommand;
438
559
  const se_DeleteReferenceCommand = async (input, context) => {
439
560
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
440
561
  const headers = {};
@@ -557,6 +678,30 @@ const se_DeleteSequenceStoreCommand = async (input, context) => {
557
678
  });
558
679
  };
559
680
  exports.se_DeleteSequenceStoreCommand = se_DeleteSequenceStoreCommand;
681
+ const se_DeleteShareCommand = async (input, context) => {
682
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
683
+ const headers = {};
684
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/share/{shareId}";
685
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "shareId", () => input.shareId, "{shareId}", false);
686
+ let body;
687
+ let { hostname: resolvedHostname } = await context.endpoint();
688
+ if (context.disableHostPrefix !== true) {
689
+ resolvedHostname = "analytics-" + resolvedHostname;
690
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
691
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
692
+ }
693
+ }
694
+ return new protocol_http_1.HttpRequest({
695
+ protocol,
696
+ hostname: resolvedHostname,
697
+ port,
698
+ method: "DELETE",
699
+ headers,
700
+ path: resolvedPath,
701
+ body,
702
+ });
703
+ };
704
+ exports.se_DeleteShareCommand = se_DeleteShareCommand;
560
705
  const se_DeleteVariantStoreCommand = async (input, context) => {
561
706
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
562
707
  const headers = {};
@@ -657,6 +802,32 @@ const se_GetAnnotationStoreCommand = async (input, context) => {
657
802
  });
658
803
  };
659
804
  exports.se_GetAnnotationStoreCommand = se_GetAnnotationStoreCommand;
805
+ const se_GetAnnotationStoreVersionCommand = async (input, context) => {
806
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
807
+ const headers = {};
808
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
809
+ "/annotationStore/{name}/version/{versionName}";
810
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
811
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "versionName", () => input.versionName, "{versionName}", false);
812
+ let body;
813
+ let { hostname: resolvedHostname } = await context.endpoint();
814
+ if (context.disableHostPrefix !== true) {
815
+ resolvedHostname = "analytics-" + resolvedHostname;
816
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
817
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
818
+ }
819
+ }
820
+ return new protocol_http_1.HttpRequest({
821
+ protocol,
822
+ hostname: resolvedHostname,
823
+ port,
824
+ method: "GET",
825
+ headers,
826
+ path: resolvedPath,
827
+ body,
828
+ });
829
+ };
830
+ exports.se_GetAnnotationStoreVersionCommand = se_GetAnnotationStoreVersionCommand;
660
831
  const se_GetReadSetCommand = async (input, context) => {
661
832
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
662
833
  const headers = {};
@@ -1002,6 +1173,30 @@ const se_GetSequenceStoreCommand = async (input, context) => {
1002
1173
  });
1003
1174
  };
1004
1175
  exports.se_GetSequenceStoreCommand = se_GetSequenceStoreCommand;
1176
+ const se_GetShareCommand = async (input, context) => {
1177
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1178
+ const headers = {};
1179
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/share/{shareId}";
1180
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "shareId", () => input.shareId, "{shareId}", false);
1181
+ let body;
1182
+ let { hostname: resolvedHostname } = await context.endpoint();
1183
+ if (context.disableHostPrefix !== true) {
1184
+ resolvedHostname = "analytics-" + resolvedHostname;
1185
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
1186
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1187
+ }
1188
+ }
1189
+ return new protocol_http_1.HttpRequest({
1190
+ protocol,
1191
+ hostname: resolvedHostname,
1192
+ port,
1193
+ method: "GET",
1194
+ headers,
1195
+ path: resolvedPath,
1196
+ body,
1197
+ });
1198
+ };
1199
+ exports.se_GetShareCommand = se_GetShareCommand;
1005
1200
  const se_GetVariantImportJobCommand = async (input, context) => {
1006
1201
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1007
1202
  const headers = {};
@@ -1147,6 +1342,40 @@ const se_ListAnnotationStoresCommand = async (input, context) => {
1147
1342
  });
1148
1343
  };
1149
1344
  exports.se_ListAnnotationStoresCommand = se_ListAnnotationStoresCommand;
1345
+ const se_ListAnnotationStoreVersionsCommand = async (input, context) => {
1346
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1347
+ const headers = {
1348
+ "content-type": "application/json",
1349
+ };
1350
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/annotationStore/{name}/versions";
1351
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
1352
+ const query = (0, smithy_client_1.map)({
1353
+ maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1354
+ nextToken: [, input.nextToken],
1355
+ });
1356
+ let body;
1357
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
1358
+ filter: (_) => (0, smithy_client_1._json)(_),
1359
+ }));
1360
+ let { hostname: resolvedHostname } = await context.endpoint();
1361
+ if (context.disableHostPrefix !== true) {
1362
+ resolvedHostname = "analytics-" + resolvedHostname;
1363
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
1364
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1365
+ }
1366
+ }
1367
+ return new protocol_http_1.HttpRequest({
1368
+ protocol,
1369
+ hostname: resolvedHostname,
1370
+ port,
1371
+ method: "POST",
1372
+ headers,
1373
+ path: resolvedPath,
1374
+ query,
1375
+ body,
1376
+ });
1377
+ };
1378
+ exports.se_ListAnnotationStoreVersionsCommand = se_ListAnnotationStoreVersionsCommand;
1150
1379
  const se_ListMultipartReadSetUploadsCommand = async (input, context) => {
1151
1380
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1152
1381
  const headers = {};
@@ -1578,6 +1807,40 @@ const se_ListSequenceStoresCommand = async (input, context) => {
1578
1807
  });
1579
1808
  };
1580
1809
  exports.se_ListSequenceStoresCommand = se_ListSequenceStoresCommand;
1810
+ const se_ListSharesCommand = async (input, context) => {
1811
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1812
+ const headers = {
1813
+ "content-type": "application/json",
1814
+ };
1815
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/shares";
1816
+ const query = (0, smithy_client_1.map)({
1817
+ nextToken: [, input.nextToken],
1818
+ maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1819
+ });
1820
+ let body;
1821
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
1822
+ filter: (_) => (0, smithy_client_1._json)(_),
1823
+ resourceOwner: [],
1824
+ }));
1825
+ let { hostname: resolvedHostname } = await context.endpoint();
1826
+ if (context.disableHostPrefix !== true) {
1827
+ resolvedHostname = "analytics-" + resolvedHostname;
1828
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
1829
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1830
+ }
1831
+ }
1832
+ return new protocol_http_1.HttpRequest({
1833
+ protocol,
1834
+ hostname: resolvedHostname,
1835
+ port,
1836
+ method: "POST",
1837
+ headers,
1838
+ path: resolvedPath,
1839
+ query,
1840
+ body,
1841
+ });
1842
+ };
1843
+ exports.se_ListSharesCommand = se_ListSharesCommand;
1581
1844
  const se_ListTagsForResourceCommand = async (input, context) => {
1582
1845
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1583
1846
  const headers = {};
@@ -1714,6 +1977,7 @@ const se_StartAnnotationImportJobCommand = async (input, context) => {
1714
1977
  items: (_) => (0, smithy_client_1._json)(_),
1715
1978
  roleArn: [],
1716
1979
  runLeftNormalization: [],
1980
+ versionName: [],
1717
1981
  }));
1718
1982
  let { hostname: resolvedHostname } = await context.endpoint();
1719
1983
  if (context.disableHostPrefix !== true) {
@@ -2022,6 +2286,37 @@ const se_UpdateAnnotationStoreCommand = async (input, context) => {
2022
2286
  });
2023
2287
  };
2024
2288
  exports.se_UpdateAnnotationStoreCommand = se_UpdateAnnotationStoreCommand;
2289
+ const se_UpdateAnnotationStoreVersionCommand = async (input, context) => {
2290
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2291
+ const headers = {
2292
+ "content-type": "application/json",
2293
+ };
2294
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
2295
+ "/annotationStore/{name}/version/{versionName}";
2296
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
2297
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "versionName", () => input.versionName, "{versionName}", false);
2298
+ let body;
2299
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
2300
+ description: [],
2301
+ }));
2302
+ let { hostname: resolvedHostname } = await context.endpoint();
2303
+ if (context.disableHostPrefix !== true) {
2304
+ resolvedHostname = "analytics-" + resolvedHostname;
2305
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
2306
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
2307
+ }
2308
+ }
2309
+ return new protocol_http_1.HttpRequest({
2310
+ protocol,
2311
+ hostname: resolvedHostname,
2312
+ port,
2313
+ method: "POST",
2314
+ headers,
2315
+ path: resolvedPath,
2316
+ body,
2317
+ });
2318
+ };
2319
+ exports.se_UpdateAnnotationStoreVersionCommand = se_UpdateAnnotationStoreVersionCommand;
2025
2320
  const se_UpdateRunGroupCommand = async (input, context) => {
2026
2321
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2027
2322
  const headers = {
@@ -2202,22 +2497,74 @@ const de_AbortMultipartReadSetUploadCommandError = async (output, context) => {
2202
2497
  });
2203
2498
  }
2204
2499
  };
2205
- const de_BatchDeleteReadSetCommand = async (output, context) => {
2500
+ const de_AcceptShareCommand = async (output, context) => {
2206
2501
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2207
- return de_BatchDeleteReadSetCommandError(output, context);
2502
+ return de_AcceptShareCommandError(output, context);
2208
2503
  }
2209
2504
  const contents = (0, smithy_client_1.map)({
2210
2505
  $metadata: deserializeMetadata(output),
2211
2506
  });
2212
2507
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2213
2508
  const doc = (0, smithy_client_1.take)(data, {
2214
- errors: smithy_client_1._json,
2509
+ status: smithy_client_1.expectString,
2215
2510
  });
2216
2511
  Object.assign(contents, doc);
2217
2512
  return contents;
2218
2513
  };
2219
- exports.de_BatchDeleteReadSetCommand = de_BatchDeleteReadSetCommand;
2220
- const de_BatchDeleteReadSetCommandError = async (output, context) => {
2514
+ exports.de_AcceptShareCommand = de_AcceptShareCommand;
2515
+ const de_AcceptShareCommandError = async (output, context) => {
2516
+ const parsedOutput = {
2517
+ ...output,
2518
+ body: await parseErrorBody(output.body, context),
2519
+ };
2520
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2521
+ switch (errorCode) {
2522
+ case "AccessDeniedException":
2523
+ case "com.amazonaws.omics#AccessDeniedException":
2524
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2525
+ case "ConflictException":
2526
+ case "com.amazonaws.omics#ConflictException":
2527
+ throw await de_ConflictExceptionRes(parsedOutput, context);
2528
+ case "InternalServerException":
2529
+ case "com.amazonaws.omics#InternalServerException":
2530
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2531
+ case "ResourceNotFoundException":
2532
+ case "com.amazonaws.omics#ResourceNotFoundException":
2533
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2534
+ case "ServiceQuotaExceededException":
2535
+ case "com.amazonaws.omics#ServiceQuotaExceededException":
2536
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2537
+ case "ThrottlingException":
2538
+ case "com.amazonaws.omics#ThrottlingException":
2539
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2540
+ case "ValidationException":
2541
+ case "com.amazonaws.omics#ValidationException":
2542
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2543
+ default:
2544
+ const parsedBody = parsedOutput.body;
2545
+ return throwDefaultError({
2546
+ output,
2547
+ parsedBody,
2548
+ errorCode,
2549
+ });
2550
+ }
2551
+ };
2552
+ const de_BatchDeleteReadSetCommand = async (output, context) => {
2553
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2554
+ return de_BatchDeleteReadSetCommandError(output, context);
2555
+ }
2556
+ const contents = (0, smithy_client_1.map)({
2557
+ $metadata: deserializeMetadata(output),
2558
+ });
2559
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2560
+ const doc = (0, smithy_client_1.take)(data, {
2561
+ errors: smithy_client_1._json,
2562
+ });
2563
+ Object.assign(contents, doc);
2564
+ return contents;
2565
+ };
2566
+ exports.de_BatchDeleteReadSetCommand = de_BatchDeleteReadSetCommand;
2567
+ const de_BatchDeleteReadSetCommandError = async (output, context) => {
2221
2568
  const parsedOutput = {
2222
2569
  ...output,
2223
2570
  body: await parseErrorBody(output.body, context),
@@ -2457,6 +2804,7 @@ const de_CreateAnnotationStoreCommand = async (output, context) => {
2457
2804
  status: smithy_client_1.expectString,
2458
2805
  storeFormat: smithy_client_1.expectString,
2459
2806
  storeOptions: (_) => (0, smithy_client_1._json)((0, smithy_client_1.expectUnion)(_)),
2807
+ versionName: smithy_client_1.expectString,
2460
2808
  });
2461
2809
  Object.assign(contents, doc);
2462
2810
  return contents;
@@ -2499,6 +2847,64 @@ const de_CreateAnnotationStoreCommandError = async (output, context) => {
2499
2847
  });
2500
2848
  }
2501
2849
  };
2850
+ const de_CreateAnnotationStoreVersionCommand = async (output, context) => {
2851
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2852
+ return de_CreateAnnotationStoreVersionCommandError(output, context);
2853
+ }
2854
+ const contents = (0, smithy_client_1.map)({
2855
+ $metadata: deserializeMetadata(output),
2856
+ });
2857
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2858
+ const doc = (0, smithy_client_1.take)(data, {
2859
+ creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
2860
+ id: smithy_client_1.expectString,
2861
+ name: smithy_client_1.expectString,
2862
+ status: smithy_client_1.expectString,
2863
+ storeId: smithy_client_1.expectString,
2864
+ versionName: smithy_client_1.expectString,
2865
+ versionOptions: (_) => (0, smithy_client_1._json)((0, smithy_client_1.expectUnion)(_)),
2866
+ });
2867
+ Object.assign(contents, doc);
2868
+ return contents;
2869
+ };
2870
+ exports.de_CreateAnnotationStoreVersionCommand = de_CreateAnnotationStoreVersionCommand;
2871
+ const de_CreateAnnotationStoreVersionCommandError = async (output, context) => {
2872
+ const parsedOutput = {
2873
+ ...output,
2874
+ body: await parseErrorBody(output.body, context),
2875
+ };
2876
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2877
+ switch (errorCode) {
2878
+ case "AccessDeniedException":
2879
+ case "com.amazonaws.omics#AccessDeniedException":
2880
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2881
+ case "ConflictException":
2882
+ case "com.amazonaws.omics#ConflictException":
2883
+ throw await de_ConflictExceptionRes(parsedOutput, context);
2884
+ case "InternalServerException":
2885
+ case "com.amazonaws.omics#InternalServerException":
2886
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2887
+ case "ResourceNotFoundException":
2888
+ case "com.amazonaws.omics#ResourceNotFoundException":
2889
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2890
+ case "ServiceQuotaExceededException":
2891
+ case "com.amazonaws.omics#ServiceQuotaExceededException":
2892
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2893
+ case "ThrottlingException":
2894
+ case "com.amazonaws.omics#ThrottlingException":
2895
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2896
+ case "ValidationException":
2897
+ case "com.amazonaws.omics#ValidationException":
2898
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2899
+ default:
2900
+ const parsedBody = parsedOutput.body;
2901
+ return throwDefaultError({
2902
+ output,
2903
+ parsedBody,
2904
+ errorCode,
2905
+ });
2906
+ }
2907
+ };
2502
2908
  const de_CreateMultipartReadSetUploadCommand = async (output, context) => {
2503
2909
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2504
2910
  return de_CreateMultipartReadSetUploadCommandError(output, context);
@@ -2730,6 +3136,60 @@ const de_CreateSequenceStoreCommandError = async (output, context) => {
2730
3136
  });
2731
3137
  }
2732
3138
  };
3139
+ const de_CreateShareCommand = async (output, context) => {
3140
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3141
+ return de_CreateShareCommandError(output, context);
3142
+ }
3143
+ const contents = (0, smithy_client_1.map)({
3144
+ $metadata: deserializeMetadata(output),
3145
+ });
3146
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3147
+ const doc = (0, smithy_client_1.take)(data, {
3148
+ shareId: smithy_client_1.expectString,
3149
+ shareName: smithy_client_1.expectString,
3150
+ status: smithy_client_1.expectString,
3151
+ });
3152
+ Object.assign(contents, doc);
3153
+ return contents;
3154
+ };
3155
+ exports.de_CreateShareCommand = de_CreateShareCommand;
3156
+ const de_CreateShareCommandError = async (output, context) => {
3157
+ const parsedOutput = {
3158
+ ...output,
3159
+ body: await parseErrorBody(output.body, context),
3160
+ };
3161
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3162
+ switch (errorCode) {
3163
+ case "AccessDeniedException":
3164
+ case "com.amazonaws.omics#AccessDeniedException":
3165
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3166
+ case "ConflictException":
3167
+ case "com.amazonaws.omics#ConflictException":
3168
+ throw await de_ConflictExceptionRes(parsedOutput, context);
3169
+ case "InternalServerException":
3170
+ case "com.amazonaws.omics#InternalServerException":
3171
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
3172
+ case "ResourceNotFoundException":
3173
+ case "com.amazonaws.omics#ResourceNotFoundException":
3174
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3175
+ case "ServiceQuotaExceededException":
3176
+ case "com.amazonaws.omics#ServiceQuotaExceededException":
3177
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
3178
+ case "ThrottlingException":
3179
+ case "com.amazonaws.omics#ThrottlingException":
3180
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
3181
+ case "ValidationException":
3182
+ case "com.amazonaws.omics#ValidationException":
3183
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3184
+ default:
3185
+ const parsedBody = parsedOutput.body;
3186
+ return throwDefaultError({
3187
+ output,
3188
+ parsedBody,
3189
+ errorCode,
3190
+ });
3191
+ }
3192
+ };
2733
3193
  const de_CreateVariantStoreCommand = async (output, context) => {
2734
3194
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2735
3195
  return de_CreateVariantStoreCommandError(output, context);
@@ -2893,6 +3353,55 @@ const de_DeleteAnnotationStoreCommandError = async (output, context) => {
2893
3353
  });
2894
3354
  }
2895
3355
  };
3356
+ const de_DeleteAnnotationStoreVersionsCommand = async (output, context) => {
3357
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3358
+ return de_DeleteAnnotationStoreVersionsCommandError(output, context);
3359
+ }
3360
+ const contents = (0, smithy_client_1.map)({
3361
+ $metadata: deserializeMetadata(output),
3362
+ });
3363
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3364
+ const doc = (0, smithy_client_1.take)(data, {
3365
+ errors: smithy_client_1._json,
3366
+ });
3367
+ Object.assign(contents, doc);
3368
+ return contents;
3369
+ };
3370
+ exports.de_DeleteAnnotationStoreVersionsCommand = de_DeleteAnnotationStoreVersionsCommand;
3371
+ const de_DeleteAnnotationStoreVersionsCommandError = async (output, context) => {
3372
+ const parsedOutput = {
3373
+ ...output,
3374
+ body: await parseErrorBody(output.body, context),
3375
+ };
3376
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3377
+ switch (errorCode) {
3378
+ case "AccessDeniedException":
3379
+ case "com.amazonaws.omics#AccessDeniedException":
3380
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3381
+ case "ConflictException":
3382
+ case "com.amazonaws.omics#ConflictException":
3383
+ throw await de_ConflictExceptionRes(parsedOutput, context);
3384
+ case "InternalServerException":
3385
+ case "com.amazonaws.omics#InternalServerException":
3386
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
3387
+ case "ResourceNotFoundException":
3388
+ case "com.amazonaws.omics#ResourceNotFoundException":
3389
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3390
+ case "ThrottlingException":
3391
+ case "com.amazonaws.omics#ThrottlingException":
3392
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
3393
+ case "ValidationException":
3394
+ case "com.amazonaws.omics#ValidationException":
3395
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3396
+ default:
3397
+ const parsedBody = parsedOutput.body;
3398
+ return throwDefaultError({
3399
+ output,
3400
+ parsedBody,
3401
+ errorCode,
3402
+ });
3403
+ }
3404
+ };
2896
3405
  const de_DeleteReferenceCommand = async (output, context) => {
2897
3406
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2898
3407
  return de_DeleteReferenceCommandError(output, context);
@@ -3139,6 +3648,58 @@ const de_DeleteSequenceStoreCommandError = async (output, context) => {
3139
3648
  });
3140
3649
  }
3141
3650
  };
3651
+ const de_DeleteShareCommand = async (output, context) => {
3652
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3653
+ return de_DeleteShareCommandError(output, context);
3654
+ }
3655
+ const contents = (0, smithy_client_1.map)({
3656
+ $metadata: deserializeMetadata(output),
3657
+ });
3658
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3659
+ const doc = (0, smithy_client_1.take)(data, {
3660
+ status: smithy_client_1.expectString,
3661
+ });
3662
+ Object.assign(contents, doc);
3663
+ return contents;
3664
+ };
3665
+ exports.de_DeleteShareCommand = de_DeleteShareCommand;
3666
+ const de_DeleteShareCommandError = async (output, context) => {
3667
+ const parsedOutput = {
3668
+ ...output,
3669
+ body: await parseErrorBody(output.body, context),
3670
+ };
3671
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3672
+ switch (errorCode) {
3673
+ case "AccessDeniedException":
3674
+ case "com.amazonaws.omics#AccessDeniedException":
3675
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3676
+ case "ConflictException":
3677
+ case "com.amazonaws.omics#ConflictException":
3678
+ throw await de_ConflictExceptionRes(parsedOutput, context);
3679
+ case "InternalServerException":
3680
+ case "com.amazonaws.omics#InternalServerException":
3681
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
3682
+ case "ResourceNotFoundException":
3683
+ case "com.amazonaws.omics#ResourceNotFoundException":
3684
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3685
+ case "ServiceQuotaExceededException":
3686
+ case "com.amazonaws.omics#ServiceQuotaExceededException":
3687
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
3688
+ case "ThrottlingException":
3689
+ case "com.amazonaws.omics#ThrottlingException":
3690
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
3691
+ case "ValidationException":
3692
+ case "com.amazonaws.omics#ValidationException":
3693
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3694
+ default:
3695
+ const parsedBody = parsedOutput.body;
3696
+ return throwDefaultError({
3697
+ output,
3698
+ parsedBody,
3699
+ errorCode,
3700
+ });
3701
+ }
3702
+ };
3142
3703
  const de_DeleteVariantStoreCommand = async (output, context) => {
3143
3704
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3144
3705
  return de_DeleteVariantStoreCommandError(output, context);
@@ -3209,21 +3770,79 @@ const de_DeleteWorkflowCommandError = async (output, context) => {
3209
3770
  case "AccessDeniedException":
3210
3771
  case "com.amazonaws.omics#AccessDeniedException":
3211
3772
  throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3212
- case "ConflictException":
3213
- case "com.amazonaws.omics#ConflictException":
3214
- throw await de_ConflictExceptionRes(parsedOutput, context);
3773
+ case "ConflictException":
3774
+ case "com.amazonaws.omics#ConflictException":
3775
+ throw await de_ConflictExceptionRes(parsedOutput, context);
3776
+ case "InternalServerException":
3777
+ case "com.amazonaws.omics#InternalServerException":
3778
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
3779
+ case "RequestTimeoutException":
3780
+ case "com.amazonaws.omics#RequestTimeoutException":
3781
+ throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
3782
+ case "ResourceNotFoundException":
3783
+ case "com.amazonaws.omics#ResourceNotFoundException":
3784
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3785
+ case "ServiceQuotaExceededException":
3786
+ case "com.amazonaws.omics#ServiceQuotaExceededException":
3787
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
3788
+ case "ThrottlingException":
3789
+ case "com.amazonaws.omics#ThrottlingException":
3790
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
3791
+ case "ValidationException":
3792
+ case "com.amazonaws.omics#ValidationException":
3793
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3794
+ default:
3795
+ const parsedBody = parsedOutput.body;
3796
+ return throwDefaultError({
3797
+ output,
3798
+ parsedBody,
3799
+ errorCode,
3800
+ });
3801
+ }
3802
+ };
3803
+ const de_GetAnnotationImportJobCommand = async (output, context) => {
3804
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3805
+ return de_GetAnnotationImportJobCommandError(output, context);
3806
+ }
3807
+ const contents = (0, smithy_client_1.map)({
3808
+ $metadata: deserializeMetadata(output),
3809
+ });
3810
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3811
+ const doc = (0, smithy_client_1.take)(data, {
3812
+ annotationFields: smithy_client_1._json,
3813
+ completionTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
3814
+ creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
3815
+ destinationName: smithy_client_1.expectString,
3816
+ formatOptions: (_) => (0, smithy_client_1._json)((0, smithy_client_1.expectUnion)(_)),
3817
+ id: smithy_client_1.expectString,
3818
+ items: smithy_client_1._json,
3819
+ roleArn: smithy_client_1.expectString,
3820
+ runLeftNormalization: smithy_client_1.expectBoolean,
3821
+ status: smithy_client_1.expectString,
3822
+ statusMessage: smithy_client_1.expectString,
3823
+ updateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
3824
+ versionName: smithy_client_1.expectString,
3825
+ });
3826
+ Object.assign(contents, doc);
3827
+ return contents;
3828
+ };
3829
+ exports.de_GetAnnotationImportJobCommand = de_GetAnnotationImportJobCommand;
3830
+ const de_GetAnnotationImportJobCommandError = async (output, context) => {
3831
+ const parsedOutput = {
3832
+ ...output,
3833
+ body: await parseErrorBody(output.body, context),
3834
+ };
3835
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3836
+ switch (errorCode) {
3837
+ case "AccessDeniedException":
3838
+ case "com.amazonaws.omics#AccessDeniedException":
3839
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3215
3840
  case "InternalServerException":
3216
3841
  case "com.amazonaws.omics#InternalServerException":
3217
3842
  throw await de_InternalServerExceptionRes(parsedOutput, context);
3218
- case "RequestTimeoutException":
3219
- case "com.amazonaws.omics#RequestTimeoutException":
3220
- throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
3221
3843
  case "ResourceNotFoundException":
3222
3844
  case "com.amazonaws.omics#ResourceNotFoundException":
3223
3845
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3224
- case "ServiceQuotaExceededException":
3225
- case "com.amazonaws.omics#ServiceQuotaExceededException":
3226
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
3227
3846
  case "ThrottlingException":
3228
3847
  case "com.amazonaws.omics#ThrottlingException":
3229
3848
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
@@ -3239,33 +3858,36 @@ const de_DeleteWorkflowCommandError = async (output, context) => {
3239
3858
  });
3240
3859
  }
3241
3860
  };
3242
- const de_GetAnnotationImportJobCommand = async (output, context) => {
3861
+ const de_GetAnnotationStoreCommand = async (output, context) => {
3243
3862
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3244
- return de_GetAnnotationImportJobCommandError(output, context);
3863
+ return de_GetAnnotationStoreCommandError(output, context);
3245
3864
  }
3246
3865
  const contents = (0, smithy_client_1.map)({
3247
3866
  $metadata: deserializeMetadata(output),
3248
3867
  });
3249
3868
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3250
3869
  const doc = (0, smithy_client_1.take)(data, {
3251
- annotationFields: smithy_client_1._json,
3252
- completionTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
3253
3870
  creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
3254
- destinationName: smithy_client_1.expectString,
3255
- formatOptions: (_) => (0, smithy_client_1._json)((0, smithy_client_1.expectUnion)(_)),
3871
+ description: smithy_client_1.expectString,
3256
3872
  id: smithy_client_1.expectString,
3257
- items: smithy_client_1._json,
3258
- roleArn: smithy_client_1.expectString,
3259
- runLeftNormalization: smithy_client_1.expectBoolean,
3873
+ name: smithy_client_1.expectString,
3874
+ numVersions: smithy_client_1.expectInt32,
3875
+ reference: (_) => (0, smithy_client_1._json)((0, smithy_client_1.expectUnion)(_)),
3876
+ sseConfig: smithy_client_1._json,
3260
3877
  status: smithy_client_1.expectString,
3261
3878
  statusMessage: smithy_client_1.expectString,
3879
+ storeArn: smithy_client_1.expectString,
3880
+ storeFormat: smithy_client_1.expectString,
3881
+ storeOptions: (_) => (0, smithy_client_1._json)((0, smithy_client_1.expectUnion)(_)),
3882
+ storeSizeBytes: smithy_client_1.expectLong,
3883
+ tags: smithy_client_1._json,
3262
3884
  updateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
3263
3885
  });
3264
3886
  Object.assign(contents, doc);
3265
3887
  return contents;
3266
3888
  };
3267
- exports.de_GetAnnotationImportJobCommand = de_GetAnnotationImportJobCommand;
3268
- const de_GetAnnotationImportJobCommandError = async (output, context) => {
3889
+ exports.de_GetAnnotationStoreCommand = de_GetAnnotationStoreCommand;
3890
+ const de_GetAnnotationStoreCommandError = async (output, context) => {
3269
3891
  const parsedOutput = {
3270
3892
  ...output,
3271
3893
  body: await parseErrorBody(output.body, context),
@@ -3296,9 +3918,9 @@ const de_GetAnnotationImportJobCommandError = async (output, context) => {
3296
3918
  });
3297
3919
  }
3298
3920
  };
3299
- const de_GetAnnotationStoreCommand = async (output, context) => {
3921
+ const de_GetAnnotationStoreVersionCommand = async (output, context) => {
3300
3922
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3301
- return de_GetAnnotationStoreCommandError(output, context);
3923
+ return de_GetAnnotationStoreVersionCommandError(output, context);
3302
3924
  }
3303
3925
  const contents = (0, smithy_client_1.map)({
3304
3926
  $metadata: deserializeMetadata(output),
@@ -3309,22 +3931,21 @@ const de_GetAnnotationStoreCommand = async (output, context) => {
3309
3931
  description: smithy_client_1.expectString,
3310
3932
  id: smithy_client_1.expectString,
3311
3933
  name: smithy_client_1.expectString,
3312
- reference: (_) => (0, smithy_client_1._json)((0, smithy_client_1.expectUnion)(_)),
3313
- sseConfig: smithy_client_1._json,
3314
3934
  status: smithy_client_1.expectString,
3315
3935
  statusMessage: smithy_client_1.expectString,
3316
- storeArn: smithy_client_1.expectString,
3317
- storeFormat: smithy_client_1.expectString,
3318
- storeOptions: (_) => (0, smithy_client_1._json)((0, smithy_client_1.expectUnion)(_)),
3319
- storeSizeBytes: smithy_client_1.expectLong,
3936
+ storeId: smithy_client_1.expectString,
3320
3937
  tags: smithy_client_1._json,
3321
3938
  updateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
3939
+ versionArn: smithy_client_1.expectString,
3940
+ versionName: smithy_client_1.expectString,
3941
+ versionOptions: (_) => (0, smithy_client_1._json)((0, smithy_client_1.expectUnion)(_)),
3942
+ versionSizeBytes: smithy_client_1.expectLong,
3322
3943
  });
3323
3944
  Object.assign(contents, doc);
3324
3945
  return contents;
3325
3946
  };
3326
- exports.de_GetAnnotationStoreCommand = de_GetAnnotationStoreCommand;
3327
- const de_GetAnnotationStoreCommandError = async (output, context) => {
3947
+ exports.de_GetAnnotationStoreVersionCommand = de_GetAnnotationStoreVersionCommand;
3948
+ const de_GetAnnotationStoreVersionCommandError = async (output, context) => {
3328
3949
  const parsedOutput = {
3329
3950
  ...output,
3330
3951
  body: await parseErrorBody(output.body, context),
@@ -4009,6 +4630,7 @@ const de_GetRunTaskCommand = async (output, context) => {
4009
4630
  cpus: smithy_client_1.expectInt32,
4010
4631
  creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
4011
4632
  gpus: smithy_client_1.expectInt32,
4633
+ instanceType: smithy_client_1.expectString,
4012
4634
  logStream: smithy_client_1.expectString,
4013
4635
  memory: smithy_client_1.expectInt32,
4014
4636
  name: smithy_client_1.expectString,
@@ -4117,6 +4739,58 @@ const de_GetSequenceStoreCommandError = async (output, context) => {
4117
4739
  });
4118
4740
  }
4119
4741
  };
4742
+ const de_GetShareCommand = async (output, context) => {
4743
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4744
+ return de_GetShareCommandError(output, context);
4745
+ }
4746
+ const contents = (0, smithy_client_1.map)({
4747
+ $metadata: deserializeMetadata(output),
4748
+ });
4749
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4750
+ const doc = (0, smithy_client_1.take)(data, {
4751
+ share: (_) => de_ShareDetails(_, context),
4752
+ });
4753
+ Object.assign(contents, doc);
4754
+ return contents;
4755
+ };
4756
+ exports.de_GetShareCommand = de_GetShareCommand;
4757
+ const de_GetShareCommandError = async (output, context) => {
4758
+ const parsedOutput = {
4759
+ ...output,
4760
+ body: await parseErrorBody(output.body, context),
4761
+ };
4762
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4763
+ switch (errorCode) {
4764
+ case "AccessDeniedException":
4765
+ case "com.amazonaws.omics#AccessDeniedException":
4766
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4767
+ case "ConflictException":
4768
+ case "com.amazonaws.omics#ConflictException":
4769
+ throw await de_ConflictExceptionRes(parsedOutput, context);
4770
+ case "InternalServerException":
4771
+ case "com.amazonaws.omics#InternalServerException":
4772
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
4773
+ case "ResourceNotFoundException":
4774
+ case "com.amazonaws.omics#ResourceNotFoundException":
4775
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4776
+ case "ServiceQuotaExceededException":
4777
+ case "com.amazonaws.omics#ServiceQuotaExceededException":
4778
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
4779
+ case "ThrottlingException":
4780
+ case "com.amazonaws.omics#ThrottlingException":
4781
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
4782
+ case "ValidationException":
4783
+ case "com.amazonaws.omics#ValidationException":
4784
+ throw await de_ValidationExceptionRes(parsedOutput, context);
4785
+ default:
4786
+ const parsedBody = parsedOutput.body;
4787
+ return throwDefaultError({
4788
+ output,
4789
+ parsedBody,
4790
+ errorCode,
4791
+ });
4792
+ }
4793
+ };
4120
4794
  const de_GetVariantImportJobCommand = async (output, context) => {
4121
4795
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4122
4796
  return de_GetVariantImportJobCommandError(output, context);
@@ -4395,6 +5069,53 @@ const de_ListAnnotationStoresCommandError = async (output, context) => {
4395
5069
  });
4396
5070
  }
4397
5071
  };
5072
+ const de_ListAnnotationStoreVersionsCommand = async (output, context) => {
5073
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
5074
+ return de_ListAnnotationStoreVersionsCommandError(output, context);
5075
+ }
5076
+ const contents = (0, smithy_client_1.map)({
5077
+ $metadata: deserializeMetadata(output),
5078
+ });
5079
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5080
+ const doc = (0, smithy_client_1.take)(data, {
5081
+ annotationStoreVersions: (_) => de_AnnotationStoreVersionItems(_, context),
5082
+ nextToken: smithy_client_1.expectString,
5083
+ });
5084
+ Object.assign(contents, doc);
5085
+ return contents;
5086
+ };
5087
+ exports.de_ListAnnotationStoreVersionsCommand = de_ListAnnotationStoreVersionsCommand;
5088
+ const de_ListAnnotationStoreVersionsCommandError = async (output, context) => {
5089
+ const parsedOutput = {
5090
+ ...output,
5091
+ body: await parseErrorBody(output.body, context),
5092
+ };
5093
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5094
+ switch (errorCode) {
5095
+ case "AccessDeniedException":
5096
+ case "com.amazonaws.omics#AccessDeniedException":
5097
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
5098
+ case "InternalServerException":
5099
+ case "com.amazonaws.omics#InternalServerException":
5100
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
5101
+ case "ResourceNotFoundException":
5102
+ case "com.amazonaws.omics#ResourceNotFoundException":
5103
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
5104
+ case "ThrottlingException":
5105
+ case "com.amazonaws.omics#ThrottlingException":
5106
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
5107
+ case "ValidationException":
5108
+ case "com.amazonaws.omics#ValidationException":
5109
+ throw await de_ValidationExceptionRes(parsedOutput, context);
5110
+ default:
5111
+ const parsedBody = parsedOutput.body;
5112
+ return throwDefaultError({
5113
+ output,
5114
+ parsedBody,
5115
+ errorCode,
5116
+ });
5117
+ }
5118
+ };
4398
5119
  const de_ListMultipartReadSetUploadsCommand = async (output, context) => {
4399
5120
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4400
5121
  return de_ListMultipartReadSetUploadsCommandError(output, context);
@@ -5069,6 +5790,59 @@ const de_ListSequenceStoresCommandError = async (output, context) => {
5069
5790
  });
5070
5791
  }
5071
5792
  };
5793
+ const de_ListSharesCommand = async (output, context) => {
5794
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
5795
+ return de_ListSharesCommandError(output, context);
5796
+ }
5797
+ const contents = (0, smithy_client_1.map)({
5798
+ $metadata: deserializeMetadata(output),
5799
+ });
5800
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5801
+ const doc = (0, smithy_client_1.take)(data, {
5802
+ nextToken: smithy_client_1.expectString,
5803
+ shares: (_) => de_ShareDetailsList(_, context),
5804
+ });
5805
+ Object.assign(contents, doc);
5806
+ return contents;
5807
+ };
5808
+ exports.de_ListSharesCommand = de_ListSharesCommand;
5809
+ const de_ListSharesCommandError = async (output, context) => {
5810
+ const parsedOutput = {
5811
+ ...output,
5812
+ body: await parseErrorBody(output.body, context),
5813
+ };
5814
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5815
+ switch (errorCode) {
5816
+ case "AccessDeniedException":
5817
+ case "com.amazonaws.omics#AccessDeniedException":
5818
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
5819
+ case "ConflictException":
5820
+ case "com.amazonaws.omics#ConflictException":
5821
+ throw await de_ConflictExceptionRes(parsedOutput, context);
5822
+ case "InternalServerException":
5823
+ case "com.amazonaws.omics#InternalServerException":
5824
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
5825
+ case "ResourceNotFoundException":
5826
+ case "com.amazonaws.omics#ResourceNotFoundException":
5827
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
5828
+ case "ServiceQuotaExceededException":
5829
+ case "com.amazonaws.omics#ServiceQuotaExceededException":
5830
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
5831
+ case "ThrottlingException":
5832
+ case "com.amazonaws.omics#ThrottlingException":
5833
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
5834
+ case "ValidationException":
5835
+ case "com.amazonaws.omics#ValidationException":
5836
+ throw await de_ValidationExceptionRes(parsedOutput, context);
5837
+ default:
5838
+ const parsedBody = parsedOutput.body;
5839
+ return throwDefaultError({
5840
+ output,
5841
+ parsedBody,
5842
+ errorCode,
5843
+ });
5844
+ }
5845
+ };
5072
5846
  const de_ListTagsForResourceCommand = async (output, context) => {
5073
5847
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5074
5848
  return de_ListTagsForResourceCommandError(output, context);
@@ -5809,6 +6583,59 @@ const de_UpdateAnnotationStoreCommandError = async (output, context) => {
5809
6583
  });
5810
6584
  }
5811
6585
  };
6586
+ const de_UpdateAnnotationStoreVersionCommand = async (output, context) => {
6587
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
6588
+ return de_UpdateAnnotationStoreVersionCommandError(output, context);
6589
+ }
6590
+ const contents = (0, smithy_client_1.map)({
6591
+ $metadata: deserializeMetadata(output),
6592
+ });
6593
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
6594
+ const doc = (0, smithy_client_1.take)(data, {
6595
+ creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
6596
+ description: smithy_client_1.expectString,
6597
+ id: smithy_client_1.expectString,
6598
+ name: smithy_client_1.expectString,
6599
+ status: smithy_client_1.expectString,
6600
+ storeId: smithy_client_1.expectString,
6601
+ updateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
6602
+ versionName: smithy_client_1.expectString,
6603
+ });
6604
+ Object.assign(contents, doc);
6605
+ return contents;
6606
+ };
6607
+ exports.de_UpdateAnnotationStoreVersionCommand = de_UpdateAnnotationStoreVersionCommand;
6608
+ const de_UpdateAnnotationStoreVersionCommandError = async (output, context) => {
6609
+ const parsedOutput = {
6610
+ ...output,
6611
+ body: await parseErrorBody(output.body, context),
6612
+ };
6613
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6614
+ switch (errorCode) {
6615
+ case "AccessDeniedException":
6616
+ case "com.amazonaws.omics#AccessDeniedException":
6617
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
6618
+ case "InternalServerException":
6619
+ case "com.amazonaws.omics#InternalServerException":
6620
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
6621
+ case "ResourceNotFoundException":
6622
+ case "com.amazonaws.omics#ResourceNotFoundException":
6623
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
6624
+ case "ThrottlingException":
6625
+ case "com.amazonaws.omics#ThrottlingException":
6626
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
6627
+ case "ValidationException":
6628
+ case "com.amazonaws.omics#ValidationException":
6629
+ throw await de_ValidationExceptionRes(parsedOutput, context);
6630
+ default:
6631
+ const parsedBody = parsedOutput.body;
6632
+ return throwDefaultError({
6633
+ output,
6634
+ parsedBody,
6635
+ errorCode,
6636
+ });
6637
+ }
6638
+ };
5812
6639
  const de_UpdateRunGroupCommand = async (output, context) => {
5813
6640
  if (output.statusCode !== 202 && output.statusCode >= 300) {
5814
6641
  return de_UpdateRunGroupCommandError(output, context);
@@ -6249,6 +7076,7 @@ const de_AnnotationImportJobItem = (output, context) => {
6249
7076
  runLeftNormalization: smithy_client_1.expectBoolean,
6250
7077
  status: smithy_client_1.expectString,
6251
7078
  updateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
7079
+ versionName: smithy_client_1.expectString,
6252
7080
  });
6253
7081
  };
6254
7082
  const de_AnnotationImportJobItems = (output, context) => {
@@ -6283,6 +7111,29 @@ const de_AnnotationStoreItems = (output, context) => {
6283
7111
  });
6284
7112
  return retVal;
6285
7113
  };
7114
+ const de_AnnotationStoreVersionItem = (output, context) => {
7115
+ return (0, smithy_client_1.take)(output, {
7116
+ creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
7117
+ description: smithy_client_1.expectString,
7118
+ id: smithy_client_1.expectString,
7119
+ name: smithy_client_1.expectString,
7120
+ status: smithy_client_1.expectString,
7121
+ statusMessage: smithy_client_1.expectString,
7122
+ storeId: smithy_client_1.expectString,
7123
+ updateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
7124
+ versionArn: smithy_client_1.expectString,
7125
+ versionName: smithy_client_1.expectString,
7126
+ versionSizeBytes: smithy_client_1.expectLong,
7127
+ });
7128
+ };
7129
+ const de_AnnotationStoreVersionItems = (output, context) => {
7130
+ const retVal = (output || [])
7131
+ .filter((e) => e != null)
7132
+ .map((entry) => {
7133
+ return de_AnnotationStoreVersionItem(entry, context);
7134
+ });
7135
+ return retVal;
7136
+ };
6286
7137
  const de_ExportReadSetJobDetail = (output, context) => {
6287
7138
  return (0, smithy_client_1.take)(output, {
6288
7139
  completionTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
@@ -6507,6 +7358,27 @@ const de_SequenceStoreDetailList = (output, context) => {
6507
7358
  });
6508
7359
  return retVal;
6509
7360
  };
7361
+ const de_ShareDetails = (output, context) => {
7362
+ return (0, smithy_client_1.take)(output, {
7363
+ creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
7364
+ ownerId: smithy_client_1.expectString,
7365
+ principalSubscriber: smithy_client_1.expectString,
7366
+ resourceArn: smithy_client_1.expectString,
7367
+ shareId: smithy_client_1.expectString,
7368
+ shareName: smithy_client_1.expectString,
7369
+ status: smithy_client_1.expectString,
7370
+ statusMessage: smithy_client_1.expectString,
7371
+ updateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
7372
+ });
7373
+ };
7374
+ const de_ShareDetailsList = (output, context) => {
7375
+ const retVal = (output || [])
7376
+ .filter((e) => e != null)
7377
+ .map((entry) => {
7378
+ return de_ShareDetails(entry, context);
7379
+ });
7380
+ return retVal;
7381
+ };
6510
7382
  const de_TaskList = (output, context) => {
6511
7383
  const retVal = (output || [])
6512
7384
  .filter((e) => e != null)
@@ -6520,6 +7392,7 @@ const de_TaskListItem = (output, context) => {
6520
7392
  cpus: smithy_client_1.expectInt32,
6521
7393
  creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
6522
7394
  gpus: smithy_client_1.expectInt32,
7395
+ instanceType: smithy_client_1.expectString,
6523
7396
  memory: smithy_client_1.expectInt32,
6524
7397
  name: smithy_client_1.expectString,
6525
7398
  startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),