@aws-sdk/client-keyspaces 3.181.0 → 3.183.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist-es/Keyspaces.js +54 -61
- package/dist-es/KeyspacesClient.js +22 -28
- package/dist-es/commands/CreateKeyspaceCommand.js +21 -28
- package/dist-es/commands/CreateTableCommand.js +21 -28
- package/dist-es/commands/DeleteKeyspaceCommand.js +21 -28
- package/dist-es/commands/DeleteTableCommand.js +21 -28
- package/dist-es/commands/GetKeyspaceCommand.js +21 -28
- package/dist-es/commands/GetTableCommand.js +21 -28
- package/dist-es/commands/ListKeyspacesCommand.js +21 -28
- package/dist-es/commands/ListTablesCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/RestoreTableCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateTableCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/KeyspacesServiceException.js +5 -10
- package/dist-es/models/models_0.js +190 -109
- package/dist-es/pagination/ListKeyspacesPaginator.js +25 -68
- package/dist-es/pagination/ListTablesPaginator.js +25 -68
- package/dist-es/pagination/ListTagsForResourcePaginator.js +25 -68
- package/dist-es/protocols/Aws_json1_0.js +1057 -1308
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
|
@@ -1,1243 +1,1015 @@
|
|
|
1
|
-
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
2
|
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { KeyspacesServiceException as __BaseException } from "../models/KeyspacesServiceException";
|
|
5
4
|
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ValidationException, } from "../models/models_0";
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
return
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}
|
|
105
|
-
export
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
export
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
}
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
}
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
}
|
|
629
|
-
}
|
|
630
|
-
export
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
}
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
}
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
case "com.amazonaws.keyspaces#InternalServerException": return [3, 4];
|
|
733
|
-
case "ResourceNotFoundException": return [3, 6];
|
|
734
|
-
case "com.amazonaws.keyspaces#ResourceNotFoundException": return [3, 6];
|
|
735
|
-
case "ServiceQuotaExceededException": return [3, 8];
|
|
736
|
-
case "com.amazonaws.keyspaces#ServiceQuotaExceededException": return [3, 8];
|
|
737
|
-
case "ValidationException": return [3, 10];
|
|
738
|
-
case "com.amazonaws.keyspaces#ValidationException": return [3, 10];
|
|
739
|
-
}
|
|
740
|
-
return [3, 12];
|
|
741
|
-
case 2: return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
742
|
-
case 3: throw _d.sent();
|
|
743
|
-
case 4: return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
744
|
-
case 5: throw _d.sent();
|
|
745
|
-
case 6: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
746
|
-
case 7: throw _d.sent();
|
|
747
|
-
case 8: return [4, deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
748
|
-
case 9: throw _d.sent();
|
|
749
|
-
case 10: return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
750
|
-
case 11: throw _d.sent();
|
|
751
|
-
case 12:
|
|
752
|
-
parsedBody = parsedOutput.body;
|
|
753
|
-
throwDefaultError({
|
|
754
|
-
output: output,
|
|
755
|
-
parsedBody: parsedBody,
|
|
756
|
-
exceptionCtor: __BaseException,
|
|
757
|
-
errorCode: errorCode,
|
|
758
|
-
});
|
|
759
|
-
_d.label = 13;
|
|
760
|
-
case 13: return [2];
|
|
761
|
-
}
|
|
762
|
-
});
|
|
763
|
-
}); };
|
|
764
|
-
export var deserializeAws_json1_0RestoreTableCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
765
|
-
var data, contents, response;
|
|
766
|
-
return __generator(this, function (_a) {
|
|
767
|
-
switch (_a.label) {
|
|
768
|
-
case 0:
|
|
769
|
-
if (output.statusCode >= 300) {
|
|
770
|
-
return [2, deserializeAws_json1_0RestoreTableCommandError(output, context)];
|
|
771
|
-
}
|
|
772
|
-
return [4, parseBody(output.body, context)];
|
|
773
|
-
case 1:
|
|
774
|
-
data = _a.sent();
|
|
775
|
-
contents = {};
|
|
776
|
-
contents = deserializeAws_json1_0RestoreTableResponse(data, context);
|
|
777
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
778
|
-
return [2, Promise.resolve(response)];
|
|
779
|
-
}
|
|
780
|
-
});
|
|
781
|
-
}); };
|
|
782
|
-
var deserializeAws_json1_0RestoreTableCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
783
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
784
|
-
var _c;
|
|
785
|
-
return __generator(this, function (_d) {
|
|
786
|
-
switch (_d.label) {
|
|
787
|
-
case 0:
|
|
788
|
-
_a = [__assign({}, output)];
|
|
789
|
-
_c = {};
|
|
790
|
-
return [4, parseErrorBody(output.body, context)];
|
|
791
|
-
case 1:
|
|
792
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
793
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
794
|
-
_b = errorCode;
|
|
795
|
-
switch (_b) {
|
|
796
|
-
case "AccessDeniedException": return [3, 2];
|
|
797
|
-
case "com.amazonaws.keyspaces#AccessDeniedException": return [3, 2];
|
|
798
|
-
case "ConflictException": return [3, 4];
|
|
799
|
-
case "com.amazonaws.keyspaces#ConflictException": return [3, 4];
|
|
800
|
-
case "InternalServerException": return [3, 6];
|
|
801
|
-
case "com.amazonaws.keyspaces#InternalServerException": return [3, 6];
|
|
802
|
-
case "ResourceNotFoundException": return [3, 8];
|
|
803
|
-
case "com.amazonaws.keyspaces#ResourceNotFoundException": return [3, 8];
|
|
804
|
-
case "ServiceQuotaExceededException": return [3, 10];
|
|
805
|
-
case "com.amazonaws.keyspaces#ServiceQuotaExceededException": return [3, 10];
|
|
806
|
-
case "ValidationException": return [3, 12];
|
|
807
|
-
case "com.amazonaws.keyspaces#ValidationException": return [3, 12];
|
|
808
|
-
}
|
|
809
|
-
return [3, 14];
|
|
810
|
-
case 2: return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
811
|
-
case 3: throw _d.sent();
|
|
812
|
-
case 4: return [4, deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context)];
|
|
813
|
-
case 5: throw _d.sent();
|
|
814
|
-
case 6: return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
815
|
-
case 7: throw _d.sent();
|
|
816
|
-
case 8: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
817
|
-
case 9: throw _d.sent();
|
|
818
|
-
case 10: return [4, deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
819
|
-
case 11: throw _d.sent();
|
|
820
|
-
case 12: return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
821
|
-
case 13: throw _d.sent();
|
|
822
|
-
case 14:
|
|
823
|
-
parsedBody = parsedOutput.body;
|
|
824
|
-
throwDefaultError({
|
|
825
|
-
output: output,
|
|
826
|
-
parsedBody: parsedBody,
|
|
827
|
-
exceptionCtor: __BaseException,
|
|
828
|
-
errorCode: errorCode,
|
|
829
|
-
});
|
|
830
|
-
_d.label = 15;
|
|
831
|
-
case 15: return [2];
|
|
832
|
-
}
|
|
833
|
-
});
|
|
834
|
-
}); };
|
|
835
|
-
export var deserializeAws_json1_0TagResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
836
|
-
var data, contents, response;
|
|
837
|
-
return __generator(this, function (_a) {
|
|
838
|
-
switch (_a.label) {
|
|
839
|
-
case 0:
|
|
840
|
-
if (output.statusCode >= 300) {
|
|
841
|
-
return [2, deserializeAws_json1_0TagResourceCommandError(output, context)];
|
|
842
|
-
}
|
|
843
|
-
return [4, parseBody(output.body, context)];
|
|
844
|
-
case 1:
|
|
845
|
-
data = _a.sent();
|
|
846
|
-
contents = {};
|
|
847
|
-
contents = deserializeAws_json1_0TagResourceResponse(data, context);
|
|
848
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
849
|
-
return [2, Promise.resolve(response)];
|
|
850
|
-
}
|
|
851
|
-
});
|
|
852
|
-
}); };
|
|
853
|
-
var deserializeAws_json1_0TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
854
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
855
|
-
var _c;
|
|
856
|
-
return __generator(this, function (_d) {
|
|
857
|
-
switch (_d.label) {
|
|
858
|
-
case 0:
|
|
859
|
-
_a = [__assign({}, output)];
|
|
860
|
-
_c = {};
|
|
861
|
-
return [4, parseErrorBody(output.body, context)];
|
|
862
|
-
case 1:
|
|
863
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
864
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
865
|
-
_b = errorCode;
|
|
866
|
-
switch (_b) {
|
|
867
|
-
case "AccessDeniedException": return [3, 2];
|
|
868
|
-
case "com.amazonaws.keyspaces#AccessDeniedException": return [3, 2];
|
|
869
|
-
case "InternalServerException": return [3, 4];
|
|
870
|
-
case "com.amazonaws.keyspaces#InternalServerException": return [3, 4];
|
|
871
|
-
case "ResourceNotFoundException": return [3, 6];
|
|
872
|
-
case "com.amazonaws.keyspaces#ResourceNotFoundException": return [3, 6];
|
|
873
|
-
case "ServiceQuotaExceededException": return [3, 8];
|
|
874
|
-
case "com.amazonaws.keyspaces#ServiceQuotaExceededException": return [3, 8];
|
|
875
|
-
case "ValidationException": return [3, 10];
|
|
876
|
-
case "com.amazonaws.keyspaces#ValidationException": return [3, 10];
|
|
877
|
-
}
|
|
878
|
-
return [3, 12];
|
|
879
|
-
case 2: return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
880
|
-
case 3: throw _d.sent();
|
|
881
|
-
case 4: return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
882
|
-
case 5: throw _d.sent();
|
|
883
|
-
case 6: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
884
|
-
case 7: throw _d.sent();
|
|
885
|
-
case 8: return [4, deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
886
|
-
case 9: throw _d.sent();
|
|
887
|
-
case 10: return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
888
|
-
case 11: throw _d.sent();
|
|
889
|
-
case 12:
|
|
890
|
-
parsedBody = parsedOutput.body;
|
|
891
|
-
throwDefaultError({
|
|
892
|
-
output: output,
|
|
893
|
-
parsedBody: parsedBody,
|
|
894
|
-
exceptionCtor: __BaseException,
|
|
895
|
-
errorCode: errorCode,
|
|
896
|
-
});
|
|
897
|
-
_d.label = 13;
|
|
898
|
-
case 13: return [2];
|
|
899
|
-
}
|
|
900
|
-
});
|
|
901
|
-
}); };
|
|
902
|
-
export var deserializeAws_json1_0UntagResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
903
|
-
var data, contents, response;
|
|
904
|
-
return __generator(this, function (_a) {
|
|
905
|
-
switch (_a.label) {
|
|
906
|
-
case 0:
|
|
907
|
-
if (output.statusCode >= 300) {
|
|
908
|
-
return [2, deserializeAws_json1_0UntagResourceCommandError(output, context)];
|
|
909
|
-
}
|
|
910
|
-
return [4, parseBody(output.body, context)];
|
|
911
|
-
case 1:
|
|
912
|
-
data = _a.sent();
|
|
913
|
-
contents = {};
|
|
914
|
-
contents = deserializeAws_json1_0UntagResourceResponse(data, context);
|
|
915
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
916
|
-
return [2, Promise.resolve(response)];
|
|
917
|
-
}
|
|
918
|
-
});
|
|
919
|
-
}); };
|
|
920
|
-
var deserializeAws_json1_0UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
921
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
922
|
-
var _c;
|
|
923
|
-
return __generator(this, function (_d) {
|
|
924
|
-
switch (_d.label) {
|
|
925
|
-
case 0:
|
|
926
|
-
_a = [__assign({}, output)];
|
|
927
|
-
_c = {};
|
|
928
|
-
return [4, parseErrorBody(output.body, context)];
|
|
929
|
-
case 1:
|
|
930
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
931
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
932
|
-
_b = errorCode;
|
|
933
|
-
switch (_b) {
|
|
934
|
-
case "AccessDeniedException": return [3, 2];
|
|
935
|
-
case "com.amazonaws.keyspaces#AccessDeniedException": return [3, 2];
|
|
936
|
-
case "ConflictException": return [3, 4];
|
|
937
|
-
case "com.amazonaws.keyspaces#ConflictException": return [3, 4];
|
|
938
|
-
case "InternalServerException": return [3, 6];
|
|
939
|
-
case "com.amazonaws.keyspaces#InternalServerException": return [3, 6];
|
|
940
|
-
case "ResourceNotFoundException": return [3, 8];
|
|
941
|
-
case "com.amazonaws.keyspaces#ResourceNotFoundException": return [3, 8];
|
|
942
|
-
case "ServiceQuotaExceededException": return [3, 10];
|
|
943
|
-
case "com.amazonaws.keyspaces#ServiceQuotaExceededException": return [3, 10];
|
|
944
|
-
case "ValidationException": return [3, 12];
|
|
945
|
-
case "com.amazonaws.keyspaces#ValidationException": return [3, 12];
|
|
946
|
-
}
|
|
947
|
-
return [3, 14];
|
|
948
|
-
case 2: return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
949
|
-
case 3: throw _d.sent();
|
|
950
|
-
case 4: return [4, deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context)];
|
|
951
|
-
case 5: throw _d.sent();
|
|
952
|
-
case 6: return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
953
|
-
case 7: throw _d.sent();
|
|
954
|
-
case 8: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
955
|
-
case 9: throw _d.sent();
|
|
956
|
-
case 10: return [4, deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
957
|
-
case 11: throw _d.sent();
|
|
958
|
-
case 12: return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
959
|
-
case 13: throw _d.sent();
|
|
960
|
-
case 14:
|
|
961
|
-
parsedBody = parsedOutput.body;
|
|
962
|
-
throwDefaultError({
|
|
963
|
-
output: output,
|
|
964
|
-
parsedBody: parsedBody,
|
|
965
|
-
exceptionCtor: __BaseException,
|
|
966
|
-
errorCode: errorCode,
|
|
967
|
-
});
|
|
968
|
-
_d.label = 15;
|
|
969
|
-
case 15: return [2];
|
|
970
|
-
}
|
|
971
|
-
});
|
|
972
|
-
}); };
|
|
973
|
-
export var deserializeAws_json1_0UpdateTableCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
974
|
-
var data, contents, response;
|
|
975
|
-
return __generator(this, function (_a) {
|
|
976
|
-
switch (_a.label) {
|
|
977
|
-
case 0:
|
|
978
|
-
if (output.statusCode >= 300) {
|
|
979
|
-
return [2, deserializeAws_json1_0UpdateTableCommandError(output, context)];
|
|
980
|
-
}
|
|
981
|
-
return [4, parseBody(output.body, context)];
|
|
982
|
-
case 1:
|
|
983
|
-
data = _a.sent();
|
|
984
|
-
contents = {};
|
|
985
|
-
contents = deserializeAws_json1_0UpdateTableResponse(data, context);
|
|
986
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
987
|
-
return [2, Promise.resolve(response)];
|
|
988
|
-
}
|
|
989
|
-
});
|
|
990
|
-
}); };
|
|
991
|
-
var deserializeAws_json1_0UpdateTableCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
992
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
993
|
-
var _c;
|
|
994
|
-
return __generator(this, function (_d) {
|
|
995
|
-
switch (_d.label) {
|
|
996
|
-
case 0:
|
|
997
|
-
_a = [__assign({}, output)];
|
|
998
|
-
_c = {};
|
|
999
|
-
return [4, parseErrorBody(output.body, context)];
|
|
1000
|
-
case 1:
|
|
1001
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1002
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1003
|
-
_b = errorCode;
|
|
1004
|
-
switch (_b) {
|
|
1005
|
-
case "AccessDeniedException": return [3, 2];
|
|
1006
|
-
case "com.amazonaws.keyspaces#AccessDeniedException": return [3, 2];
|
|
1007
|
-
case "ConflictException": return [3, 4];
|
|
1008
|
-
case "com.amazonaws.keyspaces#ConflictException": return [3, 4];
|
|
1009
|
-
case "InternalServerException": return [3, 6];
|
|
1010
|
-
case "com.amazonaws.keyspaces#InternalServerException": return [3, 6];
|
|
1011
|
-
case "ResourceNotFoundException": return [3, 8];
|
|
1012
|
-
case "com.amazonaws.keyspaces#ResourceNotFoundException": return [3, 8];
|
|
1013
|
-
case "ServiceQuotaExceededException": return [3, 10];
|
|
1014
|
-
case "com.amazonaws.keyspaces#ServiceQuotaExceededException": return [3, 10];
|
|
1015
|
-
case "ValidationException": return [3, 12];
|
|
1016
|
-
case "com.amazonaws.keyspaces#ValidationException": return [3, 12];
|
|
1017
|
-
}
|
|
1018
|
-
return [3, 14];
|
|
1019
|
-
case 2: return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1020
|
-
case 3: throw _d.sent();
|
|
1021
|
-
case 4: return [4, deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context)];
|
|
1022
|
-
case 5: throw _d.sent();
|
|
1023
|
-
case 6: return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
1024
|
-
case 7: throw _d.sent();
|
|
1025
|
-
case 8: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1026
|
-
case 9: throw _d.sent();
|
|
1027
|
-
case 10: return [4, deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
1028
|
-
case 11: throw _d.sent();
|
|
1029
|
-
case 12: return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
1030
|
-
case 13: throw _d.sent();
|
|
1031
|
-
case 14:
|
|
1032
|
-
parsedBody = parsedOutput.body;
|
|
1033
|
-
throwDefaultError({
|
|
1034
|
-
output: output,
|
|
1035
|
-
parsedBody: parsedBody,
|
|
1036
|
-
exceptionCtor: __BaseException,
|
|
1037
|
-
errorCode: errorCode,
|
|
1038
|
-
});
|
|
1039
|
-
_d.label = 15;
|
|
1040
|
-
case 15: return [2];
|
|
1041
|
-
}
|
|
1042
|
-
});
|
|
1043
|
-
}); };
|
|
1044
|
-
var deserializeAws_json1_0AccessDeniedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1045
|
-
var body, deserialized, exception;
|
|
1046
|
-
return __generator(this, function (_a) {
|
|
1047
|
-
body = parsedOutput.body;
|
|
1048
|
-
deserialized = deserializeAws_json1_0AccessDeniedException(body, context);
|
|
1049
|
-
exception = new AccessDeniedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1050
|
-
return [2, __decorateServiceException(exception, body)];
|
|
5
|
+
export const serializeAws_json1_0CreateKeyspaceCommand = async (input, context) => {
|
|
6
|
+
const headers = {
|
|
7
|
+
"content-type": "application/x-amz-json-1.0",
|
|
8
|
+
"x-amz-target": "KeyspacesService.CreateKeyspace",
|
|
9
|
+
};
|
|
10
|
+
let body;
|
|
11
|
+
body = JSON.stringify(serializeAws_json1_0CreateKeyspaceRequest(input, context));
|
|
12
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
13
|
+
};
|
|
14
|
+
export const serializeAws_json1_0CreateTableCommand = async (input, context) => {
|
|
15
|
+
const headers = {
|
|
16
|
+
"content-type": "application/x-amz-json-1.0",
|
|
17
|
+
"x-amz-target": "KeyspacesService.CreateTable",
|
|
18
|
+
};
|
|
19
|
+
let body;
|
|
20
|
+
body = JSON.stringify(serializeAws_json1_0CreateTableRequest(input, context));
|
|
21
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
|
+
};
|
|
23
|
+
export const serializeAws_json1_0DeleteKeyspaceCommand = async (input, context) => {
|
|
24
|
+
const headers = {
|
|
25
|
+
"content-type": "application/x-amz-json-1.0",
|
|
26
|
+
"x-amz-target": "KeyspacesService.DeleteKeyspace",
|
|
27
|
+
};
|
|
28
|
+
let body;
|
|
29
|
+
body = JSON.stringify(serializeAws_json1_0DeleteKeyspaceRequest(input, context));
|
|
30
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
31
|
+
};
|
|
32
|
+
export const serializeAws_json1_0DeleteTableCommand = async (input, context) => {
|
|
33
|
+
const headers = {
|
|
34
|
+
"content-type": "application/x-amz-json-1.0",
|
|
35
|
+
"x-amz-target": "KeyspacesService.DeleteTable",
|
|
36
|
+
};
|
|
37
|
+
let body;
|
|
38
|
+
body = JSON.stringify(serializeAws_json1_0DeleteTableRequest(input, context));
|
|
39
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
40
|
+
};
|
|
41
|
+
export const serializeAws_json1_0GetKeyspaceCommand = async (input, context) => {
|
|
42
|
+
const headers = {
|
|
43
|
+
"content-type": "application/x-amz-json-1.0",
|
|
44
|
+
"x-amz-target": "KeyspacesService.GetKeyspace",
|
|
45
|
+
};
|
|
46
|
+
let body;
|
|
47
|
+
body = JSON.stringify(serializeAws_json1_0GetKeyspaceRequest(input, context));
|
|
48
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
49
|
+
};
|
|
50
|
+
export const serializeAws_json1_0GetTableCommand = async (input, context) => {
|
|
51
|
+
const headers = {
|
|
52
|
+
"content-type": "application/x-amz-json-1.0",
|
|
53
|
+
"x-amz-target": "KeyspacesService.GetTable",
|
|
54
|
+
};
|
|
55
|
+
let body;
|
|
56
|
+
body = JSON.stringify(serializeAws_json1_0GetTableRequest(input, context));
|
|
57
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
|
+
};
|
|
59
|
+
export const serializeAws_json1_0ListKeyspacesCommand = async (input, context) => {
|
|
60
|
+
const headers = {
|
|
61
|
+
"content-type": "application/x-amz-json-1.0",
|
|
62
|
+
"x-amz-target": "KeyspacesService.ListKeyspaces",
|
|
63
|
+
};
|
|
64
|
+
let body;
|
|
65
|
+
body = JSON.stringify(serializeAws_json1_0ListKeyspacesRequest(input, context));
|
|
66
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
|
+
};
|
|
68
|
+
export const serializeAws_json1_0ListTablesCommand = async (input, context) => {
|
|
69
|
+
const headers = {
|
|
70
|
+
"content-type": "application/x-amz-json-1.0",
|
|
71
|
+
"x-amz-target": "KeyspacesService.ListTables",
|
|
72
|
+
};
|
|
73
|
+
let body;
|
|
74
|
+
body = JSON.stringify(serializeAws_json1_0ListTablesRequest(input, context));
|
|
75
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
|
+
};
|
|
77
|
+
export const serializeAws_json1_0ListTagsForResourceCommand = async (input, context) => {
|
|
78
|
+
const headers = {
|
|
79
|
+
"content-type": "application/x-amz-json-1.0",
|
|
80
|
+
"x-amz-target": "KeyspacesService.ListTagsForResource",
|
|
81
|
+
};
|
|
82
|
+
let body;
|
|
83
|
+
body = JSON.stringify(serializeAws_json1_0ListTagsForResourceRequest(input, context));
|
|
84
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
85
|
+
};
|
|
86
|
+
export const serializeAws_json1_0RestoreTableCommand = async (input, context) => {
|
|
87
|
+
const headers = {
|
|
88
|
+
"content-type": "application/x-amz-json-1.0",
|
|
89
|
+
"x-amz-target": "KeyspacesService.RestoreTable",
|
|
90
|
+
};
|
|
91
|
+
let body;
|
|
92
|
+
body = JSON.stringify(serializeAws_json1_0RestoreTableRequest(input, context));
|
|
93
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
94
|
+
};
|
|
95
|
+
export const serializeAws_json1_0TagResourceCommand = async (input, context) => {
|
|
96
|
+
const headers = {
|
|
97
|
+
"content-type": "application/x-amz-json-1.0",
|
|
98
|
+
"x-amz-target": "KeyspacesService.TagResource",
|
|
99
|
+
};
|
|
100
|
+
let body;
|
|
101
|
+
body = JSON.stringify(serializeAws_json1_0TagResourceRequest(input, context));
|
|
102
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
103
|
+
};
|
|
104
|
+
export const serializeAws_json1_0UntagResourceCommand = async (input, context) => {
|
|
105
|
+
const headers = {
|
|
106
|
+
"content-type": "application/x-amz-json-1.0",
|
|
107
|
+
"x-amz-target": "KeyspacesService.UntagResource",
|
|
108
|
+
};
|
|
109
|
+
let body;
|
|
110
|
+
body = JSON.stringify(serializeAws_json1_0UntagResourceRequest(input, context));
|
|
111
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
112
|
+
};
|
|
113
|
+
export const serializeAws_json1_0UpdateTableCommand = async (input, context) => {
|
|
114
|
+
const headers = {
|
|
115
|
+
"content-type": "application/x-amz-json-1.0",
|
|
116
|
+
"x-amz-target": "KeyspacesService.UpdateTable",
|
|
117
|
+
};
|
|
118
|
+
let body;
|
|
119
|
+
body = JSON.stringify(serializeAws_json1_0UpdateTableRequest(input, context));
|
|
120
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
121
|
+
};
|
|
122
|
+
export const deserializeAws_json1_0CreateKeyspaceCommand = async (output, context) => {
|
|
123
|
+
if (output.statusCode >= 300) {
|
|
124
|
+
return deserializeAws_json1_0CreateKeyspaceCommandError(output, context);
|
|
125
|
+
}
|
|
126
|
+
const data = await parseBody(output.body, context);
|
|
127
|
+
let contents = {};
|
|
128
|
+
contents = deserializeAws_json1_0CreateKeyspaceResponse(data, context);
|
|
129
|
+
const response = {
|
|
130
|
+
$metadata: deserializeMetadata(output),
|
|
131
|
+
...contents,
|
|
132
|
+
};
|
|
133
|
+
return Promise.resolve(response);
|
|
134
|
+
};
|
|
135
|
+
const deserializeAws_json1_0CreateKeyspaceCommandError = async (output, context) => {
|
|
136
|
+
const parsedOutput = {
|
|
137
|
+
...output,
|
|
138
|
+
body: await parseErrorBody(output.body, context),
|
|
139
|
+
};
|
|
140
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
141
|
+
switch (errorCode) {
|
|
142
|
+
case "AccessDeniedException":
|
|
143
|
+
case "com.amazonaws.keyspaces#AccessDeniedException":
|
|
144
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
145
|
+
case "ConflictException":
|
|
146
|
+
case "com.amazonaws.keyspaces#ConflictException":
|
|
147
|
+
throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
|
|
148
|
+
case "InternalServerException":
|
|
149
|
+
case "com.amazonaws.keyspaces#InternalServerException":
|
|
150
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
151
|
+
case "ServiceQuotaExceededException":
|
|
152
|
+
case "com.amazonaws.keyspaces#ServiceQuotaExceededException":
|
|
153
|
+
throw await deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
154
|
+
case "ValidationException":
|
|
155
|
+
case "com.amazonaws.keyspaces#ValidationException":
|
|
156
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
157
|
+
default:
|
|
158
|
+
const parsedBody = parsedOutput.body;
|
|
159
|
+
throwDefaultError({
|
|
160
|
+
output,
|
|
161
|
+
parsedBody,
|
|
162
|
+
exceptionCtor: __BaseException,
|
|
163
|
+
errorCode,
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
};
|
|
167
|
+
export const deserializeAws_json1_0CreateTableCommand = async (output, context) => {
|
|
168
|
+
if (output.statusCode >= 300) {
|
|
169
|
+
return deserializeAws_json1_0CreateTableCommandError(output, context);
|
|
170
|
+
}
|
|
171
|
+
const data = await parseBody(output.body, context);
|
|
172
|
+
let contents = {};
|
|
173
|
+
contents = deserializeAws_json1_0CreateTableResponse(data, context);
|
|
174
|
+
const response = {
|
|
175
|
+
$metadata: deserializeMetadata(output),
|
|
176
|
+
...contents,
|
|
177
|
+
};
|
|
178
|
+
return Promise.resolve(response);
|
|
179
|
+
};
|
|
180
|
+
const deserializeAws_json1_0CreateTableCommandError = async (output, context) => {
|
|
181
|
+
const parsedOutput = {
|
|
182
|
+
...output,
|
|
183
|
+
body: await parseErrorBody(output.body, context),
|
|
184
|
+
};
|
|
185
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
186
|
+
switch (errorCode) {
|
|
187
|
+
case "AccessDeniedException":
|
|
188
|
+
case "com.amazonaws.keyspaces#AccessDeniedException":
|
|
189
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
190
|
+
case "ConflictException":
|
|
191
|
+
case "com.amazonaws.keyspaces#ConflictException":
|
|
192
|
+
throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
|
|
193
|
+
case "InternalServerException":
|
|
194
|
+
case "com.amazonaws.keyspaces#InternalServerException":
|
|
195
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
196
|
+
case "ResourceNotFoundException":
|
|
197
|
+
case "com.amazonaws.keyspaces#ResourceNotFoundException":
|
|
198
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
199
|
+
case "ServiceQuotaExceededException":
|
|
200
|
+
case "com.amazonaws.keyspaces#ServiceQuotaExceededException":
|
|
201
|
+
throw await deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
202
|
+
case "ValidationException":
|
|
203
|
+
case "com.amazonaws.keyspaces#ValidationException":
|
|
204
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
205
|
+
default:
|
|
206
|
+
const parsedBody = parsedOutput.body;
|
|
207
|
+
throwDefaultError({
|
|
208
|
+
output,
|
|
209
|
+
parsedBody,
|
|
210
|
+
exceptionCtor: __BaseException,
|
|
211
|
+
errorCode,
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
};
|
|
215
|
+
export const deserializeAws_json1_0DeleteKeyspaceCommand = async (output, context) => {
|
|
216
|
+
if (output.statusCode >= 300) {
|
|
217
|
+
return deserializeAws_json1_0DeleteKeyspaceCommandError(output, context);
|
|
218
|
+
}
|
|
219
|
+
const data = await parseBody(output.body, context);
|
|
220
|
+
let contents = {};
|
|
221
|
+
contents = deserializeAws_json1_0DeleteKeyspaceResponse(data, context);
|
|
222
|
+
const response = {
|
|
223
|
+
$metadata: deserializeMetadata(output),
|
|
224
|
+
...contents,
|
|
225
|
+
};
|
|
226
|
+
return Promise.resolve(response);
|
|
227
|
+
};
|
|
228
|
+
const deserializeAws_json1_0DeleteKeyspaceCommandError = async (output, context) => {
|
|
229
|
+
const parsedOutput = {
|
|
230
|
+
...output,
|
|
231
|
+
body: await parseErrorBody(output.body, context),
|
|
232
|
+
};
|
|
233
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
234
|
+
switch (errorCode) {
|
|
235
|
+
case "AccessDeniedException":
|
|
236
|
+
case "com.amazonaws.keyspaces#AccessDeniedException":
|
|
237
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
238
|
+
case "ConflictException":
|
|
239
|
+
case "com.amazonaws.keyspaces#ConflictException":
|
|
240
|
+
throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
|
|
241
|
+
case "InternalServerException":
|
|
242
|
+
case "com.amazonaws.keyspaces#InternalServerException":
|
|
243
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
244
|
+
case "ResourceNotFoundException":
|
|
245
|
+
case "com.amazonaws.keyspaces#ResourceNotFoundException":
|
|
246
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
247
|
+
case "ServiceQuotaExceededException":
|
|
248
|
+
case "com.amazonaws.keyspaces#ServiceQuotaExceededException":
|
|
249
|
+
throw await deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
250
|
+
case "ValidationException":
|
|
251
|
+
case "com.amazonaws.keyspaces#ValidationException":
|
|
252
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
253
|
+
default:
|
|
254
|
+
const parsedBody = parsedOutput.body;
|
|
255
|
+
throwDefaultError({
|
|
256
|
+
output,
|
|
257
|
+
parsedBody,
|
|
258
|
+
exceptionCtor: __BaseException,
|
|
259
|
+
errorCode,
|
|
260
|
+
});
|
|
261
|
+
}
|
|
262
|
+
};
|
|
263
|
+
export const deserializeAws_json1_0DeleteTableCommand = async (output, context) => {
|
|
264
|
+
if (output.statusCode >= 300) {
|
|
265
|
+
return deserializeAws_json1_0DeleteTableCommandError(output, context);
|
|
266
|
+
}
|
|
267
|
+
const data = await parseBody(output.body, context);
|
|
268
|
+
let contents = {};
|
|
269
|
+
contents = deserializeAws_json1_0DeleteTableResponse(data, context);
|
|
270
|
+
const response = {
|
|
271
|
+
$metadata: deserializeMetadata(output),
|
|
272
|
+
...contents,
|
|
273
|
+
};
|
|
274
|
+
return Promise.resolve(response);
|
|
275
|
+
};
|
|
276
|
+
const deserializeAws_json1_0DeleteTableCommandError = async (output, context) => {
|
|
277
|
+
const parsedOutput = {
|
|
278
|
+
...output,
|
|
279
|
+
body: await parseErrorBody(output.body, context),
|
|
280
|
+
};
|
|
281
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
282
|
+
switch (errorCode) {
|
|
283
|
+
case "AccessDeniedException":
|
|
284
|
+
case "com.amazonaws.keyspaces#AccessDeniedException":
|
|
285
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
286
|
+
case "ConflictException":
|
|
287
|
+
case "com.amazonaws.keyspaces#ConflictException":
|
|
288
|
+
throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
|
|
289
|
+
case "InternalServerException":
|
|
290
|
+
case "com.amazonaws.keyspaces#InternalServerException":
|
|
291
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
292
|
+
case "ResourceNotFoundException":
|
|
293
|
+
case "com.amazonaws.keyspaces#ResourceNotFoundException":
|
|
294
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
295
|
+
case "ServiceQuotaExceededException":
|
|
296
|
+
case "com.amazonaws.keyspaces#ServiceQuotaExceededException":
|
|
297
|
+
throw await deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
298
|
+
case "ValidationException":
|
|
299
|
+
case "com.amazonaws.keyspaces#ValidationException":
|
|
300
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
301
|
+
default:
|
|
302
|
+
const parsedBody = parsedOutput.body;
|
|
303
|
+
throwDefaultError({
|
|
304
|
+
output,
|
|
305
|
+
parsedBody,
|
|
306
|
+
exceptionCtor: __BaseException,
|
|
307
|
+
errorCode,
|
|
308
|
+
});
|
|
309
|
+
}
|
|
310
|
+
};
|
|
311
|
+
export const deserializeAws_json1_0GetKeyspaceCommand = async (output, context) => {
|
|
312
|
+
if (output.statusCode >= 300) {
|
|
313
|
+
return deserializeAws_json1_0GetKeyspaceCommandError(output, context);
|
|
314
|
+
}
|
|
315
|
+
const data = await parseBody(output.body, context);
|
|
316
|
+
let contents = {};
|
|
317
|
+
contents = deserializeAws_json1_0GetKeyspaceResponse(data, context);
|
|
318
|
+
const response = {
|
|
319
|
+
$metadata: deserializeMetadata(output),
|
|
320
|
+
...contents,
|
|
321
|
+
};
|
|
322
|
+
return Promise.resolve(response);
|
|
323
|
+
};
|
|
324
|
+
const deserializeAws_json1_0GetKeyspaceCommandError = async (output, context) => {
|
|
325
|
+
const parsedOutput = {
|
|
326
|
+
...output,
|
|
327
|
+
body: await parseErrorBody(output.body, context),
|
|
328
|
+
};
|
|
329
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
330
|
+
switch (errorCode) {
|
|
331
|
+
case "AccessDeniedException":
|
|
332
|
+
case "com.amazonaws.keyspaces#AccessDeniedException":
|
|
333
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
334
|
+
case "InternalServerException":
|
|
335
|
+
case "com.amazonaws.keyspaces#InternalServerException":
|
|
336
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
337
|
+
case "ResourceNotFoundException":
|
|
338
|
+
case "com.amazonaws.keyspaces#ResourceNotFoundException":
|
|
339
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
340
|
+
case "ServiceQuotaExceededException":
|
|
341
|
+
case "com.amazonaws.keyspaces#ServiceQuotaExceededException":
|
|
342
|
+
throw await deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
343
|
+
case "ValidationException":
|
|
344
|
+
case "com.amazonaws.keyspaces#ValidationException":
|
|
345
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
346
|
+
default:
|
|
347
|
+
const parsedBody = parsedOutput.body;
|
|
348
|
+
throwDefaultError({
|
|
349
|
+
output,
|
|
350
|
+
parsedBody,
|
|
351
|
+
exceptionCtor: __BaseException,
|
|
352
|
+
errorCode,
|
|
353
|
+
});
|
|
354
|
+
}
|
|
355
|
+
};
|
|
356
|
+
export const deserializeAws_json1_0GetTableCommand = async (output, context) => {
|
|
357
|
+
if (output.statusCode >= 300) {
|
|
358
|
+
return deserializeAws_json1_0GetTableCommandError(output, context);
|
|
359
|
+
}
|
|
360
|
+
const data = await parseBody(output.body, context);
|
|
361
|
+
let contents = {};
|
|
362
|
+
contents = deserializeAws_json1_0GetTableResponse(data, context);
|
|
363
|
+
const response = {
|
|
364
|
+
$metadata: deserializeMetadata(output),
|
|
365
|
+
...contents,
|
|
366
|
+
};
|
|
367
|
+
return Promise.resolve(response);
|
|
368
|
+
};
|
|
369
|
+
const deserializeAws_json1_0GetTableCommandError = async (output, context) => {
|
|
370
|
+
const parsedOutput = {
|
|
371
|
+
...output,
|
|
372
|
+
body: await parseErrorBody(output.body, context),
|
|
373
|
+
};
|
|
374
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
375
|
+
switch (errorCode) {
|
|
376
|
+
case "AccessDeniedException":
|
|
377
|
+
case "com.amazonaws.keyspaces#AccessDeniedException":
|
|
378
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
379
|
+
case "InternalServerException":
|
|
380
|
+
case "com.amazonaws.keyspaces#InternalServerException":
|
|
381
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
382
|
+
case "ResourceNotFoundException":
|
|
383
|
+
case "com.amazonaws.keyspaces#ResourceNotFoundException":
|
|
384
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
385
|
+
case "ServiceQuotaExceededException":
|
|
386
|
+
case "com.amazonaws.keyspaces#ServiceQuotaExceededException":
|
|
387
|
+
throw await deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
388
|
+
case "ValidationException":
|
|
389
|
+
case "com.amazonaws.keyspaces#ValidationException":
|
|
390
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
391
|
+
default:
|
|
392
|
+
const parsedBody = parsedOutput.body;
|
|
393
|
+
throwDefaultError({
|
|
394
|
+
output,
|
|
395
|
+
parsedBody,
|
|
396
|
+
exceptionCtor: __BaseException,
|
|
397
|
+
errorCode,
|
|
398
|
+
});
|
|
399
|
+
}
|
|
400
|
+
};
|
|
401
|
+
export const deserializeAws_json1_0ListKeyspacesCommand = async (output, context) => {
|
|
402
|
+
if (output.statusCode >= 300) {
|
|
403
|
+
return deserializeAws_json1_0ListKeyspacesCommandError(output, context);
|
|
404
|
+
}
|
|
405
|
+
const data = await parseBody(output.body, context);
|
|
406
|
+
let contents = {};
|
|
407
|
+
contents = deserializeAws_json1_0ListKeyspacesResponse(data, context);
|
|
408
|
+
const response = {
|
|
409
|
+
$metadata: deserializeMetadata(output),
|
|
410
|
+
...contents,
|
|
411
|
+
};
|
|
412
|
+
return Promise.resolve(response);
|
|
413
|
+
};
|
|
414
|
+
const deserializeAws_json1_0ListKeyspacesCommandError = async (output, context) => {
|
|
415
|
+
const parsedOutput = {
|
|
416
|
+
...output,
|
|
417
|
+
body: await parseErrorBody(output.body, context),
|
|
418
|
+
};
|
|
419
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
420
|
+
switch (errorCode) {
|
|
421
|
+
case "AccessDeniedException":
|
|
422
|
+
case "com.amazonaws.keyspaces#AccessDeniedException":
|
|
423
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
424
|
+
case "InternalServerException":
|
|
425
|
+
case "com.amazonaws.keyspaces#InternalServerException":
|
|
426
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
427
|
+
case "ResourceNotFoundException":
|
|
428
|
+
case "com.amazonaws.keyspaces#ResourceNotFoundException":
|
|
429
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
430
|
+
case "ServiceQuotaExceededException":
|
|
431
|
+
case "com.amazonaws.keyspaces#ServiceQuotaExceededException":
|
|
432
|
+
throw await deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
433
|
+
case "ValidationException":
|
|
434
|
+
case "com.amazonaws.keyspaces#ValidationException":
|
|
435
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
436
|
+
default:
|
|
437
|
+
const parsedBody = parsedOutput.body;
|
|
438
|
+
throwDefaultError({
|
|
439
|
+
output,
|
|
440
|
+
parsedBody,
|
|
441
|
+
exceptionCtor: __BaseException,
|
|
442
|
+
errorCode,
|
|
443
|
+
});
|
|
444
|
+
}
|
|
445
|
+
};
|
|
446
|
+
export const deserializeAws_json1_0ListTablesCommand = async (output, context) => {
|
|
447
|
+
if (output.statusCode >= 300) {
|
|
448
|
+
return deserializeAws_json1_0ListTablesCommandError(output, context);
|
|
449
|
+
}
|
|
450
|
+
const data = await parseBody(output.body, context);
|
|
451
|
+
let contents = {};
|
|
452
|
+
contents = deserializeAws_json1_0ListTablesResponse(data, context);
|
|
453
|
+
const response = {
|
|
454
|
+
$metadata: deserializeMetadata(output),
|
|
455
|
+
...contents,
|
|
456
|
+
};
|
|
457
|
+
return Promise.resolve(response);
|
|
458
|
+
};
|
|
459
|
+
const deserializeAws_json1_0ListTablesCommandError = async (output, context) => {
|
|
460
|
+
const parsedOutput = {
|
|
461
|
+
...output,
|
|
462
|
+
body: await parseErrorBody(output.body, context),
|
|
463
|
+
};
|
|
464
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
465
|
+
switch (errorCode) {
|
|
466
|
+
case "AccessDeniedException":
|
|
467
|
+
case "com.amazonaws.keyspaces#AccessDeniedException":
|
|
468
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
469
|
+
case "InternalServerException":
|
|
470
|
+
case "com.amazonaws.keyspaces#InternalServerException":
|
|
471
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
472
|
+
case "ResourceNotFoundException":
|
|
473
|
+
case "com.amazonaws.keyspaces#ResourceNotFoundException":
|
|
474
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
475
|
+
case "ServiceQuotaExceededException":
|
|
476
|
+
case "com.amazonaws.keyspaces#ServiceQuotaExceededException":
|
|
477
|
+
throw await deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
478
|
+
case "ValidationException":
|
|
479
|
+
case "com.amazonaws.keyspaces#ValidationException":
|
|
480
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
481
|
+
default:
|
|
482
|
+
const parsedBody = parsedOutput.body;
|
|
483
|
+
throwDefaultError({
|
|
484
|
+
output,
|
|
485
|
+
parsedBody,
|
|
486
|
+
exceptionCtor: __BaseException,
|
|
487
|
+
errorCode,
|
|
488
|
+
});
|
|
489
|
+
}
|
|
490
|
+
};
|
|
491
|
+
export const deserializeAws_json1_0ListTagsForResourceCommand = async (output, context) => {
|
|
492
|
+
if (output.statusCode >= 300) {
|
|
493
|
+
return deserializeAws_json1_0ListTagsForResourceCommandError(output, context);
|
|
494
|
+
}
|
|
495
|
+
const data = await parseBody(output.body, context);
|
|
496
|
+
let contents = {};
|
|
497
|
+
contents = deserializeAws_json1_0ListTagsForResourceResponse(data, context);
|
|
498
|
+
const response = {
|
|
499
|
+
$metadata: deserializeMetadata(output),
|
|
500
|
+
...contents,
|
|
501
|
+
};
|
|
502
|
+
return Promise.resolve(response);
|
|
503
|
+
};
|
|
504
|
+
const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, context) => {
|
|
505
|
+
const parsedOutput = {
|
|
506
|
+
...output,
|
|
507
|
+
body: await parseErrorBody(output.body, context),
|
|
508
|
+
};
|
|
509
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
510
|
+
switch (errorCode) {
|
|
511
|
+
case "AccessDeniedException":
|
|
512
|
+
case "com.amazonaws.keyspaces#AccessDeniedException":
|
|
513
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
514
|
+
case "InternalServerException":
|
|
515
|
+
case "com.amazonaws.keyspaces#InternalServerException":
|
|
516
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
517
|
+
case "ResourceNotFoundException":
|
|
518
|
+
case "com.amazonaws.keyspaces#ResourceNotFoundException":
|
|
519
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
520
|
+
case "ServiceQuotaExceededException":
|
|
521
|
+
case "com.amazonaws.keyspaces#ServiceQuotaExceededException":
|
|
522
|
+
throw await deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
523
|
+
case "ValidationException":
|
|
524
|
+
case "com.amazonaws.keyspaces#ValidationException":
|
|
525
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
526
|
+
default:
|
|
527
|
+
const parsedBody = parsedOutput.body;
|
|
528
|
+
throwDefaultError({
|
|
529
|
+
output,
|
|
530
|
+
parsedBody,
|
|
531
|
+
exceptionCtor: __BaseException,
|
|
532
|
+
errorCode,
|
|
533
|
+
});
|
|
534
|
+
}
|
|
535
|
+
};
|
|
536
|
+
export const deserializeAws_json1_0RestoreTableCommand = async (output, context) => {
|
|
537
|
+
if (output.statusCode >= 300) {
|
|
538
|
+
return deserializeAws_json1_0RestoreTableCommandError(output, context);
|
|
539
|
+
}
|
|
540
|
+
const data = await parseBody(output.body, context);
|
|
541
|
+
let contents = {};
|
|
542
|
+
contents = deserializeAws_json1_0RestoreTableResponse(data, context);
|
|
543
|
+
const response = {
|
|
544
|
+
$metadata: deserializeMetadata(output),
|
|
545
|
+
...contents,
|
|
546
|
+
};
|
|
547
|
+
return Promise.resolve(response);
|
|
548
|
+
};
|
|
549
|
+
const deserializeAws_json1_0RestoreTableCommandError = async (output, context) => {
|
|
550
|
+
const parsedOutput = {
|
|
551
|
+
...output,
|
|
552
|
+
body: await parseErrorBody(output.body, context),
|
|
553
|
+
};
|
|
554
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
555
|
+
switch (errorCode) {
|
|
556
|
+
case "AccessDeniedException":
|
|
557
|
+
case "com.amazonaws.keyspaces#AccessDeniedException":
|
|
558
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
559
|
+
case "ConflictException":
|
|
560
|
+
case "com.amazonaws.keyspaces#ConflictException":
|
|
561
|
+
throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
|
|
562
|
+
case "InternalServerException":
|
|
563
|
+
case "com.amazonaws.keyspaces#InternalServerException":
|
|
564
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
565
|
+
case "ResourceNotFoundException":
|
|
566
|
+
case "com.amazonaws.keyspaces#ResourceNotFoundException":
|
|
567
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
568
|
+
case "ServiceQuotaExceededException":
|
|
569
|
+
case "com.amazonaws.keyspaces#ServiceQuotaExceededException":
|
|
570
|
+
throw await deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
571
|
+
case "ValidationException":
|
|
572
|
+
case "com.amazonaws.keyspaces#ValidationException":
|
|
573
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
574
|
+
default:
|
|
575
|
+
const parsedBody = parsedOutput.body;
|
|
576
|
+
throwDefaultError({
|
|
577
|
+
output,
|
|
578
|
+
parsedBody,
|
|
579
|
+
exceptionCtor: __BaseException,
|
|
580
|
+
errorCode,
|
|
581
|
+
});
|
|
582
|
+
}
|
|
583
|
+
};
|
|
584
|
+
export const deserializeAws_json1_0TagResourceCommand = async (output, context) => {
|
|
585
|
+
if (output.statusCode >= 300) {
|
|
586
|
+
return deserializeAws_json1_0TagResourceCommandError(output, context);
|
|
587
|
+
}
|
|
588
|
+
const data = await parseBody(output.body, context);
|
|
589
|
+
let contents = {};
|
|
590
|
+
contents = deserializeAws_json1_0TagResourceResponse(data, context);
|
|
591
|
+
const response = {
|
|
592
|
+
$metadata: deserializeMetadata(output),
|
|
593
|
+
...contents,
|
|
594
|
+
};
|
|
595
|
+
return Promise.resolve(response);
|
|
596
|
+
};
|
|
597
|
+
const deserializeAws_json1_0TagResourceCommandError = async (output, context) => {
|
|
598
|
+
const parsedOutput = {
|
|
599
|
+
...output,
|
|
600
|
+
body: await parseErrorBody(output.body, context),
|
|
601
|
+
};
|
|
602
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
603
|
+
switch (errorCode) {
|
|
604
|
+
case "AccessDeniedException":
|
|
605
|
+
case "com.amazonaws.keyspaces#AccessDeniedException":
|
|
606
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
607
|
+
case "InternalServerException":
|
|
608
|
+
case "com.amazonaws.keyspaces#InternalServerException":
|
|
609
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
610
|
+
case "ResourceNotFoundException":
|
|
611
|
+
case "com.amazonaws.keyspaces#ResourceNotFoundException":
|
|
612
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
613
|
+
case "ServiceQuotaExceededException":
|
|
614
|
+
case "com.amazonaws.keyspaces#ServiceQuotaExceededException":
|
|
615
|
+
throw await deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
616
|
+
case "ValidationException":
|
|
617
|
+
case "com.amazonaws.keyspaces#ValidationException":
|
|
618
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
619
|
+
default:
|
|
620
|
+
const parsedBody = parsedOutput.body;
|
|
621
|
+
throwDefaultError({
|
|
622
|
+
output,
|
|
623
|
+
parsedBody,
|
|
624
|
+
exceptionCtor: __BaseException,
|
|
625
|
+
errorCode,
|
|
626
|
+
});
|
|
627
|
+
}
|
|
628
|
+
};
|
|
629
|
+
export const deserializeAws_json1_0UntagResourceCommand = async (output, context) => {
|
|
630
|
+
if (output.statusCode >= 300) {
|
|
631
|
+
return deserializeAws_json1_0UntagResourceCommandError(output, context);
|
|
632
|
+
}
|
|
633
|
+
const data = await parseBody(output.body, context);
|
|
634
|
+
let contents = {};
|
|
635
|
+
contents = deserializeAws_json1_0UntagResourceResponse(data, context);
|
|
636
|
+
const response = {
|
|
637
|
+
$metadata: deserializeMetadata(output),
|
|
638
|
+
...contents,
|
|
639
|
+
};
|
|
640
|
+
return Promise.resolve(response);
|
|
641
|
+
};
|
|
642
|
+
const deserializeAws_json1_0UntagResourceCommandError = async (output, context) => {
|
|
643
|
+
const parsedOutput = {
|
|
644
|
+
...output,
|
|
645
|
+
body: await parseErrorBody(output.body, context),
|
|
646
|
+
};
|
|
647
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
648
|
+
switch (errorCode) {
|
|
649
|
+
case "AccessDeniedException":
|
|
650
|
+
case "com.amazonaws.keyspaces#AccessDeniedException":
|
|
651
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
652
|
+
case "ConflictException":
|
|
653
|
+
case "com.amazonaws.keyspaces#ConflictException":
|
|
654
|
+
throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
|
|
655
|
+
case "InternalServerException":
|
|
656
|
+
case "com.amazonaws.keyspaces#InternalServerException":
|
|
657
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
658
|
+
case "ResourceNotFoundException":
|
|
659
|
+
case "com.amazonaws.keyspaces#ResourceNotFoundException":
|
|
660
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
661
|
+
case "ServiceQuotaExceededException":
|
|
662
|
+
case "com.amazonaws.keyspaces#ServiceQuotaExceededException":
|
|
663
|
+
throw await deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
664
|
+
case "ValidationException":
|
|
665
|
+
case "com.amazonaws.keyspaces#ValidationException":
|
|
666
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
667
|
+
default:
|
|
668
|
+
const parsedBody = parsedOutput.body;
|
|
669
|
+
throwDefaultError({
|
|
670
|
+
output,
|
|
671
|
+
parsedBody,
|
|
672
|
+
exceptionCtor: __BaseException,
|
|
673
|
+
errorCode,
|
|
674
|
+
});
|
|
675
|
+
}
|
|
676
|
+
};
|
|
677
|
+
export const deserializeAws_json1_0UpdateTableCommand = async (output, context) => {
|
|
678
|
+
if (output.statusCode >= 300) {
|
|
679
|
+
return deserializeAws_json1_0UpdateTableCommandError(output, context);
|
|
680
|
+
}
|
|
681
|
+
const data = await parseBody(output.body, context);
|
|
682
|
+
let contents = {};
|
|
683
|
+
contents = deserializeAws_json1_0UpdateTableResponse(data, context);
|
|
684
|
+
const response = {
|
|
685
|
+
$metadata: deserializeMetadata(output),
|
|
686
|
+
...contents,
|
|
687
|
+
};
|
|
688
|
+
return Promise.resolve(response);
|
|
689
|
+
};
|
|
690
|
+
const deserializeAws_json1_0UpdateTableCommandError = async (output, context) => {
|
|
691
|
+
const parsedOutput = {
|
|
692
|
+
...output,
|
|
693
|
+
body: await parseErrorBody(output.body, context),
|
|
694
|
+
};
|
|
695
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
696
|
+
switch (errorCode) {
|
|
697
|
+
case "AccessDeniedException":
|
|
698
|
+
case "com.amazonaws.keyspaces#AccessDeniedException":
|
|
699
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
700
|
+
case "ConflictException":
|
|
701
|
+
case "com.amazonaws.keyspaces#ConflictException":
|
|
702
|
+
throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
|
|
703
|
+
case "InternalServerException":
|
|
704
|
+
case "com.amazonaws.keyspaces#InternalServerException":
|
|
705
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
706
|
+
case "ResourceNotFoundException":
|
|
707
|
+
case "com.amazonaws.keyspaces#ResourceNotFoundException":
|
|
708
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
709
|
+
case "ServiceQuotaExceededException":
|
|
710
|
+
case "com.amazonaws.keyspaces#ServiceQuotaExceededException":
|
|
711
|
+
throw await deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
712
|
+
case "ValidationException":
|
|
713
|
+
case "com.amazonaws.keyspaces#ValidationException":
|
|
714
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
715
|
+
default:
|
|
716
|
+
const parsedBody = parsedOutput.body;
|
|
717
|
+
throwDefaultError({
|
|
718
|
+
output,
|
|
719
|
+
parsedBody,
|
|
720
|
+
exceptionCtor: __BaseException,
|
|
721
|
+
errorCode,
|
|
722
|
+
});
|
|
723
|
+
}
|
|
724
|
+
};
|
|
725
|
+
const deserializeAws_json1_0AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
726
|
+
const body = parsedOutput.body;
|
|
727
|
+
const deserialized = deserializeAws_json1_0AccessDeniedException(body, context);
|
|
728
|
+
const exception = new AccessDeniedException({
|
|
729
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
730
|
+
...deserialized,
|
|
1051
731
|
});
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
732
|
+
return __decorateServiceException(exception, body);
|
|
733
|
+
};
|
|
734
|
+
const deserializeAws_json1_0ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
735
|
+
const body = parsedOutput.body;
|
|
736
|
+
const deserialized = deserializeAws_json1_0ConflictException(body, context);
|
|
737
|
+
const exception = new ConflictException({
|
|
738
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
739
|
+
...deserialized,
|
|
1060
740
|
});
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
741
|
+
return __decorateServiceException(exception, body);
|
|
742
|
+
};
|
|
743
|
+
const deserializeAws_json1_0InternalServerExceptionResponse = async (parsedOutput, context) => {
|
|
744
|
+
const body = parsedOutput.body;
|
|
745
|
+
const deserialized = deserializeAws_json1_0InternalServerException(body, context);
|
|
746
|
+
const exception = new InternalServerException({
|
|
747
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
748
|
+
...deserialized,
|
|
1069
749
|
});
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
750
|
+
return __decorateServiceException(exception, body);
|
|
751
|
+
};
|
|
752
|
+
const deserializeAws_json1_0ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
753
|
+
const body = parsedOutput.body;
|
|
754
|
+
const deserialized = deserializeAws_json1_0ResourceNotFoundException(body, context);
|
|
755
|
+
const exception = new ResourceNotFoundException({
|
|
756
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
757
|
+
...deserialized,
|
|
1078
758
|
});
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
759
|
+
return __decorateServiceException(exception, body);
|
|
760
|
+
};
|
|
761
|
+
const deserializeAws_json1_0ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
|
|
762
|
+
const body = parsedOutput.body;
|
|
763
|
+
const deserialized = deserializeAws_json1_0ServiceQuotaExceededException(body, context);
|
|
764
|
+
const exception = new ServiceQuotaExceededException({
|
|
765
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
766
|
+
...deserialized,
|
|
1087
767
|
});
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
768
|
+
return __decorateServiceException(exception, body);
|
|
769
|
+
};
|
|
770
|
+
const deserializeAws_json1_0ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
771
|
+
const body = parsedOutput.body;
|
|
772
|
+
const deserialized = deserializeAws_json1_0ValidationException(body, context);
|
|
773
|
+
const exception = new ValidationException({
|
|
774
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
775
|
+
...deserialized,
|
|
1096
776
|
});
|
|
1097
|
-
|
|
1098
|
-
var serializeAws_json1_0CapacitySpecification = function (input, context) {
|
|
1099
|
-
return __assign(__assign(__assign({}, (input.readCapacityUnits != null && { readCapacityUnits: input.readCapacityUnits })), (input.throughputMode != null && { throughputMode: input.throughputMode })), (input.writeCapacityUnits != null && { writeCapacityUnits: input.writeCapacityUnits }));
|
|
777
|
+
return __decorateServiceException(exception, body);
|
|
1100
778
|
};
|
|
1101
|
-
|
|
1102
|
-
return
|
|
779
|
+
const serializeAws_json1_0CapacitySpecification = (input, context) => {
|
|
780
|
+
return {
|
|
781
|
+
...(input.readCapacityUnits != null && { readCapacityUnits: input.readCapacityUnits }),
|
|
782
|
+
...(input.throughputMode != null && { throughputMode: input.throughputMode }),
|
|
783
|
+
...(input.writeCapacityUnits != null && { writeCapacityUnits: input.writeCapacityUnits }),
|
|
784
|
+
};
|
|
785
|
+
};
|
|
786
|
+
const serializeAws_json1_0ClusteringKey = (input, context) => {
|
|
787
|
+
return {
|
|
788
|
+
...(input.name != null && { name: input.name }),
|
|
789
|
+
...(input.orderBy != null && { orderBy: input.orderBy }),
|
|
790
|
+
};
|
|
1103
791
|
};
|
|
1104
|
-
|
|
792
|
+
const serializeAws_json1_0ClusteringKeyList = (input, context) => {
|
|
1105
793
|
return input
|
|
1106
|
-
.filter(
|
|
1107
|
-
.map(
|
|
794
|
+
.filter((e) => e != null)
|
|
795
|
+
.map((entry) => {
|
|
1108
796
|
return serializeAws_json1_0ClusteringKey(entry, context);
|
|
1109
797
|
});
|
|
1110
798
|
};
|
|
1111
|
-
|
|
1112
|
-
return
|
|
799
|
+
const serializeAws_json1_0ColumnDefinition = (input, context) => {
|
|
800
|
+
return {
|
|
801
|
+
...(input.name != null && { name: input.name }),
|
|
802
|
+
...(input.type != null && { type: input.type }),
|
|
803
|
+
};
|
|
1113
804
|
};
|
|
1114
|
-
|
|
805
|
+
const serializeAws_json1_0ColumnDefinitionList = (input, context) => {
|
|
1115
806
|
return input
|
|
1116
|
-
.filter(
|
|
1117
|
-
.map(
|
|
807
|
+
.filter((e) => e != null)
|
|
808
|
+
.map((entry) => {
|
|
1118
809
|
return serializeAws_json1_0ColumnDefinition(entry, context);
|
|
1119
810
|
});
|
|
1120
811
|
};
|
|
1121
|
-
|
|
1122
|
-
return
|
|
812
|
+
const serializeAws_json1_0Comment = (input, context) => {
|
|
813
|
+
return {
|
|
814
|
+
...(input.message != null && { message: input.message }),
|
|
815
|
+
};
|
|
1123
816
|
};
|
|
1124
|
-
|
|
1125
|
-
return
|
|
817
|
+
const serializeAws_json1_0CreateKeyspaceRequest = (input, context) => {
|
|
818
|
+
return {
|
|
819
|
+
...(input.keyspaceName != null && { keyspaceName: input.keyspaceName }),
|
|
820
|
+
...(input.tags != null && { tags: serializeAws_json1_0TagList(input.tags, context) }),
|
|
821
|
+
};
|
|
1126
822
|
};
|
|
1127
|
-
|
|
1128
|
-
return
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
823
|
+
const serializeAws_json1_0CreateTableRequest = (input, context) => {
|
|
824
|
+
return {
|
|
825
|
+
...(input.capacitySpecification != null && {
|
|
826
|
+
capacitySpecification: serializeAws_json1_0CapacitySpecification(input.capacitySpecification, context),
|
|
827
|
+
}),
|
|
828
|
+
...(input.comment != null && { comment: serializeAws_json1_0Comment(input.comment, context) }),
|
|
829
|
+
...(input.defaultTimeToLive != null && { defaultTimeToLive: input.defaultTimeToLive }),
|
|
830
|
+
...(input.encryptionSpecification != null && {
|
|
831
|
+
encryptionSpecification: serializeAws_json1_0EncryptionSpecification(input.encryptionSpecification, context),
|
|
832
|
+
}),
|
|
833
|
+
...(input.keyspaceName != null && { keyspaceName: input.keyspaceName }),
|
|
834
|
+
...(input.pointInTimeRecovery != null && {
|
|
835
|
+
pointInTimeRecovery: serializeAws_json1_0PointInTimeRecovery(input.pointInTimeRecovery, context),
|
|
836
|
+
}),
|
|
837
|
+
...(input.schemaDefinition != null && {
|
|
838
|
+
schemaDefinition: serializeAws_json1_0SchemaDefinition(input.schemaDefinition, context),
|
|
839
|
+
}),
|
|
840
|
+
...(input.tableName != null && { tableName: input.tableName }),
|
|
841
|
+
...(input.tags != null && { tags: serializeAws_json1_0TagList(input.tags, context) }),
|
|
842
|
+
...(input.ttl != null && { ttl: serializeAws_json1_0TimeToLive(input.ttl, context) }),
|
|
843
|
+
};
|
|
1137
844
|
};
|
|
1138
|
-
|
|
1139
|
-
return
|
|
845
|
+
const serializeAws_json1_0DeleteKeyspaceRequest = (input, context) => {
|
|
846
|
+
return {
|
|
847
|
+
...(input.keyspaceName != null && { keyspaceName: input.keyspaceName }),
|
|
848
|
+
};
|
|
1140
849
|
};
|
|
1141
|
-
|
|
1142
|
-
return
|
|
850
|
+
const serializeAws_json1_0DeleteTableRequest = (input, context) => {
|
|
851
|
+
return {
|
|
852
|
+
...(input.keyspaceName != null && { keyspaceName: input.keyspaceName }),
|
|
853
|
+
...(input.tableName != null && { tableName: input.tableName }),
|
|
854
|
+
};
|
|
1143
855
|
};
|
|
1144
|
-
|
|
1145
|
-
return
|
|
856
|
+
const serializeAws_json1_0EncryptionSpecification = (input, context) => {
|
|
857
|
+
return {
|
|
858
|
+
...(input.kmsKeyIdentifier != null && { kmsKeyIdentifier: input.kmsKeyIdentifier }),
|
|
859
|
+
...(input.type != null && { type: input.type }),
|
|
860
|
+
};
|
|
1146
861
|
};
|
|
1147
|
-
|
|
1148
|
-
return
|
|
862
|
+
const serializeAws_json1_0GetKeyspaceRequest = (input, context) => {
|
|
863
|
+
return {
|
|
864
|
+
...(input.keyspaceName != null && { keyspaceName: input.keyspaceName }),
|
|
865
|
+
};
|
|
1149
866
|
};
|
|
1150
|
-
|
|
1151
|
-
return
|
|
867
|
+
const serializeAws_json1_0GetTableRequest = (input, context) => {
|
|
868
|
+
return {
|
|
869
|
+
...(input.keyspaceName != null && { keyspaceName: input.keyspaceName }),
|
|
870
|
+
...(input.tableName != null && { tableName: input.tableName }),
|
|
871
|
+
};
|
|
1152
872
|
};
|
|
1153
|
-
|
|
1154
|
-
return
|
|
873
|
+
const serializeAws_json1_0ListKeyspacesRequest = (input, context) => {
|
|
874
|
+
return {
|
|
875
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
876
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
877
|
+
};
|
|
1155
878
|
};
|
|
1156
|
-
|
|
1157
|
-
return
|
|
879
|
+
const serializeAws_json1_0ListTablesRequest = (input, context) => {
|
|
880
|
+
return {
|
|
881
|
+
...(input.keyspaceName != null && { keyspaceName: input.keyspaceName }),
|
|
882
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
883
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
884
|
+
};
|
|
1158
885
|
};
|
|
1159
|
-
|
|
1160
|
-
return
|
|
886
|
+
const serializeAws_json1_0ListTagsForResourceRequest = (input, context) => {
|
|
887
|
+
return {
|
|
888
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
889
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
890
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
891
|
+
};
|
|
1161
892
|
};
|
|
1162
|
-
|
|
1163
|
-
return
|
|
893
|
+
const serializeAws_json1_0PartitionKey = (input, context) => {
|
|
894
|
+
return {
|
|
895
|
+
...(input.name != null && { name: input.name }),
|
|
896
|
+
};
|
|
1164
897
|
};
|
|
1165
|
-
|
|
898
|
+
const serializeAws_json1_0PartitionKeyList = (input, context) => {
|
|
1166
899
|
return input
|
|
1167
|
-
.filter(
|
|
1168
|
-
.map(
|
|
900
|
+
.filter((e) => e != null)
|
|
901
|
+
.map((entry) => {
|
|
1169
902
|
return serializeAws_json1_0PartitionKey(entry, context);
|
|
1170
903
|
});
|
|
1171
904
|
};
|
|
1172
|
-
|
|
1173
|
-
return
|
|
1174
|
-
}
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
};
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
905
|
+
const serializeAws_json1_0PointInTimeRecovery = (input, context) => {
|
|
906
|
+
return {
|
|
907
|
+
...(input.status != null && { status: input.status }),
|
|
908
|
+
};
|
|
909
|
+
};
|
|
910
|
+
const serializeAws_json1_0RestoreTableRequest = (input, context) => {
|
|
911
|
+
return {
|
|
912
|
+
...(input.capacitySpecificationOverride != null && {
|
|
913
|
+
capacitySpecificationOverride: serializeAws_json1_0CapacitySpecification(input.capacitySpecificationOverride, context),
|
|
914
|
+
}),
|
|
915
|
+
...(input.encryptionSpecificationOverride != null && {
|
|
916
|
+
encryptionSpecificationOverride: serializeAws_json1_0EncryptionSpecification(input.encryptionSpecificationOverride, context),
|
|
917
|
+
}),
|
|
918
|
+
...(input.pointInTimeRecoveryOverride != null && {
|
|
919
|
+
pointInTimeRecoveryOverride: serializeAws_json1_0PointInTimeRecovery(input.pointInTimeRecoveryOverride, context),
|
|
920
|
+
}),
|
|
921
|
+
...(input.restoreTimestamp != null && { restoreTimestamp: Math.round(input.restoreTimestamp.getTime() / 1000) }),
|
|
922
|
+
...(input.sourceKeyspaceName != null && { sourceKeyspaceName: input.sourceKeyspaceName }),
|
|
923
|
+
...(input.sourceTableName != null && { sourceTableName: input.sourceTableName }),
|
|
924
|
+
...(input.tagsOverride != null && { tagsOverride: serializeAws_json1_0TagList(input.tagsOverride, context) }),
|
|
925
|
+
...(input.targetKeyspaceName != null && { targetKeyspaceName: input.targetKeyspaceName }),
|
|
926
|
+
...(input.targetTableName != null && { targetTableName: input.targetTableName }),
|
|
927
|
+
};
|
|
928
|
+
};
|
|
929
|
+
const serializeAws_json1_0SchemaDefinition = (input, context) => {
|
|
930
|
+
return {
|
|
931
|
+
...(input.allColumns != null && {
|
|
932
|
+
allColumns: serializeAws_json1_0ColumnDefinitionList(input.allColumns, context),
|
|
933
|
+
}),
|
|
934
|
+
...(input.clusteringKeys != null && {
|
|
935
|
+
clusteringKeys: serializeAws_json1_0ClusteringKeyList(input.clusteringKeys, context),
|
|
936
|
+
}),
|
|
937
|
+
...(input.partitionKeys != null && {
|
|
938
|
+
partitionKeys: serializeAws_json1_0PartitionKeyList(input.partitionKeys, context),
|
|
939
|
+
}),
|
|
940
|
+
...(input.staticColumns != null && {
|
|
941
|
+
staticColumns: serializeAws_json1_0StaticColumnList(input.staticColumns, context),
|
|
942
|
+
}),
|
|
943
|
+
};
|
|
944
|
+
};
|
|
945
|
+
const serializeAws_json1_0StaticColumn = (input, context) => {
|
|
946
|
+
return {
|
|
947
|
+
...(input.name != null && { name: input.name }),
|
|
948
|
+
};
|
|
949
|
+
};
|
|
950
|
+
const serializeAws_json1_0StaticColumnList = (input, context) => {
|
|
1199
951
|
return input
|
|
1200
|
-
.filter(
|
|
1201
|
-
.map(
|
|
952
|
+
.filter((e) => e != null)
|
|
953
|
+
.map((entry) => {
|
|
1202
954
|
return serializeAws_json1_0StaticColumn(entry, context);
|
|
1203
955
|
});
|
|
1204
956
|
};
|
|
1205
|
-
|
|
1206
|
-
return
|
|
957
|
+
const serializeAws_json1_0Tag = (input, context) => {
|
|
958
|
+
return {
|
|
959
|
+
...(input.key != null && { key: input.key }),
|
|
960
|
+
...(input.value != null && { value: input.value }),
|
|
961
|
+
};
|
|
1207
962
|
};
|
|
1208
|
-
|
|
963
|
+
const serializeAws_json1_0TagList = (input, context) => {
|
|
1209
964
|
return input
|
|
1210
|
-
.filter(
|
|
1211
|
-
.map(
|
|
965
|
+
.filter((e) => e != null)
|
|
966
|
+
.map((entry) => {
|
|
1212
967
|
return serializeAws_json1_0Tag(entry, context);
|
|
1213
968
|
});
|
|
1214
969
|
};
|
|
1215
|
-
|
|
1216
|
-
return
|
|
970
|
+
const serializeAws_json1_0TagResourceRequest = (input, context) => {
|
|
971
|
+
return {
|
|
972
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
973
|
+
...(input.tags != null && { tags: serializeAws_json1_0TagList(input.tags, context) }),
|
|
974
|
+
};
|
|
1217
975
|
};
|
|
1218
|
-
|
|
1219
|
-
return
|
|
976
|
+
const serializeAws_json1_0TimeToLive = (input, context) => {
|
|
977
|
+
return {
|
|
978
|
+
...(input.status != null && { status: input.status }),
|
|
979
|
+
};
|
|
1220
980
|
};
|
|
1221
|
-
|
|
1222
|
-
return
|
|
981
|
+
const serializeAws_json1_0UntagResourceRequest = (input, context) => {
|
|
982
|
+
return {
|
|
983
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
984
|
+
...(input.tags != null && { tags: serializeAws_json1_0TagList(input.tags, context) }),
|
|
985
|
+
};
|
|
1223
986
|
};
|
|
1224
|
-
|
|
1225
|
-
return
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
987
|
+
const serializeAws_json1_0UpdateTableRequest = (input, context) => {
|
|
988
|
+
return {
|
|
989
|
+
...(input.addColumns != null && {
|
|
990
|
+
addColumns: serializeAws_json1_0ColumnDefinitionList(input.addColumns, context),
|
|
991
|
+
}),
|
|
992
|
+
...(input.capacitySpecification != null && {
|
|
993
|
+
capacitySpecification: serializeAws_json1_0CapacitySpecification(input.capacitySpecification, context),
|
|
994
|
+
}),
|
|
995
|
+
...(input.defaultTimeToLive != null && { defaultTimeToLive: input.defaultTimeToLive }),
|
|
996
|
+
...(input.encryptionSpecification != null && {
|
|
997
|
+
encryptionSpecification: serializeAws_json1_0EncryptionSpecification(input.encryptionSpecification, context),
|
|
998
|
+
}),
|
|
999
|
+
...(input.keyspaceName != null && { keyspaceName: input.keyspaceName }),
|
|
1000
|
+
...(input.pointInTimeRecovery != null && {
|
|
1001
|
+
pointInTimeRecovery: serializeAws_json1_0PointInTimeRecovery(input.pointInTimeRecovery, context),
|
|
1002
|
+
}),
|
|
1003
|
+
...(input.tableName != null && { tableName: input.tableName }),
|
|
1004
|
+
...(input.ttl != null && { ttl: serializeAws_json1_0TimeToLive(input.ttl, context) }),
|
|
1005
|
+
};
|
|
1234
1006
|
};
|
|
1235
|
-
|
|
1007
|
+
const deserializeAws_json1_0AccessDeniedException = (output, context) => {
|
|
1236
1008
|
return {
|
|
1237
1009
|
message: __expectString(output.message),
|
|
1238
1010
|
};
|
|
1239
1011
|
};
|
|
1240
|
-
|
|
1012
|
+
const deserializeAws_json1_0CapacitySpecificationSummary = (output, context) => {
|
|
1241
1013
|
return {
|
|
1242
1014
|
lastUpdateToPayPerRequestTimestamp: output.lastUpdateToPayPerRequestTimestamp != null
|
|
1243
1015
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdateToPayPerRequestTimestamp)))
|
|
@@ -1247,16 +1019,16 @@ var deserializeAws_json1_0CapacitySpecificationSummary = function (output, conte
|
|
|
1247
1019
|
writeCapacityUnits: __expectLong(output.writeCapacityUnits),
|
|
1248
1020
|
};
|
|
1249
1021
|
};
|
|
1250
|
-
|
|
1022
|
+
const deserializeAws_json1_0ClusteringKey = (output, context) => {
|
|
1251
1023
|
return {
|
|
1252
1024
|
name: __expectString(output.name),
|
|
1253
1025
|
orderBy: __expectString(output.orderBy),
|
|
1254
1026
|
};
|
|
1255
1027
|
};
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
.filter(
|
|
1259
|
-
.map(
|
|
1028
|
+
const deserializeAws_json1_0ClusteringKeyList = (output, context) => {
|
|
1029
|
+
const retVal = (output || [])
|
|
1030
|
+
.filter((e) => e != null)
|
|
1031
|
+
.map((entry) => {
|
|
1260
1032
|
if (entry === null) {
|
|
1261
1033
|
return null;
|
|
1262
1034
|
}
|
|
@@ -1264,16 +1036,16 @@ var deserializeAws_json1_0ClusteringKeyList = function (output, context) {
|
|
|
1264
1036
|
});
|
|
1265
1037
|
return retVal;
|
|
1266
1038
|
};
|
|
1267
|
-
|
|
1039
|
+
const deserializeAws_json1_0ColumnDefinition = (output, context) => {
|
|
1268
1040
|
return {
|
|
1269
1041
|
name: __expectString(output.name),
|
|
1270
1042
|
type: __expectString(output.type),
|
|
1271
1043
|
};
|
|
1272
1044
|
};
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
.filter(
|
|
1276
|
-
.map(
|
|
1045
|
+
const deserializeAws_json1_0ColumnDefinitionList = (output, context) => {
|
|
1046
|
+
const retVal = (output || [])
|
|
1047
|
+
.filter((e) => e != null)
|
|
1048
|
+
.map((entry) => {
|
|
1277
1049
|
if (entry === null) {
|
|
1278
1050
|
return null;
|
|
1279
1051
|
}
|
|
@@ -1281,45 +1053,45 @@ var deserializeAws_json1_0ColumnDefinitionList = function (output, context) {
|
|
|
1281
1053
|
});
|
|
1282
1054
|
return retVal;
|
|
1283
1055
|
};
|
|
1284
|
-
|
|
1056
|
+
const deserializeAws_json1_0Comment = (output, context) => {
|
|
1285
1057
|
return {
|
|
1286
1058
|
message: __expectString(output.message),
|
|
1287
1059
|
};
|
|
1288
1060
|
};
|
|
1289
|
-
|
|
1061
|
+
const deserializeAws_json1_0ConflictException = (output, context) => {
|
|
1290
1062
|
return {
|
|
1291
1063
|
message: __expectString(output.message),
|
|
1292
1064
|
};
|
|
1293
1065
|
};
|
|
1294
|
-
|
|
1066
|
+
const deserializeAws_json1_0CreateKeyspaceResponse = (output, context) => {
|
|
1295
1067
|
return {
|
|
1296
1068
|
resourceArn: __expectString(output.resourceArn),
|
|
1297
1069
|
};
|
|
1298
1070
|
};
|
|
1299
|
-
|
|
1071
|
+
const deserializeAws_json1_0CreateTableResponse = (output, context) => {
|
|
1300
1072
|
return {
|
|
1301
1073
|
resourceArn: __expectString(output.resourceArn),
|
|
1302
1074
|
};
|
|
1303
1075
|
};
|
|
1304
|
-
|
|
1076
|
+
const deserializeAws_json1_0DeleteKeyspaceResponse = (output, context) => {
|
|
1305
1077
|
return {};
|
|
1306
1078
|
};
|
|
1307
|
-
|
|
1079
|
+
const deserializeAws_json1_0DeleteTableResponse = (output, context) => {
|
|
1308
1080
|
return {};
|
|
1309
1081
|
};
|
|
1310
|
-
|
|
1082
|
+
const deserializeAws_json1_0EncryptionSpecification = (output, context) => {
|
|
1311
1083
|
return {
|
|
1312
1084
|
kmsKeyIdentifier: __expectString(output.kmsKeyIdentifier),
|
|
1313
1085
|
type: __expectString(output.type),
|
|
1314
1086
|
};
|
|
1315
1087
|
};
|
|
1316
|
-
|
|
1088
|
+
const deserializeAws_json1_0GetKeyspaceResponse = (output, context) => {
|
|
1317
1089
|
return {
|
|
1318
1090
|
keyspaceName: __expectString(output.keyspaceName),
|
|
1319
1091
|
resourceArn: __expectString(output.resourceArn),
|
|
1320
1092
|
};
|
|
1321
1093
|
};
|
|
1322
|
-
|
|
1094
|
+
const deserializeAws_json1_0GetTableResponse = (output, context) => {
|
|
1323
1095
|
return {
|
|
1324
1096
|
capacitySpecification: output.capacitySpecification != null
|
|
1325
1097
|
? deserializeAws_json1_0CapacitySpecificationSummary(output.capacitySpecification, context)
|
|
@@ -1345,21 +1117,21 @@ var deserializeAws_json1_0GetTableResponse = function (output, context) {
|
|
|
1345
1117
|
ttl: output.ttl != null ? deserializeAws_json1_0TimeToLive(output.ttl, context) : undefined,
|
|
1346
1118
|
};
|
|
1347
1119
|
};
|
|
1348
|
-
|
|
1120
|
+
const deserializeAws_json1_0InternalServerException = (output, context) => {
|
|
1349
1121
|
return {
|
|
1350
1122
|
message: __expectString(output.message),
|
|
1351
1123
|
};
|
|
1352
1124
|
};
|
|
1353
|
-
|
|
1125
|
+
const deserializeAws_json1_0KeyspaceSummary = (output, context) => {
|
|
1354
1126
|
return {
|
|
1355
1127
|
keyspaceName: __expectString(output.keyspaceName),
|
|
1356
1128
|
resourceArn: __expectString(output.resourceArn),
|
|
1357
1129
|
};
|
|
1358
1130
|
};
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
.filter(
|
|
1362
|
-
.map(
|
|
1131
|
+
const deserializeAws_json1_0KeyspaceSummaryList = (output, context) => {
|
|
1132
|
+
const retVal = (output || [])
|
|
1133
|
+
.filter((e) => e != null)
|
|
1134
|
+
.map((entry) => {
|
|
1363
1135
|
if (entry === null) {
|
|
1364
1136
|
return null;
|
|
1365
1137
|
}
|
|
@@ -1367,33 +1139,33 @@ var deserializeAws_json1_0KeyspaceSummaryList = function (output, context) {
|
|
|
1367
1139
|
});
|
|
1368
1140
|
return retVal;
|
|
1369
1141
|
};
|
|
1370
|
-
|
|
1142
|
+
const deserializeAws_json1_0ListKeyspacesResponse = (output, context) => {
|
|
1371
1143
|
return {
|
|
1372
1144
|
keyspaces: output.keyspaces != null ? deserializeAws_json1_0KeyspaceSummaryList(output.keyspaces, context) : undefined,
|
|
1373
1145
|
nextToken: __expectString(output.nextToken),
|
|
1374
1146
|
};
|
|
1375
1147
|
};
|
|
1376
|
-
|
|
1148
|
+
const deserializeAws_json1_0ListTablesResponse = (output, context) => {
|
|
1377
1149
|
return {
|
|
1378
1150
|
nextToken: __expectString(output.nextToken),
|
|
1379
1151
|
tables: output.tables != null ? deserializeAws_json1_0TableSummaryList(output.tables, context) : undefined,
|
|
1380
1152
|
};
|
|
1381
1153
|
};
|
|
1382
|
-
|
|
1154
|
+
const deserializeAws_json1_0ListTagsForResourceResponse = (output, context) => {
|
|
1383
1155
|
return {
|
|
1384
1156
|
nextToken: __expectString(output.nextToken),
|
|
1385
1157
|
tags: output.tags != null ? deserializeAws_json1_0TagList(output.tags, context) : undefined,
|
|
1386
1158
|
};
|
|
1387
1159
|
};
|
|
1388
|
-
|
|
1160
|
+
const deserializeAws_json1_0PartitionKey = (output, context) => {
|
|
1389
1161
|
return {
|
|
1390
1162
|
name: __expectString(output.name),
|
|
1391
1163
|
};
|
|
1392
1164
|
};
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
.filter(
|
|
1396
|
-
.map(
|
|
1165
|
+
const deserializeAws_json1_0PartitionKeyList = (output, context) => {
|
|
1166
|
+
const retVal = (output || [])
|
|
1167
|
+
.filter((e) => e != null)
|
|
1168
|
+
.map((entry) => {
|
|
1397
1169
|
if (entry === null) {
|
|
1398
1170
|
return null;
|
|
1399
1171
|
}
|
|
@@ -1401,7 +1173,7 @@ var deserializeAws_json1_0PartitionKeyList = function (output, context) {
|
|
|
1401
1173
|
});
|
|
1402
1174
|
return retVal;
|
|
1403
1175
|
};
|
|
1404
|
-
|
|
1176
|
+
const deserializeAws_json1_0PointInTimeRecoverySummary = (output, context) => {
|
|
1405
1177
|
return {
|
|
1406
1178
|
earliestRestorableTimestamp: output.earliestRestorableTimestamp != null
|
|
1407
1179
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.earliestRestorableTimestamp)))
|
|
@@ -1409,18 +1181,18 @@ var deserializeAws_json1_0PointInTimeRecoverySummary = function (output, context
|
|
|
1409
1181
|
status: __expectString(output.status),
|
|
1410
1182
|
};
|
|
1411
1183
|
};
|
|
1412
|
-
|
|
1184
|
+
const deserializeAws_json1_0ResourceNotFoundException = (output, context) => {
|
|
1413
1185
|
return {
|
|
1414
1186
|
message: __expectString(output.message),
|
|
1415
1187
|
resourceArn: __expectString(output.resourceArn),
|
|
1416
1188
|
};
|
|
1417
1189
|
};
|
|
1418
|
-
|
|
1190
|
+
const deserializeAws_json1_0RestoreTableResponse = (output, context) => {
|
|
1419
1191
|
return {
|
|
1420
1192
|
restoredTableARN: __expectString(output.restoredTableARN),
|
|
1421
1193
|
};
|
|
1422
1194
|
};
|
|
1423
|
-
|
|
1195
|
+
const deserializeAws_json1_0SchemaDefinition = (output, context) => {
|
|
1424
1196
|
return {
|
|
1425
1197
|
allColumns: output.allColumns != null ? deserializeAws_json1_0ColumnDefinitionList(output.allColumns, context) : undefined,
|
|
1426
1198
|
clusteringKeys: output.clusteringKeys != null
|
|
@@ -1430,20 +1202,20 @@ var deserializeAws_json1_0SchemaDefinition = function (output, context) {
|
|
|
1430
1202
|
staticColumns: output.staticColumns != null ? deserializeAws_json1_0StaticColumnList(output.staticColumns, context) : undefined,
|
|
1431
1203
|
};
|
|
1432
1204
|
};
|
|
1433
|
-
|
|
1205
|
+
const deserializeAws_json1_0ServiceQuotaExceededException = (output, context) => {
|
|
1434
1206
|
return {
|
|
1435
1207
|
message: __expectString(output.message),
|
|
1436
1208
|
};
|
|
1437
1209
|
};
|
|
1438
|
-
|
|
1210
|
+
const deserializeAws_json1_0StaticColumn = (output, context) => {
|
|
1439
1211
|
return {
|
|
1440
1212
|
name: __expectString(output.name),
|
|
1441
1213
|
};
|
|
1442
1214
|
};
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
.filter(
|
|
1446
|
-
.map(
|
|
1215
|
+
const deserializeAws_json1_0StaticColumnList = (output, context) => {
|
|
1216
|
+
const retVal = (output || [])
|
|
1217
|
+
.filter((e) => e != null)
|
|
1218
|
+
.map((entry) => {
|
|
1447
1219
|
if (entry === null) {
|
|
1448
1220
|
return null;
|
|
1449
1221
|
}
|
|
@@ -1451,17 +1223,17 @@ var deserializeAws_json1_0StaticColumnList = function (output, context) {
|
|
|
1451
1223
|
});
|
|
1452
1224
|
return retVal;
|
|
1453
1225
|
};
|
|
1454
|
-
|
|
1226
|
+
const deserializeAws_json1_0TableSummary = (output, context) => {
|
|
1455
1227
|
return {
|
|
1456
1228
|
keyspaceName: __expectString(output.keyspaceName),
|
|
1457
1229
|
resourceArn: __expectString(output.resourceArn),
|
|
1458
1230
|
tableName: __expectString(output.tableName),
|
|
1459
1231
|
};
|
|
1460
1232
|
};
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
.filter(
|
|
1464
|
-
.map(
|
|
1233
|
+
const deserializeAws_json1_0TableSummaryList = (output, context) => {
|
|
1234
|
+
const retVal = (output || [])
|
|
1235
|
+
.filter((e) => e != null)
|
|
1236
|
+
.map((entry) => {
|
|
1465
1237
|
if (entry === null) {
|
|
1466
1238
|
return null;
|
|
1467
1239
|
}
|
|
@@ -1469,16 +1241,16 @@ var deserializeAws_json1_0TableSummaryList = function (output, context) {
|
|
|
1469
1241
|
});
|
|
1470
1242
|
return retVal;
|
|
1471
1243
|
};
|
|
1472
|
-
|
|
1244
|
+
const deserializeAws_json1_0Tag = (output, context) => {
|
|
1473
1245
|
return {
|
|
1474
1246
|
key: __expectString(output.key),
|
|
1475
1247
|
value: __expectString(output.value),
|
|
1476
1248
|
};
|
|
1477
1249
|
};
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
.filter(
|
|
1481
|
-
.map(
|
|
1250
|
+
const deserializeAws_json1_0TagList = (output, context) => {
|
|
1251
|
+
const retVal = (output || [])
|
|
1252
|
+
.filter((e) => e != null)
|
|
1253
|
+
.map((entry) => {
|
|
1482
1254
|
if (entry === null) {
|
|
1483
1255
|
return null;
|
|
1484
1256
|
}
|
|
@@ -1486,96 +1258,73 @@ var deserializeAws_json1_0TagList = function (output, context) {
|
|
|
1486
1258
|
});
|
|
1487
1259
|
return retVal;
|
|
1488
1260
|
};
|
|
1489
|
-
|
|
1261
|
+
const deserializeAws_json1_0TagResourceResponse = (output, context) => {
|
|
1490
1262
|
return {};
|
|
1491
1263
|
};
|
|
1492
|
-
|
|
1264
|
+
const deserializeAws_json1_0TimeToLive = (output, context) => {
|
|
1493
1265
|
return {
|
|
1494
1266
|
status: __expectString(output.status),
|
|
1495
1267
|
};
|
|
1496
1268
|
};
|
|
1497
|
-
|
|
1269
|
+
const deserializeAws_json1_0UntagResourceResponse = (output, context) => {
|
|
1498
1270
|
return {};
|
|
1499
1271
|
};
|
|
1500
|
-
|
|
1272
|
+
const deserializeAws_json1_0UpdateTableResponse = (output, context) => {
|
|
1501
1273
|
return {
|
|
1502
1274
|
resourceArn: __expectString(output.resourceArn),
|
|
1503
1275
|
};
|
|
1504
1276
|
};
|
|
1505
|
-
|
|
1277
|
+
const deserializeAws_json1_0ValidationException = (output, context) => {
|
|
1506
1278
|
return {
|
|
1507
1279
|
message: __expectString(output.message),
|
|
1508
1280
|
};
|
|
1509
1281
|
};
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
});
|
|
1518
|
-
};
|
|
1519
|
-
var collectBody = function (streamBody, context) {
|
|
1520
|
-
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
1282
|
+
const deserializeMetadata = (output) => ({
|
|
1283
|
+
httpStatusCode: output.statusCode,
|
|
1284
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"],
|
|
1285
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1286
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
1287
|
+
});
|
|
1288
|
+
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
1521
1289
|
if (streamBody instanceof Uint8Array) {
|
|
1522
1290
|
return Promise.resolve(streamBody);
|
|
1523
1291
|
}
|
|
1524
1292
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
1525
1293
|
};
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
};
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
if (resolvedHostname !== undefined) {
|
|
1545
|
-
contents.hostname = resolvedHostname;
|
|
1546
|
-
}
|
|
1547
|
-
if (body !== undefined) {
|
|
1548
|
-
contents.body = body;
|
|
1549
|
-
}
|
|
1550
|
-
return [2, new __HttpRequest(contents)];
|
|
1551
|
-
}
|
|
1552
|
-
});
|
|
1553
|
-
}); };
|
|
1554
|
-
var parseBody = function (streamBody, context) {
|
|
1555
|
-
return collectBodyString(streamBody, context).then(function (encoded) {
|
|
1556
|
-
if (encoded.length) {
|
|
1557
|
-
return JSON.parse(encoded);
|
|
1558
|
-
}
|
|
1559
|
-
return {};
|
|
1560
|
-
});
|
|
1294
|
+
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1295
|
+
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1296
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1297
|
+
const contents = {
|
|
1298
|
+
protocol,
|
|
1299
|
+
hostname,
|
|
1300
|
+
port,
|
|
1301
|
+
method: "POST",
|
|
1302
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
1303
|
+
headers,
|
|
1304
|
+
};
|
|
1305
|
+
if (resolvedHostname !== undefined) {
|
|
1306
|
+
contents.hostname = resolvedHostname;
|
|
1307
|
+
}
|
|
1308
|
+
if (body !== undefined) {
|
|
1309
|
+
contents.body = body;
|
|
1310
|
+
}
|
|
1311
|
+
return new __HttpRequest(contents);
|
|
1561
1312
|
};
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
var sanitizeErrorCode = function (rawValue) {
|
|
1578
|
-
var cleanValue = rawValue;
|
|
1313
|
+
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1314
|
+
if (encoded.length) {
|
|
1315
|
+
return JSON.parse(encoded);
|
|
1316
|
+
}
|
|
1317
|
+
return {};
|
|
1318
|
+
});
|
|
1319
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
1320
|
+
const value = await parseBody(errorBody, context);
|
|
1321
|
+
value.message = value.message ?? value.Message;
|
|
1322
|
+
return value;
|
|
1323
|
+
};
|
|
1324
|
+
const loadRestJsonErrorCode = (output, data) => {
|
|
1325
|
+
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1326
|
+
const sanitizeErrorCode = (rawValue) => {
|
|
1327
|
+
let cleanValue = rawValue;
|
|
1579
1328
|
if (typeof cleanValue === "number") {
|
|
1580
1329
|
cleanValue = cleanValue.toString();
|
|
1581
1330
|
}
|
|
@@ -1590,7 +1339,7 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
1590
1339
|
}
|
|
1591
1340
|
return cleanValue;
|
|
1592
1341
|
};
|
|
1593
|
-
|
|
1342
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1594
1343
|
if (headerKey !== undefined) {
|
|
1595
1344
|
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1596
1345
|
}
|