@aws-sdk/client-wellarchitected 3.301.0 → 3.303.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 (60) hide show
  1. package/README.md +8 -0
  2. package/dist-cjs/WellArchitected.js +15 -0
  3. package/dist-cjs/commands/GetConsolidatedReportCommand.js +45 -0
  4. package/dist-cjs/commands/index.js +1 -0
  5. package/dist-cjs/endpoint/ruleset.js +3 -3
  6. package/dist-cjs/models/models_0.js +132 -148
  7. package/dist-cjs/pagination/GetConsolidatedReportPaginator.js +29 -0
  8. package/dist-cjs/pagination/index.js +1 -0
  9. package/dist-cjs/protocols/Aws_restJson1.js +177 -2
  10. package/dist-es/WellArchitected.js +15 -0
  11. package/dist-es/commands/GetConsolidatedReportCommand.js +41 -0
  12. package/dist-es/commands/index.js +1 -0
  13. package/dist-es/endpoint/ruleset.js +3 -3
  14. package/dist-es/models/models_0.js +131 -147
  15. package/dist-es/pagination/GetConsolidatedReportPaginator.js +25 -0
  16. package/dist-es/pagination/index.js +1 -0
  17. package/dist-es/protocols/Aws_restJson1.js +173 -0
  18. package/dist-types/WellArchitected.d.ts +69 -43
  19. package/dist-types/WellArchitectedClient.d.ts +3 -3
  20. package/dist-types/commands/AssociateLensesCommand.d.ts +3 -3
  21. package/dist-types/commands/CreateLensShareCommand.d.ts +9 -3
  22. package/dist-types/commands/CreateLensVersionCommand.d.ts +6 -4
  23. package/dist-types/commands/CreateMilestoneCommand.d.ts +1 -1
  24. package/dist-types/commands/CreateWorkloadCommand.d.ts +13 -3
  25. package/dist-types/commands/CreateWorkloadShareCommand.d.ts +5 -3
  26. package/dist-types/commands/DeleteLensCommand.d.ts +3 -3
  27. package/dist-types/commands/DeleteLensShareCommand.d.ts +3 -3
  28. package/dist-types/commands/DeleteWorkloadCommand.d.ts +1 -1
  29. package/dist-types/commands/DeleteWorkloadShareCommand.d.ts +1 -1
  30. package/dist-types/commands/DisassociateLensesCommand.d.ts +4 -4
  31. package/dist-types/commands/ExportLensCommand.d.ts +5 -4
  32. package/dist-types/commands/GetConsolidatedReportCommand.d.ts +82 -0
  33. package/dist-types/commands/ImportLensCommand.d.ts +10 -9
  34. package/dist-types/commands/ListAnswersCommand.d.ts +1 -1
  35. package/dist-types/commands/ListLensReviewsCommand.d.ts +1 -1
  36. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  37. package/dist-types/commands/ListWorkloadsCommand.d.ts +1 -1
  38. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  39. package/dist-types/commands/UntagResourceCommand.d.ts +3 -4
  40. package/dist-types/commands/UpdateAnswerCommand.d.ts +1 -1
  41. package/dist-types/commands/UpdateGlobalSettingsCommand.d.ts +1 -1
  42. package/dist-types/commands/UpdateLensReviewCommand.d.ts +2 -2
  43. package/dist-types/commands/UpdateShareInvitationCommand.d.ts +2 -2
  44. package/dist-types/commands/UpdateWorkloadCommand.d.ts +1 -1
  45. package/dist-types/commands/UpdateWorkloadShareCommand.d.ts +1 -1
  46. package/dist-types/commands/UpgradeLensReviewCommand.d.ts +2 -2
  47. package/dist-types/commands/index.d.ts +1 -0
  48. package/dist-types/models/models_0.d.ts +833 -445
  49. package/dist-types/pagination/GetConsolidatedReportPaginator.d.ts +7 -0
  50. package/dist-types/pagination/index.d.ts +1 -0
  51. package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
  52. package/dist-types/ts3.4/WellArchitected.d.ts +17 -0
  53. package/dist-types/ts3.4/WellArchitectedClient.d.ts +6 -0
  54. package/dist-types/ts3.4/commands/GetConsolidatedReportCommand.d.ts +41 -0
  55. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  56. package/dist-types/ts3.4/models/models_0.d.ts +210 -124
  57. package/dist-types/ts3.4/pagination/GetConsolidatedReportPaginator.d.ts +11 -0
  58. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  59. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
  60. package/package.json +34 -34
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deserializeAws_restJson1DeleteLensShareCommand = exports.deserializeAws_restJson1DeleteLensCommand = exports.deserializeAws_restJson1CreateWorkloadShareCommand = exports.deserializeAws_restJson1CreateWorkloadCommand = exports.deserializeAws_restJson1CreateMilestoneCommand = exports.deserializeAws_restJson1CreateLensVersionCommand = exports.deserializeAws_restJson1CreateLensShareCommand = exports.deserializeAws_restJson1AssociateLensesCommand = exports.serializeAws_restJson1UpgradeLensReviewCommand = exports.serializeAws_restJson1UpdateWorkloadShareCommand = exports.serializeAws_restJson1UpdateWorkloadCommand = exports.serializeAws_restJson1UpdateShareInvitationCommand = exports.serializeAws_restJson1UpdateLensReviewCommand = exports.serializeAws_restJson1UpdateGlobalSettingsCommand = exports.serializeAws_restJson1UpdateAnswerCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1ListWorkloadSharesCommand = exports.serializeAws_restJson1ListWorkloadsCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListShareInvitationsCommand = exports.serializeAws_restJson1ListNotificationsCommand = exports.serializeAws_restJson1ListMilestonesCommand = exports.serializeAws_restJson1ListLensSharesCommand = exports.serializeAws_restJson1ListLensReviewsCommand = exports.serializeAws_restJson1ListLensReviewImprovementsCommand = exports.serializeAws_restJson1ListLensesCommand = exports.serializeAws_restJson1ListCheckSummariesCommand = exports.serializeAws_restJson1ListCheckDetailsCommand = exports.serializeAws_restJson1ListAnswersCommand = exports.serializeAws_restJson1ImportLensCommand = exports.serializeAws_restJson1GetWorkloadCommand = exports.serializeAws_restJson1GetMilestoneCommand = exports.serializeAws_restJson1GetLensVersionDifferenceCommand = exports.serializeAws_restJson1GetLensReviewReportCommand = exports.serializeAws_restJson1GetLensReviewCommand = exports.serializeAws_restJson1GetLensCommand = exports.serializeAws_restJson1GetAnswerCommand = exports.serializeAws_restJson1ExportLensCommand = exports.serializeAws_restJson1DisassociateLensesCommand = exports.serializeAws_restJson1DeleteWorkloadShareCommand = exports.serializeAws_restJson1DeleteWorkloadCommand = exports.serializeAws_restJson1DeleteLensShareCommand = exports.serializeAws_restJson1DeleteLensCommand = exports.serializeAws_restJson1CreateWorkloadShareCommand = exports.serializeAws_restJson1CreateWorkloadCommand = exports.serializeAws_restJson1CreateMilestoneCommand = exports.serializeAws_restJson1CreateLensVersionCommand = exports.serializeAws_restJson1CreateLensShareCommand = exports.serializeAws_restJson1AssociateLensesCommand = void 0;
4
- exports.deserializeAws_restJson1UpgradeLensReviewCommand = exports.deserializeAws_restJson1UpdateWorkloadShareCommand = exports.deserializeAws_restJson1UpdateWorkloadCommand = exports.deserializeAws_restJson1UpdateShareInvitationCommand = exports.deserializeAws_restJson1UpdateLensReviewCommand = exports.deserializeAws_restJson1UpdateGlobalSettingsCommand = exports.deserializeAws_restJson1UpdateAnswerCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1ListWorkloadSharesCommand = exports.deserializeAws_restJson1ListWorkloadsCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListShareInvitationsCommand = exports.deserializeAws_restJson1ListNotificationsCommand = exports.deserializeAws_restJson1ListMilestonesCommand = exports.deserializeAws_restJson1ListLensSharesCommand = exports.deserializeAws_restJson1ListLensReviewsCommand = exports.deserializeAws_restJson1ListLensReviewImprovementsCommand = exports.deserializeAws_restJson1ListLensesCommand = exports.deserializeAws_restJson1ListCheckSummariesCommand = exports.deserializeAws_restJson1ListCheckDetailsCommand = exports.deserializeAws_restJson1ListAnswersCommand = exports.deserializeAws_restJson1ImportLensCommand = exports.deserializeAws_restJson1GetWorkloadCommand = exports.deserializeAws_restJson1GetMilestoneCommand = exports.deserializeAws_restJson1GetLensVersionDifferenceCommand = exports.deserializeAws_restJson1GetLensReviewReportCommand = exports.deserializeAws_restJson1GetLensReviewCommand = exports.deserializeAws_restJson1GetLensCommand = exports.deserializeAws_restJson1GetAnswerCommand = exports.deserializeAws_restJson1ExportLensCommand = exports.deserializeAws_restJson1DisassociateLensesCommand = exports.deserializeAws_restJson1DeleteWorkloadShareCommand = exports.deserializeAws_restJson1DeleteWorkloadCommand = void 0;
3
+ exports.deserializeAws_restJson1DeleteLensCommand = exports.deserializeAws_restJson1CreateWorkloadShareCommand = exports.deserializeAws_restJson1CreateWorkloadCommand = exports.deserializeAws_restJson1CreateMilestoneCommand = exports.deserializeAws_restJson1CreateLensVersionCommand = exports.deserializeAws_restJson1CreateLensShareCommand = exports.deserializeAws_restJson1AssociateLensesCommand = exports.serializeAws_restJson1UpgradeLensReviewCommand = exports.serializeAws_restJson1UpdateWorkloadShareCommand = exports.serializeAws_restJson1UpdateWorkloadCommand = exports.serializeAws_restJson1UpdateShareInvitationCommand = exports.serializeAws_restJson1UpdateLensReviewCommand = exports.serializeAws_restJson1UpdateGlobalSettingsCommand = exports.serializeAws_restJson1UpdateAnswerCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1ListWorkloadSharesCommand = exports.serializeAws_restJson1ListWorkloadsCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListShareInvitationsCommand = exports.serializeAws_restJson1ListNotificationsCommand = exports.serializeAws_restJson1ListMilestonesCommand = exports.serializeAws_restJson1ListLensSharesCommand = exports.serializeAws_restJson1ListLensReviewsCommand = exports.serializeAws_restJson1ListLensReviewImprovementsCommand = exports.serializeAws_restJson1ListLensesCommand = exports.serializeAws_restJson1ListCheckSummariesCommand = exports.serializeAws_restJson1ListCheckDetailsCommand = exports.serializeAws_restJson1ListAnswersCommand = exports.serializeAws_restJson1ImportLensCommand = exports.serializeAws_restJson1GetWorkloadCommand = exports.serializeAws_restJson1GetMilestoneCommand = exports.serializeAws_restJson1GetLensVersionDifferenceCommand = exports.serializeAws_restJson1GetLensReviewReportCommand = exports.serializeAws_restJson1GetLensReviewCommand = exports.serializeAws_restJson1GetLensCommand = exports.serializeAws_restJson1GetConsolidatedReportCommand = exports.serializeAws_restJson1GetAnswerCommand = exports.serializeAws_restJson1ExportLensCommand = exports.serializeAws_restJson1DisassociateLensesCommand = exports.serializeAws_restJson1DeleteWorkloadShareCommand = exports.serializeAws_restJson1DeleteWorkloadCommand = exports.serializeAws_restJson1DeleteLensShareCommand = exports.serializeAws_restJson1DeleteLensCommand = exports.serializeAws_restJson1CreateWorkloadShareCommand = exports.serializeAws_restJson1CreateWorkloadCommand = exports.serializeAws_restJson1CreateMilestoneCommand = exports.serializeAws_restJson1CreateLensVersionCommand = exports.serializeAws_restJson1CreateLensShareCommand = exports.serializeAws_restJson1AssociateLensesCommand = void 0;
4
+ exports.deserializeAws_restJson1UpgradeLensReviewCommand = exports.deserializeAws_restJson1UpdateWorkloadShareCommand = exports.deserializeAws_restJson1UpdateWorkloadCommand = exports.deserializeAws_restJson1UpdateShareInvitationCommand = exports.deserializeAws_restJson1UpdateLensReviewCommand = exports.deserializeAws_restJson1UpdateGlobalSettingsCommand = exports.deserializeAws_restJson1UpdateAnswerCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1ListWorkloadSharesCommand = exports.deserializeAws_restJson1ListWorkloadsCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListShareInvitationsCommand = exports.deserializeAws_restJson1ListNotificationsCommand = exports.deserializeAws_restJson1ListMilestonesCommand = exports.deserializeAws_restJson1ListLensSharesCommand = exports.deserializeAws_restJson1ListLensReviewsCommand = exports.deserializeAws_restJson1ListLensReviewImprovementsCommand = exports.deserializeAws_restJson1ListLensesCommand = exports.deserializeAws_restJson1ListCheckSummariesCommand = exports.deserializeAws_restJson1ListCheckDetailsCommand = exports.deserializeAws_restJson1ListAnswersCommand = exports.deserializeAws_restJson1ImportLensCommand = exports.deserializeAws_restJson1GetWorkloadCommand = exports.deserializeAws_restJson1GetMilestoneCommand = exports.deserializeAws_restJson1GetLensVersionDifferenceCommand = exports.deserializeAws_restJson1GetLensReviewReportCommand = exports.deserializeAws_restJson1GetLensReviewCommand = exports.deserializeAws_restJson1GetLensCommand = exports.deserializeAws_restJson1GetConsolidatedReportCommand = exports.deserializeAws_restJson1GetAnswerCommand = exports.deserializeAws_restJson1ExportLensCommand = exports.deserializeAws_restJson1DisassociateLensesCommand = exports.deserializeAws_restJson1DeleteWorkloadShareCommand = exports.deserializeAws_restJson1DeleteWorkloadCommand = exports.deserializeAws_restJson1DeleteLensShareCommand = void 0;
5
5
  const protocol_http_1 = require("@aws-sdk/protocol-http");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const uuid_1 = require("uuid");
@@ -327,6 +327,32 @@ const serializeAws_restJson1GetAnswerCommand = async (input, context) => {
327
327
  });
328
328
  };
329
329
  exports.serializeAws_restJson1GetAnswerCommand = serializeAws_restJson1GetAnswerCommand;
330
+ const serializeAws_restJson1GetConsolidatedReportCommand = async (input, context) => {
331
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
332
+ const headers = {};
333
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/consolidatedReport";
334
+ const query = map({
335
+ Format: [, (0, smithy_client_1.expectNonNull)(input.Format, `Format`)],
336
+ IncludeSharedResources: [
337
+ () => input.IncludeSharedResources !== void 0,
338
+ () => input.IncludeSharedResources.toString(),
339
+ ],
340
+ NextToken: [, input.NextToken],
341
+ MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
342
+ });
343
+ let body;
344
+ return new protocol_http_1.HttpRequest({
345
+ protocol,
346
+ hostname,
347
+ port,
348
+ method: "GET",
349
+ headers,
350
+ path: resolvedPath,
351
+ query,
352
+ body,
353
+ });
354
+ };
355
+ exports.serializeAws_restJson1GetConsolidatedReportCommand = serializeAws_restJson1GetConsolidatedReportCommand;
330
356
  const serializeAws_restJson1GetLensCommand = async (input, context) => {
331
357
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
332
358
  const headers = {};
@@ -1275,6 +1301,9 @@ const deserializeAws_restJson1CreateWorkloadCommandError = async (output, contex
1275
1301
  case "InternalServerException":
1276
1302
  case "com.amazonaws.wellarchitected#InternalServerException":
1277
1303
  throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1304
+ case "ResourceNotFoundException":
1305
+ case "com.amazonaws.wellarchitected#ResourceNotFoundException":
1306
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1278
1307
  case "ServiceQuotaExceededException":
1279
1308
  case "com.amazonaws.wellarchitected#ServiceQuotaExceededException":
1280
1309
  throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
@@ -1683,6 +1712,58 @@ const deserializeAws_restJson1GetAnswerCommandError = async (output, context) =>
1683
1712
  });
1684
1713
  }
1685
1714
  };
1715
+ const deserializeAws_restJson1GetConsolidatedReportCommand = async (output, context) => {
1716
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1717
+ return deserializeAws_restJson1GetConsolidatedReportCommandError(output, context);
1718
+ }
1719
+ const contents = map({
1720
+ $metadata: deserializeMetadata(output),
1721
+ });
1722
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1723
+ if (data.Base64String != null) {
1724
+ contents.Base64String = (0, smithy_client_1.expectString)(data.Base64String);
1725
+ }
1726
+ if (data.Metrics != null) {
1727
+ contents.Metrics = deserializeAws_restJson1ConsolidatedReportMetrics(data.Metrics, context);
1728
+ }
1729
+ if (data.NextToken != null) {
1730
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
1731
+ }
1732
+ return contents;
1733
+ };
1734
+ exports.deserializeAws_restJson1GetConsolidatedReportCommand = deserializeAws_restJson1GetConsolidatedReportCommand;
1735
+ const deserializeAws_restJson1GetConsolidatedReportCommandError = async (output, context) => {
1736
+ const parsedOutput = {
1737
+ ...output,
1738
+ body: await parseErrorBody(output.body, context),
1739
+ };
1740
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1741
+ switch (errorCode) {
1742
+ case "AccessDeniedException":
1743
+ case "com.amazonaws.wellarchitected#AccessDeniedException":
1744
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1745
+ case "ConflictException":
1746
+ case "com.amazonaws.wellarchitected#ConflictException":
1747
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1748
+ case "InternalServerException":
1749
+ case "com.amazonaws.wellarchitected#InternalServerException":
1750
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1751
+ case "ThrottlingException":
1752
+ case "com.amazonaws.wellarchitected#ThrottlingException":
1753
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1754
+ case "ValidationException":
1755
+ case "com.amazonaws.wellarchitected#ValidationException":
1756
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1757
+ default:
1758
+ const parsedBody = parsedOutput.body;
1759
+ (0, smithy_client_1.throwDefaultError)({
1760
+ output,
1761
+ parsedBody,
1762
+ exceptionCtor: WellArchitectedServiceException_1.WellArchitectedServiceException,
1763
+ errorCode,
1764
+ });
1765
+ }
1766
+ };
1686
1767
  const deserializeAws_restJson1GetLensCommand = async (output, context) => {
1687
1768
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1688
1769
  return deserializeAws_restJson1GetLensCommandError(output, context);
@@ -3402,6 +3483,23 @@ const deserializeAws_restJson1AnswerSummary = (output, context) => {
3402
3483
  : undefined,
3403
3484
  };
3404
3485
  };
3486
+ const deserializeAws_restJson1BestPractice = (output, context) => {
3487
+ return {
3488
+ ChoiceId: (0, smithy_client_1.expectString)(output.ChoiceId),
3489
+ ChoiceTitle: (0, smithy_client_1.expectString)(output.ChoiceTitle),
3490
+ };
3491
+ };
3492
+ const deserializeAws_restJson1BestPractices = (output, context) => {
3493
+ const retVal = (output || [])
3494
+ .filter((e) => e != null)
3495
+ .map((entry) => {
3496
+ if (entry === null) {
3497
+ return null;
3498
+ }
3499
+ return deserializeAws_restJson1BestPractice(entry, context);
3500
+ });
3501
+ return retVal;
3502
+ };
3405
3503
  const deserializeAws_restJson1CheckDetail = (output, context) => {
3406
3504
  return {
3407
3505
  AccountId: (0, smithy_client_1.expectString)(output.AccountId),
@@ -3546,6 +3644,29 @@ const deserializeAws_restJson1Choices = (output, context) => {
3546
3644
  });
3547
3645
  return retVal;
3548
3646
  };
3647
+ const deserializeAws_restJson1ConsolidatedReportMetric = (output, context) => {
3648
+ return {
3649
+ Lenses: output.Lenses != null ? deserializeAws_restJson1LensMetrics(output.Lenses, context) : undefined,
3650
+ LensesAppliedCount: (0, smithy_client_1.expectInt32)(output.LensesAppliedCount),
3651
+ MetricType: (0, smithy_client_1.expectString)(output.MetricType),
3652
+ RiskCounts: output.RiskCounts != null ? deserializeAws_restJson1RiskCounts(output.RiskCounts, context) : undefined,
3653
+ UpdatedAt: output.UpdatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt))) : undefined,
3654
+ WorkloadArn: (0, smithy_client_1.expectString)(output.WorkloadArn),
3655
+ WorkloadId: (0, smithy_client_1.expectString)(output.WorkloadId),
3656
+ WorkloadName: (0, smithy_client_1.expectString)(output.WorkloadName),
3657
+ };
3658
+ };
3659
+ const deserializeAws_restJson1ConsolidatedReportMetrics = (output, context) => {
3660
+ const retVal = (output || [])
3661
+ .filter((e) => e != null)
3662
+ .map((entry) => {
3663
+ if (entry === null) {
3664
+ return null;
3665
+ }
3666
+ return deserializeAws_restJson1ConsolidatedReportMetric(entry, context);
3667
+ });
3668
+ return retVal;
3669
+ };
3549
3670
  const deserializeAws_restJson1ImprovementSummaries = (output, context) => {
3550
3671
  const retVal = (output || [])
3551
3672
  .filter((e) => e != null)
@@ -3580,6 +3701,24 @@ const deserializeAws_restJson1Lens = (output, context) => {
3580
3701
  Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
3581
3702
  };
3582
3703
  };
3704
+ const deserializeAws_restJson1LensMetric = (output, context) => {
3705
+ return {
3706
+ LensArn: (0, smithy_client_1.expectString)(output.LensArn),
3707
+ Pillars: output.Pillars != null ? deserializeAws_restJson1PillarMetrics(output.Pillars, context) : undefined,
3708
+ RiskCounts: output.RiskCounts != null ? deserializeAws_restJson1RiskCounts(output.RiskCounts, context) : undefined,
3709
+ };
3710
+ };
3711
+ const deserializeAws_restJson1LensMetrics = (output, context) => {
3712
+ const retVal = (output || [])
3713
+ .filter((e) => e != null)
3714
+ .map((entry) => {
3715
+ if (entry === null) {
3716
+ return null;
3717
+ }
3718
+ return deserializeAws_restJson1LensMetric(entry, context);
3719
+ });
3720
+ return retVal;
3721
+ };
3583
3722
  const deserializeAws_restJson1LensReview = (output, context) => {
3584
3723
  return {
3585
3724
  LensAlias: (0, smithy_client_1.expectString)(output.LensAlias),
@@ -3748,6 +3887,24 @@ const deserializeAws_restJson1PillarDifferences = (output, context) => {
3748
3887
  });
3749
3888
  return retVal;
3750
3889
  };
3890
+ const deserializeAws_restJson1PillarMetric = (output, context) => {
3891
+ return {
3892
+ PillarId: (0, smithy_client_1.expectString)(output.PillarId),
3893
+ Questions: output.Questions != null ? deserializeAws_restJson1QuestionMetrics(output.Questions, context) : undefined,
3894
+ RiskCounts: output.RiskCounts != null ? deserializeAws_restJson1RiskCounts(output.RiskCounts, context) : undefined,
3895
+ };
3896
+ };
3897
+ const deserializeAws_restJson1PillarMetrics = (output, context) => {
3898
+ const retVal = (output || [])
3899
+ .filter((e) => e != null)
3900
+ .map((entry) => {
3901
+ if (entry === null) {
3902
+ return null;
3903
+ }
3904
+ return deserializeAws_restJson1PillarMetric(entry, context);
3905
+ });
3906
+ return retVal;
3907
+ };
3751
3908
  const deserializeAws_restJson1PillarReviewSummaries = (output, context) => {
3752
3909
  const retVal = (output || [])
3753
3910
  .filter((e) => e != null)
@@ -3785,6 +3942,24 @@ const deserializeAws_restJson1QuestionDifferences = (output, context) => {
3785
3942
  });
3786
3943
  return retVal;
3787
3944
  };
3945
+ const deserializeAws_restJson1QuestionMetric = (output, context) => {
3946
+ return {
3947
+ BestPractices: output.BestPractices != null ? deserializeAws_restJson1BestPractices(output.BestPractices, context) : undefined,
3948
+ QuestionId: (0, smithy_client_1.expectString)(output.QuestionId),
3949
+ Risk: (0, smithy_client_1.expectString)(output.Risk),
3950
+ };
3951
+ };
3952
+ const deserializeAws_restJson1QuestionMetrics = (output, context) => {
3953
+ const retVal = (output || [])
3954
+ .filter((e) => e != null)
3955
+ .map((entry) => {
3956
+ if (entry === null) {
3957
+ return null;
3958
+ }
3959
+ return deserializeAws_restJson1QuestionMetric(entry, context);
3960
+ });
3961
+ return retVal;
3962
+ };
3788
3963
  const deserializeAws_restJson1RiskCounts = (output, context) => {
3789
3964
  return Object.entries(output).reduce((acc, [key, value]) => {
3790
3965
  if (value === null) {
@@ -11,6 +11,7 @@ import { DeleteWorkloadShareCommand, } from "./commands/DeleteWorkloadShareComma
11
11
  import { DisassociateLensesCommand, } from "./commands/DisassociateLensesCommand";
12
12
  import { ExportLensCommand } from "./commands/ExportLensCommand";
13
13
  import { GetAnswerCommand } from "./commands/GetAnswerCommand";
14
+ import { GetConsolidatedReportCommand, } from "./commands/GetConsolidatedReportCommand";
14
15
  import { GetLensCommand } from "./commands/GetLensCommand";
15
16
  import { GetLensReviewCommand, } from "./commands/GetLensReviewCommand";
16
17
  import { GetLensReviewReportCommand, } from "./commands/GetLensReviewReportCommand";
@@ -224,6 +225,20 @@ export class WellArchitected extends WellArchitectedClient {
224
225
  return this.send(command, optionsOrCb);
225
226
  }
226
227
  }
228
+ getConsolidatedReport(args, optionsOrCb, cb) {
229
+ const command = new GetConsolidatedReportCommand(args);
230
+ if (typeof optionsOrCb === "function") {
231
+ this.send(command, optionsOrCb);
232
+ }
233
+ else if (typeof cb === "function") {
234
+ if (typeof optionsOrCb !== "object")
235
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
236
+ this.send(command, optionsOrCb || {}, cb);
237
+ }
238
+ else {
239
+ return this.send(command, optionsOrCb);
240
+ }
241
+ }
227
242
  getLens(args, optionsOrCb, cb) {
228
243
  const command = new GetLensCommand(args);
229
244
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,41 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { deserializeAws_restJson1GetConsolidatedReportCommand, serializeAws_restJson1GetConsolidatedReportCommand, } from "../protocols/Aws_restJson1";
5
+ export class GetConsolidatedReportCommand extends $Command {
6
+ static getEndpointParameterInstructions() {
7
+ return {
8
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
9
+ Endpoint: { type: "builtInParams", name: "endpoint" },
10
+ Region: { type: "builtInParams", name: "region" },
11
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
12
+ };
13
+ }
14
+ constructor(input) {
15
+ super();
16
+ this.input = input;
17
+ }
18
+ resolveMiddleware(clientStack, configuration, options) {
19
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
20
+ this.middlewareStack.use(getEndpointPlugin(configuration, GetConsolidatedReportCommand.getEndpointParameterInstructions()));
21
+ const stack = clientStack.concat(this.middlewareStack);
22
+ const { logger } = configuration;
23
+ const clientName = "WellArchitectedClient";
24
+ const commandName = "GetConsolidatedReportCommand";
25
+ const handlerExecutionContext = {
26
+ logger,
27
+ clientName,
28
+ commandName,
29
+ inputFilterSensitiveLog: (_) => _,
30
+ outputFilterSensitiveLog: (_) => _,
31
+ };
32
+ const { requestHandler } = configuration;
33
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
34
+ }
35
+ serialize(input, context) {
36
+ return serializeAws_restJson1GetConsolidatedReportCommand(input, context);
37
+ }
38
+ deserialize(output, context) {
39
+ return deserializeAws_restJson1GetConsolidatedReportCommand(output, context);
40
+ }
41
+ }
@@ -11,6 +11,7 @@ export * from "./DeleteWorkloadShareCommand";
11
11
  export * from "./DisassociateLensesCommand";
12
12
  export * from "./ExportLensCommand";
13
13
  export * from "./GetAnswerCommand";
14
+ export * from "./GetConsolidatedReportCommand";
14
15
  export * from "./GetLensCommand";
15
16
  export * from "./GetLensReviewCommand";
16
17
  export * from "./GetLensReviewReportCommand";
@@ -1,4 +1,4 @@
1
- const p = "required", q = "fn", r = "argv", s = "ref";
2
- const a = "PartitionResult", b = "tree", c = "error", d = "endpoint", e = { [p]: false, "type": "String" }, f = { [p]: true, "default": false, "type": "Boolean" }, g = { [s]: "Endpoint" }, h = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, i = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, j = {}, k = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: a }, "supportsFIPS"] }] }, l = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: a }, "supportsDualStack"] }] }, m = [g], n = [h], o = [i];
3
- const _data = { version: "1.0", parameters: { Region: e, UseDualStack: f, UseFIPS: f, Endpoint: e }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: a }], type: b, rules: [{ conditions: [{ [q]: "isSet", [r]: m }, { [q]: "parseURL", [r]: m, assign: "url" }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: g, properties: j, headers: j }, type: d }] }] }, { conditions: [h, i], type: b, rules: [{ conditions: [k, l], type: b, rules: [{ endpoint: { url: "https://wellarchitected-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [k], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://wellarchitected-fips.{Region}.{PartitionResult#dnsSuffix}", properties: j, headers: j }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://wellarchitected.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://wellarchitected.{Region}.{PartitionResult#dnsSuffix}", properties: j, headers: j }, type: d }] }] };
1
+ const q = "required", r = "fn", s = "argv", t = "ref";
2
+ const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
3
+ const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://wellarchitected-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://wellarchitected-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://wellarchitected.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://wellarchitected.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
4
4
  export const ruleSet = _data;