@aws-sdk/client-wellarchitected 3.131.0 → 3.142.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +33 -0
- package/README.md +1 -1
- package/dist-cjs/commands/AssociateLensesCommand.js +1 -1
- 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 +1 -1
- package/dist-cjs/commands/DeleteLensShareCommand.js +1 -1
- package/dist-cjs/commands/DeleteWorkloadCommand.js +1 -1
- package/dist-cjs/commands/DeleteWorkloadShareCommand.js +1 -1
- package/dist-cjs/commands/DisassociateLensesCommand.js +1 -1
- package/dist-cjs/commands/ExportLensCommand.js +2 -2
- package/dist-cjs/commands/GetAnswerCommand.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/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 +1 -1
- 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 +1 -1
- package/dist-cjs/models/models_0.js +415 -621
- package/dist-cjs/protocols/Aws_restJson1.js +548 -1187
- package/dist-es/commands/AssociateLensesCommand.js +2 -2
- 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 +2 -2
- package/dist-es/commands/DeleteLensShareCommand.js +2 -2
- package/dist-es/commands/DeleteWorkloadCommand.js +2 -2
- package/dist-es/commands/DeleteWorkloadShareCommand.js +2 -2
- package/dist-es/commands/DisassociateLensesCommand.js +2 -2
- package/dist-es/commands/ExportLensCommand.js +3 -3
- package/dist-es/commands/GetAnswerCommand.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/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 +2 -2
- 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 +2 -2
- package/dist-es/models/models_0.js +103 -412
- package/dist-es/protocols/Aws_restJson1.js +702 -1161
- package/dist-types/models/models_0.d.ts +412 -618
- package/dist-types/ts3.4/models/models_0.d.ts +206 -412
- package/package.json +6 -6
|
@@ -13,16 +13,7 @@ const serializeAws_restJson1AssociateLensesCommand = async (input, context) => {
|
|
|
13
13
|
"content-type": "application/json",
|
|
14
14
|
};
|
|
15
15
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/workloads/{WorkloadId}/associateLenses";
|
|
16
|
-
|
|
17
|
-
const labelValue = input.WorkloadId;
|
|
18
|
-
if (labelValue.length <= 0) {
|
|
19
|
-
throw new Error("Empty value provided for input HTTP label: WorkloadId.");
|
|
20
|
-
}
|
|
21
|
-
resolvedPath = resolvedPath.replace("{WorkloadId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
throw new Error("No value provided for input HTTP label: WorkloadId.");
|
|
25
|
-
}
|
|
16
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
|
|
26
17
|
let body;
|
|
27
18
|
body = JSON.stringify({
|
|
28
19
|
...(input.LensAliases != null && { LensAliases: serializeAws_restJson1LensAliases(input.LensAliases, context) }),
|
|
@@ -45,16 +36,7 @@ const serializeAws_restJson1CreateLensShareCommand = async (input, context) => {
|
|
|
45
36
|
"content-type": "application/json",
|
|
46
37
|
};
|
|
47
38
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/lenses/{LensAlias}/shares";
|
|
48
|
-
|
|
49
|
-
const labelValue = input.LensAlias;
|
|
50
|
-
if (labelValue.length <= 0) {
|
|
51
|
-
throw new Error("Empty value provided for input HTTP label: LensAlias.");
|
|
52
|
-
}
|
|
53
|
-
resolvedPath = resolvedPath.replace("{LensAlias}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
54
|
-
}
|
|
55
|
-
else {
|
|
56
|
-
throw new Error("No value provided for input HTTP label: LensAlias.");
|
|
57
|
-
}
|
|
39
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LensAlias", () => input.LensAlias, "{LensAlias}", false);
|
|
58
40
|
let body;
|
|
59
41
|
body = JSON.stringify({
|
|
60
42
|
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
@@ -78,16 +60,7 @@ const serializeAws_restJson1CreateLensVersionCommand = async (input, context) =>
|
|
|
78
60
|
"content-type": "application/json",
|
|
79
61
|
};
|
|
80
62
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/lenses/{LensAlias}/versions";
|
|
81
|
-
|
|
82
|
-
const labelValue = input.LensAlias;
|
|
83
|
-
if (labelValue.length <= 0) {
|
|
84
|
-
throw new Error("Empty value provided for input HTTP label: LensAlias.");
|
|
85
|
-
}
|
|
86
|
-
resolvedPath = resolvedPath.replace("{LensAlias}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
87
|
-
}
|
|
88
|
-
else {
|
|
89
|
-
throw new Error("No value provided for input HTTP label: LensAlias.");
|
|
90
|
-
}
|
|
63
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LensAlias", () => input.LensAlias, "{LensAlias}", false);
|
|
91
64
|
let body;
|
|
92
65
|
body = JSON.stringify({
|
|
93
66
|
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
@@ -112,16 +85,7 @@ const serializeAws_restJson1CreateMilestoneCommand = async (input, context) => {
|
|
|
112
85
|
"content-type": "application/json",
|
|
113
86
|
};
|
|
114
87
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/workloads/{WorkloadId}/milestones";
|
|
115
|
-
|
|
116
|
-
const labelValue = input.WorkloadId;
|
|
117
|
-
if (labelValue.length <= 0) {
|
|
118
|
-
throw new Error("Empty value provided for input HTTP label: WorkloadId.");
|
|
119
|
-
}
|
|
120
|
-
resolvedPath = resolvedPath.replace("{WorkloadId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
121
|
-
}
|
|
122
|
-
else {
|
|
123
|
-
throw new Error("No value provided for input HTTP label: WorkloadId.");
|
|
124
|
-
}
|
|
88
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
|
|
125
89
|
let body;
|
|
126
90
|
body = JSON.stringify({
|
|
127
91
|
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
@@ -189,16 +153,7 @@ const serializeAws_restJson1CreateWorkloadShareCommand = async (input, context)
|
|
|
189
153
|
"content-type": "application/json",
|
|
190
154
|
};
|
|
191
155
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/workloads/{WorkloadId}/shares";
|
|
192
|
-
|
|
193
|
-
const labelValue = input.WorkloadId;
|
|
194
|
-
if (labelValue.length <= 0) {
|
|
195
|
-
throw new Error("Empty value provided for input HTTP label: WorkloadId.");
|
|
196
|
-
}
|
|
197
|
-
resolvedPath = resolvedPath.replace("{WorkloadId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
198
|
-
}
|
|
199
|
-
else {
|
|
200
|
-
throw new Error("No value provided for input HTTP label: WorkloadId.");
|
|
201
|
-
}
|
|
156
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
|
|
202
157
|
let body;
|
|
203
158
|
body = JSON.stringify({
|
|
204
159
|
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
@@ -220,20 +175,11 @@ const serializeAws_restJson1DeleteLensCommand = async (input, context) => {
|
|
|
220
175
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
221
176
|
const headers = {};
|
|
222
177
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/lenses/{LensAlias}";
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
resolvedPath = resolvedPath.replace("{LensAlias}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
229
|
-
}
|
|
230
|
-
else {
|
|
231
|
-
throw new Error("No value provided for input HTTP label: LensAlias.");
|
|
232
|
-
}
|
|
233
|
-
const query = {
|
|
234
|
-
...(input.ClientRequestToken !== undefined && { ClientRequestToken: input.ClientRequestToken }),
|
|
235
|
-
...(input.LensStatus !== undefined && { LensStatus: input.LensStatus }),
|
|
236
|
-
};
|
|
178
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LensAlias", () => input.LensAlias, "{LensAlias}", false);
|
|
179
|
+
const query = map({
|
|
180
|
+
ClientRequestToken: [, input.ClientRequestToken],
|
|
181
|
+
LensStatus: [, input.LensStatus],
|
|
182
|
+
});
|
|
237
183
|
let body;
|
|
238
184
|
return new protocol_http_1.HttpRequest({
|
|
239
185
|
protocol,
|
|
@@ -251,29 +197,11 @@ const serializeAws_restJson1DeleteLensShareCommand = async (input, context) => {
|
|
|
251
197
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
252
198
|
const headers = {};
|
|
253
199
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/lenses/{LensAlias}/shares/{ShareId}";
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
resolvedPath = resolvedPath.replace("{ShareId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
260
|
-
}
|
|
261
|
-
else {
|
|
262
|
-
throw new Error("No value provided for input HTTP label: ShareId.");
|
|
263
|
-
}
|
|
264
|
-
if (input.LensAlias !== undefined) {
|
|
265
|
-
const labelValue = input.LensAlias;
|
|
266
|
-
if (labelValue.length <= 0) {
|
|
267
|
-
throw new Error("Empty value provided for input HTTP label: LensAlias.");
|
|
268
|
-
}
|
|
269
|
-
resolvedPath = resolvedPath.replace("{LensAlias}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
270
|
-
}
|
|
271
|
-
else {
|
|
272
|
-
throw new Error("No value provided for input HTTP label: LensAlias.");
|
|
273
|
-
}
|
|
274
|
-
const query = {
|
|
275
|
-
...(input.ClientRequestToken !== undefined && { ClientRequestToken: input.ClientRequestToken }),
|
|
276
|
-
};
|
|
200
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ShareId", () => input.ShareId, "{ShareId}", false);
|
|
201
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LensAlias", () => input.LensAlias, "{LensAlias}", false);
|
|
202
|
+
const query = map({
|
|
203
|
+
ClientRequestToken: [, input.ClientRequestToken],
|
|
204
|
+
});
|
|
277
205
|
let body;
|
|
278
206
|
return new protocol_http_1.HttpRequest({
|
|
279
207
|
protocol,
|
|
@@ -291,19 +219,10 @@ const serializeAws_restJson1DeleteWorkloadCommand = async (input, context) => {
|
|
|
291
219
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
292
220
|
const headers = {};
|
|
293
221
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/workloads/{WorkloadId}";
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
}
|
|
299
|
-
resolvedPath = resolvedPath.replace("{WorkloadId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
300
|
-
}
|
|
301
|
-
else {
|
|
302
|
-
throw new Error("No value provided for input HTTP label: WorkloadId.");
|
|
303
|
-
}
|
|
304
|
-
const query = {
|
|
305
|
-
...(input.ClientRequestToken !== undefined && { ClientRequestToken: input.ClientRequestToken }),
|
|
306
|
-
};
|
|
222
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
|
|
223
|
+
const query = map({
|
|
224
|
+
ClientRequestToken: [, input.ClientRequestToken],
|
|
225
|
+
});
|
|
307
226
|
let body;
|
|
308
227
|
return new protocol_http_1.HttpRequest({
|
|
309
228
|
protocol,
|
|
@@ -321,29 +240,11 @@ const serializeAws_restJson1DeleteWorkloadShareCommand = async (input, context)
|
|
|
321
240
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
322
241
|
const headers = {};
|
|
323
242
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/workloads/{WorkloadId}/shares/{ShareId}";
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
resolvedPath = resolvedPath.replace("{ShareId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
330
|
-
}
|
|
331
|
-
else {
|
|
332
|
-
throw new Error("No value provided for input HTTP label: ShareId.");
|
|
333
|
-
}
|
|
334
|
-
if (input.WorkloadId !== undefined) {
|
|
335
|
-
const labelValue = input.WorkloadId;
|
|
336
|
-
if (labelValue.length <= 0) {
|
|
337
|
-
throw new Error("Empty value provided for input HTTP label: WorkloadId.");
|
|
338
|
-
}
|
|
339
|
-
resolvedPath = resolvedPath.replace("{WorkloadId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
340
|
-
}
|
|
341
|
-
else {
|
|
342
|
-
throw new Error("No value provided for input HTTP label: WorkloadId.");
|
|
343
|
-
}
|
|
344
|
-
const query = {
|
|
345
|
-
...(input.ClientRequestToken !== undefined && { ClientRequestToken: input.ClientRequestToken }),
|
|
346
|
-
};
|
|
243
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ShareId", () => input.ShareId, "{ShareId}", false);
|
|
244
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
|
|
245
|
+
const query = map({
|
|
246
|
+
ClientRequestToken: [, input.ClientRequestToken],
|
|
247
|
+
});
|
|
347
248
|
let body;
|
|
348
249
|
return new protocol_http_1.HttpRequest({
|
|
349
250
|
protocol,
|
|
@@ -364,16 +265,7 @@ const serializeAws_restJson1DisassociateLensesCommand = async (input, context) =
|
|
|
364
265
|
};
|
|
365
266
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
366
267
|
"/workloads/{WorkloadId}/disassociateLenses";
|
|
367
|
-
|
|
368
|
-
const labelValue = input.WorkloadId;
|
|
369
|
-
if (labelValue.length <= 0) {
|
|
370
|
-
throw new Error("Empty value provided for input HTTP label: WorkloadId.");
|
|
371
|
-
}
|
|
372
|
-
resolvedPath = resolvedPath.replace("{WorkloadId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
373
|
-
}
|
|
374
|
-
else {
|
|
375
|
-
throw new Error("No value provided for input HTTP label: WorkloadId.");
|
|
376
|
-
}
|
|
268
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
|
|
377
269
|
let body;
|
|
378
270
|
body = JSON.stringify({
|
|
379
271
|
...(input.LensAliases != null && { LensAliases: serializeAws_restJson1LensAliases(input.LensAliases, context) }),
|
|
@@ -393,19 +285,10 @@ const serializeAws_restJson1ExportLensCommand = async (input, context) => {
|
|
|
393
285
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
394
286
|
const headers = {};
|
|
395
287
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/lenses/{LensAlias}/export";
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
}
|
|
401
|
-
resolvedPath = resolvedPath.replace("{LensAlias}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
402
|
-
}
|
|
403
|
-
else {
|
|
404
|
-
throw new Error("No value provided for input HTTP label: LensAlias.");
|
|
405
|
-
}
|
|
406
|
-
const query = {
|
|
407
|
-
...(input.LensVersion !== undefined && { LensVersion: input.LensVersion }),
|
|
408
|
-
};
|
|
288
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LensAlias", () => input.LensAlias, "{LensAlias}", false);
|
|
289
|
+
const query = map({
|
|
290
|
+
LensVersion: [, input.LensVersion],
|
|
291
|
+
});
|
|
409
292
|
let body;
|
|
410
293
|
return new protocol_http_1.HttpRequest({
|
|
411
294
|
protocol,
|
|
@@ -424,39 +307,12 @@ const serializeAws_restJson1GetAnswerCommand = async (input, context) => {
|
|
|
424
307
|
const headers = {};
|
|
425
308
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
426
309
|
"/workloads/{WorkloadId}/lensReviews/{LensAlias}/answers/{QuestionId}";
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
}
|
|
434
|
-
else {
|
|
435
|
-
throw new Error("No value provided for input HTTP label: WorkloadId.");
|
|
436
|
-
}
|
|
437
|
-
if (input.LensAlias !== undefined) {
|
|
438
|
-
const labelValue = input.LensAlias;
|
|
439
|
-
if (labelValue.length <= 0) {
|
|
440
|
-
throw new Error("Empty value provided for input HTTP label: LensAlias.");
|
|
441
|
-
}
|
|
442
|
-
resolvedPath = resolvedPath.replace("{LensAlias}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
443
|
-
}
|
|
444
|
-
else {
|
|
445
|
-
throw new Error("No value provided for input HTTP label: LensAlias.");
|
|
446
|
-
}
|
|
447
|
-
if (input.QuestionId !== undefined) {
|
|
448
|
-
const labelValue = input.QuestionId;
|
|
449
|
-
if (labelValue.length <= 0) {
|
|
450
|
-
throw new Error("Empty value provided for input HTTP label: QuestionId.");
|
|
451
|
-
}
|
|
452
|
-
resolvedPath = resolvedPath.replace("{QuestionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
453
|
-
}
|
|
454
|
-
else {
|
|
455
|
-
throw new Error("No value provided for input HTTP label: QuestionId.");
|
|
456
|
-
}
|
|
457
|
-
const query = {
|
|
458
|
-
...(input.MilestoneNumber !== undefined && { MilestoneNumber: input.MilestoneNumber.toString() }),
|
|
459
|
-
};
|
|
310
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
|
|
311
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LensAlias", () => input.LensAlias, "{LensAlias}", false);
|
|
312
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "QuestionId", () => input.QuestionId, "{QuestionId}", false);
|
|
313
|
+
const query = map({
|
|
314
|
+
MilestoneNumber: [() => input.MilestoneNumber !== void 0, () => input.MilestoneNumber.toString()],
|
|
315
|
+
});
|
|
460
316
|
let body;
|
|
461
317
|
return new protocol_http_1.HttpRequest({
|
|
462
318
|
protocol,
|
|
@@ -474,19 +330,10 @@ const serializeAws_restJson1GetLensCommand = async (input, context) => {
|
|
|
474
330
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
475
331
|
const headers = {};
|
|
476
332
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/lenses/{LensAlias}";
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
}
|
|
482
|
-
resolvedPath = resolvedPath.replace("{LensAlias}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
483
|
-
}
|
|
484
|
-
else {
|
|
485
|
-
throw new Error("No value provided for input HTTP label: LensAlias.");
|
|
486
|
-
}
|
|
487
|
-
const query = {
|
|
488
|
-
...(input.LensVersion !== undefined && { LensVersion: input.LensVersion }),
|
|
489
|
-
};
|
|
333
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LensAlias", () => input.LensAlias, "{LensAlias}", false);
|
|
334
|
+
const query = map({
|
|
335
|
+
LensVersion: [, input.LensVersion],
|
|
336
|
+
});
|
|
490
337
|
let body;
|
|
491
338
|
return new protocol_http_1.HttpRequest({
|
|
492
339
|
protocol,
|
|
@@ -505,29 +352,11 @@ const serializeAws_restJson1GetLensReviewCommand = async (input, context) => {
|
|
|
505
352
|
const headers = {};
|
|
506
353
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
507
354
|
"/workloads/{WorkloadId}/lensReviews/{LensAlias}";
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
resolvedPath = resolvedPath.replace("{WorkloadId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
514
|
-
}
|
|
515
|
-
else {
|
|
516
|
-
throw new Error("No value provided for input HTTP label: WorkloadId.");
|
|
517
|
-
}
|
|
518
|
-
if (input.LensAlias !== undefined) {
|
|
519
|
-
const labelValue = input.LensAlias;
|
|
520
|
-
if (labelValue.length <= 0) {
|
|
521
|
-
throw new Error("Empty value provided for input HTTP label: LensAlias.");
|
|
522
|
-
}
|
|
523
|
-
resolvedPath = resolvedPath.replace("{LensAlias}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
524
|
-
}
|
|
525
|
-
else {
|
|
526
|
-
throw new Error("No value provided for input HTTP label: LensAlias.");
|
|
527
|
-
}
|
|
528
|
-
const query = {
|
|
529
|
-
...(input.MilestoneNumber !== undefined && { MilestoneNumber: input.MilestoneNumber.toString() }),
|
|
530
|
-
};
|
|
355
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
|
|
356
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LensAlias", () => input.LensAlias, "{LensAlias}", false);
|
|
357
|
+
const query = map({
|
|
358
|
+
MilestoneNumber: [() => input.MilestoneNumber !== void 0, () => input.MilestoneNumber.toString()],
|
|
359
|
+
});
|
|
531
360
|
let body;
|
|
532
361
|
return new protocol_http_1.HttpRequest({
|
|
533
362
|
protocol,
|
|
@@ -546,29 +375,11 @@ const serializeAws_restJson1GetLensReviewReportCommand = async (input, context)
|
|
|
546
375
|
const headers = {};
|
|
547
376
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
548
377
|
"/workloads/{WorkloadId}/lensReviews/{LensAlias}/report";
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
resolvedPath = resolvedPath.replace("{WorkloadId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
555
|
-
}
|
|
556
|
-
else {
|
|
557
|
-
throw new Error("No value provided for input HTTP label: WorkloadId.");
|
|
558
|
-
}
|
|
559
|
-
if (input.LensAlias !== undefined) {
|
|
560
|
-
const labelValue = input.LensAlias;
|
|
561
|
-
if (labelValue.length <= 0) {
|
|
562
|
-
throw new Error("Empty value provided for input HTTP label: LensAlias.");
|
|
563
|
-
}
|
|
564
|
-
resolvedPath = resolvedPath.replace("{LensAlias}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
565
|
-
}
|
|
566
|
-
else {
|
|
567
|
-
throw new Error("No value provided for input HTTP label: LensAlias.");
|
|
568
|
-
}
|
|
569
|
-
const query = {
|
|
570
|
-
...(input.MilestoneNumber !== undefined && { MilestoneNumber: input.MilestoneNumber.toString() }),
|
|
571
|
-
};
|
|
378
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
|
|
379
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LensAlias", () => input.LensAlias, "{LensAlias}", false);
|
|
380
|
+
const query = map({
|
|
381
|
+
MilestoneNumber: [() => input.MilestoneNumber !== void 0, () => input.MilestoneNumber.toString()],
|
|
382
|
+
});
|
|
572
383
|
let body;
|
|
573
384
|
return new protocol_http_1.HttpRequest({
|
|
574
385
|
protocol,
|
|
@@ -586,20 +397,11 @@ const serializeAws_restJson1GetLensVersionDifferenceCommand = async (input, cont
|
|
|
586
397
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
587
398
|
const headers = {};
|
|
588
399
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/lenses/{LensAlias}/versionDifference";
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
resolvedPath = resolvedPath.replace("{LensAlias}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
595
|
-
}
|
|
596
|
-
else {
|
|
597
|
-
throw new Error("No value provided for input HTTP label: LensAlias.");
|
|
598
|
-
}
|
|
599
|
-
const query = {
|
|
600
|
-
...(input.BaseLensVersion !== undefined && { BaseLensVersion: input.BaseLensVersion }),
|
|
601
|
-
...(input.TargetLensVersion !== undefined && { TargetLensVersion: input.TargetLensVersion }),
|
|
602
|
-
};
|
|
400
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LensAlias", () => input.LensAlias, "{LensAlias}", false);
|
|
401
|
+
const query = map({
|
|
402
|
+
BaseLensVersion: [, input.BaseLensVersion],
|
|
403
|
+
TargetLensVersion: [, input.TargetLensVersion],
|
|
404
|
+
});
|
|
603
405
|
let body;
|
|
604
406
|
return new protocol_http_1.HttpRequest({
|
|
605
407
|
protocol,
|
|
@@ -618,26 +420,8 @@ const serializeAws_restJson1GetMilestoneCommand = async (input, context) => {
|
|
|
618
420
|
const headers = {};
|
|
619
421
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
620
422
|
"/workloads/{WorkloadId}/milestones/{MilestoneNumber}";
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
if (labelValue.length <= 0) {
|
|
624
|
-
throw new Error("Empty value provided for input HTTP label: WorkloadId.");
|
|
625
|
-
}
|
|
626
|
-
resolvedPath = resolvedPath.replace("{WorkloadId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
627
|
-
}
|
|
628
|
-
else {
|
|
629
|
-
throw new Error("No value provided for input HTTP label: WorkloadId.");
|
|
630
|
-
}
|
|
631
|
-
if (input.MilestoneNumber !== undefined) {
|
|
632
|
-
const labelValue = input.MilestoneNumber.toString();
|
|
633
|
-
if (labelValue.length <= 0) {
|
|
634
|
-
throw new Error("Empty value provided for input HTTP label: MilestoneNumber.");
|
|
635
|
-
}
|
|
636
|
-
resolvedPath = resolvedPath.replace("{MilestoneNumber}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
637
|
-
}
|
|
638
|
-
else {
|
|
639
|
-
throw new Error("No value provided for input HTTP label: MilestoneNumber.");
|
|
640
|
-
}
|
|
423
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
|
|
424
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MilestoneNumber", () => input.MilestoneNumber.toString(), "{MilestoneNumber}", false);
|
|
641
425
|
let body;
|
|
642
426
|
return new protocol_http_1.HttpRequest({
|
|
643
427
|
protocol,
|
|
@@ -654,16 +438,7 @@ const serializeAws_restJson1GetWorkloadCommand = async (input, context) => {
|
|
|
654
438
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
655
439
|
const headers = {};
|
|
656
440
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/workloads/{WorkloadId}";
|
|
657
|
-
|
|
658
|
-
const labelValue = input.WorkloadId;
|
|
659
|
-
if (labelValue.length <= 0) {
|
|
660
|
-
throw new Error("Empty value provided for input HTTP label: WorkloadId.");
|
|
661
|
-
}
|
|
662
|
-
resolvedPath = resolvedPath.replace("{WorkloadId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
663
|
-
}
|
|
664
|
-
else {
|
|
665
|
-
throw new Error("No value provided for input HTTP label: WorkloadId.");
|
|
666
|
-
}
|
|
441
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
|
|
667
442
|
let body;
|
|
668
443
|
return new protocol_http_1.HttpRequest({
|
|
669
444
|
protocol,
|
|
@@ -706,32 +481,14 @@ const serializeAws_restJson1ListAnswersCommand = async (input, context) => {
|
|
|
706
481
|
const headers = {};
|
|
707
482
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
708
483
|
"/workloads/{WorkloadId}/lensReviews/{LensAlias}/answers";
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
throw new Error("No value provided for input HTTP label: WorkloadId.");
|
|
718
|
-
}
|
|
719
|
-
if (input.LensAlias !== undefined) {
|
|
720
|
-
const labelValue = input.LensAlias;
|
|
721
|
-
if (labelValue.length <= 0) {
|
|
722
|
-
throw new Error("Empty value provided for input HTTP label: LensAlias.");
|
|
723
|
-
}
|
|
724
|
-
resolvedPath = resolvedPath.replace("{LensAlias}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
725
|
-
}
|
|
726
|
-
else {
|
|
727
|
-
throw new Error("No value provided for input HTTP label: LensAlias.");
|
|
728
|
-
}
|
|
729
|
-
const query = {
|
|
730
|
-
...(input.PillarId !== undefined && { PillarId: input.PillarId }),
|
|
731
|
-
...(input.MilestoneNumber !== undefined && { MilestoneNumber: input.MilestoneNumber.toString() }),
|
|
732
|
-
...(input.NextToken !== undefined && { NextToken: input.NextToken }),
|
|
733
|
-
...(input.MaxResults !== undefined && { MaxResults: input.MaxResults.toString() }),
|
|
734
|
-
};
|
|
484
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
|
|
485
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LensAlias", () => input.LensAlias, "{LensAlias}", false);
|
|
486
|
+
const query = map({
|
|
487
|
+
PillarId: [, input.PillarId],
|
|
488
|
+
MilestoneNumber: [() => input.MilestoneNumber !== void 0, () => input.MilestoneNumber.toString()],
|
|
489
|
+
NextToken: [, input.NextToken],
|
|
490
|
+
MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
491
|
+
});
|
|
735
492
|
let body;
|
|
736
493
|
return new protocol_http_1.HttpRequest({
|
|
737
494
|
protocol,
|
|
@@ -749,13 +506,13 @@ const serializeAws_restJson1ListLensesCommand = async (input, context) => {
|
|
|
749
506
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
750
507
|
const headers = {};
|
|
751
508
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/lenses";
|
|
752
|
-
const query = {
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
};
|
|
509
|
+
const query = map({
|
|
510
|
+
NextToken: [, input.NextToken],
|
|
511
|
+
MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
512
|
+
LensType: [, input.LensType],
|
|
513
|
+
LensStatus: [, input.LensStatus],
|
|
514
|
+
LensName: [, input.LensName],
|
|
515
|
+
});
|
|
759
516
|
let body;
|
|
760
517
|
return new protocol_http_1.HttpRequest({
|
|
761
518
|
protocol,
|
|
@@ -774,32 +531,14 @@ const serializeAws_restJson1ListLensReviewImprovementsCommand = async (input, co
|
|
|
774
531
|
const headers = {};
|
|
775
532
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
776
533
|
"/workloads/{WorkloadId}/lensReviews/{LensAlias}/improvements";
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
throw new Error("No value provided for input HTTP label: WorkloadId.");
|
|
786
|
-
}
|
|
787
|
-
if (input.LensAlias !== undefined) {
|
|
788
|
-
const labelValue = input.LensAlias;
|
|
789
|
-
if (labelValue.length <= 0) {
|
|
790
|
-
throw new Error("Empty value provided for input HTTP label: LensAlias.");
|
|
791
|
-
}
|
|
792
|
-
resolvedPath = resolvedPath.replace("{LensAlias}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
793
|
-
}
|
|
794
|
-
else {
|
|
795
|
-
throw new Error("No value provided for input HTTP label: LensAlias.");
|
|
796
|
-
}
|
|
797
|
-
const query = {
|
|
798
|
-
...(input.PillarId !== undefined && { PillarId: input.PillarId }),
|
|
799
|
-
...(input.MilestoneNumber !== undefined && { MilestoneNumber: input.MilestoneNumber.toString() }),
|
|
800
|
-
...(input.NextToken !== undefined && { NextToken: input.NextToken }),
|
|
801
|
-
...(input.MaxResults !== undefined && { MaxResults: input.MaxResults.toString() }),
|
|
802
|
-
};
|
|
534
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
|
|
535
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LensAlias", () => input.LensAlias, "{LensAlias}", false);
|
|
536
|
+
const query = map({
|
|
537
|
+
PillarId: [, input.PillarId],
|
|
538
|
+
MilestoneNumber: [() => input.MilestoneNumber !== void 0, () => input.MilestoneNumber.toString()],
|
|
539
|
+
NextToken: [, input.NextToken],
|
|
540
|
+
MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
541
|
+
});
|
|
803
542
|
let body;
|
|
804
543
|
return new protocol_http_1.HttpRequest({
|
|
805
544
|
protocol,
|
|
@@ -817,21 +556,12 @@ const serializeAws_restJson1ListLensReviewsCommand = async (input, context) => {
|
|
|
817
556
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
818
557
|
const headers = {};
|
|
819
558
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/workloads/{WorkloadId}/lensReviews";
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
}
|
|
827
|
-
else {
|
|
828
|
-
throw new Error("No value provided for input HTTP label: WorkloadId.");
|
|
829
|
-
}
|
|
830
|
-
const query = {
|
|
831
|
-
...(input.MilestoneNumber !== undefined && { MilestoneNumber: input.MilestoneNumber.toString() }),
|
|
832
|
-
...(input.NextToken !== undefined && { NextToken: input.NextToken }),
|
|
833
|
-
...(input.MaxResults !== undefined && { MaxResults: input.MaxResults.toString() }),
|
|
834
|
-
};
|
|
559
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
|
|
560
|
+
const query = map({
|
|
561
|
+
MilestoneNumber: [() => input.MilestoneNumber !== void 0, () => input.MilestoneNumber.toString()],
|
|
562
|
+
NextToken: [, input.NextToken],
|
|
563
|
+
MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
564
|
+
});
|
|
835
565
|
let body;
|
|
836
566
|
return new protocol_http_1.HttpRequest({
|
|
837
567
|
protocol,
|
|
@@ -849,22 +579,13 @@ const serializeAws_restJson1ListLensSharesCommand = async (input, context) => {
|
|
|
849
579
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
850
580
|
const headers = {};
|
|
851
581
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/lenses/{LensAlias}/shares";
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
}
|
|
859
|
-
else {
|
|
860
|
-
throw new Error("No value provided for input HTTP label: LensAlias.");
|
|
861
|
-
}
|
|
862
|
-
const query = {
|
|
863
|
-
...(input.SharedWithPrefix !== undefined && { SharedWithPrefix: input.SharedWithPrefix }),
|
|
864
|
-
...(input.NextToken !== undefined && { NextToken: input.NextToken }),
|
|
865
|
-
...(input.MaxResults !== undefined && { MaxResults: input.MaxResults.toString() }),
|
|
866
|
-
...(input.Status !== undefined && { Status: input.Status }),
|
|
867
|
-
};
|
|
582
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LensAlias", () => input.LensAlias, "{LensAlias}", false);
|
|
583
|
+
const query = map({
|
|
584
|
+
SharedWithPrefix: [, input.SharedWithPrefix],
|
|
585
|
+
NextToken: [, input.NextToken],
|
|
586
|
+
MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
587
|
+
Status: [, input.Status],
|
|
588
|
+
});
|
|
868
589
|
let body;
|
|
869
590
|
return new protocol_http_1.HttpRequest({
|
|
870
591
|
protocol,
|
|
@@ -885,16 +606,7 @@ const serializeAws_restJson1ListMilestonesCommand = async (input, context) => {
|
|
|
885
606
|
};
|
|
886
607
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
887
608
|
"/workloads/{WorkloadId}/milestonesSummaries";
|
|
888
|
-
|
|
889
|
-
const labelValue = input.WorkloadId;
|
|
890
|
-
if (labelValue.length <= 0) {
|
|
891
|
-
throw new Error("Empty value provided for input HTTP label: WorkloadId.");
|
|
892
|
-
}
|
|
893
|
-
resolvedPath = resolvedPath.replace("{WorkloadId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
894
|
-
}
|
|
895
|
-
else {
|
|
896
|
-
throw new Error("No value provided for input HTTP label: WorkloadId.");
|
|
897
|
-
}
|
|
609
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
|
|
898
610
|
let body;
|
|
899
611
|
body = JSON.stringify({
|
|
900
612
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
@@ -938,13 +650,13 @@ const serializeAws_restJson1ListShareInvitationsCommand = async (input, context)
|
|
|
938
650
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
939
651
|
const headers = {};
|
|
940
652
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/shareInvitations";
|
|
941
|
-
const query = {
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
};
|
|
653
|
+
const query = map({
|
|
654
|
+
WorkloadNamePrefix: [, input.WorkloadNamePrefix],
|
|
655
|
+
LensNamePrefix: [, input.LensNamePrefix],
|
|
656
|
+
ShareResourceType: [, input.ShareResourceType],
|
|
657
|
+
NextToken: [, input.NextToken],
|
|
658
|
+
MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
659
|
+
});
|
|
948
660
|
let body;
|
|
949
661
|
return new protocol_http_1.HttpRequest({
|
|
950
662
|
protocol,
|
|
@@ -962,16 +674,7 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
962
674
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
963
675
|
const headers = {};
|
|
964
676
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{WorkloadArn}";
|
|
965
|
-
|
|
966
|
-
const labelValue = input.WorkloadArn;
|
|
967
|
-
if (labelValue.length <= 0) {
|
|
968
|
-
throw new Error("Empty value provided for input HTTP label: WorkloadArn.");
|
|
969
|
-
}
|
|
970
|
-
resolvedPath = resolvedPath.replace("{WorkloadArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
971
|
-
}
|
|
972
|
-
else {
|
|
973
|
-
throw new Error("No value provided for input HTTP label: WorkloadArn.");
|
|
974
|
-
}
|
|
677
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WorkloadArn", () => input.WorkloadArn, "{WorkloadArn}", false);
|
|
975
678
|
let body;
|
|
976
679
|
return new protocol_http_1.HttpRequest({
|
|
977
680
|
protocol,
|
|
@@ -1011,22 +714,13 @@ const serializeAws_restJson1ListWorkloadSharesCommand = async (input, context) =
|
|
|
1011
714
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1012
715
|
const headers = {};
|
|
1013
716
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/workloads/{WorkloadId}/shares";
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
}
|
|
1021
|
-
else {
|
|
1022
|
-
throw new Error("No value provided for input HTTP label: WorkloadId.");
|
|
1023
|
-
}
|
|
1024
|
-
const query = {
|
|
1025
|
-
...(input.SharedWithPrefix !== undefined && { SharedWithPrefix: input.SharedWithPrefix }),
|
|
1026
|
-
...(input.NextToken !== undefined && { NextToken: input.NextToken }),
|
|
1027
|
-
...(input.MaxResults !== undefined && { MaxResults: input.MaxResults.toString() }),
|
|
1028
|
-
...(input.Status !== undefined && { Status: input.Status }),
|
|
1029
|
-
};
|
|
717
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
|
|
718
|
+
const query = map({
|
|
719
|
+
SharedWithPrefix: [, input.SharedWithPrefix],
|
|
720
|
+
NextToken: [, input.NextToken],
|
|
721
|
+
MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
722
|
+
Status: [, input.Status],
|
|
723
|
+
});
|
|
1030
724
|
let body;
|
|
1031
725
|
return new protocol_http_1.HttpRequest({
|
|
1032
726
|
protocol,
|
|
@@ -1046,16 +740,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
1046
740
|
"content-type": "application/json",
|
|
1047
741
|
};
|
|
1048
742
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{WorkloadArn}";
|
|
1049
|
-
|
|
1050
|
-
const labelValue = input.WorkloadArn;
|
|
1051
|
-
if (labelValue.length <= 0) {
|
|
1052
|
-
throw new Error("Empty value provided for input HTTP label: WorkloadArn.");
|
|
1053
|
-
}
|
|
1054
|
-
resolvedPath = resolvedPath.replace("{WorkloadArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1055
|
-
}
|
|
1056
|
-
else {
|
|
1057
|
-
throw new Error("No value provided for input HTTP label: WorkloadArn.");
|
|
1058
|
-
}
|
|
743
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WorkloadArn", () => input.WorkloadArn, "{WorkloadArn}", false);
|
|
1059
744
|
let body;
|
|
1060
745
|
body = JSON.stringify({
|
|
1061
746
|
...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
@@ -1075,19 +760,10 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
1075
760
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1076
761
|
const headers = {};
|
|
1077
762
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{WorkloadArn}";
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
}
|
|
1083
|
-
resolvedPath = resolvedPath.replace("{WorkloadArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1084
|
-
}
|
|
1085
|
-
else {
|
|
1086
|
-
throw new Error("No value provided for input HTTP label: WorkloadArn.");
|
|
1087
|
-
}
|
|
1088
|
-
const query = {
|
|
1089
|
-
...(input.TagKeys !== undefined && { tagKeys: (input.TagKeys || []).map((_entry) => _entry) }),
|
|
1090
|
-
};
|
|
763
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WorkloadArn", () => input.WorkloadArn, "{WorkloadArn}", false);
|
|
764
|
+
const query = map({
|
|
765
|
+
tagKeys: [() => input.TagKeys !== void 0, () => (input.TagKeys || []).map((_entry) => _entry)],
|
|
766
|
+
});
|
|
1091
767
|
let body;
|
|
1092
768
|
return new protocol_http_1.HttpRequest({
|
|
1093
769
|
protocol,
|
|
@@ -1108,36 +784,9 @@ const serializeAws_restJson1UpdateAnswerCommand = async (input, context) => {
|
|
|
1108
784
|
};
|
|
1109
785
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1110
786
|
"/workloads/{WorkloadId}/lensReviews/{LensAlias}/answers/{QuestionId}";
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
throw new Error("Empty value provided for input HTTP label: WorkloadId.");
|
|
1115
|
-
}
|
|
1116
|
-
resolvedPath = resolvedPath.replace("{WorkloadId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1117
|
-
}
|
|
1118
|
-
else {
|
|
1119
|
-
throw new Error("No value provided for input HTTP label: WorkloadId.");
|
|
1120
|
-
}
|
|
1121
|
-
if (input.LensAlias !== undefined) {
|
|
1122
|
-
const labelValue = input.LensAlias;
|
|
1123
|
-
if (labelValue.length <= 0) {
|
|
1124
|
-
throw new Error("Empty value provided for input HTTP label: LensAlias.");
|
|
1125
|
-
}
|
|
1126
|
-
resolvedPath = resolvedPath.replace("{LensAlias}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1127
|
-
}
|
|
1128
|
-
else {
|
|
1129
|
-
throw new Error("No value provided for input HTTP label: LensAlias.");
|
|
1130
|
-
}
|
|
1131
|
-
if (input.QuestionId !== undefined) {
|
|
1132
|
-
const labelValue = input.QuestionId;
|
|
1133
|
-
if (labelValue.length <= 0) {
|
|
1134
|
-
throw new Error("Empty value provided for input HTTP label: QuestionId.");
|
|
1135
|
-
}
|
|
1136
|
-
resolvedPath = resolvedPath.replace("{QuestionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1137
|
-
}
|
|
1138
|
-
else {
|
|
1139
|
-
throw new Error("No value provided for input HTTP label: QuestionId.");
|
|
1140
|
-
}
|
|
787
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
|
|
788
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LensAlias", () => input.LensAlias, "{LensAlias}", false);
|
|
789
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "QuestionId", () => input.QuestionId, "{QuestionId}", false);
|
|
1141
790
|
let body;
|
|
1142
791
|
body = JSON.stringify({
|
|
1143
792
|
...(input.ChoiceUpdates != null && {
|
|
@@ -1189,26 +838,8 @@ const serializeAws_restJson1UpdateLensReviewCommand = async (input, context) =>
|
|
|
1189
838
|
};
|
|
1190
839
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1191
840
|
"/workloads/{WorkloadId}/lensReviews/{LensAlias}";
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
if (labelValue.length <= 0) {
|
|
1195
|
-
throw new Error("Empty value provided for input HTTP label: WorkloadId.");
|
|
1196
|
-
}
|
|
1197
|
-
resolvedPath = resolvedPath.replace("{WorkloadId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1198
|
-
}
|
|
1199
|
-
else {
|
|
1200
|
-
throw new Error("No value provided for input HTTP label: WorkloadId.");
|
|
1201
|
-
}
|
|
1202
|
-
if (input.LensAlias !== undefined) {
|
|
1203
|
-
const labelValue = input.LensAlias;
|
|
1204
|
-
if (labelValue.length <= 0) {
|
|
1205
|
-
throw new Error("Empty value provided for input HTTP label: LensAlias.");
|
|
1206
|
-
}
|
|
1207
|
-
resolvedPath = resolvedPath.replace("{LensAlias}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1208
|
-
}
|
|
1209
|
-
else {
|
|
1210
|
-
throw new Error("No value provided for input HTTP label: LensAlias.");
|
|
1211
|
-
}
|
|
841
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
|
|
842
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LensAlias", () => input.LensAlias, "{LensAlias}", false);
|
|
1212
843
|
let body;
|
|
1213
844
|
body = JSON.stringify({
|
|
1214
845
|
...(input.LensNotes != null && { LensNotes: input.LensNotes }),
|
|
@@ -1231,16 +862,7 @@ const serializeAws_restJson1UpdateShareInvitationCommand = async (input, context
|
|
|
1231
862
|
"content-type": "application/json",
|
|
1232
863
|
};
|
|
1233
864
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/shareInvitations/{ShareInvitationId}";
|
|
1234
|
-
|
|
1235
|
-
const labelValue = input.ShareInvitationId;
|
|
1236
|
-
if (labelValue.length <= 0) {
|
|
1237
|
-
throw new Error("Empty value provided for input HTTP label: ShareInvitationId.");
|
|
1238
|
-
}
|
|
1239
|
-
resolvedPath = resolvedPath.replace("{ShareInvitationId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1240
|
-
}
|
|
1241
|
-
else {
|
|
1242
|
-
throw new Error("No value provided for input HTTP label: ShareInvitationId.");
|
|
1243
|
-
}
|
|
865
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ShareInvitationId", () => input.ShareInvitationId, "{ShareInvitationId}", false);
|
|
1244
866
|
let body;
|
|
1245
867
|
body = JSON.stringify({
|
|
1246
868
|
...(input.ShareInvitationAction != null && { ShareInvitationAction: input.ShareInvitationAction }),
|
|
@@ -1262,16 +884,7 @@ const serializeAws_restJson1UpdateWorkloadCommand = async (input, context) => {
|
|
|
1262
884
|
"content-type": "application/json",
|
|
1263
885
|
};
|
|
1264
886
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/workloads/{WorkloadId}";
|
|
1265
|
-
|
|
1266
|
-
const labelValue = input.WorkloadId;
|
|
1267
|
-
if (labelValue.length <= 0) {
|
|
1268
|
-
throw new Error("Empty value provided for input HTTP label: WorkloadId.");
|
|
1269
|
-
}
|
|
1270
|
-
resolvedPath = resolvedPath.replace("{WorkloadId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1271
|
-
}
|
|
1272
|
-
else {
|
|
1273
|
-
throw new Error("No value provided for input HTTP label: WorkloadId.");
|
|
1274
|
-
}
|
|
887
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
|
|
1275
888
|
let body;
|
|
1276
889
|
body = JSON.stringify({
|
|
1277
890
|
...(input.AccountIds != null && {
|
|
@@ -1316,26 +929,8 @@ const serializeAws_restJson1UpdateWorkloadShareCommand = async (input, context)
|
|
|
1316
929
|
"content-type": "application/json",
|
|
1317
930
|
};
|
|
1318
931
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/workloads/{WorkloadId}/shares/{ShareId}";
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
if (labelValue.length <= 0) {
|
|
1322
|
-
throw new Error("Empty value provided for input HTTP label: ShareId.");
|
|
1323
|
-
}
|
|
1324
|
-
resolvedPath = resolvedPath.replace("{ShareId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1325
|
-
}
|
|
1326
|
-
else {
|
|
1327
|
-
throw new Error("No value provided for input HTTP label: ShareId.");
|
|
1328
|
-
}
|
|
1329
|
-
if (input.WorkloadId !== undefined) {
|
|
1330
|
-
const labelValue = input.WorkloadId;
|
|
1331
|
-
if (labelValue.length <= 0) {
|
|
1332
|
-
throw new Error("Empty value provided for input HTTP label: WorkloadId.");
|
|
1333
|
-
}
|
|
1334
|
-
resolvedPath = resolvedPath.replace("{WorkloadId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1335
|
-
}
|
|
1336
|
-
else {
|
|
1337
|
-
throw new Error("No value provided for input HTTP label: WorkloadId.");
|
|
1338
|
-
}
|
|
932
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ShareId", () => input.ShareId, "{ShareId}", false);
|
|
933
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
|
|
1339
934
|
let body;
|
|
1340
935
|
body = JSON.stringify({
|
|
1341
936
|
...(input.PermissionType != null && { PermissionType: input.PermissionType }),
|
|
@@ -1358,26 +953,8 @@ const serializeAws_restJson1UpgradeLensReviewCommand = async (input, context) =>
|
|
|
1358
953
|
};
|
|
1359
954
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1360
955
|
"/workloads/{WorkloadId}/lensReviews/{LensAlias}/upgrade";
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
if (labelValue.length <= 0) {
|
|
1364
|
-
throw new Error("Empty value provided for input HTTP label: WorkloadId.");
|
|
1365
|
-
}
|
|
1366
|
-
resolvedPath = resolvedPath.replace("{WorkloadId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1367
|
-
}
|
|
1368
|
-
else {
|
|
1369
|
-
throw new Error("No value provided for input HTTP label: WorkloadId.");
|
|
1370
|
-
}
|
|
1371
|
-
if (input.LensAlias !== undefined) {
|
|
1372
|
-
const labelValue = input.LensAlias;
|
|
1373
|
-
if (labelValue.length <= 0) {
|
|
1374
|
-
throw new Error("Empty value provided for input HTTP label: LensAlias.");
|
|
1375
|
-
}
|
|
1376
|
-
resolvedPath = resolvedPath.replace("{LensAlias}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1377
|
-
}
|
|
1378
|
-
else {
|
|
1379
|
-
throw new Error("No value provided for input HTTP label: LensAlias.");
|
|
1380
|
-
}
|
|
956
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
|
|
957
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LensAlias", () => input.LensAlias, "{LensAlias}", false);
|
|
1381
958
|
let body;
|
|
1382
959
|
body = JSON.stringify({
|
|
1383
960
|
...(input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken }),
|
|
@@ -1398,11 +975,11 @@ const deserializeAws_restJson1AssociateLensesCommand = async (output, context) =
|
|
|
1398
975
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1399
976
|
return deserializeAws_restJson1AssociateLensesCommandError(output, context);
|
|
1400
977
|
}
|
|
1401
|
-
const contents = {
|
|
978
|
+
const contents = map({
|
|
1402
979
|
$metadata: deserializeMetadata(output),
|
|
1403
|
-
};
|
|
980
|
+
});
|
|
1404
981
|
await collectBody(output.body, context);
|
|
1405
|
-
return
|
|
982
|
+
return contents;
|
|
1406
983
|
};
|
|
1407
984
|
exports.deserializeAws_restJson1AssociateLensesCommand = deserializeAws_restJson1AssociateLensesCommand;
|
|
1408
985
|
const deserializeAws_restJson1AssociateLensesCommandError = async (output, context) => {
|
|
@@ -1410,7 +987,6 @@ const deserializeAws_restJson1AssociateLensesCommandError = async (output, conte
|
|
|
1410
987
|
...output,
|
|
1411
988
|
body: await parseBody(output.body, context),
|
|
1412
989
|
};
|
|
1413
|
-
let response;
|
|
1414
990
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1415
991
|
switch (errorCode) {
|
|
1416
992
|
case "AccessDeniedException":
|
|
@@ -1433,29 +1009,26 @@ const deserializeAws_restJson1AssociateLensesCommandError = async (output, conte
|
|
|
1433
1009
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1434
1010
|
default:
|
|
1435
1011
|
const parsedBody = parsedOutput.body;
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
$metadata,
|
|
1012
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1013
|
+
output,
|
|
1014
|
+
parsedBody,
|
|
1015
|
+
exceptionCtor: WellArchitectedServiceException_1.WellArchitectedServiceException,
|
|
1016
|
+
errorCode,
|
|
1442
1017
|
});
|
|
1443
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1444
1018
|
}
|
|
1445
1019
|
};
|
|
1446
1020
|
const deserializeAws_restJson1CreateLensShareCommand = async (output, context) => {
|
|
1447
1021
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1448
1022
|
return deserializeAws_restJson1CreateLensShareCommandError(output, context);
|
|
1449
1023
|
}
|
|
1450
|
-
const contents = {
|
|
1024
|
+
const contents = map({
|
|
1451
1025
|
$metadata: deserializeMetadata(output),
|
|
1452
|
-
|
|
1453
|
-
};
|
|
1026
|
+
});
|
|
1454
1027
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1455
|
-
if (data.ShareId
|
|
1028
|
+
if (data.ShareId != null) {
|
|
1456
1029
|
contents.ShareId = (0, smithy_client_1.expectString)(data.ShareId);
|
|
1457
1030
|
}
|
|
1458
|
-
return
|
|
1031
|
+
return contents;
|
|
1459
1032
|
};
|
|
1460
1033
|
exports.deserializeAws_restJson1CreateLensShareCommand = deserializeAws_restJson1CreateLensShareCommand;
|
|
1461
1034
|
const deserializeAws_restJson1CreateLensShareCommandError = async (output, context) => {
|
|
@@ -1463,7 +1036,6 @@ const deserializeAws_restJson1CreateLensShareCommandError = async (output, conte
|
|
|
1463
1036
|
...output,
|
|
1464
1037
|
body: await parseBody(output.body, context),
|
|
1465
1038
|
};
|
|
1466
|
-
let response;
|
|
1467
1039
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1468
1040
|
switch (errorCode) {
|
|
1469
1041
|
case "AccessDeniedException":
|
|
@@ -1489,33 +1061,29 @@ const deserializeAws_restJson1CreateLensShareCommandError = async (output, conte
|
|
|
1489
1061
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1490
1062
|
default:
|
|
1491
1063
|
const parsedBody = parsedOutput.body;
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
$metadata,
|
|
1064
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1065
|
+
output,
|
|
1066
|
+
parsedBody,
|
|
1067
|
+
exceptionCtor: WellArchitectedServiceException_1.WellArchitectedServiceException,
|
|
1068
|
+
errorCode,
|
|
1498
1069
|
});
|
|
1499
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1500
1070
|
}
|
|
1501
1071
|
};
|
|
1502
1072
|
const deserializeAws_restJson1CreateLensVersionCommand = async (output, context) => {
|
|
1503
1073
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1504
1074
|
return deserializeAws_restJson1CreateLensVersionCommandError(output, context);
|
|
1505
1075
|
}
|
|
1506
|
-
const contents = {
|
|
1076
|
+
const contents = map({
|
|
1507
1077
|
$metadata: deserializeMetadata(output),
|
|
1508
|
-
|
|
1509
|
-
LensVersion: undefined,
|
|
1510
|
-
};
|
|
1078
|
+
});
|
|
1511
1079
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1512
|
-
if (data.LensArn
|
|
1080
|
+
if (data.LensArn != null) {
|
|
1513
1081
|
contents.LensArn = (0, smithy_client_1.expectString)(data.LensArn);
|
|
1514
1082
|
}
|
|
1515
|
-
if (data.LensVersion
|
|
1083
|
+
if (data.LensVersion != null) {
|
|
1516
1084
|
contents.LensVersion = (0, smithy_client_1.expectString)(data.LensVersion);
|
|
1517
1085
|
}
|
|
1518
|
-
return
|
|
1086
|
+
return contents;
|
|
1519
1087
|
};
|
|
1520
1088
|
exports.deserializeAws_restJson1CreateLensVersionCommand = deserializeAws_restJson1CreateLensVersionCommand;
|
|
1521
1089
|
const deserializeAws_restJson1CreateLensVersionCommandError = async (output, context) => {
|
|
@@ -1523,7 +1091,6 @@ const deserializeAws_restJson1CreateLensVersionCommandError = async (output, con
|
|
|
1523
1091
|
...output,
|
|
1524
1092
|
body: await parseBody(output.body, context),
|
|
1525
1093
|
};
|
|
1526
|
-
let response;
|
|
1527
1094
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1528
1095
|
switch (errorCode) {
|
|
1529
1096
|
case "AccessDeniedException":
|
|
@@ -1549,33 +1116,29 @@ const deserializeAws_restJson1CreateLensVersionCommandError = async (output, con
|
|
|
1549
1116
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1550
1117
|
default:
|
|
1551
1118
|
const parsedBody = parsedOutput.body;
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
$metadata,
|
|
1119
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1120
|
+
output,
|
|
1121
|
+
parsedBody,
|
|
1122
|
+
exceptionCtor: WellArchitectedServiceException_1.WellArchitectedServiceException,
|
|
1123
|
+
errorCode,
|
|
1558
1124
|
});
|
|
1559
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1560
1125
|
}
|
|
1561
1126
|
};
|
|
1562
1127
|
const deserializeAws_restJson1CreateMilestoneCommand = async (output, context) => {
|
|
1563
1128
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1564
1129
|
return deserializeAws_restJson1CreateMilestoneCommandError(output, context);
|
|
1565
1130
|
}
|
|
1566
|
-
const contents = {
|
|
1131
|
+
const contents = map({
|
|
1567
1132
|
$metadata: deserializeMetadata(output),
|
|
1568
|
-
|
|
1569
|
-
WorkloadId: undefined,
|
|
1570
|
-
};
|
|
1133
|
+
});
|
|
1571
1134
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1572
|
-
if (data.MilestoneNumber
|
|
1135
|
+
if (data.MilestoneNumber != null) {
|
|
1573
1136
|
contents.MilestoneNumber = (0, smithy_client_1.expectInt32)(data.MilestoneNumber);
|
|
1574
1137
|
}
|
|
1575
|
-
if (data.WorkloadId
|
|
1138
|
+
if (data.WorkloadId != null) {
|
|
1576
1139
|
contents.WorkloadId = (0, smithy_client_1.expectString)(data.WorkloadId);
|
|
1577
1140
|
}
|
|
1578
|
-
return
|
|
1141
|
+
return contents;
|
|
1579
1142
|
};
|
|
1580
1143
|
exports.deserializeAws_restJson1CreateMilestoneCommand = deserializeAws_restJson1CreateMilestoneCommand;
|
|
1581
1144
|
const deserializeAws_restJson1CreateMilestoneCommandError = async (output, context) => {
|
|
@@ -1583,7 +1146,6 @@ const deserializeAws_restJson1CreateMilestoneCommandError = async (output, conte
|
|
|
1583
1146
|
...output,
|
|
1584
1147
|
body: await parseBody(output.body, context),
|
|
1585
1148
|
};
|
|
1586
|
-
let response;
|
|
1587
1149
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1588
1150
|
switch (errorCode) {
|
|
1589
1151
|
case "AccessDeniedException":
|
|
@@ -1609,33 +1171,29 @@ const deserializeAws_restJson1CreateMilestoneCommandError = async (output, conte
|
|
|
1609
1171
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1610
1172
|
default:
|
|
1611
1173
|
const parsedBody = parsedOutput.body;
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
$metadata,
|
|
1174
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1175
|
+
output,
|
|
1176
|
+
parsedBody,
|
|
1177
|
+
exceptionCtor: WellArchitectedServiceException_1.WellArchitectedServiceException,
|
|
1178
|
+
errorCode,
|
|
1618
1179
|
});
|
|
1619
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1620
1180
|
}
|
|
1621
1181
|
};
|
|
1622
1182
|
const deserializeAws_restJson1CreateWorkloadCommand = async (output, context) => {
|
|
1623
1183
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1624
1184
|
return deserializeAws_restJson1CreateWorkloadCommandError(output, context);
|
|
1625
1185
|
}
|
|
1626
|
-
const contents = {
|
|
1186
|
+
const contents = map({
|
|
1627
1187
|
$metadata: deserializeMetadata(output),
|
|
1628
|
-
|
|
1629
|
-
WorkloadId: undefined,
|
|
1630
|
-
};
|
|
1188
|
+
});
|
|
1631
1189
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1632
|
-
if (data.WorkloadArn
|
|
1190
|
+
if (data.WorkloadArn != null) {
|
|
1633
1191
|
contents.WorkloadArn = (0, smithy_client_1.expectString)(data.WorkloadArn);
|
|
1634
1192
|
}
|
|
1635
|
-
if (data.WorkloadId
|
|
1193
|
+
if (data.WorkloadId != null) {
|
|
1636
1194
|
contents.WorkloadId = (0, smithy_client_1.expectString)(data.WorkloadId);
|
|
1637
1195
|
}
|
|
1638
|
-
return
|
|
1196
|
+
return contents;
|
|
1639
1197
|
};
|
|
1640
1198
|
exports.deserializeAws_restJson1CreateWorkloadCommand = deserializeAws_restJson1CreateWorkloadCommand;
|
|
1641
1199
|
const deserializeAws_restJson1CreateWorkloadCommandError = async (output, context) => {
|
|
@@ -1643,7 +1201,6 @@ const deserializeAws_restJson1CreateWorkloadCommandError = async (output, contex
|
|
|
1643
1201
|
...output,
|
|
1644
1202
|
body: await parseBody(output.body, context),
|
|
1645
1203
|
};
|
|
1646
|
-
let response;
|
|
1647
1204
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1648
1205
|
switch (errorCode) {
|
|
1649
1206
|
case "AccessDeniedException":
|
|
@@ -1666,33 +1223,29 @@ const deserializeAws_restJson1CreateWorkloadCommandError = async (output, contex
|
|
|
1666
1223
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1667
1224
|
default:
|
|
1668
1225
|
const parsedBody = parsedOutput.body;
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
$metadata,
|
|
1226
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1227
|
+
output,
|
|
1228
|
+
parsedBody,
|
|
1229
|
+
exceptionCtor: WellArchitectedServiceException_1.WellArchitectedServiceException,
|
|
1230
|
+
errorCode,
|
|
1675
1231
|
});
|
|
1676
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1677
1232
|
}
|
|
1678
1233
|
};
|
|
1679
1234
|
const deserializeAws_restJson1CreateWorkloadShareCommand = async (output, context) => {
|
|
1680
1235
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1681
1236
|
return deserializeAws_restJson1CreateWorkloadShareCommandError(output, context);
|
|
1682
1237
|
}
|
|
1683
|
-
const contents = {
|
|
1238
|
+
const contents = map({
|
|
1684
1239
|
$metadata: deserializeMetadata(output),
|
|
1685
|
-
|
|
1686
|
-
WorkloadId: undefined,
|
|
1687
|
-
};
|
|
1240
|
+
});
|
|
1688
1241
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1689
|
-
if (data.ShareId
|
|
1242
|
+
if (data.ShareId != null) {
|
|
1690
1243
|
contents.ShareId = (0, smithy_client_1.expectString)(data.ShareId);
|
|
1691
1244
|
}
|
|
1692
|
-
if (data.WorkloadId
|
|
1245
|
+
if (data.WorkloadId != null) {
|
|
1693
1246
|
contents.WorkloadId = (0, smithy_client_1.expectString)(data.WorkloadId);
|
|
1694
1247
|
}
|
|
1695
|
-
return
|
|
1248
|
+
return contents;
|
|
1696
1249
|
};
|
|
1697
1250
|
exports.deserializeAws_restJson1CreateWorkloadShareCommand = deserializeAws_restJson1CreateWorkloadShareCommand;
|
|
1698
1251
|
const deserializeAws_restJson1CreateWorkloadShareCommandError = async (output, context) => {
|
|
@@ -1700,7 +1253,6 @@ const deserializeAws_restJson1CreateWorkloadShareCommandError = async (output, c
|
|
|
1700
1253
|
...output,
|
|
1701
1254
|
body: await parseBody(output.body, context),
|
|
1702
1255
|
};
|
|
1703
|
-
let response;
|
|
1704
1256
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1705
1257
|
switch (errorCode) {
|
|
1706
1258
|
case "AccessDeniedException":
|
|
@@ -1726,25 +1278,23 @@ const deserializeAws_restJson1CreateWorkloadShareCommandError = async (output, c
|
|
|
1726
1278
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1727
1279
|
default:
|
|
1728
1280
|
const parsedBody = parsedOutput.body;
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
$metadata,
|
|
1281
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1282
|
+
output,
|
|
1283
|
+
parsedBody,
|
|
1284
|
+
exceptionCtor: WellArchitectedServiceException_1.WellArchitectedServiceException,
|
|
1285
|
+
errorCode,
|
|
1735
1286
|
});
|
|
1736
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1737
1287
|
}
|
|
1738
1288
|
};
|
|
1739
1289
|
const deserializeAws_restJson1DeleteLensCommand = async (output, context) => {
|
|
1740
1290
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1741
1291
|
return deserializeAws_restJson1DeleteLensCommandError(output, context);
|
|
1742
1292
|
}
|
|
1743
|
-
const contents = {
|
|
1293
|
+
const contents = map({
|
|
1744
1294
|
$metadata: deserializeMetadata(output),
|
|
1745
|
-
};
|
|
1295
|
+
});
|
|
1746
1296
|
await collectBody(output.body, context);
|
|
1747
|
-
return
|
|
1297
|
+
return contents;
|
|
1748
1298
|
};
|
|
1749
1299
|
exports.deserializeAws_restJson1DeleteLensCommand = deserializeAws_restJson1DeleteLensCommand;
|
|
1750
1300
|
const deserializeAws_restJson1DeleteLensCommandError = async (output, context) => {
|
|
@@ -1752,7 +1302,6 @@ const deserializeAws_restJson1DeleteLensCommandError = async (output, context) =
|
|
|
1752
1302
|
...output,
|
|
1753
1303
|
body: await parseBody(output.body, context),
|
|
1754
1304
|
};
|
|
1755
|
-
let response;
|
|
1756
1305
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1757
1306
|
switch (errorCode) {
|
|
1758
1307
|
case "AccessDeniedException":
|
|
@@ -1775,25 +1324,23 @@ const deserializeAws_restJson1DeleteLensCommandError = async (output, context) =
|
|
|
1775
1324
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1776
1325
|
default:
|
|
1777
1326
|
const parsedBody = parsedOutput.body;
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
$metadata,
|
|
1327
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1328
|
+
output,
|
|
1329
|
+
parsedBody,
|
|
1330
|
+
exceptionCtor: WellArchitectedServiceException_1.WellArchitectedServiceException,
|
|
1331
|
+
errorCode,
|
|
1784
1332
|
});
|
|
1785
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1786
1333
|
}
|
|
1787
1334
|
};
|
|
1788
1335
|
const deserializeAws_restJson1DeleteLensShareCommand = async (output, context) => {
|
|
1789
1336
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1790
1337
|
return deserializeAws_restJson1DeleteLensShareCommandError(output, context);
|
|
1791
1338
|
}
|
|
1792
|
-
const contents = {
|
|
1339
|
+
const contents = map({
|
|
1793
1340
|
$metadata: deserializeMetadata(output),
|
|
1794
|
-
};
|
|
1341
|
+
});
|
|
1795
1342
|
await collectBody(output.body, context);
|
|
1796
|
-
return
|
|
1343
|
+
return contents;
|
|
1797
1344
|
};
|
|
1798
1345
|
exports.deserializeAws_restJson1DeleteLensShareCommand = deserializeAws_restJson1DeleteLensShareCommand;
|
|
1799
1346
|
const deserializeAws_restJson1DeleteLensShareCommandError = async (output, context) => {
|
|
@@ -1801,7 +1348,6 @@ const deserializeAws_restJson1DeleteLensShareCommandError = async (output, conte
|
|
|
1801
1348
|
...output,
|
|
1802
1349
|
body: await parseBody(output.body, context),
|
|
1803
1350
|
};
|
|
1804
|
-
let response;
|
|
1805
1351
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1806
1352
|
switch (errorCode) {
|
|
1807
1353
|
case "AccessDeniedException":
|
|
@@ -1824,25 +1370,23 @@ const deserializeAws_restJson1DeleteLensShareCommandError = async (output, conte
|
|
|
1824
1370
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1825
1371
|
default:
|
|
1826
1372
|
const parsedBody = parsedOutput.body;
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
$metadata,
|
|
1373
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1374
|
+
output,
|
|
1375
|
+
parsedBody,
|
|
1376
|
+
exceptionCtor: WellArchitectedServiceException_1.WellArchitectedServiceException,
|
|
1377
|
+
errorCode,
|
|
1833
1378
|
});
|
|
1834
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1835
1379
|
}
|
|
1836
1380
|
};
|
|
1837
1381
|
const deserializeAws_restJson1DeleteWorkloadCommand = async (output, context) => {
|
|
1838
1382
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1839
1383
|
return deserializeAws_restJson1DeleteWorkloadCommandError(output, context);
|
|
1840
1384
|
}
|
|
1841
|
-
const contents = {
|
|
1385
|
+
const contents = map({
|
|
1842
1386
|
$metadata: deserializeMetadata(output),
|
|
1843
|
-
};
|
|
1387
|
+
});
|
|
1844
1388
|
await collectBody(output.body, context);
|
|
1845
|
-
return
|
|
1389
|
+
return contents;
|
|
1846
1390
|
};
|
|
1847
1391
|
exports.deserializeAws_restJson1DeleteWorkloadCommand = deserializeAws_restJson1DeleteWorkloadCommand;
|
|
1848
1392
|
const deserializeAws_restJson1DeleteWorkloadCommandError = async (output, context) => {
|
|
@@ -1850,7 +1394,6 @@ const deserializeAws_restJson1DeleteWorkloadCommandError = async (output, contex
|
|
|
1850
1394
|
...output,
|
|
1851
1395
|
body: await parseBody(output.body, context),
|
|
1852
1396
|
};
|
|
1853
|
-
let response;
|
|
1854
1397
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1855
1398
|
switch (errorCode) {
|
|
1856
1399
|
case "AccessDeniedException":
|
|
@@ -1873,25 +1416,23 @@ const deserializeAws_restJson1DeleteWorkloadCommandError = async (output, contex
|
|
|
1873
1416
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1874
1417
|
default:
|
|
1875
1418
|
const parsedBody = parsedOutput.body;
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
$metadata,
|
|
1419
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1420
|
+
output,
|
|
1421
|
+
parsedBody,
|
|
1422
|
+
exceptionCtor: WellArchitectedServiceException_1.WellArchitectedServiceException,
|
|
1423
|
+
errorCode,
|
|
1882
1424
|
});
|
|
1883
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1884
1425
|
}
|
|
1885
1426
|
};
|
|
1886
1427
|
const deserializeAws_restJson1DeleteWorkloadShareCommand = async (output, context) => {
|
|
1887
1428
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1888
1429
|
return deserializeAws_restJson1DeleteWorkloadShareCommandError(output, context);
|
|
1889
1430
|
}
|
|
1890
|
-
const contents = {
|
|
1431
|
+
const contents = map({
|
|
1891
1432
|
$metadata: deserializeMetadata(output),
|
|
1892
|
-
};
|
|
1433
|
+
});
|
|
1893
1434
|
await collectBody(output.body, context);
|
|
1894
|
-
return
|
|
1435
|
+
return contents;
|
|
1895
1436
|
};
|
|
1896
1437
|
exports.deserializeAws_restJson1DeleteWorkloadShareCommand = deserializeAws_restJson1DeleteWorkloadShareCommand;
|
|
1897
1438
|
const deserializeAws_restJson1DeleteWorkloadShareCommandError = async (output, context) => {
|
|
@@ -1899,7 +1440,6 @@ const deserializeAws_restJson1DeleteWorkloadShareCommandError = async (output, c
|
|
|
1899
1440
|
...output,
|
|
1900
1441
|
body: await parseBody(output.body, context),
|
|
1901
1442
|
};
|
|
1902
|
-
let response;
|
|
1903
1443
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1904
1444
|
switch (errorCode) {
|
|
1905
1445
|
case "AccessDeniedException":
|
|
@@ -1922,25 +1462,23 @@ const deserializeAws_restJson1DeleteWorkloadShareCommandError = async (output, c
|
|
|
1922
1462
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1923
1463
|
default:
|
|
1924
1464
|
const parsedBody = parsedOutput.body;
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
$metadata,
|
|
1465
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1466
|
+
output,
|
|
1467
|
+
parsedBody,
|
|
1468
|
+
exceptionCtor: WellArchitectedServiceException_1.WellArchitectedServiceException,
|
|
1469
|
+
errorCode,
|
|
1931
1470
|
});
|
|
1932
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1933
1471
|
}
|
|
1934
1472
|
};
|
|
1935
1473
|
const deserializeAws_restJson1DisassociateLensesCommand = async (output, context) => {
|
|
1936
1474
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1937
1475
|
return deserializeAws_restJson1DisassociateLensesCommandError(output, context);
|
|
1938
1476
|
}
|
|
1939
|
-
const contents = {
|
|
1477
|
+
const contents = map({
|
|
1940
1478
|
$metadata: deserializeMetadata(output),
|
|
1941
|
-
};
|
|
1479
|
+
});
|
|
1942
1480
|
await collectBody(output.body, context);
|
|
1943
|
-
return
|
|
1481
|
+
return contents;
|
|
1944
1482
|
};
|
|
1945
1483
|
exports.deserializeAws_restJson1DisassociateLensesCommand = deserializeAws_restJson1DisassociateLensesCommand;
|
|
1946
1484
|
const deserializeAws_restJson1DisassociateLensesCommandError = async (output, context) => {
|
|
@@ -1948,7 +1486,6 @@ const deserializeAws_restJson1DisassociateLensesCommandError = async (output, co
|
|
|
1948
1486
|
...output,
|
|
1949
1487
|
body: await parseBody(output.body, context),
|
|
1950
1488
|
};
|
|
1951
|
-
let response;
|
|
1952
1489
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1953
1490
|
switch (errorCode) {
|
|
1954
1491
|
case "AccessDeniedException":
|
|
@@ -1971,29 +1508,26 @@ const deserializeAws_restJson1DisassociateLensesCommandError = async (output, co
|
|
|
1971
1508
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1972
1509
|
default:
|
|
1973
1510
|
const parsedBody = parsedOutput.body;
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
$metadata,
|
|
1511
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1512
|
+
output,
|
|
1513
|
+
parsedBody,
|
|
1514
|
+
exceptionCtor: WellArchitectedServiceException_1.WellArchitectedServiceException,
|
|
1515
|
+
errorCode,
|
|
1980
1516
|
});
|
|
1981
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1982
1517
|
}
|
|
1983
1518
|
};
|
|
1984
1519
|
const deserializeAws_restJson1ExportLensCommand = async (output, context) => {
|
|
1985
1520
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1986
1521
|
return deserializeAws_restJson1ExportLensCommandError(output, context);
|
|
1987
1522
|
}
|
|
1988
|
-
const contents = {
|
|
1523
|
+
const contents = map({
|
|
1989
1524
|
$metadata: deserializeMetadata(output),
|
|
1990
|
-
|
|
1991
|
-
};
|
|
1525
|
+
});
|
|
1992
1526
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1993
|
-
if (data.LensJSON
|
|
1527
|
+
if (data.LensJSON != null) {
|
|
1994
1528
|
contents.LensJSON = (0, smithy_client_1.expectString)(data.LensJSON);
|
|
1995
1529
|
}
|
|
1996
|
-
return
|
|
1530
|
+
return contents;
|
|
1997
1531
|
};
|
|
1998
1532
|
exports.deserializeAws_restJson1ExportLensCommand = deserializeAws_restJson1ExportLensCommand;
|
|
1999
1533
|
const deserializeAws_restJson1ExportLensCommandError = async (output, context) => {
|
|
@@ -2001,7 +1535,6 @@ const deserializeAws_restJson1ExportLensCommandError = async (output, context) =
|
|
|
2001
1535
|
...output,
|
|
2002
1536
|
body: await parseBody(output.body, context),
|
|
2003
1537
|
};
|
|
2004
|
-
let response;
|
|
2005
1538
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2006
1539
|
switch (errorCode) {
|
|
2007
1540
|
case "AccessDeniedException":
|
|
@@ -2021,45 +1554,38 @@ const deserializeAws_restJson1ExportLensCommandError = async (output, context) =
|
|
|
2021
1554
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2022
1555
|
default:
|
|
2023
1556
|
const parsedBody = parsedOutput.body;
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
$metadata,
|
|
1557
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1558
|
+
output,
|
|
1559
|
+
parsedBody,
|
|
1560
|
+
exceptionCtor: WellArchitectedServiceException_1.WellArchitectedServiceException,
|
|
1561
|
+
errorCode,
|
|
2030
1562
|
});
|
|
2031
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2032
1563
|
}
|
|
2033
1564
|
};
|
|
2034
1565
|
const deserializeAws_restJson1GetAnswerCommand = async (output, context) => {
|
|
2035
1566
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2036
1567
|
return deserializeAws_restJson1GetAnswerCommandError(output, context);
|
|
2037
1568
|
}
|
|
2038
|
-
const contents = {
|
|
1569
|
+
const contents = map({
|
|
2039
1570
|
$metadata: deserializeMetadata(output),
|
|
2040
|
-
|
|
2041
|
-
LensAlias: undefined,
|
|
2042
|
-
LensArn: undefined,
|
|
2043
|
-
MilestoneNumber: undefined,
|
|
2044
|
-
WorkloadId: undefined,
|
|
2045
|
-
};
|
|
1571
|
+
});
|
|
2046
1572
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2047
|
-
if (data.Answer
|
|
1573
|
+
if (data.Answer != null) {
|
|
2048
1574
|
contents.Answer = deserializeAws_restJson1Answer(data.Answer, context);
|
|
2049
1575
|
}
|
|
2050
|
-
if (data.LensAlias
|
|
1576
|
+
if (data.LensAlias != null) {
|
|
2051
1577
|
contents.LensAlias = (0, smithy_client_1.expectString)(data.LensAlias);
|
|
2052
1578
|
}
|
|
2053
|
-
if (data.LensArn
|
|
1579
|
+
if (data.LensArn != null) {
|
|
2054
1580
|
contents.LensArn = (0, smithy_client_1.expectString)(data.LensArn);
|
|
2055
1581
|
}
|
|
2056
|
-
if (data.MilestoneNumber
|
|
1582
|
+
if (data.MilestoneNumber != null) {
|
|
2057
1583
|
contents.MilestoneNumber = (0, smithy_client_1.expectInt32)(data.MilestoneNumber);
|
|
2058
1584
|
}
|
|
2059
|
-
if (data.WorkloadId
|
|
1585
|
+
if (data.WorkloadId != null) {
|
|
2060
1586
|
contents.WorkloadId = (0, smithy_client_1.expectString)(data.WorkloadId);
|
|
2061
1587
|
}
|
|
2062
|
-
return
|
|
1588
|
+
return contents;
|
|
2063
1589
|
};
|
|
2064
1590
|
exports.deserializeAws_restJson1GetAnswerCommand = deserializeAws_restJson1GetAnswerCommand;
|
|
2065
1591
|
const deserializeAws_restJson1GetAnswerCommandError = async (output, context) => {
|
|
@@ -2067,7 +1593,6 @@ const deserializeAws_restJson1GetAnswerCommandError = async (output, context) =>
|
|
|
2067
1593
|
...output,
|
|
2068
1594
|
body: await parseBody(output.body, context),
|
|
2069
1595
|
};
|
|
2070
|
-
let response;
|
|
2071
1596
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2072
1597
|
switch (errorCode) {
|
|
2073
1598
|
case "AccessDeniedException":
|
|
@@ -2087,29 +1612,26 @@ const deserializeAws_restJson1GetAnswerCommandError = async (output, context) =>
|
|
|
2087
1612
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2088
1613
|
default:
|
|
2089
1614
|
const parsedBody = parsedOutput.body;
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
$metadata,
|
|
1615
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1616
|
+
output,
|
|
1617
|
+
parsedBody,
|
|
1618
|
+
exceptionCtor: WellArchitectedServiceException_1.WellArchitectedServiceException,
|
|
1619
|
+
errorCode,
|
|
2096
1620
|
});
|
|
2097
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2098
1621
|
}
|
|
2099
1622
|
};
|
|
2100
1623
|
const deserializeAws_restJson1GetLensCommand = async (output, context) => {
|
|
2101
1624
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2102
1625
|
return deserializeAws_restJson1GetLensCommandError(output, context);
|
|
2103
1626
|
}
|
|
2104
|
-
const contents = {
|
|
1627
|
+
const contents = map({
|
|
2105
1628
|
$metadata: deserializeMetadata(output),
|
|
2106
|
-
|
|
2107
|
-
};
|
|
1629
|
+
});
|
|
2108
1630
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2109
|
-
if (data.Lens
|
|
1631
|
+
if (data.Lens != null) {
|
|
2110
1632
|
contents.Lens = deserializeAws_restJson1Lens(data.Lens, context);
|
|
2111
1633
|
}
|
|
2112
|
-
return
|
|
1634
|
+
return contents;
|
|
2113
1635
|
};
|
|
2114
1636
|
exports.deserializeAws_restJson1GetLensCommand = deserializeAws_restJson1GetLensCommand;
|
|
2115
1637
|
const deserializeAws_restJson1GetLensCommandError = async (output, context) => {
|
|
@@ -2117,7 +1639,6 @@ const deserializeAws_restJson1GetLensCommandError = async (output, context) => {
|
|
|
2117
1639
|
...output,
|
|
2118
1640
|
body: await parseBody(output.body, context),
|
|
2119
1641
|
};
|
|
2120
|
-
let response;
|
|
2121
1642
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2122
1643
|
switch (errorCode) {
|
|
2123
1644
|
case "AccessDeniedException":
|
|
@@ -2137,37 +1658,32 @@ const deserializeAws_restJson1GetLensCommandError = async (output, context) => {
|
|
|
2137
1658
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2138
1659
|
default:
|
|
2139
1660
|
const parsedBody = parsedOutput.body;
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
$metadata,
|
|
1661
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1662
|
+
output,
|
|
1663
|
+
parsedBody,
|
|
1664
|
+
exceptionCtor: WellArchitectedServiceException_1.WellArchitectedServiceException,
|
|
1665
|
+
errorCode,
|
|
2146
1666
|
});
|
|
2147
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2148
1667
|
}
|
|
2149
1668
|
};
|
|
2150
1669
|
const deserializeAws_restJson1GetLensReviewCommand = async (output, context) => {
|
|
2151
1670
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2152
1671
|
return deserializeAws_restJson1GetLensReviewCommandError(output, context);
|
|
2153
1672
|
}
|
|
2154
|
-
const contents = {
|
|
1673
|
+
const contents = map({
|
|
2155
1674
|
$metadata: deserializeMetadata(output),
|
|
2156
|
-
|
|
2157
|
-
MilestoneNumber: undefined,
|
|
2158
|
-
WorkloadId: undefined,
|
|
2159
|
-
};
|
|
1675
|
+
});
|
|
2160
1676
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2161
|
-
if (data.LensReview
|
|
1677
|
+
if (data.LensReview != null) {
|
|
2162
1678
|
contents.LensReview = deserializeAws_restJson1LensReview(data.LensReview, context);
|
|
2163
1679
|
}
|
|
2164
|
-
if (data.MilestoneNumber
|
|
1680
|
+
if (data.MilestoneNumber != null) {
|
|
2165
1681
|
contents.MilestoneNumber = (0, smithy_client_1.expectInt32)(data.MilestoneNumber);
|
|
2166
1682
|
}
|
|
2167
|
-
if (data.WorkloadId
|
|
1683
|
+
if (data.WorkloadId != null) {
|
|
2168
1684
|
contents.WorkloadId = (0, smithy_client_1.expectString)(data.WorkloadId);
|
|
2169
1685
|
}
|
|
2170
|
-
return
|
|
1686
|
+
return contents;
|
|
2171
1687
|
};
|
|
2172
1688
|
exports.deserializeAws_restJson1GetLensReviewCommand = deserializeAws_restJson1GetLensReviewCommand;
|
|
2173
1689
|
const deserializeAws_restJson1GetLensReviewCommandError = async (output, context) => {
|
|
@@ -2175,7 +1691,6 @@ const deserializeAws_restJson1GetLensReviewCommandError = async (output, context
|
|
|
2175
1691
|
...output,
|
|
2176
1692
|
body: await parseBody(output.body, context),
|
|
2177
1693
|
};
|
|
2178
|
-
let response;
|
|
2179
1694
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2180
1695
|
switch (errorCode) {
|
|
2181
1696
|
case "AccessDeniedException":
|
|
@@ -2195,37 +1710,32 @@ const deserializeAws_restJson1GetLensReviewCommandError = async (output, context
|
|
|
2195
1710
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2196
1711
|
default:
|
|
2197
1712
|
const parsedBody = parsedOutput.body;
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
$metadata,
|
|
1713
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1714
|
+
output,
|
|
1715
|
+
parsedBody,
|
|
1716
|
+
exceptionCtor: WellArchitectedServiceException_1.WellArchitectedServiceException,
|
|
1717
|
+
errorCode,
|
|
2204
1718
|
});
|
|
2205
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2206
1719
|
}
|
|
2207
1720
|
};
|
|
2208
1721
|
const deserializeAws_restJson1GetLensReviewReportCommand = async (output, context) => {
|
|
2209
1722
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2210
1723
|
return deserializeAws_restJson1GetLensReviewReportCommandError(output, context);
|
|
2211
1724
|
}
|
|
2212
|
-
const contents = {
|
|
1725
|
+
const contents = map({
|
|
2213
1726
|
$metadata: deserializeMetadata(output),
|
|
2214
|
-
|
|
2215
|
-
MilestoneNumber: undefined,
|
|
2216
|
-
WorkloadId: undefined,
|
|
2217
|
-
};
|
|
1727
|
+
});
|
|
2218
1728
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2219
|
-
if (data.LensReviewReport
|
|
1729
|
+
if (data.LensReviewReport != null) {
|
|
2220
1730
|
contents.LensReviewReport = deserializeAws_restJson1LensReviewReport(data.LensReviewReport, context);
|
|
2221
1731
|
}
|
|
2222
|
-
if (data.MilestoneNumber
|
|
1732
|
+
if (data.MilestoneNumber != null) {
|
|
2223
1733
|
contents.MilestoneNumber = (0, smithy_client_1.expectInt32)(data.MilestoneNumber);
|
|
2224
1734
|
}
|
|
2225
|
-
if (data.WorkloadId
|
|
1735
|
+
if (data.WorkloadId != null) {
|
|
2226
1736
|
contents.WorkloadId = (0, smithy_client_1.expectString)(data.WorkloadId);
|
|
2227
1737
|
}
|
|
2228
|
-
return
|
|
1738
|
+
return contents;
|
|
2229
1739
|
};
|
|
2230
1740
|
exports.deserializeAws_restJson1GetLensReviewReportCommand = deserializeAws_restJson1GetLensReviewReportCommand;
|
|
2231
1741
|
const deserializeAws_restJson1GetLensReviewReportCommandError = async (output, context) => {
|
|
@@ -2233,7 +1743,6 @@ const deserializeAws_restJson1GetLensReviewReportCommandError = async (output, c
|
|
|
2233
1743
|
...output,
|
|
2234
1744
|
body: await parseBody(output.body, context),
|
|
2235
1745
|
};
|
|
2236
|
-
let response;
|
|
2237
1746
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2238
1747
|
switch (errorCode) {
|
|
2239
1748
|
case "AccessDeniedException":
|
|
@@ -2253,49 +1762,41 @@ const deserializeAws_restJson1GetLensReviewReportCommandError = async (output, c
|
|
|
2253
1762
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2254
1763
|
default:
|
|
2255
1764
|
const parsedBody = parsedOutput.body;
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
$metadata,
|
|
1765
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1766
|
+
output,
|
|
1767
|
+
parsedBody,
|
|
1768
|
+
exceptionCtor: WellArchitectedServiceException_1.WellArchitectedServiceException,
|
|
1769
|
+
errorCode,
|
|
2262
1770
|
});
|
|
2263
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2264
1771
|
}
|
|
2265
1772
|
};
|
|
2266
1773
|
const deserializeAws_restJson1GetLensVersionDifferenceCommand = async (output, context) => {
|
|
2267
1774
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2268
1775
|
return deserializeAws_restJson1GetLensVersionDifferenceCommandError(output, context);
|
|
2269
1776
|
}
|
|
2270
|
-
const contents = {
|
|
1777
|
+
const contents = map({
|
|
2271
1778
|
$metadata: deserializeMetadata(output),
|
|
2272
|
-
|
|
2273
|
-
LatestLensVersion: undefined,
|
|
2274
|
-
LensAlias: undefined,
|
|
2275
|
-
LensArn: undefined,
|
|
2276
|
-
TargetLensVersion: undefined,
|
|
2277
|
-
VersionDifferences: undefined,
|
|
2278
|
-
};
|
|
1779
|
+
});
|
|
2279
1780
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2280
|
-
if (data.BaseLensVersion
|
|
1781
|
+
if (data.BaseLensVersion != null) {
|
|
2281
1782
|
contents.BaseLensVersion = (0, smithy_client_1.expectString)(data.BaseLensVersion);
|
|
2282
1783
|
}
|
|
2283
|
-
if (data.LatestLensVersion
|
|
1784
|
+
if (data.LatestLensVersion != null) {
|
|
2284
1785
|
contents.LatestLensVersion = (0, smithy_client_1.expectString)(data.LatestLensVersion);
|
|
2285
1786
|
}
|
|
2286
|
-
if (data.LensAlias
|
|
1787
|
+
if (data.LensAlias != null) {
|
|
2287
1788
|
contents.LensAlias = (0, smithy_client_1.expectString)(data.LensAlias);
|
|
2288
1789
|
}
|
|
2289
|
-
if (data.LensArn
|
|
1790
|
+
if (data.LensArn != null) {
|
|
2290
1791
|
contents.LensArn = (0, smithy_client_1.expectString)(data.LensArn);
|
|
2291
1792
|
}
|
|
2292
|
-
if (data.TargetLensVersion
|
|
1793
|
+
if (data.TargetLensVersion != null) {
|
|
2293
1794
|
contents.TargetLensVersion = (0, smithy_client_1.expectString)(data.TargetLensVersion);
|
|
2294
1795
|
}
|
|
2295
|
-
if (data.VersionDifferences
|
|
1796
|
+
if (data.VersionDifferences != null) {
|
|
2296
1797
|
contents.VersionDifferences = deserializeAws_restJson1VersionDifferences(data.VersionDifferences, context);
|
|
2297
1798
|
}
|
|
2298
|
-
return
|
|
1799
|
+
return contents;
|
|
2299
1800
|
};
|
|
2300
1801
|
exports.deserializeAws_restJson1GetLensVersionDifferenceCommand = deserializeAws_restJson1GetLensVersionDifferenceCommand;
|
|
2301
1802
|
const deserializeAws_restJson1GetLensVersionDifferenceCommandError = async (output, context) => {
|
|
@@ -2303,7 +1804,6 @@ const deserializeAws_restJson1GetLensVersionDifferenceCommandError = async (outp
|
|
|
2303
1804
|
...output,
|
|
2304
1805
|
body: await parseBody(output.body, context),
|
|
2305
1806
|
};
|
|
2306
|
-
let response;
|
|
2307
1807
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2308
1808
|
switch (errorCode) {
|
|
2309
1809
|
case "AccessDeniedException":
|
|
@@ -2323,33 +1823,29 @@ const deserializeAws_restJson1GetLensVersionDifferenceCommandError = async (outp
|
|
|
2323
1823
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2324
1824
|
default:
|
|
2325
1825
|
const parsedBody = parsedOutput.body;
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
$metadata,
|
|
1826
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1827
|
+
output,
|
|
1828
|
+
parsedBody,
|
|
1829
|
+
exceptionCtor: WellArchitectedServiceException_1.WellArchitectedServiceException,
|
|
1830
|
+
errorCode,
|
|
2332
1831
|
});
|
|
2333
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2334
1832
|
}
|
|
2335
1833
|
};
|
|
2336
1834
|
const deserializeAws_restJson1GetMilestoneCommand = async (output, context) => {
|
|
2337
1835
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2338
1836
|
return deserializeAws_restJson1GetMilestoneCommandError(output, context);
|
|
2339
1837
|
}
|
|
2340
|
-
const contents = {
|
|
1838
|
+
const contents = map({
|
|
2341
1839
|
$metadata: deserializeMetadata(output),
|
|
2342
|
-
|
|
2343
|
-
WorkloadId: undefined,
|
|
2344
|
-
};
|
|
1840
|
+
});
|
|
2345
1841
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2346
|
-
if (data.Milestone
|
|
1842
|
+
if (data.Milestone != null) {
|
|
2347
1843
|
contents.Milestone = deserializeAws_restJson1Milestone(data.Milestone, context);
|
|
2348
1844
|
}
|
|
2349
|
-
if (data.WorkloadId
|
|
1845
|
+
if (data.WorkloadId != null) {
|
|
2350
1846
|
contents.WorkloadId = (0, smithy_client_1.expectString)(data.WorkloadId);
|
|
2351
1847
|
}
|
|
2352
|
-
return
|
|
1848
|
+
return contents;
|
|
2353
1849
|
};
|
|
2354
1850
|
exports.deserializeAws_restJson1GetMilestoneCommand = deserializeAws_restJson1GetMilestoneCommand;
|
|
2355
1851
|
const deserializeAws_restJson1GetMilestoneCommandError = async (output, context) => {
|
|
@@ -2357,7 +1853,6 @@ const deserializeAws_restJson1GetMilestoneCommandError = async (output, context)
|
|
|
2357
1853
|
...output,
|
|
2358
1854
|
body: await parseBody(output.body, context),
|
|
2359
1855
|
};
|
|
2360
|
-
let response;
|
|
2361
1856
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2362
1857
|
switch (errorCode) {
|
|
2363
1858
|
case "AccessDeniedException":
|
|
@@ -2377,29 +1872,26 @@ const deserializeAws_restJson1GetMilestoneCommandError = async (output, context)
|
|
|
2377
1872
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2378
1873
|
default:
|
|
2379
1874
|
const parsedBody = parsedOutput.body;
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
$metadata,
|
|
1875
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1876
|
+
output,
|
|
1877
|
+
parsedBody,
|
|
1878
|
+
exceptionCtor: WellArchitectedServiceException_1.WellArchitectedServiceException,
|
|
1879
|
+
errorCode,
|
|
2386
1880
|
});
|
|
2387
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2388
1881
|
}
|
|
2389
1882
|
};
|
|
2390
1883
|
const deserializeAws_restJson1GetWorkloadCommand = async (output, context) => {
|
|
2391
1884
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2392
1885
|
return deserializeAws_restJson1GetWorkloadCommandError(output, context);
|
|
2393
1886
|
}
|
|
2394
|
-
const contents = {
|
|
1887
|
+
const contents = map({
|
|
2395
1888
|
$metadata: deserializeMetadata(output),
|
|
2396
|
-
|
|
2397
|
-
};
|
|
1889
|
+
});
|
|
2398
1890
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2399
|
-
if (data.Workload
|
|
1891
|
+
if (data.Workload != null) {
|
|
2400
1892
|
contents.Workload = deserializeAws_restJson1Workload(data.Workload, context);
|
|
2401
1893
|
}
|
|
2402
|
-
return
|
|
1894
|
+
return contents;
|
|
2403
1895
|
};
|
|
2404
1896
|
exports.deserializeAws_restJson1GetWorkloadCommand = deserializeAws_restJson1GetWorkloadCommand;
|
|
2405
1897
|
const deserializeAws_restJson1GetWorkloadCommandError = async (output, context) => {
|
|
@@ -2407,7 +1899,6 @@ const deserializeAws_restJson1GetWorkloadCommandError = async (output, context)
|
|
|
2407
1899
|
...output,
|
|
2408
1900
|
body: await parseBody(output.body, context),
|
|
2409
1901
|
};
|
|
2410
|
-
let response;
|
|
2411
1902
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2412
1903
|
switch (errorCode) {
|
|
2413
1904
|
case "AccessDeniedException":
|
|
@@ -2427,33 +1918,29 @@ const deserializeAws_restJson1GetWorkloadCommandError = async (output, context)
|
|
|
2427
1918
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2428
1919
|
default:
|
|
2429
1920
|
const parsedBody = parsedOutput.body;
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
$metadata,
|
|
1921
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1922
|
+
output,
|
|
1923
|
+
parsedBody,
|
|
1924
|
+
exceptionCtor: WellArchitectedServiceException_1.WellArchitectedServiceException,
|
|
1925
|
+
errorCode,
|
|
2436
1926
|
});
|
|
2437
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2438
1927
|
}
|
|
2439
1928
|
};
|
|
2440
1929
|
const deserializeAws_restJson1ImportLensCommand = async (output, context) => {
|
|
2441
1930
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2442
1931
|
return deserializeAws_restJson1ImportLensCommandError(output, context);
|
|
2443
1932
|
}
|
|
2444
|
-
const contents = {
|
|
1933
|
+
const contents = map({
|
|
2445
1934
|
$metadata: deserializeMetadata(output),
|
|
2446
|
-
|
|
2447
|
-
Status: undefined,
|
|
2448
|
-
};
|
|
1935
|
+
});
|
|
2449
1936
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2450
|
-
if (data.LensArn
|
|
1937
|
+
if (data.LensArn != null) {
|
|
2451
1938
|
contents.LensArn = (0, smithy_client_1.expectString)(data.LensArn);
|
|
2452
1939
|
}
|
|
2453
|
-
if (data.Status
|
|
1940
|
+
if (data.Status != null) {
|
|
2454
1941
|
contents.Status = (0, smithy_client_1.expectString)(data.Status);
|
|
2455
1942
|
}
|
|
2456
|
-
return
|
|
1943
|
+
return contents;
|
|
2457
1944
|
};
|
|
2458
1945
|
exports.deserializeAws_restJson1ImportLensCommand = deserializeAws_restJson1ImportLensCommand;
|
|
2459
1946
|
const deserializeAws_restJson1ImportLensCommandError = async (output, context) => {
|
|
@@ -2461,7 +1948,6 @@ const deserializeAws_restJson1ImportLensCommandError = async (output, context) =
|
|
|
2461
1948
|
...output,
|
|
2462
1949
|
body: await parseBody(output.body, context),
|
|
2463
1950
|
};
|
|
2464
|
-
let response;
|
|
2465
1951
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2466
1952
|
switch (errorCode) {
|
|
2467
1953
|
case "AccessDeniedException":
|
|
@@ -2487,49 +1973,41 @@ const deserializeAws_restJson1ImportLensCommandError = async (output, context) =
|
|
|
2487
1973
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2488
1974
|
default:
|
|
2489
1975
|
const parsedBody = parsedOutput.body;
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
$metadata,
|
|
1976
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1977
|
+
output,
|
|
1978
|
+
parsedBody,
|
|
1979
|
+
exceptionCtor: WellArchitectedServiceException_1.WellArchitectedServiceException,
|
|
1980
|
+
errorCode,
|
|
2496
1981
|
});
|
|
2497
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2498
1982
|
}
|
|
2499
1983
|
};
|
|
2500
1984
|
const deserializeAws_restJson1ListAnswersCommand = async (output, context) => {
|
|
2501
1985
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2502
1986
|
return deserializeAws_restJson1ListAnswersCommandError(output, context);
|
|
2503
1987
|
}
|
|
2504
|
-
const contents = {
|
|
1988
|
+
const contents = map({
|
|
2505
1989
|
$metadata: deserializeMetadata(output),
|
|
2506
|
-
|
|
2507
|
-
LensAlias: undefined,
|
|
2508
|
-
LensArn: undefined,
|
|
2509
|
-
MilestoneNumber: undefined,
|
|
2510
|
-
NextToken: undefined,
|
|
2511
|
-
WorkloadId: undefined,
|
|
2512
|
-
};
|
|
1990
|
+
});
|
|
2513
1991
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2514
|
-
if (data.AnswerSummaries
|
|
1992
|
+
if (data.AnswerSummaries != null) {
|
|
2515
1993
|
contents.AnswerSummaries = deserializeAws_restJson1AnswerSummaries(data.AnswerSummaries, context);
|
|
2516
1994
|
}
|
|
2517
|
-
if (data.LensAlias
|
|
1995
|
+
if (data.LensAlias != null) {
|
|
2518
1996
|
contents.LensAlias = (0, smithy_client_1.expectString)(data.LensAlias);
|
|
2519
1997
|
}
|
|
2520
|
-
if (data.LensArn
|
|
1998
|
+
if (data.LensArn != null) {
|
|
2521
1999
|
contents.LensArn = (0, smithy_client_1.expectString)(data.LensArn);
|
|
2522
2000
|
}
|
|
2523
|
-
if (data.MilestoneNumber
|
|
2001
|
+
if (data.MilestoneNumber != null) {
|
|
2524
2002
|
contents.MilestoneNumber = (0, smithy_client_1.expectInt32)(data.MilestoneNumber);
|
|
2525
2003
|
}
|
|
2526
|
-
if (data.NextToken
|
|
2004
|
+
if (data.NextToken != null) {
|
|
2527
2005
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
2528
2006
|
}
|
|
2529
|
-
if (data.WorkloadId
|
|
2007
|
+
if (data.WorkloadId != null) {
|
|
2530
2008
|
contents.WorkloadId = (0, smithy_client_1.expectString)(data.WorkloadId);
|
|
2531
2009
|
}
|
|
2532
|
-
return
|
|
2010
|
+
return contents;
|
|
2533
2011
|
};
|
|
2534
2012
|
exports.deserializeAws_restJson1ListAnswersCommand = deserializeAws_restJson1ListAnswersCommand;
|
|
2535
2013
|
const deserializeAws_restJson1ListAnswersCommandError = async (output, context) => {
|
|
@@ -2537,7 +2015,6 @@ const deserializeAws_restJson1ListAnswersCommandError = async (output, context)
|
|
|
2537
2015
|
...output,
|
|
2538
2016
|
body: await parseBody(output.body, context),
|
|
2539
2017
|
};
|
|
2540
|
-
let response;
|
|
2541
2018
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2542
2019
|
switch (errorCode) {
|
|
2543
2020
|
case "AccessDeniedException":
|
|
@@ -2557,33 +2034,29 @@ const deserializeAws_restJson1ListAnswersCommandError = async (output, context)
|
|
|
2557
2034
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2558
2035
|
default:
|
|
2559
2036
|
const parsedBody = parsedOutput.body;
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
$metadata,
|
|
2037
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2038
|
+
output,
|
|
2039
|
+
parsedBody,
|
|
2040
|
+
exceptionCtor: WellArchitectedServiceException_1.WellArchitectedServiceException,
|
|
2041
|
+
errorCode,
|
|
2566
2042
|
});
|
|
2567
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2568
2043
|
}
|
|
2569
2044
|
};
|
|
2570
2045
|
const deserializeAws_restJson1ListLensesCommand = async (output, context) => {
|
|
2571
2046
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2572
2047
|
return deserializeAws_restJson1ListLensesCommandError(output, context);
|
|
2573
2048
|
}
|
|
2574
|
-
const contents = {
|
|
2049
|
+
const contents = map({
|
|
2575
2050
|
$metadata: deserializeMetadata(output),
|
|
2576
|
-
|
|
2577
|
-
NextToken: undefined,
|
|
2578
|
-
};
|
|
2051
|
+
});
|
|
2579
2052
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2580
|
-
if (data.LensSummaries
|
|
2053
|
+
if (data.LensSummaries != null) {
|
|
2581
2054
|
contents.LensSummaries = deserializeAws_restJson1LensSummaries(data.LensSummaries, context);
|
|
2582
2055
|
}
|
|
2583
|
-
if (data.NextToken
|
|
2056
|
+
if (data.NextToken != null) {
|
|
2584
2057
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
2585
2058
|
}
|
|
2586
|
-
return
|
|
2059
|
+
return contents;
|
|
2587
2060
|
};
|
|
2588
2061
|
exports.deserializeAws_restJson1ListLensesCommand = deserializeAws_restJson1ListLensesCommand;
|
|
2589
2062
|
const deserializeAws_restJson1ListLensesCommandError = async (output, context) => {
|
|
@@ -2591,7 +2064,6 @@ const deserializeAws_restJson1ListLensesCommandError = async (output, context) =
|
|
|
2591
2064
|
...output,
|
|
2592
2065
|
body: await parseBody(output.body, context),
|
|
2593
2066
|
};
|
|
2594
|
-
let response;
|
|
2595
2067
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2596
2068
|
switch (errorCode) {
|
|
2597
2069
|
case "AccessDeniedException":
|
|
@@ -2608,49 +2080,41 @@ const deserializeAws_restJson1ListLensesCommandError = async (output, context) =
|
|
|
2608
2080
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2609
2081
|
default:
|
|
2610
2082
|
const parsedBody = parsedOutput.body;
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
$metadata,
|
|
2083
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2084
|
+
output,
|
|
2085
|
+
parsedBody,
|
|
2086
|
+
exceptionCtor: WellArchitectedServiceException_1.WellArchitectedServiceException,
|
|
2087
|
+
errorCode,
|
|
2617
2088
|
});
|
|
2618
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2619
2089
|
}
|
|
2620
2090
|
};
|
|
2621
2091
|
const deserializeAws_restJson1ListLensReviewImprovementsCommand = async (output, context) => {
|
|
2622
2092
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2623
2093
|
return deserializeAws_restJson1ListLensReviewImprovementsCommandError(output, context);
|
|
2624
2094
|
}
|
|
2625
|
-
const contents = {
|
|
2095
|
+
const contents = map({
|
|
2626
2096
|
$metadata: deserializeMetadata(output),
|
|
2627
|
-
|
|
2628
|
-
LensAlias: undefined,
|
|
2629
|
-
LensArn: undefined,
|
|
2630
|
-
MilestoneNumber: undefined,
|
|
2631
|
-
NextToken: undefined,
|
|
2632
|
-
WorkloadId: undefined,
|
|
2633
|
-
};
|
|
2097
|
+
});
|
|
2634
2098
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2635
|
-
if (data.ImprovementSummaries
|
|
2099
|
+
if (data.ImprovementSummaries != null) {
|
|
2636
2100
|
contents.ImprovementSummaries = deserializeAws_restJson1ImprovementSummaries(data.ImprovementSummaries, context);
|
|
2637
2101
|
}
|
|
2638
|
-
if (data.LensAlias
|
|
2102
|
+
if (data.LensAlias != null) {
|
|
2639
2103
|
contents.LensAlias = (0, smithy_client_1.expectString)(data.LensAlias);
|
|
2640
2104
|
}
|
|
2641
|
-
if (data.LensArn
|
|
2105
|
+
if (data.LensArn != null) {
|
|
2642
2106
|
contents.LensArn = (0, smithy_client_1.expectString)(data.LensArn);
|
|
2643
2107
|
}
|
|
2644
|
-
if (data.MilestoneNumber
|
|
2108
|
+
if (data.MilestoneNumber != null) {
|
|
2645
2109
|
contents.MilestoneNumber = (0, smithy_client_1.expectInt32)(data.MilestoneNumber);
|
|
2646
2110
|
}
|
|
2647
|
-
if (data.NextToken
|
|
2111
|
+
if (data.NextToken != null) {
|
|
2648
2112
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
2649
2113
|
}
|
|
2650
|
-
if (data.WorkloadId
|
|
2114
|
+
if (data.WorkloadId != null) {
|
|
2651
2115
|
contents.WorkloadId = (0, smithy_client_1.expectString)(data.WorkloadId);
|
|
2652
2116
|
}
|
|
2653
|
-
return
|
|
2117
|
+
return contents;
|
|
2654
2118
|
};
|
|
2655
2119
|
exports.deserializeAws_restJson1ListLensReviewImprovementsCommand = deserializeAws_restJson1ListLensReviewImprovementsCommand;
|
|
2656
2120
|
const deserializeAws_restJson1ListLensReviewImprovementsCommandError = async (output, context) => {
|
|
@@ -2658,7 +2122,6 @@ const deserializeAws_restJson1ListLensReviewImprovementsCommandError = async (ou
|
|
|
2658
2122
|
...output,
|
|
2659
2123
|
body: await parseBody(output.body, context),
|
|
2660
2124
|
};
|
|
2661
|
-
let response;
|
|
2662
2125
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2663
2126
|
switch (errorCode) {
|
|
2664
2127
|
case "AccessDeniedException":
|
|
@@ -2678,41 +2141,35 @@ const deserializeAws_restJson1ListLensReviewImprovementsCommandError = async (ou
|
|
|
2678
2141
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2679
2142
|
default:
|
|
2680
2143
|
const parsedBody = parsedOutput.body;
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
$metadata,
|
|
2144
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2145
|
+
output,
|
|
2146
|
+
parsedBody,
|
|
2147
|
+
exceptionCtor: WellArchitectedServiceException_1.WellArchitectedServiceException,
|
|
2148
|
+
errorCode,
|
|
2687
2149
|
});
|
|
2688
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2689
2150
|
}
|
|
2690
2151
|
};
|
|
2691
2152
|
const deserializeAws_restJson1ListLensReviewsCommand = async (output, context) => {
|
|
2692
2153
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2693
2154
|
return deserializeAws_restJson1ListLensReviewsCommandError(output, context);
|
|
2694
2155
|
}
|
|
2695
|
-
const contents = {
|
|
2156
|
+
const contents = map({
|
|
2696
2157
|
$metadata: deserializeMetadata(output),
|
|
2697
|
-
|
|
2698
|
-
MilestoneNumber: undefined,
|
|
2699
|
-
NextToken: undefined,
|
|
2700
|
-
WorkloadId: undefined,
|
|
2701
|
-
};
|
|
2158
|
+
});
|
|
2702
2159
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2703
|
-
if (data.LensReviewSummaries
|
|
2160
|
+
if (data.LensReviewSummaries != null) {
|
|
2704
2161
|
contents.LensReviewSummaries = deserializeAws_restJson1LensReviewSummaries(data.LensReviewSummaries, context);
|
|
2705
2162
|
}
|
|
2706
|
-
if (data.MilestoneNumber
|
|
2163
|
+
if (data.MilestoneNumber != null) {
|
|
2707
2164
|
contents.MilestoneNumber = (0, smithy_client_1.expectInt32)(data.MilestoneNumber);
|
|
2708
2165
|
}
|
|
2709
|
-
if (data.NextToken
|
|
2166
|
+
if (data.NextToken != null) {
|
|
2710
2167
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
2711
2168
|
}
|
|
2712
|
-
if (data.WorkloadId
|
|
2169
|
+
if (data.WorkloadId != null) {
|
|
2713
2170
|
contents.WorkloadId = (0, smithy_client_1.expectString)(data.WorkloadId);
|
|
2714
2171
|
}
|
|
2715
|
-
return
|
|
2172
|
+
return contents;
|
|
2716
2173
|
};
|
|
2717
2174
|
exports.deserializeAws_restJson1ListLensReviewsCommand = deserializeAws_restJson1ListLensReviewsCommand;
|
|
2718
2175
|
const deserializeAws_restJson1ListLensReviewsCommandError = async (output, context) => {
|
|
@@ -2720,7 +2177,6 @@ const deserializeAws_restJson1ListLensReviewsCommandError = async (output, conte
|
|
|
2720
2177
|
...output,
|
|
2721
2178
|
body: await parseBody(output.body, context),
|
|
2722
2179
|
};
|
|
2723
|
-
let response;
|
|
2724
2180
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2725
2181
|
switch (errorCode) {
|
|
2726
2182
|
case "AccessDeniedException":
|
|
@@ -2740,33 +2196,29 @@ const deserializeAws_restJson1ListLensReviewsCommandError = async (output, conte
|
|
|
2740
2196
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2741
2197
|
default:
|
|
2742
2198
|
const parsedBody = parsedOutput.body;
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
$metadata,
|
|
2199
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2200
|
+
output,
|
|
2201
|
+
parsedBody,
|
|
2202
|
+
exceptionCtor: WellArchitectedServiceException_1.WellArchitectedServiceException,
|
|
2203
|
+
errorCode,
|
|
2749
2204
|
});
|
|
2750
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2751
2205
|
}
|
|
2752
2206
|
};
|
|
2753
2207
|
const deserializeAws_restJson1ListLensSharesCommand = async (output, context) => {
|
|
2754
2208
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2755
2209
|
return deserializeAws_restJson1ListLensSharesCommandError(output, context);
|
|
2756
2210
|
}
|
|
2757
|
-
const contents = {
|
|
2211
|
+
const contents = map({
|
|
2758
2212
|
$metadata: deserializeMetadata(output),
|
|
2759
|
-
|
|
2760
|
-
NextToken: undefined,
|
|
2761
|
-
};
|
|
2213
|
+
});
|
|
2762
2214
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2763
|
-
if (data.LensShareSummaries
|
|
2215
|
+
if (data.LensShareSummaries != null) {
|
|
2764
2216
|
contents.LensShareSummaries = deserializeAws_restJson1LensShareSummaries(data.LensShareSummaries, context);
|
|
2765
2217
|
}
|
|
2766
|
-
if (data.NextToken
|
|
2218
|
+
if (data.NextToken != null) {
|
|
2767
2219
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
2768
2220
|
}
|
|
2769
|
-
return
|
|
2221
|
+
return contents;
|
|
2770
2222
|
};
|
|
2771
2223
|
exports.deserializeAws_restJson1ListLensSharesCommand = deserializeAws_restJson1ListLensSharesCommand;
|
|
2772
2224
|
const deserializeAws_restJson1ListLensSharesCommandError = async (output, context) => {
|
|
@@ -2774,7 +2226,6 @@ const deserializeAws_restJson1ListLensSharesCommandError = async (output, contex
|
|
|
2774
2226
|
...output,
|
|
2775
2227
|
body: await parseBody(output.body, context),
|
|
2776
2228
|
};
|
|
2777
|
-
let response;
|
|
2778
2229
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2779
2230
|
switch (errorCode) {
|
|
2780
2231
|
case "AccessDeniedException":
|
|
@@ -2794,37 +2245,32 @@ const deserializeAws_restJson1ListLensSharesCommandError = async (output, contex
|
|
|
2794
2245
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2795
2246
|
default:
|
|
2796
2247
|
const parsedBody = parsedOutput.body;
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
$metadata,
|
|
2248
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2249
|
+
output,
|
|
2250
|
+
parsedBody,
|
|
2251
|
+
exceptionCtor: WellArchitectedServiceException_1.WellArchitectedServiceException,
|
|
2252
|
+
errorCode,
|
|
2803
2253
|
});
|
|
2804
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2805
2254
|
}
|
|
2806
2255
|
};
|
|
2807
2256
|
const deserializeAws_restJson1ListMilestonesCommand = async (output, context) => {
|
|
2808
2257
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2809
2258
|
return deserializeAws_restJson1ListMilestonesCommandError(output, context);
|
|
2810
2259
|
}
|
|
2811
|
-
const contents = {
|
|
2260
|
+
const contents = map({
|
|
2812
2261
|
$metadata: deserializeMetadata(output),
|
|
2813
|
-
|
|
2814
|
-
NextToken: undefined,
|
|
2815
|
-
WorkloadId: undefined,
|
|
2816
|
-
};
|
|
2262
|
+
});
|
|
2817
2263
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2818
|
-
if (data.MilestoneSummaries
|
|
2264
|
+
if (data.MilestoneSummaries != null) {
|
|
2819
2265
|
contents.MilestoneSummaries = deserializeAws_restJson1MilestoneSummaries(data.MilestoneSummaries, context);
|
|
2820
2266
|
}
|
|
2821
|
-
if (data.NextToken
|
|
2267
|
+
if (data.NextToken != null) {
|
|
2822
2268
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
2823
2269
|
}
|
|
2824
|
-
if (data.WorkloadId
|
|
2270
|
+
if (data.WorkloadId != null) {
|
|
2825
2271
|
contents.WorkloadId = (0, smithy_client_1.expectString)(data.WorkloadId);
|
|
2826
2272
|
}
|
|
2827
|
-
return
|
|
2273
|
+
return contents;
|
|
2828
2274
|
};
|
|
2829
2275
|
exports.deserializeAws_restJson1ListMilestonesCommand = deserializeAws_restJson1ListMilestonesCommand;
|
|
2830
2276
|
const deserializeAws_restJson1ListMilestonesCommandError = async (output, context) => {
|
|
@@ -2832,7 +2278,6 @@ const deserializeAws_restJson1ListMilestonesCommandError = async (output, contex
|
|
|
2832
2278
|
...output,
|
|
2833
2279
|
body: await parseBody(output.body, context),
|
|
2834
2280
|
};
|
|
2835
|
-
let response;
|
|
2836
2281
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2837
2282
|
switch (errorCode) {
|
|
2838
2283
|
case "AccessDeniedException":
|
|
@@ -2852,33 +2297,29 @@ const deserializeAws_restJson1ListMilestonesCommandError = async (output, contex
|
|
|
2852
2297
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2853
2298
|
default:
|
|
2854
2299
|
const parsedBody = parsedOutput.body;
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
$metadata,
|
|
2300
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2301
|
+
output,
|
|
2302
|
+
parsedBody,
|
|
2303
|
+
exceptionCtor: WellArchitectedServiceException_1.WellArchitectedServiceException,
|
|
2304
|
+
errorCode,
|
|
2861
2305
|
});
|
|
2862
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2863
2306
|
}
|
|
2864
2307
|
};
|
|
2865
2308
|
const deserializeAws_restJson1ListNotificationsCommand = async (output, context) => {
|
|
2866
2309
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2867
2310
|
return deserializeAws_restJson1ListNotificationsCommandError(output, context);
|
|
2868
2311
|
}
|
|
2869
|
-
const contents = {
|
|
2312
|
+
const contents = map({
|
|
2870
2313
|
$metadata: deserializeMetadata(output),
|
|
2871
|
-
|
|
2872
|
-
NotificationSummaries: undefined,
|
|
2873
|
-
};
|
|
2314
|
+
});
|
|
2874
2315
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2875
|
-
if (data.NextToken
|
|
2316
|
+
if (data.NextToken != null) {
|
|
2876
2317
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
2877
2318
|
}
|
|
2878
|
-
if (data.NotificationSummaries
|
|
2319
|
+
if (data.NotificationSummaries != null) {
|
|
2879
2320
|
contents.NotificationSummaries = deserializeAws_restJson1NotificationSummaries(data.NotificationSummaries, context);
|
|
2880
2321
|
}
|
|
2881
|
-
return
|
|
2322
|
+
return contents;
|
|
2882
2323
|
};
|
|
2883
2324
|
exports.deserializeAws_restJson1ListNotificationsCommand = deserializeAws_restJson1ListNotificationsCommand;
|
|
2884
2325
|
const deserializeAws_restJson1ListNotificationsCommandError = async (output, context) => {
|
|
@@ -2886,7 +2327,6 @@ const deserializeAws_restJson1ListNotificationsCommandError = async (output, con
|
|
|
2886
2327
|
...output,
|
|
2887
2328
|
body: await parseBody(output.body, context),
|
|
2888
2329
|
};
|
|
2889
|
-
let response;
|
|
2890
2330
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2891
2331
|
switch (errorCode) {
|
|
2892
2332
|
case "AccessDeniedException":
|
|
@@ -2903,33 +2343,29 @@ const deserializeAws_restJson1ListNotificationsCommandError = async (output, con
|
|
|
2903
2343
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2904
2344
|
default:
|
|
2905
2345
|
const parsedBody = parsedOutput.body;
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
$metadata,
|
|
2346
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2347
|
+
output,
|
|
2348
|
+
parsedBody,
|
|
2349
|
+
exceptionCtor: WellArchitectedServiceException_1.WellArchitectedServiceException,
|
|
2350
|
+
errorCode,
|
|
2912
2351
|
});
|
|
2913
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2914
2352
|
}
|
|
2915
2353
|
};
|
|
2916
2354
|
const deserializeAws_restJson1ListShareInvitationsCommand = async (output, context) => {
|
|
2917
2355
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2918
2356
|
return deserializeAws_restJson1ListShareInvitationsCommandError(output, context);
|
|
2919
2357
|
}
|
|
2920
|
-
const contents = {
|
|
2358
|
+
const contents = map({
|
|
2921
2359
|
$metadata: deserializeMetadata(output),
|
|
2922
|
-
|
|
2923
|
-
ShareInvitationSummaries: undefined,
|
|
2924
|
-
};
|
|
2360
|
+
});
|
|
2925
2361
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2926
|
-
if (data.NextToken
|
|
2362
|
+
if (data.NextToken != null) {
|
|
2927
2363
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
2928
2364
|
}
|
|
2929
|
-
if (data.ShareInvitationSummaries
|
|
2365
|
+
if (data.ShareInvitationSummaries != null) {
|
|
2930
2366
|
contents.ShareInvitationSummaries = deserializeAws_restJson1ShareInvitationSummaries(data.ShareInvitationSummaries, context);
|
|
2931
2367
|
}
|
|
2932
|
-
return
|
|
2368
|
+
return contents;
|
|
2933
2369
|
};
|
|
2934
2370
|
exports.deserializeAws_restJson1ListShareInvitationsCommand = deserializeAws_restJson1ListShareInvitationsCommand;
|
|
2935
2371
|
const deserializeAws_restJson1ListShareInvitationsCommandError = async (output, context) => {
|
|
@@ -2937,7 +2373,6 @@ const deserializeAws_restJson1ListShareInvitationsCommandError = async (output,
|
|
|
2937
2373
|
...output,
|
|
2938
2374
|
body: await parseBody(output.body, context),
|
|
2939
2375
|
};
|
|
2940
|
-
let response;
|
|
2941
2376
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2942
2377
|
switch (errorCode) {
|
|
2943
2378
|
case "AccessDeniedException":
|
|
@@ -2954,29 +2389,26 @@ const deserializeAws_restJson1ListShareInvitationsCommandError = async (output,
|
|
|
2954
2389
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2955
2390
|
default:
|
|
2956
2391
|
const parsedBody = parsedOutput.body;
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
$metadata,
|
|
2392
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2393
|
+
output,
|
|
2394
|
+
parsedBody,
|
|
2395
|
+
exceptionCtor: WellArchitectedServiceException_1.WellArchitectedServiceException,
|
|
2396
|
+
errorCode,
|
|
2963
2397
|
});
|
|
2964
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2965
2398
|
}
|
|
2966
2399
|
};
|
|
2967
2400
|
const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
|
|
2968
2401
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2969
2402
|
return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
|
|
2970
2403
|
}
|
|
2971
|
-
const contents = {
|
|
2404
|
+
const contents = map({
|
|
2972
2405
|
$metadata: deserializeMetadata(output),
|
|
2973
|
-
|
|
2974
|
-
};
|
|
2406
|
+
});
|
|
2975
2407
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2976
|
-
if (data.Tags
|
|
2408
|
+
if (data.Tags != null) {
|
|
2977
2409
|
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
2978
2410
|
}
|
|
2979
|
-
return
|
|
2411
|
+
return contents;
|
|
2980
2412
|
};
|
|
2981
2413
|
exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_restJson1ListTagsForResourceCommand;
|
|
2982
2414
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -2984,7 +2416,6 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2984
2416
|
...output,
|
|
2985
2417
|
body: await parseBody(output.body, context),
|
|
2986
2418
|
};
|
|
2987
|
-
let response;
|
|
2988
2419
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2989
2420
|
switch (errorCode) {
|
|
2990
2421
|
case "InternalServerException":
|
|
@@ -2995,33 +2426,29 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2995
2426
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2996
2427
|
default:
|
|
2997
2428
|
const parsedBody = parsedOutput.body;
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
$metadata,
|
|
2429
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2430
|
+
output,
|
|
2431
|
+
parsedBody,
|
|
2432
|
+
exceptionCtor: WellArchitectedServiceException_1.WellArchitectedServiceException,
|
|
2433
|
+
errorCode,
|
|
3004
2434
|
});
|
|
3005
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3006
2435
|
}
|
|
3007
2436
|
};
|
|
3008
2437
|
const deserializeAws_restJson1ListWorkloadsCommand = async (output, context) => {
|
|
3009
2438
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3010
2439
|
return deserializeAws_restJson1ListWorkloadsCommandError(output, context);
|
|
3011
2440
|
}
|
|
3012
|
-
const contents = {
|
|
2441
|
+
const contents = map({
|
|
3013
2442
|
$metadata: deserializeMetadata(output),
|
|
3014
|
-
|
|
3015
|
-
WorkloadSummaries: undefined,
|
|
3016
|
-
};
|
|
2443
|
+
});
|
|
3017
2444
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3018
|
-
if (data.NextToken
|
|
2445
|
+
if (data.NextToken != null) {
|
|
3019
2446
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
3020
2447
|
}
|
|
3021
|
-
if (data.WorkloadSummaries
|
|
2448
|
+
if (data.WorkloadSummaries != null) {
|
|
3022
2449
|
contents.WorkloadSummaries = deserializeAws_restJson1WorkloadSummaries(data.WorkloadSummaries, context);
|
|
3023
2450
|
}
|
|
3024
|
-
return
|
|
2451
|
+
return contents;
|
|
3025
2452
|
};
|
|
3026
2453
|
exports.deserializeAws_restJson1ListWorkloadsCommand = deserializeAws_restJson1ListWorkloadsCommand;
|
|
3027
2454
|
const deserializeAws_restJson1ListWorkloadsCommandError = async (output, context) => {
|
|
@@ -3029,7 +2456,6 @@ const deserializeAws_restJson1ListWorkloadsCommandError = async (output, context
|
|
|
3029
2456
|
...output,
|
|
3030
2457
|
body: await parseBody(output.body, context),
|
|
3031
2458
|
};
|
|
3032
|
-
let response;
|
|
3033
2459
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3034
2460
|
switch (errorCode) {
|
|
3035
2461
|
case "AccessDeniedException":
|
|
@@ -3046,37 +2472,32 @@ const deserializeAws_restJson1ListWorkloadsCommandError = async (output, context
|
|
|
3046
2472
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3047
2473
|
default:
|
|
3048
2474
|
const parsedBody = parsedOutput.body;
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
$metadata,
|
|
2475
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2476
|
+
output,
|
|
2477
|
+
parsedBody,
|
|
2478
|
+
exceptionCtor: WellArchitectedServiceException_1.WellArchitectedServiceException,
|
|
2479
|
+
errorCode,
|
|
3055
2480
|
});
|
|
3056
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3057
2481
|
}
|
|
3058
2482
|
};
|
|
3059
2483
|
const deserializeAws_restJson1ListWorkloadSharesCommand = async (output, context) => {
|
|
3060
2484
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3061
2485
|
return deserializeAws_restJson1ListWorkloadSharesCommandError(output, context);
|
|
3062
2486
|
}
|
|
3063
|
-
const contents = {
|
|
2487
|
+
const contents = map({
|
|
3064
2488
|
$metadata: deserializeMetadata(output),
|
|
3065
|
-
|
|
3066
|
-
WorkloadId: undefined,
|
|
3067
|
-
WorkloadShareSummaries: undefined,
|
|
3068
|
-
};
|
|
2489
|
+
});
|
|
3069
2490
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3070
|
-
if (data.NextToken
|
|
2491
|
+
if (data.NextToken != null) {
|
|
3071
2492
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
3072
2493
|
}
|
|
3073
|
-
if (data.WorkloadId
|
|
2494
|
+
if (data.WorkloadId != null) {
|
|
3074
2495
|
contents.WorkloadId = (0, smithy_client_1.expectString)(data.WorkloadId);
|
|
3075
2496
|
}
|
|
3076
|
-
if (data.WorkloadShareSummaries
|
|
2497
|
+
if (data.WorkloadShareSummaries != null) {
|
|
3077
2498
|
contents.WorkloadShareSummaries = deserializeAws_restJson1WorkloadShareSummaries(data.WorkloadShareSummaries, context);
|
|
3078
2499
|
}
|
|
3079
|
-
return
|
|
2500
|
+
return contents;
|
|
3080
2501
|
};
|
|
3081
2502
|
exports.deserializeAws_restJson1ListWorkloadSharesCommand = deserializeAws_restJson1ListWorkloadSharesCommand;
|
|
3082
2503
|
const deserializeAws_restJson1ListWorkloadSharesCommandError = async (output, context) => {
|
|
@@ -3084,7 +2505,6 @@ const deserializeAws_restJson1ListWorkloadSharesCommandError = async (output, co
|
|
|
3084
2505
|
...output,
|
|
3085
2506
|
body: await parseBody(output.body, context),
|
|
3086
2507
|
};
|
|
3087
|
-
let response;
|
|
3088
2508
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3089
2509
|
switch (errorCode) {
|
|
3090
2510
|
case "AccessDeniedException":
|
|
@@ -3104,25 +2524,23 @@ const deserializeAws_restJson1ListWorkloadSharesCommandError = async (output, co
|
|
|
3104
2524
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3105
2525
|
default:
|
|
3106
2526
|
const parsedBody = parsedOutput.body;
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
$metadata,
|
|
2527
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2528
|
+
output,
|
|
2529
|
+
parsedBody,
|
|
2530
|
+
exceptionCtor: WellArchitectedServiceException_1.WellArchitectedServiceException,
|
|
2531
|
+
errorCode,
|
|
3113
2532
|
});
|
|
3114
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3115
2533
|
}
|
|
3116
2534
|
};
|
|
3117
2535
|
const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
3118
2536
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3119
2537
|
return deserializeAws_restJson1TagResourceCommandError(output, context);
|
|
3120
2538
|
}
|
|
3121
|
-
const contents = {
|
|
2539
|
+
const contents = map({
|
|
3122
2540
|
$metadata: deserializeMetadata(output),
|
|
3123
|
-
};
|
|
2541
|
+
});
|
|
3124
2542
|
await collectBody(output.body, context);
|
|
3125
|
-
return
|
|
2543
|
+
return contents;
|
|
3126
2544
|
};
|
|
3127
2545
|
exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1TagResourceCommand;
|
|
3128
2546
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
@@ -3130,7 +2548,6 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
3130
2548
|
...output,
|
|
3131
2549
|
body: await parseBody(output.body, context),
|
|
3132
2550
|
};
|
|
3133
|
-
let response;
|
|
3134
2551
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3135
2552
|
switch (errorCode) {
|
|
3136
2553
|
case "InternalServerException":
|
|
@@ -3141,25 +2558,23 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
3141
2558
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3142
2559
|
default:
|
|
3143
2560
|
const parsedBody = parsedOutput.body;
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
$metadata,
|
|
2561
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2562
|
+
output,
|
|
2563
|
+
parsedBody,
|
|
2564
|
+
exceptionCtor: WellArchitectedServiceException_1.WellArchitectedServiceException,
|
|
2565
|
+
errorCode,
|
|
3150
2566
|
});
|
|
3151
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3152
2567
|
}
|
|
3153
2568
|
};
|
|
3154
2569
|
const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
3155
2570
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3156
2571
|
return deserializeAws_restJson1UntagResourceCommandError(output, context);
|
|
3157
2572
|
}
|
|
3158
|
-
const contents = {
|
|
2573
|
+
const contents = map({
|
|
3159
2574
|
$metadata: deserializeMetadata(output),
|
|
3160
|
-
};
|
|
2575
|
+
});
|
|
3161
2576
|
await collectBody(output.body, context);
|
|
3162
|
-
return
|
|
2577
|
+
return contents;
|
|
3163
2578
|
};
|
|
3164
2579
|
exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1UntagResourceCommand;
|
|
3165
2580
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
@@ -3167,7 +2582,6 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
3167
2582
|
...output,
|
|
3168
2583
|
body: await parseBody(output.body, context),
|
|
3169
2584
|
};
|
|
3170
|
-
let response;
|
|
3171
2585
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3172
2586
|
switch (errorCode) {
|
|
3173
2587
|
case "InternalServerException":
|
|
@@ -3178,41 +2592,35 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
3178
2592
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3179
2593
|
default:
|
|
3180
2594
|
const parsedBody = parsedOutput.body;
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
$metadata,
|
|
2595
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2596
|
+
output,
|
|
2597
|
+
parsedBody,
|
|
2598
|
+
exceptionCtor: WellArchitectedServiceException_1.WellArchitectedServiceException,
|
|
2599
|
+
errorCode,
|
|
3187
2600
|
});
|
|
3188
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3189
2601
|
}
|
|
3190
2602
|
};
|
|
3191
2603
|
const deserializeAws_restJson1UpdateAnswerCommand = async (output, context) => {
|
|
3192
2604
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3193
2605
|
return deserializeAws_restJson1UpdateAnswerCommandError(output, context);
|
|
3194
2606
|
}
|
|
3195
|
-
const contents = {
|
|
2607
|
+
const contents = map({
|
|
3196
2608
|
$metadata: deserializeMetadata(output),
|
|
3197
|
-
|
|
3198
|
-
LensAlias: undefined,
|
|
3199
|
-
LensArn: undefined,
|
|
3200
|
-
WorkloadId: undefined,
|
|
3201
|
-
};
|
|
2609
|
+
});
|
|
3202
2610
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3203
|
-
if (data.Answer
|
|
2611
|
+
if (data.Answer != null) {
|
|
3204
2612
|
contents.Answer = deserializeAws_restJson1Answer(data.Answer, context);
|
|
3205
2613
|
}
|
|
3206
|
-
if (data.LensAlias
|
|
2614
|
+
if (data.LensAlias != null) {
|
|
3207
2615
|
contents.LensAlias = (0, smithy_client_1.expectString)(data.LensAlias);
|
|
3208
2616
|
}
|
|
3209
|
-
if (data.LensArn
|
|
2617
|
+
if (data.LensArn != null) {
|
|
3210
2618
|
contents.LensArn = (0, smithy_client_1.expectString)(data.LensArn);
|
|
3211
2619
|
}
|
|
3212
|
-
if (data.WorkloadId
|
|
2620
|
+
if (data.WorkloadId != null) {
|
|
3213
2621
|
contents.WorkloadId = (0, smithy_client_1.expectString)(data.WorkloadId);
|
|
3214
2622
|
}
|
|
3215
|
-
return
|
|
2623
|
+
return contents;
|
|
3216
2624
|
};
|
|
3217
2625
|
exports.deserializeAws_restJson1UpdateAnswerCommand = deserializeAws_restJson1UpdateAnswerCommand;
|
|
3218
2626
|
const deserializeAws_restJson1UpdateAnswerCommandError = async (output, context) => {
|
|
@@ -3220,7 +2628,6 @@ const deserializeAws_restJson1UpdateAnswerCommandError = async (output, context)
|
|
|
3220
2628
|
...output,
|
|
3221
2629
|
body: await parseBody(output.body, context),
|
|
3222
2630
|
};
|
|
3223
|
-
let response;
|
|
3224
2631
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3225
2632
|
switch (errorCode) {
|
|
3226
2633
|
case "AccessDeniedException":
|
|
@@ -3243,25 +2650,23 @@ const deserializeAws_restJson1UpdateAnswerCommandError = async (output, context)
|
|
|
3243
2650
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3244
2651
|
default:
|
|
3245
2652
|
const parsedBody = parsedOutput.body;
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
$metadata,
|
|
2653
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2654
|
+
output,
|
|
2655
|
+
parsedBody,
|
|
2656
|
+
exceptionCtor: WellArchitectedServiceException_1.WellArchitectedServiceException,
|
|
2657
|
+
errorCode,
|
|
3252
2658
|
});
|
|
3253
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3254
2659
|
}
|
|
3255
2660
|
};
|
|
3256
2661
|
const deserializeAws_restJson1UpdateGlobalSettingsCommand = async (output, context) => {
|
|
3257
2662
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3258
2663
|
return deserializeAws_restJson1UpdateGlobalSettingsCommandError(output, context);
|
|
3259
2664
|
}
|
|
3260
|
-
const contents = {
|
|
2665
|
+
const contents = map({
|
|
3261
2666
|
$metadata: deserializeMetadata(output),
|
|
3262
|
-
};
|
|
2667
|
+
});
|
|
3263
2668
|
await collectBody(output.body, context);
|
|
3264
|
-
return
|
|
2669
|
+
return contents;
|
|
3265
2670
|
};
|
|
3266
2671
|
exports.deserializeAws_restJson1UpdateGlobalSettingsCommand = deserializeAws_restJson1UpdateGlobalSettingsCommand;
|
|
3267
2672
|
const deserializeAws_restJson1UpdateGlobalSettingsCommandError = async (output, context) => {
|
|
@@ -3269,7 +2674,6 @@ const deserializeAws_restJson1UpdateGlobalSettingsCommandError = async (output,
|
|
|
3269
2674
|
...output,
|
|
3270
2675
|
body: await parseBody(output.body, context),
|
|
3271
2676
|
};
|
|
3272
|
-
let response;
|
|
3273
2677
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3274
2678
|
switch (errorCode) {
|
|
3275
2679
|
case "AccessDeniedException":
|
|
@@ -3289,33 +2693,29 @@ const deserializeAws_restJson1UpdateGlobalSettingsCommandError = async (output,
|
|
|
3289
2693
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3290
2694
|
default:
|
|
3291
2695
|
const parsedBody = parsedOutput.body;
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
$metadata,
|
|
2696
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2697
|
+
output,
|
|
2698
|
+
parsedBody,
|
|
2699
|
+
exceptionCtor: WellArchitectedServiceException_1.WellArchitectedServiceException,
|
|
2700
|
+
errorCode,
|
|
3298
2701
|
});
|
|
3299
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3300
2702
|
}
|
|
3301
2703
|
};
|
|
3302
2704
|
const deserializeAws_restJson1UpdateLensReviewCommand = async (output, context) => {
|
|
3303
2705
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3304
2706
|
return deserializeAws_restJson1UpdateLensReviewCommandError(output, context);
|
|
3305
2707
|
}
|
|
3306
|
-
const contents = {
|
|
2708
|
+
const contents = map({
|
|
3307
2709
|
$metadata: deserializeMetadata(output),
|
|
3308
|
-
|
|
3309
|
-
WorkloadId: undefined,
|
|
3310
|
-
};
|
|
2710
|
+
});
|
|
3311
2711
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3312
|
-
if (data.LensReview
|
|
2712
|
+
if (data.LensReview != null) {
|
|
3313
2713
|
contents.LensReview = deserializeAws_restJson1LensReview(data.LensReview, context);
|
|
3314
2714
|
}
|
|
3315
|
-
if (data.WorkloadId
|
|
2715
|
+
if (data.WorkloadId != null) {
|
|
3316
2716
|
contents.WorkloadId = (0, smithy_client_1.expectString)(data.WorkloadId);
|
|
3317
2717
|
}
|
|
3318
|
-
return
|
|
2718
|
+
return contents;
|
|
3319
2719
|
};
|
|
3320
2720
|
exports.deserializeAws_restJson1UpdateLensReviewCommand = deserializeAws_restJson1UpdateLensReviewCommand;
|
|
3321
2721
|
const deserializeAws_restJson1UpdateLensReviewCommandError = async (output, context) => {
|
|
@@ -3323,7 +2723,6 @@ const deserializeAws_restJson1UpdateLensReviewCommandError = async (output, cont
|
|
|
3323
2723
|
...output,
|
|
3324
2724
|
body: await parseBody(output.body, context),
|
|
3325
2725
|
};
|
|
3326
|
-
let response;
|
|
3327
2726
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3328
2727
|
switch (errorCode) {
|
|
3329
2728
|
case "AccessDeniedException":
|
|
@@ -3346,29 +2745,26 @@ const deserializeAws_restJson1UpdateLensReviewCommandError = async (output, cont
|
|
|
3346
2745
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3347
2746
|
default:
|
|
3348
2747
|
const parsedBody = parsedOutput.body;
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
$metadata,
|
|
2748
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2749
|
+
output,
|
|
2750
|
+
parsedBody,
|
|
2751
|
+
exceptionCtor: WellArchitectedServiceException_1.WellArchitectedServiceException,
|
|
2752
|
+
errorCode,
|
|
3355
2753
|
});
|
|
3356
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3357
2754
|
}
|
|
3358
2755
|
};
|
|
3359
2756
|
const deserializeAws_restJson1UpdateShareInvitationCommand = async (output, context) => {
|
|
3360
2757
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3361
2758
|
return deserializeAws_restJson1UpdateShareInvitationCommandError(output, context);
|
|
3362
2759
|
}
|
|
3363
|
-
const contents = {
|
|
2760
|
+
const contents = map({
|
|
3364
2761
|
$metadata: deserializeMetadata(output),
|
|
3365
|
-
|
|
3366
|
-
};
|
|
2762
|
+
});
|
|
3367
2763
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3368
|
-
if (data.ShareInvitation
|
|
2764
|
+
if (data.ShareInvitation != null) {
|
|
3369
2765
|
contents.ShareInvitation = deserializeAws_restJson1ShareInvitation(data.ShareInvitation, context);
|
|
3370
2766
|
}
|
|
3371
|
-
return
|
|
2767
|
+
return contents;
|
|
3372
2768
|
};
|
|
3373
2769
|
exports.deserializeAws_restJson1UpdateShareInvitationCommand = deserializeAws_restJson1UpdateShareInvitationCommand;
|
|
3374
2770
|
const deserializeAws_restJson1UpdateShareInvitationCommandError = async (output, context) => {
|
|
@@ -3376,7 +2772,6 @@ const deserializeAws_restJson1UpdateShareInvitationCommandError = async (output,
|
|
|
3376
2772
|
...output,
|
|
3377
2773
|
body: await parseBody(output.body, context),
|
|
3378
2774
|
};
|
|
3379
|
-
let response;
|
|
3380
2775
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3381
2776
|
switch (errorCode) {
|
|
3382
2777
|
case "AccessDeniedException":
|
|
@@ -3399,29 +2794,26 @@ const deserializeAws_restJson1UpdateShareInvitationCommandError = async (output,
|
|
|
3399
2794
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3400
2795
|
default:
|
|
3401
2796
|
const parsedBody = parsedOutput.body;
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
$metadata,
|
|
2797
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2798
|
+
output,
|
|
2799
|
+
parsedBody,
|
|
2800
|
+
exceptionCtor: WellArchitectedServiceException_1.WellArchitectedServiceException,
|
|
2801
|
+
errorCode,
|
|
3408
2802
|
});
|
|
3409
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3410
2803
|
}
|
|
3411
2804
|
};
|
|
3412
2805
|
const deserializeAws_restJson1UpdateWorkloadCommand = async (output, context) => {
|
|
3413
2806
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3414
2807
|
return deserializeAws_restJson1UpdateWorkloadCommandError(output, context);
|
|
3415
2808
|
}
|
|
3416
|
-
const contents = {
|
|
2809
|
+
const contents = map({
|
|
3417
2810
|
$metadata: deserializeMetadata(output),
|
|
3418
|
-
|
|
3419
|
-
};
|
|
2811
|
+
});
|
|
3420
2812
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3421
|
-
if (data.Workload
|
|
2813
|
+
if (data.Workload != null) {
|
|
3422
2814
|
contents.Workload = deserializeAws_restJson1Workload(data.Workload, context);
|
|
3423
2815
|
}
|
|
3424
|
-
return
|
|
2816
|
+
return contents;
|
|
3425
2817
|
};
|
|
3426
2818
|
exports.deserializeAws_restJson1UpdateWorkloadCommand = deserializeAws_restJson1UpdateWorkloadCommand;
|
|
3427
2819
|
const deserializeAws_restJson1UpdateWorkloadCommandError = async (output, context) => {
|
|
@@ -3429,7 +2821,6 @@ const deserializeAws_restJson1UpdateWorkloadCommandError = async (output, contex
|
|
|
3429
2821
|
...output,
|
|
3430
2822
|
body: await parseBody(output.body, context),
|
|
3431
2823
|
};
|
|
3432
|
-
let response;
|
|
3433
2824
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3434
2825
|
switch (errorCode) {
|
|
3435
2826
|
case "AccessDeniedException":
|
|
@@ -3452,33 +2843,29 @@ const deserializeAws_restJson1UpdateWorkloadCommandError = async (output, contex
|
|
|
3452
2843
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3453
2844
|
default:
|
|
3454
2845
|
const parsedBody = parsedOutput.body;
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
$metadata,
|
|
2846
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2847
|
+
output,
|
|
2848
|
+
parsedBody,
|
|
2849
|
+
exceptionCtor: WellArchitectedServiceException_1.WellArchitectedServiceException,
|
|
2850
|
+
errorCode,
|
|
3461
2851
|
});
|
|
3462
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3463
2852
|
}
|
|
3464
2853
|
};
|
|
3465
2854
|
const deserializeAws_restJson1UpdateWorkloadShareCommand = async (output, context) => {
|
|
3466
2855
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3467
2856
|
return deserializeAws_restJson1UpdateWorkloadShareCommandError(output, context);
|
|
3468
2857
|
}
|
|
3469
|
-
const contents = {
|
|
2858
|
+
const contents = map({
|
|
3470
2859
|
$metadata: deserializeMetadata(output),
|
|
3471
|
-
|
|
3472
|
-
WorkloadShare: undefined,
|
|
3473
|
-
};
|
|
2860
|
+
});
|
|
3474
2861
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3475
|
-
if (data.WorkloadId
|
|
2862
|
+
if (data.WorkloadId != null) {
|
|
3476
2863
|
contents.WorkloadId = (0, smithy_client_1.expectString)(data.WorkloadId);
|
|
3477
2864
|
}
|
|
3478
|
-
if (data.WorkloadShare
|
|
2865
|
+
if (data.WorkloadShare != null) {
|
|
3479
2866
|
contents.WorkloadShare = deserializeAws_restJson1WorkloadShare(data.WorkloadShare, context);
|
|
3480
2867
|
}
|
|
3481
|
-
return
|
|
2868
|
+
return contents;
|
|
3482
2869
|
};
|
|
3483
2870
|
exports.deserializeAws_restJson1UpdateWorkloadShareCommand = deserializeAws_restJson1UpdateWorkloadShareCommand;
|
|
3484
2871
|
const deserializeAws_restJson1UpdateWorkloadShareCommandError = async (output, context) => {
|
|
@@ -3486,7 +2873,6 @@ const deserializeAws_restJson1UpdateWorkloadShareCommandError = async (output, c
|
|
|
3486
2873
|
...output,
|
|
3487
2874
|
body: await parseBody(output.body, context),
|
|
3488
2875
|
};
|
|
3489
|
-
let response;
|
|
3490
2876
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3491
2877
|
switch (errorCode) {
|
|
3492
2878
|
case "AccessDeniedException":
|
|
@@ -3509,25 +2895,23 @@ const deserializeAws_restJson1UpdateWorkloadShareCommandError = async (output, c
|
|
|
3509
2895
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3510
2896
|
default:
|
|
3511
2897
|
const parsedBody = parsedOutput.body;
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
$metadata,
|
|
2898
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2899
|
+
output,
|
|
2900
|
+
parsedBody,
|
|
2901
|
+
exceptionCtor: WellArchitectedServiceException_1.WellArchitectedServiceException,
|
|
2902
|
+
errorCode,
|
|
3518
2903
|
});
|
|
3519
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3520
2904
|
}
|
|
3521
2905
|
};
|
|
3522
2906
|
const deserializeAws_restJson1UpgradeLensReviewCommand = async (output, context) => {
|
|
3523
2907
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3524
2908
|
return deserializeAws_restJson1UpgradeLensReviewCommandError(output, context);
|
|
3525
2909
|
}
|
|
3526
|
-
const contents = {
|
|
2910
|
+
const contents = map({
|
|
3527
2911
|
$metadata: deserializeMetadata(output),
|
|
3528
|
-
};
|
|
2912
|
+
});
|
|
3529
2913
|
await collectBody(output.body, context);
|
|
3530
|
-
return
|
|
2914
|
+
return contents;
|
|
3531
2915
|
};
|
|
3532
2916
|
exports.deserializeAws_restJson1UpgradeLensReviewCommand = deserializeAws_restJson1UpgradeLensReviewCommand;
|
|
3533
2917
|
const deserializeAws_restJson1UpgradeLensReviewCommandError = async (output, context) => {
|
|
@@ -3535,7 +2919,6 @@ const deserializeAws_restJson1UpgradeLensReviewCommandError = async (output, con
|
|
|
3535
2919
|
...output,
|
|
3536
2920
|
body: await parseBody(output.body, context),
|
|
3537
2921
|
};
|
|
3538
|
-
let response;
|
|
3539
2922
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3540
2923
|
switch (errorCode) {
|
|
3541
2924
|
case "AccessDeniedException":
|
|
@@ -3558,20 +2941,19 @@ const deserializeAws_restJson1UpgradeLensReviewCommandError = async (output, con
|
|
|
3558
2941
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3559
2942
|
default:
|
|
3560
2943
|
const parsedBody = parsedOutput.body;
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
$metadata,
|
|
2944
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2945
|
+
output,
|
|
2946
|
+
parsedBody,
|
|
2947
|
+
exceptionCtor: WellArchitectedServiceException_1.WellArchitectedServiceException,
|
|
2948
|
+
errorCode,
|
|
3567
2949
|
});
|
|
3568
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3569
2950
|
}
|
|
3570
2951
|
};
|
|
2952
|
+
const map = smithy_client_1.map;
|
|
3571
2953
|
const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
3572
|
-
const contents = {};
|
|
2954
|
+
const contents = map({});
|
|
3573
2955
|
const data = parsedOutput.body;
|
|
3574
|
-
if (data.Message
|
|
2956
|
+
if (data.Message != null) {
|
|
3575
2957
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
3576
2958
|
}
|
|
3577
2959
|
const exception = new models_0_1.AccessDeniedException({
|
|
@@ -3581,15 +2963,15 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
|
|
|
3581
2963
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3582
2964
|
};
|
|
3583
2965
|
const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
3584
|
-
const contents = {};
|
|
2966
|
+
const contents = map({});
|
|
3585
2967
|
const data = parsedOutput.body;
|
|
3586
|
-
if (data.Message
|
|
2968
|
+
if (data.Message != null) {
|
|
3587
2969
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
3588
2970
|
}
|
|
3589
|
-
if (data.ResourceId
|
|
2971
|
+
if (data.ResourceId != null) {
|
|
3590
2972
|
contents.ResourceId = (0, smithy_client_1.expectString)(data.ResourceId);
|
|
3591
2973
|
}
|
|
3592
|
-
if (data.ResourceType
|
|
2974
|
+
if (data.ResourceType != null) {
|
|
3593
2975
|
contents.ResourceType = (0, smithy_client_1.expectString)(data.ResourceType);
|
|
3594
2976
|
}
|
|
3595
2977
|
const exception = new models_0_1.ConflictException({
|
|
@@ -3599,9 +2981,9 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
3599
2981
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3600
2982
|
};
|
|
3601
2983
|
const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
|
|
3602
|
-
const contents = {};
|
|
2984
|
+
const contents = map({});
|
|
3603
2985
|
const data = parsedOutput.body;
|
|
3604
|
-
if (data.Message
|
|
2986
|
+
if (data.Message != null) {
|
|
3605
2987
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
3606
2988
|
}
|
|
3607
2989
|
const exception = new models_0_1.InternalServerException({
|
|
@@ -3611,15 +2993,15 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
3611
2993
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3612
2994
|
};
|
|
3613
2995
|
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
3614
|
-
const contents = {};
|
|
2996
|
+
const contents = map({});
|
|
3615
2997
|
const data = parsedOutput.body;
|
|
3616
|
-
if (data.Message
|
|
2998
|
+
if (data.Message != null) {
|
|
3617
2999
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
3618
3000
|
}
|
|
3619
|
-
if (data.ResourceId
|
|
3001
|
+
if (data.ResourceId != null) {
|
|
3620
3002
|
contents.ResourceId = (0, smithy_client_1.expectString)(data.ResourceId);
|
|
3621
3003
|
}
|
|
3622
|
-
if (data.ResourceType
|
|
3004
|
+
if (data.ResourceType != null) {
|
|
3623
3005
|
contents.ResourceType = (0, smithy_client_1.expectString)(data.ResourceType);
|
|
3624
3006
|
}
|
|
3625
3007
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
@@ -3629,21 +3011,21 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
3629
3011
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3630
3012
|
};
|
|
3631
3013
|
const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
|
|
3632
|
-
const contents = {};
|
|
3014
|
+
const contents = map({});
|
|
3633
3015
|
const data = parsedOutput.body;
|
|
3634
|
-
if (data.Message
|
|
3016
|
+
if (data.Message != null) {
|
|
3635
3017
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
3636
3018
|
}
|
|
3637
|
-
if (data.QuotaCode
|
|
3019
|
+
if (data.QuotaCode != null) {
|
|
3638
3020
|
contents.QuotaCode = (0, smithy_client_1.expectString)(data.QuotaCode);
|
|
3639
3021
|
}
|
|
3640
|
-
if (data.ResourceId
|
|
3022
|
+
if (data.ResourceId != null) {
|
|
3641
3023
|
contents.ResourceId = (0, smithy_client_1.expectString)(data.ResourceId);
|
|
3642
3024
|
}
|
|
3643
|
-
if (data.ResourceType
|
|
3025
|
+
if (data.ResourceType != null) {
|
|
3644
3026
|
contents.ResourceType = (0, smithy_client_1.expectString)(data.ResourceType);
|
|
3645
3027
|
}
|
|
3646
|
-
if (data.ServiceCode
|
|
3028
|
+
if (data.ServiceCode != null) {
|
|
3647
3029
|
contents.ServiceCode = (0, smithy_client_1.expectString)(data.ServiceCode);
|
|
3648
3030
|
}
|
|
3649
3031
|
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
@@ -3653,15 +3035,15 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
|
|
|
3653
3035
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3654
3036
|
};
|
|
3655
3037
|
const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
|
|
3656
|
-
const contents = {};
|
|
3038
|
+
const contents = map({});
|
|
3657
3039
|
const data = parsedOutput.body;
|
|
3658
|
-
if (data.Message
|
|
3040
|
+
if (data.Message != null) {
|
|
3659
3041
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
3660
3042
|
}
|
|
3661
|
-
if (data.QuotaCode
|
|
3043
|
+
if (data.QuotaCode != null) {
|
|
3662
3044
|
contents.QuotaCode = (0, smithy_client_1.expectString)(data.QuotaCode);
|
|
3663
3045
|
}
|
|
3664
|
-
if (data.ServiceCode
|
|
3046
|
+
if (data.ServiceCode != null) {
|
|
3665
3047
|
contents.ServiceCode = (0, smithy_client_1.expectString)(data.ServiceCode);
|
|
3666
3048
|
}
|
|
3667
3049
|
const exception = new models_0_1.ThrottlingException({
|
|
@@ -3671,15 +3053,15 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
3671
3053
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3672
3054
|
};
|
|
3673
3055
|
const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
3674
|
-
const contents = {};
|
|
3056
|
+
const contents = map({});
|
|
3675
3057
|
const data = parsedOutput.body;
|
|
3676
|
-
if (data.Fields
|
|
3058
|
+
if (data.Fields != null) {
|
|
3677
3059
|
contents.Fields = deserializeAws_restJson1ValidationExceptionFieldList(data.Fields, context);
|
|
3678
3060
|
}
|
|
3679
|
-
if (data.Message
|
|
3061
|
+
if (data.Message != null) {
|
|
3680
3062
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
3681
3063
|
}
|
|
3682
|
-
if (data.Reason
|
|
3064
|
+
if (data.Reason != null) {
|
|
3683
3065
|
contents.Reason = (0, smithy_client_1.expectString)(data.Reason);
|
|
3684
3066
|
}
|
|
3685
3067
|
const exception = new models_0_1.ValidationException({
|
|
@@ -3710,9 +3092,6 @@ const serializeAws_restJson1LensAliases = (input, context) => {
|
|
|
3710
3092
|
return input
|
|
3711
3093
|
.filter((e) => e != null)
|
|
3712
3094
|
.map((entry) => {
|
|
3713
|
-
if (entry === null) {
|
|
3714
|
-
return null;
|
|
3715
|
-
}
|
|
3716
3095
|
return entry;
|
|
3717
3096
|
});
|
|
3718
3097
|
};
|
|
@@ -3731,9 +3110,6 @@ const serializeAws_restJson1SelectedChoices = (input, context) => {
|
|
|
3731
3110
|
return input
|
|
3732
3111
|
.filter((e) => e != null)
|
|
3733
3112
|
.map((entry) => {
|
|
3734
|
-
if (entry === null) {
|
|
3735
|
-
return null;
|
|
3736
|
-
}
|
|
3737
3113
|
return entry;
|
|
3738
3114
|
});
|
|
3739
3115
|
};
|
|
@@ -3752,9 +3128,6 @@ const serializeAws_restJson1WorkloadAccountIds = (input, context) => {
|
|
|
3752
3128
|
return input
|
|
3753
3129
|
.filter((e) => e != null)
|
|
3754
3130
|
.map((entry) => {
|
|
3755
|
-
if (entry === null) {
|
|
3756
|
-
return null;
|
|
3757
|
-
}
|
|
3758
3131
|
return entry;
|
|
3759
3132
|
});
|
|
3760
3133
|
};
|
|
@@ -3762,9 +3135,6 @@ const serializeAws_restJson1WorkloadAwsRegions = (input, context) => {
|
|
|
3762
3135
|
return input
|
|
3763
3136
|
.filter((e) => e != null)
|
|
3764
3137
|
.map((entry) => {
|
|
3765
|
-
if (entry === null) {
|
|
3766
|
-
return null;
|
|
3767
|
-
}
|
|
3768
3138
|
return entry;
|
|
3769
3139
|
});
|
|
3770
3140
|
};
|
|
@@ -3772,9 +3142,6 @@ const serializeAws_restJson1WorkloadLenses = (input, context) => {
|
|
|
3772
3142
|
return input
|
|
3773
3143
|
.filter((e) => e != null)
|
|
3774
3144
|
.map((entry) => {
|
|
3775
|
-
if (entry === null) {
|
|
3776
|
-
return null;
|
|
3777
|
-
}
|
|
3778
3145
|
return entry;
|
|
3779
3146
|
});
|
|
3780
3147
|
};
|
|
@@ -3782,9 +3149,6 @@ const serializeAws_restJson1WorkloadNonAwsRegions = (input, context) => {
|
|
|
3782
3149
|
return input
|
|
3783
3150
|
.filter((e) => e != null)
|
|
3784
3151
|
.map((entry) => {
|
|
3785
|
-
if (entry === null) {
|
|
3786
|
-
return null;
|
|
3787
|
-
}
|
|
3788
3152
|
return entry;
|
|
3789
3153
|
});
|
|
3790
3154
|
};
|
|
@@ -3792,9 +3156,6 @@ const serializeAws_restJson1WorkloadPillarPriorities = (input, context) => {
|
|
|
3792
3156
|
return input
|
|
3793
3157
|
.filter((e) => e != null)
|
|
3794
3158
|
.map((entry) => {
|
|
3795
|
-
if (entry === null) {
|
|
3796
|
-
return null;
|
|
3797
|
-
}
|
|
3798
3159
|
return entry;
|
|
3799
3160
|
});
|
|
3800
3161
|
};
|