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