@aws-sdk/client-redshift-serverless 3.141.0 → 3.142.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 +11 -0
- package/dist-cjs/protocols/Aws_json1_1.js +185 -320
- package/dist-es/protocols/Aws_json1_1.js +297 -321
- package/package.json +6 -6
|
@@ -395,7 +395,6 @@ const deserializeAws_json1_1ConvertRecoveryPointToSnapshotCommandError = async (
|
|
|
395
395
|
...output,
|
|
396
396
|
body: await parseBody(output.body, context),
|
|
397
397
|
};
|
|
398
|
-
let response;
|
|
399
398
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
400
399
|
switch (errorCode) {
|
|
401
400
|
case "ConflictException":
|
|
@@ -415,14 +414,12 @@ const deserializeAws_json1_1ConvertRecoveryPointToSnapshotCommandError = async (
|
|
|
415
414
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
416
415
|
default:
|
|
417
416
|
const parsedBody = parsedOutput.body;
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
$metadata,
|
|
417
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
418
|
+
output,
|
|
419
|
+
parsedBody,
|
|
420
|
+
exceptionCtor: RedshiftServerlessServiceException_1.RedshiftServerlessServiceException,
|
|
421
|
+
errorCode,
|
|
424
422
|
});
|
|
425
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
426
423
|
}
|
|
427
424
|
};
|
|
428
425
|
const deserializeAws_json1_1CreateEndpointAccessCommand = async (output, context) => {
|
|
@@ -444,7 +441,6 @@ const deserializeAws_json1_1CreateEndpointAccessCommandError = async (output, co
|
|
|
444
441
|
...output,
|
|
445
442
|
body: await parseBody(output.body, context),
|
|
446
443
|
};
|
|
447
|
-
let response;
|
|
448
444
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
449
445
|
switch (errorCode) {
|
|
450
446
|
case "AccessDeniedException":
|
|
@@ -467,14 +463,12 @@ const deserializeAws_json1_1CreateEndpointAccessCommandError = async (output, co
|
|
|
467
463
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
468
464
|
default:
|
|
469
465
|
const parsedBody = parsedOutput.body;
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
$metadata,
|
|
466
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
467
|
+
output,
|
|
468
|
+
parsedBody,
|
|
469
|
+
exceptionCtor: RedshiftServerlessServiceException_1.RedshiftServerlessServiceException,
|
|
470
|
+
errorCode,
|
|
476
471
|
});
|
|
477
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
478
472
|
}
|
|
479
473
|
};
|
|
480
474
|
const deserializeAws_json1_1CreateNamespaceCommand = async (output, context) => {
|
|
@@ -496,7 +490,6 @@ const deserializeAws_json1_1CreateNamespaceCommandError = async (output, context
|
|
|
496
490
|
...output,
|
|
497
491
|
body: await parseBody(output.body, context),
|
|
498
492
|
};
|
|
499
|
-
let response;
|
|
500
493
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
501
494
|
switch (errorCode) {
|
|
502
495
|
case "ConflictException":
|
|
@@ -513,14 +506,12 @@ const deserializeAws_json1_1CreateNamespaceCommandError = async (output, context
|
|
|
513
506
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
514
507
|
default:
|
|
515
508
|
const parsedBody = parsedOutput.body;
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
$metadata,
|
|
509
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
510
|
+
output,
|
|
511
|
+
parsedBody,
|
|
512
|
+
exceptionCtor: RedshiftServerlessServiceException_1.RedshiftServerlessServiceException,
|
|
513
|
+
errorCode,
|
|
522
514
|
});
|
|
523
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
524
515
|
}
|
|
525
516
|
};
|
|
526
517
|
const deserializeAws_json1_1CreateSnapshotCommand = async (output, context) => {
|
|
@@ -542,7 +533,6 @@ const deserializeAws_json1_1CreateSnapshotCommandError = async (output, context)
|
|
|
542
533
|
...output,
|
|
543
534
|
body: await parseBody(output.body, context),
|
|
544
535
|
};
|
|
545
|
-
let response;
|
|
546
536
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
547
537
|
switch (errorCode) {
|
|
548
538
|
case "ConflictException":
|
|
@@ -562,14 +552,12 @@ const deserializeAws_json1_1CreateSnapshotCommandError = async (output, context)
|
|
|
562
552
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
563
553
|
default:
|
|
564
554
|
const parsedBody = parsedOutput.body;
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
$metadata,
|
|
555
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
556
|
+
output,
|
|
557
|
+
parsedBody,
|
|
558
|
+
exceptionCtor: RedshiftServerlessServiceException_1.RedshiftServerlessServiceException,
|
|
559
|
+
errorCode,
|
|
571
560
|
});
|
|
572
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
573
561
|
}
|
|
574
562
|
};
|
|
575
563
|
const deserializeAws_json1_1CreateUsageLimitCommand = async (output, context) => {
|
|
@@ -591,7 +579,6 @@ const deserializeAws_json1_1CreateUsageLimitCommandError = async (output, contex
|
|
|
591
579
|
...output,
|
|
592
580
|
body: await parseBody(output.body, context),
|
|
593
581
|
};
|
|
594
|
-
let response;
|
|
595
582
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
596
583
|
switch (errorCode) {
|
|
597
584
|
case "ConflictException":
|
|
@@ -611,14 +598,12 @@ const deserializeAws_json1_1CreateUsageLimitCommandError = async (output, contex
|
|
|
611
598
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
612
599
|
default:
|
|
613
600
|
const parsedBody = parsedOutput.body;
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
$metadata,
|
|
601
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
602
|
+
output,
|
|
603
|
+
parsedBody,
|
|
604
|
+
exceptionCtor: RedshiftServerlessServiceException_1.RedshiftServerlessServiceException,
|
|
605
|
+
errorCode,
|
|
620
606
|
});
|
|
621
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
622
607
|
}
|
|
623
608
|
};
|
|
624
609
|
const deserializeAws_json1_1CreateWorkgroupCommand = async (output, context) => {
|
|
@@ -640,7 +625,6 @@ const deserializeAws_json1_1CreateWorkgroupCommandError = async (output, context
|
|
|
640
625
|
...output,
|
|
641
626
|
body: await parseBody(output.body, context),
|
|
642
627
|
};
|
|
643
|
-
let response;
|
|
644
628
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
645
629
|
switch (errorCode) {
|
|
646
630
|
case "ConflictException":
|
|
@@ -663,14 +647,12 @@ const deserializeAws_json1_1CreateWorkgroupCommandError = async (output, context
|
|
|
663
647
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
664
648
|
default:
|
|
665
649
|
const parsedBody = parsedOutput.body;
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
$metadata,
|
|
650
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
651
|
+
output,
|
|
652
|
+
parsedBody,
|
|
653
|
+
exceptionCtor: RedshiftServerlessServiceException_1.RedshiftServerlessServiceException,
|
|
654
|
+
errorCode,
|
|
672
655
|
});
|
|
673
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
674
656
|
}
|
|
675
657
|
};
|
|
676
658
|
const deserializeAws_json1_1DeleteEndpointAccessCommand = async (output, context) => {
|
|
@@ -692,7 +674,6 @@ const deserializeAws_json1_1DeleteEndpointAccessCommandError = async (output, co
|
|
|
692
674
|
...output,
|
|
693
675
|
body: await parseBody(output.body, context),
|
|
694
676
|
};
|
|
695
|
-
let response;
|
|
696
677
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
697
678
|
switch (errorCode) {
|
|
698
679
|
case "ConflictException":
|
|
@@ -709,14 +690,12 @@ const deserializeAws_json1_1DeleteEndpointAccessCommandError = async (output, co
|
|
|
709
690
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
710
691
|
default:
|
|
711
692
|
const parsedBody = parsedOutput.body;
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
$metadata,
|
|
693
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
694
|
+
output,
|
|
695
|
+
parsedBody,
|
|
696
|
+
exceptionCtor: RedshiftServerlessServiceException_1.RedshiftServerlessServiceException,
|
|
697
|
+
errorCode,
|
|
718
698
|
});
|
|
719
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
720
699
|
}
|
|
721
700
|
};
|
|
722
701
|
const deserializeAws_json1_1DeleteNamespaceCommand = async (output, context) => {
|
|
@@ -738,7 +717,6 @@ const deserializeAws_json1_1DeleteNamespaceCommandError = async (output, context
|
|
|
738
717
|
...output,
|
|
739
718
|
body: await parseBody(output.body, context),
|
|
740
719
|
};
|
|
741
|
-
let response;
|
|
742
720
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
743
721
|
switch (errorCode) {
|
|
744
722
|
case "ConflictException":
|
|
@@ -755,14 +733,12 @@ const deserializeAws_json1_1DeleteNamespaceCommandError = async (output, context
|
|
|
755
733
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
756
734
|
default:
|
|
757
735
|
const parsedBody = parsedOutput.body;
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
$metadata,
|
|
736
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
737
|
+
output,
|
|
738
|
+
parsedBody,
|
|
739
|
+
exceptionCtor: RedshiftServerlessServiceException_1.RedshiftServerlessServiceException,
|
|
740
|
+
errorCode,
|
|
764
741
|
});
|
|
765
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
766
742
|
}
|
|
767
743
|
};
|
|
768
744
|
const deserializeAws_json1_1DeleteResourcePolicyCommand = async (output, context) => {
|
|
@@ -784,7 +760,6 @@ const deserializeAws_json1_1DeleteResourcePolicyCommandError = async (output, co
|
|
|
784
760
|
...output,
|
|
785
761
|
body: await parseBody(output.body, context),
|
|
786
762
|
};
|
|
787
|
-
let response;
|
|
788
763
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
789
764
|
switch (errorCode) {
|
|
790
765
|
case "InternalServerException":
|
|
@@ -798,14 +773,12 @@ const deserializeAws_json1_1DeleteResourcePolicyCommandError = async (output, co
|
|
|
798
773
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
799
774
|
default:
|
|
800
775
|
const parsedBody = parsedOutput.body;
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
$metadata,
|
|
776
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
777
|
+
output,
|
|
778
|
+
parsedBody,
|
|
779
|
+
exceptionCtor: RedshiftServerlessServiceException_1.RedshiftServerlessServiceException,
|
|
780
|
+
errorCode,
|
|
807
781
|
});
|
|
808
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
809
782
|
}
|
|
810
783
|
};
|
|
811
784
|
const deserializeAws_json1_1DeleteSnapshotCommand = async (output, context) => {
|
|
@@ -827,7 +800,6 @@ const deserializeAws_json1_1DeleteSnapshotCommandError = async (output, context)
|
|
|
827
800
|
...output,
|
|
828
801
|
body: await parseBody(output.body, context),
|
|
829
802
|
};
|
|
830
|
-
let response;
|
|
831
803
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
832
804
|
switch (errorCode) {
|
|
833
805
|
case "ConflictException":
|
|
@@ -844,14 +816,12 @@ const deserializeAws_json1_1DeleteSnapshotCommandError = async (output, context)
|
|
|
844
816
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
845
817
|
default:
|
|
846
818
|
const parsedBody = parsedOutput.body;
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
$metadata,
|
|
819
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
820
|
+
output,
|
|
821
|
+
parsedBody,
|
|
822
|
+
exceptionCtor: RedshiftServerlessServiceException_1.RedshiftServerlessServiceException,
|
|
823
|
+
errorCode,
|
|
853
824
|
});
|
|
854
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
855
825
|
}
|
|
856
826
|
};
|
|
857
827
|
const deserializeAws_json1_1DeleteUsageLimitCommand = async (output, context) => {
|
|
@@ -873,7 +843,6 @@ const deserializeAws_json1_1DeleteUsageLimitCommandError = async (output, contex
|
|
|
873
843
|
...output,
|
|
874
844
|
body: await parseBody(output.body, context),
|
|
875
845
|
};
|
|
876
|
-
let response;
|
|
877
846
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
878
847
|
switch (errorCode) {
|
|
879
848
|
case "ConflictException":
|
|
@@ -890,14 +859,12 @@ const deserializeAws_json1_1DeleteUsageLimitCommandError = async (output, contex
|
|
|
890
859
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
891
860
|
default:
|
|
892
861
|
const parsedBody = parsedOutput.body;
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
$metadata,
|
|
862
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
863
|
+
output,
|
|
864
|
+
parsedBody,
|
|
865
|
+
exceptionCtor: RedshiftServerlessServiceException_1.RedshiftServerlessServiceException,
|
|
866
|
+
errorCode,
|
|
899
867
|
});
|
|
900
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
901
868
|
}
|
|
902
869
|
};
|
|
903
870
|
const deserializeAws_json1_1DeleteWorkgroupCommand = async (output, context) => {
|
|
@@ -919,7 +886,6 @@ const deserializeAws_json1_1DeleteWorkgroupCommandError = async (output, context
|
|
|
919
886
|
...output,
|
|
920
887
|
body: await parseBody(output.body, context),
|
|
921
888
|
};
|
|
922
|
-
let response;
|
|
923
889
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
924
890
|
switch (errorCode) {
|
|
925
891
|
case "ConflictException":
|
|
@@ -936,14 +902,12 @@ const deserializeAws_json1_1DeleteWorkgroupCommandError = async (output, context
|
|
|
936
902
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
937
903
|
default:
|
|
938
904
|
const parsedBody = parsedOutput.body;
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
$metadata,
|
|
905
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
906
|
+
output,
|
|
907
|
+
parsedBody,
|
|
908
|
+
exceptionCtor: RedshiftServerlessServiceException_1.RedshiftServerlessServiceException,
|
|
909
|
+
errorCode,
|
|
945
910
|
});
|
|
946
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
947
911
|
}
|
|
948
912
|
};
|
|
949
913
|
const deserializeAws_json1_1GetCredentialsCommand = async (output, context) => {
|
|
@@ -965,7 +929,6 @@ const deserializeAws_json1_1GetCredentialsCommandError = async (output, context)
|
|
|
965
929
|
...output,
|
|
966
930
|
body: await parseBody(output.body, context),
|
|
967
931
|
};
|
|
968
|
-
let response;
|
|
969
932
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
970
933
|
switch (errorCode) {
|
|
971
934
|
case "InternalServerException":
|
|
@@ -979,14 +942,12 @@ const deserializeAws_json1_1GetCredentialsCommandError = async (output, context)
|
|
|
979
942
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
980
943
|
default:
|
|
981
944
|
const parsedBody = parsedOutput.body;
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
$metadata,
|
|
945
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
946
|
+
output,
|
|
947
|
+
parsedBody,
|
|
948
|
+
exceptionCtor: RedshiftServerlessServiceException_1.RedshiftServerlessServiceException,
|
|
949
|
+
errorCode,
|
|
988
950
|
});
|
|
989
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
990
951
|
}
|
|
991
952
|
};
|
|
992
953
|
const deserializeAws_json1_1GetEndpointAccessCommand = async (output, context) => {
|
|
@@ -1008,7 +969,6 @@ const deserializeAws_json1_1GetEndpointAccessCommandError = async (output, conte
|
|
|
1008
969
|
...output,
|
|
1009
970
|
body: await parseBody(output.body, context),
|
|
1010
971
|
};
|
|
1011
|
-
let response;
|
|
1012
972
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1013
973
|
switch (errorCode) {
|
|
1014
974
|
case "ConflictException":
|
|
@@ -1025,14 +985,12 @@ const deserializeAws_json1_1GetEndpointAccessCommandError = async (output, conte
|
|
|
1025
985
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1026
986
|
default:
|
|
1027
987
|
const parsedBody = parsedOutput.body;
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
$metadata,
|
|
988
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
989
|
+
output,
|
|
990
|
+
parsedBody,
|
|
991
|
+
exceptionCtor: RedshiftServerlessServiceException_1.RedshiftServerlessServiceException,
|
|
992
|
+
errorCode,
|
|
1034
993
|
});
|
|
1035
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1036
994
|
}
|
|
1037
995
|
};
|
|
1038
996
|
const deserializeAws_json1_1GetNamespaceCommand = async (output, context) => {
|
|
@@ -1054,7 +1012,6 @@ const deserializeAws_json1_1GetNamespaceCommandError = async (output, context) =
|
|
|
1054
1012
|
...output,
|
|
1055
1013
|
body: await parseBody(output.body, context),
|
|
1056
1014
|
};
|
|
1057
|
-
let response;
|
|
1058
1015
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1059
1016
|
switch (errorCode) {
|
|
1060
1017
|
case "InternalServerException":
|
|
@@ -1068,14 +1025,12 @@ const deserializeAws_json1_1GetNamespaceCommandError = async (output, context) =
|
|
|
1068
1025
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1069
1026
|
default:
|
|
1070
1027
|
const parsedBody = parsedOutput.body;
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
$metadata,
|
|
1028
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1029
|
+
output,
|
|
1030
|
+
parsedBody,
|
|
1031
|
+
exceptionCtor: RedshiftServerlessServiceException_1.RedshiftServerlessServiceException,
|
|
1032
|
+
errorCode,
|
|
1077
1033
|
});
|
|
1078
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1079
1034
|
}
|
|
1080
1035
|
};
|
|
1081
1036
|
const deserializeAws_json1_1GetRecoveryPointCommand = async (output, context) => {
|
|
@@ -1097,7 +1052,6 @@ const deserializeAws_json1_1GetRecoveryPointCommandError = async (output, contex
|
|
|
1097
1052
|
...output,
|
|
1098
1053
|
body: await parseBody(output.body, context),
|
|
1099
1054
|
};
|
|
1100
|
-
let response;
|
|
1101
1055
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1102
1056
|
switch (errorCode) {
|
|
1103
1057
|
case "ConflictException":
|
|
@@ -1114,14 +1068,12 @@ const deserializeAws_json1_1GetRecoveryPointCommandError = async (output, contex
|
|
|
1114
1068
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1115
1069
|
default:
|
|
1116
1070
|
const parsedBody = parsedOutput.body;
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
$metadata,
|
|
1071
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1072
|
+
output,
|
|
1073
|
+
parsedBody,
|
|
1074
|
+
exceptionCtor: RedshiftServerlessServiceException_1.RedshiftServerlessServiceException,
|
|
1075
|
+
errorCode,
|
|
1123
1076
|
});
|
|
1124
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1125
1077
|
}
|
|
1126
1078
|
};
|
|
1127
1079
|
const deserializeAws_json1_1GetResourcePolicyCommand = async (output, context) => {
|
|
@@ -1143,7 +1095,6 @@ const deserializeAws_json1_1GetResourcePolicyCommandError = async (output, conte
|
|
|
1143
1095
|
...output,
|
|
1144
1096
|
body: await parseBody(output.body, context),
|
|
1145
1097
|
};
|
|
1146
|
-
let response;
|
|
1147
1098
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1148
1099
|
switch (errorCode) {
|
|
1149
1100
|
case "InternalServerException":
|
|
@@ -1157,14 +1108,12 @@ const deserializeAws_json1_1GetResourcePolicyCommandError = async (output, conte
|
|
|
1157
1108
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1158
1109
|
default:
|
|
1159
1110
|
const parsedBody = parsedOutput.body;
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
$metadata,
|
|
1111
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1112
|
+
output,
|
|
1113
|
+
parsedBody,
|
|
1114
|
+
exceptionCtor: RedshiftServerlessServiceException_1.RedshiftServerlessServiceException,
|
|
1115
|
+
errorCode,
|
|
1166
1116
|
});
|
|
1167
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1168
1117
|
}
|
|
1169
1118
|
};
|
|
1170
1119
|
const deserializeAws_json1_1GetSnapshotCommand = async (output, context) => {
|
|
@@ -1186,7 +1135,6 @@ const deserializeAws_json1_1GetSnapshotCommandError = async (output, context) =>
|
|
|
1186
1135
|
...output,
|
|
1187
1136
|
body: await parseBody(output.body, context),
|
|
1188
1137
|
};
|
|
1189
|
-
let response;
|
|
1190
1138
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1191
1139
|
switch (errorCode) {
|
|
1192
1140
|
case "InternalServerException":
|
|
@@ -1200,14 +1148,12 @@ const deserializeAws_json1_1GetSnapshotCommandError = async (output, context) =>
|
|
|
1200
1148
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1201
1149
|
default:
|
|
1202
1150
|
const parsedBody = parsedOutput.body;
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
$metadata,
|
|
1151
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1152
|
+
output,
|
|
1153
|
+
parsedBody,
|
|
1154
|
+
exceptionCtor: RedshiftServerlessServiceException_1.RedshiftServerlessServiceException,
|
|
1155
|
+
errorCode,
|
|
1209
1156
|
});
|
|
1210
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1211
1157
|
}
|
|
1212
1158
|
};
|
|
1213
1159
|
const deserializeAws_json1_1GetUsageLimitCommand = async (output, context) => {
|
|
@@ -1229,7 +1175,6 @@ const deserializeAws_json1_1GetUsageLimitCommandError = async (output, context)
|
|
|
1229
1175
|
...output,
|
|
1230
1176
|
body: await parseBody(output.body, context),
|
|
1231
1177
|
};
|
|
1232
|
-
let response;
|
|
1233
1178
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1234
1179
|
switch (errorCode) {
|
|
1235
1180
|
case "ConflictException":
|
|
@@ -1246,14 +1191,12 @@ const deserializeAws_json1_1GetUsageLimitCommandError = async (output, context)
|
|
|
1246
1191
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1247
1192
|
default:
|
|
1248
1193
|
const parsedBody = parsedOutput.body;
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
$metadata,
|
|
1194
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1195
|
+
output,
|
|
1196
|
+
parsedBody,
|
|
1197
|
+
exceptionCtor: RedshiftServerlessServiceException_1.RedshiftServerlessServiceException,
|
|
1198
|
+
errorCode,
|
|
1255
1199
|
});
|
|
1256
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1257
1200
|
}
|
|
1258
1201
|
};
|
|
1259
1202
|
const deserializeAws_json1_1GetWorkgroupCommand = async (output, context) => {
|
|
@@ -1275,7 +1218,6 @@ const deserializeAws_json1_1GetWorkgroupCommandError = async (output, context) =
|
|
|
1275
1218
|
...output,
|
|
1276
1219
|
body: await parseBody(output.body, context),
|
|
1277
1220
|
};
|
|
1278
|
-
let response;
|
|
1279
1221
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1280
1222
|
switch (errorCode) {
|
|
1281
1223
|
case "InternalServerException":
|
|
@@ -1289,14 +1231,12 @@ const deserializeAws_json1_1GetWorkgroupCommandError = async (output, context) =
|
|
|
1289
1231
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1290
1232
|
default:
|
|
1291
1233
|
const parsedBody = parsedOutput.body;
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
$metadata,
|
|
1234
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1235
|
+
output,
|
|
1236
|
+
parsedBody,
|
|
1237
|
+
exceptionCtor: RedshiftServerlessServiceException_1.RedshiftServerlessServiceException,
|
|
1238
|
+
errorCode,
|
|
1298
1239
|
});
|
|
1299
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1300
1240
|
}
|
|
1301
1241
|
};
|
|
1302
1242
|
const deserializeAws_json1_1ListEndpointAccessCommand = async (output, context) => {
|
|
@@ -1318,7 +1258,6 @@ const deserializeAws_json1_1ListEndpointAccessCommandError = async (output, cont
|
|
|
1318
1258
|
...output,
|
|
1319
1259
|
body: await parseBody(output.body, context),
|
|
1320
1260
|
};
|
|
1321
|
-
let response;
|
|
1322
1261
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1323
1262
|
switch (errorCode) {
|
|
1324
1263
|
case "ConflictException":
|
|
@@ -1335,14 +1274,12 @@ const deserializeAws_json1_1ListEndpointAccessCommandError = async (output, cont
|
|
|
1335
1274
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1336
1275
|
default:
|
|
1337
1276
|
const parsedBody = parsedOutput.body;
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
$metadata,
|
|
1277
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1278
|
+
output,
|
|
1279
|
+
parsedBody,
|
|
1280
|
+
exceptionCtor: RedshiftServerlessServiceException_1.RedshiftServerlessServiceException,
|
|
1281
|
+
errorCode,
|
|
1344
1282
|
});
|
|
1345
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1346
1283
|
}
|
|
1347
1284
|
};
|
|
1348
1285
|
const deserializeAws_json1_1ListNamespacesCommand = async (output, context) => {
|
|
@@ -1364,7 +1301,6 @@ const deserializeAws_json1_1ListNamespacesCommandError = async (output, context)
|
|
|
1364
1301
|
...output,
|
|
1365
1302
|
body: await parseBody(output.body, context),
|
|
1366
1303
|
};
|
|
1367
|
-
let response;
|
|
1368
1304
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1369
1305
|
switch (errorCode) {
|
|
1370
1306
|
case "InternalServerException":
|
|
@@ -1375,14 +1311,12 @@ const deserializeAws_json1_1ListNamespacesCommandError = async (output, context)
|
|
|
1375
1311
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1376
1312
|
default:
|
|
1377
1313
|
const parsedBody = parsedOutput.body;
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
$metadata,
|
|
1314
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1315
|
+
output,
|
|
1316
|
+
parsedBody,
|
|
1317
|
+
exceptionCtor: RedshiftServerlessServiceException_1.RedshiftServerlessServiceException,
|
|
1318
|
+
errorCode,
|
|
1384
1319
|
});
|
|
1385
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1386
1320
|
}
|
|
1387
1321
|
};
|
|
1388
1322
|
const deserializeAws_json1_1ListRecoveryPointsCommand = async (output, context) => {
|
|
@@ -1404,7 +1338,6 @@ const deserializeAws_json1_1ListRecoveryPointsCommandError = async (output, cont
|
|
|
1404
1338
|
...output,
|
|
1405
1339
|
body: await parseBody(output.body, context),
|
|
1406
1340
|
};
|
|
1407
|
-
let response;
|
|
1408
1341
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1409
1342
|
switch (errorCode) {
|
|
1410
1343
|
case "InternalServerException":
|
|
@@ -1415,14 +1348,12 @@ const deserializeAws_json1_1ListRecoveryPointsCommandError = async (output, cont
|
|
|
1415
1348
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1416
1349
|
default:
|
|
1417
1350
|
const parsedBody = parsedOutput.body;
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
$metadata,
|
|
1351
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1352
|
+
output,
|
|
1353
|
+
parsedBody,
|
|
1354
|
+
exceptionCtor: RedshiftServerlessServiceException_1.RedshiftServerlessServiceException,
|
|
1355
|
+
errorCode,
|
|
1424
1356
|
});
|
|
1425
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1426
1357
|
}
|
|
1427
1358
|
};
|
|
1428
1359
|
const deserializeAws_json1_1ListSnapshotsCommand = async (output, context) => {
|
|
@@ -1444,7 +1375,6 @@ const deserializeAws_json1_1ListSnapshotsCommandError = async (output, context)
|
|
|
1444
1375
|
...output,
|
|
1445
1376
|
body: await parseBody(output.body, context),
|
|
1446
1377
|
};
|
|
1447
|
-
let response;
|
|
1448
1378
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1449
1379
|
switch (errorCode) {
|
|
1450
1380
|
case "InternalServerException":
|
|
@@ -1458,14 +1388,12 @@ const deserializeAws_json1_1ListSnapshotsCommandError = async (output, context)
|
|
|
1458
1388
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1459
1389
|
default:
|
|
1460
1390
|
const parsedBody = parsedOutput.body;
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
$metadata,
|
|
1391
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1392
|
+
output,
|
|
1393
|
+
parsedBody,
|
|
1394
|
+
exceptionCtor: RedshiftServerlessServiceException_1.RedshiftServerlessServiceException,
|
|
1395
|
+
errorCode,
|
|
1467
1396
|
});
|
|
1468
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1469
1397
|
}
|
|
1470
1398
|
};
|
|
1471
1399
|
const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
|
|
@@ -1487,7 +1415,6 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
1487
1415
|
...output,
|
|
1488
1416
|
body: await parseBody(output.body, context),
|
|
1489
1417
|
};
|
|
1490
|
-
let response;
|
|
1491
1418
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1492
1419
|
switch (errorCode) {
|
|
1493
1420
|
case "InternalServerException":
|
|
@@ -1504,14 +1431,12 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
1504
1431
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1505
1432
|
default:
|
|
1506
1433
|
const parsedBody = parsedOutput.body;
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
$metadata,
|
|
1434
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1435
|
+
output,
|
|
1436
|
+
parsedBody,
|
|
1437
|
+
exceptionCtor: RedshiftServerlessServiceException_1.RedshiftServerlessServiceException,
|
|
1438
|
+
errorCode,
|
|
1513
1439
|
});
|
|
1514
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1515
1440
|
}
|
|
1516
1441
|
};
|
|
1517
1442
|
const deserializeAws_json1_1ListUsageLimitsCommand = async (output, context) => {
|
|
@@ -1533,7 +1458,6 @@ const deserializeAws_json1_1ListUsageLimitsCommandError = async (output, context
|
|
|
1533
1458
|
...output,
|
|
1534
1459
|
body: await parseBody(output.body, context),
|
|
1535
1460
|
};
|
|
1536
|
-
let response;
|
|
1537
1461
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1538
1462
|
switch (errorCode) {
|
|
1539
1463
|
case "ConflictException":
|
|
@@ -1553,14 +1477,12 @@ const deserializeAws_json1_1ListUsageLimitsCommandError = async (output, context
|
|
|
1553
1477
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1554
1478
|
default:
|
|
1555
1479
|
const parsedBody = parsedOutput.body;
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
$metadata,
|
|
1480
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1481
|
+
output,
|
|
1482
|
+
parsedBody,
|
|
1483
|
+
exceptionCtor: RedshiftServerlessServiceException_1.RedshiftServerlessServiceException,
|
|
1484
|
+
errorCode,
|
|
1562
1485
|
});
|
|
1563
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1564
1486
|
}
|
|
1565
1487
|
};
|
|
1566
1488
|
const deserializeAws_json1_1ListWorkgroupsCommand = async (output, context) => {
|
|
@@ -1582,7 +1504,6 @@ const deserializeAws_json1_1ListWorkgroupsCommandError = async (output, context)
|
|
|
1582
1504
|
...output,
|
|
1583
1505
|
body: await parseBody(output.body, context),
|
|
1584
1506
|
};
|
|
1585
|
-
let response;
|
|
1586
1507
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1587
1508
|
switch (errorCode) {
|
|
1588
1509
|
case "InternalServerException":
|
|
@@ -1593,14 +1514,12 @@ const deserializeAws_json1_1ListWorkgroupsCommandError = async (output, context)
|
|
|
1593
1514
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1594
1515
|
default:
|
|
1595
1516
|
const parsedBody = parsedOutput.body;
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
$metadata,
|
|
1517
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1518
|
+
output,
|
|
1519
|
+
parsedBody,
|
|
1520
|
+
exceptionCtor: RedshiftServerlessServiceException_1.RedshiftServerlessServiceException,
|
|
1521
|
+
errorCode,
|
|
1602
1522
|
});
|
|
1603
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1604
1523
|
}
|
|
1605
1524
|
};
|
|
1606
1525
|
const deserializeAws_json1_1PutResourcePolicyCommand = async (output, context) => {
|
|
@@ -1622,7 +1541,6 @@ const deserializeAws_json1_1PutResourcePolicyCommandError = async (output, conte
|
|
|
1622
1541
|
...output,
|
|
1623
1542
|
body: await parseBody(output.body, context),
|
|
1624
1543
|
};
|
|
1625
|
-
let response;
|
|
1626
1544
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1627
1545
|
switch (errorCode) {
|
|
1628
1546
|
case "ConflictException":
|
|
@@ -1642,14 +1560,12 @@ const deserializeAws_json1_1PutResourcePolicyCommandError = async (output, conte
|
|
|
1642
1560
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1643
1561
|
default:
|
|
1644
1562
|
const parsedBody = parsedOutput.body;
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
$metadata,
|
|
1563
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1564
|
+
output,
|
|
1565
|
+
parsedBody,
|
|
1566
|
+
exceptionCtor: RedshiftServerlessServiceException_1.RedshiftServerlessServiceException,
|
|
1567
|
+
errorCode,
|
|
1651
1568
|
});
|
|
1652
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1653
1569
|
}
|
|
1654
1570
|
};
|
|
1655
1571
|
const deserializeAws_json1_1RestoreFromRecoveryPointCommand = async (output, context) => {
|
|
@@ -1671,7 +1587,6 @@ const deserializeAws_json1_1RestoreFromRecoveryPointCommandError = async (output
|
|
|
1671
1587
|
...output,
|
|
1672
1588
|
body: await parseBody(output.body, context),
|
|
1673
1589
|
};
|
|
1674
|
-
let response;
|
|
1675
1590
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1676
1591
|
switch (errorCode) {
|
|
1677
1592
|
case "ConflictException":
|
|
@@ -1688,14 +1603,12 @@ const deserializeAws_json1_1RestoreFromRecoveryPointCommandError = async (output
|
|
|
1688
1603
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1689
1604
|
default:
|
|
1690
1605
|
const parsedBody = parsedOutput.body;
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
$metadata,
|
|
1606
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1607
|
+
output,
|
|
1608
|
+
parsedBody,
|
|
1609
|
+
exceptionCtor: RedshiftServerlessServiceException_1.RedshiftServerlessServiceException,
|
|
1610
|
+
errorCode,
|
|
1697
1611
|
});
|
|
1698
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1699
1612
|
}
|
|
1700
1613
|
};
|
|
1701
1614
|
const deserializeAws_json1_1RestoreFromSnapshotCommand = async (output, context) => {
|
|
@@ -1717,7 +1630,6 @@ const deserializeAws_json1_1RestoreFromSnapshotCommandError = async (output, con
|
|
|
1717
1630
|
...output,
|
|
1718
1631
|
body: await parseBody(output.body, context),
|
|
1719
1632
|
};
|
|
1720
|
-
let response;
|
|
1721
1633
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1722
1634
|
switch (errorCode) {
|
|
1723
1635
|
case "ConflictException":
|
|
@@ -1737,14 +1649,12 @@ const deserializeAws_json1_1RestoreFromSnapshotCommandError = async (output, con
|
|
|
1737
1649
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1738
1650
|
default:
|
|
1739
1651
|
const parsedBody = parsedOutput.body;
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
$metadata,
|
|
1652
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1653
|
+
output,
|
|
1654
|
+
parsedBody,
|
|
1655
|
+
exceptionCtor: RedshiftServerlessServiceException_1.RedshiftServerlessServiceException,
|
|
1656
|
+
errorCode,
|
|
1746
1657
|
});
|
|
1747
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1748
1658
|
}
|
|
1749
1659
|
};
|
|
1750
1660
|
const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
@@ -1766,7 +1676,6 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
1766
1676
|
...output,
|
|
1767
1677
|
body: await parseBody(output.body, context),
|
|
1768
1678
|
};
|
|
1769
|
-
let response;
|
|
1770
1679
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1771
1680
|
switch (errorCode) {
|
|
1772
1681
|
case "InternalServerException":
|
|
@@ -1786,14 +1695,12 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
1786
1695
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1787
1696
|
default:
|
|
1788
1697
|
const parsedBody = parsedOutput.body;
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
$metadata,
|
|
1698
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1699
|
+
output,
|
|
1700
|
+
parsedBody,
|
|
1701
|
+
exceptionCtor: RedshiftServerlessServiceException_1.RedshiftServerlessServiceException,
|
|
1702
|
+
errorCode,
|
|
1795
1703
|
});
|
|
1796
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1797
1704
|
}
|
|
1798
1705
|
};
|
|
1799
1706
|
const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
@@ -1815,7 +1722,6 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1815
1722
|
...output,
|
|
1816
1723
|
body: await parseBody(output.body, context),
|
|
1817
1724
|
};
|
|
1818
|
-
let response;
|
|
1819
1725
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1820
1726
|
switch (errorCode) {
|
|
1821
1727
|
case "InternalServerException":
|
|
@@ -1832,14 +1738,12 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1832
1738
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1833
1739
|
default:
|
|
1834
1740
|
const parsedBody = parsedOutput.body;
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
$metadata,
|
|
1741
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1742
|
+
output,
|
|
1743
|
+
parsedBody,
|
|
1744
|
+
exceptionCtor: RedshiftServerlessServiceException_1.RedshiftServerlessServiceException,
|
|
1745
|
+
errorCode,
|
|
1841
1746
|
});
|
|
1842
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1843
1747
|
}
|
|
1844
1748
|
};
|
|
1845
1749
|
const deserializeAws_json1_1UpdateEndpointAccessCommand = async (output, context) => {
|
|
@@ -1861,7 +1765,6 @@ const deserializeAws_json1_1UpdateEndpointAccessCommandError = async (output, co
|
|
|
1861
1765
|
...output,
|
|
1862
1766
|
body: await parseBody(output.body, context),
|
|
1863
1767
|
};
|
|
1864
|
-
let response;
|
|
1865
1768
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1866
1769
|
switch (errorCode) {
|
|
1867
1770
|
case "AccessDeniedException":
|
|
@@ -1881,14 +1784,12 @@ const deserializeAws_json1_1UpdateEndpointAccessCommandError = async (output, co
|
|
|
1881
1784
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1882
1785
|
default:
|
|
1883
1786
|
const parsedBody = parsedOutput.body;
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
$metadata,
|
|
1787
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1788
|
+
output,
|
|
1789
|
+
parsedBody,
|
|
1790
|
+
exceptionCtor: RedshiftServerlessServiceException_1.RedshiftServerlessServiceException,
|
|
1791
|
+
errorCode,
|
|
1890
1792
|
});
|
|
1891
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1892
1793
|
}
|
|
1893
1794
|
};
|
|
1894
1795
|
const deserializeAws_json1_1UpdateNamespaceCommand = async (output, context) => {
|
|
@@ -1910,7 +1811,6 @@ const deserializeAws_json1_1UpdateNamespaceCommandError = async (output, context
|
|
|
1910
1811
|
...output,
|
|
1911
1812
|
body: await parseBody(output.body, context),
|
|
1912
1813
|
};
|
|
1913
|
-
let response;
|
|
1914
1814
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1915
1815
|
switch (errorCode) {
|
|
1916
1816
|
case "ConflictException":
|
|
@@ -1927,14 +1827,12 @@ const deserializeAws_json1_1UpdateNamespaceCommandError = async (output, context
|
|
|
1927
1827
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1928
1828
|
default:
|
|
1929
1829
|
const parsedBody = parsedOutput.body;
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
$metadata,
|
|
1830
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1831
|
+
output,
|
|
1832
|
+
parsedBody,
|
|
1833
|
+
exceptionCtor: RedshiftServerlessServiceException_1.RedshiftServerlessServiceException,
|
|
1834
|
+
errorCode,
|
|
1936
1835
|
});
|
|
1937
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1938
1836
|
}
|
|
1939
1837
|
};
|
|
1940
1838
|
const deserializeAws_json1_1UpdateSnapshotCommand = async (output, context) => {
|
|
@@ -1956,7 +1854,6 @@ const deserializeAws_json1_1UpdateSnapshotCommandError = async (output, context)
|
|
|
1956
1854
|
...output,
|
|
1957
1855
|
body: await parseBody(output.body, context),
|
|
1958
1856
|
};
|
|
1959
|
-
let response;
|
|
1960
1857
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1961
1858
|
switch (errorCode) {
|
|
1962
1859
|
case "ConflictException":
|
|
@@ -1973,14 +1870,12 @@ const deserializeAws_json1_1UpdateSnapshotCommandError = async (output, context)
|
|
|
1973
1870
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1974
1871
|
default:
|
|
1975
1872
|
const parsedBody = parsedOutput.body;
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
$metadata,
|
|
1873
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1874
|
+
output,
|
|
1875
|
+
parsedBody,
|
|
1876
|
+
exceptionCtor: RedshiftServerlessServiceException_1.RedshiftServerlessServiceException,
|
|
1877
|
+
errorCode,
|
|
1982
1878
|
});
|
|
1983
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1984
1879
|
}
|
|
1985
1880
|
};
|
|
1986
1881
|
const deserializeAws_json1_1UpdateUsageLimitCommand = async (output, context) => {
|
|
@@ -2002,7 +1897,6 @@ const deserializeAws_json1_1UpdateUsageLimitCommandError = async (output, contex
|
|
|
2002
1897
|
...output,
|
|
2003
1898
|
body: await parseBody(output.body, context),
|
|
2004
1899
|
};
|
|
2005
|
-
let response;
|
|
2006
1900
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2007
1901
|
switch (errorCode) {
|
|
2008
1902
|
case "ConflictException":
|
|
@@ -2019,14 +1913,12 @@ const deserializeAws_json1_1UpdateUsageLimitCommandError = async (output, contex
|
|
|
2019
1913
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2020
1914
|
default:
|
|
2021
1915
|
const parsedBody = parsedOutput.body;
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
$metadata,
|
|
1916
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1917
|
+
output,
|
|
1918
|
+
parsedBody,
|
|
1919
|
+
exceptionCtor: RedshiftServerlessServiceException_1.RedshiftServerlessServiceException,
|
|
1920
|
+
errorCode,
|
|
2028
1921
|
});
|
|
2029
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2030
1922
|
}
|
|
2031
1923
|
};
|
|
2032
1924
|
const deserializeAws_json1_1UpdateWorkgroupCommand = async (output, context) => {
|
|
@@ -2048,7 +1940,6 @@ const deserializeAws_json1_1UpdateWorkgroupCommandError = async (output, context
|
|
|
2048
1940
|
...output,
|
|
2049
1941
|
body: await parseBody(output.body, context),
|
|
2050
1942
|
};
|
|
2051
|
-
let response;
|
|
2052
1943
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2053
1944
|
switch (errorCode) {
|
|
2054
1945
|
case "ConflictException":
|
|
@@ -2068,14 +1959,12 @@ const deserializeAws_json1_1UpdateWorkgroupCommandError = async (output, context
|
|
|
2068
1959
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2069
1960
|
default:
|
|
2070
1961
|
const parsedBody = parsedOutput.body;
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
$metadata,
|
|
1962
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1963
|
+
output,
|
|
1964
|
+
parsedBody,
|
|
1965
|
+
exceptionCtor: RedshiftServerlessServiceException_1.RedshiftServerlessServiceException,
|
|
1966
|
+
errorCode,
|
|
2077
1967
|
});
|
|
2078
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2079
1968
|
}
|
|
2080
1969
|
};
|
|
2081
1970
|
const deserializeAws_json1_1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
@@ -2178,9 +2067,6 @@ const serializeAws_json1_1ConfigParameterList = (input, context) => {
|
|
|
2178
2067
|
return input
|
|
2179
2068
|
.filter((e) => e != null)
|
|
2180
2069
|
.map((entry) => {
|
|
2181
|
-
if (entry === null) {
|
|
2182
|
-
return null;
|
|
2183
|
-
}
|
|
2184
2070
|
return serializeAws_json1_1ConfigParameter(entry, context);
|
|
2185
2071
|
});
|
|
2186
2072
|
};
|
|
@@ -2329,9 +2215,6 @@ const serializeAws_json1_1IamRoleArnList = (input, context) => {
|
|
|
2329
2215
|
return input
|
|
2330
2216
|
.filter((e) => e != null)
|
|
2331
2217
|
.map((entry) => {
|
|
2332
|
-
if (entry === null) {
|
|
2333
|
-
return null;
|
|
2334
|
-
}
|
|
2335
2218
|
return entry;
|
|
2336
2219
|
});
|
|
2337
2220
|
};
|
|
@@ -2392,9 +2275,6 @@ const serializeAws_json1_1LogExportList = (input, context) => {
|
|
|
2392
2275
|
return input
|
|
2393
2276
|
.filter((e) => e != null)
|
|
2394
2277
|
.map((entry) => {
|
|
2395
|
-
if (entry === null) {
|
|
2396
|
-
return null;
|
|
2397
|
-
}
|
|
2398
2278
|
return entry;
|
|
2399
2279
|
});
|
|
2400
2280
|
};
|
|
@@ -2424,9 +2304,6 @@ const serializeAws_json1_1SecurityGroupIdList = (input, context) => {
|
|
|
2424
2304
|
return input
|
|
2425
2305
|
.filter((e) => e != null)
|
|
2426
2306
|
.map((entry) => {
|
|
2427
|
-
if (entry === null) {
|
|
2428
|
-
return null;
|
|
2429
|
-
}
|
|
2430
2307
|
return entry;
|
|
2431
2308
|
});
|
|
2432
2309
|
};
|
|
@@ -2434,9 +2311,6 @@ const serializeAws_json1_1SubnetIdList = (input, context) => {
|
|
|
2434
2311
|
return input
|
|
2435
2312
|
.filter((e) => e != null)
|
|
2436
2313
|
.map((entry) => {
|
|
2437
|
-
if (entry === null) {
|
|
2438
|
-
return null;
|
|
2439
|
-
}
|
|
2440
2314
|
return entry;
|
|
2441
2315
|
});
|
|
2442
2316
|
};
|
|
@@ -2450,9 +2324,6 @@ const serializeAws_json1_1TagKeyList = (input, context) => {
|
|
|
2450
2324
|
return input
|
|
2451
2325
|
.filter((e) => e != null)
|
|
2452
2326
|
.map((entry) => {
|
|
2453
|
-
if (entry === null) {
|
|
2454
|
-
return null;
|
|
2455
|
-
}
|
|
2456
2327
|
return entry;
|
|
2457
2328
|
});
|
|
2458
2329
|
};
|
|
@@ -2460,9 +2331,6 @@ const serializeAws_json1_1TagList = (input, context) => {
|
|
|
2460
2331
|
return input
|
|
2461
2332
|
.filter((e) => e != null)
|
|
2462
2333
|
.map((entry) => {
|
|
2463
|
-
if (entry === null) {
|
|
2464
|
-
return null;
|
|
2465
|
-
}
|
|
2466
2334
|
return serializeAws_json1_1Tag(entry, context);
|
|
2467
2335
|
});
|
|
2468
2336
|
};
|
|
@@ -2529,9 +2397,6 @@ const serializeAws_json1_1VpcSecurityGroupIdList = (input, context) => {
|
|
|
2529
2397
|
return input
|
|
2530
2398
|
.filter((e) => e != null)
|
|
2531
2399
|
.map((entry) => {
|
|
2532
|
-
if (entry === null) {
|
|
2533
|
-
return null;
|
|
2534
|
-
}
|
|
2535
2400
|
return entry;
|
|
2536
2401
|
});
|
|
2537
2402
|
};
|