@aws-sdk/client-memorydb 3.137.0 → 3.145.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 +30 -0
- package/README.md +1 -1
- package/dist-cjs/protocols/Aws_json1_1.js +175 -319
- package/dist-es/protocols/Aws_json1_1.js +281 -320
- package/package.json +11 -6
|
@@ -375,7 +375,6 @@ const deserializeAws_json1_1BatchUpdateClusterCommandError = async (output, cont
|
|
|
375
375
|
...output,
|
|
376
376
|
body: await parseBody(output.body, context),
|
|
377
377
|
};
|
|
378
|
-
let response;
|
|
379
378
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
380
379
|
switch (errorCode) {
|
|
381
380
|
case "InvalidParameterValueException":
|
|
@@ -386,14 +385,12 @@ const deserializeAws_json1_1BatchUpdateClusterCommandError = async (output, cont
|
|
|
386
385
|
throw await deserializeAws_json1_1ServiceUpdateNotFoundFaultResponse(parsedOutput, context);
|
|
387
386
|
default:
|
|
388
387
|
const parsedBody = parsedOutput.body;
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
$metadata,
|
|
388
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
389
|
+
output,
|
|
390
|
+
parsedBody,
|
|
391
|
+
exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
|
|
392
|
+
errorCode,
|
|
395
393
|
});
|
|
396
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
397
394
|
}
|
|
398
395
|
};
|
|
399
396
|
const deserializeAws_json1_1CopySnapshotCommand = async (output, context) => {
|
|
@@ -415,7 +412,6 @@ const deserializeAws_json1_1CopySnapshotCommandError = async (output, context) =
|
|
|
415
412
|
...output,
|
|
416
413
|
body: await parseBody(output.body, context),
|
|
417
414
|
};
|
|
418
|
-
let response;
|
|
419
415
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
420
416
|
switch (errorCode) {
|
|
421
417
|
case "InvalidParameterCombinationException":
|
|
@@ -444,14 +440,12 @@ const deserializeAws_json1_1CopySnapshotCommandError = async (output, context) =
|
|
|
444
440
|
throw await deserializeAws_json1_1TagQuotaPerResourceExceededResponse(parsedOutput, context);
|
|
445
441
|
default:
|
|
446
442
|
const parsedBody = parsedOutput.body;
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
$metadata,
|
|
443
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
444
|
+
output,
|
|
445
|
+
parsedBody,
|
|
446
|
+
exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
|
|
447
|
+
errorCode,
|
|
453
448
|
});
|
|
454
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
455
449
|
}
|
|
456
450
|
};
|
|
457
451
|
const deserializeAws_json1_1CreateACLCommand = async (output, context) => {
|
|
@@ -473,7 +467,6 @@ const deserializeAws_json1_1CreateACLCommandError = async (output, context) => {
|
|
|
473
467
|
...output,
|
|
474
468
|
body: await parseBody(output.body, context),
|
|
475
469
|
};
|
|
476
|
-
let response;
|
|
477
470
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
478
471
|
switch (errorCode) {
|
|
479
472
|
case "ACLAlreadyExistsFault":
|
|
@@ -499,14 +492,12 @@ const deserializeAws_json1_1CreateACLCommandError = async (output, context) => {
|
|
|
499
492
|
throw await deserializeAws_json1_1UserNotFoundFaultResponse(parsedOutput, context);
|
|
500
493
|
default:
|
|
501
494
|
const parsedBody = parsedOutput.body;
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
$metadata,
|
|
495
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
496
|
+
output,
|
|
497
|
+
parsedBody,
|
|
498
|
+
exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
|
|
499
|
+
errorCode,
|
|
508
500
|
});
|
|
509
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
510
501
|
}
|
|
511
502
|
};
|
|
512
503
|
const deserializeAws_json1_1CreateClusterCommand = async (output, context) => {
|
|
@@ -528,7 +519,6 @@ const deserializeAws_json1_1CreateClusterCommandError = async (output, context)
|
|
|
528
519
|
...output,
|
|
529
520
|
body: await parseBody(output.body, context),
|
|
530
521
|
};
|
|
531
|
-
let response;
|
|
532
522
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
533
523
|
switch (errorCode) {
|
|
534
524
|
case "ACLNotFoundFault":
|
|
@@ -581,14 +571,12 @@ const deserializeAws_json1_1CreateClusterCommandError = async (output, context)
|
|
|
581
571
|
throw await deserializeAws_json1_1TagQuotaPerResourceExceededResponse(parsedOutput, context);
|
|
582
572
|
default:
|
|
583
573
|
const parsedBody = parsedOutput.body;
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
$metadata,
|
|
574
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
575
|
+
output,
|
|
576
|
+
parsedBody,
|
|
577
|
+
exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
|
|
578
|
+
errorCode,
|
|
590
579
|
});
|
|
591
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
592
580
|
}
|
|
593
581
|
};
|
|
594
582
|
const deserializeAws_json1_1CreateParameterGroupCommand = async (output, context) => {
|
|
@@ -610,7 +598,6 @@ const deserializeAws_json1_1CreateParameterGroupCommandError = async (output, co
|
|
|
610
598
|
...output,
|
|
611
599
|
body: await parseBody(output.body, context),
|
|
612
600
|
};
|
|
613
|
-
let response;
|
|
614
601
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
615
602
|
switch (errorCode) {
|
|
616
603
|
case "InvalidParameterCombinationException":
|
|
@@ -636,14 +623,12 @@ const deserializeAws_json1_1CreateParameterGroupCommandError = async (output, co
|
|
|
636
623
|
throw await deserializeAws_json1_1TagQuotaPerResourceExceededResponse(parsedOutput, context);
|
|
637
624
|
default:
|
|
638
625
|
const parsedBody = parsedOutput.body;
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
$metadata,
|
|
626
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
627
|
+
output,
|
|
628
|
+
parsedBody,
|
|
629
|
+
exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
|
|
630
|
+
errorCode,
|
|
645
631
|
});
|
|
646
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
647
632
|
}
|
|
648
633
|
};
|
|
649
634
|
const deserializeAws_json1_1CreateSnapshotCommand = async (output, context) => {
|
|
@@ -665,7 +650,6 @@ const deserializeAws_json1_1CreateSnapshotCommandError = async (output, context)
|
|
|
665
650
|
...output,
|
|
666
651
|
body: await parseBody(output.body, context),
|
|
667
652
|
};
|
|
668
|
-
let response;
|
|
669
653
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
670
654
|
switch (errorCode) {
|
|
671
655
|
case "ClusterNotFoundFault":
|
|
@@ -694,14 +678,12 @@ const deserializeAws_json1_1CreateSnapshotCommandError = async (output, context)
|
|
|
694
678
|
throw await deserializeAws_json1_1TagQuotaPerResourceExceededResponse(parsedOutput, context);
|
|
695
679
|
default:
|
|
696
680
|
const parsedBody = parsedOutput.body;
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
$metadata,
|
|
681
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
682
|
+
output,
|
|
683
|
+
parsedBody,
|
|
684
|
+
exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
|
|
685
|
+
errorCode,
|
|
703
686
|
});
|
|
704
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
705
687
|
}
|
|
706
688
|
};
|
|
707
689
|
const deserializeAws_json1_1CreateSubnetGroupCommand = async (output, context) => {
|
|
@@ -723,7 +705,6 @@ const deserializeAws_json1_1CreateSubnetGroupCommandError = async (output, conte
|
|
|
723
705
|
...output,
|
|
724
706
|
body: await parseBody(output.body, context),
|
|
725
707
|
};
|
|
726
|
-
let response;
|
|
727
708
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
728
709
|
switch (errorCode) {
|
|
729
710
|
case "InvalidSubnet":
|
|
@@ -749,14 +730,12 @@ const deserializeAws_json1_1CreateSubnetGroupCommandError = async (output, conte
|
|
|
749
730
|
throw await deserializeAws_json1_1TagQuotaPerResourceExceededResponse(parsedOutput, context);
|
|
750
731
|
default:
|
|
751
732
|
const parsedBody = parsedOutput.body;
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
$metadata,
|
|
733
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
734
|
+
output,
|
|
735
|
+
parsedBody,
|
|
736
|
+
exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
|
|
737
|
+
errorCode,
|
|
758
738
|
});
|
|
759
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
760
739
|
}
|
|
761
740
|
};
|
|
762
741
|
const deserializeAws_json1_1CreateUserCommand = async (output, context) => {
|
|
@@ -778,7 +757,6 @@ const deserializeAws_json1_1CreateUserCommandError = async (output, context) =>
|
|
|
778
757
|
...output,
|
|
779
758
|
body: await parseBody(output.body, context),
|
|
780
759
|
};
|
|
781
|
-
let response;
|
|
782
760
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
783
761
|
switch (errorCode) {
|
|
784
762
|
case "DuplicateUserNameFault":
|
|
@@ -801,14 +779,12 @@ const deserializeAws_json1_1CreateUserCommandError = async (output, context) =>
|
|
|
801
779
|
throw await deserializeAws_json1_1UserQuotaExceededFaultResponse(parsedOutput, context);
|
|
802
780
|
default:
|
|
803
781
|
const parsedBody = parsedOutput.body;
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
$metadata,
|
|
782
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
783
|
+
output,
|
|
784
|
+
parsedBody,
|
|
785
|
+
exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
|
|
786
|
+
errorCode,
|
|
810
787
|
});
|
|
811
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
812
788
|
}
|
|
813
789
|
};
|
|
814
790
|
const deserializeAws_json1_1DeleteACLCommand = async (output, context) => {
|
|
@@ -830,7 +806,6 @@ const deserializeAws_json1_1DeleteACLCommandError = async (output, context) => {
|
|
|
830
806
|
...output,
|
|
831
807
|
body: await parseBody(output.body, context),
|
|
832
808
|
};
|
|
833
|
-
let response;
|
|
834
809
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
835
810
|
switch (errorCode) {
|
|
836
811
|
case "ACLNotFoundFault":
|
|
@@ -844,14 +819,12 @@ const deserializeAws_json1_1DeleteACLCommandError = async (output, context) => {
|
|
|
844
819
|
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
845
820
|
default:
|
|
846
821
|
const parsedBody = parsedOutput.body;
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
$metadata,
|
|
822
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
823
|
+
output,
|
|
824
|
+
parsedBody,
|
|
825
|
+
exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
|
|
826
|
+
errorCode,
|
|
853
827
|
});
|
|
854
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
855
828
|
}
|
|
856
829
|
};
|
|
857
830
|
const deserializeAws_json1_1DeleteClusterCommand = async (output, context) => {
|
|
@@ -873,7 +846,6 @@ const deserializeAws_json1_1DeleteClusterCommandError = async (output, context)
|
|
|
873
846
|
...output,
|
|
874
847
|
body: await parseBody(output.body, context),
|
|
875
848
|
};
|
|
876
|
-
let response;
|
|
877
849
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
878
850
|
switch (errorCode) {
|
|
879
851
|
case "ClusterNotFoundFault":
|
|
@@ -896,14 +868,12 @@ const deserializeAws_json1_1DeleteClusterCommandError = async (output, context)
|
|
|
896
868
|
throw await deserializeAws_json1_1SnapshotAlreadyExistsFaultResponse(parsedOutput, context);
|
|
897
869
|
default:
|
|
898
870
|
const parsedBody = parsedOutput.body;
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
$metadata,
|
|
871
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
872
|
+
output,
|
|
873
|
+
parsedBody,
|
|
874
|
+
exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
|
|
875
|
+
errorCode,
|
|
905
876
|
});
|
|
906
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
907
877
|
}
|
|
908
878
|
};
|
|
909
879
|
const deserializeAws_json1_1DeleteParameterGroupCommand = async (output, context) => {
|
|
@@ -925,7 +895,6 @@ const deserializeAws_json1_1DeleteParameterGroupCommandError = async (output, co
|
|
|
925
895
|
...output,
|
|
926
896
|
body: await parseBody(output.body, context),
|
|
927
897
|
};
|
|
928
|
-
let response;
|
|
929
898
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
930
899
|
switch (errorCode) {
|
|
931
900
|
case "InvalidParameterCombinationException":
|
|
@@ -945,14 +914,12 @@ const deserializeAws_json1_1DeleteParameterGroupCommandError = async (output, co
|
|
|
945
914
|
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
946
915
|
default:
|
|
947
916
|
const parsedBody = parsedOutput.body;
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
$metadata,
|
|
917
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
918
|
+
output,
|
|
919
|
+
parsedBody,
|
|
920
|
+
exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
|
|
921
|
+
errorCode,
|
|
954
922
|
});
|
|
955
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
956
923
|
}
|
|
957
924
|
};
|
|
958
925
|
const deserializeAws_json1_1DeleteSnapshotCommand = async (output, context) => {
|
|
@@ -974,7 +941,6 @@ const deserializeAws_json1_1DeleteSnapshotCommandError = async (output, context)
|
|
|
974
941
|
...output,
|
|
975
942
|
body: await parseBody(output.body, context),
|
|
976
943
|
};
|
|
977
|
-
let response;
|
|
978
944
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
979
945
|
switch (errorCode) {
|
|
980
946
|
case "InvalidParameterCombinationException":
|
|
@@ -994,14 +960,12 @@ const deserializeAws_json1_1DeleteSnapshotCommandError = async (output, context)
|
|
|
994
960
|
throw await deserializeAws_json1_1SnapshotNotFoundFaultResponse(parsedOutput, context);
|
|
995
961
|
default:
|
|
996
962
|
const parsedBody = parsedOutput.body;
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
$metadata,
|
|
963
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
964
|
+
output,
|
|
965
|
+
parsedBody,
|
|
966
|
+
exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
|
|
967
|
+
errorCode,
|
|
1003
968
|
});
|
|
1004
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1005
969
|
}
|
|
1006
970
|
};
|
|
1007
971
|
const deserializeAws_json1_1DeleteSubnetGroupCommand = async (output, context) => {
|
|
@@ -1023,7 +987,6 @@ const deserializeAws_json1_1DeleteSubnetGroupCommandError = async (output, conte
|
|
|
1023
987
|
...output,
|
|
1024
988
|
body: await parseBody(output.body, context),
|
|
1025
989
|
};
|
|
1026
|
-
let response;
|
|
1027
990
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1028
991
|
switch (errorCode) {
|
|
1029
992
|
case "ServiceLinkedRoleNotFoundFault":
|
|
@@ -1037,14 +1000,12 @@ const deserializeAws_json1_1DeleteSubnetGroupCommandError = async (output, conte
|
|
|
1037
1000
|
throw await deserializeAws_json1_1SubnetGroupNotFoundFaultResponse(parsedOutput, context);
|
|
1038
1001
|
default:
|
|
1039
1002
|
const parsedBody = parsedOutput.body;
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
$metadata,
|
|
1003
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1004
|
+
output,
|
|
1005
|
+
parsedBody,
|
|
1006
|
+
exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
|
|
1007
|
+
errorCode,
|
|
1046
1008
|
});
|
|
1047
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1048
1009
|
}
|
|
1049
1010
|
};
|
|
1050
1011
|
const deserializeAws_json1_1DeleteUserCommand = async (output, context) => {
|
|
@@ -1066,7 +1027,6 @@ const deserializeAws_json1_1DeleteUserCommandError = async (output, context) =>
|
|
|
1066
1027
|
...output,
|
|
1067
1028
|
body: await parseBody(output.body, context),
|
|
1068
1029
|
};
|
|
1069
|
-
let response;
|
|
1070
1030
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1071
1031
|
switch (errorCode) {
|
|
1072
1032
|
case "InvalidParameterValueException":
|
|
@@ -1080,14 +1040,12 @@ const deserializeAws_json1_1DeleteUserCommandError = async (output, context) =>
|
|
|
1080
1040
|
throw await deserializeAws_json1_1UserNotFoundFaultResponse(parsedOutput, context);
|
|
1081
1041
|
default:
|
|
1082
1042
|
const parsedBody = parsedOutput.body;
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
$metadata,
|
|
1043
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1044
|
+
output,
|
|
1045
|
+
parsedBody,
|
|
1046
|
+
exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
|
|
1047
|
+
errorCode,
|
|
1089
1048
|
});
|
|
1090
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1091
1049
|
}
|
|
1092
1050
|
};
|
|
1093
1051
|
const deserializeAws_json1_1DescribeACLsCommand = async (output, context) => {
|
|
@@ -1109,7 +1067,6 @@ const deserializeAws_json1_1DescribeACLsCommandError = async (output, context) =
|
|
|
1109
1067
|
...output,
|
|
1110
1068
|
body: await parseBody(output.body, context),
|
|
1111
1069
|
};
|
|
1112
|
-
let response;
|
|
1113
1070
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1114
1071
|
switch (errorCode) {
|
|
1115
1072
|
case "ACLNotFoundFault":
|
|
@@ -1120,14 +1077,12 @@ const deserializeAws_json1_1DescribeACLsCommandError = async (output, context) =
|
|
|
1120
1077
|
throw await deserializeAws_json1_1InvalidParameterCombinationExceptionResponse(parsedOutput, context);
|
|
1121
1078
|
default:
|
|
1122
1079
|
const parsedBody = parsedOutput.body;
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
$metadata,
|
|
1080
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1081
|
+
output,
|
|
1082
|
+
parsedBody,
|
|
1083
|
+
exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
|
|
1084
|
+
errorCode,
|
|
1129
1085
|
});
|
|
1130
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1131
1086
|
}
|
|
1132
1087
|
};
|
|
1133
1088
|
const deserializeAws_json1_1DescribeClustersCommand = async (output, context) => {
|
|
@@ -1149,7 +1104,6 @@ const deserializeAws_json1_1DescribeClustersCommandError = async (output, contex
|
|
|
1149
1104
|
...output,
|
|
1150
1105
|
body: await parseBody(output.body, context),
|
|
1151
1106
|
};
|
|
1152
|
-
let response;
|
|
1153
1107
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1154
1108
|
switch (errorCode) {
|
|
1155
1109
|
case "ClusterNotFoundFault":
|
|
@@ -1166,14 +1120,12 @@ const deserializeAws_json1_1DescribeClustersCommandError = async (output, contex
|
|
|
1166
1120
|
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
1167
1121
|
default:
|
|
1168
1122
|
const parsedBody = parsedOutput.body;
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
$metadata,
|
|
1123
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1124
|
+
output,
|
|
1125
|
+
parsedBody,
|
|
1126
|
+
exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
|
|
1127
|
+
errorCode,
|
|
1175
1128
|
});
|
|
1176
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1177
1129
|
}
|
|
1178
1130
|
};
|
|
1179
1131
|
const deserializeAws_json1_1DescribeEngineVersionsCommand = async (output, context) => {
|
|
@@ -1195,7 +1147,6 @@ const deserializeAws_json1_1DescribeEngineVersionsCommandError = async (output,
|
|
|
1195
1147
|
...output,
|
|
1196
1148
|
body: await parseBody(output.body, context),
|
|
1197
1149
|
};
|
|
1198
|
-
let response;
|
|
1199
1150
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1200
1151
|
switch (errorCode) {
|
|
1201
1152
|
case "InvalidParameterCombinationException":
|
|
@@ -1209,14 +1160,12 @@ const deserializeAws_json1_1DescribeEngineVersionsCommandError = async (output,
|
|
|
1209
1160
|
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
1210
1161
|
default:
|
|
1211
1162
|
const parsedBody = parsedOutput.body;
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
$metadata,
|
|
1163
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1164
|
+
output,
|
|
1165
|
+
parsedBody,
|
|
1166
|
+
exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
|
|
1167
|
+
errorCode,
|
|
1218
1168
|
});
|
|
1219
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1220
1169
|
}
|
|
1221
1170
|
};
|
|
1222
1171
|
const deserializeAws_json1_1DescribeEventsCommand = async (output, context) => {
|
|
@@ -1238,7 +1187,6 @@ const deserializeAws_json1_1DescribeEventsCommandError = async (output, context)
|
|
|
1238
1187
|
...output,
|
|
1239
1188
|
body: await parseBody(output.body, context),
|
|
1240
1189
|
};
|
|
1241
|
-
let response;
|
|
1242
1190
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1243
1191
|
switch (errorCode) {
|
|
1244
1192
|
case "InvalidParameterCombinationException":
|
|
@@ -1252,14 +1200,12 @@ const deserializeAws_json1_1DescribeEventsCommandError = async (output, context)
|
|
|
1252
1200
|
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
1253
1201
|
default:
|
|
1254
1202
|
const parsedBody = parsedOutput.body;
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
$metadata,
|
|
1203
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1204
|
+
output,
|
|
1205
|
+
parsedBody,
|
|
1206
|
+
exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
|
|
1207
|
+
errorCode,
|
|
1261
1208
|
});
|
|
1262
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1263
1209
|
}
|
|
1264
1210
|
};
|
|
1265
1211
|
const deserializeAws_json1_1DescribeParameterGroupsCommand = async (output, context) => {
|
|
@@ -1281,7 +1227,6 @@ const deserializeAws_json1_1DescribeParameterGroupsCommandError = async (output,
|
|
|
1281
1227
|
...output,
|
|
1282
1228
|
body: await parseBody(output.body, context),
|
|
1283
1229
|
};
|
|
1284
|
-
let response;
|
|
1285
1230
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1286
1231
|
switch (errorCode) {
|
|
1287
1232
|
case "InvalidParameterCombinationException":
|
|
@@ -1298,14 +1243,12 @@ const deserializeAws_json1_1DescribeParameterGroupsCommandError = async (output,
|
|
|
1298
1243
|
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
1299
1244
|
default:
|
|
1300
1245
|
const parsedBody = parsedOutput.body;
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
$metadata,
|
|
1246
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1247
|
+
output,
|
|
1248
|
+
parsedBody,
|
|
1249
|
+
exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
|
|
1250
|
+
errorCode,
|
|
1307
1251
|
});
|
|
1308
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1309
1252
|
}
|
|
1310
1253
|
};
|
|
1311
1254
|
const deserializeAws_json1_1DescribeParametersCommand = async (output, context) => {
|
|
@@ -1327,7 +1270,6 @@ const deserializeAws_json1_1DescribeParametersCommandError = async (output, cont
|
|
|
1327
1270
|
...output,
|
|
1328
1271
|
body: await parseBody(output.body, context),
|
|
1329
1272
|
};
|
|
1330
|
-
let response;
|
|
1331
1273
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1332
1274
|
switch (errorCode) {
|
|
1333
1275
|
case "InvalidParameterCombinationException":
|
|
@@ -1344,14 +1286,12 @@ const deserializeAws_json1_1DescribeParametersCommandError = async (output, cont
|
|
|
1344
1286
|
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
1345
1287
|
default:
|
|
1346
1288
|
const parsedBody = parsedOutput.body;
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
$metadata,
|
|
1289
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1290
|
+
output,
|
|
1291
|
+
parsedBody,
|
|
1292
|
+
exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
|
|
1293
|
+
errorCode,
|
|
1353
1294
|
});
|
|
1354
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1355
1295
|
}
|
|
1356
1296
|
};
|
|
1357
1297
|
const deserializeAws_json1_1DescribeServiceUpdatesCommand = async (output, context) => {
|
|
@@ -1373,7 +1313,6 @@ const deserializeAws_json1_1DescribeServiceUpdatesCommandError = async (output,
|
|
|
1373
1313
|
...output,
|
|
1374
1314
|
body: await parseBody(output.body, context),
|
|
1375
1315
|
};
|
|
1376
|
-
let response;
|
|
1377
1316
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1378
1317
|
switch (errorCode) {
|
|
1379
1318
|
case "InvalidParameterCombinationException":
|
|
@@ -1384,14 +1323,12 @@ const deserializeAws_json1_1DescribeServiceUpdatesCommandError = async (output,
|
|
|
1384
1323
|
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
1385
1324
|
default:
|
|
1386
1325
|
const parsedBody = parsedOutput.body;
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
$metadata,
|
|
1326
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1327
|
+
output,
|
|
1328
|
+
parsedBody,
|
|
1329
|
+
exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
|
|
1330
|
+
errorCode,
|
|
1393
1331
|
});
|
|
1394
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1395
1332
|
}
|
|
1396
1333
|
};
|
|
1397
1334
|
const deserializeAws_json1_1DescribeSnapshotsCommand = async (output, context) => {
|
|
@@ -1413,7 +1350,6 @@ const deserializeAws_json1_1DescribeSnapshotsCommandError = async (output, conte
|
|
|
1413
1350
|
...output,
|
|
1414
1351
|
body: await parseBody(output.body, context),
|
|
1415
1352
|
};
|
|
1416
|
-
let response;
|
|
1417
1353
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1418
1354
|
switch (errorCode) {
|
|
1419
1355
|
case "InvalidParameterCombinationException":
|
|
@@ -1430,14 +1366,12 @@ const deserializeAws_json1_1DescribeSnapshotsCommandError = async (output, conte
|
|
|
1430
1366
|
throw await deserializeAws_json1_1SnapshotNotFoundFaultResponse(parsedOutput, context);
|
|
1431
1367
|
default:
|
|
1432
1368
|
const parsedBody = parsedOutput.body;
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
$metadata,
|
|
1369
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1370
|
+
output,
|
|
1371
|
+
parsedBody,
|
|
1372
|
+
exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
|
|
1373
|
+
errorCode,
|
|
1439
1374
|
});
|
|
1440
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1441
1375
|
}
|
|
1442
1376
|
};
|
|
1443
1377
|
const deserializeAws_json1_1DescribeSubnetGroupsCommand = async (output, context) => {
|
|
@@ -1459,7 +1393,6 @@ const deserializeAws_json1_1DescribeSubnetGroupsCommandError = async (output, co
|
|
|
1459
1393
|
...output,
|
|
1460
1394
|
body: await parseBody(output.body, context),
|
|
1461
1395
|
};
|
|
1462
|
-
let response;
|
|
1463
1396
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1464
1397
|
switch (errorCode) {
|
|
1465
1398
|
case "ServiceLinkedRoleNotFoundFault":
|
|
@@ -1470,14 +1403,12 @@ const deserializeAws_json1_1DescribeSubnetGroupsCommandError = async (output, co
|
|
|
1470
1403
|
throw await deserializeAws_json1_1SubnetGroupNotFoundFaultResponse(parsedOutput, context);
|
|
1471
1404
|
default:
|
|
1472
1405
|
const parsedBody = parsedOutput.body;
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
$metadata,
|
|
1406
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1407
|
+
output,
|
|
1408
|
+
parsedBody,
|
|
1409
|
+
exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
|
|
1410
|
+
errorCode,
|
|
1479
1411
|
});
|
|
1480
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1481
1412
|
}
|
|
1482
1413
|
};
|
|
1483
1414
|
const deserializeAws_json1_1DescribeUsersCommand = async (output, context) => {
|
|
@@ -1499,7 +1430,6 @@ const deserializeAws_json1_1DescribeUsersCommandError = async (output, context)
|
|
|
1499
1430
|
...output,
|
|
1500
1431
|
body: await parseBody(output.body, context),
|
|
1501
1432
|
};
|
|
1502
|
-
let response;
|
|
1503
1433
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1504
1434
|
switch (errorCode) {
|
|
1505
1435
|
case "InvalidParameterCombinationException":
|
|
@@ -1510,14 +1440,12 @@ const deserializeAws_json1_1DescribeUsersCommandError = async (output, context)
|
|
|
1510
1440
|
throw await deserializeAws_json1_1UserNotFoundFaultResponse(parsedOutput, context);
|
|
1511
1441
|
default:
|
|
1512
1442
|
const parsedBody = parsedOutput.body;
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
$metadata,
|
|
1443
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1444
|
+
output,
|
|
1445
|
+
parsedBody,
|
|
1446
|
+
exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
|
|
1447
|
+
errorCode,
|
|
1519
1448
|
});
|
|
1520
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1521
1449
|
}
|
|
1522
1450
|
};
|
|
1523
1451
|
const deserializeAws_json1_1FailoverShardCommand = async (output, context) => {
|
|
@@ -1539,7 +1467,6 @@ const deserializeAws_json1_1FailoverShardCommandError = async (output, context)
|
|
|
1539
1467
|
...output,
|
|
1540
1468
|
body: await parseBody(output.body, context),
|
|
1541
1469
|
};
|
|
1542
|
-
let response;
|
|
1543
1470
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1544
1471
|
switch (errorCode) {
|
|
1545
1472
|
case "APICallRateForCustomerExceededFault":
|
|
@@ -1568,14 +1495,12 @@ const deserializeAws_json1_1FailoverShardCommandError = async (output, context)
|
|
|
1568
1495
|
throw await deserializeAws_json1_1TestFailoverNotAvailableFaultResponse(parsedOutput, context);
|
|
1569
1496
|
default:
|
|
1570
1497
|
const parsedBody = parsedOutput.body;
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
$metadata,
|
|
1498
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1499
|
+
output,
|
|
1500
|
+
parsedBody,
|
|
1501
|
+
exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
|
|
1502
|
+
errorCode,
|
|
1577
1503
|
});
|
|
1578
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1579
1504
|
}
|
|
1580
1505
|
};
|
|
1581
1506
|
const deserializeAws_json1_1ListAllowedNodeTypeUpdatesCommand = async (output, context) => {
|
|
@@ -1597,7 +1522,6 @@ const deserializeAws_json1_1ListAllowedNodeTypeUpdatesCommandError = async (outp
|
|
|
1597
1522
|
...output,
|
|
1598
1523
|
body: await parseBody(output.body, context),
|
|
1599
1524
|
};
|
|
1600
|
-
let response;
|
|
1601
1525
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1602
1526
|
switch (errorCode) {
|
|
1603
1527
|
case "ClusterNotFoundFault":
|
|
@@ -1614,14 +1538,12 @@ const deserializeAws_json1_1ListAllowedNodeTypeUpdatesCommandError = async (outp
|
|
|
1614
1538
|
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
1615
1539
|
default:
|
|
1616
1540
|
const parsedBody = parsedOutput.body;
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
$metadata,
|
|
1541
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1542
|
+
output,
|
|
1543
|
+
parsedBody,
|
|
1544
|
+
exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
|
|
1545
|
+
errorCode,
|
|
1623
1546
|
});
|
|
1624
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1625
1547
|
}
|
|
1626
1548
|
};
|
|
1627
1549
|
const deserializeAws_json1_1ListTagsCommand = async (output, context) => {
|
|
@@ -1643,7 +1565,6 @@ const deserializeAws_json1_1ListTagsCommandError = async (output, context) => {
|
|
|
1643
1565
|
...output,
|
|
1644
1566
|
body: await parseBody(output.body, context),
|
|
1645
1567
|
};
|
|
1646
|
-
let response;
|
|
1647
1568
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1648
1569
|
switch (errorCode) {
|
|
1649
1570
|
case "ACLNotFoundFault":
|
|
@@ -1675,14 +1596,12 @@ const deserializeAws_json1_1ListTagsCommandError = async (output, context) => {
|
|
|
1675
1596
|
throw await deserializeAws_json1_1UserNotFoundFaultResponse(parsedOutput, context);
|
|
1676
1597
|
default:
|
|
1677
1598
|
const parsedBody = parsedOutput.body;
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
$metadata,
|
|
1599
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1600
|
+
output,
|
|
1601
|
+
parsedBody,
|
|
1602
|
+
exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
|
|
1603
|
+
errorCode,
|
|
1684
1604
|
});
|
|
1685
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1686
1605
|
}
|
|
1687
1606
|
};
|
|
1688
1607
|
const deserializeAws_json1_1ResetParameterGroupCommand = async (output, context) => {
|
|
@@ -1704,7 +1623,6 @@ const deserializeAws_json1_1ResetParameterGroupCommandError = async (output, con
|
|
|
1704
1623
|
...output,
|
|
1705
1624
|
body: await parseBody(output.body, context),
|
|
1706
1625
|
};
|
|
1707
|
-
let response;
|
|
1708
1626
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1709
1627
|
switch (errorCode) {
|
|
1710
1628
|
case "InvalidParameterCombinationException":
|
|
@@ -1724,14 +1642,12 @@ const deserializeAws_json1_1ResetParameterGroupCommandError = async (output, con
|
|
|
1724
1642
|
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
1725
1643
|
default:
|
|
1726
1644
|
const parsedBody = parsedOutput.body;
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
$metadata,
|
|
1645
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1646
|
+
output,
|
|
1647
|
+
parsedBody,
|
|
1648
|
+
exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
|
|
1649
|
+
errorCode,
|
|
1733
1650
|
});
|
|
1734
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1735
1651
|
}
|
|
1736
1652
|
};
|
|
1737
1653
|
const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
@@ -1753,7 +1669,6 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
1753
1669
|
...output,
|
|
1754
1670
|
body: await parseBody(output.body, context),
|
|
1755
1671
|
};
|
|
1756
|
-
let response;
|
|
1757
1672
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1758
1673
|
switch (errorCode) {
|
|
1759
1674
|
case "ACLNotFoundFault":
|
|
@@ -1788,14 +1703,12 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
1788
1703
|
throw await deserializeAws_json1_1UserNotFoundFaultResponse(parsedOutput, context);
|
|
1789
1704
|
default:
|
|
1790
1705
|
const parsedBody = parsedOutput.body;
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
$metadata,
|
|
1706
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1707
|
+
output,
|
|
1708
|
+
parsedBody,
|
|
1709
|
+
exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
|
|
1710
|
+
errorCode,
|
|
1797
1711
|
});
|
|
1798
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1799
1712
|
}
|
|
1800
1713
|
};
|
|
1801
1714
|
const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
@@ -1817,7 +1730,6 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1817
1730
|
...output,
|
|
1818
1731
|
body: await parseBody(output.body, context),
|
|
1819
1732
|
};
|
|
1820
|
-
let response;
|
|
1821
1733
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1822
1734
|
switch (errorCode) {
|
|
1823
1735
|
case "ACLNotFoundFault":
|
|
@@ -1852,14 +1764,12 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1852
1764
|
throw await deserializeAws_json1_1UserNotFoundFaultResponse(parsedOutput, context);
|
|
1853
1765
|
default:
|
|
1854
1766
|
const parsedBody = parsedOutput.body;
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
$metadata,
|
|
1767
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1768
|
+
output,
|
|
1769
|
+
parsedBody,
|
|
1770
|
+
exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
|
|
1771
|
+
errorCode,
|
|
1861
1772
|
});
|
|
1862
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1863
1773
|
}
|
|
1864
1774
|
};
|
|
1865
1775
|
const deserializeAws_json1_1UpdateACLCommand = async (output, context) => {
|
|
@@ -1881,7 +1791,6 @@ const deserializeAws_json1_1UpdateACLCommandError = async (output, context) => {
|
|
|
1881
1791
|
...output,
|
|
1882
1792
|
body: await parseBody(output.body, context),
|
|
1883
1793
|
};
|
|
1884
|
-
let response;
|
|
1885
1794
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1886
1795
|
switch (errorCode) {
|
|
1887
1796
|
case "ACLNotFoundFault":
|
|
@@ -1907,14 +1816,12 @@ const deserializeAws_json1_1UpdateACLCommandError = async (output, context) => {
|
|
|
1907
1816
|
throw await deserializeAws_json1_1UserNotFoundFaultResponse(parsedOutput, context);
|
|
1908
1817
|
default:
|
|
1909
1818
|
const parsedBody = parsedOutput.body;
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
$metadata,
|
|
1819
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1820
|
+
output,
|
|
1821
|
+
parsedBody,
|
|
1822
|
+
exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
|
|
1823
|
+
errorCode,
|
|
1916
1824
|
});
|
|
1917
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1918
1825
|
}
|
|
1919
1826
|
};
|
|
1920
1827
|
const deserializeAws_json1_1UpdateClusterCommand = async (output, context) => {
|
|
@@ -1936,7 +1843,6 @@ const deserializeAws_json1_1UpdateClusterCommandError = async (output, context)
|
|
|
1936
1843
|
...output,
|
|
1937
1844
|
body: await parseBody(output.body, context),
|
|
1938
1845
|
};
|
|
1939
|
-
let response;
|
|
1940
1846
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1941
1847
|
switch (errorCode) {
|
|
1942
1848
|
case "ACLNotFoundFault":
|
|
@@ -1989,14 +1895,12 @@ const deserializeAws_json1_1UpdateClusterCommandError = async (output, context)
|
|
|
1989
1895
|
throw await deserializeAws_json1_1ShardsPerClusterQuotaExceededFaultResponse(parsedOutput, context);
|
|
1990
1896
|
default:
|
|
1991
1897
|
const parsedBody = parsedOutput.body;
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
$metadata,
|
|
1898
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1899
|
+
output,
|
|
1900
|
+
parsedBody,
|
|
1901
|
+
exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
|
|
1902
|
+
errorCode,
|
|
1998
1903
|
});
|
|
1999
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2000
1904
|
}
|
|
2001
1905
|
};
|
|
2002
1906
|
const deserializeAws_json1_1UpdateParameterGroupCommand = async (output, context) => {
|
|
@@ -2018,7 +1922,6 @@ const deserializeAws_json1_1UpdateParameterGroupCommandError = async (output, co
|
|
|
2018
1922
|
...output,
|
|
2019
1923
|
body: await parseBody(output.body, context),
|
|
2020
1924
|
};
|
|
2021
|
-
let response;
|
|
2022
1925
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2023
1926
|
switch (errorCode) {
|
|
2024
1927
|
case "InvalidParameterCombinationException":
|
|
@@ -2038,14 +1941,12 @@ const deserializeAws_json1_1UpdateParameterGroupCommandError = async (output, co
|
|
|
2038
1941
|
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
2039
1942
|
default:
|
|
2040
1943
|
const parsedBody = parsedOutput.body;
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
$metadata,
|
|
1944
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1945
|
+
output,
|
|
1946
|
+
parsedBody,
|
|
1947
|
+
exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
|
|
1948
|
+
errorCode,
|
|
2047
1949
|
});
|
|
2048
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2049
1950
|
}
|
|
2050
1951
|
};
|
|
2051
1952
|
const deserializeAws_json1_1UpdateSubnetGroupCommand = async (output, context) => {
|
|
@@ -2067,7 +1968,6 @@ const deserializeAws_json1_1UpdateSubnetGroupCommandError = async (output, conte
|
|
|
2067
1968
|
...output,
|
|
2068
1969
|
body: await parseBody(output.body, context),
|
|
2069
1970
|
};
|
|
2070
|
-
let response;
|
|
2071
1971
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2072
1972
|
switch (errorCode) {
|
|
2073
1973
|
case "InvalidSubnet":
|
|
@@ -2090,14 +1990,12 @@ const deserializeAws_json1_1UpdateSubnetGroupCommandError = async (output, conte
|
|
|
2090
1990
|
throw await deserializeAws_json1_1SubnetQuotaExceededFaultResponse(parsedOutput, context);
|
|
2091
1991
|
default:
|
|
2092
1992
|
const parsedBody = parsedOutput.body;
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
$metadata,
|
|
1993
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1994
|
+
output,
|
|
1995
|
+
parsedBody,
|
|
1996
|
+
exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
|
|
1997
|
+
errorCode,
|
|
2099
1998
|
});
|
|
2100
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2101
1999
|
}
|
|
2102
2000
|
};
|
|
2103
2001
|
const deserializeAws_json1_1UpdateUserCommand = async (output, context) => {
|
|
@@ -2119,7 +2017,6 @@ const deserializeAws_json1_1UpdateUserCommandError = async (output, context) =>
|
|
|
2119
2017
|
...output,
|
|
2120
2018
|
body: await parseBody(output.body, context),
|
|
2121
2019
|
};
|
|
2122
|
-
let response;
|
|
2123
2020
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2124
2021
|
switch (errorCode) {
|
|
2125
2022
|
case "InvalidParameterCombinationException":
|
|
@@ -2136,14 +2033,12 @@ const deserializeAws_json1_1UpdateUserCommandError = async (output, context) =>
|
|
|
2136
2033
|
throw await deserializeAws_json1_1UserNotFoundFaultResponse(parsedOutput, context);
|
|
2137
2034
|
default:
|
|
2138
2035
|
const parsedBody = parsedOutput.body;
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
$metadata,
|
|
2036
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2037
|
+
output,
|
|
2038
|
+
parsedBody,
|
|
2039
|
+
exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
|
|
2040
|
+
errorCode,
|
|
2145
2041
|
});
|
|
2146
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2147
2042
|
}
|
|
2148
2043
|
};
|
|
2149
2044
|
const deserializeAws_json1_1ACLAlreadyExistsFaultResponse = async (parsedOutput, context) => {
|
|
@@ -2607,9 +2502,6 @@ const serializeAws_json1_1ClusterNameList = (input, context) => {
|
|
|
2607
2502
|
return input
|
|
2608
2503
|
.filter((e) => e != null)
|
|
2609
2504
|
.map((entry) => {
|
|
2610
|
-
if (entry === null) {
|
|
2611
|
-
return null;
|
|
2612
|
-
}
|
|
2613
2505
|
return entry;
|
|
2614
2506
|
});
|
|
2615
2507
|
};
|
|
@@ -2824,9 +2716,6 @@ const serializeAws_json1_1FilterList = (input, context) => {
|
|
|
2824
2716
|
return input
|
|
2825
2717
|
.filter((e) => e != null)
|
|
2826
2718
|
.map((entry) => {
|
|
2827
|
-
if (entry === null) {
|
|
2828
|
-
return null;
|
|
2829
|
-
}
|
|
2830
2719
|
return serializeAws_json1_1Filter(entry, context);
|
|
2831
2720
|
});
|
|
2832
2721
|
};
|
|
@@ -2834,9 +2723,6 @@ const serializeAws_json1_1FilterValueList = (input, context) => {
|
|
|
2834
2723
|
return input
|
|
2835
2724
|
.filter((e) => e != null)
|
|
2836
2725
|
.map((entry) => {
|
|
2837
|
-
if (entry === null) {
|
|
2838
|
-
return null;
|
|
2839
|
-
}
|
|
2840
2726
|
return entry;
|
|
2841
2727
|
});
|
|
2842
2728
|
};
|
|
@@ -2844,9 +2730,6 @@ const serializeAws_json1_1KeyList = (input, context) => {
|
|
|
2844
2730
|
return input
|
|
2845
2731
|
.filter((e) => e != null)
|
|
2846
2732
|
.map((entry) => {
|
|
2847
|
-
if (entry === null) {
|
|
2848
|
-
return null;
|
|
2849
|
-
}
|
|
2850
2733
|
return entry;
|
|
2851
2734
|
});
|
|
2852
2735
|
};
|
|
@@ -2864,9 +2747,6 @@ const serializeAws_json1_1ParameterNameList = (input, context) => {
|
|
|
2864
2747
|
return input
|
|
2865
2748
|
.filter((e) => e != null)
|
|
2866
2749
|
.map((entry) => {
|
|
2867
|
-
if (entry === null) {
|
|
2868
|
-
return null;
|
|
2869
|
-
}
|
|
2870
2750
|
return entry;
|
|
2871
2751
|
});
|
|
2872
2752
|
};
|
|
@@ -2880,9 +2760,6 @@ const serializeAws_json1_1ParameterNameValueList = (input, context) => {
|
|
|
2880
2760
|
return input
|
|
2881
2761
|
.filter((e) => e != null)
|
|
2882
2762
|
.map((entry) => {
|
|
2883
|
-
if (entry === null) {
|
|
2884
|
-
return null;
|
|
2885
|
-
}
|
|
2886
2763
|
return serializeAws_json1_1ParameterNameValue(entry, context);
|
|
2887
2764
|
});
|
|
2888
2765
|
};
|
|
@@ -2890,9 +2767,6 @@ const serializeAws_json1_1PasswordListInput = (input, context) => {
|
|
|
2890
2767
|
return input
|
|
2891
2768
|
.filter((e) => e != null)
|
|
2892
2769
|
.map((entry) => {
|
|
2893
|
-
if (entry === null) {
|
|
2894
|
-
return null;
|
|
2895
|
-
}
|
|
2896
2770
|
return entry;
|
|
2897
2771
|
});
|
|
2898
2772
|
};
|
|
@@ -2914,9 +2788,6 @@ const serializeAws_json1_1SecurityGroupIdsList = (input, context) => {
|
|
|
2914
2788
|
return input
|
|
2915
2789
|
.filter((e) => e != null)
|
|
2916
2790
|
.map((entry) => {
|
|
2917
|
-
if (entry === null) {
|
|
2918
|
-
return null;
|
|
2919
|
-
}
|
|
2920
2791
|
return entry;
|
|
2921
2792
|
});
|
|
2922
2793
|
};
|
|
@@ -2929,9 +2800,6 @@ const serializeAws_json1_1ServiceUpdateStatusList = (input, context) => {
|
|
|
2929
2800
|
return input
|
|
2930
2801
|
.filter((e) => e != null)
|
|
2931
2802
|
.map((entry) => {
|
|
2932
|
-
if (entry === null) {
|
|
2933
|
-
return null;
|
|
2934
|
-
}
|
|
2935
2803
|
return entry;
|
|
2936
2804
|
});
|
|
2937
2805
|
};
|
|
@@ -2944,9 +2812,6 @@ const serializeAws_json1_1SnapshotArnsList = (input, context) => {
|
|
|
2944
2812
|
return input
|
|
2945
2813
|
.filter((e) => e != null)
|
|
2946
2814
|
.map((entry) => {
|
|
2947
|
-
if (entry === null) {
|
|
2948
|
-
return null;
|
|
2949
|
-
}
|
|
2950
2815
|
return entry;
|
|
2951
2816
|
});
|
|
2952
2817
|
};
|
|
@@ -2954,9 +2819,6 @@ const serializeAws_json1_1SubnetIdentifierList = (input, context) => {
|
|
|
2954
2819
|
return input
|
|
2955
2820
|
.filter((e) => e != null)
|
|
2956
2821
|
.map((entry) => {
|
|
2957
|
-
if (entry === null) {
|
|
2958
|
-
return null;
|
|
2959
|
-
}
|
|
2960
2822
|
return entry;
|
|
2961
2823
|
});
|
|
2962
2824
|
};
|
|
@@ -2970,9 +2832,6 @@ const serializeAws_json1_1TagList = (input, context) => {
|
|
|
2970
2832
|
return input
|
|
2971
2833
|
.filter((e) => e != null)
|
|
2972
2834
|
.map((entry) => {
|
|
2973
|
-
if (entry === null) {
|
|
2974
|
-
return null;
|
|
2975
|
-
}
|
|
2976
2835
|
return serializeAws_json1_1Tag(entry, context);
|
|
2977
2836
|
});
|
|
2978
2837
|
};
|
|
@@ -3051,9 +2910,6 @@ const serializeAws_json1_1UserNameListInput = (input, context) => {
|
|
|
3051
2910
|
return input
|
|
3052
2911
|
.filter((e) => e != null)
|
|
3053
2912
|
.map((entry) => {
|
|
3054
|
-
if (entry === null) {
|
|
3055
|
-
return null;
|
|
3056
|
-
}
|
|
3057
2913
|
return entry;
|
|
3058
2914
|
});
|
|
3059
2915
|
};
|