@aws-sdk/client-timestream-write 3.183.0 → 3.186.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 +22 -0
- package/dist-cjs/endpoints.js +32 -1
- package/dist-cjs/protocols/Aws_json1_0.js +2 -2
- package/dist-es/TimestreamWrite.js +69 -62
- package/dist-es/TimestreamWriteClient.js +29 -23
- package/dist-es/commands/CreateDatabaseCommand.js +29 -22
- package/dist-es/commands/CreateTableCommand.js +29 -22
- package/dist-es/commands/DeleteDatabaseCommand.js +30 -23
- package/dist-es/commands/DeleteTableCommand.js +30 -23
- package/dist-es/commands/DescribeDatabaseCommand.js +29 -22
- package/dist-es/commands/DescribeEndpointsCommand.js +28 -21
- package/dist-es/commands/DescribeTableCommand.js +29 -22
- package/dist-es/commands/ListDatabasesCommand.js +29 -22
- package/dist-es/commands/ListTablesCommand.js +29 -22
- package/dist-es/commands/ListTagsForResourceCommand.js +29 -22
- package/dist-es/commands/TagResourceCommand.js +29 -22
- package/dist-es/commands/UntagResourceCommand.js +29 -22
- package/dist-es/commands/UpdateDatabaseCommand.js +29 -22
- package/dist-es/commands/UpdateTableCommand.js +29 -22
- package/dist-es/commands/WriteRecordsCommand.js +29 -22
- package/dist-es/endpoints.js +39 -8
- package/dist-es/models/TimestreamWriteServiceException.js +10 -5
- package/dist-es/models/models_0.js +151 -232
- package/dist-es/pagination/ListDatabasesPaginator.js +68 -25
- package/dist-es/pagination/ListTablesPaginator.js +68 -25
- package/dist-es/protocols/Aws_json1_0.js +1496 -1175
- package/dist-es/runtimeConfig.browser.js +12 -27
- package/dist-es/runtimeConfig.js +12 -31
- package/dist-es/runtimeConfig.native.js +5 -8
- package/dist-es/runtimeConfig.shared.js +11 -8
- package/package.json +34 -34
|
@@ -1,1154 +1,1452 @@
|
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
1
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
3
|
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { AccessDeniedException, ConflictException, InternalServerException, InvalidEndpointException, RejectedRecordsException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
4
5
|
import { TimestreamWriteServiceException as __BaseException } from "../models/TimestreamWriteServiceException";
|
|
5
|
-
export
|
|
6
|
-
|
|
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
|
-
return
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
};
|
|
104
|
-
export
|
|
105
|
-
|
|
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
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
throw
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
throw
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
throw
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
}
|
|
244
|
-
};
|
|
245
|
-
export
|
|
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
|
-
throw
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
throw
|
|
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
|
-
throw
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
output
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
};
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
};
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
throw
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
};
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
return
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
6
|
+
export var serializeAws_json1_0CreateDatabaseCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7
|
+
var headers, body;
|
|
8
|
+
return __generator(this, function (_a) {
|
|
9
|
+
headers = {
|
|
10
|
+
"content-type": "application/x-amz-json-1.0",
|
|
11
|
+
"x-amz-target": "Timestream_20181101.CreateDatabase",
|
|
12
|
+
};
|
|
13
|
+
body = JSON.stringify(serializeAws_json1_0CreateDatabaseRequest(input, context));
|
|
14
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
15
|
+
});
|
|
16
|
+
}); };
|
|
17
|
+
export var serializeAws_json1_0CreateTableCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
18
|
+
var headers, body;
|
|
19
|
+
return __generator(this, function (_a) {
|
|
20
|
+
headers = {
|
|
21
|
+
"content-type": "application/x-amz-json-1.0",
|
|
22
|
+
"x-amz-target": "Timestream_20181101.CreateTable",
|
|
23
|
+
};
|
|
24
|
+
body = JSON.stringify(serializeAws_json1_0CreateTableRequest(input, context));
|
|
25
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
26
|
+
});
|
|
27
|
+
}); };
|
|
28
|
+
export var serializeAws_json1_0DeleteDatabaseCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
29
|
+
var headers, body;
|
|
30
|
+
return __generator(this, function (_a) {
|
|
31
|
+
headers = {
|
|
32
|
+
"content-type": "application/x-amz-json-1.0",
|
|
33
|
+
"x-amz-target": "Timestream_20181101.DeleteDatabase",
|
|
34
|
+
};
|
|
35
|
+
body = JSON.stringify(serializeAws_json1_0DeleteDatabaseRequest(input, context));
|
|
36
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
37
|
+
});
|
|
38
|
+
}); };
|
|
39
|
+
export var serializeAws_json1_0DeleteTableCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
40
|
+
var headers, body;
|
|
41
|
+
return __generator(this, function (_a) {
|
|
42
|
+
headers = {
|
|
43
|
+
"content-type": "application/x-amz-json-1.0",
|
|
44
|
+
"x-amz-target": "Timestream_20181101.DeleteTable",
|
|
45
|
+
};
|
|
46
|
+
body = JSON.stringify(serializeAws_json1_0DeleteTableRequest(input, context));
|
|
47
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
48
|
+
});
|
|
49
|
+
}); };
|
|
50
|
+
export var serializeAws_json1_0DescribeDatabaseCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
51
|
+
var headers, body;
|
|
52
|
+
return __generator(this, function (_a) {
|
|
53
|
+
headers = {
|
|
54
|
+
"content-type": "application/x-amz-json-1.0",
|
|
55
|
+
"x-amz-target": "Timestream_20181101.DescribeDatabase",
|
|
56
|
+
};
|
|
57
|
+
body = JSON.stringify(serializeAws_json1_0DescribeDatabaseRequest(input, context));
|
|
58
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
59
|
+
});
|
|
60
|
+
}); };
|
|
61
|
+
export var serializeAws_json1_0DescribeEndpointsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
62
|
+
var headers, body;
|
|
63
|
+
return __generator(this, function (_a) {
|
|
64
|
+
headers = {
|
|
65
|
+
"content-type": "application/x-amz-json-1.0",
|
|
66
|
+
"x-amz-target": "Timestream_20181101.DescribeEndpoints",
|
|
67
|
+
};
|
|
68
|
+
body = JSON.stringify(serializeAws_json1_0DescribeEndpointsRequest(input, context));
|
|
69
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
70
|
+
});
|
|
71
|
+
}); };
|
|
72
|
+
export var serializeAws_json1_0DescribeTableCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
73
|
+
var headers, body;
|
|
74
|
+
return __generator(this, function (_a) {
|
|
75
|
+
headers = {
|
|
76
|
+
"content-type": "application/x-amz-json-1.0",
|
|
77
|
+
"x-amz-target": "Timestream_20181101.DescribeTable",
|
|
78
|
+
};
|
|
79
|
+
body = JSON.stringify(serializeAws_json1_0DescribeTableRequest(input, context));
|
|
80
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
81
|
+
});
|
|
82
|
+
}); };
|
|
83
|
+
export var serializeAws_json1_0ListDatabasesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
84
|
+
var headers, body;
|
|
85
|
+
return __generator(this, function (_a) {
|
|
86
|
+
headers = {
|
|
87
|
+
"content-type": "application/x-amz-json-1.0",
|
|
88
|
+
"x-amz-target": "Timestream_20181101.ListDatabases",
|
|
89
|
+
};
|
|
90
|
+
body = JSON.stringify(serializeAws_json1_0ListDatabasesRequest(input, context));
|
|
91
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
92
|
+
});
|
|
93
|
+
}); };
|
|
94
|
+
export var serializeAws_json1_0ListTablesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
95
|
+
var headers, body;
|
|
96
|
+
return __generator(this, function (_a) {
|
|
97
|
+
headers = {
|
|
98
|
+
"content-type": "application/x-amz-json-1.0",
|
|
99
|
+
"x-amz-target": "Timestream_20181101.ListTables",
|
|
100
|
+
};
|
|
101
|
+
body = JSON.stringify(serializeAws_json1_0ListTablesRequest(input, context));
|
|
102
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
103
|
+
});
|
|
104
|
+
}); };
|
|
105
|
+
export var serializeAws_json1_0ListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
106
|
+
var headers, body;
|
|
107
|
+
return __generator(this, function (_a) {
|
|
108
|
+
headers = {
|
|
109
|
+
"content-type": "application/x-amz-json-1.0",
|
|
110
|
+
"x-amz-target": "Timestream_20181101.ListTagsForResource",
|
|
111
|
+
};
|
|
112
|
+
body = JSON.stringify(serializeAws_json1_0ListTagsForResourceRequest(input, context));
|
|
113
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
114
|
+
});
|
|
115
|
+
}); };
|
|
116
|
+
export var serializeAws_json1_0TagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
117
|
+
var headers, body;
|
|
118
|
+
return __generator(this, function (_a) {
|
|
119
|
+
headers = {
|
|
120
|
+
"content-type": "application/x-amz-json-1.0",
|
|
121
|
+
"x-amz-target": "Timestream_20181101.TagResource",
|
|
122
|
+
};
|
|
123
|
+
body = JSON.stringify(serializeAws_json1_0TagResourceRequest(input, context));
|
|
124
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
125
|
+
});
|
|
126
|
+
}); };
|
|
127
|
+
export var serializeAws_json1_0UntagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
128
|
+
var headers, body;
|
|
129
|
+
return __generator(this, function (_a) {
|
|
130
|
+
headers = {
|
|
131
|
+
"content-type": "application/x-amz-json-1.0",
|
|
132
|
+
"x-amz-target": "Timestream_20181101.UntagResource",
|
|
133
|
+
};
|
|
134
|
+
body = JSON.stringify(serializeAws_json1_0UntagResourceRequest(input, context));
|
|
135
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
136
|
+
});
|
|
137
|
+
}); };
|
|
138
|
+
export var serializeAws_json1_0UpdateDatabaseCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
139
|
+
var headers, body;
|
|
140
|
+
return __generator(this, function (_a) {
|
|
141
|
+
headers = {
|
|
142
|
+
"content-type": "application/x-amz-json-1.0",
|
|
143
|
+
"x-amz-target": "Timestream_20181101.UpdateDatabase",
|
|
144
|
+
};
|
|
145
|
+
body = JSON.stringify(serializeAws_json1_0UpdateDatabaseRequest(input, context));
|
|
146
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
147
|
+
});
|
|
148
|
+
}); };
|
|
149
|
+
export var serializeAws_json1_0UpdateTableCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
150
|
+
var headers, body;
|
|
151
|
+
return __generator(this, function (_a) {
|
|
152
|
+
headers = {
|
|
153
|
+
"content-type": "application/x-amz-json-1.0",
|
|
154
|
+
"x-amz-target": "Timestream_20181101.UpdateTable",
|
|
155
|
+
};
|
|
156
|
+
body = JSON.stringify(serializeAws_json1_0UpdateTableRequest(input, context));
|
|
157
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
158
|
+
});
|
|
159
|
+
}); };
|
|
160
|
+
export var serializeAws_json1_0WriteRecordsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
161
|
+
var headers, body;
|
|
162
|
+
return __generator(this, function (_a) {
|
|
163
|
+
headers = {
|
|
164
|
+
"content-type": "application/x-amz-json-1.0",
|
|
165
|
+
"x-amz-target": "Timestream_20181101.WriteRecords",
|
|
166
|
+
};
|
|
167
|
+
body = JSON.stringify(serializeAws_json1_0WriteRecordsRequest(input, context));
|
|
168
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
169
|
+
});
|
|
170
|
+
}); };
|
|
171
|
+
export var deserializeAws_json1_0CreateDatabaseCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
172
|
+
var data, contents, response;
|
|
173
|
+
return __generator(this, function (_a) {
|
|
174
|
+
switch (_a.label) {
|
|
175
|
+
case 0:
|
|
176
|
+
if (output.statusCode >= 300) {
|
|
177
|
+
return [2, deserializeAws_json1_0CreateDatabaseCommandError(output, context)];
|
|
178
|
+
}
|
|
179
|
+
return [4, parseBody(output.body, context)];
|
|
180
|
+
case 1:
|
|
181
|
+
data = _a.sent();
|
|
182
|
+
contents = {};
|
|
183
|
+
contents = deserializeAws_json1_0CreateDatabaseResponse(data, context);
|
|
184
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
185
|
+
return [2, Promise.resolve(response)];
|
|
186
|
+
}
|
|
187
|
+
});
|
|
188
|
+
}); };
|
|
189
|
+
var deserializeAws_json1_0CreateDatabaseCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
190
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
191
|
+
var _c;
|
|
192
|
+
return __generator(this, function (_d) {
|
|
193
|
+
switch (_d.label) {
|
|
194
|
+
case 0:
|
|
195
|
+
_a = [__assign({}, output)];
|
|
196
|
+
_c = {};
|
|
197
|
+
return [4, parseErrorBody(output.body, context)];
|
|
198
|
+
case 1:
|
|
199
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
200
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
201
|
+
_b = errorCode;
|
|
202
|
+
switch (_b) {
|
|
203
|
+
case "AccessDeniedException": return [3, 2];
|
|
204
|
+
case "com.amazonaws.timestreamwrite#AccessDeniedException": return [3, 2];
|
|
205
|
+
case "ConflictException": return [3, 4];
|
|
206
|
+
case "com.amazonaws.timestreamwrite#ConflictException": return [3, 4];
|
|
207
|
+
case "InternalServerException": return [3, 6];
|
|
208
|
+
case "com.amazonaws.timestreamwrite#InternalServerException": return [3, 6];
|
|
209
|
+
case "InvalidEndpointException": return [3, 8];
|
|
210
|
+
case "com.amazonaws.timestreamwrite#InvalidEndpointException": return [3, 8];
|
|
211
|
+
case "ServiceQuotaExceededException": return [3, 10];
|
|
212
|
+
case "com.amazonaws.timestreamwrite#ServiceQuotaExceededException": return [3, 10];
|
|
213
|
+
case "ThrottlingException": return [3, 12];
|
|
214
|
+
case "com.amazonaws.timestreamwrite#ThrottlingException": return [3, 12];
|
|
215
|
+
case "ValidationException": return [3, 14];
|
|
216
|
+
case "com.amazonaws.timestreamwrite#ValidationException": return [3, 14];
|
|
217
|
+
}
|
|
218
|
+
return [3, 16];
|
|
219
|
+
case 2: return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
220
|
+
case 3: throw _d.sent();
|
|
221
|
+
case 4: return [4, deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context)];
|
|
222
|
+
case 5: throw _d.sent();
|
|
223
|
+
case 6: return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
224
|
+
case 7: throw _d.sent();
|
|
225
|
+
case 8: return [4, deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)];
|
|
226
|
+
case 9: throw _d.sent();
|
|
227
|
+
case 10: return [4, deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
228
|
+
case 11: throw _d.sent();
|
|
229
|
+
case 12: return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
230
|
+
case 13: throw _d.sent();
|
|
231
|
+
case 14: return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
232
|
+
case 15: throw _d.sent();
|
|
233
|
+
case 16:
|
|
234
|
+
parsedBody = parsedOutput.body;
|
|
235
|
+
throwDefaultError({
|
|
236
|
+
output: output,
|
|
237
|
+
parsedBody: parsedBody,
|
|
238
|
+
exceptionCtor: __BaseException,
|
|
239
|
+
errorCode: errorCode,
|
|
240
|
+
});
|
|
241
|
+
_d.label = 17;
|
|
242
|
+
case 17: return [2];
|
|
243
|
+
}
|
|
244
|
+
});
|
|
245
|
+
}); };
|
|
246
|
+
export var deserializeAws_json1_0CreateTableCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
247
|
+
var data, contents, response;
|
|
248
|
+
return __generator(this, function (_a) {
|
|
249
|
+
switch (_a.label) {
|
|
250
|
+
case 0:
|
|
251
|
+
if (output.statusCode >= 300) {
|
|
252
|
+
return [2, deserializeAws_json1_0CreateTableCommandError(output, context)];
|
|
253
|
+
}
|
|
254
|
+
return [4, parseBody(output.body, context)];
|
|
255
|
+
case 1:
|
|
256
|
+
data = _a.sent();
|
|
257
|
+
contents = {};
|
|
258
|
+
contents = deserializeAws_json1_0CreateTableResponse(data, context);
|
|
259
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
260
|
+
return [2, Promise.resolve(response)];
|
|
261
|
+
}
|
|
262
|
+
});
|
|
263
|
+
}); };
|
|
264
|
+
var deserializeAws_json1_0CreateTableCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
265
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
266
|
+
var _c;
|
|
267
|
+
return __generator(this, function (_d) {
|
|
268
|
+
switch (_d.label) {
|
|
269
|
+
case 0:
|
|
270
|
+
_a = [__assign({}, output)];
|
|
271
|
+
_c = {};
|
|
272
|
+
return [4, parseErrorBody(output.body, context)];
|
|
273
|
+
case 1:
|
|
274
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
275
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
276
|
+
_b = errorCode;
|
|
277
|
+
switch (_b) {
|
|
278
|
+
case "AccessDeniedException": return [3, 2];
|
|
279
|
+
case "com.amazonaws.timestreamwrite#AccessDeniedException": return [3, 2];
|
|
280
|
+
case "ConflictException": return [3, 4];
|
|
281
|
+
case "com.amazonaws.timestreamwrite#ConflictException": return [3, 4];
|
|
282
|
+
case "InternalServerException": return [3, 6];
|
|
283
|
+
case "com.amazonaws.timestreamwrite#InternalServerException": return [3, 6];
|
|
284
|
+
case "InvalidEndpointException": return [3, 8];
|
|
285
|
+
case "com.amazonaws.timestreamwrite#InvalidEndpointException": return [3, 8];
|
|
286
|
+
case "ResourceNotFoundException": return [3, 10];
|
|
287
|
+
case "com.amazonaws.timestreamwrite#ResourceNotFoundException": return [3, 10];
|
|
288
|
+
case "ServiceQuotaExceededException": return [3, 12];
|
|
289
|
+
case "com.amazonaws.timestreamwrite#ServiceQuotaExceededException": return [3, 12];
|
|
290
|
+
case "ThrottlingException": return [3, 14];
|
|
291
|
+
case "com.amazonaws.timestreamwrite#ThrottlingException": return [3, 14];
|
|
292
|
+
case "ValidationException": return [3, 16];
|
|
293
|
+
case "com.amazonaws.timestreamwrite#ValidationException": return [3, 16];
|
|
294
|
+
}
|
|
295
|
+
return [3, 18];
|
|
296
|
+
case 2: return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
297
|
+
case 3: throw _d.sent();
|
|
298
|
+
case 4: return [4, deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context)];
|
|
299
|
+
case 5: throw _d.sent();
|
|
300
|
+
case 6: return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
301
|
+
case 7: throw _d.sent();
|
|
302
|
+
case 8: return [4, deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)];
|
|
303
|
+
case 9: throw _d.sent();
|
|
304
|
+
case 10: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
305
|
+
case 11: throw _d.sent();
|
|
306
|
+
case 12: return [4, deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
307
|
+
case 13: throw _d.sent();
|
|
308
|
+
case 14: return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
309
|
+
case 15: throw _d.sent();
|
|
310
|
+
case 16: return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
311
|
+
case 17: throw _d.sent();
|
|
312
|
+
case 18:
|
|
313
|
+
parsedBody = parsedOutput.body;
|
|
314
|
+
throwDefaultError({
|
|
315
|
+
output: output,
|
|
316
|
+
parsedBody: parsedBody,
|
|
317
|
+
exceptionCtor: __BaseException,
|
|
318
|
+
errorCode: errorCode,
|
|
319
|
+
});
|
|
320
|
+
_d.label = 19;
|
|
321
|
+
case 19: return [2];
|
|
322
|
+
}
|
|
323
|
+
});
|
|
324
|
+
}); };
|
|
325
|
+
export var deserializeAws_json1_0DeleteDatabaseCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
326
|
+
var response;
|
|
327
|
+
return __generator(this, function (_a) {
|
|
328
|
+
switch (_a.label) {
|
|
329
|
+
case 0:
|
|
330
|
+
if (output.statusCode >= 300) {
|
|
331
|
+
return [2, deserializeAws_json1_0DeleteDatabaseCommandError(output, context)];
|
|
332
|
+
}
|
|
333
|
+
return [4, collectBody(output.body, context)];
|
|
334
|
+
case 1:
|
|
335
|
+
_a.sent();
|
|
336
|
+
response = {
|
|
337
|
+
$metadata: deserializeMetadata(output),
|
|
338
|
+
};
|
|
339
|
+
return [2, Promise.resolve(response)];
|
|
340
|
+
}
|
|
341
|
+
});
|
|
342
|
+
}); };
|
|
343
|
+
var deserializeAws_json1_0DeleteDatabaseCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
344
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
345
|
+
var _c;
|
|
346
|
+
return __generator(this, function (_d) {
|
|
347
|
+
switch (_d.label) {
|
|
348
|
+
case 0:
|
|
349
|
+
_a = [__assign({}, output)];
|
|
350
|
+
_c = {};
|
|
351
|
+
return [4, parseErrorBody(output.body, context)];
|
|
352
|
+
case 1:
|
|
353
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
354
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
355
|
+
_b = errorCode;
|
|
356
|
+
switch (_b) {
|
|
357
|
+
case "AccessDeniedException": return [3, 2];
|
|
358
|
+
case "com.amazonaws.timestreamwrite#AccessDeniedException": return [3, 2];
|
|
359
|
+
case "InternalServerException": return [3, 4];
|
|
360
|
+
case "com.amazonaws.timestreamwrite#InternalServerException": return [3, 4];
|
|
361
|
+
case "InvalidEndpointException": return [3, 6];
|
|
362
|
+
case "com.amazonaws.timestreamwrite#InvalidEndpointException": return [3, 6];
|
|
363
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
364
|
+
case "com.amazonaws.timestreamwrite#ResourceNotFoundException": return [3, 8];
|
|
365
|
+
case "ThrottlingException": return [3, 10];
|
|
366
|
+
case "com.amazonaws.timestreamwrite#ThrottlingException": return [3, 10];
|
|
367
|
+
case "ValidationException": return [3, 12];
|
|
368
|
+
case "com.amazonaws.timestreamwrite#ValidationException": return [3, 12];
|
|
369
|
+
}
|
|
370
|
+
return [3, 14];
|
|
371
|
+
case 2: return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
372
|
+
case 3: throw _d.sent();
|
|
373
|
+
case 4: return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
374
|
+
case 5: throw _d.sent();
|
|
375
|
+
case 6: return [4, deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)];
|
|
376
|
+
case 7: throw _d.sent();
|
|
377
|
+
case 8: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
378
|
+
case 9: throw _d.sent();
|
|
379
|
+
case 10: return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
380
|
+
case 11: throw _d.sent();
|
|
381
|
+
case 12: return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
382
|
+
case 13: throw _d.sent();
|
|
383
|
+
case 14:
|
|
384
|
+
parsedBody = parsedOutput.body;
|
|
385
|
+
throwDefaultError({
|
|
386
|
+
output: output,
|
|
387
|
+
parsedBody: parsedBody,
|
|
388
|
+
exceptionCtor: __BaseException,
|
|
389
|
+
errorCode: errorCode,
|
|
390
|
+
});
|
|
391
|
+
_d.label = 15;
|
|
392
|
+
case 15: return [2];
|
|
393
|
+
}
|
|
394
|
+
});
|
|
395
|
+
}); };
|
|
396
|
+
export var deserializeAws_json1_0DeleteTableCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
397
|
+
var response;
|
|
398
|
+
return __generator(this, function (_a) {
|
|
399
|
+
switch (_a.label) {
|
|
400
|
+
case 0:
|
|
401
|
+
if (output.statusCode >= 300) {
|
|
402
|
+
return [2, deserializeAws_json1_0DeleteTableCommandError(output, context)];
|
|
403
|
+
}
|
|
404
|
+
return [4, collectBody(output.body, context)];
|
|
405
|
+
case 1:
|
|
406
|
+
_a.sent();
|
|
407
|
+
response = {
|
|
408
|
+
$metadata: deserializeMetadata(output),
|
|
409
|
+
};
|
|
410
|
+
return [2, Promise.resolve(response)];
|
|
411
|
+
}
|
|
412
|
+
});
|
|
413
|
+
}); };
|
|
414
|
+
var deserializeAws_json1_0DeleteTableCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
415
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
416
|
+
var _c;
|
|
417
|
+
return __generator(this, function (_d) {
|
|
418
|
+
switch (_d.label) {
|
|
419
|
+
case 0:
|
|
420
|
+
_a = [__assign({}, output)];
|
|
421
|
+
_c = {};
|
|
422
|
+
return [4, parseErrorBody(output.body, context)];
|
|
423
|
+
case 1:
|
|
424
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
425
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
426
|
+
_b = errorCode;
|
|
427
|
+
switch (_b) {
|
|
428
|
+
case "AccessDeniedException": return [3, 2];
|
|
429
|
+
case "com.amazonaws.timestreamwrite#AccessDeniedException": return [3, 2];
|
|
430
|
+
case "InternalServerException": return [3, 4];
|
|
431
|
+
case "com.amazonaws.timestreamwrite#InternalServerException": return [3, 4];
|
|
432
|
+
case "InvalidEndpointException": return [3, 6];
|
|
433
|
+
case "com.amazonaws.timestreamwrite#InvalidEndpointException": return [3, 6];
|
|
434
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
435
|
+
case "com.amazonaws.timestreamwrite#ResourceNotFoundException": return [3, 8];
|
|
436
|
+
case "ThrottlingException": return [3, 10];
|
|
437
|
+
case "com.amazonaws.timestreamwrite#ThrottlingException": return [3, 10];
|
|
438
|
+
case "ValidationException": return [3, 12];
|
|
439
|
+
case "com.amazonaws.timestreamwrite#ValidationException": return [3, 12];
|
|
440
|
+
}
|
|
441
|
+
return [3, 14];
|
|
442
|
+
case 2: return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
443
|
+
case 3: throw _d.sent();
|
|
444
|
+
case 4: return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
445
|
+
case 5: throw _d.sent();
|
|
446
|
+
case 6: return [4, deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)];
|
|
447
|
+
case 7: throw _d.sent();
|
|
448
|
+
case 8: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
449
|
+
case 9: throw _d.sent();
|
|
450
|
+
case 10: return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
451
|
+
case 11: throw _d.sent();
|
|
452
|
+
case 12: return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
453
|
+
case 13: throw _d.sent();
|
|
454
|
+
case 14:
|
|
455
|
+
parsedBody = parsedOutput.body;
|
|
456
|
+
throwDefaultError({
|
|
457
|
+
output: output,
|
|
458
|
+
parsedBody: parsedBody,
|
|
459
|
+
exceptionCtor: __BaseException,
|
|
460
|
+
errorCode: errorCode,
|
|
461
|
+
});
|
|
462
|
+
_d.label = 15;
|
|
463
|
+
case 15: return [2];
|
|
464
|
+
}
|
|
465
|
+
});
|
|
466
|
+
}); };
|
|
467
|
+
export var deserializeAws_json1_0DescribeDatabaseCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
468
|
+
var data, contents, response;
|
|
469
|
+
return __generator(this, function (_a) {
|
|
470
|
+
switch (_a.label) {
|
|
471
|
+
case 0:
|
|
472
|
+
if (output.statusCode >= 300) {
|
|
473
|
+
return [2, deserializeAws_json1_0DescribeDatabaseCommandError(output, context)];
|
|
474
|
+
}
|
|
475
|
+
return [4, parseBody(output.body, context)];
|
|
476
|
+
case 1:
|
|
477
|
+
data = _a.sent();
|
|
478
|
+
contents = {};
|
|
479
|
+
contents = deserializeAws_json1_0DescribeDatabaseResponse(data, context);
|
|
480
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
481
|
+
return [2, Promise.resolve(response)];
|
|
482
|
+
}
|
|
483
|
+
});
|
|
484
|
+
}); };
|
|
485
|
+
var deserializeAws_json1_0DescribeDatabaseCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
486
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
487
|
+
var _c;
|
|
488
|
+
return __generator(this, function (_d) {
|
|
489
|
+
switch (_d.label) {
|
|
490
|
+
case 0:
|
|
491
|
+
_a = [__assign({}, output)];
|
|
492
|
+
_c = {};
|
|
493
|
+
return [4, parseErrorBody(output.body, context)];
|
|
494
|
+
case 1:
|
|
495
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
496
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
497
|
+
_b = errorCode;
|
|
498
|
+
switch (_b) {
|
|
499
|
+
case "AccessDeniedException": return [3, 2];
|
|
500
|
+
case "com.amazonaws.timestreamwrite#AccessDeniedException": return [3, 2];
|
|
501
|
+
case "InternalServerException": return [3, 4];
|
|
502
|
+
case "com.amazonaws.timestreamwrite#InternalServerException": return [3, 4];
|
|
503
|
+
case "InvalidEndpointException": return [3, 6];
|
|
504
|
+
case "com.amazonaws.timestreamwrite#InvalidEndpointException": return [3, 6];
|
|
505
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
506
|
+
case "com.amazonaws.timestreamwrite#ResourceNotFoundException": return [3, 8];
|
|
507
|
+
case "ThrottlingException": return [3, 10];
|
|
508
|
+
case "com.amazonaws.timestreamwrite#ThrottlingException": return [3, 10];
|
|
509
|
+
case "ValidationException": return [3, 12];
|
|
510
|
+
case "com.amazonaws.timestreamwrite#ValidationException": return [3, 12];
|
|
511
|
+
}
|
|
512
|
+
return [3, 14];
|
|
513
|
+
case 2: return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
514
|
+
case 3: throw _d.sent();
|
|
515
|
+
case 4: return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
516
|
+
case 5: throw _d.sent();
|
|
517
|
+
case 6: return [4, deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)];
|
|
518
|
+
case 7: throw _d.sent();
|
|
519
|
+
case 8: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
520
|
+
case 9: throw _d.sent();
|
|
521
|
+
case 10: return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
522
|
+
case 11: throw _d.sent();
|
|
523
|
+
case 12: return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
524
|
+
case 13: throw _d.sent();
|
|
525
|
+
case 14:
|
|
526
|
+
parsedBody = parsedOutput.body;
|
|
527
|
+
throwDefaultError({
|
|
528
|
+
output: output,
|
|
529
|
+
parsedBody: parsedBody,
|
|
530
|
+
exceptionCtor: __BaseException,
|
|
531
|
+
errorCode: errorCode,
|
|
532
|
+
});
|
|
533
|
+
_d.label = 15;
|
|
534
|
+
case 15: return [2];
|
|
535
|
+
}
|
|
536
|
+
});
|
|
537
|
+
}); };
|
|
538
|
+
export var deserializeAws_json1_0DescribeEndpointsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
539
|
+
var data, contents, response;
|
|
540
|
+
return __generator(this, function (_a) {
|
|
541
|
+
switch (_a.label) {
|
|
542
|
+
case 0:
|
|
543
|
+
if (output.statusCode >= 300) {
|
|
544
|
+
return [2, deserializeAws_json1_0DescribeEndpointsCommandError(output, context)];
|
|
545
|
+
}
|
|
546
|
+
return [4, parseBody(output.body, context)];
|
|
547
|
+
case 1:
|
|
548
|
+
data = _a.sent();
|
|
549
|
+
contents = {};
|
|
550
|
+
contents = deserializeAws_json1_0DescribeEndpointsResponse(data, context);
|
|
551
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
552
|
+
return [2, Promise.resolve(response)];
|
|
553
|
+
}
|
|
554
|
+
});
|
|
555
|
+
}); };
|
|
556
|
+
var deserializeAws_json1_0DescribeEndpointsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
557
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
558
|
+
var _c;
|
|
559
|
+
return __generator(this, function (_d) {
|
|
560
|
+
switch (_d.label) {
|
|
561
|
+
case 0:
|
|
562
|
+
_a = [__assign({}, output)];
|
|
563
|
+
_c = {};
|
|
564
|
+
return [4, parseErrorBody(output.body, context)];
|
|
565
|
+
case 1:
|
|
566
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
567
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
568
|
+
_b = errorCode;
|
|
569
|
+
switch (_b) {
|
|
570
|
+
case "InternalServerException": return [3, 2];
|
|
571
|
+
case "com.amazonaws.timestreamwrite#InternalServerException": return [3, 2];
|
|
572
|
+
case "ThrottlingException": return [3, 4];
|
|
573
|
+
case "com.amazonaws.timestreamwrite#ThrottlingException": return [3, 4];
|
|
574
|
+
case "ValidationException": return [3, 6];
|
|
575
|
+
case "com.amazonaws.timestreamwrite#ValidationException": return [3, 6];
|
|
576
|
+
}
|
|
577
|
+
return [3, 8];
|
|
578
|
+
case 2: return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
579
|
+
case 3: throw _d.sent();
|
|
580
|
+
case 4: return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
581
|
+
case 5: throw _d.sent();
|
|
582
|
+
case 6: return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
583
|
+
case 7: throw _d.sent();
|
|
584
|
+
case 8:
|
|
585
|
+
parsedBody = parsedOutput.body;
|
|
586
|
+
throwDefaultError({
|
|
587
|
+
output: output,
|
|
588
|
+
parsedBody: parsedBody,
|
|
589
|
+
exceptionCtor: __BaseException,
|
|
590
|
+
errorCode: errorCode,
|
|
591
|
+
});
|
|
592
|
+
_d.label = 9;
|
|
593
|
+
case 9: return [2];
|
|
594
|
+
}
|
|
595
|
+
});
|
|
596
|
+
}); };
|
|
597
|
+
export var deserializeAws_json1_0DescribeTableCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
598
|
+
var data, contents, response;
|
|
599
|
+
return __generator(this, function (_a) {
|
|
600
|
+
switch (_a.label) {
|
|
601
|
+
case 0:
|
|
602
|
+
if (output.statusCode >= 300) {
|
|
603
|
+
return [2, deserializeAws_json1_0DescribeTableCommandError(output, context)];
|
|
604
|
+
}
|
|
605
|
+
return [4, parseBody(output.body, context)];
|
|
606
|
+
case 1:
|
|
607
|
+
data = _a.sent();
|
|
608
|
+
contents = {};
|
|
609
|
+
contents = deserializeAws_json1_0DescribeTableResponse(data, context);
|
|
610
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
611
|
+
return [2, Promise.resolve(response)];
|
|
612
|
+
}
|
|
613
|
+
});
|
|
614
|
+
}); };
|
|
615
|
+
var deserializeAws_json1_0DescribeTableCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
616
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
617
|
+
var _c;
|
|
618
|
+
return __generator(this, function (_d) {
|
|
619
|
+
switch (_d.label) {
|
|
620
|
+
case 0:
|
|
621
|
+
_a = [__assign({}, output)];
|
|
622
|
+
_c = {};
|
|
623
|
+
return [4, parseErrorBody(output.body, context)];
|
|
624
|
+
case 1:
|
|
625
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
626
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
627
|
+
_b = errorCode;
|
|
628
|
+
switch (_b) {
|
|
629
|
+
case "AccessDeniedException": return [3, 2];
|
|
630
|
+
case "com.amazonaws.timestreamwrite#AccessDeniedException": return [3, 2];
|
|
631
|
+
case "InternalServerException": return [3, 4];
|
|
632
|
+
case "com.amazonaws.timestreamwrite#InternalServerException": return [3, 4];
|
|
633
|
+
case "InvalidEndpointException": return [3, 6];
|
|
634
|
+
case "com.amazonaws.timestreamwrite#InvalidEndpointException": return [3, 6];
|
|
635
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
636
|
+
case "com.amazonaws.timestreamwrite#ResourceNotFoundException": return [3, 8];
|
|
637
|
+
case "ThrottlingException": return [3, 10];
|
|
638
|
+
case "com.amazonaws.timestreamwrite#ThrottlingException": return [3, 10];
|
|
639
|
+
case "ValidationException": return [3, 12];
|
|
640
|
+
case "com.amazonaws.timestreamwrite#ValidationException": return [3, 12];
|
|
641
|
+
}
|
|
642
|
+
return [3, 14];
|
|
643
|
+
case 2: return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
644
|
+
case 3: throw _d.sent();
|
|
645
|
+
case 4: return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
646
|
+
case 5: throw _d.sent();
|
|
647
|
+
case 6: return [4, deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)];
|
|
648
|
+
case 7: throw _d.sent();
|
|
649
|
+
case 8: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
650
|
+
case 9: throw _d.sent();
|
|
651
|
+
case 10: return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
652
|
+
case 11: throw _d.sent();
|
|
653
|
+
case 12: return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
654
|
+
case 13: throw _d.sent();
|
|
655
|
+
case 14:
|
|
656
|
+
parsedBody = parsedOutput.body;
|
|
657
|
+
throwDefaultError({
|
|
658
|
+
output: output,
|
|
659
|
+
parsedBody: parsedBody,
|
|
660
|
+
exceptionCtor: __BaseException,
|
|
661
|
+
errorCode: errorCode,
|
|
662
|
+
});
|
|
663
|
+
_d.label = 15;
|
|
664
|
+
case 15: return [2];
|
|
665
|
+
}
|
|
666
|
+
});
|
|
667
|
+
}); };
|
|
668
|
+
export var deserializeAws_json1_0ListDatabasesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
669
|
+
var data, contents, response;
|
|
670
|
+
return __generator(this, function (_a) {
|
|
671
|
+
switch (_a.label) {
|
|
672
|
+
case 0:
|
|
673
|
+
if (output.statusCode >= 300) {
|
|
674
|
+
return [2, deserializeAws_json1_0ListDatabasesCommandError(output, context)];
|
|
675
|
+
}
|
|
676
|
+
return [4, parseBody(output.body, context)];
|
|
677
|
+
case 1:
|
|
678
|
+
data = _a.sent();
|
|
679
|
+
contents = {};
|
|
680
|
+
contents = deserializeAws_json1_0ListDatabasesResponse(data, context);
|
|
681
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
682
|
+
return [2, Promise.resolve(response)];
|
|
683
|
+
}
|
|
684
|
+
});
|
|
685
|
+
}); };
|
|
686
|
+
var deserializeAws_json1_0ListDatabasesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
687
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
688
|
+
var _c;
|
|
689
|
+
return __generator(this, function (_d) {
|
|
690
|
+
switch (_d.label) {
|
|
691
|
+
case 0:
|
|
692
|
+
_a = [__assign({}, output)];
|
|
693
|
+
_c = {};
|
|
694
|
+
return [4, parseErrorBody(output.body, context)];
|
|
695
|
+
case 1:
|
|
696
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
697
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
698
|
+
_b = errorCode;
|
|
699
|
+
switch (_b) {
|
|
700
|
+
case "AccessDeniedException": return [3, 2];
|
|
701
|
+
case "com.amazonaws.timestreamwrite#AccessDeniedException": return [3, 2];
|
|
702
|
+
case "InternalServerException": return [3, 4];
|
|
703
|
+
case "com.amazonaws.timestreamwrite#InternalServerException": return [3, 4];
|
|
704
|
+
case "InvalidEndpointException": return [3, 6];
|
|
705
|
+
case "com.amazonaws.timestreamwrite#InvalidEndpointException": return [3, 6];
|
|
706
|
+
case "ThrottlingException": return [3, 8];
|
|
707
|
+
case "com.amazonaws.timestreamwrite#ThrottlingException": return [3, 8];
|
|
708
|
+
case "ValidationException": return [3, 10];
|
|
709
|
+
case "com.amazonaws.timestreamwrite#ValidationException": return [3, 10];
|
|
710
|
+
}
|
|
711
|
+
return [3, 12];
|
|
712
|
+
case 2: return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
713
|
+
case 3: throw _d.sent();
|
|
714
|
+
case 4: return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
715
|
+
case 5: throw _d.sent();
|
|
716
|
+
case 6: return [4, deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)];
|
|
717
|
+
case 7: throw _d.sent();
|
|
718
|
+
case 8: return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
719
|
+
case 9: throw _d.sent();
|
|
720
|
+
case 10: return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
721
|
+
case 11: throw _d.sent();
|
|
722
|
+
case 12:
|
|
723
|
+
parsedBody = parsedOutput.body;
|
|
724
|
+
throwDefaultError({
|
|
725
|
+
output: output,
|
|
726
|
+
parsedBody: parsedBody,
|
|
727
|
+
exceptionCtor: __BaseException,
|
|
728
|
+
errorCode: errorCode,
|
|
729
|
+
});
|
|
730
|
+
_d.label = 13;
|
|
731
|
+
case 13: return [2];
|
|
732
|
+
}
|
|
733
|
+
});
|
|
734
|
+
}); };
|
|
735
|
+
export var deserializeAws_json1_0ListTablesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
736
|
+
var data, contents, response;
|
|
737
|
+
return __generator(this, function (_a) {
|
|
738
|
+
switch (_a.label) {
|
|
739
|
+
case 0:
|
|
740
|
+
if (output.statusCode >= 300) {
|
|
741
|
+
return [2, deserializeAws_json1_0ListTablesCommandError(output, context)];
|
|
742
|
+
}
|
|
743
|
+
return [4, parseBody(output.body, context)];
|
|
744
|
+
case 1:
|
|
745
|
+
data = _a.sent();
|
|
746
|
+
contents = {};
|
|
747
|
+
contents = deserializeAws_json1_0ListTablesResponse(data, context);
|
|
748
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
749
|
+
return [2, Promise.resolve(response)];
|
|
750
|
+
}
|
|
751
|
+
});
|
|
752
|
+
}); };
|
|
753
|
+
var deserializeAws_json1_0ListTablesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
754
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
755
|
+
var _c;
|
|
756
|
+
return __generator(this, function (_d) {
|
|
757
|
+
switch (_d.label) {
|
|
758
|
+
case 0:
|
|
759
|
+
_a = [__assign({}, output)];
|
|
760
|
+
_c = {};
|
|
761
|
+
return [4, parseErrorBody(output.body, context)];
|
|
762
|
+
case 1:
|
|
763
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
764
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
765
|
+
_b = errorCode;
|
|
766
|
+
switch (_b) {
|
|
767
|
+
case "AccessDeniedException": return [3, 2];
|
|
768
|
+
case "com.amazonaws.timestreamwrite#AccessDeniedException": return [3, 2];
|
|
769
|
+
case "InternalServerException": return [3, 4];
|
|
770
|
+
case "com.amazonaws.timestreamwrite#InternalServerException": return [3, 4];
|
|
771
|
+
case "InvalidEndpointException": return [3, 6];
|
|
772
|
+
case "com.amazonaws.timestreamwrite#InvalidEndpointException": return [3, 6];
|
|
773
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
774
|
+
case "com.amazonaws.timestreamwrite#ResourceNotFoundException": return [3, 8];
|
|
775
|
+
case "ThrottlingException": return [3, 10];
|
|
776
|
+
case "com.amazonaws.timestreamwrite#ThrottlingException": return [3, 10];
|
|
777
|
+
case "ValidationException": return [3, 12];
|
|
778
|
+
case "com.amazonaws.timestreamwrite#ValidationException": return [3, 12];
|
|
779
|
+
}
|
|
780
|
+
return [3, 14];
|
|
781
|
+
case 2: return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
782
|
+
case 3: throw _d.sent();
|
|
783
|
+
case 4: return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
784
|
+
case 5: throw _d.sent();
|
|
785
|
+
case 6: return [4, deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)];
|
|
786
|
+
case 7: throw _d.sent();
|
|
787
|
+
case 8: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
788
|
+
case 9: throw _d.sent();
|
|
789
|
+
case 10: return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
790
|
+
case 11: throw _d.sent();
|
|
791
|
+
case 12: return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
792
|
+
case 13: throw _d.sent();
|
|
793
|
+
case 14:
|
|
794
|
+
parsedBody = parsedOutput.body;
|
|
795
|
+
throwDefaultError({
|
|
796
|
+
output: output,
|
|
797
|
+
parsedBody: parsedBody,
|
|
798
|
+
exceptionCtor: __BaseException,
|
|
799
|
+
errorCode: errorCode,
|
|
800
|
+
});
|
|
801
|
+
_d.label = 15;
|
|
802
|
+
case 15: return [2];
|
|
803
|
+
}
|
|
804
|
+
});
|
|
805
|
+
}); };
|
|
806
|
+
export var deserializeAws_json1_0ListTagsForResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
807
|
+
var data, contents, response;
|
|
808
|
+
return __generator(this, function (_a) {
|
|
809
|
+
switch (_a.label) {
|
|
810
|
+
case 0:
|
|
811
|
+
if (output.statusCode >= 300) {
|
|
812
|
+
return [2, deserializeAws_json1_0ListTagsForResourceCommandError(output, context)];
|
|
813
|
+
}
|
|
814
|
+
return [4, parseBody(output.body, context)];
|
|
815
|
+
case 1:
|
|
816
|
+
data = _a.sent();
|
|
817
|
+
contents = {};
|
|
818
|
+
contents = deserializeAws_json1_0ListTagsForResourceResponse(data, context);
|
|
819
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
820
|
+
return [2, Promise.resolve(response)];
|
|
821
|
+
}
|
|
822
|
+
});
|
|
823
|
+
}); };
|
|
824
|
+
var deserializeAws_json1_0ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
825
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
826
|
+
var _c;
|
|
827
|
+
return __generator(this, function (_d) {
|
|
828
|
+
switch (_d.label) {
|
|
829
|
+
case 0:
|
|
830
|
+
_a = [__assign({}, output)];
|
|
831
|
+
_c = {};
|
|
832
|
+
return [4, parseErrorBody(output.body, context)];
|
|
833
|
+
case 1:
|
|
834
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
835
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
836
|
+
_b = errorCode;
|
|
837
|
+
switch (_b) {
|
|
838
|
+
case "InvalidEndpointException": return [3, 2];
|
|
839
|
+
case "com.amazonaws.timestreamwrite#InvalidEndpointException": return [3, 2];
|
|
840
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
841
|
+
case "com.amazonaws.timestreamwrite#ResourceNotFoundException": return [3, 4];
|
|
842
|
+
case "ThrottlingException": return [3, 6];
|
|
843
|
+
case "com.amazonaws.timestreamwrite#ThrottlingException": return [3, 6];
|
|
844
|
+
case "ValidationException": return [3, 8];
|
|
845
|
+
case "com.amazonaws.timestreamwrite#ValidationException": return [3, 8];
|
|
846
|
+
}
|
|
847
|
+
return [3, 10];
|
|
848
|
+
case 2: return [4, deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)];
|
|
849
|
+
case 3: throw _d.sent();
|
|
850
|
+
case 4: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
851
|
+
case 5: throw _d.sent();
|
|
852
|
+
case 6: return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
853
|
+
case 7: throw _d.sent();
|
|
854
|
+
case 8: return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
855
|
+
case 9: throw _d.sent();
|
|
856
|
+
case 10:
|
|
857
|
+
parsedBody = parsedOutput.body;
|
|
858
|
+
throwDefaultError({
|
|
859
|
+
output: output,
|
|
860
|
+
parsedBody: parsedBody,
|
|
861
|
+
exceptionCtor: __BaseException,
|
|
862
|
+
errorCode: errorCode,
|
|
863
|
+
});
|
|
864
|
+
_d.label = 11;
|
|
865
|
+
case 11: return [2];
|
|
866
|
+
}
|
|
867
|
+
});
|
|
868
|
+
}); };
|
|
869
|
+
export var deserializeAws_json1_0TagResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
870
|
+
var data, contents, response;
|
|
871
|
+
return __generator(this, function (_a) {
|
|
872
|
+
switch (_a.label) {
|
|
873
|
+
case 0:
|
|
874
|
+
if (output.statusCode >= 300) {
|
|
875
|
+
return [2, deserializeAws_json1_0TagResourceCommandError(output, context)];
|
|
876
|
+
}
|
|
877
|
+
return [4, parseBody(output.body, context)];
|
|
878
|
+
case 1:
|
|
879
|
+
data = _a.sent();
|
|
880
|
+
contents = {};
|
|
881
|
+
contents = deserializeAws_json1_0TagResourceResponse(data, context);
|
|
882
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
883
|
+
return [2, Promise.resolve(response)];
|
|
884
|
+
}
|
|
885
|
+
});
|
|
886
|
+
}); };
|
|
887
|
+
var deserializeAws_json1_0TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
888
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
889
|
+
var _c;
|
|
890
|
+
return __generator(this, function (_d) {
|
|
891
|
+
switch (_d.label) {
|
|
892
|
+
case 0:
|
|
893
|
+
_a = [__assign({}, output)];
|
|
894
|
+
_c = {};
|
|
895
|
+
return [4, parseErrorBody(output.body, context)];
|
|
896
|
+
case 1:
|
|
897
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
898
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
899
|
+
_b = errorCode;
|
|
900
|
+
switch (_b) {
|
|
901
|
+
case "InvalidEndpointException": return [3, 2];
|
|
902
|
+
case "com.amazonaws.timestreamwrite#InvalidEndpointException": return [3, 2];
|
|
903
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
904
|
+
case "com.amazonaws.timestreamwrite#ResourceNotFoundException": return [3, 4];
|
|
905
|
+
case "ServiceQuotaExceededException": return [3, 6];
|
|
906
|
+
case "com.amazonaws.timestreamwrite#ServiceQuotaExceededException": return [3, 6];
|
|
907
|
+
case "ThrottlingException": return [3, 8];
|
|
908
|
+
case "com.amazonaws.timestreamwrite#ThrottlingException": return [3, 8];
|
|
909
|
+
case "ValidationException": return [3, 10];
|
|
910
|
+
case "com.amazonaws.timestreamwrite#ValidationException": return [3, 10];
|
|
911
|
+
}
|
|
912
|
+
return [3, 12];
|
|
913
|
+
case 2: return [4, deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)];
|
|
914
|
+
case 3: throw _d.sent();
|
|
915
|
+
case 4: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
916
|
+
case 5: throw _d.sent();
|
|
917
|
+
case 6: return [4, deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
918
|
+
case 7: throw _d.sent();
|
|
919
|
+
case 8: return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
920
|
+
case 9: throw _d.sent();
|
|
921
|
+
case 10: return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
922
|
+
case 11: throw _d.sent();
|
|
923
|
+
case 12:
|
|
924
|
+
parsedBody = parsedOutput.body;
|
|
925
|
+
throwDefaultError({
|
|
926
|
+
output: output,
|
|
927
|
+
parsedBody: parsedBody,
|
|
928
|
+
exceptionCtor: __BaseException,
|
|
929
|
+
errorCode: errorCode,
|
|
930
|
+
});
|
|
931
|
+
_d.label = 13;
|
|
932
|
+
case 13: return [2];
|
|
933
|
+
}
|
|
934
|
+
});
|
|
935
|
+
}); };
|
|
936
|
+
export var deserializeAws_json1_0UntagResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
937
|
+
var data, contents, response;
|
|
938
|
+
return __generator(this, function (_a) {
|
|
939
|
+
switch (_a.label) {
|
|
940
|
+
case 0:
|
|
941
|
+
if (output.statusCode >= 300) {
|
|
942
|
+
return [2, deserializeAws_json1_0UntagResourceCommandError(output, context)];
|
|
943
|
+
}
|
|
944
|
+
return [4, parseBody(output.body, context)];
|
|
945
|
+
case 1:
|
|
946
|
+
data = _a.sent();
|
|
947
|
+
contents = {};
|
|
948
|
+
contents = deserializeAws_json1_0UntagResourceResponse(data, context);
|
|
949
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
950
|
+
return [2, Promise.resolve(response)];
|
|
951
|
+
}
|
|
952
|
+
});
|
|
953
|
+
}); };
|
|
954
|
+
var deserializeAws_json1_0UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
955
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
956
|
+
var _c;
|
|
957
|
+
return __generator(this, function (_d) {
|
|
958
|
+
switch (_d.label) {
|
|
959
|
+
case 0:
|
|
960
|
+
_a = [__assign({}, output)];
|
|
961
|
+
_c = {};
|
|
962
|
+
return [4, parseErrorBody(output.body, context)];
|
|
963
|
+
case 1:
|
|
964
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
965
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
966
|
+
_b = errorCode;
|
|
967
|
+
switch (_b) {
|
|
968
|
+
case "InvalidEndpointException": return [3, 2];
|
|
969
|
+
case "com.amazonaws.timestreamwrite#InvalidEndpointException": return [3, 2];
|
|
970
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
971
|
+
case "com.amazonaws.timestreamwrite#ResourceNotFoundException": return [3, 4];
|
|
972
|
+
case "ServiceQuotaExceededException": return [3, 6];
|
|
973
|
+
case "com.amazonaws.timestreamwrite#ServiceQuotaExceededException": return [3, 6];
|
|
974
|
+
case "ThrottlingException": return [3, 8];
|
|
975
|
+
case "com.amazonaws.timestreamwrite#ThrottlingException": return [3, 8];
|
|
976
|
+
case "ValidationException": return [3, 10];
|
|
977
|
+
case "com.amazonaws.timestreamwrite#ValidationException": return [3, 10];
|
|
978
|
+
}
|
|
979
|
+
return [3, 12];
|
|
980
|
+
case 2: return [4, deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)];
|
|
981
|
+
case 3: throw _d.sent();
|
|
982
|
+
case 4: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
983
|
+
case 5: throw _d.sent();
|
|
984
|
+
case 6: return [4, deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
985
|
+
case 7: throw _d.sent();
|
|
986
|
+
case 8: return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
987
|
+
case 9: throw _d.sent();
|
|
988
|
+
case 10: return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
989
|
+
case 11: throw _d.sent();
|
|
990
|
+
case 12:
|
|
991
|
+
parsedBody = parsedOutput.body;
|
|
992
|
+
throwDefaultError({
|
|
993
|
+
output: output,
|
|
994
|
+
parsedBody: parsedBody,
|
|
995
|
+
exceptionCtor: __BaseException,
|
|
996
|
+
errorCode: errorCode,
|
|
997
|
+
});
|
|
998
|
+
_d.label = 13;
|
|
999
|
+
case 13: return [2];
|
|
1000
|
+
}
|
|
1001
|
+
});
|
|
1002
|
+
}); };
|
|
1003
|
+
export var deserializeAws_json1_0UpdateDatabaseCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1004
|
+
var data, contents, response;
|
|
1005
|
+
return __generator(this, function (_a) {
|
|
1006
|
+
switch (_a.label) {
|
|
1007
|
+
case 0:
|
|
1008
|
+
if (output.statusCode >= 300) {
|
|
1009
|
+
return [2, deserializeAws_json1_0UpdateDatabaseCommandError(output, context)];
|
|
1010
|
+
}
|
|
1011
|
+
return [4, parseBody(output.body, context)];
|
|
1012
|
+
case 1:
|
|
1013
|
+
data = _a.sent();
|
|
1014
|
+
contents = {};
|
|
1015
|
+
contents = deserializeAws_json1_0UpdateDatabaseResponse(data, context);
|
|
1016
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1017
|
+
return [2, Promise.resolve(response)];
|
|
1018
|
+
}
|
|
1019
|
+
});
|
|
1020
|
+
}); };
|
|
1021
|
+
var deserializeAws_json1_0UpdateDatabaseCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1022
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1023
|
+
var _c;
|
|
1024
|
+
return __generator(this, function (_d) {
|
|
1025
|
+
switch (_d.label) {
|
|
1026
|
+
case 0:
|
|
1027
|
+
_a = [__assign({}, output)];
|
|
1028
|
+
_c = {};
|
|
1029
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1030
|
+
case 1:
|
|
1031
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1032
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1033
|
+
_b = errorCode;
|
|
1034
|
+
switch (_b) {
|
|
1035
|
+
case "AccessDeniedException": return [3, 2];
|
|
1036
|
+
case "com.amazonaws.timestreamwrite#AccessDeniedException": return [3, 2];
|
|
1037
|
+
case "InternalServerException": return [3, 4];
|
|
1038
|
+
case "com.amazonaws.timestreamwrite#InternalServerException": return [3, 4];
|
|
1039
|
+
case "InvalidEndpointException": return [3, 6];
|
|
1040
|
+
case "com.amazonaws.timestreamwrite#InvalidEndpointException": return [3, 6];
|
|
1041
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1042
|
+
case "com.amazonaws.timestreamwrite#ResourceNotFoundException": return [3, 8];
|
|
1043
|
+
case "ServiceQuotaExceededException": return [3, 10];
|
|
1044
|
+
case "com.amazonaws.timestreamwrite#ServiceQuotaExceededException": return [3, 10];
|
|
1045
|
+
case "ThrottlingException": return [3, 12];
|
|
1046
|
+
case "com.amazonaws.timestreamwrite#ThrottlingException": return [3, 12];
|
|
1047
|
+
case "ValidationException": return [3, 14];
|
|
1048
|
+
case "com.amazonaws.timestreamwrite#ValidationException": return [3, 14];
|
|
1049
|
+
}
|
|
1050
|
+
return [3, 16];
|
|
1051
|
+
case 2: return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1052
|
+
case 3: throw _d.sent();
|
|
1053
|
+
case 4: return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
1054
|
+
case 5: throw _d.sent();
|
|
1055
|
+
case 6: return [4, deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)];
|
|
1056
|
+
case 7: throw _d.sent();
|
|
1057
|
+
case 8: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1058
|
+
case 9: throw _d.sent();
|
|
1059
|
+
case 10: return [4, deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
1060
|
+
case 11: throw _d.sent();
|
|
1061
|
+
case 12: return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1062
|
+
case 13: throw _d.sent();
|
|
1063
|
+
case 14: return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
1064
|
+
case 15: throw _d.sent();
|
|
1065
|
+
case 16:
|
|
1066
|
+
parsedBody = parsedOutput.body;
|
|
1067
|
+
throwDefaultError({
|
|
1068
|
+
output: output,
|
|
1069
|
+
parsedBody: parsedBody,
|
|
1070
|
+
exceptionCtor: __BaseException,
|
|
1071
|
+
errorCode: errorCode,
|
|
1072
|
+
});
|
|
1073
|
+
_d.label = 17;
|
|
1074
|
+
case 17: return [2];
|
|
1075
|
+
}
|
|
1076
|
+
});
|
|
1077
|
+
}); };
|
|
1078
|
+
export var deserializeAws_json1_0UpdateTableCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1079
|
+
var data, contents, response;
|
|
1080
|
+
return __generator(this, function (_a) {
|
|
1081
|
+
switch (_a.label) {
|
|
1082
|
+
case 0:
|
|
1083
|
+
if (output.statusCode >= 300) {
|
|
1084
|
+
return [2, deserializeAws_json1_0UpdateTableCommandError(output, context)];
|
|
1085
|
+
}
|
|
1086
|
+
return [4, parseBody(output.body, context)];
|
|
1087
|
+
case 1:
|
|
1088
|
+
data = _a.sent();
|
|
1089
|
+
contents = {};
|
|
1090
|
+
contents = deserializeAws_json1_0UpdateTableResponse(data, context);
|
|
1091
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1092
|
+
return [2, Promise.resolve(response)];
|
|
1093
|
+
}
|
|
1094
|
+
});
|
|
1095
|
+
}); };
|
|
1096
|
+
var deserializeAws_json1_0UpdateTableCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1097
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1098
|
+
var _c;
|
|
1099
|
+
return __generator(this, function (_d) {
|
|
1100
|
+
switch (_d.label) {
|
|
1101
|
+
case 0:
|
|
1102
|
+
_a = [__assign({}, output)];
|
|
1103
|
+
_c = {};
|
|
1104
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1105
|
+
case 1:
|
|
1106
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1107
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1108
|
+
_b = errorCode;
|
|
1109
|
+
switch (_b) {
|
|
1110
|
+
case "AccessDeniedException": return [3, 2];
|
|
1111
|
+
case "com.amazonaws.timestreamwrite#AccessDeniedException": return [3, 2];
|
|
1112
|
+
case "InternalServerException": return [3, 4];
|
|
1113
|
+
case "com.amazonaws.timestreamwrite#InternalServerException": return [3, 4];
|
|
1114
|
+
case "InvalidEndpointException": return [3, 6];
|
|
1115
|
+
case "com.amazonaws.timestreamwrite#InvalidEndpointException": return [3, 6];
|
|
1116
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1117
|
+
case "com.amazonaws.timestreamwrite#ResourceNotFoundException": return [3, 8];
|
|
1118
|
+
case "ThrottlingException": return [3, 10];
|
|
1119
|
+
case "com.amazonaws.timestreamwrite#ThrottlingException": return [3, 10];
|
|
1120
|
+
case "ValidationException": return [3, 12];
|
|
1121
|
+
case "com.amazonaws.timestreamwrite#ValidationException": return [3, 12];
|
|
1122
|
+
}
|
|
1123
|
+
return [3, 14];
|
|
1124
|
+
case 2: return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1125
|
+
case 3: throw _d.sent();
|
|
1126
|
+
case 4: return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
1127
|
+
case 5: throw _d.sent();
|
|
1128
|
+
case 6: return [4, deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)];
|
|
1129
|
+
case 7: throw _d.sent();
|
|
1130
|
+
case 8: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1131
|
+
case 9: throw _d.sent();
|
|
1132
|
+
case 10: return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1133
|
+
case 11: throw _d.sent();
|
|
1134
|
+
case 12: return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
1135
|
+
case 13: throw _d.sent();
|
|
1136
|
+
case 14:
|
|
1137
|
+
parsedBody = parsedOutput.body;
|
|
1138
|
+
throwDefaultError({
|
|
1139
|
+
output: output,
|
|
1140
|
+
parsedBody: parsedBody,
|
|
1141
|
+
exceptionCtor: __BaseException,
|
|
1142
|
+
errorCode: errorCode,
|
|
1143
|
+
});
|
|
1144
|
+
_d.label = 15;
|
|
1145
|
+
case 15: return [2];
|
|
1146
|
+
}
|
|
1147
|
+
});
|
|
1148
|
+
}); };
|
|
1149
|
+
export var deserializeAws_json1_0WriteRecordsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1150
|
+
var data, contents, response;
|
|
1151
|
+
return __generator(this, function (_a) {
|
|
1152
|
+
switch (_a.label) {
|
|
1153
|
+
case 0:
|
|
1154
|
+
if (output.statusCode >= 300) {
|
|
1155
|
+
return [2, deserializeAws_json1_0WriteRecordsCommandError(output, context)];
|
|
1156
|
+
}
|
|
1157
|
+
return [4, parseBody(output.body, context)];
|
|
1158
|
+
case 1:
|
|
1159
|
+
data = _a.sent();
|
|
1160
|
+
contents = {};
|
|
1161
|
+
contents = deserializeAws_json1_0WriteRecordsResponse(data, context);
|
|
1162
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1163
|
+
return [2, Promise.resolve(response)];
|
|
1164
|
+
}
|
|
1165
|
+
});
|
|
1166
|
+
}); };
|
|
1167
|
+
var deserializeAws_json1_0WriteRecordsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1168
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1169
|
+
var _c;
|
|
1170
|
+
return __generator(this, function (_d) {
|
|
1171
|
+
switch (_d.label) {
|
|
1172
|
+
case 0:
|
|
1173
|
+
_a = [__assign({}, output)];
|
|
1174
|
+
_c = {};
|
|
1175
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1176
|
+
case 1:
|
|
1177
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1178
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1179
|
+
_b = errorCode;
|
|
1180
|
+
switch (_b) {
|
|
1181
|
+
case "AccessDeniedException": return [3, 2];
|
|
1182
|
+
case "com.amazonaws.timestreamwrite#AccessDeniedException": return [3, 2];
|
|
1183
|
+
case "InternalServerException": return [3, 4];
|
|
1184
|
+
case "com.amazonaws.timestreamwrite#InternalServerException": return [3, 4];
|
|
1185
|
+
case "InvalidEndpointException": return [3, 6];
|
|
1186
|
+
case "com.amazonaws.timestreamwrite#InvalidEndpointException": return [3, 6];
|
|
1187
|
+
case "RejectedRecordsException": return [3, 8];
|
|
1188
|
+
case "com.amazonaws.timestreamwrite#RejectedRecordsException": return [3, 8];
|
|
1189
|
+
case "ResourceNotFoundException": return [3, 10];
|
|
1190
|
+
case "com.amazonaws.timestreamwrite#ResourceNotFoundException": return [3, 10];
|
|
1191
|
+
case "ThrottlingException": return [3, 12];
|
|
1192
|
+
case "com.amazonaws.timestreamwrite#ThrottlingException": return [3, 12];
|
|
1193
|
+
case "ValidationException": return [3, 14];
|
|
1194
|
+
case "com.amazonaws.timestreamwrite#ValidationException": return [3, 14];
|
|
1195
|
+
}
|
|
1196
|
+
return [3, 16];
|
|
1197
|
+
case 2: return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1198
|
+
case 3: throw _d.sent();
|
|
1199
|
+
case 4: return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
1200
|
+
case 5: throw _d.sent();
|
|
1201
|
+
case 6: return [4, deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)];
|
|
1202
|
+
case 7: throw _d.sent();
|
|
1203
|
+
case 8: return [4, deserializeAws_json1_0RejectedRecordsExceptionResponse(parsedOutput, context)];
|
|
1204
|
+
case 9: throw _d.sent();
|
|
1205
|
+
case 10: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1206
|
+
case 11: throw _d.sent();
|
|
1207
|
+
case 12: return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1208
|
+
case 13: throw _d.sent();
|
|
1209
|
+
case 14: return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
1210
|
+
case 15: throw _d.sent();
|
|
1211
|
+
case 16:
|
|
1212
|
+
parsedBody = parsedOutput.body;
|
|
1213
|
+
throwDefaultError({
|
|
1214
|
+
output: output,
|
|
1215
|
+
parsedBody: parsedBody,
|
|
1216
|
+
exceptionCtor: __BaseException,
|
|
1217
|
+
errorCode: errorCode,
|
|
1218
|
+
});
|
|
1219
|
+
_d.label = 17;
|
|
1220
|
+
case 17: return [2];
|
|
1221
|
+
}
|
|
1222
|
+
});
|
|
1223
|
+
}); };
|
|
1224
|
+
var deserializeAws_json1_0AccessDeniedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1225
|
+
var body, deserialized, exception;
|
|
1226
|
+
return __generator(this, function (_a) {
|
|
1227
|
+
body = parsedOutput.body;
|
|
1228
|
+
deserialized = deserializeAws_json1_0AccessDeniedException(body, context);
|
|
1229
|
+
exception = new AccessDeniedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1230
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1231
|
+
});
|
|
1232
|
+
}); };
|
|
1233
|
+
var deserializeAws_json1_0ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1234
|
+
var body, deserialized, exception;
|
|
1235
|
+
return __generator(this, function (_a) {
|
|
1236
|
+
body = parsedOutput.body;
|
|
1237
|
+
deserialized = deserializeAws_json1_0ConflictException(body, context);
|
|
1238
|
+
exception = new ConflictException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1239
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1240
|
+
});
|
|
1241
|
+
}); };
|
|
1242
|
+
var deserializeAws_json1_0InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1243
|
+
var body, deserialized, exception;
|
|
1244
|
+
return __generator(this, function (_a) {
|
|
1245
|
+
body = parsedOutput.body;
|
|
1246
|
+
deserialized = deserializeAws_json1_0InternalServerException(body, context);
|
|
1247
|
+
exception = new InternalServerException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1248
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1249
|
+
});
|
|
1250
|
+
}); };
|
|
1251
|
+
var deserializeAws_json1_0InvalidEndpointExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1252
|
+
var body, deserialized, exception;
|
|
1253
|
+
return __generator(this, function (_a) {
|
|
1254
|
+
body = parsedOutput.body;
|
|
1255
|
+
deserialized = deserializeAws_json1_0InvalidEndpointException(body, context);
|
|
1256
|
+
exception = new InvalidEndpointException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1257
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1258
|
+
});
|
|
1259
|
+
}); };
|
|
1260
|
+
var deserializeAws_json1_0RejectedRecordsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1261
|
+
var body, deserialized, exception;
|
|
1262
|
+
return __generator(this, function (_a) {
|
|
1263
|
+
body = parsedOutput.body;
|
|
1264
|
+
deserialized = deserializeAws_json1_0RejectedRecordsException(body, context);
|
|
1265
|
+
exception = new RejectedRecordsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1266
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1267
|
+
});
|
|
1268
|
+
}); };
|
|
1269
|
+
var deserializeAws_json1_0ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1270
|
+
var body, deserialized, exception;
|
|
1271
|
+
return __generator(this, function (_a) {
|
|
1272
|
+
body = parsedOutput.body;
|
|
1273
|
+
deserialized = deserializeAws_json1_0ResourceNotFoundException(body, context);
|
|
1274
|
+
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1275
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1276
|
+
});
|
|
1277
|
+
}); };
|
|
1278
|
+
var deserializeAws_json1_0ServiceQuotaExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1279
|
+
var body, deserialized, exception;
|
|
1280
|
+
return __generator(this, function (_a) {
|
|
1281
|
+
body = parsedOutput.body;
|
|
1282
|
+
deserialized = deserializeAws_json1_0ServiceQuotaExceededException(body, context);
|
|
1283
|
+
exception = new ServiceQuotaExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1284
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1285
|
+
});
|
|
1286
|
+
}); };
|
|
1287
|
+
var deserializeAws_json1_0ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1288
|
+
var body, deserialized, exception;
|
|
1289
|
+
return __generator(this, function (_a) {
|
|
1290
|
+
body = parsedOutput.body;
|
|
1291
|
+
deserialized = deserializeAws_json1_0ThrottlingException(body, context);
|
|
1292
|
+
exception = new ThrottlingException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1293
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1294
|
+
});
|
|
1295
|
+
}); };
|
|
1296
|
+
var deserializeAws_json1_0ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1297
|
+
var body, deserialized, exception;
|
|
1298
|
+
return __generator(this, function (_a) {
|
|
1299
|
+
body = parsedOutput.body;
|
|
1300
|
+
deserialized = deserializeAws_json1_0ValidationException(body, context);
|
|
1301
|
+
exception = new ValidationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1302
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1303
|
+
});
|
|
1304
|
+
}); };
|
|
1305
|
+
var serializeAws_json1_0CreateDatabaseRequest = function (input, context) {
|
|
1306
|
+
return __assign(__assign(__assign({}, (input.DatabaseName != null && { DatabaseName: input.DatabaseName })), (input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId })), (input.Tags != null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }));
|
|
932
1307
|
};
|
|
933
|
-
|
|
934
|
-
return {
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
...(input.RetentionProperties != null && {
|
|
940
|
-
RetentionProperties: serializeAws_json1_0RetentionProperties(input.RetentionProperties, context),
|
|
941
|
-
}),
|
|
942
|
-
...(input.TableName != null && { TableName: input.TableName }),
|
|
943
|
-
...(input.Tags != null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }),
|
|
944
|
-
};
|
|
1308
|
+
var serializeAws_json1_0CreateTableRequest = function (input, context) {
|
|
1309
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.DatabaseName != null && { DatabaseName: input.DatabaseName })), (input.MagneticStoreWriteProperties != null && {
|
|
1310
|
+
MagneticStoreWriteProperties: serializeAws_json1_0MagneticStoreWriteProperties(input.MagneticStoreWriteProperties, context),
|
|
1311
|
+
})), (input.RetentionProperties != null && {
|
|
1312
|
+
RetentionProperties: serializeAws_json1_0RetentionProperties(input.RetentionProperties, context),
|
|
1313
|
+
})), (input.TableName != null && { TableName: input.TableName })), (input.Tags != null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }));
|
|
945
1314
|
};
|
|
946
|
-
|
|
947
|
-
return {
|
|
948
|
-
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
949
|
-
};
|
|
1315
|
+
var serializeAws_json1_0DeleteDatabaseRequest = function (input, context) {
|
|
1316
|
+
return __assign({}, (input.DatabaseName != null && { DatabaseName: input.DatabaseName }));
|
|
950
1317
|
};
|
|
951
|
-
|
|
952
|
-
return {
|
|
953
|
-
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
954
|
-
...(input.TableName != null && { TableName: input.TableName }),
|
|
955
|
-
};
|
|
1318
|
+
var serializeAws_json1_0DeleteTableRequest = function (input, context) {
|
|
1319
|
+
return __assign(__assign({}, (input.DatabaseName != null && { DatabaseName: input.DatabaseName })), (input.TableName != null && { TableName: input.TableName }));
|
|
956
1320
|
};
|
|
957
|
-
|
|
958
|
-
return {
|
|
959
|
-
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
960
|
-
};
|
|
1321
|
+
var serializeAws_json1_0DescribeDatabaseRequest = function (input, context) {
|
|
1322
|
+
return __assign({}, (input.DatabaseName != null && { DatabaseName: input.DatabaseName }));
|
|
961
1323
|
};
|
|
962
|
-
|
|
1324
|
+
var serializeAws_json1_0DescribeEndpointsRequest = function (input, context) {
|
|
963
1325
|
return {};
|
|
964
1326
|
};
|
|
965
|
-
|
|
966
|
-
return {
|
|
967
|
-
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
968
|
-
...(input.TableName != null && { TableName: input.TableName }),
|
|
969
|
-
};
|
|
1327
|
+
var serializeAws_json1_0DescribeTableRequest = function (input, context) {
|
|
1328
|
+
return __assign(__assign({}, (input.DatabaseName != null && { DatabaseName: input.DatabaseName })), (input.TableName != null && { TableName: input.TableName }));
|
|
970
1329
|
};
|
|
971
|
-
|
|
972
|
-
return {
|
|
973
|
-
...(input.DimensionValueType != null && { DimensionValueType: input.DimensionValueType }),
|
|
974
|
-
...(input.Name != null && { Name: input.Name }),
|
|
975
|
-
...(input.Value != null && { Value: input.Value }),
|
|
976
|
-
};
|
|
1330
|
+
var serializeAws_json1_0Dimension = function (input, context) {
|
|
1331
|
+
return __assign(__assign(__assign({}, (input.DimensionValueType != null && { DimensionValueType: input.DimensionValueType })), (input.Name != null && { Name: input.Name })), (input.Value != null && { Value: input.Value }));
|
|
977
1332
|
};
|
|
978
|
-
|
|
1333
|
+
var serializeAws_json1_0Dimensions = function (input, context) {
|
|
979
1334
|
return input
|
|
980
|
-
.filter((e)
|
|
981
|
-
.map((entry)
|
|
1335
|
+
.filter(function (e) { return e != null; })
|
|
1336
|
+
.map(function (entry) {
|
|
982
1337
|
return serializeAws_json1_0Dimension(entry, context);
|
|
983
1338
|
});
|
|
984
1339
|
};
|
|
985
|
-
|
|
986
|
-
return {
|
|
987
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
988
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
989
|
-
};
|
|
1340
|
+
var serializeAws_json1_0ListDatabasesRequest = function (input, context) {
|
|
1341
|
+
return __assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
990
1342
|
};
|
|
991
|
-
|
|
992
|
-
return {
|
|
993
|
-
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
994
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
995
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
996
|
-
};
|
|
1343
|
+
var serializeAws_json1_0ListTablesRequest = function (input, context) {
|
|
1344
|
+
return __assign(__assign(__assign({}, (input.DatabaseName != null && { DatabaseName: input.DatabaseName })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
997
1345
|
};
|
|
998
|
-
|
|
999
|
-
return {
|
|
1000
|
-
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
1001
|
-
};
|
|
1346
|
+
var serializeAws_json1_0ListTagsForResourceRequest = function (input, context) {
|
|
1347
|
+
return __assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN }));
|
|
1002
1348
|
};
|
|
1003
|
-
|
|
1004
|
-
return {
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
}),
|
|
1008
|
-
};
|
|
1349
|
+
var serializeAws_json1_0MagneticStoreRejectedDataLocation = function (input, context) {
|
|
1350
|
+
return __assign({}, (input.S3Configuration != null && {
|
|
1351
|
+
S3Configuration: serializeAws_json1_0S3Configuration(input.S3Configuration, context),
|
|
1352
|
+
}));
|
|
1009
1353
|
};
|
|
1010
|
-
|
|
1011
|
-
return {
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
MagneticStoreRejectedDataLocation: serializeAws_json1_0MagneticStoreRejectedDataLocation(input.MagneticStoreRejectedDataLocation, context),
|
|
1015
|
-
}),
|
|
1016
|
-
};
|
|
1354
|
+
var serializeAws_json1_0MagneticStoreWriteProperties = function (input, context) {
|
|
1355
|
+
return __assign(__assign({}, (input.EnableMagneticStoreWrites != null && { EnableMagneticStoreWrites: input.EnableMagneticStoreWrites })), (input.MagneticStoreRejectedDataLocation != null && {
|
|
1356
|
+
MagneticStoreRejectedDataLocation: serializeAws_json1_0MagneticStoreRejectedDataLocation(input.MagneticStoreRejectedDataLocation, context),
|
|
1357
|
+
}));
|
|
1017
1358
|
};
|
|
1018
|
-
|
|
1019
|
-
return {
|
|
1020
|
-
...(input.Name != null && { Name: input.Name }),
|
|
1021
|
-
...(input.Type != null && { Type: input.Type }),
|
|
1022
|
-
...(input.Value != null && { Value: input.Value }),
|
|
1023
|
-
};
|
|
1359
|
+
var serializeAws_json1_0MeasureValue = function (input, context) {
|
|
1360
|
+
return __assign(__assign(__assign({}, (input.Name != null && { Name: input.Name })), (input.Type != null && { Type: input.Type })), (input.Value != null && { Value: input.Value }));
|
|
1024
1361
|
};
|
|
1025
|
-
|
|
1362
|
+
var serializeAws_json1_0MeasureValues = function (input, context) {
|
|
1026
1363
|
return input
|
|
1027
|
-
.filter((e)
|
|
1028
|
-
.map((entry)
|
|
1364
|
+
.filter(function (e) { return e != null; })
|
|
1365
|
+
.map(function (entry) {
|
|
1029
1366
|
return serializeAws_json1_0MeasureValue(entry, context);
|
|
1030
1367
|
});
|
|
1031
1368
|
};
|
|
1032
|
-
|
|
1033
|
-
return {
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
...(input.MeasureValue != null && { MeasureValue: input.MeasureValue }),
|
|
1037
|
-
...(input.MeasureValueType != null && { MeasureValueType: input.MeasureValueType }),
|
|
1038
|
-
...(input.MeasureValues != null && {
|
|
1039
|
-
MeasureValues: serializeAws_json1_0MeasureValues(input.MeasureValues, context),
|
|
1040
|
-
}),
|
|
1041
|
-
...(input.Time != null && { Time: input.Time }),
|
|
1042
|
-
...(input.TimeUnit != null && { TimeUnit: input.TimeUnit }),
|
|
1043
|
-
...(input.Version != null && { Version: input.Version }),
|
|
1044
|
-
};
|
|
1369
|
+
var serializeAws_json1_0_Record = function (input, context) {
|
|
1370
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Dimensions != null && { Dimensions: serializeAws_json1_0Dimensions(input.Dimensions, context) })), (input.MeasureName != null && { MeasureName: input.MeasureName })), (input.MeasureValue != null && { MeasureValue: input.MeasureValue })), (input.MeasureValueType != null && { MeasureValueType: input.MeasureValueType })), (input.MeasureValues != null && {
|
|
1371
|
+
MeasureValues: serializeAws_json1_0MeasureValues(input.MeasureValues, context),
|
|
1372
|
+
})), (input.Time != null && { Time: input.Time })), (input.TimeUnit != null && { TimeUnit: input.TimeUnit })), (input.Version != null && { Version: input.Version }));
|
|
1045
1373
|
};
|
|
1046
|
-
|
|
1374
|
+
var serializeAws_json1_0Records = function (input, context) {
|
|
1047
1375
|
return input
|
|
1048
|
-
.filter((e)
|
|
1049
|
-
.map((entry)
|
|
1376
|
+
.filter(function (e) { return e != null; })
|
|
1377
|
+
.map(function (entry) {
|
|
1050
1378
|
return serializeAws_json1_0_Record(entry, context);
|
|
1051
1379
|
});
|
|
1052
1380
|
};
|
|
1053
|
-
|
|
1054
|
-
return {
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
MemoryStoreRetentionPeriodInHours: input.MemoryStoreRetentionPeriodInHours,
|
|
1060
|
-
}),
|
|
1061
|
-
};
|
|
1381
|
+
var serializeAws_json1_0RetentionProperties = function (input, context) {
|
|
1382
|
+
return __assign(__assign({}, (input.MagneticStoreRetentionPeriodInDays != null && {
|
|
1383
|
+
MagneticStoreRetentionPeriodInDays: input.MagneticStoreRetentionPeriodInDays,
|
|
1384
|
+
})), (input.MemoryStoreRetentionPeriodInHours != null && {
|
|
1385
|
+
MemoryStoreRetentionPeriodInHours: input.MemoryStoreRetentionPeriodInHours,
|
|
1386
|
+
}));
|
|
1062
1387
|
};
|
|
1063
|
-
|
|
1064
|
-
return {
|
|
1065
|
-
...(input.BucketName != null && { BucketName: input.BucketName }),
|
|
1066
|
-
...(input.EncryptionOption != null && { EncryptionOption: input.EncryptionOption }),
|
|
1067
|
-
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
1068
|
-
...(input.ObjectKeyPrefix != null && { ObjectKeyPrefix: input.ObjectKeyPrefix }),
|
|
1069
|
-
};
|
|
1388
|
+
var serializeAws_json1_0S3Configuration = function (input, context) {
|
|
1389
|
+
return __assign(__assign(__assign(__assign({}, (input.BucketName != null && { BucketName: input.BucketName })), (input.EncryptionOption != null && { EncryptionOption: input.EncryptionOption })), (input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId })), (input.ObjectKeyPrefix != null && { ObjectKeyPrefix: input.ObjectKeyPrefix }));
|
|
1070
1390
|
};
|
|
1071
|
-
|
|
1072
|
-
return {
|
|
1073
|
-
...(input.Key != null && { Key: input.Key }),
|
|
1074
|
-
...(input.Value != null && { Value: input.Value }),
|
|
1075
|
-
};
|
|
1391
|
+
var serializeAws_json1_0Tag = function (input, context) {
|
|
1392
|
+
return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Value != null && { Value: input.Value }));
|
|
1076
1393
|
};
|
|
1077
|
-
|
|
1394
|
+
var serializeAws_json1_0TagKeyList = function (input, context) {
|
|
1078
1395
|
return input
|
|
1079
|
-
.filter((e)
|
|
1080
|
-
.map((entry)
|
|
1396
|
+
.filter(function (e) { return e != null; })
|
|
1397
|
+
.map(function (entry) {
|
|
1081
1398
|
return entry;
|
|
1082
1399
|
});
|
|
1083
1400
|
};
|
|
1084
|
-
|
|
1401
|
+
var serializeAws_json1_0TagList = function (input, context) {
|
|
1085
1402
|
return input
|
|
1086
|
-
.filter((e)
|
|
1087
|
-
.map((entry)
|
|
1403
|
+
.filter(function (e) { return e != null; })
|
|
1404
|
+
.map(function (entry) {
|
|
1088
1405
|
return serializeAws_json1_0Tag(entry, context);
|
|
1089
1406
|
});
|
|
1090
1407
|
};
|
|
1091
|
-
|
|
1092
|
-
return {
|
|
1093
|
-
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
1094
|
-
...(input.Tags != null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }),
|
|
1095
|
-
};
|
|
1408
|
+
var serializeAws_json1_0TagResourceRequest = function (input, context) {
|
|
1409
|
+
return __assign(__assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN })), (input.Tags != null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }));
|
|
1096
1410
|
};
|
|
1097
|
-
|
|
1098
|
-
return {
|
|
1099
|
-
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
1100
|
-
...(input.TagKeys != null && { TagKeys: serializeAws_json1_0TagKeyList(input.TagKeys, context) }),
|
|
1101
|
-
};
|
|
1411
|
+
var serializeAws_json1_0UntagResourceRequest = function (input, context) {
|
|
1412
|
+
return __assign(__assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN })), (input.TagKeys != null && { TagKeys: serializeAws_json1_0TagKeyList(input.TagKeys, context) }));
|
|
1102
1413
|
};
|
|
1103
|
-
|
|
1104
|
-
return {
|
|
1105
|
-
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
1106
|
-
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
1107
|
-
};
|
|
1414
|
+
var serializeAws_json1_0UpdateDatabaseRequest = function (input, context) {
|
|
1415
|
+
return __assign(__assign({}, (input.DatabaseName != null && { DatabaseName: input.DatabaseName })), (input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }));
|
|
1108
1416
|
};
|
|
1109
|
-
|
|
1110
|
-
return {
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
...(input.RetentionProperties != null && {
|
|
1116
|
-
RetentionProperties: serializeAws_json1_0RetentionProperties(input.RetentionProperties, context),
|
|
1117
|
-
}),
|
|
1118
|
-
...(input.TableName != null && { TableName: input.TableName }),
|
|
1119
|
-
};
|
|
1417
|
+
var serializeAws_json1_0UpdateTableRequest = function (input, context) {
|
|
1418
|
+
return __assign(__assign(__assign(__assign({}, (input.DatabaseName != null && { DatabaseName: input.DatabaseName })), (input.MagneticStoreWriteProperties != null && {
|
|
1419
|
+
MagneticStoreWriteProperties: serializeAws_json1_0MagneticStoreWriteProperties(input.MagneticStoreWriteProperties, context),
|
|
1420
|
+
})), (input.RetentionProperties != null && {
|
|
1421
|
+
RetentionProperties: serializeAws_json1_0RetentionProperties(input.RetentionProperties, context),
|
|
1422
|
+
})), (input.TableName != null && { TableName: input.TableName }));
|
|
1120
1423
|
};
|
|
1121
|
-
|
|
1122
|
-
return {
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
}),
|
|
1126
|
-
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
1127
|
-
...(input.Records != null && { Records: serializeAws_json1_0Records(input.Records, context) }),
|
|
1128
|
-
...(input.TableName != null && { TableName: input.TableName }),
|
|
1129
|
-
};
|
|
1424
|
+
var serializeAws_json1_0WriteRecordsRequest = function (input, context) {
|
|
1425
|
+
return __assign(__assign(__assign(__assign({}, (input.CommonAttributes != null && {
|
|
1426
|
+
CommonAttributes: serializeAws_json1_0_Record(input.CommonAttributes, context),
|
|
1427
|
+
})), (input.DatabaseName != null && { DatabaseName: input.DatabaseName })), (input.Records != null && { Records: serializeAws_json1_0Records(input.Records, context) })), (input.TableName != null && { TableName: input.TableName }));
|
|
1130
1428
|
};
|
|
1131
|
-
|
|
1429
|
+
var deserializeAws_json1_0AccessDeniedException = function (output, context) {
|
|
1132
1430
|
return {
|
|
1133
1431
|
Message: __expectString(output.Message),
|
|
1134
1432
|
};
|
|
1135
1433
|
};
|
|
1136
|
-
|
|
1434
|
+
var deserializeAws_json1_0ConflictException = function (output, context) {
|
|
1137
1435
|
return {
|
|
1138
1436
|
Message: __expectString(output.Message),
|
|
1139
1437
|
};
|
|
1140
1438
|
};
|
|
1141
|
-
|
|
1439
|
+
var deserializeAws_json1_0CreateDatabaseResponse = function (output, context) {
|
|
1142
1440
|
return {
|
|
1143
1441
|
Database: output.Database != null ? deserializeAws_json1_0Database(output.Database, context) : undefined,
|
|
1144
1442
|
};
|
|
1145
1443
|
};
|
|
1146
|
-
|
|
1444
|
+
var deserializeAws_json1_0CreateTableResponse = function (output, context) {
|
|
1147
1445
|
return {
|
|
1148
1446
|
Table: output.Table != null ? deserializeAws_json1_0Table(output.Table, context) : undefined,
|
|
1149
1447
|
};
|
|
1150
1448
|
};
|
|
1151
|
-
|
|
1449
|
+
var deserializeAws_json1_0Database = function (output, context) {
|
|
1152
1450
|
return {
|
|
1153
1451
|
Arn: __expectString(output.Arn),
|
|
1154
1452
|
CreationTime: output.CreationTime != null
|
|
@@ -1162,10 +1460,10 @@ const deserializeAws_json1_0Database = (output, context) => {
|
|
|
1162
1460
|
TableCount: __expectLong(output.TableCount),
|
|
1163
1461
|
};
|
|
1164
1462
|
};
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
.filter((e)
|
|
1168
|
-
.map((entry)
|
|
1463
|
+
var deserializeAws_json1_0DatabaseList = function (output, context) {
|
|
1464
|
+
var retVal = (output || [])
|
|
1465
|
+
.filter(function (e) { return e != null; })
|
|
1466
|
+
.map(function (entry) {
|
|
1169
1467
|
if (entry === null) {
|
|
1170
1468
|
return null;
|
|
1171
1469
|
}
|
|
@@ -1173,31 +1471,31 @@ const deserializeAws_json1_0DatabaseList = (output, context) => {
|
|
|
1173
1471
|
});
|
|
1174
1472
|
return retVal;
|
|
1175
1473
|
};
|
|
1176
|
-
|
|
1474
|
+
var deserializeAws_json1_0DescribeDatabaseResponse = function (output, context) {
|
|
1177
1475
|
return {
|
|
1178
1476
|
Database: output.Database != null ? deserializeAws_json1_0Database(output.Database, context) : undefined,
|
|
1179
1477
|
};
|
|
1180
1478
|
};
|
|
1181
|
-
|
|
1479
|
+
var deserializeAws_json1_0DescribeEndpointsResponse = function (output, context) {
|
|
1182
1480
|
return {
|
|
1183
1481
|
Endpoints: output.Endpoints != null ? deserializeAws_json1_0Endpoints(output.Endpoints, context) : undefined,
|
|
1184
1482
|
};
|
|
1185
1483
|
};
|
|
1186
|
-
|
|
1484
|
+
var deserializeAws_json1_0DescribeTableResponse = function (output, context) {
|
|
1187
1485
|
return {
|
|
1188
1486
|
Table: output.Table != null ? deserializeAws_json1_0Table(output.Table, context) : undefined,
|
|
1189
1487
|
};
|
|
1190
1488
|
};
|
|
1191
|
-
|
|
1489
|
+
var deserializeAws_json1_0Endpoint = function (output, context) {
|
|
1192
1490
|
return {
|
|
1193
1491
|
Address: __expectString(output.Address),
|
|
1194
1492
|
CachePeriodInMinutes: __expectLong(output.CachePeriodInMinutes),
|
|
1195
1493
|
};
|
|
1196
1494
|
};
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
.filter((e)
|
|
1200
|
-
.map((entry)
|
|
1495
|
+
var deserializeAws_json1_0Endpoints = function (output, context) {
|
|
1496
|
+
var retVal = (output || [])
|
|
1497
|
+
.filter(function (e) { return e != null; })
|
|
1498
|
+
.map(function (entry) {
|
|
1201
1499
|
if (entry === null) {
|
|
1202
1500
|
return null;
|
|
1203
1501
|
}
|
|
@@ -1205,41 +1503,41 @@ const deserializeAws_json1_0Endpoints = (output, context) => {
|
|
|
1205
1503
|
});
|
|
1206
1504
|
return retVal;
|
|
1207
1505
|
};
|
|
1208
|
-
|
|
1506
|
+
var deserializeAws_json1_0InternalServerException = function (output, context) {
|
|
1209
1507
|
return {
|
|
1210
1508
|
Message: __expectString(output.Message),
|
|
1211
1509
|
};
|
|
1212
1510
|
};
|
|
1213
|
-
|
|
1511
|
+
var deserializeAws_json1_0InvalidEndpointException = function (output, context) {
|
|
1214
1512
|
return {
|
|
1215
1513
|
Message: __expectString(output.Message),
|
|
1216
1514
|
};
|
|
1217
1515
|
};
|
|
1218
|
-
|
|
1516
|
+
var deserializeAws_json1_0ListDatabasesResponse = function (output, context) {
|
|
1219
1517
|
return {
|
|
1220
1518
|
Databases: output.Databases != null ? deserializeAws_json1_0DatabaseList(output.Databases, context) : undefined,
|
|
1221
1519
|
NextToken: __expectString(output.NextToken),
|
|
1222
1520
|
};
|
|
1223
1521
|
};
|
|
1224
|
-
|
|
1522
|
+
var deserializeAws_json1_0ListTablesResponse = function (output, context) {
|
|
1225
1523
|
return {
|
|
1226
1524
|
NextToken: __expectString(output.NextToken),
|
|
1227
1525
|
Tables: output.Tables != null ? deserializeAws_json1_0TableList(output.Tables, context) : undefined,
|
|
1228
1526
|
};
|
|
1229
1527
|
};
|
|
1230
|
-
|
|
1528
|
+
var deserializeAws_json1_0ListTagsForResourceResponse = function (output, context) {
|
|
1231
1529
|
return {
|
|
1232
1530
|
Tags: output.Tags != null ? deserializeAws_json1_0TagList(output.Tags, context) : undefined,
|
|
1233
1531
|
};
|
|
1234
1532
|
};
|
|
1235
|
-
|
|
1533
|
+
var deserializeAws_json1_0MagneticStoreRejectedDataLocation = function (output, context) {
|
|
1236
1534
|
return {
|
|
1237
1535
|
S3Configuration: output.S3Configuration != null
|
|
1238
1536
|
? deserializeAws_json1_0S3Configuration(output.S3Configuration, context)
|
|
1239
1537
|
: undefined,
|
|
1240
1538
|
};
|
|
1241
1539
|
};
|
|
1242
|
-
|
|
1540
|
+
var deserializeAws_json1_0MagneticStoreWriteProperties = function (output, context) {
|
|
1243
1541
|
return {
|
|
1244
1542
|
EnableMagneticStoreWrites: __expectBoolean(output.EnableMagneticStoreWrites),
|
|
1245
1543
|
MagneticStoreRejectedDataLocation: output.MagneticStoreRejectedDataLocation != null
|
|
@@ -1247,24 +1545,24 @@ const deserializeAws_json1_0MagneticStoreWriteProperties = (output, context) =>
|
|
|
1247
1545
|
: undefined,
|
|
1248
1546
|
};
|
|
1249
1547
|
};
|
|
1250
|
-
|
|
1548
|
+
var deserializeAws_json1_0RecordsIngested = function (output, context) {
|
|
1251
1549
|
return {
|
|
1252
1550
|
MagneticStore: __expectInt32(output.MagneticStore),
|
|
1253
1551
|
MemoryStore: __expectInt32(output.MemoryStore),
|
|
1254
1552
|
Total: __expectInt32(output.Total),
|
|
1255
1553
|
};
|
|
1256
1554
|
};
|
|
1257
|
-
|
|
1555
|
+
var deserializeAws_json1_0RejectedRecord = function (output, context) {
|
|
1258
1556
|
return {
|
|
1259
1557
|
ExistingVersion: __expectLong(output.ExistingVersion),
|
|
1260
1558
|
Reason: __expectString(output.Reason),
|
|
1261
1559
|
RecordIndex: __expectInt32(output.RecordIndex),
|
|
1262
1560
|
};
|
|
1263
1561
|
};
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
.filter((e)
|
|
1267
|
-
.map((entry)
|
|
1562
|
+
var deserializeAws_json1_0RejectedRecords = function (output, context) {
|
|
1563
|
+
var retVal = (output || [])
|
|
1564
|
+
.filter(function (e) { return e != null; })
|
|
1565
|
+
.map(function (entry) {
|
|
1268
1566
|
if (entry === null) {
|
|
1269
1567
|
return null;
|
|
1270
1568
|
}
|
|
@@ -1272,7 +1570,7 @@ const deserializeAws_json1_0RejectedRecords = (output, context) => {
|
|
|
1272
1570
|
});
|
|
1273
1571
|
return retVal;
|
|
1274
1572
|
};
|
|
1275
|
-
|
|
1573
|
+
var deserializeAws_json1_0RejectedRecordsException = function (output, context) {
|
|
1276
1574
|
return {
|
|
1277
1575
|
Message: __expectString(output.Message),
|
|
1278
1576
|
RejectedRecords: output.RejectedRecords != null
|
|
@@ -1280,18 +1578,18 @@ const deserializeAws_json1_0RejectedRecordsException = (output, context) => {
|
|
|
1280
1578
|
: undefined,
|
|
1281
1579
|
};
|
|
1282
1580
|
};
|
|
1283
|
-
|
|
1581
|
+
var deserializeAws_json1_0ResourceNotFoundException = function (output, context) {
|
|
1284
1582
|
return {
|
|
1285
1583
|
Message: __expectString(output.Message),
|
|
1286
1584
|
};
|
|
1287
1585
|
};
|
|
1288
|
-
|
|
1586
|
+
var deserializeAws_json1_0RetentionProperties = function (output, context) {
|
|
1289
1587
|
return {
|
|
1290
1588
|
MagneticStoreRetentionPeriodInDays: __expectLong(output.MagneticStoreRetentionPeriodInDays),
|
|
1291
1589
|
MemoryStoreRetentionPeriodInHours: __expectLong(output.MemoryStoreRetentionPeriodInHours),
|
|
1292
1590
|
};
|
|
1293
1591
|
};
|
|
1294
|
-
|
|
1592
|
+
var deserializeAws_json1_0S3Configuration = function (output, context) {
|
|
1295
1593
|
return {
|
|
1296
1594
|
BucketName: __expectString(output.BucketName),
|
|
1297
1595
|
EncryptionOption: __expectString(output.EncryptionOption),
|
|
@@ -1299,12 +1597,12 @@ const deserializeAws_json1_0S3Configuration = (output, context) => {
|
|
|
1299
1597
|
ObjectKeyPrefix: __expectString(output.ObjectKeyPrefix),
|
|
1300
1598
|
};
|
|
1301
1599
|
};
|
|
1302
|
-
|
|
1600
|
+
var deserializeAws_json1_0ServiceQuotaExceededException = function (output, context) {
|
|
1303
1601
|
return {
|
|
1304
1602
|
Message: __expectString(output.Message),
|
|
1305
1603
|
};
|
|
1306
1604
|
};
|
|
1307
|
-
|
|
1605
|
+
var deserializeAws_json1_0Table = function (output, context) {
|
|
1308
1606
|
return {
|
|
1309
1607
|
Arn: __expectString(output.Arn),
|
|
1310
1608
|
CreationTime: output.CreationTime != null
|
|
@@ -1324,10 +1622,10 @@ const deserializeAws_json1_0Table = (output, context) => {
|
|
|
1324
1622
|
TableStatus: __expectString(output.TableStatus),
|
|
1325
1623
|
};
|
|
1326
1624
|
};
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
.filter((e)
|
|
1330
|
-
.map((entry)
|
|
1625
|
+
var deserializeAws_json1_0TableList = function (output, context) {
|
|
1626
|
+
var retVal = (output || [])
|
|
1627
|
+
.filter(function (e) { return e != null; })
|
|
1628
|
+
.map(function (entry) {
|
|
1331
1629
|
if (entry === null) {
|
|
1332
1630
|
return null;
|
|
1333
1631
|
}
|
|
@@ -1335,16 +1633,16 @@ const deserializeAws_json1_0TableList = (output, context) => {
|
|
|
1335
1633
|
});
|
|
1336
1634
|
return retVal;
|
|
1337
1635
|
};
|
|
1338
|
-
|
|
1636
|
+
var deserializeAws_json1_0Tag = function (output, context) {
|
|
1339
1637
|
return {
|
|
1340
1638
|
Key: __expectString(output.Key),
|
|
1341
1639
|
Value: __expectString(output.Value),
|
|
1342
1640
|
};
|
|
1343
1641
|
};
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
.filter((e)
|
|
1347
|
-
.map((entry)
|
|
1642
|
+
var deserializeAws_json1_0TagList = function (output, context) {
|
|
1643
|
+
var retVal = (output || [])
|
|
1644
|
+
.filter(function (e) { return e != null; })
|
|
1645
|
+
.map(function (entry) {
|
|
1348
1646
|
if (entry === null) {
|
|
1349
1647
|
return null;
|
|
1350
1648
|
}
|
|
@@ -1352,85 +1650,108 @@ const deserializeAws_json1_0TagList = (output, context) => {
|
|
|
1352
1650
|
});
|
|
1353
1651
|
return retVal;
|
|
1354
1652
|
};
|
|
1355
|
-
|
|
1653
|
+
var deserializeAws_json1_0TagResourceResponse = function (output, context) {
|
|
1356
1654
|
return {};
|
|
1357
1655
|
};
|
|
1358
|
-
|
|
1656
|
+
var deserializeAws_json1_0ThrottlingException = function (output, context) {
|
|
1359
1657
|
return {
|
|
1360
1658
|
Message: __expectString(output.Message),
|
|
1361
1659
|
};
|
|
1362
1660
|
};
|
|
1363
|
-
|
|
1661
|
+
var deserializeAws_json1_0UntagResourceResponse = function (output, context) {
|
|
1364
1662
|
return {};
|
|
1365
1663
|
};
|
|
1366
|
-
|
|
1664
|
+
var deserializeAws_json1_0UpdateDatabaseResponse = function (output, context) {
|
|
1367
1665
|
return {
|
|
1368
1666
|
Database: output.Database != null ? deserializeAws_json1_0Database(output.Database, context) : undefined,
|
|
1369
1667
|
};
|
|
1370
1668
|
};
|
|
1371
|
-
|
|
1669
|
+
var deserializeAws_json1_0UpdateTableResponse = function (output, context) {
|
|
1372
1670
|
return {
|
|
1373
1671
|
Table: output.Table != null ? deserializeAws_json1_0Table(output.Table, context) : undefined,
|
|
1374
1672
|
};
|
|
1375
1673
|
};
|
|
1376
|
-
|
|
1674
|
+
var deserializeAws_json1_0ValidationException = function (output, context) {
|
|
1377
1675
|
return {
|
|
1378
1676
|
Message: __expectString(output.Message),
|
|
1379
1677
|
};
|
|
1380
1678
|
};
|
|
1381
|
-
|
|
1679
|
+
var deserializeAws_json1_0WriteRecordsResponse = function (output, context) {
|
|
1382
1680
|
return {
|
|
1383
1681
|
RecordsIngested: output.RecordsIngested != null
|
|
1384
1682
|
? deserializeAws_json1_0RecordsIngested(output.RecordsIngested, context)
|
|
1385
1683
|
: undefined,
|
|
1386
1684
|
};
|
|
1387
1685
|
};
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1686
|
+
var deserializeMetadata = function (output) {
|
|
1687
|
+
var _a, _b;
|
|
1688
|
+
return ({
|
|
1689
|
+
httpStatusCode: output.statusCode,
|
|
1690
|
+
requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
|
|
1691
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1692
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
1693
|
+
});
|
|
1694
|
+
};
|
|
1695
|
+
var collectBody = function (streamBody, context) {
|
|
1696
|
+
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
1395
1697
|
if (streamBody instanceof Uint8Array) {
|
|
1396
1698
|
return Promise.resolve(streamBody);
|
|
1397
1699
|
}
|
|
1398
1700
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
1399
1701
|
};
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1702
|
+
var collectBodyString = function (streamBody, context) {
|
|
1703
|
+
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
1704
|
+
};
|
|
1705
|
+
var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, body) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1706
|
+
var _a, hostname, _b, protocol, port, basePath, contents;
|
|
1707
|
+
return __generator(this, function (_c) {
|
|
1708
|
+
switch (_c.label) {
|
|
1709
|
+
case 0: return [4, context.endpoint()];
|
|
1710
|
+
case 1:
|
|
1711
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1712
|
+
contents = {
|
|
1713
|
+
protocol: protocol,
|
|
1714
|
+
hostname: hostname,
|
|
1715
|
+
port: port,
|
|
1716
|
+
method: "POST",
|
|
1717
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
1718
|
+
headers: headers,
|
|
1719
|
+
};
|
|
1720
|
+
if (resolvedHostname !== undefined) {
|
|
1721
|
+
contents.hostname = resolvedHostname;
|
|
1722
|
+
}
|
|
1723
|
+
if (body !== undefined) {
|
|
1724
|
+
contents.body = body;
|
|
1725
|
+
}
|
|
1726
|
+
return [2, new __HttpRequest(contents)];
|
|
1727
|
+
}
|
|
1728
|
+
});
|
|
1729
|
+
}); };
|
|
1730
|
+
var parseBody = function (streamBody, context) {
|
|
1731
|
+
return collectBodyString(streamBody, context).then(function (encoded) {
|
|
1732
|
+
if (encoded.length) {
|
|
1733
|
+
return JSON.parse(encoded);
|
|
1734
|
+
}
|
|
1735
|
+
return {};
|
|
1736
|
+
});
|
|
1418
1737
|
};
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
}
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1738
|
+
var parseErrorBody = function (errorBody, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1739
|
+
var value;
|
|
1740
|
+
var _a;
|
|
1741
|
+
return __generator(this, function (_b) {
|
|
1742
|
+
switch (_b.label) {
|
|
1743
|
+
case 0: return [4, parseBody(errorBody, context)];
|
|
1744
|
+
case 1:
|
|
1745
|
+
value = _b.sent();
|
|
1746
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
1747
|
+
return [2, value];
|
|
1748
|
+
}
|
|
1749
|
+
});
|
|
1750
|
+
}); };
|
|
1751
|
+
var loadRestJsonErrorCode = function (output, data) {
|
|
1752
|
+
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
1753
|
+
var sanitizeErrorCode = function (rawValue) {
|
|
1754
|
+
var cleanValue = rawValue;
|
|
1434
1755
|
if (typeof cleanValue === "number") {
|
|
1435
1756
|
cleanValue = cleanValue.toString();
|
|
1436
1757
|
}
|
|
@@ -1445,7 +1766,7 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
1445
1766
|
}
|
|
1446
1767
|
return cleanValue;
|
|
1447
1768
|
};
|
|
1448
|
-
|
|
1769
|
+
var headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1449
1770
|
if (headerKey !== undefined) {
|
|
1450
1771
|
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1451
1772
|
}
|