@aws-sdk/client-wellarchitected 3.50.0 → 3.53.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 (77) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist-cjs/index.js +3 -0
  3. package/dist-cjs/models/WellArchitectedServiceException.js +11 -0
  4. package/dist-cjs/models/models_0.js +114 -3
  5. package/dist-cjs/protocols/Aws_restJson1.js +453 -1705
  6. package/dist-es/index.js +1 -0
  7. package/dist-es/models/WellArchitectedServiceException.js +12 -0
  8. package/dist-es/models/models_0.js +105 -1
  9. package/dist-es/protocols/Aws_restJson1.js +957 -1869
  10. package/dist-types/index.d.ts +1 -0
  11. package/dist-types/models/WellArchitectedServiceException.d.ts +10 -0
  12. package/dist-types/models/models_0.d.ts +51 -22
  13. package/dist-types/ts3.4/WellArchitected.d.ts +200 -0
  14. package/dist-types/ts3.4/WellArchitectedClient.d.ts +112 -0
  15. package/dist-types/ts3.4/commands/AssociateLensesCommand.d.ts +17 -0
  16. package/dist-types/ts3.4/commands/CreateLensShareCommand.d.ts +17 -0
  17. package/dist-types/ts3.4/commands/CreateLensVersionCommand.d.ts +17 -0
  18. package/dist-types/ts3.4/commands/CreateMilestoneCommand.d.ts +17 -0
  19. package/dist-types/ts3.4/commands/CreateWorkloadCommand.d.ts +17 -0
  20. package/dist-types/ts3.4/commands/CreateWorkloadShareCommand.d.ts +17 -0
  21. package/dist-types/ts3.4/commands/DeleteLensCommand.d.ts +17 -0
  22. package/dist-types/ts3.4/commands/DeleteLensShareCommand.d.ts +17 -0
  23. package/dist-types/ts3.4/commands/DeleteWorkloadCommand.d.ts +17 -0
  24. package/dist-types/ts3.4/commands/DeleteWorkloadShareCommand.d.ts +17 -0
  25. package/dist-types/ts3.4/commands/DisassociateLensesCommand.d.ts +17 -0
  26. package/dist-types/ts3.4/commands/ExportLensCommand.d.ts +17 -0
  27. package/dist-types/ts3.4/commands/GetAnswerCommand.d.ts +17 -0
  28. package/dist-types/ts3.4/commands/GetLensCommand.d.ts +17 -0
  29. package/dist-types/ts3.4/commands/GetLensReviewCommand.d.ts +17 -0
  30. package/dist-types/ts3.4/commands/GetLensReviewReportCommand.d.ts +17 -0
  31. package/dist-types/ts3.4/commands/GetLensVersionDifferenceCommand.d.ts +17 -0
  32. package/dist-types/ts3.4/commands/GetMilestoneCommand.d.ts +17 -0
  33. package/dist-types/ts3.4/commands/GetWorkloadCommand.d.ts +17 -0
  34. package/dist-types/ts3.4/commands/ImportLensCommand.d.ts +17 -0
  35. package/dist-types/ts3.4/commands/ListAnswersCommand.d.ts +17 -0
  36. package/dist-types/ts3.4/commands/ListLensReviewImprovementsCommand.d.ts +17 -0
  37. package/dist-types/ts3.4/commands/ListLensReviewsCommand.d.ts +17 -0
  38. package/dist-types/ts3.4/commands/ListLensSharesCommand.d.ts +17 -0
  39. package/dist-types/ts3.4/commands/ListLensesCommand.d.ts +17 -0
  40. package/dist-types/ts3.4/commands/ListMilestonesCommand.d.ts +17 -0
  41. package/dist-types/ts3.4/commands/ListNotificationsCommand.d.ts +17 -0
  42. package/dist-types/ts3.4/commands/ListShareInvitationsCommand.d.ts +17 -0
  43. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
  44. package/dist-types/ts3.4/commands/ListWorkloadSharesCommand.d.ts +17 -0
  45. package/dist-types/ts3.4/commands/ListWorkloadsCommand.d.ts +17 -0
  46. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
  47. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
  48. package/dist-types/ts3.4/commands/UpdateAnswerCommand.d.ts +17 -0
  49. package/dist-types/ts3.4/commands/UpdateLensReviewCommand.d.ts +17 -0
  50. package/dist-types/ts3.4/commands/UpdateShareInvitationCommand.d.ts +17 -0
  51. package/dist-types/ts3.4/commands/UpdateWorkloadCommand.d.ts +17 -0
  52. package/dist-types/ts3.4/commands/UpdateWorkloadShareCommand.d.ts +17 -0
  53. package/dist-types/ts3.4/commands/UpgradeLensReviewCommand.d.ts +17 -0
  54. package/dist-types/ts3.4/commands/index.d.ts +39 -0
  55. package/dist-types/ts3.4/endpoints.d.ts +2 -0
  56. package/dist-types/ts3.4/index.d.ts +6 -0
  57. package/dist-types/ts3.4/models/WellArchitectedServiceException.d.ts +6 -0
  58. package/dist-types/ts3.4/models/index.d.ts +1 -0
  59. package/dist-types/ts3.4/models/models_0.d.ts +1691 -0
  60. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  61. package/dist-types/ts3.4/pagination/ListAnswersPaginator.d.ts +4 -0
  62. package/dist-types/ts3.4/pagination/ListLensReviewImprovementsPaginator.d.ts +4 -0
  63. package/dist-types/ts3.4/pagination/ListLensReviewsPaginator.d.ts +4 -0
  64. package/dist-types/ts3.4/pagination/ListLensSharesPaginator.d.ts +4 -0
  65. package/dist-types/ts3.4/pagination/ListLensesPaginator.d.ts +4 -0
  66. package/dist-types/ts3.4/pagination/ListMilestonesPaginator.d.ts +4 -0
  67. package/dist-types/ts3.4/pagination/ListNotificationsPaginator.d.ts +4 -0
  68. package/dist-types/ts3.4/pagination/ListShareInvitationsPaginator.d.ts +4 -0
  69. package/dist-types/ts3.4/pagination/ListWorkloadSharesPaginator.d.ts +4 -0
  70. package/dist-types/ts3.4/pagination/ListWorkloadsPaginator.d.ts +4 -0
  71. package/dist-types/ts3.4/pagination/index.d.ts +11 -0
  72. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +119 -0
  73. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +38 -0
  74. package/dist-types/ts3.4/runtimeConfig.d.ts +38 -0
  75. package/dist-types/ts3.4/runtimeConfig.native.d.ts +37 -0
  76. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
  77. package/package.json +33 -33
package/CHANGELOG.md CHANGED
@@ -3,6 +3,33 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
7
+
8
+
9
+ ### Features
10
+
11
+ * **clients:** generate service exceptions as classes ([#3267](https://github.com/aws/aws-sdk-js-v3/issues/3267)) ([ca64fee](https://github.com/aws/aws-sdk-js-v3/commit/ca64feed3351c394c07dc26b782a5760a396a074))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
18
+
19
+ **Note:** Version bump only for package @aws-sdk/client-wellarchitected
20
+
21
+
22
+
23
+
24
+
25
+ # [3.51.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.50.0...v3.51.0) (2022-02-12)
26
+
27
+ **Note:** Version bump only for package @aws-sdk/client-wellarchitected
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.50.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.49.0...v3.50.0) (2022-02-08)
7
34
 
8
35
  **Note:** Version bump only for package @aws-sdk/client-wellarchitected
package/dist-cjs/index.js CHANGED
@@ -1,8 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WellArchitectedServiceException = void 0;
3
4
  const tslib_1 = require("tslib");
4
5
  tslib_1.__exportStar(require("./WellArchitected"), exports);
5
6
  tslib_1.__exportStar(require("./WellArchitectedClient"), exports);
6
7
  tslib_1.__exportStar(require("./commands"), exports);
7
8
  tslib_1.__exportStar(require("./models"), exports);
8
9
  tslib_1.__exportStar(require("./pagination"), exports);
10
+ var WellArchitectedServiceException_1 = require("./models/WellArchitectedServiceException");
11
+ Object.defineProperty(exports, "WellArchitectedServiceException", { enumerable: true, get: function () { return WellArchitectedServiceException_1.WellArchitectedServiceException; } });
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WellArchitectedServiceException = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
5
+ class WellArchitectedServiceException extends smithy_client_1.ServiceException {
6
+ constructor(options) {
7
+ super(options);
8
+ Object.setPrototypeOf(this, WellArchitectedServiceException.prototype);
9
+ }
10
+ }
11
+ exports.WellArchitectedServiceException = WellArchitectedServiceException;
@@ -1,8 +1,23 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetLensVersionDifferenceInput = exports.GetLensReviewReportOutput = exports.LensReviewReport = exports.GetLensReviewReportInput = exports.GetLensReviewOutput = exports.LensReview = exports.PillarReviewSummary = exports.LensStatus = exports.GetLensReviewInput = exports.GetLensOutput = exports.Lens = exports.GetLensInput = exports.GetAnswerOutput = exports.GetAnswerInput = exports.ExportLensOutput = exports.ExportLensInput = exports.DisassociateLensesInput = exports.DifferenceStatus = exports.DeleteWorkloadShareInput = exports.DeleteWorkloadInput = exports.DeleteLensShareInput = exports.DeleteLensInput = exports.LensStatusType = exports.CreateWorkloadShareOutput = exports.CreateWorkloadShareInput = exports.PermissionType = exports.CreateWorkloadOutput = exports.CreateWorkloadInput = exports.WorkloadEnvironment = exports.CreateMilestoneOutput = exports.CreateMilestoneInput = exports.CreateLensVersionOutput = exports.CreateLensVersionInput = exports.CreateLensShareOutput = exports.CreateLensShareInput = exports.ChoiceUpdate = exports.ChoiceImprovementPlan = exports.ValidationExceptionReason = exports.ValidationExceptionField = exports.AssociateLensesInput = exports.AnswerSummary = exports.ChoiceAnswerSummary = exports.Answer = exports.Risk = exports.AnswerReason = exports.Choice = exports.ChoiceContent = exports.ChoiceAnswer = exports.ChoiceStatus = exports.ChoiceReason = void 0;
4
- exports.ListWorkloadSharesOutput = exports.WorkloadShareSummary = exports.ListWorkloadSharesInput = exports.ListWorkloadsOutput = exports.ListWorkloadsInput = exports.ListTagsForResourceOutput = exports.ListTagsForResourceInput = exports.ListShareInvitationsOutput = exports.ShareInvitationSummary = exports.ListShareInvitationsInput = exports.ShareResourceType = exports.ListNotificationsOutput = exports.NotificationSummary = exports.NotificationType = exports.ListNotificationsInput = exports.ListMilestonesOutput = exports.MilestoneSummary = exports.WorkloadSummary = exports.ListMilestonesInput = exports.ListLensSharesOutput = exports.ListLensSharesInput = exports.ListLensReviewsOutput = exports.ListLensReviewsInput = exports.ListLensReviewImprovementsOutput = exports.ListLensReviewImprovementsInput = exports.ListLensesOutput = exports.ListLensesInput = exports.ListAnswersOutput = exports.ListAnswersInput = exports.LensUpgradeSummary = exports.LensSummary = exports.LensType = exports.LensShareSummary = exports.ShareStatus = exports.LensReviewSummary = exports.ImprovementSummary = exports.ImportLensOutput = exports.ImportLensStatus = exports.ImportLensInput = exports.GetWorkloadOutput = exports.GetWorkloadInput = exports.GetMilestoneOutput = exports.Milestone = exports.Workload = exports.WorkloadImprovementStatus = exports.GetMilestoneInput = exports.GetLensVersionDifferenceOutput = exports.VersionDifferences = exports.PillarDifference = exports.QuestionDifference = void 0;
5
- exports.UpgradeLensReviewInput = exports.UpdateWorkloadShareOutput = exports.WorkloadShare = exports.UpdateWorkloadShareInput = exports.UpdateWorkloadOutput = exports.UpdateWorkloadInput = exports.UpdateShareInvitationOutput = exports.UpdateShareInvitationInput = exports.UpdateLensReviewOutput = exports.UpdateLensReviewInput = exports.UpdateAnswerOutput = exports.UpdateAnswerInput = exports.UntagResourceOutput = exports.UntagResourceInput = exports.TagResourceOutput = exports.TagResourceInput = exports.ShareInvitationAction = exports.ShareInvitation = void 0;
3
+ exports.LensStatus = exports.GetLensReviewInput = exports.GetLensOutput = exports.Lens = exports.GetLensInput = exports.GetAnswerOutput = exports.GetAnswerInput = exports.ExportLensOutput = exports.ExportLensInput = exports.DisassociateLensesInput = exports.DifferenceStatus = exports.DeleteWorkloadShareInput = exports.DeleteWorkloadInput = exports.DeleteLensShareInput = exports.DeleteLensInput = exports.LensStatusType = exports.CreateWorkloadShareOutput = exports.CreateWorkloadShareInput = exports.PermissionType = exports.CreateWorkloadOutput = exports.CreateWorkloadInput = exports.WorkloadEnvironment = exports.CreateMilestoneOutput = exports.CreateMilestoneInput = exports.CreateLensVersionOutput = exports.CreateLensVersionInput = exports.ServiceQuotaExceededException = exports.CreateLensShareOutput = exports.CreateLensShareInput = exports.ChoiceUpdate = exports.ChoiceImprovementPlan = exports.ValidationException = exports.ValidationExceptionReason = exports.ValidationExceptionField = exports.ThrottlingException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = exports.AssociateLensesInput = exports.AnswerSummary = exports.ChoiceAnswerSummary = exports.Answer = exports.Risk = exports.AnswerReason = exports.Choice = exports.ChoiceContent = exports.ChoiceAnswer = exports.ChoiceStatus = exports.ChoiceReason = exports.AccessDeniedException = void 0;
4
+ exports.ListShareInvitationsOutput = exports.ShareInvitationSummary = exports.ListShareInvitationsInput = exports.ShareResourceType = exports.ListNotificationsOutput = exports.NotificationSummary = exports.NotificationType = exports.ListNotificationsInput = exports.ListMilestonesOutput = exports.MilestoneSummary = exports.WorkloadSummary = exports.ListMilestonesInput = exports.ListLensSharesOutput = exports.ListLensSharesInput = exports.ListLensReviewsOutput = exports.ListLensReviewsInput = exports.ListLensReviewImprovementsOutput = exports.ListLensReviewImprovementsInput = exports.ListLensesOutput = exports.ListLensesInput = exports.ListAnswersOutput = exports.ListAnswersInput = exports.LensUpgradeSummary = exports.LensSummary = exports.LensType = exports.LensShareSummary = exports.ShareStatus = exports.LensReviewSummary = exports.ImprovementSummary = exports.ImportLensOutput = exports.ImportLensStatus = exports.ImportLensInput = exports.GetWorkloadOutput = exports.GetWorkloadInput = exports.GetMilestoneOutput = exports.Milestone = exports.Workload = exports.WorkloadImprovementStatus = exports.GetMilestoneInput = exports.GetLensVersionDifferenceOutput = exports.VersionDifferences = exports.PillarDifference = exports.QuestionDifference = exports.GetLensVersionDifferenceInput = exports.GetLensReviewReportOutput = exports.LensReviewReport = exports.GetLensReviewReportInput = exports.GetLensReviewOutput = exports.LensReview = exports.PillarReviewSummary = void 0;
5
+ exports.UpgradeLensReviewInput = exports.UpdateWorkloadShareOutput = exports.WorkloadShare = exports.UpdateWorkloadShareInput = exports.UpdateWorkloadOutput = exports.UpdateWorkloadInput = exports.UpdateShareInvitationOutput = exports.UpdateShareInvitationInput = exports.UpdateLensReviewOutput = exports.UpdateLensReviewInput = exports.UpdateAnswerOutput = exports.UpdateAnswerInput = exports.UntagResourceOutput = exports.UntagResourceInput = exports.TagResourceOutput = exports.TagResourceInput = exports.ShareInvitationAction = exports.ShareInvitation = exports.ListWorkloadSharesOutput = exports.WorkloadShareSummary = exports.ListWorkloadSharesInput = exports.ListWorkloadsOutput = exports.ListWorkloadsInput = exports.ListTagsForResourceOutput = exports.ListTagsForResourceInput = void 0;
6
+ const WellArchitectedServiceException_1 = require("./WellArchitectedServiceException");
7
+ class AccessDeniedException extends WellArchitectedServiceException_1.WellArchitectedServiceException {
8
+ constructor(opts) {
9
+ super({
10
+ name: "AccessDeniedException",
11
+ $fault: "client",
12
+ ...opts,
13
+ });
14
+ this.name = "AccessDeniedException";
15
+ this.$fault = "client";
16
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
17
+ this.Message = opts.Message;
18
+ }
19
+ }
20
+ exports.AccessDeniedException = AccessDeniedException;
6
21
  var ChoiceReason;
7
22
  (function (ChoiceReason) {
8
23
  ChoiceReason["ARCHITECTURE_CONSTRAINTS"] = "ARCHITECTURE_CONSTRAINTS";
@@ -75,6 +90,68 @@ var AssociateLensesInput;
75
90
  ...obj,
76
91
  });
77
92
  })(AssociateLensesInput = exports.AssociateLensesInput || (exports.AssociateLensesInput = {}));
93
+ class ConflictException extends WellArchitectedServiceException_1.WellArchitectedServiceException {
94
+ constructor(opts) {
95
+ super({
96
+ name: "ConflictException",
97
+ $fault: "client",
98
+ ...opts,
99
+ });
100
+ this.name = "ConflictException";
101
+ this.$fault = "client";
102
+ Object.setPrototypeOf(this, ConflictException.prototype);
103
+ this.Message = opts.Message;
104
+ this.ResourceId = opts.ResourceId;
105
+ this.ResourceType = opts.ResourceType;
106
+ }
107
+ }
108
+ exports.ConflictException = ConflictException;
109
+ class InternalServerException extends WellArchitectedServiceException_1.WellArchitectedServiceException {
110
+ constructor(opts) {
111
+ super({
112
+ name: "InternalServerException",
113
+ $fault: "server",
114
+ ...opts,
115
+ });
116
+ this.name = "InternalServerException";
117
+ this.$fault = "server";
118
+ Object.setPrototypeOf(this, InternalServerException.prototype);
119
+ this.Message = opts.Message;
120
+ }
121
+ }
122
+ exports.InternalServerException = InternalServerException;
123
+ class ResourceNotFoundException extends WellArchitectedServiceException_1.WellArchitectedServiceException {
124
+ constructor(opts) {
125
+ super({
126
+ name: "ResourceNotFoundException",
127
+ $fault: "client",
128
+ ...opts,
129
+ });
130
+ this.name = "ResourceNotFoundException";
131
+ this.$fault = "client";
132
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
133
+ this.Message = opts.Message;
134
+ this.ResourceId = opts.ResourceId;
135
+ this.ResourceType = opts.ResourceType;
136
+ }
137
+ }
138
+ exports.ResourceNotFoundException = ResourceNotFoundException;
139
+ class ThrottlingException extends WellArchitectedServiceException_1.WellArchitectedServiceException {
140
+ constructor(opts) {
141
+ super({
142
+ name: "ThrottlingException",
143
+ $fault: "client",
144
+ ...opts,
145
+ });
146
+ this.name = "ThrottlingException";
147
+ this.$fault = "client";
148
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
149
+ this.Message = opts.Message;
150
+ this.QuotaCode = opts.QuotaCode;
151
+ this.ServiceCode = opts.ServiceCode;
152
+ }
153
+ }
154
+ exports.ThrottlingException = ThrottlingException;
78
155
  var ValidationExceptionField;
79
156
  (function (ValidationExceptionField) {
80
157
  ValidationExceptionField.filterSensitiveLog = (obj) => ({
@@ -88,6 +165,22 @@ var ValidationExceptionReason;
88
165
  ValidationExceptionReason["OTHER"] = "OTHER";
89
166
  ValidationExceptionReason["UNKNOWN_OPERATION"] = "UNKNOWN_OPERATION";
90
167
  })(ValidationExceptionReason = exports.ValidationExceptionReason || (exports.ValidationExceptionReason = {}));
168
+ class ValidationException extends WellArchitectedServiceException_1.WellArchitectedServiceException {
169
+ constructor(opts) {
170
+ super({
171
+ name: "ValidationException",
172
+ $fault: "client",
173
+ ...opts,
174
+ });
175
+ this.name = "ValidationException";
176
+ this.$fault = "client";
177
+ Object.setPrototypeOf(this, ValidationException.prototype);
178
+ this.Message = opts.Message;
179
+ this.Reason = opts.Reason;
180
+ this.Fields = opts.Fields;
181
+ }
182
+ }
183
+ exports.ValidationException = ValidationException;
91
184
  var ChoiceImprovementPlan;
92
185
  (function (ChoiceImprovementPlan) {
93
186
  ChoiceImprovementPlan.filterSensitiveLog = (obj) => ({
@@ -112,6 +205,24 @@ var CreateLensShareOutput;
112
205
  ...obj,
113
206
  });
114
207
  })(CreateLensShareOutput = exports.CreateLensShareOutput || (exports.CreateLensShareOutput = {}));
208
+ class ServiceQuotaExceededException extends WellArchitectedServiceException_1.WellArchitectedServiceException {
209
+ constructor(opts) {
210
+ super({
211
+ name: "ServiceQuotaExceededException",
212
+ $fault: "client",
213
+ ...opts,
214
+ });
215
+ this.name = "ServiceQuotaExceededException";
216
+ this.$fault = "client";
217
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
218
+ this.Message = opts.Message;
219
+ this.ResourceId = opts.ResourceId;
220
+ this.ResourceType = opts.ResourceType;
221
+ this.QuotaCode = opts.QuotaCode;
222
+ this.ServiceCode = opts.ServiceCode;
223
+ }
224
+ }
225
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
115
226
  var CreateLensVersionInput;
116
227
  (function (CreateLensVersionInput) {
117
228
  CreateLensVersionInput.filterSensitiveLog = (obj) => ({