@aws-sdk/client-data-pipeline 3.180.0 → 3.183.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 +20 -0
- package/dist-cjs/protocols/Aws_json1_1.js +25 -19
- package/dist-es/DataPipeline.js +78 -85
- package/dist-es/DataPipelineClient.js +22 -28
- package/dist-es/commands/ActivatePipelineCommand.js +21 -28
- package/dist-es/commands/AddTagsCommand.js +21 -28
- package/dist-es/commands/CreatePipelineCommand.js +21 -28
- package/dist-es/commands/DeactivatePipelineCommand.js +21 -28
- package/dist-es/commands/DeletePipelineCommand.js +22 -29
- package/dist-es/commands/DescribeObjectsCommand.js +21 -28
- package/dist-es/commands/DescribePipelinesCommand.js +21 -28
- package/dist-es/commands/EvaluateExpressionCommand.js +21 -28
- package/dist-es/commands/GetPipelineDefinitionCommand.js +21 -28
- package/dist-es/commands/ListPipelinesCommand.js +21 -28
- package/dist-es/commands/PollForTaskCommand.js +21 -28
- package/dist-es/commands/PutPipelineDefinitionCommand.js +21 -28
- package/dist-es/commands/QueryObjectsCommand.js +21 -28
- package/dist-es/commands/RemoveTagsCommand.js +21 -28
- package/dist-es/commands/ReportTaskProgressCommand.js +21 -28
- package/dist-es/commands/ReportTaskRunnerHeartbeatCommand.js +21 -28
- package/dist-es/commands/SetStatusCommand.js +22 -29
- package/dist-es/commands/SetTaskStatusCommand.js +21 -28
- package/dist-es/commands/ValidatePipelineDefinitionCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/DataPipelineServiceException.js +5 -10
- package/dist-es/models/models_0.js +208 -107
- package/dist-es/pagination/DescribeObjectsPaginator.js +24 -67
- package/dist-es/pagination/ListPipelinesPaginator.js +24 -67
- package/dist-es/pagination/QueryObjectsPaginator.js +25 -68
- package/dist-es/protocols/Aws_json1_1.js +1323 -1667
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
|
@@ -1,1622 +1,1287 @@
|
|
|
1
|
-
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
2
|
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectString as __expectString, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { DataPipelineServiceException as __BaseException } from "../models/DataPipelineServiceException";
|
|
5
4
|
import { InternalServiceError, InvalidRequestException, PipelineDeletedException, PipelineNotFoundException, TaskNotFoundException, } from "../models/models_0";
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
return
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}
|
|
105
|
-
export
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
return
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
}
|
|
458
|
-
}
|
|
459
|
-
export
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
}
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
}
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
}
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
parsedBody
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
}
|
|
791
|
-
}
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
case 1:
|
|
961
|
-
data = _a.sent();
|
|
962
|
-
contents = {};
|
|
963
|
-
contents = deserializeAws_json1_1QueryObjectsOutput(data, context);
|
|
964
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
965
|
-
return [2, Promise.resolve(response)];
|
|
966
|
-
}
|
|
967
|
-
});
|
|
968
|
-
}); };
|
|
969
|
-
var deserializeAws_json1_1QueryObjectsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
970
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
971
|
-
var _c;
|
|
972
|
-
return __generator(this, function (_d) {
|
|
973
|
-
switch (_d.label) {
|
|
974
|
-
case 0:
|
|
975
|
-
_a = [__assign({}, output)];
|
|
976
|
-
_c = {};
|
|
977
|
-
return [4, parseBody(output.body, context)];
|
|
978
|
-
case 1:
|
|
979
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
980
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
981
|
-
_b = errorCode;
|
|
982
|
-
switch (_b) {
|
|
983
|
-
case "InternalServiceError": return [3, 2];
|
|
984
|
-
case "com.amazonaws.datapipeline#InternalServiceError": return [3, 2];
|
|
985
|
-
case "InvalidRequestException": return [3, 4];
|
|
986
|
-
case "com.amazonaws.datapipeline#InvalidRequestException": return [3, 4];
|
|
987
|
-
case "PipelineDeletedException": return [3, 6];
|
|
988
|
-
case "com.amazonaws.datapipeline#PipelineDeletedException": return [3, 6];
|
|
989
|
-
case "PipelineNotFoundException": return [3, 8];
|
|
990
|
-
case "com.amazonaws.datapipeline#PipelineNotFoundException": return [3, 8];
|
|
991
|
-
}
|
|
992
|
-
return [3, 10];
|
|
993
|
-
case 2: return [4, deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)];
|
|
994
|
-
case 3: throw _d.sent();
|
|
995
|
-
case 4: return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
996
|
-
case 5: throw _d.sent();
|
|
997
|
-
case 6: return [4, deserializeAws_json1_1PipelineDeletedExceptionResponse(parsedOutput, context)];
|
|
998
|
-
case 7: throw _d.sent();
|
|
999
|
-
case 8: return [4, deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context)];
|
|
1000
|
-
case 9: throw _d.sent();
|
|
1001
|
-
case 10:
|
|
1002
|
-
parsedBody = parsedOutput.body;
|
|
1003
|
-
throwDefaultError({
|
|
1004
|
-
output: output,
|
|
1005
|
-
parsedBody: parsedBody,
|
|
1006
|
-
exceptionCtor: __BaseException,
|
|
1007
|
-
errorCode: errorCode,
|
|
1008
|
-
});
|
|
1009
|
-
_d.label = 11;
|
|
1010
|
-
case 11: return [2];
|
|
1011
|
-
}
|
|
1012
|
-
});
|
|
1013
|
-
}); };
|
|
1014
|
-
export var deserializeAws_json1_1RemoveTagsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1015
|
-
var data, contents, response;
|
|
1016
|
-
return __generator(this, function (_a) {
|
|
1017
|
-
switch (_a.label) {
|
|
1018
|
-
case 0:
|
|
1019
|
-
if (output.statusCode >= 300) {
|
|
1020
|
-
return [2, deserializeAws_json1_1RemoveTagsCommandError(output, context)];
|
|
1021
|
-
}
|
|
1022
|
-
return [4, parseBody(output.body, context)];
|
|
1023
|
-
case 1:
|
|
1024
|
-
data = _a.sent();
|
|
1025
|
-
contents = {};
|
|
1026
|
-
contents = deserializeAws_json1_1RemoveTagsOutput(data, context);
|
|
1027
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1028
|
-
return [2, Promise.resolve(response)];
|
|
1029
|
-
}
|
|
1030
|
-
});
|
|
1031
|
-
}); };
|
|
1032
|
-
var deserializeAws_json1_1RemoveTagsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1033
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1034
|
-
var _c;
|
|
1035
|
-
return __generator(this, function (_d) {
|
|
1036
|
-
switch (_d.label) {
|
|
1037
|
-
case 0:
|
|
1038
|
-
_a = [__assign({}, output)];
|
|
1039
|
-
_c = {};
|
|
1040
|
-
return [4, parseBody(output.body, context)];
|
|
1041
|
-
case 1:
|
|
1042
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1043
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1044
|
-
_b = errorCode;
|
|
1045
|
-
switch (_b) {
|
|
1046
|
-
case "InternalServiceError": return [3, 2];
|
|
1047
|
-
case "com.amazonaws.datapipeline#InternalServiceError": return [3, 2];
|
|
1048
|
-
case "InvalidRequestException": return [3, 4];
|
|
1049
|
-
case "com.amazonaws.datapipeline#InvalidRequestException": return [3, 4];
|
|
1050
|
-
case "PipelineDeletedException": return [3, 6];
|
|
1051
|
-
case "com.amazonaws.datapipeline#PipelineDeletedException": return [3, 6];
|
|
1052
|
-
case "PipelineNotFoundException": return [3, 8];
|
|
1053
|
-
case "com.amazonaws.datapipeline#PipelineNotFoundException": return [3, 8];
|
|
1054
|
-
}
|
|
1055
|
-
return [3, 10];
|
|
1056
|
-
case 2: return [4, deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)];
|
|
1057
|
-
case 3: throw _d.sent();
|
|
1058
|
-
case 4: return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1059
|
-
case 5: throw _d.sent();
|
|
1060
|
-
case 6: return [4, deserializeAws_json1_1PipelineDeletedExceptionResponse(parsedOutput, context)];
|
|
1061
|
-
case 7: throw _d.sent();
|
|
1062
|
-
case 8: return [4, deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context)];
|
|
1063
|
-
case 9: throw _d.sent();
|
|
1064
|
-
case 10:
|
|
1065
|
-
parsedBody = parsedOutput.body;
|
|
1066
|
-
throwDefaultError({
|
|
1067
|
-
output: output,
|
|
1068
|
-
parsedBody: parsedBody,
|
|
1069
|
-
exceptionCtor: __BaseException,
|
|
1070
|
-
errorCode: errorCode,
|
|
1071
|
-
});
|
|
1072
|
-
_d.label = 11;
|
|
1073
|
-
case 11: return [2];
|
|
1074
|
-
}
|
|
1075
|
-
});
|
|
1076
|
-
}); };
|
|
1077
|
-
export var deserializeAws_json1_1ReportTaskProgressCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1078
|
-
var data, contents, response;
|
|
1079
|
-
return __generator(this, function (_a) {
|
|
1080
|
-
switch (_a.label) {
|
|
1081
|
-
case 0:
|
|
1082
|
-
if (output.statusCode >= 300) {
|
|
1083
|
-
return [2, deserializeAws_json1_1ReportTaskProgressCommandError(output, context)];
|
|
1084
|
-
}
|
|
1085
|
-
return [4, parseBody(output.body, context)];
|
|
1086
|
-
case 1:
|
|
1087
|
-
data = _a.sent();
|
|
1088
|
-
contents = {};
|
|
1089
|
-
contents = deserializeAws_json1_1ReportTaskProgressOutput(data, context);
|
|
1090
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1091
|
-
return [2, Promise.resolve(response)];
|
|
1092
|
-
}
|
|
1093
|
-
});
|
|
1094
|
-
}); };
|
|
1095
|
-
var deserializeAws_json1_1ReportTaskProgressCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1096
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1097
|
-
var _c;
|
|
1098
|
-
return __generator(this, function (_d) {
|
|
1099
|
-
switch (_d.label) {
|
|
1100
|
-
case 0:
|
|
1101
|
-
_a = [__assign({}, output)];
|
|
1102
|
-
_c = {};
|
|
1103
|
-
return [4, parseBody(output.body, context)];
|
|
1104
|
-
case 1:
|
|
1105
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1106
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1107
|
-
_b = errorCode;
|
|
1108
|
-
switch (_b) {
|
|
1109
|
-
case "InternalServiceError": return [3, 2];
|
|
1110
|
-
case "com.amazonaws.datapipeline#InternalServiceError": return [3, 2];
|
|
1111
|
-
case "InvalidRequestException": return [3, 4];
|
|
1112
|
-
case "com.amazonaws.datapipeline#InvalidRequestException": return [3, 4];
|
|
1113
|
-
case "PipelineDeletedException": return [3, 6];
|
|
1114
|
-
case "com.amazonaws.datapipeline#PipelineDeletedException": return [3, 6];
|
|
1115
|
-
case "PipelineNotFoundException": return [3, 8];
|
|
1116
|
-
case "com.amazonaws.datapipeline#PipelineNotFoundException": return [3, 8];
|
|
1117
|
-
case "TaskNotFoundException": return [3, 10];
|
|
1118
|
-
case "com.amazonaws.datapipeline#TaskNotFoundException": return [3, 10];
|
|
1119
|
-
}
|
|
1120
|
-
return [3, 12];
|
|
1121
|
-
case 2: return [4, deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)];
|
|
1122
|
-
case 3: throw _d.sent();
|
|
1123
|
-
case 4: return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1124
|
-
case 5: throw _d.sent();
|
|
1125
|
-
case 6: return [4, deserializeAws_json1_1PipelineDeletedExceptionResponse(parsedOutput, context)];
|
|
1126
|
-
case 7: throw _d.sent();
|
|
1127
|
-
case 8: return [4, deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context)];
|
|
1128
|
-
case 9: throw _d.sent();
|
|
1129
|
-
case 10: return [4, deserializeAws_json1_1TaskNotFoundExceptionResponse(parsedOutput, context)];
|
|
1130
|
-
case 11: throw _d.sent();
|
|
1131
|
-
case 12:
|
|
1132
|
-
parsedBody = parsedOutput.body;
|
|
1133
|
-
throwDefaultError({
|
|
1134
|
-
output: output,
|
|
1135
|
-
parsedBody: parsedBody,
|
|
1136
|
-
exceptionCtor: __BaseException,
|
|
1137
|
-
errorCode: errorCode,
|
|
1138
|
-
});
|
|
1139
|
-
_d.label = 13;
|
|
1140
|
-
case 13: return [2];
|
|
1141
|
-
}
|
|
1142
|
-
});
|
|
1143
|
-
}); };
|
|
1144
|
-
export var deserializeAws_json1_1ReportTaskRunnerHeartbeatCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1145
|
-
var data, contents, response;
|
|
1146
|
-
return __generator(this, function (_a) {
|
|
1147
|
-
switch (_a.label) {
|
|
1148
|
-
case 0:
|
|
1149
|
-
if (output.statusCode >= 300) {
|
|
1150
|
-
return [2, deserializeAws_json1_1ReportTaskRunnerHeartbeatCommandError(output, context)];
|
|
1151
|
-
}
|
|
1152
|
-
return [4, parseBody(output.body, context)];
|
|
1153
|
-
case 1:
|
|
1154
|
-
data = _a.sent();
|
|
1155
|
-
contents = {};
|
|
1156
|
-
contents = deserializeAws_json1_1ReportTaskRunnerHeartbeatOutput(data, context);
|
|
1157
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1158
|
-
return [2, Promise.resolve(response)];
|
|
1159
|
-
}
|
|
1160
|
-
});
|
|
1161
|
-
}); };
|
|
1162
|
-
var deserializeAws_json1_1ReportTaskRunnerHeartbeatCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1163
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1164
|
-
var _c;
|
|
1165
|
-
return __generator(this, function (_d) {
|
|
1166
|
-
switch (_d.label) {
|
|
1167
|
-
case 0:
|
|
1168
|
-
_a = [__assign({}, output)];
|
|
1169
|
-
_c = {};
|
|
1170
|
-
return [4, parseBody(output.body, context)];
|
|
1171
|
-
case 1:
|
|
1172
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1173
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1174
|
-
_b = errorCode;
|
|
1175
|
-
switch (_b) {
|
|
1176
|
-
case "InternalServiceError": return [3, 2];
|
|
1177
|
-
case "com.amazonaws.datapipeline#InternalServiceError": return [3, 2];
|
|
1178
|
-
case "InvalidRequestException": return [3, 4];
|
|
1179
|
-
case "com.amazonaws.datapipeline#InvalidRequestException": return [3, 4];
|
|
1180
|
-
}
|
|
1181
|
-
return [3, 6];
|
|
1182
|
-
case 2: return [4, deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)];
|
|
1183
|
-
case 3: throw _d.sent();
|
|
1184
|
-
case 4: return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1185
|
-
case 5: throw _d.sent();
|
|
1186
|
-
case 6:
|
|
1187
|
-
parsedBody = parsedOutput.body;
|
|
1188
|
-
throwDefaultError({
|
|
1189
|
-
output: output,
|
|
1190
|
-
parsedBody: parsedBody,
|
|
1191
|
-
exceptionCtor: __BaseException,
|
|
1192
|
-
errorCode: errorCode,
|
|
1193
|
-
});
|
|
1194
|
-
_d.label = 7;
|
|
1195
|
-
case 7: return [2];
|
|
1196
|
-
}
|
|
1197
|
-
});
|
|
1198
|
-
}); };
|
|
1199
|
-
export var deserializeAws_json1_1SetStatusCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1200
|
-
var response;
|
|
1201
|
-
return __generator(this, function (_a) {
|
|
1202
|
-
switch (_a.label) {
|
|
1203
|
-
case 0:
|
|
1204
|
-
if (output.statusCode >= 300) {
|
|
1205
|
-
return [2, deserializeAws_json1_1SetStatusCommandError(output, context)];
|
|
1206
|
-
}
|
|
1207
|
-
return [4, collectBody(output.body, context)];
|
|
1208
|
-
case 1:
|
|
1209
|
-
_a.sent();
|
|
1210
|
-
response = {
|
|
1211
|
-
$metadata: deserializeMetadata(output),
|
|
1212
|
-
};
|
|
1213
|
-
return [2, Promise.resolve(response)];
|
|
1214
|
-
}
|
|
1215
|
-
});
|
|
1216
|
-
}); };
|
|
1217
|
-
var deserializeAws_json1_1SetStatusCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1218
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1219
|
-
var _c;
|
|
1220
|
-
return __generator(this, function (_d) {
|
|
1221
|
-
switch (_d.label) {
|
|
1222
|
-
case 0:
|
|
1223
|
-
_a = [__assign({}, output)];
|
|
1224
|
-
_c = {};
|
|
1225
|
-
return [4, parseBody(output.body, context)];
|
|
1226
|
-
case 1:
|
|
1227
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1228
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1229
|
-
_b = errorCode;
|
|
1230
|
-
switch (_b) {
|
|
1231
|
-
case "InternalServiceError": return [3, 2];
|
|
1232
|
-
case "com.amazonaws.datapipeline#InternalServiceError": return [3, 2];
|
|
1233
|
-
case "InvalidRequestException": return [3, 4];
|
|
1234
|
-
case "com.amazonaws.datapipeline#InvalidRequestException": return [3, 4];
|
|
1235
|
-
case "PipelineDeletedException": return [3, 6];
|
|
1236
|
-
case "com.amazonaws.datapipeline#PipelineDeletedException": return [3, 6];
|
|
1237
|
-
case "PipelineNotFoundException": return [3, 8];
|
|
1238
|
-
case "com.amazonaws.datapipeline#PipelineNotFoundException": return [3, 8];
|
|
1239
|
-
}
|
|
1240
|
-
return [3, 10];
|
|
1241
|
-
case 2: return [4, deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)];
|
|
1242
|
-
case 3: throw _d.sent();
|
|
1243
|
-
case 4: return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1244
|
-
case 5: throw _d.sent();
|
|
1245
|
-
case 6: return [4, deserializeAws_json1_1PipelineDeletedExceptionResponse(parsedOutput, context)];
|
|
1246
|
-
case 7: throw _d.sent();
|
|
1247
|
-
case 8: return [4, deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context)];
|
|
1248
|
-
case 9: throw _d.sent();
|
|
1249
|
-
case 10:
|
|
1250
|
-
parsedBody = parsedOutput.body;
|
|
1251
|
-
throwDefaultError({
|
|
1252
|
-
output: output,
|
|
1253
|
-
parsedBody: parsedBody,
|
|
1254
|
-
exceptionCtor: __BaseException,
|
|
1255
|
-
errorCode: errorCode,
|
|
1256
|
-
});
|
|
1257
|
-
_d.label = 11;
|
|
1258
|
-
case 11: return [2];
|
|
1259
|
-
}
|
|
1260
|
-
});
|
|
1261
|
-
}); };
|
|
1262
|
-
export var deserializeAws_json1_1SetTaskStatusCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1263
|
-
var data, contents, response;
|
|
1264
|
-
return __generator(this, function (_a) {
|
|
1265
|
-
switch (_a.label) {
|
|
1266
|
-
case 0:
|
|
1267
|
-
if (output.statusCode >= 300) {
|
|
1268
|
-
return [2, deserializeAws_json1_1SetTaskStatusCommandError(output, context)];
|
|
1269
|
-
}
|
|
1270
|
-
return [4, parseBody(output.body, context)];
|
|
1271
|
-
case 1:
|
|
1272
|
-
data = _a.sent();
|
|
1273
|
-
contents = {};
|
|
1274
|
-
contents = deserializeAws_json1_1SetTaskStatusOutput(data, context);
|
|
1275
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1276
|
-
return [2, Promise.resolve(response)];
|
|
1277
|
-
}
|
|
1278
|
-
});
|
|
1279
|
-
}); };
|
|
1280
|
-
var deserializeAws_json1_1SetTaskStatusCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1281
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1282
|
-
var _c;
|
|
1283
|
-
return __generator(this, function (_d) {
|
|
1284
|
-
switch (_d.label) {
|
|
1285
|
-
case 0:
|
|
1286
|
-
_a = [__assign({}, output)];
|
|
1287
|
-
_c = {};
|
|
1288
|
-
return [4, parseBody(output.body, context)];
|
|
1289
|
-
case 1:
|
|
1290
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1291
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1292
|
-
_b = errorCode;
|
|
1293
|
-
switch (_b) {
|
|
1294
|
-
case "InternalServiceError": return [3, 2];
|
|
1295
|
-
case "com.amazonaws.datapipeline#InternalServiceError": return [3, 2];
|
|
1296
|
-
case "InvalidRequestException": return [3, 4];
|
|
1297
|
-
case "com.amazonaws.datapipeline#InvalidRequestException": return [3, 4];
|
|
1298
|
-
case "PipelineDeletedException": return [3, 6];
|
|
1299
|
-
case "com.amazonaws.datapipeline#PipelineDeletedException": return [3, 6];
|
|
1300
|
-
case "PipelineNotFoundException": return [3, 8];
|
|
1301
|
-
case "com.amazonaws.datapipeline#PipelineNotFoundException": return [3, 8];
|
|
1302
|
-
case "TaskNotFoundException": return [3, 10];
|
|
1303
|
-
case "com.amazonaws.datapipeline#TaskNotFoundException": return [3, 10];
|
|
1304
|
-
}
|
|
1305
|
-
return [3, 12];
|
|
1306
|
-
case 2: return [4, deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)];
|
|
1307
|
-
case 3: throw _d.sent();
|
|
1308
|
-
case 4: return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1309
|
-
case 5: throw _d.sent();
|
|
1310
|
-
case 6: return [4, deserializeAws_json1_1PipelineDeletedExceptionResponse(parsedOutput, context)];
|
|
1311
|
-
case 7: throw _d.sent();
|
|
1312
|
-
case 8: return [4, deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context)];
|
|
1313
|
-
case 9: throw _d.sent();
|
|
1314
|
-
case 10: return [4, deserializeAws_json1_1TaskNotFoundExceptionResponse(parsedOutput, context)];
|
|
1315
|
-
case 11: throw _d.sent();
|
|
1316
|
-
case 12:
|
|
1317
|
-
parsedBody = parsedOutput.body;
|
|
1318
|
-
throwDefaultError({
|
|
1319
|
-
output: output,
|
|
1320
|
-
parsedBody: parsedBody,
|
|
1321
|
-
exceptionCtor: __BaseException,
|
|
1322
|
-
errorCode: errorCode,
|
|
1323
|
-
});
|
|
1324
|
-
_d.label = 13;
|
|
1325
|
-
case 13: return [2];
|
|
1326
|
-
}
|
|
1327
|
-
});
|
|
1328
|
-
}); };
|
|
1329
|
-
export var deserializeAws_json1_1ValidatePipelineDefinitionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1330
|
-
var data, contents, response;
|
|
1331
|
-
return __generator(this, function (_a) {
|
|
1332
|
-
switch (_a.label) {
|
|
1333
|
-
case 0:
|
|
1334
|
-
if (output.statusCode >= 300) {
|
|
1335
|
-
return [2, deserializeAws_json1_1ValidatePipelineDefinitionCommandError(output, context)];
|
|
1336
|
-
}
|
|
1337
|
-
return [4, parseBody(output.body, context)];
|
|
1338
|
-
case 1:
|
|
1339
|
-
data = _a.sent();
|
|
1340
|
-
contents = {};
|
|
1341
|
-
contents = deserializeAws_json1_1ValidatePipelineDefinitionOutput(data, context);
|
|
1342
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1343
|
-
return [2, Promise.resolve(response)];
|
|
1344
|
-
}
|
|
1345
|
-
});
|
|
1346
|
-
}); };
|
|
1347
|
-
var deserializeAws_json1_1ValidatePipelineDefinitionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1348
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1349
|
-
var _c;
|
|
1350
|
-
return __generator(this, function (_d) {
|
|
1351
|
-
switch (_d.label) {
|
|
1352
|
-
case 0:
|
|
1353
|
-
_a = [__assign({}, output)];
|
|
1354
|
-
_c = {};
|
|
1355
|
-
return [4, parseBody(output.body, context)];
|
|
1356
|
-
case 1:
|
|
1357
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1358
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1359
|
-
_b = errorCode;
|
|
1360
|
-
switch (_b) {
|
|
1361
|
-
case "InternalServiceError": return [3, 2];
|
|
1362
|
-
case "com.amazonaws.datapipeline#InternalServiceError": return [3, 2];
|
|
1363
|
-
case "InvalidRequestException": return [3, 4];
|
|
1364
|
-
case "com.amazonaws.datapipeline#InvalidRequestException": return [3, 4];
|
|
1365
|
-
case "PipelineDeletedException": return [3, 6];
|
|
1366
|
-
case "com.amazonaws.datapipeline#PipelineDeletedException": return [3, 6];
|
|
1367
|
-
case "PipelineNotFoundException": return [3, 8];
|
|
1368
|
-
case "com.amazonaws.datapipeline#PipelineNotFoundException": return [3, 8];
|
|
1369
|
-
}
|
|
1370
|
-
return [3, 10];
|
|
1371
|
-
case 2: return [4, deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)];
|
|
1372
|
-
case 3: throw _d.sent();
|
|
1373
|
-
case 4: return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1374
|
-
case 5: throw _d.sent();
|
|
1375
|
-
case 6: return [4, deserializeAws_json1_1PipelineDeletedExceptionResponse(parsedOutput, context)];
|
|
1376
|
-
case 7: throw _d.sent();
|
|
1377
|
-
case 8: return [4, deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context)];
|
|
1378
|
-
case 9: throw _d.sent();
|
|
1379
|
-
case 10:
|
|
1380
|
-
parsedBody = parsedOutput.body;
|
|
1381
|
-
throwDefaultError({
|
|
1382
|
-
output: output,
|
|
1383
|
-
parsedBody: parsedBody,
|
|
1384
|
-
exceptionCtor: __BaseException,
|
|
1385
|
-
errorCode: errorCode,
|
|
1386
|
-
});
|
|
1387
|
-
_d.label = 11;
|
|
1388
|
-
case 11: return [2];
|
|
1389
|
-
}
|
|
1390
|
-
});
|
|
1391
|
-
}); };
|
|
1392
|
-
var deserializeAws_json1_1InternalServiceErrorResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1393
|
-
var body, deserialized, exception;
|
|
1394
|
-
return __generator(this, function (_a) {
|
|
1395
|
-
body = parsedOutput.body;
|
|
1396
|
-
deserialized = deserializeAws_json1_1InternalServiceError(body, context);
|
|
1397
|
-
exception = new InternalServiceError(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1398
|
-
return [2, __decorateServiceException(exception, body)];
|
|
5
|
+
export const serializeAws_json1_1ActivatePipelineCommand = async (input, context) => {
|
|
6
|
+
const headers = {
|
|
7
|
+
"content-type": "application/x-amz-json-1.1",
|
|
8
|
+
"x-amz-target": "DataPipeline.ActivatePipeline",
|
|
9
|
+
};
|
|
10
|
+
let body;
|
|
11
|
+
body = JSON.stringify(serializeAws_json1_1ActivatePipelineInput(input, context));
|
|
12
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
13
|
+
};
|
|
14
|
+
export const serializeAws_json1_1AddTagsCommand = async (input, context) => {
|
|
15
|
+
const headers = {
|
|
16
|
+
"content-type": "application/x-amz-json-1.1",
|
|
17
|
+
"x-amz-target": "DataPipeline.AddTags",
|
|
18
|
+
};
|
|
19
|
+
let body;
|
|
20
|
+
body = JSON.stringify(serializeAws_json1_1AddTagsInput(input, context));
|
|
21
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
|
+
};
|
|
23
|
+
export const serializeAws_json1_1CreatePipelineCommand = async (input, context) => {
|
|
24
|
+
const headers = {
|
|
25
|
+
"content-type": "application/x-amz-json-1.1",
|
|
26
|
+
"x-amz-target": "DataPipeline.CreatePipeline",
|
|
27
|
+
};
|
|
28
|
+
let body;
|
|
29
|
+
body = JSON.stringify(serializeAws_json1_1CreatePipelineInput(input, context));
|
|
30
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
31
|
+
};
|
|
32
|
+
export const serializeAws_json1_1DeactivatePipelineCommand = async (input, context) => {
|
|
33
|
+
const headers = {
|
|
34
|
+
"content-type": "application/x-amz-json-1.1",
|
|
35
|
+
"x-amz-target": "DataPipeline.DeactivatePipeline",
|
|
36
|
+
};
|
|
37
|
+
let body;
|
|
38
|
+
body = JSON.stringify(serializeAws_json1_1DeactivatePipelineInput(input, context));
|
|
39
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
40
|
+
};
|
|
41
|
+
export const serializeAws_json1_1DeletePipelineCommand = async (input, context) => {
|
|
42
|
+
const headers = {
|
|
43
|
+
"content-type": "application/x-amz-json-1.1",
|
|
44
|
+
"x-amz-target": "DataPipeline.DeletePipeline",
|
|
45
|
+
};
|
|
46
|
+
let body;
|
|
47
|
+
body = JSON.stringify(serializeAws_json1_1DeletePipelineInput(input, context));
|
|
48
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
49
|
+
};
|
|
50
|
+
export const serializeAws_json1_1DescribeObjectsCommand = async (input, context) => {
|
|
51
|
+
const headers = {
|
|
52
|
+
"content-type": "application/x-amz-json-1.1",
|
|
53
|
+
"x-amz-target": "DataPipeline.DescribeObjects",
|
|
54
|
+
};
|
|
55
|
+
let body;
|
|
56
|
+
body = JSON.stringify(serializeAws_json1_1DescribeObjectsInput(input, context));
|
|
57
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
|
+
};
|
|
59
|
+
export const serializeAws_json1_1DescribePipelinesCommand = async (input, context) => {
|
|
60
|
+
const headers = {
|
|
61
|
+
"content-type": "application/x-amz-json-1.1",
|
|
62
|
+
"x-amz-target": "DataPipeline.DescribePipelines",
|
|
63
|
+
};
|
|
64
|
+
let body;
|
|
65
|
+
body = JSON.stringify(serializeAws_json1_1DescribePipelinesInput(input, context));
|
|
66
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
|
+
};
|
|
68
|
+
export const serializeAws_json1_1EvaluateExpressionCommand = async (input, context) => {
|
|
69
|
+
const headers = {
|
|
70
|
+
"content-type": "application/x-amz-json-1.1",
|
|
71
|
+
"x-amz-target": "DataPipeline.EvaluateExpression",
|
|
72
|
+
};
|
|
73
|
+
let body;
|
|
74
|
+
body = JSON.stringify(serializeAws_json1_1EvaluateExpressionInput(input, context));
|
|
75
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
|
+
};
|
|
77
|
+
export const serializeAws_json1_1GetPipelineDefinitionCommand = async (input, context) => {
|
|
78
|
+
const headers = {
|
|
79
|
+
"content-type": "application/x-amz-json-1.1",
|
|
80
|
+
"x-amz-target": "DataPipeline.GetPipelineDefinition",
|
|
81
|
+
};
|
|
82
|
+
let body;
|
|
83
|
+
body = JSON.stringify(serializeAws_json1_1GetPipelineDefinitionInput(input, context));
|
|
84
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
85
|
+
};
|
|
86
|
+
export const serializeAws_json1_1ListPipelinesCommand = async (input, context) => {
|
|
87
|
+
const headers = {
|
|
88
|
+
"content-type": "application/x-amz-json-1.1",
|
|
89
|
+
"x-amz-target": "DataPipeline.ListPipelines",
|
|
90
|
+
};
|
|
91
|
+
let body;
|
|
92
|
+
body = JSON.stringify(serializeAws_json1_1ListPipelinesInput(input, context));
|
|
93
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
94
|
+
};
|
|
95
|
+
export const serializeAws_json1_1PollForTaskCommand = async (input, context) => {
|
|
96
|
+
const headers = {
|
|
97
|
+
"content-type": "application/x-amz-json-1.1",
|
|
98
|
+
"x-amz-target": "DataPipeline.PollForTask",
|
|
99
|
+
};
|
|
100
|
+
let body;
|
|
101
|
+
body = JSON.stringify(serializeAws_json1_1PollForTaskInput(input, context));
|
|
102
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
103
|
+
};
|
|
104
|
+
export const serializeAws_json1_1PutPipelineDefinitionCommand = async (input, context) => {
|
|
105
|
+
const headers = {
|
|
106
|
+
"content-type": "application/x-amz-json-1.1",
|
|
107
|
+
"x-amz-target": "DataPipeline.PutPipelineDefinition",
|
|
108
|
+
};
|
|
109
|
+
let body;
|
|
110
|
+
body = JSON.stringify(serializeAws_json1_1PutPipelineDefinitionInput(input, context));
|
|
111
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
112
|
+
};
|
|
113
|
+
export const serializeAws_json1_1QueryObjectsCommand = async (input, context) => {
|
|
114
|
+
const headers = {
|
|
115
|
+
"content-type": "application/x-amz-json-1.1",
|
|
116
|
+
"x-amz-target": "DataPipeline.QueryObjects",
|
|
117
|
+
};
|
|
118
|
+
let body;
|
|
119
|
+
body = JSON.stringify(serializeAws_json1_1QueryObjectsInput(input, context));
|
|
120
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
121
|
+
};
|
|
122
|
+
export const serializeAws_json1_1RemoveTagsCommand = async (input, context) => {
|
|
123
|
+
const headers = {
|
|
124
|
+
"content-type": "application/x-amz-json-1.1",
|
|
125
|
+
"x-amz-target": "DataPipeline.RemoveTags",
|
|
126
|
+
};
|
|
127
|
+
let body;
|
|
128
|
+
body = JSON.stringify(serializeAws_json1_1RemoveTagsInput(input, context));
|
|
129
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
130
|
+
};
|
|
131
|
+
export const serializeAws_json1_1ReportTaskProgressCommand = async (input, context) => {
|
|
132
|
+
const headers = {
|
|
133
|
+
"content-type": "application/x-amz-json-1.1",
|
|
134
|
+
"x-amz-target": "DataPipeline.ReportTaskProgress",
|
|
135
|
+
};
|
|
136
|
+
let body;
|
|
137
|
+
body = JSON.stringify(serializeAws_json1_1ReportTaskProgressInput(input, context));
|
|
138
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
139
|
+
};
|
|
140
|
+
export const serializeAws_json1_1ReportTaskRunnerHeartbeatCommand = async (input, context) => {
|
|
141
|
+
const headers = {
|
|
142
|
+
"content-type": "application/x-amz-json-1.1",
|
|
143
|
+
"x-amz-target": "DataPipeline.ReportTaskRunnerHeartbeat",
|
|
144
|
+
};
|
|
145
|
+
let body;
|
|
146
|
+
body = JSON.stringify(serializeAws_json1_1ReportTaskRunnerHeartbeatInput(input, context));
|
|
147
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
148
|
+
};
|
|
149
|
+
export const serializeAws_json1_1SetStatusCommand = async (input, context) => {
|
|
150
|
+
const headers = {
|
|
151
|
+
"content-type": "application/x-amz-json-1.1",
|
|
152
|
+
"x-amz-target": "DataPipeline.SetStatus",
|
|
153
|
+
};
|
|
154
|
+
let body;
|
|
155
|
+
body = JSON.stringify(serializeAws_json1_1SetStatusInput(input, context));
|
|
156
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
157
|
+
};
|
|
158
|
+
export const serializeAws_json1_1SetTaskStatusCommand = async (input, context) => {
|
|
159
|
+
const headers = {
|
|
160
|
+
"content-type": "application/x-amz-json-1.1",
|
|
161
|
+
"x-amz-target": "DataPipeline.SetTaskStatus",
|
|
162
|
+
};
|
|
163
|
+
let body;
|
|
164
|
+
body = JSON.stringify(serializeAws_json1_1SetTaskStatusInput(input, context));
|
|
165
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
166
|
+
};
|
|
167
|
+
export const serializeAws_json1_1ValidatePipelineDefinitionCommand = async (input, context) => {
|
|
168
|
+
const headers = {
|
|
169
|
+
"content-type": "application/x-amz-json-1.1",
|
|
170
|
+
"x-amz-target": "DataPipeline.ValidatePipelineDefinition",
|
|
171
|
+
};
|
|
172
|
+
let body;
|
|
173
|
+
body = JSON.stringify(serializeAws_json1_1ValidatePipelineDefinitionInput(input, context));
|
|
174
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
175
|
+
};
|
|
176
|
+
export const deserializeAws_json1_1ActivatePipelineCommand = async (output, context) => {
|
|
177
|
+
if (output.statusCode >= 300) {
|
|
178
|
+
return deserializeAws_json1_1ActivatePipelineCommandError(output, context);
|
|
179
|
+
}
|
|
180
|
+
const data = await parseBody(output.body, context);
|
|
181
|
+
let contents = {};
|
|
182
|
+
contents = deserializeAws_json1_1ActivatePipelineOutput(data, context);
|
|
183
|
+
const response = {
|
|
184
|
+
$metadata: deserializeMetadata(output),
|
|
185
|
+
...contents,
|
|
186
|
+
};
|
|
187
|
+
return Promise.resolve(response);
|
|
188
|
+
};
|
|
189
|
+
const deserializeAws_json1_1ActivatePipelineCommandError = async (output, context) => {
|
|
190
|
+
const parsedOutput = {
|
|
191
|
+
...output,
|
|
192
|
+
body: await parseErrorBody(output.body, context),
|
|
193
|
+
};
|
|
194
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
195
|
+
switch (errorCode) {
|
|
196
|
+
case "InternalServiceError":
|
|
197
|
+
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
198
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
199
|
+
case "InvalidRequestException":
|
|
200
|
+
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
201
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
202
|
+
case "PipelineDeletedException":
|
|
203
|
+
case "com.amazonaws.datapipeline#PipelineDeletedException":
|
|
204
|
+
throw await deserializeAws_json1_1PipelineDeletedExceptionResponse(parsedOutput, context);
|
|
205
|
+
case "PipelineNotFoundException":
|
|
206
|
+
case "com.amazonaws.datapipeline#PipelineNotFoundException":
|
|
207
|
+
throw await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context);
|
|
208
|
+
default:
|
|
209
|
+
const parsedBody = parsedOutput.body;
|
|
210
|
+
throwDefaultError({
|
|
211
|
+
output,
|
|
212
|
+
parsedBody,
|
|
213
|
+
exceptionCtor: __BaseException,
|
|
214
|
+
errorCode,
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
};
|
|
218
|
+
export const deserializeAws_json1_1AddTagsCommand = async (output, context) => {
|
|
219
|
+
if (output.statusCode >= 300) {
|
|
220
|
+
return deserializeAws_json1_1AddTagsCommandError(output, context);
|
|
221
|
+
}
|
|
222
|
+
const data = await parseBody(output.body, context);
|
|
223
|
+
let contents = {};
|
|
224
|
+
contents = deserializeAws_json1_1AddTagsOutput(data, context);
|
|
225
|
+
const response = {
|
|
226
|
+
$metadata: deserializeMetadata(output),
|
|
227
|
+
...contents,
|
|
228
|
+
};
|
|
229
|
+
return Promise.resolve(response);
|
|
230
|
+
};
|
|
231
|
+
const deserializeAws_json1_1AddTagsCommandError = async (output, context) => {
|
|
232
|
+
const parsedOutput = {
|
|
233
|
+
...output,
|
|
234
|
+
body: await parseErrorBody(output.body, context),
|
|
235
|
+
};
|
|
236
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
237
|
+
switch (errorCode) {
|
|
238
|
+
case "InternalServiceError":
|
|
239
|
+
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
240
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
241
|
+
case "InvalidRequestException":
|
|
242
|
+
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
243
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
244
|
+
case "PipelineDeletedException":
|
|
245
|
+
case "com.amazonaws.datapipeline#PipelineDeletedException":
|
|
246
|
+
throw await deserializeAws_json1_1PipelineDeletedExceptionResponse(parsedOutput, context);
|
|
247
|
+
case "PipelineNotFoundException":
|
|
248
|
+
case "com.amazonaws.datapipeline#PipelineNotFoundException":
|
|
249
|
+
throw await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context);
|
|
250
|
+
default:
|
|
251
|
+
const parsedBody = parsedOutput.body;
|
|
252
|
+
throwDefaultError({
|
|
253
|
+
output,
|
|
254
|
+
parsedBody,
|
|
255
|
+
exceptionCtor: __BaseException,
|
|
256
|
+
errorCode,
|
|
257
|
+
});
|
|
258
|
+
}
|
|
259
|
+
};
|
|
260
|
+
export const deserializeAws_json1_1CreatePipelineCommand = async (output, context) => {
|
|
261
|
+
if (output.statusCode >= 300) {
|
|
262
|
+
return deserializeAws_json1_1CreatePipelineCommandError(output, context);
|
|
263
|
+
}
|
|
264
|
+
const data = await parseBody(output.body, context);
|
|
265
|
+
let contents = {};
|
|
266
|
+
contents = deserializeAws_json1_1CreatePipelineOutput(data, context);
|
|
267
|
+
const response = {
|
|
268
|
+
$metadata: deserializeMetadata(output),
|
|
269
|
+
...contents,
|
|
270
|
+
};
|
|
271
|
+
return Promise.resolve(response);
|
|
272
|
+
};
|
|
273
|
+
const deserializeAws_json1_1CreatePipelineCommandError = async (output, context) => {
|
|
274
|
+
const parsedOutput = {
|
|
275
|
+
...output,
|
|
276
|
+
body: await parseErrorBody(output.body, context),
|
|
277
|
+
};
|
|
278
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
279
|
+
switch (errorCode) {
|
|
280
|
+
case "InternalServiceError":
|
|
281
|
+
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
282
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
283
|
+
case "InvalidRequestException":
|
|
284
|
+
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
285
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
286
|
+
default:
|
|
287
|
+
const parsedBody = parsedOutput.body;
|
|
288
|
+
throwDefaultError({
|
|
289
|
+
output,
|
|
290
|
+
parsedBody,
|
|
291
|
+
exceptionCtor: __BaseException,
|
|
292
|
+
errorCode,
|
|
293
|
+
});
|
|
294
|
+
}
|
|
295
|
+
};
|
|
296
|
+
export const deserializeAws_json1_1DeactivatePipelineCommand = async (output, context) => {
|
|
297
|
+
if (output.statusCode >= 300) {
|
|
298
|
+
return deserializeAws_json1_1DeactivatePipelineCommandError(output, context);
|
|
299
|
+
}
|
|
300
|
+
const data = await parseBody(output.body, context);
|
|
301
|
+
let contents = {};
|
|
302
|
+
contents = deserializeAws_json1_1DeactivatePipelineOutput(data, context);
|
|
303
|
+
const response = {
|
|
304
|
+
$metadata: deserializeMetadata(output),
|
|
305
|
+
...contents,
|
|
306
|
+
};
|
|
307
|
+
return Promise.resolve(response);
|
|
308
|
+
};
|
|
309
|
+
const deserializeAws_json1_1DeactivatePipelineCommandError = async (output, context) => {
|
|
310
|
+
const parsedOutput = {
|
|
311
|
+
...output,
|
|
312
|
+
body: await parseErrorBody(output.body, context),
|
|
313
|
+
};
|
|
314
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
315
|
+
switch (errorCode) {
|
|
316
|
+
case "InternalServiceError":
|
|
317
|
+
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
318
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
319
|
+
case "InvalidRequestException":
|
|
320
|
+
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
321
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
322
|
+
case "PipelineDeletedException":
|
|
323
|
+
case "com.amazonaws.datapipeline#PipelineDeletedException":
|
|
324
|
+
throw await deserializeAws_json1_1PipelineDeletedExceptionResponse(parsedOutput, context);
|
|
325
|
+
case "PipelineNotFoundException":
|
|
326
|
+
case "com.amazonaws.datapipeline#PipelineNotFoundException":
|
|
327
|
+
throw await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context);
|
|
328
|
+
default:
|
|
329
|
+
const parsedBody = parsedOutput.body;
|
|
330
|
+
throwDefaultError({
|
|
331
|
+
output,
|
|
332
|
+
parsedBody,
|
|
333
|
+
exceptionCtor: __BaseException,
|
|
334
|
+
errorCode,
|
|
335
|
+
});
|
|
336
|
+
}
|
|
337
|
+
};
|
|
338
|
+
export const deserializeAws_json1_1DeletePipelineCommand = async (output, context) => {
|
|
339
|
+
if (output.statusCode >= 300) {
|
|
340
|
+
return deserializeAws_json1_1DeletePipelineCommandError(output, context);
|
|
341
|
+
}
|
|
342
|
+
await collectBody(output.body, context);
|
|
343
|
+
const response = {
|
|
344
|
+
$metadata: deserializeMetadata(output),
|
|
345
|
+
};
|
|
346
|
+
return Promise.resolve(response);
|
|
347
|
+
};
|
|
348
|
+
const deserializeAws_json1_1DeletePipelineCommandError = async (output, context) => {
|
|
349
|
+
const parsedOutput = {
|
|
350
|
+
...output,
|
|
351
|
+
body: await parseErrorBody(output.body, context),
|
|
352
|
+
};
|
|
353
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
354
|
+
switch (errorCode) {
|
|
355
|
+
case "InternalServiceError":
|
|
356
|
+
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
357
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
358
|
+
case "InvalidRequestException":
|
|
359
|
+
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
360
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
361
|
+
case "PipelineNotFoundException":
|
|
362
|
+
case "com.amazonaws.datapipeline#PipelineNotFoundException":
|
|
363
|
+
throw await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context);
|
|
364
|
+
default:
|
|
365
|
+
const parsedBody = parsedOutput.body;
|
|
366
|
+
throwDefaultError({
|
|
367
|
+
output,
|
|
368
|
+
parsedBody,
|
|
369
|
+
exceptionCtor: __BaseException,
|
|
370
|
+
errorCode,
|
|
371
|
+
});
|
|
372
|
+
}
|
|
373
|
+
};
|
|
374
|
+
export const deserializeAws_json1_1DescribeObjectsCommand = async (output, context) => {
|
|
375
|
+
if (output.statusCode >= 300) {
|
|
376
|
+
return deserializeAws_json1_1DescribeObjectsCommandError(output, context);
|
|
377
|
+
}
|
|
378
|
+
const data = await parseBody(output.body, context);
|
|
379
|
+
let contents = {};
|
|
380
|
+
contents = deserializeAws_json1_1DescribeObjectsOutput(data, context);
|
|
381
|
+
const response = {
|
|
382
|
+
$metadata: deserializeMetadata(output),
|
|
383
|
+
...contents,
|
|
384
|
+
};
|
|
385
|
+
return Promise.resolve(response);
|
|
386
|
+
};
|
|
387
|
+
const deserializeAws_json1_1DescribeObjectsCommandError = async (output, context) => {
|
|
388
|
+
const parsedOutput = {
|
|
389
|
+
...output,
|
|
390
|
+
body: await parseErrorBody(output.body, context),
|
|
391
|
+
};
|
|
392
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
393
|
+
switch (errorCode) {
|
|
394
|
+
case "InternalServiceError":
|
|
395
|
+
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
396
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
397
|
+
case "InvalidRequestException":
|
|
398
|
+
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
399
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
400
|
+
case "PipelineDeletedException":
|
|
401
|
+
case "com.amazonaws.datapipeline#PipelineDeletedException":
|
|
402
|
+
throw await deserializeAws_json1_1PipelineDeletedExceptionResponse(parsedOutput, context);
|
|
403
|
+
case "PipelineNotFoundException":
|
|
404
|
+
case "com.amazonaws.datapipeline#PipelineNotFoundException":
|
|
405
|
+
throw await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context);
|
|
406
|
+
default:
|
|
407
|
+
const parsedBody = parsedOutput.body;
|
|
408
|
+
throwDefaultError({
|
|
409
|
+
output,
|
|
410
|
+
parsedBody,
|
|
411
|
+
exceptionCtor: __BaseException,
|
|
412
|
+
errorCode,
|
|
413
|
+
});
|
|
414
|
+
}
|
|
415
|
+
};
|
|
416
|
+
export const deserializeAws_json1_1DescribePipelinesCommand = async (output, context) => {
|
|
417
|
+
if (output.statusCode >= 300) {
|
|
418
|
+
return deserializeAws_json1_1DescribePipelinesCommandError(output, context);
|
|
419
|
+
}
|
|
420
|
+
const data = await parseBody(output.body, context);
|
|
421
|
+
let contents = {};
|
|
422
|
+
contents = deserializeAws_json1_1DescribePipelinesOutput(data, context);
|
|
423
|
+
const response = {
|
|
424
|
+
$metadata: deserializeMetadata(output),
|
|
425
|
+
...contents,
|
|
426
|
+
};
|
|
427
|
+
return Promise.resolve(response);
|
|
428
|
+
};
|
|
429
|
+
const deserializeAws_json1_1DescribePipelinesCommandError = async (output, context) => {
|
|
430
|
+
const parsedOutput = {
|
|
431
|
+
...output,
|
|
432
|
+
body: await parseErrorBody(output.body, context),
|
|
433
|
+
};
|
|
434
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
435
|
+
switch (errorCode) {
|
|
436
|
+
case "InternalServiceError":
|
|
437
|
+
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
438
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
439
|
+
case "InvalidRequestException":
|
|
440
|
+
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
441
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
442
|
+
case "PipelineDeletedException":
|
|
443
|
+
case "com.amazonaws.datapipeline#PipelineDeletedException":
|
|
444
|
+
throw await deserializeAws_json1_1PipelineDeletedExceptionResponse(parsedOutput, context);
|
|
445
|
+
case "PipelineNotFoundException":
|
|
446
|
+
case "com.amazonaws.datapipeline#PipelineNotFoundException":
|
|
447
|
+
throw await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context);
|
|
448
|
+
default:
|
|
449
|
+
const parsedBody = parsedOutput.body;
|
|
450
|
+
throwDefaultError({
|
|
451
|
+
output,
|
|
452
|
+
parsedBody,
|
|
453
|
+
exceptionCtor: __BaseException,
|
|
454
|
+
errorCode,
|
|
455
|
+
});
|
|
456
|
+
}
|
|
457
|
+
};
|
|
458
|
+
export const deserializeAws_json1_1EvaluateExpressionCommand = async (output, context) => {
|
|
459
|
+
if (output.statusCode >= 300) {
|
|
460
|
+
return deserializeAws_json1_1EvaluateExpressionCommandError(output, context);
|
|
461
|
+
}
|
|
462
|
+
const data = await parseBody(output.body, context);
|
|
463
|
+
let contents = {};
|
|
464
|
+
contents = deserializeAws_json1_1EvaluateExpressionOutput(data, context);
|
|
465
|
+
const response = {
|
|
466
|
+
$metadata: deserializeMetadata(output),
|
|
467
|
+
...contents,
|
|
468
|
+
};
|
|
469
|
+
return Promise.resolve(response);
|
|
470
|
+
};
|
|
471
|
+
const deserializeAws_json1_1EvaluateExpressionCommandError = async (output, context) => {
|
|
472
|
+
const parsedOutput = {
|
|
473
|
+
...output,
|
|
474
|
+
body: await parseErrorBody(output.body, context),
|
|
475
|
+
};
|
|
476
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
477
|
+
switch (errorCode) {
|
|
478
|
+
case "InternalServiceError":
|
|
479
|
+
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
480
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
481
|
+
case "InvalidRequestException":
|
|
482
|
+
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
483
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
484
|
+
case "PipelineDeletedException":
|
|
485
|
+
case "com.amazonaws.datapipeline#PipelineDeletedException":
|
|
486
|
+
throw await deserializeAws_json1_1PipelineDeletedExceptionResponse(parsedOutput, context);
|
|
487
|
+
case "PipelineNotFoundException":
|
|
488
|
+
case "com.amazonaws.datapipeline#PipelineNotFoundException":
|
|
489
|
+
throw await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context);
|
|
490
|
+
case "TaskNotFoundException":
|
|
491
|
+
case "com.amazonaws.datapipeline#TaskNotFoundException":
|
|
492
|
+
throw await deserializeAws_json1_1TaskNotFoundExceptionResponse(parsedOutput, context);
|
|
493
|
+
default:
|
|
494
|
+
const parsedBody = parsedOutput.body;
|
|
495
|
+
throwDefaultError({
|
|
496
|
+
output,
|
|
497
|
+
parsedBody,
|
|
498
|
+
exceptionCtor: __BaseException,
|
|
499
|
+
errorCode,
|
|
500
|
+
});
|
|
501
|
+
}
|
|
502
|
+
};
|
|
503
|
+
export const deserializeAws_json1_1GetPipelineDefinitionCommand = async (output, context) => {
|
|
504
|
+
if (output.statusCode >= 300) {
|
|
505
|
+
return deserializeAws_json1_1GetPipelineDefinitionCommandError(output, context);
|
|
506
|
+
}
|
|
507
|
+
const data = await parseBody(output.body, context);
|
|
508
|
+
let contents = {};
|
|
509
|
+
contents = deserializeAws_json1_1GetPipelineDefinitionOutput(data, context);
|
|
510
|
+
const response = {
|
|
511
|
+
$metadata: deserializeMetadata(output),
|
|
512
|
+
...contents,
|
|
513
|
+
};
|
|
514
|
+
return Promise.resolve(response);
|
|
515
|
+
};
|
|
516
|
+
const deserializeAws_json1_1GetPipelineDefinitionCommandError = async (output, context) => {
|
|
517
|
+
const parsedOutput = {
|
|
518
|
+
...output,
|
|
519
|
+
body: await parseErrorBody(output.body, context),
|
|
520
|
+
};
|
|
521
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
522
|
+
switch (errorCode) {
|
|
523
|
+
case "InternalServiceError":
|
|
524
|
+
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
525
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
526
|
+
case "InvalidRequestException":
|
|
527
|
+
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
528
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
529
|
+
case "PipelineDeletedException":
|
|
530
|
+
case "com.amazonaws.datapipeline#PipelineDeletedException":
|
|
531
|
+
throw await deserializeAws_json1_1PipelineDeletedExceptionResponse(parsedOutput, context);
|
|
532
|
+
case "PipelineNotFoundException":
|
|
533
|
+
case "com.amazonaws.datapipeline#PipelineNotFoundException":
|
|
534
|
+
throw await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context);
|
|
535
|
+
default:
|
|
536
|
+
const parsedBody = parsedOutput.body;
|
|
537
|
+
throwDefaultError({
|
|
538
|
+
output,
|
|
539
|
+
parsedBody,
|
|
540
|
+
exceptionCtor: __BaseException,
|
|
541
|
+
errorCode,
|
|
542
|
+
});
|
|
543
|
+
}
|
|
544
|
+
};
|
|
545
|
+
export const deserializeAws_json1_1ListPipelinesCommand = async (output, context) => {
|
|
546
|
+
if (output.statusCode >= 300) {
|
|
547
|
+
return deserializeAws_json1_1ListPipelinesCommandError(output, context);
|
|
548
|
+
}
|
|
549
|
+
const data = await parseBody(output.body, context);
|
|
550
|
+
let contents = {};
|
|
551
|
+
contents = deserializeAws_json1_1ListPipelinesOutput(data, context);
|
|
552
|
+
const response = {
|
|
553
|
+
$metadata: deserializeMetadata(output),
|
|
554
|
+
...contents,
|
|
555
|
+
};
|
|
556
|
+
return Promise.resolve(response);
|
|
557
|
+
};
|
|
558
|
+
const deserializeAws_json1_1ListPipelinesCommandError = async (output, context) => {
|
|
559
|
+
const parsedOutput = {
|
|
560
|
+
...output,
|
|
561
|
+
body: await parseErrorBody(output.body, context),
|
|
562
|
+
};
|
|
563
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
564
|
+
switch (errorCode) {
|
|
565
|
+
case "InternalServiceError":
|
|
566
|
+
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
567
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
568
|
+
case "InvalidRequestException":
|
|
569
|
+
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
570
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
571
|
+
default:
|
|
572
|
+
const parsedBody = parsedOutput.body;
|
|
573
|
+
throwDefaultError({
|
|
574
|
+
output,
|
|
575
|
+
parsedBody,
|
|
576
|
+
exceptionCtor: __BaseException,
|
|
577
|
+
errorCode,
|
|
578
|
+
});
|
|
579
|
+
}
|
|
580
|
+
};
|
|
581
|
+
export const deserializeAws_json1_1PollForTaskCommand = async (output, context) => {
|
|
582
|
+
if (output.statusCode >= 300) {
|
|
583
|
+
return deserializeAws_json1_1PollForTaskCommandError(output, context);
|
|
584
|
+
}
|
|
585
|
+
const data = await parseBody(output.body, context);
|
|
586
|
+
let contents = {};
|
|
587
|
+
contents = deserializeAws_json1_1PollForTaskOutput(data, context);
|
|
588
|
+
const response = {
|
|
589
|
+
$metadata: deserializeMetadata(output),
|
|
590
|
+
...contents,
|
|
591
|
+
};
|
|
592
|
+
return Promise.resolve(response);
|
|
593
|
+
};
|
|
594
|
+
const deserializeAws_json1_1PollForTaskCommandError = async (output, context) => {
|
|
595
|
+
const parsedOutput = {
|
|
596
|
+
...output,
|
|
597
|
+
body: await parseErrorBody(output.body, context),
|
|
598
|
+
};
|
|
599
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
600
|
+
switch (errorCode) {
|
|
601
|
+
case "InternalServiceError":
|
|
602
|
+
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
603
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
604
|
+
case "InvalidRequestException":
|
|
605
|
+
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
606
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
607
|
+
case "TaskNotFoundException":
|
|
608
|
+
case "com.amazonaws.datapipeline#TaskNotFoundException":
|
|
609
|
+
throw await deserializeAws_json1_1TaskNotFoundExceptionResponse(parsedOutput, context);
|
|
610
|
+
default:
|
|
611
|
+
const parsedBody = parsedOutput.body;
|
|
612
|
+
throwDefaultError({
|
|
613
|
+
output,
|
|
614
|
+
parsedBody,
|
|
615
|
+
exceptionCtor: __BaseException,
|
|
616
|
+
errorCode,
|
|
617
|
+
});
|
|
618
|
+
}
|
|
619
|
+
};
|
|
620
|
+
export const deserializeAws_json1_1PutPipelineDefinitionCommand = async (output, context) => {
|
|
621
|
+
if (output.statusCode >= 300) {
|
|
622
|
+
return deserializeAws_json1_1PutPipelineDefinitionCommandError(output, context);
|
|
623
|
+
}
|
|
624
|
+
const data = await parseBody(output.body, context);
|
|
625
|
+
let contents = {};
|
|
626
|
+
contents = deserializeAws_json1_1PutPipelineDefinitionOutput(data, context);
|
|
627
|
+
const response = {
|
|
628
|
+
$metadata: deserializeMetadata(output),
|
|
629
|
+
...contents,
|
|
630
|
+
};
|
|
631
|
+
return Promise.resolve(response);
|
|
632
|
+
};
|
|
633
|
+
const deserializeAws_json1_1PutPipelineDefinitionCommandError = async (output, context) => {
|
|
634
|
+
const parsedOutput = {
|
|
635
|
+
...output,
|
|
636
|
+
body: await parseErrorBody(output.body, context),
|
|
637
|
+
};
|
|
638
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
639
|
+
switch (errorCode) {
|
|
640
|
+
case "InternalServiceError":
|
|
641
|
+
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
642
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
643
|
+
case "InvalidRequestException":
|
|
644
|
+
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
645
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
646
|
+
case "PipelineDeletedException":
|
|
647
|
+
case "com.amazonaws.datapipeline#PipelineDeletedException":
|
|
648
|
+
throw await deserializeAws_json1_1PipelineDeletedExceptionResponse(parsedOutput, context);
|
|
649
|
+
case "PipelineNotFoundException":
|
|
650
|
+
case "com.amazonaws.datapipeline#PipelineNotFoundException":
|
|
651
|
+
throw await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context);
|
|
652
|
+
default:
|
|
653
|
+
const parsedBody = parsedOutput.body;
|
|
654
|
+
throwDefaultError({
|
|
655
|
+
output,
|
|
656
|
+
parsedBody,
|
|
657
|
+
exceptionCtor: __BaseException,
|
|
658
|
+
errorCode,
|
|
659
|
+
});
|
|
660
|
+
}
|
|
661
|
+
};
|
|
662
|
+
export const deserializeAws_json1_1QueryObjectsCommand = async (output, context) => {
|
|
663
|
+
if (output.statusCode >= 300) {
|
|
664
|
+
return deserializeAws_json1_1QueryObjectsCommandError(output, context);
|
|
665
|
+
}
|
|
666
|
+
const data = await parseBody(output.body, context);
|
|
667
|
+
let contents = {};
|
|
668
|
+
contents = deserializeAws_json1_1QueryObjectsOutput(data, context);
|
|
669
|
+
const response = {
|
|
670
|
+
$metadata: deserializeMetadata(output),
|
|
671
|
+
...contents,
|
|
672
|
+
};
|
|
673
|
+
return Promise.resolve(response);
|
|
674
|
+
};
|
|
675
|
+
const deserializeAws_json1_1QueryObjectsCommandError = async (output, context) => {
|
|
676
|
+
const parsedOutput = {
|
|
677
|
+
...output,
|
|
678
|
+
body: await parseErrorBody(output.body, context),
|
|
679
|
+
};
|
|
680
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
681
|
+
switch (errorCode) {
|
|
682
|
+
case "InternalServiceError":
|
|
683
|
+
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
684
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
685
|
+
case "InvalidRequestException":
|
|
686
|
+
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
687
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
688
|
+
case "PipelineDeletedException":
|
|
689
|
+
case "com.amazonaws.datapipeline#PipelineDeletedException":
|
|
690
|
+
throw await deserializeAws_json1_1PipelineDeletedExceptionResponse(parsedOutput, context);
|
|
691
|
+
case "PipelineNotFoundException":
|
|
692
|
+
case "com.amazonaws.datapipeline#PipelineNotFoundException":
|
|
693
|
+
throw await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context);
|
|
694
|
+
default:
|
|
695
|
+
const parsedBody = parsedOutput.body;
|
|
696
|
+
throwDefaultError({
|
|
697
|
+
output,
|
|
698
|
+
parsedBody,
|
|
699
|
+
exceptionCtor: __BaseException,
|
|
700
|
+
errorCode,
|
|
701
|
+
});
|
|
702
|
+
}
|
|
703
|
+
};
|
|
704
|
+
export const deserializeAws_json1_1RemoveTagsCommand = async (output, context) => {
|
|
705
|
+
if (output.statusCode >= 300) {
|
|
706
|
+
return deserializeAws_json1_1RemoveTagsCommandError(output, context);
|
|
707
|
+
}
|
|
708
|
+
const data = await parseBody(output.body, context);
|
|
709
|
+
let contents = {};
|
|
710
|
+
contents = deserializeAws_json1_1RemoveTagsOutput(data, context);
|
|
711
|
+
const response = {
|
|
712
|
+
$metadata: deserializeMetadata(output),
|
|
713
|
+
...contents,
|
|
714
|
+
};
|
|
715
|
+
return Promise.resolve(response);
|
|
716
|
+
};
|
|
717
|
+
const deserializeAws_json1_1RemoveTagsCommandError = async (output, context) => {
|
|
718
|
+
const parsedOutput = {
|
|
719
|
+
...output,
|
|
720
|
+
body: await parseErrorBody(output.body, context),
|
|
721
|
+
};
|
|
722
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
723
|
+
switch (errorCode) {
|
|
724
|
+
case "InternalServiceError":
|
|
725
|
+
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
726
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
727
|
+
case "InvalidRequestException":
|
|
728
|
+
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
729
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
730
|
+
case "PipelineDeletedException":
|
|
731
|
+
case "com.amazonaws.datapipeline#PipelineDeletedException":
|
|
732
|
+
throw await deserializeAws_json1_1PipelineDeletedExceptionResponse(parsedOutput, context);
|
|
733
|
+
case "PipelineNotFoundException":
|
|
734
|
+
case "com.amazonaws.datapipeline#PipelineNotFoundException":
|
|
735
|
+
throw await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context);
|
|
736
|
+
default:
|
|
737
|
+
const parsedBody = parsedOutput.body;
|
|
738
|
+
throwDefaultError({
|
|
739
|
+
output,
|
|
740
|
+
parsedBody,
|
|
741
|
+
exceptionCtor: __BaseException,
|
|
742
|
+
errorCode,
|
|
743
|
+
});
|
|
744
|
+
}
|
|
745
|
+
};
|
|
746
|
+
export const deserializeAws_json1_1ReportTaskProgressCommand = async (output, context) => {
|
|
747
|
+
if (output.statusCode >= 300) {
|
|
748
|
+
return deserializeAws_json1_1ReportTaskProgressCommandError(output, context);
|
|
749
|
+
}
|
|
750
|
+
const data = await parseBody(output.body, context);
|
|
751
|
+
let contents = {};
|
|
752
|
+
contents = deserializeAws_json1_1ReportTaskProgressOutput(data, context);
|
|
753
|
+
const response = {
|
|
754
|
+
$metadata: deserializeMetadata(output),
|
|
755
|
+
...contents,
|
|
756
|
+
};
|
|
757
|
+
return Promise.resolve(response);
|
|
758
|
+
};
|
|
759
|
+
const deserializeAws_json1_1ReportTaskProgressCommandError = async (output, context) => {
|
|
760
|
+
const parsedOutput = {
|
|
761
|
+
...output,
|
|
762
|
+
body: await parseErrorBody(output.body, context),
|
|
763
|
+
};
|
|
764
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
765
|
+
switch (errorCode) {
|
|
766
|
+
case "InternalServiceError":
|
|
767
|
+
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
768
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
769
|
+
case "InvalidRequestException":
|
|
770
|
+
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
771
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
772
|
+
case "PipelineDeletedException":
|
|
773
|
+
case "com.amazonaws.datapipeline#PipelineDeletedException":
|
|
774
|
+
throw await deserializeAws_json1_1PipelineDeletedExceptionResponse(parsedOutput, context);
|
|
775
|
+
case "PipelineNotFoundException":
|
|
776
|
+
case "com.amazonaws.datapipeline#PipelineNotFoundException":
|
|
777
|
+
throw await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context);
|
|
778
|
+
case "TaskNotFoundException":
|
|
779
|
+
case "com.amazonaws.datapipeline#TaskNotFoundException":
|
|
780
|
+
throw await deserializeAws_json1_1TaskNotFoundExceptionResponse(parsedOutput, context);
|
|
781
|
+
default:
|
|
782
|
+
const parsedBody = parsedOutput.body;
|
|
783
|
+
throwDefaultError({
|
|
784
|
+
output,
|
|
785
|
+
parsedBody,
|
|
786
|
+
exceptionCtor: __BaseException,
|
|
787
|
+
errorCode,
|
|
788
|
+
});
|
|
789
|
+
}
|
|
790
|
+
};
|
|
791
|
+
export const deserializeAws_json1_1ReportTaskRunnerHeartbeatCommand = async (output, context) => {
|
|
792
|
+
if (output.statusCode >= 300) {
|
|
793
|
+
return deserializeAws_json1_1ReportTaskRunnerHeartbeatCommandError(output, context);
|
|
794
|
+
}
|
|
795
|
+
const data = await parseBody(output.body, context);
|
|
796
|
+
let contents = {};
|
|
797
|
+
contents = deserializeAws_json1_1ReportTaskRunnerHeartbeatOutput(data, context);
|
|
798
|
+
const response = {
|
|
799
|
+
$metadata: deserializeMetadata(output),
|
|
800
|
+
...contents,
|
|
801
|
+
};
|
|
802
|
+
return Promise.resolve(response);
|
|
803
|
+
};
|
|
804
|
+
const deserializeAws_json1_1ReportTaskRunnerHeartbeatCommandError = async (output, context) => {
|
|
805
|
+
const parsedOutput = {
|
|
806
|
+
...output,
|
|
807
|
+
body: await parseErrorBody(output.body, context),
|
|
808
|
+
};
|
|
809
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
810
|
+
switch (errorCode) {
|
|
811
|
+
case "InternalServiceError":
|
|
812
|
+
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
813
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
814
|
+
case "InvalidRequestException":
|
|
815
|
+
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
816
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
817
|
+
default:
|
|
818
|
+
const parsedBody = parsedOutput.body;
|
|
819
|
+
throwDefaultError({
|
|
820
|
+
output,
|
|
821
|
+
parsedBody,
|
|
822
|
+
exceptionCtor: __BaseException,
|
|
823
|
+
errorCode,
|
|
824
|
+
});
|
|
825
|
+
}
|
|
826
|
+
};
|
|
827
|
+
export const deserializeAws_json1_1SetStatusCommand = async (output, context) => {
|
|
828
|
+
if (output.statusCode >= 300) {
|
|
829
|
+
return deserializeAws_json1_1SetStatusCommandError(output, context);
|
|
830
|
+
}
|
|
831
|
+
await collectBody(output.body, context);
|
|
832
|
+
const response = {
|
|
833
|
+
$metadata: deserializeMetadata(output),
|
|
834
|
+
};
|
|
835
|
+
return Promise.resolve(response);
|
|
836
|
+
};
|
|
837
|
+
const deserializeAws_json1_1SetStatusCommandError = async (output, context) => {
|
|
838
|
+
const parsedOutput = {
|
|
839
|
+
...output,
|
|
840
|
+
body: await parseErrorBody(output.body, context),
|
|
841
|
+
};
|
|
842
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
843
|
+
switch (errorCode) {
|
|
844
|
+
case "InternalServiceError":
|
|
845
|
+
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
846
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
847
|
+
case "InvalidRequestException":
|
|
848
|
+
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
849
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
850
|
+
case "PipelineDeletedException":
|
|
851
|
+
case "com.amazonaws.datapipeline#PipelineDeletedException":
|
|
852
|
+
throw await deserializeAws_json1_1PipelineDeletedExceptionResponse(parsedOutput, context);
|
|
853
|
+
case "PipelineNotFoundException":
|
|
854
|
+
case "com.amazonaws.datapipeline#PipelineNotFoundException":
|
|
855
|
+
throw await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context);
|
|
856
|
+
default:
|
|
857
|
+
const parsedBody = parsedOutput.body;
|
|
858
|
+
throwDefaultError({
|
|
859
|
+
output,
|
|
860
|
+
parsedBody,
|
|
861
|
+
exceptionCtor: __BaseException,
|
|
862
|
+
errorCode,
|
|
863
|
+
});
|
|
864
|
+
}
|
|
865
|
+
};
|
|
866
|
+
export const deserializeAws_json1_1SetTaskStatusCommand = async (output, context) => {
|
|
867
|
+
if (output.statusCode >= 300) {
|
|
868
|
+
return deserializeAws_json1_1SetTaskStatusCommandError(output, context);
|
|
869
|
+
}
|
|
870
|
+
const data = await parseBody(output.body, context);
|
|
871
|
+
let contents = {};
|
|
872
|
+
contents = deserializeAws_json1_1SetTaskStatusOutput(data, context);
|
|
873
|
+
const response = {
|
|
874
|
+
$metadata: deserializeMetadata(output),
|
|
875
|
+
...contents,
|
|
876
|
+
};
|
|
877
|
+
return Promise.resolve(response);
|
|
878
|
+
};
|
|
879
|
+
const deserializeAws_json1_1SetTaskStatusCommandError = async (output, context) => {
|
|
880
|
+
const parsedOutput = {
|
|
881
|
+
...output,
|
|
882
|
+
body: await parseErrorBody(output.body, context),
|
|
883
|
+
};
|
|
884
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
885
|
+
switch (errorCode) {
|
|
886
|
+
case "InternalServiceError":
|
|
887
|
+
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
888
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
889
|
+
case "InvalidRequestException":
|
|
890
|
+
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
891
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
892
|
+
case "PipelineDeletedException":
|
|
893
|
+
case "com.amazonaws.datapipeline#PipelineDeletedException":
|
|
894
|
+
throw await deserializeAws_json1_1PipelineDeletedExceptionResponse(parsedOutput, context);
|
|
895
|
+
case "PipelineNotFoundException":
|
|
896
|
+
case "com.amazonaws.datapipeline#PipelineNotFoundException":
|
|
897
|
+
throw await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context);
|
|
898
|
+
case "TaskNotFoundException":
|
|
899
|
+
case "com.amazonaws.datapipeline#TaskNotFoundException":
|
|
900
|
+
throw await deserializeAws_json1_1TaskNotFoundExceptionResponse(parsedOutput, context);
|
|
901
|
+
default:
|
|
902
|
+
const parsedBody = parsedOutput.body;
|
|
903
|
+
throwDefaultError({
|
|
904
|
+
output,
|
|
905
|
+
parsedBody,
|
|
906
|
+
exceptionCtor: __BaseException,
|
|
907
|
+
errorCode,
|
|
908
|
+
});
|
|
909
|
+
}
|
|
910
|
+
};
|
|
911
|
+
export const deserializeAws_json1_1ValidatePipelineDefinitionCommand = async (output, context) => {
|
|
912
|
+
if (output.statusCode >= 300) {
|
|
913
|
+
return deserializeAws_json1_1ValidatePipelineDefinitionCommandError(output, context);
|
|
914
|
+
}
|
|
915
|
+
const data = await parseBody(output.body, context);
|
|
916
|
+
let contents = {};
|
|
917
|
+
contents = deserializeAws_json1_1ValidatePipelineDefinitionOutput(data, context);
|
|
918
|
+
const response = {
|
|
919
|
+
$metadata: deserializeMetadata(output),
|
|
920
|
+
...contents,
|
|
921
|
+
};
|
|
922
|
+
return Promise.resolve(response);
|
|
923
|
+
};
|
|
924
|
+
const deserializeAws_json1_1ValidatePipelineDefinitionCommandError = async (output, context) => {
|
|
925
|
+
const parsedOutput = {
|
|
926
|
+
...output,
|
|
927
|
+
body: await parseErrorBody(output.body, context),
|
|
928
|
+
};
|
|
929
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
930
|
+
switch (errorCode) {
|
|
931
|
+
case "InternalServiceError":
|
|
932
|
+
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
933
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
934
|
+
case "InvalidRequestException":
|
|
935
|
+
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
936
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
937
|
+
case "PipelineDeletedException":
|
|
938
|
+
case "com.amazonaws.datapipeline#PipelineDeletedException":
|
|
939
|
+
throw await deserializeAws_json1_1PipelineDeletedExceptionResponse(parsedOutput, context);
|
|
940
|
+
case "PipelineNotFoundException":
|
|
941
|
+
case "com.amazonaws.datapipeline#PipelineNotFoundException":
|
|
942
|
+
throw await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context);
|
|
943
|
+
default:
|
|
944
|
+
const parsedBody = parsedOutput.body;
|
|
945
|
+
throwDefaultError({
|
|
946
|
+
output,
|
|
947
|
+
parsedBody,
|
|
948
|
+
exceptionCtor: __BaseException,
|
|
949
|
+
errorCode,
|
|
950
|
+
});
|
|
951
|
+
}
|
|
952
|
+
};
|
|
953
|
+
const deserializeAws_json1_1InternalServiceErrorResponse = async (parsedOutput, context) => {
|
|
954
|
+
const body = parsedOutput.body;
|
|
955
|
+
const deserialized = deserializeAws_json1_1InternalServiceError(body, context);
|
|
956
|
+
const exception = new InternalServiceError({
|
|
957
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
958
|
+
...deserialized,
|
|
1399
959
|
});
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
960
|
+
return __decorateServiceException(exception, body);
|
|
961
|
+
};
|
|
962
|
+
const deserializeAws_json1_1InvalidRequestExceptionResponse = async (parsedOutput, context) => {
|
|
963
|
+
const body = parsedOutput.body;
|
|
964
|
+
const deserialized = deserializeAws_json1_1InvalidRequestException(body, context);
|
|
965
|
+
const exception = new InvalidRequestException({
|
|
966
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
967
|
+
...deserialized,
|
|
1408
968
|
});
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
969
|
+
return __decorateServiceException(exception, body);
|
|
970
|
+
};
|
|
971
|
+
const deserializeAws_json1_1PipelineDeletedExceptionResponse = async (parsedOutput, context) => {
|
|
972
|
+
const body = parsedOutput.body;
|
|
973
|
+
const deserialized = deserializeAws_json1_1PipelineDeletedException(body, context);
|
|
974
|
+
const exception = new PipelineDeletedException({
|
|
975
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
976
|
+
...deserialized,
|
|
1417
977
|
});
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
978
|
+
return __decorateServiceException(exception, body);
|
|
979
|
+
};
|
|
980
|
+
const deserializeAws_json1_1PipelineNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
981
|
+
const body = parsedOutput.body;
|
|
982
|
+
const deserialized = deserializeAws_json1_1PipelineNotFoundException(body, context);
|
|
983
|
+
const exception = new PipelineNotFoundException({
|
|
984
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
985
|
+
...deserialized,
|
|
1426
986
|
});
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
987
|
+
return __decorateServiceException(exception, body);
|
|
988
|
+
};
|
|
989
|
+
const deserializeAws_json1_1TaskNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
990
|
+
const body = parsedOutput.body;
|
|
991
|
+
const deserialized = deserializeAws_json1_1TaskNotFoundException(body, context);
|
|
992
|
+
const exception = new TaskNotFoundException({
|
|
993
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
994
|
+
...deserialized,
|
|
1435
995
|
});
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
996
|
+
return __decorateServiceException(exception, body);
|
|
997
|
+
};
|
|
998
|
+
const serializeAws_json1_1ActivatePipelineInput = (input, context) => {
|
|
999
|
+
return {
|
|
1000
|
+
...(input.parameterValues != null && {
|
|
1001
|
+
parameterValues: serializeAws_json1_1ParameterValueList(input.parameterValues, context),
|
|
1002
|
+
}),
|
|
1003
|
+
...(input.pipelineId != null && { pipelineId: input.pipelineId }),
|
|
1004
|
+
...(input.startTimestamp != null && { startTimestamp: Math.round(input.startTimestamp.getTime() / 1000) }),
|
|
1005
|
+
};
|
|
1441
1006
|
};
|
|
1442
|
-
|
|
1443
|
-
return
|
|
1007
|
+
const serializeAws_json1_1AddTagsInput = (input, context) => {
|
|
1008
|
+
return {
|
|
1009
|
+
...(input.pipelineId != null && { pipelineId: input.pipelineId }),
|
|
1010
|
+
...(input.tags != null && { tags: serializeAws_json1_1tagList(input.tags, context) }),
|
|
1011
|
+
};
|
|
1444
1012
|
};
|
|
1445
|
-
|
|
1446
|
-
return
|
|
1013
|
+
const serializeAws_json1_1CreatePipelineInput = (input, context) => {
|
|
1014
|
+
return {
|
|
1015
|
+
...(input.description != null && { description: input.description }),
|
|
1016
|
+
...(input.name != null && { name: input.name }),
|
|
1017
|
+
...(input.tags != null && { tags: serializeAws_json1_1tagList(input.tags, context) }),
|
|
1018
|
+
...(input.uniqueId != null && { uniqueId: input.uniqueId }),
|
|
1019
|
+
};
|
|
1447
1020
|
};
|
|
1448
|
-
|
|
1449
|
-
return
|
|
1021
|
+
const serializeAws_json1_1DeactivatePipelineInput = (input, context) => {
|
|
1022
|
+
return {
|
|
1023
|
+
...(input.cancelActive != null && { cancelActive: input.cancelActive }),
|
|
1024
|
+
...(input.pipelineId != null && { pipelineId: input.pipelineId }),
|
|
1025
|
+
};
|
|
1450
1026
|
};
|
|
1451
|
-
|
|
1452
|
-
return
|
|
1027
|
+
const serializeAws_json1_1DeletePipelineInput = (input, context) => {
|
|
1028
|
+
return {
|
|
1029
|
+
...(input.pipelineId != null && { pipelineId: input.pipelineId }),
|
|
1030
|
+
};
|
|
1453
1031
|
};
|
|
1454
|
-
|
|
1455
|
-
return
|
|
1032
|
+
const serializeAws_json1_1DescribeObjectsInput = (input, context) => {
|
|
1033
|
+
return {
|
|
1034
|
+
...(input.evaluateExpressions != null && { evaluateExpressions: input.evaluateExpressions }),
|
|
1035
|
+
...(input.marker != null && { marker: input.marker }),
|
|
1036
|
+
...(input.objectIds != null && { objectIds: serializeAws_json1_1idList(input.objectIds, context) }),
|
|
1037
|
+
...(input.pipelineId != null && { pipelineId: input.pipelineId }),
|
|
1038
|
+
};
|
|
1456
1039
|
};
|
|
1457
|
-
|
|
1458
|
-
return
|
|
1040
|
+
const serializeAws_json1_1DescribePipelinesInput = (input, context) => {
|
|
1041
|
+
return {
|
|
1042
|
+
...(input.pipelineIds != null && { pipelineIds: serializeAws_json1_1idList(input.pipelineIds, context) }),
|
|
1043
|
+
};
|
|
1459
1044
|
};
|
|
1460
|
-
|
|
1461
|
-
return
|
|
1045
|
+
const serializeAws_json1_1EvaluateExpressionInput = (input, context) => {
|
|
1046
|
+
return {
|
|
1047
|
+
...(input.expression != null && { expression: input.expression }),
|
|
1048
|
+
...(input.objectId != null && { objectId: input.objectId }),
|
|
1049
|
+
...(input.pipelineId != null && { pipelineId: input.pipelineId }),
|
|
1050
|
+
};
|
|
1462
1051
|
};
|
|
1463
|
-
|
|
1464
|
-
return
|
|
1052
|
+
const serializeAws_json1_1Field = (input, context) => {
|
|
1053
|
+
return {
|
|
1054
|
+
...(input.key != null && { key: input.key }),
|
|
1055
|
+
...(input.refValue != null && { refValue: input.refValue }),
|
|
1056
|
+
...(input.stringValue != null && { stringValue: input.stringValue }),
|
|
1057
|
+
};
|
|
1465
1058
|
};
|
|
1466
|
-
|
|
1059
|
+
const serializeAws_json1_1fieldList = (input, context) => {
|
|
1467
1060
|
return input
|
|
1468
|
-
.filter(
|
|
1469
|
-
.map(
|
|
1061
|
+
.filter((e) => e != null)
|
|
1062
|
+
.map((entry) => {
|
|
1470
1063
|
return serializeAws_json1_1Field(entry, context);
|
|
1471
1064
|
});
|
|
1472
1065
|
};
|
|
1473
|
-
|
|
1474
|
-
return
|
|
1066
|
+
const serializeAws_json1_1GetPipelineDefinitionInput = (input, context) => {
|
|
1067
|
+
return {
|
|
1068
|
+
...(input.pipelineId != null && { pipelineId: input.pipelineId }),
|
|
1069
|
+
...(input.version != null && { version: input.version }),
|
|
1070
|
+
};
|
|
1475
1071
|
};
|
|
1476
|
-
|
|
1072
|
+
const serializeAws_json1_1idList = (input, context) => {
|
|
1477
1073
|
return input
|
|
1478
|
-
.filter(
|
|
1479
|
-
.map(
|
|
1074
|
+
.filter((e) => e != null)
|
|
1075
|
+
.map((entry) => {
|
|
1480
1076
|
return entry;
|
|
1481
1077
|
});
|
|
1482
1078
|
};
|
|
1483
|
-
|
|
1484
|
-
return
|
|
1079
|
+
const serializeAws_json1_1InstanceIdentity = (input, context) => {
|
|
1080
|
+
return {
|
|
1081
|
+
...(input.document != null && { document: input.document }),
|
|
1082
|
+
...(input.signature != null && { signature: input.signature }),
|
|
1083
|
+
};
|
|
1485
1084
|
};
|
|
1486
|
-
|
|
1487
|
-
return
|
|
1085
|
+
const serializeAws_json1_1ListPipelinesInput = (input, context) => {
|
|
1086
|
+
return {
|
|
1087
|
+
...(input.marker != null && { marker: input.marker }),
|
|
1088
|
+
};
|
|
1488
1089
|
};
|
|
1489
|
-
|
|
1490
|
-
return
|
|
1090
|
+
const serializeAws_json1_1Operator = (input, context) => {
|
|
1091
|
+
return {
|
|
1092
|
+
...(input.type != null && { type: input.type }),
|
|
1093
|
+
...(input.values != null && { values: serializeAws_json1_1stringList(input.values, context) }),
|
|
1094
|
+
};
|
|
1491
1095
|
};
|
|
1492
|
-
|
|
1493
|
-
return
|
|
1096
|
+
const serializeAws_json1_1ParameterAttribute = (input, context) => {
|
|
1097
|
+
return {
|
|
1098
|
+
...(input.key != null && { key: input.key }),
|
|
1099
|
+
...(input.stringValue != null && { stringValue: input.stringValue }),
|
|
1100
|
+
};
|
|
1494
1101
|
};
|
|
1495
|
-
|
|
1102
|
+
const serializeAws_json1_1ParameterAttributeList = (input, context) => {
|
|
1496
1103
|
return input
|
|
1497
|
-
.filter(
|
|
1498
|
-
.map(
|
|
1104
|
+
.filter((e) => e != null)
|
|
1105
|
+
.map((entry) => {
|
|
1499
1106
|
return serializeAws_json1_1ParameterAttribute(entry, context);
|
|
1500
1107
|
});
|
|
1501
1108
|
};
|
|
1502
|
-
|
|
1503
|
-
return
|
|
1504
|
-
|
|
1505
|
-
|
|
1109
|
+
const serializeAws_json1_1ParameterObject = (input, context) => {
|
|
1110
|
+
return {
|
|
1111
|
+
...(input.attributes != null && {
|
|
1112
|
+
attributes: serializeAws_json1_1ParameterAttributeList(input.attributes, context),
|
|
1113
|
+
}),
|
|
1114
|
+
...(input.id != null && { id: input.id }),
|
|
1115
|
+
};
|
|
1506
1116
|
};
|
|
1507
|
-
|
|
1117
|
+
const serializeAws_json1_1ParameterObjectList = (input, context) => {
|
|
1508
1118
|
return input
|
|
1509
|
-
.filter(
|
|
1510
|
-
.map(
|
|
1119
|
+
.filter((e) => e != null)
|
|
1120
|
+
.map((entry) => {
|
|
1511
1121
|
return serializeAws_json1_1ParameterObject(entry, context);
|
|
1512
1122
|
});
|
|
1513
1123
|
};
|
|
1514
|
-
|
|
1515
|
-
return
|
|
1124
|
+
const serializeAws_json1_1ParameterValue = (input, context) => {
|
|
1125
|
+
return {
|
|
1126
|
+
...(input.id != null && { id: input.id }),
|
|
1127
|
+
...(input.stringValue != null && { stringValue: input.stringValue }),
|
|
1128
|
+
};
|
|
1516
1129
|
};
|
|
1517
|
-
|
|
1130
|
+
const serializeAws_json1_1ParameterValueList = (input, context) => {
|
|
1518
1131
|
return input
|
|
1519
|
-
.filter(
|
|
1520
|
-
.map(
|
|
1132
|
+
.filter((e) => e != null)
|
|
1133
|
+
.map((entry) => {
|
|
1521
1134
|
return serializeAws_json1_1ParameterValue(entry, context);
|
|
1522
1135
|
});
|
|
1523
1136
|
};
|
|
1524
|
-
|
|
1525
|
-
return
|
|
1137
|
+
const serializeAws_json1_1PipelineObject = (input, context) => {
|
|
1138
|
+
return {
|
|
1139
|
+
...(input.fields != null && { fields: serializeAws_json1_1fieldList(input.fields, context) }),
|
|
1140
|
+
...(input.id != null && { id: input.id }),
|
|
1141
|
+
...(input.name != null && { name: input.name }),
|
|
1142
|
+
};
|
|
1526
1143
|
};
|
|
1527
|
-
|
|
1144
|
+
const serializeAws_json1_1PipelineObjectList = (input, context) => {
|
|
1528
1145
|
return input
|
|
1529
|
-
.filter(
|
|
1530
|
-
.map(
|
|
1146
|
+
.filter((e) => e != null)
|
|
1147
|
+
.map((entry) => {
|
|
1531
1148
|
return serializeAws_json1_1PipelineObject(entry, context);
|
|
1532
1149
|
});
|
|
1533
1150
|
};
|
|
1534
|
-
|
|
1535
|
-
return
|
|
1536
|
-
|
|
1537
|
-
|
|
1151
|
+
const serializeAws_json1_1PollForTaskInput = (input, context) => {
|
|
1152
|
+
return {
|
|
1153
|
+
...(input.hostname != null && { hostname: input.hostname }),
|
|
1154
|
+
...(input.instanceIdentity != null && {
|
|
1155
|
+
instanceIdentity: serializeAws_json1_1InstanceIdentity(input.instanceIdentity, context),
|
|
1156
|
+
}),
|
|
1157
|
+
...(input.workerGroup != null && { workerGroup: input.workerGroup }),
|
|
1158
|
+
};
|
|
1538
1159
|
};
|
|
1539
|
-
|
|
1540
|
-
return
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1160
|
+
const serializeAws_json1_1PutPipelineDefinitionInput = (input, context) => {
|
|
1161
|
+
return {
|
|
1162
|
+
...(input.parameterObjects != null && {
|
|
1163
|
+
parameterObjects: serializeAws_json1_1ParameterObjectList(input.parameterObjects, context),
|
|
1164
|
+
}),
|
|
1165
|
+
...(input.parameterValues != null && {
|
|
1166
|
+
parameterValues: serializeAws_json1_1ParameterValueList(input.parameterValues, context),
|
|
1167
|
+
}),
|
|
1168
|
+
...(input.pipelineId != null && { pipelineId: input.pipelineId }),
|
|
1169
|
+
...(input.pipelineObjects != null && {
|
|
1170
|
+
pipelineObjects: serializeAws_json1_1PipelineObjectList(input.pipelineObjects, context),
|
|
1171
|
+
}),
|
|
1172
|
+
};
|
|
1547
1173
|
};
|
|
1548
|
-
|
|
1549
|
-
return
|
|
1174
|
+
const serializeAws_json1_1Query = (input, context) => {
|
|
1175
|
+
return {
|
|
1176
|
+
...(input.selectors != null && { selectors: serializeAws_json1_1SelectorList(input.selectors, context) }),
|
|
1177
|
+
};
|
|
1550
1178
|
};
|
|
1551
|
-
|
|
1552
|
-
return
|
|
1179
|
+
const serializeAws_json1_1QueryObjectsInput = (input, context) => {
|
|
1180
|
+
return {
|
|
1181
|
+
...(input.limit != null && { limit: input.limit }),
|
|
1182
|
+
...(input.marker != null && { marker: input.marker }),
|
|
1183
|
+
...(input.pipelineId != null && { pipelineId: input.pipelineId }),
|
|
1184
|
+
...(input.query != null && { query: serializeAws_json1_1Query(input.query, context) }),
|
|
1185
|
+
...(input.sphere != null && { sphere: input.sphere }),
|
|
1186
|
+
};
|
|
1553
1187
|
};
|
|
1554
|
-
|
|
1555
|
-
return
|
|
1188
|
+
const serializeAws_json1_1RemoveTagsInput = (input, context) => {
|
|
1189
|
+
return {
|
|
1190
|
+
...(input.pipelineId != null && { pipelineId: input.pipelineId }),
|
|
1191
|
+
...(input.tagKeys != null && { tagKeys: serializeAws_json1_1stringList(input.tagKeys, context) }),
|
|
1192
|
+
};
|
|
1556
1193
|
};
|
|
1557
|
-
|
|
1558
|
-
return
|
|
1194
|
+
const serializeAws_json1_1ReportTaskProgressInput = (input, context) => {
|
|
1195
|
+
return {
|
|
1196
|
+
...(input.fields != null && { fields: serializeAws_json1_1fieldList(input.fields, context) }),
|
|
1197
|
+
...(input.taskId != null && { taskId: input.taskId }),
|
|
1198
|
+
};
|
|
1559
1199
|
};
|
|
1560
|
-
|
|
1561
|
-
return
|
|
1200
|
+
const serializeAws_json1_1ReportTaskRunnerHeartbeatInput = (input, context) => {
|
|
1201
|
+
return {
|
|
1202
|
+
...(input.hostname != null && { hostname: input.hostname }),
|
|
1203
|
+
...(input.taskrunnerId != null && { taskrunnerId: input.taskrunnerId }),
|
|
1204
|
+
...(input.workerGroup != null && { workerGroup: input.workerGroup }),
|
|
1205
|
+
};
|
|
1562
1206
|
};
|
|
1563
|
-
|
|
1564
|
-
return
|
|
1207
|
+
const serializeAws_json1_1Selector = (input, context) => {
|
|
1208
|
+
return {
|
|
1209
|
+
...(input.fieldName != null && { fieldName: input.fieldName }),
|
|
1210
|
+
...(input.operator != null && { operator: serializeAws_json1_1Operator(input.operator, context) }),
|
|
1211
|
+
};
|
|
1565
1212
|
};
|
|
1566
|
-
|
|
1213
|
+
const serializeAws_json1_1SelectorList = (input, context) => {
|
|
1567
1214
|
return input
|
|
1568
|
-
.filter(
|
|
1569
|
-
.map(
|
|
1215
|
+
.filter((e) => e != null)
|
|
1216
|
+
.map((entry) => {
|
|
1570
1217
|
return serializeAws_json1_1Selector(entry, context);
|
|
1571
1218
|
});
|
|
1572
1219
|
};
|
|
1573
|
-
|
|
1574
|
-
return
|
|
1220
|
+
const serializeAws_json1_1SetStatusInput = (input, context) => {
|
|
1221
|
+
return {
|
|
1222
|
+
...(input.objectIds != null && { objectIds: serializeAws_json1_1idList(input.objectIds, context) }),
|
|
1223
|
+
...(input.pipelineId != null && { pipelineId: input.pipelineId }),
|
|
1224
|
+
...(input.status != null && { status: input.status }),
|
|
1225
|
+
};
|
|
1575
1226
|
};
|
|
1576
|
-
|
|
1577
|
-
return
|
|
1227
|
+
const serializeAws_json1_1SetTaskStatusInput = (input, context) => {
|
|
1228
|
+
return {
|
|
1229
|
+
...(input.errorId != null && { errorId: input.errorId }),
|
|
1230
|
+
...(input.errorMessage != null && { errorMessage: input.errorMessage }),
|
|
1231
|
+
...(input.errorStackTrace != null && { errorStackTrace: input.errorStackTrace }),
|
|
1232
|
+
...(input.taskId != null && { taskId: input.taskId }),
|
|
1233
|
+
...(input.taskStatus != null && { taskStatus: input.taskStatus }),
|
|
1234
|
+
};
|
|
1578
1235
|
};
|
|
1579
|
-
|
|
1236
|
+
const serializeAws_json1_1stringList = (input, context) => {
|
|
1580
1237
|
return input
|
|
1581
|
-
.filter(
|
|
1582
|
-
.map(
|
|
1238
|
+
.filter((e) => e != null)
|
|
1239
|
+
.map((entry) => {
|
|
1583
1240
|
return entry;
|
|
1584
1241
|
});
|
|
1585
1242
|
};
|
|
1586
|
-
|
|
1587
|
-
return
|
|
1243
|
+
const serializeAws_json1_1Tag = (input, context) => {
|
|
1244
|
+
return {
|
|
1245
|
+
...(input.key != null && { key: input.key }),
|
|
1246
|
+
...(input.value != null && { value: input.value }),
|
|
1247
|
+
};
|
|
1588
1248
|
};
|
|
1589
|
-
|
|
1249
|
+
const serializeAws_json1_1tagList = (input, context) => {
|
|
1590
1250
|
return input
|
|
1591
|
-
.filter(
|
|
1592
|
-
.map(
|
|
1251
|
+
.filter((e) => e != null)
|
|
1252
|
+
.map((entry) => {
|
|
1593
1253
|
return serializeAws_json1_1Tag(entry, context);
|
|
1594
1254
|
});
|
|
1595
1255
|
};
|
|
1596
|
-
|
|
1597
|
-
return
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1256
|
+
const serializeAws_json1_1ValidatePipelineDefinitionInput = (input, context) => {
|
|
1257
|
+
return {
|
|
1258
|
+
...(input.parameterObjects != null && {
|
|
1259
|
+
parameterObjects: serializeAws_json1_1ParameterObjectList(input.parameterObjects, context),
|
|
1260
|
+
}),
|
|
1261
|
+
...(input.parameterValues != null && {
|
|
1262
|
+
parameterValues: serializeAws_json1_1ParameterValueList(input.parameterValues, context),
|
|
1263
|
+
}),
|
|
1264
|
+
...(input.pipelineId != null && { pipelineId: input.pipelineId }),
|
|
1265
|
+
...(input.pipelineObjects != null && {
|
|
1266
|
+
pipelineObjects: serializeAws_json1_1PipelineObjectList(input.pipelineObjects, context),
|
|
1267
|
+
}),
|
|
1268
|
+
};
|
|
1604
1269
|
};
|
|
1605
|
-
|
|
1270
|
+
const deserializeAws_json1_1ActivatePipelineOutput = (output, context) => {
|
|
1606
1271
|
return {};
|
|
1607
1272
|
};
|
|
1608
|
-
|
|
1273
|
+
const deserializeAws_json1_1AddTagsOutput = (output, context) => {
|
|
1609
1274
|
return {};
|
|
1610
1275
|
};
|
|
1611
|
-
|
|
1276
|
+
const deserializeAws_json1_1CreatePipelineOutput = (output, context) => {
|
|
1612
1277
|
return {
|
|
1613
1278
|
pipelineId: __expectString(output.pipelineId),
|
|
1614
1279
|
};
|
|
1615
1280
|
};
|
|
1616
|
-
|
|
1281
|
+
const deserializeAws_json1_1DeactivatePipelineOutput = (output, context) => {
|
|
1617
1282
|
return {};
|
|
1618
1283
|
};
|
|
1619
|
-
|
|
1284
|
+
const deserializeAws_json1_1DescribeObjectsOutput = (output, context) => {
|
|
1620
1285
|
return {
|
|
1621
1286
|
hasMoreResults: __expectBoolean(output.hasMoreResults),
|
|
1622
1287
|
marker: __expectString(output.marker),
|
|
@@ -1625,29 +1290,29 @@ var deserializeAws_json1_1DescribeObjectsOutput = function (output, context) {
|
|
|
1625
1290
|
: undefined,
|
|
1626
1291
|
};
|
|
1627
1292
|
};
|
|
1628
|
-
|
|
1293
|
+
const deserializeAws_json1_1DescribePipelinesOutput = (output, context) => {
|
|
1629
1294
|
return {
|
|
1630
1295
|
pipelineDescriptionList: output.pipelineDescriptionList != null
|
|
1631
1296
|
? deserializeAws_json1_1PipelineDescriptionList(output.pipelineDescriptionList, context)
|
|
1632
1297
|
: undefined,
|
|
1633
1298
|
};
|
|
1634
1299
|
};
|
|
1635
|
-
|
|
1300
|
+
const deserializeAws_json1_1EvaluateExpressionOutput = (output, context) => {
|
|
1636
1301
|
return {
|
|
1637
1302
|
evaluatedExpression: __expectString(output.evaluatedExpression),
|
|
1638
1303
|
};
|
|
1639
1304
|
};
|
|
1640
|
-
|
|
1305
|
+
const deserializeAws_json1_1Field = (output, context) => {
|
|
1641
1306
|
return {
|
|
1642
1307
|
key: __expectString(output.key),
|
|
1643
1308
|
refValue: __expectString(output.refValue),
|
|
1644
1309
|
stringValue: __expectString(output.stringValue),
|
|
1645
1310
|
};
|
|
1646
1311
|
};
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
.filter(
|
|
1650
|
-
.map(
|
|
1312
|
+
const deserializeAws_json1_1fieldList = (output, context) => {
|
|
1313
|
+
const retVal = (output || [])
|
|
1314
|
+
.filter((e) => e != null)
|
|
1315
|
+
.map((entry) => {
|
|
1651
1316
|
if (entry === null) {
|
|
1652
1317
|
return null;
|
|
1653
1318
|
}
|
|
@@ -1655,7 +1320,7 @@ var deserializeAws_json1_1fieldList = function (output, context) {
|
|
|
1655
1320
|
});
|
|
1656
1321
|
return retVal;
|
|
1657
1322
|
};
|
|
1658
|
-
|
|
1323
|
+
const deserializeAws_json1_1GetPipelineDefinitionOutput = (output, context) => {
|
|
1659
1324
|
return {
|
|
1660
1325
|
parameterObjects: output.parameterObjects != null
|
|
1661
1326
|
? deserializeAws_json1_1ParameterObjectList(output.parameterObjects, context)
|
|
@@ -1668,10 +1333,10 @@ var deserializeAws_json1_1GetPipelineDefinitionOutput = function (output, contex
|
|
|
1668
1333
|
: undefined,
|
|
1669
1334
|
};
|
|
1670
1335
|
};
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
.filter(
|
|
1674
|
-
.map(
|
|
1336
|
+
const deserializeAws_json1_1idList = (output, context) => {
|
|
1337
|
+
const retVal = (output || [])
|
|
1338
|
+
.filter((e) => e != null)
|
|
1339
|
+
.map((entry) => {
|
|
1675
1340
|
if (entry === null) {
|
|
1676
1341
|
return null;
|
|
1677
1342
|
}
|
|
@@ -1679,33 +1344,33 @@ var deserializeAws_json1_1idList = function (output, context) {
|
|
|
1679
1344
|
});
|
|
1680
1345
|
return retVal;
|
|
1681
1346
|
};
|
|
1682
|
-
|
|
1347
|
+
const deserializeAws_json1_1InternalServiceError = (output, context) => {
|
|
1683
1348
|
return {
|
|
1684
1349
|
message: __expectString(output.message),
|
|
1685
1350
|
};
|
|
1686
1351
|
};
|
|
1687
|
-
|
|
1352
|
+
const deserializeAws_json1_1InvalidRequestException = (output, context) => {
|
|
1688
1353
|
return {
|
|
1689
1354
|
message: __expectString(output.message),
|
|
1690
1355
|
};
|
|
1691
1356
|
};
|
|
1692
|
-
|
|
1357
|
+
const deserializeAws_json1_1ListPipelinesOutput = (output, context) => {
|
|
1693
1358
|
return {
|
|
1694
1359
|
hasMoreResults: __expectBoolean(output.hasMoreResults),
|
|
1695
1360
|
marker: __expectString(output.marker),
|
|
1696
1361
|
pipelineIdList: output.pipelineIdList != null ? deserializeAws_json1_1pipelineList(output.pipelineIdList, context) : undefined,
|
|
1697
1362
|
};
|
|
1698
1363
|
};
|
|
1699
|
-
|
|
1364
|
+
const deserializeAws_json1_1ParameterAttribute = (output, context) => {
|
|
1700
1365
|
return {
|
|
1701
1366
|
key: __expectString(output.key),
|
|
1702
1367
|
stringValue: __expectString(output.stringValue),
|
|
1703
1368
|
};
|
|
1704
1369
|
};
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
.filter(
|
|
1708
|
-
.map(
|
|
1370
|
+
const deserializeAws_json1_1ParameterAttributeList = (output, context) => {
|
|
1371
|
+
const retVal = (output || [])
|
|
1372
|
+
.filter((e) => e != null)
|
|
1373
|
+
.map((entry) => {
|
|
1709
1374
|
if (entry === null) {
|
|
1710
1375
|
return null;
|
|
1711
1376
|
}
|
|
@@ -1713,16 +1378,16 @@ var deserializeAws_json1_1ParameterAttributeList = function (output, context) {
|
|
|
1713
1378
|
});
|
|
1714
1379
|
return retVal;
|
|
1715
1380
|
};
|
|
1716
|
-
|
|
1381
|
+
const deserializeAws_json1_1ParameterObject = (output, context) => {
|
|
1717
1382
|
return {
|
|
1718
1383
|
attributes: output.attributes != null ? deserializeAws_json1_1ParameterAttributeList(output.attributes, context) : undefined,
|
|
1719
1384
|
id: __expectString(output.id),
|
|
1720
1385
|
};
|
|
1721
1386
|
};
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
.filter(
|
|
1725
|
-
.map(
|
|
1387
|
+
const deserializeAws_json1_1ParameterObjectList = (output, context) => {
|
|
1388
|
+
const retVal = (output || [])
|
|
1389
|
+
.filter((e) => e != null)
|
|
1390
|
+
.map((entry) => {
|
|
1726
1391
|
if (entry === null) {
|
|
1727
1392
|
return null;
|
|
1728
1393
|
}
|
|
@@ -1730,16 +1395,16 @@ var deserializeAws_json1_1ParameterObjectList = function (output, context) {
|
|
|
1730
1395
|
});
|
|
1731
1396
|
return retVal;
|
|
1732
1397
|
};
|
|
1733
|
-
|
|
1398
|
+
const deserializeAws_json1_1ParameterValue = (output, context) => {
|
|
1734
1399
|
return {
|
|
1735
1400
|
id: __expectString(output.id),
|
|
1736
1401
|
stringValue: __expectString(output.stringValue),
|
|
1737
1402
|
};
|
|
1738
1403
|
};
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
.filter(
|
|
1742
|
-
.map(
|
|
1404
|
+
const deserializeAws_json1_1ParameterValueList = (output, context) => {
|
|
1405
|
+
const retVal = (output || [])
|
|
1406
|
+
.filter((e) => e != null)
|
|
1407
|
+
.map((entry) => {
|
|
1743
1408
|
if (entry === null) {
|
|
1744
1409
|
return null;
|
|
1745
1410
|
}
|
|
@@ -1747,12 +1412,12 @@ var deserializeAws_json1_1ParameterValueList = function (output, context) {
|
|
|
1747
1412
|
});
|
|
1748
1413
|
return retVal;
|
|
1749
1414
|
};
|
|
1750
|
-
|
|
1415
|
+
const deserializeAws_json1_1PipelineDeletedException = (output, context) => {
|
|
1751
1416
|
return {
|
|
1752
1417
|
message: __expectString(output.message),
|
|
1753
1418
|
};
|
|
1754
1419
|
};
|
|
1755
|
-
|
|
1420
|
+
const deserializeAws_json1_1PipelineDescription = (output, context) => {
|
|
1756
1421
|
return {
|
|
1757
1422
|
description: __expectString(output.description),
|
|
1758
1423
|
fields: output.fields != null ? deserializeAws_json1_1fieldList(output.fields, context) : undefined,
|
|
@@ -1761,10 +1426,10 @@ var deserializeAws_json1_1PipelineDescription = function (output, context) {
|
|
|
1761
1426
|
tags: output.tags != null ? deserializeAws_json1_1tagList(output.tags, context) : undefined,
|
|
1762
1427
|
};
|
|
1763
1428
|
};
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
.filter(
|
|
1767
|
-
.map(
|
|
1429
|
+
const deserializeAws_json1_1PipelineDescriptionList = (output, context) => {
|
|
1430
|
+
const retVal = (output || [])
|
|
1431
|
+
.filter((e) => e != null)
|
|
1432
|
+
.map((entry) => {
|
|
1768
1433
|
if (entry === null) {
|
|
1769
1434
|
return null;
|
|
1770
1435
|
}
|
|
@@ -1772,16 +1437,16 @@ var deserializeAws_json1_1PipelineDescriptionList = function (output, context) {
|
|
|
1772
1437
|
});
|
|
1773
1438
|
return retVal;
|
|
1774
1439
|
};
|
|
1775
|
-
|
|
1440
|
+
const deserializeAws_json1_1PipelineIdName = (output, context) => {
|
|
1776
1441
|
return {
|
|
1777
1442
|
id: __expectString(output.id),
|
|
1778
1443
|
name: __expectString(output.name),
|
|
1779
1444
|
};
|
|
1780
1445
|
};
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
.filter(
|
|
1784
|
-
.map(
|
|
1446
|
+
const deserializeAws_json1_1pipelineList = (output, context) => {
|
|
1447
|
+
const retVal = (output || [])
|
|
1448
|
+
.filter((e) => e != null)
|
|
1449
|
+
.map((entry) => {
|
|
1785
1450
|
if (entry === null) {
|
|
1786
1451
|
return null;
|
|
1787
1452
|
}
|
|
@@ -1789,22 +1454,22 @@ var deserializeAws_json1_1pipelineList = function (output, context) {
|
|
|
1789
1454
|
});
|
|
1790
1455
|
return retVal;
|
|
1791
1456
|
};
|
|
1792
|
-
|
|
1457
|
+
const deserializeAws_json1_1PipelineNotFoundException = (output, context) => {
|
|
1793
1458
|
return {
|
|
1794
1459
|
message: __expectString(output.message),
|
|
1795
1460
|
};
|
|
1796
1461
|
};
|
|
1797
|
-
|
|
1462
|
+
const deserializeAws_json1_1PipelineObject = (output, context) => {
|
|
1798
1463
|
return {
|
|
1799
1464
|
fields: output.fields != null ? deserializeAws_json1_1fieldList(output.fields, context) : undefined,
|
|
1800
1465
|
id: __expectString(output.id),
|
|
1801
1466
|
name: __expectString(output.name),
|
|
1802
1467
|
};
|
|
1803
1468
|
};
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
.filter(
|
|
1807
|
-
.map(
|
|
1469
|
+
const deserializeAws_json1_1PipelineObjectList = (output, context) => {
|
|
1470
|
+
const retVal = (output || [])
|
|
1471
|
+
.filter((e) => e != null)
|
|
1472
|
+
.map((entry) => {
|
|
1808
1473
|
if (entry === null) {
|
|
1809
1474
|
return null;
|
|
1810
1475
|
}
|
|
@@ -1812,22 +1477,23 @@ var deserializeAws_json1_1PipelineObjectList = function (output, context) {
|
|
|
1812
1477
|
});
|
|
1813
1478
|
return retVal;
|
|
1814
1479
|
};
|
|
1815
|
-
|
|
1816
|
-
return Object.entries(output).reduce(
|
|
1817
|
-
var _b;
|
|
1818
|
-
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
1480
|
+
const deserializeAws_json1_1PipelineObjectMap = (output, context) => {
|
|
1481
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1819
1482
|
if (value === null) {
|
|
1820
1483
|
return acc;
|
|
1821
1484
|
}
|
|
1822
|
-
return
|
|
1485
|
+
return {
|
|
1486
|
+
...acc,
|
|
1487
|
+
[key]: deserializeAws_json1_1PipelineObject(value, context),
|
|
1488
|
+
};
|
|
1823
1489
|
}, {});
|
|
1824
1490
|
};
|
|
1825
|
-
|
|
1491
|
+
const deserializeAws_json1_1PollForTaskOutput = (output, context) => {
|
|
1826
1492
|
return {
|
|
1827
1493
|
taskObject: output.taskObject != null ? deserializeAws_json1_1TaskObject(output.taskObject, context) : undefined,
|
|
1828
1494
|
};
|
|
1829
1495
|
};
|
|
1830
|
-
|
|
1496
|
+
const deserializeAws_json1_1PutPipelineDefinitionOutput = (output, context) => {
|
|
1831
1497
|
return {
|
|
1832
1498
|
errored: __expectBoolean(output.errored),
|
|
1833
1499
|
validationErrors: output.validationErrors != null
|
|
@@ -1838,39 +1504,39 @@ var deserializeAws_json1_1PutPipelineDefinitionOutput = function (output, contex
|
|
|
1838
1504
|
: undefined,
|
|
1839
1505
|
};
|
|
1840
1506
|
};
|
|
1841
|
-
|
|
1507
|
+
const deserializeAws_json1_1QueryObjectsOutput = (output, context) => {
|
|
1842
1508
|
return {
|
|
1843
1509
|
hasMoreResults: __expectBoolean(output.hasMoreResults),
|
|
1844
1510
|
ids: output.ids != null ? deserializeAws_json1_1idList(output.ids, context) : undefined,
|
|
1845
1511
|
marker: __expectString(output.marker),
|
|
1846
1512
|
};
|
|
1847
1513
|
};
|
|
1848
|
-
|
|
1514
|
+
const deserializeAws_json1_1RemoveTagsOutput = (output, context) => {
|
|
1849
1515
|
return {};
|
|
1850
1516
|
};
|
|
1851
|
-
|
|
1517
|
+
const deserializeAws_json1_1ReportTaskProgressOutput = (output, context) => {
|
|
1852
1518
|
return {
|
|
1853
1519
|
canceled: __expectBoolean(output.canceled),
|
|
1854
1520
|
};
|
|
1855
1521
|
};
|
|
1856
|
-
|
|
1522
|
+
const deserializeAws_json1_1ReportTaskRunnerHeartbeatOutput = (output, context) => {
|
|
1857
1523
|
return {
|
|
1858
1524
|
terminate: __expectBoolean(output.terminate),
|
|
1859
1525
|
};
|
|
1860
1526
|
};
|
|
1861
|
-
|
|
1527
|
+
const deserializeAws_json1_1SetTaskStatusOutput = (output, context) => {
|
|
1862
1528
|
return {};
|
|
1863
1529
|
};
|
|
1864
|
-
|
|
1530
|
+
const deserializeAws_json1_1Tag = (output, context) => {
|
|
1865
1531
|
return {
|
|
1866
1532
|
key: __expectString(output.key),
|
|
1867
1533
|
value: __expectString(output.value),
|
|
1868
1534
|
};
|
|
1869
1535
|
};
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
.filter(
|
|
1873
|
-
.map(
|
|
1536
|
+
const deserializeAws_json1_1tagList = (output, context) => {
|
|
1537
|
+
const retVal = (output || [])
|
|
1538
|
+
.filter((e) => e != null)
|
|
1539
|
+
.map((entry) => {
|
|
1874
1540
|
if (entry === null) {
|
|
1875
1541
|
return null;
|
|
1876
1542
|
}
|
|
@@ -1878,12 +1544,12 @@ var deserializeAws_json1_1tagList = function (output, context) {
|
|
|
1878
1544
|
});
|
|
1879
1545
|
return retVal;
|
|
1880
1546
|
};
|
|
1881
|
-
|
|
1547
|
+
const deserializeAws_json1_1TaskNotFoundException = (output, context) => {
|
|
1882
1548
|
return {
|
|
1883
1549
|
message: __expectString(output.message),
|
|
1884
1550
|
};
|
|
1885
1551
|
};
|
|
1886
|
-
|
|
1552
|
+
const deserializeAws_json1_1TaskObject = (output, context) => {
|
|
1887
1553
|
return {
|
|
1888
1554
|
attemptId: __expectString(output.attemptId),
|
|
1889
1555
|
objects: output.objects != null ? deserializeAws_json1_1PipelineObjectMap(output.objects, context) : undefined,
|
|
@@ -1891,7 +1557,7 @@ var deserializeAws_json1_1TaskObject = function (output, context) {
|
|
|
1891
1557
|
taskId: __expectString(output.taskId),
|
|
1892
1558
|
};
|
|
1893
1559
|
};
|
|
1894
|
-
|
|
1560
|
+
const deserializeAws_json1_1ValidatePipelineDefinitionOutput = (output, context) => {
|
|
1895
1561
|
return {
|
|
1896
1562
|
errored: __expectBoolean(output.errored),
|
|
1897
1563
|
validationErrors: output.validationErrors != null
|
|
@@ -1902,16 +1568,16 @@ var deserializeAws_json1_1ValidatePipelineDefinitionOutput = function (output, c
|
|
|
1902
1568
|
: undefined,
|
|
1903
1569
|
};
|
|
1904
1570
|
};
|
|
1905
|
-
|
|
1571
|
+
const deserializeAws_json1_1ValidationError = (output, context) => {
|
|
1906
1572
|
return {
|
|
1907
1573
|
errors: output.errors != null ? deserializeAws_json1_1validationMessages(output.errors, context) : undefined,
|
|
1908
1574
|
id: __expectString(output.id),
|
|
1909
1575
|
};
|
|
1910
1576
|
};
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
.filter(
|
|
1914
|
-
.map(
|
|
1577
|
+
const deserializeAws_json1_1ValidationErrors = (output, context) => {
|
|
1578
|
+
const retVal = (output || [])
|
|
1579
|
+
.filter((e) => e != null)
|
|
1580
|
+
.map((entry) => {
|
|
1915
1581
|
if (entry === null) {
|
|
1916
1582
|
return null;
|
|
1917
1583
|
}
|
|
@@ -1919,10 +1585,10 @@ var deserializeAws_json1_1ValidationErrors = function (output, context) {
|
|
|
1919
1585
|
});
|
|
1920
1586
|
return retVal;
|
|
1921
1587
|
};
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
.filter(
|
|
1925
|
-
.map(
|
|
1588
|
+
const deserializeAws_json1_1validationMessages = (output, context) => {
|
|
1589
|
+
const retVal = (output || [])
|
|
1590
|
+
.filter((e) => e != null)
|
|
1591
|
+
.map((entry) => {
|
|
1926
1592
|
if (entry === null) {
|
|
1927
1593
|
return null;
|
|
1928
1594
|
}
|
|
@@ -1930,16 +1596,16 @@ var deserializeAws_json1_1validationMessages = function (output, context) {
|
|
|
1930
1596
|
});
|
|
1931
1597
|
return retVal;
|
|
1932
1598
|
};
|
|
1933
|
-
|
|
1599
|
+
const deserializeAws_json1_1ValidationWarning = (output, context) => {
|
|
1934
1600
|
return {
|
|
1935
1601
|
id: __expectString(output.id),
|
|
1936
1602
|
warnings: output.warnings != null ? deserializeAws_json1_1validationMessages(output.warnings, context) : undefined,
|
|
1937
1603
|
};
|
|
1938
1604
|
};
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
.filter(
|
|
1942
|
-
.map(
|
|
1605
|
+
const deserializeAws_json1_1ValidationWarnings = (output, context) => {
|
|
1606
|
+
const retVal = (output || [])
|
|
1607
|
+
.filter((e) => e != null)
|
|
1608
|
+
.map((entry) => {
|
|
1943
1609
|
if (entry === null) {
|
|
1944
1610
|
return null;
|
|
1945
1611
|
}
|
|
@@ -1947,62 +1613,52 @@ var deserializeAws_json1_1ValidationWarnings = function (output, context) {
|
|
|
1947
1613
|
});
|
|
1948
1614
|
return retVal;
|
|
1949
1615
|
};
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
});
|
|
1958
|
-
};
|
|
1959
|
-
var collectBody = function (streamBody, context) {
|
|
1960
|
-
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
1616
|
+
const deserializeMetadata = (output) => ({
|
|
1617
|
+
httpStatusCode: output.statusCode,
|
|
1618
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"],
|
|
1619
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1620
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
1621
|
+
});
|
|
1622
|
+
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
1961
1623
|
if (streamBody instanceof Uint8Array) {
|
|
1962
1624
|
return Promise.resolve(streamBody);
|
|
1963
1625
|
}
|
|
1964
1626
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
1965
1627
|
};
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
};
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
if (resolvedHostname !== undefined) {
|
|
1985
|
-
contents.hostname = resolvedHostname;
|
|
1986
|
-
}
|
|
1987
|
-
if (body !== undefined) {
|
|
1988
|
-
contents.body = body;
|
|
1989
|
-
}
|
|
1990
|
-
return [2, new __HttpRequest(contents)];
|
|
1991
|
-
}
|
|
1992
|
-
});
|
|
1993
|
-
}); };
|
|
1994
|
-
var parseBody = function (streamBody, context) {
|
|
1995
|
-
return collectBodyString(streamBody, context).then(function (encoded) {
|
|
1996
|
-
if (encoded.length) {
|
|
1997
|
-
return JSON.parse(encoded);
|
|
1998
|
-
}
|
|
1999
|
-
return {};
|
|
2000
|
-
});
|
|
1628
|
+
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1629
|
+
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1630
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1631
|
+
const contents = {
|
|
1632
|
+
protocol,
|
|
1633
|
+
hostname,
|
|
1634
|
+
port,
|
|
1635
|
+
method: "POST",
|
|
1636
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
1637
|
+
headers,
|
|
1638
|
+
};
|
|
1639
|
+
if (resolvedHostname !== undefined) {
|
|
1640
|
+
contents.hostname = resolvedHostname;
|
|
1641
|
+
}
|
|
1642
|
+
if (body !== undefined) {
|
|
1643
|
+
contents.body = body;
|
|
1644
|
+
}
|
|
1645
|
+
return new __HttpRequest(contents);
|
|
2001
1646
|
};
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
1647
|
+
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1648
|
+
if (encoded.length) {
|
|
1649
|
+
return JSON.parse(encoded);
|
|
1650
|
+
}
|
|
1651
|
+
return {};
|
|
1652
|
+
});
|
|
1653
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
1654
|
+
const value = await parseBody(errorBody, context);
|
|
1655
|
+
value.message = value.message ?? value.Message;
|
|
1656
|
+
return value;
|
|
1657
|
+
};
|
|
1658
|
+
const loadRestJsonErrorCode = (output, data) => {
|
|
1659
|
+
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1660
|
+
const sanitizeErrorCode = (rawValue) => {
|
|
1661
|
+
let cleanValue = rawValue;
|
|
2006
1662
|
if (typeof cleanValue === "number") {
|
|
2007
1663
|
cleanValue = cleanValue.toString();
|
|
2008
1664
|
}
|
|
@@ -2017,7 +1673,7 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
2017
1673
|
}
|
|
2018
1674
|
return cleanValue;
|
|
2019
1675
|
};
|
|
2020
|
-
|
|
1676
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2021
1677
|
if (headerKey !== undefined) {
|
|
2022
1678
|
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2023
1679
|
}
|