@aws-sdk/client-wellarchitected 3.423.0 → 3.425.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/README.md +112 -0
- package/dist-cjs/WellArchitected.js +28 -0
- package/dist-cjs/commands/CreateReviewTemplateCommand.js +51 -0
- package/dist-cjs/commands/CreateTemplateShareCommand.js +51 -0
- package/dist-cjs/commands/DeleteReviewTemplateCommand.js +51 -0
- package/dist-cjs/commands/DeleteTemplateShareCommand.js +51 -0
- package/dist-cjs/commands/GetReviewTemplateAnswerCommand.js +51 -0
- package/dist-cjs/commands/GetReviewTemplateCommand.js +51 -0
- package/dist-cjs/commands/GetReviewTemplateLensReviewCommand.js +51 -0
- package/dist-cjs/commands/ListReviewTemplateAnswersCommand.js +51 -0
- package/dist-cjs/commands/ListReviewTemplatesCommand.js +51 -0
- package/dist-cjs/commands/ListTemplateSharesCommand.js +51 -0
- package/dist-cjs/commands/UpdateReviewTemplateAnswerCommand.js +51 -0
- package/dist-cjs/commands/UpdateReviewTemplateCommand.js +51 -0
- package/dist-cjs/commands/UpdateReviewTemplateLensReviewCommand.js +51 -0
- package/dist-cjs/commands/UpgradeReviewTemplateLensReviewCommand.js +51 -0
- package/dist-cjs/commands/index.js +14 -0
- package/dist-cjs/models/models_0.js +14 -1
- package/dist-cjs/pagination/ListReviewTemplateAnswersPaginator.js +29 -0
- package/dist-cjs/pagination/ListReviewTemplatesPaginator.js +29 -0
- package/dist-cjs/pagination/ListTemplateSharesPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +3 -0
- package/dist-cjs/protocols/Aws_restJson1.js +1098 -53
- package/dist-es/WellArchitected.js +28 -0
- package/dist-es/commands/CreateReviewTemplateCommand.js +47 -0
- package/dist-es/commands/CreateTemplateShareCommand.js +47 -0
- package/dist-es/commands/DeleteReviewTemplateCommand.js +47 -0
- package/dist-es/commands/DeleteTemplateShareCommand.js +47 -0
- package/dist-es/commands/GetReviewTemplateAnswerCommand.js +47 -0
- package/dist-es/commands/GetReviewTemplateCommand.js +47 -0
- package/dist-es/commands/GetReviewTemplateLensReviewCommand.js +47 -0
- package/dist-es/commands/ListReviewTemplateAnswersCommand.js +47 -0
- package/dist-es/commands/ListReviewTemplatesCommand.js +47 -0
- package/dist-es/commands/ListTemplateSharesCommand.js +47 -0
- package/dist-es/commands/UpdateReviewTemplateAnswerCommand.js +47 -0
- package/dist-es/commands/UpdateReviewTemplateCommand.js +47 -0
- package/dist-es/commands/UpdateReviewTemplateLensReviewCommand.js +47 -0
- package/dist-es/commands/UpgradeReviewTemplateLensReviewCommand.js +47 -0
- package/dist-es/commands/index.js +14 -0
- package/dist-es/models/models_0.js +13 -0
- package/dist-es/pagination/ListReviewTemplateAnswersPaginator.js +25 -0
- package/dist-es/pagination/ListReviewTemplatesPaginator.js +25 -0
- package/dist-es/pagination/ListTemplateSharesPaginator.js +25 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_restJson1.js +1065 -48
- package/dist-types/WellArchitected.d.ts +98 -0
- package/dist-types/WellArchitectedClient.d.ts +18 -2
- package/dist-types/commands/CreateReviewTemplateCommand.d.ts +114 -0
- package/dist-types/commands/CreateTemplateShareCommand.d.ts +111 -0
- package/dist-types/commands/CreateWorkloadCommand.d.ts +26 -0
- package/dist-types/commands/DeleteReviewTemplateCommand.d.ts +94 -0
- package/dist-types/commands/DeleteTemplateShareCommand.d.ts +94 -0
- package/dist-types/commands/GetReviewTemplateAnswerCommand.d.ts +141 -0
- package/dist-types/commands/GetReviewTemplateCommand.d.ts +106 -0
- package/dist-types/commands/GetReviewTemplateLensReviewCommand.d.ts +112 -0
- package/dist-types/commands/ListNotificationsCommand.d.ts +3 -0
- package/dist-types/commands/ListReviewTemplateAnswersCommand.d.ts +141 -0
- package/dist-types/commands/ListReviewTemplatesCommand.d.ts +99 -0
- package/dist-types/commands/ListShareInvitationsCommand.d.ts +10 -3
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/ListTemplateSharesCommand.d.ts +101 -0
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateReviewTemplateAnswerCommand.d.ts +157 -0
- package/dist-types/commands/UpdateReviewTemplateCommand.d.ts +118 -0
- package/dist-types/commands/UpdateReviewTemplateLensReviewCommand.d.ts +119 -0
- package/dist-types/commands/UpdateShareInvitationCommand.d.ts +2 -1
- package/dist-types/commands/UpgradeReviewTemplateLensReviewCommand.d.ts +91 -0
- package/dist-types/commands/index.d.ts +14 -0
- package/dist-types/models/models_0.d.ts +1206 -103
- package/dist-types/pagination/ListReviewTemplateAnswersPaginator.d.ts +7 -0
- package/dist-types/pagination/ListReviewTemplatesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListTemplateSharesPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +126 -0
- package/dist-types/ts3.4/WellArchitected.d.ts +238 -0
- package/dist-types/ts3.4/WellArchitectedClient.d.ts +86 -2
- package/dist-types/ts3.4/commands/CreateReviewTemplateCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/CreateTemplateShareCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DeleteReviewTemplateCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/DeleteTemplateShareCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/GetReviewTemplateAnswerCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetReviewTemplateCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetReviewTemplateLensReviewCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListReviewTemplateAnswersCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListReviewTemplatesCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListTemplateSharesCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/UpdateReviewTemplateAnswerCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/UpdateReviewTemplateCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/UpdateReviewTemplateLensReviewCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/UpgradeReviewTemplateLensReviewCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +14 -0
- package/dist-types/ts3.4/models/models_0.d.ts +227 -0
- package/dist-types/ts3.4/pagination/ListReviewTemplateAnswersPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListReviewTemplatesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListTemplateSharesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +168 -0
- package/package.json +31 -31
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.de_UpgradeProfileVersionCommand = exports.de_UpgradeLensReviewCommand = exports.de_UpdateWorkloadShareCommand = exports.de_UpdateWorkloadCommand = exports.de_UpdateShareInvitationCommand = exports.de_UpdateProfileCommand = exports.de_UpdateLensReviewCommand = exports.de_UpdateGlobalSettingsCommand = exports.de_UpdateAnswerCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListWorkloadSharesCommand = void 0;
|
|
3
|
+
exports.se_ListReviewTemplatesCommand = exports.se_ListReviewTemplateAnswersCommand = exports.se_ListProfileSharesCommand = exports.se_ListProfilesCommand = exports.se_ListProfileNotificationsCommand = exports.se_ListNotificationsCommand = exports.se_ListMilestonesCommand = exports.se_ListLensSharesCommand = exports.se_ListLensReviewsCommand = exports.se_ListLensReviewImprovementsCommand = exports.se_ListLensesCommand = exports.se_ListCheckSummariesCommand = exports.se_ListCheckDetailsCommand = exports.se_ListAnswersCommand = exports.se_ImportLensCommand = exports.se_GetWorkloadCommand = exports.se_GetReviewTemplateLensReviewCommand = exports.se_GetReviewTemplateAnswerCommand = exports.se_GetReviewTemplateCommand = exports.se_GetProfileTemplateCommand = exports.se_GetProfileCommand = exports.se_GetMilestoneCommand = exports.se_GetLensVersionDifferenceCommand = exports.se_GetLensReviewReportCommand = exports.se_GetLensReviewCommand = exports.se_GetLensCommand = exports.se_GetConsolidatedReportCommand = exports.se_GetAnswerCommand = exports.se_ExportLensCommand = exports.se_DisassociateProfilesCommand = exports.se_DisassociateLensesCommand = exports.se_DeleteWorkloadShareCommand = exports.se_DeleteWorkloadCommand = exports.se_DeleteTemplateShareCommand = exports.se_DeleteReviewTemplateCommand = exports.se_DeleteProfileShareCommand = exports.se_DeleteProfileCommand = exports.se_DeleteLensShareCommand = exports.se_DeleteLensCommand = exports.se_CreateWorkloadShareCommand = exports.se_CreateWorkloadCommand = exports.se_CreateTemplateShareCommand = exports.se_CreateReviewTemplateCommand = exports.se_CreateProfileShareCommand = exports.se_CreateProfileCommand = exports.se_CreateMilestoneCommand = exports.se_CreateLensVersionCommand = exports.se_CreateLensShareCommand = exports.se_AssociateProfilesCommand = exports.se_AssociateLensesCommand = void 0;
|
|
4
|
+
exports.de_GetProfileCommand = exports.de_GetMilestoneCommand = exports.de_GetLensVersionDifferenceCommand = exports.de_GetLensReviewReportCommand = exports.de_GetLensReviewCommand = exports.de_GetLensCommand = exports.de_GetConsolidatedReportCommand = exports.de_GetAnswerCommand = exports.de_ExportLensCommand = exports.de_DisassociateProfilesCommand = exports.de_DisassociateLensesCommand = exports.de_DeleteWorkloadShareCommand = exports.de_DeleteWorkloadCommand = exports.de_DeleteTemplateShareCommand = exports.de_DeleteReviewTemplateCommand = exports.de_DeleteProfileShareCommand = exports.de_DeleteProfileCommand = exports.de_DeleteLensShareCommand = exports.de_DeleteLensCommand = exports.de_CreateWorkloadShareCommand = exports.de_CreateWorkloadCommand = exports.de_CreateTemplateShareCommand = exports.de_CreateReviewTemplateCommand = exports.de_CreateProfileShareCommand = exports.de_CreateProfileCommand = exports.de_CreateMilestoneCommand = exports.de_CreateLensVersionCommand = exports.de_CreateLensShareCommand = exports.de_AssociateProfilesCommand = exports.de_AssociateLensesCommand = exports.se_UpgradeReviewTemplateLensReviewCommand = exports.se_UpgradeProfileVersionCommand = exports.se_UpgradeLensReviewCommand = exports.se_UpdateWorkloadShareCommand = exports.se_UpdateWorkloadCommand = exports.se_UpdateShareInvitationCommand = exports.se_UpdateReviewTemplateLensReviewCommand = exports.se_UpdateReviewTemplateAnswerCommand = exports.se_UpdateReviewTemplateCommand = exports.se_UpdateProfileCommand = exports.se_UpdateLensReviewCommand = exports.se_UpdateGlobalSettingsCommand = exports.se_UpdateAnswerCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ListWorkloadSharesCommand = exports.se_ListWorkloadsCommand = exports.se_ListTemplateSharesCommand = exports.se_ListTagsForResourceCommand = exports.se_ListShareInvitationsCommand = void 0;
|
|
5
|
+
exports.de_UpgradeReviewTemplateLensReviewCommand = exports.de_UpgradeProfileVersionCommand = exports.de_UpgradeLensReviewCommand = exports.de_UpdateWorkloadShareCommand = exports.de_UpdateWorkloadCommand = exports.de_UpdateShareInvitationCommand = exports.de_UpdateReviewTemplateLensReviewCommand = exports.de_UpdateReviewTemplateAnswerCommand = exports.de_UpdateReviewTemplateCommand = exports.de_UpdateProfileCommand = exports.de_UpdateLensReviewCommand = exports.de_UpdateGlobalSettingsCommand = exports.de_UpdateAnswerCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListWorkloadSharesCommand = exports.de_ListWorkloadsCommand = exports.de_ListTemplateSharesCommand = exports.de_ListTagsForResourceCommand = exports.de_ListShareInvitationsCommand = exports.de_ListReviewTemplatesCommand = exports.de_ListReviewTemplateAnswersCommand = exports.de_ListProfileSharesCommand = exports.de_ListProfilesCommand = exports.de_ListProfileNotificationsCommand = exports.de_ListNotificationsCommand = exports.de_ListMilestonesCommand = exports.de_ListLensSharesCommand = exports.de_ListLensReviewsCommand = exports.de_ListLensReviewImprovementsCommand = exports.de_ListLensesCommand = exports.de_ListCheckSummariesCommand = exports.de_ListCheckDetailsCommand = exports.de_ListAnswersCommand = exports.de_ImportLensCommand = exports.de_GetWorkloadCommand = exports.de_GetReviewTemplateLensReviewCommand = exports.de_GetReviewTemplateAnswerCommand = exports.de_GetReviewTemplateCommand = exports.de_GetProfileTemplateCommand = void 0;
|
|
6
6
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
7
7
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
8
8
|
const uuid_1 = require("uuid");
|
|
@@ -170,6 +170,55 @@ const se_CreateProfileShareCommand = async (input, context) => {
|
|
|
170
170
|
});
|
|
171
171
|
};
|
|
172
172
|
exports.se_CreateProfileShareCommand = se_CreateProfileShareCommand;
|
|
173
|
+
const se_CreateReviewTemplateCommand = async (input, context) => {
|
|
174
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
175
|
+
const headers = {
|
|
176
|
+
"content-type": "application/json",
|
|
177
|
+
};
|
|
178
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/reviewTemplates";
|
|
179
|
+
let body;
|
|
180
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
181
|
+
ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
182
|
+
Description: [],
|
|
183
|
+
Lenses: (_) => (0, smithy_client_1._json)(_),
|
|
184
|
+
Notes: [],
|
|
185
|
+
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
186
|
+
TemplateName: [],
|
|
187
|
+
}));
|
|
188
|
+
return new protocol_http_1.HttpRequest({
|
|
189
|
+
protocol,
|
|
190
|
+
hostname,
|
|
191
|
+
port,
|
|
192
|
+
method: "POST",
|
|
193
|
+
headers,
|
|
194
|
+
path: resolvedPath,
|
|
195
|
+
body,
|
|
196
|
+
});
|
|
197
|
+
};
|
|
198
|
+
exports.se_CreateReviewTemplateCommand = se_CreateReviewTemplateCommand;
|
|
199
|
+
const se_CreateTemplateShareCommand = async (input, context) => {
|
|
200
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
201
|
+
const headers = {
|
|
202
|
+
"content-type": "application/json",
|
|
203
|
+
};
|
|
204
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/templates/shares/{TemplateArn}";
|
|
205
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
|
|
206
|
+
let body;
|
|
207
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
208
|
+
ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
209
|
+
SharedWith: [],
|
|
210
|
+
}));
|
|
211
|
+
return new protocol_http_1.HttpRequest({
|
|
212
|
+
protocol,
|
|
213
|
+
hostname,
|
|
214
|
+
port,
|
|
215
|
+
method: "POST",
|
|
216
|
+
headers,
|
|
217
|
+
path: resolvedPath,
|
|
218
|
+
body,
|
|
219
|
+
});
|
|
220
|
+
};
|
|
221
|
+
exports.se_CreateTemplateShareCommand = se_CreateTemplateShareCommand;
|
|
173
222
|
const se_CreateWorkloadCommand = async (input, context) => {
|
|
174
223
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
175
224
|
const headers = {
|
|
@@ -194,6 +243,7 @@ const se_CreateWorkloadCommand = async (input, context) => {
|
|
|
194
243
|
PillarPriorities: (_) => (0, smithy_client_1._json)(_),
|
|
195
244
|
ProfileArns: (_) => (0, smithy_client_1._json)(_),
|
|
196
245
|
ReviewOwner: [],
|
|
246
|
+
ReviewTemplateArns: (_) => (0, smithy_client_1._json)(_),
|
|
197
247
|
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
198
248
|
WorkloadName: [],
|
|
199
249
|
}));
|
|
@@ -319,6 +369,49 @@ const se_DeleteProfileShareCommand = async (input, context) => {
|
|
|
319
369
|
});
|
|
320
370
|
};
|
|
321
371
|
exports.se_DeleteProfileShareCommand = se_DeleteProfileShareCommand;
|
|
372
|
+
const se_DeleteReviewTemplateCommand = async (input, context) => {
|
|
373
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
374
|
+
const headers = {};
|
|
375
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/reviewTemplates/{TemplateArn}";
|
|
376
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
|
|
377
|
+
const query = (0, smithy_client_1.map)({
|
|
378
|
+
ClientRequestToken: [, (0, smithy_client_1.expectNonNull)(input.ClientRequestToken, `ClientRequestToken`)],
|
|
379
|
+
});
|
|
380
|
+
let body;
|
|
381
|
+
return new protocol_http_1.HttpRequest({
|
|
382
|
+
protocol,
|
|
383
|
+
hostname,
|
|
384
|
+
port,
|
|
385
|
+
method: "DELETE",
|
|
386
|
+
headers,
|
|
387
|
+
path: resolvedPath,
|
|
388
|
+
query,
|
|
389
|
+
body,
|
|
390
|
+
});
|
|
391
|
+
};
|
|
392
|
+
exports.se_DeleteReviewTemplateCommand = se_DeleteReviewTemplateCommand;
|
|
393
|
+
const se_DeleteTemplateShareCommand = async (input, context) => {
|
|
394
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
395
|
+
const headers = {};
|
|
396
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/templates/shares/{TemplateArn}/{ShareId}";
|
|
397
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ShareId", () => input.ShareId, "{ShareId}", false);
|
|
398
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
|
|
399
|
+
const query = (0, smithy_client_1.map)({
|
|
400
|
+
ClientRequestToken: [, (0, smithy_client_1.expectNonNull)(input.ClientRequestToken, `ClientRequestToken`)],
|
|
401
|
+
});
|
|
402
|
+
let body;
|
|
403
|
+
return new protocol_http_1.HttpRequest({
|
|
404
|
+
protocol,
|
|
405
|
+
hostname,
|
|
406
|
+
port,
|
|
407
|
+
method: "DELETE",
|
|
408
|
+
headers,
|
|
409
|
+
path: resolvedPath,
|
|
410
|
+
query,
|
|
411
|
+
body,
|
|
412
|
+
});
|
|
413
|
+
};
|
|
414
|
+
exports.se_DeleteTemplateShareCommand = se_DeleteTemplateShareCommand;
|
|
322
415
|
const se_DeleteWorkloadCommand = async (input, context) => {
|
|
323
416
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
324
417
|
const headers = {};
|
|
@@ -627,6 +720,62 @@ const se_GetProfileTemplateCommand = async (input, context) => {
|
|
|
627
720
|
});
|
|
628
721
|
};
|
|
629
722
|
exports.se_GetProfileTemplateCommand = se_GetProfileTemplateCommand;
|
|
723
|
+
const se_GetReviewTemplateCommand = async (input, context) => {
|
|
724
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
725
|
+
const headers = {};
|
|
726
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/reviewTemplates/{TemplateArn}";
|
|
727
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
|
|
728
|
+
let body;
|
|
729
|
+
return new protocol_http_1.HttpRequest({
|
|
730
|
+
protocol,
|
|
731
|
+
hostname,
|
|
732
|
+
port,
|
|
733
|
+
method: "GET",
|
|
734
|
+
headers,
|
|
735
|
+
path: resolvedPath,
|
|
736
|
+
body,
|
|
737
|
+
});
|
|
738
|
+
};
|
|
739
|
+
exports.se_GetReviewTemplateCommand = se_GetReviewTemplateCommand;
|
|
740
|
+
const se_GetReviewTemplateAnswerCommand = async (input, context) => {
|
|
741
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
742
|
+
const headers = {};
|
|
743
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
744
|
+
"/reviewTemplates/{TemplateArn}/lensReviews/{LensAlias}/answers/{QuestionId}";
|
|
745
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
|
|
746
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LensAlias", () => input.LensAlias, "{LensAlias}", false);
|
|
747
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "QuestionId", () => input.QuestionId, "{QuestionId}", false);
|
|
748
|
+
let body;
|
|
749
|
+
return new protocol_http_1.HttpRequest({
|
|
750
|
+
protocol,
|
|
751
|
+
hostname,
|
|
752
|
+
port,
|
|
753
|
+
method: "GET",
|
|
754
|
+
headers,
|
|
755
|
+
path: resolvedPath,
|
|
756
|
+
body,
|
|
757
|
+
});
|
|
758
|
+
};
|
|
759
|
+
exports.se_GetReviewTemplateAnswerCommand = se_GetReviewTemplateAnswerCommand;
|
|
760
|
+
const se_GetReviewTemplateLensReviewCommand = async (input, context) => {
|
|
761
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
762
|
+
const headers = {};
|
|
763
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
764
|
+
"/reviewTemplates/{TemplateArn}/lensReviews/{LensAlias}";
|
|
765
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
|
|
766
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LensAlias", () => input.LensAlias, "{LensAlias}", false);
|
|
767
|
+
let body;
|
|
768
|
+
return new protocol_http_1.HttpRequest({
|
|
769
|
+
protocol,
|
|
770
|
+
hostname,
|
|
771
|
+
port,
|
|
772
|
+
method: "GET",
|
|
773
|
+
headers,
|
|
774
|
+
path: resolvedPath,
|
|
775
|
+
body,
|
|
776
|
+
});
|
|
777
|
+
};
|
|
778
|
+
exports.se_GetReviewTemplateLensReviewCommand = se_GetReviewTemplateLensReviewCommand;
|
|
630
779
|
const se_GetWorkloadCommand = async (input, context) => {
|
|
631
780
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
632
781
|
const headers = {};
|
|
@@ -881,6 +1030,7 @@ const se_ListNotificationsCommand = async (input, context) => {
|
|
|
881
1030
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
882
1031
|
MaxResults: [],
|
|
883
1032
|
NextToken: [],
|
|
1033
|
+
ResourceArn: [],
|
|
884
1034
|
WorkloadId: [],
|
|
885
1035
|
}));
|
|
886
1036
|
return new protocol_http_1.HttpRequest({
|
|
@@ -963,6 +1113,52 @@ const se_ListProfileSharesCommand = async (input, context) => {
|
|
|
963
1113
|
});
|
|
964
1114
|
};
|
|
965
1115
|
exports.se_ListProfileSharesCommand = se_ListProfileSharesCommand;
|
|
1116
|
+
const se_ListReviewTemplateAnswersCommand = async (input, context) => {
|
|
1117
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1118
|
+
const headers = {};
|
|
1119
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1120
|
+
"/reviewTemplates/{TemplateArn}/lensReviews/{LensAlias}/answers";
|
|
1121
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
|
|
1122
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LensAlias", () => input.LensAlias, "{LensAlias}", false);
|
|
1123
|
+
const query = (0, smithy_client_1.map)({
|
|
1124
|
+
PillarId: [, input.PillarId],
|
|
1125
|
+
NextToken: [, input.NextToken],
|
|
1126
|
+
MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
1127
|
+
});
|
|
1128
|
+
let body;
|
|
1129
|
+
return new protocol_http_1.HttpRequest({
|
|
1130
|
+
protocol,
|
|
1131
|
+
hostname,
|
|
1132
|
+
port,
|
|
1133
|
+
method: "GET",
|
|
1134
|
+
headers,
|
|
1135
|
+
path: resolvedPath,
|
|
1136
|
+
query,
|
|
1137
|
+
body,
|
|
1138
|
+
});
|
|
1139
|
+
};
|
|
1140
|
+
exports.se_ListReviewTemplateAnswersCommand = se_ListReviewTemplateAnswersCommand;
|
|
1141
|
+
const se_ListReviewTemplatesCommand = async (input, context) => {
|
|
1142
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1143
|
+
const headers = {};
|
|
1144
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/reviewTemplates";
|
|
1145
|
+
const query = (0, smithy_client_1.map)({
|
|
1146
|
+
NextToken: [, input.NextToken],
|
|
1147
|
+
MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
1148
|
+
});
|
|
1149
|
+
let body;
|
|
1150
|
+
return new protocol_http_1.HttpRequest({
|
|
1151
|
+
protocol,
|
|
1152
|
+
hostname,
|
|
1153
|
+
port,
|
|
1154
|
+
method: "GET",
|
|
1155
|
+
headers,
|
|
1156
|
+
path: resolvedPath,
|
|
1157
|
+
query,
|
|
1158
|
+
body,
|
|
1159
|
+
});
|
|
1160
|
+
};
|
|
1161
|
+
exports.se_ListReviewTemplatesCommand = se_ListReviewTemplatesCommand;
|
|
966
1162
|
const se_ListShareInvitationsCommand = async (input, context) => {
|
|
967
1163
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
968
1164
|
const headers = {};
|
|
@@ -974,6 +1170,7 @@ const se_ListShareInvitationsCommand = async (input, context) => {
|
|
|
974
1170
|
NextToken: [, input.NextToken],
|
|
975
1171
|
MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
976
1172
|
ProfileNamePrefix: [, input.ProfileNamePrefix],
|
|
1173
|
+
TemplateNamePrefix: [, input.TemplateNamePrefix],
|
|
977
1174
|
});
|
|
978
1175
|
let body;
|
|
979
1176
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1005,6 +1202,30 @@ const se_ListTagsForResourceCommand = async (input, context) => {
|
|
|
1005
1202
|
});
|
|
1006
1203
|
};
|
|
1007
1204
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
1205
|
+
const se_ListTemplateSharesCommand = async (input, context) => {
|
|
1206
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1207
|
+
const headers = {};
|
|
1208
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/templates/shares/{TemplateArn}";
|
|
1209
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
|
|
1210
|
+
const query = (0, smithy_client_1.map)({
|
|
1211
|
+
SharedWithPrefix: [, input.SharedWithPrefix],
|
|
1212
|
+
NextToken: [, input.NextToken],
|
|
1213
|
+
MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
1214
|
+
Status: [, input.Status],
|
|
1215
|
+
});
|
|
1216
|
+
let body;
|
|
1217
|
+
return new protocol_http_1.HttpRequest({
|
|
1218
|
+
protocol,
|
|
1219
|
+
hostname,
|
|
1220
|
+
port,
|
|
1221
|
+
method: "GET",
|
|
1222
|
+
headers,
|
|
1223
|
+
path: resolvedPath,
|
|
1224
|
+
query,
|
|
1225
|
+
body,
|
|
1226
|
+
});
|
|
1227
|
+
};
|
|
1228
|
+
exports.se_ListTemplateSharesCommand = se_ListTemplateSharesCommand;
|
|
1008
1229
|
const se_ListWorkloadsCommand = async (input, context) => {
|
|
1009
1230
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1010
1231
|
const headers = {
|
|
@@ -1197,6 +1418,86 @@ const se_UpdateProfileCommand = async (input, context) => {
|
|
|
1197
1418
|
});
|
|
1198
1419
|
};
|
|
1199
1420
|
exports.se_UpdateProfileCommand = se_UpdateProfileCommand;
|
|
1421
|
+
const se_UpdateReviewTemplateCommand = async (input, context) => {
|
|
1422
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1423
|
+
const headers = {
|
|
1424
|
+
"content-type": "application/json",
|
|
1425
|
+
};
|
|
1426
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/reviewTemplates/{TemplateArn}";
|
|
1427
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
|
|
1428
|
+
let body;
|
|
1429
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1430
|
+
Description: [],
|
|
1431
|
+
LensesToAssociate: (_) => (0, smithy_client_1._json)(_),
|
|
1432
|
+
LensesToDisassociate: (_) => (0, smithy_client_1._json)(_),
|
|
1433
|
+
Notes: [],
|
|
1434
|
+
TemplateName: [],
|
|
1435
|
+
}));
|
|
1436
|
+
return new protocol_http_1.HttpRequest({
|
|
1437
|
+
protocol,
|
|
1438
|
+
hostname,
|
|
1439
|
+
port,
|
|
1440
|
+
method: "PATCH",
|
|
1441
|
+
headers,
|
|
1442
|
+
path: resolvedPath,
|
|
1443
|
+
body,
|
|
1444
|
+
});
|
|
1445
|
+
};
|
|
1446
|
+
exports.se_UpdateReviewTemplateCommand = se_UpdateReviewTemplateCommand;
|
|
1447
|
+
const se_UpdateReviewTemplateAnswerCommand = async (input, context) => {
|
|
1448
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1449
|
+
const headers = {
|
|
1450
|
+
"content-type": "application/json",
|
|
1451
|
+
};
|
|
1452
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1453
|
+
"/reviewTemplates/{TemplateArn}/lensReviews/{LensAlias}/answers/{QuestionId}";
|
|
1454
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
|
|
1455
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LensAlias", () => input.LensAlias, "{LensAlias}", false);
|
|
1456
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "QuestionId", () => input.QuestionId, "{QuestionId}", false);
|
|
1457
|
+
let body;
|
|
1458
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1459
|
+
ChoiceUpdates: (_) => (0, smithy_client_1._json)(_),
|
|
1460
|
+
IsApplicable: [],
|
|
1461
|
+
Notes: [],
|
|
1462
|
+
Reason: [],
|
|
1463
|
+
SelectedChoices: (_) => (0, smithy_client_1._json)(_),
|
|
1464
|
+
}));
|
|
1465
|
+
return new protocol_http_1.HttpRequest({
|
|
1466
|
+
protocol,
|
|
1467
|
+
hostname,
|
|
1468
|
+
port,
|
|
1469
|
+
method: "PATCH",
|
|
1470
|
+
headers,
|
|
1471
|
+
path: resolvedPath,
|
|
1472
|
+
body,
|
|
1473
|
+
});
|
|
1474
|
+
};
|
|
1475
|
+
exports.se_UpdateReviewTemplateAnswerCommand = se_UpdateReviewTemplateAnswerCommand;
|
|
1476
|
+
const se_UpdateReviewTemplateLensReviewCommand = async (input, context) => {
|
|
1477
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1478
|
+
const headers = {
|
|
1479
|
+
"content-type": "application/json",
|
|
1480
|
+
};
|
|
1481
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1482
|
+
"/reviewTemplates/{TemplateArn}/lensReviews/{LensAlias}";
|
|
1483
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
|
|
1484
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LensAlias", () => input.LensAlias, "{LensAlias}", false);
|
|
1485
|
+
let body;
|
|
1486
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1487
|
+
LensNotes: [],
|
|
1488
|
+
PillarNotes: (_) => (0, smithy_client_1._json)(_),
|
|
1489
|
+
}));
|
|
1490
|
+
return new protocol_http_1.HttpRequest({
|
|
1491
|
+
protocol,
|
|
1492
|
+
hostname,
|
|
1493
|
+
port,
|
|
1494
|
+
method: "PATCH",
|
|
1495
|
+
headers,
|
|
1496
|
+
path: resolvedPath,
|
|
1497
|
+
body,
|
|
1498
|
+
});
|
|
1499
|
+
};
|
|
1500
|
+
exports.se_UpdateReviewTemplateLensReviewCommand = se_UpdateReviewTemplateLensReviewCommand;
|
|
1200
1501
|
const se_UpdateShareInvitationCommand = async (input, context) => {
|
|
1201
1502
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1202
1503
|
const headers = {
|
|
@@ -1329,18 +1630,42 @@ const se_UpgradeProfileVersionCommand = async (input, context) => {
|
|
|
1329
1630
|
});
|
|
1330
1631
|
};
|
|
1331
1632
|
exports.se_UpgradeProfileVersionCommand = se_UpgradeProfileVersionCommand;
|
|
1332
|
-
const
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1633
|
+
const se_UpgradeReviewTemplateLensReviewCommand = async (input, context) => {
|
|
1634
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1635
|
+
const headers = {
|
|
1636
|
+
"content-type": "application/json",
|
|
1637
|
+
};
|
|
1638
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1639
|
+
"/reviewTemplates/{TemplateArn}/lensReviews/{LensAlias}/upgrade";
|
|
1640
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
|
|
1641
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LensAlias", () => input.LensAlias, "{LensAlias}", false);
|
|
1642
|
+
let body;
|
|
1643
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1644
|
+
ClientRequestToken: [],
|
|
1645
|
+
}));
|
|
1646
|
+
return new protocol_http_1.HttpRequest({
|
|
1647
|
+
protocol,
|
|
1648
|
+
hostname,
|
|
1649
|
+
port,
|
|
1650
|
+
method: "PUT",
|
|
1651
|
+
headers,
|
|
1652
|
+
path: resolvedPath,
|
|
1653
|
+
body,
|
|
1654
|
+
});
|
|
1655
|
+
};
|
|
1656
|
+
exports.se_UpgradeReviewTemplateLensReviewCommand = se_UpgradeReviewTemplateLensReviewCommand;
|
|
1657
|
+
const de_AssociateLensesCommand = async (output, context) => {
|
|
1658
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1659
|
+
return de_AssociateLensesCommandError(output, context);
|
|
1660
|
+
}
|
|
1661
|
+
const contents = (0, smithy_client_1.map)({
|
|
1662
|
+
$metadata: deserializeMetadata(output),
|
|
1663
|
+
});
|
|
1664
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1665
|
+
return contents;
|
|
1666
|
+
};
|
|
1667
|
+
exports.de_AssociateLensesCommand = de_AssociateLensesCommand;
|
|
1668
|
+
const de_AssociateLensesCommandError = async (output, context) => {
|
|
1344
1669
|
const parsedOutput = {
|
|
1345
1670
|
...output,
|
|
1346
1671
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1680,6 +2005,111 @@ const de_CreateProfileShareCommandError = async (output, context) => {
|
|
|
1680
2005
|
});
|
|
1681
2006
|
}
|
|
1682
2007
|
};
|
|
2008
|
+
const de_CreateReviewTemplateCommand = async (output, context) => {
|
|
2009
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2010
|
+
return de_CreateReviewTemplateCommandError(output, context);
|
|
2011
|
+
}
|
|
2012
|
+
const contents = (0, smithy_client_1.map)({
|
|
2013
|
+
$metadata: deserializeMetadata(output),
|
|
2014
|
+
});
|
|
2015
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2016
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2017
|
+
TemplateArn: smithy_client_1.expectString,
|
|
2018
|
+
});
|
|
2019
|
+
Object.assign(contents, doc);
|
|
2020
|
+
return contents;
|
|
2021
|
+
};
|
|
2022
|
+
exports.de_CreateReviewTemplateCommand = de_CreateReviewTemplateCommand;
|
|
2023
|
+
const de_CreateReviewTemplateCommandError = async (output, context) => {
|
|
2024
|
+
const parsedOutput = {
|
|
2025
|
+
...output,
|
|
2026
|
+
body: await parseErrorBody(output.body, context),
|
|
2027
|
+
};
|
|
2028
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2029
|
+
switch (errorCode) {
|
|
2030
|
+
case "AccessDeniedException":
|
|
2031
|
+
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
2032
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2033
|
+
case "ConflictException":
|
|
2034
|
+
case "com.amazonaws.wellarchitected#ConflictException":
|
|
2035
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2036
|
+
case "InternalServerException":
|
|
2037
|
+
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
2038
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2039
|
+
case "ResourceNotFoundException":
|
|
2040
|
+
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
2041
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2042
|
+
case "ServiceQuotaExceededException":
|
|
2043
|
+
case "com.amazonaws.wellarchitected#ServiceQuotaExceededException":
|
|
2044
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2045
|
+
case "ThrottlingException":
|
|
2046
|
+
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
2047
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2048
|
+
case "ValidationException":
|
|
2049
|
+
case "com.amazonaws.wellarchitected#ValidationException":
|
|
2050
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2051
|
+
default:
|
|
2052
|
+
const parsedBody = parsedOutput.body;
|
|
2053
|
+
return throwDefaultError({
|
|
2054
|
+
output,
|
|
2055
|
+
parsedBody,
|
|
2056
|
+
errorCode,
|
|
2057
|
+
});
|
|
2058
|
+
}
|
|
2059
|
+
};
|
|
2060
|
+
const de_CreateTemplateShareCommand = async (output, context) => {
|
|
2061
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2062
|
+
return de_CreateTemplateShareCommandError(output, context);
|
|
2063
|
+
}
|
|
2064
|
+
const contents = (0, smithy_client_1.map)({
|
|
2065
|
+
$metadata: deserializeMetadata(output),
|
|
2066
|
+
});
|
|
2067
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2068
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2069
|
+
ShareId: smithy_client_1.expectString,
|
|
2070
|
+
TemplateArn: smithy_client_1.expectString,
|
|
2071
|
+
});
|
|
2072
|
+
Object.assign(contents, doc);
|
|
2073
|
+
return contents;
|
|
2074
|
+
};
|
|
2075
|
+
exports.de_CreateTemplateShareCommand = de_CreateTemplateShareCommand;
|
|
2076
|
+
const de_CreateTemplateShareCommandError = async (output, context) => {
|
|
2077
|
+
const parsedOutput = {
|
|
2078
|
+
...output,
|
|
2079
|
+
body: await parseErrorBody(output.body, context),
|
|
2080
|
+
};
|
|
2081
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2082
|
+
switch (errorCode) {
|
|
2083
|
+
case "AccessDeniedException":
|
|
2084
|
+
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
2085
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2086
|
+
case "ConflictException":
|
|
2087
|
+
case "com.amazonaws.wellarchitected#ConflictException":
|
|
2088
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2089
|
+
case "InternalServerException":
|
|
2090
|
+
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
2091
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2092
|
+
case "ResourceNotFoundException":
|
|
2093
|
+
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
2094
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2095
|
+
case "ServiceQuotaExceededException":
|
|
2096
|
+
case "com.amazonaws.wellarchitected#ServiceQuotaExceededException":
|
|
2097
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2098
|
+
case "ThrottlingException":
|
|
2099
|
+
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
2100
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2101
|
+
case "ValidationException":
|
|
2102
|
+
case "com.amazonaws.wellarchitected#ValidationException":
|
|
2103
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2104
|
+
default:
|
|
2105
|
+
const parsedBody = parsedOutput.body;
|
|
2106
|
+
return throwDefaultError({
|
|
2107
|
+
output,
|
|
2108
|
+
parsedBody,
|
|
2109
|
+
errorCode,
|
|
2110
|
+
});
|
|
2111
|
+
}
|
|
2112
|
+
};
|
|
1683
2113
|
const de_CreateWorkloadCommand = async (output, context) => {
|
|
1684
2114
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1685
2115
|
return de_CreateWorkloadCommandError(output, context);
|
|
@@ -1966,6 +2396,96 @@ const de_DeleteProfileShareCommandError = async (output, context) => {
|
|
|
1966
2396
|
});
|
|
1967
2397
|
}
|
|
1968
2398
|
};
|
|
2399
|
+
const de_DeleteReviewTemplateCommand = async (output, context) => {
|
|
2400
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2401
|
+
return de_DeleteReviewTemplateCommandError(output, context);
|
|
2402
|
+
}
|
|
2403
|
+
const contents = (0, smithy_client_1.map)({
|
|
2404
|
+
$metadata: deserializeMetadata(output),
|
|
2405
|
+
});
|
|
2406
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2407
|
+
return contents;
|
|
2408
|
+
};
|
|
2409
|
+
exports.de_DeleteReviewTemplateCommand = de_DeleteReviewTemplateCommand;
|
|
2410
|
+
const de_DeleteReviewTemplateCommandError = async (output, context) => {
|
|
2411
|
+
const parsedOutput = {
|
|
2412
|
+
...output,
|
|
2413
|
+
body: await parseErrorBody(output.body, context),
|
|
2414
|
+
};
|
|
2415
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2416
|
+
switch (errorCode) {
|
|
2417
|
+
case "AccessDeniedException":
|
|
2418
|
+
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
2419
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2420
|
+
case "ConflictException":
|
|
2421
|
+
case "com.amazonaws.wellarchitected#ConflictException":
|
|
2422
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2423
|
+
case "InternalServerException":
|
|
2424
|
+
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
2425
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2426
|
+
case "ResourceNotFoundException":
|
|
2427
|
+
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
2428
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2429
|
+
case "ThrottlingException":
|
|
2430
|
+
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
2431
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2432
|
+
case "ValidationException":
|
|
2433
|
+
case "com.amazonaws.wellarchitected#ValidationException":
|
|
2434
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2435
|
+
default:
|
|
2436
|
+
const parsedBody = parsedOutput.body;
|
|
2437
|
+
return throwDefaultError({
|
|
2438
|
+
output,
|
|
2439
|
+
parsedBody,
|
|
2440
|
+
errorCode,
|
|
2441
|
+
});
|
|
2442
|
+
}
|
|
2443
|
+
};
|
|
2444
|
+
const de_DeleteTemplateShareCommand = async (output, context) => {
|
|
2445
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2446
|
+
return de_DeleteTemplateShareCommandError(output, context);
|
|
2447
|
+
}
|
|
2448
|
+
const contents = (0, smithy_client_1.map)({
|
|
2449
|
+
$metadata: deserializeMetadata(output),
|
|
2450
|
+
});
|
|
2451
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2452
|
+
return contents;
|
|
2453
|
+
};
|
|
2454
|
+
exports.de_DeleteTemplateShareCommand = de_DeleteTemplateShareCommand;
|
|
2455
|
+
const de_DeleteTemplateShareCommandError = async (output, context) => {
|
|
2456
|
+
const parsedOutput = {
|
|
2457
|
+
...output,
|
|
2458
|
+
body: await parseErrorBody(output.body, context),
|
|
2459
|
+
};
|
|
2460
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2461
|
+
switch (errorCode) {
|
|
2462
|
+
case "AccessDeniedException":
|
|
2463
|
+
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
2464
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2465
|
+
case "ConflictException":
|
|
2466
|
+
case "com.amazonaws.wellarchitected#ConflictException":
|
|
2467
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2468
|
+
case "InternalServerException":
|
|
2469
|
+
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
2470
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2471
|
+
case "ResourceNotFoundException":
|
|
2472
|
+
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
2473
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2474
|
+
case "ThrottlingException":
|
|
2475
|
+
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
2476
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2477
|
+
case "ValidationException":
|
|
2478
|
+
case "com.amazonaws.wellarchitected#ValidationException":
|
|
2479
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2480
|
+
default:
|
|
2481
|
+
const parsedBody = parsedOutput.body;
|
|
2482
|
+
return throwDefaultError({
|
|
2483
|
+
output,
|
|
2484
|
+
parsedBody,
|
|
2485
|
+
errorCode,
|
|
2486
|
+
});
|
|
2487
|
+
}
|
|
2488
|
+
};
|
|
1969
2489
|
const de_DeleteWorkloadCommand = async (output, context) => {
|
|
1970
2490
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1971
2491
|
return de_DeleteWorkloadCommandError(output, context);
|
|
@@ -2622,22 +3142,22 @@ const de_GetProfileTemplateCommandError = async (output, context) => {
|
|
|
2622
3142
|
});
|
|
2623
3143
|
}
|
|
2624
3144
|
};
|
|
2625
|
-
const
|
|
3145
|
+
const de_GetReviewTemplateCommand = async (output, context) => {
|
|
2626
3146
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2627
|
-
return
|
|
3147
|
+
return de_GetReviewTemplateCommandError(output, context);
|
|
2628
3148
|
}
|
|
2629
3149
|
const contents = (0, smithy_client_1.map)({
|
|
2630
3150
|
$metadata: deserializeMetadata(output),
|
|
2631
3151
|
});
|
|
2632
3152
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2633
3153
|
const doc = (0, smithy_client_1.take)(data, {
|
|
2634
|
-
|
|
3154
|
+
ReviewTemplate: (_) => de_ReviewTemplate(_, context),
|
|
2635
3155
|
});
|
|
2636
3156
|
Object.assign(contents, doc);
|
|
2637
3157
|
return contents;
|
|
2638
3158
|
};
|
|
2639
|
-
exports.
|
|
2640
|
-
const
|
|
3159
|
+
exports.de_GetReviewTemplateCommand = de_GetReviewTemplateCommand;
|
|
3160
|
+
const de_GetReviewTemplateCommandError = async (output, context) => {
|
|
2641
3161
|
const parsedOutput = {
|
|
2642
3162
|
...output,
|
|
2643
3163
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2668,23 +3188,24 @@ const de_GetWorkloadCommandError = async (output, context) => {
|
|
|
2668
3188
|
});
|
|
2669
3189
|
}
|
|
2670
3190
|
};
|
|
2671
|
-
const
|
|
3191
|
+
const de_GetReviewTemplateAnswerCommand = async (output, context) => {
|
|
2672
3192
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2673
|
-
return
|
|
3193
|
+
return de_GetReviewTemplateAnswerCommandError(output, context);
|
|
2674
3194
|
}
|
|
2675
3195
|
const contents = (0, smithy_client_1.map)({
|
|
2676
3196
|
$metadata: deserializeMetadata(output),
|
|
2677
3197
|
});
|
|
2678
3198
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2679
3199
|
const doc = (0, smithy_client_1.take)(data, {
|
|
2680
|
-
|
|
2681
|
-
|
|
3200
|
+
Answer: smithy_client_1._json,
|
|
3201
|
+
LensAlias: smithy_client_1.expectString,
|
|
3202
|
+
TemplateArn: smithy_client_1.expectString,
|
|
2682
3203
|
});
|
|
2683
3204
|
Object.assign(contents, doc);
|
|
2684
3205
|
return contents;
|
|
2685
3206
|
};
|
|
2686
|
-
exports.
|
|
2687
|
-
const
|
|
3207
|
+
exports.de_GetReviewTemplateAnswerCommand = de_GetReviewTemplateAnswerCommand;
|
|
3208
|
+
const de_GetReviewTemplateAnswerCommandError = async (output, context) => {
|
|
2688
3209
|
const parsedOutput = {
|
|
2689
3210
|
...output,
|
|
2690
3211
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2694,18 +3215,12 @@ const de_ImportLensCommandError = async (output, context) => {
|
|
|
2694
3215
|
case "AccessDeniedException":
|
|
2695
3216
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
2696
3217
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2697
|
-
case "ConflictException":
|
|
2698
|
-
case "com.amazonaws.wellarchitected#ConflictException":
|
|
2699
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2700
3218
|
case "InternalServerException":
|
|
2701
3219
|
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
2702
3220
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2703
3221
|
case "ResourceNotFoundException":
|
|
2704
3222
|
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
2705
3223
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2706
|
-
case "ServiceQuotaExceededException":
|
|
2707
|
-
case "com.amazonaws.wellarchitected#ServiceQuotaExceededException":
|
|
2708
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2709
3224
|
case "ThrottlingException":
|
|
2710
3225
|
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
2711
3226
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
@@ -2721,27 +3236,23 @@ const de_ImportLensCommandError = async (output, context) => {
|
|
|
2721
3236
|
});
|
|
2722
3237
|
}
|
|
2723
3238
|
};
|
|
2724
|
-
const
|
|
3239
|
+
const de_GetReviewTemplateLensReviewCommand = async (output, context) => {
|
|
2725
3240
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2726
|
-
return
|
|
3241
|
+
return de_GetReviewTemplateLensReviewCommandError(output, context);
|
|
2727
3242
|
}
|
|
2728
3243
|
const contents = (0, smithy_client_1.map)({
|
|
2729
3244
|
$metadata: deserializeMetadata(output),
|
|
2730
3245
|
});
|
|
2731
3246
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2732
3247
|
const doc = (0, smithy_client_1.take)(data, {
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
LensArn: smithy_client_1.expectString,
|
|
2736
|
-
MilestoneNumber: smithy_client_1.expectInt32,
|
|
2737
|
-
NextToken: smithy_client_1.expectString,
|
|
2738
|
-
WorkloadId: smithy_client_1.expectString,
|
|
3248
|
+
LensReview: (_) => de_ReviewTemplateLensReview(_, context),
|
|
3249
|
+
TemplateArn: smithy_client_1.expectString,
|
|
2739
3250
|
});
|
|
2740
3251
|
Object.assign(contents, doc);
|
|
2741
3252
|
return contents;
|
|
2742
3253
|
};
|
|
2743
|
-
exports.
|
|
2744
|
-
const
|
|
3254
|
+
exports.de_GetReviewTemplateLensReviewCommand = de_GetReviewTemplateLensReviewCommand;
|
|
3255
|
+
const de_GetReviewTemplateLensReviewCommandError = async (output, context) => {
|
|
2745
3256
|
const parsedOutput = {
|
|
2746
3257
|
...output,
|
|
2747
3258
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2772,23 +3283,22 @@ const de_ListAnswersCommandError = async (output, context) => {
|
|
|
2772
3283
|
});
|
|
2773
3284
|
}
|
|
2774
3285
|
};
|
|
2775
|
-
const
|
|
3286
|
+
const de_GetWorkloadCommand = async (output, context) => {
|
|
2776
3287
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2777
|
-
return
|
|
3288
|
+
return de_GetWorkloadCommandError(output, context);
|
|
2778
3289
|
}
|
|
2779
3290
|
const contents = (0, smithy_client_1.map)({
|
|
2780
3291
|
$metadata: deserializeMetadata(output),
|
|
2781
3292
|
});
|
|
2782
3293
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2783
3294
|
const doc = (0, smithy_client_1.take)(data, {
|
|
2784
|
-
|
|
2785
|
-
NextToken: smithy_client_1.expectString,
|
|
3295
|
+
Workload: (_) => de_Workload(_, context),
|
|
2786
3296
|
});
|
|
2787
3297
|
Object.assign(contents, doc);
|
|
2788
3298
|
return contents;
|
|
2789
3299
|
};
|
|
2790
|
-
exports.
|
|
2791
|
-
const
|
|
3300
|
+
exports.de_GetWorkloadCommand = de_GetWorkloadCommand;
|
|
3301
|
+
const de_GetWorkloadCommandError = async (output, context) => {
|
|
2792
3302
|
const parsedOutput = {
|
|
2793
3303
|
...output,
|
|
2794
3304
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2819,18 +3329,169 @@ const de_ListCheckDetailsCommandError = async (output, context) => {
|
|
|
2819
3329
|
});
|
|
2820
3330
|
}
|
|
2821
3331
|
};
|
|
2822
|
-
const
|
|
3332
|
+
const de_ImportLensCommand = async (output, context) => {
|
|
2823
3333
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2824
|
-
return
|
|
3334
|
+
return de_ImportLensCommandError(output, context);
|
|
2825
3335
|
}
|
|
2826
3336
|
const contents = (0, smithy_client_1.map)({
|
|
2827
3337
|
$metadata: deserializeMetadata(output),
|
|
2828
3338
|
});
|
|
2829
3339
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2830
3340
|
const doc = (0, smithy_client_1.take)(data, {
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
});
|
|
3341
|
+
LensArn: smithy_client_1.expectString,
|
|
3342
|
+
Status: smithy_client_1.expectString,
|
|
3343
|
+
});
|
|
3344
|
+
Object.assign(contents, doc);
|
|
3345
|
+
return contents;
|
|
3346
|
+
};
|
|
3347
|
+
exports.de_ImportLensCommand = de_ImportLensCommand;
|
|
3348
|
+
const de_ImportLensCommandError = async (output, context) => {
|
|
3349
|
+
const parsedOutput = {
|
|
3350
|
+
...output,
|
|
3351
|
+
body: await parseErrorBody(output.body, context),
|
|
3352
|
+
};
|
|
3353
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3354
|
+
switch (errorCode) {
|
|
3355
|
+
case "AccessDeniedException":
|
|
3356
|
+
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
3357
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3358
|
+
case "ConflictException":
|
|
3359
|
+
case "com.amazonaws.wellarchitected#ConflictException":
|
|
3360
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3361
|
+
case "InternalServerException":
|
|
3362
|
+
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
3363
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3364
|
+
case "ResourceNotFoundException":
|
|
3365
|
+
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
3366
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3367
|
+
case "ServiceQuotaExceededException":
|
|
3368
|
+
case "com.amazonaws.wellarchitected#ServiceQuotaExceededException":
|
|
3369
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3370
|
+
case "ThrottlingException":
|
|
3371
|
+
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
3372
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3373
|
+
case "ValidationException":
|
|
3374
|
+
case "com.amazonaws.wellarchitected#ValidationException":
|
|
3375
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3376
|
+
default:
|
|
3377
|
+
const parsedBody = parsedOutput.body;
|
|
3378
|
+
return throwDefaultError({
|
|
3379
|
+
output,
|
|
3380
|
+
parsedBody,
|
|
3381
|
+
errorCode,
|
|
3382
|
+
});
|
|
3383
|
+
}
|
|
3384
|
+
};
|
|
3385
|
+
const de_ListAnswersCommand = async (output, context) => {
|
|
3386
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3387
|
+
return de_ListAnswersCommandError(output, context);
|
|
3388
|
+
}
|
|
3389
|
+
const contents = (0, smithy_client_1.map)({
|
|
3390
|
+
$metadata: deserializeMetadata(output),
|
|
3391
|
+
});
|
|
3392
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3393
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3394
|
+
AnswerSummaries: smithy_client_1._json,
|
|
3395
|
+
LensAlias: smithy_client_1.expectString,
|
|
3396
|
+
LensArn: smithy_client_1.expectString,
|
|
3397
|
+
MilestoneNumber: smithy_client_1.expectInt32,
|
|
3398
|
+
NextToken: smithy_client_1.expectString,
|
|
3399
|
+
WorkloadId: smithy_client_1.expectString,
|
|
3400
|
+
});
|
|
3401
|
+
Object.assign(contents, doc);
|
|
3402
|
+
return contents;
|
|
3403
|
+
};
|
|
3404
|
+
exports.de_ListAnswersCommand = de_ListAnswersCommand;
|
|
3405
|
+
const de_ListAnswersCommandError = async (output, context) => {
|
|
3406
|
+
const parsedOutput = {
|
|
3407
|
+
...output,
|
|
3408
|
+
body: await parseErrorBody(output.body, context),
|
|
3409
|
+
};
|
|
3410
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3411
|
+
switch (errorCode) {
|
|
3412
|
+
case "AccessDeniedException":
|
|
3413
|
+
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
3414
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3415
|
+
case "InternalServerException":
|
|
3416
|
+
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
3417
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3418
|
+
case "ResourceNotFoundException":
|
|
3419
|
+
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
3420
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3421
|
+
case "ThrottlingException":
|
|
3422
|
+
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
3423
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3424
|
+
case "ValidationException":
|
|
3425
|
+
case "com.amazonaws.wellarchitected#ValidationException":
|
|
3426
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3427
|
+
default:
|
|
3428
|
+
const parsedBody = parsedOutput.body;
|
|
3429
|
+
return throwDefaultError({
|
|
3430
|
+
output,
|
|
3431
|
+
parsedBody,
|
|
3432
|
+
errorCode,
|
|
3433
|
+
});
|
|
3434
|
+
}
|
|
3435
|
+
};
|
|
3436
|
+
const de_ListCheckDetailsCommand = async (output, context) => {
|
|
3437
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3438
|
+
return de_ListCheckDetailsCommandError(output, context);
|
|
3439
|
+
}
|
|
3440
|
+
const contents = (0, smithy_client_1.map)({
|
|
3441
|
+
$metadata: deserializeMetadata(output),
|
|
3442
|
+
});
|
|
3443
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3444
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3445
|
+
CheckDetails: (_) => de_CheckDetails(_, context),
|
|
3446
|
+
NextToken: smithy_client_1.expectString,
|
|
3447
|
+
});
|
|
3448
|
+
Object.assign(contents, doc);
|
|
3449
|
+
return contents;
|
|
3450
|
+
};
|
|
3451
|
+
exports.de_ListCheckDetailsCommand = de_ListCheckDetailsCommand;
|
|
3452
|
+
const de_ListCheckDetailsCommandError = async (output, context) => {
|
|
3453
|
+
const parsedOutput = {
|
|
3454
|
+
...output,
|
|
3455
|
+
body: await parseErrorBody(output.body, context),
|
|
3456
|
+
};
|
|
3457
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3458
|
+
switch (errorCode) {
|
|
3459
|
+
case "AccessDeniedException":
|
|
3460
|
+
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
3461
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3462
|
+
case "InternalServerException":
|
|
3463
|
+
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
3464
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3465
|
+
case "ResourceNotFoundException":
|
|
3466
|
+
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
3467
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3468
|
+
case "ThrottlingException":
|
|
3469
|
+
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
3470
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3471
|
+
case "ValidationException":
|
|
3472
|
+
case "com.amazonaws.wellarchitected#ValidationException":
|
|
3473
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3474
|
+
default:
|
|
3475
|
+
const parsedBody = parsedOutput.body;
|
|
3476
|
+
return throwDefaultError({
|
|
3477
|
+
output,
|
|
3478
|
+
parsedBody,
|
|
3479
|
+
errorCode,
|
|
3480
|
+
});
|
|
3481
|
+
}
|
|
3482
|
+
};
|
|
3483
|
+
const de_ListCheckSummariesCommand = async (output, context) => {
|
|
3484
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3485
|
+
return de_ListCheckSummariesCommandError(output, context);
|
|
3486
|
+
}
|
|
3487
|
+
const contents = (0, smithy_client_1.map)({
|
|
3488
|
+
$metadata: deserializeMetadata(output),
|
|
3489
|
+
});
|
|
3490
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3491
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3492
|
+
CheckSummaries: (_) => de_CheckSummaries(_, context),
|
|
3493
|
+
NextToken: smithy_client_1.expectString,
|
|
3494
|
+
});
|
|
2834
3495
|
Object.assign(contents, doc);
|
|
2835
3496
|
return contents;
|
|
2836
3497
|
};
|
|
@@ -3284,6 +3945,99 @@ const de_ListProfileSharesCommandError = async (output, context) => {
|
|
|
3284
3945
|
});
|
|
3285
3946
|
}
|
|
3286
3947
|
};
|
|
3948
|
+
const de_ListReviewTemplateAnswersCommand = async (output, context) => {
|
|
3949
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3950
|
+
return de_ListReviewTemplateAnswersCommandError(output, context);
|
|
3951
|
+
}
|
|
3952
|
+
const contents = (0, smithy_client_1.map)({
|
|
3953
|
+
$metadata: deserializeMetadata(output),
|
|
3954
|
+
});
|
|
3955
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3956
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3957
|
+
AnswerSummaries: smithy_client_1._json,
|
|
3958
|
+
LensAlias: smithy_client_1.expectString,
|
|
3959
|
+
NextToken: smithy_client_1.expectString,
|
|
3960
|
+
TemplateArn: smithy_client_1.expectString,
|
|
3961
|
+
});
|
|
3962
|
+
Object.assign(contents, doc);
|
|
3963
|
+
return contents;
|
|
3964
|
+
};
|
|
3965
|
+
exports.de_ListReviewTemplateAnswersCommand = de_ListReviewTemplateAnswersCommand;
|
|
3966
|
+
const de_ListReviewTemplateAnswersCommandError = async (output, context) => {
|
|
3967
|
+
const parsedOutput = {
|
|
3968
|
+
...output,
|
|
3969
|
+
body: await parseErrorBody(output.body, context),
|
|
3970
|
+
};
|
|
3971
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3972
|
+
switch (errorCode) {
|
|
3973
|
+
case "AccessDeniedException":
|
|
3974
|
+
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
3975
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3976
|
+
case "InternalServerException":
|
|
3977
|
+
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
3978
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3979
|
+
case "ResourceNotFoundException":
|
|
3980
|
+
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
3981
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3982
|
+
case "ThrottlingException":
|
|
3983
|
+
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
3984
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3985
|
+
case "ValidationException":
|
|
3986
|
+
case "com.amazonaws.wellarchitected#ValidationException":
|
|
3987
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3988
|
+
default:
|
|
3989
|
+
const parsedBody = parsedOutput.body;
|
|
3990
|
+
return throwDefaultError({
|
|
3991
|
+
output,
|
|
3992
|
+
parsedBody,
|
|
3993
|
+
errorCode,
|
|
3994
|
+
});
|
|
3995
|
+
}
|
|
3996
|
+
};
|
|
3997
|
+
const de_ListReviewTemplatesCommand = async (output, context) => {
|
|
3998
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3999
|
+
return de_ListReviewTemplatesCommandError(output, context);
|
|
4000
|
+
}
|
|
4001
|
+
const contents = (0, smithy_client_1.map)({
|
|
4002
|
+
$metadata: deserializeMetadata(output),
|
|
4003
|
+
});
|
|
4004
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4005
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
4006
|
+
NextToken: smithy_client_1.expectString,
|
|
4007
|
+
ReviewTemplates: (_) => de_ReviewTemplates(_, context),
|
|
4008
|
+
});
|
|
4009
|
+
Object.assign(contents, doc);
|
|
4010
|
+
return contents;
|
|
4011
|
+
};
|
|
4012
|
+
exports.de_ListReviewTemplatesCommand = de_ListReviewTemplatesCommand;
|
|
4013
|
+
const de_ListReviewTemplatesCommandError = async (output, context) => {
|
|
4014
|
+
const parsedOutput = {
|
|
4015
|
+
...output,
|
|
4016
|
+
body: await parseErrorBody(output.body, context),
|
|
4017
|
+
};
|
|
4018
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4019
|
+
switch (errorCode) {
|
|
4020
|
+
case "AccessDeniedException":
|
|
4021
|
+
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
4022
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4023
|
+
case "InternalServerException":
|
|
4024
|
+
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
4025
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4026
|
+
case "ThrottlingException":
|
|
4027
|
+
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
4028
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4029
|
+
case "ValidationException":
|
|
4030
|
+
case "com.amazonaws.wellarchitected#ValidationException":
|
|
4031
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4032
|
+
default:
|
|
4033
|
+
const parsedBody = parsedOutput.body;
|
|
4034
|
+
return throwDefaultError({
|
|
4035
|
+
output,
|
|
4036
|
+
parsedBody,
|
|
4037
|
+
errorCode,
|
|
4038
|
+
});
|
|
4039
|
+
}
|
|
4040
|
+
};
|
|
3287
4041
|
const de_ListShareInvitationsCommand = async (output, context) => {
|
|
3288
4042
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3289
4043
|
return de_ListShareInvitationsCommandError(output, context);
|
|
@@ -3365,6 +4119,54 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
3365
4119
|
});
|
|
3366
4120
|
}
|
|
3367
4121
|
};
|
|
4122
|
+
const de_ListTemplateSharesCommand = async (output, context) => {
|
|
4123
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4124
|
+
return de_ListTemplateSharesCommandError(output, context);
|
|
4125
|
+
}
|
|
4126
|
+
const contents = (0, smithy_client_1.map)({
|
|
4127
|
+
$metadata: deserializeMetadata(output),
|
|
4128
|
+
});
|
|
4129
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4130
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
4131
|
+
NextToken: smithy_client_1.expectString,
|
|
4132
|
+
TemplateArn: smithy_client_1.expectString,
|
|
4133
|
+
TemplateShareSummaries: smithy_client_1._json,
|
|
4134
|
+
});
|
|
4135
|
+
Object.assign(contents, doc);
|
|
4136
|
+
return contents;
|
|
4137
|
+
};
|
|
4138
|
+
exports.de_ListTemplateSharesCommand = de_ListTemplateSharesCommand;
|
|
4139
|
+
const de_ListTemplateSharesCommandError = async (output, context) => {
|
|
4140
|
+
const parsedOutput = {
|
|
4141
|
+
...output,
|
|
4142
|
+
body: await parseErrorBody(output.body, context),
|
|
4143
|
+
};
|
|
4144
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4145
|
+
switch (errorCode) {
|
|
4146
|
+
case "AccessDeniedException":
|
|
4147
|
+
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
4148
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4149
|
+
case "InternalServerException":
|
|
4150
|
+
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
4151
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4152
|
+
case "ResourceNotFoundException":
|
|
4153
|
+
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
4154
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4155
|
+
case "ThrottlingException":
|
|
4156
|
+
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
4157
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4158
|
+
case "ValidationException":
|
|
4159
|
+
case "com.amazonaws.wellarchitected#ValidationException":
|
|
4160
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4161
|
+
default:
|
|
4162
|
+
const parsedBody = parsedOutput.body;
|
|
4163
|
+
return throwDefaultError({
|
|
4164
|
+
output,
|
|
4165
|
+
parsedBody,
|
|
4166
|
+
errorCode,
|
|
4167
|
+
});
|
|
4168
|
+
}
|
|
4169
|
+
};
|
|
3368
4170
|
const de_ListWorkloadsCommand = async (output, context) => {
|
|
3369
4171
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3370
4172
|
return de_ListWorkloadsCommandError(output, context);
|
|
@@ -3716,6 +4518,156 @@ const de_UpdateProfileCommandError = async (output, context) => {
|
|
|
3716
4518
|
});
|
|
3717
4519
|
}
|
|
3718
4520
|
};
|
|
4521
|
+
const de_UpdateReviewTemplateCommand = async (output, context) => {
|
|
4522
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4523
|
+
return de_UpdateReviewTemplateCommandError(output, context);
|
|
4524
|
+
}
|
|
4525
|
+
const contents = (0, smithy_client_1.map)({
|
|
4526
|
+
$metadata: deserializeMetadata(output),
|
|
4527
|
+
});
|
|
4528
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4529
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
4530
|
+
ReviewTemplate: (_) => de_ReviewTemplate(_, context),
|
|
4531
|
+
});
|
|
4532
|
+
Object.assign(contents, doc);
|
|
4533
|
+
return contents;
|
|
4534
|
+
};
|
|
4535
|
+
exports.de_UpdateReviewTemplateCommand = de_UpdateReviewTemplateCommand;
|
|
4536
|
+
const de_UpdateReviewTemplateCommandError = async (output, context) => {
|
|
4537
|
+
const parsedOutput = {
|
|
4538
|
+
...output,
|
|
4539
|
+
body: await parseErrorBody(output.body, context),
|
|
4540
|
+
};
|
|
4541
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4542
|
+
switch (errorCode) {
|
|
4543
|
+
case "AccessDeniedException":
|
|
4544
|
+
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
4545
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4546
|
+
case "ConflictException":
|
|
4547
|
+
case "com.amazonaws.wellarchitected#ConflictException":
|
|
4548
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4549
|
+
case "InternalServerException":
|
|
4550
|
+
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
4551
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4552
|
+
case "ResourceNotFoundException":
|
|
4553
|
+
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
4554
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4555
|
+
case "ThrottlingException":
|
|
4556
|
+
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
4557
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4558
|
+
case "ValidationException":
|
|
4559
|
+
case "com.amazonaws.wellarchitected#ValidationException":
|
|
4560
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4561
|
+
default:
|
|
4562
|
+
const parsedBody = parsedOutput.body;
|
|
4563
|
+
return throwDefaultError({
|
|
4564
|
+
output,
|
|
4565
|
+
parsedBody,
|
|
4566
|
+
errorCode,
|
|
4567
|
+
});
|
|
4568
|
+
}
|
|
4569
|
+
};
|
|
4570
|
+
const de_UpdateReviewTemplateAnswerCommand = async (output, context) => {
|
|
4571
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4572
|
+
return de_UpdateReviewTemplateAnswerCommandError(output, context);
|
|
4573
|
+
}
|
|
4574
|
+
const contents = (0, smithy_client_1.map)({
|
|
4575
|
+
$metadata: deserializeMetadata(output),
|
|
4576
|
+
});
|
|
4577
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4578
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
4579
|
+
Answer: smithy_client_1._json,
|
|
4580
|
+
LensAlias: smithy_client_1.expectString,
|
|
4581
|
+
TemplateArn: smithy_client_1.expectString,
|
|
4582
|
+
});
|
|
4583
|
+
Object.assign(contents, doc);
|
|
4584
|
+
return contents;
|
|
4585
|
+
};
|
|
4586
|
+
exports.de_UpdateReviewTemplateAnswerCommand = de_UpdateReviewTemplateAnswerCommand;
|
|
4587
|
+
const de_UpdateReviewTemplateAnswerCommandError = async (output, context) => {
|
|
4588
|
+
const parsedOutput = {
|
|
4589
|
+
...output,
|
|
4590
|
+
body: await parseErrorBody(output.body, context),
|
|
4591
|
+
};
|
|
4592
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4593
|
+
switch (errorCode) {
|
|
4594
|
+
case "AccessDeniedException":
|
|
4595
|
+
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
4596
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4597
|
+
case "ConflictException":
|
|
4598
|
+
case "com.amazonaws.wellarchitected#ConflictException":
|
|
4599
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4600
|
+
case "InternalServerException":
|
|
4601
|
+
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
4602
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4603
|
+
case "ResourceNotFoundException":
|
|
4604
|
+
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
4605
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4606
|
+
case "ThrottlingException":
|
|
4607
|
+
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
4608
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4609
|
+
case "ValidationException":
|
|
4610
|
+
case "com.amazonaws.wellarchitected#ValidationException":
|
|
4611
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4612
|
+
default:
|
|
4613
|
+
const parsedBody = parsedOutput.body;
|
|
4614
|
+
return throwDefaultError({
|
|
4615
|
+
output,
|
|
4616
|
+
parsedBody,
|
|
4617
|
+
errorCode,
|
|
4618
|
+
});
|
|
4619
|
+
}
|
|
4620
|
+
};
|
|
4621
|
+
const de_UpdateReviewTemplateLensReviewCommand = async (output, context) => {
|
|
4622
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4623
|
+
return de_UpdateReviewTemplateLensReviewCommandError(output, context);
|
|
4624
|
+
}
|
|
4625
|
+
const contents = (0, smithy_client_1.map)({
|
|
4626
|
+
$metadata: deserializeMetadata(output),
|
|
4627
|
+
});
|
|
4628
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4629
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
4630
|
+
LensReview: (_) => de_ReviewTemplateLensReview(_, context),
|
|
4631
|
+
TemplateArn: smithy_client_1.expectString,
|
|
4632
|
+
});
|
|
4633
|
+
Object.assign(contents, doc);
|
|
4634
|
+
return contents;
|
|
4635
|
+
};
|
|
4636
|
+
exports.de_UpdateReviewTemplateLensReviewCommand = de_UpdateReviewTemplateLensReviewCommand;
|
|
4637
|
+
const de_UpdateReviewTemplateLensReviewCommandError = async (output, context) => {
|
|
4638
|
+
const parsedOutput = {
|
|
4639
|
+
...output,
|
|
4640
|
+
body: await parseErrorBody(output.body, context),
|
|
4641
|
+
};
|
|
4642
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4643
|
+
switch (errorCode) {
|
|
4644
|
+
case "AccessDeniedException":
|
|
4645
|
+
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
4646
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4647
|
+
case "ConflictException":
|
|
4648
|
+
case "com.amazonaws.wellarchitected#ConflictException":
|
|
4649
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4650
|
+
case "InternalServerException":
|
|
4651
|
+
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
4652
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4653
|
+
case "ResourceNotFoundException":
|
|
4654
|
+
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
4655
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4656
|
+
case "ThrottlingException":
|
|
4657
|
+
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
4658
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4659
|
+
case "ValidationException":
|
|
4660
|
+
case "com.amazonaws.wellarchitected#ValidationException":
|
|
4661
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4662
|
+
default:
|
|
4663
|
+
const parsedBody = parsedOutput.body;
|
|
4664
|
+
return throwDefaultError({
|
|
4665
|
+
output,
|
|
4666
|
+
parsedBody,
|
|
4667
|
+
errorCode,
|
|
4668
|
+
});
|
|
4669
|
+
}
|
|
4670
|
+
};
|
|
3719
4671
|
const de_UpdateShareInvitationCommand = async (output, context) => {
|
|
3720
4672
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3721
4673
|
return de_UpdateShareInvitationCommandError(output, context);
|
|
@@ -3954,6 +4906,51 @@ const de_UpgradeProfileVersionCommandError = async (output, context) => {
|
|
|
3954
4906
|
});
|
|
3955
4907
|
}
|
|
3956
4908
|
};
|
|
4909
|
+
const de_UpgradeReviewTemplateLensReviewCommand = async (output, context) => {
|
|
4910
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4911
|
+
return de_UpgradeReviewTemplateLensReviewCommandError(output, context);
|
|
4912
|
+
}
|
|
4913
|
+
const contents = (0, smithy_client_1.map)({
|
|
4914
|
+
$metadata: deserializeMetadata(output),
|
|
4915
|
+
});
|
|
4916
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
4917
|
+
return contents;
|
|
4918
|
+
};
|
|
4919
|
+
exports.de_UpgradeReviewTemplateLensReviewCommand = de_UpgradeReviewTemplateLensReviewCommand;
|
|
4920
|
+
const de_UpgradeReviewTemplateLensReviewCommandError = async (output, context) => {
|
|
4921
|
+
const parsedOutput = {
|
|
4922
|
+
...output,
|
|
4923
|
+
body: await parseErrorBody(output.body, context),
|
|
4924
|
+
};
|
|
4925
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4926
|
+
switch (errorCode) {
|
|
4927
|
+
case "AccessDeniedException":
|
|
4928
|
+
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
4929
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4930
|
+
case "ConflictException":
|
|
4931
|
+
case "com.amazonaws.wellarchitected#ConflictException":
|
|
4932
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4933
|
+
case "InternalServerException":
|
|
4934
|
+
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
4935
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4936
|
+
case "ResourceNotFoundException":
|
|
4937
|
+
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
4938
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4939
|
+
case "ThrottlingException":
|
|
4940
|
+
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
4941
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4942
|
+
case "ValidationException":
|
|
4943
|
+
case "com.amazonaws.wellarchitected#ValidationException":
|
|
4944
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4945
|
+
default:
|
|
4946
|
+
const parsedBody = parsedOutput.body;
|
|
4947
|
+
return throwDefaultError({
|
|
4948
|
+
output,
|
|
4949
|
+
parsedBody,
|
|
4950
|
+
errorCode,
|
|
4951
|
+
});
|
|
4952
|
+
}
|
|
4953
|
+
};
|
|
3957
4954
|
const throwDefaultError = (0, smithy_client_1.withBaseException)(WellArchitectedServiceException_1.WellArchitectedServiceException);
|
|
3958
4955
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
3959
4956
|
const contents = (0, smithy_client_1.map)({});
|
|
@@ -4250,6 +5247,54 @@ const de_ProfileTemplate = (output, context) => {
|
|
|
4250
5247
|
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4251
5248
|
});
|
|
4252
5249
|
};
|
|
5250
|
+
const de_ReviewTemplate = (output, context) => {
|
|
5251
|
+
return (0, smithy_client_1.take)(output, {
|
|
5252
|
+
Description: smithy_client_1.expectString,
|
|
5253
|
+
Lenses: smithy_client_1._json,
|
|
5254
|
+
Notes: smithy_client_1.expectString,
|
|
5255
|
+
Owner: smithy_client_1.expectString,
|
|
5256
|
+
QuestionCounts: smithy_client_1._json,
|
|
5257
|
+
ShareInvitationId: smithy_client_1.expectString,
|
|
5258
|
+
Tags: smithy_client_1._json,
|
|
5259
|
+
TemplateArn: smithy_client_1.expectString,
|
|
5260
|
+
TemplateName: smithy_client_1.expectString,
|
|
5261
|
+
UpdateStatus: smithy_client_1.expectString,
|
|
5262
|
+
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
5263
|
+
});
|
|
5264
|
+
};
|
|
5265
|
+
const de_ReviewTemplateLensReview = (output, context) => {
|
|
5266
|
+
return (0, smithy_client_1.take)(output, {
|
|
5267
|
+
LensAlias: smithy_client_1.expectString,
|
|
5268
|
+
LensArn: smithy_client_1.expectString,
|
|
5269
|
+
LensName: smithy_client_1.expectString,
|
|
5270
|
+
LensStatus: smithy_client_1.expectString,
|
|
5271
|
+
LensVersion: smithy_client_1.expectString,
|
|
5272
|
+
NextToken: smithy_client_1.expectString,
|
|
5273
|
+
Notes: smithy_client_1.expectString,
|
|
5274
|
+
PillarReviewSummaries: smithy_client_1._json,
|
|
5275
|
+
QuestionCounts: smithy_client_1._json,
|
|
5276
|
+
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
5277
|
+
});
|
|
5278
|
+
};
|
|
5279
|
+
const de_ReviewTemplates = (output, context) => {
|
|
5280
|
+
const retVal = (output || [])
|
|
5281
|
+
.filter((e) => e != null)
|
|
5282
|
+
.map((entry) => {
|
|
5283
|
+
return de_ReviewTemplateSummary(entry, context);
|
|
5284
|
+
});
|
|
5285
|
+
return retVal;
|
|
5286
|
+
};
|
|
5287
|
+
const de_ReviewTemplateSummary = (output, context) => {
|
|
5288
|
+
return (0, smithy_client_1.take)(output, {
|
|
5289
|
+
Description: smithy_client_1.expectString,
|
|
5290
|
+
Lenses: smithy_client_1._json,
|
|
5291
|
+
Owner: smithy_client_1.expectString,
|
|
5292
|
+
TemplateArn: smithy_client_1.expectString,
|
|
5293
|
+
TemplateName: smithy_client_1.expectString,
|
|
5294
|
+
UpdateStatus: smithy_client_1.expectString,
|
|
5295
|
+
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
5296
|
+
});
|
|
5297
|
+
};
|
|
4253
5298
|
const de_Workload = (output, context) => {
|
|
4254
5299
|
return (0, smithy_client_1.take)(output, {
|
|
4255
5300
|
AccountIds: smithy_client_1._json,
|