@aws-sdk/client-cleanrooms 3.461.0 → 3.465.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 (123) hide show
  1. package/README.md +136 -0
  2. package/dist-cjs/CleanRooms.js +34 -0
  3. package/dist-cjs/commands/CreateConfiguredAudienceModelAssociationCommand.js +51 -0
  4. package/dist-cjs/commands/CreatePrivacyBudgetTemplateCommand.js +51 -0
  5. package/dist-cjs/commands/DeleteConfiguredAudienceModelAssociationCommand.js +51 -0
  6. package/dist-cjs/commands/DeletePrivacyBudgetTemplateCommand.js +51 -0
  7. package/dist-cjs/commands/GetCollaborationConfiguredAudienceModelAssociationCommand.js +51 -0
  8. package/dist-cjs/commands/GetCollaborationPrivacyBudgetTemplateCommand.js +51 -0
  9. package/dist-cjs/commands/GetConfiguredAudienceModelAssociationCommand.js +51 -0
  10. package/dist-cjs/commands/GetPrivacyBudgetTemplateCommand.js +51 -0
  11. package/dist-cjs/commands/ListCollaborationConfiguredAudienceModelAssociationsCommand.js +51 -0
  12. package/dist-cjs/commands/ListCollaborationPrivacyBudgetTemplatesCommand.js +51 -0
  13. package/dist-cjs/commands/ListCollaborationPrivacyBudgetsCommand.js +51 -0
  14. package/dist-cjs/commands/ListConfiguredAudienceModelAssociationsCommand.js +51 -0
  15. package/dist-cjs/commands/ListPrivacyBudgetTemplatesCommand.js +51 -0
  16. package/dist-cjs/commands/ListPrivacyBudgetsCommand.js +51 -0
  17. package/dist-cjs/commands/PreviewPrivacyImpactCommand.js +51 -0
  18. package/dist-cjs/commands/UpdateConfiguredAudienceModelAssociationCommand.js +51 -0
  19. package/dist-cjs/commands/UpdatePrivacyBudgetTemplateCommand.js +51 -0
  20. package/dist-cjs/commands/index.js +17 -0
  21. package/dist-cjs/models/models_0.js +64 -2
  22. package/dist-cjs/pagination/ListCollaborationConfiguredAudienceModelAssociationsPaginator.js +29 -0
  23. package/dist-cjs/pagination/ListCollaborationPrivacyBudgetTemplatesPaginator.js +29 -0
  24. package/dist-cjs/pagination/ListCollaborationPrivacyBudgetsPaginator.js +29 -0
  25. package/dist-cjs/pagination/ListConfiguredAudienceModelAssociationsPaginator.js +29 -0
  26. package/dist-cjs/pagination/ListPrivacyBudgetTemplatesPaginator.js +29 -0
  27. package/dist-cjs/pagination/ListPrivacyBudgetsPaginator.js +29 -0
  28. package/dist-cjs/pagination/index.js +6 -0
  29. package/dist-cjs/protocols/Aws_restJson1.js +1513 -128
  30. package/dist-es/CleanRooms.js +34 -0
  31. package/dist-es/commands/CreateConfiguredAudienceModelAssociationCommand.js +47 -0
  32. package/dist-es/commands/CreatePrivacyBudgetTemplateCommand.js +47 -0
  33. package/dist-es/commands/DeleteConfiguredAudienceModelAssociationCommand.js +47 -0
  34. package/dist-es/commands/DeletePrivacyBudgetTemplateCommand.js +47 -0
  35. package/dist-es/commands/GetCollaborationConfiguredAudienceModelAssociationCommand.js +47 -0
  36. package/dist-es/commands/GetCollaborationPrivacyBudgetTemplateCommand.js +47 -0
  37. package/dist-es/commands/GetConfiguredAudienceModelAssociationCommand.js +47 -0
  38. package/dist-es/commands/GetPrivacyBudgetTemplateCommand.js +47 -0
  39. package/dist-es/commands/ListCollaborationConfiguredAudienceModelAssociationsCommand.js +47 -0
  40. package/dist-es/commands/ListCollaborationPrivacyBudgetTemplatesCommand.js +47 -0
  41. package/dist-es/commands/ListCollaborationPrivacyBudgetsCommand.js +47 -0
  42. package/dist-es/commands/ListConfiguredAudienceModelAssociationsCommand.js +47 -0
  43. package/dist-es/commands/ListPrivacyBudgetTemplatesCommand.js +47 -0
  44. package/dist-es/commands/ListPrivacyBudgetsCommand.js +47 -0
  45. package/dist-es/commands/PreviewPrivacyImpactCommand.js +47 -0
  46. package/dist-es/commands/UpdateConfiguredAudienceModelAssociationCommand.js +47 -0
  47. package/dist-es/commands/UpdatePrivacyBudgetTemplateCommand.js +47 -0
  48. package/dist-es/commands/index.js +17 -0
  49. package/dist-es/models/models_0.js +62 -0
  50. package/dist-es/pagination/ListCollaborationConfiguredAudienceModelAssociationsPaginator.js +25 -0
  51. package/dist-es/pagination/ListCollaborationPrivacyBudgetTemplatesPaginator.js +25 -0
  52. package/dist-es/pagination/ListCollaborationPrivacyBudgetsPaginator.js +25 -0
  53. package/dist-es/pagination/ListConfiguredAudienceModelAssociationsPaginator.js +25 -0
  54. package/dist-es/pagination/ListPrivacyBudgetTemplatesPaginator.js +25 -0
  55. package/dist-es/pagination/ListPrivacyBudgetsPaginator.js +25 -0
  56. package/dist-es/pagination/index.js +6 -0
  57. package/dist-es/protocols/Aws_restJson1.js +1541 -191
  58. package/dist-types/CleanRooms.d.ts +119 -0
  59. package/dist-types/CleanRoomsClient.d.ts +19 -2
  60. package/dist-types/commands/CreateConfiguredAudienceModelAssociationCommand.d.ts +114 -0
  61. package/dist-types/commands/CreateConfiguredTableAnalysisRuleCommand.d.ts +14 -0
  62. package/dist-types/commands/CreatePrivacyBudgetTemplateCommand.d.ts +119 -0
  63. package/dist-types/commands/DeleteConfiguredAudienceModelAssociationCommand.d.ts +87 -0
  64. package/dist-types/commands/DeletePrivacyBudgetTemplateCommand.d.ts +87 -0
  65. package/dist-types/commands/GetCollaborationConfiguredAudienceModelAssociationCommand.d.ts +100 -0
  66. package/dist-types/commands/GetCollaborationPrivacyBudgetTemplateCommand.d.ts +105 -0
  67. package/dist-types/commands/GetConfiguredAudienceModelAssociationCommand.d.ts +102 -0
  68. package/dist-types/commands/GetConfiguredTableAnalysisRuleCommand.d.ts +7 -0
  69. package/dist-types/commands/GetPrivacyBudgetTemplateCommand.d.ts +106 -0
  70. package/dist-types/commands/GetProtectedQueryCommand.d.ts +11 -0
  71. package/dist-types/commands/GetSchemaAnalysisRuleCommand.d.ts +7 -0
  72. package/dist-types/commands/ListCollaborationConfiguredAudienceModelAssociationsCommand.d.ts +103 -0
  73. package/dist-types/commands/ListCollaborationPrivacyBudgetTemplatesCommand.d.ts +102 -0
  74. package/dist-types/commands/ListCollaborationPrivacyBudgetsCommand.d.ts +116 -0
  75. package/dist-types/commands/ListConfiguredAudienceModelAssociationsCommand.d.ts +105 -0
  76. package/dist-types/commands/ListPrivacyBudgetTemplatesCommand.d.ts +103 -0
  77. package/dist-types/commands/ListPrivacyBudgetsCommand.d.ts +117 -0
  78. package/dist-types/commands/PreviewPrivacyImpactCommand.d.ts +103 -0
  79. package/dist-types/commands/StartProtectedQueryCommand.d.ts +11 -0
  80. package/dist-types/commands/UpdateConfiguredAudienceModelAssociationCommand.d.ts +104 -0
  81. package/dist-types/commands/UpdateConfiguredTableAnalysisRuleCommand.d.ts +14 -0
  82. package/dist-types/commands/UpdatePrivacyBudgetTemplateCommand.d.ts +116 -0
  83. package/dist-types/commands/UpdateProtectedQueryCommand.d.ts +11 -0
  84. package/dist-types/commands/index.d.ts +17 -0
  85. package/dist-types/models/models_0.d.ts +2605 -1044
  86. package/dist-types/pagination/ListCollaborationConfiguredAudienceModelAssociationsPaginator.d.ts +7 -0
  87. package/dist-types/pagination/ListCollaborationPrivacyBudgetTemplatesPaginator.d.ts +7 -0
  88. package/dist-types/pagination/ListCollaborationPrivacyBudgetsPaginator.d.ts +7 -0
  89. package/dist-types/pagination/ListConfiguredAudienceModelAssociationsPaginator.d.ts +7 -0
  90. package/dist-types/pagination/ListPrivacyBudgetTemplatesPaginator.d.ts +7 -0
  91. package/dist-types/pagination/ListPrivacyBudgetsPaginator.d.ts +7 -0
  92. package/dist-types/pagination/index.d.ts +6 -0
  93. package/dist-types/protocols/Aws_restJson1.d.ts +153 -0
  94. package/dist-types/ts3.4/CleanRooms.d.ts +343 -0
  95. package/dist-types/ts3.4/CleanRoomsClient.d.ts +102 -0
  96. package/dist-types/ts3.4/commands/CreateConfiguredAudienceModelAssociationCommand.d.ts +42 -0
  97. package/dist-types/ts3.4/commands/CreatePrivacyBudgetTemplateCommand.d.ts +42 -0
  98. package/dist-types/ts3.4/commands/DeleteConfiguredAudienceModelAssociationCommand.d.ts +42 -0
  99. package/dist-types/ts3.4/commands/DeletePrivacyBudgetTemplateCommand.d.ts +42 -0
  100. package/dist-types/ts3.4/commands/GetCollaborationConfiguredAudienceModelAssociationCommand.d.ts +44 -0
  101. package/dist-types/ts3.4/commands/GetCollaborationPrivacyBudgetTemplateCommand.d.ts +42 -0
  102. package/dist-types/ts3.4/commands/GetConfiguredAudienceModelAssociationCommand.d.ts +42 -0
  103. package/dist-types/ts3.4/commands/GetPrivacyBudgetTemplateCommand.d.ts +42 -0
  104. package/dist-types/ts3.4/commands/ListCollaborationConfiguredAudienceModelAssociationsCommand.d.ts +44 -0
  105. package/dist-types/ts3.4/commands/ListCollaborationPrivacyBudgetTemplatesCommand.d.ts +42 -0
  106. package/dist-types/ts3.4/commands/ListCollaborationPrivacyBudgetsCommand.d.ts +42 -0
  107. package/dist-types/ts3.4/commands/ListConfiguredAudienceModelAssociationsCommand.d.ts +42 -0
  108. package/dist-types/ts3.4/commands/ListPrivacyBudgetTemplatesCommand.d.ts +42 -0
  109. package/dist-types/ts3.4/commands/ListPrivacyBudgetsCommand.d.ts +39 -0
  110. package/dist-types/ts3.4/commands/PreviewPrivacyImpactCommand.d.ts +42 -0
  111. package/dist-types/ts3.4/commands/UpdateConfiguredAudienceModelAssociationCommand.d.ts +42 -0
  112. package/dist-types/ts3.4/commands/UpdatePrivacyBudgetTemplateCommand.d.ts +42 -0
  113. package/dist-types/ts3.4/commands/index.d.ts +17 -0
  114. package/dist-types/ts3.4/models/models_0.d.ts +477 -0
  115. package/dist-types/ts3.4/pagination/ListCollaborationConfiguredAudienceModelAssociationsPaginator.d.ts +11 -0
  116. package/dist-types/ts3.4/pagination/ListCollaborationPrivacyBudgetTemplatesPaginator.d.ts +11 -0
  117. package/dist-types/ts3.4/pagination/ListCollaborationPrivacyBudgetsPaginator.d.ts +11 -0
  118. package/dist-types/ts3.4/pagination/ListConfiguredAudienceModelAssociationsPaginator.d.ts +11 -0
  119. package/dist-types/ts3.4/pagination/ListPrivacyBudgetTemplatesPaginator.d.ts +11 -0
  120. package/dist-types/ts3.4/pagination/ListPrivacyBudgetsPaginator.d.ts +11 -0
  121. package/dist-types/ts3.4/pagination/index.d.ts +6 -0
  122. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +204 -0
  123. package/package.json +14 -16
@@ -1,6 +1,6 @@
1
1
  import { awsExpectUnion as __expectUnion } from "@aws-sdk/core";
2
2
  import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, take, withBaseException, } from "@smithy/smithy-client";
3
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, limitedParseFloat32 as __limitedParseFloat32, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, take, withBaseException, } from "@smithy/smithy-client";
4
4
  import { CleanRoomsServiceException as __BaseException } from "../models/CleanRoomsServiceException";
5
5
  import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
6
6
  export const se_BatchGetCollaborationAnalysisTemplateCommand = async (input, context) => {
@@ -102,6 +102,32 @@ export const se_CreateCollaborationCommand = async (input, context) => {
102
102
  body,
103
103
  });
104
104
  };
105
+ export const se_CreateConfiguredAudienceModelAssociationCommand = async (input, context) => {
106
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
107
+ const headers = {
108
+ "content-type": "application/json",
109
+ };
110
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
111
+ "/memberships/{membershipIdentifier}/configuredaudiencemodelassociations";
112
+ resolvedPath = __resolvedPath(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
113
+ let body;
114
+ body = JSON.stringify(take(input, {
115
+ configuredAudienceModelArn: [],
116
+ configuredAudienceModelAssociationName: [],
117
+ description: [],
118
+ manageResourcePolicies: [],
119
+ tags: (_) => _json(_),
120
+ }));
121
+ return new __HttpRequest({
122
+ protocol,
123
+ hostname,
124
+ port,
125
+ method: "POST",
126
+ headers,
127
+ path: resolvedPath,
128
+ body,
129
+ });
130
+ };
105
131
  export const se_CreateConfiguredTableCommand = async (input, context) => {
106
132
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
107
133
  const headers = {
@@ -200,6 +226,31 @@ export const se_CreateMembershipCommand = async (input, context) => {
200
226
  body,
201
227
  });
202
228
  };
229
+ export const se_CreatePrivacyBudgetTemplateCommand = async (input, context) => {
230
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
231
+ const headers = {
232
+ "content-type": "application/json",
233
+ };
234
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
235
+ "/memberships/{membershipIdentifier}/privacybudgettemplates";
236
+ resolvedPath = __resolvedPath(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
237
+ let body;
238
+ body = JSON.stringify(take(input, {
239
+ autoRefresh: [],
240
+ parameters: (_) => _json(_),
241
+ privacyBudgetType: [],
242
+ tags: (_) => _json(_),
243
+ }));
244
+ return new __HttpRequest({
245
+ protocol,
246
+ hostname,
247
+ port,
248
+ method: "POST",
249
+ headers,
250
+ path: resolvedPath,
251
+ body,
252
+ });
253
+ };
203
254
  export const se_DeleteAnalysisTemplateCommand = async (input, context) => {
204
255
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
205
256
  const headers = {};
@@ -234,6 +285,24 @@ export const se_DeleteCollaborationCommand = async (input, context) => {
234
285
  body,
235
286
  });
236
287
  };
288
+ export const se_DeleteConfiguredAudienceModelAssociationCommand = async (input, context) => {
289
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
290
+ const headers = {};
291
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
292
+ "/memberships/{membershipIdentifier}/configuredaudiencemodelassociations/{configuredAudienceModelAssociationIdentifier}";
293
+ resolvedPath = __resolvedPath(resolvedPath, input, "configuredAudienceModelAssociationIdentifier", () => input.configuredAudienceModelAssociationIdentifier, "{configuredAudienceModelAssociationIdentifier}", false);
294
+ resolvedPath = __resolvedPath(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
295
+ let body;
296
+ return new __HttpRequest({
297
+ protocol,
298
+ hostname,
299
+ port,
300
+ method: "DELETE",
301
+ headers,
302
+ path: resolvedPath,
303
+ body,
304
+ });
305
+ };
237
306
  export const se_DeleteConfiguredTableCommand = async (input, context) => {
238
307
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
239
308
  const headers = {};
@@ -321,6 +390,24 @@ export const se_DeleteMembershipCommand = async (input, context) => {
321
390
  body,
322
391
  });
323
392
  };
393
+ export const se_DeletePrivacyBudgetTemplateCommand = async (input, context) => {
394
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
395
+ const headers = {};
396
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
397
+ "/memberships/{membershipIdentifier}/privacybudgettemplates/{privacyBudgetTemplateIdentifier}";
398
+ resolvedPath = __resolvedPath(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
399
+ resolvedPath = __resolvedPath(resolvedPath, input, "privacyBudgetTemplateIdentifier", () => input.privacyBudgetTemplateIdentifier, "{privacyBudgetTemplateIdentifier}", false);
400
+ let body;
401
+ return new __HttpRequest({
402
+ protocol,
403
+ hostname,
404
+ port,
405
+ method: "DELETE",
406
+ headers,
407
+ path: resolvedPath,
408
+ body,
409
+ });
410
+ };
324
411
  export const se_GetAnalysisTemplateCommand = async (input, context) => {
325
412
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
326
413
  const headers = {};
@@ -373,6 +460,60 @@ export const se_GetCollaborationAnalysisTemplateCommand = async (input, context)
373
460
  body,
374
461
  });
375
462
  };
463
+ export const se_GetCollaborationConfiguredAudienceModelAssociationCommand = async (input, context) => {
464
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
465
+ const headers = {};
466
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
467
+ "/collaborations/{collaborationIdentifier}/configuredaudiencemodelassociations/{configuredAudienceModelAssociationIdentifier}";
468
+ resolvedPath = __resolvedPath(resolvedPath, input, "collaborationIdentifier", () => input.collaborationIdentifier, "{collaborationIdentifier}", false);
469
+ resolvedPath = __resolvedPath(resolvedPath, input, "configuredAudienceModelAssociationIdentifier", () => input.configuredAudienceModelAssociationIdentifier, "{configuredAudienceModelAssociationIdentifier}", false);
470
+ let body;
471
+ return new __HttpRequest({
472
+ protocol,
473
+ hostname,
474
+ port,
475
+ method: "GET",
476
+ headers,
477
+ path: resolvedPath,
478
+ body,
479
+ });
480
+ };
481
+ export const se_GetCollaborationPrivacyBudgetTemplateCommand = async (input, context) => {
482
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
483
+ const headers = {};
484
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
485
+ "/collaborations/{collaborationIdentifier}/privacybudgettemplates/{privacyBudgetTemplateIdentifier}";
486
+ resolvedPath = __resolvedPath(resolvedPath, input, "collaborationIdentifier", () => input.collaborationIdentifier, "{collaborationIdentifier}", false);
487
+ resolvedPath = __resolvedPath(resolvedPath, input, "privacyBudgetTemplateIdentifier", () => input.privacyBudgetTemplateIdentifier, "{privacyBudgetTemplateIdentifier}", false);
488
+ let body;
489
+ return new __HttpRequest({
490
+ protocol,
491
+ hostname,
492
+ port,
493
+ method: "GET",
494
+ headers,
495
+ path: resolvedPath,
496
+ body,
497
+ });
498
+ };
499
+ export const se_GetConfiguredAudienceModelAssociationCommand = async (input, context) => {
500
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
501
+ const headers = {};
502
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
503
+ "/memberships/{membershipIdentifier}/configuredaudiencemodelassociations/{configuredAudienceModelAssociationIdentifier}";
504
+ resolvedPath = __resolvedPath(resolvedPath, input, "configuredAudienceModelAssociationIdentifier", () => input.configuredAudienceModelAssociationIdentifier, "{configuredAudienceModelAssociationIdentifier}", false);
505
+ resolvedPath = __resolvedPath(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
506
+ let body;
507
+ return new __HttpRequest({
508
+ protocol,
509
+ hostname,
510
+ port,
511
+ method: "GET",
512
+ headers,
513
+ path: resolvedPath,
514
+ body,
515
+ });
516
+ };
376
517
  export const se_GetConfiguredTableCommand = async (input, context) => {
377
518
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
378
519
  const headers = {};
@@ -442,6 +583,24 @@ export const se_GetMembershipCommand = async (input, context) => {
442
583
  body,
443
584
  });
444
585
  };
586
+ export const se_GetPrivacyBudgetTemplateCommand = async (input, context) => {
587
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
588
+ const headers = {};
589
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
590
+ "/memberships/{membershipIdentifier}/privacybudgettemplates/{privacyBudgetTemplateIdentifier}";
591
+ resolvedPath = __resolvedPath(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
592
+ resolvedPath = __resolvedPath(resolvedPath, input, "privacyBudgetTemplateIdentifier", () => input.privacyBudgetTemplateIdentifier, "{privacyBudgetTemplateIdentifier}", false);
593
+ let body;
594
+ return new __HttpRequest({
595
+ protocol,
596
+ hostname,
597
+ port,
598
+ method: "GET",
599
+ headers,
600
+ path: resolvedPath,
601
+ body,
602
+ });
603
+ };
445
604
  export const se_GetProtectedQueryCommand = async (input, context) => {
446
605
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
447
606
  const headers = {};
@@ -541,14 +700,15 @@ export const se_ListCollaborationAnalysisTemplatesCommand = async (input, contex
541
700
  body,
542
701
  });
543
702
  };
544
- export const se_ListCollaborationsCommand = async (input, context) => {
703
+ export const se_ListCollaborationConfiguredAudienceModelAssociationsCommand = async (input, context) => {
545
704
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
546
705
  const headers = {};
547
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/collaborations";
706
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
707
+ "/collaborations/{collaborationIdentifier}/configuredaudiencemodelassociations";
708
+ resolvedPath = __resolvedPath(resolvedPath, input, "collaborationIdentifier", () => input.collaborationIdentifier, "{collaborationIdentifier}", false);
548
709
  const query = map({
549
710
  nextToken: [, input.nextToken],
550
711
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
551
- memberStatus: [, input.memberStatus],
552
712
  });
553
713
  let body;
554
714
  return new __HttpRequest({
@@ -562,15 +722,16 @@ export const se_ListCollaborationsCommand = async (input, context) => {
562
722
  body,
563
723
  });
564
724
  };
565
- export const se_ListConfiguredTableAssociationsCommand = async (input, context) => {
725
+ export const se_ListCollaborationPrivacyBudgetsCommand = async (input, context) => {
566
726
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
567
727
  const headers = {};
568
728
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
569
- "/memberships/{membershipIdentifier}/configuredTableAssociations";
570
- resolvedPath = __resolvedPath(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
729
+ "/collaborations/{collaborationIdentifier}/privacybudgets";
730
+ resolvedPath = __resolvedPath(resolvedPath, input, "collaborationIdentifier", () => input.collaborationIdentifier, "{collaborationIdentifier}", false);
571
731
  const query = map({
572
- nextToken: [, input.nextToken],
732
+ privacyBudgetType: [, __expectNonNull(input.privacyBudgetType, `privacyBudgetType`)],
573
733
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
734
+ nextToken: [, input.nextToken],
574
735
  });
575
736
  let body;
576
737
  return new __HttpRequest({
@@ -584,10 +745,12 @@ export const se_ListConfiguredTableAssociationsCommand = async (input, context)
584
745
  body,
585
746
  });
586
747
  };
587
- export const se_ListConfiguredTablesCommand = async (input, context) => {
748
+ export const se_ListCollaborationPrivacyBudgetTemplatesCommand = async (input, context) => {
588
749
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
589
750
  const headers = {};
590
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configuredTables";
751
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
752
+ "/collaborations/{collaborationIdentifier}/privacybudgettemplates";
753
+ resolvedPath = __resolvedPath(resolvedPath, input, "collaborationIdentifier", () => input.collaborationIdentifier, "{collaborationIdentifier}", false);
591
754
  const query = map({
592
755
  nextToken: [, input.nextToken],
593
756
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
@@ -604,15 +767,14 @@ export const se_ListConfiguredTablesCommand = async (input, context) => {
604
767
  body,
605
768
  });
606
769
  };
607
- export const se_ListMembersCommand = async (input, context) => {
770
+ export const se_ListCollaborationsCommand = async (input, context) => {
608
771
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
609
772
  const headers = {};
610
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
611
- "/collaborations/{collaborationIdentifier}/members";
612
- resolvedPath = __resolvedPath(resolvedPath, input, "collaborationIdentifier", () => input.collaborationIdentifier, "{collaborationIdentifier}", false);
773
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/collaborations";
613
774
  const query = map({
614
775
  nextToken: [, input.nextToken],
615
776
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
777
+ memberStatus: [, input.memberStatus],
616
778
  });
617
779
  let body;
618
780
  return new __HttpRequest({
@@ -626,14 +788,15 @@ export const se_ListMembersCommand = async (input, context) => {
626
788
  body,
627
789
  });
628
790
  };
629
- export const se_ListMembershipsCommand = async (input, context) => {
791
+ export const se_ListConfiguredAudienceModelAssociationsCommand = async (input, context) => {
630
792
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
631
793
  const headers = {};
632
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/memberships";
794
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
795
+ "/memberships/{membershipIdentifier}/configuredaudiencemodelassociations";
796
+ resolvedPath = __resolvedPath(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
633
797
  const query = map({
634
798
  nextToken: [, input.nextToken],
635
799
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
636
- status: [, input.status],
637
800
  });
638
801
  let body;
639
802
  return new __HttpRequest({
@@ -647,14 +810,13 @@ export const se_ListMembershipsCommand = async (input, context) => {
647
810
  body,
648
811
  });
649
812
  };
650
- export const se_ListProtectedQueriesCommand = async (input, context) => {
813
+ export const se_ListConfiguredTableAssociationsCommand = async (input, context) => {
651
814
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
652
815
  const headers = {};
653
816
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
654
- "/memberships/{membershipIdentifier}/protectedQueries";
817
+ "/memberships/{membershipIdentifier}/configuredTableAssociations";
655
818
  resolvedPath = __resolvedPath(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
656
819
  const query = map({
657
- status: [, input.status],
658
820
  nextToken: [, input.nextToken],
659
821
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
660
822
  });
@@ -670,14 +832,11 @@ export const se_ListProtectedQueriesCommand = async (input, context) => {
670
832
  body,
671
833
  });
672
834
  };
673
- export const se_ListSchemasCommand = async (input, context) => {
835
+ export const se_ListConfiguredTablesCommand = async (input, context) => {
674
836
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
675
837
  const headers = {};
676
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
677
- "/collaborations/{collaborationIdentifier}/schemas";
678
- resolvedPath = __resolvedPath(resolvedPath, input, "collaborationIdentifier", () => input.collaborationIdentifier, "{collaborationIdentifier}", false);
838
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configuredTables";
679
839
  const query = map({
680
- schemaType: [, input.schemaType],
681
840
  nextToken: [, input.nextToken],
682
841
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
683
842
  });
@@ -693,11 +852,16 @@ export const se_ListSchemasCommand = async (input, context) => {
693
852
  body,
694
853
  });
695
854
  };
696
- export const se_ListTagsForResourceCommand = async (input, context) => {
855
+ export const se_ListMembersCommand = async (input, context) => {
697
856
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
698
857
  const headers = {};
699
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
700
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
858
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
859
+ "/collaborations/{collaborationIdentifier}/members";
860
+ resolvedPath = __resolvedPath(resolvedPath, input, "collaborationIdentifier", () => input.collaborationIdentifier, "{collaborationIdentifier}", false);
861
+ const query = map({
862
+ nextToken: [, input.nextToken],
863
+ maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
864
+ });
701
865
  let body;
702
866
  return new __HttpRequest({
703
867
  protocol,
@@ -706,95 +870,246 @@ export const se_ListTagsForResourceCommand = async (input, context) => {
706
870
  method: "GET",
707
871
  headers,
708
872
  path: resolvedPath,
873
+ query,
709
874
  body,
710
875
  });
711
876
  };
712
- export const se_StartProtectedQueryCommand = async (input, context) => {
877
+ export const se_ListMembershipsCommand = async (input, context) => {
713
878
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
714
- const headers = {
715
- "content-type": "application/json",
716
- };
717
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
718
- "/memberships/{membershipIdentifier}/protectedQueries";
719
- resolvedPath = __resolvedPath(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
879
+ const headers = {};
880
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/memberships";
881
+ const query = map({
882
+ nextToken: [, input.nextToken],
883
+ maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
884
+ status: [, input.status],
885
+ });
720
886
  let body;
721
- body = JSON.stringify(take(input, {
722
- resultConfiguration: (_) => _json(_),
723
- sqlParameters: (_) => _json(_),
724
- type: [],
725
- }));
726
887
  return new __HttpRequest({
727
888
  protocol,
728
889
  hostname,
729
890
  port,
730
- method: "POST",
891
+ method: "GET",
731
892
  headers,
732
893
  path: resolvedPath,
894
+ query,
733
895
  body,
734
896
  });
735
897
  };
736
- export const se_TagResourceCommand = async (input, context) => {
898
+ export const se_ListPrivacyBudgetsCommand = async (input, context) => {
737
899
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
738
- const headers = {
739
- "content-type": "application/json",
740
- };
741
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
742
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
900
+ const headers = {};
901
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
902
+ "/memberships/{membershipIdentifier}/privacybudgets";
903
+ resolvedPath = __resolvedPath(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
904
+ const query = map({
905
+ privacyBudgetType: [, __expectNonNull(input.privacyBudgetType, `privacyBudgetType`)],
906
+ nextToken: [, input.nextToken],
907
+ maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
908
+ });
743
909
  let body;
744
- body = JSON.stringify(take(input, {
745
- tags: (_) => _json(_),
746
- }));
747
910
  return new __HttpRequest({
748
911
  protocol,
749
912
  hostname,
750
913
  port,
751
- method: "POST",
914
+ method: "GET",
752
915
  headers,
753
916
  path: resolvedPath,
917
+ query,
754
918
  body,
755
919
  });
756
920
  };
757
- export const se_UntagResourceCommand = async (input, context) => {
921
+ export const se_ListPrivacyBudgetTemplatesCommand = async (input, context) => {
758
922
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
759
923
  const headers = {};
760
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
761
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
924
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
925
+ "/memberships/{membershipIdentifier}/privacybudgettemplates";
926
+ resolvedPath = __resolvedPath(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
762
927
  const query = map({
763
- tagKeys: [
764
- __expectNonNull(input.tagKeys, `tagKeys`) != null,
765
- () => (input.tagKeys || []).map((_entry) => _entry),
766
- ],
928
+ nextToken: [, input.nextToken],
929
+ maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
767
930
  });
768
931
  let body;
769
932
  return new __HttpRequest({
770
933
  protocol,
771
934
  hostname,
772
935
  port,
773
- method: "DELETE",
936
+ method: "GET",
774
937
  headers,
775
938
  path: resolvedPath,
776
939
  query,
777
940
  body,
778
941
  });
779
942
  };
780
- export const se_UpdateAnalysisTemplateCommand = async (input, context) => {
943
+ export const se_ListProtectedQueriesCommand = async (input, context) => {
781
944
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
782
- const headers = {
783
- "content-type": "application/json",
784
- };
945
+ const headers = {};
785
946
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
786
- "/memberships/{membershipIdentifier}/analysistemplates/{analysisTemplateIdentifier}";
947
+ "/memberships/{membershipIdentifier}/protectedQueries";
787
948
  resolvedPath = __resolvedPath(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
788
- resolvedPath = __resolvedPath(resolvedPath, input, "analysisTemplateIdentifier", () => input.analysisTemplateIdentifier, "{analysisTemplateIdentifier}", false);
949
+ const query = map({
950
+ status: [, input.status],
951
+ nextToken: [, input.nextToken],
952
+ maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
953
+ });
789
954
  let body;
790
- body = JSON.stringify(take(input, {
791
- description: [],
792
- }));
793
955
  return new __HttpRequest({
794
956
  protocol,
795
957
  hostname,
796
958
  port,
797
- method: "PATCH",
959
+ method: "GET",
960
+ headers,
961
+ path: resolvedPath,
962
+ query,
963
+ body,
964
+ });
965
+ };
966
+ export const se_ListSchemasCommand = async (input, context) => {
967
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
968
+ const headers = {};
969
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
970
+ "/collaborations/{collaborationIdentifier}/schemas";
971
+ resolvedPath = __resolvedPath(resolvedPath, input, "collaborationIdentifier", () => input.collaborationIdentifier, "{collaborationIdentifier}", false);
972
+ const query = map({
973
+ schemaType: [, input.schemaType],
974
+ nextToken: [, input.nextToken],
975
+ maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
976
+ });
977
+ let body;
978
+ return new __HttpRequest({
979
+ protocol,
980
+ hostname,
981
+ port,
982
+ method: "GET",
983
+ headers,
984
+ path: resolvedPath,
985
+ query,
986
+ body,
987
+ });
988
+ };
989
+ export const se_ListTagsForResourceCommand = async (input, context) => {
990
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
991
+ const headers = {};
992
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
993
+ resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
994
+ let body;
995
+ return new __HttpRequest({
996
+ protocol,
997
+ hostname,
998
+ port,
999
+ method: "GET",
1000
+ headers,
1001
+ path: resolvedPath,
1002
+ body,
1003
+ });
1004
+ };
1005
+ export const se_PreviewPrivacyImpactCommand = async (input, context) => {
1006
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1007
+ const headers = {
1008
+ "content-type": "application/json",
1009
+ };
1010
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1011
+ "/memberships/{membershipIdentifier}/previewprivacyimpact";
1012
+ resolvedPath = __resolvedPath(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
1013
+ let body;
1014
+ body = JSON.stringify(take(input, {
1015
+ parameters: (_) => _json(_),
1016
+ }));
1017
+ return new __HttpRequest({
1018
+ protocol,
1019
+ hostname,
1020
+ port,
1021
+ method: "POST",
1022
+ headers,
1023
+ path: resolvedPath,
1024
+ body,
1025
+ });
1026
+ };
1027
+ export const se_StartProtectedQueryCommand = async (input, context) => {
1028
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1029
+ const headers = {
1030
+ "content-type": "application/json",
1031
+ };
1032
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1033
+ "/memberships/{membershipIdentifier}/protectedQueries";
1034
+ resolvedPath = __resolvedPath(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
1035
+ let body;
1036
+ body = JSON.stringify(take(input, {
1037
+ resultConfiguration: (_) => _json(_),
1038
+ sqlParameters: (_) => _json(_),
1039
+ type: [],
1040
+ }));
1041
+ return new __HttpRequest({
1042
+ protocol,
1043
+ hostname,
1044
+ port,
1045
+ method: "POST",
1046
+ headers,
1047
+ path: resolvedPath,
1048
+ body,
1049
+ });
1050
+ };
1051
+ export const se_TagResourceCommand = async (input, context) => {
1052
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1053
+ const headers = {
1054
+ "content-type": "application/json",
1055
+ };
1056
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
1057
+ resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
1058
+ let body;
1059
+ body = JSON.stringify(take(input, {
1060
+ tags: (_) => _json(_),
1061
+ }));
1062
+ return new __HttpRequest({
1063
+ protocol,
1064
+ hostname,
1065
+ port,
1066
+ method: "POST",
1067
+ headers,
1068
+ path: resolvedPath,
1069
+ body,
1070
+ });
1071
+ };
1072
+ export const se_UntagResourceCommand = async (input, context) => {
1073
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1074
+ const headers = {};
1075
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
1076
+ resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
1077
+ const query = map({
1078
+ tagKeys: [
1079
+ __expectNonNull(input.tagKeys, `tagKeys`) != null,
1080
+ () => (input.tagKeys || []).map((_entry) => _entry),
1081
+ ],
1082
+ });
1083
+ let body;
1084
+ return new __HttpRequest({
1085
+ protocol,
1086
+ hostname,
1087
+ port,
1088
+ method: "DELETE",
1089
+ headers,
1090
+ path: resolvedPath,
1091
+ query,
1092
+ body,
1093
+ });
1094
+ };
1095
+ export const se_UpdateAnalysisTemplateCommand = async (input, context) => {
1096
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1097
+ const headers = {
1098
+ "content-type": "application/json",
1099
+ };
1100
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1101
+ "/memberships/{membershipIdentifier}/analysistemplates/{analysisTemplateIdentifier}";
1102
+ resolvedPath = __resolvedPath(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
1103
+ resolvedPath = __resolvedPath(resolvedPath, input, "analysisTemplateIdentifier", () => input.analysisTemplateIdentifier, "{analysisTemplateIdentifier}", false);
1104
+ let body;
1105
+ body = JSON.stringify(take(input, {
1106
+ description: [],
1107
+ }));
1108
+ return new __HttpRequest({
1109
+ protocol,
1110
+ hostname,
1111
+ port,
1112
+ method: "PATCH",
798
1113
  headers,
799
1114
  path: resolvedPath,
800
1115
  body,
@@ -822,6 +1137,30 @@ export const se_UpdateCollaborationCommand = async (input, context) => {
822
1137
  body,
823
1138
  });
824
1139
  };
1140
+ export const se_UpdateConfiguredAudienceModelAssociationCommand = async (input, context) => {
1141
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1142
+ const headers = {
1143
+ "content-type": "application/json",
1144
+ };
1145
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1146
+ "/memberships/{membershipIdentifier}/configuredaudiencemodelassociations/{configuredAudienceModelAssociationIdentifier}";
1147
+ resolvedPath = __resolvedPath(resolvedPath, input, "configuredAudienceModelAssociationIdentifier", () => input.configuredAudienceModelAssociationIdentifier, "{configuredAudienceModelAssociationIdentifier}", false);
1148
+ resolvedPath = __resolvedPath(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
1149
+ let body;
1150
+ body = JSON.stringify(take(input, {
1151
+ description: [],
1152
+ name: [],
1153
+ }));
1154
+ return new __HttpRequest({
1155
+ protocol,
1156
+ hostname,
1157
+ port,
1158
+ method: "PATCH",
1159
+ headers,
1160
+ path: resolvedPath,
1161
+ body,
1162
+ });
1163
+ };
825
1164
  export const se_UpdateConfiguredTableCommand = async (input, context) => {
826
1165
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
827
1166
  const headers = {
@@ -914,6 +1253,30 @@ export const se_UpdateMembershipCommand = async (input, context) => {
914
1253
  body,
915
1254
  });
916
1255
  };
1256
+ export const se_UpdatePrivacyBudgetTemplateCommand = async (input, context) => {
1257
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1258
+ const headers = {
1259
+ "content-type": "application/json",
1260
+ };
1261
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1262
+ "/memberships/{membershipIdentifier}/privacybudgettemplates/{privacyBudgetTemplateIdentifier}";
1263
+ resolvedPath = __resolvedPath(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
1264
+ resolvedPath = __resolvedPath(resolvedPath, input, "privacyBudgetTemplateIdentifier", () => input.privacyBudgetTemplateIdentifier, "{privacyBudgetTemplateIdentifier}", false);
1265
+ let body;
1266
+ body = JSON.stringify(take(input, {
1267
+ parameters: (_) => _json(_),
1268
+ privacyBudgetType: [],
1269
+ }));
1270
+ return new __HttpRequest({
1271
+ protocol,
1272
+ hostname,
1273
+ port,
1274
+ method: "PATCH",
1275
+ headers,
1276
+ path: resolvedPath,
1277
+ body,
1278
+ });
1279
+ };
917
1280
  export const se_UpdateProtectedQueryCommand = async (input, context) => {
918
1281
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
919
1282
  const headers = {
@@ -1125,6 +1488,57 @@ const de_CreateCollaborationCommandError = async (output, context) => {
1125
1488
  });
1126
1489
  }
1127
1490
  };
1491
+ export const de_CreateConfiguredAudienceModelAssociationCommand = async (output, context) => {
1492
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1493
+ return de_CreateConfiguredAudienceModelAssociationCommandError(output, context);
1494
+ }
1495
+ const contents = map({
1496
+ $metadata: deserializeMetadata(output),
1497
+ });
1498
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1499
+ const doc = take(data, {
1500
+ configuredAudienceModelAssociation: (_) => de_ConfiguredAudienceModelAssociation(_, context),
1501
+ });
1502
+ Object.assign(contents, doc);
1503
+ return contents;
1504
+ };
1505
+ const de_CreateConfiguredAudienceModelAssociationCommandError = async (output, context) => {
1506
+ const parsedOutput = {
1507
+ ...output,
1508
+ body: await parseErrorBody(output.body, context),
1509
+ };
1510
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1511
+ switch (errorCode) {
1512
+ case "AccessDeniedException":
1513
+ case "com.amazonaws.cleanrooms#AccessDeniedException":
1514
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1515
+ case "ConflictException":
1516
+ case "com.amazonaws.cleanrooms#ConflictException":
1517
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1518
+ case "InternalServerException":
1519
+ case "com.amazonaws.cleanrooms#InternalServerException":
1520
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1521
+ case "ResourceNotFoundException":
1522
+ case "com.amazonaws.cleanrooms#ResourceNotFoundException":
1523
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1524
+ case "ServiceQuotaExceededException":
1525
+ case "com.amazonaws.cleanrooms#ServiceQuotaExceededException":
1526
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1527
+ case "ThrottlingException":
1528
+ case "com.amazonaws.cleanrooms#ThrottlingException":
1529
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1530
+ case "ValidationException":
1531
+ case "com.amazonaws.cleanrooms#ValidationException":
1532
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1533
+ default:
1534
+ const parsedBody = parsedOutput.body;
1535
+ return throwDefaultError({
1536
+ output,
1537
+ parsedBody,
1538
+ errorCode,
1539
+ });
1540
+ }
1541
+ };
1128
1542
  export const de_CreateConfiguredTableCommand = async (output, context) => {
1129
1543
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1130
1544
  return de_CreateConfiguredTableCommandError(output, context);
@@ -1326,17 +1740,582 @@ const de_CreateMembershipCommandError = async (output, context) => {
1326
1740
  });
1327
1741
  }
1328
1742
  };
1329
- export const de_DeleteAnalysisTemplateCommand = async (output, context) => {
1330
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1331
- return de_DeleteAnalysisTemplateCommandError(output, context);
1743
+ export const de_CreatePrivacyBudgetTemplateCommand = async (output, context) => {
1744
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1745
+ return de_CreatePrivacyBudgetTemplateCommandError(output, context);
1746
+ }
1747
+ const contents = map({
1748
+ $metadata: deserializeMetadata(output),
1749
+ });
1750
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1751
+ const doc = take(data, {
1752
+ privacyBudgetTemplate: (_) => de_PrivacyBudgetTemplate(_, context),
1753
+ });
1754
+ Object.assign(contents, doc);
1755
+ return contents;
1756
+ };
1757
+ const de_CreatePrivacyBudgetTemplateCommandError = async (output, context) => {
1758
+ const parsedOutput = {
1759
+ ...output,
1760
+ body: await parseErrorBody(output.body, context),
1761
+ };
1762
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1763
+ switch (errorCode) {
1764
+ case "AccessDeniedException":
1765
+ case "com.amazonaws.cleanrooms#AccessDeniedException":
1766
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1767
+ case "ConflictException":
1768
+ case "com.amazonaws.cleanrooms#ConflictException":
1769
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1770
+ case "InternalServerException":
1771
+ case "com.amazonaws.cleanrooms#InternalServerException":
1772
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1773
+ case "ResourceNotFoundException":
1774
+ case "com.amazonaws.cleanrooms#ResourceNotFoundException":
1775
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1776
+ case "ThrottlingException":
1777
+ case "com.amazonaws.cleanrooms#ThrottlingException":
1778
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1779
+ case "ValidationException":
1780
+ case "com.amazonaws.cleanrooms#ValidationException":
1781
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1782
+ default:
1783
+ const parsedBody = parsedOutput.body;
1784
+ return throwDefaultError({
1785
+ output,
1786
+ parsedBody,
1787
+ errorCode,
1788
+ });
1789
+ }
1790
+ };
1791
+ export const de_DeleteAnalysisTemplateCommand = async (output, context) => {
1792
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1793
+ return de_DeleteAnalysisTemplateCommandError(output, context);
1794
+ }
1795
+ const contents = map({
1796
+ $metadata: deserializeMetadata(output),
1797
+ });
1798
+ await collectBody(output.body, context);
1799
+ return contents;
1800
+ };
1801
+ const de_DeleteAnalysisTemplateCommandError = async (output, context) => {
1802
+ const parsedOutput = {
1803
+ ...output,
1804
+ body: await parseErrorBody(output.body, context),
1805
+ };
1806
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1807
+ switch (errorCode) {
1808
+ case "AccessDeniedException":
1809
+ case "com.amazonaws.cleanrooms#AccessDeniedException":
1810
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1811
+ case "InternalServerException":
1812
+ case "com.amazonaws.cleanrooms#InternalServerException":
1813
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1814
+ case "ResourceNotFoundException":
1815
+ case "com.amazonaws.cleanrooms#ResourceNotFoundException":
1816
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1817
+ case "ThrottlingException":
1818
+ case "com.amazonaws.cleanrooms#ThrottlingException":
1819
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1820
+ case "ValidationException":
1821
+ case "com.amazonaws.cleanrooms#ValidationException":
1822
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1823
+ default:
1824
+ const parsedBody = parsedOutput.body;
1825
+ return throwDefaultError({
1826
+ output,
1827
+ parsedBody,
1828
+ errorCode,
1829
+ });
1830
+ }
1831
+ };
1832
+ export const de_DeleteCollaborationCommand = async (output, context) => {
1833
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1834
+ return de_DeleteCollaborationCommandError(output, context);
1835
+ }
1836
+ const contents = map({
1837
+ $metadata: deserializeMetadata(output),
1838
+ });
1839
+ await collectBody(output.body, context);
1840
+ return contents;
1841
+ };
1842
+ const de_DeleteCollaborationCommandError = async (output, context) => {
1843
+ const parsedOutput = {
1844
+ ...output,
1845
+ body: await parseErrorBody(output.body, context),
1846
+ };
1847
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1848
+ switch (errorCode) {
1849
+ case "AccessDeniedException":
1850
+ case "com.amazonaws.cleanrooms#AccessDeniedException":
1851
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1852
+ case "InternalServerException":
1853
+ case "com.amazonaws.cleanrooms#InternalServerException":
1854
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1855
+ case "ThrottlingException":
1856
+ case "com.amazonaws.cleanrooms#ThrottlingException":
1857
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1858
+ case "ValidationException":
1859
+ case "com.amazonaws.cleanrooms#ValidationException":
1860
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1861
+ default:
1862
+ const parsedBody = parsedOutput.body;
1863
+ return throwDefaultError({
1864
+ output,
1865
+ parsedBody,
1866
+ errorCode,
1867
+ });
1868
+ }
1869
+ };
1870
+ export const de_DeleteConfiguredAudienceModelAssociationCommand = async (output, context) => {
1871
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1872
+ return de_DeleteConfiguredAudienceModelAssociationCommandError(output, context);
1873
+ }
1874
+ const contents = map({
1875
+ $metadata: deserializeMetadata(output),
1876
+ });
1877
+ await collectBody(output.body, context);
1878
+ return contents;
1879
+ };
1880
+ const de_DeleteConfiguredAudienceModelAssociationCommandError = async (output, context) => {
1881
+ const parsedOutput = {
1882
+ ...output,
1883
+ body: await parseErrorBody(output.body, context),
1884
+ };
1885
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1886
+ switch (errorCode) {
1887
+ case "AccessDeniedException":
1888
+ case "com.amazonaws.cleanrooms#AccessDeniedException":
1889
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1890
+ case "InternalServerException":
1891
+ case "com.amazonaws.cleanrooms#InternalServerException":
1892
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1893
+ case "ResourceNotFoundException":
1894
+ case "com.amazonaws.cleanrooms#ResourceNotFoundException":
1895
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1896
+ case "ThrottlingException":
1897
+ case "com.amazonaws.cleanrooms#ThrottlingException":
1898
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1899
+ case "ValidationException":
1900
+ case "com.amazonaws.cleanrooms#ValidationException":
1901
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1902
+ default:
1903
+ const parsedBody = parsedOutput.body;
1904
+ return throwDefaultError({
1905
+ output,
1906
+ parsedBody,
1907
+ errorCode,
1908
+ });
1909
+ }
1910
+ };
1911
+ export const de_DeleteConfiguredTableCommand = async (output, context) => {
1912
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1913
+ return de_DeleteConfiguredTableCommandError(output, context);
1914
+ }
1915
+ const contents = map({
1916
+ $metadata: deserializeMetadata(output),
1917
+ });
1918
+ await collectBody(output.body, context);
1919
+ return contents;
1920
+ };
1921
+ const de_DeleteConfiguredTableCommandError = async (output, context) => {
1922
+ const parsedOutput = {
1923
+ ...output,
1924
+ body: await parseErrorBody(output.body, context),
1925
+ };
1926
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1927
+ switch (errorCode) {
1928
+ case "AccessDeniedException":
1929
+ case "com.amazonaws.cleanrooms#AccessDeniedException":
1930
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1931
+ case "ConflictException":
1932
+ case "com.amazonaws.cleanrooms#ConflictException":
1933
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1934
+ case "InternalServerException":
1935
+ case "com.amazonaws.cleanrooms#InternalServerException":
1936
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1937
+ case "ResourceNotFoundException":
1938
+ case "com.amazonaws.cleanrooms#ResourceNotFoundException":
1939
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1940
+ case "ThrottlingException":
1941
+ case "com.amazonaws.cleanrooms#ThrottlingException":
1942
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1943
+ case "ValidationException":
1944
+ case "com.amazonaws.cleanrooms#ValidationException":
1945
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1946
+ default:
1947
+ const parsedBody = parsedOutput.body;
1948
+ return throwDefaultError({
1949
+ output,
1950
+ parsedBody,
1951
+ errorCode,
1952
+ });
1953
+ }
1954
+ };
1955
+ export const de_DeleteConfiguredTableAnalysisRuleCommand = async (output, context) => {
1956
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1957
+ return de_DeleteConfiguredTableAnalysisRuleCommandError(output, context);
1958
+ }
1959
+ const contents = map({
1960
+ $metadata: deserializeMetadata(output),
1961
+ });
1962
+ await collectBody(output.body, context);
1963
+ return contents;
1964
+ };
1965
+ const de_DeleteConfiguredTableAnalysisRuleCommandError = async (output, context) => {
1966
+ const parsedOutput = {
1967
+ ...output,
1968
+ body: await parseErrorBody(output.body, context),
1969
+ };
1970
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1971
+ switch (errorCode) {
1972
+ case "AccessDeniedException":
1973
+ case "com.amazonaws.cleanrooms#AccessDeniedException":
1974
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1975
+ case "ConflictException":
1976
+ case "com.amazonaws.cleanrooms#ConflictException":
1977
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1978
+ case "InternalServerException":
1979
+ case "com.amazonaws.cleanrooms#InternalServerException":
1980
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1981
+ case "ResourceNotFoundException":
1982
+ case "com.amazonaws.cleanrooms#ResourceNotFoundException":
1983
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1984
+ case "ThrottlingException":
1985
+ case "com.amazonaws.cleanrooms#ThrottlingException":
1986
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1987
+ case "ValidationException":
1988
+ case "com.amazonaws.cleanrooms#ValidationException":
1989
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1990
+ default:
1991
+ const parsedBody = parsedOutput.body;
1992
+ return throwDefaultError({
1993
+ output,
1994
+ parsedBody,
1995
+ errorCode,
1996
+ });
1997
+ }
1998
+ };
1999
+ export const de_DeleteConfiguredTableAssociationCommand = async (output, context) => {
2000
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
2001
+ return de_DeleteConfiguredTableAssociationCommandError(output, context);
2002
+ }
2003
+ const contents = map({
2004
+ $metadata: deserializeMetadata(output),
2005
+ });
2006
+ await collectBody(output.body, context);
2007
+ return contents;
2008
+ };
2009
+ const de_DeleteConfiguredTableAssociationCommandError = async (output, context) => {
2010
+ const parsedOutput = {
2011
+ ...output,
2012
+ body: await parseErrorBody(output.body, context),
2013
+ };
2014
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2015
+ switch (errorCode) {
2016
+ case "AccessDeniedException":
2017
+ case "com.amazonaws.cleanrooms#AccessDeniedException":
2018
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2019
+ case "ConflictException":
2020
+ case "com.amazonaws.cleanrooms#ConflictException":
2021
+ throw await de_ConflictExceptionRes(parsedOutput, context);
2022
+ case "InternalServerException":
2023
+ case "com.amazonaws.cleanrooms#InternalServerException":
2024
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2025
+ case "ResourceNotFoundException":
2026
+ case "com.amazonaws.cleanrooms#ResourceNotFoundException":
2027
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2028
+ case "ThrottlingException":
2029
+ case "com.amazonaws.cleanrooms#ThrottlingException":
2030
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2031
+ case "ValidationException":
2032
+ case "com.amazonaws.cleanrooms#ValidationException":
2033
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2034
+ default:
2035
+ const parsedBody = parsedOutput.body;
2036
+ return throwDefaultError({
2037
+ output,
2038
+ parsedBody,
2039
+ errorCode,
2040
+ });
2041
+ }
2042
+ };
2043
+ export const de_DeleteMemberCommand = async (output, context) => {
2044
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
2045
+ return de_DeleteMemberCommandError(output, context);
2046
+ }
2047
+ const contents = map({
2048
+ $metadata: deserializeMetadata(output),
2049
+ });
2050
+ await collectBody(output.body, context);
2051
+ return contents;
2052
+ };
2053
+ const de_DeleteMemberCommandError = async (output, context) => {
2054
+ const parsedOutput = {
2055
+ ...output,
2056
+ body: await parseErrorBody(output.body, context),
2057
+ };
2058
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2059
+ switch (errorCode) {
2060
+ case "AccessDeniedException":
2061
+ case "com.amazonaws.cleanrooms#AccessDeniedException":
2062
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2063
+ case "ConflictException":
2064
+ case "com.amazonaws.cleanrooms#ConflictException":
2065
+ throw await de_ConflictExceptionRes(parsedOutput, context);
2066
+ case "InternalServerException":
2067
+ case "com.amazonaws.cleanrooms#InternalServerException":
2068
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2069
+ case "ResourceNotFoundException":
2070
+ case "com.amazonaws.cleanrooms#ResourceNotFoundException":
2071
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2072
+ case "ThrottlingException":
2073
+ case "com.amazonaws.cleanrooms#ThrottlingException":
2074
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2075
+ case "ValidationException":
2076
+ case "com.amazonaws.cleanrooms#ValidationException":
2077
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2078
+ default:
2079
+ const parsedBody = parsedOutput.body;
2080
+ return throwDefaultError({
2081
+ output,
2082
+ parsedBody,
2083
+ errorCode,
2084
+ });
2085
+ }
2086
+ };
2087
+ export const de_DeleteMembershipCommand = async (output, context) => {
2088
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
2089
+ return de_DeleteMembershipCommandError(output, context);
2090
+ }
2091
+ const contents = map({
2092
+ $metadata: deserializeMetadata(output),
2093
+ });
2094
+ await collectBody(output.body, context);
2095
+ return contents;
2096
+ };
2097
+ const de_DeleteMembershipCommandError = async (output, context) => {
2098
+ const parsedOutput = {
2099
+ ...output,
2100
+ body: await parseErrorBody(output.body, context),
2101
+ };
2102
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2103
+ switch (errorCode) {
2104
+ case "AccessDeniedException":
2105
+ case "com.amazonaws.cleanrooms#AccessDeniedException":
2106
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2107
+ case "ConflictException":
2108
+ case "com.amazonaws.cleanrooms#ConflictException":
2109
+ throw await de_ConflictExceptionRes(parsedOutput, context);
2110
+ case "InternalServerException":
2111
+ case "com.amazonaws.cleanrooms#InternalServerException":
2112
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2113
+ case "ResourceNotFoundException":
2114
+ case "com.amazonaws.cleanrooms#ResourceNotFoundException":
2115
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2116
+ case "ThrottlingException":
2117
+ case "com.amazonaws.cleanrooms#ThrottlingException":
2118
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2119
+ case "ValidationException":
2120
+ case "com.amazonaws.cleanrooms#ValidationException":
2121
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2122
+ default:
2123
+ const parsedBody = parsedOutput.body;
2124
+ return throwDefaultError({
2125
+ output,
2126
+ parsedBody,
2127
+ errorCode,
2128
+ });
2129
+ }
2130
+ };
2131
+ export const de_DeletePrivacyBudgetTemplateCommand = async (output, context) => {
2132
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
2133
+ return de_DeletePrivacyBudgetTemplateCommandError(output, context);
2134
+ }
2135
+ const contents = map({
2136
+ $metadata: deserializeMetadata(output),
2137
+ });
2138
+ await collectBody(output.body, context);
2139
+ return contents;
2140
+ };
2141
+ const de_DeletePrivacyBudgetTemplateCommandError = async (output, context) => {
2142
+ const parsedOutput = {
2143
+ ...output,
2144
+ body: await parseErrorBody(output.body, context),
2145
+ };
2146
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2147
+ switch (errorCode) {
2148
+ case "AccessDeniedException":
2149
+ case "com.amazonaws.cleanrooms#AccessDeniedException":
2150
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2151
+ case "InternalServerException":
2152
+ case "com.amazonaws.cleanrooms#InternalServerException":
2153
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2154
+ case "ResourceNotFoundException":
2155
+ case "com.amazonaws.cleanrooms#ResourceNotFoundException":
2156
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2157
+ case "ThrottlingException":
2158
+ case "com.amazonaws.cleanrooms#ThrottlingException":
2159
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2160
+ case "ValidationException":
2161
+ case "com.amazonaws.cleanrooms#ValidationException":
2162
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2163
+ default:
2164
+ const parsedBody = parsedOutput.body;
2165
+ return throwDefaultError({
2166
+ output,
2167
+ parsedBody,
2168
+ errorCode,
2169
+ });
2170
+ }
2171
+ };
2172
+ export const de_GetAnalysisTemplateCommand = async (output, context) => {
2173
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2174
+ return de_GetAnalysisTemplateCommandError(output, context);
2175
+ }
2176
+ const contents = map({
2177
+ $metadata: deserializeMetadata(output),
2178
+ });
2179
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2180
+ const doc = take(data, {
2181
+ analysisTemplate: (_) => de_AnalysisTemplate(_, context),
2182
+ });
2183
+ Object.assign(contents, doc);
2184
+ return contents;
2185
+ };
2186
+ const de_GetAnalysisTemplateCommandError = async (output, context) => {
2187
+ const parsedOutput = {
2188
+ ...output,
2189
+ body: await parseErrorBody(output.body, context),
2190
+ };
2191
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2192
+ switch (errorCode) {
2193
+ case "AccessDeniedException":
2194
+ case "com.amazonaws.cleanrooms#AccessDeniedException":
2195
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2196
+ case "InternalServerException":
2197
+ case "com.amazonaws.cleanrooms#InternalServerException":
2198
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2199
+ case "ResourceNotFoundException":
2200
+ case "com.amazonaws.cleanrooms#ResourceNotFoundException":
2201
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2202
+ case "ThrottlingException":
2203
+ case "com.amazonaws.cleanrooms#ThrottlingException":
2204
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2205
+ case "ValidationException":
2206
+ case "com.amazonaws.cleanrooms#ValidationException":
2207
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2208
+ default:
2209
+ const parsedBody = parsedOutput.body;
2210
+ return throwDefaultError({
2211
+ output,
2212
+ parsedBody,
2213
+ errorCode,
2214
+ });
2215
+ }
2216
+ };
2217
+ export const de_GetCollaborationCommand = async (output, context) => {
2218
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2219
+ return de_GetCollaborationCommandError(output, context);
2220
+ }
2221
+ const contents = map({
2222
+ $metadata: deserializeMetadata(output),
2223
+ });
2224
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2225
+ const doc = take(data, {
2226
+ collaboration: (_) => de_Collaboration(_, context),
2227
+ });
2228
+ Object.assign(contents, doc);
2229
+ return contents;
2230
+ };
2231
+ const de_GetCollaborationCommandError = async (output, context) => {
2232
+ const parsedOutput = {
2233
+ ...output,
2234
+ body: await parseErrorBody(output.body, context),
2235
+ };
2236
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2237
+ switch (errorCode) {
2238
+ case "AccessDeniedException":
2239
+ case "com.amazonaws.cleanrooms#AccessDeniedException":
2240
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2241
+ case "InternalServerException":
2242
+ case "com.amazonaws.cleanrooms#InternalServerException":
2243
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2244
+ case "ThrottlingException":
2245
+ case "com.amazonaws.cleanrooms#ThrottlingException":
2246
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2247
+ case "ValidationException":
2248
+ case "com.amazonaws.cleanrooms#ValidationException":
2249
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2250
+ default:
2251
+ const parsedBody = parsedOutput.body;
2252
+ return throwDefaultError({
2253
+ output,
2254
+ parsedBody,
2255
+ errorCode,
2256
+ });
2257
+ }
2258
+ };
2259
+ export const de_GetCollaborationAnalysisTemplateCommand = async (output, context) => {
2260
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2261
+ return de_GetCollaborationAnalysisTemplateCommandError(output, context);
2262
+ }
2263
+ const contents = map({
2264
+ $metadata: deserializeMetadata(output),
2265
+ });
2266
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2267
+ const doc = take(data, {
2268
+ collaborationAnalysisTemplate: (_) => de_CollaborationAnalysisTemplate(_, context),
2269
+ });
2270
+ Object.assign(contents, doc);
2271
+ return contents;
2272
+ };
2273
+ const de_GetCollaborationAnalysisTemplateCommandError = async (output, context) => {
2274
+ const parsedOutput = {
2275
+ ...output,
2276
+ body: await parseErrorBody(output.body, context),
2277
+ };
2278
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2279
+ switch (errorCode) {
2280
+ case "AccessDeniedException":
2281
+ case "com.amazonaws.cleanrooms#AccessDeniedException":
2282
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2283
+ case "InternalServerException":
2284
+ case "com.amazonaws.cleanrooms#InternalServerException":
2285
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2286
+ case "ResourceNotFoundException":
2287
+ case "com.amazonaws.cleanrooms#ResourceNotFoundException":
2288
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2289
+ case "ThrottlingException":
2290
+ case "com.amazonaws.cleanrooms#ThrottlingException":
2291
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2292
+ case "ValidationException":
2293
+ case "com.amazonaws.cleanrooms#ValidationException":
2294
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2295
+ default:
2296
+ const parsedBody = parsedOutput.body;
2297
+ return throwDefaultError({
2298
+ output,
2299
+ parsedBody,
2300
+ errorCode,
2301
+ });
2302
+ }
2303
+ };
2304
+ export const de_GetCollaborationConfiguredAudienceModelAssociationCommand = async (output, context) => {
2305
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2306
+ return de_GetCollaborationConfiguredAudienceModelAssociationCommandError(output, context);
1332
2307
  }
1333
2308
  const contents = map({
1334
2309
  $metadata: deserializeMetadata(output),
1335
2310
  });
1336
- await collectBody(output.body, context);
2311
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2312
+ const doc = take(data, {
2313
+ collaborationConfiguredAudienceModelAssociation: (_) => de_CollaborationConfiguredAudienceModelAssociation(_, context),
2314
+ });
2315
+ Object.assign(contents, doc);
1337
2316
  return contents;
1338
2317
  };
1339
- const de_DeleteAnalysisTemplateCommandError = async (output, context) => {
2318
+ const de_GetCollaborationConfiguredAudienceModelAssociationCommandError = async (output, context) => {
1340
2319
  const parsedOutput = {
1341
2320
  ...output,
1342
2321
  body: await parseErrorBody(output.body, context),
@@ -1367,17 +2346,21 @@ const de_DeleteAnalysisTemplateCommandError = async (output, context) => {
1367
2346
  });
1368
2347
  }
1369
2348
  };
1370
- export const de_DeleteCollaborationCommand = async (output, context) => {
1371
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1372
- return de_DeleteCollaborationCommandError(output, context);
2349
+ export const de_GetCollaborationPrivacyBudgetTemplateCommand = async (output, context) => {
2350
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2351
+ return de_GetCollaborationPrivacyBudgetTemplateCommandError(output, context);
1373
2352
  }
1374
2353
  const contents = map({
1375
2354
  $metadata: deserializeMetadata(output),
1376
2355
  });
1377
- await collectBody(output.body, context);
2356
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2357
+ const doc = take(data, {
2358
+ collaborationPrivacyBudgetTemplate: (_) => de_CollaborationPrivacyBudgetTemplate(_, context),
2359
+ });
2360
+ Object.assign(contents, doc);
1378
2361
  return contents;
1379
2362
  };
1380
- const de_DeleteCollaborationCommandError = async (output, context) => {
2363
+ const de_GetCollaborationPrivacyBudgetTemplateCommandError = async (output, context) => {
1381
2364
  const parsedOutput = {
1382
2365
  ...output,
1383
2366
  body: await parseErrorBody(output.body, context),
@@ -1390,6 +2373,9 @@ const de_DeleteCollaborationCommandError = async (output, context) => {
1390
2373
  case "InternalServerException":
1391
2374
  case "com.amazonaws.cleanrooms#InternalServerException":
1392
2375
  throw await de_InternalServerExceptionRes(parsedOutput, context);
2376
+ case "ResourceNotFoundException":
2377
+ case "com.amazonaws.cleanrooms#ResourceNotFoundException":
2378
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1393
2379
  case "ThrottlingException":
1394
2380
  case "com.amazonaws.cleanrooms#ThrottlingException":
1395
2381
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
@@ -1405,17 +2391,21 @@ const de_DeleteCollaborationCommandError = async (output, context) => {
1405
2391
  });
1406
2392
  }
1407
2393
  };
1408
- export const de_DeleteConfiguredTableCommand = async (output, context) => {
1409
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1410
- return de_DeleteConfiguredTableCommandError(output, context);
2394
+ export const de_GetConfiguredAudienceModelAssociationCommand = async (output, context) => {
2395
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2396
+ return de_GetConfiguredAudienceModelAssociationCommandError(output, context);
1411
2397
  }
1412
2398
  const contents = map({
1413
2399
  $metadata: deserializeMetadata(output),
1414
2400
  });
1415
- await collectBody(output.body, context);
2401
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2402
+ const doc = take(data, {
2403
+ configuredAudienceModelAssociation: (_) => de_ConfiguredAudienceModelAssociation(_, context),
2404
+ });
2405
+ Object.assign(contents, doc);
1416
2406
  return contents;
1417
2407
  };
1418
- const de_DeleteConfiguredTableCommandError = async (output, context) => {
2408
+ const de_GetConfiguredAudienceModelAssociationCommandError = async (output, context) => {
1419
2409
  const parsedOutput = {
1420
2410
  ...output,
1421
2411
  body: await parseErrorBody(output.body, context),
@@ -1425,9 +2415,6 @@ const de_DeleteConfiguredTableCommandError = async (output, context) => {
1425
2415
  case "AccessDeniedException":
1426
2416
  case "com.amazonaws.cleanrooms#AccessDeniedException":
1427
2417
  throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1428
- case "ConflictException":
1429
- case "com.amazonaws.cleanrooms#ConflictException":
1430
- throw await de_ConflictExceptionRes(parsedOutput, context);
1431
2418
  case "InternalServerException":
1432
2419
  case "com.amazonaws.cleanrooms#InternalServerException":
1433
2420
  throw await de_InternalServerExceptionRes(parsedOutput, context);
@@ -1449,17 +2436,21 @@ const de_DeleteConfiguredTableCommandError = async (output, context) => {
1449
2436
  });
1450
2437
  }
1451
2438
  };
1452
- export const de_DeleteConfiguredTableAnalysisRuleCommand = async (output, context) => {
1453
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1454
- return de_DeleteConfiguredTableAnalysisRuleCommandError(output, context);
2439
+ export const de_GetConfiguredTableCommand = async (output, context) => {
2440
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2441
+ return de_GetConfiguredTableCommandError(output, context);
1455
2442
  }
1456
2443
  const contents = map({
1457
2444
  $metadata: deserializeMetadata(output),
1458
2445
  });
1459
- await collectBody(output.body, context);
2446
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2447
+ const doc = take(data, {
2448
+ configuredTable: (_) => de_ConfiguredTable(_, context),
2449
+ });
2450
+ Object.assign(contents, doc);
1460
2451
  return contents;
1461
2452
  };
1462
- const de_DeleteConfiguredTableAnalysisRuleCommandError = async (output, context) => {
2453
+ const de_GetConfiguredTableCommandError = async (output, context) => {
1463
2454
  const parsedOutput = {
1464
2455
  ...output,
1465
2456
  body: await parseErrorBody(output.body, context),
@@ -1469,9 +2460,6 @@ const de_DeleteConfiguredTableAnalysisRuleCommandError = async (output, context)
1469
2460
  case "AccessDeniedException":
1470
2461
  case "com.amazonaws.cleanrooms#AccessDeniedException":
1471
2462
  throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1472
- case "ConflictException":
1473
- case "com.amazonaws.cleanrooms#ConflictException":
1474
- throw await de_ConflictExceptionRes(parsedOutput, context);
1475
2463
  case "InternalServerException":
1476
2464
  case "com.amazonaws.cleanrooms#InternalServerException":
1477
2465
  throw await de_InternalServerExceptionRes(parsedOutput, context);
@@ -1493,17 +2481,21 @@ const de_DeleteConfiguredTableAnalysisRuleCommandError = async (output, context)
1493
2481
  });
1494
2482
  }
1495
2483
  };
1496
- export const de_DeleteConfiguredTableAssociationCommand = async (output, context) => {
1497
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1498
- return de_DeleteConfiguredTableAssociationCommandError(output, context);
2484
+ export const de_GetConfiguredTableAnalysisRuleCommand = async (output, context) => {
2485
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2486
+ return de_GetConfiguredTableAnalysisRuleCommandError(output, context);
1499
2487
  }
1500
2488
  const contents = map({
1501
2489
  $metadata: deserializeMetadata(output),
1502
2490
  });
1503
- await collectBody(output.body, context);
2491
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2492
+ const doc = take(data, {
2493
+ analysisRule: (_) => de_ConfiguredTableAnalysisRule(_, context),
2494
+ });
2495
+ Object.assign(contents, doc);
1504
2496
  return contents;
1505
2497
  };
1506
- const de_DeleteConfiguredTableAssociationCommandError = async (output, context) => {
2498
+ const de_GetConfiguredTableAnalysisRuleCommandError = async (output, context) => {
1507
2499
  const parsedOutput = {
1508
2500
  ...output,
1509
2501
  body: await parseErrorBody(output.body, context),
@@ -1513,9 +2505,6 @@ const de_DeleteConfiguredTableAssociationCommandError = async (output, context)
1513
2505
  case "AccessDeniedException":
1514
2506
  case "com.amazonaws.cleanrooms#AccessDeniedException":
1515
2507
  throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1516
- case "ConflictException":
1517
- case "com.amazonaws.cleanrooms#ConflictException":
1518
- throw await de_ConflictExceptionRes(parsedOutput, context);
1519
2508
  case "InternalServerException":
1520
2509
  case "com.amazonaws.cleanrooms#InternalServerException":
1521
2510
  throw await de_InternalServerExceptionRes(parsedOutput, context);
@@ -1537,17 +2526,21 @@ const de_DeleteConfiguredTableAssociationCommandError = async (output, context)
1537
2526
  });
1538
2527
  }
1539
2528
  };
1540
- export const de_DeleteMemberCommand = async (output, context) => {
1541
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1542
- return de_DeleteMemberCommandError(output, context);
2529
+ export const de_GetConfiguredTableAssociationCommand = async (output, context) => {
2530
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2531
+ return de_GetConfiguredTableAssociationCommandError(output, context);
1543
2532
  }
1544
2533
  const contents = map({
1545
2534
  $metadata: deserializeMetadata(output),
1546
2535
  });
1547
- await collectBody(output.body, context);
2536
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2537
+ const doc = take(data, {
2538
+ configuredTableAssociation: (_) => de_ConfiguredTableAssociation(_, context),
2539
+ });
2540
+ Object.assign(contents, doc);
1548
2541
  return contents;
1549
2542
  };
1550
- const de_DeleteMemberCommandError = async (output, context) => {
2543
+ const de_GetConfiguredTableAssociationCommandError = async (output, context) => {
1551
2544
  const parsedOutput = {
1552
2545
  ...output,
1553
2546
  body: await parseErrorBody(output.body, context),
@@ -1557,9 +2550,6 @@ const de_DeleteMemberCommandError = async (output, context) => {
1557
2550
  case "AccessDeniedException":
1558
2551
  case "com.amazonaws.cleanrooms#AccessDeniedException":
1559
2552
  throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1560
- case "ConflictException":
1561
- case "com.amazonaws.cleanrooms#ConflictException":
1562
- throw await de_ConflictExceptionRes(parsedOutput, context);
1563
2553
  case "InternalServerException":
1564
2554
  case "com.amazonaws.cleanrooms#InternalServerException":
1565
2555
  throw await de_InternalServerExceptionRes(parsedOutput, context);
@@ -1581,17 +2571,21 @@ const de_DeleteMemberCommandError = async (output, context) => {
1581
2571
  });
1582
2572
  }
1583
2573
  };
1584
- export const de_DeleteMembershipCommand = async (output, context) => {
1585
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1586
- return de_DeleteMembershipCommandError(output, context);
2574
+ export const de_GetMembershipCommand = async (output, context) => {
2575
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2576
+ return de_GetMembershipCommandError(output, context);
1587
2577
  }
1588
2578
  const contents = map({
1589
2579
  $metadata: deserializeMetadata(output),
1590
2580
  });
1591
- await collectBody(output.body, context);
2581
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2582
+ const doc = take(data, {
2583
+ membership: (_) => de_Membership(_, context),
2584
+ });
2585
+ Object.assign(contents, doc);
1592
2586
  return contents;
1593
2587
  };
1594
- const de_DeleteMembershipCommandError = async (output, context) => {
2588
+ const de_GetMembershipCommandError = async (output, context) => {
1595
2589
  const parsedOutput = {
1596
2590
  ...output,
1597
2591
  body: await parseErrorBody(output.body, context),
@@ -1601,9 +2595,6 @@ const de_DeleteMembershipCommandError = async (output, context) => {
1601
2595
  case "AccessDeniedException":
1602
2596
  case "com.amazonaws.cleanrooms#AccessDeniedException":
1603
2597
  throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1604
- case "ConflictException":
1605
- case "com.amazonaws.cleanrooms#ConflictException":
1606
- throw await de_ConflictExceptionRes(parsedOutput, context);
1607
2598
  case "InternalServerException":
1608
2599
  case "com.amazonaws.cleanrooms#InternalServerException":
1609
2600
  throw await de_InternalServerExceptionRes(parsedOutput, context);
@@ -1625,21 +2616,21 @@ const de_DeleteMembershipCommandError = async (output, context) => {
1625
2616
  });
1626
2617
  }
1627
2618
  };
1628
- export const de_GetAnalysisTemplateCommand = async (output, context) => {
2619
+ export const de_GetPrivacyBudgetTemplateCommand = async (output, context) => {
1629
2620
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1630
- return de_GetAnalysisTemplateCommandError(output, context);
2621
+ return de_GetPrivacyBudgetTemplateCommandError(output, context);
1631
2622
  }
1632
2623
  const contents = map({
1633
2624
  $metadata: deserializeMetadata(output),
1634
2625
  });
1635
2626
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1636
2627
  const doc = take(data, {
1637
- analysisTemplate: (_) => de_AnalysisTemplate(_, context),
2628
+ privacyBudgetTemplate: (_) => de_PrivacyBudgetTemplate(_, context),
1638
2629
  });
1639
2630
  Object.assign(contents, doc);
1640
2631
  return contents;
1641
2632
  };
1642
- const de_GetAnalysisTemplateCommandError = async (output, context) => {
2633
+ const de_GetPrivacyBudgetTemplateCommandError = async (output, context) => {
1643
2634
  const parsedOutput = {
1644
2635
  ...output,
1645
2636
  body: await parseErrorBody(output.body, context),
@@ -1670,21 +2661,21 @@ const de_GetAnalysisTemplateCommandError = async (output, context) => {
1670
2661
  });
1671
2662
  }
1672
2663
  };
1673
- export const de_GetCollaborationCommand = async (output, context) => {
2664
+ export const de_GetProtectedQueryCommand = async (output, context) => {
1674
2665
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1675
- return de_GetCollaborationCommandError(output, context);
2666
+ return de_GetProtectedQueryCommandError(output, context);
1676
2667
  }
1677
2668
  const contents = map({
1678
2669
  $metadata: deserializeMetadata(output),
1679
2670
  });
1680
2671
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1681
2672
  const doc = take(data, {
1682
- collaboration: (_) => de_Collaboration(_, context),
2673
+ protectedQuery: (_) => de_ProtectedQuery(_, context),
1683
2674
  });
1684
2675
  Object.assign(contents, doc);
1685
2676
  return contents;
1686
2677
  };
1687
- const de_GetCollaborationCommandError = async (output, context) => {
2678
+ const de_GetProtectedQueryCommandError = async (output, context) => {
1688
2679
  const parsedOutput = {
1689
2680
  ...output,
1690
2681
  body: await parseErrorBody(output.body, context),
@@ -1697,6 +2688,9 @@ const de_GetCollaborationCommandError = async (output, context) => {
1697
2688
  case "InternalServerException":
1698
2689
  case "com.amazonaws.cleanrooms#InternalServerException":
1699
2690
  throw await de_InternalServerExceptionRes(parsedOutput, context);
2691
+ case "ResourceNotFoundException":
2692
+ case "com.amazonaws.cleanrooms#ResourceNotFoundException":
2693
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1700
2694
  case "ThrottlingException":
1701
2695
  case "com.amazonaws.cleanrooms#ThrottlingException":
1702
2696
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
@@ -1712,21 +2706,21 @@ const de_GetCollaborationCommandError = async (output, context) => {
1712
2706
  });
1713
2707
  }
1714
2708
  };
1715
- export const de_GetCollaborationAnalysisTemplateCommand = async (output, context) => {
2709
+ export const de_GetSchemaCommand = async (output, context) => {
1716
2710
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1717
- return de_GetCollaborationAnalysisTemplateCommandError(output, context);
2711
+ return de_GetSchemaCommandError(output, context);
1718
2712
  }
1719
2713
  const contents = map({
1720
2714
  $metadata: deserializeMetadata(output),
1721
2715
  });
1722
2716
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1723
2717
  const doc = take(data, {
1724
- collaborationAnalysisTemplate: (_) => de_CollaborationAnalysisTemplate(_, context),
2718
+ schema: (_) => de_Schema(_, context),
1725
2719
  });
1726
2720
  Object.assign(contents, doc);
1727
2721
  return contents;
1728
2722
  };
1729
- const de_GetCollaborationAnalysisTemplateCommandError = async (output, context) => {
2723
+ const de_GetSchemaCommandError = async (output, context) => {
1730
2724
  const parsedOutput = {
1731
2725
  ...output,
1732
2726
  body: await parseErrorBody(output.body, context),
@@ -1757,21 +2751,21 @@ const de_GetCollaborationAnalysisTemplateCommandError = async (output, context)
1757
2751
  });
1758
2752
  }
1759
2753
  };
1760
- export const de_GetConfiguredTableCommand = async (output, context) => {
2754
+ export const de_GetSchemaAnalysisRuleCommand = async (output, context) => {
1761
2755
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1762
- return de_GetConfiguredTableCommandError(output, context);
2756
+ return de_GetSchemaAnalysisRuleCommandError(output, context);
1763
2757
  }
1764
2758
  const contents = map({
1765
2759
  $metadata: deserializeMetadata(output),
1766
2760
  });
1767
2761
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1768
2762
  const doc = take(data, {
1769
- configuredTable: (_) => de_ConfiguredTable(_, context),
2763
+ analysisRule: (_) => de_AnalysisRule(_, context),
1770
2764
  });
1771
2765
  Object.assign(contents, doc);
1772
2766
  return contents;
1773
2767
  };
1774
- const de_GetConfiguredTableCommandError = async (output, context) => {
2768
+ const de_GetSchemaAnalysisRuleCommandError = async (output, context) => {
1775
2769
  const parsedOutput = {
1776
2770
  ...output,
1777
2771
  body: await parseErrorBody(output.body, context),
@@ -1802,21 +2796,22 @@ const de_GetConfiguredTableCommandError = async (output, context) => {
1802
2796
  });
1803
2797
  }
1804
2798
  };
1805
- export const de_GetConfiguredTableAnalysisRuleCommand = async (output, context) => {
2799
+ export const de_ListAnalysisTemplatesCommand = async (output, context) => {
1806
2800
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1807
- return de_GetConfiguredTableAnalysisRuleCommandError(output, context);
2801
+ return de_ListAnalysisTemplatesCommandError(output, context);
1808
2802
  }
1809
2803
  const contents = map({
1810
2804
  $metadata: deserializeMetadata(output),
1811
2805
  });
1812
2806
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1813
2807
  const doc = take(data, {
1814
- analysisRule: (_) => de_ConfiguredTableAnalysisRule(_, context),
2808
+ analysisTemplateSummaries: (_) => de_AnalysisTemplateSummaryList(_, context),
2809
+ nextToken: __expectString,
1815
2810
  });
1816
2811
  Object.assign(contents, doc);
1817
2812
  return contents;
1818
2813
  };
1819
- const de_GetConfiguredTableAnalysisRuleCommandError = async (output, context) => {
2814
+ const de_ListAnalysisTemplatesCommandError = async (output, context) => {
1820
2815
  const parsedOutput = {
1821
2816
  ...output,
1822
2817
  body: await parseErrorBody(output.body, context),
@@ -1847,21 +2842,22 @@ const de_GetConfiguredTableAnalysisRuleCommandError = async (output, context) =>
1847
2842
  });
1848
2843
  }
1849
2844
  };
1850
- export const de_GetConfiguredTableAssociationCommand = async (output, context) => {
2845
+ export const de_ListCollaborationAnalysisTemplatesCommand = async (output, context) => {
1851
2846
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1852
- return de_GetConfiguredTableAssociationCommandError(output, context);
2847
+ return de_ListCollaborationAnalysisTemplatesCommandError(output, context);
1853
2848
  }
1854
2849
  const contents = map({
1855
2850
  $metadata: deserializeMetadata(output),
1856
2851
  });
1857
2852
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1858
2853
  const doc = take(data, {
1859
- configuredTableAssociation: (_) => de_ConfiguredTableAssociation(_, context),
2854
+ collaborationAnalysisTemplateSummaries: (_) => de_CollaborationAnalysisTemplateSummaryList(_, context),
2855
+ nextToken: __expectString,
1860
2856
  });
1861
2857
  Object.assign(contents, doc);
1862
2858
  return contents;
1863
2859
  };
1864
- const de_GetConfiguredTableAssociationCommandError = async (output, context) => {
2860
+ const de_ListCollaborationAnalysisTemplatesCommandError = async (output, context) => {
1865
2861
  const parsedOutput = {
1866
2862
  ...output,
1867
2863
  body: await parseErrorBody(output.body, context),
@@ -1892,21 +2888,22 @@ const de_GetConfiguredTableAssociationCommandError = async (output, context) =>
1892
2888
  });
1893
2889
  }
1894
2890
  };
1895
- export const de_GetMembershipCommand = async (output, context) => {
2891
+ export const de_ListCollaborationConfiguredAudienceModelAssociationsCommand = async (output, context) => {
1896
2892
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1897
- return de_GetMembershipCommandError(output, context);
2893
+ return de_ListCollaborationConfiguredAudienceModelAssociationsCommandError(output, context);
1898
2894
  }
1899
2895
  const contents = map({
1900
2896
  $metadata: deserializeMetadata(output),
1901
2897
  });
1902
2898
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1903
2899
  const doc = take(data, {
1904
- membership: (_) => de_Membership(_, context),
2900
+ collaborationConfiguredAudienceModelAssociationSummaries: (_) => de_CollaborationConfiguredAudienceModelAssociationSummaryList(_, context),
2901
+ nextToken: __expectString,
1905
2902
  });
1906
2903
  Object.assign(contents, doc);
1907
2904
  return contents;
1908
2905
  };
1909
- const de_GetMembershipCommandError = async (output, context) => {
2906
+ const de_ListCollaborationConfiguredAudienceModelAssociationsCommandError = async (output, context) => {
1910
2907
  const parsedOutput = {
1911
2908
  ...output,
1912
2909
  body: await parseErrorBody(output.body, context),
@@ -1937,21 +2934,22 @@ const de_GetMembershipCommandError = async (output, context) => {
1937
2934
  });
1938
2935
  }
1939
2936
  };
1940
- export const de_GetProtectedQueryCommand = async (output, context) => {
2937
+ export const de_ListCollaborationPrivacyBudgetsCommand = async (output, context) => {
1941
2938
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1942
- return de_GetProtectedQueryCommandError(output, context);
2939
+ return de_ListCollaborationPrivacyBudgetsCommandError(output, context);
1943
2940
  }
1944
2941
  const contents = map({
1945
2942
  $metadata: deserializeMetadata(output),
1946
2943
  });
1947
2944
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1948
2945
  const doc = take(data, {
1949
- protectedQuery: (_) => de_ProtectedQuery(_, context),
2946
+ collaborationPrivacyBudgetSummaries: (_) => de_CollaborationPrivacyBudgetSummaryList(_, context),
2947
+ nextToken: __expectString,
1950
2948
  });
1951
2949
  Object.assign(contents, doc);
1952
2950
  return contents;
1953
2951
  };
1954
- const de_GetProtectedQueryCommandError = async (output, context) => {
2952
+ const de_ListCollaborationPrivacyBudgetsCommandError = async (output, context) => {
1955
2953
  const parsedOutput = {
1956
2954
  ...output,
1957
2955
  body: await parseErrorBody(output.body, context),
@@ -1982,21 +2980,22 @@ const de_GetProtectedQueryCommandError = async (output, context) => {
1982
2980
  });
1983
2981
  }
1984
2982
  };
1985
- export const de_GetSchemaCommand = async (output, context) => {
2983
+ export const de_ListCollaborationPrivacyBudgetTemplatesCommand = async (output, context) => {
1986
2984
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1987
- return de_GetSchemaCommandError(output, context);
2985
+ return de_ListCollaborationPrivacyBudgetTemplatesCommandError(output, context);
1988
2986
  }
1989
2987
  const contents = map({
1990
2988
  $metadata: deserializeMetadata(output),
1991
2989
  });
1992
2990
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1993
2991
  const doc = take(data, {
1994
- schema: (_) => de_Schema(_, context),
2992
+ collaborationPrivacyBudgetTemplateSummaries: (_) => de_CollaborationPrivacyBudgetTemplateSummaryList(_, context),
2993
+ nextToken: __expectString,
1995
2994
  });
1996
2995
  Object.assign(contents, doc);
1997
2996
  return contents;
1998
2997
  };
1999
- const de_GetSchemaCommandError = async (output, context) => {
2998
+ const de_ListCollaborationPrivacyBudgetTemplatesCommandError = async (output, context) => {
2000
2999
  const parsedOutput = {
2001
3000
  ...output,
2002
3001
  body: await parseErrorBody(output.body, context),
@@ -2027,21 +3026,22 @@ const de_GetSchemaCommandError = async (output, context) => {
2027
3026
  });
2028
3027
  }
2029
3028
  };
2030
- export const de_GetSchemaAnalysisRuleCommand = async (output, context) => {
3029
+ export const de_ListCollaborationsCommand = async (output, context) => {
2031
3030
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2032
- return de_GetSchemaAnalysisRuleCommandError(output, context);
3031
+ return de_ListCollaborationsCommandError(output, context);
2033
3032
  }
2034
3033
  const contents = map({
2035
3034
  $metadata: deserializeMetadata(output),
2036
3035
  });
2037
3036
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2038
3037
  const doc = take(data, {
2039
- analysisRule: (_) => de_AnalysisRule(_, context),
3038
+ collaborationList: (_) => de_CollaborationSummaryList(_, context),
3039
+ nextToken: __expectString,
2040
3040
  });
2041
3041
  Object.assign(contents, doc);
2042
3042
  return contents;
2043
3043
  };
2044
- const de_GetSchemaAnalysisRuleCommandError = async (output, context) => {
3044
+ const de_ListCollaborationsCommandError = async (output, context) => {
2045
3045
  const parsedOutput = {
2046
3046
  ...output,
2047
3047
  body: await parseErrorBody(output.body, context),
@@ -2054,9 +3054,6 @@ const de_GetSchemaAnalysisRuleCommandError = async (output, context) => {
2054
3054
  case "InternalServerException":
2055
3055
  case "com.amazonaws.cleanrooms#InternalServerException":
2056
3056
  throw await de_InternalServerExceptionRes(parsedOutput, context);
2057
- case "ResourceNotFoundException":
2058
- case "com.amazonaws.cleanrooms#ResourceNotFoundException":
2059
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2060
3057
  case "ThrottlingException":
2061
3058
  case "com.amazonaws.cleanrooms#ThrottlingException":
2062
3059
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
@@ -2072,22 +3069,22 @@ const de_GetSchemaAnalysisRuleCommandError = async (output, context) => {
2072
3069
  });
2073
3070
  }
2074
3071
  };
2075
- export const de_ListAnalysisTemplatesCommand = async (output, context) => {
3072
+ export const de_ListConfiguredAudienceModelAssociationsCommand = async (output, context) => {
2076
3073
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2077
- return de_ListAnalysisTemplatesCommandError(output, context);
3074
+ return de_ListConfiguredAudienceModelAssociationsCommandError(output, context);
2078
3075
  }
2079
3076
  const contents = map({
2080
3077
  $metadata: deserializeMetadata(output),
2081
3078
  });
2082
3079
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2083
3080
  const doc = take(data, {
2084
- analysisTemplateSummaries: (_) => de_AnalysisTemplateSummaryList(_, context),
3081
+ configuredAudienceModelAssociationSummaries: (_) => de_ConfiguredAudienceModelAssociationSummaryList(_, context),
2085
3082
  nextToken: __expectString,
2086
3083
  });
2087
3084
  Object.assign(contents, doc);
2088
3085
  return contents;
2089
3086
  };
2090
- const de_ListAnalysisTemplatesCommandError = async (output, context) => {
3087
+ const de_ListConfiguredAudienceModelAssociationsCommandError = async (output, context) => {
2091
3088
  const parsedOutput = {
2092
3089
  ...output,
2093
3090
  body: await parseErrorBody(output.body, context),
@@ -2118,22 +3115,22 @@ const de_ListAnalysisTemplatesCommandError = async (output, context) => {
2118
3115
  });
2119
3116
  }
2120
3117
  };
2121
- export const de_ListCollaborationAnalysisTemplatesCommand = async (output, context) => {
3118
+ export const de_ListConfiguredTableAssociationsCommand = async (output, context) => {
2122
3119
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2123
- return de_ListCollaborationAnalysisTemplatesCommandError(output, context);
3120
+ return de_ListConfiguredTableAssociationsCommandError(output, context);
2124
3121
  }
2125
3122
  const contents = map({
2126
3123
  $metadata: deserializeMetadata(output),
2127
3124
  });
2128
3125
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2129
3126
  const doc = take(data, {
2130
- collaborationAnalysisTemplateSummaries: (_) => de_CollaborationAnalysisTemplateSummaryList(_, context),
3127
+ configuredTableAssociationSummaries: (_) => de_ConfiguredTableAssociationSummaryList(_, context),
2131
3128
  nextToken: __expectString,
2132
3129
  });
2133
3130
  Object.assign(contents, doc);
2134
3131
  return contents;
2135
3132
  };
2136
- const de_ListCollaborationAnalysisTemplatesCommandError = async (output, context) => {
3133
+ const de_ListConfiguredTableAssociationsCommandError = async (output, context) => {
2137
3134
  const parsedOutput = {
2138
3135
  ...output,
2139
3136
  body: await parseErrorBody(output.body, context),
@@ -2164,22 +3161,22 @@ const de_ListCollaborationAnalysisTemplatesCommandError = async (output, context
2164
3161
  });
2165
3162
  }
2166
3163
  };
2167
- export const de_ListCollaborationsCommand = async (output, context) => {
3164
+ export const de_ListConfiguredTablesCommand = async (output, context) => {
2168
3165
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2169
- return de_ListCollaborationsCommandError(output, context);
3166
+ return de_ListConfiguredTablesCommandError(output, context);
2170
3167
  }
2171
3168
  const contents = map({
2172
3169
  $metadata: deserializeMetadata(output),
2173
3170
  });
2174
3171
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2175
3172
  const doc = take(data, {
2176
- collaborationList: (_) => de_CollaborationSummaryList(_, context),
3173
+ configuredTableSummaries: (_) => de_ConfiguredTableSummaryList(_, context),
2177
3174
  nextToken: __expectString,
2178
3175
  });
2179
3176
  Object.assign(contents, doc);
2180
3177
  return contents;
2181
3178
  };
2182
- const de_ListCollaborationsCommandError = async (output, context) => {
3179
+ const de_ListConfiguredTablesCommandError = async (output, context) => {
2183
3180
  const parsedOutput = {
2184
3181
  ...output,
2185
3182
  body: await parseErrorBody(output.body, context),
@@ -2207,22 +3204,22 @@ const de_ListCollaborationsCommandError = async (output, context) => {
2207
3204
  });
2208
3205
  }
2209
3206
  };
2210
- export const de_ListConfiguredTableAssociationsCommand = async (output, context) => {
3207
+ export const de_ListMembersCommand = async (output, context) => {
2211
3208
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2212
- return de_ListConfiguredTableAssociationsCommandError(output, context);
3209
+ return de_ListMembersCommandError(output, context);
2213
3210
  }
2214
3211
  const contents = map({
2215
3212
  $metadata: deserializeMetadata(output),
2216
3213
  });
2217
3214
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2218
3215
  const doc = take(data, {
2219
- configuredTableAssociationSummaries: (_) => de_ConfiguredTableAssociationSummaryList(_, context),
3216
+ memberSummaries: (_) => de_MemberSummaryList(_, context),
2220
3217
  nextToken: __expectString,
2221
3218
  });
2222
3219
  Object.assign(contents, doc);
2223
3220
  return contents;
2224
3221
  };
2225
- const de_ListConfiguredTableAssociationsCommandError = async (output, context) => {
3222
+ const de_ListMembersCommandError = async (output, context) => {
2226
3223
  const parsedOutput = {
2227
3224
  ...output,
2228
3225
  body: await parseErrorBody(output.body, context),
@@ -2253,22 +3250,22 @@ const de_ListConfiguredTableAssociationsCommandError = async (output, context) =
2253
3250
  });
2254
3251
  }
2255
3252
  };
2256
- export const de_ListConfiguredTablesCommand = async (output, context) => {
3253
+ export const de_ListMembershipsCommand = async (output, context) => {
2257
3254
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2258
- return de_ListConfiguredTablesCommandError(output, context);
3255
+ return de_ListMembershipsCommandError(output, context);
2259
3256
  }
2260
3257
  const contents = map({
2261
3258
  $metadata: deserializeMetadata(output),
2262
3259
  });
2263
3260
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2264
3261
  const doc = take(data, {
2265
- configuredTableSummaries: (_) => de_ConfiguredTableSummaryList(_, context),
3262
+ membershipSummaries: (_) => de_MembershipSummaryList(_, context),
2266
3263
  nextToken: __expectString,
2267
3264
  });
2268
3265
  Object.assign(contents, doc);
2269
3266
  return contents;
2270
3267
  };
2271
- const de_ListConfiguredTablesCommandError = async (output, context) => {
3268
+ const de_ListMembershipsCommandError = async (output, context) => {
2272
3269
  const parsedOutput = {
2273
3270
  ...output,
2274
3271
  body: await parseErrorBody(output.body, context),
@@ -2296,22 +3293,22 @@ const de_ListConfiguredTablesCommandError = async (output, context) => {
2296
3293
  });
2297
3294
  }
2298
3295
  };
2299
- export const de_ListMembersCommand = async (output, context) => {
3296
+ export const de_ListPrivacyBudgetsCommand = async (output, context) => {
2300
3297
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2301
- return de_ListMembersCommandError(output, context);
3298
+ return de_ListPrivacyBudgetsCommandError(output, context);
2302
3299
  }
2303
3300
  const contents = map({
2304
3301
  $metadata: deserializeMetadata(output),
2305
3302
  });
2306
3303
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2307
3304
  const doc = take(data, {
2308
- memberSummaries: (_) => de_MemberSummaryList(_, context),
2309
3305
  nextToken: __expectString,
3306
+ privacyBudgetSummaries: (_) => de_PrivacyBudgetSummaryList(_, context),
2310
3307
  });
2311
3308
  Object.assign(contents, doc);
2312
3309
  return contents;
2313
3310
  };
2314
- const de_ListMembersCommandError = async (output, context) => {
3311
+ const de_ListPrivacyBudgetsCommandError = async (output, context) => {
2315
3312
  const parsedOutput = {
2316
3313
  ...output,
2317
3314
  body: await parseErrorBody(output.body, context),
@@ -2342,22 +3339,22 @@ const de_ListMembersCommandError = async (output, context) => {
2342
3339
  });
2343
3340
  }
2344
3341
  };
2345
- export const de_ListMembershipsCommand = async (output, context) => {
3342
+ export const de_ListPrivacyBudgetTemplatesCommand = async (output, context) => {
2346
3343
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2347
- return de_ListMembershipsCommandError(output, context);
3344
+ return de_ListPrivacyBudgetTemplatesCommandError(output, context);
2348
3345
  }
2349
3346
  const contents = map({
2350
3347
  $metadata: deserializeMetadata(output),
2351
3348
  });
2352
3349
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2353
3350
  const doc = take(data, {
2354
- membershipSummaries: (_) => de_MembershipSummaryList(_, context),
2355
3351
  nextToken: __expectString,
3352
+ privacyBudgetTemplateSummaries: (_) => de_PrivacyBudgetTemplateSummaryList(_, context),
2356
3353
  });
2357
3354
  Object.assign(contents, doc);
2358
3355
  return contents;
2359
3356
  };
2360
- const de_ListMembershipsCommandError = async (output, context) => {
3357
+ const de_ListPrivacyBudgetTemplatesCommandError = async (output, context) => {
2361
3358
  const parsedOutput = {
2362
3359
  ...output,
2363
3360
  body: await parseErrorBody(output.body, context),
@@ -2370,6 +3367,9 @@ const de_ListMembershipsCommandError = async (output, context) => {
2370
3367
  case "InternalServerException":
2371
3368
  case "com.amazonaws.cleanrooms#InternalServerException":
2372
3369
  throw await de_InternalServerExceptionRes(parsedOutput, context);
3370
+ case "ResourceNotFoundException":
3371
+ case "com.amazonaws.cleanrooms#ResourceNotFoundException":
3372
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2373
3373
  case "ThrottlingException":
2374
3374
  case "com.amazonaws.cleanrooms#ThrottlingException":
2375
3375
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
@@ -2491,16 +3491,61 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
2491
3491
  Object.assign(contents, doc);
2492
3492
  return contents;
2493
3493
  };
2494
- const de_ListTagsForResourceCommandError = async (output, context) => {
3494
+ const de_ListTagsForResourceCommandError = async (output, context) => {
3495
+ const parsedOutput = {
3496
+ ...output,
3497
+ body: await parseErrorBody(output.body, context),
3498
+ };
3499
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3500
+ switch (errorCode) {
3501
+ case "ResourceNotFoundException":
3502
+ case "com.amazonaws.cleanrooms#ResourceNotFoundException":
3503
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3504
+ case "ValidationException":
3505
+ case "com.amazonaws.cleanrooms#ValidationException":
3506
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3507
+ default:
3508
+ const parsedBody = parsedOutput.body;
3509
+ return throwDefaultError({
3510
+ output,
3511
+ parsedBody,
3512
+ errorCode,
3513
+ });
3514
+ }
3515
+ };
3516
+ export const de_PreviewPrivacyImpactCommand = async (output, context) => {
3517
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3518
+ return de_PreviewPrivacyImpactCommandError(output, context);
3519
+ }
3520
+ const contents = map({
3521
+ $metadata: deserializeMetadata(output),
3522
+ });
3523
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3524
+ const doc = take(data, {
3525
+ privacyImpact: (_) => _json(__expectUnion(_)),
3526
+ });
3527
+ Object.assign(contents, doc);
3528
+ return contents;
3529
+ };
3530
+ const de_PreviewPrivacyImpactCommandError = async (output, context) => {
2495
3531
  const parsedOutput = {
2496
3532
  ...output,
2497
3533
  body: await parseErrorBody(output.body, context),
2498
3534
  };
2499
3535
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2500
3536
  switch (errorCode) {
3537
+ case "AccessDeniedException":
3538
+ case "com.amazonaws.cleanrooms#AccessDeniedException":
3539
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3540
+ case "InternalServerException":
3541
+ case "com.amazonaws.cleanrooms#InternalServerException":
3542
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2501
3543
  case "ResourceNotFoundException":
2502
3544
  case "com.amazonaws.cleanrooms#ResourceNotFoundException":
2503
3545
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3546
+ case "ThrottlingException":
3547
+ case "com.amazonaws.cleanrooms#ThrottlingException":
3548
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2504
3549
  case "ValidationException":
2505
3550
  case "com.amazonaws.cleanrooms#ValidationException":
2506
3551
  throw await de_ValidationExceptionRes(parsedOutput, context);
@@ -2712,6 +3757,51 @@ const de_UpdateCollaborationCommandError = async (output, context) => {
2712
3757
  });
2713
3758
  }
2714
3759
  };
3760
+ export const de_UpdateConfiguredAudienceModelAssociationCommand = async (output, context) => {
3761
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3762
+ return de_UpdateConfiguredAudienceModelAssociationCommandError(output, context);
3763
+ }
3764
+ const contents = map({
3765
+ $metadata: deserializeMetadata(output),
3766
+ });
3767
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3768
+ const doc = take(data, {
3769
+ configuredAudienceModelAssociation: (_) => de_ConfiguredAudienceModelAssociation(_, context),
3770
+ });
3771
+ Object.assign(contents, doc);
3772
+ return contents;
3773
+ };
3774
+ const de_UpdateConfiguredAudienceModelAssociationCommandError = async (output, context) => {
3775
+ const parsedOutput = {
3776
+ ...output,
3777
+ body: await parseErrorBody(output.body, context),
3778
+ };
3779
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3780
+ switch (errorCode) {
3781
+ case "AccessDeniedException":
3782
+ case "com.amazonaws.cleanrooms#AccessDeniedException":
3783
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3784
+ case "InternalServerException":
3785
+ case "com.amazonaws.cleanrooms#InternalServerException":
3786
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
3787
+ case "ResourceNotFoundException":
3788
+ case "com.amazonaws.cleanrooms#ResourceNotFoundException":
3789
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3790
+ case "ThrottlingException":
3791
+ case "com.amazonaws.cleanrooms#ThrottlingException":
3792
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
3793
+ case "ValidationException":
3794
+ case "com.amazonaws.cleanrooms#ValidationException":
3795
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3796
+ default:
3797
+ const parsedBody = parsedOutput.body;
3798
+ return throwDefaultError({
3799
+ output,
3800
+ parsedBody,
3801
+ errorCode,
3802
+ });
3803
+ }
3804
+ };
2715
3805
  export const de_UpdateConfiguredTableCommand = async (output, context) => {
2716
3806
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2717
3807
  return de_UpdateConfiguredTableCommandError(output, context);
@@ -2904,6 +3994,54 @@ const de_UpdateMembershipCommandError = async (output, context) => {
2904
3994
  });
2905
3995
  }
2906
3996
  };
3997
+ export const de_UpdatePrivacyBudgetTemplateCommand = async (output, context) => {
3998
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3999
+ return de_UpdatePrivacyBudgetTemplateCommandError(output, context);
4000
+ }
4001
+ const contents = map({
4002
+ $metadata: deserializeMetadata(output),
4003
+ });
4004
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4005
+ const doc = take(data, {
4006
+ privacyBudgetTemplate: (_) => de_PrivacyBudgetTemplate(_, context),
4007
+ });
4008
+ Object.assign(contents, doc);
4009
+ return contents;
4010
+ };
4011
+ const de_UpdatePrivacyBudgetTemplateCommandError = async (output, context) => {
4012
+ const parsedOutput = {
4013
+ ...output,
4014
+ body: await parseErrorBody(output.body, context),
4015
+ };
4016
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4017
+ switch (errorCode) {
4018
+ case "AccessDeniedException":
4019
+ case "com.amazonaws.cleanrooms#AccessDeniedException":
4020
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4021
+ case "ConflictException":
4022
+ case "com.amazonaws.cleanrooms#ConflictException":
4023
+ throw await de_ConflictExceptionRes(parsedOutput, context);
4024
+ case "InternalServerException":
4025
+ case "com.amazonaws.cleanrooms#InternalServerException":
4026
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
4027
+ case "ResourceNotFoundException":
4028
+ case "com.amazonaws.cleanrooms#ResourceNotFoundException":
4029
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4030
+ case "ThrottlingException":
4031
+ case "com.amazonaws.cleanrooms#ThrottlingException":
4032
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
4033
+ case "ValidationException":
4034
+ case "com.amazonaws.cleanrooms#ValidationException":
4035
+ throw await de_ValidationExceptionRes(parsedOutput, context);
4036
+ default:
4037
+ const parsedBody = parsedOutput.body;
4038
+ return throwDefaultError({
4039
+ output,
4040
+ parsedBody,
4041
+ errorCode,
4042
+ });
4043
+ }
4044
+ };
2907
4045
  export const de_UpdateProtectedQueryCommand = async (output, context) => {
2908
4046
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2909
4047
  return de_UpdateProtectedQueryCommandError(output, context);
@@ -3167,6 +4305,97 @@ const de_CollaborationAnalysisTemplateSummaryList = (output, context) => {
3167
4305
  });
3168
4306
  return retVal;
3169
4307
  };
4308
+ const de_CollaborationConfiguredAudienceModelAssociation = (output, context) => {
4309
+ return take(output, {
4310
+ arn: __expectString,
4311
+ collaborationArn: __expectString,
4312
+ collaborationId: __expectString,
4313
+ configuredAudienceModelArn: __expectString,
4314
+ createTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4315
+ creatorAccountId: __expectString,
4316
+ description: __expectString,
4317
+ id: __expectString,
4318
+ name: __expectString,
4319
+ updateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4320
+ });
4321
+ };
4322
+ const de_CollaborationConfiguredAudienceModelAssociationSummary = (output, context) => {
4323
+ return take(output, {
4324
+ arn: __expectString,
4325
+ collaborationArn: __expectString,
4326
+ collaborationId: __expectString,
4327
+ createTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4328
+ creatorAccountId: __expectString,
4329
+ description: __expectString,
4330
+ id: __expectString,
4331
+ name: __expectString,
4332
+ updateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4333
+ });
4334
+ };
4335
+ const de_CollaborationConfiguredAudienceModelAssociationSummaryList = (output, context) => {
4336
+ const retVal = (output || [])
4337
+ .filter((e) => e != null)
4338
+ .map((entry) => {
4339
+ return de_CollaborationConfiguredAudienceModelAssociationSummary(entry, context);
4340
+ });
4341
+ return retVal;
4342
+ };
4343
+ const de_CollaborationPrivacyBudgetSummary = (output, context) => {
4344
+ return take(output, {
4345
+ budget: (_) => _json(__expectUnion(_)),
4346
+ collaborationArn: __expectString,
4347
+ collaborationId: __expectString,
4348
+ createTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4349
+ creatorAccountId: __expectString,
4350
+ id: __expectString,
4351
+ privacyBudgetTemplateArn: __expectString,
4352
+ privacyBudgetTemplateId: __expectString,
4353
+ type: __expectString,
4354
+ updateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4355
+ });
4356
+ };
4357
+ const de_CollaborationPrivacyBudgetSummaryList = (output, context) => {
4358
+ const retVal = (output || [])
4359
+ .filter((e) => e != null)
4360
+ .map((entry) => {
4361
+ return de_CollaborationPrivacyBudgetSummary(entry, context);
4362
+ });
4363
+ return retVal;
4364
+ };
4365
+ const de_CollaborationPrivacyBudgetTemplate = (output, context) => {
4366
+ return take(output, {
4367
+ arn: __expectString,
4368
+ autoRefresh: __expectString,
4369
+ collaborationArn: __expectString,
4370
+ collaborationId: __expectString,
4371
+ createTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4372
+ creatorAccountId: __expectString,
4373
+ id: __expectString,
4374
+ parameters: (_) => _json(__expectUnion(_)),
4375
+ privacyBudgetType: __expectString,
4376
+ updateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4377
+ });
4378
+ };
4379
+ const de_CollaborationPrivacyBudgetTemplateSummary = (output, context) => {
4380
+ return take(output, {
4381
+ arn: __expectString,
4382
+ collaborationArn: __expectString,
4383
+ collaborationId: __expectString,
4384
+ createTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4385
+ creatorAccountId: __expectString,
4386
+ id: __expectString,
4387
+ privacyBudgetType: __expectString,
4388
+ updateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4389
+ });
4390
+ };
4391
+ const de_CollaborationPrivacyBudgetTemplateSummaryList = (output, context) => {
4392
+ const retVal = (output || [])
4393
+ .filter((e) => e != null)
4394
+ .map((entry) => {
4395
+ return de_CollaborationPrivacyBudgetTemplateSummary(entry, context);
4396
+ });
4397
+ return retVal;
4398
+ };
3170
4399
  const de_CollaborationSummary = (output, context) => {
3171
4400
  return take(output, {
3172
4401
  arn: __expectString,
@@ -3189,6 +4418,45 @@ const de_CollaborationSummaryList = (output, context) => {
3189
4418
  });
3190
4419
  return retVal;
3191
4420
  };
4421
+ const de_ConfiguredAudienceModelAssociation = (output, context) => {
4422
+ return take(output, {
4423
+ arn: __expectString,
4424
+ collaborationArn: __expectString,
4425
+ collaborationId: __expectString,
4426
+ configuredAudienceModelArn: __expectString,
4427
+ createTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4428
+ description: __expectString,
4429
+ id: __expectString,
4430
+ manageResourcePolicies: __expectBoolean,
4431
+ membershipArn: __expectString,
4432
+ membershipId: __expectString,
4433
+ name: __expectString,
4434
+ updateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4435
+ });
4436
+ };
4437
+ const de_ConfiguredAudienceModelAssociationSummary = (output, context) => {
4438
+ return take(output, {
4439
+ arn: __expectString,
4440
+ collaborationArn: __expectString,
4441
+ collaborationId: __expectString,
4442
+ configuredAudienceModelArn: __expectString,
4443
+ createTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4444
+ description: __expectString,
4445
+ id: __expectString,
4446
+ membershipArn: __expectString,
4447
+ membershipId: __expectString,
4448
+ name: __expectString,
4449
+ updateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4450
+ });
4451
+ };
4452
+ const de_ConfiguredAudienceModelAssociationSummaryList = (output, context) => {
4453
+ const retVal = (output || [])
4454
+ .filter((e) => e != null)
4455
+ .map((entry) => {
4456
+ return de_ConfiguredAudienceModelAssociationSummary(entry, context);
4457
+ });
4458
+ return retVal;
4459
+ };
3192
4460
  const de_ConfiguredTable = (output, context) => {
3193
4461
  return take(output, {
3194
4462
  allowedColumns: _json,
@@ -3267,6 +4535,28 @@ const de_ConfiguredTableSummaryList = (output, context) => {
3267
4535
  });
3268
4536
  return retVal;
3269
4537
  };
4538
+ const de_DifferentialPrivacyParameters = (output, context) => {
4539
+ return take(output, {
4540
+ sensitivityParameters: (_) => de_DifferentialPrivacySensitivityParametersList(_, context),
4541
+ });
4542
+ };
4543
+ const de_DifferentialPrivacySensitivityParameters = (output, context) => {
4544
+ return take(output, {
4545
+ aggregationExpression: __expectString,
4546
+ aggregationType: __expectString,
4547
+ maxColumnValue: __limitedParseFloat32,
4548
+ minColumnValue: __limitedParseFloat32,
4549
+ userContributionLimit: __expectInt32,
4550
+ });
4551
+ };
4552
+ const de_DifferentialPrivacySensitivityParametersList = (output, context) => {
4553
+ const retVal = (output || [])
4554
+ .filter((e) => e != null)
4555
+ .map((entry) => {
4556
+ return de_DifferentialPrivacySensitivityParameters(entry, context);
4557
+ });
4558
+ return retVal;
4559
+ };
3270
4560
  const de_Membership = (output, context) => {
3271
4561
  return take(output, {
3272
4562
  arn: __expectString,
@@ -3330,9 +4620,69 @@ const de_MemberSummaryList = (output, context) => {
3330
4620
  });
3331
4621
  return retVal;
3332
4622
  };
4623
+ const de_PrivacyBudgetSummary = (output, context) => {
4624
+ return take(output, {
4625
+ budget: (_) => _json(__expectUnion(_)),
4626
+ collaborationArn: __expectString,
4627
+ collaborationId: __expectString,
4628
+ createTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4629
+ id: __expectString,
4630
+ membershipArn: __expectString,
4631
+ membershipId: __expectString,
4632
+ privacyBudgetTemplateArn: __expectString,
4633
+ privacyBudgetTemplateId: __expectString,
4634
+ type: __expectString,
4635
+ updateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4636
+ });
4637
+ };
4638
+ const de_PrivacyBudgetSummaryList = (output, context) => {
4639
+ const retVal = (output || [])
4640
+ .filter((e) => e != null)
4641
+ .map((entry) => {
4642
+ return de_PrivacyBudgetSummary(entry, context);
4643
+ });
4644
+ return retVal;
4645
+ };
4646
+ const de_PrivacyBudgetTemplate = (output, context) => {
4647
+ return take(output, {
4648
+ arn: __expectString,
4649
+ autoRefresh: __expectString,
4650
+ collaborationArn: __expectString,
4651
+ collaborationId: __expectString,
4652
+ createTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4653
+ id: __expectString,
4654
+ membershipArn: __expectString,
4655
+ membershipId: __expectString,
4656
+ parameters: (_) => _json(__expectUnion(_)),
4657
+ privacyBudgetType: __expectString,
4658
+ updateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4659
+ });
4660
+ };
4661
+ const de_PrivacyBudgetTemplateSummary = (output, context) => {
4662
+ return take(output, {
4663
+ arn: __expectString,
4664
+ collaborationArn: __expectString,
4665
+ collaborationId: __expectString,
4666
+ createTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4667
+ id: __expectString,
4668
+ membershipArn: __expectString,
4669
+ membershipId: __expectString,
4670
+ privacyBudgetType: __expectString,
4671
+ updateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4672
+ });
4673
+ };
4674
+ const de_PrivacyBudgetTemplateSummaryList = (output, context) => {
4675
+ const retVal = (output || [])
4676
+ .filter((e) => e != null)
4677
+ .map((entry) => {
4678
+ return de_PrivacyBudgetTemplateSummary(entry, context);
4679
+ });
4680
+ return retVal;
4681
+ };
3333
4682
  const de_ProtectedQuery = (output, context) => {
3334
4683
  return take(output, {
3335
4684
  createTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4685
+ differentialPrivacy: (_) => de_DifferentialPrivacyParameters(_, context),
3336
4686
  error: _json,
3337
4687
  id: __expectString,
3338
4688
  membershipArn: __expectString,