@aws-sdk/client-wellarchitected 3.423.0 → 3.425.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 (99) hide show
  1. package/README.md +112 -0
  2. package/dist-cjs/WellArchitected.js +28 -0
  3. package/dist-cjs/commands/CreateReviewTemplateCommand.js +51 -0
  4. package/dist-cjs/commands/CreateTemplateShareCommand.js +51 -0
  5. package/dist-cjs/commands/DeleteReviewTemplateCommand.js +51 -0
  6. package/dist-cjs/commands/DeleteTemplateShareCommand.js +51 -0
  7. package/dist-cjs/commands/GetReviewTemplateAnswerCommand.js +51 -0
  8. package/dist-cjs/commands/GetReviewTemplateCommand.js +51 -0
  9. package/dist-cjs/commands/GetReviewTemplateLensReviewCommand.js +51 -0
  10. package/dist-cjs/commands/ListReviewTemplateAnswersCommand.js +51 -0
  11. package/dist-cjs/commands/ListReviewTemplatesCommand.js +51 -0
  12. package/dist-cjs/commands/ListTemplateSharesCommand.js +51 -0
  13. package/dist-cjs/commands/UpdateReviewTemplateAnswerCommand.js +51 -0
  14. package/dist-cjs/commands/UpdateReviewTemplateCommand.js +51 -0
  15. package/dist-cjs/commands/UpdateReviewTemplateLensReviewCommand.js +51 -0
  16. package/dist-cjs/commands/UpgradeReviewTemplateLensReviewCommand.js +51 -0
  17. package/dist-cjs/commands/index.js +14 -0
  18. package/dist-cjs/models/models_0.js +14 -1
  19. package/dist-cjs/pagination/ListReviewTemplateAnswersPaginator.js +29 -0
  20. package/dist-cjs/pagination/ListReviewTemplatesPaginator.js +29 -0
  21. package/dist-cjs/pagination/ListTemplateSharesPaginator.js +29 -0
  22. package/dist-cjs/pagination/index.js +3 -0
  23. package/dist-cjs/protocols/Aws_restJson1.js +1098 -53
  24. package/dist-es/WellArchitected.js +28 -0
  25. package/dist-es/commands/CreateReviewTemplateCommand.js +47 -0
  26. package/dist-es/commands/CreateTemplateShareCommand.js +47 -0
  27. package/dist-es/commands/DeleteReviewTemplateCommand.js +47 -0
  28. package/dist-es/commands/DeleteTemplateShareCommand.js +47 -0
  29. package/dist-es/commands/GetReviewTemplateAnswerCommand.js +47 -0
  30. package/dist-es/commands/GetReviewTemplateCommand.js +47 -0
  31. package/dist-es/commands/GetReviewTemplateLensReviewCommand.js +47 -0
  32. package/dist-es/commands/ListReviewTemplateAnswersCommand.js +47 -0
  33. package/dist-es/commands/ListReviewTemplatesCommand.js +47 -0
  34. package/dist-es/commands/ListTemplateSharesCommand.js +47 -0
  35. package/dist-es/commands/UpdateReviewTemplateAnswerCommand.js +47 -0
  36. package/dist-es/commands/UpdateReviewTemplateCommand.js +47 -0
  37. package/dist-es/commands/UpdateReviewTemplateLensReviewCommand.js +47 -0
  38. package/dist-es/commands/UpgradeReviewTemplateLensReviewCommand.js +47 -0
  39. package/dist-es/commands/index.js +14 -0
  40. package/dist-es/models/models_0.js +13 -0
  41. package/dist-es/pagination/ListReviewTemplateAnswersPaginator.js +25 -0
  42. package/dist-es/pagination/ListReviewTemplatesPaginator.js +25 -0
  43. package/dist-es/pagination/ListTemplateSharesPaginator.js +25 -0
  44. package/dist-es/pagination/index.js +3 -0
  45. package/dist-es/protocols/Aws_restJson1.js +1065 -48
  46. package/dist-types/WellArchitected.d.ts +98 -0
  47. package/dist-types/WellArchitectedClient.d.ts +18 -2
  48. package/dist-types/commands/CreateReviewTemplateCommand.d.ts +114 -0
  49. package/dist-types/commands/CreateTemplateShareCommand.d.ts +111 -0
  50. package/dist-types/commands/CreateWorkloadCommand.d.ts +26 -0
  51. package/dist-types/commands/DeleteReviewTemplateCommand.d.ts +94 -0
  52. package/dist-types/commands/DeleteTemplateShareCommand.d.ts +94 -0
  53. package/dist-types/commands/GetReviewTemplateAnswerCommand.d.ts +141 -0
  54. package/dist-types/commands/GetReviewTemplateCommand.d.ts +106 -0
  55. package/dist-types/commands/GetReviewTemplateLensReviewCommand.d.ts +112 -0
  56. package/dist-types/commands/ListNotificationsCommand.d.ts +3 -0
  57. package/dist-types/commands/ListReviewTemplateAnswersCommand.d.ts +141 -0
  58. package/dist-types/commands/ListReviewTemplatesCommand.d.ts +99 -0
  59. package/dist-types/commands/ListShareInvitationsCommand.d.ts +10 -3
  60. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  61. package/dist-types/commands/ListTemplateSharesCommand.d.ts +101 -0
  62. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  63. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  64. package/dist-types/commands/UpdateReviewTemplateAnswerCommand.d.ts +157 -0
  65. package/dist-types/commands/UpdateReviewTemplateCommand.d.ts +118 -0
  66. package/dist-types/commands/UpdateReviewTemplateLensReviewCommand.d.ts +119 -0
  67. package/dist-types/commands/UpdateShareInvitationCommand.d.ts +2 -1
  68. package/dist-types/commands/UpgradeReviewTemplateLensReviewCommand.d.ts +91 -0
  69. package/dist-types/commands/index.d.ts +14 -0
  70. package/dist-types/models/models_0.d.ts +1206 -103
  71. package/dist-types/pagination/ListReviewTemplateAnswersPaginator.d.ts +7 -0
  72. package/dist-types/pagination/ListReviewTemplatesPaginator.d.ts +7 -0
  73. package/dist-types/pagination/ListTemplateSharesPaginator.d.ts +7 -0
  74. package/dist-types/pagination/index.d.ts +3 -0
  75. package/dist-types/protocols/Aws_restJson1.d.ts +126 -0
  76. package/dist-types/ts3.4/WellArchitected.d.ts +238 -0
  77. package/dist-types/ts3.4/WellArchitectedClient.d.ts +86 -2
  78. package/dist-types/ts3.4/commands/CreateReviewTemplateCommand.d.ts +42 -0
  79. package/dist-types/ts3.4/commands/CreateTemplateShareCommand.d.ts +39 -0
  80. package/dist-types/ts3.4/commands/DeleteReviewTemplateCommand.d.ts +37 -0
  81. package/dist-types/ts3.4/commands/DeleteTemplateShareCommand.d.ts +34 -0
  82. package/dist-types/ts3.4/commands/GetReviewTemplateAnswerCommand.d.ts +42 -0
  83. package/dist-types/ts3.4/commands/GetReviewTemplateCommand.d.ts +38 -0
  84. package/dist-types/ts3.4/commands/GetReviewTemplateLensReviewCommand.d.ts +42 -0
  85. package/dist-types/ts3.4/commands/ListReviewTemplateAnswersCommand.d.ts +42 -0
  86. package/dist-types/ts3.4/commands/ListReviewTemplatesCommand.d.ts +39 -0
  87. package/dist-types/ts3.4/commands/ListTemplateSharesCommand.d.ts +39 -0
  88. package/dist-types/ts3.4/commands/UpdateReviewTemplateAnswerCommand.d.ts +42 -0
  89. package/dist-types/ts3.4/commands/UpdateReviewTemplateCommand.d.ts +42 -0
  90. package/dist-types/ts3.4/commands/UpdateReviewTemplateLensReviewCommand.d.ts +42 -0
  91. package/dist-types/ts3.4/commands/UpgradeReviewTemplateLensReviewCommand.d.ts +38 -0
  92. package/dist-types/ts3.4/commands/index.d.ts +14 -0
  93. package/dist-types/ts3.4/models/models_0.d.ts +227 -0
  94. package/dist-types/ts3.4/pagination/ListReviewTemplateAnswersPaginator.d.ts +11 -0
  95. package/dist-types/ts3.4/pagination/ListReviewTemplatesPaginator.d.ts +11 -0
  96. package/dist-types/ts3.4/pagination/ListTemplateSharesPaginator.d.ts +11 -0
  97. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  98. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +168 -0
  99. package/package.json +31 -31
@@ -158,6 +158,53 @@ export const se_CreateProfileShareCommand = async (input, context) => {
158
158
  body,
159
159
  });
160
160
  };
161
+ export const se_CreateReviewTemplateCommand = async (input, context) => {
162
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
163
+ const headers = {
164
+ "content-type": "application/json",
165
+ };
166
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/reviewTemplates";
167
+ let body;
168
+ body = JSON.stringify(take(input, {
169
+ ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
170
+ Description: [],
171
+ Lenses: (_) => _json(_),
172
+ Notes: [],
173
+ Tags: (_) => _json(_),
174
+ TemplateName: [],
175
+ }));
176
+ return new __HttpRequest({
177
+ protocol,
178
+ hostname,
179
+ port,
180
+ method: "POST",
181
+ headers,
182
+ path: resolvedPath,
183
+ body,
184
+ });
185
+ };
186
+ export const se_CreateTemplateShareCommand = async (input, context) => {
187
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
188
+ const headers = {
189
+ "content-type": "application/json",
190
+ };
191
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/templates/shares/{TemplateArn}";
192
+ resolvedPath = __resolvedPath(resolvedPath, input, "TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
193
+ let body;
194
+ body = JSON.stringify(take(input, {
195
+ ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
196
+ SharedWith: [],
197
+ }));
198
+ return new __HttpRequest({
199
+ protocol,
200
+ hostname,
201
+ port,
202
+ method: "POST",
203
+ headers,
204
+ path: resolvedPath,
205
+ body,
206
+ });
207
+ };
161
208
  export const se_CreateWorkloadCommand = async (input, context) => {
162
209
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
163
210
  const headers = {
@@ -182,6 +229,7 @@ export const se_CreateWorkloadCommand = async (input, context) => {
182
229
  PillarPriorities: (_) => _json(_),
183
230
  ProfileArns: (_) => _json(_),
184
231
  ReviewOwner: [],
232
+ ReviewTemplateArns: (_) => _json(_),
185
233
  Tags: (_) => _json(_),
186
234
  WorkloadName: [],
187
235
  }));
@@ -301,6 +349,47 @@ export const se_DeleteProfileShareCommand = async (input, context) => {
301
349
  body,
302
350
  });
303
351
  };
352
+ export const se_DeleteReviewTemplateCommand = async (input, context) => {
353
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
354
+ const headers = {};
355
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/reviewTemplates/{TemplateArn}";
356
+ resolvedPath = __resolvedPath(resolvedPath, input, "TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
357
+ const query = map({
358
+ ClientRequestToken: [, __expectNonNull(input.ClientRequestToken, `ClientRequestToken`)],
359
+ });
360
+ let body;
361
+ return new __HttpRequest({
362
+ protocol,
363
+ hostname,
364
+ port,
365
+ method: "DELETE",
366
+ headers,
367
+ path: resolvedPath,
368
+ query,
369
+ body,
370
+ });
371
+ };
372
+ export const se_DeleteTemplateShareCommand = async (input, context) => {
373
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
374
+ const headers = {};
375
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/templates/shares/{TemplateArn}/{ShareId}";
376
+ resolvedPath = __resolvedPath(resolvedPath, input, "ShareId", () => input.ShareId, "{ShareId}", false);
377
+ resolvedPath = __resolvedPath(resolvedPath, input, "TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
378
+ const query = map({
379
+ ClientRequestToken: [, __expectNonNull(input.ClientRequestToken, `ClientRequestToken`)],
380
+ });
381
+ let body;
382
+ return new __HttpRequest({
383
+ protocol,
384
+ hostname,
385
+ port,
386
+ method: "DELETE",
387
+ headers,
388
+ path: resolvedPath,
389
+ query,
390
+ body,
391
+ });
392
+ };
304
393
  export const se_DeleteWorkloadCommand = async (input, context) => {
305
394
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
306
395
  const headers = {};
@@ -595,6 +684,59 @@ export const se_GetProfileTemplateCommand = async (input, context) => {
595
684
  body,
596
685
  });
597
686
  };
687
+ export const se_GetReviewTemplateCommand = async (input, context) => {
688
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
689
+ const headers = {};
690
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/reviewTemplates/{TemplateArn}";
691
+ resolvedPath = __resolvedPath(resolvedPath, input, "TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
692
+ let body;
693
+ return new __HttpRequest({
694
+ protocol,
695
+ hostname,
696
+ port,
697
+ method: "GET",
698
+ headers,
699
+ path: resolvedPath,
700
+ body,
701
+ });
702
+ };
703
+ export const se_GetReviewTemplateAnswerCommand = async (input, context) => {
704
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
705
+ const headers = {};
706
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
707
+ "/reviewTemplates/{TemplateArn}/lensReviews/{LensAlias}/answers/{QuestionId}";
708
+ resolvedPath = __resolvedPath(resolvedPath, input, "TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
709
+ resolvedPath = __resolvedPath(resolvedPath, input, "LensAlias", () => input.LensAlias, "{LensAlias}", false);
710
+ resolvedPath = __resolvedPath(resolvedPath, input, "QuestionId", () => input.QuestionId, "{QuestionId}", false);
711
+ let body;
712
+ return new __HttpRequest({
713
+ protocol,
714
+ hostname,
715
+ port,
716
+ method: "GET",
717
+ headers,
718
+ path: resolvedPath,
719
+ body,
720
+ });
721
+ };
722
+ export const se_GetReviewTemplateLensReviewCommand = async (input, context) => {
723
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
724
+ const headers = {};
725
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
726
+ "/reviewTemplates/{TemplateArn}/lensReviews/{LensAlias}";
727
+ resolvedPath = __resolvedPath(resolvedPath, input, "TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
728
+ resolvedPath = __resolvedPath(resolvedPath, input, "LensAlias", () => input.LensAlias, "{LensAlias}", false);
729
+ let body;
730
+ return new __HttpRequest({
731
+ protocol,
732
+ hostname,
733
+ port,
734
+ method: "GET",
735
+ headers,
736
+ path: resolvedPath,
737
+ body,
738
+ });
739
+ };
598
740
  export const se_GetWorkloadCommand = async (input, context) => {
599
741
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
600
742
  const headers = {};
@@ -839,6 +981,7 @@ export const se_ListNotificationsCommand = async (input, context) => {
839
981
  body = JSON.stringify(take(input, {
840
982
  MaxResults: [],
841
983
  NextToken: [],
984
+ ResourceArn: [],
842
985
  WorkloadId: [],
843
986
  }));
844
987
  return new __HttpRequest({
@@ -917,6 +1060,50 @@ export const se_ListProfileSharesCommand = async (input, context) => {
917
1060
  body,
918
1061
  });
919
1062
  };
1063
+ export const se_ListReviewTemplateAnswersCommand = async (input, context) => {
1064
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1065
+ const headers = {};
1066
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1067
+ "/reviewTemplates/{TemplateArn}/lensReviews/{LensAlias}/answers";
1068
+ resolvedPath = __resolvedPath(resolvedPath, input, "TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
1069
+ resolvedPath = __resolvedPath(resolvedPath, input, "LensAlias", () => input.LensAlias, "{LensAlias}", false);
1070
+ const query = map({
1071
+ PillarId: [, input.PillarId],
1072
+ NextToken: [, input.NextToken],
1073
+ MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
1074
+ });
1075
+ let body;
1076
+ return new __HttpRequest({
1077
+ protocol,
1078
+ hostname,
1079
+ port,
1080
+ method: "GET",
1081
+ headers,
1082
+ path: resolvedPath,
1083
+ query,
1084
+ body,
1085
+ });
1086
+ };
1087
+ export const se_ListReviewTemplatesCommand = async (input, context) => {
1088
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1089
+ const headers = {};
1090
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/reviewTemplates";
1091
+ const query = map({
1092
+ NextToken: [, input.NextToken],
1093
+ MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
1094
+ });
1095
+ let body;
1096
+ return new __HttpRequest({
1097
+ protocol,
1098
+ hostname,
1099
+ port,
1100
+ method: "GET",
1101
+ headers,
1102
+ path: resolvedPath,
1103
+ query,
1104
+ body,
1105
+ });
1106
+ };
920
1107
  export const se_ListShareInvitationsCommand = async (input, context) => {
921
1108
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
922
1109
  const headers = {};
@@ -928,6 +1115,7 @@ export const se_ListShareInvitationsCommand = async (input, context) => {
928
1115
  NextToken: [, input.NextToken],
929
1116
  MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
930
1117
  ProfileNamePrefix: [, input.ProfileNamePrefix],
1118
+ TemplateNamePrefix: [, input.TemplateNamePrefix],
931
1119
  });
932
1120
  let body;
933
1121
  return new __HttpRequest({
@@ -957,6 +1145,29 @@ export const se_ListTagsForResourceCommand = async (input, context) => {
957
1145
  body,
958
1146
  });
959
1147
  };
1148
+ export const se_ListTemplateSharesCommand = async (input, context) => {
1149
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1150
+ const headers = {};
1151
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/templates/shares/{TemplateArn}";
1152
+ resolvedPath = __resolvedPath(resolvedPath, input, "TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
1153
+ const query = map({
1154
+ SharedWithPrefix: [, input.SharedWithPrefix],
1155
+ NextToken: [, input.NextToken],
1156
+ MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
1157
+ Status: [, input.Status],
1158
+ });
1159
+ let body;
1160
+ return new __HttpRequest({
1161
+ protocol,
1162
+ hostname,
1163
+ port,
1164
+ method: "GET",
1165
+ headers,
1166
+ path: resolvedPath,
1167
+ query,
1168
+ body,
1169
+ });
1170
+ };
960
1171
  export const se_ListWorkloadsCommand = async (input, context) => {
961
1172
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
962
1173
  const headers = {
@@ -1141,6 +1352,83 @@ export const se_UpdateProfileCommand = async (input, context) => {
1141
1352
  body,
1142
1353
  });
1143
1354
  };
1355
+ export const se_UpdateReviewTemplateCommand = async (input, context) => {
1356
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1357
+ const headers = {
1358
+ "content-type": "application/json",
1359
+ };
1360
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/reviewTemplates/{TemplateArn}";
1361
+ resolvedPath = __resolvedPath(resolvedPath, input, "TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
1362
+ let body;
1363
+ body = JSON.stringify(take(input, {
1364
+ Description: [],
1365
+ LensesToAssociate: (_) => _json(_),
1366
+ LensesToDisassociate: (_) => _json(_),
1367
+ Notes: [],
1368
+ TemplateName: [],
1369
+ }));
1370
+ return new __HttpRequest({
1371
+ protocol,
1372
+ hostname,
1373
+ port,
1374
+ method: "PATCH",
1375
+ headers,
1376
+ path: resolvedPath,
1377
+ body,
1378
+ });
1379
+ };
1380
+ export const se_UpdateReviewTemplateAnswerCommand = async (input, context) => {
1381
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1382
+ const headers = {
1383
+ "content-type": "application/json",
1384
+ };
1385
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1386
+ "/reviewTemplates/{TemplateArn}/lensReviews/{LensAlias}/answers/{QuestionId}";
1387
+ resolvedPath = __resolvedPath(resolvedPath, input, "TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
1388
+ resolvedPath = __resolvedPath(resolvedPath, input, "LensAlias", () => input.LensAlias, "{LensAlias}", false);
1389
+ resolvedPath = __resolvedPath(resolvedPath, input, "QuestionId", () => input.QuestionId, "{QuestionId}", false);
1390
+ let body;
1391
+ body = JSON.stringify(take(input, {
1392
+ ChoiceUpdates: (_) => _json(_),
1393
+ IsApplicable: [],
1394
+ Notes: [],
1395
+ Reason: [],
1396
+ SelectedChoices: (_) => _json(_),
1397
+ }));
1398
+ return new __HttpRequest({
1399
+ protocol,
1400
+ hostname,
1401
+ port,
1402
+ method: "PATCH",
1403
+ headers,
1404
+ path: resolvedPath,
1405
+ body,
1406
+ });
1407
+ };
1408
+ export const se_UpdateReviewTemplateLensReviewCommand = async (input, context) => {
1409
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1410
+ const headers = {
1411
+ "content-type": "application/json",
1412
+ };
1413
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1414
+ "/reviewTemplates/{TemplateArn}/lensReviews/{LensAlias}";
1415
+ resolvedPath = __resolvedPath(resolvedPath, input, "TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
1416
+ resolvedPath = __resolvedPath(resolvedPath, input, "LensAlias", () => input.LensAlias, "{LensAlias}", false);
1417
+ let body;
1418
+ body = JSON.stringify(take(input, {
1419
+ LensNotes: [],
1420
+ PillarNotes: (_) => _json(_),
1421
+ }));
1422
+ return new __HttpRequest({
1423
+ protocol,
1424
+ hostname,
1425
+ port,
1426
+ method: "PATCH",
1427
+ headers,
1428
+ path: resolvedPath,
1429
+ body,
1430
+ });
1431
+ };
1144
1432
  export const se_UpdateShareInvitationCommand = async (input, context) => {
1145
1433
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1146
1434
  const headers = {
@@ -1268,18 +1556,41 @@ export const se_UpgradeProfileVersionCommand = async (input, context) => {
1268
1556
  body,
1269
1557
  });
1270
1558
  };
1271
- export const de_AssociateLensesCommand = async (output, context) => {
1272
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1273
- return de_AssociateLensesCommandError(output, context);
1274
- }
1275
- const contents = map({
1276
- $metadata: deserializeMetadata(output),
1277
- });
1278
- await collectBody(output.body, context);
1279
- return contents;
1280
- };
1281
- const de_AssociateLensesCommandError = async (output, context) => {
1282
- const parsedOutput = {
1559
+ export const se_UpgradeReviewTemplateLensReviewCommand = async (input, context) => {
1560
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1561
+ const headers = {
1562
+ "content-type": "application/json",
1563
+ };
1564
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1565
+ "/reviewTemplates/{TemplateArn}/lensReviews/{LensAlias}/upgrade";
1566
+ resolvedPath = __resolvedPath(resolvedPath, input, "TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
1567
+ resolvedPath = __resolvedPath(resolvedPath, input, "LensAlias", () => input.LensAlias, "{LensAlias}", false);
1568
+ let body;
1569
+ body = JSON.stringify(take(input, {
1570
+ ClientRequestToken: [],
1571
+ }));
1572
+ return new __HttpRequest({
1573
+ protocol,
1574
+ hostname,
1575
+ port,
1576
+ method: "PUT",
1577
+ headers,
1578
+ path: resolvedPath,
1579
+ body,
1580
+ });
1581
+ };
1582
+ export const de_AssociateLensesCommand = async (output, context) => {
1583
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1584
+ return de_AssociateLensesCommandError(output, context);
1585
+ }
1586
+ const contents = map({
1587
+ $metadata: deserializeMetadata(output),
1588
+ });
1589
+ await collectBody(output.body, context);
1590
+ return contents;
1591
+ };
1592
+ const de_AssociateLensesCommandError = async (output, context) => {
1593
+ const parsedOutput = {
1283
1594
  ...output,
1284
1595
  body: await parseErrorBody(output.body, context),
1285
1596
  };
@@ -1612,6 +1923,109 @@ const de_CreateProfileShareCommandError = async (output, context) => {
1612
1923
  });
1613
1924
  }
1614
1925
  };
1926
+ export const de_CreateReviewTemplateCommand = async (output, context) => {
1927
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1928
+ return de_CreateReviewTemplateCommandError(output, context);
1929
+ }
1930
+ const contents = map({
1931
+ $metadata: deserializeMetadata(output),
1932
+ });
1933
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1934
+ const doc = take(data, {
1935
+ TemplateArn: __expectString,
1936
+ });
1937
+ Object.assign(contents, doc);
1938
+ return contents;
1939
+ };
1940
+ const de_CreateReviewTemplateCommandError = async (output, context) => {
1941
+ const parsedOutput = {
1942
+ ...output,
1943
+ body: await parseErrorBody(output.body, context),
1944
+ };
1945
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1946
+ switch (errorCode) {
1947
+ case "AccessDeniedException":
1948
+ case "com.amazonaws.wellarchitected#AccessDeniedException":
1949
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1950
+ case "ConflictException":
1951
+ case "com.amazonaws.wellarchitected#ConflictException":
1952
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1953
+ case "InternalServerException":
1954
+ case "com.amazonaws.wellarchitected#InternalServerException":
1955
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1956
+ case "ResourceNotFoundException":
1957
+ case "com.amazonaws.wellarchitected#ResourceNotFoundException":
1958
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1959
+ case "ServiceQuotaExceededException":
1960
+ case "com.amazonaws.wellarchitected#ServiceQuotaExceededException":
1961
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1962
+ case "ThrottlingException":
1963
+ case "com.amazonaws.wellarchitected#ThrottlingException":
1964
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1965
+ case "ValidationException":
1966
+ case "com.amazonaws.wellarchitected#ValidationException":
1967
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1968
+ default:
1969
+ const parsedBody = parsedOutput.body;
1970
+ return throwDefaultError({
1971
+ output,
1972
+ parsedBody,
1973
+ errorCode,
1974
+ });
1975
+ }
1976
+ };
1977
+ export const de_CreateTemplateShareCommand = async (output, context) => {
1978
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1979
+ return de_CreateTemplateShareCommandError(output, context);
1980
+ }
1981
+ const contents = map({
1982
+ $metadata: deserializeMetadata(output),
1983
+ });
1984
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1985
+ const doc = take(data, {
1986
+ ShareId: __expectString,
1987
+ TemplateArn: __expectString,
1988
+ });
1989
+ Object.assign(contents, doc);
1990
+ return contents;
1991
+ };
1992
+ const de_CreateTemplateShareCommandError = async (output, context) => {
1993
+ const parsedOutput = {
1994
+ ...output,
1995
+ body: await parseErrorBody(output.body, context),
1996
+ };
1997
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1998
+ switch (errorCode) {
1999
+ case "AccessDeniedException":
2000
+ case "com.amazonaws.wellarchitected#AccessDeniedException":
2001
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2002
+ case "ConflictException":
2003
+ case "com.amazonaws.wellarchitected#ConflictException":
2004
+ throw await de_ConflictExceptionRes(parsedOutput, context);
2005
+ case "InternalServerException":
2006
+ case "com.amazonaws.wellarchitected#InternalServerException":
2007
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2008
+ case "ResourceNotFoundException":
2009
+ case "com.amazonaws.wellarchitected#ResourceNotFoundException":
2010
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2011
+ case "ServiceQuotaExceededException":
2012
+ case "com.amazonaws.wellarchitected#ServiceQuotaExceededException":
2013
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2014
+ case "ThrottlingException":
2015
+ case "com.amazonaws.wellarchitected#ThrottlingException":
2016
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2017
+ case "ValidationException":
2018
+ case "com.amazonaws.wellarchitected#ValidationException":
2019
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2020
+ default:
2021
+ const parsedBody = parsedOutput.body;
2022
+ return throwDefaultError({
2023
+ output,
2024
+ parsedBody,
2025
+ errorCode,
2026
+ });
2027
+ }
2028
+ };
1615
2029
  export const de_CreateWorkloadCommand = async (output, context) => {
1616
2030
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1617
2031
  return de_CreateWorkloadCommandError(output, context);
@@ -1892,6 +2306,94 @@ const de_DeleteProfileShareCommandError = async (output, context) => {
1892
2306
  });
1893
2307
  }
1894
2308
  };
2309
+ export const de_DeleteReviewTemplateCommand = async (output, context) => {
2310
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2311
+ return de_DeleteReviewTemplateCommandError(output, context);
2312
+ }
2313
+ const contents = map({
2314
+ $metadata: deserializeMetadata(output),
2315
+ });
2316
+ await collectBody(output.body, context);
2317
+ return contents;
2318
+ };
2319
+ const de_DeleteReviewTemplateCommandError = async (output, context) => {
2320
+ const parsedOutput = {
2321
+ ...output,
2322
+ body: await parseErrorBody(output.body, context),
2323
+ };
2324
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2325
+ switch (errorCode) {
2326
+ case "AccessDeniedException":
2327
+ case "com.amazonaws.wellarchitected#AccessDeniedException":
2328
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2329
+ case "ConflictException":
2330
+ case "com.amazonaws.wellarchitected#ConflictException":
2331
+ throw await de_ConflictExceptionRes(parsedOutput, context);
2332
+ case "InternalServerException":
2333
+ case "com.amazonaws.wellarchitected#InternalServerException":
2334
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2335
+ case "ResourceNotFoundException":
2336
+ case "com.amazonaws.wellarchitected#ResourceNotFoundException":
2337
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2338
+ case "ThrottlingException":
2339
+ case "com.amazonaws.wellarchitected#ThrottlingException":
2340
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2341
+ case "ValidationException":
2342
+ case "com.amazonaws.wellarchitected#ValidationException":
2343
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2344
+ default:
2345
+ const parsedBody = parsedOutput.body;
2346
+ return throwDefaultError({
2347
+ output,
2348
+ parsedBody,
2349
+ errorCode,
2350
+ });
2351
+ }
2352
+ };
2353
+ export const de_DeleteTemplateShareCommand = async (output, context) => {
2354
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2355
+ return de_DeleteTemplateShareCommandError(output, context);
2356
+ }
2357
+ const contents = map({
2358
+ $metadata: deserializeMetadata(output),
2359
+ });
2360
+ await collectBody(output.body, context);
2361
+ return contents;
2362
+ };
2363
+ const de_DeleteTemplateShareCommandError = async (output, context) => {
2364
+ const parsedOutput = {
2365
+ ...output,
2366
+ body: await parseErrorBody(output.body, context),
2367
+ };
2368
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2369
+ switch (errorCode) {
2370
+ case "AccessDeniedException":
2371
+ case "com.amazonaws.wellarchitected#AccessDeniedException":
2372
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2373
+ case "ConflictException":
2374
+ case "com.amazonaws.wellarchitected#ConflictException":
2375
+ throw await de_ConflictExceptionRes(parsedOutput, context);
2376
+ case "InternalServerException":
2377
+ case "com.amazonaws.wellarchitected#InternalServerException":
2378
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2379
+ case "ResourceNotFoundException":
2380
+ case "com.amazonaws.wellarchitected#ResourceNotFoundException":
2381
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2382
+ case "ThrottlingException":
2383
+ case "com.amazonaws.wellarchitected#ThrottlingException":
2384
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2385
+ case "ValidationException":
2386
+ case "com.amazonaws.wellarchitected#ValidationException":
2387
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2388
+ default:
2389
+ const parsedBody = parsedOutput.body;
2390
+ return throwDefaultError({
2391
+ output,
2392
+ parsedBody,
2393
+ errorCode,
2394
+ });
2395
+ }
2396
+ };
1895
2397
  export const de_DeleteWorkloadCommand = async (output, context) => {
1896
2398
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1897
2399
  return de_DeleteWorkloadCommandError(output, context);
@@ -2534,21 +3036,21 @@ const de_GetProfileTemplateCommandError = async (output, context) => {
2534
3036
  });
2535
3037
  }
2536
3038
  };
2537
- export const de_GetWorkloadCommand = async (output, context) => {
3039
+ export const de_GetReviewTemplateCommand = async (output, context) => {
2538
3040
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2539
- return de_GetWorkloadCommandError(output, context);
3041
+ return de_GetReviewTemplateCommandError(output, context);
2540
3042
  }
2541
3043
  const contents = map({
2542
3044
  $metadata: deserializeMetadata(output),
2543
3045
  });
2544
3046
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2545
3047
  const doc = take(data, {
2546
- Workload: (_) => de_Workload(_, context),
3048
+ ReviewTemplate: (_) => de_ReviewTemplate(_, context),
2547
3049
  });
2548
3050
  Object.assign(contents, doc);
2549
3051
  return contents;
2550
3052
  };
2551
- const de_GetWorkloadCommandError = async (output, context) => {
3053
+ const de_GetReviewTemplateCommandError = async (output, context) => {
2552
3054
  const parsedOutput = {
2553
3055
  ...output,
2554
3056
  body: await parseErrorBody(output.body, context),
@@ -2579,22 +3081,23 @@ const de_GetWorkloadCommandError = async (output, context) => {
2579
3081
  });
2580
3082
  }
2581
3083
  };
2582
- export const de_ImportLensCommand = async (output, context) => {
3084
+ export const de_GetReviewTemplateAnswerCommand = async (output, context) => {
2583
3085
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2584
- return de_ImportLensCommandError(output, context);
3086
+ return de_GetReviewTemplateAnswerCommandError(output, context);
2585
3087
  }
2586
3088
  const contents = map({
2587
3089
  $metadata: deserializeMetadata(output),
2588
3090
  });
2589
3091
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2590
3092
  const doc = take(data, {
2591
- LensArn: __expectString,
2592
- Status: __expectString,
3093
+ Answer: _json,
3094
+ LensAlias: __expectString,
3095
+ TemplateArn: __expectString,
2593
3096
  });
2594
3097
  Object.assign(contents, doc);
2595
3098
  return contents;
2596
3099
  };
2597
- const de_ImportLensCommandError = async (output, context) => {
3100
+ const de_GetReviewTemplateAnswerCommandError = async (output, context) => {
2598
3101
  const parsedOutput = {
2599
3102
  ...output,
2600
3103
  body: await parseErrorBody(output.body, context),
@@ -2604,18 +3107,12 @@ const de_ImportLensCommandError = async (output, context) => {
2604
3107
  case "AccessDeniedException":
2605
3108
  case "com.amazonaws.wellarchitected#AccessDeniedException":
2606
3109
  throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2607
- case "ConflictException":
2608
- case "com.amazonaws.wellarchitected#ConflictException":
2609
- throw await de_ConflictExceptionRes(parsedOutput, context);
2610
3110
  case "InternalServerException":
2611
3111
  case "com.amazonaws.wellarchitected#InternalServerException":
2612
3112
  throw await de_InternalServerExceptionRes(parsedOutput, context);
2613
3113
  case "ResourceNotFoundException":
2614
3114
  case "com.amazonaws.wellarchitected#ResourceNotFoundException":
2615
3115
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2616
- case "ServiceQuotaExceededException":
2617
- case "com.amazonaws.wellarchitected#ServiceQuotaExceededException":
2618
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2619
3116
  case "ThrottlingException":
2620
3117
  case "com.amazonaws.wellarchitected#ThrottlingException":
2621
3118
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
@@ -2631,26 +3128,22 @@ const de_ImportLensCommandError = async (output, context) => {
2631
3128
  });
2632
3129
  }
2633
3130
  };
2634
- export const de_ListAnswersCommand = async (output, context) => {
3131
+ export const de_GetReviewTemplateLensReviewCommand = async (output, context) => {
2635
3132
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2636
- return de_ListAnswersCommandError(output, context);
3133
+ return de_GetReviewTemplateLensReviewCommandError(output, context);
2637
3134
  }
2638
3135
  const contents = map({
2639
3136
  $metadata: deserializeMetadata(output),
2640
3137
  });
2641
3138
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2642
3139
  const doc = take(data, {
2643
- AnswerSummaries: _json,
2644
- LensAlias: __expectString,
2645
- LensArn: __expectString,
2646
- MilestoneNumber: __expectInt32,
2647
- NextToken: __expectString,
2648
- WorkloadId: __expectString,
3140
+ LensReview: (_) => de_ReviewTemplateLensReview(_, context),
3141
+ TemplateArn: __expectString,
2649
3142
  });
2650
3143
  Object.assign(contents, doc);
2651
3144
  return contents;
2652
3145
  };
2653
- const de_ListAnswersCommandError = async (output, context) => {
3146
+ const de_GetReviewTemplateLensReviewCommandError = async (output, context) => {
2654
3147
  const parsedOutput = {
2655
3148
  ...output,
2656
3149
  body: await parseErrorBody(output.body, context),
@@ -2681,22 +3174,21 @@ const de_ListAnswersCommandError = async (output, context) => {
2681
3174
  });
2682
3175
  }
2683
3176
  };
2684
- export const de_ListCheckDetailsCommand = async (output, context) => {
3177
+ export const de_GetWorkloadCommand = async (output, context) => {
2685
3178
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2686
- return de_ListCheckDetailsCommandError(output, context);
3179
+ return de_GetWorkloadCommandError(output, context);
2687
3180
  }
2688
3181
  const contents = map({
2689
3182
  $metadata: deserializeMetadata(output),
2690
3183
  });
2691
3184
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2692
3185
  const doc = take(data, {
2693
- CheckDetails: (_) => de_CheckDetails(_, context),
2694
- NextToken: __expectString,
3186
+ Workload: (_) => de_Workload(_, context),
2695
3187
  });
2696
3188
  Object.assign(contents, doc);
2697
3189
  return contents;
2698
3190
  };
2699
- const de_ListCheckDetailsCommandError = async (output, context) => {
3191
+ const de_GetWorkloadCommandError = async (output, context) => {
2700
3192
  const parsedOutput = {
2701
3193
  ...output,
2702
3194
  body: await parseErrorBody(output.body, context),
@@ -2727,22 +3219,22 @@ const de_ListCheckDetailsCommandError = async (output, context) => {
2727
3219
  });
2728
3220
  }
2729
3221
  };
2730
- export const de_ListCheckSummariesCommand = async (output, context) => {
3222
+ export const de_ImportLensCommand = async (output, context) => {
2731
3223
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2732
- return de_ListCheckSummariesCommandError(output, context);
3224
+ return de_ImportLensCommandError(output, context);
2733
3225
  }
2734
3226
  const contents = map({
2735
3227
  $metadata: deserializeMetadata(output),
2736
3228
  });
2737
3229
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2738
3230
  const doc = take(data, {
2739
- CheckSummaries: (_) => de_CheckSummaries(_, context),
2740
- NextToken: __expectString,
3231
+ LensArn: __expectString,
3232
+ Status: __expectString,
2741
3233
  });
2742
3234
  Object.assign(contents, doc);
2743
3235
  return contents;
2744
3236
  };
2745
- const de_ListCheckSummariesCommandError = async (output, context) => {
3237
+ const de_ImportLensCommandError = async (output, context) => {
2746
3238
  const parsedOutput = {
2747
3239
  ...output,
2748
3240
  body: await parseErrorBody(output.body, context),
@@ -2752,8 +3244,156 @@ const de_ListCheckSummariesCommandError = async (output, context) => {
2752
3244
  case "AccessDeniedException":
2753
3245
  case "com.amazonaws.wellarchitected#AccessDeniedException":
2754
3246
  throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2755
- case "InternalServerException":
2756
- case "com.amazonaws.wellarchitected#InternalServerException":
3247
+ case "ConflictException":
3248
+ case "com.amazonaws.wellarchitected#ConflictException":
3249
+ throw await de_ConflictExceptionRes(parsedOutput, context);
3250
+ case "InternalServerException":
3251
+ case "com.amazonaws.wellarchitected#InternalServerException":
3252
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
3253
+ case "ResourceNotFoundException":
3254
+ case "com.amazonaws.wellarchitected#ResourceNotFoundException":
3255
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3256
+ case "ServiceQuotaExceededException":
3257
+ case "com.amazonaws.wellarchitected#ServiceQuotaExceededException":
3258
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
3259
+ case "ThrottlingException":
3260
+ case "com.amazonaws.wellarchitected#ThrottlingException":
3261
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
3262
+ case "ValidationException":
3263
+ case "com.amazonaws.wellarchitected#ValidationException":
3264
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3265
+ default:
3266
+ const parsedBody = parsedOutput.body;
3267
+ return throwDefaultError({
3268
+ output,
3269
+ parsedBody,
3270
+ errorCode,
3271
+ });
3272
+ }
3273
+ };
3274
+ export const de_ListAnswersCommand = async (output, context) => {
3275
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3276
+ return de_ListAnswersCommandError(output, context);
3277
+ }
3278
+ const contents = map({
3279
+ $metadata: deserializeMetadata(output),
3280
+ });
3281
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3282
+ const doc = take(data, {
3283
+ AnswerSummaries: _json,
3284
+ LensAlias: __expectString,
3285
+ LensArn: __expectString,
3286
+ MilestoneNumber: __expectInt32,
3287
+ NextToken: __expectString,
3288
+ WorkloadId: __expectString,
3289
+ });
3290
+ Object.assign(contents, doc);
3291
+ return contents;
3292
+ };
3293
+ const de_ListAnswersCommandError = async (output, context) => {
3294
+ const parsedOutput = {
3295
+ ...output,
3296
+ body: await parseErrorBody(output.body, context),
3297
+ };
3298
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3299
+ switch (errorCode) {
3300
+ case "AccessDeniedException":
3301
+ case "com.amazonaws.wellarchitected#AccessDeniedException":
3302
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3303
+ case "InternalServerException":
3304
+ case "com.amazonaws.wellarchitected#InternalServerException":
3305
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
3306
+ case "ResourceNotFoundException":
3307
+ case "com.amazonaws.wellarchitected#ResourceNotFoundException":
3308
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3309
+ case "ThrottlingException":
3310
+ case "com.amazonaws.wellarchitected#ThrottlingException":
3311
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
3312
+ case "ValidationException":
3313
+ case "com.amazonaws.wellarchitected#ValidationException":
3314
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3315
+ default:
3316
+ const parsedBody = parsedOutput.body;
3317
+ return throwDefaultError({
3318
+ output,
3319
+ parsedBody,
3320
+ errorCode,
3321
+ });
3322
+ }
3323
+ };
3324
+ export const de_ListCheckDetailsCommand = async (output, context) => {
3325
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3326
+ return de_ListCheckDetailsCommandError(output, context);
3327
+ }
3328
+ const contents = map({
3329
+ $metadata: deserializeMetadata(output),
3330
+ });
3331
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3332
+ const doc = take(data, {
3333
+ CheckDetails: (_) => de_CheckDetails(_, context),
3334
+ NextToken: __expectString,
3335
+ });
3336
+ Object.assign(contents, doc);
3337
+ return contents;
3338
+ };
3339
+ const de_ListCheckDetailsCommandError = async (output, context) => {
3340
+ const parsedOutput = {
3341
+ ...output,
3342
+ body: await parseErrorBody(output.body, context),
3343
+ };
3344
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3345
+ switch (errorCode) {
3346
+ case "AccessDeniedException":
3347
+ case "com.amazonaws.wellarchitected#AccessDeniedException":
3348
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3349
+ case "InternalServerException":
3350
+ case "com.amazonaws.wellarchitected#InternalServerException":
3351
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
3352
+ case "ResourceNotFoundException":
3353
+ case "com.amazonaws.wellarchitected#ResourceNotFoundException":
3354
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3355
+ case "ThrottlingException":
3356
+ case "com.amazonaws.wellarchitected#ThrottlingException":
3357
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
3358
+ case "ValidationException":
3359
+ case "com.amazonaws.wellarchitected#ValidationException":
3360
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3361
+ default:
3362
+ const parsedBody = parsedOutput.body;
3363
+ return throwDefaultError({
3364
+ output,
3365
+ parsedBody,
3366
+ errorCode,
3367
+ });
3368
+ }
3369
+ };
3370
+ export const de_ListCheckSummariesCommand = async (output, context) => {
3371
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3372
+ return de_ListCheckSummariesCommandError(output, context);
3373
+ }
3374
+ const contents = map({
3375
+ $metadata: deserializeMetadata(output),
3376
+ });
3377
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3378
+ const doc = take(data, {
3379
+ CheckSummaries: (_) => de_CheckSummaries(_, context),
3380
+ NextToken: __expectString,
3381
+ });
3382
+ Object.assign(contents, doc);
3383
+ return contents;
3384
+ };
3385
+ const de_ListCheckSummariesCommandError = async (output, context) => {
3386
+ const parsedOutput = {
3387
+ ...output,
3388
+ body: await parseErrorBody(output.body, context),
3389
+ };
3390
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3391
+ switch (errorCode) {
3392
+ case "AccessDeniedException":
3393
+ case "com.amazonaws.wellarchitected#AccessDeniedException":
3394
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3395
+ case "InternalServerException":
3396
+ case "com.amazonaws.wellarchitected#InternalServerException":
2757
3397
  throw await de_InternalServerExceptionRes(parsedOutput, context);
2758
3398
  case "ResourceNotFoundException":
2759
3399
  case "com.amazonaws.wellarchitected#ResourceNotFoundException":
@@ -3182,6 +3822,97 @@ const de_ListProfileSharesCommandError = async (output, context) => {
3182
3822
  });
3183
3823
  }
3184
3824
  };
3825
+ export const de_ListReviewTemplateAnswersCommand = async (output, context) => {
3826
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3827
+ return de_ListReviewTemplateAnswersCommandError(output, context);
3828
+ }
3829
+ const contents = map({
3830
+ $metadata: deserializeMetadata(output),
3831
+ });
3832
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3833
+ const doc = take(data, {
3834
+ AnswerSummaries: _json,
3835
+ LensAlias: __expectString,
3836
+ NextToken: __expectString,
3837
+ TemplateArn: __expectString,
3838
+ });
3839
+ Object.assign(contents, doc);
3840
+ return contents;
3841
+ };
3842
+ const de_ListReviewTemplateAnswersCommandError = async (output, context) => {
3843
+ const parsedOutput = {
3844
+ ...output,
3845
+ body: await parseErrorBody(output.body, context),
3846
+ };
3847
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3848
+ switch (errorCode) {
3849
+ case "AccessDeniedException":
3850
+ case "com.amazonaws.wellarchitected#AccessDeniedException":
3851
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3852
+ case "InternalServerException":
3853
+ case "com.amazonaws.wellarchitected#InternalServerException":
3854
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
3855
+ case "ResourceNotFoundException":
3856
+ case "com.amazonaws.wellarchitected#ResourceNotFoundException":
3857
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3858
+ case "ThrottlingException":
3859
+ case "com.amazonaws.wellarchitected#ThrottlingException":
3860
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
3861
+ case "ValidationException":
3862
+ case "com.amazonaws.wellarchitected#ValidationException":
3863
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3864
+ default:
3865
+ const parsedBody = parsedOutput.body;
3866
+ return throwDefaultError({
3867
+ output,
3868
+ parsedBody,
3869
+ errorCode,
3870
+ });
3871
+ }
3872
+ };
3873
+ export const de_ListReviewTemplatesCommand = async (output, context) => {
3874
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3875
+ return de_ListReviewTemplatesCommandError(output, context);
3876
+ }
3877
+ const contents = map({
3878
+ $metadata: deserializeMetadata(output),
3879
+ });
3880
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3881
+ const doc = take(data, {
3882
+ NextToken: __expectString,
3883
+ ReviewTemplates: (_) => de_ReviewTemplates(_, context),
3884
+ });
3885
+ Object.assign(contents, doc);
3886
+ return contents;
3887
+ };
3888
+ const de_ListReviewTemplatesCommandError = async (output, context) => {
3889
+ const parsedOutput = {
3890
+ ...output,
3891
+ body: await parseErrorBody(output.body, context),
3892
+ };
3893
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3894
+ switch (errorCode) {
3895
+ case "AccessDeniedException":
3896
+ case "com.amazonaws.wellarchitected#AccessDeniedException":
3897
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3898
+ case "InternalServerException":
3899
+ case "com.amazonaws.wellarchitected#InternalServerException":
3900
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
3901
+ case "ThrottlingException":
3902
+ case "com.amazonaws.wellarchitected#ThrottlingException":
3903
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
3904
+ case "ValidationException":
3905
+ case "com.amazonaws.wellarchitected#ValidationException":
3906
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3907
+ default:
3908
+ const parsedBody = parsedOutput.body;
3909
+ return throwDefaultError({
3910
+ output,
3911
+ parsedBody,
3912
+ errorCode,
3913
+ });
3914
+ }
3915
+ };
3185
3916
  export const de_ListShareInvitationsCommand = async (output, context) => {
3186
3917
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3187
3918
  return de_ListShareInvitationsCommandError(output, context);
@@ -3261,6 +3992,53 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
3261
3992
  });
3262
3993
  }
3263
3994
  };
3995
+ export const de_ListTemplateSharesCommand = async (output, context) => {
3996
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3997
+ return de_ListTemplateSharesCommandError(output, context);
3998
+ }
3999
+ const contents = map({
4000
+ $metadata: deserializeMetadata(output),
4001
+ });
4002
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4003
+ const doc = take(data, {
4004
+ NextToken: __expectString,
4005
+ TemplateArn: __expectString,
4006
+ TemplateShareSummaries: _json,
4007
+ });
4008
+ Object.assign(contents, doc);
4009
+ return contents;
4010
+ };
4011
+ const de_ListTemplateSharesCommandError = 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.wellarchitected#AccessDeniedException":
4020
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4021
+ case "InternalServerException":
4022
+ case "com.amazonaws.wellarchitected#InternalServerException":
4023
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
4024
+ case "ResourceNotFoundException":
4025
+ case "com.amazonaws.wellarchitected#ResourceNotFoundException":
4026
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4027
+ case "ThrottlingException":
4028
+ case "com.amazonaws.wellarchitected#ThrottlingException":
4029
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
4030
+ case "ValidationException":
4031
+ case "com.amazonaws.wellarchitected#ValidationException":
4032
+ throw await de_ValidationExceptionRes(parsedOutput, context);
4033
+ default:
4034
+ const parsedBody = parsedOutput.body;
4035
+ return throwDefaultError({
4036
+ output,
4037
+ parsedBody,
4038
+ errorCode,
4039
+ });
4040
+ }
4041
+ };
3264
4042
  export const de_ListWorkloadsCommand = async (output, context) => {
3265
4043
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3266
4044
  return de_ListWorkloadsCommandError(output, context);
@@ -3604,6 +4382,153 @@ const de_UpdateProfileCommandError = async (output, context) => {
3604
4382
  });
3605
4383
  }
3606
4384
  };
4385
+ export const de_UpdateReviewTemplateCommand = async (output, context) => {
4386
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4387
+ return de_UpdateReviewTemplateCommandError(output, context);
4388
+ }
4389
+ const contents = map({
4390
+ $metadata: deserializeMetadata(output),
4391
+ });
4392
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4393
+ const doc = take(data, {
4394
+ ReviewTemplate: (_) => de_ReviewTemplate(_, context),
4395
+ });
4396
+ Object.assign(contents, doc);
4397
+ return contents;
4398
+ };
4399
+ const de_UpdateReviewTemplateCommandError = async (output, context) => {
4400
+ const parsedOutput = {
4401
+ ...output,
4402
+ body: await parseErrorBody(output.body, context),
4403
+ };
4404
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4405
+ switch (errorCode) {
4406
+ case "AccessDeniedException":
4407
+ case "com.amazonaws.wellarchitected#AccessDeniedException":
4408
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4409
+ case "ConflictException":
4410
+ case "com.amazonaws.wellarchitected#ConflictException":
4411
+ throw await de_ConflictExceptionRes(parsedOutput, context);
4412
+ case "InternalServerException":
4413
+ case "com.amazonaws.wellarchitected#InternalServerException":
4414
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
4415
+ case "ResourceNotFoundException":
4416
+ case "com.amazonaws.wellarchitected#ResourceNotFoundException":
4417
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4418
+ case "ThrottlingException":
4419
+ case "com.amazonaws.wellarchitected#ThrottlingException":
4420
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
4421
+ case "ValidationException":
4422
+ case "com.amazonaws.wellarchitected#ValidationException":
4423
+ throw await de_ValidationExceptionRes(parsedOutput, context);
4424
+ default:
4425
+ const parsedBody = parsedOutput.body;
4426
+ return throwDefaultError({
4427
+ output,
4428
+ parsedBody,
4429
+ errorCode,
4430
+ });
4431
+ }
4432
+ };
4433
+ export const de_UpdateReviewTemplateAnswerCommand = async (output, context) => {
4434
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4435
+ return de_UpdateReviewTemplateAnswerCommandError(output, context);
4436
+ }
4437
+ const contents = map({
4438
+ $metadata: deserializeMetadata(output),
4439
+ });
4440
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4441
+ const doc = take(data, {
4442
+ Answer: _json,
4443
+ LensAlias: __expectString,
4444
+ TemplateArn: __expectString,
4445
+ });
4446
+ Object.assign(contents, doc);
4447
+ return contents;
4448
+ };
4449
+ const de_UpdateReviewTemplateAnswerCommandError = async (output, context) => {
4450
+ const parsedOutput = {
4451
+ ...output,
4452
+ body: await parseErrorBody(output.body, context),
4453
+ };
4454
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4455
+ switch (errorCode) {
4456
+ case "AccessDeniedException":
4457
+ case "com.amazonaws.wellarchitected#AccessDeniedException":
4458
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4459
+ case "ConflictException":
4460
+ case "com.amazonaws.wellarchitected#ConflictException":
4461
+ throw await de_ConflictExceptionRes(parsedOutput, context);
4462
+ case "InternalServerException":
4463
+ case "com.amazonaws.wellarchitected#InternalServerException":
4464
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
4465
+ case "ResourceNotFoundException":
4466
+ case "com.amazonaws.wellarchitected#ResourceNotFoundException":
4467
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4468
+ case "ThrottlingException":
4469
+ case "com.amazonaws.wellarchitected#ThrottlingException":
4470
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
4471
+ case "ValidationException":
4472
+ case "com.amazonaws.wellarchitected#ValidationException":
4473
+ throw await de_ValidationExceptionRes(parsedOutput, context);
4474
+ default:
4475
+ const parsedBody = parsedOutput.body;
4476
+ return throwDefaultError({
4477
+ output,
4478
+ parsedBody,
4479
+ errorCode,
4480
+ });
4481
+ }
4482
+ };
4483
+ export const de_UpdateReviewTemplateLensReviewCommand = async (output, context) => {
4484
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4485
+ return de_UpdateReviewTemplateLensReviewCommandError(output, context);
4486
+ }
4487
+ const contents = map({
4488
+ $metadata: deserializeMetadata(output),
4489
+ });
4490
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4491
+ const doc = take(data, {
4492
+ LensReview: (_) => de_ReviewTemplateLensReview(_, context),
4493
+ TemplateArn: __expectString,
4494
+ });
4495
+ Object.assign(contents, doc);
4496
+ return contents;
4497
+ };
4498
+ const de_UpdateReviewTemplateLensReviewCommandError = async (output, context) => {
4499
+ const parsedOutput = {
4500
+ ...output,
4501
+ body: await parseErrorBody(output.body, context),
4502
+ };
4503
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4504
+ switch (errorCode) {
4505
+ case "AccessDeniedException":
4506
+ case "com.amazonaws.wellarchitected#AccessDeniedException":
4507
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4508
+ case "ConflictException":
4509
+ case "com.amazonaws.wellarchitected#ConflictException":
4510
+ throw await de_ConflictExceptionRes(parsedOutput, context);
4511
+ case "InternalServerException":
4512
+ case "com.amazonaws.wellarchitected#InternalServerException":
4513
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
4514
+ case "ResourceNotFoundException":
4515
+ case "com.amazonaws.wellarchitected#ResourceNotFoundException":
4516
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4517
+ case "ThrottlingException":
4518
+ case "com.amazonaws.wellarchitected#ThrottlingException":
4519
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
4520
+ case "ValidationException":
4521
+ case "com.amazonaws.wellarchitected#ValidationException":
4522
+ throw await de_ValidationExceptionRes(parsedOutput, context);
4523
+ default:
4524
+ const parsedBody = parsedOutput.body;
4525
+ return throwDefaultError({
4526
+ output,
4527
+ parsedBody,
4528
+ errorCode,
4529
+ });
4530
+ }
4531
+ };
3607
4532
  export const de_UpdateShareInvitationCommand = async (output, context) => {
3608
4533
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3609
4534
  return de_UpdateShareInvitationCommandError(output, context);
@@ -3837,6 +4762,50 @@ const de_UpgradeProfileVersionCommandError = async (output, context) => {
3837
4762
  });
3838
4763
  }
3839
4764
  };
4765
+ export const de_UpgradeReviewTemplateLensReviewCommand = async (output, context) => {
4766
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4767
+ return de_UpgradeReviewTemplateLensReviewCommandError(output, context);
4768
+ }
4769
+ const contents = map({
4770
+ $metadata: deserializeMetadata(output),
4771
+ });
4772
+ await collectBody(output.body, context);
4773
+ return contents;
4774
+ };
4775
+ const de_UpgradeReviewTemplateLensReviewCommandError = async (output, context) => {
4776
+ const parsedOutput = {
4777
+ ...output,
4778
+ body: await parseErrorBody(output.body, context),
4779
+ };
4780
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4781
+ switch (errorCode) {
4782
+ case "AccessDeniedException":
4783
+ case "com.amazonaws.wellarchitected#AccessDeniedException":
4784
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4785
+ case "ConflictException":
4786
+ case "com.amazonaws.wellarchitected#ConflictException":
4787
+ throw await de_ConflictExceptionRes(parsedOutput, context);
4788
+ case "InternalServerException":
4789
+ case "com.amazonaws.wellarchitected#InternalServerException":
4790
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
4791
+ case "ResourceNotFoundException":
4792
+ case "com.amazonaws.wellarchitected#ResourceNotFoundException":
4793
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4794
+ case "ThrottlingException":
4795
+ case "com.amazonaws.wellarchitected#ThrottlingException":
4796
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
4797
+ case "ValidationException":
4798
+ case "com.amazonaws.wellarchitected#ValidationException":
4799
+ throw await de_ValidationExceptionRes(parsedOutput, context);
4800
+ default:
4801
+ const parsedBody = parsedOutput.body;
4802
+ return throwDefaultError({
4803
+ output,
4804
+ parsedBody,
4805
+ errorCode,
4806
+ });
4807
+ }
4808
+ };
3840
4809
  const throwDefaultError = withBaseException(__BaseException);
3841
4810
  const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
3842
4811
  const contents = map({});
@@ -4133,6 +5102,54 @@ const de_ProfileTemplate = (output, context) => {
4133
5102
  UpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4134
5103
  });
4135
5104
  };
5105
+ const de_ReviewTemplate = (output, context) => {
5106
+ return take(output, {
5107
+ Description: __expectString,
5108
+ Lenses: _json,
5109
+ Notes: __expectString,
5110
+ Owner: __expectString,
5111
+ QuestionCounts: _json,
5112
+ ShareInvitationId: __expectString,
5113
+ Tags: _json,
5114
+ TemplateArn: __expectString,
5115
+ TemplateName: __expectString,
5116
+ UpdateStatus: __expectString,
5117
+ UpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
5118
+ });
5119
+ };
5120
+ const de_ReviewTemplateLensReview = (output, context) => {
5121
+ return take(output, {
5122
+ LensAlias: __expectString,
5123
+ LensArn: __expectString,
5124
+ LensName: __expectString,
5125
+ LensStatus: __expectString,
5126
+ LensVersion: __expectString,
5127
+ NextToken: __expectString,
5128
+ Notes: __expectString,
5129
+ PillarReviewSummaries: _json,
5130
+ QuestionCounts: _json,
5131
+ UpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
5132
+ });
5133
+ };
5134
+ const de_ReviewTemplates = (output, context) => {
5135
+ const retVal = (output || [])
5136
+ .filter((e) => e != null)
5137
+ .map((entry) => {
5138
+ return de_ReviewTemplateSummary(entry, context);
5139
+ });
5140
+ return retVal;
5141
+ };
5142
+ const de_ReviewTemplateSummary = (output, context) => {
5143
+ return take(output, {
5144
+ Description: __expectString,
5145
+ Lenses: _json,
5146
+ Owner: __expectString,
5147
+ TemplateArn: __expectString,
5148
+ TemplateName: __expectString,
5149
+ UpdateStatus: __expectString,
5150
+ UpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
5151
+ });
5152
+ };
4136
5153
  const de_Workload = (output, context) => {
4137
5154
  return take(output, {
4138
5155
  AccountIds: _json,