@aws-sdk/client-keyspaces 3.503.1 → 3.507.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/dist-cjs/index.js CHANGED
@@ -398,7 +398,7 @@ var se_UpdateTableCommand = /* @__PURE__ */ __name(async (input, context) => {
398
398
  }, "se_UpdateTableCommand");
399
399
  var de_CreateKeyspaceCommand = /* @__PURE__ */ __name(async (output, context) => {
400
400
  if (output.statusCode >= 300) {
401
- return de_CreateKeyspaceCommandError(output, context);
401
+ return de_CommandError(output, context);
402
402
  }
403
403
  const data = await parseBody(output.body, context);
404
404
  let contents = {};
@@ -409,40 +409,9 @@ var de_CreateKeyspaceCommand = /* @__PURE__ */ __name(async (output, context) =>
409
409
  };
410
410
  return response;
411
411
  }, "de_CreateKeyspaceCommand");
412
- var de_CreateKeyspaceCommandError = /* @__PURE__ */ __name(async (output, context) => {
413
- const parsedOutput = {
414
- ...output,
415
- body: await parseErrorBody(output.body, context)
416
- };
417
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
418
- switch (errorCode) {
419
- case "AccessDeniedException":
420
- case "com.amazonaws.keyspaces#AccessDeniedException":
421
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
422
- case "ConflictException":
423
- case "com.amazonaws.keyspaces#ConflictException":
424
- throw await de_ConflictExceptionRes(parsedOutput, context);
425
- case "InternalServerException":
426
- case "com.amazonaws.keyspaces#InternalServerException":
427
- throw await de_InternalServerExceptionRes(parsedOutput, context);
428
- case "ServiceQuotaExceededException":
429
- case "com.amazonaws.keyspaces#ServiceQuotaExceededException":
430
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
431
- case "ValidationException":
432
- case "com.amazonaws.keyspaces#ValidationException":
433
- throw await de_ValidationExceptionRes(parsedOutput, context);
434
- default:
435
- const parsedBody = parsedOutput.body;
436
- return throwDefaultError({
437
- output,
438
- parsedBody,
439
- errorCode
440
- });
441
- }
442
- }, "de_CreateKeyspaceCommandError");
443
412
  var de_CreateTableCommand = /* @__PURE__ */ __name(async (output, context) => {
444
413
  if (output.statusCode >= 300) {
445
- return de_CreateTableCommandError(output, context);
414
+ return de_CommandError(output, context);
446
415
  }
447
416
  const data = await parseBody(output.body, context);
448
417
  let contents = {};
@@ -453,43 +422,9 @@ var de_CreateTableCommand = /* @__PURE__ */ __name(async (output, context) => {
453
422
  };
454
423
  return response;
455
424
  }, "de_CreateTableCommand");
456
- var de_CreateTableCommandError = /* @__PURE__ */ __name(async (output, context) => {
457
- const parsedOutput = {
458
- ...output,
459
- body: await parseErrorBody(output.body, context)
460
- };
461
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
462
- switch (errorCode) {
463
- case "AccessDeniedException":
464
- case "com.amazonaws.keyspaces#AccessDeniedException":
465
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
466
- case "ConflictException":
467
- case "com.amazonaws.keyspaces#ConflictException":
468
- throw await de_ConflictExceptionRes(parsedOutput, context);
469
- case "InternalServerException":
470
- case "com.amazonaws.keyspaces#InternalServerException":
471
- throw await de_InternalServerExceptionRes(parsedOutput, context);
472
- case "ResourceNotFoundException":
473
- case "com.amazonaws.keyspaces#ResourceNotFoundException":
474
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
475
- case "ServiceQuotaExceededException":
476
- case "com.amazonaws.keyspaces#ServiceQuotaExceededException":
477
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
478
- case "ValidationException":
479
- case "com.amazonaws.keyspaces#ValidationException":
480
- throw await de_ValidationExceptionRes(parsedOutput, context);
481
- default:
482
- const parsedBody = parsedOutput.body;
483
- return throwDefaultError({
484
- output,
485
- parsedBody,
486
- errorCode
487
- });
488
- }
489
- }, "de_CreateTableCommandError");
490
425
  var de_DeleteKeyspaceCommand = /* @__PURE__ */ __name(async (output, context) => {
491
426
  if (output.statusCode >= 300) {
492
- return de_DeleteKeyspaceCommandError(output, context);
427
+ return de_CommandError(output, context);
493
428
  }
494
429
  const data = await parseBody(output.body, context);
495
430
  let contents = {};
@@ -500,43 +435,9 @@ var de_DeleteKeyspaceCommand = /* @__PURE__ */ __name(async (output, context) =>
500
435
  };
501
436
  return response;
502
437
  }, "de_DeleteKeyspaceCommand");
503
- var de_DeleteKeyspaceCommandError = /* @__PURE__ */ __name(async (output, context) => {
504
- const parsedOutput = {
505
- ...output,
506
- body: await parseErrorBody(output.body, context)
507
- };
508
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
509
- switch (errorCode) {
510
- case "AccessDeniedException":
511
- case "com.amazonaws.keyspaces#AccessDeniedException":
512
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
513
- case "ConflictException":
514
- case "com.amazonaws.keyspaces#ConflictException":
515
- throw await de_ConflictExceptionRes(parsedOutput, context);
516
- case "InternalServerException":
517
- case "com.amazonaws.keyspaces#InternalServerException":
518
- throw await de_InternalServerExceptionRes(parsedOutput, context);
519
- case "ResourceNotFoundException":
520
- case "com.amazonaws.keyspaces#ResourceNotFoundException":
521
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
522
- case "ServiceQuotaExceededException":
523
- case "com.amazonaws.keyspaces#ServiceQuotaExceededException":
524
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
525
- case "ValidationException":
526
- case "com.amazonaws.keyspaces#ValidationException":
527
- throw await de_ValidationExceptionRes(parsedOutput, context);
528
- default:
529
- const parsedBody = parsedOutput.body;
530
- return throwDefaultError({
531
- output,
532
- parsedBody,
533
- errorCode
534
- });
535
- }
536
- }, "de_DeleteKeyspaceCommandError");
537
438
  var de_DeleteTableCommand = /* @__PURE__ */ __name(async (output, context) => {
538
439
  if (output.statusCode >= 300) {
539
- return de_DeleteTableCommandError(output, context);
440
+ return de_CommandError(output, context);
540
441
  }
541
442
  const data = await parseBody(output.body, context);
542
443
  let contents = {};
@@ -547,43 +448,9 @@ var de_DeleteTableCommand = /* @__PURE__ */ __name(async (output, context) => {
547
448
  };
548
449
  return response;
549
450
  }, "de_DeleteTableCommand");
550
- var de_DeleteTableCommandError = /* @__PURE__ */ __name(async (output, context) => {
551
- const parsedOutput = {
552
- ...output,
553
- body: await parseErrorBody(output.body, context)
554
- };
555
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
556
- switch (errorCode) {
557
- case "AccessDeniedException":
558
- case "com.amazonaws.keyspaces#AccessDeniedException":
559
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
560
- case "ConflictException":
561
- case "com.amazonaws.keyspaces#ConflictException":
562
- throw await de_ConflictExceptionRes(parsedOutput, context);
563
- case "InternalServerException":
564
- case "com.amazonaws.keyspaces#InternalServerException":
565
- throw await de_InternalServerExceptionRes(parsedOutput, context);
566
- case "ResourceNotFoundException":
567
- case "com.amazonaws.keyspaces#ResourceNotFoundException":
568
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
569
- case "ServiceQuotaExceededException":
570
- case "com.amazonaws.keyspaces#ServiceQuotaExceededException":
571
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
572
- case "ValidationException":
573
- case "com.amazonaws.keyspaces#ValidationException":
574
- throw await de_ValidationExceptionRes(parsedOutput, context);
575
- default:
576
- const parsedBody = parsedOutput.body;
577
- return throwDefaultError({
578
- output,
579
- parsedBody,
580
- errorCode
581
- });
582
- }
583
- }, "de_DeleteTableCommandError");
584
451
  var de_GetKeyspaceCommand = /* @__PURE__ */ __name(async (output, context) => {
585
452
  if (output.statusCode >= 300) {
586
- return de_GetKeyspaceCommandError(output, context);
453
+ return de_CommandError(output, context);
587
454
  }
588
455
  const data = await parseBody(output.body, context);
589
456
  let contents = {};
@@ -594,40 +461,9 @@ var de_GetKeyspaceCommand = /* @__PURE__ */ __name(async (output, context) => {
594
461
  };
595
462
  return response;
596
463
  }, "de_GetKeyspaceCommand");
597
- var de_GetKeyspaceCommandError = /* @__PURE__ */ __name(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 de_AccessDeniedExceptionRes(parsedOutput, context);
607
- case "InternalServerException":
608
- case "com.amazonaws.keyspaces#InternalServerException":
609
- throw await de_InternalServerExceptionRes(parsedOutput, context);
610
- case "ResourceNotFoundException":
611
- case "com.amazonaws.keyspaces#ResourceNotFoundException":
612
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
613
- case "ServiceQuotaExceededException":
614
- case "com.amazonaws.keyspaces#ServiceQuotaExceededException":
615
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
616
- case "ValidationException":
617
- case "com.amazonaws.keyspaces#ValidationException":
618
- throw await de_ValidationExceptionRes(parsedOutput, context);
619
- default:
620
- const parsedBody = parsedOutput.body;
621
- return throwDefaultError({
622
- output,
623
- parsedBody,
624
- errorCode
625
- });
626
- }
627
- }, "de_GetKeyspaceCommandError");
628
464
  var de_GetTableCommand = /* @__PURE__ */ __name(async (output, context) => {
629
465
  if (output.statusCode >= 300) {
630
- return de_GetTableCommandError(output, context);
466
+ return de_CommandError(output, context);
631
467
  }
632
468
  const data = await parseBody(output.body, context);
633
469
  let contents = {};
@@ -638,40 +474,9 @@ var de_GetTableCommand = /* @__PURE__ */ __name(async (output, context) => {
638
474
  };
639
475
  return response;
640
476
  }, "de_GetTableCommand");
641
- var de_GetTableCommandError = /* @__PURE__ */ __name(async (output, context) => {
642
- const parsedOutput = {
643
- ...output,
644
- body: await parseErrorBody(output.body, context)
645
- };
646
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
647
- switch (errorCode) {
648
- case "AccessDeniedException":
649
- case "com.amazonaws.keyspaces#AccessDeniedException":
650
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
651
- case "InternalServerException":
652
- case "com.amazonaws.keyspaces#InternalServerException":
653
- throw await de_InternalServerExceptionRes(parsedOutput, context);
654
- case "ResourceNotFoundException":
655
- case "com.amazonaws.keyspaces#ResourceNotFoundException":
656
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
657
- case "ServiceQuotaExceededException":
658
- case "com.amazonaws.keyspaces#ServiceQuotaExceededException":
659
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
660
- case "ValidationException":
661
- case "com.amazonaws.keyspaces#ValidationException":
662
- throw await de_ValidationExceptionRes(parsedOutput, context);
663
- default:
664
- const parsedBody = parsedOutput.body;
665
- return throwDefaultError({
666
- output,
667
- parsedBody,
668
- errorCode
669
- });
670
- }
671
- }, "de_GetTableCommandError");
672
477
  var de_GetTableAutoScalingSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
673
478
  if (output.statusCode >= 300) {
674
- return de_GetTableAutoScalingSettingsCommandError(output, context);
479
+ return de_CommandError(output, context);
675
480
  }
676
481
  const data = await parseBody(output.body, context);
677
482
  let contents = {};
@@ -682,40 +487,9 @@ var de_GetTableAutoScalingSettingsCommand = /* @__PURE__ */ __name(async (output
682
487
  };
683
488
  return response;
684
489
  }, "de_GetTableAutoScalingSettingsCommand");
685
- var de_GetTableAutoScalingSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
686
- const parsedOutput = {
687
- ...output,
688
- body: await parseErrorBody(output.body, context)
689
- };
690
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
691
- switch (errorCode) {
692
- case "AccessDeniedException":
693
- case "com.amazonaws.keyspaces#AccessDeniedException":
694
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
695
- case "InternalServerException":
696
- case "com.amazonaws.keyspaces#InternalServerException":
697
- throw await de_InternalServerExceptionRes(parsedOutput, context);
698
- case "ResourceNotFoundException":
699
- case "com.amazonaws.keyspaces#ResourceNotFoundException":
700
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
701
- case "ServiceQuotaExceededException":
702
- case "com.amazonaws.keyspaces#ServiceQuotaExceededException":
703
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
704
- case "ValidationException":
705
- case "com.amazonaws.keyspaces#ValidationException":
706
- throw await de_ValidationExceptionRes(parsedOutput, context);
707
- default:
708
- const parsedBody = parsedOutput.body;
709
- return throwDefaultError({
710
- output,
711
- parsedBody,
712
- errorCode
713
- });
714
- }
715
- }, "de_GetTableAutoScalingSettingsCommandError");
716
490
  var de_ListKeyspacesCommand = /* @__PURE__ */ __name(async (output, context) => {
717
491
  if (output.statusCode >= 300) {
718
- return de_ListKeyspacesCommandError(output, context);
492
+ return de_CommandError(output, context);
719
493
  }
720
494
  const data = await parseBody(output.body, context);
721
495
  let contents = {};
@@ -726,40 +500,9 @@ var de_ListKeyspacesCommand = /* @__PURE__ */ __name(async (output, context) =>
726
500
  };
727
501
  return response;
728
502
  }, "de_ListKeyspacesCommand");
729
- var de_ListKeyspacesCommandError = /* @__PURE__ */ __name(async (output, context) => {
730
- const parsedOutput = {
731
- ...output,
732
- body: await parseErrorBody(output.body, context)
733
- };
734
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
735
- switch (errorCode) {
736
- case "AccessDeniedException":
737
- case "com.amazonaws.keyspaces#AccessDeniedException":
738
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
739
- case "InternalServerException":
740
- case "com.amazonaws.keyspaces#InternalServerException":
741
- throw await de_InternalServerExceptionRes(parsedOutput, context);
742
- case "ResourceNotFoundException":
743
- case "com.amazonaws.keyspaces#ResourceNotFoundException":
744
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
745
- case "ServiceQuotaExceededException":
746
- case "com.amazonaws.keyspaces#ServiceQuotaExceededException":
747
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
748
- case "ValidationException":
749
- case "com.amazonaws.keyspaces#ValidationException":
750
- throw await de_ValidationExceptionRes(parsedOutput, context);
751
- default:
752
- const parsedBody = parsedOutput.body;
753
- return throwDefaultError({
754
- output,
755
- parsedBody,
756
- errorCode
757
- });
758
- }
759
- }, "de_ListKeyspacesCommandError");
760
503
  var de_ListTablesCommand = /* @__PURE__ */ __name(async (output, context) => {
761
504
  if (output.statusCode >= 300) {
762
- return de_ListTablesCommandError(output, context);
505
+ return de_CommandError(output, context);
763
506
  }
764
507
  const data = await parseBody(output.body, context);
765
508
  let contents = {};
@@ -770,40 +513,9 @@ var de_ListTablesCommand = /* @__PURE__ */ __name(async (output, context) => {
770
513
  };
771
514
  return response;
772
515
  }, "de_ListTablesCommand");
773
- var de_ListTablesCommandError = /* @__PURE__ */ __name(async (output, context) => {
774
- const parsedOutput = {
775
- ...output,
776
- body: await parseErrorBody(output.body, context)
777
- };
778
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
779
- switch (errorCode) {
780
- case "AccessDeniedException":
781
- case "com.amazonaws.keyspaces#AccessDeniedException":
782
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
783
- case "InternalServerException":
784
- case "com.amazonaws.keyspaces#InternalServerException":
785
- throw await de_InternalServerExceptionRes(parsedOutput, context);
786
- case "ResourceNotFoundException":
787
- case "com.amazonaws.keyspaces#ResourceNotFoundException":
788
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
789
- case "ServiceQuotaExceededException":
790
- case "com.amazonaws.keyspaces#ServiceQuotaExceededException":
791
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
792
- case "ValidationException":
793
- case "com.amazonaws.keyspaces#ValidationException":
794
- throw await de_ValidationExceptionRes(parsedOutput, context);
795
- default:
796
- const parsedBody = parsedOutput.body;
797
- return throwDefaultError({
798
- output,
799
- parsedBody,
800
- errorCode
801
- });
802
- }
803
- }, "de_ListTablesCommandError");
804
516
  var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
805
517
  if (output.statusCode >= 300) {
806
- return de_ListTagsForResourceCommandError(output, context);
518
+ return de_CommandError(output, context);
807
519
  }
808
520
  const data = await parseBody(output.body, context);
809
521
  let contents = {};
@@ -814,40 +526,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
814
526
  };
815
527
  return response;
816
528
  }, "de_ListTagsForResourceCommand");
817
- var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
818
- const parsedOutput = {
819
- ...output,
820
- body: await parseErrorBody(output.body, context)
821
- };
822
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
823
- switch (errorCode) {
824
- case "AccessDeniedException":
825
- case "com.amazonaws.keyspaces#AccessDeniedException":
826
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
827
- case "InternalServerException":
828
- case "com.amazonaws.keyspaces#InternalServerException":
829
- throw await de_InternalServerExceptionRes(parsedOutput, context);
830
- case "ResourceNotFoundException":
831
- case "com.amazonaws.keyspaces#ResourceNotFoundException":
832
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
833
- case "ServiceQuotaExceededException":
834
- case "com.amazonaws.keyspaces#ServiceQuotaExceededException":
835
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
836
- case "ValidationException":
837
- case "com.amazonaws.keyspaces#ValidationException":
838
- throw await de_ValidationExceptionRes(parsedOutput, context);
839
- default:
840
- const parsedBody = parsedOutput.body;
841
- return throwDefaultError({
842
- output,
843
- parsedBody,
844
- errorCode
845
- });
846
- }
847
- }, "de_ListTagsForResourceCommandError");
848
529
  var de_RestoreTableCommand = /* @__PURE__ */ __name(async (output, context) => {
849
530
  if (output.statusCode >= 300) {
850
- return de_RestoreTableCommandError(output, context);
531
+ return de_CommandError(output, context);
851
532
  }
852
533
  const data = await parseBody(output.body, context);
853
534
  let contents = {};
@@ -858,43 +539,9 @@ var de_RestoreTableCommand = /* @__PURE__ */ __name(async (output, context) => {
858
539
  };
859
540
  return response;
860
541
  }, "de_RestoreTableCommand");
861
- var de_RestoreTableCommandError = /* @__PURE__ */ __name(async (output, context) => {
862
- const parsedOutput = {
863
- ...output,
864
- body: await parseErrorBody(output.body, context)
865
- };
866
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
867
- switch (errorCode) {
868
- case "AccessDeniedException":
869
- case "com.amazonaws.keyspaces#AccessDeniedException":
870
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
871
- case "ConflictException":
872
- case "com.amazonaws.keyspaces#ConflictException":
873
- throw await de_ConflictExceptionRes(parsedOutput, context);
874
- case "InternalServerException":
875
- case "com.amazonaws.keyspaces#InternalServerException":
876
- throw await de_InternalServerExceptionRes(parsedOutput, context);
877
- case "ResourceNotFoundException":
878
- case "com.amazonaws.keyspaces#ResourceNotFoundException":
879
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
880
- case "ServiceQuotaExceededException":
881
- case "com.amazonaws.keyspaces#ServiceQuotaExceededException":
882
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
883
- case "ValidationException":
884
- case "com.amazonaws.keyspaces#ValidationException":
885
- throw await de_ValidationExceptionRes(parsedOutput, context);
886
- default:
887
- const parsedBody = parsedOutput.body;
888
- return throwDefaultError({
889
- output,
890
- parsedBody,
891
- errorCode
892
- });
893
- }
894
- }, "de_RestoreTableCommandError");
895
542
  var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
896
543
  if (output.statusCode >= 300) {
897
- return de_TagResourceCommandError(output, context);
544
+ return de_CommandError(output, context);
898
545
  }
899
546
  const data = await parseBody(output.body, context);
900
547
  let contents = {};
@@ -905,40 +552,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
905
552
  };
906
553
  return response;
907
554
  }, "de_TagResourceCommand");
908
- var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
909
- const parsedOutput = {
910
- ...output,
911
- body: await parseErrorBody(output.body, context)
912
- };
913
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
914
- switch (errorCode) {
915
- case "AccessDeniedException":
916
- case "com.amazonaws.keyspaces#AccessDeniedException":
917
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
918
- case "InternalServerException":
919
- case "com.amazonaws.keyspaces#InternalServerException":
920
- throw await de_InternalServerExceptionRes(parsedOutput, context);
921
- case "ResourceNotFoundException":
922
- case "com.amazonaws.keyspaces#ResourceNotFoundException":
923
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
924
- case "ServiceQuotaExceededException":
925
- case "com.amazonaws.keyspaces#ServiceQuotaExceededException":
926
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
927
- case "ValidationException":
928
- case "com.amazonaws.keyspaces#ValidationException":
929
- throw await de_ValidationExceptionRes(parsedOutput, context);
930
- default:
931
- const parsedBody = parsedOutput.body;
932
- return throwDefaultError({
933
- output,
934
- parsedBody,
935
- errorCode
936
- });
937
- }
938
- }, "de_TagResourceCommandError");
939
555
  var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
940
556
  if (output.statusCode >= 300) {
941
- return de_UntagResourceCommandError(output, context);
557
+ return de_CommandError(output, context);
942
558
  }
943
559
  const data = await parseBody(output.body, context);
944
560
  let contents = {};
@@ -949,43 +565,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
949
565
  };
950
566
  return response;
951
567
  }, "de_UntagResourceCommand");
952
- var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
953
- const parsedOutput = {
954
- ...output,
955
- body: await parseErrorBody(output.body, context)
956
- };
957
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
958
- switch (errorCode) {
959
- case "AccessDeniedException":
960
- case "com.amazonaws.keyspaces#AccessDeniedException":
961
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
962
- case "ConflictException":
963
- case "com.amazonaws.keyspaces#ConflictException":
964
- throw await de_ConflictExceptionRes(parsedOutput, context);
965
- case "InternalServerException":
966
- case "com.amazonaws.keyspaces#InternalServerException":
967
- throw await de_InternalServerExceptionRes(parsedOutput, context);
968
- case "ResourceNotFoundException":
969
- case "com.amazonaws.keyspaces#ResourceNotFoundException":
970
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
971
- case "ServiceQuotaExceededException":
972
- case "com.amazonaws.keyspaces#ServiceQuotaExceededException":
973
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
974
- case "ValidationException":
975
- case "com.amazonaws.keyspaces#ValidationException":
976
- throw await de_ValidationExceptionRes(parsedOutput, context);
977
- default:
978
- const parsedBody = parsedOutput.body;
979
- return throwDefaultError({
980
- output,
981
- parsedBody,
982
- errorCode
983
- });
984
- }
985
- }, "de_UntagResourceCommandError");
986
568
  var de_UpdateTableCommand = /* @__PURE__ */ __name(async (output, context) => {
987
569
  if (output.statusCode >= 300) {
988
- return de_UpdateTableCommandError(output, context);
570
+ return de_CommandError(output, context);
989
571
  }
990
572
  const data = await parseBody(output.body, context);
991
573
  let contents = {};
@@ -996,7 +578,7 @@ var de_UpdateTableCommand = /* @__PURE__ */ __name(async (output, context) => {
996
578
  };
997
579
  return response;
998
580
  }, "de_UpdateTableCommand");
999
- var de_UpdateTableCommandError = /* @__PURE__ */ __name(async (output, context) => {
581
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1000
582
  const parsedOutput = {
1001
583
  ...output,
1002
584
  body: await parseErrorBody(output.body, context)
@@ -1012,15 +594,15 @@ var de_UpdateTableCommandError = /* @__PURE__ */ __name(async (output, context)
1012
594
  case "InternalServerException":
1013
595
  case "com.amazonaws.keyspaces#InternalServerException":
1014
596
  throw await de_InternalServerExceptionRes(parsedOutput, context);
1015
- case "ResourceNotFoundException":
1016
- case "com.amazonaws.keyspaces#ResourceNotFoundException":
1017
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1018
597
  case "ServiceQuotaExceededException":
1019
598
  case "com.amazonaws.keyspaces#ServiceQuotaExceededException":
1020
599
  throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1021
600
  case "ValidationException":
1022
601
  case "com.amazonaws.keyspaces#ValidationException":
1023
602
  throw await de_ValidationExceptionRes(parsedOutput, context);
603
+ case "ResourceNotFoundException":
604
+ case "com.amazonaws.keyspaces#ResourceNotFoundException":
605
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1024
606
  default:
1025
607
  const parsedBody = parsedOutput.body;
1026
608
  return throwDefaultError({
@@ -1029,7 +611,7 @@ var de_UpdateTableCommandError = /* @__PURE__ */ __name(async (output, context)
1029
611
  errorCode
1030
612
  });
1031
613
  }
1032
- }, "de_UpdateTableCommandError");
614
+ }, "de_CommandError");
1033
615
  var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1034
616
  const body = parsedOutput.body;
1035
617
  const deserialized = (0, import_smithy_client._json)(body);
@@ -88,7 +88,7 @@ export const se_UpdateTableCommand = async (input, context) => {
88
88
  };
89
89
  export const de_CreateKeyspaceCommand = async (output, context) => {
90
90
  if (output.statusCode >= 300) {
91
- return de_CreateKeyspaceCommandError(output, context);
91
+ return de_CommandError(output, context);
92
92
  }
93
93
  const data = await parseBody(output.body, context);
94
94
  let contents = {};
@@ -99,40 +99,9 @@ export const de_CreateKeyspaceCommand = async (output, context) => {
99
99
  };
100
100
  return response;
101
101
  };
102
- const de_CreateKeyspaceCommandError = async (output, context) => {
103
- const parsedOutput = {
104
- ...output,
105
- body: await parseErrorBody(output.body, context),
106
- };
107
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
108
- switch (errorCode) {
109
- case "AccessDeniedException":
110
- case "com.amazonaws.keyspaces#AccessDeniedException":
111
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
112
- case "ConflictException":
113
- case "com.amazonaws.keyspaces#ConflictException":
114
- throw await de_ConflictExceptionRes(parsedOutput, context);
115
- case "InternalServerException":
116
- case "com.amazonaws.keyspaces#InternalServerException":
117
- throw await de_InternalServerExceptionRes(parsedOutput, context);
118
- case "ServiceQuotaExceededException":
119
- case "com.amazonaws.keyspaces#ServiceQuotaExceededException":
120
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
121
- case "ValidationException":
122
- case "com.amazonaws.keyspaces#ValidationException":
123
- throw await de_ValidationExceptionRes(parsedOutput, context);
124
- default:
125
- const parsedBody = parsedOutput.body;
126
- return throwDefaultError({
127
- output,
128
- parsedBody,
129
- errorCode,
130
- });
131
- }
132
- };
133
102
  export const de_CreateTableCommand = async (output, context) => {
134
103
  if (output.statusCode >= 300) {
135
- return de_CreateTableCommandError(output, context);
104
+ return de_CommandError(output, context);
136
105
  }
137
106
  const data = await parseBody(output.body, context);
138
107
  let contents = {};
@@ -143,43 +112,9 @@ export const de_CreateTableCommand = async (output, context) => {
143
112
  };
144
113
  return response;
145
114
  };
146
- const de_CreateTableCommandError = async (output, context) => {
147
- const parsedOutput = {
148
- ...output,
149
- body: await parseErrorBody(output.body, context),
150
- };
151
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
152
- switch (errorCode) {
153
- case "AccessDeniedException":
154
- case "com.amazonaws.keyspaces#AccessDeniedException":
155
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
156
- case "ConflictException":
157
- case "com.amazonaws.keyspaces#ConflictException":
158
- throw await de_ConflictExceptionRes(parsedOutput, context);
159
- case "InternalServerException":
160
- case "com.amazonaws.keyspaces#InternalServerException":
161
- throw await de_InternalServerExceptionRes(parsedOutput, context);
162
- case "ResourceNotFoundException":
163
- case "com.amazonaws.keyspaces#ResourceNotFoundException":
164
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
165
- case "ServiceQuotaExceededException":
166
- case "com.amazonaws.keyspaces#ServiceQuotaExceededException":
167
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
168
- case "ValidationException":
169
- case "com.amazonaws.keyspaces#ValidationException":
170
- throw await de_ValidationExceptionRes(parsedOutput, context);
171
- default:
172
- const parsedBody = parsedOutput.body;
173
- return throwDefaultError({
174
- output,
175
- parsedBody,
176
- errorCode,
177
- });
178
- }
179
- };
180
115
  export const de_DeleteKeyspaceCommand = async (output, context) => {
181
116
  if (output.statusCode >= 300) {
182
- return de_DeleteKeyspaceCommandError(output, context);
117
+ return de_CommandError(output, context);
183
118
  }
184
119
  const data = await parseBody(output.body, context);
185
120
  let contents = {};
@@ -190,43 +125,9 @@ export const de_DeleteKeyspaceCommand = async (output, context) => {
190
125
  };
191
126
  return response;
192
127
  };
193
- const de_DeleteKeyspaceCommandError = async (output, context) => {
194
- const parsedOutput = {
195
- ...output,
196
- body: await parseErrorBody(output.body, context),
197
- };
198
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
199
- switch (errorCode) {
200
- case "AccessDeniedException":
201
- case "com.amazonaws.keyspaces#AccessDeniedException":
202
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
203
- case "ConflictException":
204
- case "com.amazonaws.keyspaces#ConflictException":
205
- throw await de_ConflictExceptionRes(parsedOutput, context);
206
- case "InternalServerException":
207
- case "com.amazonaws.keyspaces#InternalServerException":
208
- throw await de_InternalServerExceptionRes(parsedOutput, context);
209
- case "ResourceNotFoundException":
210
- case "com.amazonaws.keyspaces#ResourceNotFoundException":
211
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
212
- case "ServiceQuotaExceededException":
213
- case "com.amazonaws.keyspaces#ServiceQuotaExceededException":
214
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
215
- case "ValidationException":
216
- case "com.amazonaws.keyspaces#ValidationException":
217
- throw await de_ValidationExceptionRes(parsedOutput, context);
218
- default:
219
- const parsedBody = parsedOutput.body;
220
- return throwDefaultError({
221
- output,
222
- parsedBody,
223
- errorCode,
224
- });
225
- }
226
- };
227
128
  export const de_DeleteTableCommand = async (output, context) => {
228
129
  if (output.statusCode >= 300) {
229
- return de_DeleteTableCommandError(output, context);
130
+ return de_CommandError(output, context);
230
131
  }
231
132
  const data = await parseBody(output.body, context);
232
133
  let contents = {};
@@ -237,43 +138,9 @@ export const de_DeleteTableCommand = async (output, context) => {
237
138
  };
238
139
  return response;
239
140
  };
240
- const de_DeleteTableCommandError = async (output, context) => {
241
- const parsedOutput = {
242
- ...output,
243
- body: await parseErrorBody(output.body, context),
244
- };
245
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
246
- switch (errorCode) {
247
- case "AccessDeniedException":
248
- case "com.amazonaws.keyspaces#AccessDeniedException":
249
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
250
- case "ConflictException":
251
- case "com.amazonaws.keyspaces#ConflictException":
252
- throw await de_ConflictExceptionRes(parsedOutput, context);
253
- case "InternalServerException":
254
- case "com.amazonaws.keyspaces#InternalServerException":
255
- throw await de_InternalServerExceptionRes(parsedOutput, context);
256
- case "ResourceNotFoundException":
257
- case "com.amazonaws.keyspaces#ResourceNotFoundException":
258
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
259
- case "ServiceQuotaExceededException":
260
- case "com.amazonaws.keyspaces#ServiceQuotaExceededException":
261
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
262
- case "ValidationException":
263
- case "com.amazonaws.keyspaces#ValidationException":
264
- throw await de_ValidationExceptionRes(parsedOutput, context);
265
- default:
266
- const parsedBody = parsedOutput.body;
267
- return throwDefaultError({
268
- output,
269
- parsedBody,
270
- errorCode,
271
- });
272
- }
273
- };
274
141
  export const de_GetKeyspaceCommand = async (output, context) => {
275
142
  if (output.statusCode >= 300) {
276
- return de_GetKeyspaceCommandError(output, context);
143
+ return de_CommandError(output, context);
277
144
  }
278
145
  const data = await parseBody(output.body, context);
279
146
  let contents = {};
@@ -284,40 +151,9 @@ export const de_GetKeyspaceCommand = async (output, context) => {
284
151
  };
285
152
  return response;
286
153
  };
287
- const de_GetKeyspaceCommandError = async (output, context) => {
288
- const parsedOutput = {
289
- ...output,
290
- body: await parseErrorBody(output.body, context),
291
- };
292
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
293
- switch (errorCode) {
294
- case "AccessDeniedException":
295
- case "com.amazonaws.keyspaces#AccessDeniedException":
296
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
297
- case "InternalServerException":
298
- case "com.amazonaws.keyspaces#InternalServerException":
299
- throw await de_InternalServerExceptionRes(parsedOutput, context);
300
- case "ResourceNotFoundException":
301
- case "com.amazonaws.keyspaces#ResourceNotFoundException":
302
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
303
- case "ServiceQuotaExceededException":
304
- case "com.amazonaws.keyspaces#ServiceQuotaExceededException":
305
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
306
- case "ValidationException":
307
- case "com.amazonaws.keyspaces#ValidationException":
308
- throw await de_ValidationExceptionRes(parsedOutput, context);
309
- default:
310
- const parsedBody = parsedOutput.body;
311
- return throwDefaultError({
312
- output,
313
- parsedBody,
314
- errorCode,
315
- });
316
- }
317
- };
318
154
  export const de_GetTableCommand = async (output, context) => {
319
155
  if (output.statusCode >= 300) {
320
- return de_GetTableCommandError(output, context);
156
+ return de_CommandError(output, context);
321
157
  }
322
158
  const data = await parseBody(output.body, context);
323
159
  let contents = {};
@@ -328,40 +164,9 @@ export const de_GetTableCommand = async (output, context) => {
328
164
  };
329
165
  return response;
330
166
  };
331
- const de_GetTableCommandError = async (output, context) => {
332
- const parsedOutput = {
333
- ...output,
334
- body: await parseErrorBody(output.body, context),
335
- };
336
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
337
- switch (errorCode) {
338
- case "AccessDeniedException":
339
- case "com.amazonaws.keyspaces#AccessDeniedException":
340
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
341
- case "InternalServerException":
342
- case "com.amazonaws.keyspaces#InternalServerException":
343
- throw await de_InternalServerExceptionRes(parsedOutput, context);
344
- case "ResourceNotFoundException":
345
- case "com.amazonaws.keyspaces#ResourceNotFoundException":
346
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
347
- case "ServiceQuotaExceededException":
348
- case "com.amazonaws.keyspaces#ServiceQuotaExceededException":
349
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
350
- case "ValidationException":
351
- case "com.amazonaws.keyspaces#ValidationException":
352
- throw await de_ValidationExceptionRes(parsedOutput, context);
353
- default:
354
- const parsedBody = parsedOutput.body;
355
- return throwDefaultError({
356
- output,
357
- parsedBody,
358
- errorCode,
359
- });
360
- }
361
- };
362
167
  export const de_GetTableAutoScalingSettingsCommand = async (output, context) => {
363
168
  if (output.statusCode >= 300) {
364
- return de_GetTableAutoScalingSettingsCommandError(output, context);
169
+ return de_CommandError(output, context);
365
170
  }
366
171
  const data = await parseBody(output.body, context);
367
172
  let contents = {};
@@ -372,40 +177,9 @@ export const de_GetTableAutoScalingSettingsCommand = async (output, context) =>
372
177
  };
373
178
  return response;
374
179
  };
375
- const de_GetTableAutoScalingSettingsCommandError = async (output, context) => {
376
- const parsedOutput = {
377
- ...output,
378
- body: await parseErrorBody(output.body, context),
379
- };
380
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
381
- switch (errorCode) {
382
- case "AccessDeniedException":
383
- case "com.amazonaws.keyspaces#AccessDeniedException":
384
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
385
- case "InternalServerException":
386
- case "com.amazonaws.keyspaces#InternalServerException":
387
- throw await de_InternalServerExceptionRes(parsedOutput, context);
388
- case "ResourceNotFoundException":
389
- case "com.amazonaws.keyspaces#ResourceNotFoundException":
390
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
391
- case "ServiceQuotaExceededException":
392
- case "com.amazonaws.keyspaces#ServiceQuotaExceededException":
393
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
394
- case "ValidationException":
395
- case "com.amazonaws.keyspaces#ValidationException":
396
- throw await de_ValidationExceptionRes(parsedOutput, context);
397
- default:
398
- const parsedBody = parsedOutput.body;
399
- return throwDefaultError({
400
- output,
401
- parsedBody,
402
- errorCode,
403
- });
404
- }
405
- };
406
180
  export const de_ListKeyspacesCommand = async (output, context) => {
407
181
  if (output.statusCode >= 300) {
408
- return de_ListKeyspacesCommandError(output, context);
182
+ return de_CommandError(output, context);
409
183
  }
410
184
  const data = await parseBody(output.body, context);
411
185
  let contents = {};
@@ -416,40 +190,9 @@ export const de_ListKeyspacesCommand = async (output, context) => {
416
190
  };
417
191
  return response;
418
192
  };
419
- const de_ListKeyspacesCommandError = async (output, context) => {
420
- const parsedOutput = {
421
- ...output,
422
- body: await parseErrorBody(output.body, context),
423
- };
424
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
425
- switch (errorCode) {
426
- case "AccessDeniedException":
427
- case "com.amazonaws.keyspaces#AccessDeniedException":
428
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
429
- case "InternalServerException":
430
- case "com.amazonaws.keyspaces#InternalServerException":
431
- throw await de_InternalServerExceptionRes(parsedOutput, context);
432
- case "ResourceNotFoundException":
433
- case "com.amazonaws.keyspaces#ResourceNotFoundException":
434
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
435
- case "ServiceQuotaExceededException":
436
- case "com.amazonaws.keyspaces#ServiceQuotaExceededException":
437
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
438
- case "ValidationException":
439
- case "com.amazonaws.keyspaces#ValidationException":
440
- throw await de_ValidationExceptionRes(parsedOutput, context);
441
- default:
442
- const parsedBody = parsedOutput.body;
443
- return throwDefaultError({
444
- output,
445
- parsedBody,
446
- errorCode,
447
- });
448
- }
449
- };
450
193
  export const de_ListTablesCommand = async (output, context) => {
451
194
  if (output.statusCode >= 300) {
452
- return de_ListTablesCommandError(output, context);
195
+ return de_CommandError(output, context);
453
196
  }
454
197
  const data = await parseBody(output.body, context);
455
198
  let contents = {};
@@ -460,40 +203,9 @@ export const de_ListTablesCommand = async (output, context) => {
460
203
  };
461
204
  return response;
462
205
  };
463
- const de_ListTablesCommandError = async (output, context) => {
464
- const parsedOutput = {
465
- ...output,
466
- body: await parseErrorBody(output.body, context),
467
- };
468
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
469
- switch (errorCode) {
470
- case "AccessDeniedException":
471
- case "com.amazonaws.keyspaces#AccessDeniedException":
472
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
473
- case "InternalServerException":
474
- case "com.amazonaws.keyspaces#InternalServerException":
475
- throw await de_InternalServerExceptionRes(parsedOutput, context);
476
- case "ResourceNotFoundException":
477
- case "com.amazonaws.keyspaces#ResourceNotFoundException":
478
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
479
- case "ServiceQuotaExceededException":
480
- case "com.amazonaws.keyspaces#ServiceQuotaExceededException":
481
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
482
- case "ValidationException":
483
- case "com.amazonaws.keyspaces#ValidationException":
484
- throw await de_ValidationExceptionRes(parsedOutput, context);
485
- default:
486
- const parsedBody = parsedOutput.body;
487
- return throwDefaultError({
488
- output,
489
- parsedBody,
490
- errorCode,
491
- });
492
- }
493
- };
494
206
  export const de_ListTagsForResourceCommand = async (output, context) => {
495
207
  if (output.statusCode >= 300) {
496
- return de_ListTagsForResourceCommandError(output, context);
208
+ return de_CommandError(output, context);
497
209
  }
498
210
  const data = await parseBody(output.body, context);
499
211
  let contents = {};
@@ -504,40 +216,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
504
216
  };
505
217
  return response;
506
218
  };
507
- const de_ListTagsForResourceCommandError = async (output, context) => {
508
- const parsedOutput = {
509
- ...output,
510
- body: await parseErrorBody(output.body, context),
511
- };
512
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
513
- switch (errorCode) {
514
- case "AccessDeniedException":
515
- case "com.amazonaws.keyspaces#AccessDeniedException":
516
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
517
- case "InternalServerException":
518
- case "com.amazonaws.keyspaces#InternalServerException":
519
- throw await de_InternalServerExceptionRes(parsedOutput, context);
520
- case "ResourceNotFoundException":
521
- case "com.amazonaws.keyspaces#ResourceNotFoundException":
522
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
523
- case "ServiceQuotaExceededException":
524
- case "com.amazonaws.keyspaces#ServiceQuotaExceededException":
525
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
526
- case "ValidationException":
527
- case "com.amazonaws.keyspaces#ValidationException":
528
- throw await de_ValidationExceptionRes(parsedOutput, context);
529
- default:
530
- const parsedBody = parsedOutput.body;
531
- return throwDefaultError({
532
- output,
533
- parsedBody,
534
- errorCode,
535
- });
536
- }
537
- };
538
219
  export const de_RestoreTableCommand = async (output, context) => {
539
220
  if (output.statusCode >= 300) {
540
- return de_RestoreTableCommandError(output, context);
221
+ return de_CommandError(output, context);
541
222
  }
542
223
  const data = await parseBody(output.body, context);
543
224
  let contents = {};
@@ -548,43 +229,9 @@ export const de_RestoreTableCommand = async (output, context) => {
548
229
  };
549
230
  return response;
550
231
  };
551
- const de_RestoreTableCommandError = async (output, context) => {
552
- const parsedOutput = {
553
- ...output,
554
- body: await parseErrorBody(output.body, context),
555
- };
556
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
557
- switch (errorCode) {
558
- case "AccessDeniedException":
559
- case "com.amazonaws.keyspaces#AccessDeniedException":
560
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
561
- case "ConflictException":
562
- case "com.amazonaws.keyspaces#ConflictException":
563
- throw await de_ConflictExceptionRes(parsedOutput, context);
564
- case "InternalServerException":
565
- case "com.amazonaws.keyspaces#InternalServerException":
566
- throw await de_InternalServerExceptionRes(parsedOutput, context);
567
- case "ResourceNotFoundException":
568
- case "com.amazonaws.keyspaces#ResourceNotFoundException":
569
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
570
- case "ServiceQuotaExceededException":
571
- case "com.amazonaws.keyspaces#ServiceQuotaExceededException":
572
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
573
- case "ValidationException":
574
- case "com.amazonaws.keyspaces#ValidationException":
575
- throw await de_ValidationExceptionRes(parsedOutput, context);
576
- default:
577
- const parsedBody = parsedOutput.body;
578
- return throwDefaultError({
579
- output,
580
- parsedBody,
581
- errorCode,
582
- });
583
- }
584
- };
585
232
  export const de_TagResourceCommand = async (output, context) => {
586
233
  if (output.statusCode >= 300) {
587
- return de_TagResourceCommandError(output, context);
234
+ return de_CommandError(output, context);
588
235
  }
589
236
  const data = await parseBody(output.body, context);
590
237
  let contents = {};
@@ -595,40 +242,9 @@ export const de_TagResourceCommand = async (output, context) => {
595
242
  };
596
243
  return response;
597
244
  };
598
- const de_TagResourceCommandError = async (output, context) => {
599
- const parsedOutput = {
600
- ...output,
601
- body: await parseErrorBody(output.body, context),
602
- };
603
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
604
- switch (errorCode) {
605
- case "AccessDeniedException":
606
- case "com.amazonaws.keyspaces#AccessDeniedException":
607
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
608
- case "InternalServerException":
609
- case "com.amazonaws.keyspaces#InternalServerException":
610
- throw await de_InternalServerExceptionRes(parsedOutput, context);
611
- case "ResourceNotFoundException":
612
- case "com.amazonaws.keyspaces#ResourceNotFoundException":
613
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
614
- case "ServiceQuotaExceededException":
615
- case "com.amazonaws.keyspaces#ServiceQuotaExceededException":
616
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
617
- case "ValidationException":
618
- case "com.amazonaws.keyspaces#ValidationException":
619
- throw await de_ValidationExceptionRes(parsedOutput, context);
620
- default:
621
- const parsedBody = parsedOutput.body;
622
- return throwDefaultError({
623
- output,
624
- parsedBody,
625
- errorCode,
626
- });
627
- }
628
- };
629
245
  export const de_UntagResourceCommand = async (output, context) => {
630
246
  if (output.statusCode >= 300) {
631
- return de_UntagResourceCommandError(output, context);
247
+ return de_CommandError(output, context);
632
248
  }
633
249
  const data = await parseBody(output.body, context);
634
250
  let contents = {};
@@ -639,43 +255,9 @@ export const de_UntagResourceCommand = async (output, context) => {
639
255
  };
640
256
  return response;
641
257
  };
642
- const de_UntagResourceCommandError = 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 de_AccessDeniedExceptionRes(parsedOutput, context);
652
- case "ConflictException":
653
- case "com.amazonaws.keyspaces#ConflictException":
654
- throw await de_ConflictExceptionRes(parsedOutput, context);
655
- case "InternalServerException":
656
- case "com.amazonaws.keyspaces#InternalServerException":
657
- throw await de_InternalServerExceptionRes(parsedOutput, context);
658
- case "ResourceNotFoundException":
659
- case "com.amazonaws.keyspaces#ResourceNotFoundException":
660
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
661
- case "ServiceQuotaExceededException":
662
- case "com.amazonaws.keyspaces#ServiceQuotaExceededException":
663
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
664
- case "ValidationException":
665
- case "com.amazonaws.keyspaces#ValidationException":
666
- throw await de_ValidationExceptionRes(parsedOutput, context);
667
- default:
668
- const parsedBody = parsedOutput.body;
669
- return throwDefaultError({
670
- output,
671
- parsedBody,
672
- errorCode,
673
- });
674
- }
675
- };
676
258
  export const de_UpdateTableCommand = async (output, context) => {
677
259
  if (output.statusCode >= 300) {
678
- return de_UpdateTableCommandError(output, context);
260
+ return de_CommandError(output, context);
679
261
  }
680
262
  const data = await parseBody(output.body, context);
681
263
  let contents = {};
@@ -686,7 +268,7 @@ export const de_UpdateTableCommand = async (output, context) => {
686
268
  };
687
269
  return response;
688
270
  };
689
- const de_UpdateTableCommandError = async (output, context) => {
271
+ const de_CommandError = async (output, context) => {
690
272
  const parsedOutput = {
691
273
  ...output,
692
274
  body: await parseErrorBody(output.body, context),
@@ -702,15 +284,15 @@ const de_UpdateTableCommandError = async (output, context) => {
702
284
  case "InternalServerException":
703
285
  case "com.amazonaws.keyspaces#InternalServerException":
704
286
  throw await de_InternalServerExceptionRes(parsedOutput, context);
705
- case "ResourceNotFoundException":
706
- case "com.amazonaws.keyspaces#ResourceNotFoundException":
707
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
708
287
  case "ServiceQuotaExceededException":
709
288
  case "com.amazonaws.keyspaces#ServiceQuotaExceededException":
710
289
  throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
711
290
  case "ValidationException":
712
291
  case "com.amazonaws.keyspaces#ValidationException":
713
292
  throw await de_ValidationExceptionRes(parsedOutput, context);
293
+ case "ResourceNotFoundException":
294
+ case "com.amazonaws.keyspaces#ResourceNotFoundException":
295
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
714
296
  default:
715
297
  const parsedBody = parsedOutput.body;
716
298
  return throwDefaultError({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-keyspaces",
3
3
  "description": "AWS SDK for JavaScript Keyspaces Client for Node.js, Browser and React Native",
4
- "version": "3.503.1",
4
+ "version": "3.507.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-keyspaces",
@@ -20,9 +20,9 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.502.0",
23
+ "@aws-sdk/client-sts": "3.507.0",
24
24
  "@aws-sdk/core": "3.496.0",
25
- "@aws-sdk/credential-provider-node": "3.503.1",
25
+ "@aws-sdk/credential-provider-node": "3.507.0",
26
26
  "@aws-sdk/middleware-host-header": "3.502.0",
27
27
  "@aws-sdk/middleware-logger": "3.502.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.502.0",