@aws-sdk/client-wellarchitected 3.115.0 → 3.121.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.
- package/CHANGELOG.md +28 -0
- package/dist-cjs/WellArchitected.js +15 -0
- package/dist-cjs/commands/UpdateGlobalSettingsCommand.js +36 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +15 -1
- package/dist-cjs/protocols/Aws_restJson1.js +269 -159
- package/dist-es/WellArchitected.js +15 -0
- package/dist-es/commands/UpdateGlobalSettingsCommand.js +39 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +12 -0
- package/dist-es/protocols/Aws_restJson1.js +290 -158
- package/dist-types/WellArchitected.d.ts +7 -0
- package/dist-types/WellArchitectedClient.d.ts +3 -2
- package/dist-types/commands/UpdateGlobalSettingsCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +35 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
- package/dist-types/ts3.4/WellArchitected.d.ts +5 -0
- package/dist-types/ts3.4/WellArchitectedClient.d.ts +3 -2
- package/dist-types/ts3.4/commands/UpdateGlobalSettingsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +23 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +3 -0
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,34 @@
|
|
|
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.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **client-wellarchitected:** Added support for UpdateGlobalSettings API. Added status filter to ListWorkloadShares and ListLensShares. ([5d6f4e6](https://github.com/aws/aws-sdk-js-v3/commit/5d6f4e6f1257b2a92f3a6aebd409126fb53d4750))
|
|
12
|
+
* **clients:** fallback to status code for unmodeled errors ([#3752](https://github.com/aws/aws-sdk-js-v3/issues/3752)) ([49bcc4f](https://github.com/aws/aws-sdk-js-v3/commit/49bcc4f153e890e798a8e82fd5fc397b2dcc449f))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
## [3.118.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.118.0...v3.118.1) (2022-06-27)
|
|
19
|
+
|
|
20
|
+
**Note:** Version bump only for package @aws-sdk/client-wellarchitected
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
# [3.118.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.117.0...v3.118.0) (2022-06-24)
|
|
27
|
+
|
|
28
|
+
**Note:** Version bump only for package @aws-sdk/client-wellarchitected
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
6
34
|
# [3.115.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.114.0...v3.115.0) (2022-06-21)
|
|
7
35
|
|
|
8
36
|
|
|
@@ -35,6 +35,7 @@ const ListWorkloadSharesCommand_1 = require("./commands/ListWorkloadSharesComman
|
|
|
35
35
|
const TagResourceCommand_1 = require("./commands/TagResourceCommand");
|
|
36
36
|
const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
|
|
37
37
|
const UpdateAnswerCommand_1 = require("./commands/UpdateAnswerCommand");
|
|
38
|
+
const UpdateGlobalSettingsCommand_1 = require("./commands/UpdateGlobalSettingsCommand");
|
|
38
39
|
const UpdateLensReviewCommand_1 = require("./commands/UpdateLensReviewCommand");
|
|
39
40
|
const UpdateShareInvitationCommand_1 = require("./commands/UpdateShareInvitationCommand");
|
|
40
41
|
const UpdateWorkloadCommand_1 = require("./commands/UpdateWorkloadCommand");
|
|
@@ -518,6 +519,20 @@ class WellArchitected extends WellArchitectedClient_1.WellArchitectedClient {
|
|
|
518
519
|
return this.send(command, optionsOrCb);
|
|
519
520
|
}
|
|
520
521
|
}
|
|
522
|
+
updateGlobalSettings(args, optionsOrCb, cb) {
|
|
523
|
+
const command = new UpdateGlobalSettingsCommand_1.UpdateGlobalSettingsCommand(args);
|
|
524
|
+
if (typeof optionsOrCb === "function") {
|
|
525
|
+
this.send(command, optionsOrCb);
|
|
526
|
+
}
|
|
527
|
+
else if (typeof cb === "function") {
|
|
528
|
+
if (typeof optionsOrCb !== "object")
|
|
529
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
530
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
531
|
+
}
|
|
532
|
+
else {
|
|
533
|
+
return this.send(command, optionsOrCb);
|
|
534
|
+
}
|
|
535
|
+
}
|
|
521
536
|
updateLensReview(args, optionsOrCb, cb) {
|
|
522
537
|
const command = new UpdateLensReviewCommand_1.UpdateLensReviewCommand(args);
|
|
523
538
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateGlobalSettingsCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class UpdateGlobalSettingsCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "WellArchitectedClient";
|
|
18
|
+
const commandName = "UpdateGlobalSettingsCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.UpdateGlobalSettingsInput.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: (output) => output,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1UpdateGlobalSettingsCommand)(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1UpdateGlobalSettingsCommand)(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.UpdateGlobalSettingsCommand = UpdateGlobalSettingsCommand;
|
|
@@ -35,6 +35,7 @@ tslib_1.__exportStar(require("./ListWorkloadsCommand"), exports);
|
|
|
35
35
|
tslib_1.__exportStar(require("./TagResourceCommand"), exports);
|
|
36
36
|
tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
|
|
37
37
|
tslib_1.__exportStar(require("./UpdateAnswerCommand"), exports);
|
|
38
|
+
tslib_1.__exportStar(require("./UpdateGlobalSettingsCommand"), exports);
|
|
38
39
|
tslib_1.__exportStar(require("./UpdateLensReviewCommand"), exports);
|
|
39
40
|
tslib_1.__exportStar(require("./UpdateShareInvitationCommand"), exports);
|
|
40
41
|
tslib_1.__exportStar(require("./UpdateWorkloadCommand"), exports);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
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.ChoiceAnswer = exports.ChoiceStatus = exports.ChoiceReason = exports.AdditionalResources = exports.AdditionalResourceType = exports.ChoiceContent = exports.AccessDeniedException = void 0;
|
|
4
4
|
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 = exports.LensStatus = exports.GetLensReviewInput = 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 = exports.ListShareInvitationsOutput = exports.ShareInvitationSummary = void 0;
|
|
5
|
+
exports.UpgradeLensReviewInput = exports.UpdateWorkloadShareOutput = exports.WorkloadShare = exports.UpdateWorkloadShareInput = exports.UpdateWorkloadOutput = exports.UpdateWorkloadInput = exports.UpdateShareInvitationOutput = exports.UpdateShareInvitationInput = exports.UpdateLensReviewOutput = exports.UpdateLensReviewInput = exports.UpdateGlobalSettingsInput = exports.UpdateAnswerOutput = exports.UpdateAnswerInput = exports.UntagResourceOutput = exports.UntagResourceInput = exports.TagResourceOutput = exports.TagResourceInput = exports.ShareInvitationAction = exports.ShareInvitation = exports.OrganizationSharingStatus = exports.ListWorkloadSharesOutput = exports.WorkloadShareSummary = exports.ListWorkloadSharesInput = exports.ListWorkloadsOutput = exports.ListWorkloadsInput = exports.ListTagsForResourceOutput = exports.ListTagsForResourceInput = exports.ListShareInvitationsOutput = exports.ShareInvitationSummary = void 0;
|
|
6
6
|
const WellArchitectedServiceException_1 = require("./WellArchitectedServiceException");
|
|
7
7
|
class AccessDeniedException extends WellArchitectedServiceException_1.WellArchitectedServiceException {
|
|
8
8
|
constructor(opts) {
|
|
@@ -533,7 +533,10 @@ var LensReviewSummary;
|
|
|
533
533
|
var ShareStatus;
|
|
534
534
|
(function (ShareStatus) {
|
|
535
535
|
ShareStatus["ACCEPTED"] = "ACCEPTED";
|
|
536
|
+
ShareStatus["ASSOCIATED"] = "ASSOCIATED";
|
|
537
|
+
ShareStatus["ASSOCIATING"] = "ASSOCIATING";
|
|
536
538
|
ShareStatus["EXPIRED"] = "EXPIRED";
|
|
539
|
+
ShareStatus["FAILED"] = "FAILED";
|
|
537
540
|
ShareStatus["PENDING"] = "PENDING";
|
|
538
541
|
ShareStatus["REJECTED"] = "REJECTED";
|
|
539
542
|
ShareStatus["REVOKED"] = "REVOKED";
|
|
@@ -734,6 +737,11 @@ var ListWorkloadSharesOutput;
|
|
|
734
737
|
...obj,
|
|
735
738
|
});
|
|
736
739
|
})(ListWorkloadSharesOutput = exports.ListWorkloadSharesOutput || (exports.ListWorkloadSharesOutput = {}));
|
|
740
|
+
var OrganizationSharingStatus;
|
|
741
|
+
(function (OrganizationSharingStatus) {
|
|
742
|
+
OrganizationSharingStatus["DISABLED"] = "DISABLED";
|
|
743
|
+
OrganizationSharingStatus["ENABLED"] = "ENABLED";
|
|
744
|
+
})(OrganizationSharingStatus = exports.OrganizationSharingStatus || (exports.OrganizationSharingStatus = {}));
|
|
737
745
|
var ShareInvitation;
|
|
738
746
|
(function (ShareInvitation) {
|
|
739
747
|
ShareInvitation.filterSensitiveLog = (obj) => ({
|
|
@@ -781,6 +789,12 @@ var UpdateAnswerOutput;
|
|
|
781
789
|
...obj,
|
|
782
790
|
});
|
|
783
791
|
})(UpdateAnswerOutput = exports.UpdateAnswerOutput || (exports.UpdateAnswerOutput = {}));
|
|
792
|
+
var UpdateGlobalSettingsInput;
|
|
793
|
+
(function (UpdateGlobalSettingsInput) {
|
|
794
|
+
UpdateGlobalSettingsInput.filterSensitiveLog = (obj) => ({
|
|
795
|
+
...obj,
|
|
796
|
+
});
|
|
797
|
+
})(UpdateGlobalSettingsInput = exports.UpdateGlobalSettingsInput || (exports.UpdateGlobalSettingsInput = {}));
|
|
784
798
|
var UpdateLensReviewInput;
|
|
785
799
|
(function (UpdateLensReviewInput) {
|
|
786
800
|
UpdateLensReviewInput.filterSensitiveLog = (obj) => ({
|