@aws-sdk/client-wellarchitected 3.301.0 → 3.306.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
package/README.md CHANGED
@@ -315,6 +315,14 @@ GetAnswer
315
315
 
316
316
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-wellarchitected/classes/getanswercommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-wellarchitected/interfaces/getanswercommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-wellarchitected/interfaces/getanswercommandoutput.html)
317
317
 
318
+ </details>
319
+ <details>
320
+ <summary>
321
+ GetConsolidatedReport
322
+ </summary>
323
+
324
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-wellarchitected/classes/getconsolidatedreportcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-wellarchitected/interfaces/getconsolidatedreportcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-wellarchitected/interfaces/getconsolidatedreportcommandoutput.html)
325
+
318
326
  </details>
319
327
  <details>
320
328
  <summary>
@@ -14,6 +14,7 @@ const DeleteWorkloadShareCommand_1 = require("./commands/DeleteWorkloadShareComm
14
14
  const DisassociateLensesCommand_1 = require("./commands/DisassociateLensesCommand");
15
15
  const ExportLensCommand_1 = require("./commands/ExportLensCommand");
16
16
  const GetAnswerCommand_1 = require("./commands/GetAnswerCommand");
17
+ const GetConsolidatedReportCommand_1 = require("./commands/GetConsolidatedReportCommand");
17
18
  const GetLensCommand_1 = require("./commands/GetLensCommand");
18
19
  const GetLensReviewCommand_1 = require("./commands/GetLensReviewCommand");
19
20
  const GetLensReviewReportCommand_1 = require("./commands/GetLensReviewReportCommand");
@@ -227,6 +228,20 @@ class WellArchitected extends WellArchitectedClient_1.WellArchitectedClient {
227
228
  return this.send(command, optionsOrCb);
228
229
  }
229
230
  }
231
+ getConsolidatedReport(args, optionsOrCb, cb) {
232
+ const command = new GetConsolidatedReportCommand_1.GetConsolidatedReportCommand(args);
233
+ if (typeof optionsOrCb === "function") {
234
+ this.send(command, optionsOrCb);
235
+ }
236
+ else if (typeof cb === "function") {
237
+ if (typeof optionsOrCb !== "object")
238
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
239
+ this.send(command, optionsOrCb || {}, cb);
240
+ }
241
+ else {
242
+ return this.send(command, optionsOrCb);
243
+ }
244
+ }
230
245
  getLens(args, optionsOrCb, cb) {
231
246
  const command = new GetLensCommand_1.GetLensCommand(args);
232
247
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetConsolidatedReportCommand = void 0;
4
+ const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class GetConsolidatedReportCommand extends smithy_client_1.Command {
9
+ static getEndpointParameterInstructions() {
10
+ return {
11
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
+ Endpoint: { type: "builtInParams", name: "endpoint" },
13
+ Region: { type: "builtInParams", name: "region" },
14
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
+ };
16
+ }
17
+ constructor(input) {
18
+ super();
19
+ this.input = input;
20
+ }
21
+ resolveMiddleware(clientStack, configuration, options) {
22
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
23
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetConsolidatedReportCommand.getEndpointParameterInstructions()));
24
+ const stack = clientStack.concat(this.middlewareStack);
25
+ const { logger } = configuration;
26
+ const clientName = "WellArchitectedClient";
27
+ const commandName = "GetConsolidatedReportCommand";
28
+ const handlerExecutionContext = {
29
+ logger,
30
+ clientName,
31
+ commandName,
32
+ inputFilterSensitiveLog: (_) => _,
33
+ outputFilterSensitiveLog: (_) => _,
34
+ };
35
+ const { requestHandler } = configuration;
36
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
37
+ }
38
+ serialize(input, context) {
39
+ return (0, Aws_restJson1_1.serializeAws_restJson1GetConsolidatedReportCommand)(input, context);
40
+ }
41
+ deserialize(output, context) {
42
+ return (0, Aws_restJson1_1.deserializeAws_restJson1GetConsolidatedReportCommand)(output, context);
43
+ }
44
+ }
45
+ exports.GetConsolidatedReportCommand = GetConsolidatedReportCommand;
@@ -14,6 +14,7 @@ tslib_1.__exportStar(require("./DeleteWorkloadShareCommand"), exports);
14
14
  tslib_1.__exportStar(require("./DisassociateLensesCommand"), exports);
15
15
  tslib_1.__exportStar(require("./ExportLensCommand"), exports);
16
16
  tslib_1.__exportStar(require("./GetAnswerCommand"), exports);
17
+ tslib_1.__exportStar(require("./GetConsolidatedReportCommand"), exports);
17
18
  tslib_1.__exportStar(require("./GetLensCommand"), exports);
18
19
  tslib_1.__exportStar(require("./GetLensReviewCommand"), exports);
19
20
  tslib_1.__exportStar(require("./GetLensReviewReportCommand"), exports);
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
- const p = "required", q = "fn", r = "argv", s = "ref";
5
- 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];
6
- 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 }] }] };
4
+ const q = "required", r = "fn", s = "argv", t = "ref";
5
+ 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" }];
6
+ 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 }] }] };
7
7
  exports.ruleSet = _data;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ShareInvitationAction = exports.OrganizationSharingStatus = exports.ShareResourceType = exports.NotificationType = exports.LensType = exports.ShareStatus = exports.ImportLensStatus = exports.WorkloadImprovementStatus = exports.LensStatus = exports.DifferenceStatus = exports.LensStatusType = exports.PermissionType = exports.WorkloadEnvironment = exports.TrustedAdvisorIntegrationStatus = exports.ServiceQuotaExceededException = exports.CheckFailureReason = exports.CheckProvider = exports.ValidationException = exports.ValidationExceptionReason = exports.ThrottlingException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = exports.Risk = exports.AnswerReason = exports.ChoiceStatus = exports.ChoiceReason = exports.AdditionalResourceType = exports.CheckStatus = exports.AccessDeniedException = void 0;
3
+ exports.ShareInvitationAction = exports.OrganizationSharingStatus = exports.ShareResourceType = exports.NotificationType = exports.LensType = exports.ShareStatus = exports.ImportLensStatus = exports.WorkloadImprovementStatus = exports.LensStatus = exports.ReportFormat = exports.DifferenceStatus = exports.LensStatusType = exports.PermissionType = exports.WorkloadEnvironment = exports.TrustedAdvisorIntegrationStatus = exports.ServiceQuotaExceededException = exports.MetricType = exports.CheckFailureReason = exports.CheckProvider = exports.ValidationException = exports.ValidationExceptionReason = exports.ThrottlingException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = exports.Risk = exports.AnswerReason = exports.ChoiceStatus = exports.ChoiceReason = exports.AdditionalResourceType = exports.CheckStatus = exports.AccessDeniedException = void 0;
4
4
  const WellArchitectedServiceException_1 = require("./WellArchitectedServiceException");
5
5
  class AccessDeniedException extends WellArchitectedServiceException_1.WellArchitectedServiceException {
6
6
  constructor(opts) {
@@ -16,49 +16,43 @@ class AccessDeniedException extends WellArchitectedServiceException_1.WellArchit
16
16
  }
17
17
  }
18
18
  exports.AccessDeniedException = AccessDeniedException;
19
- var CheckStatus;
20
- (function (CheckStatus) {
21
- CheckStatus["ERROR"] = "ERROR";
22
- CheckStatus["FETCH_FAILED"] = "FETCH_FAILED";
23
- CheckStatus["NOT_AVAILABLE"] = "NOT_AVAILABLE";
24
- CheckStatus["OKAY"] = "OKAY";
25
- CheckStatus["WARNING"] = "WARNING";
26
- })(CheckStatus = exports.CheckStatus || (exports.CheckStatus = {}));
27
- var AdditionalResourceType;
28
- (function (AdditionalResourceType) {
29
- AdditionalResourceType["HELPFUL_RESOURCE"] = "HELPFUL_RESOURCE";
30
- AdditionalResourceType["IMPROVEMENT_PLAN"] = "IMPROVEMENT_PLAN";
31
- })(AdditionalResourceType = exports.AdditionalResourceType || (exports.AdditionalResourceType = {}));
32
- var ChoiceReason;
33
- (function (ChoiceReason) {
34
- ChoiceReason["ARCHITECTURE_CONSTRAINTS"] = "ARCHITECTURE_CONSTRAINTS";
35
- ChoiceReason["BUSINESS_PRIORITIES"] = "BUSINESS_PRIORITIES";
36
- ChoiceReason["NONE"] = "NONE";
37
- ChoiceReason["OTHER"] = "OTHER";
38
- ChoiceReason["OUT_OF_SCOPE"] = "OUT_OF_SCOPE";
39
- })(ChoiceReason = exports.ChoiceReason || (exports.ChoiceReason = {}));
40
- var ChoiceStatus;
41
- (function (ChoiceStatus) {
42
- ChoiceStatus["NOT_APPLICABLE"] = "NOT_APPLICABLE";
43
- ChoiceStatus["SELECTED"] = "SELECTED";
44
- ChoiceStatus["UNSELECTED"] = "UNSELECTED";
45
- })(ChoiceStatus = exports.ChoiceStatus || (exports.ChoiceStatus = {}));
46
- var AnswerReason;
47
- (function (AnswerReason) {
48
- AnswerReason["ARCHITECTURE_CONSTRAINTS"] = "ARCHITECTURE_CONSTRAINTS";
49
- AnswerReason["BUSINESS_PRIORITIES"] = "BUSINESS_PRIORITIES";
50
- AnswerReason["NONE"] = "NONE";
51
- AnswerReason["OTHER"] = "OTHER";
52
- AnswerReason["OUT_OF_SCOPE"] = "OUT_OF_SCOPE";
53
- })(AnswerReason = exports.AnswerReason || (exports.AnswerReason = {}));
54
- var Risk;
55
- (function (Risk) {
56
- Risk["HIGH"] = "HIGH";
57
- Risk["MEDIUM"] = "MEDIUM";
58
- Risk["NONE"] = "NONE";
59
- Risk["NOT_APPLICABLE"] = "NOT_APPLICABLE";
60
- Risk["UNANSWERED"] = "UNANSWERED";
61
- })(Risk = exports.Risk || (exports.Risk = {}));
19
+ exports.CheckStatus = {
20
+ ERROR: "ERROR",
21
+ FETCH_FAILED: "FETCH_FAILED",
22
+ NOT_AVAILABLE: "NOT_AVAILABLE",
23
+ OKAY: "OKAY",
24
+ WARNING: "WARNING",
25
+ };
26
+ exports.AdditionalResourceType = {
27
+ HELPFUL_RESOURCE: "HELPFUL_RESOURCE",
28
+ IMPROVEMENT_PLAN: "IMPROVEMENT_PLAN",
29
+ };
30
+ exports.ChoiceReason = {
31
+ ARCHITECTURE_CONSTRAINTS: "ARCHITECTURE_CONSTRAINTS",
32
+ BUSINESS_PRIORITIES: "BUSINESS_PRIORITIES",
33
+ NONE: "NONE",
34
+ OTHER: "OTHER",
35
+ OUT_OF_SCOPE: "OUT_OF_SCOPE",
36
+ };
37
+ exports.ChoiceStatus = {
38
+ NOT_APPLICABLE: "NOT_APPLICABLE",
39
+ SELECTED: "SELECTED",
40
+ UNSELECTED: "UNSELECTED",
41
+ };
42
+ exports.AnswerReason = {
43
+ ARCHITECTURE_CONSTRAINTS: "ARCHITECTURE_CONSTRAINTS",
44
+ BUSINESS_PRIORITIES: "BUSINESS_PRIORITIES",
45
+ NONE: "NONE",
46
+ OTHER: "OTHER",
47
+ OUT_OF_SCOPE: "OUT_OF_SCOPE",
48
+ };
49
+ exports.Risk = {
50
+ HIGH: "HIGH",
51
+ MEDIUM: "MEDIUM",
52
+ NONE: "NONE",
53
+ NOT_APPLICABLE: "NOT_APPLICABLE",
54
+ UNANSWERED: "UNANSWERED",
55
+ };
62
56
  class ConflictException extends WellArchitectedServiceException_1.WellArchitectedServiceException {
63
57
  constructor(opts) {
64
58
  super({
@@ -121,13 +115,12 @@ class ThrottlingException extends WellArchitectedServiceException_1.WellArchitec
121
115
  }
122
116
  }
123
117
  exports.ThrottlingException = ThrottlingException;
124
- var ValidationExceptionReason;
125
- (function (ValidationExceptionReason) {
126
- ValidationExceptionReason["CANNOT_PARSE"] = "CANNOT_PARSE";
127
- ValidationExceptionReason["FIELD_VALIDATION_FAILED"] = "FIELD_VALIDATION_FAILED";
128
- ValidationExceptionReason["OTHER"] = "OTHER";
129
- ValidationExceptionReason["UNKNOWN_OPERATION"] = "UNKNOWN_OPERATION";
130
- })(ValidationExceptionReason = exports.ValidationExceptionReason || (exports.ValidationExceptionReason = {}));
118
+ exports.ValidationExceptionReason = {
119
+ CANNOT_PARSE: "CANNOT_PARSE",
120
+ FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED",
121
+ OTHER: "OTHER",
122
+ UNKNOWN_OPERATION: "UNKNOWN_OPERATION",
123
+ };
131
124
  class ValidationException extends WellArchitectedServiceException_1.WellArchitectedServiceException {
132
125
  constructor(opts) {
133
126
  super({
@@ -144,17 +137,18 @@ class ValidationException extends WellArchitectedServiceException_1.WellArchitec
144
137
  }
145
138
  }
146
139
  exports.ValidationException = ValidationException;
147
- var CheckProvider;
148
- (function (CheckProvider) {
149
- CheckProvider["TRUSTED_ADVISOR"] = "TRUSTED_ADVISOR";
150
- })(CheckProvider = exports.CheckProvider || (exports.CheckProvider = {}));
151
- var CheckFailureReason;
152
- (function (CheckFailureReason) {
153
- CheckFailureReason["ACCESS_DENIED"] = "ACCESS_DENIED";
154
- CheckFailureReason["ASSUME_ROLE_ERROR"] = "ASSUME_ROLE_ERROR";
155
- CheckFailureReason["PREMIUM_SUPPORT_REQUIRED"] = "PREMIUM_SUPPORT_REQUIRED";
156
- CheckFailureReason["UNKNOWN_ERROR"] = "UNKNOWN_ERROR";
157
- })(CheckFailureReason = exports.CheckFailureReason || (exports.CheckFailureReason = {}));
140
+ exports.CheckProvider = {
141
+ TRUSTED_ADVISOR: "TRUSTED_ADVISOR",
142
+ };
143
+ exports.CheckFailureReason = {
144
+ ACCESS_DENIED: "ACCESS_DENIED",
145
+ ASSUME_ROLE_ERROR: "ASSUME_ROLE_ERROR",
146
+ PREMIUM_SUPPORT_REQUIRED: "PREMIUM_SUPPORT_REQUIRED",
147
+ UNKNOWN_ERROR: "UNKNOWN_ERROR",
148
+ };
149
+ exports.MetricType = {
150
+ WORKLOAD: "WORKLOAD",
151
+ };
158
152
  class ServiceQuotaExceededException extends WellArchitectedServiceException_1.WellArchitectedServiceException {
159
153
  constructor(opts) {
160
154
  super({
@@ -173,89 +167,79 @@ class ServiceQuotaExceededException extends WellArchitectedServiceException_1.We
173
167
  }
174
168
  }
175
169
  exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
176
- var TrustedAdvisorIntegrationStatus;
177
- (function (TrustedAdvisorIntegrationStatus) {
178
- TrustedAdvisorIntegrationStatus["DISABLED"] = "DISABLED";
179
- TrustedAdvisorIntegrationStatus["ENABLED"] = "ENABLED";
180
- })(TrustedAdvisorIntegrationStatus = exports.TrustedAdvisorIntegrationStatus || (exports.TrustedAdvisorIntegrationStatus = {}));
181
- var WorkloadEnvironment;
182
- (function (WorkloadEnvironment) {
183
- WorkloadEnvironment["PREPRODUCTION"] = "PREPRODUCTION";
184
- WorkloadEnvironment["PRODUCTION"] = "PRODUCTION";
185
- })(WorkloadEnvironment = exports.WorkloadEnvironment || (exports.WorkloadEnvironment = {}));
186
- var PermissionType;
187
- (function (PermissionType) {
188
- PermissionType["CONTRIBUTOR"] = "CONTRIBUTOR";
189
- PermissionType["READONLY"] = "READONLY";
190
- })(PermissionType = exports.PermissionType || (exports.PermissionType = {}));
191
- var LensStatusType;
192
- (function (LensStatusType) {
193
- LensStatusType["ALL"] = "ALL";
194
- LensStatusType["DRAFT"] = "DRAFT";
195
- LensStatusType["PUBLISHED"] = "PUBLISHED";
196
- })(LensStatusType = exports.LensStatusType || (exports.LensStatusType = {}));
197
- var DifferenceStatus;
198
- (function (DifferenceStatus) {
199
- DifferenceStatus["DELETED"] = "DELETED";
200
- DifferenceStatus["NEW"] = "NEW";
201
- DifferenceStatus["UPDATED"] = "UPDATED";
202
- })(DifferenceStatus = exports.DifferenceStatus || (exports.DifferenceStatus = {}));
203
- var LensStatus;
204
- (function (LensStatus) {
205
- LensStatus["CURRENT"] = "CURRENT";
206
- LensStatus["DELETED"] = "DELETED";
207
- LensStatus["DEPRECATED"] = "DEPRECATED";
208
- LensStatus["NOT_CURRENT"] = "NOT_CURRENT";
209
- LensStatus["UNSHARED"] = "UNSHARED";
210
- })(LensStatus = exports.LensStatus || (exports.LensStatus = {}));
211
- var WorkloadImprovementStatus;
212
- (function (WorkloadImprovementStatus) {
213
- WorkloadImprovementStatus["COMPLETE"] = "COMPLETE";
214
- WorkloadImprovementStatus["IN_PROGRESS"] = "IN_PROGRESS";
215
- WorkloadImprovementStatus["NOT_APPLICABLE"] = "NOT_APPLICABLE";
216
- WorkloadImprovementStatus["NOT_STARTED"] = "NOT_STARTED";
217
- WorkloadImprovementStatus["RISK_ACKNOWLEDGED"] = "RISK_ACKNOWLEDGED";
218
- })(WorkloadImprovementStatus = exports.WorkloadImprovementStatus || (exports.WorkloadImprovementStatus = {}));
219
- var ImportLensStatus;
220
- (function (ImportLensStatus) {
221
- ImportLensStatus["COMPLETE"] = "COMPLETE";
222
- ImportLensStatus["ERROR"] = "ERROR";
223
- ImportLensStatus["IN_PROGRESS"] = "IN_PROGRESS";
224
- })(ImportLensStatus = exports.ImportLensStatus || (exports.ImportLensStatus = {}));
225
- var ShareStatus;
226
- (function (ShareStatus) {
227
- ShareStatus["ACCEPTED"] = "ACCEPTED";
228
- ShareStatus["ASSOCIATED"] = "ASSOCIATED";
229
- ShareStatus["ASSOCIATING"] = "ASSOCIATING";
230
- ShareStatus["EXPIRED"] = "EXPIRED";
231
- ShareStatus["FAILED"] = "FAILED";
232
- ShareStatus["PENDING"] = "PENDING";
233
- ShareStatus["REJECTED"] = "REJECTED";
234
- ShareStatus["REVOKED"] = "REVOKED";
235
- })(ShareStatus = exports.ShareStatus || (exports.ShareStatus = {}));
236
- var LensType;
237
- (function (LensType) {
238
- LensType["AWS_OFFICIAL"] = "AWS_OFFICIAL";
239
- LensType["CUSTOM_SELF"] = "CUSTOM_SELF";
240
- LensType["CUSTOM_SHARED"] = "CUSTOM_SHARED";
241
- })(LensType = exports.LensType || (exports.LensType = {}));
242
- var NotificationType;
243
- (function (NotificationType) {
244
- NotificationType["LENS_VERSION_DEPRECATED"] = "LENS_VERSION_DEPRECATED";
245
- NotificationType["LENS_VERSION_UPGRADED"] = "LENS_VERSION_UPGRADED";
246
- })(NotificationType = exports.NotificationType || (exports.NotificationType = {}));
247
- var ShareResourceType;
248
- (function (ShareResourceType) {
249
- ShareResourceType["LENS"] = "LENS";
250
- ShareResourceType["WORKLOAD"] = "WORKLOAD";
251
- })(ShareResourceType = exports.ShareResourceType || (exports.ShareResourceType = {}));
252
- var OrganizationSharingStatus;
253
- (function (OrganizationSharingStatus) {
254
- OrganizationSharingStatus["DISABLED"] = "DISABLED";
255
- OrganizationSharingStatus["ENABLED"] = "ENABLED";
256
- })(OrganizationSharingStatus = exports.OrganizationSharingStatus || (exports.OrganizationSharingStatus = {}));
257
- var ShareInvitationAction;
258
- (function (ShareInvitationAction) {
259
- ShareInvitationAction["ACCEPT"] = "ACCEPT";
260
- ShareInvitationAction["REJECT"] = "REJECT";
261
- })(ShareInvitationAction = exports.ShareInvitationAction || (exports.ShareInvitationAction = {}));
170
+ exports.TrustedAdvisorIntegrationStatus = {
171
+ DISABLED: "DISABLED",
172
+ ENABLED: "ENABLED",
173
+ };
174
+ exports.WorkloadEnvironment = {
175
+ PREPRODUCTION: "PREPRODUCTION",
176
+ PRODUCTION: "PRODUCTION",
177
+ };
178
+ exports.PermissionType = {
179
+ CONTRIBUTOR: "CONTRIBUTOR",
180
+ READONLY: "READONLY",
181
+ };
182
+ exports.LensStatusType = {
183
+ ALL: "ALL",
184
+ DRAFT: "DRAFT",
185
+ PUBLISHED: "PUBLISHED",
186
+ };
187
+ exports.DifferenceStatus = {
188
+ DELETED: "DELETED",
189
+ NEW: "NEW",
190
+ UPDATED: "UPDATED",
191
+ };
192
+ exports.ReportFormat = {
193
+ JSON: "JSON",
194
+ PDF: "PDF",
195
+ };
196
+ exports.LensStatus = {
197
+ CURRENT: "CURRENT",
198
+ DELETED: "DELETED",
199
+ DEPRECATED: "DEPRECATED",
200
+ NOT_CURRENT: "NOT_CURRENT",
201
+ UNSHARED: "UNSHARED",
202
+ };
203
+ exports.WorkloadImprovementStatus = {
204
+ COMPLETE: "COMPLETE",
205
+ IN_PROGRESS: "IN_PROGRESS",
206
+ NOT_APPLICABLE: "NOT_APPLICABLE",
207
+ NOT_STARTED: "NOT_STARTED",
208
+ RISK_ACKNOWLEDGED: "RISK_ACKNOWLEDGED",
209
+ };
210
+ exports.ImportLensStatus = {
211
+ COMPLETE: "COMPLETE",
212
+ ERROR: "ERROR",
213
+ IN_PROGRESS: "IN_PROGRESS",
214
+ };
215
+ exports.ShareStatus = {
216
+ ACCEPTED: "ACCEPTED",
217
+ ASSOCIATED: "ASSOCIATED",
218
+ ASSOCIATING: "ASSOCIATING",
219
+ EXPIRED: "EXPIRED",
220
+ FAILED: "FAILED",
221
+ PENDING: "PENDING",
222
+ REJECTED: "REJECTED",
223
+ REVOKED: "REVOKED",
224
+ };
225
+ exports.LensType = {
226
+ AWS_OFFICIAL: "AWS_OFFICIAL",
227
+ CUSTOM_SELF: "CUSTOM_SELF",
228
+ CUSTOM_SHARED: "CUSTOM_SHARED",
229
+ };
230
+ exports.NotificationType = {
231
+ LENS_VERSION_DEPRECATED: "LENS_VERSION_DEPRECATED",
232
+ LENS_VERSION_UPGRADED: "LENS_VERSION_UPGRADED",
233
+ };
234
+ exports.ShareResourceType = {
235
+ LENS: "LENS",
236
+ WORKLOAD: "WORKLOAD",
237
+ };
238
+ exports.OrganizationSharingStatus = {
239
+ DISABLED: "DISABLED",
240
+ ENABLED: "ENABLED",
241
+ };
242
+ exports.ShareInvitationAction = {
243
+ ACCEPT: "ACCEPT",
244
+ REJECT: "REJECT",
245
+ };
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateGetConsolidatedReport = void 0;
4
+ const GetConsolidatedReportCommand_1 = require("../commands/GetConsolidatedReportCommand");
5
+ const WellArchitectedClient_1 = require("../WellArchitectedClient");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new GetConsolidatedReportCommand_1.GetConsolidatedReportCommand(input), ...args);
8
+ };
9
+ async function* paginateGetConsolidatedReport(config, input, ...additionalArguments) {
10
+ let token = config.startingToken || undefined;
11
+ let hasNext = true;
12
+ let page;
13
+ while (hasNext) {
14
+ input.NextToken = token;
15
+ input["MaxResults"] = config.pageSize;
16
+ if (config.client instanceof WellArchitectedClient_1.WellArchitectedClient) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected WellArchitected | WellArchitectedClient");
21
+ }
22
+ yield page;
23
+ const prevToken = token;
24
+ token = page.NextToken;
25
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
+ }
27
+ return undefined;
28
+ }
29
+ exports.paginateGetConsolidatedReport = paginateGetConsolidatedReport;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./GetConsolidatedReportPaginator"), exports);
4
5
  tslib_1.__exportStar(require("./Interfaces"), exports);
5
6
  tslib_1.__exportStar(require("./ListAnswersPaginator"), exports);
6
7
  tslib_1.__exportStar(require("./ListCheckDetailsPaginator"), exports);