@aws-sdk/client-wellarchitected 3.306.0 → 3.310.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/dist-cjs/commands/AssociateLensesCommand.js +2 -2
- package/dist-cjs/commands/CreateLensShareCommand.js +2 -2
- package/dist-cjs/commands/CreateLensVersionCommand.js +2 -2
- package/dist-cjs/commands/CreateMilestoneCommand.js +2 -2
- package/dist-cjs/commands/CreateWorkloadCommand.js +2 -2
- package/dist-cjs/commands/CreateWorkloadShareCommand.js +2 -2
- package/dist-cjs/commands/DeleteLensCommand.js +2 -2
- package/dist-cjs/commands/DeleteLensShareCommand.js +2 -2
- package/dist-cjs/commands/DeleteWorkloadCommand.js +2 -2
- package/dist-cjs/commands/DeleteWorkloadShareCommand.js +2 -2
- package/dist-cjs/commands/DisassociateLensesCommand.js +2 -2
- package/dist-cjs/commands/ExportLensCommand.js +2 -2
- package/dist-cjs/commands/GetAnswerCommand.js +2 -2
- package/dist-cjs/commands/GetConsolidatedReportCommand.js +2 -2
- package/dist-cjs/commands/GetLensCommand.js +2 -2
- package/dist-cjs/commands/GetLensReviewCommand.js +2 -2
- package/dist-cjs/commands/GetLensReviewReportCommand.js +2 -2
- package/dist-cjs/commands/GetLensVersionDifferenceCommand.js +2 -2
- package/dist-cjs/commands/GetMilestoneCommand.js +2 -2
- package/dist-cjs/commands/GetWorkloadCommand.js +2 -2
- package/dist-cjs/commands/ImportLensCommand.js +2 -2
- package/dist-cjs/commands/ListAnswersCommand.js +2 -2
- package/dist-cjs/commands/ListCheckDetailsCommand.js +2 -2
- package/dist-cjs/commands/ListCheckSummariesCommand.js +2 -2
- package/dist-cjs/commands/ListLensReviewImprovementsCommand.js +2 -2
- package/dist-cjs/commands/ListLensReviewsCommand.js +2 -2
- package/dist-cjs/commands/ListLensSharesCommand.js +2 -2
- package/dist-cjs/commands/ListLensesCommand.js +2 -2
- package/dist-cjs/commands/ListMilestonesCommand.js +2 -2
- package/dist-cjs/commands/ListNotificationsCommand.js +2 -2
- package/dist-cjs/commands/ListShareInvitationsCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/ListWorkloadSharesCommand.js +2 -2
- package/dist-cjs/commands/ListWorkloadsCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateAnswerCommand.js +2 -2
- package/dist-cjs/commands/UpdateGlobalSettingsCommand.js +2 -2
- package/dist-cjs/commands/UpdateLensReviewCommand.js +2 -2
- package/dist-cjs/commands/UpdateShareInvitationCommand.js +2 -2
- package/dist-cjs/commands/UpdateWorkloadCommand.js +2 -2
- package/dist-cjs/commands/UpdateWorkloadShareCommand.js +2 -2
- package/dist-cjs/commands/UpgradeLensReviewCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +697 -747
- package/dist-es/commands/AssociateLensesCommand.js +3 -3
- package/dist-es/commands/CreateLensShareCommand.js +3 -3
- package/dist-es/commands/CreateLensVersionCommand.js +3 -3
- package/dist-es/commands/CreateMilestoneCommand.js +3 -3
- package/dist-es/commands/CreateWorkloadCommand.js +3 -3
- package/dist-es/commands/CreateWorkloadShareCommand.js +3 -3
- package/dist-es/commands/DeleteLensCommand.js +3 -3
- package/dist-es/commands/DeleteLensShareCommand.js +3 -3
- package/dist-es/commands/DeleteWorkloadCommand.js +3 -3
- package/dist-es/commands/DeleteWorkloadShareCommand.js +3 -3
- package/dist-es/commands/DisassociateLensesCommand.js +3 -3
- package/dist-es/commands/ExportLensCommand.js +3 -3
- package/dist-es/commands/GetAnswerCommand.js +3 -3
- package/dist-es/commands/GetConsolidatedReportCommand.js +3 -3
- package/dist-es/commands/GetLensCommand.js +3 -3
- package/dist-es/commands/GetLensReviewCommand.js +3 -3
- package/dist-es/commands/GetLensReviewReportCommand.js +3 -3
- package/dist-es/commands/GetLensVersionDifferenceCommand.js +3 -3
- package/dist-es/commands/GetMilestoneCommand.js +3 -3
- package/dist-es/commands/GetWorkloadCommand.js +3 -3
- package/dist-es/commands/ImportLensCommand.js +3 -3
- package/dist-es/commands/ListAnswersCommand.js +3 -3
- package/dist-es/commands/ListCheckDetailsCommand.js +3 -3
- package/dist-es/commands/ListCheckSummariesCommand.js +3 -3
- package/dist-es/commands/ListLensReviewImprovementsCommand.js +3 -3
- package/dist-es/commands/ListLensReviewsCommand.js +3 -3
- package/dist-es/commands/ListLensSharesCommand.js +3 -3
- package/dist-es/commands/ListLensesCommand.js +3 -3
- package/dist-es/commands/ListMilestonesCommand.js +3 -3
- package/dist-es/commands/ListNotificationsCommand.js +3 -3
- package/dist-es/commands/ListShareInvitationsCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/ListWorkloadSharesCommand.js +3 -3
- package/dist-es/commands/ListWorkloadsCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateAnswerCommand.js +3 -3
- package/dist-es/commands/UpdateGlobalSettingsCommand.js +3 -3
- package/dist-es/commands/UpdateLensReviewCommand.js +3 -3
- package/dist-es/commands/UpdateShareInvitationCommand.js +3 -3
- package/dist-es/commands/UpdateWorkloadCommand.js +3 -3
- package/dist-es/commands/UpdateWorkloadShareCommand.js +3 -3
- package/dist-es/commands/UpgradeLensReviewCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +609 -659
- package/dist-types/protocols/Aws_restJson1.d.ts +344 -86
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +86 -86
- package/package.json +35 -35
|
@@ -3,7 +3,7 @@ import { decorateServiceException as __decorateServiceException, expectBoolean a
|
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
5
5
|
import { WellArchitectedServiceException as __BaseException } from "../models/WellArchitectedServiceException";
|
|
6
|
-
export const
|
|
6
|
+
export const se_AssociateLensesCommand = async (input, context) => {
|
|
7
7
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
8
8
|
const headers = {
|
|
9
9
|
"content-type": "application/json",
|
|
@@ -12,7 +12,7 @@ export const serializeAws_restJson1AssociateLensesCommand = async (input, contex
|
|
|
12
12
|
resolvedPath = __resolvedPath(resolvedPath, input, "WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
|
|
13
13
|
let body;
|
|
14
14
|
body = JSON.stringify({
|
|
15
|
-
...(input.LensAliases != null && { LensAliases:
|
|
15
|
+
...(input.LensAliases != null && { LensAliases: se_LensAliases(input.LensAliases, context) }),
|
|
16
16
|
});
|
|
17
17
|
return new __HttpRequest({
|
|
18
18
|
protocol,
|
|
@@ -24,7 +24,7 @@ export const serializeAws_restJson1AssociateLensesCommand = async (input, contex
|
|
|
24
24
|
body,
|
|
25
25
|
});
|
|
26
26
|
};
|
|
27
|
-
export const
|
|
27
|
+
export const se_CreateLensShareCommand = async (input, context) => {
|
|
28
28
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
29
29
|
const headers = {
|
|
30
30
|
"content-type": "application/json",
|
|
@@ -46,7 +46,7 @@ export const serializeAws_restJson1CreateLensShareCommand = async (input, contex
|
|
|
46
46
|
body,
|
|
47
47
|
});
|
|
48
48
|
};
|
|
49
|
-
export const
|
|
49
|
+
export const se_CreateLensVersionCommand = async (input, context) => {
|
|
50
50
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
51
51
|
const headers = {
|
|
52
52
|
"content-type": "application/json",
|
|
@@ -69,7 +69,7 @@ export const serializeAws_restJson1CreateLensVersionCommand = async (input, cont
|
|
|
69
69
|
body,
|
|
70
70
|
});
|
|
71
71
|
};
|
|
72
|
-
export const
|
|
72
|
+
export const se_CreateMilestoneCommand = async (input, context) => {
|
|
73
73
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
74
74
|
const headers = {
|
|
75
75
|
"content-type": "application/json",
|
|
@@ -91,7 +91,7 @@ export const serializeAws_restJson1CreateMilestoneCommand = async (input, contex
|
|
|
91
91
|
body,
|
|
92
92
|
});
|
|
93
93
|
};
|
|
94
|
-
export const
|
|
94
|
+
export const se_CreateWorkloadCommand = async (input, context) => {
|
|
95
95
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
96
96
|
const headers = {
|
|
97
97
|
"content-type": "application/json",
|
|
@@ -99,34 +99,26 @@ export const serializeAws_restJson1CreateWorkloadCommand = async (input, context
|
|
|
99
99
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workloads";
|
|
100
100
|
let body;
|
|
101
101
|
body = JSON.stringify({
|
|
102
|
-
...(input.AccountIds != null && {
|
|
103
|
-
|
|
104
|
-
}),
|
|
105
|
-
...(input.Applications != null && {
|
|
106
|
-
Applications: serializeAws_restJson1WorkloadApplications(input.Applications, context),
|
|
107
|
-
}),
|
|
102
|
+
...(input.AccountIds != null && { AccountIds: se_WorkloadAccountIds(input.AccountIds, context) }),
|
|
103
|
+
...(input.Applications != null && { Applications: se_WorkloadApplications(input.Applications, context) }),
|
|
108
104
|
...(input.ArchitecturalDesign != null && { ArchitecturalDesign: input.ArchitecturalDesign }),
|
|
109
|
-
...(input.AwsRegions != null && {
|
|
110
|
-
AwsRegions: serializeAws_restJson1WorkloadAwsRegions(input.AwsRegions, context),
|
|
111
|
-
}),
|
|
105
|
+
...(input.AwsRegions != null && { AwsRegions: se_WorkloadAwsRegions(input.AwsRegions, context) }),
|
|
112
106
|
ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
|
|
113
107
|
...(input.Description != null && { Description: input.Description }),
|
|
114
108
|
...(input.DiscoveryConfig != null && {
|
|
115
|
-
DiscoveryConfig:
|
|
109
|
+
DiscoveryConfig: se_WorkloadDiscoveryConfig(input.DiscoveryConfig, context),
|
|
116
110
|
}),
|
|
117
111
|
...(input.Environment != null && { Environment: input.Environment }),
|
|
118
112
|
...(input.Industry != null && { Industry: input.Industry }),
|
|
119
113
|
...(input.IndustryType != null && { IndustryType: input.IndustryType }),
|
|
120
|
-
...(input.Lenses != null && { Lenses:
|
|
121
|
-
...(input.NonAwsRegions != null && {
|
|
122
|
-
NonAwsRegions: serializeAws_restJson1WorkloadNonAwsRegions(input.NonAwsRegions, context),
|
|
123
|
-
}),
|
|
114
|
+
...(input.Lenses != null && { Lenses: se_WorkloadLenses(input.Lenses, context) }),
|
|
115
|
+
...(input.NonAwsRegions != null && { NonAwsRegions: se_WorkloadNonAwsRegions(input.NonAwsRegions, context) }),
|
|
124
116
|
...(input.Notes != null && { Notes: input.Notes }),
|
|
125
117
|
...(input.PillarPriorities != null && {
|
|
126
|
-
PillarPriorities:
|
|
118
|
+
PillarPriorities: se_WorkloadPillarPriorities(input.PillarPriorities, context),
|
|
127
119
|
}),
|
|
128
120
|
...(input.ReviewOwner != null && { ReviewOwner: input.ReviewOwner }),
|
|
129
|
-
...(input.Tags != null && { Tags:
|
|
121
|
+
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
130
122
|
...(input.WorkloadName != null && { WorkloadName: input.WorkloadName }),
|
|
131
123
|
});
|
|
132
124
|
return new __HttpRequest({
|
|
@@ -139,7 +131,7 @@ export const serializeAws_restJson1CreateWorkloadCommand = async (input, context
|
|
|
139
131
|
body,
|
|
140
132
|
});
|
|
141
133
|
};
|
|
142
|
-
export const
|
|
134
|
+
export const se_CreateWorkloadShareCommand = async (input, context) => {
|
|
143
135
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
144
136
|
const headers = {
|
|
145
137
|
"content-type": "application/json",
|
|
@@ -162,7 +154,7 @@ export const serializeAws_restJson1CreateWorkloadShareCommand = async (input, co
|
|
|
162
154
|
body,
|
|
163
155
|
});
|
|
164
156
|
};
|
|
165
|
-
export const
|
|
157
|
+
export const se_DeleteLensCommand = async (input, context) => {
|
|
166
158
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
167
159
|
const headers = {};
|
|
168
160
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/lenses/{LensAlias}";
|
|
@@ -183,7 +175,7 @@ export const serializeAws_restJson1DeleteLensCommand = async (input, context) =>
|
|
|
183
175
|
body,
|
|
184
176
|
});
|
|
185
177
|
};
|
|
186
|
-
export const
|
|
178
|
+
export const se_DeleteLensShareCommand = async (input, context) => {
|
|
187
179
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
188
180
|
const headers = {};
|
|
189
181
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/lenses/{LensAlias}/shares/{ShareId}";
|
|
@@ -204,7 +196,7 @@ export const serializeAws_restJson1DeleteLensShareCommand = async (input, contex
|
|
|
204
196
|
body,
|
|
205
197
|
});
|
|
206
198
|
};
|
|
207
|
-
export const
|
|
199
|
+
export const se_DeleteWorkloadCommand = async (input, context) => {
|
|
208
200
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
209
201
|
const headers = {};
|
|
210
202
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workloads/{WorkloadId}";
|
|
@@ -224,7 +216,7 @@ export const serializeAws_restJson1DeleteWorkloadCommand = async (input, context
|
|
|
224
216
|
body,
|
|
225
217
|
});
|
|
226
218
|
};
|
|
227
|
-
export const
|
|
219
|
+
export const se_DeleteWorkloadShareCommand = async (input, context) => {
|
|
228
220
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
229
221
|
const headers = {};
|
|
230
222
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workloads/{WorkloadId}/shares/{ShareId}";
|
|
@@ -245,7 +237,7 @@ export const serializeAws_restJson1DeleteWorkloadShareCommand = async (input, co
|
|
|
245
237
|
body,
|
|
246
238
|
});
|
|
247
239
|
};
|
|
248
|
-
export const
|
|
240
|
+
export const se_DisassociateLensesCommand = async (input, context) => {
|
|
249
241
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
250
242
|
const headers = {
|
|
251
243
|
"content-type": "application/json",
|
|
@@ -255,7 +247,7 @@ export const serializeAws_restJson1DisassociateLensesCommand = async (input, con
|
|
|
255
247
|
resolvedPath = __resolvedPath(resolvedPath, input, "WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
|
|
256
248
|
let body;
|
|
257
249
|
body = JSON.stringify({
|
|
258
|
-
...(input.LensAliases != null && { LensAliases:
|
|
250
|
+
...(input.LensAliases != null && { LensAliases: se_LensAliases(input.LensAliases, context) }),
|
|
259
251
|
});
|
|
260
252
|
return new __HttpRequest({
|
|
261
253
|
protocol,
|
|
@@ -267,7 +259,7 @@ export const serializeAws_restJson1DisassociateLensesCommand = async (input, con
|
|
|
267
259
|
body,
|
|
268
260
|
});
|
|
269
261
|
};
|
|
270
|
-
export const
|
|
262
|
+
export const se_ExportLensCommand = async (input, context) => {
|
|
271
263
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
272
264
|
const headers = {};
|
|
273
265
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/lenses/{LensAlias}/export";
|
|
@@ -287,7 +279,7 @@ export const serializeAws_restJson1ExportLensCommand = async (input, context) =>
|
|
|
287
279
|
body,
|
|
288
280
|
});
|
|
289
281
|
};
|
|
290
|
-
export const
|
|
282
|
+
export const se_GetAnswerCommand = async (input, context) => {
|
|
291
283
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
292
284
|
const headers = {};
|
|
293
285
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -310,7 +302,7 @@ export const serializeAws_restJson1GetAnswerCommand = async (input, context) =>
|
|
|
310
302
|
body,
|
|
311
303
|
});
|
|
312
304
|
};
|
|
313
|
-
export const
|
|
305
|
+
export const se_GetConsolidatedReportCommand = async (input, context) => {
|
|
314
306
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
315
307
|
const headers = {};
|
|
316
308
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/consolidatedReport";
|
|
@@ -335,7 +327,7 @@ export const serializeAws_restJson1GetConsolidatedReportCommand = async (input,
|
|
|
335
327
|
body,
|
|
336
328
|
});
|
|
337
329
|
};
|
|
338
|
-
export const
|
|
330
|
+
export const se_GetLensCommand = async (input, context) => {
|
|
339
331
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
340
332
|
const headers = {};
|
|
341
333
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/lenses/{LensAlias}";
|
|
@@ -355,7 +347,7 @@ export const serializeAws_restJson1GetLensCommand = async (input, context) => {
|
|
|
355
347
|
body,
|
|
356
348
|
});
|
|
357
349
|
};
|
|
358
|
-
export const
|
|
350
|
+
export const se_GetLensReviewCommand = async (input, context) => {
|
|
359
351
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
360
352
|
const headers = {};
|
|
361
353
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -377,7 +369,7 @@ export const serializeAws_restJson1GetLensReviewCommand = async (input, context)
|
|
|
377
369
|
body,
|
|
378
370
|
});
|
|
379
371
|
};
|
|
380
|
-
export const
|
|
372
|
+
export const se_GetLensReviewReportCommand = async (input, context) => {
|
|
381
373
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
382
374
|
const headers = {};
|
|
383
375
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -399,7 +391,7 @@ export const serializeAws_restJson1GetLensReviewReportCommand = async (input, co
|
|
|
399
391
|
body,
|
|
400
392
|
});
|
|
401
393
|
};
|
|
402
|
-
export const
|
|
394
|
+
export const se_GetLensVersionDifferenceCommand = async (input, context) => {
|
|
403
395
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
404
396
|
const headers = {};
|
|
405
397
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/lenses/{LensAlias}/versionDifference";
|
|
@@ -420,7 +412,7 @@ export const serializeAws_restJson1GetLensVersionDifferenceCommand = async (inpu
|
|
|
420
412
|
body,
|
|
421
413
|
});
|
|
422
414
|
};
|
|
423
|
-
export const
|
|
415
|
+
export const se_GetMilestoneCommand = async (input, context) => {
|
|
424
416
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
425
417
|
const headers = {};
|
|
426
418
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -438,7 +430,7 @@ export const serializeAws_restJson1GetMilestoneCommand = async (input, context)
|
|
|
438
430
|
body,
|
|
439
431
|
});
|
|
440
432
|
};
|
|
441
|
-
export const
|
|
433
|
+
export const se_GetWorkloadCommand = async (input, context) => {
|
|
442
434
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
443
435
|
const headers = {};
|
|
444
436
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workloads/{WorkloadId}";
|
|
@@ -454,7 +446,7 @@ export const serializeAws_restJson1GetWorkloadCommand = async (input, context) =
|
|
|
454
446
|
body,
|
|
455
447
|
});
|
|
456
448
|
};
|
|
457
|
-
export const
|
|
449
|
+
export const se_ImportLensCommand = async (input, context) => {
|
|
458
450
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
459
451
|
const headers = {
|
|
460
452
|
"content-type": "application/json",
|
|
@@ -465,7 +457,7 @@ export const serializeAws_restJson1ImportLensCommand = async (input, context) =>
|
|
|
465
457
|
ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
|
|
466
458
|
...(input.JSONString != null && { JSONString: input.JSONString }),
|
|
467
459
|
...(input.LensAlias != null && { LensAlias: input.LensAlias }),
|
|
468
|
-
...(input.Tags != null && { Tags:
|
|
460
|
+
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
469
461
|
});
|
|
470
462
|
return new __HttpRequest({
|
|
471
463
|
protocol,
|
|
@@ -477,7 +469,7 @@ export const serializeAws_restJson1ImportLensCommand = async (input, context) =>
|
|
|
477
469
|
body,
|
|
478
470
|
});
|
|
479
471
|
};
|
|
480
|
-
export const
|
|
472
|
+
export const se_ListAnswersCommand = async (input, context) => {
|
|
481
473
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
482
474
|
const headers = {};
|
|
483
475
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -502,7 +494,7 @@ export const serializeAws_restJson1ListAnswersCommand = async (input, context) =
|
|
|
502
494
|
body,
|
|
503
495
|
});
|
|
504
496
|
};
|
|
505
|
-
export const
|
|
497
|
+
export const se_ListCheckDetailsCommand = async (input, context) => {
|
|
506
498
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
507
499
|
const headers = {
|
|
508
500
|
"content-type": "application/json",
|
|
@@ -528,7 +520,7 @@ export const serializeAws_restJson1ListCheckDetailsCommand = async (input, conte
|
|
|
528
520
|
body,
|
|
529
521
|
});
|
|
530
522
|
};
|
|
531
|
-
export const
|
|
523
|
+
export const se_ListCheckSummariesCommand = async (input, context) => {
|
|
532
524
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
533
525
|
const headers = {
|
|
534
526
|
"content-type": "application/json",
|
|
@@ -554,7 +546,7 @@ export const serializeAws_restJson1ListCheckSummariesCommand = async (input, con
|
|
|
554
546
|
body,
|
|
555
547
|
});
|
|
556
548
|
};
|
|
557
|
-
export const
|
|
549
|
+
export const se_ListLensesCommand = async (input, context) => {
|
|
558
550
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
559
551
|
const headers = {};
|
|
560
552
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/lenses";
|
|
@@ -577,7 +569,7 @@ export const serializeAws_restJson1ListLensesCommand = async (input, context) =>
|
|
|
577
569
|
body,
|
|
578
570
|
});
|
|
579
571
|
};
|
|
580
|
-
export const
|
|
572
|
+
export const se_ListLensReviewImprovementsCommand = async (input, context) => {
|
|
581
573
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
582
574
|
const headers = {};
|
|
583
575
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -602,7 +594,7 @@ export const serializeAws_restJson1ListLensReviewImprovementsCommand = async (in
|
|
|
602
594
|
body,
|
|
603
595
|
});
|
|
604
596
|
};
|
|
605
|
-
export const
|
|
597
|
+
export const se_ListLensReviewsCommand = async (input, context) => {
|
|
606
598
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
607
599
|
const headers = {};
|
|
608
600
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workloads/{WorkloadId}/lensReviews";
|
|
@@ -624,7 +616,7 @@ export const serializeAws_restJson1ListLensReviewsCommand = async (input, contex
|
|
|
624
616
|
body,
|
|
625
617
|
});
|
|
626
618
|
};
|
|
627
|
-
export const
|
|
619
|
+
export const se_ListLensSharesCommand = async (input, context) => {
|
|
628
620
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
629
621
|
const headers = {};
|
|
630
622
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/lenses/{LensAlias}/shares";
|
|
@@ -647,7 +639,7 @@ export const serializeAws_restJson1ListLensSharesCommand = async (input, context
|
|
|
647
639
|
body,
|
|
648
640
|
});
|
|
649
641
|
};
|
|
650
|
-
export const
|
|
642
|
+
export const se_ListMilestonesCommand = async (input, context) => {
|
|
651
643
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
652
644
|
const headers = {
|
|
653
645
|
"content-type": "application/json",
|
|
@@ -670,7 +662,7 @@ export const serializeAws_restJson1ListMilestonesCommand = async (input, context
|
|
|
670
662
|
body,
|
|
671
663
|
});
|
|
672
664
|
};
|
|
673
|
-
export const
|
|
665
|
+
export const se_ListNotificationsCommand = async (input, context) => {
|
|
674
666
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
675
667
|
const headers = {
|
|
676
668
|
"content-type": "application/json",
|
|
@@ -692,7 +684,7 @@ export const serializeAws_restJson1ListNotificationsCommand = async (input, cont
|
|
|
692
684
|
body,
|
|
693
685
|
});
|
|
694
686
|
};
|
|
695
|
-
export const
|
|
687
|
+
export const se_ListShareInvitationsCommand = async (input, context) => {
|
|
696
688
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
697
689
|
const headers = {};
|
|
698
690
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/shareInvitations";
|
|
@@ -715,7 +707,7 @@ export const serializeAws_restJson1ListShareInvitationsCommand = async (input, c
|
|
|
715
707
|
body,
|
|
716
708
|
});
|
|
717
709
|
};
|
|
718
|
-
export const
|
|
710
|
+
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
719
711
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
720
712
|
const headers = {};
|
|
721
713
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{WorkloadArn}";
|
|
@@ -731,7 +723,7 @@ export const serializeAws_restJson1ListTagsForResourceCommand = async (input, co
|
|
|
731
723
|
body,
|
|
732
724
|
});
|
|
733
725
|
};
|
|
734
|
-
export const
|
|
726
|
+
export const se_ListWorkloadsCommand = async (input, context) => {
|
|
735
727
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
736
728
|
const headers = {
|
|
737
729
|
"content-type": "application/json",
|
|
@@ -753,7 +745,7 @@ export const serializeAws_restJson1ListWorkloadsCommand = async (input, context)
|
|
|
753
745
|
body,
|
|
754
746
|
});
|
|
755
747
|
};
|
|
756
|
-
export const
|
|
748
|
+
export const se_ListWorkloadSharesCommand = async (input, context) => {
|
|
757
749
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
758
750
|
const headers = {};
|
|
759
751
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workloads/{WorkloadId}/shares";
|
|
@@ -776,7 +768,7 @@ export const serializeAws_restJson1ListWorkloadSharesCommand = async (input, con
|
|
|
776
768
|
body,
|
|
777
769
|
});
|
|
778
770
|
};
|
|
779
|
-
export const
|
|
771
|
+
export const se_TagResourceCommand = async (input, context) => {
|
|
780
772
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
781
773
|
const headers = {
|
|
782
774
|
"content-type": "application/json",
|
|
@@ -785,7 +777,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
|
|
|
785
777
|
resolvedPath = __resolvedPath(resolvedPath, input, "WorkloadArn", () => input.WorkloadArn, "{WorkloadArn}", false);
|
|
786
778
|
let body;
|
|
787
779
|
body = JSON.stringify({
|
|
788
|
-
...(input.Tags != null && { Tags:
|
|
780
|
+
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
789
781
|
});
|
|
790
782
|
return new __HttpRequest({
|
|
791
783
|
protocol,
|
|
@@ -797,7 +789,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
|
|
|
797
789
|
body,
|
|
798
790
|
});
|
|
799
791
|
};
|
|
800
|
-
export const
|
|
792
|
+
export const se_UntagResourceCommand = async (input, context) => {
|
|
801
793
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
802
794
|
const headers = {};
|
|
803
795
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{WorkloadArn}";
|
|
@@ -820,7 +812,7 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
|
|
|
820
812
|
body,
|
|
821
813
|
});
|
|
822
814
|
};
|
|
823
|
-
export const
|
|
815
|
+
export const se_UpdateAnswerCommand = async (input, context) => {
|
|
824
816
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
825
817
|
const headers = {
|
|
826
818
|
"content-type": "application/json",
|
|
@@ -832,15 +824,11 @@ export const serializeAws_restJson1UpdateAnswerCommand = async (input, context)
|
|
|
832
824
|
resolvedPath = __resolvedPath(resolvedPath, input, "QuestionId", () => input.QuestionId, "{QuestionId}", false);
|
|
833
825
|
let body;
|
|
834
826
|
body = JSON.stringify({
|
|
835
|
-
...(input.ChoiceUpdates != null && {
|
|
836
|
-
ChoiceUpdates: serializeAws_restJson1ChoiceUpdates(input.ChoiceUpdates, context),
|
|
837
|
-
}),
|
|
827
|
+
...(input.ChoiceUpdates != null && { ChoiceUpdates: se_ChoiceUpdates(input.ChoiceUpdates, context) }),
|
|
838
828
|
...(input.IsApplicable != null && { IsApplicable: input.IsApplicable }),
|
|
839
829
|
...(input.Notes != null && { Notes: input.Notes }),
|
|
840
830
|
...(input.Reason != null && { Reason: input.Reason }),
|
|
841
|
-
...(input.SelectedChoices != null && {
|
|
842
|
-
SelectedChoices: serializeAws_restJson1SelectedChoices(input.SelectedChoices, context),
|
|
843
|
-
}),
|
|
831
|
+
...(input.SelectedChoices != null && { SelectedChoices: se_SelectedChoices(input.SelectedChoices, context) }),
|
|
844
832
|
});
|
|
845
833
|
return new __HttpRequest({
|
|
846
834
|
protocol,
|
|
@@ -852,7 +840,7 @@ export const serializeAws_restJson1UpdateAnswerCommand = async (input, context)
|
|
|
852
840
|
body,
|
|
853
841
|
});
|
|
854
842
|
};
|
|
855
|
-
export const
|
|
843
|
+
export const se_UpdateGlobalSettingsCommand = async (input, context) => {
|
|
856
844
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
857
845
|
const headers = {
|
|
858
846
|
"content-type": "application/json",
|
|
@@ -872,7 +860,7 @@ export const serializeAws_restJson1UpdateGlobalSettingsCommand = async (input, c
|
|
|
872
860
|
body,
|
|
873
861
|
});
|
|
874
862
|
};
|
|
875
|
-
export const
|
|
863
|
+
export const se_UpdateLensReviewCommand = async (input, context) => {
|
|
876
864
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
877
865
|
const headers = {
|
|
878
866
|
"content-type": "application/json",
|
|
@@ -884,7 +872,7 @@ export const serializeAws_restJson1UpdateLensReviewCommand = async (input, conte
|
|
|
884
872
|
let body;
|
|
885
873
|
body = JSON.stringify({
|
|
886
874
|
...(input.LensNotes != null && { LensNotes: input.LensNotes }),
|
|
887
|
-
...(input.PillarNotes != null && { PillarNotes:
|
|
875
|
+
...(input.PillarNotes != null && { PillarNotes: se_PillarNotes(input.PillarNotes, context) }),
|
|
888
876
|
});
|
|
889
877
|
return new __HttpRequest({
|
|
890
878
|
protocol,
|
|
@@ -896,7 +884,7 @@ export const serializeAws_restJson1UpdateLensReviewCommand = async (input, conte
|
|
|
896
884
|
body,
|
|
897
885
|
});
|
|
898
886
|
};
|
|
899
|
-
export const
|
|
887
|
+
export const se_UpdateShareInvitationCommand = async (input, context) => {
|
|
900
888
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
901
889
|
const headers = {
|
|
902
890
|
"content-type": "application/json",
|
|
@@ -917,7 +905,7 @@ export const serializeAws_restJson1UpdateShareInvitationCommand = async (input,
|
|
|
917
905
|
body,
|
|
918
906
|
});
|
|
919
907
|
};
|
|
920
|
-
export const
|
|
908
|
+
export const se_UpdateWorkloadCommand = async (input, context) => {
|
|
921
909
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
922
910
|
const headers = {
|
|
923
911
|
"content-type": "application/json",
|
|
@@ -926,19 +914,13 @@ export const serializeAws_restJson1UpdateWorkloadCommand = async (input, context
|
|
|
926
914
|
resolvedPath = __resolvedPath(resolvedPath, input, "WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
|
|
927
915
|
let body;
|
|
928
916
|
body = JSON.stringify({
|
|
929
|
-
...(input.AccountIds != null && {
|
|
930
|
-
|
|
931
|
-
}),
|
|
932
|
-
...(input.Applications != null && {
|
|
933
|
-
Applications: serializeAws_restJson1WorkloadApplications(input.Applications, context),
|
|
934
|
-
}),
|
|
917
|
+
...(input.AccountIds != null && { AccountIds: se_WorkloadAccountIds(input.AccountIds, context) }),
|
|
918
|
+
...(input.Applications != null && { Applications: se_WorkloadApplications(input.Applications, context) }),
|
|
935
919
|
...(input.ArchitecturalDesign != null && { ArchitecturalDesign: input.ArchitecturalDesign }),
|
|
936
|
-
...(input.AwsRegions != null && {
|
|
937
|
-
AwsRegions: serializeAws_restJson1WorkloadAwsRegions(input.AwsRegions, context),
|
|
938
|
-
}),
|
|
920
|
+
...(input.AwsRegions != null && { AwsRegions: se_WorkloadAwsRegions(input.AwsRegions, context) }),
|
|
939
921
|
...(input.Description != null && { Description: input.Description }),
|
|
940
922
|
...(input.DiscoveryConfig != null && {
|
|
941
|
-
DiscoveryConfig:
|
|
923
|
+
DiscoveryConfig: se_WorkloadDiscoveryConfig(input.DiscoveryConfig, context),
|
|
942
924
|
}),
|
|
943
925
|
...(input.Environment != null && { Environment: input.Environment }),
|
|
944
926
|
...(input.ImprovementStatus != null && { ImprovementStatus: input.ImprovementStatus }),
|
|
@@ -947,12 +929,10 @@ export const serializeAws_restJson1UpdateWorkloadCommand = async (input, context
|
|
|
947
929
|
...(input.IsReviewOwnerUpdateAcknowledged != null && {
|
|
948
930
|
IsReviewOwnerUpdateAcknowledged: input.IsReviewOwnerUpdateAcknowledged,
|
|
949
931
|
}),
|
|
950
|
-
...(input.NonAwsRegions != null && {
|
|
951
|
-
NonAwsRegions: serializeAws_restJson1WorkloadNonAwsRegions(input.NonAwsRegions, context),
|
|
952
|
-
}),
|
|
932
|
+
...(input.NonAwsRegions != null && { NonAwsRegions: se_WorkloadNonAwsRegions(input.NonAwsRegions, context) }),
|
|
953
933
|
...(input.Notes != null && { Notes: input.Notes }),
|
|
954
934
|
...(input.PillarPriorities != null && {
|
|
955
|
-
PillarPriorities:
|
|
935
|
+
PillarPriorities: se_WorkloadPillarPriorities(input.PillarPriorities, context),
|
|
956
936
|
}),
|
|
957
937
|
...(input.ReviewOwner != null && { ReviewOwner: input.ReviewOwner }),
|
|
958
938
|
...(input.WorkloadName != null && { WorkloadName: input.WorkloadName }),
|
|
@@ -967,7 +947,7 @@ export const serializeAws_restJson1UpdateWorkloadCommand = async (input, context
|
|
|
967
947
|
body,
|
|
968
948
|
});
|
|
969
949
|
};
|
|
970
|
-
export const
|
|
950
|
+
export const se_UpdateWorkloadShareCommand = async (input, context) => {
|
|
971
951
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
972
952
|
const headers = {
|
|
973
953
|
"content-type": "application/json",
|
|
@@ -989,7 +969,7 @@ export const serializeAws_restJson1UpdateWorkloadShareCommand = async (input, co
|
|
|
989
969
|
body,
|
|
990
970
|
});
|
|
991
971
|
};
|
|
992
|
-
export const
|
|
972
|
+
export const se_UpgradeLensReviewCommand = async (input, context) => {
|
|
993
973
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
994
974
|
const headers = {
|
|
995
975
|
"content-type": "application/json",
|
|
@@ -1013,9 +993,9 @@ export const serializeAws_restJson1UpgradeLensReviewCommand = async (input, cont
|
|
|
1013
993
|
body,
|
|
1014
994
|
});
|
|
1015
995
|
};
|
|
1016
|
-
export const
|
|
996
|
+
export const de_AssociateLensesCommand = async (output, context) => {
|
|
1017
997
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1018
|
-
return
|
|
998
|
+
return de_AssociateLensesCommandError(output, context);
|
|
1019
999
|
}
|
|
1020
1000
|
const contents = map({
|
|
1021
1001
|
$metadata: deserializeMetadata(output),
|
|
@@ -1023,7 +1003,7 @@ export const deserializeAws_restJson1AssociateLensesCommand = async (output, con
|
|
|
1023
1003
|
await collectBody(output.body, context);
|
|
1024
1004
|
return contents;
|
|
1025
1005
|
};
|
|
1026
|
-
const
|
|
1006
|
+
const de_AssociateLensesCommandError = async (output, context) => {
|
|
1027
1007
|
const parsedOutput = {
|
|
1028
1008
|
...output,
|
|
1029
1009
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1032,22 +1012,22 @@ const deserializeAws_restJson1AssociateLensesCommandError = async (output, conte
|
|
|
1032
1012
|
switch (errorCode) {
|
|
1033
1013
|
case "AccessDeniedException":
|
|
1034
1014
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
1035
|
-
throw await
|
|
1015
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1036
1016
|
case "ConflictException":
|
|
1037
1017
|
case "com.amazonaws.wellarchitected#ConflictException":
|
|
1038
|
-
throw await
|
|
1018
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1039
1019
|
case "InternalServerException":
|
|
1040
1020
|
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
1041
|
-
throw await
|
|
1021
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1042
1022
|
case "ResourceNotFoundException":
|
|
1043
1023
|
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
1044
|
-
throw await
|
|
1024
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1045
1025
|
case "ThrottlingException":
|
|
1046
1026
|
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
1047
|
-
throw await
|
|
1027
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1048
1028
|
case "ValidationException":
|
|
1049
1029
|
case "com.amazonaws.wellarchitected#ValidationException":
|
|
1050
|
-
throw await
|
|
1030
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1051
1031
|
default:
|
|
1052
1032
|
const parsedBody = parsedOutput.body;
|
|
1053
1033
|
throwDefaultError({
|
|
@@ -1058,9 +1038,9 @@ const deserializeAws_restJson1AssociateLensesCommandError = async (output, conte
|
|
|
1058
1038
|
});
|
|
1059
1039
|
}
|
|
1060
1040
|
};
|
|
1061
|
-
export const
|
|
1041
|
+
export const de_CreateLensShareCommand = async (output, context) => {
|
|
1062
1042
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1063
|
-
return
|
|
1043
|
+
return de_CreateLensShareCommandError(output, context);
|
|
1064
1044
|
}
|
|
1065
1045
|
const contents = map({
|
|
1066
1046
|
$metadata: deserializeMetadata(output),
|
|
@@ -1071,7 +1051,7 @@ export const deserializeAws_restJson1CreateLensShareCommand = async (output, con
|
|
|
1071
1051
|
}
|
|
1072
1052
|
return contents;
|
|
1073
1053
|
};
|
|
1074
|
-
const
|
|
1054
|
+
const de_CreateLensShareCommandError = async (output, context) => {
|
|
1075
1055
|
const parsedOutput = {
|
|
1076
1056
|
...output,
|
|
1077
1057
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1080,25 +1060,25 @@ const deserializeAws_restJson1CreateLensShareCommandError = async (output, conte
|
|
|
1080
1060
|
switch (errorCode) {
|
|
1081
1061
|
case "AccessDeniedException":
|
|
1082
1062
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
1083
|
-
throw await
|
|
1063
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1084
1064
|
case "ConflictException":
|
|
1085
1065
|
case "com.amazonaws.wellarchitected#ConflictException":
|
|
1086
|
-
throw await
|
|
1066
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1087
1067
|
case "InternalServerException":
|
|
1088
1068
|
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
1089
|
-
throw await
|
|
1069
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1090
1070
|
case "ResourceNotFoundException":
|
|
1091
1071
|
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
1092
|
-
throw await
|
|
1072
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1093
1073
|
case "ServiceQuotaExceededException":
|
|
1094
1074
|
case "com.amazonaws.wellarchitected#ServiceQuotaExceededException":
|
|
1095
|
-
throw await
|
|
1075
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1096
1076
|
case "ThrottlingException":
|
|
1097
1077
|
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
1098
|
-
throw await
|
|
1078
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1099
1079
|
case "ValidationException":
|
|
1100
1080
|
case "com.amazonaws.wellarchitected#ValidationException":
|
|
1101
|
-
throw await
|
|
1081
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1102
1082
|
default:
|
|
1103
1083
|
const parsedBody = parsedOutput.body;
|
|
1104
1084
|
throwDefaultError({
|
|
@@ -1109,9 +1089,9 @@ const deserializeAws_restJson1CreateLensShareCommandError = async (output, conte
|
|
|
1109
1089
|
});
|
|
1110
1090
|
}
|
|
1111
1091
|
};
|
|
1112
|
-
export const
|
|
1092
|
+
export const de_CreateLensVersionCommand = async (output, context) => {
|
|
1113
1093
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1114
|
-
return
|
|
1094
|
+
return de_CreateLensVersionCommandError(output, context);
|
|
1115
1095
|
}
|
|
1116
1096
|
const contents = map({
|
|
1117
1097
|
$metadata: deserializeMetadata(output),
|
|
@@ -1125,7 +1105,7 @@ export const deserializeAws_restJson1CreateLensVersionCommand = async (output, c
|
|
|
1125
1105
|
}
|
|
1126
1106
|
return contents;
|
|
1127
1107
|
};
|
|
1128
|
-
const
|
|
1108
|
+
const de_CreateLensVersionCommandError = async (output, context) => {
|
|
1129
1109
|
const parsedOutput = {
|
|
1130
1110
|
...output,
|
|
1131
1111
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1134,25 +1114,25 @@ const deserializeAws_restJson1CreateLensVersionCommandError = async (output, con
|
|
|
1134
1114
|
switch (errorCode) {
|
|
1135
1115
|
case "AccessDeniedException":
|
|
1136
1116
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
1137
|
-
throw await
|
|
1117
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1138
1118
|
case "ConflictException":
|
|
1139
1119
|
case "com.amazonaws.wellarchitected#ConflictException":
|
|
1140
|
-
throw await
|
|
1120
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1141
1121
|
case "InternalServerException":
|
|
1142
1122
|
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
1143
|
-
throw await
|
|
1123
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1144
1124
|
case "ResourceNotFoundException":
|
|
1145
1125
|
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
1146
|
-
throw await
|
|
1126
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1147
1127
|
case "ServiceQuotaExceededException":
|
|
1148
1128
|
case "com.amazonaws.wellarchitected#ServiceQuotaExceededException":
|
|
1149
|
-
throw await
|
|
1129
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1150
1130
|
case "ThrottlingException":
|
|
1151
1131
|
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
1152
|
-
throw await
|
|
1132
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1153
1133
|
case "ValidationException":
|
|
1154
1134
|
case "com.amazonaws.wellarchitected#ValidationException":
|
|
1155
|
-
throw await
|
|
1135
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1156
1136
|
default:
|
|
1157
1137
|
const parsedBody = parsedOutput.body;
|
|
1158
1138
|
throwDefaultError({
|
|
@@ -1163,9 +1143,9 @@ const deserializeAws_restJson1CreateLensVersionCommandError = async (output, con
|
|
|
1163
1143
|
});
|
|
1164
1144
|
}
|
|
1165
1145
|
};
|
|
1166
|
-
export const
|
|
1146
|
+
export const de_CreateMilestoneCommand = async (output, context) => {
|
|
1167
1147
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1168
|
-
return
|
|
1148
|
+
return de_CreateMilestoneCommandError(output, context);
|
|
1169
1149
|
}
|
|
1170
1150
|
const contents = map({
|
|
1171
1151
|
$metadata: deserializeMetadata(output),
|
|
@@ -1179,7 +1159,7 @@ export const deserializeAws_restJson1CreateMilestoneCommand = async (output, con
|
|
|
1179
1159
|
}
|
|
1180
1160
|
return contents;
|
|
1181
1161
|
};
|
|
1182
|
-
const
|
|
1162
|
+
const de_CreateMilestoneCommandError = async (output, context) => {
|
|
1183
1163
|
const parsedOutput = {
|
|
1184
1164
|
...output,
|
|
1185
1165
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1188,25 +1168,25 @@ const deserializeAws_restJson1CreateMilestoneCommandError = async (output, conte
|
|
|
1188
1168
|
switch (errorCode) {
|
|
1189
1169
|
case "AccessDeniedException":
|
|
1190
1170
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
1191
|
-
throw await
|
|
1171
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1192
1172
|
case "ConflictException":
|
|
1193
1173
|
case "com.amazonaws.wellarchitected#ConflictException":
|
|
1194
|
-
throw await
|
|
1174
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1195
1175
|
case "InternalServerException":
|
|
1196
1176
|
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
1197
|
-
throw await
|
|
1177
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1198
1178
|
case "ResourceNotFoundException":
|
|
1199
1179
|
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
1200
|
-
throw await
|
|
1180
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1201
1181
|
case "ServiceQuotaExceededException":
|
|
1202
1182
|
case "com.amazonaws.wellarchitected#ServiceQuotaExceededException":
|
|
1203
|
-
throw await
|
|
1183
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1204
1184
|
case "ThrottlingException":
|
|
1205
1185
|
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
1206
|
-
throw await
|
|
1186
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1207
1187
|
case "ValidationException":
|
|
1208
1188
|
case "com.amazonaws.wellarchitected#ValidationException":
|
|
1209
|
-
throw await
|
|
1189
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1210
1190
|
default:
|
|
1211
1191
|
const parsedBody = parsedOutput.body;
|
|
1212
1192
|
throwDefaultError({
|
|
@@ -1217,9 +1197,9 @@ const deserializeAws_restJson1CreateMilestoneCommandError = async (output, conte
|
|
|
1217
1197
|
});
|
|
1218
1198
|
}
|
|
1219
1199
|
};
|
|
1220
|
-
export const
|
|
1200
|
+
export const de_CreateWorkloadCommand = async (output, context) => {
|
|
1221
1201
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1222
|
-
return
|
|
1202
|
+
return de_CreateWorkloadCommandError(output, context);
|
|
1223
1203
|
}
|
|
1224
1204
|
const contents = map({
|
|
1225
1205
|
$metadata: deserializeMetadata(output),
|
|
@@ -1233,7 +1213,7 @@ export const deserializeAws_restJson1CreateWorkloadCommand = async (output, cont
|
|
|
1233
1213
|
}
|
|
1234
1214
|
return contents;
|
|
1235
1215
|
};
|
|
1236
|
-
const
|
|
1216
|
+
const de_CreateWorkloadCommandError = async (output, context) => {
|
|
1237
1217
|
const parsedOutput = {
|
|
1238
1218
|
...output,
|
|
1239
1219
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1242,25 +1222,25 @@ const deserializeAws_restJson1CreateWorkloadCommandError = async (output, contex
|
|
|
1242
1222
|
switch (errorCode) {
|
|
1243
1223
|
case "AccessDeniedException":
|
|
1244
1224
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
1245
|
-
throw await
|
|
1225
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1246
1226
|
case "ConflictException":
|
|
1247
1227
|
case "com.amazonaws.wellarchitected#ConflictException":
|
|
1248
|
-
throw await
|
|
1228
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1249
1229
|
case "InternalServerException":
|
|
1250
1230
|
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
1251
|
-
throw await
|
|
1231
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1252
1232
|
case "ResourceNotFoundException":
|
|
1253
1233
|
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
1254
|
-
throw await
|
|
1234
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1255
1235
|
case "ServiceQuotaExceededException":
|
|
1256
1236
|
case "com.amazonaws.wellarchitected#ServiceQuotaExceededException":
|
|
1257
|
-
throw await
|
|
1237
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1258
1238
|
case "ThrottlingException":
|
|
1259
1239
|
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
1260
|
-
throw await
|
|
1240
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1261
1241
|
case "ValidationException":
|
|
1262
1242
|
case "com.amazonaws.wellarchitected#ValidationException":
|
|
1263
|
-
throw await
|
|
1243
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1264
1244
|
default:
|
|
1265
1245
|
const parsedBody = parsedOutput.body;
|
|
1266
1246
|
throwDefaultError({
|
|
@@ -1271,9 +1251,9 @@ const deserializeAws_restJson1CreateWorkloadCommandError = async (output, contex
|
|
|
1271
1251
|
});
|
|
1272
1252
|
}
|
|
1273
1253
|
};
|
|
1274
|
-
export const
|
|
1254
|
+
export const de_CreateWorkloadShareCommand = async (output, context) => {
|
|
1275
1255
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1276
|
-
return
|
|
1256
|
+
return de_CreateWorkloadShareCommandError(output, context);
|
|
1277
1257
|
}
|
|
1278
1258
|
const contents = map({
|
|
1279
1259
|
$metadata: deserializeMetadata(output),
|
|
@@ -1287,7 +1267,7 @@ export const deserializeAws_restJson1CreateWorkloadShareCommand = async (output,
|
|
|
1287
1267
|
}
|
|
1288
1268
|
return contents;
|
|
1289
1269
|
};
|
|
1290
|
-
const
|
|
1270
|
+
const de_CreateWorkloadShareCommandError = async (output, context) => {
|
|
1291
1271
|
const parsedOutput = {
|
|
1292
1272
|
...output,
|
|
1293
1273
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1296,25 +1276,25 @@ const deserializeAws_restJson1CreateWorkloadShareCommandError = async (output, c
|
|
|
1296
1276
|
switch (errorCode) {
|
|
1297
1277
|
case "AccessDeniedException":
|
|
1298
1278
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
1299
|
-
throw await
|
|
1279
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1300
1280
|
case "ConflictException":
|
|
1301
1281
|
case "com.amazonaws.wellarchitected#ConflictException":
|
|
1302
|
-
throw await
|
|
1282
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1303
1283
|
case "InternalServerException":
|
|
1304
1284
|
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
1305
|
-
throw await
|
|
1285
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1306
1286
|
case "ResourceNotFoundException":
|
|
1307
1287
|
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
1308
|
-
throw await
|
|
1288
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1309
1289
|
case "ServiceQuotaExceededException":
|
|
1310
1290
|
case "com.amazonaws.wellarchitected#ServiceQuotaExceededException":
|
|
1311
|
-
throw await
|
|
1291
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1312
1292
|
case "ThrottlingException":
|
|
1313
1293
|
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
1314
|
-
throw await
|
|
1294
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1315
1295
|
case "ValidationException":
|
|
1316
1296
|
case "com.amazonaws.wellarchitected#ValidationException":
|
|
1317
|
-
throw await
|
|
1297
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1318
1298
|
default:
|
|
1319
1299
|
const parsedBody = parsedOutput.body;
|
|
1320
1300
|
throwDefaultError({
|
|
@@ -1325,9 +1305,9 @@ const deserializeAws_restJson1CreateWorkloadShareCommandError = async (output, c
|
|
|
1325
1305
|
});
|
|
1326
1306
|
}
|
|
1327
1307
|
};
|
|
1328
|
-
export const
|
|
1308
|
+
export const de_DeleteLensCommand = async (output, context) => {
|
|
1329
1309
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1330
|
-
return
|
|
1310
|
+
return de_DeleteLensCommandError(output, context);
|
|
1331
1311
|
}
|
|
1332
1312
|
const contents = map({
|
|
1333
1313
|
$metadata: deserializeMetadata(output),
|
|
@@ -1335,7 +1315,7 @@ export const deserializeAws_restJson1DeleteLensCommand = async (output, context)
|
|
|
1335
1315
|
await collectBody(output.body, context);
|
|
1336
1316
|
return contents;
|
|
1337
1317
|
};
|
|
1338
|
-
const
|
|
1318
|
+
const de_DeleteLensCommandError = async (output, context) => {
|
|
1339
1319
|
const parsedOutput = {
|
|
1340
1320
|
...output,
|
|
1341
1321
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1344,22 +1324,22 @@ const deserializeAws_restJson1DeleteLensCommandError = async (output, context) =
|
|
|
1344
1324
|
switch (errorCode) {
|
|
1345
1325
|
case "AccessDeniedException":
|
|
1346
1326
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
1347
|
-
throw await
|
|
1327
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1348
1328
|
case "ConflictException":
|
|
1349
1329
|
case "com.amazonaws.wellarchitected#ConflictException":
|
|
1350
|
-
throw await
|
|
1330
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1351
1331
|
case "InternalServerException":
|
|
1352
1332
|
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
1353
|
-
throw await
|
|
1333
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1354
1334
|
case "ResourceNotFoundException":
|
|
1355
1335
|
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
1356
|
-
throw await
|
|
1336
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1357
1337
|
case "ThrottlingException":
|
|
1358
1338
|
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
1359
|
-
throw await
|
|
1339
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1360
1340
|
case "ValidationException":
|
|
1361
1341
|
case "com.amazonaws.wellarchitected#ValidationException":
|
|
1362
|
-
throw await
|
|
1342
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1363
1343
|
default:
|
|
1364
1344
|
const parsedBody = parsedOutput.body;
|
|
1365
1345
|
throwDefaultError({
|
|
@@ -1370,9 +1350,9 @@ const deserializeAws_restJson1DeleteLensCommandError = async (output, context) =
|
|
|
1370
1350
|
});
|
|
1371
1351
|
}
|
|
1372
1352
|
};
|
|
1373
|
-
export const
|
|
1353
|
+
export const de_DeleteLensShareCommand = async (output, context) => {
|
|
1374
1354
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1375
|
-
return
|
|
1355
|
+
return de_DeleteLensShareCommandError(output, context);
|
|
1376
1356
|
}
|
|
1377
1357
|
const contents = map({
|
|
1378
1358
|
$metadata: deserializeMetadata(output),
|
|
@@ -1380,7 +1360,7 @@ export const deserializeAws_restJson1DeleteLensShareCommand = async (output, con
|
|
|
1380
1360
|
await collectBody(output.body, context);
|
|
1381
1361
|
return contents;
|
|
1382
1362
|
};
|
|
1383
|
-
const
|
|
1363
|
+
const de_DeleteLensShareCommandError = async (output, context) => {
|
|
1384
1364
|
const parsedOutput = {
|
|
1385
1365
|
...output,
|
|
1386
1366
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1389,22 +1369,22 @@ const deserializeAws_restJson1DeleteLensShareCommandError = async (output, conte
|
|
|
1389
1369
|
switch (errorCode) {
|
|
1390
1370
|
case "AccessDeniedException":
|
|
1391
1371
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
1392
|
-
throw await
|
|
1372
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1393
1373
|
case "ConflictException":
|
|
1394
1374
|
case "com.amazonaws.wellarchitected#ConflictException":
|
|
1395
|
-
throw await
|
|
1375
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1396
1376
|
case "InternalServerException":
|
|
1397
1377
|
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
1398
|
-
throw await
|
|
1378
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1399
1379
|
case "ResourceNotFoundException":
|
|
1400
1380
|
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
1401
|
-
throw await
|
|
1381
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1402
1382
|
case "ThrottlingException":
|
|
1403
1383
|
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
1404
|
-
throw await
|
|
1384
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1405
1385
|
case "ValidationException":
|
|
1406
1386
|
case "com.amazonaws.wellarchitected#ValidationException":
|
|
1407
|
-
throw await
|
|
1387
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1408
1388
|
default:
|
|
1409
1389
|
const parsedBody = parsedOutput.body;
|
|
1410
1390
|
throwDefaultError({
|
|
@@ -1415,9 +1395,9 @@ const deserializeAws_restJson1DeleteLensShareCommandError = async (output, conte
|
|
|
1415
1395
|
});
|
|
1416
1396
|
}
|
|
1417
1397
|
};
|
|
1418
|
-
export const
|
|
1398
|
+
export const de_DeleteWorkloadCommand = async (output, context) => {
|
|
1419
1399
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1420
|
-
return
|
|
1400
|
+
return de_DeleteWorkloadCommandError(output, context);
|
|
1421
1401
|
}
|
|
1422
1402
|
const contents = map({
|
|
1423
1403
|
$metadata: deserializeMetadata(output),
|
|
@@ -1425,7 +1405,7 @@ export const deserializeAws_restJson1DeleteWorkloadCommand = async (output, cont
|
|
|
1425
1405
|
await collectBody(output.body, context);
|
|
1426
1406
|
return contents;
|
|
1427
1407
|
};
|
|
1428
|
-
const
|
|
1408
|
+
const de_DeleteWorkloadCommandError = async (output, context) => {
|
|
1429
1409
|
const parsedOutput = {
|
|
1430
1410
|
...output,
|
|
1431
1411
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1434,22 +1414,22 @@ const deserializeAws_restJson1DeleteWorkloadCommandError = async (output, contex
|
|
|
1434
1414
|
switch (errorCode) {
|
|
1435
1415
|
case "AccessDeniedException":
|
|
1436
1416
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
1437
|
-
throw await
|
|
1417
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1438
1418
|
case "ConflictException":
|
|
1439
1419
|
case "com.amazonaws.wellarchitected#ConflictException":
|
|
1440
|
-
throw await
|
|
1420
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1441
1421
|
case "InternalServerException":
|
|
1442
1422
|
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
1443
|
-
throw await
|
|
1423
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1444
1424
|
case "ResourceNotFoundException":
|
|
1445
1425
|
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
1446
|
-
throw await
|
|
1426
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1447
1427
|
case "ThrottlingException":
|
|
1448
1428
|
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
1449
|
-
throw await
|
|
1429
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1450
1430
|
case "ValidationException":
|
|
1451
1431
|
case "com.amazonaws.wellarchitected#ValidationException":
|
|
1452
|
-
throw await
|
|
1432
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1453
1433
|
default:
|
|
1454
1434
|
const parsedBody = parsedOutput.body;
|
|
1455
1435
|
throwDefaultError({
|
|
@@ -1460,9 +1440,9 @@ const deserializeAws_restJson1DeleteWorkloadCommandError = async (output, contex
|
|
|
1460
1440
|
});
|
|
1461
1441
|
}
|
|
1462
1442
|
};
|
|
1463
|
-
export const
|
|
1443
|
+
export const de_DeleteWorkloadShareCommand = async (output, context) => {
|
|
1464
1444
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1465
|
-
return
|
|
1445
|
+
return de_DeleteWorkloadShareCommandError(output, context);
|
|
1466
1446
|
}
|
|
1467
1447
|
const contents = map({
|
|
1468
1448
|
$metadata: deserializeMetadata(output),
|
|
@@ -1470,7 +1450,7 @@ export const deserializeAws_restJson1DeleteWorkloadShareCommand = async (output,
|
|
|
1470
1450
|
await collectBody(output.body, context);
|
|
1471
1451
|
return contents;
|
|
1472
1452
|
};
|
|
1473
|
-
const
|
|
1453
|
+
const de_DeleteWorkloadShareCommandError = async (output, context) => {
|
|
1474
1454
|
const parsedOutput = {
|
|
1475
1455
|
...output,
|
|
1476
1456
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1479,22 +1459,22 @@ const deserializeAws_restJson1DeleteWorkloadShareCommandError = async (output, c
|
|
|
1479
1459
|
switch (errorCode) {
|
|
1480
1460
|
case "AccessDeniedException":
|
|
1481
1461
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
1482
|
-
throw await
|
|
1462
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1483
1463
|
case "ConflictException":
|
|
1484
1464
|
case "com.amazonaws.wellarchitected#ConflictException":
|
|
1485
|
-
throw await
|
|
1465
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1486
1466
|
case "InternalServerException":
|
|
1487
1467
|
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
1488
|
-
throw await
|
|
1468
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1489
1469
|
case "ResourceNotFoundException":
|
|
1490
1470
|
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
1491
|
-
throw await
|
|
1471
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1492
1472
|
case "ThrottlingException":
|
|
1493
1473
|
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
1494
|
-
throw await
|
|
1474
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1495
1475
|
case "ValidationException":
|
|
1496
1476
|
case "com.amazonaws.wellarchitected#ValidationException":
|
|
1497
|
-
throw await
|
|
1477
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1498
1478
|
default:
|
|
1499
1479
|
const parsedBody = parsedOutput.body;
|
|
1500
1480
|
throwDefaultError({
|
|
@@ -1505,9 +1485,9 @@ const deserializeAws_restJson1DeleteWorkloadShareCommandError = async (output, c
|
|
|
1505
1485
|
});
|
|
1506
1486
|
}
|
|
1507
1487
|
};
|
|
1508
|
-
export const
|
|
1488
|
+
export const de_DisassociateLensesCommand = async (output, context) => {
|
|
1509
1489
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1510
|
-
return
|
|
1490
|
+
return de_DisassociateLensesCommandError(output, context);
|
|
1511
1491
|
}
|
|
1512
1492
|
const contents = map({
|
|
1513
1493
|
$metadata: deserializeMetadata(output),
|
|
@@ -1515,7 +1495,7 @@ export const deserializeAws_restJson1DisassociateLensesCommand = async (output,
|
|
|
1515
1495
|
await collectBody(output.body, context);
|
|
1516
1496
|
return contents;
|
|
1517
1497
|
};
|
|
1518
|
-
const
|
|
1498
|
+
const de_DisassociateLensesCommandError = async (output, context) => {
|
|
1519
1499
|
const parsedOutput = {
|
|
1520
1500
|
...output,
|
|
1521
1501
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1524,22 +1504,22 @@ const deserializeAws_restJson1DisassociateLensesCommandError = async (output, co
|
|
|
1524
1504
|
switch (errorCode) {
|
|
1525
1505
|
case "AccessDeniedException":
|
|
1526
1506
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
1527
|
-
throw await
|
|
1507
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1528
1508
|
case "ConflictException":
|
|
1529
1509
|
case "com.amazonaws.wellarchitected#ConflictException":
|
|
1530
|
-
throw await
|
|
1510
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1531
1511
|
case "InternalServerException":
|
|
1532
1512
|
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
1533
|
-
throw await
|
|
1513
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1534
1514
|
case "ResourceNotFoundException":
|
|
1535
1515
|
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
1536
|
-
throw await
|
|
1516
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1537
1517
|
case "ThrottlingException":
|
|
1538
1518
|
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
1539
|
-
throw await
|
|
1519
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1540
1520
|
case "ValidationException":
|
|
1541
1521
|
case "com.amazonaws.wellarchitected#ValidationException":
|
|
1542
|
-
throw await
|
|
1522
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1543
1523
|
default:
|
|
1544
1524
|
const parsedBody = parsedOutput.body;
|
|
1545
1525
|
throwDefaultError({
|
|
@@ -1550,9 +1530,9 @@ const deserializeAws_restJson1DisassociateLensesCommandError = async (output, co
|
|
|
1550
1530
|
});
|
|
1551
1531
|
}
|
|
1552
1532
|
};
|
|
1553
|
-
export const
|
|
1533
|
+
export const de_ExportLensCommand = async (output, context) => {
|
|
1554
1534
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1555
|
-
return
|
|
1535
|
+
return de_ExportLensCommandError(output, context);
|
|
1556
1536
|
}
|
|
1557
1537
|
const contents = map({
|
|
1558
1538
|
$metadata: deserializeMetadata(output),
|
|
@@ -1563,7 +1543,7 @@ export const deserializeAws_restJson1ExportLensCommand = async (output, context)
|
|
|
1563
1543
|
}
|
|
1564
1544
|
return contents;
|
|
1565
1545
|
};
|
|
1566
|
-
const
|
|
1546
|
+
const de_ExportLensCommandError = async (output, context) => {
|
|
1567
1547
|
const parsedOutput = {
|
|
1568
1548
|
...output,
|
|
1569
1549
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1572,19 +1552,19 @@ const deserializeAws_restJson1ExportLensCommandError = async (output, context) =
|
|
|
1572
1552
|
switch (errorCode) {
|
|
1573
1553
|
case "AccessDeniedException":
|
|
1574
1554
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
1575
|
-
throw await
|
|
1555
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1576
1556
|
case "InternalServerException":
|
|
1577
1557
|
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
1578
|
-
throw await
|
|
1558
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1579
1559
|
case "ResourceNotFoundException":
|
|
1580
1560
|
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
1581
|
-
throw await
|
|
1561
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1582
1562
|
case "ThrottlingException":
|
|
1583
1563
|
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
1584
|
-
throw await
|
|
1564
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1585
1565
|
case "ValidationException":
|
|
1586
1566
|
case "com.amazonaws.wellarchitected#ValidationException":
|
|
1587
|
-
throw await
|
|
1567
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1588
1568
|
default:
|
|
1589
1569
|
const parsedBody = parsedOutput.body;
|
|
1590
1570
|
throwDefaultError({
|
|
@@ -1595,16 +1575,16 @@ const deserializeAws_restJson1ExportLensCommandError = async (output, context) =
|
|
|
1595
1575
|
});
|
|
1596
1576
|
}
|
|
1597
1577
|
};
|
|
1598
|
-
export const
|
|
1578
|
+
export const de_GetAnswerCommand = async (output, context) => {
|
|
1599
1579
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1600
|
-
return
|
|
1580
|
+
return de_GetAnswerCommandError(output, context);
|
|
1601
1581
|
}
|
|
1602
1582
|
const contents = map({
|
|
1603
1583
|
$metadata: deserializeMetadata(output),
|
|
1604
1584
|
});
|
|
1605
1585
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1606
1586
|
if (data.Answer != null) {
|
|
1607
|
-
contents.Answer =
|
|
1587
|
+
contents.Answer = de_Answer(data.Answer, context);
|
|
1608
1588
|
}
|
|
1609
1589
|
if (data.LensAlias != null) {
|
|
1610
1590
|
contents.LensAlias = __expectString(data.LensAlias);
|
|
@@ -1620,7 +1600,7 @@ export const deserializeAws_restJson1GetAnswerCommand = async (output, context)
|
|
|
1620
1600
|
}
|
|
1621
1601
|
return contents;
|
|
1622
1602
|
};
|
|
1623
|
-
const
|
|
1603
|
+
const de_GetAnswerCommandError = async (output, context) => {
|
|
1624
1604
|
const parsedOutput = {
|
|
1625
1605
|
...output,
|
|
1626
1606
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1629,19 +1609,19 @@ const deserializeAws_restJson1GetAnswerCommandError = async (output, context) =>
|
|
|
1629
1609
|
switch (errorCode) {
|
|
1630
1610
|
case "AccessDeniedException":
|
|
1631
1611
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
1632
|
-
throw await
|
|
1612
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1633
1613
|
case "InternalServerException":
|
|
1634
1614
|
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
1635
|
-
throw await
|
|
1615
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1636
1616
|
case "ResourceNotFoundException":
|
|
1637
1617
|
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
1638
|
-
throw await
|
|
1618
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1639
1619
|
case "ThrottlingException":
|
|
1640
1620
|
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
1641
|
-
throw await
|
|
1621
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1642
1622
|
case "ValidationException":
|
|
1643
1623
|
case "com.amazonaws.wellarchitected#ValidationException":
|
|
1644
|
-
throw await
|
|
1624
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1645
1625
|
default:
|
|
1646
1626
|
const parsedBody = parsedOutput.body;
|
|
1647
1627
|
throwDefaultError({
|
|
@@ -1652,9 +1632,9 @@ const deserializeAws_restJson1GetAnswerCommandError = async (output, context) =>
|
|
|
1652
1632
|
});
|
|
1653
1633
|
}
|
|
1654
1634
|
};
|
|
1655
|
-
export const
|
|
1635
|
+
export const de_GetConsolidatedReportCommand = async (output, context) => {
|
|
1656
1636
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1657
|
-
return
|
|
1637
|
+
return de_GetConsolidatedReportCommandError(output, context);
|
|
1658
1638
|
}
|
|
1659
1639
|
const contents = map({
|
|
1660
1640
|
$metadata: deserializeMetadata(output),
|
|
@@ -1664,14 +1644,14 @@ export const deserializeAws_restJson1GetConsolidatedReportCommand = async (outpu
|
|
|
1664
1644
|
contents.Base64String = __expectString(data.Base64String);
|
|
1665
1645
|
}
|
|
1666
1646
|
if (data.Metrics != null) {
|
|
1667
|
-
contents.Metrics =
|
|
1647
|
+
contents.Metrics = de_ConsolidatedReportMetrics(data.Metrics, context);
|
|
1668
1648
|
}
|
|
1669
1649
|
if (data.NextToken != null) {
|
|
1670
1650
|
contents.NextToken = __expectString(data.NextToken);
|
|
1671
1651
|
}
|
|
1672
1652
|
return contents;
|
|
1673
1653
|
};
|
|
1674
|
-
const
|
|
1654
|
+
const de_GetConsolidatedReportCommandError = async (output, context) => {
|
|
1675
1655
|
const parsedOutput = {
|
|
1676
1656
|
...output,
|
|
1677
1657
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1680,19 +1660,19 @@ const deserializeAws_restJson1GetConsolidatedReportCommandError = async (output,
|
|
|
1680
1660
|
switch (errorCode) {
|
|
1681
1661
|
case "AccessDeniedException":
|
|
1682
1662
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
1683
|
-
throw await
|
|
1663
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1684
1664
|
case "ConflictException":
|
|
1685
1665
|
case "com.amazonaws.wellarchitected#ConflictException":
|
|
1686
|
-
throw await
|
|
1666
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1687
1667
|
case "InternalServerException":
|
|
1688
1668
|
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
1689
|
-
throw await
|
|
1669
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1690
1670
|
case "ThrottlingException":
|
|
1691
1671
|
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
1692
|
-
throw await
|
|
1672
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1693
1673
|
case "ValidationException":
|
|
1694
1674
|
case "com.amazonaws.wellarchitected#ValidationException":
|
|
1695
|
-
throw await
|
|
1675
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1696
1676
|
default:
|
|
1697
1677
|
const parsedBody = parsedOutput.body;
|
|
1698
1678
|
throwDefaultError({
|
|
@@ -1703,20 +1683,20 @@ const deserializeAws_restJson1GetConsolidatedReportCommandError = async (output,
|
|
|
1703
1683
|
});
|
|
1704
1684
|
}
|
|
1705
1685
|
};
|
|
1706
|
-
export const
|
|
1686
|
+
export const de_GetLensCommand = async (output, context) => {
|
|
1707
1687
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1708
|
-
return
|
|
1688
|
+
return de_GetLensCommandError(output, context);
|
|
1709
1689
|
}
|
|
1710
1690
|
const contents = map({
|
|
1711
1691
|
$metadata: deserializeMetadata(output),
|
|
1712
1692
|
});
|
|
1713
1693
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1714
1694
|
if (data.Lens != null) {
|
|
1715
|
-
contents.Lens =
|
|
1695
|
+
contents.Lens = de_Lens(data.Lens, context);
|
|
1716
1696
|
}
|
|
1717
1697
|
return contents;
|
|
1718
1698
|
};
|
|
1719
|
-
const
|
|
1699
|
+
const de_GetLensCommandError = async (output, context) => {
|
|
1720
1700
|
const parsedOutput = {
|
|
1721
1701
|
...output,
|
|
1722
1702
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1725,19 +1705,19 @@ const deserializeAws_restJson1GetLensCommandError = async (output, context) => {
|
|
|
1725
1705
|
switch (errorCode) {
|
|
1726
1706
|
case "AccessDeniedException":
|
|
1727
1707
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
1728
|
-
throw await
|
|
1708
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1729
1709
|
case "InternalServerException":
|
|
1730
1710
|
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
1731
|
-
throw await
|
|
1711
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1732
1712
|
case "ResourceNotFoundException":
|
|
1733
1713
|
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
1734
|
-
throw await
|
|
1714
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1735
1715
|
case "ThrottlingException":
|
|
1736
1716
|
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
1737
|
-
throw await
|
|
1717
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1738
1718
|
case "ValidationException":
|
|
1739
1719
|
case "com.amazonaws.wellarchitected#ValidationException":
|
|
1740
|
-
throw await
|
|
1720
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1741
1721
|
default:
|
|
1742
1722
|
const parsedBody = parsedOutput.body;
|
|
1743
1723
|
throwDefaultError({
|
|
@@ -1748,16 +1728,16 @@ const deserializeAws_restJson1GetLensCommandError = async (output, context) => {
|
|
|
1748
1728
|
});
|
|
1749
1729
|
}
|
|
1750
1730
|
};
|
|
1751
|
-
export const
|
|
1731
|
+
export const de_GetLensReviewCommand = async (output, context) => {
|
|
1752
1732
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1753
|
-
return
|
|
1733
|
+
return de_GetLensReviewCommandError(output, context);
|
|
1754
1734
|
}
|
|
1755
1735
|
const contents = map({
|
|
1756
1736
|
$metadata: deserializeMetadata(output),
|
|
1757
1737
|
});
|
|
1758
1738
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1759
1739
|
if (data.LensReview != null) {
|
|
1760
|
-
contents.LensReview =
|
|
1740
|
+
contents.LensReview = de_LensReview(data.LensReview, context);
|
|
1761
1741
|
}
|
|
1762
1742
|
if (data.MilestoneNumber != null) {
|
|
1763
1743
|
contents.MilestoneNumber = __expectInt32(data.MilestoneNumber);
|
|
@@ -1767,7 +1747,7 @@ export const deserializeAws_restJson1GetLensReviewCommand = async (output, conte
|
|
|
1767
1747
|
}
|
|
1768
1748
|
return contents;
|
|
1769
1749
|
};
|
|
1770
|
-
const
|
|
1750
|
+
const de_GetLensReviewCommandError = async (output, context) => {
|
|
1771
1751
|
const parsedOutput = {
|
|
1772
1752
|
...output,
|
|
1773
1753
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1776,19 +1756,19 @@ const deserializeAws_restJson1GetLensReviewCommandError = async (output, context
|
|
|
1776
1756
|
switch (errorCode) {
|
|
1777
1757
|
case "AccessDeniedException":
|
|
1778
1758
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
1779
|
-
throw await
|
|
1759
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1780
1760
|
case "InternalServerException":
|
|
1781
1761
|
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
1782
|
-
throw await
|
|
1762
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1783
1763
|
case "ResourceNotFoundException":
|
|
1784
1764
|
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
1785
|
-
throw await
|
|
1765
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1786
1766
|
case "ThrottlingException":
|
|
1787
1767
|
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
1788
|
-
throw await
|
|
1768
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1789
1769
|
case "ValidationException":
|
|
1790
1770
|
case "com.amazonaws.wellarchitected#ValidationException":
|
|
1791
|
-
throw await
|
|
1771
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1792
1772
|
default:
|
|
1793
1773
|
const parsedBody = parsedOutput.body;
|
|
1794
1774
|
throwDefaultError({
|
|
@@ -1799,16 +1779,16 @@ const deserializeAws_restJson1GetLensReviewCommandError = async (output, context
|
|
|
1799
1779
|
});
|
|
1800
1780
|
}
|
|
1801
1781
|
};
|
|
1802
|
-
export const
|
|
1782
|
+
export const de_GetLensReviewReportCommand = async (output, context) => {
|
|
1803
1783
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1804
|
-
return
|
|
1784
|
+
return de_GetLensReviewReportCommandError(output, context);
|
|
1805
1785
|
}
|
|
1806
1786
|
const contents = map({
|
|
1807
1787
|
$metadata: deserializeMetadata(output),
|
|
1808
1788
|
});
|
|
1809
1789
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1810
1790
|
if (data.LensReviewReport != null) {
|
|
1811
|
-
contents.LensReviewReport =
|
|
1791
|
+
contents.LensReviewReport = de_LensReviewReport(data.LensReviewReport, context);
|
|
1812
1792
|
}
|
|
1813
1793
|
if (data.MilestoneNumber != null) {
|
|
1814
1794
|
contents.MilestoneNumber = __expectInt32(data.MilestoneNumber);
|
|
@@ -1818,7 +1798,7 @@ export const deserializeAws_restJson1GetLensReviewReportCommand = async (output,
|
|
|
1818
1798
|
}
|
|
1819
1799
|
return contents;
|
|
1820
1800
|
};
|
|
1821
|
-
const
|
|
1801
|
+
const de_GetLensReviewReportCommandError = async (output, context) => {
|
|
1822
1802
|
const parsedOutput = {
|
|
1823
1803
|
...output,
|
|
1824
1804
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1827,19 +1807,19 @@ const deserializeAws_restJson1GetLensReviewReportCommandError = async (output, c
|
|
|
1827
1807
|
switch (errorCode) {
|
|
1828
1808
|
case "AccessDeniedException":
|
|
1829
1809
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
1830
|
-
throw await
|
|
1810
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1831
1811
|
case "InternalServerException":
|
|
1832
1812
|
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
1833
|
-
throw await
|
|
1813
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1834
1814
|
case "ResourceNotFoundException":
|
|
1835
1815
|
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
1836
|
-
throw await
|
|
1816
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1837
1817
|
case "ThrottlingException":
|
|
1838
1818
|
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
1839
|
-
throw await
|
|
1819
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1840
1820
|
case "ValidationException":
|
|
1841
1821
|
case "com.amazonaws.wellarchitected#ValidationException":
|
|
1842
|
-
throw await
|
|
1822
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1843
1823
|
default:
|
|
1844
1824
|
const parsedBody = parsedOutput.body;
|
|
1845
1825
|
throwDefaultError({
|
|
@@ -1850,9 +1830,9 @@ const deserializeAws_restJson1GetLensReviewReportCommandError = async (output, c
|
|
|
1850
1830
|
});
|
|
1851
1831
|
}
|
|
1852
1832
|
};
|
|
1853
|
-
export const
|
|
1833
|
+
export const de_GetLensVersionDifferenceCommand = async (output, context) => {
|
|
1854
1834
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1855
|
-
return
|
|
1835
|
+
return de_GetLensVersionDifferenceCommandError(output, context);
|
|
1856
1836
|
}
|
|
1857
1837
|
const contents = map({
|
|
1858
1838
|
$metadata: deserializeMetadata(output),
|
|
@@ -1874,11 +1854,11 @@ export const deserializeAws_restJson1GetLensVersionDifferenceCommand = async (ou
|
|
|
1874
1854
|
contents.TargetLensVersion = __expectString(data.TargetLensVersion);
|
|
1875
1855
|
}
|
|
1876
1856
|
if (data.VersionDifferences != null) {
|
|
1877
|
-
contents.VersionDifferences =
|
|
1857
|
+
contents.VersionDifferences = de_VersionDifferences(data.VersionDifferences, context);
|
|
1878
1858
|
}
|
|
1879
1859
|
return contents;
|
|
1880
1860
|
};
|
|
1881
|
-
const
|
|
1861
|
+
const de_GetLensVersionDifferenceCommandError = async (output, context) => {
|
|
1882
1862
|
const parsedOutput = {
|
|
1883
1863
|
...output,
|
|
1884
1864
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1887,19 +1867,19 @@ const deserializeAws_restJson1GetLensVersionDifferenceCommandError = async (outp
|
|
|
1887
1867
|
switch (errorCode) {
|
|
1888
1868
|
case "AccessDeniedException":
|
|
1889
1869
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
1890
|
-
throw await
|
|
1870
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1891
1871
|
case "InternalServerException":
|
|
1892
1872
|
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
1893
|
-
throw await
|
|
1873
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1894
1874
|
case "ResourceNotFoundException":
|
|
1895
1875
|
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
1896
|
-
throw await
|
|
1876
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1897
1877
|
case "ThrottlingException":
|
|
1898
1878
|
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
1899
|
-
throw await
|
|
1879
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1900
1880
|
case "ValidationException":
|
|
1901
1881
|
case "com.amazonaws.wellarchitected#ValidationException":
|
|
1902
|
-
throw await
|
|
1882
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1903
1883
|
default:
|
|
1904
1884
|
const parsedBody = parsedOutput.body;
|
|
1905
1885
|
throwDefaultError({
|
|
@@ -1910,23 +1890,23 @@ const deserializeAws_restJson1GetLensVersionDifferenceCommandError = async (outp
|
|
|
1910
1890
|
});
|
|
1911
1891
|
}
|
|
1912
1892
|
};
|
|
1913
|
-
export const
|
|
1893
|
+
export const de_GetMilestoneCommand = async (output, context) => {
|
|
1914
1894
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1915
|
-
return
|
|
1895
|
+
return de_GetMilestoneCommandError(output, context);
|
|
1916
1896
|
}
|
|
1917
1897
|
const contents = map({
|
|
1918
1898
|
$metadata: deserializeMetadata(output),
|
|
1919
1899
|
});
|
|
1920
1900
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1921
1901
|
if (data.Milestone != null) {
|
|
1922
|
-
contents.Milestone =
|
|
1902
|
+
contents.Milestone = de_Milestone(data.Milestone, context);
|
|
1923
1903
|
}
|
|
1924
1904
|
if (data.WorkloadId != null) {
|
|
1925
1905
|
contents.WorkloadId = __expectString(data.WorkloadId);
|
|
1926
1906
|
}
|
|
1927
1907
|
return contents;
|
|
1928
1908
|
};
|
|
1929
|
-
const
|
|
1909
|
+
const de_GetMilestoneCommandError = async (output, context) => {
|
|
1930
1910
|
const parsedOutput = {
|
|
1931
1911
|
...output,
|
|
1932
1912
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1935,19 +1915,19 @@ const deserializeAws_restJson1GetMilestoneCommandError = async (output, context)
|
|
|
1935
1915
|
switch (errorCode) {
|
|
1936
1916
|
case "AccessDeniedException":
|
|
1937
1917
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
1938
|
-
throw await
|
|
1918
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1939
1919
|
case "InternalServerException":
|
|
1940
1920
|
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
1941
|
-
throw await
|
|
1921
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1942
1922
|
case "ResourceNotFoundException":
|
|
1943
1923
|
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
1944
|
-
throw await
|
|
1924
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1945
1925
|
case "ThrottlingException":
|
|
1946
1926
|
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
1947
|
-
throw await
|
|
1927
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1948
1928
|
case "ValidationException":
|
|
1949
1929
|
case "com.amazonaws.wellarchitected#ValidationException":
|
|
1950
|
-
throw await
|
|
1930
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1951
1931
|
default:
|
|
1952
1932
|
const parsedBody = parsedOutput.body;
|
|
1953
1933
|
throwDefaultError({
|
|
@@ -1958,20 +1938,20 @@ const deserializeAws_restJson1GetMilestoneCommandError = async (output, context)
|
|
|
1958
1938
|
});
|
|
1959
1939
|
}
|
|
1960
1940
|
};
|
|
1961
|
-
export const
|
|
1941
|
+
export const de_GetWorkloadCommand = async (output, context) => {
|
|
1962
1942
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1963
|
-
return
|
|
1943
|
+
return de_GetWorkloadCommandError(output, context);
|
|
1964
1944
|
}
|
|
1965
1945
|
const contents = map({
|
|
1966
1946
|
$metadata: deserializeMetadata(output),
|
|
1967
1947
|
});
|
|
1968
1948
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1969
1949
|
if (data.Workload != null) {
|
|
1970
|
-
contents.Workload =
|
|
1950
|
+
contents.Workload = de_Workload(data.Workload, context);
|
|
1971
1951
|
}
|
|
1972
1952
|
return contents;
|
|
1973
1953
|
};
|
|
1974
|
-
const
|
|
1954
|
+
const de_GetWorkloadCommandError = async (output, context) => {
|
|
1975
1955
|
const parsedOutput = {
|
|
1976
1956
|
...output,
|
|
1977
1957
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1980,19 +1960,19 @@ const deserializeAws_restJson1GetWorkloadCommandError = async (output, context)
|
|
|
1980
1960
|
switch (errorCode) {
|
|
1981
1961
|
case "AccessDeniedException":
|
|
1982
1962
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
1983
|
-
throw await
|
|
1963
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1984
1964
|
case "InternalServerException":
|
|
1985
1965
|
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
1986
|
-
throw await
|
|
1966
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1987
1967
|
case "ResourceNotFoundException":
|
|
1988
1968
|
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
1989
|
-
throw await
|
|
1969
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1990
1970
|
case "ThrottlingException":
|
|
1991
1971
|
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
1992
|
-
throw await
|
|
1972
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1993
1973
|
case "ValidationException":
|
|
1994
1974
|
case "com.amazonaws.wellarchitected#ValidationException":
|
|
1995
|
-
throw await
|
|
1975
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1996
1976
|
default:
|
|
1997
1977
|
const parsedBody = parsedOutput.body;
|
|
1998
1978
|
throwDefaultError({
|
|
@@ -2003,9 +1983,9 @@ const deserializeAws_restJson1GetWorkloadCommandError = async (output, context)
|
|
|
2003
1983
|
});
|
|
2004
1984
|
}
|
|
2005
1985
|
};
|
|
2006
|
-
export const
|
|
1986
|
+
export const de_ImportLensCommand = async (output, context) => {
|
|
2007
1987
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2008
|
-
return
|
|
1988
|
+
return de_ImportLensCommandError(output, context);
|
|
2009
1989
|
}
|
|
2010
1990
|
const contents = map({
|
|
2011
1991
|
$metadata: deserializeMetadata(output),
|
|
@@ -2019,7 +1999,7 @@ export const deserializeAws_restJson1ImportLensCommand = async (output, context)
|
|
|
2019
1999
|
}
|
|
2020
2000
|
return contents;
|
|
2021
2001
|
};
|
|
2022
|
-
const
|
|
2002
|
+
const de_ImportLensCommandError = async (output, context) => {
|
|
2023
2003
|
const parsedOutput = {
|
|
2024
2004
|
...output,
|
|
2025
2005
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2028,25 +2008,25 @@ const deserializeAws_restJson1ImportLensCommandError = async (output, context) =
|
|
|
2028
2008
|
switch (errorCode) {
|
|
2029
2009
|
case "AccessDeniedException":
|
|
2030
2010
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
2031
|
-
throw await
|
|
2011
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2032
2012
|
case "ConflictException":
|
|
2033
2013
|
case "com.amazonaws.wellarchitected#ConflictException":
|
|
2034
|
-
throw await
|
|
2014
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2035
2015
|
case "InternalServerException":
|
|
2036
2016
|
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
2037
|
-
throw await
|
|
2017
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2038
2018
|
case "ResourceNotFoundException":
|
|
2039
2019
|
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
2040
|
-
throw await
|
|
2020
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2041
2021
|
case "ServiceQuotaExceededException":
|
|
2042
2022
|
case "com.amazonaws.wellarchitected#ServiceQuotaExceededException":
|
|
2043
|
-
throw await
|
|
2023
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2044
2024
|
case "ThrottlingException":
|
|
2045
2025
|
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
2046
|
-
throw await
|
|
2026
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2047
2027
|
case "ValidationException":
|
|
2048
2028
|
case "com.amazonaws.wellarchitected#ValidationException":
|
|
2049
|
-
throw await
|
|
2029
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2050
2030
|
default:
|
|
2051
2031
|
const parsedBody = parsedOutput.body;
|
|
2052
2032
|
throwDefaultError({
|
|
@@ -2057,16 +2037,16 @@ const deserializeAws_restJson1ImportLensCommandError = async (output, context) =
|
|
|
2057
2037
|
});
|
|
2058
2038
|
}
|
|
2059
2039
|
};
|
|
2060
|
-
export const
|
|
2040
|
+
export const de_ListAnswersCommand = async (output, context) => {
|
|
2061
2041
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2062
|
-
return
|
|
2042
|
+
return de_ListAnswersCommandError(output, context);
|
|
2063
2043
|
}
|
|
2064
2044
|
const contents = map({
|
|
2065
2045
|
$metadata: deserializeMetadata(output),
|
|
2066
2046
|
});
|
|
2067
2047
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2068
2048
|
if (data.AnswerSummaries != null) {
|
|
2069
|
-
contents.AnswerSummaries =
|
|
2049
|
+
contents.AnswerSummaries = de_AnswerSummaries(data.AnswerSummaries, context);
|
|
2070
2050
|
}
|
|
2071
2051
|
if (data.LensAlias != null) {
|
|
2072
2052
|
contents.LensAlias = __expectString(data.LensAlias);
|
|
@@ -2085,7 +2065,7 @@ export const deserializeAws_restJson1ListAnswersCommand = async (output, context
|
|
|
2085
2065
|
}
|
|
2086
2066
|
return contents;
|
|
2087
2067
|
};
|
|
2088
|
-
const
|
|
2068
|
+
const de_ListAnswersCommandError = async (output, context) => {
|
|
2089
2069
|
const parsedOutput = {
|
|
2090
2070
|
...output,
|
|
2091
2071
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2094,19 +2074,19 @@ const deserializeAws_restJson1ListAnswersCommandError = async (output, context)
|
|
|
2094
2074
|
switch (errorCode) {
|
|
2095
2075
|
case "AccessDeniedException":
|
|
2096
2076
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
2097
|
-
throw await
|
|
2077
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2098
2078
|
case "InternalServerException":
|
|
2099
2079
|
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
2100
|
-
throw await
|
|
2080
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2101
2081
|
case "ResourceNotFoundException":
|
|
2102
2082
|
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
2103
|
-
throw await
|
|
2083
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2104
2084
|
case "ThrottlingException":
|
|
2105
2085
|
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
2106
|
-
throw await
|
|
2086
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2107
2087
|
case "ValidationException":
|
|
2108
2088
|
case "com.amazonaws.wellarchitected#ValidationException":
|
|
2109
|
-
throw await
|
|
2089
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2110
2090
|
default:
|
|
2111
2091
|
const parsedBody = parsedOutput.body;
|
|
2112
2092
|
throwDefaultError({
|
|
@@ -2117,23 +2097,23 @@ const deserializeAws_restJson1ListAnswersCommandError = async (output, context)
|
|
|
2117
2097
|
});
|
|
2118
2098
|
}
|
|
2119
2099
|
};
|
|
2120
|
-
export const
|
|
2100
|
+
export const de_ListCheckDetailsCommand = async (output, context) => {
|
|
2121
2101
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2122
|
-
return
|
|
2102
|
+
return de_ListCheckDetailsCommandError(output, context);
|
|
2123
2103
|
}
|
|
2124
2104
|
const contents = map({
|
|
2125
2105
|
$metadata: deserializeMetadata(output),
|
|
2126
2106
|
});
|
|
2127
2107
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2128
2108
|
if (data.CheckDetails != null) {
|
|
2129
|
-
contents.CheckDetails =
|
|
2109
|
+
contents.CheckDetails = de_CheckDetails(data.CheckDetails, context);
|
|
2130
2110
|
}
|
|
2131
2111
|
if (data.NextToken != null) {
|
|
2132
2112
|
contents.NextToken = __expectString(data.NextToken);
|
|
2133
2113
|
}
|
|
2134
2114
|
return contents;
|
|
2135
2115
|
};
|
|
2136
|
-
const
|
|
2116
|
+
const de_ListCheckDetailsCommandError = async (output, context) => {
|
|
2137
2117
|
const parsedOutput = {
|
|
2138
2118
|
...output,
|
|
2139
2119
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2142,19 +2122,19 @@ const deserializeAws_restJson1ListCheckDetailsCommandError = async (output, cont
|
|
|
2142
2122
|
switch (errorCode) {
|
|
2143
2123
|
case "AccessDeniedException":
|
|
2144
2124
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
2145
|
-
throw await
|
|
2125
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2146
2126
|
case "InternalServerException":
|
|
2147
2127
|
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
2148
|
-
throw await
|
|
2128
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2149
2129
|
case "ResourceNotFoundException":
|
|
2150
2130
|
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
2151
|
-
throw await
|
|
2131
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2152
2132
|
case "ThrottlingException":
|
|
2153
2133
|
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
2154
|
-
throw await
|
|
2134
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2155
2135
|
case "ValidationException":
|
|
2156
2136
|
case "com.amazonaws.wellarchitected#ValidationException":
|
|
2157
|
-
throw await
|
|
2137
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2158
2138
|
default:
|
|
2159
2139
|
const parsedBody = parsedOutput.body;
|
|
2160
2140
|
throwDefaultError({
|
|
@@ -2165,23 +2145,23 @@ const deserializeAws_restJson1ListCheckDetailsCommandError = async (output, cont
|
|
|
2165
2145
|
});
|
|
2166
2146
|
}
|
|
2167
2147
|
};
|
|
2168
|
-
export const
|
|
2148
|
+
export const de_ListCheckSummariesCommand = async (output, context) => {
|
|
2169
2149
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2170
|
-
return
|
|
2150
|
+
return de_ListCheckSummariesCommandError(output, context);
|
|
2171
2151
|
}
|
|
2172
2152
|
const contents = map({
|
|
2173
2153
|
$metadata: deserializeMetadata(output),
|
|
2174
2154
|
});
|
|
2175
2155
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2176
2156
|
if (data.CheckSummaries != null) {
|
|
2177
|
-
contents.CheckSummaries =
|
|
2157
|
+
contents.CheckSummaries = de_CheckSummaries(data.CheckSummaries, context);
|
|
2178
2158
|
}
|
|
2179
2159
|
if (data.NextToken != null) {
|
|
2180
2160
|
contents.NextToken = __expectString(data.NextToken);
|
|
2181
2161
|
}
|
|
2182
2162
|
return contents;
|
|
2183
2163
|
};
|
|
2184
|
-
const
|
|
2164
|
+
const de_ListCheckSummariesCommandError = async (output, context) => {
|
|
2185
2165
|
const parsedOutput = {
|
|
2186
2166
|
...output,
|
|
2187
2167
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2190,19 +2170,19 @@ const deserializeAws_restJson1ListCheckSummariesCommandError = async (output, co
|
|
|
2190
2170
|
switch (errorCode) {
|
|
2191
2171
|
case "AccessDeniedException":
|
|
2192
2172
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
2193
|
-
throw await
|
|
2173
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2194
2174
|
case "InternalServerException":
|
|
2195
2175
|
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
2196
|
-
throw await
|
|
2176
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2197
2177
|
case "ResourceNotFoundException":
|
|
2198
2178
|
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
2199
|
-
throw await
|
|
2179
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2200
2180
|
case "ThrottlingException":
|
|
2201
2181
|
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
2202
|
-
throw await
|
|
2182
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2203
2183
|
case "ValidationException":
|
|
2204
2184
|
case "com.amazonaws.wellarchitected#ValidationException":
|
|
2205
|
-
throw await
|
|
2185
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2206
2186
|
default:
|
|
2207
2187
|
const parsedBody = parsedOutput.body;
|
|
2208
2188
|
throwDefaultError({
|
|
@@ -2213,23 +2193,23 @@ const deserializeAws_restJson1ListCheckSummariesCommandError = async (output, co
|
|
|
2213
2193
|
});
|
|
2214
2194
|
}
|
|
2215
2195
|
};
|
|
2216
|
-
export const
|
|
2196
|
+
export const de_ListLensesCommand = async (output, context) => {
|
|
2217
2197
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2218
|
-
return
|
|
2198
|
+
return de_ListLensesCommandError(output, context);
|
|
2219
2199
|
}
|
|
2220
2200
|
const contents = map({
|
|
2221
2201
|
$metadata: deserializeMetadata(output),
|
|
2222
2202
|
});
|
|
2223
2203
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2224
2204
|
if (data.LensSummaries != null) {
|
|
2225
|
-
contents.LensSummaries =
|
|
2205
|
+
contents.LensSummaries = de_LensSummaries(data.LensSummaries, context);
|
|
2226
2206
|
}
|
|
2227
2207
|
if (data.NextToken != null) {
|
|
2228
2208
|
contents.NextToken = __expectString(data.NextToken);
|
|
2229
2209
|
}
|
|
2230
2210
|
return contents;
|
|
2231
2211
|
};
|
|
2232
|
-
const
|
|
2212
|
+
const de_ListLensesCommandError = async (output, context) => {
|
|
2233
2213
|
const parsedOutput = {
|
|
2234
2214
|
...output,
|
|
2235
2215
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2238,16 +2218,16 @@ const deserializeAws_restJson1ListLensesCommandError = async (output, context) =
|
|
|
2238
2218
|
switch (errorCode) {
|
|
2239
2219
|
case "AccessDeniedException":
|
|
2240
2220
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
2241
|
-
throw await
|
|
2221
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2242
2222
|
case "InternalServerException":
|
|
2243
2223
|
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
2244
|
-
throw await
|
|
2224
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2245
2225
|
case "ThrottlingException":
|
|
2246
2226
|
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
2247
|
-
throw await
|
|
2227
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2248
2228
|
case "ValidationException":
|
|
2249
2229
|
case "com.amazonaws.wellarchitected#ValidationException":
|
|
2250
|
-
throw await
|
|
2230
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2251
2231
|
default:
|
|
2252
2232
|
const parsedBody = parsedOutput.body;
|
|
2253
2233
|
throwDefaultError({
|
|
@@ -2258,16 +2238,16 @@ const deserializeAws_restJson1ListLensesCommandError = async (output, context) =
|
|
|
2258
2238
|
});
|
|
2259
2239
|
}
|
|
2260
2240
|
};
|
|
2261
|
-
export const
|
|
2241
|
+
export const de_ListLensReviewImprovementsCommand = async (output, context) => {
|
|
2262
2242
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2263
|
-
return
|
|
2243
|
+
return de_ListLensReviewImprovementsCommandError(output, context);
|
|
2264
2244
|
}
|
|
2265
2245
|
const contents = map({
|
|
2266
2246
|
$metadata: deserializeMetadata(output),
|
|
2267
2247
|
});
|
|
2268
2248
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2269
2249
|
if (data.ImprovementSummaries != null) {
|
|
2270
|
-
contents.ImprovementSummaries =
|
|
2250
|
+
contents.ImprovementSummaries = de_ImprovementSummaries(data.ImprovementSummaries, context);
|
|
2271
2251
|
}
|
|
2272
2252
|
if (data.LensAlias != null) {
|
|
2273
2253
|
contents.LensAlias = __expectString(data.LensAlias);
|
|
@@ -2286,7 +2266,7 @@ export const deserializeAws_restJson1ListLensReviewImprovementsCommand = async (
|
|
|
2286
2266
|
}
|
|
2287
2267
|
return contents;
|
|
2288
2268
|
};
|
|
2289
|
-
const
|
|
2269
|
+
const de_ListLensReviewImprovementsCommandError = async (output, context) => {
|
|
2290
2270
|
const parsedOutput = {
|
|
2291
2271
|
...output,
|
|
2292
2272
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2295,19 +2275,19 @@ const deserializeAws_restJson1ListLensReviewImprovementsCommandError = async (ou
|
|
|
2295
2275
|
switch (errorCode) {
|
|
2296
2276
|
case "AccessDeniedException":
|
|
2297
2277
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
2298
|
-
throw await
|
|
2278
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2299
2279
|
case "InternalServerException":
|
|
2300
2280
|
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
2301
|
-
throw await
|
|
2281
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2302
2282
|
case "ResourceNotFoundException":
|
|
2303
2283
|
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
2304
|
-
throw await
|
|
2284
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2305
2285
|
case "ThrottlingException":
|
|
2306
2286
|
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
2307
|
-
throw await
|
|
2287
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2308
2288
|
case "ValidationException":
|
|
2309
2289
|
case "com.amazonaws.wellarchitected#ValidationException":
|
|
2310
|
-
throw await
|
|
2290
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2311
2291
|
default:
|
|
2312
2292
|
const parsedBody = parsedOutput.body;
|
|
2313
2293
|
throwDefaultError({
|
|
@@ -2318,16 +2298,16 @@ const deserializeAws_restJson1ListLensReviewImprovementsCommandError = async (ou
|
|
|
2318
2298
|
});
|
|
2319
2299
|
}
|
|
2320
2300
|
};
|
|
2321
|
-
export const
|
|
2301
|
+
export const de_ListLensReviewsCommand = async (output, context) => {
|
|
2322
2302
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2323
|
-
return
|
|
2303
|
+
return de_ListLensReviewsCommandError(output, context);
|
|
2324
2304
|
}
|
|
2325
2305
|
const contents = map({
|
|
2326
2306
|
$metadata: deserializeMetadata(output),
|
|
2327
2307
|
});
|
|
2328
2308
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2329
2309
|
if (data.LensReviewSummaries != null) {
|
|
2330
|
-
contents.LensReviewSummaries =
|
|
2310
|
+
contents.LensReviewSummaries = de_LensReviewSummaries(data.LensReviewSummaries, context);
|
|
2331
2311
|
}
|
|
2332
2312
|
if (data.MilestoneNumber != null) {
|
|
2333
2313
|
contents.MilestoneNumber = __expectInt32(data.MilestoneNumber);
|
|
@@ -2340,7 +2320,7 @@ export const deserializeAws_restJson1ListLensReviewsCommand = async (output, con
|
|
|
2340
2320
|
}
|
|
2341
2321
|
return contents;
|
|
2342
2322
|
};
|
|
2343
|
-
const
|
|
2323
|
+
const de_ListLensReviewsCommandError = async (output, context) => {
|
|
2344
2324
|
const parsedOutput = {
|
|
2345
2325
|
...output,
|
|
2346
2326
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2349,19 +2329,19 @@ const deserializeAws_restJson1ListLensReviewsCommandError = async (output, conte
|
|
|
2349
2329
|
switch (errorCode) {
|
|
2350
2330
|
case "AccessDeniedException":
|
|
2351
2331
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
2352
|
-
throw await
|
|
2332
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2353
2333
|
case "InternalServerException":
|
|
2354
2334
|
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
2355
|
-
throw await
|
|
2335
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2356
2336
|
case "ResourceNotFoundException":
|
|
2357
2337
|
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
2358
|
-
throw await
|
|
2338
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2359
2339
|
case "ThrottlingException":
|
|
2360
2340
|
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
2361
|
-
throw await
|
|
2341
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2362
2342
|
case "ValidationException":
|
|
2363
2343
|
case "com.amazonaws.wellarchitected#ValidationException":
|
|
2364
|
-
throw await
|
|
2344
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2365
2345
|
default:
|
|
2366
2346
|
const parsedBody = parsedOutput.body;
|
|
2367
2347
|
throwDefaultError({
|
|
@@ -2372,23 +2352,23 @@ const deserializeAws_restJson1ListLensReviewsCommandError = async (output, conte
|
|
|
2372
2352
|
});
|
|
2373
2353
|
}
|
|
2374
2354
|
};
|
|
2375
|
-
export const
|
|
2355
|
+
export const de_ListLensSharesCommand = async (output, context) => {
|
|
2376
2356
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2377
|
-
return
|
|
2357
|
+
return de_ListLensSharesCommandError(output, context);
|
|
2378
2358
|
}
|
|
2379
2359
|
const contents = map({
|
|
2380
2360
|
$metadata: deserializeMetadata(output),
|
|
2381
2361
|
});
|
|
2382
2362
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2383
2363
|
if (data.LensShareSummaries != null) {
|
|
2384
|
-
contents.LensShareSummaries =
|
|
2364
|
+
contents.LensShareSummaries = de_LensShareSummaries(data.LensShareSummaries, context);
|
|
2385
2365
|
}
|
|
2386
2366
|
if (data.NextToken != null) {
|
|
2387
2367
|
contents.NextToken = __expectString(data.NextToken);
|
|
2388
2368
|
}
|
|
2389
2369
|
return contents;
|
|
2390
2370
|
};
|
|
2391
|
-
const
|
|
2371
|
+
const de_ListLensSharesCommandError = async (output, context) => {
|
|
2392
2372
|
const parsedOutput = {
|
|
2393
2373
|
...output,
|
|
2394
2374
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2397,19 +2377,19 @@ const deserializeAws_restJson1ListLensSharesCommandError = async (output, contex
|
|
|
2397
2377
|
switch (errorCode) {
|
|
2398
2378
|
case "AccessDeniedException":
|
|
2399
2379
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
2400
|
-
throw await
|
|
2380
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2401
2381
|
case "InternalServerException":
|
|
2402
2382
|
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
2403
|
-
throw await
|
|
2383
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2404
2384
|
case "ResourceNotFoundException":
|
|
2405
2385
|
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
2406
|
-
throw await
|
|
2386
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2407
2387
|
case "ThrottlingException":
|
|
2408
2388
|
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
2409
|
-
throw await
|
|
2389
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2410
2390
|
case "ValidationException":
|
|
2411
2391
|
case "com.amazonaws.wellarchitected#ValidationException":
|
|
2412
|
-
throw await
|
|
2392
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2413
2393
|
default:
|
|
2414
2394
|
const parsedBody = parsedOutput.body;
|
|
2415
2395
|
throwDefaultError({
|
|
@@ -2420,16 +2400,16 @@ const deserializeAws_restJson1ListLensSharesCommandError = async (output, contex
|
|
|
2420
2400
|
});
|
|
2421
2401
|
}
|
|
2422
2402
|
};
|
|
2423
|
-
export const
|
|
2403
|
+
export const de_ListMilestonesCommand = async (output, context) => {
|
|
2424
2404
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2425
|
-
return
|
|
2405
|
+
return de_ListMilestonesCommandError(output, context);
|
|
2426
2406
|
}
|
|
2427
2407
|
const contents = map({
|
|
2428
2408
|
$metadata: deserializeMetadata(output),
|
|
2429
2409
|
});
|
|
2430
2410
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2431
2411
|
if (data.MilestoneSummaries != null) {
|
|
2432
|
-
contents.MilestoneSummaries =
|
|
2412
|
+
contents.MilestoneSummaries = de_MilestoneSummaries(data.MilestoneSummaries, context);
|
|
2433
2413
|
}
|
|
2434
2414
|
if (data.NextToken != null) {
|
|
2435
2415
|
contents.NextToken = __expectString(data.NextToken);
|
|
@@ -2439,7 +2419,7 @@ export const deserializeAws_restJson1ListMilestonesCommand = async (output, cont
|
|
|
2439
2419
|
}
|
|
2440
2420
|
return contents;
|
|
2441
2421
|
};
|
|
2442
|
-
const
|
|
2422
|
+
const de_ListMilestonesCommandError = async (output, context) => {
|
|
2443
2423
|
const parsedOutput = {
|
|
2444
2424
|
...output,
|
|
2445
2425
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2448,19 +2428,19 @@ const deserializeAws_restJson1ListMilestonesCommandError = async (output, contex
|
|
|
2448
2428
|
switch (errorCode) {
|
|
2449
2429
|
case "AccessDeniedException":
|
|
2450
2430
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
2451
|
-
throw await
|
|
2431
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2452
2432
|
case "InternalServerException":
|
|
2453
2433
|
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
2454
|
-
throw await
|
|
2434
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2455
2435
|
case "ResourceNotFoundException":
|
|
2456
2436
|
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
2457
|
-
throw await
|
|
2437
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2458
2438
|
case "ThrottlingException":
|
|
2459
2439
|
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
2460
|
-
throw await
|
|
2440
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2461
2441
|
case "ValidationException":
|
|
2462
2442
|
case "com.amazonaws.wellarchitected#ValidationException":
|
|
2463
|
-
throw await
|
|
2443
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2464
2444
|
default:
|
|
2465
2445
|
const parsedBody = parsedOutput.body;
|
|
2466
2446
|
throwDefaultError({
|
|
@@ -2471,9 +2451,9 @@ const deserializeAws_restJson1ListMilestonesCommandError = async (output, contex
|
|
|
2471
2451
|
});
|
|
2472
2452
|
}
|
|
2473
2453
|
};
|
|
2474
|
-
export const
|
|
2454
|
+
export const de_ListNotificationsCommand = async (output, context) => {
|
|
2475
2455
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2476
|
-
return
|
|
2456
|
+
return de_ListNotificationsCommandError(output, context);
|
|
2477
2457
|
}
|
|
2478
2458
|
const contents = map({
|
|
2479
2459
|
$metadata: deserializeMetadata(output),
|
|
@@ -2483,11 +2463,11 @@ export const deserializeAws_restJson1ListNotificationsCommand = async (output, c
|
|
|
2483
2463
|
contents.NextToken = __expectString(data.NextToken);
|
|
2484
2464
|
}
|
|
2485
2465
|
if (data.NotificationSummaries != null) {
|
|
2486
|
-
contents.NotificationSummaries =
|
|
2466
|
+
contents.NotificationSummaries = de_NotificationSummaries(data.NotificationSummaries, context);
|
|
2487
2467
|
}
|
|
2488
2468
|
return contents;
|
|
2489
2469
|
};
|
|
2490
|
-
const
|
|
2470
|
+
const de_ListNotificationsCommandError = async (output, context) => {
|
|
2491
2471
|
const parsedOutput = {
|
|
2492
2472
|
...output,
|
|
2493
2473
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2496,16 +2476,16 @@ const deserializeAws_restJson1ListNotificationsCommandError = async (output, con
|
|
|
2496
2476
|
switch (errorCode) {
|
|
2497
2477
|
case "AccessDeniedException":
|
|
2498
2478
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
2499
|
-
throw await
|
|
2479
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2500
2480
|
case "InternalServerException":
|
|
2501
2481
|
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
2502
|
-
throw await
|
|
2482
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2503
2483
|
case "ThrottlingException":
|
|
2504
2484
|
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
2505
|
-
throw await
|
|
2485
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2506
2486
|
case "ValidationException":
|
|
2507
2487
|
case "com.amazonaws.wellarchitected#ValidationException":
|
|
2508
|
-
throw await
|
|
2488
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2509
2489
|
default:
|
|
2510
2490
|
const parsedBody = parsedOutput.body;
|
|
2511
2491
|
throwDefaultError({
|
|
@@ -2516,9 +2496,9 @@ const deserializeAws_restJson1ListNotificationsCommandError = async (output, con
|
|
|
2516
2496
|
});
|
|
2517
2497
|
}
|
|
2518
2498
|
};
|
|
2519
|
-
export const
|
|
2499
|
+
export const de_ListShareInvitationsCommand = async (output, context) => {
|
|
2520
2500
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2521
|
-
return
|
|
2501
|
+
return de_ListShareInvitationsCommandError(output, context);
|
|
2522
2502
|
}
|
|
2523
2503
|
const contents = map({
|
|
2524
2504
|
$metadata: deserializeMetadata(output),
|
|
@@ -2528,11 +2508,11 @@ export const deserializeAws_restJson1ListShareInvitationsCommand = async (output
|
|
|
2528
2508
|
contents.NextToken = __expectString(data.NextToken);
|
|
2529
2509
|
}
|
|
2530
2510
|
if (data.ShareInvitationSummaries != null) {
|
|
2531
|
-
contents.ShareInvitationSummaries =
|
|
2511
|
+
contents.ShareInvitationSummaries = de_ShareInvitationSummaries(data.ShareInvitationSummaries, context);
|
|
2532
2512
|
}
|
|
2533
2513
|
return contents;
|
|
2534
2514
|
};
|
|
2535
|
-
const
|
|
2515
|
+
const de_ListShareInvitationsCommandError = async (output, context) => {
|
|
2536
2516
|
const parsedOutput = {
|
|
2537
2517
|
...output,
|
|
2538
2518
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2541,16 +2521,16 @@ const deserializeAws_restJson1ListShareInvitationsCommandError = async (output,
|
|
|
2541
2521
|
switch (errorCode) {
|
|
2542
2522
|
case "AccessDeniedException":
|
|
2543
2523
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
2544
|
-
throw await
|
|
2524
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2545
2525
|
case "InternalServerException":
|
|
2546
2526
|
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
2547
|
-
throw await
|
|
2527
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2548
2528
|
case "ThrottlingException":
|
|
2549
2529
|
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
2550
|
-
throw await
|
|
2530
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2551
2531
|
case "ValidationException":
|
|
2552
2532
|
case "com.amazonaws.wellarchitected#ValidationException":
|
|
2553
|
-
throw await
|
|
2533
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2554
2534
|
default:
|
|
2555
2535
|
const parsedBody = parsedOutput.body;
|
|
2556
2536
|
throwDefaultError({
|
|
@@ -2561,20 +2541,20 @@ const deserializeAws_restJson1ListShareInvitationsCommandError = async (output,
|
|
|
2561
2541
|
});
|
|
2562
2542
|
}
|
|
2563
2543
|
};
|
|
2564
|
-
export const
|
|
2544
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
2565
2545
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2566
|
-
return
|
|
2546
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
2567
2547
|
}
|
|
2568
2548
|
const contents = map({
|
|
2569
2549
|
$metadata: deserializeMetadata(output),
|
|
2570
2550
|
});
|
|
2571
2551
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2572
2552
|
if (data.Tags != null) {
|
|
2573
|
-
contents.Tags =
|
|
2553
|
+
contents.Tags = de_TagMap(data.Tags, context);
|
|
2574
2554
|
}
|
|
2575
2555
|
return contents;
|
|
2576
2556
|
};
|
|
2577
|
-
const
|
|
2557
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
2578
2558
|
const parsedOutput = {
|
|
2579
2559
|
...output,
|
|
2580
2560
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2583,10 +2563,10 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2583
2563
|
switch (errorCode) {
|
|
2584
2564
|
case "InternalServerException":
|
|
2585
2565
|
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
2586
|
-
throw await
|
|
2566
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2587
2567
|
case "ResourceNotFoundException":
|
|
2588
2568
|
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
2589
|
-
throw await
|
|
2569
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2590
2570
|
default:
|
|
2591
2571
|
const parsedBody = parsedOutput.body;
|
|
2592
2572
|
throwDefaultError({
|
|
@@ -2597,9 +2577,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2597
2577
|
});
|
|
2598
2578
|
}
|
|
2599
2579
|
};
|
|
2600
|
-
export const
|
|
2580
|
+
export const de_ListWorkloadsCommand = async (output, context) => {
|
|
2601
2581
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2602
|
-
return
|
|
2582
|
+
return de_ListWorkloadsCommandError(output, context);
|
|
2603
2583
|
}
|
|
2604
2584
|
const contents = map({
|
|
2605
2585
|
$metadata: deserializeMetadata(output),
|
|
@@ -2609,11 +2589,11 @@ export const deserializeAws_restJson1ListWorkloadsCommand = async (output, conte
|
|
|
2609
2589
|
contents.NextToken = __expectString(data.NextToken);
|
|
2610
2590
|
}
|
|
2611
2591
|
if (data.WorkloadSummaries != null) {
|
|
2612
|
-
contents.WorkloadSummaries =
|
|
2592
|
+
contents.WorkloadSummaries = de_WorkloadSummaries(data.WorkloadSummaries, context);
|
|
2613
2593
|
}
|
|
2614
2594
|
return contents;
|
|
2615
2595
|
};
|
|
2616
|
-
const
|
|
2596
|
+
const de_ListWorkloadsCommandError = async (output, context) => {
|
|
2617
2597
|
const parsedOutput = {
|
|
2618
2598
|
...output,
|
|
2619
2599
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2622,16 +2602,16 @@ const deserializeAws_restJson1ListWorkloadsCommandError = async (output, context
|
|
|
2622
2602
|
switch (errorCode) {
|
|
2623
2603
|
case "AccessDeniedException":
|
|
2624
2604
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
2625
|
-
throw await
|
|
2605
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2626
2606
|
case "InternalServerException":
|
|
2627
2607
|
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
2628
|
-
throw await
|
|
2608
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2629
2609
|
case "ThrottlingException":
|
|
2630
2610
|
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
2631
|
-
throw await
|
|
2611
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2632
2612
|
case "ValidationException":
|
|
2633
2613
|
case "com.amazonaws.wellarchitected#ValidationException":
|
|
2634
|
-
throw await
|
|
2614
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2635
2615
|
default:
|
|
2636
2616
|
const parsedBody = parsedOutput.body;
|
|
2637
2617
|
throwDefaultError({
|
|
@@ -2642,9 +2622,9 @@ const deserializeAws_restJson1ListWorkloadsCommandError = async (output, context
|
|
|
2642
2622
|
});
|
|
2643
2623
|
}
|
|
2644
2624
|
};
|
|
2645
|
-
export const
|
|
2625
|
+
export const de_ListWorkloadSharesCommand = async (output, context) => {
|
|
2646
2626
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2647
|
-
return
|
|
2627
|
+
return de_ListWorkloadSharesCommandError(output, context);
|
|
2648
2628
|
}
|
|
2649
2629
|
const contents = map({
|
|
2650
2630
|
$metadata: deserializeMetadata(output),
|
|
@@ -2657,11 +2637,11 @@ export const deserializeAws_restJson1ListWorkloadSharesCommand = async (output,
|
|
|
2657
2637
|
contents.WorkloadId = __expectString(data.WorkloadId);
|
|
2658
2638
|
}
|
|
2659
2639
|
if (data.WorkloadShareSummaries != null) {
|
|
2660
|
-
contents.WorkloadShareSummaries =
|
|
2640
|
+
contents.WorkloadShareSummaries = de_WorkloadShareSummaries(data.WorkloadShareSummaries, context);
|
|
2661
2641
|
}
|
|
2662
2642
|
return contents;
|
|
2663
2643
|
};
|
|
2664
|
-
const
|
|
2644
|
+
const de_ListWorkloadSharesCommandError = async (output, context) => {
|
|
2665
2645
|
const parsedOutput = {
|
|
2666
2646
|
...output,
|
|
2667
2647
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2670,19 +2650,19 @@ const deserializeAws_restJson1ListWorkloadSharesCommandError = async (output, co
|
|
|
2670
2650
|
switch (errorCode) {
|
|
2671
2651
|
case "AccessDeniedException":
|
|
2672
2652
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
2673
|
-
throw await
|
|
2653
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2674
2654
|
case "InternalServerException":
|
|
2675
2655
|
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
2676
|
-
throw await
|
|
2656
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2677
2657
|
case "ResourceNotFoundException":
|
|
2678
2658
|
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
2679
|
-
throw await
|
|
2659
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2680
2660
|
case "ThrottlingException":
|
|
2681
2661
|
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
2682
|
-
throw await
|
|
2662
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2683
2663
|
case "ValidationException":
|
|
2684
2664
|
case "com.amazonaws.wellarchitected#ValidationException":
|
|
2685
|
-
throw await
|
|
2665
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2686
2666
|
default:
|
|
2687
2667
|
const parsedBody = parsedOutput.body;
|
|
2688
2668
|
throwDefaultError({
|
|
@@ -2693,9 +2673,9 @@ const deserializeAws_restJson1ListWorkloadSharesCommandError = async (output, co
|
|
|
2693
2673
|
});
|
|
2694
2674
|
}
|
|
2695
2675
|
};
|
|
2696
|
-
export const
|
|
2676
|
+
export const de_TagResourceCommand = async (output, context) => {
|
|
2697
2677
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2698
|
-
return
|
|
2678
|
+
return de_TagResourceCommandError(output, context);
|
|
2699
2679
|
}
|
|
2700
2680
|
const contents = map({
|
|
2701
2681
|
$metadata: deserializeMetadata(output),
|
|
@@ -2703,7 +2683,7 @@ export const deserializeAws_restJson1TagResourceCommand = async (output, context
|
|
|
2703
2683
|
await collectBody(output.body, context);
|
|
2704
2684
|
return contents;
|
|
2705
2685
|
};
|
|
2706
|
-
const
|
|
2686
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
2707
2687
|
const parsedOutput = {
|
|
2708
2688
|
...output,
|
|
2709
2689
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2712,10 +2692,10 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2712
2692
|
switch (errorCode) {
|
|
2713
2693
|
case "InternalServerException":
|
|
2714
2694
|
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
2715
|
-
throw await
|
|
2695
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2716
2696
|
case "ResourceNotFoundException":
|
|
2717
2697
|
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
2718
|
-
throw await
|
|
2698
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2719
2699
|
default:
|
|
2720
2700
|
const parsedBody = parsedOutput.body;
|
|
2721
2701
|
throwDefaultError({
|
|
@@ -2726,9 +2706,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2726
2706
|
});
|
|
2727
2707
|
}
|
|
2728
2708
|
};
|
|
2729
|
-
export const
|
|
2709
|
+
export const de_UntagResourceCommand = async (output, context) => {
|
|
2730
2710
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2731
|
-
return
|
|
2711
|
+
return de_UntagResourceCommandError(output, context);
|
|
2732
2712
|
}
|
|
2733
2713
|
const contents = map({
|
|
2734
2714
|
$metadata: deserializeMetadata(output),
|
|
@@ -2736,7 +2716,7 @@ export const deserializeAws_restJson1UntagResourceCommand = async (output, conte
|
|
|
2736
2716
|
await collectBody(output.body, context);
|
|
2737
2717
|
return contents;
|
|
2738
2718
|
};
|
|
2739
|
-
const
|
|
2719
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
2740
2720
|
const parsedOutput = {
|
|
2741
2721
|
...output,
|
|
2742
2722
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2745,10 +2725,10 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2745
2725
|
switch (errorCode) {
|
|
2746
2726
|
case "InternalServerException":
|
|
2747
2727
|
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
2748
|
-
throw await
|
|
2728
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2749
2729
|
case "ResourceNotFoundException":
|
|
2750
2730
|
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
2751
|
-
throw await
|
|
2731
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2752
2732
|
default:
|
|
2753
2733
|
const parsedBody = parsedOutput.body;
|
|
2754
2734
|
throwDefaultError({
|
|
@@ -2759,16 +2739,16 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2759
2739
|
});
|
|
2760
2740
|
}
|
|
2761
2741
|
};
|
|
2762
|
-
export const
|
|
2742
|
+
export const de_UpdateAnswerCommand = async (output, context) => {
|
|
2763
2743
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2764
|
-
return
|
|
2744
|
+
return de_UpdateAnswerCommandError(output, context);
|
|
2765
2745
|
}
|
|
2766
2746
|
const contents = map({
|
|
2767
2747
|
$metadata: deserializeMetadata(output),
|
|
2768
2748
|
});
|
|
2769
2749
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2770
2750
|
if (data.Answer != null) {
|
|
2771
|
-
contents.Answer =
|
|
2751
|
+
contents.Answer = de_Answer(data.Answer, context);
|
|
2772
2752
|
}
|
|
2773
2753
|
if (data.LensAlias != null) {
|
|
2774
2754
|
contents.LensAlias = __expectString(data.LensAlias);
|
|
@@ -2781,7 +2761,7 @@ export const deserializeAws_restJson1UpdateAnswerCommand = async (output, contex
|
|
|
2781
2761
|
}
|
|
2782
2762
|
return contents;
|
|
2783
2763
|
};
|
|
2784
|
-
const
|
|
2764
|
+
const de_UpdateAnswerCommandError = async (output, context) => {
|
|
2785
2765
|
const parsedOutput = {
|
|
2786
2766
|
...output,
|
|
2787
2767
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2790,22 +2770,22 @@ const deserializeAws_restJson1UpdateAnswerCommandError = async (output, context)
|
|
|
2790
2770
|
switch (errorCode) {
|
|
2791
2771
|
case "AccessDeniedException":
|
|
2792
2772
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
2793
|
-
throw await
|
|
2773
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2794
2774
|
case "ConflictException":
|
|
2795
2775
|
case "com.amazonaws.wellarchitected#ConflictException":
|
|
2796
|
-
throw await
|
|
2776
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2797
2777
|
case "InternalServerException":
|
|
2798
2778
|
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
2799
|
-
throw await
|
|
2779
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2800
2780
|
case "ResourceNotFoundException":
|
|
2801
2781
|
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
2802
|
-
throw await
|
|
2782
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2803
2783
|
case "ThrottlingException":
|
|
2804
2784
|
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
2805
|
-
throw await
|
|
2785
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2806
2786
|
case "ValidationException":
|
|
2807
2787
|
case "com.amazonaws.wellarchitected#ValidationException":
|
|
2808
|
-
throw await
|
|
2788
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2809
2789
|
default:
|
|
2810
2790
|
const parsedBody = parsedOutput.body;
|
|
2811
2791
|
throwDefaultError({
|
|
@@ -2816,9 +2796,9 @@ const deserializeAws_restJson1UpdateAnswerCommandError = async (output, context)
|
|
|
2816
2796
|
});
|
|
2817
2797
|
}
|
|
2818
2798
|
};
|
|
2819
|
-
export const
|
|
2799
|
+
export const de_UpdateGlobalSettingsCommand = async (output, context) => {
|
|
2820
2800
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2821
|
-
return
|
|
2801
|
+
return de_UpdateGlobalSettingsCommandError(output, context);
|
|
2822
2802
|
}
|
|
2823
2803
|
const contents = map({
|
|
2824
2804
|
$metadata: deserializeMetadata(output),
|
|
@@ -2826,7 +2806,7 @@ export const deserializeAws_restJson1UpdateGlobalSettingsCommand = async (output
|
|
|
2826
2806
|
await collectBody(output.body, context);
|
|
2827
2807
|
return contents;
|
|
2828
2808
|
};
|
|
2829
|
-
const
|
|
2809
|
+
const de_UpdateGlobalSettingsCommandError = async (output, context) => {
|
|
2830
2810
|
const parsedOutput = {
|
|
2831
2811
|
...output,
|
|
2832
2812
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2835,19 +2815,19 @@ const deserializeAws_restJson1UpdateGlobalSettingsCommandError = async (output,
|
|
|
2835
2815
|
switch (errorCode) {
|
|
2836
2816
|
case "AccessDeniedException":
|
|
2837
2817
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
2838
|
-
throw await
|
|
2818
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2839
2819
|
case "ConflictException":
|
|
2840
2820
|
case "com.amazonaws.wellarchitected#ConflictException":
|
|
2841
|
-
throw await
|
|
2821
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2842
2822
|
case "InternalServerException":
|
|
2843
2823
|
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
2844
|
-
throw await
|
|
2824
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2845
2825
|
case "ThrottlingException":
|
|
2846
2826
|
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
2847
|
-
throw await
|
|
2827
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2848
2828
|
case "ValidationException":
|
|
2849
2829
|
case "com.amazonaws.wellarchitected#ValidationException":
|
|
2850
|
-
throw await
|
|
2830
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2851
2831
|
default:
|
|
2852
2832
|
const parsedBody = parsedOutput.body;
|
|
2853
2833
|
throwDefaultError({
|
|
@@ -2858,23 +2838,23 @@ const deserializeAws_restJson1UpdateGlobalSettingsCommandError = async (output,
|
|
|
2858
2838
|
});
|
|
2859
2839
|
}
|
|
2860
2840
|
};
|
|
2861
|
-
export const
|
|
2841
|
+
export const de_UpdateLensReviewCommand = async (output, context) => {
|
|
2862
2842
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2863
|
-
return
|
|
2843
|
+
return de_UpdateLensReviewCommandError(output, context);
|
|
2864
2844
|
}
|
|
2865
2845
|
const contents = map({
|
|
2866
2846
|
$metadata: deserializeMetadata(output),
|
|
2867
2847
|
});
|
|
2868
2848
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2869
2849
|
if (data.LensReview != null) {
|
|
2870
|
-
contents.LensReview =
|
|
2850
|
+
contents.LensReview = de_LensReview(data.LensReview, context);
|
|
2871
2851
|
}
|
|
2872
2852
|
if (data.WorkloadId != null) {
|
|
2873
2853
|
contents.WorkloadId = __expectString(data.WorkloadId);
|
|
2874
2854
|
}
|
|
2875
2855
|
return contents;
|
|
2876
2856
|
};
|
|
2877
|
-
const
|
|
2857
|
+
const de_UpdateLensReviewCommandError = async (output, context) => {
|
|
2878
2858
|
const parsedOutput = {
|
|
2879
2859
|
...output,
|
|
2880
2860
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2883,22 +2863,22 @@ const deserializeAws_restJson1UpdateLensReviewCommandError = async (output, cont
|
|
|
2883
2863
|
switch (errorCode) {
|
|
2884
2864
|
case "AccessDeniedException":
|
|
2885
2865
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
2886
|
-
throw await
|
|
2866
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2887
2867
|
case "ConflictException":
|
|
2888
2868
|
case "com.amazonaws.wellarchitected#ConflictException":
|
|
2889
|
-
throw await
|
|
2869
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2890
2870
|
case "InternalServerException":
|
|
2891
2871
|
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
2892
|
-
throw await
|
|
2872
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2893
2873
|
case "ResourceNotFoundException":
|
|
2894
2874
|
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
2895
|
-
throw await
|
|
2875
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2896
2876
|
case "ThrottlingException":
|
|
2897
2877
|
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
2898
|
-
throw await
|
|
2878
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2899
2879
|
case "ValidationException":
|
|
2900
2880
|
case "com.amazonaws.wellarchitected#ValidationException":
|
|
2901
|
-
throw await
|
|
2881
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2902
2882
|
default:
|
|
2903
2883
|
const parsedBody = parsedOutput.body;
|
|
2904
2884
|
throwDefaultError({
|
|
@@ -2909,20 +2889,20 @@ const deserializeAws_restJson1UpdateLensReviewCommandError = async (output, cont
|
|
|
2909
2889
|
});
|
|
2910
2890
|
}
|
|
2911
2891
|
};
|
|
2912
|
-
export const
|
|
2892
|
+
export const de_UpdateShareInvitationCommand = async (output, context) => {
|
|
2913
2893
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2914
|
-
return
|
|
2894
|
+
return de_UpdateShareInvitationCommandError(output, context);
|
|
2915
2895
|
}
|
|
2916
2896
|
const contents = map({
|
|
2917
2897
|
$metadata: deserializeMetadata(output),
|
|
2918
2898
|
});
|
|
2919
2899
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2920
2900
|
if (data.ShareInvitation != null) {
|
|
2921
|
-
contents.ShareInvitation =
|
|
2901
|
+
contents.ShareInvitation = de_ShareInvitation(data.ShareInvitation, context);
|
|
2922
2902
|
}
|
|
2923
2903
|
return contents;
|
|
2924
2904
|
};
|
|
2925
|
-
const
|
|
2905
|
+
const de_UpdateShareInvitationCommandError = async (output, context) => {
|
|
2926
2906
|
const parsedOutput = {
|
|
2927
2907
|
...output,
|
|
2928
2908
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2931,22 +2911,22 @@ const deserializeAws_restJson1UpdateShareInvitationCommandError = async (output,
|
|
|
2931
2911
|
switch (errorCode) {
|
|
2932
2912
|
case "AccessDeniedException":
|
|
2933
2913
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
2934
|
-
throw await
|
|
2914
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2935
2915
|
case "ConflictException":
|
|
2936
2916
|
case "com.amazonaws.wellarchitected#ConflictException":
|
|
2937
|
-
throw await
|
|
2917
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2938
2918
|
case "InternalServerException":
|
|
2939
2919
|
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
2940
|
-
throw await
|
|
2920
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2941
2921
|
case "ResourceNotFoundException":
|
|
2942
2922
|
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
2943
|
-
throw await
|
|
2923
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2944
2924
|
case "ThrottlingException":
|
|
2945
2925
|
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
2946
|
-
throw await
|
|
2926
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2947
2927
|
case "ValidationException":
|
|
2948
2928
|
case "com.amazonaws.wellarchitected#ValidationException":
|
|
2949
|
-
throw await
|
|
2929
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2950
2930
|
default:
|
|
2951
2931
|
const parsedBody = parsedOutput.body;
|
|
2952
2932
|
throwDefaultError({
|
|
@@ -2957,20 +2937,20 @@ const deserializeAws_restJson1UpdateShareInvitationCommandError = async (output,
|
|
|
2957
2937
|
});
|
|
2958
2938
|
}
|
|
2959
2939
|
};
|
|
2960
|
-
export const
|
|
2940
|
+
export const de_UpdateWorkloadCommand = async (output, context) => {
|
|
2961
2941
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2962
|
-
return
|
|
2942
|
+
return de_UpdateWorkloadCommandError(output, context);
|
|
2963
2943
|
}
|
|
2964
2944
|
const contents = map({
|
|
2965
2945
|
$metadata: deserializeMetadata(output),
|
|
2966
2946
|
});
|
|
2967
2947
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2968
2948
|
if (data.Workload != null) {
|
|
2969
|
-
contents.Workload =
|
|
2949
|
+
contents.Workload = de_Workload(data.Workload, context);
|
|
2970
2950
|
}
|
|
2971
2951
|
return contents;
|
|
2972
2952
|
};
|
|
2973
|
-
const
|
|
2953
|
+
const de_UpdateWorkloadCommandError = async (output, context) => {
|
|
2974
2954
|
const parsedOutput = {
|
|
2975
2955
|
...output,
|
|
2976
2956
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2979,22 +2959,22 @@ const deserializeAws_restJson1UpdateWorkloadCommandError = async (output, contex
|
|
|
2979
2959
|
switch (errorCode) {
|
|
2980
2960
|
case "AccessDeniedException":
|
|
2981
2961
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
2982
|
-
throw await
|
|
2962
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2983
2963
|
case "ConflictException":
|
|
2984
2964
|
case "com.amazonaws.wellarchitected#ConflictException":
|
|
2985
|
-
throw await
|
|
2965
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2986
2966
|
case "InternalServerException":
|
|
2987
2967
|
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
2988
|
-
throw await
|
|
2968
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2989
2969
|
case "ResourceNotFoundException":
|
|
2990
2970
|
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
2991
|
-
throw await
|
|
2971
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2992
2972
|
case "ThrottlingException":
|
|
2993
2973
|
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
2994
|
-
throw await
|
|
2974
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2995
2975
|
case "ValidationException":
|
|
2996
2976
|
case "com.amazonaws.wellarchitected#ValidationException":
|
|
2997
|
-
throw await
|
|
2977
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2998
2978
|
default:
|
|
2999
2979
|
const parsedBody = parsedOutput.body;
|
|
3000
2980
|
throwDefaultError({
|
|
@@ -3005,9 +2985,9 @@ const deserializeAws_restJson1UpdateWorkloadCommandError = async (output, contex
|
|
|
3005
2985
|
});
|
|
3006
2986
|
}
|
|
3007
2987
|
};
|
|
3008
|
-
export const
|
|
2988
|
+
export const de_UpdateWorkloadShareCommand = async (output, context) => {
|
|
3009
2989
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3010
|
-
return
|
|
2990
|
+
return de_UpdateWorkloadShareCommandError(output, context);
|
|
3011
2991
|
}
|
|
3012
2992
|
const contents = map({
|
|
3013
2993
|
$metadata: deserializeMetadata(output),
|
|
@@ -3017,11 +2997,11 @@ export const deserializeAws_restJson1UpdateWorkloadShareCommand = async (output,
|
|
|
3017
2997
|
contents.WorkloadId = __expectString(data.WorkloadId);
|
|
3018
2998
|
}
|
|
3019
2999
|
if (data.WorkloadShare != null) {
|
|
3020
|
-
contents.WorkloadShare =
|
|
3000
|
+
contents.WorkloadShare = de_WorkloadShare(data.WorkloadShare, context);
|
|
3021
3001
|
}
|
|
3022
3002
|
return contents;
|
|
3023
3003
|
};
|
|
3024
|
-
const
|
|
3004
|
+
const de_UpdateWorkloadShareCommandError = async (output, context) => {
|
|
3025
3005
|
const parsedOutput = {
|
|
3026
3006
|
...output,
|
|
3027
3007
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3030,22 +3010,22 @@ const deserializeAws_restJson1UpdateWorkloadShareCommandError = async (output, c
|
|
|
3030
3010
|
switch (errorCode) {
|
|
3031
3011
|
case "AccessDeniedException":
|
|
3032
3012
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
3033
|
-
throw await
|
|
3013
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3034
3014
|
case "ConflictException":
|
|
3035
3015
|
case "com.amazonaws.wellarchitected#ConflictException":
|
|
3036
|
-
throw await
|
|
3016
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3037
3017
|
case "InternalServerException":
|
|
3038
3018
|
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
3039
|
-
throw await
|
|
3019
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3040
3020
|
case "ResourceNotFoundException":
|
|
3041
3021
|
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
3042
|
-
throw await
|
|
3022
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3043
3023
|
case "ThrottlingException":
|
|
3044
3024
|
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
3045
|
-
throw await
|
|
3025
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3046
3026
|
case "ValidationException":
|
|
3047
3027
|
case "com.amazonaws.wellarchitected#ValidationException":
|
|
3048
|
-
throw await
|
|
3028
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3049
3029
|
default:
|
|
3050
3030
|
const parsedBody = parsedOutput.body;
|
|
3051
3031
|
throwDefaultError({
|
|
@@ -3056,9 +3036,9 @@ const deserializeAws_restJson1UpdateWorkloadShareCommandError = async (output, c
|
|
|
3056
3036
|
});
|
|
3057
3037
|
}
|
|
3058
3038
|
};
|
|
3059
|
-
export const
|
|
3039
|
+
export const de_UpgradeLensReviewCommand = async (output, context) => {
|
|
3060
3040
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3061
|
-
return
|
|
3041
|
+
return de_UpgradeLensReviewCommandError(output, context);
|
|
3062
3042
|
}
|
|
3063
3043
|
const contents = map({
|
|
3064
3044
|
$metadata: deserializeMetadata(output),
|
|
@@ -3066,7 +3046,7 @@ export const deserializeAws_restJson1UpgradeLensReviewCommand = async (output, c
|
|
|
3066
3046
|
await collectBody(output.body, context);
|
|
3067
3047
|
return contents;
|
|
3068
3048
|
};
|
|
3069
|
-
const
|
|
3049
|
+
const de_UpgradeLensReviewCommandError = async (output, context) => {
|
|
3070
3050
|
const parsedOutput = {
|
|
3071
3051
|
...output,
|
|
3072
3052
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3075,22 +3055,22 @@ const deserializeAws_restJson1UpgradeLensReviewCommandError = async (output, con
|
|
|
3075
3055
|
switch (errorCode) {
|
|
3076
3056
|
case "AccessDeniedException":
|
|
3077
3057
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
3078
|
-
throw await
|
|
3058
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3079
3059
|
case "ConflictException":
|
|
3080
3060
|
case "com.amazonaws.wellarchitected#ConflictException":
|
|
3081
|
-
throw await
|
|
3061
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3082
3062
|
case "InternalServerException":
|
|
3083
3063
|
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
3084
|
-
throw await
|
|
3064
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3085
3065
|
case "ResourceNotFoundException":
|
|
3086
3066
|
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
3087
|
-
throw await
|
|
3067
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3088
3068
|
case "ThrottlingException":
|
|
3089
3069
|
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
3090
|
-
throw await
|
|
3070
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3091
3071
|
case "ValidationException":
|
|
3092
3072
|
case "com.amazonaws.wellarchitected#ValidationException":
|
|
3093
|
-
throw await
|
|
3073
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3094
3074
|
default:
|
|
3095
3075
|
const parsedBody = parsedOutput.body;
|
|
3096
3076
|
throwDefaultError({
|
|
@@ -3102,7 +3082,7 @@ const deserializeAws_restJson1UpgradeLensReviewCommandError = async (output, con
|
|
|
3102
3082
|
}
|
|
3103
3083
|
};
|
|
3104
3084
|
const map = __map;
|
|
3105
|
-
const
|
|
3085
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
3106
3086
|
const contents = map({});
|
|
3107
3087
|
const data = parsedOutput.body;
|
|
3108
3088
|
if (data.Message != null) {
|
|
@@ -3114,7 +3094,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
|
|
|
3114
3094
|
});
|
|
3115
3095
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
3116
3096
|
};
|
|
3117
|
-
const
|
|
3097
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
3118
3098
|
const contents = map({});
|
|
3119
3099
|
const data = parsedOutput.body;
|
|
3120
3100
|
if (data.Message != null) {
|
|
@@ -3132,7 +3112,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
3132
3112
|
});
|
|
3133
3113
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
3134
3114
|
};
|
|
3135
|
-
const
|
|
3115
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
3136
3116
|
const contents = map({});
|
|
3137
3117
|
const data = parsedOutput.body;
|
|
3138
3118
|
if (data.Message != null) {
|
|
@@ -3144,7 +3124,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
3144
3124
|
});
|
|
3145
3125
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
3146
3126
|
};
|
|
3147
|
-
const
|
|
3127
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3148
3128
|
const contents = map({});
|
|
3149
3129
|
const data = parsedOutput.body;
|
|
3150
3130
|
if (data.Message != null) {
|
|
@@ -3162,7 +3142,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
3162
3142
|
});
|
|
3163
3143
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
3164
3144
|
};
|
|
3165
|
-
const
|
|
3145
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
3166
3146
|
const contents = map({});
|
|
3167
3147
|
const data = parsedOutput.body;
|
|
3168
3148
|
if (data.Message != null) {
|
|
@@ -3186,7 +3166,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
|
|
|
3186
3166
|
});
|
|
3187
3167
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
3188
3168
|
};
|
|
3189
|
-
const
|
|
3169
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
3190
3170
|
const contents = map({});
|
|
3191
3171
|
const data = parsedOutput.body;
|
|
3192
3172
|
if (data.Message != null) {
|
|
@@ -3204,11 +3184,11 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
3204
3184
|
});
|
|
3205
3185
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
3206
3186
|
};
|
|
3207
|
-
const
|
|
3187
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
3208
3188
|
const contents = map({});
|
|
3209
3189
|
const data = parsedOutput.body;
|
|
3210
3190
|
if (data.Fields != null) {
|
|
3211
|
-
contents.Fields =
|
|
3191
|
+
contents.Fields = de_ValidationExceptionFieldList(data.Fields, context);
|
|
3212
3192
|
}
|
|
3213
3193
|
if (data.Message != null) {
|
|
3214
3194
|
contents.Message = __expectString(data.Message);
|
|
@@ -3222,30 +3202,30 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
3222
3202
|
});
|
|
3223
3203
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
3224
3204
|
};
|
|
3225
|
-
const
|
|
3205
|
+
const se_ChoiceUpdate = (input, context) => {
|
|
3226
3206
|
return {
|
|
3227
3207
|
...(input.Notes != null && { Notes: input.Notes }),
|
|
3228
3208
|
...(input.Reason != null && { Reason: input.Reason }),
|
|
3229
3209
|
...(input.Status != null && { Status: input.Status }),
|
|
3230
3210
|
};
|
|
3231
3211
|
};
|
|
3232
|
-
const
|
|
3212
|
+
const se_ChoiceUpdates = (input, context) => {
|
|
3233
3213
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3234
3214
|
if (value === null) {
|
|
3235
3215
|
return acc;
|
|
3236
3216
|
}
|
|
3237
|
-
acc[key] =
|
|
3217
|
+
acc[key] = se_ChoiceUpdate(value, context);
|
|
3238
3218
|
return acc;
|
|
3239
3219
|
}, {});
|
|
3240
3220
|
};
|
|
3241
|
-
const
|
|
3221
|
+
const se_LensAliases = (input, context) => {
|
|
3242
3222
|
return input
|
|
3243
3223
|
.filter((e) => e != null)
|
|
3244
3224
|
.map((entry) => {
|
|
3245
3225
|
return entry;
|
|
3246
3226
|
});
|
|
3247
3227
|
};
|
|
3248
|
-
const
|
|
3228
|
+
const se_PillarNotes = (input, context) => {
|
|
3249
3229
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3250
3230
|
if (value === null) {
|
|
3251
3231
|
return acc;
|
|
@@ -3254,14 +3234,14 @@ const serializeAws_restJson1PillarNotes = (input, context) => {
|
|
|
3254
3234
|
return acc;
|
|
3255
3235
|
}, {});
|
|
3256
3236
|
};
|
|
3257
|
-
const
|
|
3237
|
+
const se_SelectedChoices = (input, context) => {
|
|
3258
3238
|
return input
|
|
3259
3239
|
.filter((e) => e != null)
|
|
3260
3240
|
.map((entry) => {
|
|
3261
3241
|
return entry;
|
|
3262
3242
|
});
|
|
3263
3243
|
};
|
|
3264
|
-
const
|
|
3244
|
+
const se_TagMap = (input, context) => {
|
|
3265
3245
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3266
3246
|
if (value === null) {
|
|
3267
3247
|
return acc;
|
|
@@ -3270,56 +3250,56 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
3270
3250
|
return acc;
|
|
3271
3251
|
}, {});
|
|
3272
3252
|
};
|
|
3273
|
-
const
|
|
3253
|
+
const se_WorkloadAccountIds = (input, context) => {
|
|
3274
3254
|
return input
|
|
3275
3255
|
.filter((e) => e != null)
|
|
3276
3256
|
.map((entry) => {
|
|
3277
3257
|
return entry;
|
|
3278
3258
|
});
|
|
3279
3259
|
};
|
|
3280
|
-
const
|
|
3260
|
+
const se_WorkloadApplications = (input, context) => {
|
|
3281
3261
|
return input
|
|
3282
3262
|
.filter((e) => e != null)
|
|
3283
3263
|
.map((entry) => {
|
|
3284
3264
|
return entry;
|
|
3285
3265
|
});
|
|
3286
3266
|
};
|
|
3287
|
-
const
|
|
3267
|
+
const se_WorkloadAwsRegions = (input, context) => {
|
|
3288
3268
|
return input
|
|
3289
3269
|
.filter((e) => e != null)
|
|
3290
3270
|
.map((entry) => {
|
|
3291
3271
|
return entry;
|
|
3292
3272
|
});
|
|
3293
3273
|
};
|
|
3294
|
-
const
|
|
3274
|
+
const se_WorkloadDiscoveryConfig = (input, context) => {
|
|
3295
3275
|
return {
|
|
3296
3276
|
...(input.TrustedAdvisorIntegrationStatus != null && {
|
|
3297
3277
|
TrustedAdvisorIntegrationStatus: input.TrustedAdvisorIntegrationStatus,
|
|
3298
3278
|
}),
|
|
3299
3279
|
};
|
|
3300
3280
|
};
|
|
3301
|
-
const
|
|
3281
|
+
const se_WorkloadLenses = (input, context) => {
|
|
3302
3282
|
return input
|
|
3303
3283
|
.filter((e) => e != null)
|
|
3304
3284
|
.map((entry) => {
|
|
3305
3285
|
return entry;
|
|
3306
3286
|
});
|
|
3307
3287
|
};
|
|
3308
|
-
const
|
|
3288
|
+
const se_WorkloadNonAwsRegions = (input, context) => {
|
|
3309
3289
|
return input
|
|
3310
3290
|
.filter((e) => e != null)
|
|
3311
3291
|
.map((entry) => {
|
|
3312
3292
|
return entry;
|
|
3313
3293
|
});
|
|
3314
3294
|
};
|
|
3315
|
-
const
|
|
3295
|
+
const se_WorkloadPillarPriorities = (input, context) => {
|
|
3316
3296
|
return input
|
|
3317
3297
|
.filter((e) => e != null)
|
|
3318
3298
|
.map((entry) => {
|
|
3319
3299
|
return entry;
|
|
3320
3300
|
});
|
|
3321
3301
|
};
|
|
3322
|
-
const
|
|
3302
|
+
const de_AccountSummary = (output, context) => {
|
|
3323
3303
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3324
3304
|
if (value === null) {
|
|
3325
3305
|
return acc;
|
|
@@ -3328,27 +3308,27 @@ const deserializeAws_restJson1AccountSummary = (output, context) => {
|
|
|
3328
3308
|
return acc;
|
|
3329
3309
|
}, {});
|
|
3330
3310
|
};
|
|
3331
|
-
const
|
|
3311
|
+
const de_AdditionalResources = (output, context) => {
|
|
3332
3312
|
return {
|
|
3333
|
-
Content: output.Content != null ?
|
|
3313
|
+
Content: output.Content != null ? de_Urls(output.Content, context) : undefined,
|
|
3334
3314
|
Type: __expectString(output.Type),
|
|
3335
3315
|
};
|
|
3336
3316
|
};
|
|
3337
|
-
const
|
|
3317
|
+
const de_AdditionalResourcesList = (output, context) => {
|
|
3338
3318
|
const retVal = (output || [])
|
|
3339
3319
|
.filter((e) => e != null)
|
|
3340
3320
|
.map((entry) => {
|
|
3341
3321
|
if (entry === null) {
|
|
3342
3322
|
return null;
|
|
3343
3323
|
}
|
|
3344
|
-
return
|
|
3324
|
+
return de_AdditionalResources(entry, context);
|
|
3345
3325
|
});
|
|
3346
3326
|
return retVal;
|
|
3347
3327
|
};
|
|
3348
|
-
const
|
|
3328
|
+
const de_Answer = (output, context) => {
|
|
3349
3329
|
return {
|
|
3350
|
-
ChoiceAnswers: output.ChoiceAnswers != null ?
|
|
3351
|
-
Choices: output.Choices != null ?
|
|
3330
|
+
ChoiceAnswers: output.ChoiceAnswers != null ? de_ChoiceAnswers(output.ChoiceAnswers, context) : undefined,
|
|
3331
|
+
Choices: output.Choices != null ? de_Choices(output.Choices, context) : undefined,
|
|
3352
3332
|
HelpfulResourceDisplayText: __expectString(output.HelpfulResourceDisplayText),
|
|
3353
3333
|
HelpfulResourceUrl: __expectString(output.HelpfulResourceUrl),
|
|
3354
3334
|
ImprovementPlanUrl: __expectString(output.ImprovementPlanUrl),
|
|
@@ -3360,57 +3340,53 @@ const deserializeAws_restJson1Answer = (output, context) => {
|
|
|
3360
3340
|
QuestionTitle: __expectString(output.QuestionTitle),
|
|
3361
3341
|
Reason: __expectString(output.Reason),
|
|
3362
3342
|
Risk: __expectString(output.Risk),
|
|
3363
|
-
SelectedChoices: output.SelectedChoices != null
|
|
3364
|
-
? deserializeAws_restJson1SelectedChoices(output.SelectedChoices, context)
|
|
3365
|
-
: undefined,
|
|
3343
|
+
SelectedChoices: output.SelectedChoices != null ? de_SelectedChoices(output.SelectedChoices, context) : undefined,
|
|
3366
3344
|
};
|
|
3367
3345
|
};
|
|
3368
|
-
const
|
|
3346
|
+
const de_AnswerSummaries = (output, context) => {
|
|
3369
3347
|
const retVal = (output || [])
|
|
3370
3348
|
.filter((e) => e != null)
|
|
3371
3349
|
.map((entry) => {
|
|
3372
3350
|
if (entry === null) {
|
|
3373
3351
|
return null;
|
|
3374
3352
|
}
|
|
3375
|
-
return
|
|
3353
|
+
return de_AnswerSummary(entry, context);
|
|
3376
3354
|
});
|
|
3377
3355
|
return retVal;
|
|
3378
3356
|
};
|
|
3379
|
-
const
|
|
3357
|
+
const de_AnswerSummary = (output, context) => {
|
|
3380
3358
|
return {
|
|
3381
3359
|
ChoiceAnswerSummaries: output.ChoiceAnswerSummaries != null
|
|
3382
|
-
?
|
|
3360
|
+
? de_ChoiceAnswerSummaries(output.ChoiceAnswerSummaries, context)
|
|
3383
3361
|
: undefined,
|
|
3384
|
-
Choices: output.Choices != null ?
|
|
3362
|
+
Choices: output.Choices != null ? de_Choices(output.Choices, context) : undefined,
|
|
3385
3363
|
IsApplicable: __expectBoolean(output.IsApplicable),
|
|
3386
3364
|
PillarId: __expectString(output.PillarId),
|
|
3387
3365
|
QuestionId: __expectString(output.QuestionId),
|
|
3388
3366
|
QuestionTitle: __expectString(output.QuestionTitle),
|
|
3389
3367
|
Reason: __expectString(output.Reason),
|
|
3390
3368
|
Risk: __expectString(output.Risk),
|
|
3391
|
-
SelectedChoices: output.SelectedChoices != null
|
|
3392
|
-
? deserializeAws_restJson1SelectedChoices(output.SelectedChoices, context)
|
|
3393
|
-
: undefined,
|
|
3369
|
+
SelectedChoices: output.SelectedChoices != null ? de_SelectedChoices(output.SelectedChoices, context) : undefined,
|
|
3394
3370
|
};
|
|
3395
3371
|
};
|
|
3396
|
-
const
|
|
3372
|
+
const de_BestPractice = (output, context) => {
|
|
3397
3373
|
return {
|
|
3398
3374
|
ChoiceId: __expectString(output.ChoiceId),
|
|
3399
3375
|
ChoiceTitle: __expectString(output.ChoiceTitle),
|
|
3400
3376
|
};
|
|
3401
3377
|
};
|
|
3402
|
-
const
|
|
3378
|
+
const de_BestPractices = (output, context) => {
|
|
3403
3379
|
const retVal = (output || [])
|
|
3404
3380
|
.filter((e) => e != null)
|
|
3405
3381
|
.map((entry) => {
|
|
3406
3382
|
if (entry === null) {
|
|
3407
3383
|
return null;
|
|
3408
3384
|
}
|
|
3409
|
-
return
|
|
3385
|
+
return de_BestPractice(entry, context);
|
|
3410
3386
|
});
|
|
3411
3387
|
return retVal;
|
|
3412
3388
|
};
|
|
3413
|
-
const
|
|
3389
|
+
const de_CheckDetail = (output, context) => {
|
|
3414
3390
|
return {
|
|
3415
3391
|
AccountId: __expectString(output.AccountId),
|
|
3416
3392
|
ChoiceId: __expectString(output.ChoiceId),
|
|
@@ -3427,33 +3403,31 @@ const deserializeAws_restJson1CheckDetail = (output, context) => {
|
|
|
3427
3403
|
UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt))) : undefined,
|
|
3428
3404
|
};
|
|
3429
3405
|
};
|
|
3430
|
-
const
|
|
3406
|
+
const de_CheckDetails = (output, context) => {
|
|
3431
3407
|
const retVal = (output || [])
|
|
3432
3408
|
.filter((e) => e != null)
|
|
3433
3409
|
.map((entry) => {
|
|
3434
3410
|
if (entry === null) {
|
|
3435
3411
|
return null;
|
|
3436
3412
|
}
|
|
3437
|
-
return
|
|
3413
|
+
return de_CheckDetail(entry, context);
|
|
3438
3414
|
});
|
|
3439
3415
|
return retVal;
|
|
3440
3416
|
};
|
|
3441
|
-
const
|
|
3417
|
+
const de_CheckSummaries = (output, context) => {
|
|
3442
3418
|
const retVal = (output || [])
|
|
3443
3419
|
.filter((e) => e != null)
|
|
3444
3420
|
.map((entry) => {
|
|
3445
3421
|
if (entry === null) {
|
|
3446
3422
|
return null;
|
|
3447
3423
|
}
|
|
3448
|
-
return
|
|
3424
|
+
return de_CheckSummary(entry, context);
|
|
3449
3425
|
});
|
|
3450
3426
|
return retVal;
|
|
3451
3427
|
};
|
|
3452
|
-
const
|
|
3428
|
+
const de_CheckSummary = (output, context) => {
|
|
3453
3429
|
return {
|
|
3454
|
-
AccountSummary: output.AccountSummary != null
|
|
3455
|
-
? deserializeAws_restJson1AccountSummary(output.AccountSummary, context)
|
|
3456
|
-
: undefined,
|
|
3430
|
+
AccountSummary: output.AccountSummary != null ? de_AccountSummary(output.AccountSummary, context) : undefined,
|
|
3457
3431
|
ChoiceId: __expectString(output.ChoiceId),
|
|
3458
3432
|
Description: __expectString(output.Description),
|
|
3459
3433
|
Id: __expectString(output.Id),
|
|
@@ -3466,23 +3440,17 @@ const deserializeAws_restJson1CheckSummary = (output, context) => {
|
|
|
3466
3440
|
UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt))) : undefined,
|
|
3467
3441
|
};
|
|
3468
3442
|
};
|
|
3469
|
-
const
|
|
3443
|
+
const de_Choice = (output, context) => {
|
|
3470
3444
|
return {
|
|
3471
|
-
AdditionalResources: output.AdditionalResources != null
|
|
3472
|
-
? deserializeAws_restJson1AdditionalResourcesList(output.AdditionalResources, context)
|
|
3473
|
-
: undefined,
|
|
3445
|
+
AdditionalResources: output.AdditionalResources != null ? de_AdditionalResourcesList(output.AdditionalResources, context) : undefined,
|
|
3474
3446
|
ChoiceId: __expectString(output.ChoiceId),
|
|
3475
3447
|
Description: __expectString(output.Description),
|
|
3476
|
-
HelpfulResource: output.HelpfulResource != null
|
|
3477
|
-
|
|
3478
|
-
: undefined,
|
|
3479
|
-
ImprovementPlan: output.ImprovementPlan != null
|
|
3480
|
-
? deserializeAws_restJson1ChoiceContent(output.ImprovementPlan, context)
|
|
3481
|
-
: undefined,
|
|
3448
|
+
HelpfulResource: output.HelpfulResource != null ? de_ChoiceContent(output.HelpfulResource, context) : undefined,
|
|
3449
|
+
ImprovementPlan: output.ImprovementPlan != null ? de_ChoiceContent(output.ImprovementPlan, context) : undefined,
|
|
3482
3450
|
Title: __expectString(output.Title),
|
|
3483
3451
|
};
|
|
3484
3452
|
};
|
|
3485
|
-
const
|
|
3453
|
+
const de_ChoiceAnswer = (output, context) => {
|
|
3486
3454
|
return {
|
|
3487
3455
|
ChoiceId: __expectString(output.ChoiceId),
|
|
3488
3456
|
Notes: __expectString(output.Notes),
|
|
@@ -3490,117 +3458,115 @@ const deserializeAws_restJson1ChoiceAnswer = (output, context) => {
|
|
|
3490
3458
|
Status: __expectString(output.Status),
|
|
3491
3459
|
};
|
|
3492
3460
|
};
|
|
3493
|
-
const
|
|
3461
|
+
const de_ChoiceAnswers = (output, context) => {
|
|
3494
3462
|
const retVal = (output || [])
|
|
3495
3463
|
.filter((e) => e != null)
|
|
3496
3464
|
.map((entry) => {
|
|
3497
3465
|
if (entry === null) {
|
|
3498
3466
|
return null;
|
|
3499
3467
|
}
|
|
3500
|
-
return
|
|
3468
|
+
return de_ChoiceAnswer(entry, context);
|
|
3501
3469
|
});
|
|
3502
3470
|
return retVal;
|
|
3503
3471
|
};
|
|
3504
|
-
const
|
|
3472
|
+
const de_ChoiceAnswerSummaries = (output, context) => {
|
|
3505
3473
|
const retVal = (output || [])
|
|
3506
3474
|
.filter((e) => e != null)
|
|
3507
3475
|
.map((entry) => {
|
|
3508
3476
|
if (entry === null) {
|
|
3509
3477
|
return null;
|
|
3510
3478
|
}
|
|
3511
|
-
return
|
|
3479
|
+
return de_ChoiceAnswerSummary(entry, context);
|
|
3512
3480
|
});
|
|
3513
3481
|
return retVal;
|
|
3514
3482
|
};
|
|
3515
|
-
const
|
|
3483
|
+
const de_ChoiceAnswerSummary = (output, context) => {
|
|
3516
3484
|
return {
|
|
3517
3485
|
ChoiceId: __expectString(output.ChoiceId),
|
|
3518
3486
|
Reason: __expectString(output.Reason),
|
|
3519
3487
|
Status: __expectString(output.Status),
|
|
3520
3488
|
};
|
|
3521
3489
|
};
|
|
3522
|
-
const
|
|
3490
|
+
const de_ChoiceContent = (output, context) => {
|
|
3523
3491
|
return {
|
|
3524
3492
|
DisplayText: __expectString(output.DisplayText),
|
|
3525
3493
|
Url: __expectString(output.Url),
|
|
3526
3494
|
};
|
|
3527
3495
|
};
|
|
3528
|
-
const
|
|
3496
|
+
const de_ChoiceImprovementPlan = (output, context) => {
|
|
3529
3497
|
return {
|
|
3530
3498
|
ChoiceId: __expectString(output.ChoiceId),
|
|
3531
3499
|
DisplayText: __expectString(output.DisplayText),
|
|
3532
3500
|
ImprovementPlanUrl: __expectString(output.ImprovementPlanUrl),
|
|
3533
3501
|
};
|
|
3534
3502
|
};
|
|
3535
|
-
const
|
|
3503
|
+
const de_ChoiceImprovementPlans = (output, context) => {
|
|
3536
3504
|
const retVal = (output || [])
|
|
3537
3505
|
.filter((e) => e != null)
|
|
3538
3506
|
.map((entry) => {
|
|
3539
3507
|
if (entry === null) {
|
|
3540
3508
|
return null;
|
|
3541
3509
|
}
|
|
3542
|
-
return
|
|
3510
|
+
return de_ChoiceImprovementPlan(entry, context);
|
|
3543
3511
|
});
|
|
3544
3512
|
return retVal;
|
|
3545
3513
|
};
|
|
3546
|
-
const
|
|
3514
|
+
const de_Choices = (output, context) => {
|
|
3547
3515
|
const retVal = (output || [])
|
|
3548
3516
|
.filter((e) => e != null)
|
|
3549
3517
|
.map((entry) => {
|
|
3550
3518
|
if (entry === null) {
|
|
3551
3519
|
return null;
|
|
3552
3520
|
}
|
|
3553
|
-
return
|
|
3521
|
+
return de_Choice(entry, context);
|
|
3554
3522
|
});
|
|
3555
3523
|
return retVal;
|
|
3556
3524
|
};
|
|
3557
|
-
const
|
|
3525
|
+
const de_ConsolidatedReportMetric = (output, context) => {
|
|
3558
3526
|
return {
|
|
3559
|
-
Lenses: output.Lenses != null ?
|
|
3527
|
+
Lenses: output.Lenses != null ? de_LensMetrics(output.Lenses, context) : undefined,
|
|
3560
3528
|
LensesAppliedCount: __expectInt32(output.LensesAppliedCount),
|
|
3561
3529
|
MetricType: __expectString(output.MetricType),
|
|
3562
|
-
RiskCounts: output.RiskCounts != null ?
|
|
3530
|
+
RiskCounts: output.RiskCounts != null ? de_RiskCounts(output.RiskCounts, context) : undefined,
|
|
3563
3531
|
UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt))) : undefined,
|
|
3564
3532
|
WorkloadArn: __expectString(output.WorkloadArn),
|
|
3565
3533
|
WorkloadId: __expectString(output.WorkloadId),
|
|
3566
3534
|
WorkloadName: __expectString(output.WorkloadName),
|
|
3567
3535
|
};
|
|
3568
3536
|
};
|
|
3569
|
-
const
|
|
3537
|
+
const de_ConsolidatedReportMetrics = (output, context) => {
|
|
3570
3538
|
const retVal = (output || [])
|
|
3571
3539
|
.filter((e) => e != null)
|
|
3572
3540
|
.map((entry) => {
|
|
3573
3541
|
if (entry === null) {
|
|
3574
3542
|
return null;
|
|
3575
3543
|
}
|
|
3576
|
-
return
|
|
3544
|
+
return de_ConsolidatedReportMetric(entry, context);
|
|
3577
3545
|
});
|
|
3578
3546
|
return retVal;
|
|
3579
3547
|
};
|
|
3580
|
-
const
|
|
3548
|
+
const de_ImprovementSummaries = (output, context) => {
|
|
3581
3549
|
const retVal = (output || [])
|
|
3582
3550
|
.filter((e) => e != null)
|
|
3583
3551
|
.map((entry) => {
|
|
3584
3552
|
if (entry === null) {
|
|
3585
3553
|
return null;
|
|
3586
3554
|
}
|
|
3587
|
-
return
|
|
3555
|
+
return de_ImprovementSummary(entry, context);
|
|
3588
3556
|
});
|
|
3589
3557
|
return retVal;
|
|
3590
3558
|
};
|
|
3591
|
-
const
|
|
3559
|
+
const de_ImprovementSummary = (output, context) => {
|
|
3592
3560
|
return {
|
|
3593
3561
|
ImprovementPlanUrl: __expectString(output.ImprovementPlanUrl),
|
|
3594
|
-
ImprovementPlans: output.ImprovementPlans != null
|
|
3595
|
-
? deserializeAws_restJson1ChoiceImprovementPlans(output.ImprovementPlans, context)
|
|
3596
|
-
: undefined,
|
|
3562
|
+
ImprovementPlans: output.ImprovementPlans != null ? de_ChoiceImprovementPlans(output.ImprovementPlans, context) : undefined,
|
|
3597
3563
|
PillarId: __expectString(output.PillarId),
|
|
3598
3564
|
QuestionId: __expectString(output.QuestionId),
|
|
3599
3565
|
QuestionTitle: __expectString(output.QuestionTitle),
|
|
3600
3566
|
Risk: __expectString(output.Risk),
|
|
3601
3567
|
};
|
|
3602
3568
|
};
|
|
3603
|
-
const
|
|
3569
|
+
const de_Lens = (output, context) => {
|
|
3604
3570
|
return {
|
|
3605
3571
|
Description: __expectString(output.Description),
|
|
3606
3572
|
LensArn: __expectString(output.LensArn),
|
|
@@ -3608,28 +3574,28 @@ const deserializeAws_restJson1Lens = (output, context) => {
|
|
|
3608
3574
|
Name: __expectString(output.Name),
|
|
3609
3575
|
Owner: __expectString(output.Owner),
|
|
3610
3576
|
ShareInvitationId: __expectString(output.ShareInvitationId),
|
|
3611
|
-
Tags: output.Tags != null ?
|
|
3577
|
+
Tags: output.Tags != null ? de_TagMap(output.Tags, context) : undefined,
|
|
3612
3578
|
};
|
|
3613
3579
|
};
|
|
3614
|
-
const
|
|
3580
|
+
const de_LensMetric = (output, context) => {
|
|
3615
3581
|
return {
|
|
3616
3582
|
LensArn: __expectString(output.LensArn),
|
|
3617
|
-
Pillars: output.Pillars != null ?
|
|
3618
|
-
RiskCounts: output.RiskCounts != null ?
|
|
3583
|
+
Pillars: output.Pillars != null ? de_PillarMetrics(output.Pillars, context) : undefined,
|
|
3584
|
+
RiskCounts: output.RiskCounts != null ? de_RiskCounts(output.RiskCounts, context) : undefined,
|
|
3619
3585
|
};
|
|
3620
3586
|
};
|
|
3621
|
-
const
|
|
3587
|
+
const de_LensMetrics = (output, context) => {
|
|
3622
3588
|
const retVal = (output || [])
|
|
3623
3589
|
.filter((e) => e != null)
|
|
3624
3590
|
.map((entry) => {
|
|
3625
3591
|
if (entry === null) {
|
|
3626
3592
|
return null;
|
|
3627
3593
|
}
|
|
3628
|
-
return
|
|
3594
|
+
return de_LensMetric(entry, context);
|
|
3629
3595
|
});
|
|
3630
3596
|
return retVal;
|
|
3631
3597
|
};
|
|
3632
|
-
const
|
|
3598
|
+
const de_LensReview = (output, context) => {
|
|
3633
3599
|
return {
|
|
3634
3600
|
LensAlias: __expectString(output.LensAlias),
|
|
3635
3601
|
LensArn: __expectString(output.LensArn),
|
|
@@ -3639,53 +3605,53 @@ const deserializeAws_restJson1LensReview = (output, context) => {
|
|
|
3639
3605
|
NextToken: __expectString(output.NextToken),
|
|
3640
3606
|
Notes: __expectString(output.Notes),
|
|
3641
3607
|
PillarReviewSummaries: output.PillarReviewSummaries != null
|
|
3642
|
-
?
|
|
3608
|
+
? de_PillarReviewSummaries(output.PillarReviewSummaries, context)
|
|
3643
3609
|
: undefined,
|
|
3644
|
-
RiskCounts: output.RiskCounts != null ?
|
|
3610
|
+
RiskCounts: output.RiskCounts != null ? de_RiskCounts(output.RiskCounts, context) : undefined,
|
|
3645
3611
|
UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt))) : undefined,
|
|
3646
3612
|
};
|
|
3647
3613
|
};
|
|
3648
|
-
const
|
|
3614
|
+
const de_LensReviewReport = (output, context) => {
|
|
3649
3615
|
return {
|
|
3650
3616
|
Base64String: __expectString(output.Base64String),
|
|
3651
3617
|
LensAlias: __expectString(output.LensAlias),
|
|
3652
3618
|
LensArn: __expectString(output.LensArn),
|
|
3653
3619
|
};
|
|
3654
3620
|
};
|
|
3655
|
-
const
|
|
3621
|
+
const de_LensReviewSummaries = (output, context) => {
|
|
3656
3622
|
const retVal = (output || [])
|
|
3657
3623
|
.filter((e) => e != null)
|
|
3658
3624
|
.map((entry) => {
|
|
3659
3625
|
if (entry === null) {
|
|
3660
3626
|
return null;
|
|
3661
3627
|
}
|
|
3662
|
-
return
|
|
3628
|
+
return de_LensReviewSummary(entry, context);
|
|
3663
3629
|
});
|
|
3664
3630
|
return retVal;
|
|
3665
3631
|
};
|
|
3666
|
-
const
|
|
3632
|
+
const de_LensReviewSummary = (output, context) => {
|
|
3667
3633
|
return {
|
|
3668
3634
|
LensAlias: __expectString(output.LensAlias),
|
|
3669
3635
|
LensArn: __expectString(output.LensArn),
|
|
3670
3636
|
LensName: __expectString(output.LensName),
|
|
3671
3637
|
LensStatus: __expectString(output.LensStatus),
|
|
3672
3638
|
LensVersion: __expectString(output.LensVersion),
|
|
3673
|
-
RiskCounts: output.RiskCounts != null ?
|
|
3639
|
+
RiskCounts: output.RiskCounts != null ? de_RiskCounts(output.RiskCounts, context) : undefined,
|
|
3674
3640
|
UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt))) : undefined,
|
|
3675
3641
|
};
|
|
3676
3642
|
};
|
|
3677
|
-
const
|
|
3643
|
+
const de_LensShareSummaries = (output, context) => {
|
|
3678
3644
|
const retVal = (output || [])
|
|
3679
3645
|
.filter((e) => e != null)
|
|
3680
3646
|
.map((entry) => {
|
|
3681
3647
|
if (entry === null) {
|
|
3682
3648
|
return null;
|
|
3683
3649
|
}
|
|
3684
|
-
return
|
|
3650
|
+
return de_LensShareSummary(entry, context);
|
|
3685
3651
|
});
|
|
3686
3652
|
return retVal;
|
|
3687
3653
|
};
|
|
3688
|
-
const
|
|
3654
|
+
const de_LensShareSummary = (output, context) => {
|
|
3689
3655
|
return {
|
|
3690
3656
|
ShareId: __expectString(output.ShareId),
|
|
3691
3657
|
SharedWith: __expectString(output.SharedWith),
|
|
@@ -3693,18 +3659,18 @@ const deserializeAws_restJson1LensShareSummary = (output, context) => {
|
|
|
3693
3659
|
StatusMessage: __expectString(output.StatusMessage),
|
|
3694
3660
|
};
|
|
3695
3661
|
};
|
|
3696
|
-
const
|
|
3662
|
+
const de_LensSummaries = (output, context) => {
|
|
3697
3663
|
const retVal = (output || [])
|
|
3698
3664
|
.filter((e) => e != null)
|
|
3699
3665
|
.map((entry) => {
|
|
3700
3666
|
if (entry === null) {
|
|
3701
3667
|
return null;
|
|
3702
3668
|
}
|
|
3703
|
-
return
|
|
3669
|
+
return de_LensSummary(entry, context);
|
|
3704
3670
|
});
|
|
3705
3671
|
return retVal;
|
|
3706
3672
|
};
|
|
3707
|
-
const
|
|
3673
|
+
const de_LensSummary = (output, context) => {
|
|
3708
3674
|
return {
|
|
3709
3675
|
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
|
|
3710
3676
|
Description: __expectString(output.Description),
|
|
@@ -3718,7 +3684,7 @@ const deserializeAws_restJson1LensSummary = (output, context) => {
|
|
|
3718
3684
|
UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt))) : undefined,
|
|
3719
3685
|
};
|
|
3720
3686
|
};
|
|
3721
|
-
const
|
|
3687
|
+
const de_LensUpgradeSummary = (output, context) => {
|
|
3722
3688
|
return {
|
|
3723
3689
|
CurrentLensVersion: __expectString(output.CurrentLensVersion),
|
|
3724
3690
|
LatestLensVersion: __expectString(output.LatestLensVersion),
|
|
@@ -3728,149 +3694,143 @@ const deserializeAws_restJson1LensUpgradeSummary = (output, context) => {
|
|
|
3728
3694
|
WorkloadName: __expectString(output.WorkloadName),
|
|
3729
3695
|
};
|
|
3730
3696
|
};
|
|
3731
|
-
const
|
|
3697
|
+
const de_Milestone = (output, context) => {
|
|
3732
3698
|
return {
|
|
3733
3699
|
MilestoneName: __expectString(output.MilestoneName),
|
|
3734
3700
|
MilestoneNumber: __expectInt32(output.MilestoneNumber),
|
|
3735
3701
|
RecordedAt: output.RecordedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.RecordedAt))) : undefined,
|
|
3736
|
-
Workload: output.Workload != null ?
|
|
3702
|
+
Workload: output.Workload != null ? de_Workload(output.Workload, context) : undefined,
|
|
3737
3703
|
};
|
|
3738
3704
|
};
|
|
3739
|
-
const
|
|
3705
|
+
const de_MilestoneSummaries = (output, context) => {
|
|
3740
3706
|
const retVal = (output || [])
|
|
3741
3707
|
.filter((e) => e != null)
|
|
3742
3708
|
.map((entry) => {
|
|
3743
3709
|
if (entry === null) {
|
|
3744
3710
|
return null;
|
|
3745
3711
|
}
|
|
3746
|
-
return
|
|
3712
|
+
return de_MilestoneSummary(entry, context);
|
|
3747
3713
|
});
|
|
3748
3714
|
return retVal;
|
|
3749
3715
|
};
|
|
3750
|
-
const
|
|
3716
|
+
const de_MilestoneSummary = (output, context) => {
|
|
3751
3717
|
return {
|
|
3752
3718
|
MilestoneName: __expectString(output.MilestoneName),
|
|
3753
3719
|
MilestoneNumber: __expectInt32(output.MilestoneNumber),
|
|
3754
3720
|
RecordedAt: output.RecordedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.RecordedAt))) : undefined,
|
|
3755
|
-
WorkloadSummary: output.WorkloadSummary != null
|
|
3756
|
-
? deserializeAws_restJson1WorkloadSummary(output.WorkloadSummary, context)
|
|
3757
|
-
: undefined,
|
|
3721
|
+
WorkloadSummary: output.WorkloadSummary != null ? de_WorkloadSummary(output.WorkloadSummary, context) : undefined,
|
|
3758
3722
|
};
|
|
3759
3723
|
};
|
|
3760
|
-
const
|
|
3724
|
+
const de_NotificationSummaries = (output, context) => {
|
|
3761
3725
|
const retVal = (output || [])
|
|
3762
3726
|
.filter((e) => e != null)
|
|
3763
3727
|
.map((entry) => {
|
|
3764
3728
|
if (entry === null) {
|
|
3765
3729
|
return null;
|
|
3766
3730
|
}
|
|
3767
|
-
return
|
|
3731
|
+
return de_NotificationSummary(entry, context);
|
|
3768
3732
|
});
|
|
3769
3733
|
return retVal;
|
|
3770
3734
|
};
|
|
3771
|
-
const
|
|
3735
|
+
const de_NotificationSummary = (output, context) => {
|
|
3772
3736
|
return {
|
|
3773
|
-
LensUpgradeSummary: output.LensUpgradeSummary != null
|
|
3774
|
-
? deserializeAws_restJson1LensUpgradeSummary(output.LensUpgradeSummary, context)
|
|
3775
|
-
: undefined,
|
|
3737
|
+
LensUpgradeSummary: output.LensUpgradeSummary != null ? de_LensUpgradeSummary(output.LensUpgradeSummary, context) : undefined,
|
|
3776
3738
|
Type: __expectString(output.Type),
|
|
3777
3739
|
};
|
|
3778
3740
|
};
|
|
3779
|
-
const
|
|
3741
|
+
const de_PillarDifference = (output, context) => {
|
|
3780
3742
|
return {
|
|
3781
3743
|
DifferenceStatus: __expectString(output.DifferenceStatus),
|
|
3782
3744
|
PillarId: __expectString(output.PillarId),
|
|
3783
3745
|
PillarName: __expectString(output.PillarName),
|
|
3784
|
-
QuestionDifferences: output.QuestionDifferences != null
|
|
3785
|
-
? deserializeAws_restJson1QuestionDifferences(output.QuestionDifferences, context)
|
|
3786
|
-
: undefined,
|
|
3746
|
+
QuestionDifferences: output.QuestionDifferences != null ? de_QuestionDifferences(output.QuestionDifferences, context) : undefined,
|
|
3787
3747
|
};
|
|
3788
3748
|
};
|
|
3789
|
-
const
|
|
3749
|
+
const de_PillarDifferences = (output, context) => {
|
|
3790
3750
|
const retVal = (output || [])
|
|
3791
3751
|
.filter((e) => e != null)
|
|
3792
3752
|
.map((entry) => {
|
|
3793
3753
|
if (entry === null) {
|
|
3794
3754
|
return null;
|
|
3795
3755
|
}
|
|
3796
|
-
return
|
|
3756
|
+
return de_PillarDifference(entry, context);
|
|
3797
3757
|
});
|
|
3798
3758
|
return retVal;
|
|
3799
3759
|
};
|
|
3800
|
-
const
|
|
3760
|
+
const de_PillarMetric = (output, context) => {
|
|
3801
3761
|
return {
|
|
3802
3762
|
PillarId: __expectString(output.PillarId),
|
|
3803
|
-
Questions: output.Questions != null ?
|
|
3804
|
-
RiskCounts: output.RiskCounts != null ?
|
|
3763
|
+
Questions: output.Questions != null ? de_QuestionMetrics(output.Questions, context) : undefined,
|
|
3764
|
+
RiskCounts: output.RiskCounts != null ? de_RiskCounts(output.RiskCounts, context) : undefined,
|
|
3805
3765
|
};
|
|
3806
3766
|
};
|
|
3807
|
-
const
|
|
3767
|
+
const de_PillarMetrics = (output, context) => {
|
|
3808
3768
|
const retVal = (output || [])
|
|
3809
3769
|
.filter((e) => e != null)
|
|
3810
3770
|
.map((entry) => {
|
|
3811
3771
|
if (entry === null) {
|
|
3812
3772
|
return null;
|
|
3813
3773
|
}
|
|
3814
|
-
return
|
|
3774
|
+
return de_PillarMetric(entry, context);
|
|
3815
3775
|
});
|
|
3816
3776
|
return retVal;
|
|
3817
3777
|
};
|
|
3818
|
-
const
|
|
3778
|
+
const de_PillarReviewSummaries = (output, context) => {
|
|
3819
3779
|
const retVal = (output || [])
|
|
3820
3780
|
.filter((e) => e != null)
|
|
3821
3781
|
.map((entry) => {
|
|
3822
3782
|
if (entry === null) {
|
|
3823
3783
|
return null;
|
|
3824
3784
|
}
|
|
3825
|
-
return
|
|
3785
|
+
return de_PillarReviewSummary(entry, context);
|
|
3826
3786
|
});
|
|
3827
3787
|
return retVal;
|
|
3828
3788
|
};
|
|
3829
|
-
const
|
|
3789
|
+
const de_PillarReviewSummary = (output, context) => {
|
|
3830
3790
|
return {
|
|
3831
3791
|
Notes: __expectString(output.Notes),
|
|
3832
3792
|
PillarId: __expectString(output.PillarId),
|
|
3833
3793
|
PillarName: __expectString(output.PillarName),
|
|
3834
|
-
RiskCounts: output.RiskCounts != null ?
|
|
3794
|
+
RiskCounts: output.RiskCounts != null ? de_RiskCounts(output.RiskCounts, context) : undefined,
|
|
3835
3795
|
};
|
|
3836
3796
|
};
|
|
3837
|
-
const
|
|
3797
|
+
const de_QuestionDifference = (output, context) => {
|
|
3838
3798
|
return {
|
|
3839
3799
|
DifferenceStatus: __expectString(output.DifferenceStatus),
|
|
3840
3800
|
QuestionId: __expectString(output.QuestionId),
|
|
3841
3801
|
QuestionTitle: __expectString(output.QuestionTitle),
|
|
3842
3802
|
};
|
|
3843
3803
|
};
|
|
3844
|
-
const
|
|
3804
|
+
const de_QuestionDifferences = (output, context) => {
|
|
3845
3805
|
const retVal = (output || [])
|
|
3846
3806
|
.filter((e) => e != null)
|
|
3847
3807
|
.map((entry) => {
|
|
3848
3808
|
if (entry === null) {
|
|
3849
3809
|
return null;
|
|
3850
3810
|
}
|
|
3851
|
-
return
|
|
3811
|
+
return de_QuestionDifference(entry, context);
|
|
3852
3812
|
});
|
|
3853
3813
|
return retVal;
|
|
3854
3814
|
};
|
|
3855
|
-
const
|
|
3815
|
+
const de_QuestionMetric = (output, context) => {
|
|
3856
3816
|
return {
|
|
3857
|
-
BestPractices: output.BestPractices != null ?
|
|
3817
|
+
BestPractices: output.BestPractices != null ? de_BestPractices(output.BestPractices, context) : undefined,
|
|
3858
3818
|
QuestionId: __expectString(output.QuestionId),
|
|
3859
3819
|
Risk: __expectString(output.Risk),
|
|
3860
3820
|
};
|
|
3861
3821
|
};
|
|
3862
|
-
const
|
|
3822
|
+
const de_QuestionMetrics = (output, context) => {
|
|
3863
3823
|
const retVal = (output || [])
|
|
3864
3824
|
.filter((e) => e != null)
|
|
3865
3825
|
.map((entry) => {
|
|
3866
3826
|
if (entry === null) {
|
|
3867
3827
|
return null;
|
|
3868
3828
|
}
|
|
3869
|
-
return
|
|
3829
|
+
return de_QuestionMetric(entry, context);
|
|
3870
3830
|
});
|
|
3871
3831
|
return retVal;
|
|
3872
3832
|
};
|
|
3873
|
-
const
|
|
3833
|
+
const de_RiskCounts = (output, context) => {
|
|
3874
3834
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3875
3835
|
if (value === null) {
|
|
3876
3836
|
return acc;
|
|
@@ -3879,7 +3839,7 @@ const deserializeAws_restJson1RiskCounts = (output, context) => {
|
|
|
3879
3839
|
return acc;
|
|
3880
3840
|
}, {});
|
|
3881
3841
|
};
|
|
3882
|
-
const
|
|
3842
|
+
const de_SelectedChoices = (output, context) => {
|
|
3883
3843
|
const retVal = (output || [])
|
|
3884
3844
|
.filter((e) => e != null)
|
|
3885
3845
|
.map((entry) => {
|
|
@@ -3890,7 +3850,7 @@ const deserializeAws_restJson1SelectedChoices = (output, context) => {
|
|
|
3890
3850
|
});
|
|
3891
3851
|
return retVal;
|
|
3892
3852
|
};
|
|
3893
|
-
const
|
|
3853
|
+
const de_ShareInvitation = (output, context) => {
|
|
3894
3854
|
return {
|
|
3895
3855
|
LensAlias: __expectString(output.LensAlias),
|
|
3896
3856
|
LensArn: __expectString(output.LensArn),
|
|
@@ -3899,18 +3859,18 @@ const deserializeAws_restJson1ShareInvitation = (output, context) => {
|
|
|
3899
3859
|
WorkloadId: __expectString(output.WorkloadId),
|
|
3900
3860
|
};
|
|
3901
3861
|
};
|
|
3902
|
-
const
|
|
3862
|
+
const de_ShareInvitationSummaries = (output, context) => {
|
|
3903
3863
|
const retVal = (output || [])
|
|
3904
3864
|
.filter((e) => e != null)
|
|
3905
3865
|
.map((entry) => {
|
|
3906
3866
|
if (entry === null) {
|
|
3907
3867
|
return null;
|
|
3908
3868
|
}
|
|
3909
|
-
return
|
|
3869
|
+
return de_ShareInvitationSummary(entry, context);
|
|
3910
3870
|
});
|
|
3911
3871
|
return retVal;
|
|
3912
3872
|
};
|
|
3913
|
-
const
|
|
3873
|
+
const de_ShareInvitationSummary = (output, context) => {
|
|
3914
3874
|
return {
|
|
3915
3875
|
LensArn: __expectString(output.LensArn),
|
|
3916
3876
|
LensName: __expectString(output.LensName),
|
|
@@ -3923,7 +3883,7 @@ const deserializeAws_restJson1ShareInvitationSummary = (output, context) => {
|
|
|
3923
3883
|
WorkloadName: __expectString(output.WorkloadName),
|
|
3924
3884
|
};
|
|
3925
3885
|
};
|
|
3926
|
-
const
|
|
3886
|
+
const de_TagMap = (output, context) => {
|
|
3927
3887
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3928
3888
|
if (value === null) {
|
|
3929
3889
|
return acc;
|
|
@@ -3932,81 +3892,71 @@ const deserializeAws_restJson1TagMap = (output, context) => {
|
|
|
3932
3892
|
return acc;
|
|
3933
3893
|
}, {});
|
|
3934
3894
|
};
|
|
3935
|
-
const
|
|
3895
|
+
const de_Urls = (output, context) => {
|
|
3936
3896
|
const retVal = (output || [])
|
|
3937
3897
|
.filter((e) => e != null)
|
|
3938
3898
|
.map((entry) => {
|
|
3939
3899
|
if (entry === null) {
|
|
3940
3900
|
return null;
|
|
3941
3901
|
}
|
|
3942
|
-
return
|
|
3902
|
+
return de_ChoiceContent(entry, context);
|
|
3943
3903
|
});
|
|
3944
3904
|
return retVal;
|
|
3945
3905
|
};
|
|
3946
|
-
const
|
|
3906
|
+
const de_ValidationExceptionField = (output, context) => {
|
|
3947
3907
|
return {
|
|
3948
3908
|
Message: __expectString(output.Message),
|
|
3949
3909
|
Name: __expectString(output.Name),
|
|
3950
3910
|
};
|
|
3951
3911
|
};
|
|
3952
|
-
const
|
|
3912
|
+
const de_ValidationExceptionFieldList = (output, context) => {
|
|
3953
3913
|
const retVal = (output || [])
|
|
3954
3914
|
.filter((e) => e != null)
|
|
3955
3915
|
.map((entry) => {
|
|
3956
3916
|
if (entry === null) {
|
|
3957
3917
|
return null;
|
|
3958
3918
|
}
|
|
3959
|
-
return
|
|
3919
|
+
return de_ValidationExceptionField(entry, context);
|
|
3960
3920
|
});
|
|
3961
3921
|
return retVal;
|
|
3962
3922
|
};
|
|
3963
|
-
const
|
|
3923
|
+
const de_VersionDifferences = (output, context) => {
|
|
3964
3924
|
return {
|
|
3965
|
-
PillarDifferences: output.PillarDifferences != null
|
|
3966
|
-
? deserializeAws_restJson1PillarDifferences(output.PillarDifferences, context)
|
|
3967
|
-
: undefined,
|
|
3925
|
+
PillarDifferences: output.PillarDifferences != null ? de_PillarDifferences(output.PillarDifferences, context) : undefined,
|
|
3968
3926
|
};
|
|
3969
3927
|
};
|
|
3970
|
-
const
|
|
3928
|
+
const de_Workload = (output, context) => {
|
|
3971
3929
|
return {
|
|
3972
|
-
AccountIds: output.AccountIds != null ?
|
|
3973
|
-
Applications: output.Applications != null
|
|
3974
|
-
? deserializeAws_restJson1WorkloadApplications(output.Applications, context)
|
|
3975
|
-
: undefined,
|
|
3930
|
+
AccountIds: output.AccountIds != null ? de_WorkloadAccountIds(output.AccountIds, context) : undefined,
|
|
3931
|
+
Applications: output.Applications != null ? de_WorkloadApplications(output.Applications, context) : undefined,
|
|
3976
3932
|
ArchitecturalDesign: __expectString(output.ArchitecturalDesign),
|
|
3977
|
-
AwsRegions: output.AwsRegions != null ?
|
|
3933
|
+
AwsRegions: output.AwsRegions != null ? de_WorkloadAwsRegions(output.AwsRegions, context) : undefined,
|
|
3978
3934
|
Description: __expectString(output.Description),
|
|
3979
|
-
DiscoveryConfig: output.DiscoveryConfig != null
|
|
3980
|
-
? deserializeAws_restJson1WorkloadDiscoveryConfig(output.DiscoveryConfig, context)
|
|
3981
|
-
: undefined,
|
|
3935
|
+
DiscoveryConfig: output.DiscoveryConfig != null ? de_WorkloadDiscoveryConfig(output.DiscoveryConfig, context) : undefined,
|
|
3982
3936
|
Environment: __expectString(output.Environment),
|
|
3983
3937
|
ImprovementStatus: __expectString(output.ImprovementStatus),
|
|
3984
3938
|
Industry: __expectString(output.Industry),
|
|
3985
3939
|
IndustryType: __expectString(output.IndustryType),
|
|
3986
3940
|
IsReviewOwnerUpdateAcknowledged: __expectBoolean(output.IsReviewOwnerUpdateAcknowledged),
|
|
3987
|
-
Lenses: output.Lenses != null ?
|
|
3988
|
-
NonAwsRegions: output.NonAwsRegions != null
|
|
3989
|
-
? deserializeAws_restJson1WorkloadNonAwsRegions(output.NonAwsRegions, context)
|
|
3990
|
-
: undefined,
|
|
3941
|
+
Lenses: output.Lenses != null ? de_WorkloadLenses(output.Lenses, context) : undefined,
|
|
3942
|
+
NonAwsRegions: output.NonAwsRegions != null ? de_WorkloadNonAwsRegions(output.NonAwsRegions, context) : undefined,
|
|
3991
3943
|
Notes: __expectString(output.Notes),
|
|
3992
3944
|
Owner: __expectString(output.Owner),
|
|
3993
|
-
PillarPriorities: output.PillarPriorities != null
|
|
3994
|
-
? deserializeAws_restJson1WorkloadPillarPriorities(output.PillarPriorities, context)
|
|
3995
|
-
: undefined,
|
|
3945
|
+
PillarPriorities: output.PillarPriorities != null ? de_WorkloadPillarPriorities(output.PillarPriorities, context) : undefined,
|
|
3996
3946
|
ReviewOwner: __expectString(output.ReviewOwner),
|
|
3997
3947
|
ReviewRestrictionDate: output.ReviewRestrictionDate != null
|
|
3998
3948
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ReviewRestrictionDate)))
|
|
3999
3949
|
: undefined,
|
|
4000
|
-
RiskCounts: output.RiskCounts != null ?
|
|
3950
|
+
RiskCounts: output.RiskCounts != null ? de_RiskCounts(output.RiskCounts, context) : undefined,
|
|
4001
3951
|
ShareInvitationId: __expectString(output.ShareInvitationId),
|
|
4002
|
-
Tags: output.Tags != null ?
|
|
3952
|
+
Tags: output.Tags != null ? de_TagMap(output.Tags, context) : undefined,
|
|
4003
3953
|
UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt))) : undefined,
|
|
4004
3954
|
WorkloadArn: __expectString(output.WorkloadArn),
|
|
4005
3955
|
WorkloadId: __expectString(output.WorkloadId),
|
|
4006
3956
|
WorkloadName: __expectString(output.WorkloadName),
|
|
4007
3957
|
};
|
|
4008
3958
|
};
|
|
4009
|
-
const
|
|
3959
|
+
const de_WorkloadAccountIds = (output, context) => {
|
|
4010
3960
|
const retVal = (output || [])
|
|
4011
3961
|
.filter((e) => e != null)
|
|
4012
3962
|
.map((entry) => {
|
|
@@ -4017,7 +3967,7 @@ const deserializeAws_restJson1WorkloadAccountIds = (output, context) => {
|
|
|
4017
3967
|
});
|
|
4018
3968
|
return retVal;
|
|
4019
3969
|
};
|
|
4020
|
-
const
|
|
3970
|
+
const de_WorkloadApplications = (output, context) => {
|
|
4021
3971
|
const retVal = (output || [])
|
|
4022
3972
|
.filter((e) => e != null)
|
|
4023
3973
|
.map((entry) => {
|
|
@@ -4028,7 +3978,7 @@ const deserializeAws_restJson1WorkloadApplications = (output, context) => {
|
|
|
4028
3978
|
});
|
|
4029
3979
|
return retVal;
|
|
4030
3980
|
};
|
|
4031
|
-
const
|
|
3981
|
+
const de_WorkloadAwsRegions = (output, context) => {
|
|
4032
3982
|
const retVal = (output || [])
|
|
4033
3983
|
.filter((e) => e != null)
|
|
4034
3984
|
.map((entry) => {
|
|
@@ -4039,12 +3989,12 @@ const deserializeAws_restJson1WorkloadAwsRegions = (output, context) => {
|
|
|
4039
3989
|
});
|
|
4040
3990
|
return retVal;
|
|
4041
3991
|
};
|
|
4042
|
-
const
|
|
3992
|
+
const de_WorkloadDiscoveryConfig = (output, context) => {
|
|
4043
3993
|
return {
|
|
4044
3994
|
TrustedAdvisorIntegrationStatus: __expectString(output.TrustedAdvisorIntegrationStatus),
|
|
4045
3995
|
};
|
|
4046
3996
|
};
|
|
4047
|
-
const
|
|
3997
|
+
const de_WorkloadLenses = (output, context) => {
|
|
4048
3998
|
const retVal = (output || [])
|
|
4049
3999
|
.filter((e) => e != null)
|
|
4050
4000
|
.map((entry) => {
|
|
@@ -4055,7 +4005,7 @@ const deserializeAws_restJson1WorkloadLenses = (output, context) => {
|
|
|
4055
4005
|
});
|
|
4056
4006
|
return retVal;
|
|
4057
4007
|
};
|
|
4058
|
-
const
|
|
4008
|
+
const de_WorkloadNonAwsRegions = (output, context) => {
|
|
4059
4009
|
const retVal = (output || [])
|
|
4060
4010
|
.filter((e) => e != null)
|
|
4061
4011
|
.map((entry) => {
|
|
@@ -4066,7 +4016,7 @@ const deserializeAws_restJson1WorkloadNonAwsRegions = (output, context) => {
|
|
|
4066
4016
|
});
|
|
4067
4017
|
return retVal;
|
|
4068
4018
|
};
|
|
4069
|
-
const
|
|
4019
|
+
const de_WorkloadPillarPriorities = (output, context) => {
|
|
4070
4020
|
const retVal = (output || [])
|
|
4071
4021
|
.filter((e) => e != null)
|
|
4072
4022
|
.map((entry) => {
|
|
@@ -4077,7 +4027,7 @@ const deserializeAws_restJson1WorkloadPillarPriorities = (output, context) => {
|
|
|
4077
4027
|
});
|
|
4078
4028
|
return retVal;
|
|
4079
4029
|
};
|
|
4080
|
-
const
|
|
4030
|
+
const de_WorkloadShare = (output, context) => {
|
|
4081
4031
|
return {
|
|
4082
4032
|
PermissionType: __expectString(output.PermissionType),
|
|
4083
4033
|
ShareId: __expectString(output.ShareId),
|
|
@@ -4088,18 +4038,18 @@ const deserializeAws_restJson1WorkloadShare = (output, context) => {
|
|
|
4088
4038
|
WorkloadName: __expectString(output.WorkloadName),
|
|
4089
4039
|
};
|
|
4090
4040
|
};
|
|
4091
|
-
const
|
|
4041
|
+
const de_WorkloadShareSummaries = (output, context) => {
|
|
4092
4042
|
const retVal = (output || [])
|
|
4093
4043
|
.filter((e) => e != null)
|
|
4094
4044
|
.map((entry) => {
|
|
4095
4045
|
if (entry === null) {
|
|
4096
4046
|
return null;
|
|
4097
4047
|
}
|
|
4098
|
-
return
|
|
4048
|
+
return de_WorkloadShareSummary(entry, context);
|
|
4099
4049
|
});
|
|
4100
4050
|
return retVal;
|
|
4101
4051
|
};
|
|
4102
|
-
const
|
|
4052
|
+
const de_WorkloadShareSummary = (output, context) => {
|
|
4103
4053
|
return {
|
|
4104
4054
|
PermissionType: __expectString(output.PermissionType),
|
|
4105
4055
|
ShareId: __expectString(output.ShareId),
|
|
@@ -4108,23 +4058,23 @@ const deserializeAws_restJson1WorkloadShareSummary = (output, context) => {
|
|
|
4108
4058
|
StatusMessage: __expectString(output.StatusMessage),
|
|
4109
4059
|
};
|
|
4110
4060
|
};
|
|
4111
|
-
const
|
|
4061
|
+
const de_WorkloadSummaries = (output, context) => {
|
|
4112
4062
|
const retVal = (output || [])
|
|
4113
4063
|
.filter((e) => e != null)
|
|
4114
4064
|
.map((entry) => {
|
|
4115
4065
|
if (entry === null) {
|
|
4116
4066
|
return null;
|
|
4117
4067
|
}
|
|
4118
|
-
return
|
|
4068
|
+
return de_WorkloadSummary(entry, context);
|
|
4119
4069
|
});
|
|
4120
4070
|
return retVal;
|
|
4121
4071
|
};
|
|
4122
|
-
const
|
|
4072
|
+
const de_WorkloadSummary = (output, context) => {
|
|
4123
4073
|
return {
|
|
4124
4074
|
ImprovementStatus: __expectString(output.ImprovementStatus),
|
|
4125
|
-
Lenses: output.Lenses != null ?
|
|
4075
|
+
Lenses: output.Lenses != null ? de_WorkloadLenses(output.Lenses, context) : undefined,
|
|
4126
4076
|
Owner: __expectString(output.Owner),
|
|
4127
|
-
RiskCounts: output.RiskCounts != null ?
|
|
4077
|
+
RiskCounts: output.RiskCounts != null ? de_RiskCounts(output.RiskCounts, context) : undefined,
|
|
4128
4078
|
UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt))) : undefined,
|
|
4129
4079
|
WorkloadArn: __expectString(output.WorkloadArn),
|
|
4130
4080
|
WorkloadId: __expectString(output.WorkloadId),
|