@aws-sdk/client-wellarchitected 3.350.0 → 3.353.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 (104) hide show
  1. package/README.md +104 -0
  2. package/dist-cjs/WellArchitected.js +26 -0
  3. package/dist-cjs/commands/AssociateProfilesCommand.js +46 -0
  4. package/dist-cjs/commands/CreateProfileCommand.js +46 -0
  5. package/dist-cjs/commands/CreateProfileShareCommand.js +46 -0
  6. package/dist-cjs/commands/DeleteProfileCommand.js +46 -0
  7. package/dist-cjs/commands/DeleteProfileShareCommand.js +46 -0
  8. package/dist-cjs/commands/DisassociateProfilesCommand.js +46 -0
  9. package/dist-cjs/commands/GetProfileCommand.js +46 -0
  10. package/dist-cjs/commands/GetProfileTemplateCommand.js +46 -0
  11. package/dist-cjs/commands/ListProfileNotificationsCommand.js +46 -0
  12. package/dist-cjs/commands/ListProfileSharesCommand.js +46 -0
  13. package/dist-cjs/commands/ListProfilesCommand.js +46 -0
  14. package/dist-cjs/commands/UpdateProfileCommand.js +46 -0
  15. package/dist-cjs/commands/UpgradeProfileVersionCommand.js +46 -0
  16. package/dist-cjs/commands/index.js +13 -0
  17. package/dist-cjs/models/models_0.js +18 -1
  18. package/dist-cjs/pagination/ListProfileNotificationsPaginator.js +29 -0
  19. package/dist-cjs/pagination/ListProfileSharesPaginator.js +29 -0
  20. package/dist-cjs/pagination/ListProfilesPaginator.js +29 -0
  21. package/dist-cjs/pagination/index.js +3 -0
  22. package/dist-cjs/protocols/Aws_restJson1.js +991 -40
  23. package/dist-es/WellArchitected.js +26 -0
  24. package/dist-es/commands/AssociateProfilesCommand.js +42 -0
  25. package/dist-es/commands/CreateProfileCommand.js +42 -0
  26. package/dist-es/commands/CreateProfileShareCommand.js +42 -0
  27. package/dist-es/commands/DeleteProfileCommand.js +42 -0
  28. package/dist-es/commands/DeleteProfileShareCommand.js +42 -0
  29. package/dist-es/commands/DisassociateProfilesCommand.js +42 -0
  30. package/dist-es/commands/GetProfileCommand.js +42 -0
  31. package/dist-es/commands/GetProfileTemplateCommand.js +42 -0
  32. package/dist-es/commands/ListProfileNotificationsCommand.js +42 -0
  33. package/dist-es/commands/ListProfileSharesCommand.js +42 -0
  34. package/dist-es/commands/ListProfilesCommand.js +42 -0
  35. package/dist-es/commands/UpdateProfileCommand.js +42 -0
  36. package/dist-es/commands/UpgradeProfileVersionCommand.js +42 -0
  37. package/dist-es/commands/index.js +13 -0
  38. package/dist-es/models/models_0.js +17 -0
  39. package/dist-es/pagination/ListProfileNotificationsPaginator.js +25 -0
  40. package/dist-es/pagination/ListProfileSharesPaginator.js +25 -0
  41. package/dist-es/pagination/ListProfilesPaginator.js +25 -0
  42. package/dist-es/pagination/index.js +3 -0
  43. package/dist-es/protocols/Aws_restJson1.js +960 -36
  44. package/dist-types/WellArchitected.d.ts +91 -0
  45. package/dist-types/WellArchitectedClient.d.ts +15 -2
  46. package/dist-types/commands/AssociateProfilesCommand.d.ts +92 -0
  47. package/dist-types/commands/CreateProfileCommand.d.ts +105 -0
  48. package/dist-types/commands/CreateProfileShareCommand.d.ts +97 -0
  49. package/dist-types/commands/CreateWorkloadCommand.d.ts +3 -0
  50. package/dist-types/commands/DeleteProfileCommand.d.ts +101 -0
  51. package/dist-types/commands/DeleteProfileShareCommand.d.ts +91 -0
  52. package/dist-types/commands/DisassociateProfilesCommand.d.ts +92 -0
  53. package/dist-types/commands/GetLensReviewCommand.d.ts +12 -0
  54. package/dist-types/commands/GetMilestoneCommand.d.ts +9 -0
  55. package/dist-types/commands/GetProfileCommand.d.ts +120 -0
  56. package/dist-types/commands/GetProfileTemplateCommand.d.ts +106 -0
  57. package/dist-types/commands/GetWorkloadCommand.d.ts +9 -0
  58. package/dist-types/commands/ListAnswersCommand.d.ts +2 -0
  59. package/dist-types/commands/ListLensReviewImprovementsCommand.d.ts +1 -0
  60. package/dist-types/commands/ListLensReviewsCommand.d.ts +9 -0
  61. package/dist-types/commands/ListMilestonesCommand.d.ts +9 -0
  62. package/dist-types/commands/ListProfileNotificationsCommand.d.ts +98 -0
  63. package/dist-types/commands/ListProfileSharesCommand.d.ts +100 -0
  64. package/dist-types/commands/ListProfilesCommand.d.ts +99 -0
  65. package/dist-types/commands/ListShareInvitationsCommand.d.ts +5 -2
  66. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  67. package/dist-types/commands/ListWorkloadsCommand.d.ts +9 -0
  68. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  69. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  70. package/dist-types/commands/UpdateLensReviewCommand.d.ts +12 -0
  71. package/dist-types/commands/UpdateProfileCommand.d.ts +131 -0
  72. package/dist-types/commands/UpdateShareInvitationCommand.d.ts +2 -1
  73. package/dist-types/commands/UpdateWorkloadCommand.d.ts +9 -0
  74. package/dist-types/commands/UpgradeProfileVersionCommand.d.ts +92 -0
  75. package/dist-types/commands/index.d.ts +13 -0
  76. package/dist-types/models/models_0.d.ts +850 -90
  77. package/dist-types/pagination/ListProfileNotificationsPaginator.d.ts +7 -0
  78. package/dist-types/pagination/ListProfileSharesPaginator.d.ts +7 -0
  79. package/dist-types/pagination/ListProfilesPaginator.d.ts +7 -0
  80. package/dist-types/pagination/index.d.ts +3 -0
  81. package/dist-types/protocols/Aws_restJson1.d.ts +117 -0
  82. package/dist-types/ts3.4/WellArchitected.d.ts +221 -0
  83. package/dist-types/ts3.4/WellArchitectedClient.d.ts +80 -2
  84. package/dist-types/ts3.4/commands/AssociateProfilesCommand.d.ts +33 -0
  85. package/dist-types/ts3.4/commands/CreateProfileCommand.d.ts +35 -0
  86. package/dist-types/ts3.4/commands/CreateProfileShareCommand.d.ts +39 -0
  87. package/dist-types/ts3.4/commands/DeleteProfileCommand.d.ts +33 -0
  88. package/dist-types/ts3.4/commands/DeleteProfileShareCommand.d.ts +34 -0
  89. package/dist-types/ts3.4/commands/DisassociateProfilesCommand.d.ts +37 -0
  90. package/dist-types/ts3.4/commands/GetProfileCommand.d.ts +35 -0
  91. package/dist-types/ts3.4/commands/GetProfileTemplateCommand.d.ts +39 -0
  92. package/dist-types/ts3.4/commands/ListProfileNotificationsCommand.d.ts +42 -0
  93. package/dist-types/ts3.4/commands/ListProfileSharesCommand.d.ts +38 -0
  94. package/dist-types/ts3.4/commands/ListProfilesCommand.d.ts +35 -0
  95. package/dist-types/ts3.4/commands/UpdateProfileCommand.d.ts +35 -0
  96. package/dist-types/ts3.4/commands/UpgradeProfileVersionCommand.d.ts +37 -0
  97. package/dist-types/ts3.4/commands/index.d.ts +13 -0
  98. package/dist-types/ts3.4/models/models_0.d.ts +210 -0
  99. package/dist-types/ts3.4/pagination/ListProfileNotificationsPaginator.d.ts +11 -0
  100. package/dist-types/ts3.4/pagination/ListProfileSharesPaginator.d.ts +11 -0
  101. package/dist-types/ts3.4/pagination/ListProfilesPaginator.d.ts +11 -0
  102. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  103. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +156 -0
  104. package/package.json +13 -13
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_DeleteLensCommand = exports.de_CreateWorkloadShareCommand = exports.de_CreateWorkloadCommand = exports.de_CreateMilestoneCommand = exports.de_CreateLensVersionCommand = exports.de_CreateLensShareCommand = exports.de_AssociateLensesCommand = exports.se_UpgradeLensReviewCommand = exports.se_UpdateWorkloadShareCommand = exports.se_UpdateWorkloadCommand = exports.se_UpdateShareInvitationCommand = exports.se_UpdateLensReviewCommand = exports.se_UpdateGlobalSettingsCommand = exports.se_UpdateAnswerCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ListWorkloadSharesCommand = exports.se_ListWorkloadsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListShareInvitationsCommand = exports.se_ListNotificationsCommand = exports.se_ListMilestonesCommand = exports.se_ListLensSharesCommand = exports.se_ListLensReviewsCommand = exports.se_ListLensReviewImprovementsCommand = exports.se_ListLensesCommand = exports.se_ListCheckSummariesCommand = exports.se_ListCheckDetailsCommand = exports.se_ListAnswersCommand = exports.se_ImportLensCommand = exports.se_GetWorkloadCommand = exports.se_GetMilestoneCommand = exports.se_GetLensVersionDifferenceCommand = exports.se_GetLensReviewReportCommand = exports.se_GetLensReviewCommand = exports.se_GetLensCommand = exports.se_GetConsolidatedReportCommand = exports.se_GetAnswerCommand = exports.se_ExportLensCommand = exports.se_DisassociateLensesCommand = exports.se_DeleteWorkloadShareCommand = exports.se_DeleteWorkloadCommand = exports.se_DeleteLensShareCommand = exports.se_DeleteLensCommand = exports.se_CreateWorkloadShareCommand = exports.se_CreateWorkloadCommand = exports.se_CreateMilestoneCommand = exports.se_CreateLensVersionCommand = exports.se_CreateLensShareCommand = exports.se_AssociateLensesCommand = void 0;
4
- exports.de_UpgradeLensReviewCommand = exports.de_UpdateWorkloadShareCommand = exports.de_UpdateWorkloadCommand = exports.de_UpdateShareInvitationCommand = exports.de_UpdateLensReviewCommand = exports.de_UpdateGlobalSettingsCommand = exports.de_UpdateAnswerCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListWorkloadSharesCommand = exports.de_ListWorkloadsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListShareInvitationsCommand = exports.de_ListNotificationsCommand = exports.de_ListMilestonesCommand = exports.de_ListLensSharesCommand = exports.de_ListLensReviewsCommand = exports.de_ListLensReviewImprovementsCommand = exports.de_ListLensesCommand = exports.de_ListCheckSummariesCommand = exports.de_ListCheckDetailsCommand = exports.de_ListAnswersCommand = exports.de_ImportLensCommand = exports.de_GetWorkloadCommand = exports.de_GetMilestoneCommand = exports.de_GetLensVersionDifferenceCommand = exports.de_GetLensReviewReportCommand = exports.de_GetLensReviewCommand = exports.de_GetLensCommand = exports.de_GetConsolidatedReportCommand = exports.de_GetAnswerCommand = exports.de_ExportLensCommand = exports.de_DisassociateLensesCommand = exports.de_DeleteWorkloadShareCommand = exports.de_DeleteWorkloadCommand = exports.de_DeleteLensShareCommand = void 0;
3
+ exports.se_UpdateLensReviewCommand = exports.se_UpdateGlobalSettingsCommand = exports.se_UpdateAnswerCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ListWorkloadSharesCommand = exports.se_ListWorkloadsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListShareInvitationsCommand = exports.se_ListProfileSharesCommand = exports.se_ListProfilesCommand = exports.se_ListProfileNotificationsCommand = exports.se_ListNotificationsCommand = exports.se_ListMilestonesCommand = exports.se_ListLensSharesCommand = exports.se_ListLensReviewsCommand = exports.se_ListLensReviewImprovementsCommand = exports.se_ListLensesCommand = exports.se_ListCheckSummariesCommand = exports.se_ListCheckDetailsCommand = exports.se_ListAnswersCommand = exports.se_ImportLensCommand = exports.se_GetWorkloadCommand = exports.se_GetProfileTemplateCommand = exports.se_GetProfileCommand = exports.se_GetMilestoneCommand = exports.se_GetLensVersionDifferenceCommand = exports.se_GetLensReviewReportCommand = exports.se_GetLensReviewCommand = exports.se_GetLensCommand = exports.se_GetConsolidatedReportCommand = exports.se_GetAnswerCommand = exports.se_ExportLensCommand = exports.se_DisassociateProfilesCommand = exports.se_DisassociateLensesCommand = exports.se_DeleteWorkloadShareCommand = exports.se_DeleteWorkloadCommand = exports.se_DeleteProfileShareCommand = exports.se_DeleteProfileCommand = exports.se_DeleteLensShareCommand = exports.se_DeleteLensCommand = exports.se_CreateWorkloadShareCommand = exports.se_CreateWorkloadCommand = exports.se_CreateProfileShareCommand = exports.se_CreateProfileCommand = exports.se_CreateMilestoneCommand = exports.se_CreateLensVersionCommand = exports.se_CreateLensShareCommand = exports.se_AssociateProfilesCommand = exports.se_AssociateLensesCommand = void 0;
4
+ exports.de_ListWorkloadsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListShareInvitationsCommand = exports.de_ListProfileSharesCommand = exports.de_ListProfilesCommand = exports.de_ListProfileNotificationsCommand = exports.de_ListNotificationsCommand = exports.de_ListMilestonesCommand = exports.de_ListLensSharesCommand = exports.de_ListLensReviewsCommand = exports.de_ListLensReviewImprovementsCommand = exports.de_ListLensesCommand = exports.de_ListCheckSummariesCommand = exports.de_ListCheckDetailsCommand = exports.de_ListAnswersCommand = exports.de_ImportLensCommand = exports.de_GetWorkloadCommand = exports.de_GetProfileTemplateCommand = exports.de_GetProfileCommand = exports.de_GetMilestoneCommand = exports.de_GetLensVersionDifferenceCommand = exports.de_GetLensReviewReportCommand = exports.de_GetLensReviewCommand = exports.de_GetLensCommand = exports.de_GetConsolidatedReportCommand = exports.de_GetAnswerCommand = exports.de_ExportLensCommand = exports.de_DisassociateProfilesCommand = exports.de_DisassociateLensesCommand = exports.de_DeleteWorkloadShareCommand = exports.de_DeleteWorkloadCommand = exports.de_DeleteProfileShareCommand = exports.de_DeleteProfileCommand = exports.de_DeleteLensShareCommand = exports.de_DeleteLensCommand = exports.de_CreateWorkloadShareCommand = exports.de_CreateWorkloadCommand = exports.de_CreateProfileShareCommand = exports.de_CreateProfileCommand = exports.de_CreateMilestoneCommand = exports.de_CreateLensVersionCommand = exports.de_CreateLensShareCommand = exports.de_AssociateProfilesCommand = exports.de_AssociateLensesCommand = exports.se_UpgradeProfileVersionCommand = exports.se_UpgradeLensReviewCommand = exports.se_UpdateWorkloadShareCommand = exports.se_UpdateWorkloadCommand = exports.se_UpdateShareInvitationCommand = exports.se_UpdateProfileCommand = void 0;
5
+ exports.de_UpgradeProfileVersionCommand = exports.de_UpgradeLensReviewCommand = exports.de_UpdateWorkloadShareCommand = exports.de_UpdateWorkloadCommand = exports.de_UpdateShareInvitationCommand = exports.de_UpdateProfileCommand = exports.de_UpdateLensReviewCommand = exports.de_UpdateGlobalSettingsCommand = exports.de_UpdateAnswerCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListWorkloadSharesCommand = void 0;
5
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
7
  const protocol_http_1 = require("@smithy/protocol-http");
7
8
  const uuid_1 = require("uuid");
@@ -29,6 +30,28 @@ const se_AssociateLensesCommand = async (input, context) => {
29
30
  });
30
31
  };
31
32
  exports.se_AssociateLensesCommand = se_AssociateLensesCommand;
33
+ const se_AssociateProfilesCommand = async (input, context) => {
34
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
35
+ const headers = {
36
+ "content-type": "application/json",
37
+ };
38
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workloads/{WorkloadId}/associateProfiles";
39
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
40
+ let body;
41
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
42
+ ProfileArns: (_) => (0, smithy_client_1._json)(_),
43
+ }));
44
+ return new protocol_http_1.HttpRequest({
45
+ protocol,
46
+ hostname,
47
+ port,
48
+ method: "PATCH",
49
+ headers,
50
+ path: resolvedPath,
51
+ body,
52
+ });
53
+ };
54
+ exports.se_AssociateProfilesCommand = se_AssociateProfilesCommand;
32
55
  const se_CreateLensShareCommand = async (input, context) => {
33
56
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
34
57
  const headers = {
@@ -99,6 +122,54 @@ const se_CreateMilestoneCommand = async (input, context) => {
99
122
  });
100
123
  };
101
124
  exports.se_CreateMilestoneCommand = se_CreateMilestoneCommand;
125
+ const se_CreateProfileCommand = async (input, context) => {
126
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
127
+ const headers = {
128
+ "content-type": "application/json",
129
+ };
130
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profiles";
131
+ let body;
132
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
133
+ ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
134
+ ProfileDescription: [],
135
+ ProfileName: [],
136
+ ProfileQuestions: (_) => (0, smithy_client_1._json)(_),
137
+ Tags: (_) => (0, smithy_client_1._json)(_),
138
+ }));
139
+ return new protocol_http_1.HttpRequest({
140
+ protocol,
141
+ hostname,
142
+ port,
143
+ method: "POST",
144
+ headers,
145
+ path: resolvedPath,
146
+ body,
147
+ });
148
+ };
149
+ exports.se_CreateProfileCommand = se_CreateProfileCommand;
150
+ const se_CreateProfileShareCommand = async (input, context) => {
151
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
152
+ const headers = {
153
+ "content-type": "application/json",
154
+ };
155
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profiles/{ProfileArn}/shares";
156
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ProfileArn", () => input.ProfileArn, "{ProfileArn}", false);
157
+ let body;
158
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
159
+ ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
160
+ SharedWith: [],
161
+ }));
162
+ return new protocol_http_1.HttpRequest({
163
+ protocol,
164
+ hostname,
165
+ port,
166
+ method: "POST",
167
+ headers,
168
+ path: resolvedPath,
169
+ body,
170
+ });
171
+ };
172
+ exports.se_CreateProfileShareCommand = se_CreateProfileShareCommand;
102
173
  const se_CreateWorkloadCommand = async (input, context) => {
103
174
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
104
175
  const headers = {
@@ -121,6 +192,7 @@ const se_CreateWorkloadCommand = async (input, context) => {
121
192
  NonAwsRegions: (_) => (0, smithy_client_1._json)(_),
122
193
  Notes: [],
123
194
  PillarPriorities: (_) => (0, smithy_client_1._json)(_),
195
+ ProfileArns: (_) => (0, smithy_client_1._json)(_),
124
196
  ReviewOwner: [],
125
197
  Tags: (_) => (0, smithy_client_1._json)(_),
126
198
  WorkloadName: [],
@@ -204,6 +276,49 @@ const se_DeleteLensShareCommand = async (input, context) => {
204
276
  });
205
277
  };
206
278
  exports.se_DeleteLensShareCommand = se_DeleteLensShareCommand;
279
+ const se_DeleteProfileCommand = async (input, context) => {
280
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
281
+ const headers = {};
282
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profiles/{ProfileArn}";
283
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ProfileArn", () => input.ProfileArn, "{ProfileArn}", false);
284
+ const query = (0, smithy_client_1.map)({
285
+ ClientRequestToken: [, (0, smithy_client_1.expectNonNull)(input.ClientRequestToken, `ClientRequestToken`)],
286
+ });
287
+ let body;
288
+ return new protocol_http_1.HttpRequest({
289
+ protocol,
290
+ hostname,
291
+ port,
292
+ method: "DELETE",
293
+ headers,
294
+ path: resolvedPath,
295
+ query,
296
+ body,
297
+ });
298
+ };
299
+ exports.se_DeleteProfileCommand = se_DeleteProfileCommand;
300
+ const se_DeleteProfileShareCommand = async (input, context) => {
301
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
302
+ const headers = {};
303
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profiles/{ProfileArn}/shares/{ShareId}";
304
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ShareId", () => input.ShareId, "{ShareId}", false);
305
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ProfileArn", () => input.ProfileArn, "{ProfileArn}", false);
306
+ const query = (0, smithy_client_1.map)({
307
+ ClientRequestToken: [, (0, smithy_client_1.expectNonNull)(input.ClientRequestToken, `ClientRequestToken`)],
308
+ });
309
+ let body;
310
+ return new protocol_http_1.HttpRequest({
311
+ protocol,
312
+ hostname,
313
+ port,
314
+ method: "DELETE",
315
+ headers,
316
+ path: resolvedPath,
317
+ query,
318
+ body,
319
+ });
320
+ };
321
+ exports.se_DeleteProfileShareCommand = se_DeleteProfileShareCommand;
207
322
  const se_DeleteWorkloadCommand = async (input, context) => {
208
323
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
209
324
  const headers = {};
@@ -270,6 +385,29 @@ const se_DisassociateLensesCommand = async (input, context) => {
270
385
  });
271
386
  };
272
387
  exports.se_DisassociateLensesCommand = se_DisassociateLensesCommand;
388
+ const se_DisassociateProfilesCommand = async (input, context) => {
389
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
390
+ const headers = {
391
+ "content-type": "application/json",
392
+ };
393
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
394
+ "/workloads/{WorkloadId}/disassociateProfiles";
395
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
396
+ let body;
397
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
398
+ ProfileArns: (_) => (0, smithy_client_1._json)(_),
399
+ }));
400
+ return new protocol_http_1.HttpRequest({
401
+ protocol,
402
+ hostname,
403
+ port,
404
+ method: "PATCH",
405
+ headers,
406
+ path: resolvedPath,
407
+ body,
408
+ });
409
+ };
410
+ exports.se_DisassociateProfilesCommand = se_DisassociateProfilesCommand;
273
411
  const se_ExportLensCommand = async (input, context) => {
274
412
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
275
413
  const headers = {};
@@ -449,6 +587,46 @@ const se_GetMilestoneCommand = async (input, context) => {
449
587
  });
450
588
  };
451
589
  exports.se_GetMilestoneCommand = se_GetMilestoneCommand;
590
+ const se_GetProfileCommand = async (input, context) => {
591
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
592
+ const headers = {};
593
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profiles/{ProfileArn}";
594
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ProfileArn", () => input.ProfileArn, "{ProfileArn}", false);
595
+ const query = (0, smithy_client_1.map)({
596
+ ProfileVersion: [, input.ProfileVersion],
597
+ });
598
+ let body;
599
+ return new protocol_http_1.HttpRequest({
600
+ protocol,
601
+ hostname,
602
+ port,
603
+ method: "GET",
604
+ headers,
605
+ path: resolvedPath,
606
+ query,
607
+ body,
608
+ });
609
+ };
610
+ exports.se_GetProfileCommand = se_GetProfileCommand;
611
+ const se_GetProfileTemplateCommand = async (input, context) => {
612
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
613
+ const headers = {
614
+ "content-type": "application/json",
615
+ };
616
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profileTemplate";
617
+ let body;
618
+ body = "";
619
+ return new protocol_http_1.HttpRequest({
620
+ protocol,
621
+ hostname,
622
+ port,
623
+ method: "GET",
624
+ headers,
625
+ path: resolvedPath,
626
+ body,
627
+ });
628
+ };
629
+ exports.se_GetProfileTemplateCommand = se_GetProfileTemplateCommand;
452
630
  const se_GetWorkloadCommand = async (input, context) => {
453
631
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
454
632
  const headers = {};
@@ -502,6 +680,7 @@ const se_ListAnswersCommand = async (input, context) => {
502
680
  MilestoneNumber: [() => input.MilestoneNumber !== void 0, () => input.MilestoneNumber.toString()],
503
681
  NextToken: [, input.NextToken],
504
682
  MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
683
+ QuestionPriority: [, input.QuestionPriority],
505
684
  });
506
685
  let body;
507
686
  return new protocol_http_1.HttpRequest({
@@ -606,6 +785,7 @@ const se_ListLensReviewImprovementsCommand = async (input, context) => {
606
785
  MilestoneNumber: [() => input.MilestoneNumber !== void 0, () => input.MilestoneNumber.toString()],
607
786
  NextToken: [, input.NextToken],
608
787
  MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
788
+ QuestionPriority: [, input.QuestionPriority],
609
789
  });
610
790
  let body;
611
791
  return new protocol_http_1.HttpRequest({
@@ -714,6 +894,75 @@ const se_ListNotificationsCommand = async (input, context) => {
714
894
  });
715
895
  };
716
896
  exports.se_ListNotificationsCommand = se_ListNotificationsCommand;
897
+ const se_ListProfileNotificationsCommand = async (input, context) => {
898
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
899
+ const headers = {};
900
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profileNotifications";
901
+ const query = (0, smithy_client_1.map)({
902
+ WorkloadId: [, input.WorkloadId],
903
+ NextToken: [, input.NextToken],
904
+ MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
905
+ });
906
+ let body;
907
+ return new protocol_http_1.HttpRequest({
908
+ protocol,
909
+ hostname,
910
+ port,
911
+ method: "GET",
912
+ headers,
913
+ path: resolvedPath,
914
+ query,
915
+ body,
916
+ });
917
+ };
918
+ exports.se_ListProfileNotificationsCommand = se_ListProfileNotificationsCommand;
919
+ const se_ListProfilesCommand = async (input, context) => {
920
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
921
+ const headers = {};
922
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profileSummaries";
923
+ const query = (0, smithy_client_1.map)({
924
+ ProfileNamePrefix: [, input.ProfileNamePrefix],
925
+ ProfileOwnerType: [, input.ProfileOwnerType],
926
+ NextToken: [, input.NextToken],
927
+ MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
928
+ });
929
+ let body;
930
+ return new protocol_http_1.HttpRequest({
931
+ protocol,
932
+ hostname,
933
+ port,
934
+ method: "GET",
935
+ headers,
936
+ path: resolvedPath,
937
+ query,
938
+ body,
939
+ });
940
+ };
941
+ exports.se_ListProfilesCommand = se_ListProfilesCommand;
942
+ const se_ListProfileSharesCommand = async (input, context) => {
943
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
944
+ const headers = {};
945
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profiles/{ProfileArn}/shares";
946
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ProfileArn", () => input.ProfileArn, "{ProfileArn}", false);
947
+ const query = (0, smithy_client_1.map)({
948
+ SharedWithPrefix: [, input.SharedWithPrefix],
949
+ NextToken: [, input.NextToken],
950
+ MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
951
+ Status: [, input.Status],
952
+ });
953
+ let body;
954
+ return new protocol_http_1.HttpRequest({
955
+ protocol,
956
+ hostname,
957
+ port,
958
+ method: "GET",
959
+ headers,
960
+ path: resolvedPath,
961
+ query,
962
+ body,
963
+ });
964
+ };
965
+ exports.se_ListProfileSharesCommand = se_ListProfileSharesCommand;
717
966
  const se_ListShareInvitationsCommand = async (input, context) => {
718
967
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
719
968
  const headers = {};
@@ -724,6 +973,7 @@ const se_ListShareInvitationsCommand = async (input, context) => {
724
973
  ShareResourceType: [, input.ShareResourceType],
725
974
  NextToken: [, input.NextToken],
726
975
  MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
976
+ ProfileNamePrefix: [, input.ProfileNamePrefix],
727
977
  });
728
978
  let body;
729
979
  return new protocol_http_1.HttpRequest({
@@ -924,6 +1174,29 @@ const se_UpdateLensReviewCommand = async (input, context) => {
924
1174
  });
925
1175
  };
926
1176
  exports.se_UpdateLensReviewCommand = se_UpdateLensReviewCommand;
1177
+ const se_UpdateProfileCommand = async (input, context) => {
1178
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1179
+ const headers = {
1180
+ "content-type": "application/json",
1181
+ };
1182
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profiles/{ProfileArn}";
1183
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ProfileArn", () => input.ProfileArn, "{ProfileArn}", false);
1184
+ let body;
1185
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
1186
+ ProfileDescription: [],
1187
+ ProfileQuestions: (_) => (0, smithy_client_1._json)(_),
1188
+ }));
1189
+ return new protocol_http_1.HttpRequest({
1190
+ protocol,
1191
+ hostname,
1192
+ port,
1193
+ method: "PATCH",
1194
+ headers,
1195
+ path: resolvedPath,
1196
+ body,
1197
+ });
1198
+ };
1199
+ exports.se_UpdateProfileCommand = se_UpdateProfileCommand;
927
1200
  const se_UpdateShareInvitationCommand = async (input, context) => {
928
1201
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
929
1202
  const headers = {
@@ -1031,6 +1304,31 @@ const se_UpgradeLensReviewCommand = async (input, context) => {
1031
1304
  });
1032
1305
  };
1033
1306
  exports.se_UpgradeLensReviewCommand = se_UpgradeLensReviewCommand;
1307
+ const se_UpgradeProfileVersionCommand = async (input, context) => {
1308
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1309
+ const headers = {
1310
+ "content-type": "application/json",
1311
+ };
1312
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1313
+ "/workloads/{WorkloadId}/profiles/{ProfileArn}/upgrade";
1314
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
1315
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ProfileArn", () => input.ProfileArn, "{ProfileArn}", false);
1316
+ let body;
1317
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
1318
+ ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
1319
+ MilestoneName: [],
1320
+ }));
1321
+ return new protocol_http_1.HttpRequest({
1322
+ protocol,
1323
+ hostname,
1324
+ port,
1325
+ method: "PUT",
1326
+ headers,
1327
+ path: resolvedPath,
1328
+ body,
1329
+ });
1330
+ };
1331
+ exports.se_UpgradeProfileVersionCommand = se_UpgradeProfileVersionCommand;
1034
1332
  const de_AssociateLensesCommand = async (output, context) => {
1035
1333
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1036
1334
  return de_AssociateLensesCommandError(output, context);
@@ -1076,22 +1374,18 @@ const de_AssociateLensesCommandError = async (output, context) => {
1076
1374
  });
1077
1375
  }
1078
1376
  };
1079
- const de_CreateLensShareCommand = async (output, context) => {
1377
+ const de_AssociateProfilesCommand = async (output, context) => {
1080
1378
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1081
- return de_CreateLensShareCommandError(output, context);
1379
+ return de_AssociateProfilesCommandError(output, context);
1082
1380
  }
1083
1381
  const contents = (0, smithy_client_1.map)({
1084
1382
  $metadata: deserializeMetadata(output),
1085
1383
  });
1086
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1087
- const doc = (0, smithy_client_1.take)(data, {
1088
- ShareId: smithy_client_1.expectString,
1089
- });
1090
- Object.assign(contents, doc);
1384
+ await collectBody(output.body, context);
1091
1385
  return contents;
1092
1386
  };
1093
- exports.de_CreateLensShareCommand = de_CreateLensShareCommand;
1094
- const de_CreateLensShareCommandError = async (output, context) => {
1387
+ exports.de_AssociateProfilesCommand = de_AssociateProfilesCommand;
1388
+ const de_AssociateProfilesCommandError = async (output, context) => {
1095
1389
  const parsedOutput = {
1096
1390
  ...output,
1097
1391
  body: await parseErrorBody(output.body, context),
@@ -1110,9 +1404,6 @@ const de_CreateLensShareCommandError = async (output, context) => {
1110
1404
  case "ResourceNotFoundException":
1111
1405
  case "com.amazonaws.wellarchitected#ResourceNotFoundException":
1112
1406
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1113
- case "ServiceQuotaExceededException":
1114
- case "com.amazonaws.wellarchitected#ServiceQuotaExceededException":
1115
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1116
1407
  case "ThrottlingException":
1117
1408
  case "com.amazonaws.wellarchitected#ThrottlingException":
1118
1409
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
@@ -1128,22 +1419,74 @@ const de_CreateLensShareCommandError = async (output, context) => {
1128
1419
  });
1129
1420
  }
1130
1421
  };
1131
- const de_CreateLensVersionCommand = async (output, context) => {
1422
+ const de_CreateLensShareCommand = async (output, context) => {
1132
1423
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1133
- return de_CreateLensVersionCommandError(output, context);
1424
+ return de_CreateLensShareCommandError(output, context);
1134
1425
  }
1135
1426
  const contents = (0, smithy_client_1.map)({
1136
1427
  $metadata: deserializeMetadata(output),
1137
1428
  });
1138
1429
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1139
1430
  const doc = (0, smithy_client_1.take)(data, {
1140
- LensArn: smithy_client_1.expectString,
1141
- LensVersion: smithy_client_1.expectString,
1431
+ ShareId: smithy_client_1.expectString,
1142
1432
  });
1143
1433
  Object.assign(contents, doc);
1144
1434
  return contents;
1145
1435
  };
1146
- exports.de_CreateLensVersionCommand = de_CreateLensVersionCommand;
1436
+ exports.de_CreateLensShareCommand = de_CreateLensShareCommand;
1437
+ const de_CreateLensShareCommandError = async (output, context) => {
1438
+ const parsedOutput = {
1439
+ ...output,
1440
+ body: await parseErrorBody(output.body, context),
1441
+ };
1442
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1443
+ switch (errorCode) {
1444
+ case "AccessDeniedException":
1445
+ case "com.amazonaws.wellarchitected#AccessDeniedException":
1446
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1447
+ case "ConflictException":
1448
+ case "com.amazonaws.wellarchitected#ConflictException":
1449
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1450
+ case "InternalServerException":
1451
+ case "com.amazonaws.wellarchitected#InternalServerException":
1452
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1453
+ case "ResourceNotFoundException":
1454
+ case "com.amazonaws.wellarchitected#ResourceNotFoundException":
1455
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1456
+ case "ServiceQuotaExceededException":
1457
+ case "com.amazonaws.wellarchitected#ServiceQuotaExceededException":
1458
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1459
+ case "ThrottlingException":
1460
+ case "com.amazonaws.wellarchitected#ThrottlingException":
1461
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1462
+ case "ValidationException":
1463
+ case "com.amazonaws.wellarchitected#ValidationException":
1464
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1465
+ default:
1466
+ const parsedBody = parsedOutput.body;
1467
+ return throwDefaultError({
1468
+ output,
1469
+ parsedBody,
1470
+ errorCode,
1471
+ });
1472
+ }
1473
+ };
1474
+ const de_CreateLensVersionCommand = async (output, context) => {
1475
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1476
+ return de_CreateLensVersionCommandError(output, context);
1477
+ }
1478
+ const contents = (0, smithy_client_1.map)({
1479
+ $metadata: deserializeMetadata(output),
1480
+ });
1481
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1482
+ const doc = (0, smithy_client_1.take)(data, {
1483
+ LensArn: smithy_client_1.expectString,
1484
+ LensVersion: smithy_client_1.expectString,
1485
+ });
1486
+ Object.assign(contents, doc);
1487
+ return contents;
1488
+ };
1489
+ exports.de_CreateLensVersionCommand = de_CreateLensVersionCommand;
1147
1490
  const de_CreateLensVersionCommandError = async (output, context) => {
1148
1491
  const parsedOutput = {
1149
1492
  ...output,
@@ -1234,6 +1577,109 @@ const de_CreateMilestoneCommandError = async (output, context) => {
1234
1577
  });
1235
1578
  }
1236
1579
  };
1580
+ const de_CreateProfileCommand = async (output, context) => {
1581
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1582
+ return de_CreateProfileCommandError(output, context);
1583
+ }
1584
+ const contents = (0, smithy_client_1.map)({
1585
+ $metadata: deserializeMetadata(output),
1586
+ });
1587
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1588
+ const doc = (0, smithy_client_1.take)(data, {
1589
+ ProfileArn: smithy_client_1.expectString,
1590
+ ProfileVersion: smithy_client_1.expectString,
1591
+ });
1592
+ Object.assign(contents, doc);
1593
+ return contents;
1594
+ };
1595
+ exports.de_CreateProfileCommand = de_CreateProfileCommand;
1596
+ const de_CreateProfileCommandError = async (output, context) => {
1597
+ const parsedOutput = {
1598
+ ...output,
1599
+ body: await parseErrorBody(output.body, context),
1600
+ };
1601
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1602
+ switch (errorCode) {
1603
+ case "AccessDeniedException":
1604
+ case "com.amazonaws.wellarchitected#AccessDeniedException":
1605
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1606
+ case "ConflictException":
1607
+ case "com.amazonaws.wellarchitected#ConflictException":
1608
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1609
+ case "InternalServerException":
1610
+ case "com.amazonaws.wellarchitected#InternalServerException":
1611
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1612
+ case "ServiceQuotaExceededException":
1613
+ case "com.amazonaws.wellarchitected#ServiceQuotaExceededException":
1614
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1615
+ case "ThrottlingException":
1616
+ case "com.amazonaws.wellarchitected#ThrottlingException":
1617
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1618
+ case "ValidationException":
1619
+ case "com.amazonaws.wellarchitected#ValidationException":
1620
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1621
+ default:
1622
+ const parsedBody = parsedOutput.body;
1623
+ return throwDefaultError({
1624
+ output,
1625
+ parsedBody,
1626
+ errorCode,
1627
+ });
1628
+ }
1629
+ };
1630
+ const de_CreateProfileShareCommand = async (output, context) => {
1631
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1632
+ return de_CreateProfileShareCommandError(output, context);
1633
+ }
1634
+ const contents = (0, smithy_client_1.map)({
1635
+ $metadata: deserializeMetadata(output),
1636
+ });
1637
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1638
+ const doc = (0, smithy_client_1.take)(data, {
1639
+ ProfileArn: smithy_client_1.expectString,
1640
+ ShareId: smithy_client_1.expectString,
1641
+ });
1642
+ Object.assign(contents, doc);
1643
+ return contents;
1644
+ };
1645
+ exports.de_CreateProfileShareCommand = de_CreateProfileShareCommand;
1646
+ const de_CreateProfileShareCommandError = async (output, context) => {
1647
+ const parsedOutput = {
1648
+ ...output,
1649
+ body: await parseErrorBody(output.body, context),
1650
+ };
1651
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1652
+ switch (errorCode) {
1653
+ case "AccessDeniedException":
1654
+ case "com.amazonaws.wellarchitected#AccessDeniedException":
1655
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1656
+ case "ConflictException":
1657
+ case "com.amazonaws.wellarchitected#ConflictException":
1658
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1659
+ case "InternalServerException":
1660
+ case "com.amazonaws.wellarchitected#InternalServerException":
1661
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1662
+ case "ResourceNotFoundException":
1663
+ case "com.amazonaws.wellarchitected#ResourceNotFoundException":
1664
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1665
+ case "ServiceQuotaExceededException":
1666
+ case "com.amazonaws.wellarchitected#ServiceQuotaExceededException":
1667
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1668
+ case "ThrottlingException":
1669
+ case "com.amazonaws.wellarchitected#ThrottlingException":
1670
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1671
+ case "ValidationException":
1672
+ case "com.amazonaws.wellarchitected#ValidationException":
1673
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1674
+ default:
1675
+ const parsedBody = parsedOutput.body;
1676
+ return throwDefaultError({
1677
+ output,
1678
+ parsedBody,
1679
+ errorCode,
1680
+ });
1681
+ }
1682
+ };
1237
1683
  const de_CreateWorkloadCommand = async (output, context) => {
1238
1684
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1239
1685
  return de_CreateWorkloadCommandError(output, context);
@@ -1430,6 +1876,96 @@ const de_DeleteLensShareCommandError = async (output, context) => {
1430
1876
  });
1431
1877
  }
1432
1878
  };
1879
+ const de_DeleteProfileCommand = async (output, context) => {
1880
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1881
+ return de_DeleteProfileCommandError(output, context);
1882
+ }
1883
+ const contents = (0, smithy_client_1.map)({
1884
+ $metadata: deserializeMetadata(output),
1885
+ });
1886
+ await collectBody(output.body, context);
1887
+ return contents;
1888
+ };
1889
+ exports.de_DeleteProfileCommand = de_DeleteProfileCommand;
1890
+ const de_DeleteProfileCommandError = async (output, context) => {
1891
+ const parsedOutput = {
1892
+ ...output,
1893
+ body: await parseErrorBody(output.body, context),
1894
+ };
1895
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1896
+ switch (errorCode) {
1897
+ case "AccessDeniedException":
1898
+ case "com.amazonaws.wellarchitected#AccessDeniedException":
1899
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1900
+ case "ConflictException":
1901
+ case "com.amazonaws.wellarchitected#ConflictException":
1902
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1903
+ case "InternalServerException":
1904
+ case "com.amazonaws.wellarchitected#InternalServerException":
1905
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1906
+ case "ResourceNotFoundException":
1907
+ case "com.amazonaws.wellarchitected#ResourceNotFoundException":
1908
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1909
+ case "ThrottlingException":
1910
+ case "com.amazonaws.wellarchitected#ThrottlingException":
1911
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1912
+ case "ValidationException":
1913
+ case "com.amazonaws.wellarchitected#ValidationException":
1914
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1915
+ default:
1916
+ const parsedBody = parsedOutput.body;
1917
+ return throwDefaultError({
1918
+ output,
1919
+ parsedBody,
1920
+ errorCode,
1921
+ });
1922
+ }
1923
+ };
1924
+ const de_DeleteProfileShareCommand = async (output, context) => {
1925
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1926
+ return de_DeleteProfileShareCommandError(output, context);
1927
+ }
1928
+ const contents = (0, smithy_client_1.map)({
1929
+ $metadata: deserializeMetadata(output),
1930
+ });
1931
+ await collectBody(output.body, context);
1932
+ return contents;
1933
+ };
1934
+ exports.de_DeleteProfileShareCommand = de_DeleteProfileShareCommand;
1935
+ const de_DeleteProfileShareCommandError = async (output, context) => {
1936
+ const parsedOutput = {
1937
+ ...output,
1938
+ body: await parseErrorBody(output.body, context),
1939
+ };
1940
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1941
+ switch (errorCode) {
1942
+ case "AccessDeniedException":
1943
+ case "com.amazonaws.wellarchitected#AccessDeniedException":
1944
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1945
+ case "ConflictException":
1946
+ case "com.amazonaws.wellarchitected#ConflictException":
1947
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1948
+ case "InternalServerException":
1949
+ case "com.amazonaws.wellarchitected#InternalServerException":
1950
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1951
+ case "ResourceNotFoundException":
1952
+ case "com.amazonaws.wellarchitected#ResourceNotFoundException":
1953
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1954
+ case "ThrottlingException":
1955
+ case "com.amazonaws.wellarchitected#ThrottlingException":
1956
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1957
+ case "ValidationException":
1958
+ case "com.amazonaws.wellarchitected#ValidationException":
1959
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1960
+ default:
1961
+ const parsedBody = parsedOutput.body;
1962
+ return throwDefaultError({
1963
+ output,
1964
+ parsedBody,
1965
+ errorCode,
1966
+ });
1967
+ }
1968
+ };
1433
1969
  const de_DeleteWorkloadCommand = async (output, context) => {
1434
1970
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1435
1971
  return de_DeleteWorkloadCommandError(output, context);
@@ -1565,6 +2101,51 @@ const de_DisassociateLensesCommandError = async (output, context) => {
1565
2101
  });
1566
2102
  }
1567
2103
  };
2104
+ const de_DisassociateProfilesCommand = async (output, context) => {
2105
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2106
+ return de_DisassociateProfilesCommandError(output, context);
2107
+ }
2108
+ const contents = (0, smithy_client_1.map)({
2109
+ $metadata: deserializeMetadata(output),
2110
+ });
2111
+ await collectBody(output.body, context);
2112
+ return contents;
2113
+ };
2114
+ exports.de_DisassociateProfilesCommand = de_DisassociateProfilesCommand;
2115
+ const de_DisassociateProfilesCommandError = async (output, context) => {
2116
+ const parsedOutput = {
2117
+ ...output,
2118
+ body: await parseErrorBody(output.body, context),
2119
+ };
2120
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2121
+ switch (errorCode) {
2122
+ case "AccessDeniedException":
2123
+ case "com.amazonaws.wellarchitected#AccessDeniedException":
2124
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2125
+ case "ConflictException":
2126
+ case "com.amazonaws.wellarchitected#ConflictException":
2127
+ throw await de_ConflictExceptionRes(parsedOutput, context);
2128
+ case "InternalServerException":
2129
+ case "com.amazonaws.wellarchitected#InternalServerException":
2130
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2131
+ case "ResourceNotFoundException":
2132
+ case "com.amazonaws.wellarchitected#ResourceNotFoundException":
2133
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2134
+ case "ThrottlingException":
2135
+ case "com.amazonaws.wellarchitected#ThrottlingException":
2136
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2137
+ case "ValidationException":
2138
+ case "com.amazonaws.wellarchitected#ValidationException":
2139
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2140
+ default:
2141
+ const parsedBody = parsedOutput.body;
2142
+ return throwDefaultError({
2143
+ output,
2144
+ parsedBody,
2145
+ errorCode,
2146
+ });
2147
+ }
2148
+ };
1568
2149
  const de_ExportLensCommand = async (output, context) => {
1569
2150
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1570
2151
  return de_ExportLensCommandError(output, context);
@@ -1805,22 +2386,120 @@ const de_GetLensReviewCommandError = async (output, context) => {
1805
2386
  };
1806
2387
  const de_GetLensReviewReportCommand = async (output, context) => {
1807
2388
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1808
- return de_GetLensReviewReportCommandError(output, context);
2389
+ return de_GetLensReviewReportCommandError(output, context);
2390
+ }
2391
+ const contents = (0, smithy_client_1.map)({
2392
+ $metadata: deserializeMetadata(output),
2393
+ });
2394
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2395
+ const doc = (0, smithy_client_1.take)(data, {
2396
+ LensReviewReport: smithy_client_1._json,
2397
+ MilestoneNumber: smithy_client_1.expectInt32,
2398
+ WorkloadId: smithy_client_1.expectString,
2399
+ });
2400
+ Object.assign(contents, doc);
2401
+ return contents;
2402
+ };
2403
+ exports.de_GetLensReviewReportCommand = de_GetLensReviewReportCommand;
2404
+ const de_GetLensReviewReportCommandError = async (output, context) => {
2405
+ const parsedOutput = {
2406
+ ...output,
2407
+ body: await parseErrorBody(output.body, context),
2408
+ };
2409
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2410
+ switch (errorCode) {
2411
+ case "AccessDeniedException":
2412
+ case "com.amazonaws.wellarchitected#AccessDeniedException":
2413
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2414
+ case "InternalServerException":
2415
+ case "com.amazonaws.wellarchitected#InternalServerException":
2416
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2417
+ case "ResourceNotFoundException":
2418
+ case "com.amazonaws.wellarchitected#ResourceNotFoundException":
2419
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2420
+ case "ThrottlingException":
2421
+ case "com.amazonaws.wellarchitected#ThrottlingException":
2422
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2423
+ case "ValidationException":
2424
+ case "com.amazonaws.wellarchitected#ValidationException":
2425
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2426
+ default:
2427
+ const parsedBody = parsedOutput.body;
2428
+ return throwDefaultError({
2429
+ output,
2430
+ parsedBody,
2431
+ errorCode,
2432
+ });
2433
+ }
2434
+ };
2435
+ const de_GetLensVersionDifferenceCommand = async (output, context) => {
2436
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2437
+ return de_GetLensVersionDifferenceCommandError(output, context);
2438
+ }
2439
+ const contents = (0, smithy_client_1.map)({
2440
+ $metadata: deserializeMetadata(output),
2441
+ });
2442
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2443
+ const doc = (0, smithy_client_1.take)(data, {
2444
+ BaseLensVersion: smithy_client_1.expectString,
2445
+ LatestLensVersion: smithy_client_1.expectString,
2446
+ LensAlias: smithy_client_1.expectString,
2447
+ LensArn: smithy_client_1.expectString,
2448
+ TargetLensVersion: smithy_client_1.expectString,
2449
+ VersionDifferences: smithy_client_1._json,
2450
+ });
2451
+ Object.assign(contents, doc);
2452
+ return contents;
2453
+ };
2454
+ exports.de_GetLensVersionDifferenceCommand = de_GetLensVersionDifferenceCommand;
2455
+ const de_GetLensVersionDifferenceCommandError = async (output, context) => {
2456
+ const parsedOutput = {
2457
+ ...output,
2458
+ body: await parseErrorBody(output.body, context),
2459
+ };
2460
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2461
+ switch (errorCode) {
2462
+ case "AccessDeniedException":
2463
+ case "com.amazonaws.wellarchitected#AccessDeniedException":
2464
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2465
+ case "InternalServerException":
2466
+ case "com.amazonaws.wellarchitected#InternalServerException":
2467
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2468
+ case "ResourceNotFoundException":
2469
+ case "com.amazonaws.wellarchitected#ResourceNotFoundException":
2470
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2471
+ case "ThrottlingException":
2472
+ case "com.amazonaws.wellarchitected#ThrottlingException":
2473
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2474
+ case "ValidationException":
2475
+ case "com.amazonaws.wellarchitected#ValidationException":
2476
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2477
+ default:
2478
+ const parsedBody = parsedOutput.body;
2479
+ return throwDefaultError({
2480
+ output,
2481
+ parsedBody,
2482
+ errorCode,
2483
+ });
2484
+ }
2485
+ };
2486
+ const de_GetMilestoneCommand = async (output, context) => {
2487
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2488
+ return de_GetMilestoneCommandError(output, context);
1809
2489
  }
1810
2490
  const contents = (0, smithy_client_1.map)({
1811
2491
  $metadata: deserializeMetadata(output),
1812
2492
  });
1813
2493
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1814
2494
  const doc = (0, smithy_client_1.take)(data, {
1815
- LensReviewReport: smithy_client_1._json,
1816
- MilestoneNumber: smithy_client_1.expectInt32,
2495
+ Milestone: (_) => de_Milestone(_, context),
1817
2496
  WorkloadId: smithy_client_1.expectString,
1818
2497
  });
1819
2498
  Object.assign(contents, doc);
1820
2499
  return contents;
1821
2500
  };
1822
- exports.de_GetLensReviewReportCommand = de_GetLensReviewReportCommand;
1823
- const de_GetLensReviewReportCommandError = async (output, context) => {
2501
+ exports.de_GetMilestoneCommand = de_GetMilestoneCommand;
2502
+ const de_GetMilestoneCommandError = async (output, context) => {
1824
2503
  const parsedOutput = {
1825
2504
  ...output,
1826
2505
  body: await parseErrorBody(output.body, context),
@@ -1851,27 +2530,22 @@ const de_GetLensReviewReportCommandError = async (output, context) => {
1851
2530
  });
1852
2531
  }
1853
2532
  };
1854
- const de_GetLensVersionDifferenceCommand = async (output, context) => {
2533
+ const de_GetProfileCommand = async (output, context) => {
1855
2534
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1856
- return de_GetLensVersionDifferenceCommandError(output, context);
2535
+ return de_GetProfileCommandError(output, context);
1857
2536
  }
1858
2537
  const contents = (0, smithy_client_1.map)({
1859
2538
  $metadata: deserializeMetadata(output),
1860
2539
  });
1861
2540
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1862
2541
  const doc = (0, smithy_client_1.take)(data, {
1863
- BaseLensVersion: smithy_client_1.expectString,
1864
- LatestLensVersion: smithy_client_1.expectString,
1865
- LensAlias: smithy_client_1.expectString,
1866
- LensArn: smithy_client_1.expectString,
1867
- TargetLensVersion: smithy_client_1.expectString,
1868
- VersionDifferences: smithy_client_1._json,
2542
+ Profile: (_) => de_Profile(_, context),
1869
2543
  });
1870
2544
  Object.assign(contents, doc);
1871
2545
  return contents;
1872
2546
  };
1873
- exports.de_GetLensVersionDifferenceCommand = de_GetLensVersionDifferenceCommand;
1874
- const de_GetLensVersionDifferenceCommandError = async (output, context) => {
2547
+ exports.de_GetProfileCommand = de_GetProfileCommand;
2548
+ const de_GetProfileCommandError = async (output, context) => {
1875
2549
  const parsedOutput = {
1876
2550
  ...output,
1877
2551
  body: await parseErrorBody(output.body, context),
@@ -1902,23 +2576,22 @@ const de_GetLensVersionDifferenceCommandError = async (output, context) => {
1902
2576
  });
1903
2577
  }
1904
2578
  };
1905
- const de_GetMilestoneCommand = async (output, context) => {
2579
+ const de_GetProfileTemplateCommand = async (output, context) => {
1906
2580
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1907
- return de_GetMilestoneCommandError(output, context);
2581
+ return de_GetProfileTemplateCommandError(output, context);
1908
2582
  }
1909
2583
  const contents = (0, smithy_client_1.map)({
1910
2584
  $metadata: deserializeMetadata(output),
1911
2585
  });
1912
2586
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1913
2587
  const doc = (0, smithy_client_1.take)(data, {
1914
- Milestone: (_) => de_Milestone(_, context),
1915
- WorkloadId: smithy_client_1.expectString,
2588
+ ProfileTemplate: (_) => de_ProfileTemplate(_, context),
1916
2589
  });
1917
2590
  Object.assign(contents, doc);
1918
2591
  return contents;
1919
2592
  };
1920
- exports.de_GetMilestoneCommand = de_GetMilestoneCommand;
1921
- const de_GetMilestoneCommandError = async (output, context) => {
2593
+ exports.de_GetProfileTemplateCommand = de_GetProfileTemplateCommand;
2594
+ const de_GetProfileTemplateCommandError = async (output, context) => {
1922
2595
  const parsedOutput = {
1923
2596
  ...output,
1924
2597
  body: await parseErrorBody(output.body, context),
@@ -2476,6 +3149,141 @@ const de_ListNotificationsCommandError = async (output, context) => {
2476
3149
  });
2477
3150
  }
2478
3151
  };
3152
+ const de_ListProfileNotificationsCommand = async (output, context) => {
3153
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3154
+ return de_ListProfileNotificationsCommandError(output, context);
3155
+ }
3156
+ const contents = (0, smithy_client_1.map)({
3157
+ $metadata: deserializeMetadata(output),
3158
+ });
3159
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3160
+ const doc = (0, smithy_client_1.take)(data, {
3161
+ NextToken: smithy_client_1.expectString,
3162
+ NotificationSummaries: smithy_client_1._json,
3163
+ });
3164
+ Object.assign(contents, doc);
3165
+ return contents;
3166
+ };
3167
+ exports.de_ListProfileNotificationsCommand = de_ListProfileNotificationsCommand;
3168
+ const de_ListProfileNotificationsCommandError = async (output, context) => {
3169
+ const parsedOutput = {
3170
+ ...output,
3171
+ body: await parseErrorBody(output.body, context),
3172
+ };
3173
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3174
+ switch (errorCode) {
3175
+ case "AccessDeniedException":
3176
+ case "com.amazonaws.wellarchitected#AccessDeniedException":
3177
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3178
+ case "InternalServerException":
3179
+ case "com.amazonaws.wellarchitected#InternalServerException":
3180
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
3181
+ case "ThrottlingException":
3182
+ case "com.amazonaws.wellarchitected#ThrottlingException":
3183
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
3184
+ case "ValidationException":
3185
+ case "com.amazonaws.wellarchitected#ValidationException":
3186
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3187
+ default:
3188
+ const parsedBody = parsedOutput.body;
3189
+ return throwDefaultError({
3190
+ output,
3191
+ parsedBody,
3192
+ errorCode,
3193
+ });
3194
+ }
3195
+ };
3196
+ const de_ListProfilesCommand = async (output, context) => {
3197
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3198
+ return de_ListProfilesCommandError(output, context);
3199
+ }
3200
+ const contents = (0, smithy_client_1.map)({
3201
+ $metadata: deserializeMetadata(output),
3202
+ });
3203
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3204
+ const doc = (0, smithy_client_1.take)(data, {
3205
+ NextToken: smithy_client_1.expectString,
3206
+ ProfileSummaries: (_) => de_ProfileSummaries(_, context),
3207
+ });
3208
+ Object.assign(contents, doc);
3209
+ return contents;
3210
+ };
3211
+ exports.de_ListProfilesCommand = de_ListProfilesCommand;
3212
+ const de_ListProfilesCommandError = async (output, context) => {
3213
+ const parsedOutput = {
3214
+ ...output,
3215
+ body: await parseErrorBody(output.body, context),
3216
+ };
3217
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3218
+ switch (errorCode) {
3219
+ case "AccessDeniedException":
3220
+ case "com.amazonaws.wellarchitected#AccessDeniedException":
3221
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3222
+ case "InternalServerException":
3223
+ case "com.amazonaws.wellarchitected#InternalServerException":
3224
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
3225
+ case "ThrottlingException":
3226
+ case "com.amazonaws.wellarchitected#ThrottlingException":
3227
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
3228
+ case "ValidationException":
3229
+ case "com.amazonaws.wellarchitected#ValidationException":
3230
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3231
+ default:
3232
+ const parsedBody = parsedOutput.body;
3233
+ return throwDefaultError({
3234
+ output,
3235
+ parsedBody,
3236
+ errorCode,
3237
+ });
3238
+ }
3239
+ };
3240
+ const de_ListProfileSharesCommand = async (output, context) => {
3241
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3242
+ return de_ListProfileSharesCommandError(output, context);
3243
+ }
3244
+ const contents = (0, smithy_client_1.map)({
3245
+ $metadata: deserializeMetadata(output),
3246
+ });
3247
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3248
+ const doc = (0, smithy_client_1.take)(data, {
3249
+ NextToken: smithy_client_1.expectString,
3250
+ ProfileShareSummaries: smithy_client_1._json,
3251
+ });
3252
+ Object.assign(contents, doc);
3253
+ return contents;
3254
+ };
3255
+ exports.de_ListProfileSharesCommand = de_ListProfileSharesCommand;
3256
+ const de_ListProfileSharesCommandError = async (output, context) => {
3257
+ const parsedOutput = {
3258
+ ...output,
3259
+ body: await parseErrorBody(output.body, context),
3260
+ };
3261
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3262
+ switch (errorCode) {
3263
+ case "AccessDeniedException":
3264
+ case "com.amazonaws.wellarchitected#AccessDeniedException":
3265
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3266
+ case "InternalServerException":
3267
+ case "com.amazonaws.wellarchitected#InternalServerException":
3268
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
3269
+ case "ResourceNotFoundException":
3270
+ case "com.amazonaws.wellarchitected#ResourceNotFoundException":
3271
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3272
+ case "ThrottlingException":
3273
+ case "com.amazonaws.wellarchitected#ThrottlingException":
3274
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
3275
+ case "ValidationException":
3276
+ case "com.amazonaws.wellarchitected#ValidationException":
3277
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3278
+ default:
3279
+ const parsedBody = parsedOutput.body;
3280
+ return throwDefaultError({
3281
+ output,
3282
+ parsedBody,
3283
+ errorCode,
3284
+ });
3285
+ }
3286
+ };
2479
3287
  const de_ListShareInvitationsCommand = async (output, context) => {
2480
3288
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2481
3289
  return de_ListShareInvitationsCommandError(output, context);
@@ -2859,6 +3667,55 @@ const de_UpdateLensReviewCommandError = async (output, context) => {
2859
3667
  });
2860
3668
  }
2861
3669
  };
3670
+ const de_UpdateProfileCommand = async (output, context) => {
3671
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3672
+ return de_UpdateProfileCommandError(output, context);
3673
+ }
3674
+ const contents = (0, smithy_client_1.map)({
3675
+ $metadata: deserializeMetadata(output),
3676
+ });
3677
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3678
+ const doc = (0, smithy_client_1.take)(data, {
3679
+ Profile: (_) => de_Profile(_, context),
3680
+ });
3681
+ Object.assign(contents, doc);
3682
+ return contents;
3683
+ };
3684
+ exports.de_UpdateProfileCommand = de_UpdateProfileCommand;
3685
+ const de_UpdateProfileCommandError = async (output, context) => {
3686
+ const parsedOutput = {
3687
+ ...output,
3688
+ body: await parseErrorBody(output.body, context),
3689
+ };
3690
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3691
+ switch (errorCode) {
3692
+ case "AccessDeniedException":
3693
+ case "com.amazonaws.wellarchitected#AccessDeniedException":
3694
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3695
+ case "ConflictException":
3696
+ case "com.amazonaws.wellarchitected#ConflictException":
3697
+ throw await de_ConflictExceptionRes(parsedOutput, context);
3698
+ case "InternalServerException":
3699
+ case "com.amazonaws.wellarchitected#InternalServerException":
3700
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
3701
+ case "ResourceNotFoundException":
3702
+ case "com.amazonaws.wellarchitected#ResourceNotFoundException":
3703
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3704
+ case "ThrottlingException":
3705
+ case "com.amazonaws.wellarchitected#ThrottlingException":
3706
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
3707
+ case "ValidationException":
3708
+ case "com.amazonaws.wellarchitected#ValidationException":
3709
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3710
+ default:
3711
+ const parsedBody = parsedOutput.body;
3712
+ return throwDefaultError({
3713
+ output,
3714
+ parsedBody,
3715
+ errorCode,
3716
+ });
3717
+ }
3718
+ };
2862
3719
  const de_UpdateShareInvitationCommand = async (output, context) => {
2863
3720
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2864
3721
  return de_UpdateShareInvitationCommandError(output, context);
@@ -3052,6 +3909,51 @@ const de_UpgradeLensReviewCommandError = async (output, context) => {
3052
3909
  });
3053
3910
  }
3054
3911
  };
3912
+ const de_UpgradeProfileVersionCommand = async (output, context) => {
3913
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3914
+ return de_UpgradeProfileVersionCommandError(output, context);
3915
+ }
3916
+ const contents = (0, smithy_client_1.map)({
3917
+ $metadata: deserializeMetadata(output),
3918
+ });
3919
+ await collectBody(output.body, context);
3920
+ return contents;
3921
+ };
3922
+ exports.de_UpgradeProfileVersionCommand = de_UpgradeProfileVersionCommand;
3923
+ const de_UpgradeProfileVersionCommandError = async (output, context) => {
3924
+ const parsedOutput = {
3925
+ ...output,
3926
+ body: await parseErrorBody(output.body, context),
3927
+ };
3928
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3929
+ switch (errorCode) {
3930
+ case "AccessDeniedException":
3931
+ case "com.amazonaws.wellarchitected#AccessDeniedException":
3932
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3933
+ case "ConflictException":
3934
+ case "com.amazonaws.wellarchitected#ConflictException":
3935
+ throw await de_ConflictExceptionRes(parsedOutput, context);
3936
+ case "InternalServerException":
3937
+ case "com.amazonaws.wellarchitected#InternalServerException":
3938
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
3939
+ case "ResourceNotFoundException":
3940
+ case "com.amazonaws.wellarchitected#ResourceNotFoundException":
3941
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3942
+ case "ThrottlingException":
3943
+ case "com.amazonaws.wellarchitected#ThrottlingException":
3944
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
3945
+ case "ValidationException":
3946
+ case "com.amazonaws.wellarchitected#ValidationException":
3947
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3948
+ default:
3949
+ const parsedBody = parsedOutput.body;
3950
+ return throwDefaultError({
3951
+ output,
3952
+ parsedBody,
3953
+ errorCode,
3954
+ });
3955
+ }
3956
+ };
3055
3957
  const throwDefaultError = (0, smithy_client_1.withBaseException)(WellArchitectedServiceException_1.WellArchitectedServiceException);
3056
3958
  const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
3057
3959
  const contents = (0, smithy_client_1.map)({});
@@ -3234,6 +4136,8 @@ const de_LensReview = (output, context) => {
3234
4136
  NextToken: smithy_client_1.expectString,
3235
4137
  Notes: smithy_client_1.expectString,
3236
4138
  PillarReviewSummaries: smithy_client_1._json,
4139
+ PrioritizedRiskCounts: smithy_client_1._json,
4140
+ Profiles: smithy_client_1._json,
3237
4141
  RiskCounts: smithy_client_1._json,
3238
4142
  UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3239
4143
  });
@@ -3253,6 +4157,8 @@ const de_LensReviewSummary = (output, context) => {
3253
4157
  LensName: smithy_client_1.expectString,
3254
4158
  LensStatus: smithy_client_1.expectString,
3255
4159
  LensVersion: smithy_client_1.expectString,
4160
+ PrioritizedRiskCounts: smithy_client_1._json,
4161
+ Profiles: smithy_client_1._json,
3256
4162
  RiskCounts: smithy_client_1._json,
3257
4163
  UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3258
4164
  });
@@ -3303,6 +4209,47 @@ const de_MilestoneSummary = (output, context) => {
3303
4209
  WorkloadSummary: (_) => de_WorkloadSummary(_, context),
3304
4210
  });
3305
4211
  };
4212
+ const de_Profile = (output, context) => {
4213
+ return (0, smithy_client_1.take)(output, {
4214
+ CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4215
+ Owner: smithy_client_1.expectString,
4216
+ ProfileArn: smithy_client_1.expectString,
4217
+ ProfileDescription: smithy_client_1.expectString,
4218
+ ProfileName: smithy_client_1.expectString,
4219
+ ProfileQuestions: smithy_client_1._json,
4220
+ ProfileVersion: smithy_client_1.expectString,
4221
+ ShareInvitationId: smithy_client_1.expectString,
4222
+ Tags: smithy_client_1._json,
4223
+ UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4224
+ });
4225
+ };
4226
+ const de_ProfileSummaries = (output, context) => {
4227
+ const retVal = (output || [])
4228
+ .filter((e) => e != null)
4229
+ .map((entry) => {
4230
+ return de_ProfileSummary(entry, context);
4231
+ });
4232
+ return retVal;
4233
+ };
4234
+ const de_ProfileSummary = (output, context) => {
4235
+ return (0, smithy_client_1.take)(output, {
4236
+ CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4237
+ Owner: smithy_client_1.expectString,
4238
+ ProfileArn: smithy_client_1.expectString,
4239
+ ProfileDescription: smithy_client_1.expectString,
4240
+ ProfileName: smithy_client_1.expectString,
4241
+ ProfileVersion: smithy_client_1.expectString,
4242
+ UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4243
+ });
4244
+ };
4245
+ const de_ProfileTemplate = (output, context) => {
4246
+ return (0, smithy_client_1.take)(output, {
4247
+ CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4248
+ TemplateName: smithy_client_1.expectString,
4249
+ TemplateQuestions: smithy_client_1._json,
4250
+ UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4251
+ });
4252
+ };
3306
4253
  const de_Workload = (output, context) => {
3307
4254
  return (0, smithy_client_1.take)(output, {
3308
4255
  AccountIds: smithy_client_1._json,
@@ -3321,6 +4268,8 @@ const de_Workload = (output, context) => {
3321
4268
  Notes: smithy_client_1.expectString,
3322
4269
  Owner: smithy_client_1.expectString,
3323
4270
  PillarPriorities: smithy_client_1._json,
4271
+ PrioritizedRiskCounts: smithy_client_1._json,
4272
+ Profiles: smithy_client_1._json,
3324
4273
  ReviewOwner: smithy_client_1.expectString,
3325
4274
  ReviewRestrictionDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3326
4275
  RiskCounts: smithy_client_1._json,
@@ -3345,6 +4294,8 @@ const de_WorkloadSummary = (output, context) => {
3345
4294
  ImprovementStatus: smithy_client_1.expectString,
3346
4295
  Lenses: smithy_client_1._json,
3347
4296
  Owner: smithy_client_1.expectString,
4297
+ PrioritizedRiskCounts: smithy_client_1._json,
4298
+ Profiles: smithy_client_1._json,
3348
4299
  RiskCounts: smithy_client_1._json,
3349
4300
  UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3350
4301
  WorkloadArn: smithy_client_1.expectString,