@aws-sdk/client-data-pipeline 3.51.0 → 3.54.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 +27 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/DataPipelineServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +68 -2
- package/dist-cjs/protocols/Aws_json1_1.js +188 -653
- package/dist-es/index.js +1 -0
- package/dist-es/models/DataPipelineServiceException.js +12 -0
- package/dist-es/models/models_0.js +62 -1
- package/dist-es/protocols/Aws_json1_1.js +412 -720
- package/dist-types/DataPipelineClient.d.ts +2 -2
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/DataPipelineServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +27 -26
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/DataPipelineClient.d.ts +2 -2
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/DataPipelineServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +22 -21
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/package.json +33 -33
|
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.deserializeAws_json1_1ValidatePipelineDefinitionCommand = exports.deserializeAws_json1_1SetTaskStatusCommand = exports.deserializeAws_json1_1SetStatusCommand = exports.deserializeAws_json1_1ReportTaskRunnerHeartbeatCommand = exports.deserializeAws_json1_1ReportTaskProgressCommand = exports.deserializeAws_json1_1RemoveTagsCommand = exports.deserializeAws_json1_1QueryObjectsCommand = exports.deserializeAws_json1_1PutPipelineDefinitionCommand = exports.deserializeAws_json1_1PollForTaskCommand = exports.deserializeAws_json1_1ListPipelinesCommand = exports.deserializeAws_json1_1GetPipelineDefinitionCommand = exports.deserializeAws_json1_1EvaluateExpressionCommand = exports.deserializeAws_json1_1DescribePipelinesCommand = exports.deserializeAws_json1_1DescribeObjectsCommand = exports.deserializeAws_json1_1DeletePipelineCommand = exports.deserializeAws_json1_1DeactivatePipelineCommand = exports.deserializeAws_json1_1CreatePipelineCommand = exports.deserializeAws_json1_1AddTagsCommand = exports.deserializeAws_json1_1ActivatePipelineCommand = exports.serializeAws_json1_1ValidatePipelineDefinitionCommand = exports.serializeAws_json1_1SetTaskStatusCommand = exports.serializeAws_json1_1SetStatusCommand = exports.serializeAws_json1_1ReportTaskRunnerHeartbeatCommand = exports.serializeAws_json1_1ReportTaskProgressCommand = exports.serializeAws_json1_1RemoveTagsCommand = exports.serializeAws_json1_1QueryObjectsCommand = exports.serializeAws_json1_1PutPipelineDefinitionCommand = exports.serializeAws_json1_1PollForTaskCommand = exports.serializeAws_json1_1ListPipelinesCommand = exports.serializeAws_json1_1GetPipelineDefinitionCommand = exports.serializeAws_json1_1EvaluateExpressionCommand = exports.serializeAws_json1_1DescribePipelinesCommand = exports.serializeAws_json1_1DescribeObjectsCommand = exports.serializeAws_json1_1DeletePipelineCommand = exports.serializeAws_json1_1DeactivatePipelineCommand = exports.serializeAws_json1_1CreatePipelineCommand = exports.serializeAws_json1_1AddTagsCommand = exports.serializeAws_json1_1ActivatePipelineCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const DataPipelineServiceException_1 = require("../models/DataPipelineServiceException");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
6
8
|
const serializeAws_json1_1ActivatePipelineCommand = async (input, context) => {
|
|
7
9
|
const headers = {
|
|
8
10
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -218,51 +220,25 @@ const deserializeAws_json1_1ActivatePipelineCommandError = async (output, contex
|
|
|
218
220
|
switch (errorCode) {
|
|
219
221
|
case "InternalServiceError":
|
|
220
222
|
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
221
|
-
|
|
222
|
-
...(await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)),
|
|
223
|
-
name: errorCode,
|
|
224
|
-
$metadata: deserializeMetadata(output),
|
|
225
|
-
};
|
|
226
|
-
break;
|
|
223
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
227
224
|
case "InvalidRequestException":
|
|
228
225
|
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
229
|
-
|
|
230
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
231
|
-
name: errorCode,
|
|
232
|
-
$metadata: deserializeMetadata(output),
|
|
233
|
-
};
|
|
234
|
-
break;
|
|
226
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
235
227
|
case "PipelineDeletedException":
|
|
236
228
|
case "com.amazonaws.datapipeline#PipelineDeletedException":
|
|
237
|
-
|
|
238
|
-
...(await deserializeAws_json1_1PipelineDeletedExceptionResponse(parsedOutput, context)),
|
|
239
|
-
name: errorCode,
|
|
240
|
-
$metadata: deserializeMetadata(output),
|
|
241
|
-
};
|
|
242
|
-
break;
|
|
229
|
+
throw await deserializeAws_json1_1PipelineDeletedExceptionResponse(parsedOutput, context);
|
|
243
230
|
case "PipelineNotFoundException":
|
|
244
231
|
case "com.amazonaws.datapipeline#PipelineNotFoundException":
|
|
245
|
-
|
|
246
|
-
...(await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context)),
|
|
247
|
-
name: errorCode,
|
|
248
|
-
$metadata: deserializeMetadata(output),
|
|
249
|
-
};
|
|
250
|
-
break;
|
|
232
|
+
throw await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context);
|
|
251
233
|
default:
|
|
252
234
|
const parsedBody = parsedOutput.body;
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
...parsedBody,
|
|
256
|
-
name: `${errorCode}`,
|
|
257
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
235
|
+
response = new DataPipelineServiceException_1.DataPipelineServiceException({
|
|
236
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
258
237
|
$fault: "client",
|
|
259
238
|
$metadata: deserializeMetadata(output),
|
|
260
|
-
};
|
|
239
|
+
});
|
|
240
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
261
241
|
}
|
|
262
|
-
const message = response.message || response.Message || errorCode;
|
|
263
|
-
response.message = message;
|
|
264
|
-
delete response.Message;
|
|
265
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
266
242
|
};
|
|
267
243
|
const deserializeAws_json1_1AddTagsCommand = async (output, context) => {
|
|
268
244
|
if (output.statusCode >= 300) {
|
|
@@ -289,51 +265,25 @@ const deserializeAws_json1_1AddTagsCommandError = async (output, context) => {
|
|
|
289
265
|
switch (errorCode) {
|
|
290
266
|
case "InternalServiceError":
|
|
291
267
|
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
292
|
-
|
|
293
|
-
...(await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)),
|
|
294
|
-
name: errorCode,
|
|
295
|
-
$metadata: deserializeMetadata(output),
|
|
296
|
-
};
|
|
297
|
-
break;
|
|
268
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
298
269
|
case "InvalidRequestException":
|
|
299
270
|
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
300
|
-
|
|
301
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
302
|
-
name: errorCode,
|
|
303
|
-
$metadata: deserializeMetadata(output),
|
|
304
|
-
};
|
|
305
|
-
break;
|
|
271
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
306
272
|
case "PipelineDeletedException":
|
|
307
273
|
case "com.amazonaws.datapipeline#PipelineDeletedException":
|
|
308
|
-
|
|
309
|
-
...(await deserializeAws_json1_1PipelineDeletedExceptionResponse(parsedOutput, context)),
|
|
310
|
-
name: errorCode,
|
|
311
|
-
$metadata: deserializeMetadata(output),
|
|
312
|
-
};
|
|
313
|
-
break;
|
|
274
|
+
throw await deserializeAws_json1_1PipelineDeletedExceptionResponse(parsedOutput, context);
|
|
314
275
|
case "PipelineNotFoundException":
|
|
315
276
|
case "com.amazonaws.datapipeline#PipelineNotFoundException":
|
|
316
|
-
|
|
317
|
-
...(await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context)),
|
|
318
|
-
name: errorCode,
|
|
319
|
-
$metadata: deserializeMetadata(output),
|
|
320
|
-
};
|
|
321
|
-
break;
|
|
277
|
+
throw await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context);
|
|
322
278
|
default:
|
|
323
279
|
const parsedBody = parsedOutput.body;
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
...parsedBody,
|
|
327
|
-
name: `${errorCode}`,
|
|
328
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
280
|
+
response = new DataPipelineServiceException_1.DataPipelineServiceException({
|
|
281
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
329
282
|
$fault: "client",
|
|
330
283
|
$metadata: deserializeMetadata(output),
|
|
331
|
-
};
|
|
284
|
+
});
|
|
285
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
332
286
|
}
|
|
333
|
-
const message = response.message || response.Message || errorCode;
|
|
334
|
-
response.message = message;
|
|
335
|
-
delete response.Message;
|
|
336
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
337
287
|
};
|
|
338
288
|
const deserializeAws_json1_1CreatePipelineCommand = async (output, context) => {
|
|
339
289
|
if (output.statusCode >= 300) {
|
|
@@ -360,35 +310,19 @@ const deserializeAws_json1_1CreatePipelineCommandError = async (output, context)
|
|
|
360
310
|
switch (errorCode) {
|
|
361
311
|
case "InternalServiceError":
|
|
362
312
|
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
363
|
-
|
|
364
|
-
...(await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)),
|
|
365
|
-
name: errorCode,
|
|
366
|
-
$metadata: deserializeMetadata(output),
|
|
367
|
-
};
|
|
368
|
-
break;
|
|
313
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
369
314
|
case "InvalidRequestException":
|
|
370
315
|
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
371
|
-
|
|
372
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
373
|
-
name: errorCode,
|
|
374
|
-
$metadata: deserializeMetadata(output),
|
|
375
|
-
};
|
|
376
|
-
break;
|
|
316
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
377
317
|
default:
|
|
378
318
|
const parsedBody = parsedOutput.body;
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
...parsedBody,
|
|
382
|
-
name: `${errorCode}`,
|
|
383
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
319
|
+
response = new DataPipelineServiceException_1.DataPipelineServiceException({
|
|
320
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
384
321
|
$fault: "client",
|
|
385
322
|
$metadata: deserializeMetadata(output),
|
|
386
|
-
};
|
|
323
|
+
});
|
|
324
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
387
325
|
}
|
|
388
|
-
const message = response.message || response.Message || errorCode;
|
|
389
|
-
response.message = message;
|
|
390
|
-
delete response.Message;
|
|
391
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
392
326
|
};
|
|
393
327
|
const deserializeAws_json1_1DeactivatePipelineCommand = async (output, context) => {
|
|
394
328
|
if (output.statusCode >= 300) {
|
|
@@ -415,51 +349,25 @@ const deserializeAws_json1_1DeactivatePipelineCommandError = async (output, cont
|
|
|
415
349
|
switch (errorCode) {
|
|
416
350
|
case "InternalServiceError":
|
|
417
351
|
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
418
|
-
|
|
419
|
-
...(await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)),
|
|
420
|
-
name: errorCode,
|
|
421
|
-
$metadata: deserializeMetadata(output),
|
|
422
|
-
};
|
|
423
|
-
break;
|
|
352
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
424
353
|
case "InvalidRequestException":
|
|
425
354
|
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
426
|
-
|
|
427
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
428
|
-
name: errorCode,
|
|
429
|
-
$metadata: deserializeMetadata(output),
|
|
430
|
-
};
|
|
431
|
-
break;
|
|
355
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
432
356
|
case "PipelineDeletedException":
|
|
433
357
|
case "com.amazonaws.datapipeline#PipelineDeletedException":
|
|
434
|
-
|
|
435
|
-
...(await deserializeAws_json1_1PipelineDeletedExceptionResponse(parsedOutput, context)),
|
|
436
|
-
name: errorCode,
|
|
437
|
-
$metadata: deserializeMetadata(output),
|
|
438
|
-
};
|
|
439
|
-
break;
|
|
358
|
+
throw await deserializeAws_json1_1PipelineDeletedExceptionResponse(parsedOutput, context);
|
|
440
359
|
case "PipelineNotFoundException":
|
|
441
360
|
case "com.amazonaws.datapipeline#PipelineNotFoundException":
|
|
442
|
-
|
|
443
|
-
...(await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context)),
|
|
444
|
-
name: errorCode,
|
|
445
|
-
$metadata: deserializeMetadata(output),
|
|
446
|
-
};
|
|
447
|
-
break;
|
|
361
|
+
throw await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context);
|
|
448
362
|
default:
|
|
449
363
|
const parsedBody = parsedOutput.body;
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
...parsedBody,
|
|
453
|
-
name: `${errorCode}`,
|
|
454
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
364
|
+
response = new DataPipelineServiceException_1.DataPipelineServiceException({
|
|
365
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
455
366
|
$fault: "client",
|
|
456
367
|
$metadata: deserializeMetadata(output),
|
|
457
|
-
};
|
|
368
|
+
});
|
|
369
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
458
370
|
}
|
|
459
|
-
const message = response.message || response.Message || errorCode;
|
|
460
|
-
response.message = message;
|
|
461
|
-
delete response.Message;
|
|
462
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
463
371
|
};
|
|
464
372
|
const deserializeAws_json1_1DeletePipelineCommand = async (output, context) => {
|
|
465
373
|
if (output.statusCode >= 300) {
|
|
@@ -483,43 +391,22 @@ const deserializeAws_json1_1DeletePipelineCommandError = async (output, context)
|
|
|
483
391
|
switch (errorCode) {
|
|
484
392
|
case "InternalServiceError":
|
|
485
393
|
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
486
|
-
|
|
487
|
-
...(await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)),
|
|
488
|
-
name: errorCode,
|
|
489
|
-
$metadata: deserializeMetadata(output),
|
|
490
|
-
};
|
|
491
|
-
break;
|
|
394
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
492
395
|
case "InvalidRequestException":
|
|
493
396
|
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
494
|
-
|
|
495
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
496
|
-
name: errorCode,
|
|
497
|
-
$metadata: deserializeMetadata(output),
|
|
498
|
-
};
|
|
499
|
-
break;
|
|
397
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
500
398
|
case "PipelineNotFoundException":
|
|
501
399
|
case "com.amazonaws.datapipeline#PipelineNotFoundException":
|
|
502
|
-
|
|
503
|
-
...(await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context)),
|
|
504
|
-
name: errorCode,
|
|
505
|
-
$metadata: deserializeMetadata(output),
|
|
506
|
-
};
|
|
507
|
-
break;
|
|
400
|
+
throw await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context);
|
|
508
401
|
default:
|
|
509
402
|
const parsedBody = parsedOutput.body;
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
...parsedBody,
|
|
513
|
-
name: `${errorCode}`,
|
|
514
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
403
|
+
response = new DataPipelineServiceException_1.DataPipelineServiceException({
|
|
404
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
515
405
|
$fault: "client",
|
|
516
406
|
$metadata: deserializeMetadata(output),
|
|
517
|
-
};
|
|
407
|
+
});
|
|
408
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
518
409
|
}
|
|
519
|
-
const message = response.message || response.Message || errorCode;
|
|
520
|
-
response.message = message;
|
|
521
|
-
delete response.Message;
|
|
522
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
523
410
|
};
|
|
524
411
|
const deserializeAws_json1_1DescribeObjectsCommand = async (output, context) => {
|
|
525
412
|
if (output.statusCode >= 300) {
|
|
@@ -546,51 +433,25 @@ const deserializeAws_json1_1DescribeObjectsCommandError = async (output, context
|
|
|
546
433
|
switch (errorCode) {
|
|
547
434
|
case "InternalServiceError":
|
|
548
435
|
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
549
|
-
|
|
550
|
-
...(await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)),
|
|
551
|
-
name: errorCode,
|
|
552
|
-
$metadata: deserializeMetadata(output),
|
|
553
|
-
};
|
|
554
|
-
break;
|
|
436
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
555
437
|
case "InvalidRequestException":
|
|
556
438
|
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
557
|
-
|
|
558
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
559
|
-
name: errorCode,
|
|
560
|
-
$metadata: deserializeMetadata(output),
|
|
561
|
-
};
|
|
562
|
-
break;
|
|
439
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
563
440
|
case "PipelineDeletedException":
|
|
564
441
|
case "com.amazonaws.datapipeline#PipelineDeletedException":
|
|
565
|
-
|
|
566
|
-
...(await deserializeAws_json1_1PipelineDeletedExceptionResponse(parsedOutput, context)),
|
|
567
|
-
name: errorCode,
|
|
568
|
-
$metadata: deserializeMetadata(output),
|
|
569
|
-
};
|
|
570
|
-
break;
|
|
442
|
+
throw await deserializeAws_json1_1PipelineDeletedExceptionResponse(parsedOutput, context);
|
|
571
443
|
case "PipelineNotFoundException":
|
|
572
444
|
case "com.amazonaws.datapipeline#PipelineNotFoundException":
|
|
573
|
-
|
|
574
|
-
...(await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context)),
|
|
575
|
-
name: errorCode,
|
|
576
|
-
$metadata: deserializeMetadata(output),
|
|
577
|
-
};
|
|
578
|
-
break;
|
|
445
|
+
throw await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context);
|
|
579
446
|
default:
|
|
580
447
|
const parsedBody = parsedOutput.body;
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
...parsedBody,
|
|
584
|
-
name: `${errorCode}`,
|
|
585
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
448
|
+
response = new DataPipelineServiceException_1.DataPipelineServiceException({
|
|
449
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
586
450
|
$fault: "client",
|
|
587
451
|
$metadata: deserializeMetadata(output),
|
|
588
|
-
};
|
|
452
|
+
});
|
|
453
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
589
454
|
}
|
|
590
|
-
const message = response.message || response.Message || errorCode;
|
|
591
|
-
response.message = message;
|
|
592
|
-
delete response.Message;
|
|
593
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
594
455
|
};
|
|
595
456
|
const deserializeAws_json1_1DescribePipelinesCommand = async (output, context) => {
|
|
596
457
|
if (output.statusCode >= 300) {
|
|
@@ -617,51 +478,25 @@ const deserializeAws_json1_1DescribePipelinesCommandError = async (output, conte
|
|
|
617
478
|
switch (errorCode) {
|
|
618
479
|
case "InternalServiceError":
|
|
619
480
|
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
620
|
-
|
|
621
|
-
...(await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)),
|
|
622
|
-
name: errorCode,
|
|
623
|
-
$metadata: deserializeMetadata(output),
|
|
624
|
-
};
|
|
625
|
-
break;
|
|
481
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
626
482
|
case "InvalidRequestException":
|
|
627
483
|
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
628
|
-
|
|
629
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
630
|
-
name: errorCode,
|
|
631
|
-
$metadata: deserializeMetadata(output),
|
|
632
|
-
};
|
|
633
|
-
break;
|
|
484
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
634
485
|
case "PipelineDeletedException":
|
|
635
486
|
case "com.amazonaws.datapipeline#PipelineDeletedException":
|
|
636
|
-
|
|
637
|
-
...(await deserializeAws_json1_1PipelineDeletedExceptionResponse(parsedOutput, context)),
|
|
638
|
-
name: errorCode,
|
|
639
|
-
$metadata: deserializeMetadata(output),
|
|
640
|
-
};
|
|
641
|
-
break;
|
|
487
|
+
throw await deserializeAws_json1_1PipelineDeletedExceptionResponse(parsedOutput, context);
|
|
642
488
|
case "PipelineNotFoundException":
|
|
643
489
|
case "com.amazonaws.datapipeline#PipelineNotFoundException":
|
|
644
|
-
|
|
645
|
-
...(await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context)),
|
|
646
|
-
name: errorCode,
|
|
647
|
-
$metadata: deserializeMetadata(output),
|
|
648
|
-
};
|
|
649
|
-
break;
|
|
490
|
+
throw await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context);
|
|
650
491
|
default:
|
|
651
492
|
const parsedBody = parsedOutput.body;
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
...parsedBody,
|
|
655
|
-
name: `${errorCode}`,
|
|
656
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
493
|
+
response = new DataPipelineServiceException_1.DataPipelineServiceException({
|
|
494
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
657
495
|
$fault: "client",
|
|
658
496
|
$metadata: deserializeMetadata(output),
|
|
659
|
-
};
|
|
497
|
+
});
|
|
498
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
660
499
|
}
|
|
661
|
-
const message = response.message || response.Message || errorCode;
|
|
662
|
-
response.message = message;
|
|
663
|
-
delete response.Message;
|
|
664
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
665
500
|
};
|
|
666
501
|
const deserializeAws_json1_1EvaluateExpressionCommand = async (output, context) => {
|
|
667
502
|
if (output.statusCode >= 300) {
|
|
@@ -688,59 +523,28 @@ const deserializeAws_json1_1EvaluateExpressionCommandError = async (output, cont
|
|
|
688
523
|
switch (errorCode) {
|
|
689
524
|
case "InternalServiceError":
|
|
690
525
|
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
691
|
-
|
|
692
|
-
...(await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)),
|
|
693
|
-
name: errorCode,
|
|
694
|
-
$metadata: deserializeMetadata(output),
|
|
695
|
-
};
|
|
696
|
-
break;
|
|
526
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
697
527
|
case "InvalidRequestException":
|
|
698
528
|
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
699
|
-
|
|
700
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
701
|
-
name: errorCode,
|
|
702
|
-
$metadata: deserializeMetadata(output),
|
|
703
|
-
};
|
|
704
|
-
break;
|
|
529
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
705
530
|
case "PipelineDeletedException":
|
|
706
531
|
case "com.amazonaws.datapipeline#PipelineDeletedException":
|
|
707
|
-
|
|
708
|
-
...(await deserializeAws_json1_1PipelineDeletedExceptionResponse(parsedOutput, context)),
|
|
709
|
-
name: errorCode,
|
|
710
|
-
$metadata: deserializeMetadata(output),
|
|
711
|
-
};
|
|
712
|
-
break;
|
|
532
|
+
throw await deserializeAws_json1_1PipelineDeletedExceptionResponse(parsedOutput, context);
|
|
713
533
|
case "PipelineNotFoundException":
|
|
714
534
|
case "com.amazonaws.datapipeline#PipelineNotFoundException":
|
|
715
|
-
|
|
716
|
-
...(await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context)),
|
|
717
|
-
name: errorCode,
|
|
718
|
-
$metadata: deserializeMetadata(output),
|
|
719
|
-
};
|
|
720
|
-
break;
|
|
535
|
+
throw await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context);
|
|
721
536
|
case "TaskNotFoundException":
|
|
722
537
|
case "com.amazonaws.datapipeline#TaskNotFoundException":
|
|
723
|
-
|
|
724
|
-
...(await deserializeAws_json1_1TaskNotFoundExceptionResponse(parsedOutput, context)),
|
|
725
|
-
name: errorCode,
|
|
726
|
-
$metadata: deserializeMetadata(output),
|
|
727
|
-
};
|
|
728
|
-
break;
|
|
538
|
+
throw await deserializeAws_json1_1TaskNotFoundExceptionResponse(parsedOutput, context);
|
|
729
539
|
default:
|
|
730
540
|
const parsedBody = parsedOutput.body;
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
...parsedBody,
|
|
734
|
-
name: `${errorCode}`,
|
|
735
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
541
|
+
response = new DataPipelineServiceException_1.DataPipelineServiceException({
|
|
542
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
736
543
|
$fault: "client",
|
|
737
544
|
$metadata: deserializeMetadata(output),
|
|
738
|
-
};
|
|
545
|
+
});
|
|
546
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
739
547
|
}
|
|
740
|
-
const message = response.message || response.Message || errorCode;
|
|
741
|
-
response.message = message;
|
|
742
|
-
delete response.Message;
|
|
743
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
744
548
|
};
|
|
745
549
|
const deserializeAws_json1_1GetPipelineDefinitionCommand = async (output, context) => {
|
|
746
550
|
if (output.statusCode >= 300) {
|
|
@@ -767,51 +571,25 @@ const deserializeAws_json1_1GetPipelineDefinitionCommandError = async (output, c
|
|
|
767
571
|
switch (errorCode) {
|
|
768
572
|
case "InternalServiceError":
|
|
769
573
|
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
770
|
-
|
|
771
|
-
...(await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)),
|
|
772
|
-
name: errorCode,
|
|
773
|
-
$metadata: deserializeMetadata(output),
|
|
774
|
-
};
|
|
775
|
-
break;
|
|
574
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
776
575
|
case "InvalidRequestException":
|
|
777
576
|
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
778
|
-
|
|
779
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
780
|
-
name: errorCode,
|
|
781
|
-
$metadata: deserializeMetadata(output),
|
|
782
|
-
};
|
|
783
|
-
break;
|
|
577
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
784
578
|
case "PipelineDeletedException":
|
|
785
579
|
case "com.amazonaws.datapipeline#PipelineDeletedException":
|
|
786
|
-
|
|
787
|
-
...(await deserializeAws_json1_1PipelineDeletedExceptionResponse(parsedOutput, context)),
|
|
788
|
-
name: errorCode,
|
|
789
|
-
$metadata: deserializeMetadata(output),
|
|
790
|
-
};
|
|
791
|
-
break;
|
|
580
|
+
throw await deserializeAws_json1_1PipelineDeletedExceptionResponse(parsedOutput, context);
|
|
792
581
|
case "PipelineNotFoundException":
|
|
793
582
|
case "com.amazonaws.datapipeline#PipelineNotFoundException":
|
|
794
|
-
|
|
795
|
-
...(await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context)),
|
|
796
|
-
name: errorCode,
|
|
797
|
-
$metadata: deserializeMetadata(output),
|
|
798
|
-
};
|
|
799
|
-
break;
|
|
583
|
+
throw await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context);
|
|
800
584
|
default:
|
|
801
585
|
const parsedBody = parsedOutput.body;
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
...parsedBody,
|
|
805
|
-
name: `${errorCode}`,
|
|
806
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
586
|
+
response = new DataPipelineServiceException_1.DataPipelineServiceException({
|
|
587
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
807
588
|
$fault: "client",
|
|
808
589
|
$metadata: deserializeMetadata(output),
|
|
809
|
-
};
|
|
590
|
+
});
|
|
591
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
810
592
|
}
|
|
811
|
-
const message = response.message || response.Message || errorCode;
|
|
812
|
-
response.message = message;
|
|
813
|
-
delete response.Message;
|
|
814
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
815
593
|
};
|
|
816
594
|
const deserializeAws_json1_1ListPipelinesCommand = async (output, context) => {
|
|
817
595
|
if (output.statusCode >= 300) {
|
|
@@ -838,35 +616,19 @@ const deserializeAws_json1_1ListPipelinesCommandError = async (output, context)
|
|
|
838
616
|
switch (errorCode) {
|
|
839
617
|
case "InternalServiceError":
|
|
840
618
|
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
841
|
-
|
|
842
|
-
...(await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)),
|
|
843
|
-
name: errorCode,
|
|
844
|
-
$metadata: deserializeMetadata(output),
|
|
845
|
-
};
|
|
846
|
-
break;
|
|
619
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
847
620
|
case "InvalidRequestException":
|
|
848
621
|
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
849
|
-
|
|
850
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
851
|
-
name: errorCode,
|
|
852
|
-
$metadata: deserializeMetadata(output),
|
|
853
|
-
};
|
|
854
|
-
break;
|
|
622
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
855
623
|
default:
|
|
856
624
|
const parsedBody = parsedOutput.body;
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
...parsedBody,
|
|
860
|
-
name: `${errorCode}`,
|
|
861
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
625
|
+
response = new DataPipelineServiceException_1.DataPipelineServiceException({
|
|
626
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
862
627
|
$fault: "client",
|
|
863
628
|
$metadata: deserializeMetadata(output),
|
|
864
|
-
};
|
|
629
|
+
});
|
|
630
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
865
631
|
}
|
|
866
|
-
const message = response.message || response.Message || errorCode;
|
|
867
|
-
response.message = message;
|
|
868
|
-
delete response.Message;
|
|
869
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
870
632
|
};
|
|
871
633
|
const deserializeAws_json1_1PollForTaskCommand = async (output, context) => {
|
|
872
634
|
if (output.statusCode >= 300) {
|
|
@@ -893,43 +655,22 @@ const deserializeAws_json1_1PollForTaskCommandError = async (output, context) =>
|
|
|
893
655
|
switch (errorCode) {
|
|
894
656
|
case "InternalServiceError":
|
|
895
657
|
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
896
|
-
|
|
897
|
-
...(await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)),
|
|
898
|
-
name: errorCode,
|
|
899
|
-
$metadata: deserializeMetadata(output),
|
|
900
|
-
};
|
|
901
|
-
break;
|
|
658
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
902
659
|
case "InvalidRequestException":
|
|
903
660
|
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
904
|
-
|
|
905
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
906
|
-
name: errorCode,
|
|
907
|
-
$metadata: deserializeMetadata(output),
|
|
908
|
-
};
|
|
909
|
-
break;
|
|
661
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
910
662
|
case "TaskNotFoundException":
|
|
911
663
|
case "com.amazonaws.datapipeline#TaskNotFoundException":
|
|
912
|
-
|
|
913
|
-
...(await deserializeAws_json1_1TaskNotFoundExceptionResponse(parsedOutput, context)),
|
|
914
|
-
name: errorCode,
|
|
915
|
-
$metadata: deserializeMetadata(output),
|
|
916
|
-
};
|
|
917
|
-
break;
|
|
664
|
+
throw await deserializeAws_json1_1TaskNotFoundExceptionResponse(parsedOutput, context);
|
|
918
665
|
default:
|
|
919
666
|
const parsedBody = parsedOutput.body;
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
...parsedBody,
|
|
923
|
-
name: `${errorCode}`,
|
|
924
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
667
|
+
response = new DataPipelineServiceException_1.DataPipelineServiceException({
|
|
668
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
925
669
|
$fault: "client",
|
|
926
670
|
$metadata: deserializeMetadata(output),
|
|
927
|
-
};
|
|
671
|
+
});
|
|
672
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
928
673
|
}
|
|
929
|
-
const message = response.message || response.Message || errorCode;
|
|
930
|
-
response.message = message;
|
|
931
|
-
delete response.Message;
|
|
932
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
933
674
|
};
|
|
934
675
|
const deserializeAws_json1_1PutPipelineDefinitionCommand = async (output, context) => {
|
|
935
676
|
if (output.statusCode >= 300) {
|
|
@@ -956,51 +697,25 @@ const deserializeAws_json1_1PutPipelineDefinitionCommandError = async (output, c
|
|
|
956
697
|
switch (errorCode) {
|
|
957
698
|
case "InternalServiceError":
|
|
958
699
|
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
959
|
-
|
|
960
|
-
...(await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)),
|
|
961
|
-
name: errorCode,
|
|
962
|
-
$metadata: deserializeMetadata(output),
|
|
963
|
-
};
|
|
964
|
-
break;
|
|
700
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
965
701
|
case "InvalidRequestException":
|
|
966
702
|
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
967
|
-
|
|
968
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
969
|
-
name: errorCode,
|
|
970
|
-
$metadata: deserializeMetadata(output),
|
|
971
|
-
};
|
|
972
|
-
break;
|
|
703
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
973
704
|
case "PipelineDeletedException":
|
|
974
705
|
case "com.amazonaws.datapipeline#PipelineDeletedException":
|
|
975
|
-
|
|
976
|
-
...(await deserializeAws_json1_1PipelineDeletedExceptionResponse(parsedOutput, context)),
|
|
977
|
-
name: errorCode,
|
|
978
|
-
$metadata: deserializeMetadata(output),
|
|
979
|
-
};
|
|
980
|
-
break;
|
|
706
|
+
throw await deserializeAws_json1_1PipelineDeletedExceptionResponse(parsedOutput, context);
|
|
981
707
|
case "PipelineNotFoundException":
|
|
982
708
|
case "com.amazonaws.datapipeline#PipelineNotFoundException":
|
|
983
|
-
|
|
984
|
-
...(await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context)),
|
|
985
|
-
name: errorCode,
|
|
986
|
-
$metadata: deserializeMetadata(output),
|
|
987
|
-
};
|
|
988
|
-
break;
|
|
709
|
+
throw await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context);
|
|
989
710
|
default:
|
|
990
711
|
const parsedBody = parsedOutput.body;
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
...parsedBody,
|
|
994
|
-
name: `${errorCode}`,
|
|
995
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
712
|
+
response = new DataPipelineServiceException_1.DataPipelineServiceException({
|
|
713
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
996
714
|
$fault: "client",
|
|
997
715
|
$metadata: deserializeMetadata(output),
|
|
998
|
-
};
|
|
716
|
+
});
|
|
717
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
999
718
|
}
|
|
1000
|
-
const message = response.message || response.Message || errorCode;
|
|
1001
|
-
response.message = message;
|
|
1002
|
-
delete response.Message;
|
|
1003
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1004
719
|
};
|
|
1005
720
|
const deserializeAws_json1_1QueryObjectsCommand = async (output, context) => {
|
|
1006
721
|
if (output.statusCode >= 300) {
|
|
@@ -1027,51 +742,25 @@ const deserializeAws_json1_1QueryObjectsCommandError = async (output, context) =
|
|
|
1027
742
|
switch (errorCode) {
|
|
1028
743
|
case "InternalServiceError":
|
|
1029
744
|
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
1030
|
-
|
|
1031
|
-
...(await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)),
|
|
1032
|
-
name: errorCode,
|
|
1033
|
-
$metadata: deserializeMetadata(output),
|
|
1034
|
-
};
|
|
1035
|
-
break;
|
|
745
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
1036
746
|
case "InvalidRequestException":
|
|
1037
747
|
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
1038
|
-
|
|
1039
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1040
|
-
name: errorCode,
|
|
1041
|
-
$metadata: deserializeMetadata(output),
|
|
1042
|
-
};
|
|
1043
|
-
break;
|
|
748
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1044
749
|
case "PipelineDeletedException":
|
|
1045
750
|
case "com.amazonaws.datapipeline#PipelineDeletedException":
|
|
1046
|
-
|
|
1047
|
-
...(await deserializeAws_json1_1PipelineDeletedExceptionResponse(parsedOutput, context)),
|
|
1048
|
-
name: errorCode,
|
|
1049
|
-
$metadata: deserializeMetadata(output),
|
|
1050
|
-
};
|
|
1051
|
-
break;
|
|
751
|
+
throw await deserializeAws_json1_1PipelineDeletedExceptionResponse(parsedOutput, context);
|
|
1052
752
|
case "PipelineNotFoundException":
|
|
1053
753
|
case "com.amazonaws.datapipeline#PipelineNotFoundException":
|
|
1054
|
-
|
|
1055
|
-
...(await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context)),
|
|
1056
|
-
name: errorCode,
|
|
1057
|
-
$metadata: deserializeMetadata(output),
|
|
1058
|
-
};
|
|
1059
|
-
break;
|
|
754
|
+
throw await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context);
|
|
1060
755
|
default:
|
|
1061
756
|
const parsedBody = parsedOutput.body;
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
...parsedBody,
|
|
1065
|
-
name: `${errorCode}`,
|
|
1066
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
757
|
+
response = new DataPipelineServiceException_1.DataPipelineServiceException({
|
|
758
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1067
759
|
$fault: "client",
|
|
1068
760
|
$metadata: deserializeMetadata(output),
|
|
1069
|
-
};
|
|
761
|
+
});
|
|
762
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1070
763
|
}
|
|
1071
|
-
const message = response.message || response.Message || errorCode;
|
|
1072
|
-
response.message = message;
|
|
1073
|
-
delete response.Message;
|
|
1074
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1075
764
|
};
|
|
1076
765
|
const deserializeAws_json1_1RemoveTagsCommand = async (output, context) => {
|
|
1077
766
|
if (output.statusCode >= 300) {
|
|
@@ -1098,51 +787,25 @@ const deserializeAws_json1_1RemoveTagsCommandError = async (output, context) =>
|
|
|
1098
787
|
switch (errorCode) {
|
|
1099
788
|
case "InternalServiceError":
|
|
1100
789
|
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
1101
|
-
|
|
1102
|
-
...(await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)),
|
|
1103
|
-
name: errorCode,
|
|
1104
|
-
$metadata: deserializeMetadata(output),
|
|
1105
|
-
};
|
|
1106
|
-
break;
|
|
790
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
1107
791
|
case "InvalidRequestException":
|
|
1108
792
|
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
1109
|
-
|
|
1110
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1111
|
-
name: errorCode,
|
|
1112
|
-
$metadata: deserializeMetadata(output),
|
|
1113
|
-
};
|
|
1114
|
-
break;
|
|
793
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1115
794
|
case "PipelineDeletedException":
|
|
1116
795
|
case "com.amazonaws.datapipeline#PipelineDeletedException":
|
|
1117
|
-
|
|
1118
|
-
...(await deserializeAws_json1_1PipelineDeletedExceptionResponse(parsedOutput, context)),
|
|
1119
|
-
name: errorCode,
|
|
1120
|
-
$metadata: deserializeMetadata(output),
|
|
1121
|
-
};
|
|
1122
|
-
break;
|
|
796
|
+
throw await deserializeAws_json1_1PipelineDeletedExceptionResponse(parsedOutput, context);
|
|
1123
797
|
case "PipelineNotFoundException":
|
|
1124
798
|
case "com.amazonaws.datapipeline#PipelineNotFoundException":
|
|
1125
|
-
|
|
1126
|
-
...(await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context)),
|
|
1127
|
-
name: errorCode,
|
|
1128
|
-
$metadata: deserializeMetadata(output),
|
|
1129
|
-
};
|
|
1130
|
-
break;
|
|
799
|
+
throw await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context);
|
|
1131
800
|
default:
|
|
1132
801
|
const parsedBody = parsedOutput.body;
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
...parsedBody,
|
|
1136
|
-
name: `${errorCode}`,
|
|
1137
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
802
|
+
response = new DataPipelineServiceException_1.DataPipelineServiceException({
|
|
803
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1138
804
|
$fault: "client",
|
|
1139
805
|
$metadata: deserializeMetadata(output),
|
|
1140
|
-
};
|
|
806
|
+
});
|
|
807
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1141
808
|
}
|
|
1142
|
-
const message = response.message || response.Message || errorCode;
|
|
1143
|
-
response.message = message;
|
|
1144
|
-
delete response.Message;
|
|
1145
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1146
809
|
};
|
|
1147
810
|
const deserializeAws_json1_1ReportTaskProgressCommand = async (output, context) => {
|
|
1148
811
|
if (output.statusCode >= 300) {
|
|
@@ -1169,59 +832,28 @@ const deserializeAws_json1_1ReportTaskProgressCommandError = async (output, cont
|
|
|
1169
832
|
switch (errorCode) {
|
|
1170
833
|
case "InternalServiceError":
|
|
1171
834
|
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
1172
|
-
|
|
1173
|
-
...(await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)),
|
|
1174
|
-
name: errorCode,
|
|
1175
|
-
$metadata: deserializeMetadata(output),
|
|
1176
|
-
};
|
|
1177
|
-
break;
|
|
835
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
1178
836
|
case "InvalidRequestException":
|
|
1179
837
|
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
1180
|
-
|
|
1181
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1182
|
-
name: errorCode,
|
|
1183
|
-
$metadata: deserializeMetadata(output),
|
|
1184
|
-
};
|
|
1185
|
-
break;
|
|
838
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1186
839
|
case "PipelineDeletedException":
|
|
1187
840
|
case "com.amazonaws.datapipeline#PipelineDeletedException":
|
|
1188
|
-
|
|
1189
|
-
...(await deserializeAws_json1_1PipelineDeletedExceptionResponse(parsedOutput, context)),
|
|
1190
|
-
name: errorCode,
|
|
1191
|
-
$metadata: deserializeMetadata(output),
|
|
1192
|
-
};
|
|
1193
|
-
break;
|
|
841
|
+
throw await deserializeAws_json1_1PipelineDeletedExceptionResponse(parsedOutput, context);
|
|
1194
842
|
case "PipelineNotFoundException":
|
|
1195
843
|
case "com.amazonaws.datapipeline#PipelineNotFoundException":
|
|
1196
|
-
|
|
1197
|
-
...(await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context)),
|
|
1198
|
-
name: errorCode,
|
|
1199
|
-
$metadata: deserializeMetadata(output),
|
|
1200
|
-
};
|
|
1201
|
-
break;
|
|
844
|
+
throw await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context);
|
|
1202
845
|
case "TaskNotFoundException":
|
|
1203
846
|
case "com.amazonaws.datapipeline#TaskNotFoundException":
|
|
1204
|
-
|
|
1205
|
-
...(await deserializeAws_json1_1TaskNotFoundExceptionResponse(parsedOutput, context)),
|
|
1206
|
-
name: errorCode,
|
|
1207
|
-
$metadata: deserializeMetadata(output),
|
|
1208
|
-
};
|
|
1209
|
-
break;
|
|
847
|
+
throw await deserializeAws_json1_1TaskNotFoundExceptionResponse(parsedOutput, context);
|
|
1210
848
|
default:
|
|
1211
849
|
const parsedBody = parsedOutput.body;
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
...parsedBody,
|
|
1215
|
-
name: `${errorCode}`,
|
|
1216
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
850
|
+
response = new DataPipelineServiceException_1.DataPipelineServiceException({
|
|
851
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1217
852
|
$fault: "client",
|
|
1218
853
|
$metadata: deserializeMetadata(output),
|
|
1219
|
-
};
|
|
854
|
+
});
|
|
855
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1220
856
|
}
|
|
1221
|
-
const message = response.message || response.Message || errorCode;
|
|
1222
|
-
response.message = message;
|
|
1223
|
-
delete response.Message;
|
|
1224
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1225
857
|
};
|
|
1226
858
|
const deserializeAws_json1_1ReportTaskRunnerHeartbeatCommand = async (output, context) => {
|
|
1227
859
|
if (output.statusCode >= 300) {
|
|
@@ -1248,35 +880,19 @@ const deserializeAws_json1_1ReportTaskRunnerHeartbeatCommandError = async (outpu
|
|
|
1248
880
|
switch (errorCode) {
|
|
1249
881
|
case "InternalServiceError":
|
|
1250
882
|
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
1251
|
-
|
|
1252
|
-
...(await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)),
|
|
1253
|
-
name: errorCode,
|
|
1254
|
-
$metadata: deserializeMetadata(output),
|
|
1255
|
-
};
|
|
1256
|
-
break;
|
|
883
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
1257
884
|
case "InvalidRequestException":
|
|
1258
885
|
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
1259
|
-
|
|
1260
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1261
|
-
name: errorCode,
|
|
1262
|
-
$metadata: deserializeMetadata(output),
|
|
1263
|
-
};
|
|
1264
|
-
break;
|
|
886
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1265
887
|
default:
|
|
1266
888
|
const parsedBody = parsedOutput.body;
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
...parsedBody,
|
|
1270
|
-
name: `${errorCode}`,
|
|
1271
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
889
|
+
response = new DataPipelineServiceException_1.DataPipelineServiceException({
|
|
890
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1272
891
|
$fault: "client",
|
|
1273
892
|
$metadata: deserializeMetadata(output),
|
|
1274
|
-
};
|
|
893
|
+
});
|
|
894
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1275
895
|
}
|
|
1276
|
-
const message = response.message || response.Message || errorCode;
|
|
1277
|
-
response.message = message;
|
|
1278
|
-
delete response.Message;
|
|
1279
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1280
896
|
};
|
|
1281
897
|
const deserializeAws_json1_1SetStatusCommand = async (output, context) => {
|
|
1282
898
|
if (output.statusCode >= 300) {
|
|
@@ -1300,51 +916,25 @@ const deserializeAws_json1_1SetStatusCommandError = async (output, context) => {
|
|
|
1300
916
|
switch (errorCode) {
|
|
1301
917
|
case "InternalServiceError":
|
|
1302
918
|
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
1303
|
-
|
|
1304
|
-
...(await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)),
|
|
1305
|
-
name: errorCode,
|
|
1306
|
-
$metadata: deserializeMetadata(output),
|
|
1307
|
-
};
|
|
1308
|
-
break;
|
|
919
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
1309
920
|
case "InvalidRequestException":
|
|
1310
921
|
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
1311
|
-
|
|
1312
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1313
|
-
name: errorCode,
|
|
1314
|
-
$metadata: deserializeMetadata(output),
|
|
1315
|
-
};
|
|
1316
|
-
break;
|
|
922
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1317
923
|
case "PipelineDeletedException":
|
|
1318
924
|
case "com.amazonaws.datapipeline#PipelineDeletedException":
|
|
1319
|
-
|
|
1320
|
-
...(await deserializeAws_json1_1PipelineDeletedExceptionResponse(parsedOutput, context)),
|
|
1321
|
-
name: errorCode,
|
|
1322
|
-
$metadata: deserializeMetadata(output),
|
|
1323
|
-
};
|
|
1324
|
-
break;
|
|
925
|
+
throw await deserializeAws_json1_1PipelineDeletedExceptionResponse(parsedOutput, context);
|
|
1325
926
|
case "PipelineNotFoundException":
|
|
1326
927
|
case "com.amazonaws.datapipeline#PipelineNotFoundException":
|
|
1327
|
-
|
|
1328
|
-
...(await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context)),
|
|
1329
|
-
name: errorCode,
|
|
1330
|
-
$metadata: deserializeMetadata(output),
|
|
1331
|
-
};
|
|
1332
|
-
break;
|
|
928
|
+
throw await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context);
|
|
1333
929
|
default:
|
|
1334
930
|
const parsedBody = parsedOutput.body;
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
...parsedBody,
|
|
1338
|
-
name: `${errorCode}`,
|
|
1339
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
931
|
+
response = new DataPipelineServiceException_1.DataPipelineServiceException({
|
|
932
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1340
933
|
$fault: "client",
|
|
1341
934
|
$metadata: deserializeMetadata(output),
|
|
1342
|
-
};
|
|
935
|
+
});
|
|
936
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1343
937
|
}
|
|
1344
|
-
const message = response.message || response.Message || errorCode;
|
|
1345
|
-
response.message = message;
|
|
1346
|
-
delete response.Message;
|
|
1347
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1348
938
|
};
|
|
1349
939
|
const deserializeAws_json1_1SetTaskStatusCommand = async (output, context) => {
|
|
1350
940
|
if (output.statusCode >= 300) {
|
|
@@ -1371,59 +961,28 @@ const deserializeAws_json1_1SetTaskStatusCommandError = async (output, context)
|
|
|
1371
961
|
switch (errorCode) {
|
|
1372
962
|
case "InternalServiceError":
|
|
1373
963
|
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
1374
|
-
|
|
1375
|
-
...(await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)),
|
|
1376
|
-
name: errorCode,
|
|
1377
|
-
$metadata: deserializeMetadata(output),
|
|
1378
|
-
};
|
|
1379
|
-
break;
|
|
964
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
1380
965
|
case "InvalidRequestException":
|
|
1381
966
|
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
1382
|
-
|
|
1383
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1384
|
-
name: errorCode,
|
|
1385
|
-
$metadata: deserializeMetadata(output),
|
|
1386
|
-
};
|
|
1387
|
-
break;
|
|
967
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1388
968
|
case "PipelineDeletedException":
|
|
1389
969
|
case "com.amazonaws.datapipeline#PipelineDeletedException":
|
|
1390
|
-
|
|
1391
|
-
...(await deserializeAws_json1_1PipelineDeletedExceptionResponse(parsedOutput, context)),
|
|
1392
|
-
name: errorCode,
|
|
1393
|
-
$metadata: deserializeMetadata(output),
|
|
1394
|
-
};
|
|
1395
|
-
break;
|
|
970
|
+
throw await deserializeAws_json1_1PipelineDeletedExceptionResponse(parsedOutput, context);
|
|
1396
971
|
case "PipelineNotFoundException":
|
|
1397
972
|
case "com.amazonaws.datapipeline#PipelineNotFoundException":
|
|
1398
|
-
|
|
1399
|
-
...(await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context)),
|
|
1400
|
-
name: errorCode,
|
|
1401
|
-
$metadata: deserializeMetadata(output),
|
|
1402
|
-
};
|
|
1403
|
-
break;
|
|
973
|
+
throw await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context);
|
|
1404
974
|
case "TaskNotFoundException":
|
|
1405
975
|
case "com.amazonaws.datapipeline#TaskNotFoundException":
|
|
1406
|
-
|
|
1407
|
-
...(await deserializeAws_json1_1TaskNotFoundExceptionResponse(parsedOutput, context)),
|
|
1408
|
-
name: errorCode,
|
|
1409
|
-
$metadata: deserializeMetadata(output),
|
|
1410
|
-
};
|
|
1411
|
-
break;
|
|
976
|
+
throw await deserializeAws_json1_1TaskNotFoundExceptionResponse(parsedOutput, context);
|
|
1412
977
|
default:
|
|
1413
978
|
const parsedBody = parsedOutput.body;
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
...parsedBody,
|
|
1417
|
-
name: `${errorCode}`,
|
|
1418
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
979
|
+
response = new DataPipelineServiceException_1.DataPipelineServiceException({
|
|
980
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1419
981
|
$fault: "client",
|
|
1420
982
|
$metadata: deserializeMetadata(output),
|
|
1421
|
-
};
|
|
983
|
+
});
|
|
984
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1422
985
|
}
|
|
1423
|
-
const message = response.message || response.Message || errorCode;
|
|
1424
|
-
response.message = message;
|
|
1425
|
-
delete response.Message;
|
|
1426
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1427
986
|
};
|
|
1428
987
|
const deserializeAws_json1_1ValidatePipelineDefinitionCommand = async (output, context) => {
|
|
1429
988
|
if (output.statusCode >= 300) {
|
|
@@ -1450,106 +1009,70 @@ const deserializeAws_json1_1ValidatePipelineDefinitionCommandError = async (outp
|
|
|
1450
1009
|
switch (errorCode) {
|
|
1451
1010
|
case "InternalServiceError":
|
|
1452
1011
|
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
1453
|
-
|
|
1454
|
-
...(await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)),
|
|
1455
|
-
name: errorCode,
|
|
1456
|
-
$metadata: deserializeMetadata(output),
|
|
1457
|
-
};
|
|
1458
|
-
break;
|
|
1012
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
1459
1013
|
case "InvalidRequestException":
|
|
1460
1014
|
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
1461
|
-
|
|
1462
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1463
|
-
name: errorCode,
|
|
1464
|
-
$metadata: deserializeMetadata(output),
|
|
1465
|
-
};
|
|
1466
|
-
break;
|
|
1015
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1467
1016
|
case "PipelineDeletedException":
|
|
1468
1017
|
case "com.amazonaws.datapipeline#PipelineDeletedException":
|
|
1469
|
-
|
|
1470
|
-
...(await deserializeAws_json1_1PipelineDeletedExceptionResponse(parsedOutput, context)),
|
|
1471
|
-
name: errorCode,
|
|
1472
|
-
$metadata: deserializeMetadata(output),
|
|
1473
|
-
};
|
|
1474
|
-
break;
|
|
1018
|
+
throw await deserializeAws_json1_1PipelineDeletedExceptionResponse(parsedOutput, context);
|
|
1475
1019
|
case "PipelineNotFoundException":
|
|
1476
1020
|
case "com.amazonaws.datapipeline#PipelineNotFoundException":
|
|
1477
|
-
|
|
1478
|
-
...(await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context)),
|
|
1479
|
-
name: errorCode,
|
|
1480
|
-
$metadata: deserializeMetadata(output),
|
|
1481
|
-
};
|
|
1482
|
-
break;
|
|
1021
|
+
throw await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context);
|
|
1483
1022
|
default:
|
|
1484
1023
|
const parsedBody = parsedOutput.body;
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
...parsedBody,
|
|
1488
|
-
name: `${errorCode}`,
|
|
1489
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1024
|
+
response = new DataPipelineServiceException_1.DataPipelineServiceException({
|
|
1025
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1490
1026
|
$fault: "client",
|
|
1491
1027
|
$metadata: deserializeMetadata(output),
|
|
1492
|
-
};
|
|
1028
|
+
});
|
|
1029
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1493
1030
|
}
|
|
1494
|
-
const message = response.message || response.Message || errorCode;
|
|
1495
|
-
response.message = message;
|
|
1496
|
-
delete response.Message;
|
|
1497
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1498
1031
|
};
|
|
1499
1032
|
const deserializeAws_json1_1InternalServiceErrorResponse = async (parsedOutput, context) => {
|
|
1500
1033
|
const body = parsedOutput.body;
|
|
1501
1034
|
const deserialized = deserializeAws_json1_1InternalServiceError(body, context);
|
|
1502
|
-
const
|
|
1503
|
-
name: "InternalServiceError",
|
|
1504
|
-
$fault: "server",
|
|
1035
|
+
const exception = new models_0_1.InternalServiceError({
|
|
1505
1036
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1506
1037
|
...deserialized,
|
|
1507
|
-
};
|
|
1508
|
-
return
|
|
1038
|
+
});
|
|
1039
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1509
1040
|
};
|
|
1510
1041
|
const deserializeAws_json1_1InvalidRequestExceptionResponse = async (parsedOutput, context) => {
|
|
1511
1042
|
const body = parsedOutput.body;
|
|
1512
1043
|
const deserialized = deserializeAws_json1_1InvalidRequestException(body, context);
|
|
1513
|
-
const
|
|
1514
|
-
name: "InvalidRequestException",
|
|
1515
|
-
$fault: "client",
|
|
1044
|
+
const exception = new models_0_1.InvalidRequestException({
|
|
1516
1045
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1517
1046
|
...deserialized,
|
|
1518
|
-
};
|
|
1519
|
-
return
|
|
1047
|
+
});
|
|
1048
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1520
1049
|
};
|
|
1521
1050
|
const deserializeAws_json1_1PipelineDeletedExceptionResponse = async (parsedOutput, context) => {
|
|
1522
1051
|
const body = parsedOutput.body;
|
|
1523
1052
|
const deserialized = deserializeAws_json1_1PipelineDeletedException(body, context);
|
|
1524
|
-
const
|
|
1525
|
-
name: "PipelineDeletedException",
|
|
1526
|
-
$fault: "client",
|
|
1053
|
+
const exception = new models_0_1.PipelineDeletedException({
|
|
1527
1054
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1528
1055
|
...deserialized,
|
|
1529
|
-
};
|
|
1530
|
-
return
|
|
1056
|
+
});
|
|
1057
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1531
1058
|
};
|
|
1532
1059
|
const deserializeAws_json1_1PipelineNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
1533
1060
|
const body = parsedOutput.body;
|
|
1534
1061
|
const deserialized = deserializeAws_json1_1PipelineNotFoundException(body, context);
|
|
1535
|
-
const
|
|
1536
|
-
name: "PipelineNotFoundException",
|
|
1537
|
-
$fault: "client",
|
|
1062
|
+
const exception = new models_0_1.PipelineNotFoundException({
|
|
1538
1063
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1539
1064
|
...deserialized,
|
|
1540
|
-
};
|
|
1541
|
-
return
|
|
1065
|
+
});
|
|
1066
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1542
1067
|
};
|
|
1543
1068
|
const deserializeAws_json1_1TaskNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
1544
1069
|
const body = parsedOutput.body;
|
|
1545
1070
|
const deserialized = deserializeAws_json1_1TaskNotFoundException(body, context);
|
|
1546
|
-
const
|
|
1547
|
-
name: "TaskNotFoundException",
|
|
1548
|
-
$fault: "client",
|
|
1071
|
+
const exception = new models_0_1.TaskNotFoundException({
|
|
1549
1072
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1550
1073
|
...deserialized,
|
|
1551
|
-
};
|
|
1552
|
-
return
|
|
1074
|
+
});
|
|
1075
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1553
1076
|
};
|
|
1554
1077
|
const serializeAws_json1_1ActivatePipelineInput = (input, context) => {
|
|
1555
1078
|
return {
|
|
@@ -1915,7 +1438,7 @@ const deserializeAws_json1_1Field = (output, context) => {
|
|
|
1915
1438
|
};
|
|
1916
1439
|
};
|
|
1917
1440
|
const deserializeAws_json1_1fieldList = (output, context) => {
|
|
1918
|
-
|
|
1441
|
+
const retVal = (output || [])
|
|
1919
1442
|
.filter((e) => e != null)
|
|
1920
1443
|
.map((entry) => {
|
|
1921
1444
|
if (entry === null) {
|
|
@@ -1923,6 +1446,7 @@ const deserializeAws_json1_1fieldList = (output, context) => {
|
|
|
1923
1446
|
}
|
|
1924
1447
|
return deserializeAws_json1_1Field(entry, context);
|
|
1925
1448
|
});
|
|
1449
|
+
return retVal;
|
|
1926
1450
|
};
|
|
1927
1451
|
const deserializeAws_json1_1GetPipelineDefinitionOutput = (output, context) => {
|
|
1928
1452
|
return {
|
|
@@ -1938,7 +1462,7 @@ const deserializeAws_json1_1GetPipelineDefinitionOutput = (output, context) => {
|
|
|
1938
1462
|
};
|
|
1939
1463
|
};
|
|
1940
1464
|
const deserializeAws_json1_1idList = (output, context) => {
|
|
1941
|
-
|
|
1465
|
+
const retVal = (output || [])
|
|
1942
1466
|
.filter((e) => e != null)
|
|
1943
1467
|
.map((entry) => {
|
|
1944
1468
|
if (entry === null) {
|
|
@@ -1946,6 +1470,7 @@ const deserializeAws_json1_1idList = (output, context) => {
|
|
|
1946
1470
|
}
|
|
1947
1471
|
return smithy_client_1.expectString(entry);
|
|
1948
1472
|
});
|
|
1473
|
+
return retVal;
|
|
1949
1474
|
};
|
|
1950
1475
|
const deserializeAws_json1_1InternalServiceError = (output, context) => {
|
|
1951
1476
|
return {
|
|
@@ -1973,7 +1498,7 @@ const deserializeAws_json1_1ParameterAttribute = (output, context) => {
|
|
|
1973
1498
|
};
|
|
1974
1499
|
};
|
|
1975
1500
|
const deserializeAws_json1_1ParameterAttributeList = (output, context) => {
|
|
1976
|
-
|
|
1501
|
+
const retVal = (output || [])
|
|
1977
1502
|
.filter((e) => e != null)
|
|
1978
1503
|
.map((entry) => {
|
|
1979
1504
|
if (entry === null) {
|
|
@@ -1981,6 +1506,7 @@ const deserializeAws_json1_1ParameterAttributeList = (output, context) => {
|
|
|
1981
1506
|
}
|
|
1982
1507
|
return deserializeAws_json1_1ParameterAttribute(entry, context);
|
|
1983
1508
|
});
|
|
1509
|
+
return retVal;
|
|
1984
1510
|
};
|
|
1985
1511
|
const deserializeAws_json1_1ParameterObject = (output, context) => {
|
|
1986
1512
|
return {
|
|
@@ -1991,7 +1517,7 @@ const deserializeAws_json1_1ParameterObject = (output, context) => {
|
|
|
1991
1517
|
};
|
|
1992
1518
|
};
|
|
1993
1519
|
const deserializeAws_json1_1ParameterObjectList = (output, context) => {
|
|
1994
|
-
|
|
1520
|
+
const retVal = (output || [])
|
|
1995
1521
|
.filter((e) => e != null)
|
|
1996
1522
|
.map((entry) => {
|
|
1997
1523
|
if (entry === null) {
|
|
@@ -1999,6 +1525,7 @@ const deserializeAws_json1_1ParameterObjectList = (output, context) => {
|
|
|
1999
1525
|
}
|
|
2000
1526
|
return deserializeAws_json1_1ParameterObject(entry, context);
|
|
2001
1527
|
});
|
|
1528
|
+
return retVal;
|
|
2002
1529
|
};
|
|
2003
1530
|
const deserializeAws_json1_1ParameterValue = (output, context) => {
|
|
2004
1531
|
return {
|
|
@@ -2007,7 +1534,7 @@ const deserializeAws_json1_1ParameterValue = (output, context) => {
|
|
|
2007
1534
|
};
|
|
2008
1535
|
};
|
|
2009
1536
|
const deserializeAws_json1_1ParameterValueList = (output, context) => {
|
|
2010
|
-
|
|
1537
|
+
const retVal = (output || [])
|
|
2011
1538
|
.filter((e) => e != null)
|
|
2012
1539
|
.map((entry) => {
|
|
2013
1540
|
if (entry === null) {
|
|
@@ -2015,6 +1542,7 @@ const deserializeAws_json1_1ParameterValueList = (output, context) => {
|
|
|
2015
1542
|
}
|
|
2016
1543
|
return deserializeAws_json1_1ParameterValue(entry, context);
|
|
2017
1544
|
});
|
|
1545
|
+
return retVal;
|
|
2018
1546
|
};
|
|
2019
1547
|
const deserializeAws_json1_1PipelineDeletedException = (output, context) => {
|
|
2020
1548
|
return {
|
|
@@ -2035,7 +1563,7 @@ const deserializeAws_json1_1PipelineDescription = (output, context) => {
|
|
|
2035
1563
|
};
|
|
2036
1564
|
};
|
|
2037
1565
|
const deserializeAws_json1_1PipelineDescriptionList = (output, context) => {
|
|
2038
|
-
|
|
1566
|
+
const retVal = (output || [])
|
|
2039
1567
|
.filter((e) => e != null)
|
|
2040
1568
|
.map((entry) => {
|
|
2041
1569
|
if (entry === null) {
|
|
@@ -2043,6 +1571,7 @@ const deserializeAws_json1_1PipelineDescriptionList = (output, context) => {
|
|
|
2043
1571
|
}
|
|
2044
1572
|
return deserializeAws_json1_1PipelineDescription(entry, context);
|
|
2045
1573
|
});
|
|
1574
|
+
return retVal;
|
|
2046
1575
|
};
|
|
2047
1576
|
const deserializeAws_json1_1PipelineIdName = (output, context) => {
|
|
2048
1577
|
return {
|
|
@@ -2051,7 +1580,7 @@ const deserializeAws_json1_1PipelineIdName = (output, context) => {
|
|
|
2051
1580
|
};
|
|
2052
1581
|
};
|
|
2053
1582
|
const deserializeAws_json1_1pipelineList = (output, context) => {
|
|
2054
|
-
|
|
1583
|
+
const retVal = (output || [])
|
|
2055
1584
|
.filter((e) => e != null)
|
|
2056
1585
|
.map((entry) => {
|
|
2057
1586
|
if (entry === null) {
|
|
@@ -2059,6 +1588,7 @@ const deserializeAws_json1_1pipelineList = (output, context) => {
|
|
|
2059
1588
|
}
|
|
2060
1589
|
return deserializeAws_json1_1PipelineIdName(entry, context);
|
|
2061
1590
|
});
|
|
1591
|
+
return retVal;
|
|
2062
1592
|
};
|
|
2063
1593
|
const deserializeAws_json1_1PipelineNotFoundException = (output, context) => {
|
|
2064
1594
|
return {
|
|
@@ -2075,7 +1605,7 @@ const deserializeAws_json1_1PipelineObject = (output, context) => {
|
|
|
2075
1605
|
};
|
|
2076
1606
|
};
|
|
2077
1607
|
const deserializeAws_json1_1PipelineObjectList = (output, context) => {
|
|
2078
|
-
|
|
1608
|
+
const retVal = (output || [])
|
|
2079
1609
|
.filter((e) => e != null)
|
|
2080
1610
|
.map((entry) => {
|
|
2081
1611
|
if (entry === null) {
|
|
@@ -2083,6 +1613,7 @@ const deserializeAws_json1_1PipelineObjectList = (output, context) => {
|
|
|
2083
1613
|
}
|
|
2084
1614
|
return deserializeAws_json1_1PipelineObject(entry, context);
|
|
2085
1615
|
});
|
|
1616
|
+
return retVal;
|
|
2086
1617
|
};
|
|
2087
1618
|
const deserializeAws_json1_1PipelineObjectMap = (output, context) => {
|
|
2088
1619
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
@@ -2143,7 +1674,7 @@ const deserializeAws_json1_1Tag = (output, context) => {
|
|
|
2143
1674
|
};
|
|
2144
1675
|
};
|
|
2145
1676
|
const deserializeAws_json1_1tagList = (output, context) => {
|
|
2146
|
-
|
|
1677
|
+
const retVal = (output || [])
|
|
2147
1678
|
.filter((e) => e != null)
|
|
2148
1679
|
.map((entry) => {
|
|
2149
1680
|
if (entry === null) {
|
|
@@ -2151,6 +1682,7 @@ const deserializeAws_json1_1tagList = (output, context) => {
|
|
|
2151
1682
|
}
|
|
2152
1683
|
return deserializeAws_json1_1Tag(entry, context);
|
|
2153
1684
|
});
|
|
1685
|
+
return retVal;
|
|
2154
1686
|
};
|
|
2155
1687
|
const deserializeAws_json1_1TaskNotFoundException = (output, context) => {
|
|
2156
1688
|
return {
|
|
@@ -2187,7 +1719,7 @@ const deserializeAws_json1_1ValidationError = (output, context) => {
|
|
|
2187
1719
|
};
|
|
2188
1720
|
};
|
|
2189
1721
|
const deserializeAws_json1_1ValidationErrors = (output, context) => {
|
|
2190
|
-
|
|
1722
|
+
const retVal = (output || [])
|
|
2191
1723
|
.filter((e) => e != null)
|
|
2192
1724
|
.map((entry) => {
|
|
2193
1725
|
if (entry === null) {
|
|
@@ -2195,9 +1727,10 @@ const deserializeAws_json1_1ValidationErrors = (output, context) => {
|
|
|
2195
1727
|
}
|
|
2196
1728
|
return deserializeAws_json1_1ValidationError(entry, context);
|
|
2197
1729
|
});
|
|
1730
|
+
return retVal;
|
|
2198
1731
|
};
|
|
2199
1732
|
const deserializeAws_json1_1validationMessages = (output, context) => {
|
|
2200
|
-
|
|
1733
|
+
const retVal = (output || [])
|
|
2201
1734
|
.filter((e) => e != null)
|
|
2202
1735
|
.map((entry) => {
|
|
2203
1736
|
if (entry === null) {
|
|
@@ -2205,6 +1738,7 @@ const deserializeAws_json1_1validationMessages = (output, context) => {
|
|
|
2205
1738
|
}
|
|
2206
1739
|
return smithy_client_1.expectString(entry);
|
|
2207
1740
|
});
|
|
1741
|
+
return retVal;
|
|
2208
1742
|
};
|
|
2209
1743
|
const deserializeAws_json1_1ValidationWarning = (output, context) => {
|
|
2210
1744
|
return {
|
|
@@ -2215,7 +1749,7 @@ const deserializeAws_json1_1ValidationWarning = (output, context) => {
|
|
|
2215
1749
|
};
|
|
2216
1750
|
};
|
|
2217
1751
|
const deserializeAws_json1_1ValidationWarnings = (output, context) => {
|
|
2218
|
-
|
|
1752
|
+
const retVal = (output || [])
|
|
2219
1753
|
.filter((e) => e != null)
|
|
2220
1754
|
.map((entry) => {
|
|
2221
1755
|
if (entry === null) {
|
|
@@ -2223,6 +1757,7 @@ const deserializeAws_json1_1ValidationWarnings = (output, context) => {
|
|
|
2223
1757
|
}
|
|
2224
1758
|
return deserializeAws_json1_1ValidationWarning(entry, context);
|
|
2225
1759
|
});
|
|
1760
|
+
return retVal;
|
|
2226
1761
|
};
|
|
2227
1762
|
const deserializeMetadata = (output) => {
|
|
2228
1763
|
var _a;
|