@aws-sdk/client-wellarchitected 3.118.0 → 3.127.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 +377 -332
- 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 +361 -294
- 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 +26 -26
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.deserializeAws_restJson1UpgradeLensReviewCommand = exports.deserializeAws_restJson1UpdateWorkloadShareCommand = exports.deserializeAws_restJson1UpdateWorkloadCommand = exports.deserializeAws_restJson1UpdateShareInvitationCommand = exports.deserializeAws_restJson1UpdateLensReviewCommand = exports.deserializeAws_restJson1UpdateAnswerCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1ListWorkloadSharesCommand = exports.deserializeAws_restJson1ListWorkloadsCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListShareInvitationsCommand = exports.deserializeAws_restJson1ListNotificationsCommand = exports.deserializeAws_restJson1ListMilestonesCommand = exports.deserializeAws_restJson1ListLensSharesCommand = exports.deserializeAws_restJson1ListLensReviewsCommand = exports.deserializeAws_restJson1ListLensReviewImprovementsCommand = exports.deserializeAws_restJson1ListLensesCommand = exports.deserializeAws_restJson1ListAnswersCommand = exports.deserializeAws_restJson1ImportLensCommand = exports.deserializeAws_restJson1GetWorkloadCommand = exports.deserializeAws_restJson1GetMilestoneCommand = exports.deserializeAws_restJson1GetLensVersionDifferenceCommand = exports.deserializeAws_restJson1GetLensReviewReportCommand = exports.deserializeAws_restJson1GetLensReviewCommand = exports.deserializeAws_restJson1GetLensCommand = exports.deserializeAws_restJson1GetAnswerCommand = exports.deserializeAws_restJson1ExportLensCommand = void 0;
|
|
3
|
+
exports.deserializeAws_restJson1DeleteWorkloadShareCommand = exports.deserializeAws_restJson1DeleteWorkloadCommand = exports.deserializeAws_restJson1DeleteLensShareCommand = exports.deserializeAws_restJson1DeleteLensCommand = exports.deserializeAws_restJson1CreateWorkloadShareCommand = exports.deserializeAws_restJson1CreateWorkloadCommand = exports.deserializeAws_restJson1CreateMilestoneCommand = exports.deserializeAws_restJson1CreateLensVersionCommand = exports.deserializeAws_restJson1CreateLensShareCommand = exports.deserializeAws_restJson1AssociateLensesCommand = exports.serializeAws_restJson1UpgradeLensReviewCommand = exports.serializeAws_restJson1UpdateWorkloadShareCommand = exports.serializeAws_restJson1UpdateWorkloadCommand = exports.serializeAws_restJson1UpdateShareInvitationCommand = exports.serializeAws_restJson1UpdateLensReviewCommand = exports.serializeAws_restJson1UpdateGlobalSettingsCommand = exports.serializeAws_restJson1UpdateAnswerCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1ListWorkloadSharesCommand = exports.serializeAws_restJson1ListWorkloadsCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListShareInvitationsCommand = exports.serializeAws_restJson1ListNotificationsCommand = exports.serializeAws_restJson1ListMilestonesCommand = exports.serializeAws_restJson1ListLensSharesCommand = exports.serializeAws_restJson1ListLensReviewsCommand = exports.serializeAws_restJson1ListLensReviewImprovementsCommand = exports.serializeAws_restJson1ListLensesCommand = exports.serializeAws_restJson1ListAnswersCommand = exports.serializeAws_restJson1ImportLensCommand = exports.serializeAws_restJson1GetWorkloadCommand = exports.serializeAws_restJson1GetMilestoneCommand = exports.serializeAws_restJson1GetLensVersionDifferenceCommand = exports.serializeAws_restJson1GetLensReviewReportCommand = exports.serializeAws_restJson1GetLensReviewCommand = exports.serializeAws_restJson1GetLensCommand = exports.serializeAws_restJson1GetAnswerCommand = exports.serializeAws_restJson1ExportLensCommand = exports.serializeAws_restJson1DisassociateLensesCommand = exports.serializeAws_restJson1DeleteWorkloadShareCommand = exports.serializeAws_restJson1DeleteWorkloadCommand = exports.serializeAws_restJson1DeleteLensShareCommand = exports.serializeAws_restJson1DeleteLensCommand = exports.serializeAws_restJson1CreateWorkloadShareCommand = exports.serializeAws_restJson1CreateWorkloadCommand = exports.serializeAws_restJson1CreateMilestoneCommand = exports.serializeAws_restJson1CreateLensVersionCommand = exports.serializeAws_restJson1CreateLensShareCommand = exports.serializeAws_restJson1AssociateLensesCommand = void 0;
|
|
4
|
+
exports.deserializeAws_restJson1UpgradeLensReviewCommand = exports.deserializeAws_restJson1UpdateWorkloadShareCommand = exports.deserializeAws_restJson1UpdateWorkloadCommand = exports.deserializeAws_restJson1UpdateShareInvitationCommand = exports.deserializeAws_restJson1UpdateLensReviewCommand = exports.deserializeAws_restJson1UpdateGlobalSettingsCommand = exports.deserializeAws_restJson1UpdateAnswerCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1ListWorkloadSharesCommand = exports.deserializeAws_restJson1ListWorkloadsCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListShareInvitationsCommand = exports.deserializeAws_restJson1ListNotificationsCommand = exports.deserializeAws_restJson1ListMilestonesCommand = exports.deserializeAws_restJson1ListLensSharesCommand = exports.deserializeAws_restJson1ListLensReviewsCommand = exports.deserializeAws_restJson1ListLensReviewImprovementsCommand = exports.deserializeAws_restJson1ListLensesCommand = exports.deserializeAws_restJson1ListAnswersCommand = exports.deserializeAws_restJson1ImportLensCommand = exports.deserializeAws_restJson1GetWorkloadCommand = exports.deserializeAws_restJson1GetMilestoneCommand = exports.deserializeAws_restJson1GetLensVersionDifferenceCommand = exports.deserializeAws_restJson1GetLensReviewReportCommand = exports.deserializeAws_restJson1GetLensReviewCommand = exports.deserializeAws_restJson1GetLensCommand = exports.deserializeAws_restJson1GetAnswerCommand = exports.deserializeAws_restJson1ExportLensCommand = exports.deserializeAws_restJson1DisassociateLensesCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const uuid_1 = require("uuid");
|
|
@@ -25,8 +25,7 @@ const serializeAws_restJson1AssociateLensesCommand = async (input, context) => {
|
|
|
25
25
|
}
|
|
26
26
|
let body;
|
|
27
27
|
body = JSON.stringify({
|
|
28
|
-
...(input.LensAliases
|
|
29
|
-
input.LensAliases !== null && { LensAliases: serializeAws_restJson1LensAliases(input.LensAliases, context) }),
|
|
28
|
+
...(input.LensAliases != null && { LensAliases: serializeAws_restJson1LensAliases(input.LensAliases, context) }),
|
|
30
29
|
});
|
|
31
30
|
return new protocol_http_1.HttpRequest({
|
|
32
31
|
protocol,
|
|
@@ -59,7 +58,7 @@ const serializeAws_restJson1CreateLensShareCommand = async (input, context) => {
|
|
|
59
58
|
let body;
|
|
60
59
|
body = JSON.stringify({
|
|
61
60
|
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
62
|
-
...(input.SharedWith
|
|
61
|
+
...(input.SharedWith != null && { SharedWith: input.SharedWith }),
|
|
63
62
|
});
|
|
64
63
|
return new protocol_http_1.HttpRequest({
|
|
65
64
|
protocol,
|
|
@@ -92,9 +91,8 @@ const serializeAws_restJson1CreateLensVersionCommand = async (input, context) =>
|
|
|
92
91
|
let body;
|
|
93
92
|
body = JSON.stringify({
|
|
94
93
|
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
95
|
-
...(input.IsMajorVersion
|
|
96
|
-
|
|
97
|
-
...(input.LensVersion !== undefined && input.LensVersion !== null && { LensVersion: input.LensVersion }),
|
|
94
|
+
...(input.IsMajorVersion != null && { IsMajorVersion: input.IsMajorVersion }),
|
|
95
|
+
...(input.LensVersion != null && { LensVersion: input.LensVersion }),
|
|
98
96
|
});
|
|
99
97
|
return new protocol_http_1.HttpRequest({
|
|
100
98
|
protocol,
|
|
@@ -127,7 +125,7 @@ const serializeAws_restJson1CreateMilestoneCommand = async (input, context) => {
|
|
|
127
125
|
let body;
|
|
128
126
|
body = JSON.stringify({
|
|
129
127
|
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
130
|
-
...(input.MilestoneName
|
|
128
|
+
...(input.MilestoneName != null && { MilestoneName: input.MilestoneName }),
|
|
131
129
|
});
|
|
132
130
|
return new protocol_http_1.HttpRequest({
|
|
133
131
|
protocol,
|
|
@@ -149,31 +147,29 @@ const serializeAws_restJson1CreateWorkloadCommand = async (input, context) => {
|
|
|
149
147
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/workloads";
|
|
150
148
|
let body;
|
|
151
149
|
body = JSON.stringify({
|
|
152
|
-
...(input.AccountIds
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
...(input.AwsRegions
|
|
157
|
-
|
|
150
|
+
...(input.AccountIds != null && {
|
|
151
|
+
AccountIds: serializeAws_restJson1WorkloadAccountIds(input.AccountIds, context),
|
|
152
|
+
}),
|
|
153
|
+
...(input.ArchitecturalDesign != null && { ArchitecturalDesign: input.ArchitecturalDesign }),
|
|
154
|
+
...(input.AwsRegions != null && {
|
|
155
|
+
AwsRegions: serializeAws_restJson1WorkloadAwsRegions(input.AwsRegions, context),
|
|
156
|
+
}),
|
|
158
157
|
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
159
|
-
...(input.Description
|
|
160
|
-
...(input.Environment
|
|
161
|
-
...(input.Industry
|
|
162
|
-
...(input.IndustryType
|
|
163
|
-
...(input.Lenses
|
|
164
|
-
|
|
165
|
-
...(input.NonAwsRegions !== undefined &&
|
|
166
|
-
input.NonAwsRegions !== null && {
|
|
158
|
+
...(input.Description != null && { Description: input.Description }),
|
|
159
|
+
...(input.Environment != null && { Environment: input.Environment }),
|
|
160
|
+
...(input.Industry != null && { Industry: input.Industry }),
|
|
161
|
+
...(input.IndustryType != null && { IndustryType: input.IndustryType }),
|
|
162
|
+
...(input.Lenses != null && { Lenses: serializeAws_restJson1WorkloadLenses(input.Lenses, context) }),
|
|
163
|
+
...(input.NonAwsRegions != null && {
|
|
167
164
|
NonAwsRegions: serializeAws_restJson1WorkloadNonAwsRegions(input.NonAwsRegions, context),
|
|
168
165
|
}),
|
|
169
|
-
...(input.Notes
|
|
170
|
-
...(input.PillarPriorities
|
|
171
|
-
input.PillarPriorities !== null && {
|
|
166
|
+
...(input.Notes != null && { Notes: input.Notes }),
|
|
167
|
+
...(input.PillarPriorities != null && {
|
|
172
168
|
PillarPriorities: serializeAws_restJson1WorkloadPillarPriorities(input.PillarPriorities, context),
|
|
173
169
|
}),
|
|
174
|
-
...(input.ReviewOwner
|
|
175
|
-
...(input.Tags
|
|
176
|
-
...(input.WorkloadName
|
|
170
|
+
...(input.ReviewOwner != null && { ReviewOwner: input.ReviewOwner }),
|
|
171
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
172
|
+
...(input.WorkloadName != null && { WorkloadName: input.WorkloadName }),
|
|
177
173
|
});
|
|
178
174
|
return new protocol_http_1.HttpRequest({
|
|
179
175
|
protocol,
|
|
@@ -206,9 +202,8 @@ const serializeAws_restJson1CreateWorkloadShareCommand = async (input, context)
|
|
|
206
202
|
let body;
|
|
207
203
|
body = JSON.stringify({
|
|
208
204
|
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
209
|
-
...(input.PermissionType
|
|
210
|
-
|
|
211
|
-
...(input.SharedWith !== undefined && input.SharedWith !== null && { SharedWith: input.SharedWith }),
|
|
205
|
+
...(input.PermissionType != null && { PermissionType: input.PermissionType }),
|
|
206
|
+
...(input.SharedWith != null && { SharedWith: input.SharedWith }),
|
|
212
207
|
});
|
|
213
208
|
return new protocol_http_1.HttpRequest({
|
|
214
209
|
protocol,
|
|
@@ -381,8 +376,7 @@ const serializeAws_restJson1DisassociateLensesCommand = async (input, context) =
|
|
|
381
376
|
}
|
|
382
377
|
let body;
|
|
383
378
|
body = JSON.stringify({
|
|
384
|
-
...(input.LensAliases
|
|
385
|
-
input.LensAliases !== null && { LensAliases: serializeAws_restJson1LensAliases(input.LensAliases, context) }),
|
|
379
|
+
...(input.LensAliases != null && { LensAliases: serializeAws_restJson1LensAliases(input.LensAliases, context) }),
|
|
386
380
|
});
|
|
387
381
|
return new protocol_http_1.HttpRequest({
|
|
388
382
|
protocol,
|
|
@@ -692,9 +686,9 @@ const serializeAws_restJson1ImportLensCommand = async (input, context) => {
|
|
|
692
686
|
let body;
|
|
693
687
|
body = JSON.stringify({
|
|
694
688
|
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
695
|
-
...(input.JSONString
|
|
696
|
-
...(input.LensAlias
|
|
697
|
-
...(input.Tags
|
|
689
|
+
...(input.JSONString != null && { JSONString: input.JSONString }),
|
|
690
|
+
...(input.LensAlias != null && { LensAlias: input.LensAlias }),
|
|
691
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
698
692
|
});
|
|
699
693
|
return new protocol_http_1.HttpRequest({
|
|
700
694
|
protocol,
|
|
@@ -869,6 +863,7 @@ const serializeAws_restJson1ListLensSharesCommand = async (input, context) => {
|
|
|
869
863
|
...(input.SharedWithPrefix !== undefined && { SharedWithPrefix: input.SharedWithPrefix }),
|
|
870
864
|
...(input.NextToken !== undefined && { NextToken: input.NextToken }),
|
|
871
865
|
...(input.MaxResults !== undefined && { MaxResults: input.MaxResults.toString() }),
|
|
866
|
+
...(input.Status !== undefined && { Status: input.Status }),
|
|
872
867
|
};
|
|
873
868
|
let body;
|
|
874
869
|
return new protocol_http_1.HttpRequest({
|
|
@@ -902,8 +897,8 @@ const serializeAws_restJson1ListMilestonesCommand = async (input, context) => {
|
|
|
902
897
|
}
|
|
903
898
|
let body;
|
|
904
899
|
body = JSON.stringify({
|
|
905
|
-
...(input.MaxResults
|
|
906
|
-
...(input.NextToken
|
|
900
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
901
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
907
902
|
});
|
|
908
903
|
return new protocol_http_1.HttpRequest({
|
|
909
904
|
protocol,
|
|
@@ -924,9 +919,9 @@ const serializeAws_restJson1ListNotificationsCommand = async (input, context) =>
|
|
|
924
919
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/notifications";
|
|
925
920
|
let body;
|
|
926
921
|
body = JSON.stringify({
|
|
927
|
-
...(input.MaxResults
|
|
928
|
-
...(input.NextToken
|
|
929
|
-
...(input.WorkloadId
|
|
922
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
923
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
924
|
+
...(input.WorkloadId != null && { WorkloadId: input.WorkloadId }),
|
|
930
925
|
});
|
|
931
926
|
return new protocol_http_1.HttpRequest({
|
|
932
927
|
protocol,
|
|
@@ -997,10 +992,9 @@ const serializeAws_restJson1ListWorkloadsCommand = async (input, context) => {
|
|
|
997
992
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/workloadsSummaries";
|
|
998
993
|
let body;
|
|
999
994
|
body = JSON.stringify({
|
|
1000
|
-
...(input.MaxResults
|
|
1001
|
-
...(input.NextToken
|
|
1002
|
-
...(input.WorkloadNamePrefix
|
|
1003
|
-
input.WorkloadNamePrefix !== null && { WorkloadNamePrefix: input.WorkloadNamePrefix }),
|
|
995
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
996
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
997
|
+
...(input.WorkloadNamePrefix != null && { WorkloadNamePrefix: input.WorkloadNamePrefix }),
|
|
1004
998
|
});
|
|
1005
999
|
return new protocol_http_1.HttpRequest({
|
|
1006
1000
|
protocol,
|
|
@@ -1031,6 +1025,7 @@ const serializeAws_restJson1ListWorkloadSharesCommand = async (input, context) =
|
|
|
1031
1025
|
...(input.SharedWithPrefix !== undefined && { SharedWithPrefix: input.SharedWithPrefix }),
|
|
1032
1026
|
...(input.NextToken !== undefined && { NextToken: input.NextToken }),
|
|
1033
1027
|
...(input.MaxResults !== undefined && { MaxResults: input.MaxResults.toString() }),
|
|
1028
|
+
...(input.Status !== undefined && { Status: input.Status }),
|
|
1034
1029
|
};
|
|
1035
1030
|
let body;
|
|
1036
1031
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1063,7 +1058,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
1063
1058
|
}
|
|
1064
1059
|
let body;
|
|
1065
1060
|
body = JSON.stringify({
|
|
1066
|
-
...(input.Tags
|
|
1061
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
1067
1062
|
});
|
|
1068
1063
|
return new protocol_http_1.HttpRequest({
|
|
1069
1064
|
protocol,
|
|
@@ -1145,15 +1140,13 @@ const serializeAws_restJson1UpdateAnswerCommand = async (input, context) => {
|
|
|
1145
1140
|
}
|
|
1146
1141
|
let body;
|
|
1147
1142
|
body = JSON.stringify({
|
|
1148
|
-
...(input.ChoiceUpdates
|
|
1149
|
-
input.ChoiceUpdates !== null && {
|
|
1143
|
+
...(input.ChoiceUpdates != null && {
|
|
1150
1144
|
ChoiceUpdates: serializeAws_restJson1ChoiceUpdates(input.ChoiceUpdates, context),
|
|
1151
1145
|
}),
|
|
1152
|
-
...(input.IsApplicable
|
|
1153
|
-
...(input.Notes
|
|
1154
|
-
...(input.Reason
|
|
1155
|
-
...(input.SelectedChoices
|
|
1156
|
-
input.SelectedChoices !== null && {
|
|
1146
|
+
...(input.IsApplicable != null && { IsApplicable: input.IsApplicable }),
|
|
1147
|
+
...(input.Notes != null && { Notes: input.Notes }),
|
|
1148
|
+
...(input.Reason != null && { Reason: input.Reason }),
|
|
1149
|
+
...(input.SelectedChoices != null && {
|
|
1157
1150
|
SelectedChoices: serializeAws_restJson1SelectedChoices(input.SelectedChoices, context),
|
|
1158
1151
|
}),
|
|
1159
1152
|
});
|
|
@@ -1168,6 +1161,27 @@ const serializeAws_restJson1UpdateAnswerCommand = async (input, context) => {
|
|
|
1168
1161
|
});
|
|
1169
1162
|
};
|
|
1170
1163
|
exports.serializeAws_restJson1UpdateAnswerCommand = serializeAws_restJson1UpdateAnswerCommand;
|
|
1164
|
+
const serializeAws_restJson1UpdateGlobalSettingsCommand = async (input, context) => {
|
|
1165
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1166
|
+
const headers = {
|
|
1167
|
+
"content-type": "application/json",
|
|
1168
|
+
};
|
|
1169
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/global-settings";
|
|
1170
|
+
let body;
|
|
1171
|
+
body = JSON.stringify({
|
|
1172
|
+
...(input.OrganizationSharingStatus != null && { OrganizationSharingStatus: input.OrganizationSharingStatus }),
|
|
1173
|
+
});
|
|
1174
|
+
return new protocol_http_1.HttpRequest({
|
|
1175
|
+
protocol,
|
|
1176
|
+
hostname,
|
|
1177
|
+
port,
|
|
1178
|
+
method: "PATCH",
|
|
1179
|
+
headers,
|
|
1180
|
+
path: resolvedPath,
|
|
1181
|
+
body,
|
|
1182
|
+
});
|
|
1183
|
+
};
|
|
1184
|
+
exports.serializeAws_restJson1UpdateGlobalSettingsCommand = serializeAws_restJson1UpdateGlobalSettingsCommand;
|
|
1171
1185
|
const serializeAws_restJson1UpdateLensReviewCommand = async (input, context) => {
|
|
1172
1186
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1173
1187
|
const headers = {
|
|
@@ -1197,9 +1211,8 @@ const serializeAws_restJson1UpdateLensReviewCommand = async (input, context) =>
|
|
|
1197
1211
|
}
|
|
1198
1212
|
let body;
|
|
1199
1213
|
body = JSON.stringify({
|
|
1200
|
-
...(input.LensNotes
|
|
1201
|
-
...(input.PillarNotes
|
|
1202
|
-
input.PillarNotes !== null && { PillarNotes: serializeAws_restJson1PillarNotes(input.PillarNotes, context) }),
|
|
1214
|
+
...(input.LensNotes != null && { LensNotes: input.LensNotes }),
|
|
1215
|
+
...(input.PillarNotes != null && { PillarNotes: serializeAws_restJson1PillarNotes(input.PillarNotes, context) }),
|
|
1203
1216
|
});
|
|
1204
1217
|
return new protocol_http_1.HttpRequest({
|
|
1205
1218
|
protocol,
|
|
@@ -1230,8 +1243,7 @@ const serializeAws_restJson1UpdateShareInvitationCommand = async (input, context
|
|
|
1230
1243
|
}
|
|
1231
1244
|
let body;
|
|
1232
1245
|
body = JSON.stringify({
|
|
1233
|
-
...(input.ShareInvitationAction
|
|
1234
|
-
input.ShareInvitationAction !== null && { ShareInvitationAction: input.ShareInvitationAction }),
|
|
1246
|
+
...(input.ShareInvitationAction != null && { ShareInvitationAction: input.ShareInvitationAction }),
|
|
1235
1247
|
});
|
|
1236
1248
|
return new protocol_http_1.HttpRequest({
|
|
1237
1249
|
protocol,
|
|
@@ -1262,33 +1274,30 @@ const serializeAws_restJson1UpdateWorkloadCommand = async (input, context) => {
|
|
|
1262
1274
|
}
|
|
1263
1275
|
let body;
|
|
1264
1276
|
body = JSON.stringify({
|
|
1265
|
-
...(input.AccountIds
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
...(input.AwsRegions
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
...(input.
|
|
1273
|
-
...(input.
|
|
1274
|
-
|
|
1275
|
-
...(input.Industry
|
|
1276
|
-
...(input.IndustryType
|
|
1277
|
-
...(input.IsReviewOwnerUpdateAcknowledged
|
|
1278
|
-
input.IsReviewOwnerUpdateAcknowledged !== null && {
|
|
1277
|
+
...(input.AccountIds != null && {
|
|
1278
|
+
AccountIds: serializeAws_restJson1WorkloadAccountIds(input.AccountIds, context),
|
|
1279
|
+
}),
|
|
1280
|
+
...(input.ArchitecturalDesign != null && { ArchitecturalDesign: input.ArchitecturalDesign }),
|
|
1281
|
+
...(input.AwsRegions != null && {
|
|
1282
|
+
AwsRegions: serializeAws_restJson1WorkloadAwsRegions(input.AwsRegions, context),
|
|
1283
|
+
}),
|
|
1284
|
+
...(input.Description != null && { Description: input.Description }),
|
|
1285
|
+
...(input.Environment != null && { Environment: input.Environment }),
|
|
1286
|
+
...(input.ImprovementStatus != null && { ImprovementStatus: input.ImprovementStatus }),
|
|
1287
|
+
...(input.Industry != null && { Industry: input.Industry }),
|
|
1288
|
+
...(input.IndustryType != null && { IndustryType: input.IndustryType }),
|
|
1289
|
+
...(input.IsReviewOwnerUpdateAcknowledged != null && {
|
|
1279
1290
|
IsReviewOwnerUpdateAcknowledged: input.IsReviewOwnerUpdateAcknowledged,
|
|
1280
1291
|
}),
|
|
1281
|
-
...(input.NonAwsRegions
|
|
1282
|
-
input.NonAwsRegions !== null && {
|
|
1292
|
+
...(input.NonAwsRegions != null && {
|
|
1283
1293
|
NonAwsRegions: serializeAws_restJson1WorkloadNonAwsRegions(input.NonAwsRegions, context),
|
|
1284
1294
|
}),
|
|
1285
|
-
...(input.Notes
|
|
1286
|
-
...(input.PillarPriorities
|
|
1287
|
-
input.PillarPriorities !== null && {
|
|
1295
|
+
...(input.Notes != null && { Notes: input.Notes }),
|
|
1296
|
+
...(input.PillarPriorities != null && {
|
|
1288
1297
|
PillarPriorities: serializeAws_restJson1WorkloadPillarPriorities(input.PillarPriorities, context),
|
|
1289
1298
|
}),
|
|
1290
|
-
...(input.ReviewOwner
|
|
1291
|
-
...(input.WorkloadName
|
|
1299
|
+
...(input.ReviewOwner != null && { ReviewOwner: input.ReviewOwner }),
|
|
1300
|
+
...(input.WorkloadName != null && { WorkloadName: input.WorkloadName }),
|
|
1292
1301
|
});
|
|
1293
1302
|
return new protocol_http_1.HttpRequest({
|
|
1294
1303
|
protocol,
|
|
@@ -1329,8 +1338,7 @@ const serializeAws_restJson1UpdateWorkloadShareCommand = async (input, context)
|
|
|
1329
1338
|
}
|
|
1330
1339
|
let body;
|
|
1331
1340
|
body = JSON.stringify({
|
|
1332
|
-
...(input.PermissionType
|
|
1333
|
-
input.PermissionType !== null && { PermissionType: input.PermissionType }),
|
|
1341
|
+
...(input.PermissionType != null && { PermissionType: input.PermissionType }),
|
|
1334
1342
|
});
|
|
1335
1343
|
return new protocol_http_1.HttpRequest({
|
|
1336
1344
|
protocol,
|
|
@@ -1372,9 +1380,8 @@ const serializeAws_restJson1UpgradeLensReviewCommand = async (input, context) =>
|
|
|
1372
1380
|
}
|
|
1373
1381
|
let body;
|
|
1374
1382
|
body = JSON.stringify({
|
|
1375
|
-
...(input.ClientRequestToken
|
|
1376
|
-
|
|
1377
|
-
...(input.MilestoneName !== undefined && input.MilestoneName !== null && { MilestoneName: input.MilestoneName }),
|
|
1383
|
+
...(input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken }),
|
|
1384
|
+
...(input.MilestoneName != null && { MilestoneName: input.MilestoneName }),
|
|
1378
1385
|
});
|
|
1379
1386
|
return new protocol_http_1.HttpRequest({
|
|
1380
1387
|
protocol,
|
|
@@ -1404,8 +1411,7 @@ const deserializeAws_restJson1AssociateLensesCommandError = async (output, conte
|
|
|
1404
1411
|
body: await parseBody(output.body, context),
|
|
1405
1412
|
};
|
|
1406
1413
|
let response;
|
|
1407
|
-
|
|
1408
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1414
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1409
1415
|
switch (errorCode) {
|
|
1410
1416
|
case "AccessDeniedException":
|
|
1411
1417
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -1427,10 +1433,12 @@ const deserializeAws_restJson1AssociateLensesCommandError = async (output, conte
|
|
|
1427
1433
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1428
1434
|
default:
|
|
1429
1435
|
const parsedBody = parsedOutput.body;
|
|
1436
|
+
const $metadata = deserializeMetadata(output);
|
|
1437
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1430
1438
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
1431
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1439
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1432
1440
|
$fault: "client",
|
|
1433
|
-
$metadata
|
|
1441
|
+
$metadata,
|
|
1434
1442
|
});
|
|
1435
1443
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1436
1444
|
}
|
|
@@ -1456,8 +1464,7 @@ const deserializeAws_restJson1CreateLensShareCommandError = async (output, conte
|
|
|
1456
1464
|
body: await parseBody(output.body, context),
|
|
1457
1465
|
};
|
|
1458
1466
|
let response;
|
|
1459
|
-
|
|
1460
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1467
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1461
1468
|
switch (errorCode) {
|
|
1462
1469
|
case "AccessDeniedException":
|
|
1463
1470
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -1482,10 +1489,12 @@ const deserializeAws_restJson1CreateLensShareCommandError = async (output, conte
|
|
|
1482
1489
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1483
1490
|
default:
|
|
1484
1491
|
const parsedBody = parsedOutput.body;
|
|
1492
|
+
const $metadata = deserializeMetadata(output);
|
|
1493
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1485
1494
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
1486
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1495
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1487
1496
|
$fault: "client",
|
|
1488
|
-
$metadata
|
|
1497
|
+
$metadata,
|
|
1489
1498
|
});
|
|
1490
1499
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1491
1500
|
}
|
|
@@ -1515,8 +1524,7 @@ const deserializeAws_restJson1CreateLensVersionCommandError = async (output, con
|
|
|
1515
1524
|
body: await parseBody(output.body, context),
|
|
1516
1525
|
};
|
|
1517
1526
|
let response;
|
|
1518
|
-
|
|
1519
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1527
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1520
1528
|
switch (errorCode) {
|
|
1521
1529
|
case "AccessDeniedException":
|
|
1522
1530
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -1541,10 +1549,12 @@ const deserializeAws_restJson1CreateLensVersionCommandError = async (output, con
|
|
|
1541
1549
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1542
1550
|
default:
|
|
1543
1551
|
const parsedBody = parsedOutput.body;
|
|
1552
|
+
const $metadata = deserializeMetadata(output);
|
|
1553
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1544
1554
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
1545
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1555
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1546
1556
|
$fault: "client",
|
|
1547
|
-
$metadata
|
|
1557
|
+
$metadata,
|
|
1548
1558
|
});
|
|
1549
1559
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1550
1560
|
}
|
|
@@ -1574,8 +1584,7 @@ const deserializeAws_restJson1CreateMilestoneCommandError = async (output, conte
|
|
|
1574
1584
|
body: await parseBody(output.body, context),
|
|
1575
1585
|
};
|
|
1576
1586
|
let response;
|
|
1577
|
-
|
|
1578
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1587
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1579
1588
|
switch (errorCode) {
|
|
1580
1589
|
case "AccessDeniedException":
|
|
1581
1590
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -1600,10 +1609,12 @@ const deserializeAws_restJson1CreateMilestoneCommandError = async (output, conte
|
|
|
1600
1609
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1601
1610
|
default:
|
|
1602
1611
|
const parsedBody = parsedOutput.body;
|
|
1612
|
+
const $metadata = deserializeMetadata(output);
|
|
1613
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1603
1614
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
1604
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1615
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1605
1616
|
$fault: "client",
|
|
1606
|
-
$metadata
|
|
1617
|
+
$metadata,
|
|
1607
1618
|
});
|
|
1608
1619
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1609
1620
|
}
|
|
@@ -1633,8 +1644,7 @@ const deserializeAws_restJson1CreateWorkloadCommandError = async (output, contex
|
|
|
1633
1644
|
body: await parseBody(output.body, context),
|
|
1634
1645
|
};
|
|
1635
1646
|
let response;
|
|
1636
|
-
|
|
1637
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1647
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1638
1648
|
switch (errorCode) {
|
|
1639
1649
|
case "AccessDeniedException":
|
|
1640
1650
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -1656,10 +1666,12 @@ const deserializeAws_restJson1CreateWorkloadCommandError = async (output, contex
|
|
|
1656
1666
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1657
1667
|
default:
|
|
1658
1668
|
const parsedBody = parsedOutput.body;
|
|
1669
|
+
const $metadata = deserializeMetadata(output);
|
|
1670
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1659
1671
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
1660
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1672
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1661
1673
|
$fault: "client",
|
|
1662
|
-
$metadata
|
|
1674
|
+
$metadata,
|
|
1663
1675
|
});
|
|
1664
1676
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1665
1677
|
}
|
|
@@ -1689,8 +1701,7 @@ const deserializeAws_restJson1CreateWorkloadShareCommandError = async (output, c
|
|
|
1689
1701
|
body: await parseBody(output.body, context),
|
|
1690
1702
|
};
|
|
1691
1703
|
let response;
|
|
1692
|
-
|
|
1693
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1704
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1694
1705
|
switch (errorCode) {
|
|
1695
1706
|
case "AccessDeniedException":
|
|
1696
1707
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -1715,10 +1726,12 @@ const deserializeAws_restJson1CreateWorkloadShareCommandError = async (output, c
|
|
|
1715
1726
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1716
1727
|
default:
|
|
1717
1728
|
const parsedBody = parsedOutput.body;
|
|
1729
|
+
const $metadata = deserializeMetadata(output);
|
|
1730
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1718
1731
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
1719
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1732
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1720
1733
|
$fault: "client",
|
|
1721
|
-
$metadata
|
|
1734
|
+
$metadata,
|
|
1722
1735
|
});
|
|
1723
1736
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1724
1737
|
}
|
|
@@ -1740,8 +1753,7 @@ const deserializeAws_restJson1DeleteLensCommandError = async (output, context) =
|
|
|
1740
1753
|
body: await parseBody(output.body, context),
|
|
1741
1754
|
};
|
|
1742
1755
|
let response;
|
|
1743
|
-
|
|
1744
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1756
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1745
1757
|
switch (errorCode) {
|
|
1746
1758
|
case "AccessDeniedException":
|
|
1747
1759
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -1763,10 +1775,12 @@ const deserializeAws_restJson1DeleteLensCommandError = async (output, context) =
|
|
|
1763
1775
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1764
1776
|
default:
|
|
1765
1777
|
const parsedBody = parsedOutput.body;
|
|
1778
|
+
const $metadata = deserializeMetadata(output);
|
|
1779
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1766
1780
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
1767
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1781
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1768
1782
|
$fault: "client",
|
|
1769
|
-
$metadata
|
|
1783
|
+
$metadata,
|
|
1770
1784
|
});
|
|
1771
1785
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1772
1786
|
}
|
|
@@ -1788,8 +1802,7 @@ const deserializeAws_restJson1DeleteLensShareCommandError = async (output, conte
|
|
|
1788
1802
|
body: await parseBody(output.body, context),
|
|
1789
1803
|
};
|
|
1790
1804
|
let response;
|
|
1791
|
-
|
|
1792
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1805
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1793
1806
|
switch (errorCode) {
|
|
1794
1807
|
case "AccessDeniedException":
|
|
1795
1808
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -1811,10 +1824,12 @@ const deserializeAws_restJson1DeleteLensShareCommandError = async (output, conte
|
|
|
1811
1824
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1812
1825
|
default:
|
|
1813
1826
|
const parsedBody = parsedOutput.body;
|
|
1827
|
+
const $metadata = deserializeMetadata(output);
|
|
1828
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1814
1829
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
1815
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1830
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1816
1831
|
$fault: "client",
|
|
1817
|
-
$metadata
|
|
1832
|
+
$metadata,
|
|
1818
1833
|
});
|
|
1819
1834
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1820
1835
|
}
|
|
@@ -1836,8 +1851,7 @@ const deserializeAws_restJson1DeleteWorkloadCommandError = async (output, contex
|
|
|
1836
1851
|
body: await parseBody(output.body, context),
|
|
1837
1852
|
};
|
|
1838
1853
|
let response;
|
|
1839
|
-
|
|
1840
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1854
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1841
1855
|
switch (errorCode) {
|
|
1842
1856
|
case "AccessDeniedException":
|
|
1843
1857
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -1859,10 +1873,12 @@ const deserializeAws_restJson1DeleteWorkloadCommandError = async (output, contex
|
|
|
1859
1873
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1860
1874
|
default:
|
|
1861
1875
|
const parsedBody = parsedOutput.body;
|
|
1876
|
+
const $metadata = deserializeMetadata(output);
|
|
1877
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1862
1878
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
1863
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1879
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1864
1880
|
$fault: "client",
|
|
1865
|
-
$metadata
|
|
1881
|
+
$metadata,
|
|
1866
1882
|
});
|
|
1867
1883
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1868
1884
|
}
|
|
@@ -1884,8 +1900,7 @@ const deserializeAws_restJson1DeleteWorkloadShareCommandError = async (output, c
|
|
|
1884
1900
|
body: await parseBody(output.body, context),
|
|
1885
1901
|
};
|
|
1886
1902
|
let response;
|
|
1887
|
-
|
|
1888
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1903
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1889
1904
|
switch (errorCode) {
|
|
1890
1905
|
case "AccessDeniedException":
|
|
1891
1906
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -1907,10 +1922,12 @@ const deserializeAws_restJson1DeleteWorkloadShareCommandError = async (output, c
|
|
|
1907
1922
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1908
1923
|
default:
|
|
1909
1924
|
const parsedBody = parsedOutput.body;
|
|
1925
|
+
const $metadata = deserializeMetadata(output);
|
|
1926
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1910
1927
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
1911
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1928
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1912
1929
|
$fault: "client",
|
|
1913
|
-
$metadata
|
|
1930
|
+
$metadata,
|
|
1914
1931
|
});
|
|
1915
1932
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1916
1933
|
}
|
|
@@ -1932,8 +1949,7 @@ const deserializeAws_restJson1DisassociateLensesCommandError = async (output, co
|
|
|
1932
1949
|
body: await parseBody(output.body, context),
|
|
1933
1950
|
};
|
|
1934
1951
|
let response;
|
|
1935
|
-
|
|
1936
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1952
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1937
1953
|
switch (errorCode) {
|
|
1938
1954
|
case "AccessDeniedException":
|
|
1939
1955
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -1955,10 +1971,12 @@ const deserializeAws_restJson1DisassociateLensesCommandError = async (output, co
|
|
|
1955
1971
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1956
1972
|
default:
|
|
1957
1973
|
const parsedBody = parsedOutput.body;
|
|
1974
|
+
const $metadata = deserializeMetadata(output);
|
|
1975
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1958
1976
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
1959
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1977
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1960
1978
|
$fault: "client",
|
|
1961
|
-
$metadata
|
|
1979
|
+
$metadata,
|
|
1962
1980
|
});
|
|
1963
1981
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1964
1982
|
}
|
|
@@ -1984,8 +2002,7 @@ const deserializeAws_restJson1ExportLensCommandError = async (output, context) =
|
|
|
1984
2002
|
body: await parseBody(output.body, context),
|
|
1985
2003
|
};
|
|
1986
2004
|
let response;
|
|
1987
|
-
|
|
1988
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2005
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1989
2006
|
switch (errorCode) {
|
|
1990
2007
|
case "AccessDeniedException":
|
|
1991
2008
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -2004,10 +2021,12 @@ const deserializeAws_restJson1ExportLensCommandError = async (output, context) =
|
|
|
2004
2021
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2005
2022
|
default:
|
|
2006
2023
|
const parsedBody = parsedOutput.body;
|
|
2024
|
+
const $metadata = deserializeMetadata(output);
|
|
2025
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2007
2026
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
2008
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2027
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2009
2028
|
$fault: "client",
|
|
2010
|
-
$metadata
|
|
2029
|
+
$metadata,
|
|
2011
2030
|
});
|
|
2012
2031
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2013
2032
|
}
|
|
@@ -2049,8 +2068,7 @@ const deserializeAws_restJson1GetAnswerCommandError = async (output, context) =>
|
|
|
2049
2068
|
body: await parseBody(output.body, context),
|
|
2050
2069
|
};
|
|
2051
2070
|
let response;
|
|
2052
|
-
|
|
2053
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2071
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2054
2072
|
switch (errorCode) {
|
|
2055
2073
|
case "AccessDeniedException":
|
|
2056
2074
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -2069,10 +2087,12 @@ const deserializeAws_restJson1GetAnswerCommandError = async (output, context) =>
|
|
|
2069
2087
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2070
2088
|
default:
|
|
2071
2089
|
const parsedBody = parsedOutput.body;
|
|
2090
|
+
const $metadata = deserializeMetadata(output);
|
|
2091
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2072
2092
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
2073
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2093
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2074
2094
|
$fault: "client",
|
|
2075
|
-
$metadata
|
|
2095
|
+
$metadata,
|
|
2076
2096
|
});
|
|
2077
2097
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2078
2098
|
}
|
|
@@ -2098,8 +2118,7 @@ const deserializeAws_restJson1GetLensCommandError = async (output, context) => {
|
|
|
2098
2118
|
body: await parseBody(output.body, context),
|
|
2099
2119
|
};
|
|
2100
2120
|
let response;
|
|
2101
|
-
|
|
2102
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2121
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2103
2122
|
switch (errorCode) {
|
|
2104
2123
|
case "AccessDeniedException":
|
|
2105
2124
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -2118,10 +2137,12 @@ const deserializeAws_restJson1GetLensCommandError = async (output, context) => {
|
|
|
2118
2137
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2119
2138
|
default:
|
|
2120
2139
|
const parsedBody = parsedOutput.body;
|
|
2140
|
+
const $metadata = deserializeMetadata(output);
|
|
2141
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2121
2142
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
2122
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2143
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2123
2144
|
$fault: "client",
|
|
2124
|
-
$metadata
|
|
2145
|
+
$metadata,
|
|
2125
2146
|
});
|
|
2126
2147
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2127
2148
|
}
|
|
@@ -2155,8 +2176,7 @@ const deserializeAws_restJson1GetLensReviewCommandError = async (output, context
|
|
|
2155
2176
|
body: await parseBody(output.body, context),
|
|
2156
2177
|
};
|
|
2157
2178
|
let response;
|
|
2158
|
-
|
|
2159
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2179
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2160
2180
|
switch (errorCode) {
|
|
2161
2181
|
case "AccessDeniedException":
|
|
2162
2182
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -2175,10 +2195,12 @@ const deserializeAws_restJson1GetLensReviewCommandError = async (output, context
|
|
|
2175
2195
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2176
2196
|
default:
|
|
2177
2197
|
const parsedBody = parsedOutput.body;
|
|
2198
|
+
const $metadata = deserializeMetadata(output);
|
|
2199
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2178
2200
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
2179
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2201
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2180
2202
|
$fault: "client",
|
|
2181
|
-
$metadata
|
|
2203
|
+
$metadata,
|
|
2182
2204
|
});
|
|
2183
2205
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2184
2206
|
}
|
|
@@ -2212,8 +2234,7 @@ const deserializeAws_restJson1GetLensReviewReportCommandError = async (output, c
|
|
|
2212
2234
|
body: await parseBody(output.body, context),
|
|
2213
2235
|
};
|
|
2214
2236
|
let response;
|
|
2215
|
-
|
|
2216
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2237
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2217
2238
|
switch (errorCode) {
|
|
2218
2239
|
case "AccessDeniedException":
|
|
2219
2240
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -2232,10 +2253,12 @@ const deserializeAws_restJson1GetLensReviewReportCommandError = async (output, c
|
|
|
2232
2253
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2233
2254
|
default:
|
|
2234
2255
|
const parsedBody = parsedOutput.body;
|
|
2256
|
+
const $metadata = deserializeMetadata(output);
|
|
2257
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2235
2258
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
2236
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2259
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2237
2260
|
$fault: "client",
|
|
2238
|
-
$metadata
|
|
2261
|
+
$metadata,
|
|
2239
2262
|
});
|
|
2240
2263
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2241
2264
|
}
|
|
@@ -2281,8 +2304,7 @@ const deserializeAws_restJson1GetLensVersionDifferenceCommandError = async (outp
|
|
|
2281
2304
|
body: await parseBody(output.body, context),
|
|
2282
2305
|
};
|
|
2283
2306
|
let response;
|
|
2284
|
-
|
|
2285
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2307
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2286
2308
|
switch (errorCode) {
|
|
2287
2309
|
case "AccessDeniedException":
|
|
2288
2310
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -2301,10 +2323,12 @@ const deserializeAws_restJson1GetLensVersionDifferenceCommandError = async (outp
|
|
|
2301
2323
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2302
2324
|
default:
|
|
2303
2325
|
const parsedBody = parsedOutput.body;
|
|
2326
|
+
const $metadata = deserializeMetadata(output);
|
|
2327
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2304
2328
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
2305
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2329
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2306
2330
|
$fault: "client",
|
|
2307
|
-
$metadata
|
|
2331
|
+
$metadata,
|
|
2308
2332
|
});
|
|
2309
2333
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2310
2334
|
}
|
|
@@ -2334,8 +2358,7 @@ const deserializeAws_restJson1GetMilestoneCommandError = async (output, context)
|
|
|
2334
2358
|
body: await parseBody(output.body, context),
|
|
2335
2359
|
};
|
|
2336
2360
|
let response;
|
|
2337
|
-
|
|
2338
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2361
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2339
2362
|
switch (errorCode) {
|
|
2340
2363
|
case "AccessDeniedException":
|
|
2341
2364
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -2354,10 +2377,12 @@ const deserializeAws_restJson1GetMilestoneCommandError = async (output, context)
|
|
|
2354
2377
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2355
2378
|
default:
|
|
2356
2379
|
const parsedBody = parsedOutput.body;
|
|
2380
|
+
const $metadata = deserializeMetadata(output);
|
|
2381
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2357
2382
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
2358
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2383
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2359
2384
|
$fault: "client",
|
|
2360
|
-
$metadata
|
|
2385
|
+
$metadata,
|
|
2361
2386
|
});
|
|
2362
2387
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2363
2388
|
}
|
|
@@ -2383,8 +2408,7 @@ const deserializeAws_restJson1GetWorkloadCommandError = async (output, context)
|
|
|
2383
2408
|
body: await parseBody(output.body, context),
|
|
2384
2409
|
};
|
|
2385
2410
|
let response;
|
|
2386
|
-
|
|
2387
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2411
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2388
2412
|
switch (errorCode) {
|
|
2389
2413
|
case "AccessDeniedException":
|
|
2390
2414
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -2403,10 +2427,12 @@ const deserializeAws_restJson1GetWorkloadCommandError = async (output, context)
|
|
|
2403
2427
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2404
2428
|
default:
|
|
2405
2429
|
const parsedBody = parsedOutput.body;
|
|
2430
|
+
const $metadata = deserializeMetadata(output);
|
|
2431
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2406
2432
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
2407
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2433
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2408
2434
|
$fault: "client",
|
|
2409
|
-
$metadata
|
|
2435
|
+
$metadata,
|
|
2410
2436
|
});
|
|
2411
2437
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2412
2438
|
}
|
|
@@ -2436,8 +2462,7 @@ const deserializeAws_restJson1ImportLensCommandError = async (output, context) =
|
|
|
2436
2462
|
body: await parseBody(output.body, context),
|
|
2437
2463
|
};
|
|
2438
2464
|
let response;
|
|
2439
|
-
|
|
2440
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2465
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2441
2466
|
switch (errorCode) {
|
|
2442
2467
|
case "AccessDeniedException":
|
|
2443
2468
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -2462,10 +2487,12 @@ const deserializeAws_restJson1ImportLensCommandError = async (output, context) =
|
|
|
2462
2487
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2463
2488
|
default:
|
|
2464
2489
|
const parsedBody = parsedOutput.body;
|
|
2490
|
+
const $metadata = deserializeMetadata(output);
|
|
2491
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2465
2492
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
2466
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2493
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2467
2494
|
$fault: "client",
|
|
2468
|
-
$metadata
|
|
2495
|
+
$metadata,
|
|
2469
2496
|
});
|
|
2470
2497
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2471
2498
|
}
|
|
@@ -2511,8 +2538,7 @@ const deserializeAws_restJson1ListAnswersCommandError = async (output, context)
|
|
|
2511
2538
|
body: await parseBody(output.body, context),
|
|
2512
2539
|
};
|
|
2513
2540
|
let response;
|
|
2514
|
-
|
|
2515
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2541
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2516
2542
|
switch (errorCode) {
|
|
2517
2543
|
case "AccessDeniedException":
|
|
2518
2544
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -2531,10 +2557,12 @@ const deserializeAws_restJson1ListAnswersCommandError = async (output, context)
|
|
|
2531
2557
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2532
2558
|
default:
|
|
2533
2559
|
const parsedBody = parsedOutput.body;
|
|
2560
|
+
const $metadata = deserializeMetadata(output);
|
|
2561
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2534
2562
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
2535
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2563
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2536
2564
|
$fault: "client",
|
|
2537
|
-
$metadata
|
|
2565
|
+
$metadata,
|
|
2538
2566
|
});
|
|
2539
2567
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2540
2568
|
}
|
|
@@ -2564,8 +2592,7 @@ const deserializeAws_restJson1ListLensesCommandError = async (output, context) =
|
|
|
2564
2592
|
body: await parseBody(output.body, context),
|
|
2565
2593
|
};
|
|
2566
2594
|
let response;
|
|
2567
|
-
|
|
2568
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2595
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2569
2596
|
switch (errorCode) {
|
|
2570
2597
|
case "AccessDeniedException":
|
|
2571
2598
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -2581,10 +2608,12 @@ const deserializeAws_restJson1ListLensesCommandError = async (output, context) =
|
|
|
2581
2608
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2582
2609
|
default:
|
|
2583
2610
|
const parsedBody = parsedOutput.body;
|
|
2611
|
+
const $metadata = deserializeMetadata(output);
|
|
2612
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2584
2613
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
2585
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2614
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2586
2615
|
$fault: "client",
|
|
2587
|
-
$metadata
|
|
2616
|
+
$metadata,
|
|
2588
2617
|
});
|
|
2589
2618
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2590
2619
|
}
|
|
@@ -2630,8 +2659,7 @@ const deserializeAws_restJson1ListLensReviewImprovementsCommandError = async (ou
|
|
|
2630
2659
|
body: await parseBody(output.body, context),
|
|
2631
2660
|
};
|
|
2632
2661
|
let response;
|
|
2633
|
-
|
|
2634
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2662
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2635
2663
|
switch (errorCode) {
|
|
2636
2664
|
case "AccessDeniedException":
|
|
2637
2665
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -2650,10 +2678,12 @@ const deserializeAws_restJson1ListLensReviewImprovementsCommandError = async (ou
|
|
|
2650
2678
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2651
2679
|
default:
|
|
2652
2680
|
const parsedBody = parsedOutput.body;
|
|
2681
|
+
const $metadata = deserializeMetadata(output);
|
|
2682
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2653
2683
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
2654
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2684
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2655
2685
|
$fault: "client",
|
|
2656
|
-
$metadata
|
|
2686
|
+
$metadata,
|
|
2657
2687
|
});
|
|
2658
2688
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2659
2689
|
}
|
|
@@ -2691,8 +2721,7 @@ const deserializeAws_restJson1ListLensReviewsCommandError = async (output, conte
|
|
|
2691
2721
|
body: await parseBody(output.body, context),
|
|
2692
2722
|
};
|
|
2693
2723
|
let response;
|
|
2694
|
-
|
|
2695
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2724
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2696
2725
|
switch (errorCode) {
|
|
2697
2726
|
case "AccessDeniedException":
|
|
2698
2727
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -2711,10 +2740,12 @@ const deserializeAws_restJson1ListLensReviewsCommandError = async (output, conte
|
|
|
2711
2740
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2712
2741
|
default:
|
|
2713
2742
|
const parsedBody = parsedOutput.body;
|
|
2743
|
+
const $metadata = deserializeMetadata(output);
|
|
2744
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2714
2745
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
2715
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2746
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2716
2747
|
$fault: "client",
|
|
2717
|
-
$metadata
|
|
2748
|
+
$metadata,
|
|
2718
2749
|
});
|
|
2719
2750
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2720
2751
|
}
|
|
@@ -2744,8 +2775,7 @@ const deserializeAws_restJson1ListLensSharesCommandError = async (output, contex
|
|
|
2744
2775
|
body: await parseBody(output.body, context),
|
|
2745
2776
|
};
|
|
2746
2777
|
let response;
|
|
2747
|
-
|
|
2748
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2778
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2749
2779
|
switch (errorCode) {
|
|
2750
2780
|
case "AccessDeniedException":
|
|
2751
2781
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -2764,10 +2794,12 @@ const deserializeAws_restJson1ListLensSharesCommandError = async (output, contex
|
|
|
2764
2794
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2765
2795
|
default:
|
|
2766
2796
|
const parsedBody = parsedOutput.body;
|
|
2797
|
+
const $metadata = deserializeMetadata(output);
|
|
2798
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2767
2799
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
2768
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2800
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2769
2801
|
$fault: "client",
|
|
2770
|
-
$metadata
|
|
2802
|
+
$metadata,
|
|
2771
2803
|
});
|
|
2772
2804
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2773
2805
|
}
|
|
@@ -2801,8 +2833,7 @@ const deserializeAws_restJson1ListMilestonesCommandError = async (output, contex
|
|
|
2801
2833
|
body: await parseBody(output.body, context),
|
|
2802
2834
|
};
|
|
2803
2835
|
let response;
|
|
2804
|
-
|
|
2805
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2836
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2806
2837
|
switch (errorCode) {
|
|
2807
2838
|
case "AccessDeniedException":
|
|
2808
2839
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -2821,10 +2852,12 @@ const deserializeAws_restJson1ListMilestonesCommandError = async (output, contex
|
|
|
2821
2852
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2822
2853
|
default:
|
|
2823
2854
|
const parsedBody = parsedOutput.body;
|
|
2855
|
+
const $metadata = deserializeMetadata(output);
|
|
2856
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2824
2857
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
2825
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2858
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2826
2859
|
$fault: "client",
|
|
2827
|
-
$metadata
|
|
2860
|
+
$metadata,
|
|
2828
2861
|
});
|
|
2829
2862
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2830
2863
|
}
|
|
@@ -2854,8 +2887,7 @@ const deserializeAws_restJson1ListNotificationsCommandError = async (output, con
|
|
|
2854
2887
|
body: await parseBody(output.body, context),
|
|
2855
2888
|
};
|
|
2856
2889
|
let response;
|
|
2857
|
-
|
|
2858
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2890
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2859
2891
|
switch (errorCode) {
|
|
2860
2892
|
case "AccessDeniedException":
|
|
2861
2893
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -2871,10 +2903,12 @@ const deserializeAws_restJson1ListNotificationsCommandError = async (output, con
|
|
|
2871
2903
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2872
2904
|
default:
|
|
2873
2905
|
const parsedBody = parsedOutput.body;
|
|
2906
|
+
const $metadata = deserializeMetadata(output);
|
|
2907
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2874
2908
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
2875
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2909
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2876
2910
|
$fault: "client",
|
|
2877
|
-
$metadata
|
|
2911
|
+
$metadata,
|
|
2878
2912
|
});
|
|
2879
2913
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2880
2914
|
}
|
|
@@ -2904,8 +2938,7 @@ const deserializeAws_restJson1ListShareInvitationsCommandError = async (output,
|
|
|
2904
2938
|
body: await parseBody(output.body, context),
|
|
2905
2939
|
};
|
|
2906
2940
|
let response;
|
|
2907
|
-
|
|
2908
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2941
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2909
2942
|
switch (errorCode) {
|
|
2910
2943
|
case "AccessDeniedException":
|
|
2911
2944
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -2921,10 +2954,12 @@ const deserializeAws_restJson1ListShareInvitationsCommandError = async (output,
|
|
|
2921
2954
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2922
2955
|
default:
|
|
2923
2956
|
const parsedBody = parsedOutput.body;
|
|
2957
|
+
const $metadata = deserializeMetadata(output);
|
|
2958
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2924
2959
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
2925
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2960
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2926
2961
|
$fault: "client",
|
|
2927
|
-
$metadata
|
|
2962
|
+
$metadata,
|
|
2928
2963
|
});
|
|
2929
2964
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2930
2965
|
}
|
|
@@ -2950,8 +2985,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2950
2985
|
body: await parseBody(output.body, context),
|
|
2951
2986
|
};
|
|
2952
2987
|
let response;
|
|
2953
|
-
|
|
2954
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2988
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2955
2989
|
switch (errorCode) {
|
|
2956
2990
|
case "InternalServerException":
|
|
2957
2991
|
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
@@ -2961,10 +2995,12 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2961
2995
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2962
2996
|
default:
|
|
2963
2997
|
const parsedBody = parsedOutput.body;
|
|
2998
|
+
const $metadata = deserializeMetadata(output);
|
|
2999
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2964
3000
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
2965
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3001
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2966
3002
|
$fault: "client",
|
|
2967
|
-
$metadata
|
|
3003
|
+
$metadata,
|
|
2968
3004
|
});
|
|
2969
3005
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2970
3006
|
}
|
|
@@ -2994,8 +3030,7 @@ const deserializeAws_restJson1ListWorkloadsCommandError = async (output, context
|
|
|
2994
3030
|
body: await parseBody(output.body, context),
|
|
2995
3031
|
};
|
|
2996
3032
|
let response;
|
|
2997
|
-
|
|
2998
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3033
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2999
3034
|
switch (errorCode) {
|
|
3000
3035
|
case "AccessDeniedException":
|
|
3001
3036
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -3011,10 +3046,12 @@ const deserializeAws_restJson1ListWorkloadsCommandError = async (output, context
|
|
|
3011
3046
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3012
3047
|
default:
|
|
3013
3048
|
const parsedBody = parsedOutput.body;
|
|
3049
|
+
const $metadata = deserializeMetadata(output);
|
|
3050
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3014
3051
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
3015
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3052
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3016
3053
|
$fault: "client",
|
|
3017
|
-
$metadata
|
|
3054
|
+
$metadata,
|
|
3018
3055
|
});
|
|
3019
3056
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3020
3057
|
}
|
|
@@ -3048,8 +3085,7 @@ const deserializeAws_restJson1ListWorkloadSharesCommandError = async (output, co
|
|
|
3048
3085
|
body: await parseBody(output.body, context),
|
|
3049
3086
|
};
|
|
3050
3087
|
let response;
|
|
3051
|
-
|
|
3052
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3088
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3053
3089
|
switch (errorCode) {
|
|
3054
3090
|
case "AccessDeniedException":
|
|
3055
3091
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -3068,10 +3104,12 @@ const deserializeAws_restJson1ListWorkloadSharesCommandError = async (output, co
|
|
|
3068
3104
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3069
3105
|
default:
|
|
3070
3106
|
const parsedBody = parsedOutput.body;
|
|
3107
|
+
const $metadata = deserializeMetadata(output);
|
|
3108
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3071
3109
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
3072
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3110
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3073
3111
|
$fault: "client",
|
|
3074
|
-
$metadata
|
|
3112
|
+
$metadata,
|
|
3075
3113
|
});
|
|
3076
3114
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3077
3115
|
}
|
|
@@ -3093,8 +3131,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
3093
3131
|
body: await parseBody(output.body, context),
|
|
3094
3132
|
};
|
|
3095
3133
|
let response;
|
|
3096
|
-
|
|
3097
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3134
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3098
3135
|
switch (errorCode) {
|
|
3099
3136
|
case "InternalServerException":
|
|
3100
3137
|
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
@@ -3104,10 +3141,12 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
3104
3141
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3105
3142
|
default:
|
|
3106
3143
|
const parsedBody = parsedOutput.body;
|
|
3144
|
+
const $metadata = deserializeMetadata(output);
|
|
3145
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3107
3146
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
3108
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3147
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3109
3148
|
$fault: "client",
|
|
3110
|
-
$metadata
|
|
3149
|
+
$metadata,
|
|
3111
3150
|
});
|
|
3112
3151
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3113
3152
|
}
|
|
@@ -3129,8 +3168,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
3129
3168
|
body: await parseBody(output.body, context),
|
|
3130
3169
|
};
|
|
3131
3170
|
let response;
|
|
3132
|
-
|
|
3133
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3171
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3134
3172
|
switch (errorCode) {
|
|
3135
3173
|
case "InternalServerException":
|
|
3136
3174
|
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
@@ -3140,10 +3178,12 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
3140
3178
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3141
3179
|
default:
|
|
3142
3180
|
const parsedBody = parsedOutput.body;
|
|
3181
|
+
const $metadata = deserializeMetadata(output);
|
|
3182
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3143
3183
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
3144
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3184
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3145
3185
|
$fault: "client",
|
|
3146
|
-
$metadata
|
|
3186
|
+
$metadata,
|
|
3147
3187
|
});
|
|
3148
3188
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3149
3189
|
}
|
|
@@ -3181,8 +3221,7 @@ const deserializeAws_restJson1UpdateAnswerCommandError = async (output, context)
|
|
|
3181
3221
|
body: await parseBody(output.body, context),
|
|
3182
3222
|
};
|
|
3183
3223
|
let response;
|
|
3184
|
-
|
|
3185
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3224
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3186
3225
|
switch (errorCode) {
|
|
3187
3226
|
case "AccessDeniedException":
|
|
3188
3227
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -3204,10 +3243,58 @@ const deserializeAws_restJson1UpdateAnswerCommandError = async (output, context)
|
|
|
3204
3243
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3205
3244
|
default:
|
|
3206
3245
|
const parsedBody = parsedOutput.body;
|
|
3246
|
+
const $metadata = deserializeMetadata(output);
|
|
3247
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3248
|
+
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
3249
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3250
|
+
$fault: "client",
|
|
3251
|
+
$metadata,
|
|
3252
|
+
});
|
|
3253
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3254
|
+
}
|
|
3255
|
+
};
|
|
3256
|
+
const deserializeAws_restJson1UpdateGlobalSettingsCommand = async (output, context) => {
|
|
3257
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3258
|
+
return deserializeAws_restJson1UpdateGlobalSettingsCommandError(output, context);
|
|
3259
|
+
}
|
|
3260
|
+
const contents = {
|
|
3261
|
+
$metadata: deserializeMetadata(output),
|
|
3262
|
+
};
|
|
3263
|
+
await collectBody(output.body, context);
|
|
3264
|
+
return Promise.resolve(contents);
|
|
3265
|
+
};
|
|
3266
|
+
exports.deserializeAws_restJson1UpdateGlobalSettingsCommand = deserializeAws_restJson1UpdateGlobalSettingsCommand;
|
|
3267
|
+
const deserializeAws_restJson1UpdateGlobalSettingsCommandError = async (output, context) => {
|
|
3268
|
+
const parsedOutput = {
|
|
3269
|
+
...output,
|
|
3270
|
+
body: await parseBody(output.body, context),
|
|
3271
|
+
};
|
|
3272
|
+
let response;
|
|
3273
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3274
|
+
switch (errorCode) {
|
|
3275
|
+
case "AccessDeniedException":
|
|
3276
|
+
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
3277
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3278
|
+
case "ConflictException":
|
|
3279
|
+
case "com.amazonaws.wellarchitected#ConflictException":
|
|
3280
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
3281
|
+
case "InternalServerException":
|
|
3282
|
+
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
3283
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3284
|
+
case "ThrottlingException":
|
|
3285
|
+
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
3286
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3287
|
+
case "ValidationException":
|
|
3288
|
+
case "com.amazonaws.wellarchitected#ValidationException":
|
|
3289
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3290
|
+
default:
|
|
3291
|
+
const parsedBody = parsedOutput.body;
|
|
3292
|
+
const $metadata = deserializeMetadata(output);
|
|
3293
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3207
3294
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
3208
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3295
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3209
3296
|
$fault: "client",
|
|
3210
|
-
$metadata
|
|
3297
|
+
$metadata,
|
|
3211
3298
|
});
|
|
3212
3299
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3213
3300
|
}
|
|
@@ -3237,8 +3324,7 @@ const deserializeAws_restJson1UpdateLensReviewCommandError = async (output, cont
|
|
|
3237
3324
|
body: await parseBody(output.body, context),
|
|
3238
3325
|
};
|
|
3239
3326
|
let response;
|
|
3240
|
-
|
|
3241
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3327
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3242
3328
|
switch (errorCode) {
|
|
3243
3329
|
case "AccessDeniedException":
|
|
3244
3330
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -3260,10 +3346,12 @@ const deserializeAws_restJson1UpdateLensReviewCommandError = async (output, cont
|
|
|
3260
3346
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3261
3347
|
default:
|
|
3262
3348
|
const parsedBody = parsedOutput.body;
|
|
3349
|
+
const $metadata = deserializeMetadata(output);
|
|
3350
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3263
3351
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
3264
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3352
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3265
3353
|
$fault: "client",
|
|
3266
|
-
$metadata
|
|
3354
|
+
$metadata,
|
|
3267
3355
|
});
|
|
3268
3356
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3269
3357
|
}
|
|
@@ -3289,8 +3377,7 @@ const deserializeAws_restJson1UpdateShareInvitationCommandError = async (output,
|
|
|
3289
3377
|
body: await parseBody(output.body, context),
|
|
3290
3378
|
};
|
|
3291
3379
|
let response;
|
|
3292
|
-
|
|
3293
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3380
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3294
3381
|
switch (errorCode) {
|
|
3295
3382
|
case "AccessDeniedException":
|
|
3296
3383
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -3312,10 +3399,12 @@ const deserializeAws_restJson1UpdateShareInvitationCommandError = async (output,
|
|
|
3312
3399
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3313
3400
|
default:
|
|
3314
3401
|
const parsedBody = parsedOutput.body;
|
|
3402
|
+
const $metadata = deserializeMetadata(output);
|
|
3403
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3315
3404
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
3316
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3405
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3317
3406
|
$fault: "client",
|
|
3318
|
-
$metadata
|
|
3407
|
+
$metadata,
|
|
3319
3408
|
});
|
|
3320
3409
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3321
3410
|
}
|
|
@@ -3341,8 +3430,7 @@ const deserializeAws_restJson1UpdateWorkloadCommandError = async (output, contex
|
|
|
3341
3430
|
body: await parseBody(output.body, context),
|
|
3342
3431
|
};
|
|
3343
3432
|
let response;
|
|
3344
|
-
|
|
3345
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3433
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3346
3434
|
switch (errorCode) {
|
|
3347
3435
|
case "AccessDeniedException":
|
|
3348
3436
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -3364,10 +3452,12 @@ const deserializeAws_restJson1UpdateWorkloadCommandError = async (output, contex
|
|
|
3364
3452
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3365
3453
|
default:
|
|
3366
3454
|
const parsedBody = parsedOutput.body;
|
|
3455
|
+
const $metadata = deserializeMetadata(output);
|
|
3456
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3367
3457
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
3368
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3458
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3369
3459
|
$fault: "client",
|
|
3370
|
-
$metadata
|
|
3460
|
+
$metadata,
|
|
3371
3461
|
});
|
|
3372
3462
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3373
3463
|
}
|
|
@@ -3397,8 +3487,7 @@ const deserializeAws_restJson1UpdateWorkloadShareCommandError = async (output, c
|
|
|
3397
3487
|
body: await parseBody(output.body, context),
|
|
3398
3488
|
};
|
|
3399
3489
|
let response;
|
|
3400
|
-
|
|
3401
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3490
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3402
3491
|
switch (errorCode) {
|
|
3403
3492
|
case "AccessDeniedException":
|
|
3404
3493
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -3420,10 +3509,12 @@ const deserializeAws_restJson1UpdateWorkloadShareCommandError = async (output, c
|
|
|
3420
3509
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3421
3510
|
default:
|
|
3422
3511
|
const parsedBody = parsedOutput.body;
|
|
3512
|
+
const $metadata = deserializeMetadata(output);
|
|
3513
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3423
3514
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
3424
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3515
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3425
3516
|
$fault: "client",
|
|
3426
|
-
$metadata
|
|
3517
|
+
$metadata,
|
|
3427
3518
|
});
|
|
3428
3519
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3429
3520
|
}
|
|
@@ -3445,8 +3536,7 @@ const deserializeAws_restJson1UpgradeLensReviewCommandError = async (output, con
|
|
|
3445
3536
|
body: await parseBody(output.body, context),
|
|
3446
3537
|
};
|
|
3447
3538
|
let response;
|
|
3448
|
-
|
|
3449
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3539
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3450
3540
|
switch (errorCode) {
|
|
3451
3541
|
case "AccessDeniedException":
|
|
3452
3542
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -3468,10 +3558,12 @@ const deserializeAws_restJson1UpgradeLensReviewCommandError = async (output, con
|
|
|
3468
3558
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3469
3559
|
default:
|
|
3470
3560
|
const parsedBody = parsedOutput.body;
|
|
3561
|
+
const $metadata = deserializeMetadata(output);
|
|
3562
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3471
3563
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
3472
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3564
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3473
3565
|
$fault: "client",
|
|
3474
|
-
$metadata
|
|
3566
|
+
$metadata,
|
|
3475
3567
|
});
|
|
3476
3568
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3477
3569
|
}
|
|
@@ -3598,9 +3690,9 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
3598
3690
|
};
|
|
3599
3691
|
const serializeAws_restJson1ChoiceUpdate = (input, context) => {
|
|
3600
3692
|
return {
|
|
3601
|
-
...(input.Notes
|
|
3602
|
-
...(input.Reason
|
|
3603
|
-
...(input.Status
|
|
3693
|
+
...(input.Notes != null && { Notes: input.Notes }),
|
|
3694
|
+
...(input.Reason != null && { Reason: input.Reason }),
|
|
3695
|
+
...(input.Status != null && { Status: input.Status }),
|
|
3604
3696
|
};
|
|
3605
3697
|
};
|
|
3606
3698
|
const serializeAws_restJson1ChoiceUpdates = (input, context) => {
|
|
@@ -3708,9 +3800,7 @@ const serializeAws_restJson1WorkloadPillarPriorities = (input, context) => {
|
|
|
3708
3800
|
};
|
|
3709
3801
|
const deserializeAws_restJson1AdditionalResources = (output, context) => {
|
|
3710
3802
|
return {
|
|
3711
|
-
Content: output.Content
|
|
3712
|
-
? deserializeAws_restJson1Urls(output.Content, context)
|
|
3713
|
-
: undefined,
|
|
3803
|
+
Content: output.Content != null ? deserializeAws_restJson1Urls(output.Content, context) : undefined,
|
|
3714
3804
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
3715
3805
|
};
|
|
3716
3806
|
};
|
|
@@ -3727,12 +3817,8 @@ const deserializeAws_restJson1AdditionalResourcesList = (output, context) => {
|
|
|
3727
3817
|
};
|
|
3728
3818
|
const deserializeAws_restJson1Answer = (output, context) => {
|
|
3729
3819
|
return {
|
|
3730
|
-
ChoiceAnswers: output.ChoiceAnswers
|
|
3731
|
-
|
|
3732
|
-
: undefined,
|
|
3733
|
-
Choices: output.Choices !== undefined && output.Choices !== null
|
|
3734
|
-
? deserializeAws_restJson1Choices(output.Choices, context)
|
|
3735
|
-
: undefined,
|
|
3820
|
+
ChoiceAnswers: output.ChoiceAnswers != null ? deserializeAws_restJson1ChoiceAnswers(output.ChoiceAnswers, context) : undefined,
|
|
3821
|
+
Choices: output.Choices != null ? deserializeAws_restJson1Choices(output.Choices, context) : undefined,
|
|
3736
3822
|
HelpfulResourceDisplayText: (0, smithy_client_1.expectString)(output.HelpfulResourceDisplayText),
|
|
3737
3823
|
HelpfulResourceUrl: (0, smithy_client_1.expectString)(output.HelpfulResourceUrl),
|
|
3738
3824
|
ImprovementPlanUrl: (0, smithy_client_1.expectString)(output.ImprovementPlanUrl),
|
|
@@ -3744,7 +3830,7 @@ const deserializeAws_restJson1Answer = (output, context) => {
|
|
|
3744
3830
|
QuestionTitle: (0, smithy_client_1.expectString)(output.QuestionTitle),
|
|
3745
3831
|
Reason: (0, smithy_client_1.expectString)(output.Reason),
|
|
3746
3832
|
Risk: (0, smithy_client_1.expectString)(output.Risk),
|
|
3747
|
-
SelectedChoices: output.SelectedChoices
|
|
3833
|
+
SelectedChoices: output.SelectedChoices != null
|
|
3748
3834
|
? deserializeAws_restJson1SelectedChoices(output.SelectedChoices, context)
|
|
3749
3835
|
: undefined,
|
|
3750
3836
|
};
|
|
@@ -3762,34 +3848,32 @@ const deserializeAws_restJson1AnswerSummaries = (output, context) => {
|
|
|
3762
3848
|
};
|
|
3763
3849
|
const deserializeAws_restJson1AnswerSummary = (output, context) => {
|
|
3764
3850
|
return {
|
|
3765
|
-
ChoiceAnswerSummaries: output.ChoiceAnswerSummaries
|
|
3851
|
+
ChoiceAnswerSummaries: output.ChoiceAnswerSummaries != null
|
|
3766
3852
|
? deserializeAws_restJson1ChoiceAnswerSummaries(output.ChoiceAnswerSummaries, context)
|
|
3767
3853
|
: undefined,
|
|
3768
|
-
Choices: output.Choices
|
|
3769
|
-
? deserializeAws_restJson1Choices(output.Choices, context)
|
|
3770
|
-
: undefined,
|
|
3854
|
+
Choices: output.Choices != null ? deserializeAws_restJson1Choices(output.Choices, context) : undefined,
|
|
3771
3855
|
IsApplicable: (0, smithy_client_1.expectBoolean)(output.IsApplicable),
|
|
3772
3856
|
PillarId: (0, smithy_client_1.expectString)(output.PillarId),
|
|
3773
3857
|
QuestionId: (0, smithy_client_1.expectString)(output.QuestionId),
|
|
3774
3858
|
QuestionTitle: (0, smithy_client_1.expectString)(output.QuestionTitle),
|
|
3775
3859
|
Reason: (0, smithy_client_1.expectString)(output.Reason),
|
|
3776
3860
|
Risk: (0, smithy_client_1.expectString)(output.Risk),
|
|
3777
|
-
SelectedChoices: output.SelectedChoices
|
|
3861
|
+
SelectedChoices: output.SelectedChoices != null
|
|
3778
3862
|
? deserializeAws_restJson1SelectedChoices(output.SelectedChoices, context)
|
|
3779
3863
|
: undefined,
|
|
3780
3864
|
};
|
|
3781
3865
|
};
|
|
3782
3866
|
const deserializeAws_restJson1Choice = (output, context) => {
|
|
3783
3867
|
return {
|
|
3784
|
-
AdditionalResources: output.AdditionalResources
|
|
3868
|
+
AdditionalResources: output.AdditionalResources != null
|
|
3785
3869
|
? deserializeAws_restJson1AdditionalResourcesList(output.AdditionalResources, context)
|
|
3786
3870
|
: undefined,
|
|
3787
3871
|
ChoiceId: (0, smithy_client_1.expectString)(output.ChoiceId),
|
|
3788
3872
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
3789
|
-
HelpfulResource: output.HelpfulResource
|
|
3873
|
+
HelpfulResource: output.HelpfulResource != null
|
|
3790
3874
|
? deserializeAws_restJson1ChoiceContent(output.HelpfulResource, context)
|
|
3791
3875
|
: undefined,
|
|
3792
|
-
ImprovementPlan: output.ImprovementPlan
|
|
3876
|
+
ImprovementPlan: output.ImprovementPlan != null
|
|
3793
3877
|
? deserializeAws_restJson1ChoiceContent(output.ImprovementPlan, context)
|
|
3794
3878
|
: undefined,
|
|
3795
3879
|
Title: (0, smithy_client_1.expectString)(output.Title),
|
|
@@ -3881,7 +3965,7 @@ const deserializeAws_restJson1ImprovementSummaries = (output, context) => {
|
|
|
3881
3965
|
const deserializeAws_restJson1ImprovementSummary = (output, context) => {
|
|
3882
3966
|
return {
|
|
3883
3967
|
ImprovementPlanUrl: (0, smithy_client_1.expectString)(output.ImprovementPlanUrl),
|
|
3884
|
-
ImprovementPlans: output.ImprovementPlans
|
|
3968
|
+
ImprovementPlans: output.ImprovementPlans != null
|
|
3885
3969
|
? deserializeAws_restJson1ChoiceImprovementPlans(output.ImprovementPlans, context)
|
|
3886
3970
|
: undefined,
|
|
3887
3971
|
PillarId: (0, smithy_client_1.expectString)(output.PillarId),
|
|
@@ -3898,9 +3982,7 @@ const deserializeAws_restJson1Lens = (output, context) => {
|
|
|
3898
3982
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
3899
3983
|
Owner: (0, smithy_client_1.expectString)(output.Owner),
|
|
3900
3984
|
ShareInvitationId: (0, smithy_client_1.expectString)(output.ShareInvitationId),
|
|
3901
|
-
Tags: output.Tags
|
|
3902
|
-
? deserializeAws_restJson1TagMap(output.Tags, context)
|
|
3903
|
-
: undefined,
|
|
3985
|
+
Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
|
|
3904
3986
|
};
|
|
3905
3987
|
};
|
|
3906
3988
|
const deserializeAws_restJson1LensReview = (output, context) => {
|
|
@@ -3912,15 +3994,11 @@ const deserializeAws_restJson1LensReview = (output, context) => {
|
|
|
3912
3994
|
LensVersion: (0, smithy_client_1.expectString)(output.LensVersion),
|
|
3913
3995
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3914
3996
|
Notes: (0, smithy_client_1.expectString)(output.Notes),
|
|
3915
|
-
PillarReviewSummaries: output.PillarReviewSummaries
|
|
3997
|
+
PillarReviewSummaries: output.PillarReviewSummaries != null
|
|
3916
3998
|
? deserializeAws_restJson1PillarReviewSummaries(output.PillarReviewSummaries, context)
|
|
3917
3999
|
: undefined,
|
|
3918
|
-
RiskCounts: output.RiskCounts
|
|
3919
|
-
|
|
3920
|
-
: undefined,
|
|
3921
|
-
UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
|
|
3922
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt)))
|
|
3923
|
-
: undefined,
|
|
4000
|
+
RiskCounts: output.RiskCounts != null ? deserializeAws_restJson1RiskCounts(output.RiskCounts, context) : undefined,
|
|
4001
|
+
UpdatedAt: output.UpdatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt))) : undefined,
|
|
3924
4002
|
};
|
|
3925
4003
|
};
|
|
3926
4004
|
const deserializeAws_restJson1LensReviewReport = (output, context) => {
|
|
@@ -3948,12 +4026,8 @@ const deserializeAws_restJson1LensReviewSummary = (output, context) => {
|
|
|
3948
4026
|
LensName: (0, smithy_client_1.expectString)(output.LensName),
|
|
3949
4027
|
LensStatus: (0, smithy_client_1.expectString)(output.LensStatus),
|
|
3950
4028
|
LensVersion: (0, smithy_client_1.expectString)(output.LensVersion),
|
|
3951
|
-
RiskCounts: output.RiskCounts
|
|
3952
|
-
|
|
3953
|
-
: undefined,
|
|
3954
|
-
UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
|
|
3955
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt)))
|
|
3956
|
-
: undefined,
|
|
4029
|
+
RiskCounts: output.RiskCounts != null ? deserializeAws_restJson1RiskCounts(output.RiskCounts, context) : undefined,
|
|
4030
|
+
UpdatedAt: output.UpdatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt))) : undefined,
|
|
3957
4031
|
};
|
|
3958
4032
|
};
|
|
3959
4033
|
const deserializeAws_restJson1LensShareSummaries = (output, context) => {
|
|
@@ -3972,6 +4046,7 @@ const deserializeAws_restJson1LensShareSummary = (output, context) => {
|
|
|
3972
4046
|
ShareId: (0, smithy_client_1.expectString)(output.ShareId),
|
|
3973
4047
|
SharedWith: (0, smithy_client_1.expectString)(output.SharedWith),
|
|
3974
4048
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
4049
|
+
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
3975
4050
|
};
|
|
3976
4051
|
};
|
|
3977
4052
|
const deserializeAws_restJson1LensSummaries = (output, context) => {
|
|
@@ -3987,9 +4062,7 @@ const deserializeAws_restJson1LensSummaries = (output, context) => {
|
|
|
3987
4062
|
};
|
|
3988
4063
|
const deserializeAws_restJson1LensSummary = (output, context) => {
|
|
3989
4064
|
return {
|
|
3990
|
-
CreatedAt: output.CreatedAt
|
|
3991
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
|
|
3992
|
-
: undefined,
|
|
4065
|
+
CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
|
|
3993
4066
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
3994
4067
|
LensAlias: (0, smithy_client_1.expectString)(output.LensAlias),
|
|
3995
4068
|
LensArn: (0, smithy_client_1.expectString)(output.LensArn),
|
|
@@ -3998,9 +4071,7 @@ const deserializeAws_restJson1LensSummary = (output, context) => {
|
|
|
3998
4071
|
LensType: (0, smithy_client_1.expectString)(output.LensType),
|
|
3999
4072
|
LensVersion: (0, smithy_client_1.expectString)(output.LensVersion),
|
|
4000
4073
|
Owner: (0, smithy_client_1.expectString)(output.Owner),
|
|
4001
|
-
UpdatedAt: output.UpdatedAt
|
|
4002
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt)))
|
|
4003
|
-
: undefined,
|
|
4074
|
+
UpdatedAt: output.UpdatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt))) : undefined,
|
|
4004
4075
|
};
|
|
4005
4076
|
};
|
|
4006
4077
|
const deserializeAws_restJson1LensUpgradeSummary = (output, context) => {
|
|
@@ -4017,12 +4088,8 @@ const deserializeAws_restJson1Milestone = (output, context) => {
|
|
|
4017
4088
|
return {
|
|
4018
4089
|
MilestoneName: (0, smithy_client_1.expectString)(output.MilestoneName),
|
|
4019
4090
|
MilestoneNumber: (0, smithy_client_1.expectInt32)(output.MilestoneNumber),
|
|
4020
|
-
RecordedAt: output.RecordedAt
|
|
4021
|
-
|
|
4022
|
-
: undefined,
|
|
4023
|
-
Workload: output.Workload !== undefined && output.Workload !== null
|
|
4024
|
-
? deserializeAws_restJson1Workload(output.Workload, context)
|
|
4025
|
-
: undefined,
|
|
4091
|
+
RecordedAt: output.RecordedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.RecordedAt))) : undefined,
|
|
4092
|
+
Workload: output.Workload != null ? deserializeAws_restJson1Workload(output.Workload, context) : undefined,
|
|
4026
4093
|
};
|
|
4027
4094
|
};
|
|
4028
4095
|
const deserializeAws_restJson1MilestoneSummaries = (output, context) => {
|
|
@@ -4040,10 +4107,8 @@ const deserializeAws_restJson1MilestoneSummary = (output, context) => {
|
|
|
4040
4107
|
return {
|
|
4041
4108
|
MilestoneName: (0, smithy_client_1.expectString)(output.MilestoneName),
|
|
4042
4109
|
MilestoneNumber: (0, smithy_client_1.expectInt32)(output.MilestoneNumber),
|
|
4043
|
-
RecordedAt: output.RecordedAt
|
|
4044
|
-
|
|
4045
|
-
: undefined,
|
|
4046
|
-
WorkloadSummary: output.WorkloadSummary !== undefined && output.WorkloadSummary !== null
|
|
4110
|
+
RecordedAt: output.RecordedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.RecordedAt))) : undefined,
|
|
4111
|
+
WorkloadSummary: output.WorkloadSummary != null
|
|
4047
4112
|
? deserializeAws_restJson1WorkloadSummary(output.WorkloadSummary, context)
|
|
4048
4113
|
: undefined,
|
|
4049
4114
|
};
|
|
@@ -4061,7 +4126,7 @@ const deserializeAws_restJson1NotificationSummaries = (output, context) => {
|
|
|
4061
4126
|
};
|
|
4062
4127
|
const deserializeAws_restJson1NotificationSummary = (output, context) => {
|
|
4063
4128
|
return {
|
|
4064
|
-
LensUpgradeSummary: output.LensUpgradeSummary
|
|
4129
|
+
LensUpgradeSummary: output.LensUpgradeSummary != null
|
|
4065
4130
|
? deserializeAws_restJson1LensUpgradeSummary(output.LensUpgradeSummary, context)
|
|
4066
4131
|
: undefined,
|
|
4067
4132
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
@@ -4072,7 +4137,7 @@ const deserializeAws_restJson1PillarDifference = (output, context) => {
|
|
|
4072
4137
|
DifferenceStatus: (0, smithy_client_1.expectString)(output.DifferenceStatus),
|
|
4073
4138
|
PillarId: (0, smithy_client_1.expectString)(output.PillarId),
|
|
4074
4139
|
PillarName: (0, smithy_client_1.expectString)(output.PillarName),
|
|
4075
|
-
QuestionDifferences: output.QuestionDifferences
|
|
4140
|
+
QuestionDifferences: output.QuestionDifferences != null
|
|
4076
4141
|
? deserializeAws_restJson1QuestionDifferences(output.QuestionDifferences, context)
|
|
4077
4142
|
: undefined,
|
|
4078
4143
|
};
|
|
@@ -4104,9 +4169,7 @@ const deserializeAws_restJson1PillarReviewSummary = (output, context) => {
|
|
|
4104
4169
|
Notes: (0, smithy_client_1.expectString)(output.Notes),
|
|
4105
4170
|
PillarId: (0, smithy_client_1.expectString)(output.PillarId),
|
|
4106
4171
|
PillarName: (0, smithy_client_1.expectString)(output.PillarName),
|
|
4107
|
-
RiskCounts: output.RiskCounts
|
|
4108
|
-
? deserializeAws_restJson1RiskCounts(output.RiskCounts, context)
|
|
4109
|
-
: undefined,
|
|
4172
|
+
RiskCounts: output.RiskCounts != null ? deserializeAws_restJson1RiskCounts(output.RiskCounts, context) : undefined,
|
|
4110
4173
|
};
|
|
4111
4174
|
};
|
|
4112
4175
|
const deserializeAws_restJson1QuestionDifference = (output, context) => {
|
|
@@ -4223,51 +4286,39 @@ const deserializeAws_restJson1ValidationExceptionFieldList = (output, context) =
|
|
|
4223
4286
|
};
|
|
4224
4287
|
const deserializeAws_restJson1VersionDifferences = (output, context) => {
|
|
4225
4288
|
return {
|
|
4226
|
-
PillarDifferences: output.PillarDifferences
|
|
4289
|
+
PillarDifferences: output.PillarDifferences != null
|
|
4227
4290
|
? deserializeAws_restJson1PillarDifferences(output.PillarDifferences, context)
|
|
4228
4291
|
: undefined,
|
|
4229
4292
|
};
|
|
4230
4293
|
};
|
|
4231
4294
|
const deserializeAws_restJson1Workload = (output, context) => {
|
|
4232
4295
|
return {
|
|
4233
|
-
AccountIds: output.AccountIds
|
|
4234
|
-
? deserializeAws_restJson1WorkloadAccountIds(output.AccountIds, context)
|
|
4235
|
-
: undefined,
|
|
4296
|
+
AccountIds: output.AccountIds != null ? deserializeAws_restJson1WorkloadAccountIds(output.AccountIds, context) : undefined,
|
|
4236
4297
|
ArchitecturalDesign: (0, smithy_client_1.expectString)(output.ArchitecturalDesign),
|
|
4237
|
-
AwsRegions: output.AwsRegions
|
|
4238
|
-
? deserializeAws_restJson1WorkloadAwsRegions(output.AwsRegions, context)
|
|
4239
|
-
: undefined,
|
|
4298
|
+
AwsRegions: output.AwsRegions != null ? deserializeAws_restJson1WorkloadAwsRegions(output.AwsRegions, context) : undefined,
|
|
4240
4299
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
4241
4300
|
Environment: (0, smithy_client_1.expectString)(output.Environment),
|
|
4242
4301
|
ImprovementStatus: (0, smithy_client_1.expectString)(output.ImprovementStatus),
|
|
4243
4302
|
Industry: (0, smithy_client_1.expectString)(output.Industry),
|
|
4244
4303
|
IndustryType: (0, smithy_client_1.expectString)(output.IndustryType),
|
|
4245
4304
|
IsReviewOwnerUpdateAcknowledged: (0, smithy_client_1.expectBoolean)(output.IsReviewOwnerUpdateAcknowledged),
|
|
4246
|
-
Lenses: output.Lenses
|
|
4247
|
-
|
|
4248
|
-
: undefined,
|
|
4249
|
-
NonAwsRegions: output.NonAwsRegions !== undefined && output.NonAwsRegions !== null
|
|
4305
|
+
Lenses: output.Lenses != null ? deserializeAws_restJson1WorkloadLenses(output.Lenses, context) : undefined,
|
|
4306
|
+
NonAwsRegions: output.NonAwsRegions != null
|
|
4250
4307
|
? deserializeAws_restJson1WorkloadNonAwsRegions(output.NonAwsRegions, context)
|
|
4251
4308
|
: undefined,
|
|
4252
4309
|
Notes: (0, smithy_client_1.expectString)(output.Notes),
|
|
4253
4310
|
Owner: (0, smithy_client_1.expectString)(output.Owner),
|
|
4254
|
-
PillarPriorities: output.PillarPriorities
|
|
4311
|
+
PillarPriorities: output.PillarPriorities != null
|
|
4255
4312
|
? deserializeAws_restJson1WorkloadPillarPriorities(output.PillarPriorities, context)
|
|
4256
4313
|
: undefined,
|
|
4257
4314
|
ReviewOwner: (0, smithy_client_1.expectString)(output.ReviewOwner),
|
|
4258
|
-
ReviewRestrictionDate: output.ReviewRestrictionDate
|
|
4315
|
+
ReviewRestrictionDate: output.ReviewRestrictionDate != null
|
|
4259
4316
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ReviewRestrictionDate)))
|
|
4260
4317
|
: undefined,
|
|
4261
|
-
RiskCounts: output.RiskCounts
|
|
4262
|
-
? deserializeAws_restJson1RiskCounts(output.RiskCounts, context)
|
|
4263
|
-
: undefined,
|
|
4318
|
+
RiskCounts: output.RiskCounts != null ? deserializeAws_restJson1RiskCounts(output.RiskCounts, context) : undefined,
|
|
4264
4319
|
ShareInvitationId: (0, smithy_client_1.expectString)(output.ShareInvitationId),
|
|
4265
|
-
Tags: output.Tags
|
|
4266
|
-
|
|
4267
|
-
: undefined,
|
|
4268
|
-
UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
|
|
4269
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt)))
|
|
4270
|
-
: undefined,
|
|
4320
|
+
Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
|
|
4321
|
+
UpdatedAt: output.UpdatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt))) : undefined,
|
|
4271
4322
|
WorkloadArn: (0, smithy_client_1.expectString)(output.WorkloadArn),
|
|
4272
4323
|
WorkloadId: (0, smithy_client_1.expectString)(output.WorkloadId),
|
|
4273
4324
|
WorkloadName: (0, smithy_client_1.expectString)(output.WorkloadName),
|
|
@@ -4356,6 +4407,7 @@ const deserializeAws_restJson1WorkloadShareSummary = (output, context) => {
|
|
|
4356
4407
|
ShareId: (0, smithy_client_1.expectString)(output.ShareId),
|
|
4357
4408
|
SharedWith: (0, smithy_client_1.expectString)(output.SharedWith),
|
|
4358
4409
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
4410
|
+
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
4359
4411
|
};
|
|
4360
4412
|
};
|
|
4361
4413
|
const deserializeAws_restJson1WorkloadSummaries = (output, context) => {
|
|
@@ -4372,16 +4424,10 @@ const deserializeAws_restJson1WorkloadSummaries = (output, context) => {
|
|
|
4372
4424
|
const deserializeAws_restJson1WorkloadSummary = (output, context) => {
|
|
4373
4425
|
return {
|
|
4374
4426
|
ImprovementStatus: (0, smithy_client_1.expectString)(output.ImprovementStatus),
|
|
4375
|
-
Lenses: output.Lenses
|
|
4376
|
-
? deserializeAws_restJson1WorkloadLenses(output.Lenses, context)
|
|
4377
|
-
: undefined,
|
|
4427
|
+
Lenses: output.Lenses != null ? deserializeAws_restJson1WorkloadLenses(output.Lenses, context) : undefined,
|
|
4378
4428
|
Owner: (0, smithy_client_1.expectString)(output.Owner),
|
|
4379
|
-
RiskCounts: output.RiskCounts
|
|
4380
|
-
|
|
4381
|
-
: undefined,
|
|
4382
|
-
UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
|
|
4383
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt)))
|
|
4384
|
-
: undefined,
|
|
4429
|
+
RiskCounts: output.RiskCounts != null ? deserializeAws_restJson1RiskCounts(output.RiskCounts, context) : undefined,
|
|
4430
|
+
UpdatedAt: output.UpdatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt))) : undefined,
|
|
4385
4431
|
WorkloadArn: (0, smithy_client_1.expectString)(output.WorkloadArn),
|
|
4386
4432
|
WorkloadId: (0, smithy_client_1.expectString)(output.WorkloadId),
|
|
4387
4433
|
WorkloadName: (0, smithy_client_1.expectString)(output.WorkloadName),
|
|
@@ -4436,5 +4482,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
4436
4482
|
if (data["__type"] !== undefined) {
|
|
4437
4483
|
return sanitizeErrorCode(data["__type"]);
|
|
4438
4484
|
}
|
|
4439
|
-
return "";
|
|
4440
4485
|
};
|