@aws-sdk/client-keyspaces 3.118.1 → 3.128.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_json1_0.js +152 -180
- package/dist-es/protocols/Aws_json1_0.js +121 -149
- package/package.json +26 -26
|
@@ -165,7 +165,7 @@ export var deserializeAws_json1_0CreateKeyspaceCommand = function (output, conte
|
|
|
165
165
|
});
|
|
166
166
|
}); };
|
|
167
167
|
var deserializeAws_json1_0CreateKeyspaceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
168
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
168
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
169
169
|
var _c;
|
|
170
170
|
return __generator(this, function (_d) {
|
|
171
171
|
switch (_d.label) {
|
|
@@ -175,7 +175,6 @@ var deserializeAws_json1_0CreateKeyspaceCommandError = function (output, context
|
|
|
175
175
|
return [4, parseBody(output.body, context)];
|
|
176
176
|
case 1:
|
|
177
177
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
178
|
-
errorCode = "UnknownError";
|
|
179
178
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
180
179
|
_b = errorCode;
|
|
181
180
|
switch (_b) {
|
|
@@ -203,10 +202,12 @@ var deserializeAws_json1_0CreateKeyspaceCommandError = function (output, context
|
|
|
203
202
|
case 11: throw _d.sent();
|
|
204
203
|
case 12:
|
|
205
204
|
parsedBody = parsedOutput.body;
|
|
205
|
+
$metadata = deserializeMetadata(output);
|
|
206
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
206
207
|
response = new __BaseException({
|
|
207
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
208
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
208
209
|
$fault: "client",
|
|
209
|
-
$metadata:
|
|
210
|
+
$metadata: $metadata,
|
|
210
211
|
});
|
|
211
212
|
throw __decorateServiceException(response, parsedBody);
|
|
212
213
|
}
|
|
@@ -231,7 +232,7 @@ export var deserializeAws_json1_0CreateTableCommand = function (output, context)
|
|
|
231
232
|
});
|
|
232
233
|
}); };
|
|
233
234
|
var deserializeAws_json1_0CreateTableCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
234
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
235
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
235
236
|
var _c;
|
|
236
237
|
return __generator(this, function (_d) {
|
|
237
238
|
switch (_d.label) {
|
|
@@ -241,7 +242,6 @@ var deserializeAws_json1_0CreateTableCommandError = function (output, context) {
|
|
|
241
242
|
return [4, parseBody(output.body, context)];
|
|
242
243
|
case 1:
|
|
243
244
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
244
|
-
errorCode = "UnknownError";
|
|
245
245
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
246
246
|
_b = errorCode;
|
|
247
247
|
switch (_b) {
|
|
@@ -273,10 +273,12 @@ var deserializeAws_json1_0CreateTableCommandError = function (output, context) {
|
|
|
273
273
|
case 13: throw _d.sent();
|
|
274
274
|
case 14:
|
|
275
275
|
parsedBody = parsedOutput.body;
|
|
276
|
+
$metadata = deserializeMetadata(output);
|
|
277
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
276
278
|
response = new __BaseException({
|
|
277
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
279
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
278
280
|
$fault: "client",
|
|
279
|
-
$metadata:
|
|
281
|
+
$metadata: $metadata,
|
|
280
282
|
});
|
|
281
283
|
throw __decorateServiceException(response, parsedBody);
|
|
282
284
|
}
|
|
@@ -301,7 +303,7 @@ export var deserializeAws_json1_0DeleteKeyspaceCommand = function (output, conte
|
|
|
301
303
|
});
|
|
302
304
|
}); };
|
|
303
305
|
var deserializeAws_json1_0DeleteKeyspaceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
304
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
306
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
305
307
|
var _c;
|
|
306
308
|
return __generator(this, function (_d) {
|
|
307
309
|
switch (_d.label) {
|
|
@@ -311,7 +313,6 @@ var deserializeAws_json1_0DeleteKeyspaceCommandError = function (output, context
|
|
|
311
313
|
return [4, parseBody(output.body, context)];
|
|
312
314
|
case 1:
|
|
313
315
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
314
|
-
errorCode = "UnknownError";
|
|
315
316
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
316
317
|
_b = errorCode;
|
|
317
318
|
switch (_b) {
|
|
@@ -343,10 +344,12 @@ var deserializeAws_json1_0DeleteKeyspaceCommandError = function (output, context
|
|
|
343
344
|
case 13: throw _d.sent();
|
|
344
345
|
case 14:
|
|
345
346
|
parsedBody = parsedOutput.body;
|
|
347
|
+
$metadata = deserializeMetadata(output);
|
|
348
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
346
349
|
response = new __BaseException({
|
|
347
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
350
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
348
351
|
$fault: "client",
|
|
349
|
-
$metadata:
|
|
352
|
+
$metadata: $metadata,
|
|
350
353
|
});
|
|
351
354
|
throw __decorateServiceException(response, parsedBody);
|
|
352
355
|
}
|
|
@@ -371,7 +374,7 @@ export var deserializeAws_json1_0DeleteTableCommand = function (output, context)
|
|
|
371
374
|
});
|
|
372
375
|
}); };
|
|
373
376
|
var deserializeAws_json1_0DeleteTableCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
374
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
377
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
375
378
|
var _c;
|
|
376
379
|
return __generator(this, function (_d) {
|
|
377
380
|
switch (_d.label) {
|
|
@@ -381,7 +384,6 @@ var deserializeAws_json1_0DeleteTableCommandError = function (output, context) {
|
|
|
381
384
|
return [4, parseBody(output.body, context)];
|
|
382
385
|
case 1:
|
|
383
386
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
384
|
-
errorCode = "UnknownError";
|
|
385
387
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
386
388
|
_b = errorCode;
|
|
387
389
|
switch (_b) {
|
|
@@ -413,10 +415,12 @@ var deserializeAws_json1_0DeleteTableCommandError = function (output, context) {
|
|
|
413
415
|
case 13: throw _d.sent();
|
|
414
416
|
case 14:
|
|
415
417
|
parsedBody = parsedOutput.body;
|
|
418
|
+
$metadata = deserializeMetadata(output);
|
|
419
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
416
420
|
response = new __BaseException({
|
|
417
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
421
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
418
422
|
$fault: "client",
|
|
419
|
-
$metadata:
|
|
423
|
+
$metadata: $metadata,
|
|
420
424
|
});
|
|
421
425
|
throw __decorateServiceException(response, parsedBody);
|
|
422
426
|
}
|
|
@@ -441,7 +445,7 @@ export var deserializeAws_json1_0GetKeyspaceCommand = function (output, context)
|
|
|
441
445
|
});
|
|
442
446
|
}); };
|
|
443
447
|
var deserializeAws_json1_0GetKeyspaceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
444
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
448
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
445
449
|
var _c;
|
|
446
450
|
return __generator(this, function (_d) {
|
|
447
451
|
switch (_d.label) {
|
|
@@ -451,7 +455,6 @@ var deserializeAws_json1_0GetKeyspaceCommandError = function (output, context) {
|
|
|
451
455
|
return [4, parseBody(output.body, context)];
|
|
452
456
|
case 1:
|
|
453
457
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
454
|
-
errorCode = "UnknownError";
|
|
455
458
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
456
459
|
_b = errorCode;
|
|
457
460
|
switch (_b) {
|
|
@@ -479,10 +482,12 @@ var deserializeAws_json1_0GetKeyspaceCommandError = function (output, context) {
|
|
|
479
482
|
case 11: throw _d.sent();
|
|
480
483
|
case 12:
|
|
481
484
|
parsedBody = parsedOutput.body;
|
|
485
|
+
$metadata = deserializeMetadata(output);
|
|
486
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
482
487
|
response = new __BaseException({
|
|
483
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
488
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
484
489
|
$fault: "client",
|
|
485
|
-
$metadata:
|
|
490
|
+
$metadata: $metadata,
|
|
486
491
|
});
|
|
487
492
|
throw __decorateServiceException(response, parsedBody);
|
|
488
493
|
}
|
|
@@ -507,7 +512,7 @@ export var deserializeAws_json1_0GetTableCommand = function (output, context) {
|
|
|
507
512
|
});
|
|
508
513
|
}); };
|
|
509
514
|
var deserializeAws_json1_0GetTableCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
510
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
515
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
511
516
|
var _c;
|
|
512
517
|
return __generator(this, function (_d) {
|
|
513
518
|
switch (_d.label) {
|
|
@@ -517,7 +522,6 @@ var deserializeAws_json1_0GetTableCommandError = function (output, context) { re
|
|
|
517
522
|
return [4, parseBody(output.body, context)];
|
|
518
523
|
case 1:
|
|
519
524
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
520
|
-
errorCode = "UnknownError";
|
|
521
525
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
522
526
|
_b = errorCode;
|
|
523
527
|
switch (_b) {
|
|
@@ -545,10 +549,12 @@ var deserializeAws_json1_0GetTableCommandError = function (output, context) { re
|
|
|
545
549
|
case 11: throw _d.sent();
|
|
546
550
|
case 12:
|
|
547
551
|
parsedBody = parsedOutput.body;
|
|
552
|
+
$metadata = deserializeMetadata(output);
|
|
553
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
548
554
|
response = new __BaseException({
|
|
549
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
555
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
550
556
|
$fault: "client",
|
|
551
|
-
$metadata:
|
|
557
|
+
$metadata: $metadata,
|
|
552
558
|
});
|
|
553
559
|
throw __decorateServiceException(response, parsedBody);
|
|
554
560
|
}
|
|
@@ -573,7 +579,7 @@ export var deserializeAws_json1_0ListKeyspacesCommand = function (output, contex
|
|
|
573
579
|
});
|
|
574
580
|
}); };
|
|
575
581
|
var deserializeAws_json1_0ListKeyspacesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
576
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
582
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
577
583
|
var _c;
|
|
578
584
|
return __generator(this, function (_d) {
|
|
579
585
|
switch (_d.label) {
|
|
@@ -583,7 +589,6 @@ var deserializeAws_json1_0ListKeyspacesCommandError = function (output, context)
|
|
|
583
589
|
return [4, parseBody(output.body, context)];
|
|
584
590
|
case 1:
|
|
585
591
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
586
|
-
errorCode = "UnknownError";
|
|
587
592
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
588
593
|
_b = errorCode;
|
|
589
594
|
switch (_b) {
|
|
@@ -611,10 +616,12 @@ var deserializeAws_json1_0ListKeyspacesCommandError = function (output, context)
|
|
|
611
616
|
case 11: throw _d.sent();
|
|
612
617
|
case 12:
|
|
613
618
|
parsedBody = parsedOutput.body;
|
|
619
|
+
$metadata = deserializeMetadata(output);
|
|
620
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
614
621
|
response = new __BaseException({
|
|
615
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
622
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
616
623
|
$fault: "client",
|
|
617
|
-
$metadata:
|
|
624
|
+
$metadata: $metadata,
|
|
618
625
|
});
|
|
619
626
|
throw __decorateServiceException(response, parsedBody);
|
|
620
627
|
}
|
|
@@ -639,7 +646,7 @@ export var deserializeAws_json1_0ListTablesCommand = function (output, context)
|
|
|
639
646
|
});
|
|
640
647
|
}); };
|
|
641
648
|
var deserializeAws_json1_0ListTablesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
642
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
649
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
643
650
|
var _c;
|
|
644
651
|
return __generator(this, function (_d) {
|
|
645
652
|
switch (_d.label) {
|
|
@@ -649,7 +656,6 @@ var deserializeAws_json1_0ListTablesCommandError = function (output, context) {
|
|
|
649
656
|
return [4, parseBody(output.body, context)];
|
|
650
657
|
case 1:
|
|
651
658
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
652
|
-
errorCode = "UnknownError";
|
|
653
659
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
654
660
|
_b = errorCode;
|
|
655
661
|
switch (_b) {
|
|
@@ -677,10 +683,12 @@ var deserializeAws_json1_0ListTablesCommandError = function (output, context) {
|
|
|
677
683
|
case 11: throw _d.sent();
|
|
678
684
|
case 12:
|
|
679
685
|
parsedBody = parsedOutput.body;
|
|
686
|
+
$metadata = deserializeMetadata(output);
|
|
687
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
680
688
|
response = new __BaseException({
|
|
681
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
689
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
682
690
|
$fault: "client",
|
|
683
|
-
$metadata:
|
|
691
|
+
$metadata: $metadata,
|
|
684
692
|
});
|
|
685
693
|
throw __decorateServiceException(response, parsedBody);
|
|
686
694
|
}
|
|
@@ -705,7 +713,7 @@ export var deserializeAws_json1_0ListTagsForResourceCommand = function (output,
|
|
|
705
713
|
});
|
|
706
714
|
}); };
|
|
707
715
|
var deserializeAws_json1_0ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
708
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
716
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
709
717
|
var _c;
|
|
710
718
|
return __generator(this, function (_d) {
|
|
711
719
|
switch (_d.label) {
|
|
@@ -715,7 +723,6 @@ var deserializeAws_json1_0ListTagsForResourceCommandError = function (output, co
|
|
|
715
723
|
return [4, parseBody(output.body, context)];
|
|
716
724
|
case 1:
|
|
717
725
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
718
|
-
errorCode = "UnknownError";
|
|
719
726
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
720
727
|
_b = errorCode;
|
|
721
728
|
switch (_b) {
|
|
@@ -743,10 +750,12 @@ var deserializeAws_json1_0ListTagsForResourceCommandError = function (output, co
|
|
|
743
750
|
case 11: throw _d.sent();
|
|
744
751
|
case 12:
|
|
745
752
|
parsedBody = parsedOutput.body;
|
|
753
|
+
$metadata = deserializeMetadata(output);
|
|
754
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
746
755
|
response = new __BaseException({
|
|
747
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
756
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
748
757
|
$fault: "client",
|
|
749
|
-
$metadata:
|
|
758
|
+
$metadata: $metadata,
|
|
750
759
|
});
|
|
751
760
|
throw __decorateServiceException(response, parsedBody);
|
|
752
761
|
}
|
|
@@ -771,7 +780,7 @@ export var deserializeAws_json1_0RestoreTableCommand = function (output, context
|
|
|
771
780
|
});
|
|
772
781
|
}); };
|
|
773
782
|
var deserializeAws_json1_0RestoreTableCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
774
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
783
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
775
784
|
var _c;
|
|
776
785
|
return __generator(this, function (_d) {
|
|
777
786
|
switch (_d.label) {
|
|
@@ -781,7 +790,6 @@ var deserializeAws_json1_0RestoreTableCommandError = function (output, context)
|
|
|
781
790
|
return [4, parseBody(output.body, context)];
|
|
782
791
|
case 1:
|
|
783
792
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
784
|
-
errorCode = "UnknownError";
|
|
785
793
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
786
794
|
_b = errorCode;
|
|
787
795
|
switch (_b) {
|
|
@@ -813,10 +821,12 @@ var deserializeAws_json1_0RestoreTableCommandError = function (output, context)
|
|
|
813
821
|
case 13: throw _d.sent();
|
|
814
822
|
case 14:
|
|
815
823
|
parsedBody = parsedOutput.body;
|
|
824
|
+
$metadata = deserializeMetadata(output);
|
|
825
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
816
826
|
response = new __BaseException({
|
|
817
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
827
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
818
828
|
$fault: "client",
|
|
819
|
-
$metadata:
|
|
829
|
+
$metadata: $metadata,
|
|
820
830
|
});
|
|
821
831
|
throw __decorateServiceException(response, parsedBody);
|
|
822
832
|
}
|
|
@@ -841,7 +851,7 @@ export var deserializeAws_json1_0TagResourceCommand = function (output, context)
|
|
|
841
851
|
});
|
|
842
852
|
}); };
|
|
843
853
|
var deserializeAws_json1_0TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
844
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
854
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
845
855
|
var _c;
|
|
846
856
|
return __generator(this, function (_d) {
|
|
847
857
|
switch (_d.label) {
|
|
@@ -851,7 +861,6 @@ var deserializeAws_json1_0TagResourceCommandError = function (output, context) {
|
|
|
851
861
|
return [4, parseBody(output.body, context)];
|
|
852
862
|
case 1:
|
|
853
863
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
854
|
-
errorCode = "UnknownError";
|
|
855
864
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
856
865
|
_b = errorCode;
|
|
857
866
|
switch (_b) {
|
|
@@ -879,10 +888,12 @@ var deserializeAws_json1_0TagResourceCommandError = function (output, context) {
|
|
|
879
888
|
case 11: throw _d.sent();
|
|
880
889
|
case 12:
|
|
881
890
|
parsedBody = parsedOutput.body;
|
|
891
|
+
$metadata = deserializeMetadata(output);
|
|
892
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
882
893
|
response = new __BaseException({
|
|
883
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
894
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
884
895
|
$fault: "client",
|
|
885
|
-
$metadata:
|
|
896
|
+
$metadata: $metadata,
|
|
886
897
|
});
|
|
887
898
|
throw __decorateServiceException(response, parsedBody);
|
|
888
899
|
}
|
|
@@ -907,7 +918,7 @@ export var deserializeAws_json1_0UntagResourceCommand = function (output, contex
|
|
|
907
918
|
});
|
|
908
919
|
}); };
|
|
909
920
|
var deserializeAws_json1_0UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
910
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
921
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
911
922
|
var _c;
|
|
912
923
|
return __generator(this, function (_d) {
|
|
913
924
|
switch (_d.label) {
|
|
@@ -917,7 +928,6 @@ var deserializeAws_json1_0UntagResourceCommandError = function (output, context)
|
|
|
917
928
|
return [4, parseBody(output.body, context)];
|
|
918
929
|
case 1:
|
|
919
930
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
920
|
-
errorCode = "UnknownError";
|
|
921
931
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
922
932
|
_b = errorCode;
|
|
923
933
|
switch (_b) {
|
|
@@ -949,10 +959,12 @@ var deserializeAws_json1_0UntagResourceCommandError = function (output, context)
|
|
|
949
959
|
case 13: throw _d.sent();
|
|
950
960
|
case 14:
|
|
951
961
|
parsedBody = parsedOutput.body;
|
|
962
|
+
$metadata = deserializeMetadata(output);
|
|
963
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
952
964
|
response = new __BaseException({
|
|
953
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
965
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
954
966
|
$fault: "client",
|
|
955
|
-
$metadata:
|
|
967
|
+
$metadata: $metadata,
|
|
956
968
|
});
|
|
957
969
|
throw __decorateServiceException(response, parsedBody);
|
|
958
970
|
}
|
|
@@ -977,7 +989,7 @@ export var deserializeAws_json1_0UpdateTableCommand = function (output, context)
|
|
|
977
989
|
});
|
|
978
990
|
}); };
|
|
979
991
|
var deserializeAws_json1_0UpdateTableCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
980
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
992
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
981
993
|
var _c;
|
|
982
994
|
return __generator(this, function (_d) {
|
|
983
995
|
switch (_d.label) {
|
|
@@ -987,7 +999,6 @@ var deserializeAws_json1_0UpdateTableCommandError = function (output, context) {
|
|
|
987
999
|
return [4, parseBody(output.body, context)];
|
|
988
1000
|
case 1:
|
|
989
1001
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
990
|
-
errorCode = "UnknownError";
|
|
991
1002
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
992
1003
|
_b = errorCode;
|
|
993
1004
|
switch (_b) {
|
|
@@ -1019,10 +1030,12 @@ var deserializeAws_json1_0UpdateTableCommandError = function (output, context) {
|
|
|
1019
1030
|
case 13: throw _d.sent();
|
|
1020
1031
|
case 14:
|
|
1021
1032
|
parsedBody = parsedOutput.body;
|
|
1033
|
+
$metadata = deserializeMetadata(output);
|
|
1034
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1022
1035
|
response = new __BaseException({
|
|
1023
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1036
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1024
1037
|
$fault: "client",
|
|
1025
|
-
$metadata:
|
|
1038
|
+
$metadata: $metadata,
|
|
1026
1039
|
});
|
|
1027
1040
|
throw __decorateServiceException(response, parsedBody);
|
|
1028
1041
|
}
|
|
@@ -1083,13 +1096,10 @@ var deserializeAws_json1_0ValidationExceptionResponse = function (parsedOutput,
|
|
|
1083
1096
|
});
|
|
1084
1097
|
}); };
|
|
1085
1098
|
var serializeAws_json1_0CapacitySpecification = function (input, context) {
|
|
1086
|
-
return __assign(__assign(__assign({}, (input.readCapacityUnits
|
|
1087
|
-
input.readCapacityUnits !== null && { readCapacityUnits: input.readCapacityUnits })), (input.throughputMode !== undefined &&
|
|
1088
|
-
input.throughputMode !== null && { throughputMode: input.throughputMode })), (input.writeCapacityUnits !== undefined &&
|
|
1089
|
-
input.writeCapacityUnits !== null && { writeCapacityUnits: input.writeCapacityUnits }));
|
|
1099
|
+
return __assign(__assign(__assign({}, (input.readCapacityUnits != null && { readCapacityUnits: input.readCapacityUnits })), (input.throughputMode != null && { throughputMode: input.throughputMode })), (input.writeCapacityUnits != null && { writeCapacityUnits: input.writeCapacityUnits }));
|
|
1090
1100
|
};
|
|
1091
1101
|
var serializeAws_json1_0ClusteringKey = function (input, context) {
|
|
1092
|
-
return __assign(__assign({}, (input.name
|
|
1102
|
+
return __assign(__assign({}, (input.name != null && { name: input.name })), (input.orderBy != null && { orderBy: input.orderBy }));
|
|
1093
1103
|
};
|
|
1094
1104
|
var serializeAws_json1_0ClusteringKeyList = function (input, context) {
|
|
1095
1105
|
return input
|
|
@@ -1102,7 +1112,7 @@ var serializeAws_json1_0ClusteringKeyList = function (input, context) {
|
|
|
1102
1112
|
});
|
|
1103
1113
|
};
|
|
1104
1114
|
var serializeAws_json1_0ColumnDefinition = function (input, context) {
|
|
1105
|
-
return __assign(__assign({}, (input.name
|
|
1115
|
+
return __assign(__assign({}, (input.name != null && { name: input.name })), (input.type != null && { type: input.type }));
|
|
1106
1116
|
};
|
|
1107
1117
|
var serializeAws_json1_0ColumnDefinitionList = function (input, context) {
|
|
1108
1118
|
return input
|
|
@@ -1115,55 +1125,48 @@ var serializeAws_json1_0ColumnDefinitionList = function (input, context) {
|
|
|
1115
1125
|
});
|
|
1116
1126
|
};
|
|
1117
1127
|
var serializeAws_json1_0Comment = function (input, context) {
|
|
1118
|
-
return __assign({}, (input.message
|
|
1128
|
+
return __assign({}, (input.message != null && { message: input.message }));
|
|
1119
1129
|
};
|
|
1120
1130
|
var serializeAws_json1_0CreateKeyspaceRequest = function (input, context) {
|
|
1121
|
-
return __assign(__assign({}, (input.keyspaceName
|
|
1131
|
+
return __assign(__assign({}, (input.keyspaceName != null && { keyspaceName: input.keyspaceName })), (input.tags != null && { tags: serializeAws_json1_0TagList(input.tags, context) }));
|
|
1122
1132
|
};
|
|
1123
1133
|
var serializeAws_json1_0CreateTableRequest = function (input, context) {
|
|
1124
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.capacitySpecification
|
|
1125
|
-
input.capacitySpecification !== null && {
|
|
1134
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.capacitySpecification != null && {
|
|
1126
1135
|
capacitySpecification: serializeAws_json1_0CapacitySpecification(input.capacitySpecification, context),
|
|
1127
|
-
})), (input.comment
|
|
1128
|
-
input.comment !== null && { comment: serializeAws_json1_0Comment(input.comment, context) })), (input.defaultTimeToLive !== undefined &&
|
|
1129
|
-
input.defaultTimeToLive !== null && { defaultTimeToLive: input.defaultTimeToLive })), (input.encryptionSpecification !== undefined &&
|
|
1130
|
-
input.encryptionSpecification !== null && {
|
|
1136
|
+
})), (input.comment != null && { comment: serializeAws_json1_0Comment(input.comment, context) })), (input.defaultTimeToLive != null && { defaultTimeToLive: input.defaultTimeToLive })), (input.encryptionSpecification != null && {
|
|
1131
1137
|
encryptionSpecification: serializeAws_json1_0EncryptionSpecification(input.encryptionSpecification, context),
|
|
1132
|
-
})), (input.keyspaceName
|
|
1133
|
-
input.pointInTimeRecovery !== null && {
|
|
1138
|
+
})), (input.keyspaceName != null && { keyspaceName: input.keyspaceName })), (input.pointInTimeRecovery != null && {
|
|
1134
1139
|
pointInTimeRecovery: serializeAws_json1_0PointInTimeRecovery(input.pointInTimeRecovery, context),
|
|
1135
|
-
})), (input.schemaDefinition
|
|
1136
|
-
input.schemaDefinition !== null && {
|
|
1140
|
+
})), (input.schemaDefinition != null && {
|
|
1137
1141
|
schemaDefinition: serializeAws_json1_0SchemaDefinition(input.schemaDefinition, context),
|
|
1138
|
-
})), (input.tableName
|
|
1142
|
+
})), (input.tableName != null && { tableName: input.tableName })), (input.tags != null && { tags: serializeAws_json1_0TagList(input.tags, context) })), (input.ttl != null && { ttl: serializeAws_json1_0TimeToLive(input.ttl, context) }));
|
|
1139
1143
|
};
|
|
1140
1144
|
var serializeAws_json1_0DeleteKeyspaceRequest = function (input, context) {
|
|
1141
|
-
return __assign({}, (input.keyspaceName
|
|
1145
|
+
return __assign({}, (input.keyspaceName != null && { keyspaceName: input.keyspaceName }));
|
|
1142
1146
|
};
|
|
1143
1147
|
var serializeAws_json1_0DeleteTableRequest = function (input, context) {
|
|
1144
|
-
return __assign(__assign({}, (input.keyspaceName
|
|
1148
|
+
return __assign(__assign({}, (input.keyspaceName != null && { keyspaceName: input.keyspaceName })), (input.tableName != null && { tableName: input.tableName }));
|
|
1145
1149
|
};
|
|
1146
1150
|
var serializeAws_json1_0EncryptionSpecification = function (input, context) {
|
|
1147
|
-
return __assign(__assign({}, (input.kmsKeyIdentifier
|
|
1148
|
-
input.kmsKeyIdentifier !== null && { kmsKeyIdentifier: input.kmsKeyIdentifier })), (input.type !== undefined && input.type !== null && { type: input.type }));
|
|
1151
|
+
return __assign(__assign({}, (input.kmsKeyIdentifier != null && { kmsKeyIdentifier: input.kmsKeyIdentifier })), (input.type != null && { type: input.type }));
|
|
1149
1152
|
};
|
|
1150
1153
|
var serializeAws_json1_0GetKeyspaceRequest = function (input, context) {
|
|
1151
|
-
return __assign({}, (input.keyspaceName
|
|
1154
|
+
return __assign({}, (input.keyspaceName != null && { keyspaceName: input.keyspaceName }));
|
|
1152
1155
|
};
|
|
1153
1156
|
var serializeAws_json1_0GetTableRequest = function (input, context) {
|
|
1154
|
-
return __assign(__assign({}, (input.keyspaceName
|
|
1157
|
+
return __assign(__assign({}, (input.keyspaceName != null && { keyspaceName: input.keyspaceName })), (input.tableName != null && { tableName: input.tableName }));
|
|
1155
1158
|
};
|
|
1156
1159
|
var serializeAws_json1_0ListKeyspacesRequest = function (input, context) {
|
|
1157
|
-
return __assign(__assign({}, (input.maxResults
|
|
1160
|
+
return __assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken }));
|
|
1158
1161
|
};
|
|
1159
1162
|
var serializeAws_json1_0ListTablesRequest = function (input, context) {
|
|
1160
|
-
return __assign(__assign(__assign({}, (input.keyspaceName
|
|
1163
|
+
return __assign(__assign(__assign({}, (input.keyspaceName != null && { keyspaceName: input.keyspaceName })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken }));
|
|
1161
1164
|
};
|
|
1162
1165
|
var serializeAws_json1_0ListTagsForResourceRequest = function (input, context) {
|
|
1163
|
-
return __assign(__assign(__assign({}, (input.maxResults
|
|
1166
|
+
return __assign(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.resourceArn != null && { resourceArn: input.resourceArn }));
|
|
1164
1167
|
};
|
|
1165
1168
|
var serializeAws_json1_0PartitionKey = function (input, context) {
|
|
1166
|
-
return __assign({}, (input.name
|
|
1169
|
+
return __assign({}, (input.name != null && { name: input.name }));
|
|
1167
1170
|
};
|
|
1168
1171
|
var serializeAws_json1_0PartitionKeyList = function (input, context) {
|
|
1169
1172
|
return input
|
|
@@ -1176,41 +1179,30 @@ var serializeAws_json1_0PartitionKeyList = function (input, context) {
|
|
|
1176
1179
|
});
|
|
1177
1180
|
};
|
|
1178
1181
|
var serializeAws_json1_0PointInTimeRecovery = function (input, context) {
|
|
1179
|
-
return __assign({}, (input.status
|
|
1182
|
+
return __assign({}, (input.status != null && { status: input.status }));
|
|
1180
1183
|
};
|
|
1181
1184
|
var serializeAws_json1_0RestoreTableRequest = function (input, context) {
|
|
1182
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.capacitySpecificationOverride
|
|
1183
|
-
input.capacitySpecificationOverride !== null && {
|
|
1185
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.capacitySpecificationOverride != null && {
|
|
1184
1186
|
capacitySpecificationOverride: serializeAws_json1_0CapacitySpecification(input.capacitySpecificationOverride, context),
|
|
1185
|
-
})), (input.encryptionSpecificationOverride
|
|
1186
|
-
input.encryptionSpecificationOverride !== null && {
|
|
1187
|
+
})), (input.encryptionSpecificationOverride != null && {
|
|
1187
1188
|
encryptionSpecificationOverride: serializeAws_json1_0EncryptionSpecification(input.encryptionSpecificationOverride, context),
|
|
1188
|
-
})), (input.pointInTimeRecoveryOverride
|
|
1189
|
-
input.pointInTimeRecoveryOverride !== null && {
|
|
1189
|
+
})), (input.pointInTimeRecoveryOverride != null && {
|
|
1190
1190
|
pointInTimeRecoveryOverride: serializeAws_json1_0PointInTimeRecovery(input.pointInTimeRecoveryOverride, context),
|
|
1191
|
-
})), (input.restoreTimestamp
|
|
1192
|
-
input.restoreTimestamp !== null && { restoreTimestamp: Math.round(input.restoreTimestamp.getTime() / 1000) })), (input.sourceKeyspaceName !== undefined &&
|
|
1193
|
-
input.sourceKeyspaceName !== null && { sourceKeyspaceName: input.sourceKeyspaceName })), (input.sourceTableName !== undefined &&
|
|
1194
|
-
input.sourceTableName !== null && { sourceTableName: input.sourceTableName })), (input.tagsOverride !== undefined &&
|
|
1195
|
-
input.tagsOverride !== null && { tagsOverride: serializeAws_json1_0TagList(input.tagsOverride, context) })), (input.targetKeyspaceName !== undefined &&
|
|
1196
|
-
input.targetKeyspaceName !== null && { targetKeyspaceName: input.targetKeyspaceName })), (input.targetTableName !== undefined &&
|
|
1197
|
-
input.targetTableName !== null && { targetTableName: input.targetTableName }));
|
|
1191
|
+
})), (input.restoreTimestamp != null && { restoreTimestamp: Math.round(input.restoreTimestamp.getTime() / 1000) })), (input.sourceKeyspaceName != null && { sourceKeyspaceName: input.sourceKeyspaceName })), (input.sourceTableName != null && { sourceTableName: input.sourceTableName })), (input.tagsOverride != null && { tagsOverride: serializeAws_json1_0TagList(input.tagsOverride, context) })), (input.targetKeyspaceName != null && { targetKeyspaceName: input.targetKeyspaceName })), (input.targetTableName != null && { targetTableName: input.targetTableName }));
|
|
1198
1192
|
};
|
|
1199
1193
|
var serializeAws_json1_0SchemaDefinition = function (input, context) {
|
|
1200
|
-
return __assign(__assign(__assign(__assign({}, (input.allColumns
|
|
1201
|
-
|
|
1202
|
-
|
|
1194
|
+
return __assign(__assign(__assign(__assign({}, (input.allColumns != null && {
|
|
1195
|
+
allColumns: serializeAws_json1_0ColumnDefinitionList(input.allColumns, context),
|
|
1196
|
+
})), (input.clusteringKeys != null && {
|
|
1203
1197
|
clusteringKeys: serializeAws_json1_0ClusteringKeyList(input.clusteringKeys, context),
|
|
1204
|
-
})), (input.partitionKeys
|
|
1205
|
-
input.partitionKeys !== null && {
|
|
1198
|
+
})), (input.partitionKeys != null && {
|
|
1206
1199
|
partitionKeys: serializeAws_json1_0PartitionKeyList(input.partitionKeys, context),
|
|
1207
|
-
})), (input.staticColumns
|
|
1208
|
-
input.staticColumns !== null && {
|
|
1200
|
+
})), (input.staticColumns != null && {
|
|
1209
1201
|
staticColumns: serializeAws_json1_0StaticColumnList(input.staticColumns, context),
|
|
1210
1202
|
}));
|
|
1211
1203
|
};
|
|
1212
1204
|
var serializeAws_json1_0StaticColumn = function (input, context) {
|
|
1213
|
-
return __assign({}, (input.name
|
|
1205
|
+
return __assign({}, (input.name != null && { name: input.name }));
|
|
1214
1206
|
};
|
|
1215
1207
|
var serializeAws_json1_0StaticColumnList = function (input, context) {
|
|
1216
1208
|
return input
|
|
@@ -1223,7 +1215,7 @@ var serializeAws_json1_0StaticColumnList = function (input, context) {
|
|
|
1223
1215
|
});
|
|
1224
1216
|
};
|
|
1225
1217
|
var serializeAws_json1_0Tag = function (input, context) {
|
|
1226
|
-
return __assign(__assign({}, (input.key
|
|
1218
|
+
return __assign(__assign({}, (input.key != null && { key: input.key })), (input.value != null && { value: input.value }));
|
|
1227
1219
|
};
|
|
1228
1220
|
var serializeAws_json1_0TagList = function (input, context) {
|
|
1229
1221
|
return input
|
|
@@ -1236,27 +1228,24 @@ var serializeAws_json1_0TagList = function (input, context) {
|
|
|
1236
1228
|
});
|
|
1237
1229
|
};
|
|
1238
1230
|
var serializeAws_json1_0TagResourceRequest = function (input, context) {
|
|
1239
|
-
return __assign(__assign({}, (input.resourceArn
|
|
1231
|
+
return __assign(__assign({}, (input.resourceArn != null && { resourceArn: input.resourceArn })), (input.tags != null && { tags: serializeAws_json1_0TagList(input.tags, context) }));
|
|
1240
1232
|
};
|
|
1241
1233
|
var serializeAws_json1_0TimeToLive = function (input, context) {
|
|
1242
|
-
return __assign({}, (input.status
|
|
1234
|
+
return __assign({}, (input.status != null && { status: input.status }));
|
|
1243
1235
|
};
|
|
1244
1236
|
var serializeAws_json1_0UntagResourceRequest = function (input, context) {
|
|
1245
|
-
return __assign(__assign({}, (input.resourceArn
|
|
1237
|
+
return __assign(__assign({}, (input.resourceArn != null && { resourceArn: input.resourceArn })), (input.tags != null && { tags: serializeAws_json1_0TagList(input.tags, context) }));
|
|
1246
1238
|
};
|
|
1247
1239
|
var serializeAws_json1_0UpdateTableRequest = function (input, context) {
|
|
1248
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.addColumns
|
|
1249
|
-
|
|
1250
|
-
|
|
1240
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.addColumns != null && {
|
|
1241
|
+
addColumns: serializeAws_json1_0ColumnDefinitionList(input.addColumns, context),
|
|
1242
|
+
})), (input.capacitySpecification != null && {
|
|
1251
1243
|
capacitySpecification: serializeAws_json1_0CapacitySpecification(input.capacitySpecification, context),
|
|
1252
|
-
})), (input.defaultTimeToLive
|
|
1253
|
-
input.defaultTimeToLive !== null && { defaultTimeToLive: input.defaultTimeToLive })), (input.encryptionSpecification !== undefined &&
|
|
1254
|
-
input.encryptionSpecification !== null && {
|
|
1244
|
+
})), (input.defaultTimeToLive != null && { defaultTimeToLive: input.defaultTimeToLive })), (input.encryptionSpecification != null && {
|
|
1255
1245
|
encryptionSpecification: serializeAws_json1_0EncryptionSpecification(input.encryptionSpecification, context),
|
|
1256
|
-
})), (input.keyspaceName
|
|
1257
|
-
input.pointInTimeRecovery !== null && {
|
|
1246
|
+
})), (input.keyspaceName != null && { keyspaceName: input.keyspaceName })), (input.pointInTimeRecovery != null && {
|
|
1258
1247
|
pointInTimeRecovery: serializeAws_json1_0PointInTimeRecovery(input.pointInTimeRecovery, context),
|
|
1259
|
-
})), (input.tableName
|
|
1248
|
+
})), (input.tableName != null && { tableName: input.tableName })), (input.ttl != null && { ttl: serializeAws_json1_0TimeToLive(input.ttl, context) }));
|
|
1260
1249
|
};
|
|
1261
1250
|
var deserializeAws_json1_0AccessDeniedException = function (output, context) {
|
|
1262
1251
|
return {
|
|
@@ -1265,7 +1254,7 @@ var deserializeAws_json1_0AccessDeniedException = function (output, context) {
|
|
|
1265
1254
|
};
|
|
1266
1255
|
var deserializeAws_json1_0CapacitySpecificationSummary = function (output, context) {
|
|
1267
1256
|
return {
|
|
1268
|
-
lastUpdateToPayPerRequestTimestamp: output.lastUpdateToPayPerRequestTimestamp
|
|
1257
|
+
lastUpdateToPayPerRequestTimestamp: output.lastUpdateToPayPerRequestTimestamp != null
|
|
1269
1258
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdateToPayPerRequestTimestamp)))
|
|
1270
1259
|
: undefined,
|
|
1271
1260
|
readCapacityUnits: __expectLong(output.readCapacityUnits),
|
|
@@ -1347,32 +1336,28 @@ var deserializeAws_json1_0GetKeyspaceResponse = function (output, context) {
|
|
|
1347
1336
|
};
|
|
1348
1337
|
var deserializeAws_json1_0GetTableResponse = function (output, context) {
|
|
1349
1338
|
return {
|
|
1350
|
-
capacitySpecification: output.capacitySpecification
|
|
1339
|
+
capacitySpecification: output.capacitySpecification != null
|
|
1351
1340
|
? deserializeAws_json1_0CapacitySpecificationSummary(output.capacitySpecification, context)
|
|
1352
1341
|
: undefined,
|
|
1353
|
-
comment: output.comment
|
|
1354
|
-
|
|
1355
|
-
: undefined,
|
|
1356
|
-
creationTimestamp: output.creationTimestamp !== undefined && output.creationTimestamp !== null
|
|
1342
|
+
comment: output.comment != null ? deserializeAws_json1_0Comment(output.comment, context) : undefined,
|
|
1343
|
+
creationTimestamp: output.creationTimestamp != null
|
|
1357
1344
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTimestamp)))
|
|
1358
1345
|
: undefined,
|
|
1359
1346
|
defaultTimeToLive: __expectInt32(output.defaultTimeToLive),
|
|
1360
|
-
encryptionSpecification: output.encryptionSpecification
|
|
1347
|
+
encryptionSpecification: output.encryptionSpecification != null
|
|
1361
1348
|
? deserializeAws_json1_0EncryptionSpecification(output.encryptionSpecification, context)
|
|
1362
1349
|
: undefined,
|
|
1363
1350
|
keyspaceName: __expectString(output.keyspaceName),
|
|
1364
|
-
pointInTimeRecovery: output.pointInTimeRecovery
|
|
1351
|
+
pointInTimeRecovery: output.pointInTimeRecovery != null
|
|
1365
1352
|
? deserializeAws_json1_0PointInTimeRecoverySummary(output.pointInTimeRecovery, context)
|
|
1366
1353
|
: undefined,
|
|
1367
1354
|
resourceArn: __expectString(output.resourceArn),
|
|
1368
|
-
schemaDefinition: output.schemaDefinition
|
|
1355
|
+
schemaDefinition: output.schemaDefinition != null
|
|
1369
1356
|
? deserializeAws_json1_0SchemaDefinition(output.schemaDefinition, context)
|
|
1370
1357
|
: undefined,
|
|
1371
1358
|
status: __expectString(output.status),
|
|
1372
1359
|
tableName: __expectString(output.tableName),
|
|
1373
|
-
ttl: output.ttl
|
|
1374
|
-
? deserializeAws_json1_0TimeToLive(output.ttl, context)
|
|
1375
|
-
: undefined,
|
|
1360
|
+
ttl: output.ttl != null ? deserializeAws_json1_0TimeToLive(output.ttl, context) : undefined,
|
|
1376
1361
|
};
|
|
1377
1362
|
};
|
|
1378
1363
|
var deserializeAws_json1_0InternalServerException = function (output, context) {
|
|
@@ -1399,26 +1384,20 @@ var deserializeAws_json1_0KeyspaceSummaryList = function (output, context) {
|
|
|
1399
1384
|
};
|
|
1400
1385
|
var deserializeAws_json1_0ListKeyspacesResponse = function (output, context) {
|
|
1401
1386
|
return {
|
|
1402
|
-
keyspaces: output.keyspaces
|
|
1403
|
-
? deserializeAws_json1_0KeyspaceSummaryList(output.keyspaces, context)
|
|
1404
|
-
: undefined,
|
|
1387
|
+
keyspaces: output.keyspaces != null ? deserializeAws_json1_0KeyspaceSummaryList(output.keyspaces, context) : undefined,
|
|
1405
1388
|
nextToken: __expectString(output.nextToken),
|
|
1406
1389
|
};
|
|
1407
1390
|
};
|
|
1408
1391
|
var deserializeAws_json1_0ListTablesResponse = function (output, context) {
|
|
1409
1392
|
return {
|
|
1410
1393
|
nextToken: __expectString(output.nextToken),
|
|
1411
|
-
tables: output.tables
|
|
1412
|
-
? deserializeAws_json1_0TableSummaryList(output.tables, context)
|
|
1413
|
-
: undefined,
|
|
1394
|
+
tables: output.tables != null ? deserializeAws_json1_0TableSummaryList(output.tables, context) : undefined,
|
|
1414
1395
|
};
|
|
1415
1396
|
};
|
|
1416
1397
|
var deserializeAws_json1_0ListTagsForResourceResponse = function (output, context) {
|
|
1417
1398
|
return {
|
|
1418
1399
|
nextToken: __expectString(output.nextToken),
|
|
1419
|
-
tags: output.tags
|
|
1420
|
-
? deserializeAws_json1_0TagList(output.tags, context)
|
|
1421
|
-
: undefined,
|
|
1400
|
+
tags: output.tags != null ? deserializeAws_json1_0TagList(output.tags, context) : undefined,
|
|
1422
1401
|
};
|
|
1423
1402
|
};
|
|
1424
1403
|
var deserializeAws_json1_0PartitionKey = function (output, context) {
|
|
@@ -1439,7 +1418,7 @@ var deserializeAws_json1_0PartitionKeyList = function (output, context) {
|
|
|
1439
1418
|
};
|
|
1440
1419
|
var deserializeAws_json1_0PointInTimeRecoverySummary = function (output, context) {
|
|
1441
1420
|
return {
|
|
1442
|
-
earliestRestorableTimestamp: output.earliestRestorableTimestamp
|
|
1421
|
+
earliestRestorableTimestamp: output.earliestRestorableTimestamp != null
|
|
1443
1422
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.earliestRestorableTimestamp)))
|
|
1444
1423
|
: undefined,
|
|
1445
1424
|
status: __expectString(output.status),
|
|
@@ -1458,18 +1437,12 @@ var deserializeAws_json1_0RestoreTableResponse = function (output, context) {
|
|
|
1458
1437
|
};
|
|
1459
1438
|
var deserializeAws_json1_0SchemaDefinition = function (output, context) {
|
|
1460
1439
|
return {
|
|
1461
|
-
allColumns: output.allColumns
|
|
1462
|
-
|
|
1463
|
-
: undefined,
|
|
1464
|
-
clusteringKeys: output.clusteringKeys !== undefined && output.clusteringKeys !== null
|
|
1440
|
+
allColumns: output.allColumns != null ? deserializeAws_json1_0ColumnDefinitionList(output.allColumns, context) : undefined,
|
|
1441
|
+
clusteringKeys: output.clusteringKeys != null
|
|
1465
1442
|
? deserializeAws_json1_0ClusteringKeyList(output.clusteringKeys, context)
|
|
1466
1443
|
: undefined,
|
|
1467
|
-
partitionKeys: output.partitionKeys
|
|
1468
|
-
|
|
1469
|
-
: undefined,
|
|
1470
|
-
staticColumns: output.staticColumns !== undefined && output.staticColumns !== null
|
|
1471
|
-
? deserializeAws_json1_0StaticColumnList(output.staticColumns, context)
|
|
1472
|
-
: undefined,
|
|
1444
|
+
partitionKeys: output.partitionKeys != null ? deserializeAws_json1_0PartitionKeyList(output.partitionKeys, context) : undefined,
|
|
1445
|
+
staticColumns: output.staticColumns != null ? deserializeAws_json1_0StaticColumnList(output.staticColumns, context) : undefined,
|
|
1473
1446
|
};
|
|
1474
1447
|
};
|
|
1475
1448
|
var deserializeAws_json1_0ServiceQuotaExceededException = function (output, context) {
|
|
@@ -1623,5 +1596,4 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
1623
1596
|
if (data["__type"] !== undefined) {
|
|
1624
1597
|
return sanitizeErrorCode(data["__type"]);
|
|
1625
1598
|
}
|
|
1626
|
-
return "";
|
|
1627
1599
|
};
|