@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
@@ -2,6 +2,28 @@ import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
2
2
  import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, take, withBaseException, } from "@smithy/smithy-client";
3
3
  import { CleanRoomsServiceException as __BaseException } from "../models/CleanRoomsServiceException";
4
4
  import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
5
+ export const se_BatchGetCollaborationAnalysisTemplateCommand = async (input, context) => {
6
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
7
+ const headers = {
8
+ "content-type": "application/json",
9
+ };
10
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
11
+ "/collaborations/{collaborationIdentifier}/batch-analysistemplates";
12
+ resolvedPath = __resolvedPath(resolvedPath, input, "collaborationIdentifier", () => input.collaborationIdentifier, "{collaborationIdentifier}", false);
13
+ let body;
14
+ body = JSON.stringify(take(input, {
15
+ analysisTemplateArns: (_) => _json(_),
16
+ }));
17
+ return new __HttpRequest({
18
+ protocol,
19
+ hostname,
20
+ port,
21
+ method: "POST",
22
+ headers,
23
+ path: resolvedPath,
24
+ body,
25
+ });
26
+ };
5
27
  export const se_BatchGetSchemaCommand = async (input, context) => {
6
28
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
7
29
  const headers = {
@@ -24,6 +46,33 @@ export const se_BatchGetSchemaCommand = async (input, context) => {
24
46
  body,
25
47
  });
26
48
  };
49
+ export const se_CreateAnalysisTemplateCommand = async (input, context) => {
50
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
51
+ const headers = {
52
+ "content-type": "application/json",
53
+ };
54
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
55
+ "/memberships/{membershipIdentifier}/analysistemplates";
56
+ resolvedPath = __resolvedPath(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
57
+ let body;
58
+ body = JSON.stringify(take(input, {
59
+ analysisParameters: (_) => _json(_),
60
+ description: [],
61
+ format: [],
62
+ name: [],
63
+ source: (_) => _json(_),
64
+ tags: (_) => _json(_),
65
+ }));
66
+ return new __HttpRequest({
67
+ protocol,
68
+ hostname,
69
+ port,
70
+ method: "POST",
71
+ headers,
72
+ path: resolvedPath,
73
+ body,
74
+ });
75
+ };
27
76
  export const se_CreateCollaborationCommand = async (input, context) => {
28
77
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
29
78
  const headers = {
@@ -147,6 +196,24 @@ export const se_CreateMembershipCommand = async (input, context) => {
147
196
  body,
148
197
  });
149
198
  };
199
+ export const se_DeleteAnalysisTemplateCommand = async (input, context) => {
200
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
201
+ const headers = {};
202
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
203
+ "/memberships/{membershipIdentifier}/analysistemplates/{analysisTemplateIdentifier}";
204
+ resolvedPath = __resolvedPath(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
205
+ resolvedPath = __resolvedPath(resolvedPath, input, "analysisTemplateIdentifier", () => input.analysisTemplateIdentifier, "{analysisTemplateIdentifier}", false);
206
+ let body;
207
+ return new __HttpRequest({
208
+ protocol,
209
+ hostname,
210
+ port,
211
+ method: "DELETE",
212
+ headers,
213
+ path: resolvedPath,
214
+ body,
215
+ });
216
+ };
150
217
  export const se_DeleteCollaborationCommand = async (input, context) => {
151
218
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
152
219
  const headers = {};
@@ -250,6 +317,24 @@ export const se_DeleteMembershipCommand = async (input, context) => {
250
317
  body,
251
318
  });
252
319
  };
320
+ export const se_GetAnalysisTemplateCommand = async (input, context) => {
321
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
322
+ const headers = {};
323
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
324
+ "/memberships/{membershipIdentifier}/analysistemplates/{analysisTemplateIdentifier}";
325
+ resolvedPath = __resolvedPath(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
326
+ resolvedPath = __resolvedPath(resolvedPath, input, "analysisTemplateIdentifier", () => input.analysisTemplateIdentifier, "{analysisTemplateIdentifier}", false);
327
+ let body;
328
+ return new __HttpRequest({
329
+ protocol,
330
+ hostname,
331
+ port,
332
+ method: "GET",
333
+ headers,
334
+ path: resolvedPath,
335
+ body,
336
+ });
337
+ };
253
338
  export const se_GetCollaborationCommand = async (input, context) => {
254
339
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
255
340
  const headers = {};
@@ -266,6 +351,24 @@ export const se_GetCollaborationCommand = async (input, context) => {
266
351
  body,
267
352
  });
268
353
  };
354
+ export const se_GetCollaborationAnalysisTemplateCommand = async (input, context) => {
355
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
356
+ const headers = {};
357
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
358
+ "/collaborations/{collaborationIdentifier}/analysistemplates/{analysisTemplateArn}";
359
+ resolvedPath = __resolvedPath(resolvedPath, input, "collaborationIdentifier", () => input.collaborationIdentifier, "{collaborationIdentifier}", false);
360
+ resolvedPath = __resolvedPath(resolvedPath, input, "analysisTemplateArn", () => input.analysisTemplateArn, "{analysisTemplateArn}", false);
361
+ let body;
362
+ return new __HttpRequest({
363
+ protocol,
364
+ hostname,
365
+ port,
366
+ method: "GET",
367
+ headers,
368
+ path: resolvedPath,
369
+ body,
370
+ });
371
+ };
269
372
  export const se_GetConfiguredTableCommand = async (input, context) => {
270
373
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
271
374
  const headers = {};
@@ -390,6 +493,50 @@ export const se_GetSchemaAnalysisRuleCommand = async (input, context) => {
390
493
  body,
391
494
  });
392
495
  };
496
+ export const se_ListAnalysisTemplatesCommand = async (input, context) => {
497
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
498
+ const headers = {};
499
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
500
+ "/memberships/{membershipIdentifier}/analysistemplates";
501
+ resolvedPath = __resolvedPath(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
502
+ const query = map({
503
+ nextToken: [, input.nextToken],
504
+ maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
505
+ });
506
+ let body;
507
+ return new __HttpRequest({
508
+ protocol,
509
+ hostname,
510
+ port,
511
+ method: "GET",
512
+ headers,
513
+ path: resolvedPath,
514
+ query,
515
+ body,
516
+ });
517
+ };
518
+ export const se_ListCollaborationAnalysisTemplatesCommand = async (input, context) => {
519
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
520
+ const headers = {};
521
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
522
+ "/collaborations/{collaborationIdentifier}/analysistemplates";
523
+ resolvedPath = __resolvedPath(resolvedPath, input, "collaborationIdentifier", () => input.collaborationIdentifier, "{collaborationIdentifier}", false);
524
+ const query = map({
525
+ nextToken: [, input.nextToken],
526
+ maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
527
+ });
528
+ let body;
529
+ return new __HttpRequest({
530
+ protocol,
531
+ hostname,
532
+ port,
533
+ method: "GET",
534
+ headers,
535
+ path: resolvedPath,
536
+ query,
537
+ body,
538
+ });
539
+ };
393
540
  export const se_ListCollaborationsCommand = async (input, context) => {
394
541
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
395
542
  const headers = {};
@@ -626,6 +773,29 @@ export const se_UntagResourceCommand = async (input, context) => {
626
773
  body,
627
774
  });
628
775
  };
776
+ export const se_UpdateAnalysisTemplateCommand = async (input, context) => {
777
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
778
+ const headers = {
779
+ "content-type": "application/json",
780
+ };
781
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
782
+ "/memberships/{membershipIdentifier}/analysistemplates/{analysisTemplateIdentifier}";
783
+ resolvedPath = __resolvedPath(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
784
+ resolvedPath = __resolvedPath(resolvedPath, input, "analysisTemplateIdentifier", () => input.analysisTemplateIdentifier, "{analysisTemplateIdentifier}", false);
785
+ let body;
786
+ body = JSON.stringify(take(input, {
787
+ description: [],
788
+ }));
789
+ return new __HttpRequest({
790
+ protocol,
791
+ hostname,
792
+ port,
793
+ method: "PATCH",
794
+ headers,
795
+ path: resolvedPath,
796
+ body,
797
+ });
798
+ };
629
799
  export const se_UpdateCollaborationCommand = async (input, context) => {
630
800
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
631
801
  const headers = {
@@ -762,6 +932,52 @@ export const se_UpdateProtectedQueryCommand = async (input, context) => {
762
932
  body,
763
933
  });
764
934
  };
935
+ export const de_BatchGetCollaborationAnalysisTemplateCommand = async (output, context) => {
936
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
937
+ return de_BatchGetCollaborationAnalysisTemplateCommandError(output, context);
938
+ }
939
+ const contents = map({
940
+ $metadata: deserializeMetadata(output),
941
+ });
942
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
943
+ const doc = take(data, {
944
+ collaborationAnalysisTemplates: (_) => de_CollaborationAnalysisTemplateList(_, context),
945
+ errors: _json,
946
+ });
947
+ Object.assign(contents, doc);
948
+ return contents;
949
+ };
950
+ const de_BatchGetCollaborationAnalysisTemplateCommandError = async (output, context) => {
951
+ const parsedOutput = {
952
+ ...output,
953
+ body: await parseErrorBody(output.body, context),
954
+ };
955
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
956
+ switch (errorCode) {
957
+ case "AccessDeniedException":
958
+ case "com.amazonaws.cleanrooms#AccessDeniedException":
959
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
960
+ case "InternalServerException":
961
+ case "com.amazonaws.cleanrooms#InternalServerException":
962
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
963
+ case "ResourceNotFoundException":
964
+ case "com.amazonaws.cleanrooms#ResourceNotFoundException":
965
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
966
+ case "ThrottlingException":
967
+ case "com.amazonaws.cleanrooms#ThrottlingException":
968
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
969
+ case "ValidationException":
970
+ case "com.amazonaws.cleanrooms#ValidationException":
971
+ throw await de_ValidationExceptionRes(parsedOutput, context);
972
+ default:
973
+ const parsedBody = parsedOutput.body;
974
+ return throwDefaultError({
975
+ output,
976
+ parsedBody,
977
+ errorCode,
978
+ });
979
+ }
980
+ };
765
981
  export const de_BatchGetSchemaCommand = async (output, context) => {
766
982
  if (output.statusCode !== 200 && output.statusCode >= 300) {
767
983
  return de_BatchGetSchemaCommandError(output, context);
@@ -808,6 +1024,57 @@ const de_BatchGetSchemaCommandError = async (output, context) => {
808
1024
  });
809
1025
  }
810
1026
  };
1027
+ export const de_CreateAnalysisTemplateCommand = async (output, context) => {
1028
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1029
+ return de_CreateAnalysisTemplateCommandError(output, context);
1030
+ }
1031
+ const contents = map({
1032
+ $metadata: deserializeMetadata(output),
1033
+ });
1034
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1035
+ const doc = take(data, {
1036
+ analysisTemplate: (_) => de_AnalysisTemplate(_, context),
1037
+ });
1038
+ Object.assign(contents, doc);
1039
+ return contents;
1040
+ };
1041
+ const de_CreateAnalysisTemplateCommandError = async (output, context) => {
1042
+ const parsedOutput = {
1043
+ ...output,
1044
+ body: await parseErrorBody(output.body, context),
1045
+ };
1046
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1047
+ switch (errorCode) {
1048
+ case "AccessDeniedException":
1049
+ case "com.amazonaws.cleanrooms#AccessDeniedException":
1050
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1051
+ case "ConflictException":
1052
+ case "com.amazonaws.cleanrooms#ConflictException":
1053
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1054
+ case "InternalServerException":
1055
+ case "com.amazonaws.cleanrooms#InternalServerException":
1056
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1057
+ case "ResourceNotFoundException":
1058
+ case "com.amazonaws.cleanrooms#ResourceNotFoundException":
1059
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1060
+ case "ServiceQuotaExceededException":
1061
+ case "com.amazonaws.cleanrooms#ServiceQuotaExceededException":
1062
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1063
+ case "ThrottlingException":
1064
+ case "com.amazonaws.cleanrooms#ThrottlingException":
1065
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1066
+ case "ValidationException":
1067
+ case "com.amazonaws.cleanrooms#ValidationException":
1068
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1069
+ default:
1070
+ const parsedBody = parsedOutput.body;
1071
+ return throwDefaultError({
1072
+ output,
1073
+ parsedBody,
1074
+ errorCode,
1075
+ });
1076
+ }
1077
+ };
811
1078
  export const de_CreateCollaborationCommand = async (output, context) => {
812
1079
  if (output.statusCode !== 200 && output.statusCode >= 300) {
813
1080
  return de_CreateCollaborationCommandError(output, context);
@@ -1017,7 +1284,221 @@ export const de_CreateMembershipCommand = async (output, context) => {
1017
1284
  Object.assign(contents, doc);
1018
1285
  return contents;
1019
1286
  };
1020
- const de_CreateMembershipCommandError = async (output, context) => {
1287
+ const de_CreateMembershipCommandError = async (output, context) => {
1288
+ const parsedOutput = {
1289
+ ...output,
1290
+ body: await parseErrorBody(output.body, context),
1291
+ };
1292
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1293
+ switch (errorCode) {
1294
+ case "AccessDeniedException":
1295
+ case "com.amazonaws.cleanrooms#AccessDeniedException":
1296
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1297
+ case "ConflictException":
1298
+ case "com.amazonaws.cleanrooms#ConflictException":
1299
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1300
+ case "InternalServerException":
1301
+ case "com.amazonaws.cleanrooms#InternalServerException":
1302
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1303
+ case "ResourceNotFoundException":
1304
+ case "com.amazonaws.cleanrooms#ResourceNotFoundException":
1305
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1306
+ case "ServiceQuotaExceededException":
1307
+ case "com.amazonaws.cleanrooms#ServiceQuotaExceededException":
1308
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1309
+ case "ThrottlingException":
1310
+ case "com.amazonaws.cleanrooms#ThrottlingException":
1311
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1312
+ case "ValidationException":
1313
+ case "com.amazonaws.cleanrooms#ValidationException":
1314
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1315
+ default:
1316
+ const parsedBody = parsedOutput.body;
1317
+ return throwDefaultError({
1318
+ output,
1319
+ parsedBody,
1320
+ errorCode,
1321
+ });
1322
+ }
1323
+ };
1324
+ export const de_DeleteAnalysisTemplateCommand = async (output, context) => {
1325
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1326
+ return de_DeleteAnalysisTemplateCommandError(output, context);
1327
+ }
1328
+ const contents = map({
1329
+ $metadata: deserializeMetadata(output),
1330
+ });
1331
+ await collectBody(output.body, context);
1332
+ return contents;
1333
+ };
1334
+ const de_DeleteAnalysisTemplateCommandError = async (output, context) => {
1335
+ const parsedOutput = {
1336
+ ...output,
1337
+ body: await parseErrorBody(output.body, context),
1338
+ };
1339
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1340
+ switch (errorCode) {
1341
+ case "AccessDeniedException":
1342
+ case "com.amazonaws.cleanrooms#AccessDeniedException":
1343
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1344
+ case "InternalServerException":
1345
+ case "com.amazonaws.cleanrooms#InternalServerException":
1346
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1347
+ case "ResourceNotFoundException":
1348
+ case "com.amazonaws.cleanrooms#ResourceNotFoundException":
1349
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1350
+ case "ThrottlingException":
1351
+ case "com.amazonaws.cleanrooms#ThrottlingException":
1352
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1353
+ case "ValidationException":
1354
+ case "com.amazonaws.cleanrooms#ValidationException":
1355
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1356
+ default:
1357
+ const parsedBody = parsedOutput.body;
1358
+ return throwDefaultError({
1359
+ output,
1360
+ parsedBody,
1361
+ errorCode,
1362
+ });
1363
+ }
1364
+ };
1365
+ export const de_DeleteCollaborationCommand = async (output, context) => {
1366
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1367
+ return de_DeleteCollaborationCommandError(output, context);
1368
+ }
1369
+ const contents = map({
1370
+ $metadata: deserializeMetadata(output),
1371
+ });
1372
+ await collectBody(output.body, context);
1373
+ return contents;
1374
+ };
1375
+ const de_DeleteCollaborationCommandError = async (output, context) => {
1376
+ const parsedOutput = {
1377
+ ...output,
1378
+ body: await parseErrorBody(output.body, context),
1379
+ };
1380
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1381
+ switch (errorCode) {
1382
+ case "AccessDeniedException":
1383
+ case "com.amazonaws.cleanrooms#AccessDeniedException":
1384
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1385
+ case "InternalServerException":
1386
+ case "com.amazonaws.cleanrooms#InternalServerException":
1387
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1388
+ case "ThrottlingException":
1389
+ case "com.amazonaws.cleanrooms#ThrottlingException":
1390
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1391
+ case "ValidationException":
1392
+ case "com.amazonaws.cleanrooms#ValidationException":
1393
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1394
+ default:
1395
+ const parsedBody = parsedOutput.body;
1396
+ return throwDefaultError({
1397
+ output,
1398
+ parsedBody,
1399
+ errorCode,
1400
+ });
1401
+ }
1402
+ };
1403
+ export const de_DeleteConfiguredTableCommand = async (output, context) => {
1404
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1405
+ return de_DeleteConfiguredTableCommandError(output, context);
1406
+ }
1407
+ const contents = map({
1408
+ $metadata: deserializeMetadata(output),
1409
+ });
1410
+ await collectBody(output.body, context);
1411
+ return contents;
1412
+ };
1413
+ const de_DeleteConfiguredTableCommandError = async (output, context) => {
1414
+ const parsedOutput = {
1415
+ ...output,
1416
+ body: await parseErrorBody(output.body, context),
1417
+ };
1418
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1419
+ switch (errorCode) {
1420
+ case "AccessDeniedException":
1421
+ case "com.amazonaws.cleanrooms#AccessDeniedException":
1422
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1423
+ case "ConflictException":
1424
+ case "com.amazonaws.cleanrooms#ConflictException":
1425
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1426
+ case "InternalServerException":
1427
+ case "com.amazonaws.cleanrooms#InternalServerException":
1428
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1429
+ case "ResourceNotFoundException":
1430
+ case "com.amazonaws.cleanrooms#ResourceNotFoundException":
1431
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1432
+ case "ThrottlingException":
1433
+ case "com.amazonaws.cleanrooms#ThrottlingException":
1434
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1435
+ case "ValidationException":
1436
+ case "com.amazonaws.cleanrooms#ValidationException":
1437
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1438
+ default:
1439
+ const parsedBody = parsedOutput.body;
1440
+ return throwDefaultError({
1441
+ output,
1442
+ parsedBody,
1443
+ errorCode,
1444
+ });
1445
+ }
1446
+ };
1447
+ export const de_DeleteConfiguredTableAnalysisRuleCommand = async (output, context) => {
1448
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1449
+ return de_DeleteConfiguredTableAnalysisRuleCommandError(output, context);
1450
+ }
1451
+ const contents = map({
1452
+ $metadata: deserializeMetadata(output),
1453
+ });
1454
+ await collectBody(output.body, context);
1455
+ return contents;
1456
+ };
1457
+ const de_DeleteConfiguredTableAnalysisRuleCommandError = async (output, context) => {
1458
+ const parsedOutput = {
1459
+ ...output,
1460
+ body: await parseErrorBody(output.body, context),
1461
+ };
1462
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1463
+ switch (errorCode) {
1464
+ case "AccessDeniedException":
1465
+ case "com.amazonaws.cleanrooms#AccessDeniedException":
1466
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1467
+ case "ConflictException":
1468
+ case "com.amazonaws.cleanrooms#ConflictException":
1469
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1470
+ case "InternalServerException":
1471
+ case "com.amazonaws.cleanrooms#InternalServerException":
1472
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1473
+ case "ResourceNotFoundException":
1474
+ case "com.amazonaws.cleanrooms#ResourceNotFoundException":
1475
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1476
+ case "ThrottlingException":
1477
+ case "com.amazonaws.cleanrooms#ThrottlingException":
1478
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1479
+ case "ValidationException":
1480
+ case "com.amazonaws.cleanrooms#ValidationException":
1481
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1482
+ default:
1483
+ const parsedBody = parsedOutput.body;
1484
+ return throwDefaultError({
1485
+ output,
1486
+ parsedBody,
1487
+ errorCode,
1488
+ });
1489
+ }
1490
+ };
1491
+ export const de_DeleteConfiguredTableAssociationCommand = async (output, context) => {
1492
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1493
+ return de_DeleteConfiguredTableAssociationCommandError(output, context);
1494
+ }
1495
+ const contents = map({
1496
+ $metadata: deserializeMetadata(output),
1497
+ });
1498
+ await collectBody(output.body, context);
1499
+ return contents;
1500
+ };
1501
+ const de_DeleteConfiguredTableAssociationCommandError = async (output, context) => {
1021
1502
  const parsedOutput = {
1022
1503
  ...output,
1023
1504
  body: await parseErrorBody(output.body, context),
@@ -1036,9 +1517,6 @@ const de_CreateMembershipCommandError = async (output, context) => {
1036
1517
  case "ResourceNotFoundException":
1037
1518
  case "com.amazonaws.cleanrooms#ResourceNotFoundException":
1038
1519
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1039
- case "ServiceQuotaExceededException":
1040
- case "com.amazonaws.cleanrooms#ServiceQuotaExceededException":
1041
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1042
1520
  case "ThrottlingException":
1043
1521
  case "com.amazonaws.cleanrooms#ThrottlingException":
1044
1522
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
@@ -1054,9 +1532,9 @@ const de_CreateMembershipCommandError = async (output, context) => {
1054
1532
  });
1055
1533
  }
1056
1534
  };
1057
- export const de_DeleteCollaborationCommand = async (output, context) => {
1535
+ export const de_DeleteMemberCommand = async (output, context) => {
1058
1536
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1059
- return de_DeleteCollaborationCommandError(output, context);
1537
+ return de_DeleteMemberCommandError(output, context);
1060
1538
  }
1061
1539
  const contents = map({
1062
1540
  $metadata: deserializeMetadata(output),
@@ -1064,7 +1542,7 @@ export const de_DeleteCollaborationCommand = async (output, context) => {
1064
1542
  await collectBody(output.body, context);
1065
1543
  return contents;
1066
1544
  };
1067
- const de_DeleteCollaborationCommandError = async (output, context) => {
1545
+ const de_DeleteMemberCommandError = async (output, context) => {
1068
1546
  const parsedOutput = {
1069
1547
  ...output,
1070
1548
  body: await parseErrorBody(output.body, context),
@@ -1074,9 +1552,15 @@ const de_DeleteCollaborationCommandError = async (output, context) => {
1074
1552
  case "AccessDeniedException":
1075
1553
  case "com.amazonaws.cleanrooms#AccessDeniedException":
1076
1554
  throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1555
+ case "ConflictException":
1556
+ case "com.amazonaws.cleanrooms#ConflictException":
1557
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1077
1558
  case "InternalServerException":
1078
1559
  case "com.amazonaws.cleanrooms#InternalServerException":
1079
1560
  throw await de_InternalServerExceptionRes(parsedOutput, context);
1561
+ case "ResourceNotFoundException":
1562
+ case "com.amazonaws.cleanrooms#ResourceNotFoundException":
1563
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1080
1564
  case "ThrottlingException":
1081
1565
  case "com.amazonaws.cleanrooms#ThrottlingException":
1082
1566
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
@@ -1092,9 +1576,9 @@ const de_DeleteCollaborationCommandError = async (output, context) => {
1092
1576
  });
1093
1577
  }
1094
1578
  };
1095
- export const de_DeleteConfiguredTableCommand = async (output, context) => {
1579
+ export const de_DeleteMembershipCommand = async (output, context) => {
1096
1580
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1097
- return de_DeleteConfiguredTableCommandError(output, context);
1581
+ return de_DeleteMembershipCommandError(output, context);
1098
1582
  }
1099
1583
  const contents = map({
1100
1584
  $metadata: deserializeMetadata(output),
@@ -1102,7 +1586,7 @@ export const de_DeleteConfiguredTableCommand = async (output, context) => {
1102
1586
  await collectBody(output.body, context);
1103
1587
  return contents;
1104
1588
  };
1105
- const de_DeleteConfiguredTableCommandError = async (output, context) => {
1589
+ const de_DeleteMembershipCommandError = async (output, context) => {
1106
1590
  const parsedOutput = {
1107
1591
  ...output,
1108
1592
  body: await parseErrorBody(output.body, context),
@@ -1136,17 +1620,21 @@ const de_DeleteConfiguredTableCommandError = async (output, context) => {
1136
1620
  });
1137
1621
  }
1138
1622
  };
1139
- export const de_DeleteConfiguredTableAnalysisRuleCommand = async (output, context) => {
1140
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1141
- return de_DeleteConfiguredTableAnalysisRuleCommandError(output, context);
1623
+ export const de_GetAnalysisTemplateCommand = async (output, context) => {
1624
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1625
+ return de_GetAnalysisTemplateCommandError(output, context);
1142
1626
  }
1143
1627
  const contents = map({
1144
1628
  $metadata: deserializeMetadata(output),
1145
1629
  });
1146
- await collectBody(output.body, context);
1630
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1631
+ const doc = take(data, {
1632
+ analysisTemplate: (_) => de_AnalysisTemplate(_, context),
1633
+ });
1634
+ Object.assign(contents, doc);
1147
1635
  return contents;
1148
1636
  };
1149
- const de_DeleteConfiguredTableAnalysisRuleCommandError = async (output, context) => {
1637
+ const de_GetAnalysisTemplateCommandError = async (output, context) => {
1150
1638
  const parsedOutput = {
1151
1639
  ...output,
1152
1640
  body: await parseErrorBody(output.body, context),
@@ -1156,9 +1644,6 @@ const de_DeleteConfiguredTableAnalysisRuleCommandError = async (output, context)
1156
1644
  case "AccessDeniedException":
1157
1645
  case "com.amazonaws.cleanrooms#AccessDeniedException":
1158
1646
  throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1159
- case "ConflictException":
1160
- case "com.amazonaws.cleanrooms#ConflictException":
1161
- throw await de_ConflictExceptionRes(parsedOutput, context);
1162
1647
  case "InternalServerException":
1163
1648
  case "com.amazonaws.cleanrooms#InternalServerException":
1164
1649
  throw await de_InternalServerExceptionRes(parsedOutput, context);
@@ -1180,17 +1665,21 @@ const de_DeleteConfiguredTableAnalysisRuleCommandError = async (output, context)
1180
1665
  });
1181
1666
  }
1182
1667
  };
1183
- export const de_DeleteConfiguredTableAssociationCommand = async (output, context) => {
1184
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1185
- return de_DeleteConfiguredTableAssociationCommandError(output, context);
1668
+ export const de_GetCollaborationCommand = async (output, context) => {
1669
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1670
+ return de_GetCollaborationCommandError(output, context);
1186
1671
  }
1187
1672
  const contents = map({
1188
1673
  $metadata: deserializeMetadata(output),
1189
1674
  });
1190
- await collectBody(output.body, context);
1675
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1676
+ const doc = take(data, {
1677
+ collaboration: (_) => de_Collaboration(_, context),
1678
+ });
1679
+ Object.assign(contents, doc);
1191
1680
  return contents;
1192
1681
  };
1193
- const de_DeleteConfiguredTableAssociationCommandError = async (output, context) => {
1682
+ const de_GetCollaborationCommandError = async (output, context) => {
1194
1683
  const parsedOutput = {
1195
1684
  ...output,
1196
1685
  body: await parseErrorBody(output.body, context),
@@ -1200,15 +1689,9 @@ const de_DeleteConfiguredTableAssociationCommandError = async (output, context)
1200
1689
  case "AccessDeniedException":
1201
1690
  case "com.amazonaws.cleanrooms#AccessDeniedException":
1202
1691
  throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1203
- case "ConflictException":
1204
- case "com.amazonaws.cleanrooms#ConflictException":
1205
- throw await de_ConflictExceptionRes(parsedOutput, context);
1206
1692
  case "InternalServerException":
1207
1693
  case "com.amazonaws.cleanrooms#InternalServerException":
1208
1694
  throw await de_InternalServerExceptionRes(parsedOutput, context);
1209
- case "ResourceNotFoundException":
1210
- case "com.amazonaws.cleanrooms#ResourceNotFoundException":
1211
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1212
1695
  case "ThrottlingException":
1213
1696
  case "com.amazonaws.cleanrooms#ThrottlingException":
1214
1697
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
@@ -1224,17 +1707,21 @@ const de_DeleteConfiguredTableAssociationCommandError = async (output, context)
1224
1707
  });
1225
1708
  }
1226
1709
  };
1227
- export const de_DeleteMemberCommand = async (output, context) => {
1228
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1229
- return de_DeleteMemberCommandError(output, context);
1710
+ export const de_GetCollaborationAnalysisTemplateCommand = async (output, context) => {
1711
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1712
+ return de_GetCollaborationAnalysisTemplateCommandError(output, context);
1230
1713
  }
1231
1714
  const contents = map({
1232
1715
  $metadata: deserializeMetadata(output),
1233
1716
  });
1234
- await collectBody(output.body, context);
1717
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1718
+ const doc = take(data, {
1719
+ collaborationAnalysisTemplate: (_) => de_CollaborationAnalysisTemplate(_, context),
1720
+ });
1721
+ Object.assign(contents, doc);
1235
1722
  return contents;
1236
1723
  };
1237
- const de_DeleteMemberCommandError = async (output, context) => {
1724
+ const de_GetCollaborationAnalysisTemplateCommandError = async (output, context) => {
1238
1725
  const parsedOutput = {
1239
1726
  ...output,
1240
1727
  body: await parseErrorBody(output.body, context),
@@ -1244,9 +1731,6 @@ const de_DeleteMemberCommandError = async (output, context) => {
1244
1731
  case "AccessDeniedException":
1245
1732
  case "com.amazonaws.cleanrooms#AccessDeniedException":
1246
1733
  throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1247
- case "ConflictException":
1248
- case "com.amazonaws.cleanrooms#ConflictException":
1249
- throw await de_ConflictExceptionRes(parsedOutput, context);
1250
1734
  case "InternalServerException":
1251
1735
  case "com.amazonaws.cleanrooms#InternalServerException":
1252
1736
  throw await de_InternalServerExceptionRes(parsedOutput, context);
@@ -1268,17 +1752,21 @@ const de_DeleteMemberCommandError = async (output, context) => {
1268
1752
  });
1269
1753
  }
1270
1754
  };
1271
- export const de_DeleteMembershipCommand = async (output, context) => {
1272
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1273
- return de_DeleteMembershipCommandError(output, context);
1755
+ export const de_GetConfiguredTableCommand = async (output, context) => {
1756
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1757
+ return de_GetConfiguredTableCommandError(output, context);
1274
1758
  }
1275
1759
  const contents = map({
1276
1760
  $metadata: deserializeMetadata(output),
1277
1761
  });
1278
- await collectBody(output.body, context);
1762
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1763
+ const doc = take(data, {
1764
+ configuredTable: (_) => de_ConfiguredTable(_, context),
1765
+ });
1766
+ Object.assign(contents, doc);
1279
1767
  return contents;
1280
1768
  };
1281
- const de_DeleteMembershipCommandError = async (output, context) => {
1769
+ const de_GetConfiguredTableCommandError = async (output, context) => {
1282
1770
  const parsedOutput = {
1283
1771
  ...output,
1284
1772
  body: await parseErrorBody(output.body, context),
@@ -1288,9 +1776,6 @@ const de_DeleteMembershipCommandError = async (output, context) => {
1288
1776
  case "AccessDeniedException":
1289
1777
  case "com.amazonaws.cleanrooms#AccessDeniedException":
1290
1778
  throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1291
- case "ConflictException":
1292
- case "com.amazonaws.cleanrooms#ConflictException":
1293
- throw await de_ConflictExceptionRes(parsedOutput, context);
1294
1779
  case "InternalServerException":
1295
1780
  case "com.amazonaws.cleanrooms#InternalServerException":
1296
1781
  throw await de_InternalServerExceptionRes(parsedOutput, context);
@@ -1312,21 +1797,21 @@ const de_DeleteMembershipCommandError = async (output, context) => {
1312
1797
  });
1313
1798
  }
1314
1799
  };
1315
- export const de_GetCollaborationCommand = async (output, context) => {
1800
+ export const de_GetConfiguredTableAnalysisRuleCommand = async (output, context) => {
1316
1801
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1317
- return de_GetCollaborationCommandError(output, context);
1802
+ return de_GetConfiguredTableAnalysisRuleCommandError(output, context);
1318
1803
  }
1319
1804
  const contents = map({
1320
1805
  $metadata: deserializeMetadata(output),
1321
1806
  });
1322
1807
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1323
1808
  const doc = take(data, {
1324
- collaboration: (_) => de_Collaboration(_, context),
1809
+ analysisRule: (_) => de_ConfiguredTableAnalysisRule(_, context),
1325
1810
  });
1326
1811
  Object.assign(contents, doc);
1327
1812
  return contents;
1328
1813
  };
1329
- const de_GetCollaborationCommandError = async (output, context) => {
1814
+ const de_GetConfiguredTableAnalysisRuleCommandError = async (output, context) => {
1330
1815
  const parsedOutput = {
1331
1816
  ...output,
1332
1817
  body: await parseErrorBody(output.body, context),
@@ -1339,6 +1824,9 @@ const de_GetCollaborationCommandError = async (output, context) => {
1339
1824
  case "InternalServerException":
1340
1825
  case "com.amazonaws.cleanrooms#InternalServerException":
1341
1826
  throw await de_InternalServerExceptionRes(parsedOutput, context);
1827
+ case "ResourceNotFoundException":
1828
+ case "com.amazonaws.cleanrooms#ResourceNotFoundException":
1829
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1342
1830
  case "ThrottlingException":
1343
1831
  case "com.amazonaws.cleanrooms#ThrottlingException":
1344
1832
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
@@ -1354,21 +1842,21 @@ const de_GetCollaborationCommandError = async (output, context) => {
1354
1842
  });
1355
1843
  }
1356
1844
  };
1357
- export const de_GetConfiguredTableCommand = async (output, context) => {
1845
+ export const de_GetConfiguredTableAssociationCommand = async (output, context) => {
1358
1846
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1359
- return de_GetConfiguredTableCommandError(output, context);
1847
+ return de_GetConfiguredTableAssociationCommandError(output, context);
1360
1848
  }
1361
1849
  const contents = map({
1362
1850
  $metadata: deserializeMetadata(output),
1363
1851
  });
1364
1852
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1365
1853
  const doc = take(data, {
1366
- configuredTable: (_) => de_ConfiguredTable(_, context),
1854
+ configuredTableAssociation: (_) => de_ConfiguredTableAssociation(_, context),
1367
1855
  });
1368
1856
  Object.assign(contents, doc);
1369
1857
  return contents;
1370
1858
  };
1371
- const de_GetConfiguredTableCommandError = async (output, context) => {
1859
+ const de_GetConfiguredTableAssociationCommandError = async (output, context) => {
1372
1860
  const parsedOutput = {
1373
1861
  ...output,
1374
1862
  body: await parseErrorBody(output.body, context),
@@ -1399,21 +1887,21 @@ const de_GetConfiguredTableCommandError = async (output, context) => {
1399
1887
  });
1400
1888
  }
1401
1889
  };
1402
- export const de_GetConfiguredTableAnalysisRuleCommand = async (output, context) => {
1890
+ export const de_GetMembershipCommand = async (output, context) => {
1403
1891
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1404
- return de_GetConfiguredTableAnalysisRuleCommandError(output, context);
1892
+ return de_GetMembershipCommandError(output, context);
1405
1893
  }
1406
1894
  const contents = map({
1407
1895
  $metadata: deserializeMetadata(output),
1408
1896
  });
1409
1897
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1410
1898
  const doc = take(data, {
1411
- analysisRule: (_) => de_ConfiguredTableAnalysisRule(_, context),
1899
+ membership: (_) => de_Membership(_, context),
1412
1900
  });
1413
1901
  Object.assign(contents, doc);
1414
1902
  return contents;
1415
1903
  };
1416
- const de_GetConfiguredTableAnalysisRuleCommandError = async (output, context) => {
1904
+ const de_GetMembershipCommandError = async (output, context) => {
1417
1905
  const parsedOutput = {
1418
1906
  ...output,
1419
1907
  body: await parseErrorBody(output.body, context),
@@ -1444,21 +1932,21 @@ const de_GetConfiguredTableAnalysisRuleCommandError = async (output, context) =>
1444
1932
  });
1445
1933
  }
1446
1934
  };
1447
- export const de_GetConfiguredTableAssociationCommand = async (output, context) => {
1935
+ export const de_GetProtectedQueryCommand = async (output, context) => {
1448
1936
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1449
- return de_GetConfiguredTableAssociationCommandError(output, context);
1937
+ return de_GetProtectedQueryCommandError(output, context);
1450
1938
  }
1451
1939
  const contents = map({
1452
1940
  $metadata: deserializeMetadata(output),
1453
1941
  });
1454
1942
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1455
1943
  const doc = take(data, {
1456
- configuredTableAssociation: (_) => de_ConfiguredTableAssociation(_, context),
1944
+ protectedQuery: (_) => de_ProtectedQuery(_, context),
1457
1945
  });
1458
1946
  Object.assign(contents, doc);
1459
1947
  return contents;
1460
1948
  };
1461
- const de_GetConfiguredTableAssociationCommandError = async (output, context) => {
1949
+ const de_GetProtectedQueryCommandError = async (output, context) => {
1462
1950
  const parsedOutput = {
1463
1951
  ...output,
1464
1952
  body: await parseErrorBody(output.body, context),
@@ -1489,21 +1977,21 @@ const de_GetConfiguredTableAssociationCommandError = async (output, context) =>
1489
1977
  });
1490
1978
  }
1491
1979
  };
1492
- export const de_GetMembershipCommand = async (output, context) => {
1980
+ export const de_GetSchemaCommand = async (output, context) => {
1493
1981
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1494
- return de_GetMembershipCommandError(output, context);
1982
+ return de_GetSchemaCommandError(output, context);
1495
1983
  }
1496
1984
  const contents = map({
1497
1985
  $metadata: deserializeMetadata(output),
1498
1986
  });
1499
1987
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1500
1988
  const doc = take(data, {
1501
- membership: (_) => de_Membership(_, context),
1989
+ schema: (_) => de_Schema(_, context),
1502
1990
  });
1503
1991
  Object.assign(contents, doc);
1504
1992
  return contents;
1505
1993
  };
1506
- const de_GetMembershipCommandError = async (output, context) => {
1994
+ const de_GetSchemaCommandError = async (output, context) => {
1507
1995
  const parsedOutput = {
1508
1996
  ...output,
1509
1997
  body: await parseErrorBody(output.body, context),
@@ -1534,21 +2022,21 @@ const de_GetMembershipCommandError = async (output, context) => {
1534
2022
  });
1535
2023
  }
1536
2024
  };
1537
- export const de_GetProtectedQueryCommand = async (output, context) => {
2025
+ export const de_GetSchemaAnalysisRuleCommand = async (output, context) => {
1538
2026
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1539
- return de_GetProtectedQueryCommandError(output, context);
2027
+ return de_GetSchemaAnalysisRuleCommandError(output, context);
1540
2028
  }
1541
2029
  const contents = map({
1542
2030
  $metadata: deserializeMetadata(output),
1543
2031
  });
1544
2032
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1545
2033
  const doc = take(data, {
1546
- protectedQuery: (_) => de_ProtectedQuery(_, context),
2034
+ analysisRule: (_) => de_AnalysisRule(_, context),
1547
2035
  });
1548
2036
  Object.assign(contents, doc);
1549
2037
  return contents;
1550
2038
  };
1551
- const de_GetProtectedQueryCommandError = async (output, context) => {
2039
+ const de_GetSchemaAnalysisRuleCommandError = async (output, context) => {
1552
2040
  const parsedOutput = {
1553
2041
  ...output,
1554
2042
  body: await parseErrorBody(output.body, context),
@@ -1579,21 +2067,22 @@ const de_GetProtectedQueryCommandError = async (output, context) => {
1579
2067
  });
1580
2068
  }
1581
2069
  };
1582
- export const de_GetSchemaCommand = async (output, context) => {
2070
+ export const de_ListAnalysisTemplatesCommand = async (output, context) => {
1583
2071
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1584
- return de_GetSchemaCommandError(output, context);
2072
+ return de_ListAnalysisTemplatesCommandError(output, context);
1585
2073
  }
1586
2074
  const contents = map({
1587
2075
  $metadata: deserializeMetadata(output),
1588
2076
  });
1589
2077
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1590
2078
  const doc = take(data, {
1591
- schema: (_) => de_Schema(_, context),
2079
+ analysisTemplateSummaries: (_) => de_AnalysisTemplateSummaryList(_, context),
2080
+ nextToken: __expectString,
1592
2081
  });
1593
2082
  Object.assign(contents, doc);
1594
2083
  return contents;
1595
2084
  };
1596
- const de_GetSchemaCommandError = async (output, context) => {
2085
+ const de_ListAnalysisTemplatesCommandError = async (output, context) => {
1597
2086
  const parsedOutput = {
1598
2087
  ...output,
1599
2088
  body: await parseErrorBody(output.body, context),
@@ -1624,21 +2113,22 @@ const de_GetSchemaCommandError = async (output, context) => {
1624
2113
  });
1625
2114
  }
1626
2115
  };
1627
- export const de_GetSchemaAnalysisRuleCommand = async (output, context) => {
2116
+ export const de_ListCollaborationAnalysisTemplatesCommand = async (output, context) => {
1628
2117
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1629
- return de_GetSchemaAnalysisRuleCommandError(output, context);
2118
+ return de_ListCollaborationAnalysisTemplatesCommandError(output, context);
1630
2119
  }
1631
2120
  const contents = map({
1632
2121
  $metadata: deserializeMetadata(output),
1633
2122
  });
1634
2123
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1635
2124
  const doc = take(data, {
1636
- analysisRule: (_) => de_AnalysisRule(_, context),
2125
+ collaborationAnalysisTemplateSummaries: (_) => de_CollaborationAnalysisTemplateSummaryList(_, context),
2126
+ nextToken: __expectString,
1637
2127
  });
1638
2128
  Object.assign(contents, doc);
1639
2129
  return contents;
1640
2130
  };
1641
- const de_GetSchemaAnalysisRuleCommandError = async (output, context) => {
2131
+ const de_ListCollaborationAnalysisTemplatesCommandError = async (output, context) => {
1642
2132
  const parsedOutput = {
1643
2133
  ...output,
1644
2134
  body: await parseErrorBody(output.body, context),
@@ -2130,6 +2620,51 @@ const de_UntagResourceCommandError = async (output, context) => {
2130
2620
  });
2131
2621
  }
2132
2622
  };
2623
+ export const de_UpdateAnalysisTemplateCommand = async (output, context) => {
2624
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2625
+ return de_UpdateAnalysisTemplateCommandError(output, context);
2626
+ }
2627
+ const contents = map({
2628
+ $metadata: deserializeMetadata(output),
2629
+ });
2630
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2631
+ const doc = take(data, {
2632
+ analysisTemplate: (_) => de_AnalysisTemplate(_, context),
2633
+ });
2634
+ Object.assign(contents, doc);
2635
+ return contents;
2636
+ };
2637
+ const de_UpdateAnalysisTemplateCommandError = async (output, context) => {
2638
+ const parsedOutput = {
2639
+ ...output,
2640
+ body: await parseErrorBody(output.body, context),
2641
+ };
2642
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2643
+ switch (errorCode) {
2644
+ case "AccessDeniedException":
2645
+ case "com.amazonaws.cleanrooms#AccessDeniedException":
2646
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2647
+ case "InternalServerException":
2648
+ case "com.amazonaws.cleanrooms#InternalServerException":
2649
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2650
+ case "ResourceNotFoundException":
2651
+ case "com.amazonaws.cleanrooms#ResourceNotFoundException":
2652
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2653
+ case "ThrottlingException":
2654
+ case "com.amazonaws.cleanrooms#ThrottlingException":
2655
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2656
+ case "ValidationException":
2657
+ case "com.amazonaws.cleanrooms#ValidationException":
2658
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2659
+ default:
2660
+ const parsedBody = parsedOutput.body;
2661
+ return throwDefaultError({
2662
+ output,
2663
+ parsedBody,
2664
+ errorCode,
2665
+ });
2666
+ }
2667
+ };
2133
2668
  export const de_UpdateCollaborationCommand = async (output, context) => {
2134
2669
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2135
2670
  return de_UpdateCollaborationCommandError(output, context);
@@ -2524,6 +3059,46 @@ const de_AnalysisRule = (output, context) => {
2524
3059
  updateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2525
3060
  });
2526
3061
  };
3062
+ const de_AnalysisTemplate = (output, context) => {
3063
+ return take(output, {
3064
+ analysisParameters: _json,
3065
+ arn: __expectString,
3066
+ collaborationArn: __expectString,
3067
+ collaborationId: __expectString,
3068
+ createTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3069
+ description: __expectString,
3070
+ format: __expectString,
3071
+ id: __expectString,
3072
+ membershipArn: __expectString,
3073
+ membershipId: __expectString,
3074
+ name: __expectString,
3075
+ schema: _json,
3076
+ source: (_) => _json(__expectUnion(_)),
3077
+ updateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3078
+ });
3079
+ };
3080
+ const de_AnalysisTemplateSummary = (output, context) => {
3081
+ return take(output, {
3082
+ arn: __expectString,
3083
+ collaborationArn: __expectString,
3084
+ collaborationId: __expectString,
3085
+ createTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3086
+ description: __expectString,
3087
+ id: __expectString,
3088
+ membershipArn: __expectString,
3089
+ membershipId: __expectString,
3090
+ name: __expectString,
3091
+ updateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3092
+ });
3093
+ };
3094
+ const de_AnalysisTemplateSummaryList = (output, context) => {
3095
+ const retVal = (output || [])
3096
+ .filter((e) => e != null)
3097
+ .map((entry) => {
3098
+ return de_AnalysisTemplateSummary(entry, context);
3099
+ });
3100
+ return retVal;
3101
+ };
2527
3102
  const de_Collaboration = (output, context) => {
2528
3103
  return take(output, {
2529
3104
  arn: __expectString,
@@ -2541,6 +3116,52 @@ const de_Collaboration = (output, context) => {
2541
3116
  updateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2542
3117
  });
2543
3118
  };
3119
+ const de_CollaborationAnalysisTemplate = (output, context) => {
3120
+ return take(output, {
3121
+ analysisParameters: _json,
3122
+ arn: __expectString,
3123
+ collaborationArn: __expectString,
3124
+ collaborationId: __expectString,
3125
+ createTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3126
+ creatorAccountId: __expectString,
3127
+ description: __expectString,
3128
+ format: __expectString,
3129
+ id: __expectString,
3130
+ name: __expectString,
3131
+ schema: _json,
3132
+ source: (_) => _json(__expectUnion(_)),
3133
+ updateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3134
+ });
3135
+ };
3136
+ const de_CollaborationAnalysisTemplateList = (output, context) => {
3137
+ const retVal = (output || [])
3138
+ .filter((e) => e != null)
3139
+ .map((entry) => {
3140
+ return de_CollaborationAnalysisTemplate(entry, context);
3141
+ });
3142
+ return retVal;
3143
+ };
3144
+ const de_CollaborationAnalysisTemplateSummary = (output, context) => {
3145
+ return take(output, {
3146
+ arn: __expectString,
3147
+ collaborationArn: __expectString,
3148
+ collaborationId: __expectString,
3149
+ createTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3150
+ creatorAccountId: __expectString,
3151
+ description: __expectString,
3152
+ id: __expectString,
3153
+ name: __expectString,
3154
+ updateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3155
+ });
3156
+ };
3157
+ const de_CollaborationAnalysisTemplateSummaryList = (output, context) => {
3158
+ const retVal = (output || [])
3159
+ .filter((e) => e != null)
3160
+ .map((entry) => {
3161
+ return de_CollaborationAnalysisTemplateSummary(entry, context);
3162
+ });
3163
+ return retVal;
3164
+ };
2544
3165
  const de_CollaborationSummary = (output, context) => {
2545
3166
  return take(output, {
2546
3167
  arn: __expectString,