@aws-sdk/client-cleanrooms 3.378.0 → 3.381.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 (83) hide show
  1. package/README.md +71 -7
  2. package/dist-cjs/CleanRooms.js +16 -0
  3. package/dist-cjs/commands/BatchGetCollaborationAnalysisTemplateCommand.js +47 -0
  4. package/dist-cjs/commands/CreateAnalysisTemplateCommand.js +47 -0
  5. package/dist-cjs/commands/DeleteAnalysisTemplateCommand.js +46 -0
  6. package/dist-cjs/commands/GetAnalysisTemplateCommand.js +47 -0
  7. package/dist-cjs/commands/GetCollaborationAnalysisTemplateCommand.js +47 -0
  8. package/dist-cjs/commands/ListAnalysisTemplatesCommand.js +46 -0
  9. package/dist-cjs/commands/ListCollaborationAnalysisTemplatesCommand.js +46 -0
  10. package/dist-cjs/commands/UpdateAnalysisTemplateCommand.js +47 -0
  11. package/dist-cjs/commands/index.js +8 -0
  12. package/dist-cjs/models/models_0.js +139 -45
  13. package/dist-cjs/pagination/ListAnalysisTemplatesPaginator.js +29 -0
  14. package/dist-cjs/pagination/ListCollaborationAnalysisTemplatesPaginator.js +29 -0
  15. package/dist-cjs/pagination/index.js +2 -0
  16. package/dist-cjs/protocols/Aws_restJson1.js +673 -36
  17. package/dist-es/CleanRooms.js +16 -0
  18. package/dist-es/commands/BatchGetCollaborationAnalysisTemplateCommand.js +43 -0
  19. package/dist-es/commands/CreateAnalysisTemplateCommand.js +43 -0
  20. package/dist-es/commands/DeleteAnalysisTemplateCommand.js +42 -0
  21. package/dist-es/commands/GetAnalysisTemplateCommand.js +43 -0
  22. package/dist-es/commands/GetCollaborationAnalysisTemplateCommand.js +43 -0
  23. package/dist-es/commands/ListAnalysisTemplatesCommand.js +42 -0
  24. package/dist-es/commands/ListCollaborationAnalysisTemplatesCommand.js +42 -0
  25. package/dist-es/commands/UpdateAnalysisTemplateCommand.js +43 -0
  26. package/dist-es/commands/index.js +8 -0
  27. package/dist-es/models/models_0.js +125 -42
  28. package/dist-es/pagination/ListAnalysisTemplatesPaginator.js +25 -0
  29. package/dist-es/pagination/ListCollaborationAnalysisTemplatesPaginator.js +25 -0
  30. package/dist-es/pagination/index.js +2 -0
  31. package/dist-es/protocols/Aws_restJson1.js +698 -77
  32. package/dist-types/CleanRooms.d.ts +56 -0
  33. package/dist-types/CleanRoomsClient.d.ts +10 -2
  34. package/dist-types/commands/BatchGetCollaborationAnalysisTemplateCommand.d.ts +126 -0
  35. package/dist-types/commands/BatchGetSchemaCommand.d.ts +1 -1
  36. package/dist-types/commands/CreateAnalysisTemplateCommand.d.ts +137 -0
  37. package/dist-types/commands/CreateConfiguredTableAnalysisRuleCommand.d.ts +18 -2
  38. package/dist-types/commands/CreateConfiguredTableCommand.d.ts +1 -1
  39. package/dist-types/commands/DeleteAnalysisTemplateCommand.d.ts +87 -0
  40. package/dist-types/commands/DeleteConfiguredTableAnalysisRuleCommand.d.ts +1 -1
  41. package/dist-types/commands/GetAnalysisTemplateCommand.d.ts +116 -0
  42. package/dist-types/commands/GetCollaborationAnalysisTemplateCommand.d.ts +115 -0
  43. package/dist-types/commands/GetConfiguredTableAnalysisRuleCommand.d.ts +10 -2
  44. package/dist-types/commands/GetConfiguredTableCommand.d.ts +1 -1
  45. package/dist-types/commands/GetProtectedQueryCommand.d.ts +4 -0
  46. package/dist-types/commands/GetSchemaAnalysisRuleCommand.d.ts +10 -2
  47. package/dist-types/commands/GetSchemaCommand.d.ts +1 -1
  48. package/dist-types/commands/ListAnalysisTemplatesCommand.d.ts +104 -0
  49. package/dist-types/commands/ListCollaborationAnalysisTemplatesCommand.d.ts +103 -0
  50. package/dist-types/commands/ListConfiguredTablesCommand.d.ts +1 -1
  51. package/dist-types/commands/ListSchemasCommand.d.ts +1 -1
  52. package/dist-types/commands/StartProtectedQueryCommand.d.ts +8 -0
  53. package/dist-types/commands/UpdateAnalysisTemplateCommand.d.ts +117 -0
  54. package/dist-types/commands/UpdateConfiguredTableAnalysisRuleCommand.d.ts +18 -2
  55. package/dist-types/commands/UpdateConfiguredTableCommand.d.ts +1 -1
  56. package/dist-types/commands/UpdateProtectedQueryCommand.d.ts +4 -0
  57. package/dist-types/commands/index.d.ts +8 -0
  58. package/dist-types/endpoint/EndpointParameters.d.ts +3 -0
  59. package/dist-types/index.d.ts +1 -0
  60. package/dist-types/models/models_0.d.ts +793 -166
  61. package/dist-types/pagination/ListAnalysisTemplatesPaginator.d.ts +7 -0
  62. package/dist-types/pagination/ListCollaborationAnalysisTemplatesPaginator.d.ts +7 -0
  63. package/dist-types/pagination/index.d.ts +2 -0
  64. package/dist-types/protocols/Aws_restJson1.d.ts +72 -0
  65. package/dist-types/runtimeConfig.browser.d.ts +3 -1
  66. package/dist-types/ts3.4/CleanRooms.d.ts +148 -0
  67. package/dist-types/ts3.4/CleanRoomsClient.d.ts +48 -0
  68. package/dist-types/ts3.4/commands/BatchGetCollaborationAnalysisTemplateCommand.d.ts +42 -0
  69. package/dist-types/ts3.4/commands/CreateAnalysisTemplateCommand.d.ts +42 -0
  70. package/dist-types/ts3.4/commands/DeleteAnalysisTemplateCommand.d.ts +42 -0
  71. package/dist-types/ts3.4/commands/GetAnalysisTemplateCommand.d.ts +39 -0
  72. package/dist-types/ts3.4/commands/GetCollaborationAnalysisTemplateCommand.d.ts +42 -0
  73. package/dist-types/ts3.4/commands/ListAnalysisTemplatesCommand.d.ts +42 -0
  74. package/dist-types/ts3.4/commands/ListCollaborationAnalysisTemplatesCommand.d.ts +42 -0
  75. package/dist-types/ts3.4/commands/UpdateAnalysisTemplateCommand.d.ts +42 -0
  76. package/dist-types/ts3.4/commands/index.d.ts +8 -0
  77. package/dist-types/ts3.4/index.d.ts +1 -0
  78. package/dist-types/ts3.4/models/models_0.d.ts +294 -58
  79. package/dist-types/ts3.4/pagination/ListAnalysisTemplatesPaginator.d.ts +11 -0
  80. package/dist-types/ts3.4/pagination/ListCollaborationAnalysisTemplatesPaginator.d.ts +11 -0
  81. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  82. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +96 -0
  83. package/package.json +6 -6
@@ -1,11 +1,34 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_GetCollaborationCommand = exports.de_DeleteMembershipCommand = exports.de_DeleteMemberCommand = exports.de_DeleteConfiguredTableAssociationCommand = exports.de_DeleteConfiguredTableAnalysisRuleCommand = exports.de_DeleteConfiguredTableCommand = exports.de_DeleteCollaborationCommand = exports.de_CreateMembershipCommand = exports.de_CreateConfiguredTableAssociationCommand = exports.de_CreateConfiguredTableAnalysisRuleCommand = exports.de_CreateConfiguredTableCommand = exports.de_CreateCollaborationCommand = exports.de_BatchGetSchemaCommand = exports.se_UpdateProtectedQueryCommand = exports.se_UpdateMembershipCommand = exports.se_UpdateConfiguredTableAssociationCommand = exports.se_UpdateConfiguredTableAnalysisRuleCommand = exports.se_UpdateConfiguredTableCommand = exports.se_UpdateCollaborationCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StartProtectedQueryCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSchemasCommand = exports.se_ListProtectedQueriesCommand = exports.se_ListMembershipsCommand = exports.se_ListMembersCommand = exports.se_ListConfiguredTablesCommand = exports.se_ListConfiguredTableAssociationsCommand = exports.se_ListCollaborationsCommand = exports.se_GetSchemaAnalysisRuleCommand = exports.se_GetSchemaCommand = exports.se_GetProtectedQueryCommand = exports.se_GetMembershipCommand = exports.se_GetConfiguredTableAssociationCommand = exports.se_GetConfiguredTableAnalysisRuleCommand = exports.se_GetConfiguredTableCommand = exports.se_GetCollaborationCommand = exports.se_DeleteMembershipCommand = exports.se_DeleteMemberCommand = exports.se_DeleteConfiguredTableAssociationCommand = exports.se_DeleteConfiguredTableAnalysisRuleCommand = exports.se_DeleteConfiguredTableCommand = exports.se_DeleteCollaborationCommand = exports.se_CreateMembershipCommand = exports.se_CreateConfiguredTableAssociationCommand = exports.se_CreateConfiguredTableAnalysisRuleCommand = exports.se_CreateConfiguredTableCommand = exports.se_CreateCollaborationCommand = exports.se_BatchGetSchemaCommand = void 0;
4
- exports.de_UpdateProtectedQueryCommand = exports.de_UpdateMembershipCommand = exports.de_UpdateConfiguredTableAssociationCommand = exports.de_UpdateConfiguredTableAnalysisRuleCommand = exports.de_UpdateConfiguredTableCommand = exports.de_UpdateCollaborationCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartProtectedQueryCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSchemasCommand = exports.de_ListProtectedQueriesCommand = exports.de_ListMembershipsCommand = exports.de_ListMembersCommand = exports.de_ListConfiguredTablesCommand = exports.de_ListConfiguredTableAssociationsCommand = exports.de_ListCollaborationsCommand = exports.de_GetSchemaAnalysisRuleCommand = exports.de_GetSchemaCommand = exports.de_GetProtectedQueryCommand = exports.de_GetMembershipCommand = exports.de_GetConfiguredTableAssociationCommand = exports.de_GetConfiguredTableAnalysisRuleCommand = exports.de_GetConfiguredTableCommand = void 0;
3
+ exports.de_CreateConfiguredTableCommand = exports.de_CreateCollaborationCommand = exports.de_CreateAnalysisTemplateCommand = exports.de_BatchGetSchemaCommand = exports.de_BatchGetCollaborationAnalysisTemplateCommand = exports.se_UpdateProtectedQueryCommand = exports.se_UpdateMembershipCommand = exports.se_UpdateConfiguredTableAssociationCommand = exports.se_UpdateConfiguredTableAnalysisRuleCommand = exports.se_UpdateConfiguredTableCommand = exports.se_UpdateCollaborationCommand = exports.se_UpdateAnalysisTemplateCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StartProtectedQueryCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSchemasCommand = exports.se_ListProtectedQueriesCommand = exports.se_ListMembershipsCommand = exports.se_ListMembersCommand = exports.se_ListConfiguredTablesCommand = exports.se_ListConfiguredTableAssociationsCommand = exports.se_ListCollaborationsCommand = exports.se_ListCollaborationAnalysisTemplatesCommand = exports.se_ListAnalysisTemplatesCommand = exports.se_GetSchemaAnalysisRuleCommand = exports.se_GetSchemaCommand = exports.se_GetProtectedQueryCommand = exports.se_GetMembershipCommand = exports.se_GetConfiguredTableAssociationCommand = exports.se_GetConfiguredTableAnalysisRuleCommand = exports.se_GetConfiguredTableCommand = exports.se_GetCollaborationAnalysisTemplateCommand = exports.se_GetCollaborationCommand = exports.se_GetAnalysisTemplateCommand = exports.se_DeleteMembershipCommand = exports.se_DeleteMemberCommand = exports.se_DeleteConfiguredTableAssociationCommand = exports.se_DeleteConfiguredTableAnalysisRuleCommand = exports.se_DeleteConfiguredTableCommand = exports.se_DeleteCollaborationCommand = exports.se_DeleteAnalysisTemplateCommand = exports.se_CreateMembershipCommand = exports.se_CreateConfiguredTableAssociationCommand = exports.se_CreateConfiguredTableAnalysisRuleCommand = exports.se_CreateConfiguredTableCommand = exports.se_CreateCollaborationCommand = exports.se_CreateAnalysisTemplateCommand = exports.se_BatchGetSchemaCommand = exports.se_BatchGetCollaborationAnalysisTemplateCommand = void 0;
4
+ exports.de_UpdateProtectedQueryCommand = exports.de_UpdateMembershipCommand = exports.de_UpdateConfiguredTableAssociationCommand = exports.de_UpdateConfiguredTableAnalysisRuleCommand = exports.de_UpdateConfiguredTableCommand = exports.de_UpdateCollaborationCommand = exports.de_UpdateAnalysisTemplateCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartProtectedQueryCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSchemasCommand = exports.de_ListProtectedQueriesCommand = exports.de_ListMembershipsCommand = exports.de_ListMembersCommand = exports.de_ListConfiguredTablesCommand = exports.de_ListConfiguredTableAssociationsCommand = exports.de_ListCollaborationsCommand = exports.de_ListCollaborationAnalysisTemplatesCommand = exports.de_ListAnalysisTemplatesCommand = exports.de_GetSchemaAnalysisRuleCommand = exports.de_GetSchemaCommand = exports.de_GetProtectedQueryCommand = exports.de_GetMembershipCommand = exports.de_GetConfiguredTableAssociationCommand = exports.de_GetConfiguredTableAnalysisRuleCommand = exports.de_GetConfiguredTableCommand = exports.de_GetCollaborationAnalysisTemplateCommand = exports.de_GetCollaborationCommand = exports.de_GetAnalysisTemplateCommand = exports.de_DeleteMembershipCommand = exports.de_DeleteMemberCommand = exports.de_DeleteConfiguredTableAssociationCommand = exports.de_DeleteConfiguredTableAnalysisRuleCommand = exports.de_DeleteConfiguredTableCommand = exports.de_DeleteCollaborationCommand = exports.de_DeleteAnalysisTemplateCommand = exports.de_CreateMembershipCommand = exports.de_CreateConfiguredTableAssociationCommand = exports.de_CreateConfiguredTableAnalysisRuleCommand = void 0;
5
5
  const protocol_http_1 = require("@smithy/protocol-http");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  const CleanRoomsServiceException_1 = require("../models/CleanRoomsServiceException");
8
8
  const models_0_1 = require("../models/models_0");
9
+ const se_BatchGetCollaborationAnalysisTemplateCommand = async (input, context) => {
10
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
11
+ const headers = {
12
+ "content-type": "application/json",
13
+ };
14
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
15
+ "/collaborations/{collaborationIdentifier}/batch-analysistemplates";
16
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "collaborationIdentifier", () => input.collaborationIdentifier, "{collaborationIdentifier}", false);
17
+ let body;
18
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
19
+ analysisTemplateArns: (_) => (0, smithy_client_1._json)(_),
20
+ }));
21
+ return new protocol_http_1.HttpRequest({
22
+ protocol,
23
+ hostname,
24
+ port,
25
+ method: "POST",
26
+ headers,
27
+ path: resolvedPath,
28
+ body,
29
+ });
30
+ };
31
+ exports.se_BatchGetCollaborationAnalysisTemplateCommand = se_BatchGetCollaborationAnalysisTemplateCommand;
9
32
  const se_BatchGetSchemaCommand = async (input, context) => {
10
33
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
11
34
  const headers = {
@@ -29,6 +52,34 @@ const se_BatchGetSchemaCommand = async (input, context) => {
29
52
  });
30
53
  };
31
54
  exports.se_BatchGetSchemaCommand = se_BatchGetSchemaCommand;
55
+ const se_CreateAnalysisTemplateCommand = async (input, context) => {
56
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
57
+ const headers = {
58
+ "content-type": "application/json",
59
+ };
60
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
61
+ "/memberships/{membershipIdentifier}/analysistemplates";
62
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
63
+ let body;
64
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
65
+ analysisParameters: (_) => (0, smithy_client_1._json)(_),
66
+ description: [],
67
+ format: [],
68
+ name: [],
69
+ source: (_) => (0, smithy_client_1._json)(_),
70
+ tags: (_) => (0, smithy_client_1._json)(_),
71
+ }));
72
+ return new protocol_http_1.HttpRequest({
73
+ protocol,
74
+ hostname,
75
+ port,
76
+ method: "POST",
77
+ headers,
78
+ path: resolvedPath,
79
+ body,
80
+ });
81
+ };
82
+ exports.se_CreateAnalysisTemplateCommand = se_CreateAnalysisTemplateCommand;
32
83
  const se_CreateCollaborationCommand = async (input, context) => {
33
84
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
34
85
  const headers = {
@@ -157,6 +208,25 @@ const se_CreateMembershipCommand = async (input, context) => {
157
208
  });
158
209
  };
159
210
  exports.se_CreateMembershipCommand = se_CreateMembershipCommand;
211
+ const se_DeleteAnalysisTemplateCommand = async (input, context) => {
212
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
213
+ const headers = {};
214
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
215
+ "/memberships/{membershipIdentifier}/analysistemplates/{analysisTemplateIdentifier}";
216
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
217
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "analysisTemplateIdentifier", () => input.analysisTemplateIdentifier, "{analysisTemplateIdentifier}", false);
218
+ let body;
219
+ return new protocol_http_1.HttpRequest({
220
+ protocol,
221
+ hostname,
222
+ port,
223
+ method: "DELETE",
224
+ headers,
225
+ path: resolvedPath,
226
+ body,
227
+ });
228
+ };
229
+ exports.se_DeleteAnalysisTemplateCommand = se_DeleteAnalysisTemplateCommand;
160
230
  const se_DeleteCollaborationCommand = async (input, context) => {
161
231
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
162
232
  const headers = {};
@@ -266,6 +336,25 @@ const se_DeleteMembershipCommand = async (input, context) => {
266
336
  });
267
337
  };
268
338
  exports.se_DeleteMembershipCommand = se_DeleteMembershipCommand;
339
+ const se_GetAnalysisTemplateCommand = async (input, context) => {
340
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
341
+ const headers = {};
342
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
343
+ "/memberships/{membershipIdentifier}/analysistemplates/{analysisTemplateIdentifier}";
344
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
345
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "analysisTemplateIdentifier", () => input.analysisTemplateIdentifier, "{analysisTemplateIdentifier}", false);
346
+ let body;
347
+ return new protocol_http_1.HttpRequest({
348
+ protocol,
349
+ hostname,
350
+ port,
351
+ method: "GET",
352
+ headers,
353
+ path: resolvedPath,
354
+ body,
355
+ });
356
+ };
357
+ exports.se_GetAnalysisTemplateCommand = se_GetAnalysisTemplateCommand;
269
358
  const se_GetCollaborationCommand = async (input, context) => {
270
359
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
271
360
  const headers = {};
@@ -283,6 +372,25 @@ const se_GetCollaborationCommand = async (input, context) => {
283
372
  });
284
373
  };
285
374
  exports.se_GetCollaborationCommand = se_GetCollaborationCommand;
375
+ const se_GetCollaborationAnalysisTemplateCommand = async (input, context) => {
376
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
377
+ const headers = {};
378
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
379
+ "/collaborations/{collaborationIdentifier}/analysistemplates/{analysisTemplateArn}";
380
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "collaborationIdentifier", () => input.collaborationIdentifier, "{collaborationIdentifier}", false);
381
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "analysisTemplateArn", () => input.analysisTemplateArn, "{analysisTemplateArn}", false);
382
+ let body;
383
+ return new protocol_http_1.HttpRequest({
384
+ protocol,
385
+ hostname,
386
+ port,
387
+ method: "GET",
388
+ headers,
389
+ path: resolvedPath,
390
+ body,
391
+ });
392
+ };
393
+ exports.se_GetCollaborationAnalysisTemplateCommand = se_GetCollaborationAnalysisTemplateCommand;
286
394
  const se_GetConfiguredTableCommand = async (input, context) => {
287
395
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
288
396
  const headers = {};
@@ -414,6 +522,52 @@ const se_GetSchemaAnalysisRuleCommand = async (input, context) => {
414
522
  });
415
523
  };
416
524
  exports.se_GetSchemaAnalysisRuleCommand = se_GetSchemaAnalysisRuleCommand;
525
+ const se_ListAnalysisTemplatesCommand = async (input, context) => {
526
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
527
+ const headers = {};
528
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
529
+ "/memberships/{membershipIdentifier}/analysistemplates";
530
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
531
+ const query = (0, smithy_client_1.map)({
532
+ nextToken: [, input.nextToken],
533
+ maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
534
+ });
535
+ let body;
536
+ return new protocol_http_1.HttpRequest({
537
+ protocol,
538
+ hostname,
539
+ port,
540
+ method: "GET",
541
+ headers,
542
+ path: resolvedPath,
543
+ query,
544
+ body,
545
+ });
546
+ };
547
+ exports.se_ListAnalysisTemplatesCommand = se_ListAnalysisTemplatesCommand;
548
+ const se_ListCollaborationAnalysisTemplatesCommand = async (input, context) => {
549
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
550
+ const headers = {};
551
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
552
+ "/collaborations/{collaborationIdentifier}/analysistemplates";
553
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "collaborationIdentifier", () => input.collaborationIdentifier, "{collaborationIdentifier}", false);
554
+ const query = (0, smithy_client_1.map)({
555
+ nextToken: [, input.nextToken],
556
+ maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
557
+ });
558
+ let body;
559
+ return new protocol_http_1.HttpRequest({
560
+ protocol,
561
+ hostname,
562
+ port,
563
+ method: "GET",
564
+ headers,
565
+ path: resolvedPath,
566
+ query,
567
+ body,
568
+ });
569
+ };
570
+ exports.se_ListCollaborationAnalysisTemplatesCommand = se_ListCollaborationAnalysisTemplatesCommand;
417
571
  const se_ListCollaborationsCommand = async (input, context) => {
418
572
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
419
573
  const headers = {};
@@ -661,6 +815,30 @@ const se_UntagResourceCommand = async (input, context) => {
661
815
  });
662
816
  };
663
817
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
818
+ const se_UpdateAnalysisTemplateCommand = async (input, context) => {
819
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
820
+ const headers = {
821
+ "content-type": "application/json",
822
+ };
823
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
824
+ "/memberships/{membershipIdentifier}/analysistemplates/{analysisTemplateIdentifier}";
825
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
826
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "analysisTemplateIdentifier", () => input.analysisTemplateIdentifier, "{analysisTemplateIdentifier}", false);
827
+ let body;
828
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
829
+ description: [],
830
+ }));
831
+ return new protocol_http_1.HttpRequest({
832
+ protocol,
833
+ hostname,
834
+ port,
835
+ method: "PATCH",
836
+ headers,
837
+ path: resolvedPath,
838
+ body,
839
+ });
840
+ };
841
+ exports.se_UpdateAnalysisTemplateCommand = se_UpdateAnalysisTemplateCommand;
664
842
  const se_UpdateCollaborationCommand = async (input, context) => {
665
843
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
666
844
  const headers = {
@@ -803,6 +981,53 @@ const se_UpdateProtectedQueryCommand = async (input, context) => {
803
981
  });
804
982
  };
805
983
  exports.se_UpdateProtectedQueryCommand = se_UpdateProtectedQueryCommand;
984
+ const de_BatchGetCollaborationAnalysisTemplateCommand = async (output, context) => {
985
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
986
+ return de_BatchGetCollaborationAnalysisTemplateCommandError(output, context);
987
+ }
988
+ const contents = (0, smithy_client_1.map)({
989
+ $metadata: deserializeMetadata(output),
990
+ });
991
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
992
+ const doc = (0, smithy_client_1.take)(data, {
993
+ collaborationAnalysisTemplates: (_) => de_CollaborationAnalysisTemplateList(_, context),
994
+ errors: smithy_client_1._json,
995
+ });
996
+ Object.assign(contents, doc);
997
+ return contents;
998
+ };
999
+ exports.de_BatchGetCollaborationAnalysisTemplateCommand = de_BatchGetCollaborationAnalysisTemplateCommand;
1000
+ const de_BatchGetCollaborationAnalysisTemplateCommandError = async (output, context) => {
1001
+ const parsedOutput = {
1002
+ ...output,
1003
+ body: await parseErrorBody(output.body, context),
1004
+ };
1005
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1006
+ switch (errorCode) {
1007
+ case "AccessDeniedException":
1008
+ case "com.amazonaws.cleanrooms#AccessDeniedException":
1009
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1010
+ case "InternalServerException":
1011
+ case "com.amazonaws.cleanrooms#InternalServerException":
1012
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1013
+ case "ResourceNotFoundException":
1014
+ case "com.amazonaws.cleanrooms#ResourceNotFoundException":
1015
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1016
+ case "ThrottlingException":
1017
+ case "com.amazonaws.cleanrooms#ThrottlingException":
1018
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1019
+ case "ValidationException":
1020
+ case "com.amazonaws.cleanrooms#ValidationException":
1021
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1022
+ default:
1023
+ const parsedBody = parsedOutput.body;
1024
+ return throwDefaultError({
1025
+ output,
1026
+ parsedBody,
1027
+ errorCode,
1028
+ });
1029
+ }
1030
+ };
806
1031
  const de_BatchGetSchemaCommand = async (output, context) => {
807
1032
  if (output.statusCode !== 200 && output.statusCode >= 300) {
808
1033
  return de_BatchGetSchemaCommandError(output, context);
@@ -850,6 +1075,58 @@ const de_BatchGetSchemaCommandError = async (output, context) => {
850
1075
  });
851
1076
  }
852
1077
  };
1078
+ const de_CreateAnalysisTemplateCommand = async (output, context) => {
1079
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1080
+ return de_CreateAnalysisTemplateCommandError(output, context);
1081
+ }
1082
+ const contents = (0, smithy_client_1.map)({
1083
+ $metadata: deserializeMetadata(output),
1084
+ });
1085
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1086
+ const doc = (0, smithy_client_1.take)(data, {
1087
+ analysisTemplate: (_) => de_AnalysisTemplate(_, context),
1088
+ });
1089
+ Object.assign(contents, doc);
1090
+ return contents;
1091
+ };
1092
+ exports.de_CreateAnalysisTemplateCommand = de_CreateAnalysisTemplateCommand;
1093
+ const de_CreateAnalysisTemplateCommandError = async (output, context) => {
1094
+ const parsedOutput = {
1095
+ ...output,
1096
+ body: await parseErrorBody(output.body, context),
1097
+ };
1098
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1099
+ switch (errorCode) {
1100
+ case "AccessDeniedException":
1101
+ case "com.amazonaws.cleanrooms#AccessDeniedException":
1102
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1103
+ case "ConflictException":
1104
+ case "com.amazonaws.cleanrooms#ConflictException":
1105
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1106
+ case "InternalServerException":
1107
+ case "com.amazonaws.cleanrooms#InternalServerException":
1108
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1109
+ case "ResourceNotFoundException":
1110
+ case "com.amazonaws.cleanrooms#ResourceNotFoundException":
1111
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1112
+ case "ServiceQuotaExceededException":
1113
+ case "com.amazonaws.cleanrooms#ServiceQuotaExceededException":
1114
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1115
+ case "ThrottlingException":
1116
+ case "com.amazonaws.cleanrooms#ThrottlingException":
1117
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1118
+ case "ValidationException":
1119
+ case "com.amazonaws.cleanrooms#ValidationException":
1120
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1121
+ default:
1122
+ const parsedBody = parsedOutput.body;
1123
+ return throwDefaultError({
1124
+ output,
1125
+ parsedBody,
1126
+ errorCode,
1127
+ });
1128
+ }
1129
+ };
853
1130
  const de_CreateCollaborationCommand = async (output, context) => {
854
1131
  if (output.statusCode !== 200 && output.statusCode >= 300) {
855
1132
  return de_CreateCollaborationCommandError(output, context);
@@ -1101,6 +1378,48 @@ const de_CreateMembershipCommandError = async (output, context) => {
1101
1378
  });
1102
1379
  }
1103
1380
  };
1381
+ const de_DeleteAnalysisTemplateCommand = async (output, context) => {
1382
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1383
+ return de_DeleteAnalysisTemplateCommandError(output, context);
1384
+ }
1385
+ const contents = (0, smithy_client_1.map)({
1386
+ $metadata: deserializeMetadata(output),
1387
+ });
1388
+ await (0, smithy_client_1.collectBody)(output.body, context);
1389
+ return contents;
1390
+ };
1391
+ exports.de_DeleteAnalysisTemplateCommand = de_DeleteAnalysisTemplateCommand;
1392
+ const de_DeleteAnalysisTemplateCommandError = async (output, context) => {
1393
+ const parsedOutput = {
1394
+ ...output,
1395
+ body: await parseErrorBody(output.body, context),
1396
+ };
1397
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1398
+ switch (errorCode) {
1399
+ case "AccessDeniedException":
1400
+ case "com.amazonaws.cleanrooms#AccessDeniedException":
1401
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1402
+ case "InternalServerException":
1403
+ case "com.amazonaws.cleanrooms#InternalServerException":
1404
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1405
+ case "ResourceNotFoundException":
1406
+ case "com.amazonaws.cleanrooms#ResourceNotFoundException":
1407
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1408
+ case "ThrottlingException":
1409
+ case "com.amazonaws.cleanrooms#ThrottlingException":
1410
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1411
+ case "ValidationException":
1412
+ case "com.amazonaws.cleanrooms#ValidationException":
1413
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1414
+ default:
1415
+ const parsedBody = parsedOutput.body;
1416
+ return throwDefaultError({
1417
+ output,
1418
+ parsedBody,
1419
+ errorCode,
1420
+ });
1421
+ }
1422
+ };
1104
1423
  const de_DeleteCollaborationCommand = async (output, context) => {
1105
1424
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1106
1425
  return de_DeleteCollaborationCommandError(output, context);
@@ -1185,9 +1504,99 @@ const de_DeleteConfiguredTableCommandError = async (output, context) => {
1185
1504
  });
1186
1505
  }
1187
1506
  };
1188
- const de_DeleteConfiguredTableAnalysisRuleCommand = async (output, context) => {
1507
+ const de_DeleteConfiguredTableAnalysisRuleCommand = async (output, context) => {
1508
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1509
+ return de_DeleteConfiguredTableAnalysisRuleCommandError(output, context);
1510
+ }
1511
+ const contents = (0, smithy_client_1.map)({
1512
+ $metadata: deserializeMetadata(output),
1513
+ });
1514
+ await (0, smithy_client_1.collectBody)(output.body, context);
1515
+ return contents;
1516
+ };
1517
+ exports.de_DeleteConfiguredTableAnalysisRuleCommand = de_DeleteConfiguredTableAnalysisRuleCommand;
1518
+ const de_DeleteConfiguredTableAnalysisRuleCommandError = async (output, context) => {
1519
+ const parsedOutput = {
1520
+ ...output,
1521
+ body: await parseErrorBody(output.body, context),
1522
+ };
1523
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1524
+ switch (errorCode) {
1525
+ case "AccessDeniedException":
1526
+ case "com.amazonaws.cleanrooms#AccessDeniedException":
1527
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1528
+ case "ConflictException":
1529
+ case "com.amazonaws.cleanrooms#ConflictException":
1530
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1531
+ case "InternalServerException":
1532
+ case "com.amazonaws.cleanrooms#InternalServerException":
1533
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1534
+ case "ResourceNotFoundException":
1535
+ case "com.amazonaws.cleanrooms#ResourceNotFoundException":
1536
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1537
+ case "ThrottlingException":
1538
+ case "com.amazonaws.cleanrooms#ThrottlingException":
1539
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1540
+ case "ValidationException":
1541
+ case "com.amazonaws.cleanrooms#ValidationException":
1542
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1543
+ default:
1544
+ const parsedBody = parsedOutput.body;
1545
+ return throwDefaultError({
1546
+ output,
1547
+ parsedBody,
1548
+ errorCode,
1549
+ });
1550
+ }
1551
+ };
1552
+ const de_DeleteConfiguredTableAssociationCommand = async (output, context) => {
1553
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1554
+ return de_DeleteConfiguredTableAssociationCommandError(output, context);
1555
+ }
1556
+ const contents = (0, smithy_client_1.map)({
1557
+ $metadata: deserializeMetadata(output),
1558
+ });
1559
+ await (0, smithy_client_1.collectBody)(output.body, context);
1560
+ return contents;
1561
+ };
1562
+ exports.de_DeleteConfiguredTableAssociationCommand = de_DeleteConfiguredTableAssociationCommand;
1563
+ const de_DeleteConfiguredTableAssociationCommandError = async (output, context) => {
1564
+ const parsedOutput = {
1565
+ ...output,
1566
+ body: await parseErrorBody(output.body, context),
1567
+ };
1568
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1569
+ switch (errorCode) {
1570
+ case "AccessDeniedException":
1571
+ case "com.amazonaws.cleanrooms#AccessDeniedException":
1572
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1573
+ case "ConflictException":
1574
+ case "com.amazonaws.cleanrooms#ConflictException":
1575
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1576
+ case "InternalServerException":
1577
+ case "com.amazonaws.cleanrooms#InternalServerException":
1578
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1579
+ case "ResourceNotFoundException":
1580
+ case "com.amazonaws.cleanrooms#ResourceNotFoundException":
1581
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1582
+ case "ThrottlingException":
1583
+ case "com.amazonaws.cleanrooms#ThrottlingException":
1584
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1585
+ case "ValidationException":
1586
+ case "com.amazonaws.cleanrooms#ValidationException":
1587
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1588
+ default:
1589
+ const parsedBody = parsedOutput.body;
1590
+ return throwDefaultError({
1591
+ output,
1592
+ parsedBody,
1593
+ errorCode,
1594
+ });
1595
+ }
1596
+ };
1597
+ const de_DeleteMemberCommand = async (output, context) => {
1189
1598
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1190
- return de_DeleteConfiguredTableAnalysisRuleCommandError(output, context);
1599
+ return de_DeleteMemberCommandError(output, context);
1191
1600
  }
1192
1601
  const contents = (0, smithy_client_1.map)({
1193
1602
  $metadata: deserializeMetadata(output),
@@ -1195,8 +1604,8 @@ const de_DeleteConfiguredTableAnalysisRuleCommand = async (output, context) => {
1195
1604
  await (0, smithy_client_1.collectBody)(output.body, context);
1196
1605
  return contents;
1197
1606
  };
1198
- exports.de_DeleteConfiguredTableAnalysisRuleCommand = de_DeleteConfiguredTableAnalysisRuleCommand;
1199
- const de_DeleteConfiguredTableAnalysisRuleCommandError = async (output, context) => {
1607
+ exports.de_DeleteMemberCommand = de_DeleteMemberCommand;
1608
+ const de_DeleteMemberCommandError = async (output, context) => {
1200
1609
  const parsedOutput = {
1201
1610
  ...output,
1202
1611
  body: await parseErrorBody(output.body, context),
@@ -1230,9 +1639,9 @@ const de_DeleteConfiguredTableAnalysisRuleCommandError = async (output, context)
1230
1639
  });
1231
1640
  }
1232
1641
  };
1233
- const de_DeleteConfiguredTableAssociationCommand = async (output, context) => {
1642
+ const de_DeleteMembershipCommand = async (output, context) => {
1234
1643
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1235
- return de_DeleteConfiguredTableAssociationCommandError(output, context);
1644
+ return de_DeleteMembershipCommandError(output, context);
1236
1645
  }
1237
1646
  const contents = (0, smithy_client_1.map)({
1238
1647
  $metadata: deserializeMetadata(output),
@@ -1240,8 +1649,8 @@ const de_DeleteConfiguredTableAssociationCommand = async (output, context) => {
1240
1649
  await (0, smithy_client_1.collectBody)(output.body, context);
1241
1650
  return contents;
1242
1651
  };
1243
- exports.de_DeleteConfiguredTableAssociationCommand = de_DeleteConfiguredTableAssociationCommand;
1244
- const de_DeleteConfiguredTableAssociationCommandError = async (output, context) => {
1652
+ exports.de_DeleteMembershipCommand = de_DeleteMembershipCommand;
1653
+ const de_DeleteMembershipCommandError = async (output, context) => {
1245
1654
  const parsedOutput = {
1246
1655
  ...output,
1247
1656
  body: await parseErrorBody(output.body, context),
@@ -1275,18 +1684,22 @@ const de_DeleteConfiguredTableAssociationCommandError = async (output, context)
1275
1684
  });
1276
1685
  }
1277
1686
  };
1278
- const de_DeleteMemberCommand = async (output, context) => {
1279
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1280
- return de_DeleteMemberCommandError(output, context);
1687
+ const de_GetAnalysisTemplateCommand = async (output, context) => {
1688
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1689
+ return de_GetAnalysisTemplateCommandError(output, context);
1281
1690
  }
1282
1691
  const contents = (0, smithy_client_1.map)({
1283
1692
  $metadata: deserializeMetadata(output),
1284
1693
  });
1285
- await (0, smithy_client_1.collectBody)(output.body, context);
1694
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1695
+ const doc = (0, smithy_client_1.take)(data, {
1696
+ analysisTemplate: (_) => de_AnalysisTemplate(_, context),
1697
+ });
1698
+ Object.assign(contents, doc);
1286
1699
  return contents;
1287
1700
  };
1288
- exports.de_DeleteMemberCommand = de_DeleteMemberCommand;
1289
- const de_DeleteMemberCommandError = async (output, context) => {
1701
+ exports.de_GetAnalysisTemplateCommand = de_GetAnalysisTemplateCommand;
1702
+ const de_GetAnalysisTemplateCommandError = async (output, context) => {
1290
1703
  const parsedOutput = {
1291
1704
  ...output,
1292
1705
  body: await parseErrorBody(output.body, context),
@@ -1296,9 +1709,6 @@ const de_DeleteMemberCommandError = async (output, context) => {
1296
1709
  case "AccessDeniedException":
1297
1710
  case "com.amazonaws.cleanrooms#AccessDeniedException":
1298
1711
  throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1299
- case "ConflictException":
1300
- case "com.amazonaws.cleanrooms#ConflictException":
1301
- throw await de_ConflictExceptionRes(parsedOutput, context);
1302
1712
  case "InternalServerException":
1303
1713
  case "com.amazonaws.cleanrooms#InternalServerException":
1304
1714
  throw await de_InternalServerExceptionRes(parsedOutput, context);
@@ -1320,18 +1730,22 @@ const de_DeleteMemberCommandError = async (output, context) => {
1320
1730
  });
1321
1731
  }
1322
1732
  };
1323
- const de_DeleteMembershipCommand = async (output, context) => {
1324
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1325
- return de_DeleteMembershipCommandError(output, context);
1733
+ const de_GetCollaborationCommand = async (output, context) => {
1734
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1735
+ return de_GetCollaborationCommandError(output, context);
1326
1736
  }
1327
1737
  const contents = (0, smithy_client_1.map)({
1328
1738
  $metadata: deserializeMetadata(output),
1329
1739
  });
1330
- await (0, smithy_client_1.collectBody)(output.body, context);
1740
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1741
+ const doc = (0, smithy_client_1.take)(data, {
1742
+ collaboration: (_) => de_Collaboration(_, context),
1743
+ });
1744
+ Object.assign(contents, doc);
1331
1745
  return contents;
1332
1746
  };
1333
- exports.de_DeleteMembershipCommand = de_DeleteMembershipCommand;
1334
- const de_DeleteMembershipCommandError = async (output, context) => {
1747
+ exports.de_GetCollaborationCommand = de_GetCollaborationCommand;
1748
+ const de_GetCollaborationCommandError = async (output, context) => {
1335
1749
  const parsedOutput = {
1336
1750
  ...output,
1337
1751
  body: await parseErrorBody(output.body, context),
@@ -1341,15 +1755,9 @@ const de_DeleteMembershipCommandError = async (output, context) => {
1341
1755
  case "AccessDeniedException":
1342
1756
  case "com.amazonaws.cleanrooms#AccessDeniedException":
1343
1757
  throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1344
- case "ConflictException":
1345
- case "com.amazonaws.cleanrooms#ConflictException":
1346
- throw await de_ConflictExceptionRes(parsedOutput, context);
1347
1758
  case "InternalServerException":
1348
1759
  case "com.amazonaws.cleanrooms#InternalServerException":
1349
1760
  throw await de_InternalServerExceptionRes(parsedOutput, context);
1350
- case "ResourceNotFoundException":
1351
- case "com.amazonaws.cleanrooms#ResourceNotFoundException":
1352
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1353
1761
  case "ThrottlingException":
1354
1762
  case "com.amazonaws.cleanrooms#ThrottlingException":
1355
1763
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
@@ -1365,22 +1773,22 @@ const de_DeleteMembershipCommandError = async (output, context) => {
1365
1773
  });
1366
1774
  }
1367
1775
  };
1368
- const de_GetCollaborationCommand = async (output, context) => {
1776
+ const de_GetCollaborationAnalysisTemplateCommand = async (output, context) => {
1369
1777
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1370
- return de_GetCollaborationCommandError(output, context);
1778
+ return de_GetCollaborationAnalysisTemplateCommandError(output, context);
1371
1779
  }
1372
1780
  const contents = (0, smithy_client_1.map)({
1373
1781
  $metadata: deserializeMetadata(output),
1374
1782
  });
1375
1783
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1376
1784
  const doc = (0, smithy_client_1.take)(data, {
1377
- collaboration: (_) => de_Collaboration(_, context),
1785
+ collaborationAnalysisTemplate: (_) => de_CollaborationAnalysisTemplate(_, context),
1378
1786
  });
1379
1787
  Object.assign(contents, doc);
1380
1788
  return contents;
1381
1789
  };
1382
- exports.de_GetCollaborationCommand = de_GetCollaborationCommand;
1383
- const de_GetCollaborationCommandError = async (output, context) => {
1790
+ exports.de_GetCollaborationAnalysisTemplateCommand = de_GetCollaborationAnalysisTemplateCommand;
1791
+ const de_GetCollaborationAnalysisTemplateCommandError = async (output, context) => {
1384
1792
  const parsedOutput = {
1385
1793
  ...output,
1386
1794
  body: await parseErrorBody(output.body, context),
@@ -1393,6 +1801,9 @@ const de_GetCollaborationCommandError = async (output, context) => {
1393
1801
  case "InternalServerException":
1394
1802
  case "com.amazonaws.cleanrooms#InternalServerException":
1395
1803
  throw await de_InternalServerExceptionRes(parsedOutput, context);
1804
+ case "ResourceNotFoundException":
1805
+ case "com.amazonaws.cleanrooms#ResourceNotFoundException":
1806
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1396
1807
  case "ThrottlingException":
1397
1808
  case "com.amazonaws.cleanrooms#ThrottlingException":
1398
1809
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
@@ -1730,6 +2141,100 @@ const de_GetSchemaAnalysisRuleCommandError = async (output, context) => {
1730
2141
  });
1731
2142
  }
1732
2143
  };
2144
+ const de_ListAnalysisTemplatesCommand = async (output, context) => {
2145
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2146
+ return de_ListAnalysisTemplatesCommandError(output, context);
2147
+ }
2148
+ const contents = (0, smithy_client_1.map)({
2149
+ $metadata: deserializeMetadata(output),
2150
+ });
2151
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2152
+ const doc = (0, smithy_client_1.take)(data, {
2153
+ analysisTemplateSummaries: (_) => de_AnalysisTemplateSummaryList(_, context),
2154
+ nextToken: smithy_client_1.expectString,
2155
+ });
2156
+ Object.assign(contents, doc);
2157
+ return contents;
2158
+ };
2159
+ exports.de_ListAnalysisTemplatesCommand = de_ListAnalysisTemplatesCommand;
2160
+ const de_ListAnalysisTemplatesCommandError = async (output, context) => {
2161
+ const parsedOutput = {
2162
+ ...output,
2163
+ body: await parseErrorBody(output.body, context),
2164
+ };
2165
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2166
+ switch (errorCode) {
2167
+ case "AccessDeniedException":
2168
+ case "com.amazonaws.cleanrooms#AccessDeniedException":
2169
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2170
+ case "InternalServerException":
2171
+ case "com.amazonaws.cleanrooms#InternalServerException":
2172
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2173
+ case "ResourceNotFoundException":
2174
+ case "com.amazonaws.cleanrooms#ResourceNotFoundException":
2175
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2176
+ case "ThrottlingException":
2177
+ case "com.amazonaws.cleanrooms#ThrottlingException":
2178
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2179
+ case "ValidationException":
2180
+ case "com.amazonaws.cleanrooms#ValidationException":
2181
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2182
+ default:
2183
+ const parsedBody = parsedOutput.body;
2184
+ return throwDefaultError({
2185
+ output,
2186
+ parsedBody,
2187
+ errorCode,
2188
+ });
2189
+ }
2190
+ };
2191
+ const de_ListCollaborationAnalysisTemplatesCommand = async (output, context) => {
2192
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2193
+ return de_ListCollaborationAnalysisTemplatesCommandError(output, context);
2194
+ }
2195
+ const contents = (0, smithy_client_1.map)({
2196
+ $metadata: deserializeMetadata(output),
2197
+ });
2198
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2199
+ const doc = (0, smithy_client_1.take)(data, {
2200
+ collaborationAnalysisTemplateSummaries: (_) => de_CollaborationAnalysisTemplateSummaryList(_, context),
2201
+ nextToken: smithy_client_1.expectString,
2202
+ });
2203
+ Object.assign(contents, doc);
2204
+ return contents;
2205
+ };
2206
+ exports.de_ListCollaborationAnalysisTemplatesCommand = de_ListCollaborationAnalysisTemplatesCommand;
2207
+ const de_ListCollaborationAnalysisTemplatesCommandError = async (output, context) => {
2208
+ const parsedOutput = {
2209
+ ...output,
2210
+ body: await parseErrorBody(output.body, context),
2211
+ };
2212
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2213
+ switch (errorCode) {
2214
+ case "AccessDeniedException":
2215
+ case "com.amazonaws.cleanrooms#AccessDeniedException":
2216
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2217
+ case "InternalServerException":
2218
+ case "com.amazonaws.cleanrooms#InternalServerException":
2219
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2220
+ case "ResourceNotFoundException":
2221
+ case "com.amazonaws.cleanrooms#ResourceNotFoundException":
2222
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2223
+ case "ThrottlingException":
2224
+ case "com.amazonaws.cleanrooms#ThrottlingException":
2225
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2226
+ case "ValidationException":
2227
+ case "com.amazonaws.cleanrooms#ValidationException":
2228
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2229
+ default:
2230
+ const parsedBody = parsedOutput.body;
2231
+ return throwDefaultError({
2232
+ output,
2233
+ parsedBody,
2234
+ errorCode,
2235
+ });
2236
+ }
2237
+ };
1733
2238
  const de_ListCollaborationsCommand = async (output, context) => {
1734
2239
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1735
2240
  return de_ListCollaborationsCommandError(output, context);
@@ -2202,6 +2707,52 @@ const de_UntagResourceCommandError = async (output, context) => {
2202
2707
  });
2203
2708
  }
2204
2709
  };
2710
+ const de_UpdateAnalysisTemplateCommand = async (output, context) => {
2711
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2712
+ return de_UpdateAnalysisTemplateCommandError(output, context);
2713
+ }
2714
+ const contents = (0, smithy_client_1.map)({
2715
+ $metadata: deserializeMetadata(output),
2716
+ });
2717
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2718
+ const doc = (0, smithy_client_1.take)(data, {
2719
+ analysisTemplate: (_) => de_AnalysisTemplate(_, context),
2720
+ });
2721
+ Object.assign(contents, doc);
2722
+ return contents;
2723
+ };
2724
+ exports.de_UpdateAnalysisTemplateCommand = de_UpdateAnalysisTemplateCommand;
2725
+ const de_UpdateAnalysisTemplateCommandError = async (output, context) => {
2726
+ const parsedOutput = {
2727
+ ...output,
2728
+ body: await parseErrorBody(output.body, context),
2729
+ };
2730
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2731
+ switch (errorCode) {
2732
+ case "AccessDeniedException":
2733
+ case "com.amazonaws.cleanrooms#AccessDeniedException":
2734
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2735
+ case "InternalServerException":
2736
+ case "com.amazonaws.cleanrooms#InternalServerException":
2737
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2738
+ case "ResourceNotFoundException":
2739
+ case "com.amazonaws.cleanrooms#ResourceNotFoundException":
2740
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2741
+ case "ThrottlingException":
2742
+ case "com.amazonaws.cleanrooms#ThrottlingException":
2743
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2744
+ case "ValidationException":
2745
+ case "com.amazonaws.cleanrooms#ValidationException":
2746
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2747
+ default:
2748
+ const parsedBody = parsedOutput.body;
2749
+ return throwDefaultError({
2750
+ output,
2751
+ parsedBody,
2752
+ errorCode,
2753
+ });
2754
+ }
2755
+ };
2205
2756
  const de_UpdateCollaborationCommand = async (output, context) => {
2206
2757
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2207
2758
  return de_UpdateCollaborationCommandError(output, context);
@@ -2602,6 +3153,46 @@ const de_AnalysisRule = (output, context) => {
2602
3153
  updateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2603
3154
  });
2604
3155
  };
3156
+ const de_AnalysisTemplate = (output, context) => {
3157
+ return (0, smithy_client_1.take)(output, {
3158
+ analysisParameters: smithy_client_1._json,
3159
+ arn: smithy_client_1.expectString,
3160
+ collaborationArn: smithy_client_1.expectString,
3161
+ collaborationId: smithy_client_1.expectString,
3162
+ createTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3163
+ description: smithy_client_1.expectString,
3164
+ format: smithy_client_1.expectString,
3165
+ id: smithy_client_1.expectString,
3166
+ membershipArn: smithy_client_1.expectString,
3167
+ membershipId: smithy_client_1.expectString,
3168
+ name: smithy_client_1.expectString,
3169
+ schema: smithy_client_1._json,
3170
+ source: (_) => (0, smithy_client_1._json)((0, smithy_client_1.expectUnion)(_)),
3171
+ updateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3172
+ });
3173
+ };
3174
+ const de_AnalysisTemplateSummary = (output, context) => {
3175
+ return (0, smithy_client_1.take)(output, {
3176
+ arn: smithy_client_1.expectString,
3177
+ collaborationArn: smithy_client_1.expectString,
3178
+ collaborationId: smithy_client_1.expectString,
3179
+ createTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3180
+ description: smithy_client_1.expectString,
3181
+ id: smithy_client_1.expectString,
3182
+ membershipArn: smithy_client_1.expectString,
3183
+ membershipId: smithy_client_1.expectString,
3184
+ name: smithy_client_1.expectString,
3185
+ updateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3186
+ });
3187
+ };
3188
+ const de_AnalysisTemplateSummaryList = (output, context) => {
3189
+ const retVal = (output || [])
3190
+ .filter((e) => e != null)
3191
+ .map((entry) => {
3192
+ return de_AnalysisTemplateSummary(entry, context);
3193
+ });
3194
+ return retVal;
3195
+ };
2605
3196
  const de_Collaboration = (output, context) => {
2606
3197
  return (0, smithy_client_1.take)(output, {
2607
3198
  arn: smithy_client_1.expectString,
@@ -2619,6 +3210,52 @@ const de_Collaboration = (output, context) => {
2619
3210
  updateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2620
3211
  });
2621
3212
  };
3213
+ const de_CollaborationAnalysisTemplate = (output, context) => {
3214
+ return (0, smithy_client_1.take)(output, {
3215
+ analysisParameters: smithy_client_1._json,
3216
+ arn: smithy_client_1.expectString,
3217
+ collaborationArn: smithy_client_1.expectString,
3218
+ collaborationId: smithy_client_1.expectString,
3219
+ createTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3220
+ creatorAccountId: smithy_client_1.expectString,
3221
+ description: smithy_client_1.expectString,
3222
+ format: smithy_client_1.expectString,
3223
+ id: smithy_client_1.expectString,
3224
+ name: smithy_client_1.expectString,
3225
+ schema: smithy_client_1._json,
3226
+ source: (_) => (0, smithy_client_1._json)((0, smithy_client_1.expectUnion)(_)),
3227
+ updateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3228
+ });
3229
+ };
3230
+ const de_CollaborationAnalysisTemplateList = (output, context) => {
3231
+ const retVal = (output || [])
3232
+ .filter((e) => e != null)
3233
+ .map((entry) => {
3234
+ return de_CollaborationAnalysisTemplate(entry, context);
3235
+ });
3236
+ return retVal;
3237
+ };
3238
+ const de_CollaborationAnalysisTemplateSummary = (output, context) => {
3239
+ return (0, smithy_client_1.take)(output, {
3240
+ arn: smithy_client_1.expectString,
3241
+ collaborationArn: smithy_client_1.expectString,
3242
+ collaborationId: smithy_client_1.expectString,
3243
+ createTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3244
+ creatorAccountId: smithy_client_1.expectString,
3245
+ description: smithy_client_1.expectString,
3246
+ id: smithy_client_1.expectString,
3247
+ name: smithy_client_1.expectString,
3248
+ updateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3249
+ });
3250
+ };
3251
+ const de_CollaborationAnalysisTemplateSummaryList = (output, context) => {
3252
+ const retVal = (output || [])
3253
+ .filter((e) => e != null)
3254
+ .map((entry) => {
3255
+ return de_CollaborationAnalysisTemplateSummary(entry, context);
3256
+ });
3257
+ return retVal;
3258
+ };
2622
3259
  const de_CollaborationSummary = (output, context) => {
2623
3260
  return (0, smithy_client_1.take)(output, {
2624
3261
  arn: smithy_client_1.expectString,