@aws-sdk/client-m2 3.141.0 → 3.142.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist-cjs/protocols/Aws_restJson1.js +495 -1003
- package/dist-es/protocols/Aws_restJson1.js +619 -990
- package/package.json +6 -6
|
@@ -12,26 +12,8 @@ const serializeAws_restJson1CancelBatchJobExecutionCommand = async (input, conte
|
|
|
12
12
|
const headers = {};
|
|
13
13
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
14
14
|
"/applications/{applicationId}/batch-job-executions/{executionId}/cancel";
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
if (labelValue.length <= 0) {
|
|
18
|
-
throw new Error("Empty value provided for input HTTP label: applicationId.");
|
|
19
|
-
}
|
|
20
|
-
resolvedPath = resolvedPath.replace("{applicationId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
21
|
-
}
|
|
22
|
-
else {
|
|
23
|
-
throw new Error("No value provided for input HTTP label: applicationId.");
|
|
24
|
-
}
|
|
25
|
-
if (input.executionId !== undefined) {
|
|
26
|
-
const labelValue = input.executionId;
|
|
27
|
-
if (labelValue.length <= 0) {
|
|
28
|
-
throw new Error("Empty value provided for input HTTP label: executionId.");
|
|
29
|
-
}
|
|
30
|
-
resolvedPath = resolvedPath.replace("{executionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
31
|
-
}
|
|
32
|
-
else {
|
|
33
|
-
throw new Error("No value provided for input HTTP label: executionId.");
|
|
34
|
-
}
|
|
15
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
16
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "executionId", () => input.executionId, "{executionId}", false);
|
|
35
17
|
let body;
|
|
36
18
|
return new protocol_http_1.HttpRequest({
|
|
37
19
|
protocol,
|
|
@@ -79,16 +61,7 @@ const serializeAws_restJson1CreateDataSetImportTaskCommand = async (input, conte
|
|
|
79
61
|
};
|
|
80
62
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
81
63
|
"/applications/{applicationId}/dataset-import-task";
|
|
82
|
-
|
|
83
|
-
const labelValue = input.applicationId;
|
|
84
|
-
if (labelValue.length <= 0) {
|
|
85
|
-
throw new Error("Empty value provided for input HTTP label: applicationId.");
|
|
86
|
-
}
|
|
87
|
-
resolvedPath = resolvedPath.replace("{applicationId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
88
|
-
}
|
|
89
|
-
else {
|
|
90
|
-
throw new Error("No value provided for input HTTP label: applicationId.");
|
|
91
|
-
}
|
|
64
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
92
65
|
let body;
|
|
93
66
|
body = JSON.stringify({
|
|
94
67
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
@@ -114,16 +87,7 @@ const serializeAws_restJson1CreateDeploymentCommand = async (input, context) =>
|
|
|
114
87
|
"content-type": "application/json",
|
|
115
88
|
};
|
|
116
89
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}/deployments";
|
|
117
|
-
|
|
118
|
-
const labelValue = input.applicationId;
|
|
119
|
-
if (labelValue.length <= 0) {
|
|
120
|
-
throw new Error("Empty value provided for input HTTP label: applicationId.");
|
|
121
|
-
}
|
|
122
|
-
resolvedPath = resolvedPath.replace("{applicationId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
123
|
-
}
|
|
124
|
-
else {
|
|
125
|
-
throw new Error("No value provided for input HTTP label: applicationId.");
|
|
126
|
-
}
|
|
90
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
127
91
|
let body;
|
|
128
92
|
body = JSON.stringify({
|
|
129
93
|
...(input.applicationVersion != null && { applicationVersion: input.applicationVersion }),
|
|
@@ -185,16 +149,7 @@ const serializeAws_restJson1DeleteApplicationCommand = async (input, context) =>
|
|
|
185
149
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
186
150
|
const headers = {};
|
|
187
151
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}";
|
|
188
|
-
|
|
189
|
-
const labelValue = input.applicationId;
|
|
190
|
-
if (labelValue.length <= 0) {
|
|
191
|
-
throw new Error("Empty value provided for input HTTP label: applicationId.");
|
|
192
|
-
}
|
|
193
|
-
resolvedPath = resolvedPath.replace("{applicationId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
194
|
-
}
|
|
195
|
-
else {
|
|
196
|
-
throw new Error("No value provided for input HTTP label: applicationId.");
|
|
197
|
-
}
|
|
152
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
198
153
|
let body;
|
|
199
154
|
return new protocol_http_1.HttpRequest({
|
|
200
155
|
protocol,
|
|
@@ -212,26 +167,8 @@ const serializeAws_restJson1DeleteApplicationFromEnvironmentCommand = async (inp
|
|
|
212
167
|
const headers = {};
|
|
213
168
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
214
169
|
"/applications/{applicationId}/environment/{environmentId}";
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
if (labelValue.length <= 0) {
|
|
218
|
-
throw new Error("Empty value provided for input HTTP label: applicationId.");
|
|
219
|
-
}
|
|
220
|
-
resolvedPath = resolvedPath.replace("{applicationId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
221
|
-
}
|
|
222
|
-
else {
|
|
223
|
-
throw new Error("No value provided for input HTTP label: applicationId.");
|
|
224
|
-
}
|
|
225
|
-
if (input.environmentId !== undefined) {
|
|
226
|
-
const labelValue = input.environmentId;
|
|
227
|
-
if (labelValue.length <= 0) {
|
|
228
|
-
throw new Error("Empty value provided for input HTTP label: environmentId.");
|
|
229
|
-
}
|
|
230
|
-
resolvedPath = resolvedPath.replace("{environmentId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
231
|
-
}
|
|
232
|
-
else {
|
|
233
|
-
throw new Error("No value provided for input HTTP label: environmentId.");
|
|
234
|
-
}
|
|
170
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
171
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
|
|
235
172
|
let body;
|
|
236
173
|
return new protocol_http_1.HttpRequest({
|
|
237
174
|
protocol,
|
|
@@ -248,16 +185,7 @@ const serializeAws_restJson1DeleteEnvironmentCommand = async (input, context) =>
|
|
|
248
185
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
249
186
|
const headers = {};
|
|
250
187
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/environments/{environmentId}";
|
|
251
|
-
|
|
252
|
-
const labelValue = input.environmentId;
|
|
253
|
-
if (labelValue.length <= 0) {
|
|
254
|
-
throw new Error("Empty value provided for input HTTP label: environmentId.");
|
|
255
|
-
}
|
|
256
|
-
resolvedPath = resolvedPath.replace("{environmentId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
257
|
-
}
|
|
258
|
-
else {
|
|
259
|
-
throw new Error("No value provided for input HTTP label: environmentId.");
|
|
260
|
-
}
|
|
188
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
|
|
261
189
|
let body;
|
|
262
190
|
return new protocol_http_1.HttpRequest({
|
|
263
191
|
protocol,
|
|
@@ -274,16 +202,7 @@ const serializeAws_restJson1GetApplicationCommand = async (input, context) => {
|
|
|
274
202
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
275
203
|
const headers = {};
|
|
276
204
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}";
|
|
277
|
-
|
|
278
|
-
const labelValue = input.applicationId;
|
|
279
|
-
if (labelValue.length <= 0) {
|
|
280
|
-
throw new Error("Empty value provided for input HTTP label: applicationId.");
|
|
281
|
-
}
|
|
282
|
-
resolvedPath = resolvedPath.replace("{applicationId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
283
|
-
}
|
|
284
|
-
else {
|
|
285
|
-
throw new Error("No value provided for input HTTP label: applicationId.");
|
|
286
|
-
}
|
|
205
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
287
206
|
let body;
|
|
288
207
|
return new protocol_http_1.HttpRequest({
|
|
289
208
|
protocol,
|
|
@@ -301,26 +220,8 @@ const serializeAws_restJson1GetApplicationVersionCommand = async (input, context
|
|
|
301
220
|
const headers = {};
|
|
302
221
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
303
222
|
"/applications/{applicationId}/versions/{applicationVersion}";
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
if (labelValue.length <= 0) {
|
|
307
|
-
throw new Error("Empty value provided for input HTTP label: applicationId.");
|
|
308
|
-
}
|
|
309
|
-
resolvedPath = resolvedPath.replace("{applicationId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
310
|
-
}
|
|
311
|
-
else {
|
|
312
|
-
throw new Error("No value provided for input HTTP label: applicationId.");
|
|
313
|
-
}
|
|
314
|
-
if (input.applicationVersion !== undefined) {
|
|
315
|
-
const labelValue = input.applicationVersion.toString();
|
|
316
|
-
if (labelValue.length <= 0) {
|
|
317
|
-
throw new Error("Empty value provided for input HTTP label: applicationVersion.");
|
|
318
|
-
}
|
|
319
|
-
resolvedPath = resolvedPath.replace("{applicationVersion}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
320
|
-
}
|
|
321
|
-
else {
|
|
322
|
-
throw new Error("No value provided for input HTTP label: applicationVersion.");
|
|
323
|
-
}
|
|
223
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
224
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationVersion", () => input.applicationVersion.toString(), "{applicationVersion}", false);
|
|
324
225
|
let body;
|
|
325
226
|
return new protocol_http_1.HttpRequest({
|
|
326
227
|
protocol,
|
|
@@ -338,26 +239,8 @@ const serializeAws_restJson1GetBatchJobExecutionCommand = async (input, context)
|
|
|
338
239
|
const headers = {};
|
|
339
240
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
340
241
|
"/applications/{applicationId}/batch-job-executions/{executionId}";
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
if (labelValue.length <= 0) {
|
|
344
|
-
throw new Error("Empty value provided for input HTTP label: applicationId.");
|
|
345
|
-
}
|
|
346
|
-
resolvedPath = resolvedPath.replace("{applicationId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
347
|
-
}
|
|
348
|
-
else {
|
|
349
|
-
throw new Error("No value provided for input HTTP label: applicationId.");
|
|
350
|
-
}
|
|
351
|
-
if (input.executionId !== undefined) {
|
|
352
|
-
const labelValue = input.executionId;
|
|
353
|
-
if (labelValue.length <= 0) {
|
|
354
|
-
throw new Error("Empty value provided for input HTTP label: executionId.");
|
|
355
|
-
}
|
|
356
|
-
resolvedPath = resolvedPath.replace("{executionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
357
|
-
}
|
|
358
|
-
else {
|
|
359
|
-
throw new Error("No value provided for input HTTP label: executionId.");
|
|
360
|
-
}
|
|
242
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
243
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "executionId", () => input.executionId, "{executionId}", false);
|
|
361
244
|
let body;
|
|
362
245
|
return new protocol_http_1.HttpRequest({
|
|
363
246
|
protocol,
|
|
@@ -375,26 +258,8 @@ const serializeAws_restJson1GetDataSetDetailsCommand = async (input, context) =>
|
|
|
375
258
|
const headers = {};
|
|
376
259
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
377
260
|
"/applications/{applicationId}/datasets/{dataSetName}";
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
if (labelValue.length <= 0) {
|
|
381
|
-
throw new Error("Empty value provided for input HTTP label: applicationId.");
|
|
382
|
-
}
|
|
383
|
-
resolvedPath = resolvedPath.replace("{applicationId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
384
|
-
}
|
|
385
|
-
else {
|
|
386
|
-
throw new Error("No value provided for input HTTP label: applicationId.");
|
|
387
|
-
}
|
|
388
|
-
if (input.dataSetName !== undefined) {
|
|
389
|
-
const labelValue = input.dataSetName;
|
|
390
|
-
if (labelValue.length <= 0) {
|
|
391
|
-
throw new Error("Empty value provided for input HTTP label: dataSetName.");
|
|
392
|
-
}
|
|
393
|
-
resolvedPath = resolvedPath.replace("{dataSetName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
394
|
-
}
|
|
395
|
-
else {
|
|
396
|
-
throw new Error("No value provided for input HTTP label: dataSetName.");
|
|
397
|
-
}
|
|
261
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
262
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "dataSetName", () => input.dataSetName, "{dataSetName}", false);
|
|
398
263
|
let body;
|
|
399
264
|
return new protocol_http_1.HttpRequest({
|
|
400
265
|
protocol,
|
|
@@ -412,26 +277,8 @@ const serializeAws_restJson1GetDataSetImportTaskCommand = async (input, context)
|
|
|
412
277
|
const headers = {};
|
|
413
278
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
414
279
|
"/applications/{applicationId}/dataset-import-tasks/{taskId}";
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
if (labelValue.length <= 0) {
|
|
418
|
-
throw new Error("Empty value provided for input HTTP label: applicationId.");
|
|
419
|
-
}
|
|
420
|
-
resolvedPath = resolvedPath.replace("{applicationId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
421
|
-
}
|
|
422
|
-
else {
|
|
423
|
-
throw new Error("No value provided for input HTTP label: applicationId.");
|
|
424
|
-
}
|
|
425
|
-
if (input.taskId !== undefined) {
|
|
426
|
-
const labelValue = input.taskId;
|
|
427
|
-
if (labelValue.length <= 0) {
|
|
428
|
-
throw new Error("Empty value provided for input HTTP label: taskId.");
|
|
429
|
-
}
|
|
430
|
-
resolvedPath = resolvedPath.replace("{taskId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
431
|
-
}
|
|
432
|
-
else {
|
|
433
|
-
throw new Error("No value provided for input HTTP label: taskId.");
|
|
434
|
-
}
|
|
280
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
281
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "taskId", () => input.taskId, "{taskId}", false);
|
|
435
282
|
let body;
|
|
436
283
|
return new protocol_http_1.HttpRequest({
|
|
437
284
|
protocol,
|
|
@@ -449,26 +296,8 @@ const serializeAws_restJson1GetDeploymentCommand = async (input, context) => {
|
|
|
449
296
|
const headers = {};
|
|
450
297
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
451
298
|
"/applications/{applicationId}/deployments/{deploymentId}";
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
if (labelValue.length <= 0) {
|
|
455
|
-
throw new Error("Empty value provided for input HTTP label: deploymentId.");
|
|
456
|
-
}
|
|
457
|
-
resolvedPath = resolvedPath.replace("{deploymentId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
458
|
-
}
|
|
459
|
-
else {
|
|
460
|
-
throw new Error("No value provided for input HTTP label: deploymentId.");
|
|
461
|
-
}
|
|
462
|
-
if (input.applicationId !== undefined) {
|
|
463
|
-
const labelValue = input.applicationId;
|
|
464
|
-
if (labelValue.length <= 0) {
|
|
465
|
-
throw new Error("Empty value provided for input HTTP label: applicationId.");
|
|
466
|
-
}
|
|
467
|
-
resolvedPath = resolvedPath.replace("{applicationId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
468
|
-
}
|
|
469
|
-
else {
|
|
470
|
-
throw new Error("No value provided for input HTTP label: applicationId.");
|
|
471
|
-
}
|
|
299
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "deploymentId", () => input.deploymentId, "{deploymentId}", false);
|
|
300
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
472
301
|
let body;
|
|
473
302
|
return new protocol_http_1.HttpRequest({
|
|
474
303
|
protocol,
|
|
@@ -485,16 +314,7 @@ const serializeAws_restJson1GetEnvironmentCommand = async (input, context) => {
|
|
|
485
314
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
486
315
|
const headers = {};
|
|
487
316
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/environments/{environmentId}";
|
|
488
|
-
|
|
489
|
-
const labelValue = input.environmentId;
|
|
490
|
-
if (labelValue.length <= 0) {
|
|
491
|
-
throw new Error("Empty value provided for input HTTP label: environmentId.");
|
|
492
|
-
}
|
|
493
|
-
resolvedPath = resolvedPath.replace("{environmentId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
494
|
-
}
|
|
495
|
-
else {
|
|
496
|
-
throw new Error("No value provided for input HTTP label: environmentId.");
|
|
497
|
-
}
|
|
317
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
|
|
498
318
|
let body;
|
|
499
319
|
return new protocol_http_1.HttpRequest({
|
|
500
320
|
protocol,
|
|
@@ -511,12 +331,12 @@ const serializeAws_restJson1ListApplicationsCommand = async (input, context) =>
|
|
|
511
331
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
512
332
|
const headers = {};
|
|
513
333
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/applications";
|
|
514
|
-
const query = {
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
};
|
|
334
|
+
const query = map({
|
|
335
|
+
nextToken: [, input.nextToken],
|
|
336
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
337
|
+
names: [() => input.names !== void 0, () => (input.names || []).map((_entry) => _entry)],
|
|
338
|
+
environmentId: [, input.environmentId],
|
|
339
|
+
});
|
|
520
340
|
let body;
|
|
521
341
|
return new protocol_http_1.HttpRequest({
|
|
522
342
|
protocol,
|
|
@@ -534,20 +354,11 @@ const serializeAws_restJson1ListApplicationVersionsCommand = async (input, conte
|
|
|
534
354
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
535
355
|
const headers = {};
|
|
536
356
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}/versions";
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
resolvedPath = resolvedPath.replace("{applicationId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
543
|
-
}
|
|
544
|
-
else {
|
|
545
|
-
throw new Error("No value provided for input HTTP label: applicationId.");
|
|
546
|
-
}
|
|
547
|
-
const query = {
|
|
548
|
-
...(input.nextToken !== undefined && { nextToken: input.nextToken }),
|
|
549
|
-
...(input.maxResults !== undefined && { maxResults: input.maxResults.toString() }),
|
|
550
|
-
};
|
|
357
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
358
|
+
const query = map({
|
|
359
|
+
nextToken: [, input.nextToken],
|
|
360
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
361
|
+
});
|
|
551
362
|
let body;
|
|
552
363
|
return new protocol_http_1.HttpRequest({
|
|
553
364
|
protocol,
|
|
@@ -566,21 +377,12 @@ const serializeAws_restJson1ListBatchJobDefinitionsCommand = async (input, conte
|
|
|
566
377
|
const headers = {};
|
|
567
378
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
568
379
|
"/applications/{applicationId}/batch-job-definitions";
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
}
|
|
576
|
-
else {
|
|
577
|
-
throw new Error("No value provided for input HTTP label: applicationId.");
|
|
578
|
-
}
|
|
579
|
-
const query = {
|
|
580
|
-
...(input.nextToken !== undefined && { nextToken: input.nextToken }),
|
|
581
|
-
...(input.maxResults !== undefined && { maxResults: input.maxResults.toString() }),
|
|
582
|
-
...(input.prefix !== undefined && { prefix: input.prefix }),
|
|
583
|
-
};
|
|
380
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
381
|
+
const query = map({
|
|
382
|
+
nextToken: [, input.nextToken],
|
|
383
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
384
|
+
prefix: [, input.prefix],
|
|
385
|
+
});
|
|
584
386
|
let body;
|
|
585
387
|
return new protocol_http_1.HttpRequest({
|
|
586
388
|
protocol,
|
|
@@ -599,31 +401,25 @@ const serializeAws_restJson1ListBatchJobExecutionsCommand = async (input, contex
|
|
|
599
401
|
const headers = {};
|
|
600
402
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
601
403
|
"/applications/{applicationId}/batch-job-executions";
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
startedAfter: (input.startedAfter.toISOString().split(".")[0] + "Z").toString(),
|
|
622
|
-
}),
|
|
623
|
-
...(input.startedBefore !== undefined && {
|
|
624
|
-
startedBefore: (input.startedBefore.toISOString().split(".")[0] + "Z").toString(),
|
|
625
|
-
}),
|
|
626
|
-
};
|
|
404
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
405
|
+
const query = map({
|
|
406
|
+
nextToken: [, input.nextToken],
|
|
407
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
408
|
+
executionIds: [
|
|
409
|
+
() => input.executionIds !== void 0,
|
|
410
|
+
() => (input.executionIds || []).map((_entry) => _entry),
|
|
411
|
+
],
|
|
412
|
+
jobName: [, input.jobName],
|
|
413
|
+
status: [, input.status],
|
|
414
|
+
startedAfter: [
|
|
415
|
+
() => input.startedAfter !== void 0,
|
|
416
|
+
() => (input.startedAfter.toISOString().split(".")[0] + "Z").toString(),
|
|
417
|
+
],
|
|
418
|
+
startedBefore: [
|
|
419
|
+
() => input.startedBefore !== void 0,
|
|
420
|
+
() => (input.startedBefore.toISOString().split(".")[0] + "Z").toString(),
|
|
421
|
+
],
|
|
422
|
+
});
|
|
627
423
|
let body;
|
|
628
424
|
return new protocol_http_1.HttpRequest({
|
|
629
425
|
protocol,
|
|
@@ -642,20 +438,11 @@ const serializeAws_restJson1ListDataSetImportHistoryCommand = async (input, cont
|
|
|
642
438
|
const headers = {};
|
|
643
439
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
644
440
|
"/applications/{applicationId}/dataset-import-tasks";
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
resolvedPath = resolvedPath.replace("{applicationId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
651
|
-
}
|
|
652
|
-
else {
|
|
653
|
-
throw new Error("No value provided for input HTTP label: applicationId.");
|
|
654
|
-
}
|
|
655
|
-
const query = {
|
|
656
|
-
...(input.nextToken !== undefined && { nextToken: input.nextToken }),
|
|
657
|
-
...(input.maxResults !== undefined && { maxResults: input.maxResults.toString() }),
|
|
658
|
-
};
|
|
441
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
442
|
+
const query = map({
|
|
443
|
+
nextToken: [, input.nextToken],
|
|
444
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
445
|
+
});
|
|
659
446
|
let body;
|
|
660
447
|
return new protocol_http_1.HttpRequest({
|
|
661
448
|
protocol,
|
|
@@ -673,21 +460,12 @@ const serializeAws_restJson1ListDataSetsCommand = async (input, context) => {
|
|
|
673
460
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
674
461
|
const headers = {};
|
|
675
462
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}/datasets";
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
}
|
|
683
|
-
else {
|
|
684
|
-
throw new Error("No value provided for input HTTP label: applicationId.");
|
|
685
|
-
}
|
|
686
|
-
const query = {
|
|
687
|
-
...(input.nextToken !== undefined && { nextToken: input.nextToken }),
|
|
688
|
-
...(input.maxResults !== undefined && { maxResults: input.maxResults.toString() }),
|
|
689
|
-
...(input.prefix !== undefined && { prefix: input.prefix }),
|
|
690
|
-
};
|
|
463
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
464
|
+
const query = map({
|
|
465
|
+
nextToken: [, input.nextToken],
|
|
466
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
467
|
+
prefix: [, input.prefix],
|
|
468
|
+
});
|
|
691
469
|
let body;
|
|
692
470
|
return new protocol_http_1.HttpRequest({
|
|
693
471
|
protocol,
|
|
@@ -705,20 +483,11 @@ const serializeAws_restJson1ListDeploymentsCommand = async (input, context) => {
|
|
|
705
483
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
706
484
|
const headers = {};
|
|
707
485
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}/deployments";
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
resolvedPath = resolvedPath.replace("{applicationId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
714
|
-
}
|
|
715
|
-
else {
|
|
716
|
-
throw new Error("No value provided for input HTTP label: applicationId.");
|
|
717
|
-
}
|
|
718
|
-
const query = {
|
|
719
|
-
...(input.nextToken !== undefined && { nextToken: input.nextToken }),
|
|
720
|
-
...(input.maxResults !== undefined && { maxResults: input.maxResults.toString() }),
|
|
721
|
-
};
|
|
486
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
487
|
+
const query = map({
|
|
488
|
+
nextToken: [, input.nextToken],
|
|
489
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
490
|
+
});
|
|
722
491
|
let body;
|
|
723
492
|
return new protocol_http_1.HttpRequest({
|
|
724
493
|
protocol,
|
|
@@ -736,11 +505,11 @@ const serializeAws_restJson1ListEngineVersionsCommand = async (input, context) =
|
|
|
736
505
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
737
506
|
const headers = {};
|
|
738
507
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/engine-versions";
|
|
739
|
-
const query = {
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
};
|
|
508
|
+
const query = map({
|
|
509
|
+
engineType: [, input.engineType],
|
|
510
|
+
nextToken: [, input.nextToken],
|
|
511
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
512
|
+
});
|
|
744
513
|
let body;
|
|
745
514
|
return new protocol_http_1.HttpRequest({
|
|
746
515
|
protocol,
|
|
@@ -758,12 +527,12 @@ const serializeAws_restJson1ListEnvironmentsCommand = async (input, context) =>
|
|
|
758
527
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
759
528
|
const headers = {};
|
|
760
529
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/environments";
|
|
761
|
-
const query = {
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
};
|
|
530
|
+
const query = map({
|
|
531
|
+
nextToken: [, input.nextToken],
|
|
532
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
533
|
+
names: [() => input.names !== void 0, () => (input.names || []).map((_entry) => _entry)],
|
|
534
|
+
engineType: [, input.engineType],
|
|
535
|
+
});
|
|
767
536
|
let body;
|
|
768
537
|
return new protocol_http_1.HttpRequest({
|
|
769
538
|
protocol,
|
|
@@ -781,16 +550,7 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
781
550
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
782
551
|
const headers = {};
|
|
783
552
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
784
|
-
|
|
785
|
-
const labelValue = input.resourceArn;
|
|
786
|
-
if (labelValue.length <= 0) {
|
|
787
|
-
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
788
|
-
}
|
|
789
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
790
|
-
}
|
|
791
|
-
else {
|
|
792
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
793
|
-
}
|
|
553
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
794
554
|
let body;
|
|
795
555
|
return new protocol_http_1.HttpRequest({
|
|
796
556
|
protocol,
|
|
@@ -807,16 +567,7 @@ const serializeAws_restJson1StartApplicationCommand = async (input, context) =>
|
|
|
807
567
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
808
568
|
const headers = {};
|
|
809
569
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}/start";
|
|
810
|
-
|
|
811
|
-
const labelValue = input.applicationId;
|
|
812
|
-
if (labelValue.length <= 0) {
|
|
813
|
-
throw new Error("Empty value provided for input HTTP label: applicationId.");
|
|
814
|
-
}
|
|
815
|
-
resolvedPath = resolvedPath.replace("{applicationId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
816
|
-
}
|
|
817
|
-
else {
|
|
818
|
-
throw new Error("No value provided for input HTTP label: applicationId.");
|
|
819
|
-
}
|
|
570
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
820
571
|
let body;
|
|
821
572
|
return new protocol_http_1.HttpRequest({
|
|
822
573
|
protocol,
|
|
@@ -835,16 +586,7 @@ const serializeAws_restJson1StartBatchJobCommand = async (input, context) => {
|
|
|
835
586
|
"content-type": "application/json",
|
|
836
587
|
};
|
|
837
588
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}/batch-job";
|
|
838
|
-
|
|
839
|
-
const labelValue = input.applicationId;
|
|
840
|
-
if (labelValue.length <= 0) {
|
|
841
|
-
throw new Error("Empty value provided for input HTTP label: applicationId.");
|
|
842
|
-
}
|
|
843
|
-
resolvedPath = resolvedPath.replace("{applicationId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
844
|
-
}
|
|
845
|
-
else {
|
|
846
|
-
throw new Error("No value provided for input HTTP label: applicationId.");
|
|
847
|
-
}
|
|
589
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
848
590
|
let body;
|
|
849
591
|
body = JSON.stringify({
|
|
850
592
|
...(input.batchJobIdentifier != null && {
|
|
@@ -871,16 +613,7 @@ const serializeAws_restJson1StopApplicationCommand = async (input, context) => {
|
|
|
871
613
|
"content-type": "application/json",
|
|
872
614
|
};
|
|
873
615
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}/stop";
|
|
874
|
-
|
|
875
|
-
const labelValue = input.applicationId;
|
|
876
|
-
if (labelValue.length <= 0) {
|
|
877
|
-
throw new Error("Empty value provided for input HTTP label: applicationId.");
|
|
878
|
-
}
|
|
879
|
-
resolvedPath = resolvedPath.replace("{applicationId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
880
|
-
}
|
|
881
|
-
else {
|
|
882
|
-
throw new Error("No value provided for input HTTP label: applicationId.");
|
|
883
|
-
}
|
|
616
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
884
617
|
let body;
|
|
885
618
|
body = JSON.stringify({
|
|
886
619
|
...(input.forceStop != null && { forceStop: input.forceStop }),
|
|
@@ -902,16 +635,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
902
635
|
"content-type": "application/json",
|
|
903
636
|
};
|
|
904
637
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
905
|
-
|
|
906
|
-
const labelValue = input.resourceArn;
|
|
907
|
-
if (labelValue.length <= 0) {
|
|
908
|
-
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
909
|
-
}
|
|
910
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
911
|
-
}
|
|
912
|
-
else {
|
|
913
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
914
|
-
}
|
|
638
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
915
639
|
let body;
|
|
916
640
|
body = JSON.stringify({
|
|
917
641
|
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
@@ -931,19 +655,10 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
931
655
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
932
656
|
const headers = {};
|
|
933
657
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
}
|
|
939
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
940
|
-
}
|
|
941
|
-
else {
|
|
942
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
943
|
-
}
|
|
944
|
-
const query = {
|
|
945
|
-
...(input.tagKeys !== undefined && { tagKeys: (input.tagKeys || []).map((_entry) => _entry) }),
|
|
946
|
-
};
|
|
658
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
659
|
+
const query = map({
|
|
660
|
+
tagKeys: [() => input.tagKeys !== void 0, () => (input.tagKeys || []).map((_entry) => _entry)],
|
|
661
|
+
});
|
|
947
662
|
let body;
|
|
948
663
|
return new protocol_http_1.HttpRequest({
|
|
949
664
|
protocol,
|
|
@@ -963,16 +678,7 @@ const serializeAws_restJson1UpdateApplicationCommand = async (input, context) =>
|
|
|
963
678
|
"content-type": "application/json",
|
|
964
679
|
};
|
|
965
680
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}";
|
|
966
|
-
|
|
967
|
-
const labelValue = input.applicationId;
|
|
968
|
-
if (labelValue.length <= 0) {
|
|
969
|
-
throw new Error("Empty value provided for input HTTP label: applicationId.");
|
|
970
|
-
}
|
|
971
|
-
resolvedPath = resolvedPath.replace("{applicationId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
972
|
-
}
|
|
973
|
-
else {
|
|
974
|
-
throw new Error("No value provided for input HTTP label: applicationId.");
|
|
975
|
-
}
|
|
681
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
976
682
|
let body;
|
|
977
683
|
body = JSON.stringify({
|
|
978
684
|
...(input.currentApplicationVersion != null && { currentApplicationVersion: input.currentApplicationVersion }),
|
|
@@ -996,16 +702,7 @@ const serializeAws_restJson1UpdateEnvironmentCommand = async (input, context) =>
|
|
|
996
702
|
"content-type": "application/json",
|
|
997
703
|
};
|
|
998
704
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/environments/{environmentId}";
|
|
999
|
-
|
|
1000
|
-
const labelValue = input.environmentId;
|
|
1001
|
-
if (labelValue.length <= 0) {
|
|
1002
|
-
throw new Error("Empty value provided for input HTTP label: environmentId.");
|
|
1003
|
-
}
|
|
1004
|
-
resolvedPath = resolvedPath.replace("{environmentId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1005
|
-
}
|
|
1006
|
-
else {
|
|
1007
|
-
throw new Error("No value provided for input HTTP label: environmentId.");
|
|
1008
|
-
}
|
|
705
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
|
|
1009
706
|
let body;
|
|
1010
707
|
body = JSON.stringify({
|
|
1011
708
|
...(input.applyDuringMaintenanceWindow != null && {
|
|
@@ -1031,11 +728,11 @@ const deserializeAws_restJson1CancelBatchJobExecutionCommand = async (output, co
|
|
|
1031
728
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1032
729
|
return deserializeAws_restJson1CancelBatchJobExecutionCommandError(output, context);
|
|
1033
730
|
}
|
|
1034
|
-
const contents = {
|
|
731
|
+
const contents = map({
|
|
1035
732
|
$metadata: deserializeMetadata(output),
|
|
1036
|
-
};
|
|
733
|
+
});
|
|
1037
734
|
await collectBody(output.body, context);
|
|
1038
|
-
return
|
|
735
|
+
return contents;
|
|
1039
736
|
};
|
|
1040
737
|
exports.deserializeAws_restJson1CancelBatchJobExecutionCommand = deserializeAws_restJson1CancelBatchJobExecutionCommand;
|
|
1041
738
|
const deserializeAws_restJson1CancelBatchJobExecutionCommandError = async (output, context) => {
|
|
@@ -1043,7 +740,6 @@ const deserializeAws_restJson1CancelBatchJobExecutionCommandError = async (outpu
|
|
|
1043
740
|
...output,
|
|
1044
741
|
body: await parseBody(output.body, context),
|
|
1045
742
|
};
|
|
1046
|
-
let response;
|
|
1047
743
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1048
744
|
switch (errorCode) {
|
|
1049
745
|
case "AccessDeniedException":
|
|
@@ -1066,37 +762,32 @@ const deserializeAws_restJson1CancelBatchJobExecutionCommandError = async (outpu
|
|
|
1066
762
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1067
763
|
default:
|
|
1068
764
|
const parsedBody = parsedOutput.body;
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
$metadata,
|
|
765
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
766
|
+
output,
|
|
767
|
+
parsedBody,
|
|
768
|
+
exceptionCtor: M2ServiceException_1.M2ServiceException,
|
|
769
|
+
errorCode,
|
|
1075
770
|
});
|
|
1076
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1077
771
|
}
|
|
1078
772
|
};
|
|
1079
773
|
const deserializeAws_restJson1CreateApplicationCommand = async (output, context) => {
|
|
1080
774
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1081
775
|
return deserializeAws_restJson1CreateApplicationCommandError(output, context);
|
|
1082
776
|
}
|
|
1083
|
-
const contents = {
|
|
777
|
+
const contents = map({
|
|
1084
778
|
$metadata: deserializeMetadata(output),
|
|
1085
|
-
|
|
1086
|
-
applicationId: undefined,
|
|
1087
|
-
applicationVersion: undefined,
|
|
1088
|
-
};
|
|
779
|
+
});
|
|
1089
780
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1090
|
-
if (data.applicationArn
|
|
781
|
+
if (data.applicationArn != null) {
|
|
1091
782
|
contents.applicationArn = (0, smithy_client_1.expectString)(data.applicationArn);
|
|
1092
783
|
}
|
|
1093
|
-
if (data.applicationId
|
|
784
|
+
if (data.applicationId != null) {
|
|
1094
785
|
contents.applicationId = (0, smithy_client_1.expectString)(data.applicationId);
|
|
1095
786
|
}
|
|
1096
|
-
if (data.applicationVersion
|
|
787
|
+
if (data.applicationVersion != null) {
|
|
1097
788
|
contents.applicationVersion = (0, smithy_client_1.expectInt32)(data.applicationVersion);
|
|
1098
789
|
}
|
|
1099
|
-
return
|
|
790
|
+
return contents;
|
|
1100
791
|
};
|
|
1101
792
|
exports.deserializeAws_restJson1CreateApplicationCommand = deserializeAws_restJson1CreateApplicationCommand;
|
|
1102
793
|
const deserializeAws_restJson1CreateApplicationCommandError = async (output, context) => {
|
|
@@ -1104,7 +795,6 @@ const deserializeAws_restJson1CreateApplicationCommandError = async (output, con
|
|
|
1104
795
|
...output,
|
|
1105
796
|
body: await parseBody(output.body, context),
|
|
1106
797
|
};
|
|
1107
|
-
let response;
|
|
1108
798
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1109
799
|
switch (errorCode) {
|
|
1110
800
|
case "AccessDeniedException":
|
|
@@ -1127,29 +817,26 @@ const deserializeAws_restJson1CreateApplicationCommandError = async (output, con
|
|
|
1127
817
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1128
818
|
default:
|
|
1129
819
|
const parsedBody = parsedOutput.body;
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
$metadata,
|
|
820
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
821
|
+
output,
|
|
822
|
+
parsedBody,
|
|
823
|
+
exceptionCtor: M2ServiceException_1.M2ServiceException,
|
|
824
|
+
errorCode,
|
|
1136
825
|
});
|
|
1137
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1138
826
|
}
|
|
1139
827
|
};
|
|
1140
828
|
const deserializeAws_restJson1CreateDataSetImportTaskCommand = async (output, context) => {
|
|
1141
829
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1142
830
|
return deserializeAws_restJson1CreateDataSetImportTaskCommandError(output, context);
|
|
1143
831
|
}
|
|
1144
|
-
const contents = {
|
|
832
|
+
const contents = map({
|
|
1145
833
|
$metadata: deserializeMetadata(output),
|
|
1146
|
-
|
|
1147
|
-
};
|
|
834
|
+
});
|
|
1148
835
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1149
|
-
if (data.taskId
|
|
836
|
+
if (data.taskId != null) {
|
|
1150
837
|
contents.taskId = (0, smithy_client_1.expectString)(data.taskId);
|
|
1151
838
|
}
|
|
1152
|
-
return
|
|
839
|
+
return contents;
|
|
1153
840
|
};
|
|
1154
841
|
exports.deserializeAws_restJson1CreateDataSetImportTaskCommand = deserializeAws_restJson1CreateDataSetImportTaskCommand;
|
|
1155
842
|
const deserializeAws_restJson1CreateDataSetImportTaskCommandError = async (output, context) => {
|
|
@@ -1157,7 +844,6 @@ const deserializeAws_restJson1CreateDataSetImportTaskCommandError = async (outpu
|
|
|
1157
844
|
...output,
|
|
1158
845
|
body: await parseBody(output.body, context),
|
|
1159
846
|
};
|
|
1160
|
-
let response;
|
|
1161
847
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1162
848
|
switch (errorCode) {
|
|
1163
849
|
case "AccessDeniedException":
|
|
@@ -1183,29 +869,26 @@ const deserializeAws_restJson1CreateDataSetImportTaskCommandError = async (outpu
|
|
|
1183
869
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1184
870
|
default:
|
|
1185
871
|
const parsedBody = parsedOutput.body;
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
$metadata,
|
|
872
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
873
|
+
output,
|
|
874
|
+
parsedBody,
|
|
875
|
+
exceptionCtor: M2ServiceException_1.M2ServiceException,
|
|
876
|
+
errorCode,
|
|
1192
877
|
});
|
|
1193
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1194
878
|
}
|
|
1195
879
|
};
|
|
1196
880
|
const deserializeAws_restJson1CreateDeploymentCommand = async (output, context) => {
|
|
1197
881
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1198
882
|
return deserializeAws_restJson1CreateDeploymentCommandError(output, context);
|
|
1199
883
|
}
|
|
1200
|
-
const contents = {
|
|
884
|
+
const contents = map({
|
|
1201
885
|
$metadata: deserializeMetadata(output),
|
|
1202
|
-
|
|
1203
|
-
};
|
|
886
|
+
});
|
|
1204
887
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1205
|
-
if (data.deploymentId
|
|
888
|
+
if (data.deploymentId != null) {
|
|
1206
889
|
contents.deploymentId = (0, smithy_client_1.expectString)(data.deploymentId);
|
|
1207
890
|
}
|
|
1208
|
-
return
|
|
891
|
+
return contents;
|
|
1209
892
|
};
|
|
1210
893
|
exports.deserializeAws_restJson1CreateDeploymentCommand = deserializeAws_restJson1CreateDeploymentCommand;
|
|
1211
894
|
const deserializeAws_restJson1CreateDeploymentCommandError = async (output, context) => {
|
|
@@ -1213,7 +896,6 @@ const deserializeAws_restJson1CreateDeploymentCommandError = async (output, cont
|
|
|
1213
896
|
...output,
|
|
1214
897
|
body: await parseBody(output.body, context),
|
|
1215
898
|
};
|
|
1216
|
-
let response;
|
|
1217
899
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1218
900
|
switch (errorCode) {
|
|
1219
901
|
case "AccessDeniedException":
|
|
@@ -1239,29 +921,26 @@ const deserializeAws_restJson1CreateDeploymentCommandError = async (output, cont
|
|
|
1239
921
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1240
922
|
default:
|
|
1241
923
|
const parsedBody = parsedOutput.body;
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
$metadata,
|
|
924
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
925
|
+
output,
|
|
926
|
+
parsedBody,
|
|
927
|
+
exceptionCtor: M2ServiceException_1.M2ServiceException,
|
|
928
|
+
errorCode,
|
|
1248
929
|
});
|
|
1249
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1250
930
|
}
|
|
1251
931
|
};
|
|
1252
932
|
const deserializeAws_restJson1CreateEnvironmentCommand = async (output, context) => {
|
|
1253
933
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1254
934
|
return deserializeAws_restJson1CreateEnvironmentCommandError(output, context);
|
|
1255
935
|
}
|
|
1256
|
-
const contents = {
|
|
936
|
+
const contents = map({
|
|
1257
937
|
$metadata: deserializeMetadata(output),
|
|
1258
|
-
|
|
1259
|
-
};
|
|
938
|
+
});
|
|
1260
939
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1261
|
-
if (data.environmentId
|
|
940
|
+
if (data.environmentId != null) {
|
|
1262
941
|
contents.environmentId = (0, smithy_client_1.expectString)(data.environmentId);
|
|
1263
942
|
}
|
|
1264
|
-
return
|
|
943
|
+
return contents;
|
|
1265
944
|
};
|
|
1266
945
|
exports.deserializeAws_restJson1CreateEnvironmentCommand = deserializeAws_restJson1CreateEnvironmentCommand;
|
|
1267
946
|
const deserializeAws_restJson1CreateEnvironmentCommandError = async (output, context) => {
|
|
@@ -1269,7 +948,6 @@ const deserializeAws_restJson1CreateEnvironmentCommandError = async (output, con
|
|
|
1269
948
|
...output,
|
|
1270
949
|
body: await parseBody(output.body, context),
|
|
1271
950
|
};
|
|
1272
|
-
let response;
|
|
1273
951
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1274
952
|
switch (errorCode) {
|
|
1275
953
|
case "AccessDeniedException":
|
|
@@ -1292,25 +970,23 @@ const deserializeAws_restJson1CreateEnvironmentCommandError = async (output, con
|
|
|
1292
970
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1293
971
|
default:
|
|
1294
972
|
const parsedBody = parsedOutput.body;
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
$metadata,
|
|
973
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
974
|
+
output,
|
|
975
|
+
parsedBody,
|
|
976
|
+
exceptionCtor: M2ServiceException_1.M2ServiceException,
|
|
977
|
+
errorCode,
|
|
1301
978
|
});
|
|
1302
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1303
979
|
}
|
|
1304
980
|
};
|
|
1305
981
|
const deserializeAws_restJson1DeleteApplicationCommand = async (output, context) => {
|
|
1306
982
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1307
983
|
return deserializeAws_restJson1DeleteApplicationCommandError(output, context);
|
|
1308
984
|
}
|
|
1309
|
-
const contents = {
|
|
985
|
+
const contents = map({
|
|
1310
986
|
$metadata: deserializeMetadata(output),
|
|
1311
|
-
};
|
|
987
|
+
});
|
|
1312
988
|
await collectBody(output.body, context);
|
|
1313
|
-
return
|
|
989
|
+
return contents;
|
|
1314
990
|
};
|
|
1315
991
|
exports.deserializeAws_restJson1DeleteApplicationCommand = deserializeAws_restJson1DeleteApplicationCommand;
|
|
1316
992
|
const deserializeAws_restJson1DeleteApplicationCommandError = async (output, context) => {
|
|
@@ -1318,7 +994,6 @@ const deserializeAws_restJson1DeleteApplicationCommandError = async (output, con
|
|
|
1318
994
|
...output,
|
|
1319
995
|
body: await parseBody(output.body, context),
|
|
1320
996
|
};
|
|
1321
|
-
let response;
|
|
1322
997
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1323
998
|
switch (errorCode) {
|
|
1324
999
|
case "AccessDeniedException":
|
|
@@ -1338,25 +1013,23 @@ const deserializeAws_restJson1DeleteApplicationCommandError = async (output, con
|
|
|
1338
1013
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1339
1014
|
default:
|
|
1340
1015
|
const parsedBody = parsedOutput.body;
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
$metadata,
|
|
1016
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1017
|
+
output,
|
|
1018
|
+
parsedBody,
|
|
1019
|
+
exceptionCtor: M2ServiceException_1.M2ServiceException,
|
|
1020
|
+
errorCode,
|
|
1347
1021
|
});
|
|
1348
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1349
1022
|
}
|
|
1350
1023
|
};
|
|
1351
1024
|
const deserializeAws_restJson1DeleteApplicationFromEnvironmentCommand = async (output, context) => {
|
|
1352
1025
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1353
1026
|
return deserializeAws_restJson1DeleteApplicationFromEnvironmentCommandError(output, context);
|
|
1354
1027
|
}
|
|
1355
|
-
const contents = {
|
|
1028
|
+
const contents = map({
|
|
1356
1029
|
$metadata: deserializeMetadata(output),
|
|
1357
|
-
};
|
|
1030
|
+
});
|
|
1358
1031
|
await collectBody(output.body, context);
|
|
1359
|
-
return
|
|
1032
|
+
return contents;
|
|
1360
1033
|
};
|
|
1361
1034
|
exports.deserializeAws_restJson1DeleteApplicationFromEnvironmentCommand = deserializeAws_restJson1DeleteApplicationFromEnvironmentCommand;
|
|
1362
1035
|
const deserializeAws_restJson1DeleteApplicationFromEnvironmentCommandError = async (output, context) => {
|
|
@@ -1364,7 +1037,6 @@ const deserializeAws_restJson1DeleteApplicationFromEnvironmentCommandError = asy
|
|
|
1364
1037
|
...output,
|
|
1365
1038
|
body: await parseBody(output.body, context),
|
|
1366
1039
|
};
|
|
1367
|
-
let response;
|
|
1368
1040
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1369
1041
|
switch (errorCode) {
|
|
1370
1042
|
case "AccessDeniedException":
|
|
@@ -1387,25 +1059,23 @@ const deserializeAws_restJson1DeleteApplicationFromEnvironmentCommandError = asy
|
|
|
1387
1059
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1388
1060
|
default:
|
|
1389
1061
|
const parsedBody = parsedOutput.body;
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
$metadata,
|
|
1062
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1063
|
+
output,
|
|
1064
|
+
parsedBody,
|
|
1065
|
+
exceptionCtor: M2ServiceException_1.M2ServiceException,
|
|
1066
|
+
errorCode,
|
|
1396
1067
|
});
|
|
1397
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1398
1068
|
}
|
|
1399
1069
|
};
|
|
1400
1070
|
const deserializeAws_restJson1DeleteEnvironmentCommand = async (output, context) => {
|
|
1401
1071
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1402
1072
|
return deserializeAws_restJson1DeleteEnvironmentCommandError(output, context);
|
|
1403
1073
|
}
|
|
1404
|
-
const contents = {
|
|
1074
|
+
const contents = map({
|
|
1405
1075
|
$metadata: deserializeMetadata(output),
|
|
1406
|
-
};
|
|
1076
|
+
});
|
|
1407
1077
|
await collectBody(output.body, context);
|
|
1408
|
-
return
|
|
1078
|
+
return contents;
|
|
1409
1079
|
};
|
|
1410
1080
|
exports.deserializeAws_restJson1DeleteEnvironmentCommand = deserializeAws_restJson1DeleteEnvironmentCommand;
|
|
1411
1081
|
const deserializeAws_restJson1DeleteEnvironmentCommandError = async (output, context) => {
|
|
@@ -1413,7 +1083,6 @@ const deserializeAws_restJson1DeleteEnvironmentCommandError = async (output, con
|
|
|
1413
1083
|
...output,
|
|
1414
1084
|
body: await parseBody(output.body, context),
|
|
1415
1085
|
};
|
|
1416
|
-
let response;
|
|
1417
1086
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1418
1087
|
switch (errorCode) {
|
|
1419
1088
|
case "AccessDeniedException":
|
|
@@ -1433,97 +1102,77 @@ const deserializeAws_restJson1DeleteEnvironmentCommandError = async (output, con
|
|
|
1433
1102
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1434
1103
|
default:
|
|
1435
1104
|
const parsedBody = parsedOutput.body;
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
$metadata,
|
|
1105
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1106
|
+
output,
|
|
1107
|
+
parsedBody,
|
|
1108
|
+
exceptionCtor: M2ServiceException_1.M2ServiceException,
|
|
1109
|
+
errorCode,
|
|
1442
1110
|
});
|
|
1443
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1444
1111
|
}
|
|
1445
1112
|
};
|
|
1446
1113
|
const deserializeAws_restJson1GetApplicationCommand = async (output, context) => {
|
|
1447
1114
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1448
1115
|
return deserializeAws_restJson1GetApplicationCommandError(output, context);
|
|
1449
1116
|
}
|
|
1450
|
-
const contents = {
|
|
1117
|
+
const contents = map({
|
|
1451
1118
|
$metadata: deserializeMetadata(output),
|
|
1452
|
-
|
|
1453
|
-
applicationId: undefined,
|
|
1454
|
-
creationTime: undefined,
|
|
1455
|
-
deployedVersion: undefined,
|
|
1456
|
-
description: undefined,
|
|
1457
|
-
engineType: undefined,
|
|
1458
|
-
environmentId: undefined,
|
|
1459
|
-
lastStartTime: undefined,
|
|
1460
|
-
latestVersion: undefined,
|
|
1461
|
-
listenerArns: undefined,
|
|
1462
|
-
listenerPorts: undefined,
|
|
1463
|
-
loadBalancerDnsName: undefined,
|
|
1464
|
-
logGroups: undefined,
|
|
1465
|
-
name: undefined,
|
|
1466
|
-
status: undefined,
|
|
1467
|
-
statusReason: undefined,
|
|
1468
|
-
tags: undefined,
|
|
1469
|
-
targetGroupArns: undefined,
|
|
1470
|
-
};
|
|
1119
|
+
});
|
|
1471
1120
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1472
|
-
if (data.applicationArn
|
|
1121
|
+
if (data.applicationArn != null) {
|
|
1473
1122
|
contents.applicationArn = (0, smithy_client_1.expectString)(data.applicationArn);
|
|
1474
1123
|
}
|
|
1475
|
-
if (data.applicationId
|
|
1124
|
+
if (data.applicationId != null) {
|
|
1476
1125
|
contents.applicationId = (0, smithy_client_1.expectString)(data.applicationId);
|
|
1477
1126
|
}
|
|
1478
|
-
if (data.creationTime
|
|
1127
|
+
if (data.creationTime != null) {
|
|
1479
1128
|
contents.creationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.creationTime)));
|
|
1480
1129
|
}
|
|
1481
|
-
if (data.deployedVersion
|
|
1130
|
+
if (data.deployedVersion != null) {
|
|
1482
1131
|
contents.deployedVersion = deserializeAws_restJson1DeployedVersionSummary(data.deployedVersion, context);
|
|
1483
1132
|
}
|
|
1484
|
-
if (data.description
|
|
1133
|
+
if (data.description != null) {
|
|
1485
1134
|
contents.description = (0, smithy_client_1.expectString)(data.description);
|
|
1486
1135
|
}
|
|
1487
|
-
if (data.engineType
|
|
1136
|
+
if (data.engineType != null) {
|
|
1488
1137
|
contents.engineType = (0, smithy_client_1.expectString)(data.engineType);
|
|
1489
1138
|
}
|
|
1490
|
-
if (data.environmentId
|
|
1139
|
+
if (data.environmentId != null) {
|
|
1491
1140
|
contents.environmentId = (0, smithy_client_1.expectString)(data.environmentId);
|
|
1492
1141
|
}
|
|
1493
|
-
if (data.lastStartTime
|
|
1142
|
+
if (data.lastStartTime != null) {
|
|
1494
1143
|
contents.lastStartTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.lastStartTime)));
|
|
1495
1144
|
}
|
|
1496
|
-
if (data.latestVersion
|
|
1145
|
+
if (data.latestVersion != null) {
|
|
1497
1146
|
contents.latestVersion = deserializeAws_restJson1ApplicationVersionSummary(data.latestVersion, context);
|
|
1498
1147
|
}
|
|
1499
|
-
if (data.listenerArns
|
|
1148
|
+
if (data.listenerArns != null) {
|
|
1500
1149
|
contents.listenerArns = deserializeAws_restJson1ArnList(data.listenerArns, context);
|
|
1501
1150
|
}
|
|
1502
|
-
if (data.listenerPorts
|
|
1151
|
+
if (data.listenerPorts != null) {
|
|
1503
1152
|
contents.listenerPorts = deserializeAws_restJson1PortList(data.listenerPorts, context);
|
|
1504
1153
|
}
|
|
1505
|
-
if (data.loadBalancerDnsName
|
|
1154
|
+
if (data.loadBalancerDnsName != null) {
|
|
1506
1155
|
contents.loadBalancerDnsName = (0, smithy_client_1.expectString)(data.loadBalancerDnsName);
|
|
1507
1156
|
}
|
|
1508
|
-
if (data.logGroups
|
|
1157
|
+
if (data.logGroups != null) {
|
|
1509
1158
|
contents.logGroups = deserializeAws_restJson1LogGroupSummaries(data.logGroups, context);
|
|
1510
1159
|
}
|
|
1511
|
-
if (data.name
|
|
1160
|
+
if (data.name != null) {
|
|
1512
1161
|
contents.name = (0, smithy_client_1.expectString)(data.name);
|
|
1513
1162
|
}
|
|
1514
|
-
if (data.status
|
|
1163
|
+
if (data.status != null) {
|
|
1515
1164
|
contents.status = (0, smithy_client_1.expectString)(data.status);
|
|
1516
1165
|
}
|
|
1517
|
-
if (data.statusReason
|
|
1166
|
+
if (data.statusReason != null) {
|
|
1518
1167
|
contents.statusReason = (0, smithy_client_1.expectString)(data.statusReason);
|
|
1519
1168
|
}
|
|
1520
|
-
if (data.tags
|
|
1169
|
+
if (data.tags != null) {
|
|
1521
1170
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
1522
1171
|
}
|
|
1523
|
-
if (data.targetGroupArns
|
|
1172
|
+
if (data.targetGroupArns != null) {
|
|
1524
1173
|
contents.targetGroupArns = deserializeAws_restJson1ArnList(data.targetGroupArns, context);
|
|
1525
1174
|
}
|
|
1526
|
-
return
|
|
1175
|
+
return contents;
|
|
1527
1176
|
};
|
|
1528
1177
|
exports.deserializeAws_restJson1GetApplicationCommand = deserializeAws_restJson1GetApplicationCommand;
|
|
1529
1178
|
const deserializeAws_restJson1GetApplicationCommandError = async (output, context) => {
|
|
@@ -1531,7 +1180,6 @@ const deserializeAws_restJson1GetApplicationCommandError = async (output, contex
|
|
|
1531
1180
|
...output,
|
|
1532
1181
|
body: await parseBody(output.body, context),
|
|
1533
1182
|
};
|
|
1534
|
-
let response;
|
|
1535
1183
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1536
1184
|
switch (errorCode) {
|
|
1537
1185
|
case "AccessDeniedException":
|
|
@@ -1551,53 +1199,44 @@ const deserializeAws_restJson1GetApplicationCommandError = async (output, contex
|
|
|
1551
1199
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1552
1200
|
default:
|
|
1553
1201
|
const parsedBody = parsedOutput.body;
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
$metadata,
|
|
1202
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1203
|
+
output,
|
|
1204
|
+
parsedBody,
|
|
1205
|
+
exceptionCtor: M2ServiceException_1.M2ServiceException,
|
|
1206
|
+
errorCode,
|
|
1560
1207
|
});
|
|
1561
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1562
1208
|
}
|
|
1563
1209
|
};
|
|
1564
1210
|
const deserializeAws_restJson1GetApplicationVersionCommand = async (output, context) => {
|
|
1565
1211
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1566
1212
|
return deserializeAws_restJson1GetApplicationVersionCommandError(output, context);
|
|
1567
1213
|
}
|
|
1568
|
-
const contents = {
|
|
1214
|
+
const contents = map({
|
|
1569
1215
|
$metadata: deserializeMetadata(output),
|
|
1570
|
-
|
|
1571
|
-
creationTime: undefined,
|
|
1572
|
-
definitionContent: undefined,
|
|
1573
|
-
description: undefined,
|
|
1574
|
-
name: undefined,
|
|
1575
|
-
status: undefined,
|
|
1576
|
-
statusReason: undefined,
|
|
1577
|
-
};
|
|
1216
|
+
});
|
|
1578
1217
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1579
|
-
if (data.applicationVersion
|
|
1218
|
+
if (data.applicationVersion != null) {
|
|
1580
1219
|
contents.applicationVersion = (0, smithy_client_1.expectInt32)(data.applicationVersion);
|
|
1581
1220
|
}
|
|
1582
|
-
if (data.creationTime
|
|
1221
|
+
if (data.creationTime != null) {
|
|
1583
1222
|
contents.creationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.creationTime)));
|
|
1584
1223
|
}
|
|
1585
|
-
if (data.definitionContent
|
|
1224
|
+
if (data.definitionContent != null) {
|
|
1586
1225
|
contents.definitionContent = (0, smithy_client_1.expectString)(data.definitionContent);
|
|
1587
1226
|
}
|
|
1588
|
-
if (data.description
|
|
1227
|
+
if (data.description != null) {
|
|
1589
1228
|
contents.description = (0, smithy_client_1.expectString)(data.description);
|
|
1590
1229
|
}
|
|
1591
|
-
if (data.name
|
|
1230
|
+
if (data.name != null) {
|
|
1592
1231
|
contents.name = (0, smithy_client_1.expectString)(data.name);
|
|
1593
1232
|
}
|
|
1594
|
-
if (data.status
|
|
1233
|
+
if (data.status != null) {
|
|
1595
1234
|
contents.status = (0, smithy_client_1.expectString)(data.status);
|
|
1596
1235
|
}
|
|
1597
|
-
if (data.statusReason
|
|
1236
|
+
if (data.statusReason != null) {
|
|
1598
1237
|
contents.statusReason = (0, smithy_client_1.expectString)(data.statusReason);
|
|
1599
1238
|
}
|
|
1600
|
-
return
|
|
1239
|
+
return contents;
|
|
1601
1240
|
};
|
|
1602
1241
|
exports.deserializeAws_restJson1GetApplicationVersionCommand = deserializeAws_restJson1GetApplicationVersionCommand;
|
|
1603
1242
|
const deserializeAws_restJson1GetApplicationVersionCommandError = async (output, context) => {
|
|
@@ -1605,7 +1244,6 @@ const deserializeAws_restJson1GetApplicationVersionCommandError = async (output,
|
|
|
1605
1244
|
...output,
|
|
1606
1245
|
body: await parseBody(output.body, context),
|
|
1607
1246
|
};
|
|
1608
|
-
let response;
|
|
1609
1247
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1610
1248
|
switch (errorCode) {
|
|
1611
1249
|
case "AccessDeniedException":
|
|
@@ -1625,65 +1263,53 @@ const deserializeAws_restJson1GetApplicationVersionCommandError = async (output,
|
|
|
1625
1263
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1626
1264
|
default:
|
|
1627
1265
|
const parsedBody = parsedOutput.body;
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
$metadata,
|
|
1266
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1267
|
+
output,
|
|
1268
|
+
parsedBody,
|
|
1269
|
+
exceptionCtor: M2ServiceException_1.M2ServiceException,
|
|
1270
|
+
errorCode,
|
|
1634
1271
|
});
|
|
1635
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1636
1272
|
}
|
|
1637
1273
|
};
|
|
1638
1274
|
const deserializeAws_restJson1GetBatchJobExecutionCommand = async (output, context) => {
|
|
1639
1275
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1640
1276
|
return deserializeAws_restJson1GetBatchJobExecutionCommandError(output, context);
|
|
1641
1277
|
}
|
|
1642
|
-
const contents = {
|
|
1278
|
+
const contents = map({
|
|
1643
1279
|
$metadata: deserializeMetadata(output),
|
|
1644
|
-
|
|
1645
|
-
endTime: undefined,
|
|
1646
|
-
executionId: undefined,
|
|
1647
|
-
jobId: undefined,
|
|
1648
|
-
jobName: undefined,
|
|
1649
|
-
jobType: undefined,
|
|
1650
|
-
jobUser: undefined,
|
|
1651
|
-
startTime: undefined,
|
|
1652
|
-
status: undefined,
|
|
1653
|
-
statusReason: undefined,
|
|
1654
|
-
};
|
|
1280
|
+
});
|
|
1655
1281
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1656
|
-
if (data.applicationId
|
|
1282
|
+
if (data.applicationId != null) {
|
|
1657
1283
|
contents.applicationId = (0, smithy_client_1.expectString)(data.applicationId);
|
|
1658
1284
|
}
|
|
1659
|
-
if (data.endTime
|
|
1285
|
+
if (data.endTime != null) {
|
|
1660
1286
|
contents.endTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.endTime)));
|
|
1661
1287
|
}
|
|
1662
|
-
if (data.executionId
|
|
1288
|
+
if (data.executionId != null) {
|
|
1663
1289
|
contents.executionId = (0, smithy_client_1.expectString)(data.executionId);
|
|
1664
1290
|
}
|
|
1665
|
-
if (data.jobId
|
|
1291
|
+
if (data.jobId != null) {
|
|
1666
1292
|
contents.jobId = (0, smithy_client_1.expectString)(data.jobId);
|
|
1667
1293
|
}
|
|
1668
|
-
if (data.jobName
|
|
1294
|
+
if (data.jobName != null) {
|
|
1669
1295
|
contents.jobName = (0, smithy_client_1.expectString)(data.jobName);
|
|
1670
1296
|
}
|
|
1671
|
-
if (data.jobType
|
|
1297
|
+
if (data.jobType != null) {
|
|
1672
1298
|
contents.jobType = (0, smithy_client_1.expectString)(data.jobType);
|
|
1673
1299
|
}
|
|
1674
|
-
if (data.jobUser
|
|
1300
|
+
if (data.jobUser != null) {
|
|
1675
1301
|
contents.jobUser = (0, smithy_client_1.expectString)(data.jobUser);
|
|
1676
1302
|
}
|
|
1677
|
-
if (data.startTime
|
|
1303
|
+
if (data.startTime != null) {
|
|
1678
1304
|
contents.startTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.startTime)));
|
|
1679
1305
|
}
|
|
1680
|
-
if (data.status
|
|
1306
|
+
if (data.status != null) {
|
|
1681
1307
|
contents.status = (0, smithy_client_1.expectString)(data.status);
|
|
1682
1308
|
}
|
|
1683
|
-
if (data.statusReason
|
|
1309
|
+
if (data.statusReason != null) {
|
|
1684
1310
|
contents.statusReason = (0, smithy_client_1.expectString)(data.statusReason);
|
|
1685
1311
|
}
|
|
1686
|
-
return
|
|
1312
|
+
return contents;
|
|
1687
1313
|
};
|
|
1688
1314
|
exports.deserializeAws_restJson1GetBatchJobExecutionCommand = deserializeAws_restJson1GetBatchJobExecutionCommand;
|
|
1689
1315
|
const deserializeAws_restJson1GetBatchJobExecutionCommandError = async (output, context) => {
|
|
@@ -1691,7 +1317,6 @@ const deserializeAws_restJson1GetBatchJobExecutionCommandError = async (output,
|
|
|
1691
1317
|
...output,
|
|
1692
1318
|
body: await parseBody(output.body, context),
|
|
1693
1319
|
};
|
|
1694
|
-
let response;
|
|
1695
1320
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1696
1321
|
switch (errorCode) {
|
|
1697
1322
|
case "AccessDeniedException":
|
|
@@ -1711,57 +1336,47 @@ const deserializeAws_restJson1GetBatchJobExecutionCommandError = async (output,
|
|
|
1711
1336
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1712
1337
|
default:
|
|
1713
1338
|
const parsedBody = parsedOutput.body;
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
$metadata,
|
|
1339
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1340
|
+
output,
|
|
1341
|
+
parsedBody,
|
|
1342
|
+
exceptionCtor: M2ServiceException_1.M2ServiceException,
|
|
1343
|
+
errorCode,
|
|
1720
1344
|
});
|
|
1721
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1722
1345
|
}
|
|
1723
1346
|
};
|
|
1724
1347
|
const deserializeAws_restJson1GetDataSetDetailsCommand = async (output, context) => {
|
|
1725
1348
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1726
1349
|
return deserializeAws_restJson1GetDataSetDetailsCommandError(output, context);
|
|
1727
1350
|
}
|
|
1728
|
-
const contents = {
|
|
1351
|
+
const contents = map({
|
|
1729
1352
|
$metadata: deserializeMetadata(output),
|
|
1730
|
-
|
|
1731
|
-
creationTime: undefined,
|
|
1732
|
-
dataSetName: undefined,
|
|
1733
|
-
dataSetOrg: undefined,
|
|
1734
|
-
lastReferencedTime: undefined,
|
|
1735
|
-
lastUpdatedTime: undefined,
|
|
1736
|
-
location: undefined,
|
|
1737
|
-
recordLength: undefined,
|
|
1738
|
-
};
|
|
1353
|
+
});
|
|
1739
1354
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1740
|
-
if (data.blocksize
|
|
1355
|
+
if (data.blocksize != null) {
|
|
1741
1356
|
contents.blocksize = (0, smithy_client_1.expectInt32)(data.blocksize);
|
|
1742
1357
|
}
|
|
1743
|
-
if (data.creationTime
|
|
1358
|
+
if (data.creationTime != null) {
|
|
1744
1359
|
contents.creationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.creationTime)));
|
|
1745
1360
|
}
|
|
1746
|
-
if (data.dataSetName
|
|
1361
|
+
if (data.dataSetName != null) {
|
|
1747
1362
|
contents.dataSetName = (0, smithy_client_1.expectString)(data.dataSetName);
|
|
1748
1363
|
}
|
|
1749
|
-
if (data.dataSetOrg
|
|
1364
|
+
if (data.dataSetOrg != null) {
|
|
1750
1365
|
contents.dataSetOrg = deserializeAws_restJson1DatasetDetailOrgAttributes((0, smithy_client_1.expectUnion)(data.dataSetOrg), context);
|
|
1751
1366
|
}
|
|
1752
|
-
if (data.lastReferencedTime
|
|
1367
|
+
if (data.lastReferencedTime != null) {
|
|
1753
1368
|
contents.lastReferencedTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.lastReferencedTime)));
|
|
1754
1369
|
}
|
|
1755
|
-
if (data.lastUpdatedTime
|
|
1370
|
+
if (data.lastUpdatedTime != null) {
|
|
1756
1371
|
contents.lastUpdatedTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.lastUpdatedTime)));
|
|
1757
1372
|
}
|
|
1758
|
-
if (data.location
|
|
1373
|
+
if (data.location != null) {
|
|
1759
1374
|
contents.location = (0, smithy_client_1.expectString)(data.location);
|
|
1760
1375
|
}
|
|
1761
|
-
if (data.recordLength
|
|
1376
|
+
if (data.recordLength != null) {
|
|
1762
1377
|
contents.recordLength = (0, smithy_client_1.expectInt32)(data.recordLength);
|
|
1763
1378
|
}
|
|
1764
|
-
return
|
|
1379
|
+
return contents;
|
|
1765
1380
|
};
|
|
1766
1381
|
exports.deserializeAws_restJson1GetDataSetDetailsCommand = deserializeAws_restJson1GetDataSetDetailsCommand;
|
|
1767
1382
|
const deserializeAws_restJson1GetDataSetDetailsCommandError = async (output, context) => {
|
|
@@ -1769,7 +1384,6 @@ const deserializeAws_restJson1GetDataSetDetailsCommandError = async (output, con
|
|
|
1769
1384
|
...output,
|
|
1770
1385
|
body: await parseBody(output.body, context),
|
|
1771
1386
|
};
|
|
1772
|
-
let response;
|
|
1773
1387
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1774
1388
|
switch (errorCode) {
|
|
1775
1389
|
case "AccessDeniedException":
|
|
@@ -1789,37 +1403,32 @@ const deserializeAws_restJson1GetDataSetDetailsCommandError = async (output, con
|
|
|
1789
1403
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1790
1404
|
default:
|
|
1791
1405
|
const parsedBody = parsedOutput.body;
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
$metadata,
|
|
1406
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1407
|
+
output,
|
|
1408
|
+
parsedBody,
|
|
1409
|
+
exceptionCtor: M2ServiceException_1.M2ServiceException,
|
|
1410
|
+
errorCode,
|
|
1798
1411
|
});
|
|
1799
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1800
1412
|
}
|
|
1801
1413
|
};
|
|
1802
1414
|
const deserializeAws_restJson1GetDataSetImportTaskCommand = async (output, context) => {
|
|
1803
1415
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1804
1416
|
return deserializeAws_restJson1GetDataSetImportTaskCommandError(output, context);
|
|
1805
1417
|
}
|
|
1806
|
-
const contents = {
|
|
1418
|
+
const contents = map({
|
|
1807
1419
|
$metadata: deserializeMetadata(output),
|
|
1808
|
-
|
|
1809
|
-
summary: undefined,
|
|
1810
|
-
taskId: undefined,
|
|
1811
|
-
};
|
|
1420
|
+
});
|
|
1812
1421
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1813
|
-
if (data.status
|
|
1422
|
+
if (data.status != null) {
|
|
1814
1423
|
contents.status = (0, smithy_client_1.expectString)(data.status);
|
|
1815
1424
|
}
|
|
1816
|
-
if (data.summary
|
|
1425
|
+
if (data.summary != null) {
|
|
1817
1426
|
contents.summary = deserializeAws_restJson1DataSetImportSummary(data.summary, context);
|
|
1818
1427
|
}
|
|
1819
|
-
if (data.taskId
|
|
1428
|
+
if (data.taskId != null) {
|
|
1820
1429
|
contents.taskId = (0, smithy_client_1.expectString)(data.taskId);
|
|
1821
1430
|
}
|
|
1822
|
-
return
|
|
1431
|
+
return contents;
|
|
1823
1432
|
};
|
|
1824
1433
|
exports.deserializeAws_restJson1GetDataSetImportTaskCommand = deserializeAws_restJson1GetDataSetImportTaskCommand;
|
|
1825
1434
|
const deserializeAws_restJson1GetDataSetImportTaskCommandError = async (output, context) => {
|
|
@@ -1827,7 +1436,6 @@ const deserializeAws_restJson1GetDataSetImportTaskCommandError = async (output,
|
|
|
1827
1436
|
...output,
|
|
1828
1437
|
body: await parseBody(output.body, context),
|
|
1829
1438
|
};
|
|
1830
|
-
let response;
|
|
1831
1439
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1832
1440
|
switch (errorCode) {
|
|
1833
1441
|
case "AccessDeniedException":
|
|
@@ -1847,53 +1455,44 @@ const deserializeAws_restJson1GetDataSetImportTaskCommandError = async (output,
|
|
|
1847
1455
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1848
1456
|
default:
|
|
1849
1457
|
const parsedBody = parsedOutput.body;
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
$metadata,
|
|
1458
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1459
|
+
output,
|
|
1460
|
+
parsedBody,
|
|
1461
|
+
exceptionCtor: M2ServiceException_1.M2ServiceException,
|
|
1462
|
+
errorCode,
|
|
1856
1463
|
});
|
|
1857
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1858
1464
|
}
|
|
1859
1465
|
};
|
|
1860
1466
|
const deserializeAws_restJson1GetDeploymentCommand = async (output, context) => {
|
|
1861
1467
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1862
1468
|
return deserializeAws_restJson1GetDeploymentCommandError(output, context);
|
|
1863
1469
|
}
|
|
1864
|
-
const contents = {
|
|
1470
|
+
const contents = map({
|
|
1865
1471
|
$metadata: deserializeMetadata(output),
|
|
1866
|
-
|
|
1867
|
-
applicationVersion: undefined,
|
|
1868
|
-
creationTime: undefined,
|
|
1869
|
-
deploymentId: undefined,
|
|
1870
|
-
environmentId: undefined,
|
|
1871
|
-
status: undefined,
|
|
1872
|
-
statusReason: undefined,
|
|
1873
|
-
};
|
|
1472
|
+
});
|
|
1874
1473
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1875
|
-
if (data.applicationId
|
|
1474
|
+
if (data.applicationId != null) {
|
|
1876
1475
|
contents.applicationId = (0, smithy_client_1.expectString)(data.applicationId);
|
|
1877
1476
|
}
|
|
1878
|
-
if (data.applicationVersion
|
|
1477
|
+
if (data.applicationVersion != null) {
|
|
1879
1478
|
contents.applicationVersion = (0, smithy_client_1.expectInt32)(data.applicationVersion);
|
|
1880
1479
|
}
|
|
1881
|
-
if (data.creationTime
|
|
1480
|
+
if (data.creationTime != null) {
|
|
1882
1481
|
contents.creationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.creationTime)));
|
|
1883
1482
|
}
|
|
1884
|
-
if (data.deploymentId
|
|
1483
|
+
if (data.deploymentId != null) {
|
|
1885
1484
|
contents.deploymentId = (0, smithy_client_1.expectString)(data.deploymentId);
|
|
1886
1485
|
}
|
|
1887
|
-
if (data.environmentId
|
|
1486
|
+
if (data.environmentId != null) {
|
|
1888
1487
|
contents.environmentId = (0, smithy_client_1.expectString)(data.environmentId);
|
|
1889
1488
|
}
|
|
1890
|
-
if (data.status
|
|
1489
|
+
if (data.status != null) {
|
|
1891
1490
|
contents.status = (0, smithy_client_1.expectString)(data.status);
|
|
1892
1491
|
}
|
|
1893
|
-
if (data.statusReason
|
|
1492
|
+
if (data.statusReason != null) {
|
|
1894
1493
|
contents.statusReason = (0, smithy_client_1.expectString)(data.statusReason);
|
|
1895
1494
|
}
|
|
1896
|
-
return
|
|
1495
|
+
return contents;
|
|
1897
1496
|
};
|
|
1898
1497
|
exports.deserializeAws_restJson1GetDeploymentCommand = deserializeAws_restJson1GetDeploymentCommand;
|
|
1899
1498
|
const deserializeAws_restJson1GetDeploymentCommandError = async (output, context) => {
|
|
@@ -1901,7 +1500,6 @@ const deserializeAws_restJson1GetDeploymentCommandError = async (output, context
|
|
|
1901
1500
|
...output,
|
|
1902
1501
|
body: await parseBody(output.body, context),
|
|
1903
1502
|
};
|
|
1904
|
-
let response;
|
|
1905
1503
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1906
1504
|
switch (errorCode) {
|
|
1907
1505
|
case "AccessDeniedException":
|
|
@@ -1921,109 +1519,86 @@ const deserializeAws_restJson1GetDeploymentCommandError = async (output, context
|
|
|
1921
1519
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1922
1520
|
default:
|
|
1923
1521
|
const parsedBody = parsedOutput.body;
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
$metadata,
|
|
1522
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1523
|
+
output,
|
|
1524
|
+
parsedBody,
|
|
1525
|
+
exceptionCtor: M2ServiceException_1.M2ServiceException,
|
|
1526
|
+
errorCode,
|
|
1930
1527
|
});
|
|
1931
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1932
1528
|
}
|
|
1933
1529
|
};
|
|
1934
1530
|
const deserializeAws_restJson1GetEnvironmentCommand = async (output, context) => {
|
|
1935
1531
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1936
1532
|
return deserializeAws_restJson1GetEnvironmentCommandError(output, context);
|
|
1937
1533
|
}
|
|
1938
|
-
const contents = {
|
|
1534
|
+
const contents = map({
|
|
1939
1535
|
$metadata: deserializeMetadata(output),
|
|
1940
|
-
|
|
1941
|
-
creationTime: undefined,
|
|
1942
|
-
description: undefined,
|
|
1943
|
-
engineType: undefined,
|
|
1944
|
-
engineVersion: undefined,
|
|
1945
|
-
environmentArn: undefined,
|
|
1946
|
-
environmentId: undefined,
|
|
1947
|
-
highAvailabilityConfig: undefined,
|
|
1948
|
-
instanceType: undefined,
|
|
1949
|
-
loadBalancerArn: undefined,
|
|
1950
|
-
name: undefined,
|
|
1951
|
-
pendingMaintenance: undefined,
|
|
1952
|
-
preferredMaintenanceWindow: undefined,
|
|
1953
|
-
publiclyAccessible: undefined,
|
|
1954
|
-
securityGroupIds: undefined,
|
|
1955
|
-
status: undefined,
|
|
1956
|
-
statusReason: undefined,
|
|
1957
|
-
storageConfigurations: undefined,
|
|
1958
|
-
subnetIds: undefined,
|
|
1959
|
-
tags: undefined,
|
|
1960
|
-
vpcId: undefined,
|
|
1961
|
-
};
|
|
1536
|
+
});
|
|
1962
1537
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1963
|
-
if (data.actualCapacity
|
|
1538
|
+
if (data.actualCapacity != null) {
|
|
1964
1539
|
contents.actualCapacity = (0, smithy_client_1.expectInt32)(data.actualCapacity);
|
|
1965
1540
|
}
|
|
1966
|
-
if (data.creationTime
|
|
1541
|
+
if (data.creationTime != null) {
|
|
1967
1542
|
contents.creationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.creationTime)));
|
|
1968
1543
|
}
|
|
1969
|
-
if (data.description
|
|
1544
|
+
if (data.description != null) {
|
|
1970
1545
|
contents.description = (0, smithy_client_1.expectString)(data.description);
|
|
1971
1546
|
}
|
|
1972
|
-
if (data.engineType
|
|
1547
|
+
if (data.engineType != null) {
|
|
1973
1548
|
contents.engineType = (0, smithy_client_1.expectString)(data.engineType);
|
|
1974
1549
|
}
|
|
1975
|
-
if (data.engineVersion
|
|
1550
|
+
if (data.engineVersion != null) {
|
|
1976
1551
|
contents.engineVersion = (0, smithy_client_1.expectString)(data.engineVersion);
|
|
1977
1552
|
}
|
|
1978
|
-
if (data.environmentArn
|
|
1553
|
+
if (data.environmentArn != null) {
|
|
1979
1554
|
contents.environmentArn = (0, smithy_client_1.expectString)(data.environmentArn);
|
|
1980
1555
|
}
|
|
1981
|
-
if (data.environmentId
|
|
1556
|
+
if (data.environmentId != null) {
|
|
1982
1557
|
contents.environmentId = (0, smithy_client_1.expectString)(data.environmentId);
|
|
1983
1558
|
}
|
|
1984
|
-
if (data.highAvailabilityConfig
|
|
1559
|
+
if (data.highAvailabilityConfig != null) {
|
|
1985
1560
|
contents.highAvailabilityConfig = deserializeAws_restJson1HighAvailabilityConfig(data.highAvailabilityConfig, context);
|
|
1986
1561
|
}
|
|
1987
|
-
if (data.instanceType
|
|
1562
|
+
if (data.instanceType != null) {
|
|
1988
1563
|
contents.instanceType = (0, smithy_client_1.expectString)(data.instanceType);
|
|
1989
1564
|
}
|
|
1990
|
-
if (data.loadBalancerArn
|
|
1565
|
+
if (data.loadBalancerArn != null) {
|
|
1991
1566
|
contents.loadBalancerArn = (0, smithy_client_1.expectString)(data.loadBalancerArn);
|
|
1992
1567
|
}
|
|
1993
|
-
if (data.name
|
|
1568
|
+
if (data.name != null) {
|
|
1994
1569
|
contents.name = (0, smithy_client_1.expectString)(data.name);
|
|
1995
1570
|
}
|
|
1996
|
-
if (data.pendingMaintenance
|
|
1571
|
+
if (data.pendingMaintenance != null) {
|
|
1997
1572
|
contents.pendingMaintenance = deserializeAws_restJson1PendingMaintenance(data.pendingMaintenance, context);
|
|
1998
1573
|
}
|
|
1999
|
-
if (data.preferredMaintenanceWindow
|
|
1574
|
+
if (data.preferredMaintenanceWindow != null) {
|
|
2000
1575
|
contents.preferredMaintenanceWindow = (0, smithy_client_1.expectString)(data.preferredMaintenanceWindow);
|
|
2001
1576
|
}
|
|
2002
|
-
if (data.publiclyAccessible
|
|
1577
|
+
if (data.publiclyAccessible != null) {
|
|
2003
1578
|
contents.publiclyAccessible = (0, smithy_client_1.expectBoolean)(data.publiclyAccessible);
|
|
2004
1579
|
}
|
|
2005
|
-
if (data.securityGroupIds
|
|
1580
|
+
if (data.securityGroupIds != null) {
|
|
2006
1581
|
contents.securityGroupIds = deserializeAws_restJson1String50List(data.securityGroupIds, context);
|
|
2007
1582
|
}
|
|
2008
|
-
if (data.status
|
|
1583
|
+
if (data.status != null) {
|
|
2009
1584
|
contents.status = (0, smithy_client_1.expectString)(data.status);
|
|
2010
1585
|
}
|
|
2011
|
-
if (data.statusReason
|
|
1586
|
+
if (data.statusReason != null) {
|
|
2012
1587
|
contents.statusReason = (0, smithy_client_1.expectString)(data.statusReason);
|
|
2013
1588
|
}
|
|
2014
|
-
if (data.storageConfigurations
|
|
1589
|
+
if (data.storageConfigurations != null) {
|
|
2015
1590
|
contents.storageConfigurations = deserializeAws_restJson1StorageConfigurationList(data.storageConfigurations, context);
|
|
2016
1591
|
}
|
|
2017
|
-
if (data.subnetIds
|
|
1592
|
+
if (data.subnetIds != null) {
|
|
2018
1593
|
contents.subnetIds = deserializeAws_restJson1String50List(data.subnetIds, context);
|
|
2019
1594
|
}
|
|
2020
|
-
if (data.tags
|
|
1595
|
+
if (data.tags != null) {
|
|
2021
1596
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
2022
1597
|
}
|
|
2023
|
-
if (data.vpcId
|
|
1598
|
+
if (data.vpcId != null) {
|
|
2024
1599
|
contents.vpcId = (0, smithy_client_1.expectString)(data.vpcId);
|
|
2025
1600
|
}
|
|
2026
|
-
return
|
|
1601
|
+
return contents;
|
|
2027
1602
|
};
|
|
2028
1603
|
exports.deserializeAws_restJson1GetEnvironmentCommand = deserializeAws_restJson1GetEnvironmentCommand;
|
|
2029
1604
|
const deserializeAws_restJson1GetEnvironmentCommandError = async (output, context) => {
|
|
@@ -2031,7 +1606,6 @@ const deserializeAws_restJson1GetEnvironmentCommandError = async (output, contex
|
|
|
2031
1606
|
...output,
|
|
2032
1607
|
body: await parseBody(output.body, context),
|
|
2033
1608
|
};
|
|
2034
|
-
let response;
|
|
2035
1609
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2036
1610
|
switch (errorCode) {
|
|
2037
1611
|
case "AccessDeniedException":
|
|
@@ -2051,33 +1625,29 @@ const deserializeAws_restJson1GetEnvironmentCommandError = async (output, contex
|
|
|
2051
1625
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2052
1626
|
default:
|
|
2053
1627
|
const parsedBody = parsedOutput.body;
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
$metadata,
|
|
1628
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1629
|
+
output,
|
|
1630
|
+
parsedBody,
|
|
1631
|
+
exceptionCtor: M2ServiceException_1.M2ServiceException,
|
|
1632
|
+
errorCode,
|
|
2060
1633
|
});
|
|
2061
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2062
1634
|
}
|
|
2063
1635
|
};
|
|
2064
1636
|
const deserializeAws_restJson1ListApplicationsCommand = async (output, context) => {
|
|
2065
1637
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2066
1638
|
return deserializeAws_restJson1ListApplicationsCommandError(output, context);
|
|
2067
1639
|
}
|
|
2068
|
-
const contents = {
|
|
1640
|
+
const contents = map({
|
|
2069
1641
|
$metadata: deserializeMetadata(output),
|
|
2070
|
-
|
|
2071
|
-
nextToken: undefined,
|
|
2072
|
-
};
|
|
1642
|
+
});
|
|
2073
1643
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2074
|
-
if (data.applications
|
|
1644
|
+
if (data.applications != null) {
|
|
2075
1645
|
contents.applications = deserializeAws_restJson1ApplicationSummaryList(data.applications, context);
|
|
2076
1646
|
}
|
|
2077
|
-
if (data.nextToken
|
|
1647
|
+
if (data.nextToken != null) {
|
|
2078
1648
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
2079
1649
|
}
|
|
2080
|
-
return
|
|
1650
|
+
return contents;
|
|
2081
1651
|
};
|
|
2082
1652
|
exports.deserializeAws_restJson1ListApplicationsCommand = deserializeAws_restJson1ListApplicationsCommand;
|
|
2083
1653
|
const deserializeAws_restJson1ListApplicationsCommandError = async (output, context) => {
|
|
@@ -2085,7 +1655,6 @@ const deserializeAws_restJson1ListApplicationsCommandError = async (output, cont
|
|
|
2085
1655
|
...output,
|
|
2086
1656
|
body: await parseBody(output.body, context),
|
|
2087
1657
|
};
|
|
2088
|
-
let response;
|
|
2089
1658
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2090
1659
|
switch (errorCode) {
|
|
2091
1660
|
case "AccessDeniedException":
|
|
@@ -2102,33 +1671,29 @@ const deserializeAws_restJson1ListApplicationsCommandError = async (output, cont
|
|
|
2102
1671
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2103
1672
|
default:
|
|
2104
1673
|
const parsedBody = parsedOutput.body;
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
$metadata,
|
|
1674
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1675
|
+
output,
|
|
1676
|
+
parsedBody,
|
|
1677
|
+
exceptionCtor: M2ServiceException_1.M2ServiceException,
|
|
1678
|
+
errorCode,
|
|
2111
1679
|
});
|
|
2112
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2113
1680
|
}
|
|
2114
1681
|
};
|
|
2115
1682
|
const deserializeAws_restJson1ListApplicationVersionsCommand = async (output, context) => {
|
|
2116
1683
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2117
1684
|
return deserializeAws_restJson1ListApplicationVersionsCommandError(output, context);
|
|
2118
1685
|
}
|
|
2119
|
-
const contents = {
|
|
1686
|
+
const contents = map({
|
|
2120
1687
|
$metadata: deserializeMetadata(output),
|
|
2121
|
-
|
|
2122
|
-
nextToken: undefined,
|
|
2123
|
-
};
|
|
1688
|
+
});
|
|
2124
1689
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2125
|
-
if (data.applicationVersions
|
|
1690
|
+
if (data.applicationVersions != null) {
|
|
2126
1691
|
contents.applicationVersions = deserializeAws_restJson1ApplicationVersionSummaryList(data.applicationVersions, context);
|
|
2127
1692
|
}
|
|
2128
|
-
if (data.nextToken
|
|
1693
|
+
if (data.nextToken != null) {
|
|
2129
1694
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
2130
1695
|
}
|
|
2131
|
-
return
|
|
1696
|
+
return contents;
|
|
2132
1697
|
};
|
|
2133
1698
|
exports.deserializeAws_restJson1ListApplicationVersionsCommand = deserializeAws_restJson1ListApplicationVersionsCommand;
|
|
2134
1699
|
const deserializeAws_restJson1ListApplicationVersionsCommandError = async (output, context) => {
|
|
@@ -2136,7 +1701,6 @@ const deserializeAws_restJson1ListApplicationVersionsCommandError = async (outpu
|
|
|
2136
1701
|
...output,
|
|
2137
1702
|
body: await parseBody(output.body, context),
|
|
2138
1703
|
};
|
|
2139
|
-
let response;
|
|
2140
1704
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2141
1705
|
switch (errorCode) {
|
|
2142
1706
|
case "AccessDeniedException":
|
|
@@ -2156,33 +1720,29 @@ const deserializeAws_restJson1ListApplicationVersionsCommandError = async (outpu
|
|
|
2156
1720
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2157
1721
|
default:
|
|
2158
1722
|
const parsedBody = parsedOutput.body;
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
$metadata,
|
|
1723
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1724
|
+
output,
|
|
1725
|
+
parsedBody,
|
|
1726
|
+
exceptionCtor: M2ServiceException_1.M2ServiceException,
|
|
1727
|
+
errorCode,
|
|
2165
1728
|
});
|
|
2166
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2167
1729
|
}
|
|
2168
1730
|
};
|
|
2169
1731
|
const deserializeAws_restJson1ListBatchJobDefinitionsCommand = async (output, context) => {
|
|
2170
1732
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2171
1733
|
return deserializeAws_restJson1ListBatchJobDefinitionsCommandError(output, context);
|
|
2172
1734
|
}
|
|
2173
|
-
const contents = {
|
|
1735
|
+
const contents = map({
|
|
2174
1736
|
$metadata: deserializeMetadata(output),
|
|
2175
|
-
|
|
2176
|
-
nextToken: undefined,
|
|
2177
|
-
};
|
|
1737
|
+
});
|
|
2178
1738
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2179
|
-
if (data.batchJobDefinitions
|
|
1739
|
+
if (data.batchJobDefinitions != null) {
|
|
2180
1740
|
contents.batchJobDefinitions = deserializeAws_restJson1BatchJobDefinitions(data.batchJobDefinitions, context);
|
|
2181
1741
|
}
|
|
2182
|
-
if (data.nextToken
|
|
1742
|
+
if (data.nextToken != null) {
|
|
2183
1743
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
2184
1744
|
}
|
|
2185
|
-
return
|
|
1745
|
+
return contents;
|
|
2186
1746
|
};
|
|
2187
1747
|
exports.deserializeAws_restJson1ListBatchJobDefinitionsCommand = deserializeAws_restJson1ListBatchJobDefinitionsCommand;
|
|
2188
1748
|
const deserializeAws_restJson1ListBatchJobDefinitionsCommandError = async (output, context) => {
|
|
@@ -2190,7 +1750,6 @@ const deserializeAws_restJson1ListBatchJobDefinitionsCommandError = async (outpu
|
|
|
2190
1750
|
...output,
|
|
2191
1751
|
body: await parseBody(output.body, context),
|
|
2192
1752
|
};
|
|
2193
|
-
let response;
|
|
2194
1753
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2195
1754
|
switch (errorCode) {
|
|
2196
1755
|
case "AccessDeniedException":
|
|
@@ -2210,33 +1769,29 @@ const deserializeAws_restJson1ListBatchJobDefinitionsCommandError = async (outpu
|
|
|
2210
1769
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2211
1770
|
default:
|
|
2212
1771
|
const parsedBody = parsedOutput.body;
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
$metadata,
|
|
1772
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1773
|
+
output,
|
|
1774
|
+
parsedBody,
|
|
1775
|
+
exceptionCtor: M2ServiceException_1.M2ServiceException,
|
|
1776
|
+
errorCode,
|
|
2219
1777
|
});
|
|
2220
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2221
1778
|
}
|
|
2222
1779
|
};
|
|
2223
1780
|
const deserializeAws_restJson1ListBatchJobExecutionsCommand = async (output, context) => {
|
|
2224
1781
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2225
1782
|
return deserializeAws_restJson1ListBatchJobExecutionsCommandError(output, context);
|
|
2226
1783
|
}
|
|
2227
|
-
const contents = {
|
|
1784
|
+
const contents = map({
|
|
2228
1785
|
$metadata: deserializeMetadata(output),
|
|
2229
|
-
|
|
2230
|
-
nextToken: undefined,
|
|
2231
|
-
};
|
|
1786
|
+
});
|
|
2232
1787
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2233
|
-
if (data.batchJobExecutions
|
|
1788
|
+
if (data.batchJobExecutions != null) {
|
|
2234
1789
|
contents.batchJobExecutions = deserializeAws_restJson1BatchJobExecutionSummaryList(data.batchJobExecutions, context);
|
|
2235
1790
|
}
|
|
2236
|
-
if (data.nextToken
|
|
1791
|
+
if (data.nextToken != null) {
|
|
2237
1792
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
2238
1793
|
}
|
|
2239
|
-
return
|
|
1794
|
+
return contents;
|
|
2240
1795
|
};
|
|
2241
1796
|
exports.deserializeAws_restJson1ListBatchJobExecutionsCommand = deserializeAws_restJson1ListBatchJobExecutionsCommand;
|
|
2242
1797
|
const deserializeAws_restJson1ListBatchJobExecutionsCommandError = async (output, context) => {
|
|
@@ -2244,7 +1799,6 @@ const deserializeAws_restJson1ListBatchJobExecutionsCommandError = async (output
|
|
|
2244
1799
|
...output,
|
|
2245
1800
|
body: await parseBody(output.body, context),
|
|
2246
1801
|
};
|
|
2247
|
-
let response;
|
|
2248
1802
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2249
1803
|
switch (errorCode) {
|
|
2250
1804
|
case "AccessDeniedException":
|
|
@@ -2264,33 +1818,29 @@ const deserializeAws_restJson1ListBatchJobExecutionsCommandError = async (output
|
|
|
2264
1818
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2265
1819
|
default:
|
|
2266
1820
|
const parsedBody = parsedOutput.body;
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
$metadata,
|
|
1821
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1822
|
+
output,
|
|
1823
|
+
parsedBody,
|
|
1824
|
+
exceptionCtor: M2ServiceException_1.M2ServiceException,
|
|
1825
|
+
errorCode,
|
|
2273
1826
|
});
|
|
2274
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2275
1827
|
}
|
|
2276
1828
|
};
|
|
2277
1829
|
const deserializeAws_restJson1ListDataSetImportHistoryCommand = async (output, context) => {
|
|
2278
1830
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2279
1831
|
return deserializeAws_restJson1ListDataSetImportHistoryCommandError(output, context);
|
|
2280
1832
|
}
|
|
2281
|
-
const contents = {
|
|
1833
|
+
const contents = map({
|
|
2282
1834
|
$metadata: deserializeMetadata(output),
|
|
2283
|
-
|
|
2284
|
-
nextToken: undefined,
|
|
2285
|
-
};
|
|
1835
|
+
});
|
|
2286
1836
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2287
|
-
if (data.dataSetImportTasks
|
|
1837
|
+
if (data.dataSetImportTasks != null) {
|
|
2288
1838
|
contents.dataSetImportTasks = deserializeAws_restJson1DataSetImportTaskList(data.dataSetImportTasks, context);
|
|
2289
1839
|
}
|
|
2290
|
-
if (data.nextToken
|
|
1840
|
+
if (data.nextToken != null) {
|
|
2291
1841
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
2292
1842
|
}
|
|
2293
|
-
return
|
|
1843
|
+
return contents;
|
|
2294
1844
|
};
|
|
2295
1845
|
exports.deserializeAws_restJson1ListDataSetImportHistoryCommand = deserializeAws_restJson1ListDataSetImportHistoryCommand;
|
|
2296
1846
|
const deserializeAws_restJson1ListDataSetImportHistoryCommandError = async (output, context) => {
|
|
@@ -2298,7 +1848,6 @@ const deserializeAws_restJson1ListDataSetImportHistoryCommandError = async (outp
|
|
|
2298
1848
|
...output,
|
|
2299
1849
|
body: await parseBody(output.body, context),
|
|
2300
1850
|
};
|
|
2301
|
-
let response;
|
|
2302
1851
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2303
1852
|
switch (errorCode) {
|
|
2304
1853
|
case "AccessDeniedException":
|
|
@@ -2318,33 +1867,29 @@ const deserializeAws_restJson1ListDataSetImportHistoryCommandError = async (outp
|
|
|
2318
1867
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2319
1868
|
default:
|
|
2320
1869
|
const parsedBody = parsedOutput.body;
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
$metadata,
|
|
1870
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1871
|
+
output,
|
|
1872
|
+
parsedBody,
|
|
1873
|
+
exceptionCtor: M2ServiceException_1.M2ServiceException,
|
|
1874
|
+
errorCode,
|
|
2327
1875
|
});
|
|
2328
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2329
1876
|
}
|
|
2330
1877
|
};
|
|
2331
1878
|
const deserializeAws_restJson1ListDataSetsCommand = async (output, context) => {
|
|
2332
1879
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2333
1880
|
return deserializeAws_restJson1ListDataSetsCommandError(output, context);
|
|
2334
1881
|
}
|
|
2335
|
-
const contents = {
|
|
1882
|
+
const contents = map({
|
|
2336
1883
|
$metadata: deserializeMetadata(output),
|
|
2337
|
-
|
|
2338
|
-
nextToken: undefined,
|
|
2339
|
-
};
|
|
1884
|
+
});
|
|
2340
1885
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2341
|
-
if (data.dataSets
|
|
1886
|
+
if (data.dataSets != null) {
|
|
2342
1887
|
contents.dataSets = deserializeAws_restJson1DataSetsSummaryList(data.dataSets, context);
|
|
2343
1888
|
}
|
|
2344
|
-
if (data.nextToken
|
|
1889
|
+
if (data.nextToken != null) {
|
|
2345
1890
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
2346
1891
|
}
|
|
2347
|
-
return
|
|
1892
|
+
return contents;
|
|
2348
1893
|
};
|
|
2349
1894
|
exports.deserializeAws_restJson1ListDataSetsCommand = deserializeAws_restJson1ListDataSetsCommand;
|
|
2350
1895
|
const deserializeAws_restJson1ListDataSetsCommandError = async (output, context) => {
|
|
@@ -2352,7 +1897,6 @@ const deserializeAws_restJson1ListDataSetsCommandError = async (output, context)
|
|
|
2352
1897
|
...output,
|
|
2353
1898
|
body: await parseBody(output.body, context),
|
|
2354
1899
|
};
|
|
2355
|
-
let response;
|
|
2356
1900
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2357
1901
|
switch (errorCode) {
|
|
2358
1902
|
case "AccessDeniedException":
|
|
@@ -2372,33 +1916,29 @@ const deserializeAws_restJson1ListDataSetsCommandError = async (output, context)
|
|
|
2372
1916
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2373
1917
|
default:
|
|
2374
1918
|
const parsedBody = parsedOutput.body;
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
$metadata,
|
|
1919
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1920
|
+
output,
|
|
1921
|
+
parsedBody,
|
|
1922
|
+
exceptionCtor: M2ServiceException_1.M2ServiceException,
|
|
1923
|
+
errorCode,
|
|
2381
1924
|
});
|
|
2382
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2383
1925
|
}
|
|
2384
1926
|
};
|
|
2385
1927
|
const deserializeAws_restJson1ListDeploymentsCommand = async (output, context) => {
|
|
2386
1928
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2387
1929
|
return deserializeAws_restJson1ListDeploymentsCommandError(output, context);
|
|
2388
1930
|
}
|
|
2389
|
-
const contents = {
|
|
1931
|
+
const contents = map({
|
|
2390
1932
|
$metadata: deserializeMetadata(output),
|
|
2391
|
-
|
|
2392
|
-
nextToken: undefined,
|
|
2393
|
-
};
|
|
1933
|
+
});
|
|
2394
1934
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2395
|
-
if (data.deployments
|
|
1935
|
+
if (data.deployments != null) {
|
|
2396
1936
|
contents.deployments = deserializeAws_restJson1DeploymentList(data.deployments, context);
|
|
2397
1937
|
}
|
|
2398
|
-
if (data.nextToken
|
|
1938
|
+
if (data.nextToken != null) {
|
|
2399
1939
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
2400
1940
|
}
|
|
2401
|
-
return
|
|
1941
|
+
return contents;
|
|
2402
1942
|
};
|
|
2403
1943
|
exports.deserializeAws_restJson1ListDeploymentsCommand = deserializeAws_restJson1ListDeploymentsCommand;
|
|
2404
1944
|
const deserializeAws_restJson1ListDeploymentsCommandError = async (output, context) => {
|
|
@@ -2406,7 +1946,6 @@ const deserializeAws_restJson1ListDeploymentsCommandError = async (output, conte
|
|
|
2406
1946
|
...output,
|
|
2407
1947
|
body: await parseBody(output.body, context),
|
|
2408
1948
|
};
|
|
2409
|
-
let response;
|
|
2410
1949
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2411
1950
|
switch (errorCode) {
|
|
2412
1951
|
case "AccessDeniedException":
|
|
@@ -2426,33 +1965,29 @@ const deserializeAws_restJson1ListDeploymentsCommandError = async (output, conte
|
|
|
2426
1965
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2427
1966
|
default:
|
|
2428
1967
|
const parsedBody = parsedOutput.body;
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
$metadata,
|
|
1968
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1969
|
+
output,
|
|
1970
|
+
parsedBody,
|
|
1971
|
+
exceptionCtor: M2ServiceException_1.M2ServiceException,
|
|
1972
|
+
errorCode,
|
|
2435
1973
|
});
|
|
2436
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2437
1974
|
}
|
|
2438
1975
|
};
|
|
2439
1976
|
const deserializeAws_restJson1ListEngineVersionsCommand = async (output, context) => {
|
|
2440
1977
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2441
1978
|
return deserializeAws_restJson1ListEngineVersionsCommandError(output, context);
|
|
2442
1979
|
}
|
|
2443
|
-
const contents = {
|
|
1980
|
+
const contents = map({
|
|
2444
1981
|
$metadata: deserializeMetadata(output),
|
|
2445
|
-
|
|
2446
|
-
nextToken: undefined,
|
|
2447
|
-
};
|
|
1982
|
+
});
|
|
2448
1983
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2449
|
-
if (data.engineVersions
|
|
1984
|
+
if (data.engineVersions != null) {
|
|
2450
1985
|
contents.engineVersions = deserializeAws_restJson1EngineVersionsSummaryList(data.engineVersions, context);
|
|
2451
1986
|
}
|
|
2452
|
-
if (data.nextToken
|
|
1987
|
+
if (data.nextToken != null) {
|
|
2453
1988
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
2454
1989
|
}
|
|
2455
|
-
return
|
|
1990
|
+
return contents;
|
|
2456
1991
|
};
|
|
2457
1992
|
exports.deserializeAws_restJson1ListEngineVersionsCommand = deserializeAws_restJson1ListEngineVersionsCommand;
|
|
2458
1993
|
const deserializeAws_restJson1ListEngineVersionsCommandError = async (output, context) => {
|
|
@@ -2460,7 +1995,6 @@ const deserializeAws_restJson1ListEngineVersionsCommandError = async (output, co
|
|
|
2460
1995
|
...output,
|
|
2461
1996
|
body: await parseBody(output.body, context),
|
|
2462
1997
|
};
|
|
2463
|
-
let response;
|
|
2464
1998
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2465
1999
|
switch (errorCode) {
|
|
2466
2000
|
case "AccessDeniedException":
|
|
@@ -2477,33 +2011,29 @@ const deserializeAws_restJson1ListEngineVersionsCommandError = async (output, co
|
|
|
2477
2011
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2478
2012
|
default:
|
|
2479
2013
|
const parsedBody = parsedOutput.body;
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
$metadata,
|
|
2014
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2015
|
+
output,
|
|
2016
|
+
parsedBody,
|
|
2017
|
+
exceptionCtor: M2ServiceException_1.M2ServiceException,
|
|
2018
|
+
errorCode,
|
|
2486
2019
|
});
|
|
2487
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2488
2020
|
}
|
|
2489
2021
|
};
|
|
2490
2022
|
const deserializeAws_restJson1ListEnvironmentsCommand = async (output, context) => {
|
|
2491
2023
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2492
2024
|
return deserializeAws_restJson1ListEnvironmentsCommandError(output, context);
|
|
2493
2025
|
}
|
|
2494
|
-
const contents = {
|
|
2026
|
+
const contents = map({
|
|
2495
2027
|
$metadata: deserializeMetadata(output),
|
|
2496
|
-
|
|
2497
|
-
nextToken: undefined,
|
|
2498
|
-
};
|
|
2028
|
+
});
|
|
2499
2029
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2500
|
-
if (data.environments
|
|
2030
|
+
if (data.environments != null) {
|
|
2501
2031
|
contents.environments = deserializeAws_restJson1EnvironmentSummaryList(data.environments, context);
|
|
2502
2032
|
}
|
|
2503
|
-
if (data.nextToken
|
|
2033
|
+
if (data.nextToken != null) {
|
|
2504
2034
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
2505
2035
|
}
|
|
2506
|
-
return
|
|
2036
|
+
return contents;
|
|
2507
2037
|
};
|
|
2508
2038
|
exports.deserializeAws_restJson1ListEnvironmentsCommand = deserializeAws_restJson1ListEnvironmentsCommand;
|
|
2509
2039
|
const deserializeAws_restJson1ListEnvironmentsCommandError = async (output, context) => {
|
|
@@ -2511,7 +2041,6 @@ const deserializeAws_restJson1ListEnvironmentsCommandError = async (output, cont
|
|
|
2511
2041
|
...output,
|
|
2512
2042
|
body: await parseBody(output.body, context),
|
|
2513
2043
|
};
|
|
2514
|
-
let response;
|
|
2515
2044
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2516
2045
|
switch (errorCode) {
|
|
2517
2046
|
case "AccessDeniedException":
|
|
@@ -2528,29 +2057,26 @@ const deserializeAws_restJson1ListEnvironmentsCommandError = async (output, cont
|
|
|
2528
2057
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2529
2058
|
default:
|
|
2530
2059
|
const parsedBody = parsedOutput.body;
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
$metadata,
|
|
2060
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2061
|
+
output,
|
|
2062
|
+
parsedBody,
|
|
2063
|
+
exceptionCtor: M2ServiceException_1.M2ServiceException,
|
|
2064
|
+
errorCode,
|
|
2537
2065
|
});
|
|
2538
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2539
2066
|
}
|
|
2540
2067
|
};
|
|
2541
2068
|
const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
|
|
2542
2069
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2543
2070
|
return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
|
|
2544
2071
|
}
|
|
2545
|
-
const contents = {
|
|
2072
|
+
const contents = map({
|
|
2546
2073
|
$metadata: deserializeMetadata(output),
|
|
2547
|
-
|
|
2548
|
-
};
|
|
2074
|
+
});
|
|
2549
2075
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2550
|
-
if (data.tags
|
|
2076
|
+
if (data.tags != null) {
|
|
2551
2077
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
2552
2078
|
}
|
|
2553
|
-
return
|
|
2079
|
+
return contents;
|
|
2554
2080
|
};
|
|
2555
2081
|
exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_restJson1ListTagsForResourceCommand;
|
|
2556
2082
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -2558,7 +2084,6 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2558
2084
|
...output,
|
|
2559
2085
|
body: await parseBody(output.body, context),
|
|
2560
2086
|
};
|
|
2561
|
-
let response;
|
|
2562
2087
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2563
2088
|
switch (errorCode) {
|
|
2564
2089
|
case "AccessDeniedException":
|
|
@@ -2578,25 +2103,23 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2578
2103
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2579
2104
|
default:
|
|
2580
2105
|
const parsedBody = parsedOutput.body;
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
$metadata,
|
|
2106
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2107
|
+
output,
|
|
2108
|
+
parsedBody,
|
|
2109
|
+
exceptionCtor: M2ServiceException_1.M2ServiceException,
|
|
2110
|
+
errorCode,
|
|
2587
2111
|
});
|
|
2588
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2589
2112
|
}
|
|
2590
2113
|
};
|
|
2591
2114
|
const deserializeAws_restJson1StartApplicationCommand = async (output, context) => {
|
|
2592
2115
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2593
2116
|
return deserializeAws_restJson1StartApplicationCommandError(output, context);
|
|
2594
2117
|
}
|
|
2595
|
-
const contents = {
|
|
2118
|
+
const contents = map({
|
|
2596
2119
|
$metadata: deserializeMetadata(output),
|
|
2597
|
-
};
|
|
2120
|
+
});
|
|
2598
2121
|
await collectBody(output.body, context);
|
|
2599
|
-
return
|
|
2122
|
+
return contents;
|
|
2600
2123
|
};
|
|
2601
2124
|
exports.deserializeAws_restJson1StartApplicationCommand = deserializeAws_restJson1StartApplicationCommand;
|
|
2602
2125
|
const deserializeAws_restJson1StartApplicationCommandError = async (output, context) => {
|
|
@@ -2604,7 +2127,6 @@ const deserializeAws_restJson1StartApplicationCommandError = async (output, cont
|
|
|
2604
2127
|
...output,
|
|
2605
2128
|
body: await parseBody(output.body, context),
|
|
2606
2129
|
};
|
|
2607
|
-
let response;
|
|
2608
2130
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2609
2131
|
switch (errorCode) {
|
|
2610
2132
|
case "AccessDeniedException":
|
|
@@ -2627,29 +2149,26 @@ const deserializeAws_restJson1StartApplicationCommandError = async (output, cont
|
|
|
2627
2149
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2628
2150
|
default:
|
|
2629
2151
|
const parsedBody = parsedOutput.body;
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
$metadata,
|
|
2152
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2153
|
+
output,
|
|
2154
|
+
parsedBody,
|
|
2155
|
+
exceptionCtor: M2ServiceException_1.M2ServiceException,
|
|
2156
|
+
errorCode,
|
|
2636
2157
|
});
|
|
2637
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2638
2158
|
}
|
|
2639
2159
|
};
|
|
2640
2160
|
const deserializeAws_restJson1StartBatchJobCommand = async (output, context) => {
|
|
2641
2161
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2642
2162
|
return deserializeAws_restJson1StartBatchJobCommandError(output, context);
|
|
2643
2163
|
}
|
|
2644
|
-
const contents = {
|
|
2164
|
+
const contents = map({
|
|
2645
2165
|
$metadata: deserializeMetadata(output),
|
|
2646
|
-
|
|
2647
|
-
};
|
|
2166
|
+
});
|
|
2648
2167
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2649
|
-
if (data.executionId
|
|
2168
|
+
if (data.executionId != null) {
|
|
2650
2169
|
contents.executionId = (0, smithy_client_1.expectString)(data.executionId);
|
|
2651
2170
|
}
|
|
2652
|
-
return
|
|
2171
|
+
return contents;
|
|
2653
2172
|
};
|
|
2654
2173
|
exports.deserializeAws_restJson1StartBatchJobCommand = deserializeAws_restJson1StartBatchJobCommand;
|
|
2655
2174
|
const deserializeAws_restJson1StartBatchJobCommandError = async (output, context) => {
|
|
@@ -2657,7 +2176,6 @@ const deserializeAws_restJson1StartBatchJobCommandError = async (output, context
|
|
|
2657
2176
|
...output,
|
|
2658
2177
|
body: await parseBody(output.body, context),
|
|
2659
2178
|
};
|
|
2660
|
-
let response;
|
|
2661
2179
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2662
2180
|
switch (errorCode) {
|
|
2663
2181
|
case "AccessDeniedException":
|
|
@@ -2680,25 +2198,23 @@ const deserializeAws_restJson1StartBatchJobCommandError = async (output, context
|
|
|
2680
2198
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2681
2199
|
default:
|
|
2682
2200
|
const parsedBody = parsedOutput.body;
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
$metadata,
|
|
2201
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2202
|
+
output,
|
|
2203
|
+
parsedBody,
|
|
2204
|
+
exceptionCtor: M2ServiceException_1.M2ServiceException,
|
|
2205
|
+
errorCode,
|
|
2689
2206
|
});
|
|
2690
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2691
2207
|
}
|
|
2692
2208
|
};
|
|
2693
2209
|
const deserializeAws_restJson1StopApplicationCommand = async (output, context) => {
|
|
2694
2210
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2695
2211
|
return deserializeAws_restJson1StopApplicationCommandError(output, context);
|
|
2696
2212
|
}
|
|
2697
|
-
const contents = {
|
|
2213
|
+
const contents = map({
|
|
2698
2214
|
$metadata: deserializeMetadata(output),
|
|
2699
|
-
};
|
|
2215
|
+
});
|
|
2700
2216
|
await collectBody(output.body, context);
|
|
2701
|
-
return
|
|
2217
|
+
return contents;
|
|
2702
2218
|
};
|
|
2703
2219
|
exports.deserializeAws_restJson1StopApplicationCommand = deserializeAws_restJson1StopApplicationCommand;
|
|
2704
2220
|
const deserializeAws_restJson1StopApplicationCommandError = async (output, context) => {
|
|
@@ -2706,7 +2222,6 @@ const deserializeAws_restJson1StopApplicationCommandError = async (output, conte
|
|
|
2706
2222
|
...output,
|
|
2707
2223
|
body: await parseBody(output.body, context),
|
|
2708
2224
|
};
|
|
2709
|
-
let response;
|
|
2710
2225
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2711
2226
|
switch (errorCode) {
|
|
2712
2227
|
case "AccessDeniedException":
|
|
@@ -2729,25 +2244,23 @@ const deserializeAws_restJson1StopApplicationCommandError = async (output, conte
|
|
|
2729
2244
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2730
2245
|
default:
|
|
2731
2246
|
const parsedBody = parsedOutput.body;
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
$metadata,
|
|
2247
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2248
|
+
output,
|
|
2249
|
+
parsedBody,
|
|
2250
|
+
exceptionCtor: M2ServiceException_1.M2ServiceException,
|
|
2251
|
+
errorCode,
|
|
2738
2252
|
});
|
|
2739
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2740
2253
|
}
|
|
2741
2254
|
};
|
|
2742
2255
|
const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
2743
2256
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2744
2257
|
return deserializeAws_restJson1TagResourceCommandError(output, context);
|
|
2745
2258
|
}
|
|
2746
|
-
const contents = {
|
|
2259
|
+
const contents = map({
|
|
2747
2260
|
$metadata: deserializeMetadata(output),
|
|
2748
|
-
};
|
|
2261
|
+
});
|
|
2749
2262
|
await collectBody(output.body, context);
|
|
2750
|
-
return
|
|
2263
|
+
return contents;
|
|
2751
2264
|
};
|
|
2752
2265
|
exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1TagResourceCommand;
|
|
2753
2266
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
@@ -2755,7 +2268,6 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2755
2268
|
...output,
|
|
2756
2269
|
body: await parseBody(output.body, context),
|
|
2757
2270
|
};
|
|
2758
|
-
let response;
|
|
2759
2271
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2760
2272
|
switch (errorCode) {
|
|
2761
2273
|
case "AccessDeniedException":
|
|
@@ -2778,25 +2290,23 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2778
2290
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2779
2291
|
default:
|
|
2780
2292
|
const parsedBody = parsedOutput.body;
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
$metadata,
|
|
2293
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2294
|
+
output,
|
|
2295
|
+
parsedBody,
|
|
2296
|
+
exceptionCtor: M2ServiceException_1.M2ServiceException,
|
|
2297
|
+
errorCode,
|
|
2787
2298
|
});
|
|
2788
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2789
2299
|
}
|
|
2790
2300
|
};
|
|
2791
2301
|
const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
2792
2302
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2793
2303
|
return deserializeAws_restJson1UntagResourceCommandError(output, context);
|
|
2794
2304
|
}
|
|
2795
|
-
const contents = {
|
|
2305
|
+
const contents = map({
|
|
2796
2306
|
$metadata: deserializeMetadata(output),
|
|
2797
|
-
};
|
|
2307
|
+
});
|
|
2798
2308
|
await collectBody(output.body, context);
|
|
2799
|
-
return
|
|
2309
|
+
return contents;
|
|
2800
2310
|
};
|
|
2801
2311
|
exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1UntagResourceCommand;
|
|
2802
2312
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
@@ -2804,7 +2314,6 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2804
2314
|
...output,
|
|
2805
2315
|
body: await parseBody(output.body, context),
|
|
2806
2316
|
};
|
|
2807
|
-
let response;
|
|
2808
2317
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2809
2318
|
switch (errorCode) {
|
|
2810
2319
|
case "AccessDeniedException":
|
|
@@ -2824,29 +2333,26 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2824
2333
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2825
2334
|
default:
|
|
2826
2335
|
const parsedBody = parsedOutput.body;
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
$metadata,
|
|
2336
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2337
|
+
output,
|
|
2338
|
+
parsedBody,
|
|
2339
|
+
exceptionCtor: M2ServiceException_1.M2ServiceException,
|
|
2340
|
+
errorCode,
|
|
2833
2341
|
});
|
|
2834
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2835
2342
|
}
|
|
2836
2343
|
};
|
|
2837
2344
|
const deserializeAws_restJson1UpdateApplicationCommand = async (output, context) => {
|
|
2838
2345
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2839
2346
|
return deserializeAws_restJson1UpdateApplicationCommandError(output, context);
|
|
2840
2347
|
}
|
|
2841
|
-
const contents = {
|
|
2348
|
+
const contents = map({
|
|
2842
2349
|
$metadata: deserializeMetadata(output),
|
|
2843
|
-
|
|
2844
|
-
};
|
|
2350
|
+
});
|
|
2845
2351
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2846
|
-
if (data.applicationVersion
|
|
2352
|
+
if (data.applicationVersion != null) {
|
|
2847
2353
|
contents.applicationVersion = (0, smithy_client_1.expectInt32)(data.applicationVersion);
|
|
2848
2354
|
}
|
|
2849
|
-
return
|
|
2355
|
+
return contents;
|
|
2850
2356
|
};
|
|
2851
2357
|
exports.deserializeAws_restJson1UpdateApplicationCommand = deserializeAws_restJson1UpdateApplicationCommand;
|
|
2852
2358
|
const deserializeAws_restJson1UpdateApplicationCommandError = async (output, context) => {
|
|
@@ -2854,7 +2360,6 @@ const deserializeAws_restJson1UpdateApplicationCommandError = async (output, con
|
|
|
2854
2360
|
...output,
|
|
2855
2361
|
body: await parseBody(output.body, context),
|
|
2856
2362
|
};
|
|
2857
|
-
let response;
|
|
2858
2363
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2859
2364
|
switch (errorCode) {
|
|
2860
2365
|
case "AccessDeniedException":
|
|
@@ -2877,29 +2382,26 @@ const deserializeAws_restJson1UpdateApplicationCommandError = async (output, con
|
|
|
2877
2382
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2878
2383
|
default:
|
|
2879
2384
|
const parsedBody = parsedOutput.body;
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
$metadata,
|
|
2385
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2386
|
+
output,
|
|
2387
|
+
parsedBody,
|
|
2388
|
+
exceptionCtor: M2ServiceException_1.M2ServiceException,
|
|
2389
|
+
errorCode,
|
|
2886
2390
|
});
|
|
2887
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2888
2391
|
}
|
|
2889
2392
|
};
|
|
2890
2393
|
const deserializeAws_restJson1UpdateEnvironmentCommand = async (output, context) => {
|
|
2891
2394
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2892
2395
|
return deserializeAws_restJson1UpdateEnvironmentCommandError(output, context);
|
|
2893
2396
|
}
|
|
2894
|
-
const contents = {
|
|
2397
|
+
const contents = map({
|
|
2895
2398
|
$metadata: deserializeMetadata(output),
|
|
2896
|
-
|
|
2897
|
-
};
|
|
2399
|
+
});
|
|
2898
2400
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2899
|
-
if (data.environmentId
|
|
2401
|
+
if (data.environmentId != null) {
|
|
2900
2402
|
contents.environmentId = (0, smithy_client_1.expectString)(data.environmentId);
|
|
2901
2403
|
}
|
|
2902
|
-
return
|
|
2404
|
+
return contents;
|
|
2903
2405
|
};
|
|
2904
2406
|
exports.deserializeAws_restJson1UpdateEnvironmentCommand = deserializeAws_restJson1UpdateEnvironmentCommand;
|
|
2905
2407
|
const deserializeAws_restJson1UpdateEnvironmentCommandError = async (output, context) => {
|
|
@@ -2907,7 +2409,6 @@ const deserializeAws_restJson1UpdateEnvironmentCommandError = async (output, con
|
|
|
2907
2409
|
...output,
|
|
2908
2410
|
body: await parseBody(output.body, context),
|
|
2909
2411
|
};
|
|
2910
|
-
let response;
|
|
2911
2412
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2912
2413
|
switch (errorCode) {
|
|
2913
2414
|
case "AccessDeniedException":
|
|
@@ -2933,20 +2434,19 @@ const deserializeAws_restJson1UpdateEnvironmentCommandError = async (output, con
|
|
|
2933
2434
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2934
2435
|
default:
|
|
2935
2436
|
const parsedBody = parsedOutput.body;
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
$metadata,
|
|
2437
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2438
|
+
output,
|
|
2439
|
+
parsedBody,
|
|
2440
|
+
exceptionCtor: M2ServiceException_1.M2ServiceException,
|
|
2441
|
+
errorCode,
|
|
2942
2442
|
});
|
|
2943
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2944
2443
|
}
|
|
2945
2444
|
};
|
|
2445
|
+
const map = smithy_client_1.map;
|
|
2946
2446
|
const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
2947
|
-
const contents = {};
|
|
2447
|
+
const contents = map({});
|
|
2948
2448
|
const data = parsedOutput.body;
|
|
2949
|
-
if (data.message
|
|
2449
|
+
if (data.message != null) {
|
|
2950
2450
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2951
2451
|
}
|
|
2952
2452
|
const exception = new models_0_1.AccessDeniedException({
|
|
@@ -2956,15 +2456,15 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
|
|
|
2956
2456
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2957
2457
|
};
|
|
2958
2458
|
const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
2959
|
-
const contents = {};
|
|
2459
|
+
const contents = map({});
|
|
2960
2460
|
const data = parsedOutput.body;
|
|
2961
|
-
if (data.message
|
|
2461
|
+
if (data.message != null) {
|
|
2962
2462
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2963
2463
|
}
|
|
2964
|
-
if (data.resourceId
|
|
2464
|
+
if (data.resourceId != null) {
|
|
2965
2465
|
contents.resourceId = (0, smithy_client_1.expectString)(data.resourceId);
|
|
2966
2466
|
}
|
|
2967
|
-
if (data.resourceType
|
|
2467
|
+
if (data.resourceType != null) {
|
|
2968
2468
|
contents.resourceType = (0, smithy_client_1.expectString)(data.resourceType);
|
|
2969
2469
|
}
|
|
2970
2470
|
const exception = new models_0_1.ConflictException({
|
|
@@ -2974,12 +2474,14 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
2974
2474
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2975
2475
|
};
|
|
2976
2476
|
const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
|
|
2977
|
-
const contents = {
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2477
|
+
const contents = map({
|
|
2478
|
+
retryAfterSeconds: [
|
|
2479
|
+
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
2480
|
+
() => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]),
|
|
2481
|
+
],
|
|
2482
|
+
});
|
|
2981
2483
|
const data = parsedOutput.body;
|
|
2982
|
-
if (data.message
|
|
2484
|
+
if (data.message != null) {
|
|
2983
2485
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2984
2486
|
}
|
|
2985
2487
|
const exception = new models_0_1.InternalServerException({
|
|
@@ -2989,15 +2491,15 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
2989
2491
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2990
2492
|
};
|
|
2991
2493
|
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
2992
|
-
const contents = {};
|
|
2494
|
+
const contents = map({});
|
|
2993
2495
|
const data = parsedOutput.body;
|
|
2994
|
-
if (data.message
|
|
2496
|
+
if (data.message != null) {
|
|
2995
2497
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2996
2498
|
}
|
|
2997
|
-
if (data.resourceId
|
|
2499
|
+
if (data.resourceId != null) {
|
|
2998
2500
|
contents.resourceId = (0, smithy_client_1.expectString)(data.resourceId);
|
|
2999
2501
|
}
|
|
3000
|
-
if (data.resourceType
|
|
2502
|
+
if (data.resourceType != null) {
|
|
3001
2503
|
contents.resourceType = (0, smithy_client_1.expectString)(data.resourceType);
|
|
3002
2504
|
}
|
|
3003
2505
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
@@ -3007,21 +2509,21 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
3007
2509
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3008
2510
|
};
|
|
3009
2511
|
const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
|
|
3010
|
-
const contents = {};
|
|
2512
|
+
const contents = map({});
|
|
3011
2513
|
const data = parsedOutput.body;
|
|
3012
|
-
if (data.message
|
|
2514
|
+
if (data.message != null) {
|
|
3013
2515
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
3014
2516
|
}
|
|
3015
|
-
if (data.quotaCode
|
|
2517
|
+
if (data.quotaCode != null) {
|
|
3016
2518
|
contents.quotaCode = (0, smithy_client_1.expectString)(data.quotaCode);
|
|
3017
2519
|
}
|
|
3018
|
-
if (data.resourceId
|
|
2520
|
+
if (data.resourceId != null) {
|
|
3019
2521
|
contents.resourceId = (0, smithy_client_1.expectString)(data.resourceId);
|
|
3020
2522
|
}
|
|
3021
|
-
if (data.resourceType
|
|
2523
|
+
if (data.resourceType != null) {
|
|
3022
2524
|
contents.resourceType = (0, smithy_client_1.expectString)(data.resourceType);
|
|
3023
2525
|
}
|
|
3024
|
-
if (data.serviceCode
|
|
2526
|
+
if (data.serviceCode != null) {
|
|
3025
2527
|
contents.serviceCode = (0, smithy_client_1.expectString)(data.serviceCode);
|
|
3026
2528
|
}
|
|
3027
2529
|
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
@@ -3031,18 +2533,20 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
|
|
|
3031
2533
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3032
2534
|
};
|
|
3033
2535
|
const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
|
|
3034
|
-
const contents = {
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
2536
|
+
const contents = map({
|
|
2537
|
+
retryAfterSeconds: [
|
|
2538
|
+
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
2539
|
+
() => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]),
|
|
2540
|
+
],
|
|
2541
|
+
});
|
|
3038
2542
|
const data = parsedOutput.body;
|
|
3039
|
-
if (data.message
|
|
2543
|
+
if (data.message != null) {
|
|
3040
2544
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
3041
2545
|
}
|
|
3042
|
-
if (data.quotaCode
|
|
2546
|
+
if (data.quotaCode != null) {
|
|
3043
2547
|
contents.quotaCode = (0, smithy_client_1.expectString)(data.quotaCode);
|
|
3044
2548
|
}
|
|
3045
|
-
if (data.serviceCode
|
|
2549
|
+
if (data.serviceCode != null) {
|
|
3046
2550
|
contents.serviceCode = (0, smithy_client_1.expectString)(data.serviceCode);
|
|
3047
2551
|
}
|
|
3048
2552
|
const exception = new models_0_1.ThrottlingException({
|
|
@@ -3052,15 +2556,15 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
3052
2556
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3053
2557
|
};
|
|
3054
2558
|
const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
3055
|
-
const contents = {};
|
|
2559
|
+
const contents = map({});
|
|
3056
2560
|
const data = parsedOutput.body;
|
|
3057
|
-
if (data.fieldList
|
|
2561
|
+
if (data.fieldList != null) {
|
|
3058
2562
|
contents.fieldList = deserializeAws_restJson1ValidationExceptionFieldList(data.fieldList, context);
|
|
3059
2563
|
}
|
|
3060
|
-
if (data.message
|
|
2564
|
+
if (data.message != null) {
|
|
3061
2565
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
3062
2566
|
}
|
|
3063
|
-
if (data.reason
|
|
2567
|
+
if (data.reason != null) {
|
|
3064
2568
|
contents.reason = (0, smithy_client_1.expectString)(data.reason);
|
|
3065
2569
|
}
|
|
3066
2570
|
const exception = new models_0_1.ValidationException({
|
|
@@ -3081,9 +2585,6 @@ const serializeAws_restJson1AlternateKeyList = (input, context) => {
|
|
|
3081
2585
|
return input
|
|
3082
2586
|
.filter((e) => e != null)
|
|
3083
2587
|
.map((entry) => {
|
|
3084
|
-
if (entry === null) {
|
|
3085
|
-
return null;
|
|
3086
|
-
}
|
|
3087
2588
|
return serializeAws_restJson1AlternateKey(entry, context);
|
|
3088
2589
|
});
|
|
3089
2590
|
};
|
|
@@ -3141,9 +2642,6 @@ const serializeAws_restJson1DataSetImportList = (input, context) => {
|
|
|
3141
2642
|
return input
|
|
3142
2643
|
.filter((e) => e != null)
|
|
3143
2644
|
.map((entry) => {
|
|
3144
|
-
if (entry === null) {
|
|
3145
|
-
return null;
|
|
3146
|
-
}
|
|
3147
2645
|
return serializeAws_restJson1DataSetImportItem(entry, context);
|
|
3148
2646
|
});
|
|
3149
2647
|
};
|
|
@@ -3225,9 +2723,6 @@ const serializeAws_restJson1StorageConfigurationList = (input, context) => {
|
|
|
3225
2723
|
return input
|
|
3226
2724
|
.filter((e) => e != null)
|
|
3227
2725
|
.map((entry) => {
|
|
3228
|
-
if (entry === null) {
|
|
3229
|
-
return null;
|
|
3230
|
-
}
|
|
3231
2726
|
return serializeAws_restJson1StorageConfiguration(entry, context);
|
|
3232
2727
|
});
|
|
3233
2728
|
};
|
|
@@ -3235,9 +2730,6 @@ const serializeAws_restJson1String50List = (input, context) => {
|
|
|
3235
2730
|
return input
|
|
3236
2731
|
.filter((e) => e != null)
|
|
3237
2732
|
.map((entry) => {
|
|
3238
|
-
if (entry === null) {
|
|
3239
|
-
return null;
|
|
3240
|
-
}
|
|
3241
2733
|
return entry;
|
|
3242
2734
|
});
|
|
3243
2735
|
};
|
|
@@ -3346,12 +2838,12 @@ const deserializeAws_restJson1ArnList = (output, context) => {
|
|
|
3346
2838
|
return retVal;
|
|
3347
2839
|
};
|
|
3348
2840
|
const deserializeAws_restJson1BatchJobDefinition = (output, context) => {
|
|
3349
|
-
if (output.fileBatchJobDefinition
|
|
2841
|
+
if (output.fileBatchJobDefinition != null) {
|
|
3350
2842
|
return {
|
|
3351
2843
|
fileBatchJobDefinition: deserializeAws_restJson1FileBatchJobDefinition(output.fileBatchJobDefinition, context),
|
|
3352
2844
|
};
|
|
3353
2845
|
}
|
|
3354
|
-
if (output.scriptBatchJobDefinition
|
|
2846
|
+
if (output.scriptBatchJobDefinition != null) {
|
|
3355
2847
|
return {
|
|
3356
2848
|
scriptBatchJobDefinition: deserializeAws_restJson1ScriptBatchJobDefinition(output.scriptBatchJobDefinition, context),
|
|
3357
2849
|
};
|
|
@@ -3393,12 +2885,12 @@ const deserializeAws_restJson1BatchJobExecutionSummaryList = (output, context) =
|
|
|
3393
2885
|
return retVal;
|
|
3394
2886
|
};
|
|
3395
2887
|
const deserializeAws_restJson1DatasetDetailOrgAttributes = (output, context) => {
|
|
3396
|
-
if (output.gdg
|
|
2888
|
+
if (output.gdg != null) {
|
|
3397
2889
|
return {
|
|
3398
2890
|
gdg: deserializeAws_restJson1GdgDetailAttributes(output.gdg, context),
|
|
3399
2891
|
};
|
|
3400
2892
|
}
|
|
3401
|
-
if (output.vsam
|
|
2893
|
+
if (output.vsam != null) {
|
|
3402
2894
|
return {
|
|
3403
2895
|
vsam: deserializeAws_restJson1VsamDetailAttributes(output.vsam, context),
|
|
3404
2896
|
};
|
|
@@ -3614,12 +3106,12 @@ const deserializeAws_restJson1ScriptBatchJobDefinition = (output, context) => {
|
|
|
3614
3106
|
};
|
|
3615
3107
|
};
|
|
3616
3108
|
const deserializeAws_restJson1StorageConfiguration = (output, context) => {
|
|
3617
|
-
if (output.efs
|
|
3109
|
+
if (output.efs != null) {
|
|
3618
3110
|
return {
|
|
3619
3111
|
efs: deserializeAws_restJson1EfsStorageConfiguration(output.efs, context),
|
|
3620
3112
|
};
|
|
3621
3113
|
}
|
|
3622
|
-
if (output.fsx
|
|
3114
|
+
if (output.fsx != null) {
|
|
3623
3115
|
return {
|
|
3624
3116
|
fsx: deserializeAws_restJson1FsxStorageConfiguration(output.fsx, context),
|
|
3625
3117
|
};
|