@aws-sdk/client-firehose 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 +18 -12
- package/dist-es/Firehose.js +50 -57
- package/dist-es/FirehoseClient.js +22 -28
- package/dist-es/commands/CreateDeliveryStreamCommand.js +21 -28
- package/dist-es/commands/DeleteDeliveryStreamCommand.js +21 -28
- package/dist-es/commands/DescribeDeliveryStreamCommand.js +21 -28
- package/dist-es/commands/ListDeliveryStreamsCommand.js +21 -28
- package/dist-es/commands/ListTagsForDeliveryStreamCommand.js +21 -28
- package/dist-es/commands/PutRecordBatchCommand.js +21 -28
- package/dist-es/commands/PutRecordCommand.js +21 -28
- package/dist-es/commands/StartDeliveryStreamEncryptionCommand.js +21 -28
- package/dist-es/commands/StopDeliveryStreamEncryptionCommand.js +21 -28
- package/dist-es/commands/TagDeliveryStreamCommand.js +21 -28
- package/dist-es/commands/UntagDeliveryStreamCommand.js +21 -28
- package/dist-es/commands/UpdateDestinationCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/FirehoseServiceException.js +5 -10
- package/dist-es/models/models_0.js +403 -199
- package/dist-es/protocols/Aws_json1_1.js +1574 -1509
- 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,1406 +1,1480 @@
|
|
|
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, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { FirehoseServiceException as __BaseException } from "../models/FirehoseServiceException";
|
|
5
4
|
import { ConcurrentModificationException, InvalidArgumentException, InvalidKMSResourceException, LimitExceededException, ResourceInUseException, ResourceNotFoundException, ServiceUnavailableException, } 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
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
return
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
return
|
|
729
|
-
switch (_a.label) {
|
|
730
|
-
case 0:
|
|
731
|
-
if (output.statusCode >= 300) {
|
|
732
|
-
return [2, deserializeAws_json1_1UntagDeliveryStreamCommandError(output, context)];
|
|
733
|
-
}
|
|
734
|
-
return [4, parseBody(output.body, context)];
|
|
735
|
-
case 1:
|
|
736
|
-
data = _a.sent();
|
|
737
|
-
contents = {};
|
|
738
|
-
contents = deserializeAws_json1_1UntagDeliveryStreamOutput(data, context);
|
|
739
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
740
|
-
return [2, Promise.resolve(response)];
|
|
741
|
-
}
|
|
742
|
-
});
|
|
743
|
-
}); };
|
|
744
|
-
var deserializeAws_json1_1UntagDeliveryStreamCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
745
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
746
|
-
var _c;
|
|
747
|
-
return __generator(this, function (_d) {
|
|
748
|
-
switch (_d.label) {
|
|
749
|
-
case 0:
|
|
750
|
-
_a = [__assign({}, output)];
|
|
751
|
-
_c = {};
|
|
752
|
-
return [4, parseBody(output.body, context)];
|
|
753
|
-
case 1:
|
|
754
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
755
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
756
|
-
_b = errorCode;
|
|
757
|
-
switch (_b) {
|
|
758
|
-
case "InvalidArgumentException": return [3, 2];
|
|
759
|
-
case "com.amazonaws.firehose#InvalidArgumentException": return [3, 2];
|
|
760
|
-
case "LimitExceededException": return [3, 4];
|
|
761
|
-
case "com.amazonaws.firehose#LimitExceededException": return [3, 4];
|
|
762
|
-
case "ResourceInUseException": return [3, 6];
|
|
763
|
-
case "com.amazonaws.firehose#ResourceInUseException": return [3, 6];
|
|
764
|
-
case "ResourceNotFoundException": return [3, 8];
|
|
765
|
-
case "com.amazonaws.firehose#ResourceNotFoundException": return [3, 8];
|
|
766
|
-
}
|
|
767
|
-
return [3, 10];
|
|
768
|
-
case 2: return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
769
|
-
case 3: throw _d.sent();
|
|
770
|
-
case 4: return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
771
|
-
case 5: throw _d.sent();
|
|
772
|
-
case 6: return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
773
|
-
case 7: throw _d.sent();
|
|
774
|
-
case 8: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
775
|
-
case 9: throw _d.sent();
|
|
776
|
-
case 10:
|
|
777
|
-
parsedBody = parsedOutput.body;
|
|
778
|
-
throwDefaultError({
|
|
779
|
-
output: output,
|
|
780
|
-
parsedBody: parsedBody,
|
|
781
|
-
exceptionCtor: __BaseException,
|
|
782
|
-
errorCode: errorCode,
|
|
783
|
-
});
|
|
784
|
-
_d.label = 11;
|
|
785
|
-
case 11: return [2];
|
|
786
|
-
}
|
|
787
|
-
});
|
|
788
|
-
}); };
|
|
789
|
-
export var deserializeAws_json1_1UpdateDestinationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
790
|
-
var data, contents, response;
|
|
791
|
-
return __generator(this, function (_a) {
|
|
792
|
-
switch (_a.label) {
|
|
793
|
-
case 0:
|
|
794
|
-
if (output.statusCode >= 300) {
|
|
795
|
-
return [2, deserializeAws_json1_1UpdateDestinationCommandError(output, context)];
|
|
796
|
-
}
|
|
797
|
-
return [4, parseBody(output.body, context)];
|
|
798
|
-
case 1:
|
|
799
|
-
data = _a.sent();
|
|
800
|
-
contents = {};
|
|
801
|
-
contents = deserializeAws_json1_1UpdateDestinationOutput(data, context);
|
|
802
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
803
|
-
return [2, Promise.resolve(response)];
|
|
804
|
-
}
|
|
805
|
-
});
|
|
806
|
-
}); };
|
|
807
|
-
var deserializeAws_json1_1UpdateDestinationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
808
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
809
|
-
var _c;
|
|
810
|
-
return __generator(this, function (_d) {
|
|
811
|
-
switch (_d.label) {
|
|
812
|
-
case 0:
|
|
813
|
-
_a = [__assign({}, output)];
|
|
814
|
-
_c = {};
|
|
815
|
-
return [4, parseBody(output.body, context)];
|
|
816
|
-
case 1:
|
|
817
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
818
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
819
|
-
_b = errorCode;
|
|
820
|
-
switch (_b) {
|
|
821
|
-
case "ConcurrentModificationException": return [3, 2];
|
|
822
|
-
case "com.amazonaws.firehose#ConcurrentModificationException": return [3, 2];
|
|
823
|
-
case "InvalidArgumentException": return [3, 4];
|
|
824
|
-
case "com.amazonaws.firehose#InvalidArgumentException": return [3, 4];
|
|
825
|
-
case "ResourceInUseException": return [3, 6];
|
|
826
|
-
case "com.amazonaws.firehose#ResourceInUseException": return [3, 6];
|
|
827
|
-
case "ResourceNotFoundException": return [3, 8];
|
|
828
|
-
case "com.amazonaws.firehose#ResourceNotFoundException": return [3, 8];
|
|
829
|
-
}
|
|
830
|
-
return [3, 10];
|
|
831
|
-
case 2: return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
832
|
-
case 3: throw _d.sent();
|
|
833
|
-
case 4: return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
834
|
-
case 5: throw _d.sent();
|
|
835
|
-
case 6: return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
836
|
-
case 7: throw _d.sent();
|
|
837
|
-
case 8: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
838
|
-
case 9: throw _d.sent();
|
|
839
|
-
case 10:
|
|
840
|
-
parsedBody = parsedOutput.body;
|
|
841
|
-
throwDefaultError({
|
|
842
|
-
output: output,
|
|
843
|
-
parsedBody: parsedBody,
|
|
844
|
-
exceptionCtor: __BaseException,
|
|
845
|
-
errorCode: errorCode,
|
|
846
|
-
});
|
|
847
|
-
_d.label = 11;
|
|
848
|
-
case 11: return [2];
|
|
849
|
-
}
|
|
850
|
-
});
|
|
851
|
-
}); };
|
|
852
|
-
var deserializeAws_json1_1ConcurrentModificationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
853
|
-
var body, deserialized, exception;
|
|
854
|
-
return __generator(this, function (_a) {
|
|
855
|
-
body = parsedOutput.body;
|
|
856
|
-
deserialized = deserializeAws_json1_1ConcurrentModificationException(body, context);
|
|
857
|
-
exception = new ConcurrentModificationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
858
|
-
return [2, __decorateServiceException(exception, body)];
|
|
859
|
-
});
|
|
860
|
-
}); };
|
|
861
|
-
var deserializeAws_json1_1InvalidArgumentExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
862
|
-
var body, deserialized, exception;
|
|
863
|
-
return __generator(this, function (_a) {
|
|
864
|
-
body = parsedOutput.body;
|
|
865
|
-
deserialized = deserializeAws_json1_1InvalidArgumentException(body, context);
|
|
866
|
-
exception = new InvalidArgumentException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
867
|
-
return [2, __decorateServiceException(exception, body)];
|
|
868
|
-
});
|
|
869
|
-
}); };
|
|
870
|
-
var deserializeAws_json1_1InvalidKMSResourceExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
871
|
-
var body, deserialized, exception;
|
|
872
|
-
return __generator(this, function (_a) {
|
|
873
|
-
body = parsedOutput.body;
|
|
874
|
-
deserialized = deserializeAws_json1_1InvalidKMSResourceException(body, context);
|
|
875
|
-
exception = new InvalidKMSResourceException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
876
|
-
return [2, __decorateServiceException(exception, body)];
|
|
877
|
-
});
|
|
878
|
-
}); };
|
|
879
|
-
var deserializeAws_json1_1LimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
880
|
-
var body, deserialized, exception;
|
|
881
|
-
return __generator(this, function (_a) {
|
|
882
|
-
body = parsedOutput.body;
|
|
883
|
-
deserialized = deserializeAws_json1_1LimitExceededException(body, context);
|
|
884
|
-
exception = new LimitExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
885
|
-
return [2, __decorateServiceException(exception, body)];
|
|
886
|
-
});
|
|
887
|
-
}); };
|
|
888
|
-
var deserializeAws_json1_1ResourceInUseExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
889
|
-
var body, deserialized, exception;
|
|
890
|
-
return __generator(this, function (_a) {
|
|
891
|
-
body = parsedOutput.body;
|
|
892
|
-
deserialized = deserializeAws_json1_1ResourceInUseException(body, context);
|
|
893
|
-
exception = new ResourceInUseException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
894
|
-
return [2, __decorateServiceException(exception, body)];
|
|
895
|
-
});
|
|
896
|
-
}); };
|
|
897
|
-
var deserializeAws_json1_1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
898
|
-
var body, deserialized, exception;
|
|
899
|
-
return __generator(this, function (_a) {
|
|
900
|
-
body = parsedOutput.body;
|
|
901
|
-
deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context);
|
|
902
|
-
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
903
|
-
return [2, __decorateServiceException(exception, body)];
|
|
904
|
-
});
|
|
905
|
-
}); };
|
|
906
|
-
var deserializeAws_json1_1ServiceUnavailableExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
907
|
-
var body, deserialized, exception;
|
|
908
|
-
return __generator(this, function (_a) {
|
|
909
|
-
body = parsedOutput.body;
|
|
910
|
-
deserialized = deserializeAws_json1_1ServiceUnavailableException(body, context);
|
|
911
|
-
exception = new ServiceUnavailableException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
912
|
-
return [2, __decorateServiceException(exception, body)];
|
|
913
|
-
});
|
|
914
|
-
}); };
|
|
915
|
-
var serializeAws_json1_1AmazonopensearchserviceBufferingHints = function (input, context) {
|
|
916
|
-
return __assign(__assign({}, (input.IntervalInSeconds != null && { IntervalInSeconds: input.IntervalInSeconds })), (input.SizeInMBs != null && { SizeInMBs: input.SizeInMBs }));
|
|
917
|
-
};
|
|
918
|
-
var serializeAws_json1_1AmazonopensearchserviceDestinationConfiguration = function (input, context) {
|
|
919
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BufferingHints != null && {
|
|
920
|
-
BufferingHints: serializeAws_json1_1AmazonopensearchserviceBufferingHints(input.BufferingHints, context),
|
|
921
|
-
})), (input.CloudWatchLoggingOptions != null && {
|
|
922
|
-
CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
|
|
923
|
-
})), (input.ClusterEndpoint != null && { ClusterEndpoint: input.ClusterEndpoint })), (input.DomainARN != null && { DomainARN: input.DomainARN })), (input.IndexName != null && { IndexName: input.IndexName })), (input.IndexRotationPeriod != null && { IndexRotationPeriod: input.IndexRotationPeriod })), (input.ProcessingConfiguration != null && {
|
|
924
|
-
ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context),
|
|
925
|
-
})), (input.RetryOptions != null && {
|
|
926
|
-
RetryOptions: serializeAws_json1_1AmazonopensearchserviceRetryOptions(input.RetryOptions, context),
|
|
927
|
-
})), (input.RoleARN != null && { RoleARN: input.RoleARN })), (input.S3BackupMode != null && { S3BackupMode: input.S3BackupMode })), (input.S3Configuration != null && {
|
|
928
|
-
S3Configuration: serializeAws_json1_1S3DestinationConfiguration(input.S3Configuration, context),
|
|
929
|
-
})), (input.TypeName != null && { TypeName: input.TypeName })), (input.VpcConfiguration != null && {
|
|
930
|
-
VpcConfiguration: serializeAws_json1_1VpcConfiguration(input.VpcConfiguration, context),
|
|
931
|
-
}));
|
|
932
|
-
};
|
|
933
|
-
var serializeAws_json1_1AmazonopensearchserviceDestinationUpdate = function (input, context) {
|
|
934
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BufferingHints != null && {
|
|
935
|
-
BufferingHints: serializeAws_json1_1AmazonopensearchserviceBufferingHints(input.BufferingHints, context),
|
|
936
|
-
})), (input.CloudWatchLoggingOptions != null && {
|
|
937
|
-
CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
|
|
938
|
-
})), (input.ClusterEndpoint != null && { ClusterEndpoint: input.ClusterEndpoint })), (input.DomainARN != null && { DomainARN: input.DomainARN })), (input.IndexName != null && { IndexName: input.IndexName })), (input.IndexRotationPeriod != null && { IndexRotationPeriod: input.IndexRotationPeriod })), (input.ProcessingConfiguration != null && {
|
|
939
|
-
ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context),
|
|
940
|
-
})), (input.RetryOptions != null && {
|
|
941
|
-
RetryOptions: serializeAws_json1_1AmazonopensearchserviceRetryOptions(input.RetryOptions, context),
|
|
942
|
-
})), (input.RoleARN != null && { RoleARN: input.RoleARN })), (input.S3Update != null && { S3Update: serializeAws_json1_1S3DestinationUpdate(input.S3Update, context) })), (input.TypeName != null && { TypeName: input.TypeName }));
|
|
943
|
-
};
|
|
944
|
-
var serializeAws_json1_1AmazonopensearchserviceRetryOptions = function (input, context) {
|
|
945
|
-
return __assign({}, (input.DurationInSeconds != null && { DurationInSeconds: input.DurationInSeconds }));
|
|
946
|
-
};
|
|
947
|
-
var serializeAws_json1_1BufferingHints = function (input, context) {
|
|
948
|
-
return __assign(__assign({}, (input.IntervalInSeconds != null && { IntervalInSeconds: input.IntervalInSeconds })), (input.SizeInMBs != null && { SizeInMBs: input.SizeInMBs }));
|
|
949
|
-
};
|
|
950
|
-
var serializeAws_json1_1CloudWatchLoggingOptions = function (input, context) {
|
|
951
|
-
return __assign(__assign(__assign({}, (input.Enabled != null && { Enabled: input.Enabled })), (input.LogGroupName != null && { LogGroupName: input.LogGroupName })), (input.LogStreamName != null && { LogStreamName: input.LogStreamName }));
|
|
952
|
-
};
|
|
953
|
-
var serializeAws_json1_1ColumnToJsonKeyMappings = function (input, context) {
|
|
954
|
-
return Object.entries(input).reduce(function (acc, _a) {
|
|
955
|
-
var _b;
|
|
956
|
-
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
5
|
+
export const serializeAws_json1_1CreateDeliveryStreamCommand = async (input, context) => {
|
|
6
|
+
const headers = {
|
|
7
|
+
"content-type": "application/x-amz-json-1.1",
|
|
8
|
+
"x-amz-target": "Firehose_20150804.CreateDeliveryStream",
|
|
9
|
+
};
|
|
10
|
+
let body;
|
|
11
|
+
body = JSON.stringify(serializeAws_json1_1CreateDeliveryStreamInput(input, context));
|
|
12
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
13
|
+
};
|
|
14
|
+
export const serializeAws_json1_1DeleteDeliveryStreamCommand = async (input, context) => {
|
|
15
|
+
const headers = {
|
|
16
|
+
"content-type": "application/x-amz-json-1.1",
|
|
17
|
+
"x-amz-target": "Firehose_20150804.DeleteDeliveryStream",
|
|
18
|
+
};
|
|
19
|
+
let body;
|
|
20
|
+
body = JSON.stringify(serializeAws_json1_1DeleteDeliveryStreamInput(input, context));
|
|
21
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
|
+
};
|
|
23
|
+
export const serializeAws_json1_1DescribeDeliveryStreamCommand = async (input, context) => {
|
|
24
|
+
const headers = {
|
|
25
|
+
"content-type": "application/x-amz-json-1.1",
|
|
26
|
+
"x-amz-target": "Firehose_20150804.DescribeDeliveryStream",
|
|
27
|
+
};
|
|
28
|
+
let body;
|
|
29
|
+
body = JSON.stringify(serializeAws_json1_1DescribeDeliveryStreamInput(input, context));
|
|
30
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
31
|
+
};
|
|
32
|
+
export const serializeAws_json1_1ListDeliveryStreamsCommand = async (input, context) => {
|
|
33
|
+
const headers = {
|
|
34
|
+
"content-type": "application/x-amz-json-1.1",
|
|
35
|
+
"x-amz-target": "Firehose_20150804.ListDeliveryStreams",
|
|
36
|
+
};
|
|
37
|
+
let body;
|
|
38
|
+
body = JSON.stringify(serializeAws_json1_1ListDeliveryStreamsInput(input, context));
|
|
39
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
40
|
+
};
|
|
41
|
+
export const serializeAws_json1_1ListTagsForDeliveryStreamCommand = async (input, context) => {
|
|
42
|
+
const headers = {
|
|
43
|
+
"content-type": "application/x-amz-json-1.1",
|
|
44
|
+
"x-amz-target": "Firehose_20150804.ListTagsForDeliveryStream",
|
|
45
|
+
};
|
|
46
|
+
let body;
|
|
47
|
+
body = JSON.stringify(serializeAws_json1_1ListTagsForDeliveryStreamInput(input, context));
|
|
48
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
49
|
+
};
|
|
50
|
+
export const serializeAws_json1_1PutRecordCommand = async (input, context) => {
|
|
51
|
+
const headers = {
|
|
52
|
+
"content-type": "application/x-amz-json-1.1",
|
|
53
|
+
"x-amz-target": "Firehose_20150804.PutRecord",
|
|
54
|
+
};
|
|
55
|
+
let body;
|
|
56
|
+
body = JSON.stringify(serializeAws_json1_1PutRecordInput(input, context));
|
|
57
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
|
+
};
|
|
59
|
+
export const serializeAws_json1_1PutRecordBatchCommand = async (input, context) => {
|
|
60
|
+
const headers = {
|
|
61
|
+
"content-type": "application/x-amz-json-1.1",
|
|
62
|
+
"x-amz-target": "Firehose_20150804.PutRecordBatch",
|
|
63
|
+
};
|
|
64
|
+
let body;
|
|
65
|
+
body = JSON.stringify(serializeAws_json1_1PutRecordBatchInput(input, context));
|
|
66
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
|
+
};
|
|
68
|
+
export const serializeAws_json1_1StartDeliveryStreamEncryptionCommand = async (input, context) => {
|
|
69
|
+
const headers = {
|
|
70
|
+
"content-type": "application/x-amz-json-1.1",
|
|
71
|
+
"x-amz-target": "Firehose_20150804.StartDeliveryStreamEncryption",
|
|
72
|
+
};
|
|
73
|
+
let body;
|
|
74
|
+
body = JSON.stringify(serializeAws_json1_1StartDeliveryStreamEncryptionInput(input, context));
|
|
75
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
|
+
};
|
|
77
|
+
export const serializeAws_json1_1StopDeliveryStreamEncryptionCommand = async (input, context) => {
|
|
78
|
+
const headers = {
|
|
79
|
+
"content-type": "application/x-amz-json-1.1",
|
|
80
|
+
"x-amz-target": "Firehose_20150804.StopDeliveryStreamEncryption",
|
|
81
|
+
};
|
|
82
|
+
let body;
|
|
83
|
+
body = JSON.stringify(serializeAws_json1_1StopDeliveryStreamEncryptionInput(input, context));
|
|
84
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
85
|
+
};
|
|
86
|
+
export const serializeAws_json1_1TagDeliveryStreamCommand = async (input, context) => {
|
|
87
|
+
const headers = {
|
|
88
|
+
"content-type": "application/x-amz-json-1.1",
|
|
89
|
+
"x-amz-target": "Firehose_20150804.TagDeliveryStream",
|
|
90
|
+
};
|
|
91
|
+
let body;
|
|
92
|
+
body = JSON.stringify(serializeAws_json1_1TagDeliveryStreamInput(input, context));
|
|
93
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
94
|
+
};
|
|
95
|
+
export const serializeAws_json1_1UntagDeliveryStreamCommand = async (input, context) => {
|
|
96
|
+
const headers = {
|
|
97
|
+
"content-type": "application/x-amz-json-1.1",
|
|
98
|
+
"x-amz-target": "Firehose_20150804.UntagDeliveryStream",
|
|
99
|
+
};
|
|
100
|
+
let body;
|
|
101
|
+
body = JSON.stringify(serializeAws_json1_1UntagDeliveryStreamInput(input, context));
|
|
102
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
103
|
+
};
|
|
104
|
+
export const serializeAws_json1_1UpdateDestinationCommand = async (input, context) => {
|
|
105
|
+
const headers = {
|
|
106
|
+
"content-type": "application/x-amz-json-1.1",
|
|
107
|
+
"x-amz-target": "Firehose_20150804.UpdateDestination",
|
|
108
|
+
};
|
|
109
|
+
let body;
|
|
110
|
+
body = JSON.stringify(serializeAws_json1_1UpdateDestinationInput(input, context));
|
|
111
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
112
|
+
};
|
|
113
|
+
export const deserializeAws_json1_1CreateDeliveryStreamCommand = async (output, context) => {
|
|
114
|
+
if (output.statusCode >= 300) {
|
|
115
|
+
return deserializeAws_json1_1CreateDeliveryStreamCommandError(output, context);
|
|
116
|
+
}
|
|
117
|
+
const data = await parseBody(output.body, context);
|
|
118
|
+
let contents = {};
|
|
119
|
+
contents = deserializeAws_json1_1CreateDeliveryStreamOutput(data, context);
|
|
120
|
+
const response = {
|
|
121
|
+
$metadata: deserializeMetadata(output),
|
|
122
|
+
...contents,
|
|
123
|
+
};
|
|
124
|
+
return Promise.resolve(response);
|
|
125
|
+
};
|
|
126
|
+
const deserializeAws_json1_1CreateDeliveryStreamCommandError = async (output, context) => {
|
|
127
|
+
const parsedOutput = {
|
|
128
|
+
...output,
|
|
129
|
+
body: await parseErrorBody(output.body, context),
|
|
130
|
+
};
|
|
131
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
132
|
+
switch (errorCode) {
|
|
133
|
+
case "InvalidArgumentException":
|
|
134
|
+
case "com.amazonaws.firehose#InvalidArgumentException":
|
|
135
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
136
|
+
case "InvalidKMSResourceException":
|
|
137
|
+
case "com.amazonaws.firehose#InvalidKMSResourceException":
|
|
138
|
+
throw await deserializeAws_json1_1InvalidKMSResourceExceptionResponse(parsedOutput, context);
|
|
139
|
+
case "LimitExceededException":
|
|
140
|
+
case "com.amazonaws.firehose#LimitExceededException":
|
|
141
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
142
|
+
case "ResourceInUseException":
|
|
143
|
+
case "com.amazonaws.firehose#ResourceInUseException":
|
|
144
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
145
|
+
default:
|
|
146
|
+
const parsedBody = parsedOutput.body;
|
|
147
|
+
throwDefaultError({
|
|
148
|
+
output,
|
|
149
|
+
parsedBody,
|
|
150
|
+
exceptionCtor: __BaseException,
|
|
151
|
+
errorCode,
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
export const deserializeAws_json1_1DeleteDeliveryStreamCommand = async (output, context) => {
|
|
156
|
+
if (output.statusCode >= 300) {
|
|
157
|
+
return deserializeAws_json1_1DeleteDeliveryStreamCommandError(output, context);
|
|
158
|
+
}
|
|
159
|
+
const data = await parseBody(output.body, context);
|
|
160
|
+
let contents = {};
|
|
161
|
+
contents = deserializeAws_json1_1DeleteDeliveryStreamOutput(data, context);
|
|
162
|
+
const response = {
|
|
163
|
+
$metadata: deserializeMetadata(output),
|
|
164
|
+
...contents,
|
|
165
|
+
};
|
|
166
|
+
return Promise.resolve(response);
|
|
167
|
+
};
|
|
168
|
+
const deserializeAws_json1_1DeleteDeliveryStreamCommandError = async (output, context) => {
|
|
169
|
+
const parsedOutput = {
|
|
170
|
+
...output,
|
|
171
|
+
body: await parseErrorBody(output.body, context),
|
|
172
|
+
};
|
|
173
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
174
|
+
switch (errorCode) {
|
|
175
|
+
case "ResourceInUseException":
|
|
176
|
+
case "com.amazonaws.firehose#ResourceInUseException":
|
|
177
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
178
|
+
case "ResourceNotFoundException":
|
|
179
|
+
case "com.amazonaws.firehose#ResourceNotFoundException":
|
|
180
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
181
|
+
default:
|
|
182
|
+
const parsedBody = parsedOutput.body;
|
|
183
|
+
throwDefaultError({
|
|
184
|
+
output,
|
|
185
|
+
parsedBody,
|
|
186
|
+
exceptionCtor: __BaseException,
|
|
187
|
+
errorCode,
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
};
|
|
191
|
+
export const deserializeAws_json1_1DescribeDeliveryStreamCommand = async (output, context) => {
|
|
192
|
+
if (output.statusCode >= 300) {
|
|
193
|
+
return deserializeAws_json1_1DescribeDeliveryStreamCommandError(output, context);
|
|
194
|
+
}
|
|
195
|
+
const data = await parseBody(output.body, context);
|
|
196
|
+
let contents = {};
|
|
197
|
+
contents = deserializeAws_json1_1DescribeDeliveryStreamOutput(data, context);
|
|
198
|
+
const response = {
|
|
199
|
+
$metadata: deserializeMetadata(output),
|
|
200
|
+
...contents,
|
|
201
|
+
};
|
|
202
|
+
return Promise.resolve(response);
|
|
203
|
+
};
|
|
204
|
+
const deserializeAws_json1_1DescribeDeliveryStreamCommandError = async (output, context) => {
|
|
205
|
+
const parsedOutput = {
|
|
206
|
+
...output,
|
|
207
|
+
body: await parseErrorBody(output.body, context),
|
|
208
|
+
};
|
|
209
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
210
|
+
switch (errorCode) {
|
|
211
|
+
case "ResourceNotFoundException":
|
|
212
|
+
case "com.amazonaws.firehose#ResourceNotFoundException":
|
|
213
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
214
|
+
default:
|
|
215
|
+
const parsedBody = parsedOutput.body;
|
|
216
|
+
throwDefaultError({
|
|
217
|
+
output,
|
|
218
|
+
parsedBody,
|
|
219
|
+
exceptionCtor: __BaseException,
|
|
220
|
+
errorCode,
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
};
|
|
224
|
+
export const deserializeAws_json1_1ListDeliveryStreamsCommand = async (output, context) => {
|
|
225
|
+
if (output.statusCode >= 300) {
|
|
226
|
+
return deserializeAws_json1_1ListDeliveryStreamsCommandError(output, context);
|
|
227
|
+
}
|
|
228
|
+
const data = await parseBody(output.body, context);
|
|
229
|
+
let contents = {};
|
|
230
|
+
contents = deserializeAws_json1_1ListDeliveryStreamsOutput(data, context);
|
|
231
|
+
const response = {
|
|
232
|
+
$metadata: deserializeMetadata(output),
|
|
233
|
+
...contents,
|
|
234
|
+
};
|
|
235
|
+
return Promise.resolve(response);
|
|
236
|
+
};
|
|
237
|
+
const deserializeAws_json1_1ListDeliveryStreamsCommandError = async (output, context) => {
|
|
238
|
+
const parsedOutput = {
|
|
239
|
+
...output,
|
|
240
|
+
body: await parseErrorBody(output.body, context),
|
|
241
|
+
};
|
|
242
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
243
|
+
const parsedBody = parsedOutput.body;
|
|
244
|
+
throwDefaultError({
|
|
245
|
+
output,
|
|
246
|
+
parsedBody,
|
|
247
|
+
exceptionCtor: __BaseException,
|
|
248
|
+
errorCode,
|
|
249
|
+
});
|
|
250
|
+
};
|
|
251
|
+
export const deserializeAws_json1_1ListTagsForDeliveryStreamCommand = async (output, context) => {
|
|
252
|
+
if (output.statusCode >= 300) {
|
|
253
|
+
return deserializeAws_json1_1ListTagsForDeliveryStreamCommandError(output, context);
|
|
254
|
+
}
|
|
255
|
+
const data = await parseBody(output.body, context);
|
|
256
|
+
let contents = {};
|
|
257
|
+
contents = deserializeAws_json1_1ListTagsForDeliveryStreamOutput(data, context);
|
|
258
|
+
const response = {
|
|
259
|
+
$metadata: deserializeMetadata(output),
|
|
260
|
+
...contents,
|
|
261
|
+
};
|
|
262
|
+
return Promise.resolve(response);
|
|
263
|
+
};
|
|
264
|
+
const deserializeAws_json1_1ListTagsForDeliveryStreamCommandError = async (output, context) => {
|
|
265
|
+
const parsedOutput = {
|
|
266
|
+
...output,
|
|
267
|
+
body: await parseErrorBody(output.body, context),
|
|
268
|
+
};
|
|
269
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
270
|
+
switch (errorCode) {
|
|
271
|
+
case "InvalidArgumentException":
|
|
272
|
+
case "com.amazonaws.firehose#InvalidArgumentException":
|
|
273
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
274
|
+
case "LimitExceededException":
|
|
275
|
+
case "com.amazonaws.firehose#LimitExceededException":
|
|
276
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
277
|
+
case "ResourceNotFoundException":
|
|
278
|
+
case "com.amazonaws.firehose#ResourceNotFoundException":
|
|
279
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
280
|
+
default:
|
|
281
|
+
const parsedBody = parsedOutput.body;
|
|
282
|
+
throwDefaultError({
|
|
283
|
+
output,
|
|
284
|
+
parsedBody,
|
|
285
|
+
exceptionCtor: __BaseException,
|
|
286
|
+
errorCode,
|
|
287
|
+
});
|
|
288
|
+
}
|
|
289
|
+
};
|
|
290
|
+
export const deserializeAws_json1_1PutRecordCommand = async (output, context) => {
|
|
291
|
+
if (output.statusCode >= 300) {
|
|
292
|
+
return deserializeAws_json1_1PutRecordCommandError(output, context);
|
|
293
|
+
}
|
|
294
|
+
const data = await parseBody(output.body, context);
|
|
295
|
+
let contents = {};
|
|
296
|
+
contents = deserializeAws_json1_1PutRecordOutput(data, context);
|
|
297
|
+
const response = {
|
|
298
|
+
$metadata: deserializeMetadata(output),
|
|
299
|
+
...contents,
|
|
300
|
+
};
|
|
301
|
+
return Promise.resolve(response);
|
|
302
|
+
};
|
|
303
|
+
const deserializeAws_json1_1PutRecordCommandError = async (output, context) => {
|
|
304
|
+
const parsedOutput = {
|
|
305
|
+
...output,
|
|
306
|
+
body: await parseErrorBody(output.body, context),
|
|
307
|
+
};
|
|
308
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
309
|
+
switch (errorCode) {
|
|
310
|
+
case "InvalidArgumentException":
|
|
311
|
+
case "com.amazonaws.firehose#InvalidArgumentException":
|
|
312
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
313
|
+
case "InvalidKMSResourceException":
|
|
314
|
+
case "com.amazonaws.firehose#InvalidKMSResourceException":
|
|
315
|
+
throw await deserializeAws_json1_1InvalidKMSResourceExceptionResponse(parsedOutput, context);
|
|
316
|
+
case "ResourceNotFoundException":
|
|
317
|
+
case "com.amazonaws.firehose#ResourceNotFoundException":
|
|
318
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
319
|
+
case "ServiceUnavailableException":
|
|
320
|
+
case "com.amazonaws.firehose#ServiceUnavailableException":
|
|
321
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
322
|
+
default:
|
|
323
|
+
const parsedBody = parsedOutput.body;
|
|
324
|
+
throwDefaultError({
|
|
325
|
+
output,
|
|
326
|
+
parsedBody,
|
|
327
|
+
exceptionCtor: __BaseException,
|
|
328
|
+
errorCode,
|
|
329
|
+
});
|
|
330
|
+
}
|
|
331
|
+
};
|
|
332
|
+
export const deserializeAws_json1_1PutRecordBatchCommand = async (output, context) => {
|
|
333
|
+
if (output.statusCode >= 300) {
|
|
334
|
+
return deserializeAws_json1_1PutRecordBatchCommandError(output, context);
|
|
335
|
+
}
|
|
336
|
+
const data = await parseBody(output.body, context);
|
|
337
|
+
let contents = {};
|
|
338
|
+
contents = deserializeAws_json1_1PutRecordBatchOutput(data, context);
|
|
339
|
+
const response = {
|
|
340
|
+
$metadata: deserializeMetadata(output),
|
|
341
|
+
...contents,
|
|
342
|
+
};
|
|
343
|
+
return Promise.resolve(response);
|
|
344
|
+
};
|
|
345
|
+
const deserializeAws_json1_1PutRecordBatchCommandError = async (output, context) => {
|
|
346
|
+
const parsedOutput = {
|
|
347
|
+
...output,
|
|
348
|
+
body: await parseErrorBody(output.body, context),
|
|
349
|
+
};
|
|
350
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
351
|
+
switch (errorCode) {
|
|
352
|
+
case "InvalidArgumentException":
|
|
353
|
+
case "com.amazonaws.firehose#InvalidArgumentException":
|
|
354
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
355
|
+
case "InvalidKMSResourceException":
|
|
356
|
+
case "com.amazonaws.firehose#InvalidKMSResourceException":
|
|
357
|
+
throw await deserializeAws_json1_1InvalidKMSResourceExceptionResponse(parsedOutput, context);
|
|
358
|
+
case "ResourceNotFoundException":
|
|
359
|
+
case "com.amazonaws.firehose#ResourceNotFoundException":
|
|
360
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
361
|
+
case "ServiceUnavailableException":
|
|
362
|
+
case "com.amazonaws.firehose#ServiceUnavailableException":
|
|
363
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(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_1StartDeliveryStreamEncryptionCommand = async (output, context) => {
|
|
375
|
+
if (output.statusCode >= 300) {
|
|
376
|
+
return deserializeAws_json1_1StartDeliveryStreamEncryptionCommandError(output, context);
|
|
377
|
+
}
|
|
378
|
+
const data = await parseBody(output.body, context);
|
|
379
|
+
let contents = {};
|
|
380
|
+
contents = deserializeAws_json1_1StartDeliveryStreamEncryptionOutput(data, context);
|
|
381
|
+
const response = {
|
|
382
|
+
$metadata: deserializeMetadata(output),
|
|
383
|
+
...contents,
|
|
384
|
+
};
|
|
385
|
+
return Promise.resolve(response);
|
|
386
|
+
};
|
|
387
|
+
const deserializeAws_json1_1StartDeliveryStreamEncryptionCommandError = 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 "InvalidArgumentException":
|
|
395
|
+
case "com.amazonaws.firehose#InvalidArgumentException":
|
|
396
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
397
|
+
case "InvalidKMSResourceException":
|
|
398
|
+
case "com.amazonaws.firehose#InvalidKMSResourceException":
|
|
399
|
+
throw await deserializeAws_json1_1InvalidKMSResourceExceptionResponse(parsedOutput, context);
|
|
400
|
+
case "LimitExceededException":
|
|
401
|
+
case "com.amazonaws.firehose#LimitExceededException":
|
|
402
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
403
|
+
case "ResourceInUseException":
|
|
404
|
+
case "com.amazonaws.firehose#ResourceInUseException":
|
|
405
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
406
|
+
case "ResourceNotFoundException":
|
|
407
|
+
case "com.amazonaws.firehose#ResourceNotFoundException":
|
|
408
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
409
|
+
default:
|
|
410
|
+
const parsedBody = parsedOutput.body;
|
|
411
|
+
throwDefaultError({
|
|
412
|
+
output,
|
|
413
|
+
parsedBody,
|
|
414
|
+
exceptionCtor: __BaseException,
|
|
415
|
+
errorCode,
|
|
416
|
+
});
|
|
417
|
+
}
|
|
418
|
+
};
|
|
419
|
+
export const deserializeAws_json1_1StopDeliveryStreamEncryptionCommand = async (output, context) => {
|
|
420
|
+
if (output.statusCode >= 300) {
|
|
421
|
+
return deserializeAws_json1_1StopDeliveryStreamEncryptionCommandError(output, context);
|
|
422
|
+
}
|
|
423
|
+
const data = await parseBody(output.body, context);
|
|
424
|
+
let contents = {};
|
|
425
|
+
contents = deserializeAws_json1_1StopDeliveryStreamEncryptionOutput(data, context);
|
|
426
|
+
const response = {
|
|
427
|
+
$metadata: deserializeMetadata(output),
|
|
428
|
+
...contents,
|
|
429
|
+
};
|
|
430
|
+
return Promise.resolve(response);
|
|
431
|
+
};
|
|
432
|
+
const deserializeAws_json1_1StopDeliveryStreamEncryptionCommandError = async (output, context) => {
|
|
433
|
+
const parsedOutput = {
|
|
434
|
+
...output,
|
|
435
|
+
body: await parseErrorBody(output.body, context),
|
|
436
|
+
};
|
|
437
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
438
|
+
switch (errorCode) {
|
|
439
|
+
case "InvalidArgumentException":
|
|
440
|
+
case "com.amazonaws.firehose#InvalidArgumentException":
|
|
441
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
442
|
+
case "LimitExceededException":
|
|
443
|
+
case "com.amazonaws.firehose#LimitExceededException":
|
|
444
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
445
|
+
case "ResourceInUseException":
|
|
446
|
+
case "com.amazonaws.firehose#ResourceInUseException":
|
|
447
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
448
|
+
case "ResourceNotFoundException":
|
|
449
|
+
case "com.amazonaws.firehose#ResourceNotFoundException":
|
|
450
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
451
|
+
default:
|
|
452
|
+
const parsedBody = parsedOutput.body;
|
|
453
|
+
throwDefaultError({
|
|
454
|
+
output,
|
|
455
|
+
parsedBody,
|
|
456
|
+
exceptionCtor: __BaseException,
|
|
457
|
+
errorCode,
|
|
458
|
+
});
|
|
459
|
+
}
|
|
460
|
+
};
|
|
461
|
+
export const deserializeAws_json1_1TagDeliveryStreamCommand = async (output, context) => {
|
|
462
|
+
if (output.statusCode >= 300) {
|
|
463
|
+
return deserializeAws_json1_1TagDeliveryStreamCommandError(output, context);
|
|
464
|
+
}
|
|
465
|
+
const data = await parseBody(output.body, context);
|
|
466
|
+
let contents = {};
|
|
467
|
+
contents = deserializeAws_json1_1TagDeliveryStreamOutput(data, context);
|
|
468
|
+
const response = {
|
|
469
|
+
$metadata: deserializeMetadata(output),
|
|
470
|
+
...contents,
|
|
471
|
+
};
|
|
472
|
+
return Promise.resolve(response);
|
|
473
|
+
};
|
|
474
|
+
const deserializeAws_json1_1TagDeliveryStreamCommandError = async (output, context) => {
|
|
475
|
+
const parsedOutput = {
|
|
476
|
+
...output,
|
|
477
|
+
body: await parseErrorBody(output.body, context),
|
|
478
|
+
};
|
|
479
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
480
|
+
switch (errorCode) {
|
|
481
|
+
case "InvalidArgumentException":
|
|
482
|
+
case "com.amazonaws.firehose#InvalidArgumentException":
|
|
483
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
484
|
+
case "LimitExceededException":
|
|
485
|
+
case "com.amazonaws.firehose#LimitExceededException":
|
|
486
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
487
|
+
case "ResourceInUseException":
|
|
488
|
+
case "com.amazonaws.firehose#ResourceInUseException":
|
|
489
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
490
|
+
case "ResourceNotFoundException":
|
|
491
|
+
case "com.amazonaws.firehose#ResourceNotFoundException":
|
|
492
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(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_1UntagDeliveryStreamCommand = async (output, context) => {
|
|
504
|
+
if (output.statusCode >= 300) {
|
|
505
|
+
return deserializeAws_json1_1UntagDeliveryStreamCommandError(output, context);
|
|
506
|
+
}
|
|
507
|
+
const data = await parseBody(output.body, context);
|
|
508
|
+
let contents = {};
|
|
509
|
+
contents = deserializeAws_json1_1UntagDeliveryStreamOutput(data, context);
|
|
510
|
+
const response = {
|
|
511
|
+
$metadata: deserializeMetadata(output),
|
|
512
|
+
...contents,
|
|
513
|
+
};
|
|
514
|
+
return Promise.resolve(response);
|
|
515
|
+
};
|
|
516
|
+
const deserializeAws_json1_1UntagDeliveryStreamCommandError = 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 "InvalidArgumentException":
|
|
524
|
+
case "com.amazonaws.firehose#InvalidArgumentException":
|
|
525
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
526
|
+
case "LimitExceededException":
|
|
527
|
+
case "com.amazonaws.firehose#LimitExceededException":
|
|
528
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
529
|
+
case "ResourceInUseException":
|
|
530
|
+
case "com.amazonaws.firehose#ResourceInUseException":
|
|
531
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
532
|
+
case "ResourceNotFoundException":
|
|
533
|
+
case "com.amazonaws.firehose#ResourceNotFoundException":
|
|
534
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(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_1UpdateDestinationCommand = async (output, context) => {
|
|
546
|
+
if (output.statusCode >= 300) {
|
|
547
|
+
return deserializeAws_json1_1UpdateDestinationCommandError(output, context);
|
|
548
|
+
}
|
|
549
|
+
const data = await parseBody(output.body, context);
|
|
550
|
+
let contents = {};
|
|
551
|
+
contents = deserializeAws_json1_1UpdateDestinationOutput(data, context);
|
|
552
|
+
const response = {
|
|
553
|
+
$metadata: deserializeMetadata(output),
|
|
554
|
+
...contents,
|
|
555
|
+
};
|
|
556
|
+
return Promise.resolve(response);
|
|
557
|
+
};
|
|
558
|
+
const deserializeAws_json1_1UpdateDestinationCommandError = 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 "ConcurrentModificationException":
|
|
566
|
+
case "com.amazonaws.firehose#ConcurrentModificationException":
|
|
567
|
+
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
568
|
+
case "InvalidArgumentException":
|
|
569
|
+
case "com.amazonaws.firehose#InvalidArgumentException":
|
|
570
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
571
|
+
case "ResourceInUseException":
|
|
572
|
+
case "com.amazonaws.firehose#ResourceInUseException":
|
|
573
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
574
|
+
case "ResourceNotFoundException":
|
|
575
|
+
case "com.amazonaws.firehose#ResourceNotFoundException":
|
|
576
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
577
|
+
default:
|
|
578
|
+
const parsedBody = parsedOutput.body;
|
|
579
|
+
throwDefaultError({
|
|
580
|
+
output,
|
|
581
|
+
parsedBody,
|
|
582
|
+
exceptionCtor: __BaseException,
|
|
583
|
+
errorCode,
|
|
584
|
+
});
|
|
585
|
+
}
|
|
586
|
+
};
|
|
587
|
+
const deserializeAws_json1_1ConcurrentModificationExceptionResponse = async (parsedOutput, context) => {
|
|
588
|
+
const body = parsedOutput.body;
|
|
589
|
+
const deserialized = deserializeAws_json1_1ConcurrentModificationException(body, context);
|
|
590
|
+
const exception = new ConcurrentModificationException({
|
|
591
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
592
|
+
...deserialized,
|
|
593
|
+
});
|
|
594
|
+
return __decorateServiceException(exception, body);
|
|
595
|
+
};
|
|
596
|
+
const deserializeAws_json1_1InvalidArgumentExceptionResponse = async (parsedOutput, context) => {
|
|
597
|
+
const body = parsedOutput.body;
|
|
598
|
+
const deserialized = deserializeAws_json1_1InvalidArgumentException(body, context);
|
|
599
|
+
const exception = new InvalidArgumentException({
|
|
600
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
601
|
+
...deserialized,
|
|
602
|
+
});
|
|
603
|
+
return __decorateServiceException(exception, body);
|
|
604
|
+
};
|
|
605
|
+
const deserializeAws_json1_1InvalidKMSResourceExceptionResponse = async (parsedOutput, context) => {
|
|
606
|
+
const body = parsedOutput.body;
|
|
607
|
+
const deserialized = deserializeAws_json1_1InvalidKMSResourceException(body, context);
|
|
608
|
+
const exception = new InvalidKMSResourceException({
|
|
609
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
610
|
+
...deserialized,
|
|
611
|
+
});
|
|
612
|
+
return __decorateServiceException(exception, body);
|
|
613
|
+
};
|
|
614
|
+
const deserializeAws_json1_1LimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
615
|
+
const body = parsedOutput.body;
|
|
616
|
+
const deserialized = deserializeAws_json1_1LimitExceededException(body, context);
|
|
617
|
+
const exception = new LimitExceededException({
|
|
618
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
619
|
+
...deserialized,
|
|
620
|
+
});
|
|
621
|
+
return __decorateServiceException(exception, body);
|
|
622
|
+
};
|
|
623
|
+
const deserializeAws_json1_1ResourceInUseExceptionResponse = async (parsedOutput, context) => {
|
|
624
|
+
const body = parsedOutput.body;
|
|
625
|
+
const deserialized = deserializeAws_json1_1ResourceInUseException(body, context);
|
|
626
|
+
const exception = new ResourceInUseException({
|
|
627
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
628
|
+
...deserialized,
|
|
629
|
+
});
|
|
630
|
+
return __decorateServiceException(exception, body);
|
|
631
|
+
};
|
|
632
|
+
const deserializeAws_json1_1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
633
|
+
const body = parsedOutput.body;
|
|
634
|
+
const deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context);
|
|
635
|
+
const exception = new ResourceNotFoundException({
|
|
636
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
637
|
+
...deserialized,
|
|
638
|
+
});
|
|
639
|
+
return __decorateServiceException(exception, body);
|
|
640
|
+
};
|
|
641
|
+
const deserializeAws_json1_1ServiceUnavailableExceptionResponse = async (parsedOutput, context) => {
|
|
642
|
+
const body = parsedOutput.body;
|
|
643
|
+
const deserialized = deserializeAws_json1_1ServiceUnavailableException(body, context);
|
|
644
|
+
const exception = new ServiceUnavailableException({
|
|
645
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
646
|
+
...deserialized,
|
|
647
|
+
});
|
|
648
|
+
return __decorateServiceException(exception, body);
|
|
649
|
+
};
|
|
650
|
+
const serializeAws_json1_1AmazonopensearchserviceBufferingHints = (input, context) => {
|
|
651
|
+
return {
|
|
652
|
+
...(input.IntervalInSeconds != null && { IntervalInSeconds: input.IntervalInSeconds }),
|
|
653
|
+
...(input.SizeInMBs != null && { SizeInMBs: input.SizeInMBs }),
|
|
654
|
+
};
|
|
655
|
+
};
|
|
656
|
+
const serializeAws_json1_1AmazonopensearchserviceDestinationConfiguration = (input, context) => {
|
|
657
|
+
return {
|
|
658
|
+
...(input.BufferingHints != null && {
|
|
659
|
+
BufferingHints: serializeAws_json1_1AmazonopensearchserviceBufferingHints(input.BufferingHints, context),
|
|
660
|
+
}),
|
|
661
|
+
...(input.CloudWatchLoggingOptions != null && {
|
|
662
|
+
CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
|
|
663
|
+
}),
|
|
664
|
+
...(input.ClusterEndpoint != null && { ClusterEndpoint: input.ClusterEndpoint }),
|
|
665
|
+
...(input.DomainARN != null && { DomainARN: input.DomainARN }),
|
|
666
|
+
...(input.IndexName != null && { IndexName: input.IndexName }),
|
|
667
|
+
...(input.IndexRotationPeriod != null && { IndexRotationPeriod: input.IndexRotationPeriod }),
|
|
668
|
+
...(input.ProcessingConfiguration != null && {
|
|
669
|
+
ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context),
|
|
670
|
+
}),
|
|
671
|
+
...(input.RetryOptions != null && {
|
|
672
|
+
RetryOptions: serializeAws_json1_1AmazonopensearchserviceRetryOptions(input.RetryOptions, context),
|
|
673
|
+
}),
|
|
674
|
+
...(input.RoleARN != null && { RoleARN: input.RoleARN }),
|
|
675
|
+
...(input.S3BackupMode != null && { S3BackupMode: input.S3BackupMode }),
|
|
676
|
+
...(input.S3Configuration != null && {
|
|
677
|
+
S3Configuration: serializeAws_json1_1S3DestinationConfiguration(input.S3Configuration, context),
|
|
678
|
+
}),
|
|
679
|
+
...(input.TypeName != null && { TypeName: input.TypeName }),
|
|
680
|
+
...(input.VpcConfiguration != null && {
|
|
681
|
+
VpcConfiguration: serializeAws_json1_1VpcConfiguration(input.VpcConfiguration, context),
|
|
682
|
+
}),
|
|
683
|
+
};
|
|
684
|
+
};
|
|
685
|
+
const serializeAws_json1_1AmazonopensearchserviceDestinationUpdate = (input, context) => {
|
|
686
|
+
return {
|
|
687
|
+
...(input.BufferingHints != null && {
|
|
688
|
+
BufferingHints: serializeAws_json1_1AmazonopensearchserviceBufferingHints(input.BufferingHints, context),
|
|
689
|
+
}),
|
|
690
|
+
...(input.CloudWatchLoggingOptions != null && {
|
|
691
|
+
CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
|
|
692
|
+
}),
|
|
693
|
+
...(input.ClusterEndpoint != null && { ClusterEndpoint: input.ClusterEndpoint }),
|
|
694
|
+
...(input.DomainARN != null && { DomainARN: input.DomainARN }),
|
|
695
|
+
...(input.IndexName != null && { IndexName: input.IndexName }),
|
|
696
|
+
...(input.IndexRotationPeriod != null && { IndexRotationPeriod: input.IndexRotationPeriod }),
|
|
697
|
+
...(input.ProcessingConfiguration != null && {
|
|
698
|
+
ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context),
|
|
699
|
+
}),
|
|
700
|
+
...(input.RetryOptions != null && {
|
|
701
|
+
RetryOptions: serializeAws_json1_1AmazonopensearchserviceRetryOptions(input.RetryOptions, context),
|
|
702
|
+
}),
|
|
703
|
+
...(input.RoleARN != null && { RoleARN: input.RoleARN }),
|
|
704
|
+
...(input.S3Update != null && { S3Update: serializeAws_json1_1S3DestinationUpdate(input.S3Update, context) }),
|
|
705
|
+
...(input.TypeName != null && { TypeName: input.TypeName }),
|
|
706
|
+
};
|
|
707
|
+
};
|
|
708
|
+
const serializeAws_json1_1AmazonopensearchserviceRetryOptions = (input, context) => {
|
|
709
|
+
return {
|
|
710
|
+
...(input.DurationInSeconds != null && { DurationInSeconds: input.DurationInSeconds }),
|
|
711
|
+
};
|
|
712
|
+
};
|
|
713
|
+
const serializeAws_json1_1BufferingHints = (input, context) => {
|
|
714
|
+
return {
|
|
715
|
+
...(input.IntervalInSeconds != null && { IntervalInSeconds: input.IntervalInSeconds }),
|
|
716
|
+
...(input.SizeInMBs != null && { SizeInMBs: input.SizeInMBs }),
|
|
717
|
+
};
|
|
718
|
+
};
|
|
719
|
+
const serializeAws_json1_1CloudWatchLoggingOptions = (input, context) => {
|
|
720
|
+
return {
|
|
721
|
+
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
722
|
+
...(input.LogGroupName != null && { LogGroupName: input.LogGroupName }),
|
|
723
|
+
...(input.LogStreamName != null && { LogStreamName: input.LogStreamName }),
|
|
724
|
+
};
|
|
725
|
+
};
|
|
726
|
+
const serializeAws_json1_1ColumnToJsonKeyMappings = (input, context) => {
|
|
727
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
957
728
|
if (value === null) {
|
|
958
729
|
return acc;
|
|
959
730
|
}
|
|
960
|
-
return
|
|
731
|
+
return {
|
|
732
|
+
...acc,
|
|
733
|
+
[key]: value,
|
|
734
|
+
};
|
|
961
735
|
}, {});
|
|
962
736
|
};
|
|
963
|
-
|
|
964
|
-
return
|
|
965
|
-
}
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
}
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
}
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
};
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
};
|
|
1049
|
-
|
|
1050
|
-
return
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
};
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
}
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
}
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
}
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
}
|
|
1099
|
-
|
|
737
|
+
const serializeAws_json1_1CopyCommand = (input, context) => {
|
|
738
|
+
return {
|
|
739
|
+
...(input.CopyOptions != null && { CopyOptions: input.CopyOptions }),
|
|
740
|
+
...(input.DataTableColumns != null && { DataTableColumns: input.DataTableColumns }),
|
|
741
|
+
...(input.DataTableName != null && { DataTableName: input.DataTableName }),
|
|
742
|
+
};
|
|
743
|
+
};
|
|
744
|
+
const serializeAws_json1_1CreateDeliveryStreamInput = (input, context) => {
|
|
745
|
+
return {
|
|
746
|
+
...(input.AmazonopensearchserviceDestinationConfiguration != null && {
|
|
747
|
+
AmazonopensearchserviceDestinationConfiguration: serializeAws_json1_1AmazonopensearchserviceDestinationConfiguration(input.AmazonopensearchserviceDestinationConfiguration, context),
|
|
748
|
+
}),
|
|
749
|
+
...(input.DeliveryStreamEncryptionConfigurationInput != null && {
|
|
750
|
+
DeliveryStreamEncryptionConfigurationInput: serializeAws_json1_1DeliveryStreamEncryptionConfigurationInput(input.DeliveryStreamEncryptionConfigurationInput, context),
|
|
751
|
+
}),
|
|
752
|
+
...(input.DeliveryStreamName != null && { DeliveryStreamName: input.DeliveryStreamName }),
|
|
753
|
+
...(input.DeliveryStreamType != null && { DeliveryStreamType: input.DeliveryStreamType }),
|
|
754
|
+
...(input.ElasticsearchDestinationConfiguration != null && {
|
|
755
|
+
ElasticsearchDestinationConfiguration: serializeAws_json1_1ElasticsearchDestinationConfiguration(input.ElasticsearchDestinationConfiguration, context),
|
|
756
|
+
}),
|
|
757
|
+
...(input.ExtendedS3DestinationConfiguration != null && {
|
|
758
|
+
ExtendedS3DestinationConfiguration: serializeAws_json1_1ExtendedS3DestinationConfiguration(input.ExtendedS3DestinationConfiguration, context),
|
|
759
|
+
}),
|
|
760
|
+
...(input.HttpEndpointDestinationConfiguration != null && {
|
|
761
|
+
HttpEndpointDestinationConfiguration: serializeAws_json1_1HttpEndpointDestinationConfiguration(input.HttpEndpointDestinationConfiguration, context),
|
|
762
|
+
}),
|
|
763
|
+
...(input.KinesisStreamSourceConfiguration != null && {
|
|
764
|
+
KinesisStreamSourceConfiguration: serializeAws_json1_1KinesisStreamSourceConfiguration(input.KinesisStreamSourceConfiguration, context),
|
|
765
|
+
}),
|
|
766
|
+
...(input.RedshiftDestinationConfiguration != null && {
|
|
767
|
+
RedshiftDestinationConfiguration: serializeAws_json1_1RedshiftDestinationConfiguration(input.RedshiftDestinationConfiguration, context),
|
|
768
|
+
}),
|
|
769
|
+
...(input.S3DestinationConfiguration != null && {
|
|
770
|
+
S3DestinationConfiguration: serializeAws_json1_1S3DestinationConfiguration(input.S3DestinationConfiguration, context),
|
|
771
|
+
}),
|
|
772
|
+
...(input.SplunkDestinationConfiguration != null && {
|
|
773
|
+
SplunkDestinationConfiguration: serializeAws_json1_1SplunkDestinationConfiguration(input.SplunkDestinationConfiguration, context),
|
|
774
|
+
}),
|
|
775
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagDeliveryStreamInputTagList(input.Tags, context) }),
|
|
776
|
+
};
|
|
777
|
+
};
|
|
778
|
+
const serializeAws_json1_1DataFormatConversionConfiguration = (input, context) => {
|
|
779
|
+
return {
|
|
780
|
+
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
781
|
+
...(input.InputFormatConfiguration != null && {
|
|
782
|
+
InputFormatConfiguration: serializeAws_json1_1InputFormatConfiguration(input.InputFormatConfiguration, context),
|
|
783
|
+
}),
|
|
784
|
+
...(input.OutputFormatConfiguration != null && {
|
|
785
|
+
OutputFormatConfiguration: serializeAws_json1_1OutputFormatConfiguration(input.OutputFormatConfiguration, context),
|
|
786
|
+
}),
|
|
787
|
+
...(input.SchemaConfiguration != null && {
|
|
788
|
+
SchemaConfiguration: serializeAws_json1_1SchemaConfiguration(input.SchemaConfiguration, context),
|
|
789
|
+
}),
|
|
790
|
+
};
|
|
791
|
+
};
|
|
792
|
+
const serializeAws_json1_1DeleteDeliveryStreamInput = (input, context) => {
|
|
793
|
+
return {
|
|
794
|
+
...(input.AllowForceDelete != null && { AllowForceDelete: input.AllowForceDelete }),
|
|
795
|
+
...(input.DeliveryStreamName != null && { DeliveryStreamName: input.DeliveryStreamName }),
|
|
796
|
+
};
|
|
797
|
+
};
|
|
798
|
+
const serializeAws_json1_1DeliveryStreamEncryptionConfigurationInput = (input, context) => {
|
|
799
|
+
return {
|
|
800
|
+
...(input.KeyARN != null && { KeyARN: input.KeyARN }),
|
|
801
|
+
...(input.KeyType != null && { KeyType: input.KeyType }),
|
|
802
|
+
};
|
|
803
|
+
};
|
|
804
|
+
const serializeAws_json1_1DescribeDeliveryStreamInput = (input, context) => {
|
|
805
|
+
return {
|
|
806
|
+
...(input.DeliveryStreamName != null && { DeliveryStreamName: input.DeliveryStreamName }),
|
|
807
|
+
...(input.ExclusiveStartDestinationId != null && {
|
|
808
|
+
ExclusiveStartDestinationId: input.ExclusiveStartDestinationId,
|
|
809
|
+
}),
|
|
810
|
+
...(input.Limit != null && { Limit: input.Limit }),
|
|
811
|
+
};
|
|
812
|
+
};
|
|
813
|
+
const serializeAws_json1_1Deserializer = (input, context) => {
|
|
814
|
+
return {
|
|
815
|
+
...(input.HiveJsonSerDe != null && {
|
|
816
|
+
HiveJsonSerDe: serializeAws_json1_1HiveJsonSerDe(input.HiveJsonSerDe, context),
|
|
817
|
+
}),
|
|
818
|
+
...(input.OpenXJsonSerDe != null && {
|
|
819
|
+
OpenXJsonSerDe: serializeAws_json1_1OpenXJsonSerDe(input.OpenXJsonSerDe, context),
|
|
820
|
+
}),
|
|
821
|
+
};
|
|
822
|
+
};
|
|
823
|
+
const serializeAws_json1_1DynamicPartitioningConfiguration = (input, context) => {
|
|
824
|
+
return {
|
|
825
|
+
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
826
|
+
...(input.RetryOptions != null && { RetryOptions: serializeAws_json1_1RetryOptions(input.RetryOptions, context) }),
|
|
827
|
+
};
|
|
828
|
+
};
|
|
829
|
+
const serializeAws_json1_1ElasticsearchBufferingHints = (input, context) => {
|
|
830
|
+
return {
|
|
831
|
+
...(input.IntervalInSeconds != null && { IntervalInSeconds: input.IntervalInSeconds }),
|
|
832
|
+
...(input.SizeInMBs != null && { SizeInMBs: input.SizeInMBs }),
|
|
833
|
+
};
|
|
834
|
+
};
|
|
835
|
+
const serializeAws_json1_1ElasticsearchDestinationConfiguration = (input, context) => {
|
|
836
|
+
return {
|
|
837
|
+
...(input.BufferingHints != null && {
|
|
838
|
+
BufferingHints: serializeAws_json1_1ElasticsearchBufferingHints(input.BufferingHints, context),
|
|
839
|
+
}),
|
|
840
|
+
...(input.CloudWatchLoggingOptions != null && {
|
|
841
|
+
CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
|
|
842
|
+
}),
|
|
843
|
+
...(input.ClusterEndpoint != null && { ClusterEndpoint: input.ClusterEndpoint }),
|
|
844
|
+
...(input.DomainARN != null && { DomainARN: input.DomainARN }),
|
|
845
|
+
...(input.IndexName != null && { IndexName: input.IndexName }),
|
|
846
|
+
...(input.IndexRotationPeriod != null && { IndexRotationPeriod: input.IndexRotationPeriod }),
|
|
847
|
+
...(input.ProcessingConfiguration != null && {
|
|
848
|
+
ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context),
|
|
849
|
+
}),
|
|
850
|
+
...(input.RetryOptions != null && {
|
|
851
|
+
RetryOptions: serializeAws_json1_1ElasticsearchRetryOptions(input.RetryOptions, context),
|
|
852
|
+
}),
|
|
853
|
+
...(input.RoleARN != null && { RoleARN: input.RoleARN }),
|
|
854
|
+
...(input.S3BackupMode != null && { S3BackupMode: input.S3BackupMode }),
|
|
855
|
+
...(input.S3Configuration != null && {
|
|
856
|
+
S3Configuration: serializeAws_json1_1S3DestinationConfiguration(input.S3Configuration, context),
|
|
857
|
+
}),
|
|
858
|
+
...(input.TypeName != null && { TypeName: input.TypeName }),
|
|
859
|
+
...(input.VpcConfiguration != null && {
|
|
860
|
+
VpcConfiguration: serializeAws_json1_1VpcConfiguration(input.VpcConfiguration, context),
|
|
861
|
+
}),
|
|
862
|
+
};
|
|
863
|
+
};
|
|
864
|
+
const serializeAws_json1_1ElasticsearchDestinationUpdate = (input, context) => {
|
|
865
|
+
return {
|
|
866
|
+
...(input.BufferingHints != null && {
|
|
867
|
+
BufferingHints: serializeAws_json1_1ElasticsearchBufferingHints(input.BufferingHints, context),
|
|
868
|
+
}),
|
|
869
|
+
...(input.CloudWatchLoggingOptions != null && {
|
|
870
|
+
CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
|
|
871
|
+
}),
|
|
872
|
+
...(input.ClusterEndpoint != null && { ClusterEndpoint: input.ClusterEndpoint }),
|
|
873
|
+
...(input.DomainARN != null && { DomainARN: input.DomainARN }),
|
|
874
|
+
...(input.IndexName != null && { IndexName: input.IndexName }),
|
|
875
|
+
...(input.IndexRotationPeriod != null && { IndexRotationPeriod: input.IndexRotationPeriod }),
|
|
876
|
+
...(input.ProcessingConfiguration != null && {
|
|
877
|
+
ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context),
|
|
878
|
+
}),
|
|
879
|
+
...(input.RetryOptions != null && {
|
|
880
|
+
RetryOptions: serializeAws_json1_1ElasticsearchRetryOptions(input.RetryOptions, context),
|
|
881
|
+
}),
|
|
882
|
+
...(input.RoleARN != null && { RoleARN: input.RoleARN }),
|
|
883
|
+
...(input.S3Update != null && { S3Update: serializeAws_json1_1S3DestinationUpdate(input.S3Update, context) }),
|
|
884
|
+
...(input.TypeName != null && { TypeName: input.TypeName }),
|
|
885
|
+
};
|
|
886
|
+
};
|
|
887
|
+
const serializeAws_json1_1ElasticsearchRetryOptions = (input, context) => {
|
|
888
|
+
return {
|
|
889
|
+
...(input.DurationInSeconds != null && { DurationInSeconds: input.DurationInSeconds }),
|
|
890
|
+
};
|
|
891
|
+
};
|
|
892
|
+
const serializeAws_json1_1EncryptionConfiguration = (input, context) => {
|
|
893
|
+
return {
|
|
894
|
+
...(input.KMSEncryptionConfig != null && {
|
|
895
|
+
KMSEncryptionConfig: serializeAws_json1_1KMSEncryptionConfig(input.KMSEncryptionConfig, context),
|
|
896
|
+
}),
|
|
897
|
+
...(input.NoEncryptionConfig != null && { NoEncryptionConfig: input.NoEncryptionConfig }),
|
|
898
|
+
};
|
|
899
|
+
};
|
|
900
|
+
const serializeAws_json1_1ExtendedS3DestinationConfiguration = (input, context) => {
|
|
901
|
+
return {
|
|
902
|
+
...(input.BucketARN != null && { BucketARN: input.BucketARN }),
|
|
903
|
+
...(input.BufferingHints != null && {
|
|
904
|
+
BufferingHints: serializeAws_json1_1BufferingHints(input.BufferingHints, context),
|
|
905
|
+
}),
|
|
906
|
+
...(input.CloudWatchLoggingOptions != null && {
|
|
907
|
+
CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
|
|
908
|
+
}),
|
|
909
|
+
...(input.CompressionFormat != null && { CompressionFormat: input.CompressionFormat }),
|
|
910
|
+
...(input.DataFormatConversionConfiguration != null && {
|
|
911
|
+
DataFormatConversionConfiguration: serializeAws_json1_1DataFormatConversionConfiguration(input.DataFormatConversionConfiguration, context),
|
|
912
|
+
}),
|
|
913
|
+
...(input.DynamicPartitioningConfiguration != null && {
|
|
914
|
+
DynamicPartitioningConfiguration: serializeAws_json1_1DynamicPartitioningConfiguration(input.DynamicPartitioningConfiguration, context),
|
|
915
|
+
}),
|
|
916
|
+
...(input.EncryptionConfiguration != null && {
|
|
917
|
+
EncryptionConfiguration: serializeAws_json1_1EncryptionConfiguration(input.EncryptionConfiguration, context),
|
|
918
|
+
}),
|
|
919
|
+
...(input.ErrorOutputPrefix != null && { ErrorOutputPrefix: input.ErrorOutputPrefix }),
|
|
920
|
+
...(input.Prefix != null && { Prefix: input.Prefix }),
|
|
921
|
+
...(input.ProcessingConfiguration != null && {
|
|
922
|
+
ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context),
|
|
923
|
+
}),
|
|
924
|
+
...(input.RoleARN != null && { RoleARN: input.RoleARN }),
|
|
925
|
+
...(input.S3BackupConfiguration != null && {
|
|
926
|
+
S3BackupConfiguration: serializeAws_json1_1S3DestinationConfiguration(input.S3BackupConfiguration, context),
|
|
927
|
+
}),
|
|
928
|
+
...(input.S3BackupMode != null && { S3BackupMode: input.S3BackupMode }),
|
|
929
|
+
};
|
|
930
|
+
};
|
|
931
|
+
const serializeAws_json1_1ExtendedS3DestinationUpdate = (input, context) => {
|
|
932
|
+
return {
|
|
933
|
+
...(input.BucketARN != null && { BucketARN: input.BucketARN }),
|
|
934
|
+
...(input.BufferingHints != null && {
|
|
935
|
+
BufferingHints: serializeAws_json1_1BufferingHints(input.BufferingHints, context),
|
|
936
|
+
}),
|
|
937
|
+
...(input.CloudWatchLoggingOptions != null && {
|
|
938
|
+
CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
|
|
939
|
+
}),
|
|
940
|
+
...(input.CompressionFormat != null && { CompressionFormat: input.CompressionFormat }),
|
|
941
|
+
...(input.DataFormatConversionConfiguration != null && {
|
|
942
|
+
DataFormatConversionConfiguration: serializeAws_json1_1DataFormatConversionConfiguration(input.DataFormatConversionConfiguration, context),
|
|
943
|
+
}),
|
|
944
|
+
...(input.DynamicPartitioningConfiguration != null && {
|
|
945
|
+
DynamicPartitioningConfiguration: serializeAws_json1_1DynamicPartitioningConfiguration(input.DynamicPartitioningConfiguration, context),
|
|
946
|
+
}),
|
|
947
|
+
...(input.EncryptionConfiguration != null && {
|
|
948
|
+
EncryptionConfiguration: serializeAws_json1_1EncryptionConfiguration(input.EncryptionConfiguration, context),
|
|
949
|
+
}),
|
|
950
|
+
...(input.ErrorOutputPrefix != null && { ErrorOutputPrefix: input.ErrorOutputPrefix }),
|
|
951
|
+
...(input.Prefix != null && { Prefix: input.Prefix }),
|
|
952
|
+
...(input.ProcessingConfiguration != null && {
|
|
953
|
+
ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context),
|
|
954
|
+
}),
|
|
955
|
+
...(input.RoleARN != null && { RoleARN: input.RoleARN }),
|
|
956
|
+
...(input.S3BackupMode != null && { S3BackupMode: input.S3BackupMode }),
|
|
957
|
+
...(input.S3BackupUpdate != null && {
|
|
958
|
+
S3BackupUpdate: serializeAws_json1_1S3DestinationUpdate(input.S3BackupUpdate, context),
|
|
959
|
+
}),
|
|
960
|
+
};
|
|
961
|
+
};
|
|
962
|
+
const serializeAws_json1_1HiveJsonSerDe = (input, context) => {
|
|
963
|
+
return {
|
|
964
|
+
...(input.TimestampFormats != null && {
|
|
965
|
+
TimestampFormats: serializeAws_json1_1ListOfNonEmptyStrings(input.TimestampFormats, context),
|
|
966
|
+
}),
|
|
967
|
+
};
|
|
968
|
+
};
|
|
969
|
+
const serializeAws_json1_1HttpEndpointBufferingHints = (input, context) => {
|
|
970
|
+
return {
|
|
971
|
+
...(input.IntervalInSeconds != null && { IntervalInSeconds: input.IntervalInSeconds }),
|
|
972
|
+
...(input.SizeInMBs != null && { SizeInMBs: input.SizeInMBs }),
|
|
973
|
+
};
|
|
974
|
+
};
|
|
975
|
+
const serializeAws_json1_1HttpEndpointCommonAttribute = (input, context) => {
|
|
976
|
+
return {
|
|
977
|
+
...(input.AttributeName != null && { AttributeName: input.AttributeName }),
|
|
978
|
+
...(input.AttributeValue != null && { AttributeValue: input.AttributeValue }),
|
|
979
|
+
};
|
|
980
|
+
};
|
|
981
|
+
const serializeAws_json1_1HttpEndpointCommonAttributesList = (input, context) => {
|
|
1100
982
|
return input
|
|
1101
|
-
.filter(
|
|
1102
|
-
.map(
|
|
983
|
+
.filter((e) => e != null)
|
|
984
|
+
.map((entry) => {
|
|
1103
985
|
return serializeAws_json1_1HttpEndpointCommonAttribute(entry, context);
|
|
1104
986
|
});
|
|
1105
987
|
};
|
|
1106
|
-
|
|
1107
|
-
return
|
|
1108
|
-
}
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
}
|
|
1163
|
-
|
|
988
|
+
const serializeAws_json1_1HttpEndpointConfiguration = (input, context) => {
|
|
989
|
+
return {
|
|
990
|
+
...(input.AccessKey != null && { AccessKey: input.AccessKey }),
|
|
991
|
+
...(input.Name != null && { Name: input.Name }),
|
|
992
|
+
...(input.Url != null && { Url: input.Url }),
|
|
993
|
+
};
|
|
994
|
+
};
|
|
995
|
+
const serializeAws_json1_1HttpEndpointDestinationConfiguration = (input, context) => {
|
|
996
|
+
return {
|
|
997
|
+
...(input.BufferingHints != null && {
|
|
998
|
+
BufferingHints: serializeAws_json1_1HttpEndpointBufferingHints(input.BufferingHints, context),
|
|
999
|
+
}),
|
|
1000
|
+
...(input.CloudWatchLoggingOptions != null && {
|
|
1001
|
+
CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
|
|
1002
|
+
}),
|
|
1003
|
+
...(input.EndpointConfiguration != null && {
|
|
1004
|
+
EndpointConfiguration: serializeAws_json1_1HttpEndpointConfiguration(input.EndpointConfiguration, context),
|
|
1005
|
+
}),
|
|
1006
|
+
...(input.ProcessingConfiguration != null && {
|
|
1007
|
+
ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context),
|
|
1008
|
+
}),
|
|
1009
|
+
...(input.RequestConfiguration != null && {
|
|
1010
|
+
RequestConfiguration: serializeAws_json1_1HttpEndpointRequestConfiguration(input.RequestConfiguration, context),
|
|
1011
|
+
}),
|
|
1012
|
+
...(input.RetryOptions != null && {
|
|
1013
|
+
RetryOptions: serializeAws_json1_1HttpEndpointRetryOptions(input.RetryOptions, context),
|
|
1014
|
+
}),
|
|
1015
|
+
...(input.RoleARN != null && { RoleARN: input.RoleARN }),
|
|
1016
|
+
...(input.S3BackupMode != null && { S3BackupMode: input.S3BackupMode }),
|
|
1017
|
+
...(input.S3Configuration != null && {
|
|
1018
|
+
S3Configuration: serializeAws_json1_1S3DestinationConfiguration(input.S3Configuration, context),
|
|
1019
|
+
}),
|
|
1020
|
+
};
|
|
1021
|
+
};
|
|
1022
|
+
const serializeAws_json1_1HttpEndpointDestinationUpdate = (input, context) => {
|
|
1023
|
+
return {
|
|
1024
|
+
...(input.BufferingHints != null && {
|
|
1025
|
+
BufferingHints: serializeAws_json1_1HttpEndpointBufferingHints(input.BufferingHints, context),
|
|
1026
|
+
}),
|
|
1027
|
+
...(input.CloudWatchLoggingOptions != null && {
|
|
1028
|
+
CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
|
|
1029
|
+
}),
|
|
1030
|
+
...(input.EndpointConfiguration != null && {
|
|
1031
|
+
EndpointConfiguration: serializeAws_json1_1HttpEndpointConfiguration(input.EndpointConfiguration, context),
|
|
1032
|
+
}),
|
|
1033
|
+
...(input.ProcessingConfiguration != null && {
|
|
1034
|
+
ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context),
|
|
1035
|
+
}),
|
|
1036
|
+
...(input.RequestConfiguration != null && {
|
|
1037
|
+
RequestConfiguration: serializeAws_json1_1HttpEndpointRequestConfiguration(input.RequestConfiguration, context),
|
|
1038
|
+
}),
|
|
1039
|
+
...(input.RetryOptions != null && {
|
|
1040
|
+
RetryOptions: serializeAws_json1_1HttpEndpointRetryOptions(input.RetryOptions, context),
|
|
1041
|
+
}),
|
|
1042
|
+
...(input.RoleARN != null && { RoleARN: input.RoleARN }),
|
|
1043
|
+
...(input.S3BackupMode != null && { S3BackupMode: input.S3BackupMode }),
|
|
1044
|
+
...(input.S3Update != null && { S3Update: serializeAws_json1_1S3DestinationUpdate(input.S3Update, context) }),
|
|
1045
|
+
};
|
|
1046
|
+
};
|
|
1047
|
+
const serializeAws_json1_1HttpEndpointRequestConfiguration = (input, context) => {
|
|
1048
|
+
return {
|
|
1049
|
+
...(input.CommonAttributes != null && {
|
|
1050
|
+
CommonAttributes: serializeAws_json1_1HttpEndpointCommonAttributesList(input.CommonAttributes, context),
|
|
1051
|
+
}),
|
|
1052
|
+
...(input.ContentEncoding != null && { ContentEncoding: input.ContentEncoding }),
|
|
1053
|
+
};
|
|
1054
|
+
};
|
|
1055
|
+
const serializeAws_json1_1HttpEndpointRetryOptions = (input, context) => {
|
|
1056
|
+
return {
|
|
1057
|
+
...(input.DurationInSeconds != null && { DurationInSeconds: input.DurationInSeconds }),
|
|
1058
|
+
};
|
|
1059
|
+
};
|
|
1060
|
+
const serializeAws_json1_1InputFormatConfiguration = (input, context) => {
|
|
1061
|
+
return {
|
|
1062
|
+
...(input.Deserializer != null && { Deserializer: serializeAws_json1_1Deserializer(input.Deserializer, context) }),
|
|
1063
|
+
};
|
|
1064
|
+
};
|
|
1065
|
+
const serializeAws_json1_1KinesisStreamSourceConfiguration = (input, context) => {
|
|
1066
|
+
return {
|
|
1067
|
+
...(input.KinesisStreamARN != null && { KinesisStreamARN: input.KinesisStreamARN }),
|
|
1068
|
+
...(input.RoleARN != null && { RoleARN: input.RoleARN }),
|
|
1069
|
+
};
|
|
1070
|
+
};
|
|
1071
|
+
const serializeAws_json1_1KMSEncryptionConfig = (input, context) => {
|
|
1072
|
+
return {
|
|
1073
|
+
...(input.AWSKMSKeyARN != null && { AWSKMSKeyARN: input.AWSKMSKeyARN }),
|
|
1074
|
+
};
|
|
1075
|
+
};
|
|
1076
|
+
const serializeAws_json1_1ListDeliveryStreamsInput = (input, context) => {
|
|
1077
|
+
return {
|
|
1078
|
+
...(input.DeliveryStreamType != null && { DeliveryStreamType: input.DeliveryStreamType }),
|
|
1079
|
+
...(input.ExclusiveStartDeliveryStreamName != null && {
|
|
1080
|
+
ExclusiveStartDeliveryStreamName: input.ExclusiveStartDeliveryStreamName,
|
|
1081
|
+
}),
|
|
1082
|
+
...(input.Limit != null && { Limit: input.Limit }),
|
|
1083
|
+
};
|
|
1084
|
+
};
|
|
1085
|
+
const serializeAws_json1_1ListOfNonEmptyStrings = (input, context) => {
|
|
1164
1086
|
return input
|
|
1165
|
-
.filter(
|
|
1166
|
-
.map(
|
|
1087
|
+
.filter((e) => e != null)
|
|
1088
|
+
.map((entry) => {
|
|
1167
1089
|
return entry;
|
|
1168
1090
|
});
|
|
1169
1091
|
};
|
|
1170
|
-
|
|
1092
|
+
const serializeAws_json1_1ListOfNonEmptyStringsWithoutWhitespace = (input, context) => {
|
|
1171
1093
|
return input
|
|
1172
|
-
.filter(
|
|
1173
|
-
.map(
|
|
1094
|
+
.filter((e) => e != null)
|
|
1095
|
+
.map((entry) => {
|
|
1174
1096
|
return entry;
|
|
1175
1097
|
});
|
|
1176
1098
|
};
|
|
1177
|
-
|
|
1178
|
-
return
|
|
1179
|
-
}
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
}
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
}
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
}
|
|
1212
|
-
|
|
1099
|
+
const serializeAws_json1_1ListTagsForDeliveryStreamInput = (input, context) => {
|
|
1100
|
+
return {
|
|
1101
|
+
...(input.DeliveryStreamName != null && { DeliveryStreamName: input.DeliveryStreamName }),
|
|
1102
|
+
...(input.ExclusiveStartTagKey != null && { ExclusiveStartTagKey: input.ExclusiveStartTagKey }),
|
|
1103
|
+
...(input.Limit != null && { Limit: input.Limit }),
|
|
1104
|
+
};
|
|
1105
|
+
};
|
|
1106
|
+
const serializeAws_json1_1OpenXJsonSerDe = (input, context) => {
|
|
1107
|
+
return {
|
|
1108
|
+
...(input.CaseInsensitive != null && { CaseInsensitive: input.CaseInsensitive }),
|
|
1109
|
+
...(input.ColumnToJsonKeyMappings != null && {
|
|
1110
|
+
ColumnToJsonKeyMappings: serializeAws_json1_1ColumnToJsonKeyMappings(input.ColumnToJsonKeyMappings, context),
|
|
1111
|
+
}),
|
|
1112
|
+
...(input.ConvertDotsInJsonKeysToUnderscores != null && {
|
|
1113
|
+
ConvertDotsInJsonKeysToUnderscores: input.ConvertDotsInJsonKeysToUnderscores,
|
|
1114
|
+
}),
|
|
1115
|
+
};
|
|
1116
|
+
};
|
|
1117
|
+
const serializeAws_json1_1OrcSerDe = (input, context) => {
|
|
1118
|
+
return {
|
|
1119
|
+
...(input.BlockSizeBytes != null && { BlockSizeBytes: input.BlockSizeBytes }),
|
|
1120
|
+
...(input.BloomFilterColumns != null && {
|
|
1121
|
+
BloomFilterColumns: serializeAws_json1_1ListOfNonEmptyStringsWithoutWhitespace(input.BloomFilterColumns, context),
|
|
1122
|
+
}),
|
|
1123
|
+
...(input.BloomFilterFalsePositiveProbability != null && {
|
|
1124
|
+
BloomFilterFalsePositiveProbability: __serializeFloat(input.BloomFilterFalsePositiveProbability),
|
|
1125
|
+
}),
|
|
1126
|
+
...(input.Compression != null && { Compression: input.Compression }),
|
|
1127
|
+
...(input.DictionaryKeyThreshold != null && {
|
|
1128
|
+
DictionaryKeyThreshold: __serializeFloat(input.DictionaryKeyThreshold),
|
|
1129
|
+
}),
|
|
1130
|
+
...(input.EnablePadding != null && { EnablePadding: input.EnablePadding }),
|
|
1131
|
+
...(input.FormatVersion != null && { FormatVersion: input.FormatVersion }),
|
|
1132
|
+
...(input.PaddingTolerance != null && { PaddingTolerance: __serializeFloat(input.PaddingTolerance) }),
|
|
1133
|
+
...(input.RowIndexStride != null && { RowIndexStride: input.RowIndexStride }),
|
|
1134
|
+
...(input.StripeSizeBytes != null && { StripeSizeBytes: input.StripeSizeBytes }),
|
|
1135
|
+
};
|
|
1136
|
+
};
|
|
1137
|
+
const serializeAws_json1_1OutputFormatConfiguration = (input, context) => {
|
|
1138
|
+
return {
|
|
1139
|
+
...(input.Serializer != null && { Serializer: serializeAws_json1_1Serializer(input.Serializer, context) }),
|
|
1140
|
+
};
|
|
1141
|
+
};
|
|
1142
|
+
const serializeAws_json1_1ParquetSerDe = (input, context) => {
|
|
1143
|
+
return {
|
|
1144
|
+
...(input.BlockSizeBytes != null && { BlockSizeBytes: input.BlockSizeBytes }),
|
|
1145
|
+
...(input.Compression != null && { Compression: input.Compression }),
|
|
1146
|
+
...(input.EnableDictionaryCompression != null && {
|
|
1147
|
+
EnableDictionaryCompression: input.EnableDictionaryCompression,
|
|
1148
|
+
}),
|
|
1149
|
+
...(input.MaxPaddingBytes != null && { MaxPaddingBytes: input.MaxPaddingBytes }),
|
|
1150
|
+
...(input.PageSizeBytes != null && { PageSizeBytes: input.PageSizeBytes }),
|
|
1151
|
+
...(input.WriterVersion != null && { WriterVersion: input.WriterVersion }),
|
|
1152
|
+
};
|
|
1153
|
+
};
|
|
1154
|
+
const serializeAws_json1_1ProcessingConfiguration = (input, context) => {
|
|
1155
|
+
return {
|
|
1156
|
+
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
1157
|
+
...(input.Processors != null && { Processors: serializeAws_json1_1ProcessorList(input.Processors, context) }),
|
|
1158
|
+
};
|
|
1159
|
+
};
|
|
1160
|
+
const serializeAws_json1_1Processor = (input, context) => {
|
|
1161
|
+
return {
|
|
1162
|
+
...(input.Parameters != null && {
|
|
1163
|
+
Parameters: serializeAws_json1_1ProcessorParameterList(input.Parameters, context),
|
|
1164
|
+
}),
|
|
1165
|
+
...(input.Type != null && { Type: input.Type }),
|
|
1166
|
+
};
|
|
1167
|
+
};
|
|
1168
|
+
const serializeAws_json1_1ProcessorList = (input, context) => {
|
|
1213
1169
|
return input
|
|
1214
|
-
.filter(
|
|
1215
|
-
.map(
|
|
1170
|
+
.filter((e) => e != null)
|
|
1171
|
+
.map((entry) => {
|
|
1216
1172
|
return serializeAws_json1_1Processor(entry, context);
|
|
1217
1173
|
});
|
|
1218
1174
|
};
|
|
1219
|
-
|
|
1220
|
-
return
|
|
1175
|
+
const serializeAws_json1_1ProcessorParameter = (input, context) => {
|
|
1176
|
+
return {
|
|
1177
|
+
...(input.ParameterName != null && { ParameterName: input.ParameterName }),
|
|
1178
|
+
...(input.ParameterValue != null && { ParameterValue: input.ParameterValue }),
|
|
1179
|
+
};
|
|
1221
1180
|
};
|
|
1222
|
-
|
|
1181
|
+
const serializeAws_json1_1ProcessorParameterList = (input, context) => {
|
|
1223
1182
|
return input
|
|
1224
|
-
.filter(
|
|
1225
|
-
.map(
|
|
1183
|
+
.filter((e) => e != null)
|
|
1184
|
+
.map((entry) => {
|
|
1226
1185
|
return serializeAws_json1_1ProcessorParameter(entry, context);
|
|
1227
1186
|
});
|
|
1228
1187
|
};
|
|
1229
|
-
|
|
1230
|
-
return
|
|
1231
|
-
|
|
1232
|
-
|
|
1188
|
+
const serializeAws_json1_1PutRecordBatchInput = (input, context) => {
|
|
1189
|
+
return {
|
|
1190
|
+
...(input.DeliveryStreamName != null && { DeliveryStreamName: input.DeliveryStreamName }),
|
|
1191
|
+
...(input.Records != null && {
|
|
1192
|
+
Records: serializeAws_json1_1PutRecordBatchRequestEntryList(input.Records, context),
|
|
1193
|
+
}),
|
|
1194
|
+
};
|
|
1233
1195
|
};
|
|
1234
|
-
|
|
1196
|
+
const serializeAws_json1_1PutRecordBatchRequestEntryList = (input, context) => {
|
|
1235
1197
|
return input
|
|
1236
|
-
.filter(
|
|
1237
|
-
.map(
|
|
1198
|
+
.filter((e) => e != null)
|
|
1199
|
+
.map((entry) => {
|
|
1238
1200
|
return serializeAws_json1_1_Record(entry, context);
|
|
1239
1201
|
});
|
|
1240
1202
|
};
|
|
1241
|
-
|
|
1242
|
-
return
|
|
1243
|
-
}
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
};
|
|
1247
|
-
|
|
1248
|
-
return
|
|
1249
|
-
|
|
1250
|
-
}
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
}
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
}
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
}
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
};
|
|
1277
|
-
|
|
1278
|
-
return
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
}
|
|
1298
|
-
|
|
1203
|
+
const serializeAws_json1_1PutRecordInput = (input, context) => {
|
|
1204
|
+
return {
|
|
1205
|
+
...(input.DeliveryStreamName != null && { DeliveryStreamName: input.DeliveryStreamName }),
|
|
1206
|
+
...(input.Record != null && { Record: serializeAws_json1_1_Record(input.Record, context) }),
|
|
1207
|
+
};
|
|
1208
|
+
};
|
|
1209
|
+
const serializeAws_json1_1_Record = (input, context) => {
|
|
1210
|
+
return {
|
|
1211
|
+
...(input.Data != null && { Data: context.base64Encoder(input.Data) }),
|
|
1212
|
+
};
|
|
1213
|
+
};
|
|
1214
|
+
const serializeAws_json1_1RedshiftDestinationConfiguration = (input, context) => {
|
|
1215
|
+
return {
|
|
1216
|
+
...(input.CloudWatchLoggingOptions != null && {
|
|
1217
|
+
CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
|
|
1218
|
+
}),
|
|
1219
|
+
...(input.ClusterJDBCURL != null && { ClusterJDBCURL: input.ClusterJDBCURL }),
|
|
1220
|
+
...(input.CopyCommand != null && { CopyCommand: serializeAws_json1_1CopyCommand(input.CopyCommand, context) }),
|
|
1221
|
+
...(input.Password != null && { Password: input.Password }),
|
|
1222
|
+
...(input.ProcessingConfiguration != null && {
|
|
1223
|
+
ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context),
|
|
1224
|
+
}),
|
|
1225
|
+
...(input.RetryOptions != null && {
|
|
1226
|
+
RetryOptions: serializeAws_json1_1RedshiftRetryOptions(input.RetryOptions, context),
|
|
1227
|
+
}),
|
|
1228
|
+
...(input.RoleARN != null && { RoleARN: input.RoleARN }),
|
|
1229
|
+
...(input.S3BackupConfiguration != null && {
|
|
1230
|
+
S3BackupConfiguration: serializeAws_json1_1S3DestinationConfiguration(input.S3BackupConfiguration, context),
|
|
1231
|
+
}),
|
|
1232
|
+
...(input.S3BackupMode != null && { S3BackupMode: input.S3BackupMode }),
|
|
1233
|
+
...(input.S3Configuration != null && {
|
|
1234
|
+
S3Configuration: serializeAws_json1_1S3DestinationConfiguration(input.S3Configuration, context),
|
|
1235
|
+
}),
|
|
1236
|
+
...(input.Username != null && { Username: input.Username }),
|
|
1237
|
+
};
|
|
1238
|
+
};
|
|
1239
|
+
const serializeAws_json1_1RedshiftDestinationUpdate = (input, context) => {
|
|
1240
|
+
return {
|
|
1241
|
+
...(input.CloudWatchLoggingOptions != null && {
|
|
1242
|
+
CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
|
|
1243
|
+
}),
|
|
1244
|
+
...(input.ClusterJDBCURL != null && { ClusterJDBCURL: input.ClusterJDBCURL }),
|
|
1245
|
+
...(input.CopyCommand != null && { CopyCommand: serializeAws_json1_1CopyCommand(input.CopyCommand, context) }),
|
|
1246
|
+
...(input.Password != null && { Password: input.Password }),
|
|
1247
|
+
...(input.ProcessingConfiguration != null && {
|
|
1248
|
+
ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context),
|
|
1249
|
+
}),
|
|
1250
|
+
...(input.RetryOptions != null && {
|
|
1251
|
+
RetryOptions: serializeAws_json1_1RedshiftRetryOptions(input.RetryOptions, context),
|
|
1252
|
+
}),
|
|
1253
|
+
...(input.RoleARN != null && { RoleARN: input.RoleARN }),
|
|
1254
|
+
...(input.S3BackupMode != null && { S3BackupMode: input.S3BackupMode }),
|
|
1255
|
+
...(input.S3BackupUpdate != null && {
|
|
1256
|
+
S3BackupUpdate: serializeAws_json1_1S3DestinationUpdate(input.S3BackupUpdate, context),
|
|
1257
|
+
}),
|
|
1258
|
+
...(input.S3Update != null && { S3Update: serializeAws_json1_1S3DestinationUpdate(input.S3Update, context) }),
|
|
1259
|
+
...(input.Username != null && { Username: input.Username }),
|
|
1260
|
+
};
|
|
1261
|
+
};
|
|
1262
|
+
const serializeAws_json1_1RedshiftRetryOptions = (input, context) => {
|
|
1263
|
+
return {
|
|
1264
|
+
...(input.DurationInSeconds != null && { DurationInSeconds: input.DurationInSeconds }),
|
|
1265
|
+
};
|
|
1266
|
+
};
|
|
1267
|
+
const serializeAws_json1_1RetryOptions = (input, context) => {
|
|
1268
|
+
return {
|
|
1269
|
+
...(input.DurationInSeconds != null && { DurationInSeconds: input.DurationInSeconds }),
|
|
1270
|
+
};
|
|
1271
|
+
};
|
|
1272
|
+
const serializeAws_json1_1S3DestinationConfiguration = (input, context) => {
|
|
1273
|
+
return {
|
|
1274
|
+
...(input.BucketARN != null && { BucketARN: input.BucketARN }),
|
|
1275
|
+
...(input.BufferingHints != null && {
|
|
1276
|
+
BufferingHints: serializeAws_json1_1BufferingHints(input.BufferingHints, context),
|
|
1277
|
+
}),
|
|
1278
|
+
...(input.CloudWatchLoggingOptions != null && {
|
|
1279
|
+
CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
|
|
1280
|
+
}),
|
|
1281
|
+
...(input.CompressionFormat != null && { CompressionFormat: input.CompressionFormat }),
|
|
1282
|
+
...(input.EncryptionConfiguration != null && {
|
|
1283
|
+
EncryptionConfiguration: serializeAws_json1_1EncryptionConfiguration(input.EncryptionConfiguration, context),
|
|
1284
|
+
}),
|
|
1285
|
+
...(input.ErrorOutputPrefix != null && { ErrorOutputPrefix: input.ErrorOutputPrefix }),
|
|
1286
|
+
...(input.Prefix != null && { Prefix: input.Prefix }),
|
|
1287
|
+
...(input.RoleARN != null && { RoleARN: input.RoleARN }),
|
|
1288
|
+
};
|
|
1289
|
+
};
|
|
1290
|
+
const serializeAws_json1_1S3DestinationUpdate = (input, context) => {
|
|
1291
|
+
return {
|
|
1292
|
+
...(input.BucketARN != null && { BucketARN: input.BucketARN }),
|
|
1293
|
+
...(input.BufferingHints != null && {
|
|
1294
|
+
BufferingHints: serializeAws_json1_1BufferingHints(input.BufferingHints, context),
|
|
1295
|
+
}),
|
|
1296
|
+
...(input.CloudWatchLoggingOptions != null && {
|
|
1297
|
+
CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
|
|
1298
|
+
}),
|
|
1299
|
+
...(input.CompressionFormat != null && { CompressionFormat: input.CompressionFormat }),
|
|
1300
|
+
...(input.EncryptionConfiguration != null && {
|
|
1301
|
+
EncryptionConfiguration: serializeAws_json1_1EncryptionConfiguration(input.EncryptionConfiguration, context),
|
|
1302
|
+
}),
|
|
1303
|
+
...(input.ErrorOutputPrefix != null && { ErrorOutputPrefix: input.ErrorOutputPrefix }),
|
|
1304
|
+
...(input.Prefix != null && { Prefix: input.Prefix }),
|
|
1305
|
+
...(input.RoleARN != null && { RoleARN: input.RoleARN }),
|
|
1306
|
+
};
|
|
1307
|
+
};
|
|
1308
|
+
const serializeAws_json1_1SchemaConfiguration = (input, context) => {
|
|
1309
|
+
return {
|
|
1310
|
+
...(input.CatalogId != null && { CatalogId: input.CatalogId }),
|
|
1311
|
+
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
1312
|
+
...(input.Region != null && { Region: input.Region }),
|
|
1313
|
+
...(input.RoleARN != null && { RoleARN: input.RoleARN }),
|
|
1314
|
+
...(input.TableName != null && { TableName: input.TableName }),
|
|
1315
|
+
...(input.VersionId != null && { VersionId: input.VersionId }),
|
|
1316
|
+
};
|
|
1317
|
+
};
|
|
1318
|
+
const serializeAws_json1_1SecurityGroupIdList = (input, context) => {
|
|
1299
1319
|
return input
|
|
1300
|
-
.filter(
|
|
1301
|
-
.map(
|
|
1320
|
+
.filter((e) => e != null)
|
|
1321
|
+
.map((entry) => {
|
|
1302
1322
|
return entry;
|
|
1303
1323
|
});
|
|
1304
1324
|
};
|
|
1305
|
-
|
|
1306
|
-
return
|
|
1307
|
-
}
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
}
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
}
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
}
|
|
1343
|
-
|
|
1325
|
+
const serializeAws_json1_1Serializer = (input, context) => {
|
|
1326
|
+
return {
|
|
1327
|
+
...(input.OrcSerDe != null && { OrcSerDe: serializeAws_json1_1OrcSerDe(input.OrcSerDe, context) }),
|
|
1328
|
+
...(input.ParquetSerDe != null && { ParquetSerDe: serializeAws_json1_1ParquetSerDe(input.ParquetSerDe, context) }),
|
|
1329
|
+
};
|
|
1330
|
+
};
|
|
1331
|
+
const serializeAws_json1_1SplunkDestinationConfiguration = (input, context) => {
|
|
1332
|
+
return {
|
|
1333
|
+
...(input.CloudWatchLoggingOptions != null && {
|
|
1334
|
+
CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
|
|
1335
|
+
}),
|
|
1336
|
+
...(input.HECAcknowledgmentTimeoutInSeconds != null && {
|
|
1337
|
+
HECAcknowledgmentTimeoutInSeconds: input.HECAcknowledgmentTimeoutInSeconds,
|
|
1338
|
+
}),
|
|
1339
|
+
...(input.HECEndpoint != null && { HECEndpoint: input.HECEndpoint }),
|
|
1340
|
+
...(input.HECEndpointType != null && { HECEndpointType: input.HECEndpointType }),
|
|
1341
|
+
...(input.HECToken != null && { HECToken: input.HECToken }),
|
|
1342
|
+
...(input.ProcessingConfiguration != null && {
|
|
1343
|
+
ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context),
|
|
1344
|
+
}),
|
|
1345
|
+
...(input.RetryOptions != null && {
|
|
1346
|
+
RetryOptions: serializeAws_json1_1SplunkRetryOptions(input.RetryOptions, context),
|
|
1347
|
+
}),
|
|
1348
|
+
...(input.S3BackupMode != null && { S3BackupMode: input.S3BackupMode }),
|
|
1349
|
+
...(input.S3Configuration != null && {
|
|
1350
|
+
S3Configuration: serializeAws_json1_1S3DestinationConfiguration(input.S3Configuration, context),
|
|
1351
|
+
}),
|
|
1352
|
+
};
|
|
1353
|
+
};
|
|
1354
|
+
const serializeAws_json1_1SplunkDestinationUpdate = (input, context) => {
|
|
1355
|
+
return {
|
|
1356
|
+
...(input.CloudWatchLoggingOptions != null && {
|
|
1357
|
+
CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
|
|
1358
|
+
}),
|
|
1359
|
+
...(input.HECAcknowledgmentTimeoutInSeconds != null && {
|
|
1360
|
+
HECAcknowledgmentTimeoutInSeconds: input.HECAcknowledgmentTimeoutInSeconds,
|
|
1361
|
+
}),
|
|
1362
|
+
...(input.HECEndpoint != null && { HECEndpoint: input.HECEndpoint }),
|
|
1363
|
+
...(input.HECEndpointType != null && { HECEndpointType: input.HECEndpointType }),
|
|
1364
|
+
...(input.HECToken != null && { HECToken: input.HECToken }),
|
|
1365
|
+
...(input.ProcessingConfiguration != null && {
|
|
1366
|
+
ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context),
|
|
1367
|
+
}),
|
|
1368
|
+
...(input.RetryOptions != null && {
|
|
1369
|
+
RetryOptions: serializeAws_json1_1SplunkRetryOptions(input.RetryOptions, context),
|
|
1370
|
+
}),
|
|
1371
|
+
...(input.S3BackupMode != null && { S3BackupMode: input.S3BackupMode }),
|
|
1372
|
+
...(input.S3Update != null && { S3Update: serializeAws_json1_1S3DestinationUpdate(input.S3Update, context) }),
|
|
1373
|
+
};
|
|
1374
|
+
};
|
|
1375
|
+
const serializeAws_json1_1SplunkRetryOptions = (input, context) => {
|
|
1376
|
+
return {
|
|
1377
|
+
...(input.DurationInSeconds != null && { DurationInSeconds: input.DurationInSeconds }),
|
|
1378
|
+
};
|
|
1379
|
+
};
|
|
1380
|
+
const serializeAws_json1_1StartDeliveryStreamEncryptionInput = (input, context) => {
|
|
1381
|
+
return {
|
|
1382
|
+
...(input.DeliveryStreamEncryptionConfigurationInput != null && {
|
|
1383
|
+
DeliveryStreamEncryptionConfigurationInput: serializeAws_json1_1DeliveryStreamEncryptionConfigurationInput(input.DeliveryStreamEncryptionConfigurationInput, context),
|
|
1384
|
+
}),
|
|
1385
|
+
...(input.DeliveryStreamName != null && { DeliveryStreamName: input.DeliveryStreamName }),
|
|
1386
|
+
};
|
|
1387
|
+
};
|
|
1388
|
+
const serializeAws_json1_1StopDeliveryStreamEncryptionInput = (input, context) => {
|
|
1389
|
+
return {
|
|
1390
|
+
...(input.DeliveryStreamName != null && { DeliveryStreamName: input.DeliveryStreamName }),
|
|
1391
|
+
};
|
|
1392
|
+
};
|
|
1393
|
+
const serializeAws_json1_1SubnetIdList = (input, context) => {
|
|
1344
1394
|
return input
|
|
1345
|
-
.filter(
|
|
1346
|
-
.map(
|
|
1395
|
+
.filter((e) => e != null)
|
|
1396
|
+
.map((entry) => {
|
|
1347
1397
|
return entry;
|
|
1348
1398
|
});
|
|
1349
1399
|
};
|
|
1350
|
-
|
|
1351
|
-
return
|
|
1400
|
+
const serializeAws_json1_1Tag = (input, context) => {
|
|
1401
|
+
return {
|
|
1402
|
+
...(input.Key != null && { Key: input.Key }),
|
|
1403
|
+
...(input.Value != null && { Value: input.Value }),
|
|
1404
|
+
};
|
|
1352
1405
|
};
|
|
1353
|
-
|
|
1354
|
-
return
|
|
1406
|
+
const serializeAws_json1_1TagDeliveryStreamInput = (input, context) => {
|
|
1407
|
+
return {
|
|
1408
|
+
...(input.DeliveryStreamName != null && { DeliveryStreamName: input.DeliveryStreamName }),
|
|
1409
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagDeliveryStreamInputTagList(input.Tags, context) }),
|
|
1410
|
+
};
|
|
1355
1411
|
};
|
|
1356
|
-
|
|
1412
|
+
const serializeAws_json1_1TagDeliveryStreamInputTagList = (input, context) => {
|
|
1357
1413
|
return input
|
|
1358
|
-
.filter(
|
|
1359
|
-
.map(
|
|
1414
|
+
.filter((e) => e != null)
|
|
1415
|
+
.map((entry) => {
|
|
1360
1416
|
return serializeAws_json1_1Tag(entry, context);
|
|
1361
1417
|
});
|
|
1362
1418
|
};
|
|
1363
|
-
|
|
1419
|
+
const serializeAws_json1_1TagKeyList = (input, context) => {
|
|
1364
1420
|
return input
|
|
1365
|
-
.filter(
|
|
1366
|
-
.map(
|
|
1421
|
+
.filter((e) => e != null)
|
|
1422
|
+
.map((entry) => {
|
|
1367
1423
|
return entry;
|
|
1368
1424
|
});
|
|
1369
1425
|
};
|
|
1370
|
-
|
|
1371
|
-
return
|
|
1372
|
-
}
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
}
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1426
|
+
const serializeAws_json1_1UntagDeliveryStreamInput = (input, context) => {
|
|
1427
|
+
return {
|
|
1428
|
+
...(input.DeliveryStreamName != null && { DeliveryStreamName: input.DeliveryStreamName }),
|
|
1429
|
+
...(input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }),
|
|
1430
|
+
};
|
|
1431
|
+
};
|
|
1432
|
+
const serializeAws_json1_1UpdateDestinationInput = (input, context) => {
|
|
1433
|
+
return {
|
|
1434
|
+
...(input.AmazonopensearchserviceDestinationUpdate != null && {
|
|
1435
|
+
AmazonopensearchserviceDestinationUpdate: serializeAws_json1_1AmazonopensearchserviceDestinationUpdate(input.AmazonopensearchserviceDestinationUpdate, context),
|
|
1436
|
+
}),
|
|
1437
|
+
...(input.CurrentDeliveryStreamVersionId != null && {
|
|
1438
|
+
CurrentDeliveryStreamVersionId: input.CurrentDeliveryStreamVersionId,
|
|
1439
|
+
}),
|
|
1440
|
+
...(input.DeliveryStreamName != null && { DeliveryStreamName: input.DeliveryStreamName }),
|
|
1441
|
+
...(input.DestinationId != null && { DestinationId: input.DestinationId }),
|
|
1442
|
+
...(input.ElasticsearchDestinationUpdate != null && {
|
|
1443
|
+
ElasticsearchDestinationUpdate: serializeAws_json1_1ElasticsearchDestinationUpdate(input.ElasticsearchDestinationUpdate, context),
|
|
1444
|
+
}),
|
|
1445
|
+
...(input.ExtendedS3DestinationUpdate != null && {
|
|
1446
|
+
ExtendedS3DestinationUpdate: serializeAws_json1_1ExtendedS3DestinationUpdate(input.ExtendedS3DestinationUpdate, context),
|
|
1447
|
+
}),
|
|
1448
|
+
...(input.HttpEndpointDestinationUpdate != null && {
|
|
1449
|
+
HttpEndpointDestinationUpdate: serializeAws_json1_1HttpEndpointDestinationUpdate(input.HttpEndpointDestinationUpdate, context),
|
|
1450
|
+
}),
|
|
1451
|
+
...(input.RedshiftDestinationUpdate != null && {
|
|
1452
|
+
RedshiftDestinationUpdate: serializeAws_json1_1RedshiftDestinationUpdate(input.RedshiftDestinationUpdate, context),
|
|
1453
|
+
}),
|
|
1454
|
+
...(input.S3DestinationUpdate != null && {
|
|
1455
|
+
S3DestinationUpdate: serializeAws_json1_1S3DestinationUpdate(input.S3DestinationUpdate, context),
|
|
1456
|
+
}),
|
|
1457
|
+
...(input.SplunkDestinationUpdate != null && {
|
|
1458
|
+
SplunkDestinationUpdate: serializeAws_json1_1SplunkDestinationUpdate(input.SplunkDestinationUpdate, context),
|
|
1459
|
+
}),
|
|
1460
|
+
};
|
|
1461
|
+
};
|
|
1462
|
+
const serializeAws_json1_1VpcConfiguration = (input, context) => {
|
|
1463
|
+
return {
|
|
1464
|
+
...(input.RoleARN != null && { RoleARN: input.RoleARN }),
|
|
1465
|
+
...(input.SecurityGroupIds != null && {
|
|
1466
|
+
SecurityGroupIds: serializeAws_json1_1SecurityGroupIdList(input.SecurityGroupIds, context),
|
|
1467
|
+
}),
|
|
1468
|
+
...(input.SubnetIds != null && { SubnetIds: serializeAws_json1_1SubnetIdList(input.SubnetIds, context) }),
|
|
1469
|
+
};
|
|
1470
|
+
};
|
|
1471
|
+
const deserializeAws_json1_1AmazonopensearchserviceBufferingHints = (output, context) => {
|
|
1398
1472
|
return {
|
|
1399
1473
|
IntervalInSeconds: __expectInt32(output.IntervalInSeconds),
|
|
1400
1474
|
SizeInMBs: __expectInt32(output.SizeInMBs),
|
|
1401
1475
|
};
|
|
1402
1476
|
};
|
|
1403
|
-
|
|
1477
|
+
const deserializeAws_json1_1AmazonopensearchserviceDestinationDescription = (output, context) => {
|
|
1404
1478
|
return {
|
|
1405
1479
|
BufferingHints: output.BufferingHints != null
|
|
1406
1480
|
? deserializeAws_json1_1AmazonopensearchserviceBufferingHints(output.BufferingHints, context)
|
|
@@ -1429,52 +1503,53 @@ var deserializeAws_json1_1AmazonopensearchserviceDestinationDescription = functi
|
|
|
1429
1503
|
: undefined,
|
|
1430
1504
|
};
|
|
1431
1505
|
};
|
|
1432
|
-
|
|
1506
|
+
const deserializeAws_json1_1AmazonopensearchserviceRetryOptions = (output, context) => {
|
|
1433
1507
|
return {
|
|
1434
1508
|
DurationInSeconds: __expectInt32(output.DurationInSeconds),
|
|
1435
1509
|
};
|
|
1436
1510
|
};
|
|
1437
|
-
|
|
1511
|
+
const deserializeAws_json1_1BufferingHints = (output, context) => {
|
|
1438
1512
|
return {
|
|
1439
1513
|
IntervalInSeconds: __expectInt32(output.IntervalInSeconds),
|
|
1440
1514
|
SizeInMBs: __expectInt32(output.SizeInMBs),
|
|
1441
1515
|
};
|
|
1442
1516
|
};
|
|
1443
|
-
|
|
1517
|
+
const deserializeAws_json1_1CloudWatchLoggingOptions = (output, context) => {
|
|
1444
1518
|
return {
|
|
1445
1519
|
Enabled: __expectBoolean(output.Enabled),
|
|
1446
1520
|
LogGroupName: __expectString(output.LogGroupName),
|
|
1447
1521
|
LogStreamName: __expectString(output.LogStreamName),
|
|
1448
1522
|
};
|
|
1449
1523
|
};
|
|
1450
|
-
|
|
1451
|
-
return Object.entries(output).reduce(
|
|
1452
|
-
var _b;
|
|
1453
|
-
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
1524
|
+
const deserializeAws_json1_1ColumnToJsonKeyMappings = (output, context) => {
|
|
1525
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1454
1526
|
if (value === null) {
|
|
1455
1527
|
return acc;
|
|
1456
1528
|
}
|
|
1457
|
-
return
|
|
1529
|
+
return {
|
|
1530
|
+
...acc,
|
|
1531
|
+
[key]: __expectString(value),
|
|
1532
|
+
};
|
|
1458
1533
|
}, {});
|
|
1459
1534
|
};
|
|
1460
|
-
|
|
1535
|
+
const deserializeAws_json1_1ConcurrentModificationException = (output, context) => {
|
|
1461
1536
|
return {
|
|
1462
1537
|
message: __expectString(output.message),
|
|
1463
1538
|
};
|
|
1464
1539
|
};
|
|
1465
|
-
|
|
1540
|
+
const deserializeAws_json1_1CopyCommand = (output, context) => {
|
|
1466
1541
|
return {
|
|
1467
1542
|
CopyOptions: __expectString(output.CopyOptions),
|
|
1468
1543
|
DataTableColumns: __expectString(output.DataTableColumns),
|
|
1469
1544
|
DataTableName: __expectString(output.DataTableName),
|
|
1470
1545
|
};
|
|
1471
1546
|
};
|
|
1472
|
-
|
|
1547
|
+
const deserializeAws_json1_1CreateDeliveryStreamOutput = (output, context) => {
|
|
1473
1548
|
return {
|
|
1474
1549
|
DeliveryStreamARN: __expectString(output.DeliveryStreamARN),
|
|
1475
1550
|
};
|
|
1476
1551
|
};
|
|
1477
|
-
|
|
1552
|
+
const deserializeAws_json1_1DataFormatConversionConfiguration = (output, context) => {
|
|
1478
1553
|
return {
|
|
1479
1554
|
Enabled: __expectBoolean(output.Enabled),
|
|
1480
1555
|
InputFormatConfiguration: output.InputFormatConfiguration != null
|
|
@@ -1488,10 +1563,10 @@ var deserializeAws_json1_1DataFormatConversionConfiguration = function (output,
|
|
|
1488
1563
|
: undefined,
|
|
1489
1564
|
};
|
|
1490
1565
|
};
|
|
1491
|
-
|
|
1566
|
+
const deserializeAws_json1_1DeleteDeliveryStreamOutput = (output, context) => {
|
|
1492
1567
|
return {};
|
|
1493
1568
|
};
|
|
1494
|
-
|
|
1569
|
+
const deserializeAws_json1_1DeliveryStreamDescription = (output, context) => {
|
|
1495
1570
|
return {
|
|
1496
1571
|
CreateTimestamp: output.CreateTimestamp != null
|
|
1497
1572
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreateTimestamp)))
|
|
@@ -1517,7 +1592,7 @@ var deserializeAws_json1_1DeliveryStreamDescription = function (output, context)
|
|
|
1517
1592
|
VersionId: __expectString(output.VersionId),
|
|
1518
1593
|
};
|
|
1519
1594
|
};
|
|
1520
|
-
|
|
1595
|
+
const deserializeAws_json1_1DeliveryStreamEncryptionConfiguration = (output, context) => {
|
|
1521
1596
|
return {
|
|
1522
1597
|
FailureDescription: output.FailureDescription != null
|
|
1523
1598
|
? deserializeAws_json1_1FailureDescription(output.FailureDescription, context)
|
|
@@ -1527,10 +1602,10 @@ var deserializeAws_json1_1DeliveryStreamEncryptionConfiguration = function (outp
|
|
|
1527
1602
|
Status: __expectString(output.Status),
|
|
1528
1603
|
};
|
|
1529
1604
|
};
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
.filter(
|
|
1533
|
-
.map(
|
|
1605
|
+
const deserializeAws_json1_1DeliveryStreamNameList = (output, context) => {
|
|
1606
|
+
const retVal = (output || [])
|
|
1607
|
+
.filter((e) => e != null)
|
|
1608
|
+
.map((entry) => {
|
|
1534
1609
|
if (entry === null) {
|
|
1535
1610
|
return null;
|
|
1536
1611
|
}
|
|
@@ -1538,20 +1613,20 @@ var deserializeAws_json1_1DeliveryStreamNameList = function (output, context) {
|
|
|
1538
1613
|
});
|
|
1539
1614
|
return retVal;
|
|
1540
1615
|
};
|
|
1541
|
-
|
|
1616
|
+
const deserializeAws_json1_1DescribeDeliveryStreamOutput = (output, context) => {
|
|
1542
1617
|
return {
|
|
1543
1618
|
DeliveryStreamDescription: output.DeliveryStreamDescription != null
|
|
1544
1619
|
? deserializeAws_json1_1DeliveryStreamDescription(output.DeliveryStreamDescription, context)
|
|
1545
1620
|
: undefined,
|
|
1546
1621
|
};
|
|
1547
1622
|
};
|
|
1548
|
-
|
|
1623
|
+
const deserializeAws_json1_1Deserializer = (output, context) => {
|
|
1549
1624
|
return {
|
|
1550
1625
|
HiveJsonSerDe: output.HiveJsonSerDe != null ? deserializeAws_json1_1HiveJsonSerDe(output.HiveJsonSerDe, context) : undefined,
|
|
1551
1626
|
OpenXJsonSerDe: output.OpenXJsonSerDe != null ? deserializeAws_json1_1OpenXJsonSerDe(output.OpenXJsonSerDe, context) : undefined,
|
|
1552
1627
|
};
|
|
1553
1628
|
};
|
|
1554
|
-
|
|
1629
|
+
const deserializeAws_json1_1DestinationDescription = (output, context) => {
|
|
1555
1630
|
return {
|
|
1556
1631
|
AmazonopensearchserviceDestinationDescription: output.AmazonopensearchserviceDestinationDescription != null
|
|
1557
1632
|
? deserializeAws_json1_1AmazonopensearchserviceDestinationDescription(output.AmazonopensearchserviceDestinationDescription, context)
|
|
@@ -1577,10 +1652,10 @@ var deserializeAws_json1_1DestinationDescription = function (output, context) {
|
|
|
1577
1652
|
: undefined,
|
|
1578
1653
|
};
|
|
1579
1654
|
};
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
.filter(
|
|
1583
|
-
.map(
|
|
1655
|
+
const deserializeAws_json1_1DestinationDescriptionList = (output, context) => {
|
|
1656
|
+
const retVal = (output || [])
|
|
1657
|
+
.filter((e) => e != null)
|
|
1658
|
+
.map((entry) => {
|
|
1584
1659
|
if (entry === null) {
|
|
1585
1660
|
return null;
|
|
1586
1661
|
}
|
|
@@ -1588,19 +1663,19 @@ var deserializeAws_json1_1DestinationDescriptionList = function (output, context
|
|
|
1588
1663
|
});
|
|
1589
1664
|
return retVal;
|
|
1590
1665
|
};
|
|
1591
|
-
|
|
1666
|
+
const deserializeAws_json1_1DynamicPartitioningConfiguration = (output, context) => {
|
|
1592
1667
|
return {
|
|
1593
1668
|
Enabled: __expectBoolean(output.Enabled),
|
|
1594
1669
|
RetryOptions: output.RetryOptions != null ? deserializeAws_json1_1RetryOptions(output.RetryOptions, context) : undefined,
|
|
1595
1670
|
};
|
|
1596
1671
|
};
|
|
1597
|
-
|
|
1672
|
+
const deserializeAws_json1_1ElasticsearchBufferingHints = (output, context) => {
|
|
1598
1673
|
return {
|
|
1599
1674
|
IntervalInSeconds: __expectInt32(output.IntervalInSeconds),
|
|
1600
1675
|
SizeInMBs: __expectInt32(output.SizeInMBs),
|
|
1601
1676
|
};
|
|
1602
1677
|
};
|
|
1603
|
-
|
|
1678
|
+
const deserializeAws_json1_1ElasticsearchDestinationDescription = (output, context) => {
|
|
1604
1679
|
return {
|
|
1605
1680
|
BufferingHints: output.BufferingHints != null
|
|
1606
1681
|
? deserializeAws_json1_1ElasticsearchBufferingHints(output.BufferingHints, context)
|
|
@@ -1629,12 +1704,12 @@ var deserializeAws_json1_1ElasticsearchDestinationDescription = function (output
|
|
|
1629
1704
|
: undefined,
|
|
1630
1705
|
};
|
|
1631
1706
|
};
|
|
1632
|
-
|
|
1707
|
+
const deserializeAws_json1_1ElasticsearchRetryOptions = (output, context) => {
|
|
1633
1708
|
return {
|
|
1634
1709
|
DurationInSeconds: __expectInt32(output.DurationInSeconds),
|
|
1635
1710
|
};
|
|
1636
1711
|
};
|
|
1637
|
-
|
|
1712
|
+
const deserializeAws_json1_1EncryptionConfiguration = (output, context) => {
|
|
1638
1713
|
return {
|
|
1639
1714
|
KMSEncryptionConfig: output.KMSEncryptionConfig != null
|
|
1640
1715
|
? deserializeAws_json1_1KMSEncryptionConfig(output.KMSEncryptionConfig, context)
|
|
@@ -1642,7 +1717,7 @@ var deserializeAws_json1_1EncryptionConfiguration = function (output, context) {
|
|
|
1642
1717
|
NoEncryptionConfig: __expectString(output.NoEncryptionConfig),
|
|
1643
1718
|
};
|
|
1644
1719
|
};
|
|
1645
|
-
|
|
1720
|
+
const deserializeAws_json1_1ExtendedS3DestinationDescription = (output, context) => {
|
|
1646
1721
|
return {
|
|
1647
1722
|
BucketARN: __expectString(output.BucketARN),
|
|
1648
1723
|
BufferingHints: output.BufferingHints != null ? deserializeAws_json1_1BufferingHints(output.BufferingHints, context) : undefined,
|
|
@@ -1671,35 +1746,35 @@ var deserializeAws_json1_1ExtendedS3DestinationDescription = function (output, c
|
|
|
1671
1746
|
S3BackupMode: __expectString(output.S3BackupMode),
|
|
1672
1747
|
};
|
|
1673
1748
|
};
|
|
1674
|
-
|
|
1749
|
+
const deserializeAws_json1_1FailureDescription = (output, context) => {
|
|
1675
1750
|
return {
|
|
1676
1751
|
Details: __expectString(output.Details),
|
|
1677
1752
|
Type: __expectString(output.Type),
|
|
1678
1753
|
};
|
|
1679
1754
|
};
|
|
1680
|
-
|
|
1755
|
+
const deserializeAws_json1_1HiveJsonSerDe = (output, context) => {
|
|
1681
1756
|
return {
|
|
1682
1757
|
TimestampFormats: output.TimestampFormats != null
|
|
1683
1758
|
? deserializeAws_json1_1ListOfNonEmptyStrings(output.TimestampFormats, context)
|
|
1684
1759
|
: undefined,
|
|
1685
1760
|
};
|
|
1686
1761
|
};
|
|
1687
|
-
|
|
1762
|
+
const deserializeAws_json1_1HttpEndpointBufferingHints = (output, context) => {
|
|
1688
1763
|
return {
|
|
1689
1764
|
IntervalInSeconds: __expectInt32(output.IntervalInSeconds),
|
|
1690
1765
|
SizeInMBs: __expectInt32(output.SizeInMBs),
|
|
1691
1766
|
};
|
|
1692
1767
|
};
|
|
1693
|
-
|
|
1768
|
+
const deserializeAws_json1_1HttpEndpointCommonAttribute = (output, context) => {
|
|
1694
1769
|
return {
|
|
1695
1770
|
AttributeName: __expectString(output.AttributeName),
|
|
1696
1771
|
AttributeValue: __expectString(output.AttributeValue),
|
|
1697
1772
|
};
|
|
1698
1773
|
};
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
.filter(
|
|
1702
|
-
.map(
|
|
1774
|
+
const deserializeAws_json1_1HttpEndpointCommonAttributesList = (output, context) => {
|
|
1775
|
+
const retVal = (output || [])
|
|
1776
|
+
.filter((e) => e != null)
|
|
1777
|
+
.map((entry) => {
|
|
1703
1778
|
if (entry === null) {
|
|
1704
1779
|
return null;
|
|
1705
1780
|
}
|
|
@@ -1707,13 +1782,13 @@ var deserializeAws_json1_1HttpEndpointCommonAttributesList = function (output, c
|
|
|
1707
1782
|
});
|
|
1708
1783
|
return retVal;
|
|
1709
1784
|
};
|
|
1710
|
-
|
|
1785
|
+
const deserializeAws_json1_1HttpEndpointDescription = (output, context) => {
|
|
1711
1786
|
return {
|
|
1712
1787
|
Name: __expectString(output.Name),
|
|
1713
1788
|
Url: __expectString(output.Url),
|
|
1714
1789
|
};
|
|
1715
1790
|
};
|
|
1716
|
-
|
|
1791
|
+
const deserializeAws_json1_1HttpEndpointDestinationDescription = (output, context) => {
|
|
1717
1792
|
return {
|
|
1718
1793
|
BufferingHints: output.BufferingHints != null
|
|
1719
1794
|
? deserializeAws_json1_1HttpEndpointBufferingHints(output.BufferingHints, context)
|
|
@@ -1740,7 +1815,7 @@ var deserializeAws_json1_1HttpEndpointDestinationDescription = function (output,
|
|
|
1740
1815
|
: undefined,
|
|
1741
1816
|
};
|
|
1742
1817
|
};
|
|
1743
|
-
|
|
1818
|
+
const deserializeAws_json1_1HttpEndpointRequestConfiguration = (output, context) => {
|
|
1744
1819
|
return {
|
|
1745
1820
|
CommonAttributes: output.CommonAttributes != null
|
|
1746
1821
|
? deserializeAws_json1_1HttpEndpointCommonAttributesList(output.CommonAttributes, context)
|
|
@@ -1748,28 +1823,28 @@ var deserializeAws_json1_1HttpEndpointRequestConfiguration = function (output, c
|
|
|
1748
1823
|
ContentEncoding: __expectString(output.ContentEncoding),
|
|
1749
1824
|
};
|
|
1750
1825
|
};
|
|
1751
|
-
|
|
1826
|
+
const deserializeAws_json1_1HttpEndpointRetryOptions = (output, context) => {
|
|
1752
1827
|
return {
|
|
1753
1828
|
DurationInSeconds: __expectInt32(output.DurationInSeconds),
|
|
1754
1829
|
};
|
|
1755
1830
|
};
|
|
1756
|
-
|
|
1831
|
+
const deserializeAws_json1_1InputFormatConfiguration = (output, context) => {
|
|
1757
1832
|
return {
|
|
1758
1833
|
Deserializer: output.Deserializer != null ? deserializeAws_json1_1Deserializer(output.Deserializer, context) : undefined,
|
|
1759
1834
|
};
|
|
1760
1835
|
};
|
|
1761
|
-
|
|
1836
|
+
const deserializeAws_json1_1InvalidArgumentException = (output, context) => {
|
|
1762
1837
|
return {
|
|
1763
1838
|
message: __expectString(output.message),
|
|
1764
1839
|
};
|
|
1765
1840
|
};
|
|
1766
|
-
|
|
1841
|
+
const deserializeAws_json1_1InvalidKMSResourceException = (output, context) => {
|
|
1767
1842
|
return {
|
|
1768
1843
|
code: __expectString(output.code),
|
|
1769
1844
|
message: __expectString(output.message),
|
|
1770
1845
|
};
|
|
1771
1846
|
};
|
|
1772
|
-
|
|
1847
|
+
const deserializeAws_json1_1KinesisStreamSourceDescription = (output, context) => {
|
|
1773
1848
|
return {
|
|
1774
1849
|
DeliveryStartTimestamp: output.DeliveryStartTimestamp != null
|
|
1775
1850
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.DeliveryStartTimestamp)))
|
|
@@ -1778,17 +1853,17 @@ var deserializeAws_json1_1KinesisStreamSourceDescription = function (output, con
|
|
|
1778
1853
|
RoleARN: __expectString(output.RoleARN),
|
|
1779
1854
|
};
|
|
1780
1855
|
};
|
|
1781
|
-
|
|
1856
|
+
const deserializeAws_json1_1KMSEncryptionConfig = (output, context) => {
|
|
1782
1857
|
return {
|
|
1783
1858
|
AWSKMSKeyARN: __expectString(output.AWSKMSKeyARN),
|
|
1784
1859
|
};
|
|
1785
1860
|
};
|
|
1786
|
-
|
|
1861
|
+
const deserializeAws_json1_1LimitExceededException = (output, context) => {
|
|
1787
1862
|
return {
|
|
1788
1863
|
message: __expectString(output.message),
|
|
1789
1864
|
};
|
|
1790
1865
|
};
|
|
1791
|
-
|
|
1866
|
+
const deserializeAws_json1_1ListDeliveryStreamsOutput = (output, context) => {
|
|
1792
1867
|
return {
|
|
1793
1868
|
DeliveryStreamNames: output.DeliveryStreamNames != null
|
|
1794
1869
|
? deserializeAws_json1_1DeliveryStreamNameList(output.DeliveryStreamNames, context)
|
|
@@ -1796,10 +1871,10 @@ var deserializeAws_json1_1ListDeliveryStreamsOutput = function (output, context)
|
|
|
1796
1871
|
HasMoreDeliveryStreams: __expectBoolean(output.HasMoreDeliveryStreams),
|
|
1797
1872
|
};
|
|
1798
1873
|
};
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
.filter(
|
|
1802
|
-
.map(
|
|
1874
|
+
const deserializeAws_json1_1ListOfNonEmptyStrings = (output, context) => {
|
|
1875
|
+
const retVal = (output || [])
|
|
1876
|
+
.filter((e) => e != null)
|
|
1877
|
+
.map((entry) => {
|
|
1803
1878
|
if (entry === null) {
|
|
1804
1879
|
return null;
|
|
1805
1880
|
}
|
|
@@ -1807,10 +1882,10 @@ var deserializeAws_json1_1ListOfNonEmptyStrings = function (output, context) {
|
|
|
1807
1882
|
});
|
|
1808
1883
|
return retVal;
|
|
1809
1884
|
};
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
.filter(
|
|
1813
|
-
.map(
|
|
1885
|
+
const deserializeAws_json1_1ListOfNonEmptyStringsWithoutWhitespace = (output, context) => {
|
|
1886
|
+
const retVal = (output || [])
|
|
1887
|
+
.filter((e) => e != null)
|
|
1888
|
+
.map((entry) => {
|
|
1814
1889
|
if (entry === null) {
|
|
1815
1890
|
return null;
|
|
1816
1891
|
}
|
|
@@ -1818,7 +1893,7 @@ var deserializeAws_json1_1ListOfNonEmptyStringsWithoutWhitespace = function (out
|
|
|
1818
1893
|
});
|
|
1819
1894
|
return retVal;
|
|
1820
1895
|
};
|
|
1821
|
-
|
|
1896
|
+
const deserializeAws_json1_1ListTagsForDeliveryStreamOutput = (output, context) => {
|
|
1822
1897
|
return {
|
|
1823
1898
|
HasMoreTags: __expectBoolean(output.HasMoreTags),
|
|
1824
1899
|
Tags: output.Tags != null
|
|
@@ -1826,10 +1901,10 @@ var deserializeAws_json1_1ListTagsForDeliveryStreamOutput = function (output, co
|
|
|
1826
1901
|
: undefined,
|
|
1827
1902
|
};
|
|
1828
1903
|
};
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
.filter(
|
|
1832
|
-
.map(
|
|
1904
|
+
const deserializeAws_json1_1ListTagsForDeliveryStreamOutputTagList = (output, context) => {
|
|
1905
|
+
const retVal = (output || [])
|
|
1906
|
+
.filter((e) => e != null)
|
|
1907
|
+
.map((entry) => {
|
|
1833
1908
|
if (entry === null) {
|
|
1834
1909
|
return null;
|
|
1835
1910
|
}
|
|
@@ -1837,7 +1912,7 @@ var deserializeAws_json1_1ListTagsForDeliveryStreamOutputTagList = function (out
|
|
|
1837
1912
|
});
|
|
1838
1913
|
return retVal;
|
|
1839
1914
|
};
|
|
1840
|
-
|
|
1915
|
+
const deserializeAws_json1_1OpenXJsonSerDe = (output, context) => {
|
|
1841
1916
|
return {
|
|
1842
1917
|
CaseInsensitive: __expectBoolean(output.CaseInsensitive),
|
|
1843
1918
|
ColumnToJsonKeyMappings: output.ColumnToJsonKeyMappings != null
|
|
@@ -1846,7 +1921,7 @@ var deserializeAws_json1_1OpenXJsonSerDe = function (output, context) {
|
|
|
1846
1921
|
ConvertDotsInJsonKeysToUnderscores: __expectBoolean(output.ConvertDotsInJsonKeysToUnderscores),
|
|
1847
1922
|
};
|
|
1848
1923
|
};
|
|
1849
|
-
|
|
1924
|
+
const deserializeAws_json1_1OrcSerDe = (output, context) => {
|
|
1850
1925
|
return {
|
|
1851
1926
|
BlockSizeBytes: __expectInt32(output.BlockSizeBytes),
|
|
1852
1927
|
BloomFilterColumns: output.BloomFilterColumns != null
|
|
@@ -1862,12 +1937,12 @@ var deserializeAws_json1_1OrcSerDe = function (output, context) {
|
|
|
1862
1937
|
StripeSizeBytes: __expectInt32(output.StripeSizeBytes),
|
|
1863
1938
|
};
|
|
1864
1939
|
};
|
|
1865
|
-
|
|
1940
|
+
const deserializeAws_json1_1OutputFormatConfiguration = (output, context) => {
|
|
1866
1941
|
return {
|
|
1867
1942
|
Serializer: output.Serializer != null ? deserializeAws_json1_1Serializer(output.Serializer, context) : undefined,
|
|
1868
1943
|
};
|
|
1869
1944
|
};
|
|
1870
|
-
|
|
1945
|
+
const deserializeAws_json1_1ParquetSerDe = (output, context) => {
|
|
1871
1946
|
return {
|
|
1872
1947
|
BlockSizeBytes: __expectInt32(output.BlockSizeBytes),
|
|
1873
1948
|
Compression: __expectString(output.Compression),
|
|
@@ -1877,22 +1952,22 @@ var deserializeAws_json1_1ParquetSerDe = function (output, context) {
|
|
|
1877
1952
|
WriterVersion: __expectString(output.WriterVersion),
|
|
1878
1953
|
};
|
|
1879
1954
|
};
|
|
1880
|
-
|
|
1955
|
+
const deserializeAws_json1_1ProcessingConfiguration = (output, context) => {
|
|
1881
1956
|
return {
|
|
1882
1957
|
Enabled: __expectBoolean(output.Enabled),
|
|
1883
1958
|
Processors: output.Processors != null ? deserializeAws_json1_1ProcessorList(output.Processors, context) : undefined,
|
|
1884
1959
|
};
|
|
1885
1960
|
};
|
|
1886
|
-
|
|
1961
|
+
const deserializeAws_json1_1Processor = (output, context) => {
|
|
1887
1962
|
return {
|
|
1888
1963
|
Parameters: output.Parameters != null ? deserializeAws_json1_1ProcessorParameterList(output.Parameters, context) : undefined,
|
|
1889
1964
|
Type: __expectString(output.Type),
|
|
1890
1965
|
};
|
|
1891
1966
|
};
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
.filter(
|
|
1895
|
-
.map(
|
|
1967
|
+
const deserializeAws_json1_1ProcessorList = (output, context) => {
|
|
1968
|
+
const retVal = (output || [])
|
|
1969
|
+
.filter((e) => e != null)
|
|
1970
|
+
.map((entry) => {
|
|
1896
1971
|
if (entry === null) {
|
|
1897
1972
|
return null;
|
|
1898
1973
|
}
|
|
@@ -1900,16 +1975,16 @@ var deserializeAws_json1_1ProcessorList = function (output, context) {
|
|
|
1900
1975
|
});
|
|
1901
1976
|
return retVal;
|
|
1902
1977
|
};
|
|
1903
|
-
|
|
1978
|
+
const deserializeAws_json1_1ProcessorParameter = (output, context) => {
|
|
1904
1979
|
return {
|
|
1905
1980
|
ParameterName: __expectString(output.ParameterName),
|
|
1906
1981
|
ParameterValue: __expectString(output.ParameterValue),
|
|
1907
1982
|
};
|
|
1908
1983
|
};
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
.filter(
|
|
1912
|
-
.map(
|
|
1984
|
+
const deserializeAws_json1_1ProcessorParameterList = (output, context) => {
|
|
1985
|
+
const retVal = (output || [])
|
|
1986
|
+
.filter((e) => e != null)
|
|
1987
|
+
.map((entry) => {
|
|
1913
1988
|
if (entry === null) {
|
|
1914
1989
|
return null;
|
|
1915
1990
|
}
|
|
@@ -1917,7 +1992,7 @@ var deserializeAws_json1_1ProcessorParameterList = function (output, context) {
|
|
|
1917
1992
|
});
|
|
1918
1993
|
return retVal;
|
|
1919
1994
|
};
|
|
1920
|
-
|
|
1995
|
+
const deserializeAws_json1_1PutRecordBatchOutput = (output, context) => {
|
|
1921
1996
|
return {
|
|
1922
1997
|
Encrypted: __expectBoolean(output.Encrypted),
|
|
1923
1998
|
FailedPutCount: __expectInt32(output.FailedPutCount),
|
|
@@ -1926,17 +2001,17 @@ var deserializeAws_json1_1PutRecordBatchOutput = function (output, context) {
|
|
|
1926
2001
|
: undefined,
|
|
1927
2002
|
};
|
|
1928
2003
|
};
|
|
1929
|
-
|
|
2004
|
+
const deserializeAws_json1_1PutRecordBatchResponseEntry = (output, context) => {
|
|
1930
2005
|
return {
|
|
1931
2006
|
ErrorCode: __expectString(output.ErrorCode),
|
|
1932
2007
|
ErrorMessage: __expectString(output.ErrorMessage),
|
|
1933
2008
|
RecordId: __expectString(output.RecordId),
|
|
1934
2009
|
};
|
|
1935
2010
|
};
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
.filter(
|
|
1939
|
-
.map(
|
|
2011
|
+
const deserializeAws_json1_1PutRecordBatchResponseEntryList = (output, context) => {
|
|
2012
|
+
const retVal = (output || [])
|
|
2013
|
+
.filter((e) => e != null)
|
|
2014
|
+
.map((entry) => {
|
|
1940
2015
|
if (entry === null) {
|
|
1941
2016
|
return null;
|
|
1942
2017
|
}
|
|
@@ -1944,13 +2019,13 @@ var deserializeAws_json1_1PutRecordBatchResponseEntryList = function (output, co
|
|
|
1944
2019
|
});
|
|
1945
2020
|
return retVal;
|
|
1946
2021
|
};
|
|
1947
|
-
|
|
2022
|
+
const deserializeAws_json1_1PutRecordOutput = (output, context) => {
|
|
1948
2023
|
return {
|
|
1949
2024
|
Encrypted: __expectBoolean(output.Encrypted),
|
|
1950
2025
|
RecordId: __expectString(output.RecordId),
|
|
1951
2026
|
};
|
|
1952
2027
|
};
|
|
1953
|
-
|
|
2028
|
+
const deserializeAws_json1_1RedshiftDestinationDescription = (output, context) => {
|
|
1954
2029
|
return {
|
|
1955
2030
|
CloudWatchLoggingOptions: output.CloudWatchLoggingOptions != null
|
|
1956
2031
|
? deserializeAws_json1_1CloudWatchLoggingOptions(output.CloudWatchLoggingOptions, context)
|
|
@@ -1974,27 +2049,27 @@ var deserializeAws_json1_1RedshiftDestinationDescription = function (output, con
|
|
|
1974
2049
|
Username: __expectString(output.Username),
|
|
1975
2050
|
};
|
|
1976
2051
|
};
|
|
1977
|
-
|
|
2052
|
+
const deserializeAws_json1_1RedshiftRetryOptions = (output, context) => {
|
|
1978
2053
|
return {
|
|
1979
2054
|
DurationInSeconds: __expectInt32(output.DurationInSeconds),
|
|
1980
2055
|
};
|
|
1981
2056
|
};
|
|
1982
|
-
|
|
2057
|
+
const deserializeAws_json1_1ResourceInUseException = (output, context) => {
|
|
1983
2058
|
return {
|
|
1984
2059
|
message: __expectString(output.message),
|
|
1985
2060
|
};
|
|
1986
2061
|
};
|
|
1987
|
-
|
|
2062
|
+
const deserializeAws_json1_1ResourceNotFoundException = (output, context) => {
|
|
1988
2063
|
return {
|
|
1989
2064
|
message: __expectString(output.message),
|
|
1990
2065
|
};
|
|
1991
2066
|
};
|
|
1992
|
-
|
|
2067
|
+
const deserializeAws_json1_1RetryOptions = (output, context) => {
|
|
1993
2068
|
return {
|
|
1994
2069
|
DurationInSeconds: __expectInt32(output.DurationInSeconds),
|
|
1995
2070
|
};
|
|
1996
2071
|
};
|
|
1997
|
-
|
|
2072
|
+
const deserializeAws_json1_1S3DestinationDescription = (output, context) => {
|
|
1998
2073
|
return {
|
|
1999
2074
|
BucketARN: __expectString(output.BucketARN),
|
|
2000
2075
|
BufferingHints: output.BufferingHints != null ? deserializeAws_json1_1BufferingHints(output.BufferingHints, context) : undefined,
|
|
@@ -2010,7 +2085,7 @@ var deserializeAws_json1_1S3DestinationDescription = function (output, context)
|
|
|
2010
2085
|
RoleARN: __expectString(output.RoleARN),
|
|
2011
2086
|
};
|
|
2012
2087
|
};
|
|
2013
|
-
|
|
2088
|
+
const deserializeAws_json1_1SchemaConfiguration = (output, context) => {
|
|
2014
2089
|
return {
|
|
2015
2090
|
CatalogId: __expectString(output.CatalogId),
|
|
2016
2091
|
DatabaseName: __expectString(output.DatabaseName),
|
|
@@ -2020,10 +2095,10 @@ var deserializeAws_json1_1SchemaConfiguration = function (output, context) {
|
|
|
2020
2095
|
VersionId: __expectString(output.VersionId),
|
|
2021
2096
|
};
|
|
2022
2097
|
};
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
.filter(
|
|
2026
|
-
.map(
|
|
2098
|
+
const deserializeAws_json1_1SecurityGroupIdList = (output, context) => {
|
|
2099
|
+
const retVal = (output || [])
|
|
2100
|
+
.filter((e) => e != null)
|
|
2101
|
+
.map((entry) => {
|
|
2027
2102
|
if (entry === null) {
|
|
2028
2103
|
return null;
|
|
2029
2104
|
}
|
|
@@ -2031,25 +2106,25 @@ var deserializeAws_json1_1SecurityGroupIdList = function (output, context) {
|
|
|
2031
2106
|
});
|
|
2032
2107
|
return retVal;
|
|
2033
2108
|
};
|
|
2034
|
-
|
|
2109
|
+
const deserializeAws_json1_1Serializer = (output, context) => {
|
|
2035
2110
|
return {
|
|
2036
2111
|
OrcSerDe: output.OrcSerDe != null ? deserializeAws_json1_1OrcSerDe(output.OrcSerDe, context) : undefined,
|
|
2037
2112
|
ParquetSerDe: output.ParquetSerDe != null ? deserializeAws_json1_1ParquetSerDe(output.ParquetSerDe, context) : undefined,
|
|
2038
2113
|
};
|
|
2039
2114
|
};
|
|
2040
|
-
|
|
2115
|
+
const deserializeAws_json1_1ServiceUnavailableException = (output, context) => {
|
|
2041
2116
|
return {
|
|
2042
2117
|
message: __expectString(output.message),
|
|
2043
2118
|
};
|
|
2044
2119
|
};
|
|
2045
|
-
|
|
2120
|
+
const deserializeAws_json1_1SourceDescription = (output, context) => {
|
|
2046
2121
|
return {
|
|
2047
2122
|
KinesisStreamSourceDescription: output.KinesisStreamSourceDescription != null
|
|
2048
2123
|
? deserializeAws_json1_1KinesisStreamSourceDescription(output.KinesisStreamSourceDescription, context)
|
|
2049
2124
|
: undefined,
|
|
2050
2125
|
};
|
|
2051
2126
|
};
|
|
2052
|
-
|
|
2127
|
+
const deserializeAws_json1_1SplunkDestinationDescription = (output, context) => {
|
|
2053
2128
|
return {
|
|
2054
2129
|
CloudWatchLoggingOptions: output.CloudWatchLoggingOptions != null
|
|
2055
2130
|
? deserializeAws_json1_1CloudWatchLoggingOptions(output.CloudWatchLoggingOptions, context)
|
|
@@ -2068,21 +2143,21 @@ var deserializeAws_json1_1SplunkDestinationDescription = function (output, conte
|
|
|
2068
2143
|
: undefined,
|
|
2069
2144
|
};
|
|
2070
2145
|
};
|
|
2071
|
-
|
|
2146
|
+
const deserializeAws_json1_1SplunkRetryOptions = (output, context) => {
|
|
2072
2147
|
return {
|
|
2073
2148
|
DurationInSeconds: __expectInt32(output.DurationInSeconds),
|
|
2074
2149
|
};
|
|
2075
2150
|
};
|
|
2076
|
-
|
|
2151
|
+
const deserializeAws_json1_1StartDeliveryStreamEncryptionOutput = (output, context) => {
|
|
2077
2152
|
return {};
|
|
2078
2153
|
};
|
|
2079
|
-
|
|
2154
|
+
const deserializeAws_json1_1StopDeliveryStreamEncryptionOutput = (output, context) => {
|
|
2080
2155
|
return {};
|
|
2081
2156
|
};
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
.filter(
|
|
2085
|
-
.map(
|
|
2157
|
+
const deserializeAws_json1_1SubnetIdList = (output, context) => {
|
|
2158
|
+
const retVal = (output || [])
|
|
2159
|
+
.filter((e) => e != null)
|
|
2160
|
+
.map((entry) => {
|
|
2086
2161
|
if (entry === null) {
|
|
2087
2162
|
return null;
|
|
2088
2163
|
}
|
|
@@ -2090,22 +2165,22 @@ var deserializeAws_json1_1SubnetIdList = function (output, context) {
|
|
|
2090
2165
|
});
|
|
2091
2166
|
return retVal;
|
|
2092
2167
|
};
|
|
2093
|
-
|
|
2168
|
+
const deserializeAws_json1_1Tag = (output, context) => {
|
|
2094
2169
|
return {
|
|
2095
2170
|
Key: __expectString(output.Key),
|
|
2096
2171
|
Value: __expectString(output.Value),
|
|
2097
2172
|
};
|
|
2098
2173
|
};
|
|
2099
|
-
|
|
2174
|
+
const deserializeAws_json1_1TagDeliveryStreamOutput = (output, context) => {
|
|
2100
2175
|
return {};
|
|
2101
2176
|
};
|
|
2102
|
-
|
|
2177
|
+
const deserializeAws_json1_1UntagDeliveryStreamOutput = (output, context) => {
|
|
2103
2178
|
return {};
|
|
2104
2179
|
};
|
|
2105
|
-
|
|
2180
|
+
const deserializeAws_json1_1UpdateDestinationOutput = (output, context) => {
|
|
2106
2181
|
return {};
|
|
2107
2182
|
};
|
|
2108
|
-
|
|
2183
|
+
const deserializeAws_json1_1VpcConfigurationDescription = (output, context) => {
|
|
2109
2184
|
return {
|
|
2110
2185
|
RoleARN: __expectString(output.RoleARN),
|
|
2111
2186
|
SecurityGroupIds: output.SecurityGroupIds != null
|
|
@@ -2115,62 +2190,52 @@ var deserializeAws_json1_1VpcConfigurationDescription = function (output, contex
|
|
|
2115
2190
|
VpcId: __expectString(output.VpcId),
|
|
2116
2191
|
};
|
|
2117
2192
|
};
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
});
|
|
2126
|
-
};
|
|
2127
|
-
var collectBody = function (streamBody, context) {
|
|
2128
|
-
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
2193
|
+
const deserializeMetadata = (output) => ({
|
|
2194
|
+
httpStatusCode: output.statusCode,
|
|
2195
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"],
|
|
2196
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2197
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
2198
|
+
});
|
|
2199
|
+
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
2129
2200
|
if (streamBody instanceof Uint8Array) {
|
|
2130
2201
|
return Promise.resolve(streamBody);
|
|
2131
2202
|
}
|
|
2132
2203
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2133
2204
|
};
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
};
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
if (resolvedHostname !== undefined) {
|
|
2153
|
-
contents.hostname = resolvedHostname;
|
|
2154
|
-
}
|
|
2155
|
-
if (body !== undefined) {
|
|
2156
|
-
contents.body = body;
|
|
2157
|
-
}
|
|
2158
|
-
return [2, new __HttpRequest(contents)];
|
|
2159
|
-
}
|
|
2160
|
-
});
|
|
2161
|
-
}); };
|
|
2162
|
-
var parseBody = function (streamBody, context) {
|
|
2163
|
-
return collectBodyString(streamBody, context).then(function (encoded) {
|
|
2164
|
-
if (encoded.length) {
|
|
2165
|
-
return JSON.parse(encoded);
|
|
2166
|
-
}
|
|
2167
|
-
return {};
|
|
2168
|
-
});
|
|
2205
|
+
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
2206
|
+
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
2207
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2208
|
+
const contents = {
|
|
2209
|
+
protocol,
|
|
2210
|
+
hostname,
|
|
2211
|
+
port,
|
|
2212
|
+
method: "POST",
|
|
2213
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
2214
|
+
headers,
|
|
2215
|
+
};
|
|
2216
|
+
if (resolvedHostname !== undefined) {
|
|
2217
|
+
contents.hostname = resolvedHostname;
|
|
2218
|
+
}
|
|
2219
|
+
if (body !== undefined) {
|
|
2220
|
+
contents.body = body;
|
|
2221
|
+
}
|
|
2222
|
+
return new __HttpRequest(contents);
|
|
2169
2223
|
};
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2224
|
+
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2225
|
+
if (encoded.length) {
|
|
2226
|
+
return JSON.parse(encoded);
|
|
2227
|
+
}
|
|
2228
|
+
return {};
|
|
2229
|
+
});
|
|
2230
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
2231
|
+
const value = await parseBody(errorBody, context);
|
|
2232
|
+
value.message = value.message ?? value.Message;
|
|
2233
|
+
return value;
|
|
2234
|
+
};
|
|
2235
|
+
const loadRestJsonErrorCode = (output, data) => {
|
|
2236
|
+
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2237
|
+
const sanitizeErrorCode = (rawValue) => {
|
|
2238
|
+
let cleanValue = rawValue;
|
|
2174
2239
|
if (typeof cleanValue === "number") {
|
|
2175
2240
|
cleanValue = cleanValue.toString();
|
|
2176
2241
|
}
|
|
@@ -2185,7 +2250,7 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
2185
2250
|
}
|
|
2186
2251
|
return cleanValue;
|
|
2187
2252
|
};
|
|
2188
|
-
|
|
2253
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2189
2254
|
if (headerKey !== undefined) {
|
|
2190
2255
|
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2191
2256
|
}
|