@aws-sdk/client-elasticache 3.504.0 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +380 -2626
- package/dist-es/protocols/Aws_query.js +412 -2658
- package/package.json +3 -3
|
@@ -756,7 +756,7 @@ export const se_TestMigrationCommand = async (input, context) => {
|
|
|
756
756
|
};
|
|
757
757
|
export const de_AddTagsToResourceCommand = async (output, context) => {
|
|
758
758
|
if (output.statusCode >= 300) {
|
|
759
|
-
return
|
|
759
|
+
return de_CommandError(output, context);
|
|
760
760
|
}
|
|
761
761
|
const data = await parseBody(output.body, context);
|
|
762
762
|
let contents = {};
|
|
@@ -767,73 +767,9 @@ export const de_AddTagsToResourceCommand = async (output, context) => {
|
|
|
767
767
|
};
|
|
768
768
|
return response;
|
|
769
769
|
};
|
|
770
|
-
const de_AddTagsToResourceCommandError = async (output, context) => {
|
|
771
|
-
const parsedOutput = {
|
|
772
|
-
...output,
|
|
773
|
-
body: await parseErrorBody(output.body, context),
|
|
774
|
-
};
|
|
775
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
776
|
-
switch (errorCode) {
|
|
777
|
-
case "CacheClusterNotFound":
|
|
778
|
-
case "com.amazonaws.elasticache#CacheClusterNotFoundFault":
|
|
779
|
-
throw await de_CacheClusterNotFoundFaultRes(parsedOutput, context);
|
|
780
|
-
case "CacheParameterGroupNotFound":
|
|
781
|
-
case "com.amazonaws.elasticache#CacheParameterGroupNotFoundFault":
|
|
782
|
-
throw await de_CacheParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
783
|
-
case "CacheSecurityGroupNotFound":
|
|
784
|
-
case "com.amazonaws.elasticache#CacheSecurityGroupNotFoundFault":
|
|
785
|
-
throw await de_CacheSecurityGroupNotFoundFaultRes(parsedOutput, context);
|
|
786
|
-
case "CacheSubnetGroupNotFoundFault":
|
|
787
|
-
case "com.amazonaws.elasticache#CacheSubnetGroupNotFoundFault":
|
|
788
|
-
throw await de_CacheSubnetGroupNotFoundFaultRes(parsedOutput, context);
|
|
789
|
-
case "InvalidARN":
|
|
790
|
-
case "com.amazonaws.elasticache#InvalidARNFault":
|
|
791
|
-
throw await de_InvalidARNFaultRes(parsedOutput, context);
|
|
792
|
-
case "InvalidReplicationGroupState":
|
|
793
|
-
case "com.amazonaws.elasticache#InvalidReplicationGroupStateFault":
|
|
794
|
-
throw await de_InvalidReplicationGroupStateFaultRes(parsedOutput, context);
|
|
795
|
-
case "InvalidServerlessCacheSnapshotStateFault":
|
|
796
|
-
case "com.amazonaws.elasticache#InvalidServerlessCacheSnapshotStateFault":
|
|
797
|
-
throw await de_InvalidServerlessCacheSnapshotStateFaultRes(parsedOutput, context);
|
|
798
|
-
case "InvalidServerlessCacheStateFault":
|
|
799
|
-
case "com.amazonaws.elasticache#InvalidServerlessCacheStateFault":
|
|
800
|
-
throw await de_InvalidServerlessCacheStateFaultRes(parsedOutput, context);
|
|
801
|
-
case "ReplicationGroupNotFoundFault":
|
|
802
|
-
case "com.amazonaws.elasticache#ReplicationGroupNotFoundFault":
|
|
803
|
-
throw await de_ReplicationGroupNotFoundFaultRes(parsedOutput, context);
|
|
804
|
-
case "ReservedCacheNodeNotFound":
|
|
805
|
-
case "com.amazonaws.elasticache#ReservedCacheNodeNotFoundFault":
|
|
806
|
-
throw await de_ReservedCacheNodeNotFoundFaultRes(parsedOutput, context);
|
|
807
|
-
case "ServerlessCacheNotFoundFault":
|
|
808
|
-
case "com.amazonaws.elasticache#ServerlessCacheNotFoundFault":
|
|
809
|
-
throw await de_ServerlessCacheNotFoundFaultRes(parsedOutput, context);
|
|
810
|
-
case "ServerlessCacheSnapshotNotFoundFault":
|
|
811
|
-
case "com.amazonaws.elasticache#ServerlessCacheSnapshotNotFoundFault":
|
|
812
|
-
throw await de_ServerlessCacheSnapshotNotFoundFaultRes(parsedOutput, context);
|
|
813
|
-
case "SnapshotNotFoundFault":
|
|
814
|
-
case "com.amazonaws.elasticache#SnapshotNotFoundFault":
|
|
815
|
-
throw await de_SnapshotNotFoundFaultRes(parsedOutput, context);
|
|
816
|
-
case "TagQuotaPerResourceExceeded":
|
|
817
|
-
case "com.amazonaws.elasticache#TagQuotaPerResourceExceeded":
|
|
818
|
-
throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
|
|
819
|
-
case "UserGroupNotFound":
|
|
820
|
-
case "com.amazonaws.elasticache#UserGroupNotFoundFault":
|
|
821
|
-
throw await de_UserGroupNotFoundFaultRes(parsedOutput, context);
|
|
822
|
-
case "UserNotFound":
|
|
823
|
-
case "com.amazonaws.elasticache#UserNotFoundFault":
|
|
824
|
-
throw await de_UserNotFoundFaultRes(parsedOutput, context);
|
|
825
|
-
default:
|
|
826
|
-
const parsedBody = parsedOutput.body;
|
|
827
|
-
return throwDefaultError({
|
|
828
|
-
output,
|
|
829
|
-
parsedBody: parsedBody.Error,
|
|
830
|
-
errorCode,
|
|
831
|
-
});
|
|
832
|
-
}
|
|
833
|
-
};
|
|
834
770
|
export const de_AuthorizeCacheSecurityGroupIngressCommand = async (output, context) => {
|
|
835
771
|
if (output.statusCode >= 300) {
|
|
836
|
-
return
|
|
772
|
+
return de_CommandError(output, context);
|
|
837
773
|
}
|
|
838
774
|
const data = await parseBody(output.body, context);
|
|
839
775
|
let contents = {};
|
|
@@ -844,40 +780,9 @@ export const de_AuthorizeCacheSecurityGroupIngressCommand = async (output, conte
|
|
|
844
780
|
};
|
|
845
781
|
return response;
|
|
846
782
|
};
|
|
847
|
-
const de_AuthorizeCacheSecurityGroupIngressCommandError = async (output, context) => {
|
|
848
|
-
const parsedOutput = {
|
|
849
|
-
...output,
|
|
850
|
-
body: await parseErrorBody(output.body, context),
|
|
851
|
-
};
|
|
852
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
853
|
-
switch (errorCode) {
|
|
854
|
-
case "AuthorizationAlreadyExists":
|
|
855
|
-
case "com.amazonaws.elasticache#AuthorizationAlreadyExistsFault":
|
|
856
|
-
throw await de_AuthorizationAlreadyExistsFaultRes(parsedOutput, context);
|
|
857
|
-
case "CacheSecurityGroupNotFound":
|
|
858
|
-
case "com.amazonaws.elasticache#CacheSecurityGroupNotFoundFault":
|
|
859
|
-
throw await de_CacheSecurityGroupNotFoundFaultRes(parsedOutput, context);
|
|
860
|
-
case "InvalidCacheSecurityGroupState":
|
|
861
|
-
case "com.amazonaws.elasticache#InvalidCacheSecurityGroupStateFault":
|
|
862
|
-
throw await de_InvalidCacheSecurityGroupStateFaultRes(parsedOutput, context);
|
|
863
|
-
case "InvalidParameterCombination":
|
|
864
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
865
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
866
|
-
case "InvalidParameterValue":
|
|
867
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
868
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
869
|
-
default:
|
|
870
|
-
const parsedBody = parsedOutput.body;
|
|
871
|
-
return throwDefaultError({
|
|
872
|
-
output,
|
|
873
|
-
parsedBody: parsedBody.Error,
|
|
874
|
-
errorCode,
|
|
875
|
-
});
|
|
876
|
-
}
|
|
877
|
-
};
|
|
878
783
|
export const de_BatchApplyUpdateActionCommand = async (output, context) => {
|
|
879
784
|
if (output.statusCode >= 300) {
|
|
880
|
-
return
|
|
785
|
+
return de_CommandError(output, context);
|
|
881
786
|
}
|
|
882
787
|
const data = await parseBody(output.body, context);
|
|
883
788
|
let contents = {};
|
|
@@ -888,31 +793,9 @@ export const de_BatchApplyUpdateActionCommand = async (output, context) => {
|
|
|
888
793
|
};
|
|
889
794
|
return response;
|
|
890
795
|
};
|
|
891
|
-
const de_BatchApplyUpdateActionCommandError = async (output, context) => {
|
|
892
|
-
const parsedOutput = {
|
|
893
|
-
...output,
|
|
894
|
-
body: await parseErrorBody(output.body, context),
|
|
895
|
-
};
|
|
896
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
897
|
-
switch (errorCode) {
|
|
898
|
-
case "InvalidParameterValue":
|
|
899
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
900
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
901
|
-
case "ServiceUpdateNotFoundFault":
|
|
902
|
-
case "com.amazonaws.elasticache#ServiceUpdateNotFoundFault":
|
|
903
|
-
throw await de_ServiceUpdateNotFoundFaultRes(parsedOutput, context);
|
|
904
|
-
default:
|
|
905
|
-
const parsedBody = parsedOutput.body;
|
|
906
|
-
return throwDefaultError({
|
|
907
|
-
output,
|
|
908
|
-
parsedBody: parsedBody.Error,
|
|
909
|
-
errorCode,
|
|
910
|
-
});
|
|
911
|
-
}
|
|
912
|
-
};
|
|
913
796
|
export const de_BatchStopUpdateActionCommand = async (output, context) => {
|
|
914
797
|
if (output.statusCode >= 300) {
|
|
915
|
-
return
|
|
798
|
+
return de_CommandError(output, context);
|
|
916
799
|
}
|
|
917
800
|
const data = await parseBody(output.body, context);
|
|
918
801
|
let contents = {};
|
|
@@ -923,31 +806,9 @@ export const de_BatchStopUpdateActionCommand = async (output, context) => {
|
|
|
923
806
|
};
|
|
924
807
|
return response;
|
|
925
808
|
};
|
|
926
|
-
const de_BatchStopUpdateActionCommandError = async (output, context) => {
|
|
927
|
-
const parsedOutput = {
|
|
928
|
-
...output,
|
|
929
|
-
body: await parseErrorBody(output.body, context),
|
|
930
|
-
};
|
|
931
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
932
|
-
switch (errorCode) {
|
|
933
|
-
case "InvalidParameterValue":
|
|
934
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
935
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
936
|
-
case "ServiceUpdateNotFoundFault":
|
|
937
|
-
case "com.amazonaws.elasticache#ServiceUpdateNotFoundFault":
|
|
938
|
-
throw await de_ServiceUpdateNotFoundFaultRes(parsedOutput, context);
|
|
939
|
-
default:
|
|
940
|
-
const parsedBody = parsedOutput.body;
|
|
941
|
-
return throwDefaultError({
|
|
942
|
-
output,
|
|
943
|
-
parsedBody: parsedBody.Error,
|
|
944
|
-
errorCode,
|
|
945
|
-
});
|
|
946
|
-
}
|
|
947
|
-
};
|
|
948
809
|
export const de_CompleteMigrationCommand = async (output, context) => {
|
|
949
810
|
if (output.statusCode >= 300) {
|
|
950
|
-
return
|
|
811
|
+
return de_CommandError(output, context);
|
|
951
812
|
}
|
|
952
813
|
const data = await parseBody(output.body, context);
|
|
953
814
|
let contents = {};
|
|
@@ -958,34 +819,9 @@ export const de_CompleteMigrationCommand = async (output, context) => {
|
|
|
958
819
|
};
|
|
959
820
|
return response;
|
|
960
821
|
};
|
|
961
|
-
const de_CompleteMigrationCommandError = async (output, context) => {
|
|
962
|
-
const parsedOutput = {
|
|
963
|
-
...output,
|
|
964
|
-
body: await parseErrorBody(output.body, context),
|
|
965
|
-
};
|
|
966
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
967
|
-
switch (errorCode) {
|
|
968
|
-
case "InvalidReplicationGroupState":
|
|
969
|
-
case "com.amazonaws.elasticache#InvalidReplicationGroupStateFault":
|
|
970
|
-
throw await de_InvalidReplicationGroupStateFaultRes(parsedOutput, context);
|
|
971
|
-
case "ReplicationGroupNotFoundFault":
|
|
972
|
-
case "com.amazonaws.elasticache#ReplicationGroupNotFoundFault":
|
|
973
|
-
throw await de_ReplicationGroupNotFoundFaultRes(parsedOutput, context);
|
|
974
|
-
case "ReplicationGroupNotUnderMigrationFault":
|
|
975
|
-
case "com.amazonaws.elasticache#ReplicationGroupNotUnderMigrationFault":
|
|
976
|
-
throw await de_ReplicationGroupNotUnderMigrationFaultRes(parsedOutput, context);
|
|
977
|
-
default:
|
|
978
|
-
const parsedBody = parsedOutput.body;
|
|
979
|
-
return throwDefaultError({
|
|
980
|
-
output,
|
|
981
|
-
parsedBody: parsedBody.Error,
|
|
982
|
-
errorCode,
|
|
983
|
-
});
|
|
984
|
-
}
|
|
985
|
-
};
|
|
986
822
|
export const de_CopyServerlessCacheSnapshotCommand = async (output, context) => {
|
|
987
823
|
if (output.statusCode >= 300) {
|
|
988
|
-
return
|
|
824
|
+
return de_CommandError(output, context);
|
|
989
825
|
}
|
|
990
826
|
const data = await parseBody(output.body, context);
|
|
991
827
|
let contents = {};
|
|
@@ -996,49 +832,9 @@ export const de_CopyServerlessCacheSnapshotCommand = async (output, context) =>
|
|
|
996
832
|
};
|
|
997
833
|
return response;
|
|
998
834
|
};
|
|
999
|
-
const de_CopyServerlessCacheSnapshotCommandError = async (output, context) => {
|
|
1000
|
-
const parsedOutput = {
|
|
1001
|
-
...output,
|
|
1002
|
-
body: await parseErrorBody(output.body, context),
|
|
1003
|
-
};
|
|
1004
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1005
|
-
switch (errorCode) {
|
|
1006
|
-
case "InvalidParameterCombination":
|
|
1007
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
1008
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1009
|
-
case "InvalidParameterValue":
|
|
1010
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
1011
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1012
|
-
case "InvalidServerlessCacheSnapshotStateFault":
|
|
1013
|
-
case "com.amazonaws.elasticache#InvalidServerlessCacheSnapshotStateFault":
|
|
1014
|
-
throw await de_InvalidServerlessCacheSnapshotStateFaultRes(parsedOutput, context);
|
|
1015
|
-
case "ServerlessCacheSnapshotAlreadyExistsFault":
|
|
1016
|
-
case "com.amazonaws.elasticache#ServerlessCacheSnapshotAlreadyExistsFault":
|
|
1017
|
-
throw await de_ServerlessCacheSnapshotAlreadyExistsFaultRes(parsedOutput, context);
|
|
1018
|
-
case "ServerlessCacheSnapshotNotFoundFault":
|
|
1019
|
-
case "com.amazonaws.elasticache#ServerlessCacheSnapshotNotFoundFault":
|
|
1020
|
-
throw await de_ServerlessCacheSnapshotNotFoundFaultRes(parsedOutput, context);
|
|
1021
|
-
case "ServerlessCacheSnapshotQuotaExceededFault":
|
|
1022
|
-
case "com.amazonaws.elasticache#ServerlessCacheSnapshotQuotaExceededFault":
|
|
1023
|
-
throw await de_ServerlessCacheSnapshotQuotaExceededFaultRes(parsedOutput, context);
|
|
1024
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
1025
|
-
case "com.amazonaws.elasticache#ServiceLinkedRoleNotFoundFault":
|
|
1026
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
1027
|
-
case "TagQuotaPerResourceExceeded":
|
|
1028
|
-
case "com.amazonaws.elasticache#TagQuotaPerResourceExceeded":
|
|
1029
|
-
throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
|
|
1030
|
-
default:
|
|
1031
|
-
const parsedBody = parsedOutput.body;
|
|
1032
|
-
return throwDefaultError({
|
|
1033
|
-
output,
|
|
1034
|
-
parsedBody: parsedBody.Error,
|
|
1035
|
-
errorCode,
|
|
1036
|
-
});
|
|
1037
|
-
}
|
|
1038
|
-
};
|
|
1039
835
|
export const de_CopySnapshotCommand = async (output, context) => {
|
|
1040
836
|
if (output.statusCode >= 300) {
|
|
1041
|
-
return
|
|
837
|
+
return de_CommandError(output, context);
|
|
1042
838
|
}
|
|
1043
839
|
const data = await parseBody(output.body, context);
|
|
1044
840
|
let contents = {};
|
|
@@ -1049,46 +845,9 @@ export const de_CopySnapshotCommand = async (output, context) => {
|
|
|
1049
845
|
};
|
|
1050
846
|
return response;
|
|
1051
847
|
};
|
|
1052
|
-
const de_CopySnapshotCommandError = async (output, context) => {
|
|
1053
|
-
const parsedOutput = {
|
|
1054
|
-
...output,
|
|
1055
|
-
body: await parseErrorBody(output.body, context),
|
|
1056
|
-
};
|
|
1057
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1058
|
-
switch (errorCode) {
|
|
1059
|
-
case "InvalidParameterCombination":
|
|
1060
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
1061
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1062
|
-
case "InvalidParameterValue":
|
|
1063
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
1064
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1065
|
-
case "InvalidSnapshotState":
|
|
1066
|
-
case "com.amazonaws.elasticache#InvalidSnapshotStateFault":
|
|
1067
|
-
throw await de_InvalidSnapshotStateFaultRes(parsedOutput, context);
|
|
1068
|
-
case "SnapshotAlreadyExistsFault":
|
|
1069
|
-
case "com.amazonaws.elasticache#SnapshotAlreadyExistsFault":
|
|
1070
|
-
throw await de_SnapshotAlreadyExistsFaultRes(parsedOutput, context);
|
|
1071
|
-
case "SnapshotNotFoundFault":
|
|
1072
|
-
case "com.amazonaws.elasticache#SnapshotNotFoundFault":
|
|
1073
|
-
throw await de_SnapshotNotFoundFaultRes(parsedOutput, context);
|
|
1074
|
-
case "SnapshotQuotaExceededFault":
|
|
1075
|
-
case "com.amazonaws.elasticache#SnapshotQuotaExceededFault":
|
|
1076
|
-
throw await de_SnapshotQuotaExceededFaultRes(parsedOutput, context);
|
|
1077
|
-
case "TagQuotaPerResourceExceeded":
|
|
1078
|
-
case "com.amazonaws.elasticache#TagQuotaPerResourceExceeded":
|
|
1079
|
-
throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
|
|
1080
|
-
default:
|
|
1081
|
-
const parsedBody = parsedOutput.body;
|
|
1082
|
-
return throwDefaultError({
|
|
1083
|
-
output,
|
|
1084
|
-
parsedBody: parsedBody.Error,
|
|
1085
|
-
errorCode,
|
|
1086
|
-
});
|
|
1087
|
-
}
|
|
1088
|
-
};
|
|
1089
848
|
export const de_CreateCacheClusterCommand = async (output, context) => {
|
|
1090
849
|
if (output.statusCode >= 300) {
|
|
1091
|
-
return
|
|
850
|
+
return de_CommandError(output, context);
|
|
1092
851
|
}
|
|
1093
852
|
const data = await parseBody(output.body, context);
|
|
1094
853
|
let contents = {};
|
|
@@ -1099,114 +858,22 @@ export const de_CreateCacheClusterCommand = async (output, context) => {
|
|
|
1099
858
|
};
|
|
1100
859
|
return response;
|
|
1101
860
|
};
|
|
1102
|
-
const
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
case "CacheParameterGroupNotFound":
|
|
1113
|
-
case "com.amazonaws.elasticache#CacheParameterGroupNotFoundFault":
|
|
1114
|
-
throw await de_CacheParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
1115
|
-
case "CacheSecurityGroupNotFound":
|
|
1116
|
-
case "com.amazonaws.elasticache#CacheSecurityGroupNotFoundFault":
|
|
1117
|
-
throw await de_CacheSecurityGroupNotFoundFaultRes(parsedOutput, context);
|
|
1118
|
-
case "CacheSubnetGroupNotFoundFault":
|
|
1119
|
-
case "com.amazonaws.elasticache#CacheSubnetGroupNotFoundFault":
|
|
1120
|
-
throw await de_CacheSubnetGroupNotFoundFaultRes(parsedOutput, context);
|
|
1121
|
-
case "ClusterQuotaForCustomerExceeded":
|
|
1122
|
-
case "com.amazonaws.elasticache#ClusterQuotaForCustomerExceededFault":
|
|
1123
|
-
throw await de_ClusterQuotaForCustomerExceededFaultRes(parsedOutput, context);
|
|
1124
|
-
case "InsufficientCacheClusterCapacity":
|
|
1125
|
-
case "com.amazonaws.elasticache#InsufficientCacheClusterCapacityFault":
|
|
1126
|
-
throw await de_InsufficientCacheClusterCapacityFaultRes(parsedOutput, context);
|
|
1127
|
-
case "InvalidParameterCombination":
|
|
1128
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
1129
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1130
|
-
case "InvalidParameterValue":
|
|
1131
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
1132
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1133
|
-
case "InvalidReplicationGroupState":
|
|
1134
|
-
case "com.amazonaws.elasticache#InvalidReplicationGroupStateFault":
|
|
1135
|
-
throw await de_InvalidReplicationGroupStateFaultRes(parsedOutput, context);
|
|
1136
|
-
case "InvalidVPCNetworkStateFault":
|
|
1137
|
-
case "com.amazonaws.elasticache#InvalidVPCNetworkStateFault":
|
|
1138
|
-
throw await de_InvalidVPCNetworkStateFaultRes(parsedOutput, context);
|
|
1139
|
-
case "NodeQuotaForClusterExceeded":
|
|
1140
|
-
case "com.amazonaws.elasticache#NodeQuotaForClusterExceededFault":
|
|
1141
|
-
throw await de_NodeQuotaForClusterExceededFaultRes(parsedOutput, context);
|
|
1142
|
-
case "NodeQuotaForCustomerExceeded":
|
|
1143
|
-
case "com.amazonaws.elasticache#NodeQuotaForCustomerExceededFault":
|
|
1144
|
-
throw await de_NodeQuotaForCustomerExceededFaultRes(parsedOutput, context);
|
|
1145
|
-
case "ReplicationGroupNotFoundFault":
|
|
1146
|
-
case "com.amazonaws.elasticache#ReplicationGroupNotFoundFault":
|
|
1147
|
-
throw await de_ReplicationGroupNotFoundFaultRes(parsedOutput, context);
|
|
1148
|
-
case "TagQuotaPerResourceExceeded":
|
|
1149
|
-
case "com.amazonaws.elasticache#TagQuotaPerResourceExceeded":
|
|
1150
|
-
throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
|
|
1151
|
-
default:
|
|
1152
|
-
const parsedBody = parsedOutput.body;
|
|
1153
|
-
return throwDefaultError({
|
|
1154
|
-
output,
|
|
1155
|
-
parsedBody: parsedBody.Error,
|
|
1156
|
-
errorCode,
|
|
1157
|
-
});
|
|
1158
|
-
}
|
|
1159
|
-
};
|
|
1160
|
-
export const de_CreateCacheParameterGroupCommand = async (output, context) => {
|
|
1161
|
-
if (output.statusCode >= 300) {
|
|
1162
|
-
return de_CreateCacheParameterGroupCommandError(output, context);
|
|
1163
|
-
}
|
|
1164
|
-
const data = await parseBody(output.body, context);
|
|
1165
|
-
let contents = {};
|
|
1166
|
-
contents = de_CreateCacheParameterGroupResult(data.CreateCacheParameterGroupResult, context);
|
|
1167
|
-
const response = {
|
|
1168
|
-
$metadata: deserializeMetadata(output),
|
|
1169
|
-
...contents,
|
|
861
|
+
export const de_CreateCacheParameterGroupCommand = async (output, context) => {
|
|
862
|
+
if (output.statusCode >= 300) {
|
|
863
|
+
return de_CommandError(output, context);
|
|
864
|
+
}
|
|
865
|
+
const data = await parseBody(output.body, context);
|
|
866
|
+
let contents = {};
|
|
867
|
+
contents = de_CreateCacheParameterGroupResult(data.CreateCacheParameterGroupResult, context);
|
|
868
|
+
const response = {
|
|
869
|
+
$metadata: deserializeMetadata(output),
|
|
870
|
+
...contents,
|
|
1170
871
|
};
|
|
1171
872
|
return response;
|
|
1172
873
|
};
|
|
1173
|
-
const de_CreateCacheParameterGroupCommandError = async (output, context) => {
|
|
1174
|
-
const parsedOutput = {
|
|
1175
|
-
...output,
|
|
1176
|
-
body: await parseErrorBody(output.body, context),
|
|
1177
|
-
};
|
|
1178
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1179
|
-
switch (errorCode) {
|
|
1180
|
-
case "CacheParameterGroupAlreadyExists":
|
|
1181
|
-
case "com.amazonaws.elasticache#CacheParameterGroupAlreadyExistsFault":
|
|
1182
|
-
throw await de_CacheParameterGroupAlreadyExistsFaultRes(parsedOutput, context);
|
|
1183
|
-
case "CacheParameterGroupQuotaExceeded":
|
|
1184
|
-
case "com.amazonaws.elasticache#CacheParameterGroupQuotaExceededFault":
|
|
1185
|
-
throw await de_CacheParameterGroupQuotaExceededFaultRes(parsedOutput, context);
|
|
1186
|
-
case "InvalidCacheParameterGroupState":
|
|
1187
|
-
case "com.amazonaws.elasticache#InvalidCacheParameterGroupStateFault":
|
|
1188
|
-
throw await de_InvalidCacheParameterGroupStateFaultRes(parsedOutput, context);
|
|
1189
|
-
case "InvalidParameterCombination":
|
|
1190
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
1191
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1192
|
-
case "InvalidParameterValue":
|
|
1193
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
1194
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1195
|
-
case "TagQuotaPerResourceExceeded":
|
|
1196
|
-
case "com.amazonaws.elasticache#TagQuotaPerResourceExceeded":
|
|
1197
|
-
throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
|
|
1198
|
-
default:
|
|
1199
|
-
const parsedBody = parsedOutput.body;
|
|
1200
|
-
return throwDefaultError({
|
|
1201
|
-
output,
|
|
1202
|
-
parsedBody: parsedBody.Error,
|
|
1203
|
-
errorCode,
|
|
1204
|
-
});
|
|
1205
|
-
}
|
|
1206
|
-
};
|
|
1207
874
|
export const de_CreateCacheSecurityGroupCommand = async (output, context) => {
|
|
1208
875
|
if (output.statusCode >= 300) {
|
|
1209
|
-
return
|
|
876
|
+
return de_CommandError(output, context);
|
|
1210
877
|
}
|
|
1211
878
|
const data = await parseBody(output.body, context);
|
|
1212
879
|
let contents = {};
|
|
@@ -1217,40 +884,9 @@ export const de_CreateCacheSecurityGroupCommand = async (output, context) => {
|
|
|
1217
884
|
};
|
|
1218
885
|
return response;
|
|
1219
886
|
};
|
|
1220
|
-
const de_CreateCacheSecurityGroupCommandError = async (output, context) => {
|
|
1221
|
-
const parsedOutput = {
|
|
1222
|
-
...output,
|
|
1223
|
-
body: await parseErrorBody(output.body, context),
|
|
1224
|
-
};
|
|
1225
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1226
|
-
switch (errorCode) {
|
|
1227
|
-
case "CacheSecurityGroupAlreadyExists":
|
|
1228
|
-
case "com.amazonaws.elasticache#CacheSecurityGroupAlreadyExistsFault":
|
|
1229
|
-
throw await de_CacheSecurityGroupAlreadyExistsFaultRes(parsedOutput, context);
|
|
1230
|
-
case "InvalidParameterCombination":
|
|
1231
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
1232
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1233
|
-
case "InvalidParameterValue":
|
|
1234
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
1235
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1236
|
-
case "QuotaExceeded.CacheSecurityGroup":
|
|
1237
|
-
case "com.amazonaws.elasticache#CacheSecurityGroupQuotaExceededFault":
|
|
1238
|
-
throw await de_CacheSecurityGroupQuotaExceededFaultRes(parsedOutput, context);
|
|
1239
|
-
case "TagQuotaPerResourceExceeded":
|
|
1240
|
-
case "com.amazonaws.elasticache#TagQuotaPerResourceExceeded":
|
|
1241
|
-
throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
|
|
1242
|
-
default:
|
|
1243
|
-
const parsedBody = parsedOutput.body;
|
|
1244
|
-
return throwDefaultError({
|
|
1245
|
-
output,
|
|
1246
|
-
parsedBody: parsedBody.Error,
|
|
1247
|
-
errorCode,
|
|
1248
|
-
});
|
|
1249
|
-
}
|
|
1250
|
-
};
|
|
1251
887
|
export const de_CreateCacheSubnetGroupCommand = async (output, context) => {
|
|
1252
888
|
if (output.statusCode >= 300) {
|
|
1253
|
-
return
|
|
889
|
+
return de_CommandError(output, context);
|
|
1254
890
|
}
|
|
1255
891
|
const data = await parseBody(output.body, context);
|
|
1256
892
|
let contents = {};
|
|
@@ -1261,43 +897,9 @@ export const de_CreateCacheSubnetGroupCommand = async (output, context) => {
|
|
|
1261
897
|
};
|
|
1262
898
|
return response;
|
|
1263
899
|
};
|
|
1264
|
-
const de_CreateCacheSubnetGroupCommandError = async (output, context) => {
|
|
1265
|
-
const parsedOutput = {
|
|
1266
|
-
...output,
|
|
1267
|
-
body: await parseErrorBody(output.body, context),
|
|
1268
|
-
};
|
|
1269
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1270
|
-
switch (errorCode) {
|
|
1271
|
-
case "CacheSubnetGroupAlreadyExists":
|
|
1272
|
-
case "com.amazonaws.elasticache#CacheSubnetGroupAlreadyExistsFault":
|
|
1273
|
-
throw await de_CacheSubnetGroupAlreadyExistsFaultRes(parsedOutput, context);
|
|
1274
|
-
case "CacheSubnetGroupQuotaExceeded":
|
|
1275
|
-
case "com.amazonaws.elasticache#CacheSubnetGroupQuotaExceededFault":
|
|
1276
|
-
throw await de_CacheSubnetGroupQuotaExceededFaultRes(parsedOutput, context);
|
|
1277
|
-
case "CacheSubnetQuotaExceededFault":
|
|
1278
|
-
case "com.amazonaws.elasticache#CacheSubnetQuotaExceededFault":
|
|
1279
|
-
throw await de_CacheSubnetQuotaExceededFaultRes(parsedOutput, context);
|
|
1280
|
-
case "InvalidSubnet":
|
|
1281
|
-
case "com.amazonaws.elasticache#InvalidSubnet":
|
|
1282
|
-
throw await de_InvalidSubnetRes(parsedOutput, context);
|
|
1283
|
-
case "SubnetNotAllowedFault":
|
|
1284
|
-
case "com.amazonaws.elasticache#SubnetNotAllowedFault":
|
|
1285
|
-
throw await de_SubnetNotAllowedFaultRes(parsedOutput, context);
|
|
1286
|
-
case "TagQuotaPerResourceExceeded":
|
|
1287
|
-
case "com.amazonaws.elasticache#TagQuotaPerResourceExceeded":
|
|
1288
|
-
throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
|
|
1289
|
-
default:
|
|
1290
|
-
const parsedBody = parsedOutput.body;
|
|
1291
|
-
return throwDefaultError({
|
|
1292
|
-
output,
|
|
1293
|
-
parsedBody: parsedBody.Error,
|
|
1294
|
-
errorCode,
|
|
1295
|
-
});
|
|
1296
|
-
}
|
|
1297
|
-
};
|
|
1298
900
|
export const de_CreateGlobalReplicationGroupCommand = async (output, context) => {
|
|
1299
901
|
if (output.statusCode >= 300) {
|
|
1300
|
-
return
|
|
902
|
+
return de_CommandError(output, context);
|
|
1301
903
|
}
|
|
1302
904
|
const data = await parseBody(output.body, context);
|
|
1303
905
|
let contents = {};
|
|
@@ -1308,40 +910,9 @@ export const de_CreateGlobalReplicationGroupCommand = async (output, context) =>
|
|
|
1308
910
|
};
|
|
1309
911
|
return response;
|
|
1310
912
|
};
|
|
1311
|
-
const de_CreateGlobalReplicationGroupCommandError = async (output, context) => {
|
|
1312
|
-
const parsedOutput = {
|
|
1313
|
-
...output,
|
|
1314
|
-
body: await parseErrorBody(output.body, context),
|
|
1315
|
-
};
|
|
1316
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1317
|
-
switch (errorCode) {
|
|
1318
|
-
case "GlobalReplicationGroupAlreadyExistsFault":
|
|
1319
|
-
case "com.amazonaws.elasticache#GlobalReplicationGroupAlreadyExistsFault":
|
|
1320
|
-
throw await de_GlobalReplicationGroupAlreadyExistsFaultRes(parsedOutput, context);
|
|
1321
|
-
case "InvalidParameterValue":
|
|
1322
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
1323
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1324
|
-
case "InvalidReplicationGroupState":
|
|
1325
|
-
case "com.amazonaws.elasticache#InvalidReplicationGroupStateFault":
|
|
1326
|
-
throw await de_InvalidReplicationGroupStateFaultRes(parsedOutput, context);
|
|
1327
|
-
case "ReplicationGroupNotFoundFault":
|
|
1328
|
-
case "com.amazonaws.elasticache#ReplicationGroupNotFoundFault":
|
|
1329
|
-
throw await de_ReplicationGroupNotFoundFaultRes(parsedOutput, context);
|
|
1330
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
1331
|
-
case "com.amazonaws.elasticache#ServiceLinkedRoleNotFoundFault":
|
|
1332
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
1333
|
-
default:
|
|
1334
|
-
const parsedBody = parsedOutput.body;
|
|
1335
|
-
return throwDefaultError({
|
|
1336
|
-
output,
|
|
1337
|
-
parsedBody: parsedBody.Error,
|
|
1338
|
-
errorCode,
|
|
1339
|
-
});
|
|
1340
|
-
}
|
|
1341
|
-
};
|
|
1342
913
|
export const de_CreateReplicationGroupCommand = async (output, context) => {
|
|
1343
914
|
if (output.statusCode >= 300) {
|
|
1344
|
-
return
|
|
915
|
+
return de_CommandError(output, context);
|
|
1345
916
|
}
|
|
1346
917
|
const data = await parseBody(output.body, context);
|
|
1347
918
|
let contents = {};
|
|
@@ -1352,82 +923,9 @@ export const de_CreateReplicationGroupCommand = async (output, context) => {
|
|
|
1352
923
|
};
|
|
1353
924
|
return response;
|
|
1354
925
|
};
|
|
1355
|
-
const de_CreateReplicationGroupCommandError = async (output, context) => {
|
|
1356
|
-
const parsedOutput = {
|
|
1357
|
-
...output,
|
|
1358
|
-
body: await parseErrorBody(output.body, context),
|
|
1359
|
-
};
|
|
1360
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1361
|
-
switch (errorCode) {
|
|
1362
|
-
case "CacheClusterNotFound":
|
|
1363
|
-
case "com.amazonaws.elasticache#CacheClusterNotFoundFault":
|
|
1364
|
-
throw await de_CacheClusterNotFoundFaultRes(parsedOutput, context);
|
|
1365
|
-
case "CacheParameterGroupNotFound":
|
|
1366
|
-
case "com.amazonaws.elasticache#CacheParameterGroupNotFoundFault":
|
|
1367
|
-
throw await de_CacheParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
1368
|
-
case "CacheSecurityGroupNotFound":
|
|
1369
|
-
case "com.amazonaws.elasticache#CacheSecurityGroupNotFoundFault":
|
|
1370
|
-
throw await de_CacheSecurityGroupNotFoundFaultRes(parsedOutput, context);
|
|
1371
|
-
case "CacheSubnetGroupNotFoundFault":
|
|
1372
|
-
case "com.amazonaws.elasticache#CacheSubnetGroupNotFoundFault":
|
|
1373
|
-
throw await de_CacheSubnetGroupNotFoundFaultRes(parsedOutput, context);
|
|
1374
|
-
case "ClusterQuotaForCustomerExceeded":
|
|
1375
|
-
case "com.amazonaws.elasticache#ClusterQuotaForCustomerExceededFault":
|
|
1376
|
-
throw await de_ClusterQuotaForCustomerExceededFaultRes(parsedOutput, context);
|
|
1377
|
-
case "GlobalReplicationGroupNotFoundFault":
|
|
1378
|
-
case "com.amazonaws.elasticache#GlobalReplicationGroupNotFoundFault":
|
|
1379
|
-
throw await de_GlobalReplicationGroupNotFoundFaultRes(parsedOutput, context);
|
|
1380
|
-
case "InsufficientCacheClusterCapacity":
|
|
1381
|
-
case "com.amazonaws.elasticache#InsufficientCacheClusterCapacityFault":
|
|
1382
|
-
throw await de_InsufficientCacheClusterCapacityFaultRes(parsedOutput, context);
|
|
1383
|
-
case "InvalidCacheClusterState":
|
|
1384
|
-
case "com.amazonaws.elasticache#InvalidCacheClusterStateFault":
|
|
1385
|
-
throw await de_InvalidCacheClusterStateFaultRes(parsedOutput, context);
|
|
1386
|
-
case "InvalidGlobalReplicationGroupState":
|
|
1387
|
-
case "com.amazonaws.elasticache#InvalidGlobalReplicationGroupStateFault":
|
|
1388
|
-
throw await de_InvalidGlobalReplicationGroupStateFaultRes(parsedOutput, context);
|
|
1389
|
-
case "InvalidParameterCombination":
|
|
1390
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
1391
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1392
|
-
case "InvalidParameterValue":
|
|
1393
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
1394
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1395
|
-
case "InvalidUserGroupState":
|
|
1396
|
-
case "com.amazonaws.elasticache#InvalidUserGroupStateFault":
|
|
1397
|
-
throw await de_InvalidUserGroupStateFaultRes(parsedOutput, context);
|
|
1398
|
-
case "InvalidVPCNetworkStateFault":
|
|
1399
|
-
case "com.amazonaws.elasticache#InvalidVPCNetworkStateFault":
|
|
1400
|
-
throw await de_InvalidVPCNetworkStateFaultRes(parsedOutput, context);
|
|
1401
|
-
case "NodeGroupsPerReplicationGroupQuotaExceeded":
|
|
1402
|
-
case "com.amazonaws.elasticache#NodeGroupsPerReplicationGroupQuotaExceededFault":
|
|
1403
|
-
throw await de_NodeGroupsPerReplicationGroupQuotaExceededFaultRes(parsedOutput, context);
|
|
1404
|
-
case "NodeQuotaForClusterExceeded":
|
|
1405
|
-
case "com.amazonaws.elasticache#NodeQuotaForClusterExceededFault":
|
|
1406
|
-
throw await de_NodeQuotaForClusterExceededFaultRes(parsedOutput, context);
|
|
1407
|
-
case "NodeQuotaForCustomerExceeded":
|
|
1408
|
-
case "com.amazonaws.elasticache#NodeQuotaForCustomerExceededFault":
|
|
1409
|
-
throw await de_NodeQuotaForCustomerExceededFaultRes(parsedOutput, context);
|
|
1410
|
-
case "ReplicationGroupAlreadyExists":
|
|
1411
|
-
case "com.amazonaws.elasticache#ReplicationGroupAlreadyExistsFault":
|
|
1412
|
-
throw await de_ReplicationGroupAlreadyExistsFaultRes(parsedOutput, context);
|
|
1413
|
-
case "TagQuotaPerResourceExceeded":
|
|
1414
|
-
case "com.amazonaws.elasticache#TagQuotaPerResourceExceeded":
|
|
1415
|
-
throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
|
|
1416
|
-
case "UserGroupNotFound":
|
|
1417
|
-
case "com.amazonaws.elasticache#UserGroupNotFoundFault":
|
|
1418
|
-
throw await de_UserGroupNotFoundFaultRes(parsedOutput, context);
|
|
1419
|
-
default:
|
|
1420
|
-
const parsedBody = parsedOutput.body;
|
|
1421
|
-
return throwDefaultError({
|
|
1422
|
-
output,
|
|
1423
|
-
parsedBody: parsedBody.Error,
|
|
1424
|
-
errorCode,
|
|
1425
|
-
});
|
|
1426
|
-
}
|
|
1427
|
-
};
|
|
1428
926
|
export const de_CreateServerlessCacheCommand = async (output, context) => {
|
|
1429
927
|
if (output.statusCode >= 300) {
|
|
1430
|
-
return
|
|
928
|
+
return de_CommandError(output, context);
|
|
1431
929
|
}
|
|
1432
930
|
const data = await parseBody(output.body, context);
|
|
1433
931
|
let contents = {};
|
|
@@ -1438,58 +936,9 @@ export const de_CreateServerlessCacheCommand = async (output, context) => {
|
|
|
1438
936
|
};
|
|
1439
937
|
return response;
|
|
1440
938
|
};
|
|
1441
|
-
const de_CreateServerlessCacheCommandError = async (output, context) => {
|
|
1442
|
-
const parsedOutput = {
|
|
1443
|
-
...output,
|
|
1444
|
-
body: await parseErrorBody(output.body, context),
|
|
1445
|
-
};
|
|
1446
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1447
|
-
switch (errorCode) {
|
|
1448
|
-
case "InvalidCredentialsException":
|
|
1449
|
-
case "com.amazonaws.elasticache#InvalidCredentialsException":
|
|
1450
|
-
throw await de_InvalidCredentialsExceptionRes(parsedOutput, context);
|
|
1451
|
-
case "InvalidParameterCombination":
|
|
1452
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
1453
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1454
|
-
case "InvalidParameterValue":
|
|
1455
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
1456
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1457
|
-
case "InvalidServerlessCacheStateFault":
|
|
1458
|
-
case "com.amazonaws.elasticache#InvalidServerlessCacheStateFault":
|
|
1459
|
-
throw await de_InvalidServerlessCacheStateFaultRes(parsedOutput, context);
|
|
1460
|
-
case "InvalidUserGroupState":
|
|
1461
|
-
case "com.amazonaws.elasticache#InvalidUserGroupStateFault":
|
|
1462
|
-
throw await de_InvalidUserGroupStateFaultRes(parsedOutput, context);
|
|
1463
|
-
case "ServerlessCacheAlreadyExistsFault":
|
|
1464
|
-
case "com.amazonaws.elasticache#ServerlessCacheAlreadyExistsFault":
|
|
1465
|
-
throw await de_ServerlessCacheAlreadyExistsFaultRes(parsedOutput, context);
|
|
1466
|
-
case "ServerlessCacheNotFoundFault":
|
|
1467
|
-
case "com.amazonaws.elasticache#ServerlessCacheNotFoundFault":
|
|
1468
|
-
throw await de_ServerlessCacheNotFoundFaultRes(parsedOutput, context);
|
|
1469
|
-
case "ServerlessCacheQuotaForCustomerExceededFault":
|
|
1470
|
-
case "com.amazonaws.elasticache#ServerlessCacheQuotaForCustomerExceededFault":
|
|
1471
|
-
throw await de_ServerlessCacheQuotaForCustomerExceededFaultRes(parsedOutput, context);
|
|
1472
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
1473
|
-
case "com.amazonaws.elasticache#ServiceLinkedRoleNotFoundFault":
|
|
1474
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
1475
|
-
case "TagQuotaPerResourceExceeded":
|
|
1476
|
-
case "com.amazonaws.elasticache#TagQuotaPerResourceExceeded":
|
|
1477
|
-
throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
|
|
1478
|
-
case "UserGroupNotFound":
|
|
1479
|
-
case "com.amazonaws.elasticache#UserGroupNotFoundFault":
|
|
1480
|
-
throw await de_UserGroupNotFoundFaultRes(parsedOutput, context);
|
|
1481
|
-
default:
|
|
1482
|
-
const parsedBody = parsedOutput.body;
|
|
1483
|
-
return throwDefaultError({
|
|
1484
|
-
output,
|
|
1485
|
-
parsedBody: parsedBody.Error,
|
|
1486
|
-
errorCode,
|
|
1487
|
-
});
|
|
1488
|
-
}
|
|
1489
|
-
};
|
|
1490
939
|
export const de_CreateServerlessCacheSnapshotCommand = async (output, context) => {
|
|
1491
940
|
if (output.statusCode >= 300) {
|
|
1492
|
-
return
|
|
941
|
+
return de_CommandError(output, context);
|
|
1493
942
|
}
|
|
1494
943
|
const data = await parseBody(output.body, context);
|
|
1495
944
|
let contents = {};
|
|
@@ -1500,49 +949,9 @@ export const de_CreateServerlessCacheSnapshotCommand = async (output, context) =
|
|
|
1500
949
|
};
|
|
1501
950
|
return response;
|
|
1502
951
|
};
|
|
1503
|
-
const de_CreateServerlessCacheSnapshotCommandError = async (output, context) => {
|
|
1504
|
-
const parsedOutput = {
|
|
1505
|
-
...output,
|
|
1506
|
-
body: await parseErrorBody(output.body, context),
|
|
1507
|
-
};
|
|
1508
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1509
|
-
switch (errorCode) {
|
|
1510
|
-
case "InvalidParameterCombination":
|
|
1511
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
1512
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1513
|
-
case "InvalidParameterValue":
|
|
1514
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
1515
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1516
|
-
case "InvalidServerlessCacheStateFault":
|
|
1517
|
-
case "com.amazonaws.elasticache#InvalidServerlessCacheStateFault":
|
|
1518
|
-
throw await de_InvalidServerlessCacheStateFaultRes(parsedOutput, context);
|
|
1519
|
-
case "ServerlessCacheNotFoundFault":
|
|
1520
|
-
case "com.amazonaws.elasticache#ServerlessCacheNotFoundFault":
|
|
1521
|
-
throw await de_ServerlessCacheNotFoundFaultRes(parsedOutput, context);
|
|
1522
|
-
case "ServerlessCacheSnapshotAlreadyExistsFault":
|
|
1523
|
-
case "com.amazonaws.elasticache#ServerlessCacheSnapshotAlreadyExistsFault":
|
|
1524
|
-
throw await de_ServerlessCacheSnapshotAlreadyExistsFaultRes(parsedOutput, context);
|
|
1525
|
-
case "ServerlessCacheSnapshotQuotaExceededFault":
|
|
1526
|
-
case "com.amazonaws.elasticache#ServerlessCacheSnapshotQuotaExceededFault":
|
|
1527
|
-
throw await de_ServerlessCacheSnapshotQuotaExceededFaultRes(parsedOutput, context);
|
|
1528
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
1529
|
-
case "com.amazonaws.elasticache#ServiceLinkedRoleNotFoundFault":
|
|
1530
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
1531
|
-
case "TagQuotaPerResourceExceeded":
|
|
1532
|
-
case "com.amazonaws.elasticache#TagQuotaPerResourceExceeded":
|
|
1533
|
-
throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
|
|
1534
|
-
default:
|
|
1535
|
-
const parsedBody = parsedOutput.body;
|
|
1536
|
-
return throwDefaultError({
|
|
1537
|
-
output,
|
|
1538
|
-
parsedBody: parsedBody.Error,
|
|
1539
|
-
errorCode,
|
|
1540
|
-
});
|
|
1541
|
-
}
|
|
1542
|
-
};
|
|
1543
952
|
export const de_CreateSnapshotCommand = async (output, context) => {
|
|
1544
953
|
if (output.statusCode >= 300) {
|
|
1545
|
-
return
|
|
954
|
+
return de_CommandError(output, context);
|
|
1546
955
|
}
|
|
1547
956
|
const data = await parseBody(output.body, context);
|
|
1548
957
|
let contents = {};
|
|
@@ -1553,55 +962,9 @@ export const de_CreateSnapshotCommand = async (output, context) => {
|
|
|
1553
962
|
};
|
|
1554
963
|
return response;
|
|
1555
964
|
};
|
|
1556
|
-
const de_CreateSnapshotCommandError = async (output, context) => {
|
|
1557
|
-
const parsedOutput = {
|
|
1558
|
-
...output,
|
|
1559
|
-
body: await parseErrorBody(output.body, context),
|
|
1560
|
-
};
|
|
1561
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1562
|
-
switch (errorCode) {
|
|
1563
|
-
case "CacheClusterNotFound":
|
|
1564
|
-
case "com.amazonaws.elasticache#CacheClusterNotFoundFault":
|
|
1565
|
-
throw await de_CacheClusterNotFoundFaultRes(parsedOutput, context);
|
|
1566
|
-
case "InvalidCacheClusterState":
|
|
1567
|
-
case "com.amazonaws.elasticache#InvalidCacheClusterStateFault":
|
|
1568
|
-
throw await de_InvalidCacheClusterStateFaultRes(parsedOutput, context);
|
|
1569
|
-
case "InvalidParameterCombination":
|
|
1570
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
1571
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1572
|
-
case "InvalidParameterValue":
|
|
1573
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
1574
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1575
|
-
case "InvalidReplicationGroupState":
|
|
1576
|
-
case "com.amazonaws.elasticache#InvalidReplicationGroupStateFault":
|
|
1577
|
-
throw await de_InvalidReplicationGroupStateFaultRes(parsedOutput, context);
|
|
1578
|
-
case "ReplicationGroupNotFoundFault":
|
|
1579
|
-
case "com.amazonaws.elasticache#ReplicationGroupNotFoundFault":
|
|
1580
|
-
throw await de_ReplicationGroupNotFoundFaultRes(parsedOutput, context);
|
|
1581
|
-
case "SnapshotAlreadyExistsFault":
|
|
1582
|
-
case "com.amazonaws.elasticache#SnapshotAlreadyExistsFault":
|
|
1583
|
-
throw await de_SnapshotAlreadyExistsFaultRes(parsedOutput, context);
|
|
1584
|
-
case "SnapshotFeatureNotSupportedFault":
|
|
1585
|
-
case "com.amazonaws.elasticache#SnapshotFeatureNotSupportedFault":
|
|
1586
|
-
throw await de_SnapshotFeatureNotSupportedFaultRes(parsedOutput, context);
|
|
1587
|
-
case "SnapshotQuotaExceededFault":
|
|
1588
|
-
case "com.amazonaws.elasticache#SnapshotQuotaExceededFault":
|
|
1589
|
-
throw await de_SnapshotQuotaExceededFaultRes(parsedOutput, context);
|
|
1590
|
-
case "TagQuotaPerResourceExceeded":
|
|
1591
|
-
case "com.amazonaws.elasticache#TagQuotaPerResourceExceeded":
|
|
1592
|
-
throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
|
|
1593
|
-
default:
|
|
1594
|
-
const parsedBody = parsedOutput.body;
|
|
1595
|
-
return throwDefaultError({
|
|
1596
|
-
output,
|
|
1597
|
-
parsedBody: parsedBody.Error,
|
|
1598
|
-
errorCode,
|
|
1599
|
-
});
|
|
1600
|
-
}
|
|
1601
|
-
};
|
|
1602
965
|
export const de_CreateUserCommand = async (output, context) => {
|
|
1603
966
|
if (output.statusCode >= 300) {
|
|
1604
|
-
return
|
|
967
|
+
return de_CommandError(output, context);
|
|
1605
968
|
}
|
|
1606
969
|
const data = await parseBody(output.body, context);
|
|
1607
970
|
let contents = {};
|
|
@@ -1612,46 +975,9 @@ export const de_CreateUserCommand = async (output, context) => {
|
|
|
1612
975
|
};
|
|
1613
976
|
return response;
|
|
1614
977
|
};
|
|
1615
|
-
const de_CreateUserCommandError = async (output, context) => {
|
|
1616
|
-
const parsedOutput = {
|
|
1617
|
-
...output,
|
|
1618
|
-
body: await parseErrorBody(output.body, context),
|
|
1619
|
-
};
|
|
1620
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1621
|
-
switch (errorCode) {
|
|
1622
|
-
case "DuplicateUserName":
|
|
1623
|
-
case "com.amazonaws.elasticache#DuplicateUserNameFault":
|
|
1624
|
-
throw await de_DuplicateUserNameFaultRes(parsedOutput, context);
|
|
1625
|
-
case "InvalidParameterCombination":
|
|
1626
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
1627
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1628
|
-
case "InvalidParameterValue":
|
|
1629
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
1630
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1631
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
1632
|
-
case "com.amazonaws.elasticache#ServiceLinkedRoleNotFoundFault":
|
|
1633
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
1634
|
-
case "TagQuotaPerResourceExceeded":
|
|
1635
|
-
case "com.amazonaws.elasticache#TagQuotaPerResourceExceeded":
|
|
1636
|
-
throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
|
|
1637
|
-
case "UserAlreadyExists":
|
|
1638
|
-
case "com.amazonaws.elasticache#UserAlreadyExistsFault":
|
|
1639
|
-
throw await de_UserAlreadyExistsFaultRes(parsedOutput, context);
|
|
1640
|
-
case "UserQuotaExceeded":
|
|
1641
|
-
case "com.amazonaws.elasticache#UserQuotaExceededFault":
|
|
1642
|
-
throw await de_UserQuotaExceededFaultRes(parsedOutput, context);
|
|
1643
|
-
default:
|
|
1644
|
-
const parsedBody = parsedOutput.body;
|
|
1645
|
-
return throwDefaultError({
|
|
1646
|
-
output,
|
|
1647
|
-
parsedBody: parsedBody.Error,
|
|
1648
|
-
errorCode,
|
|
1649
|
-
});
|
|
1650
|
-
}
|
|
1651
|
-
};
|
|
1652
978
|
export const de_CreateUserGroupCommand = async (output, context) => {
|
|
1653
979
|
if (output.statusCode >= 300) {
|
|
1654
|
-
return
|
|
980
|
+
return de_CommandError(output, context);
|
|
1655
981
|
}
|
|
1656
982
|
const data = await parseBody(output.body, context);
|
|
1657
983
|
let contents = {};
|
|
@@ -1662,49 +988,9 @@ export const de_CreateUserGroupCommand = async (output, context) => {
|
|
|
1662
988
|
};
|
|
1663
989
|
return response;
|
|
1664
990
|
};
|
|
1665
|
-
const de_CreateUserGroupCommandError = async (output, context) => {
|
|
1666
|
-
const parsedOutput = {
|
|
1667
|
-
...output,
|
|
1668
|
-
body: await parseErrorBody(output.body, context),
|
|
1669
|
-
};
|
|
1670
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1671
|
-
switch (errorCode) {
|
|
1672
|
-
case "DefaultUserRequired":
|
|
1673
|
-
case "com.amazonaws.elasticache#DefaultUserRequired":
|
|
1674
|
-
throw await de_DefaultUserRequiredRes(parsedOutput, context);
|
|
1675
|
-
case "DuplicateUserName":
|
|
1676
|
-
case "com.amazonaws.elasticache#DuplicateUserNameFault":
|
|
1677
|
-
throw await de_DuplicateUserNameFaultRes(parsedOutput, context);
|
|
1678
|
-
case "InvalidParameterValue":
|
|
1679
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
1680
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1681
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
1682
|
-
case "com.amazonaws.elasticache#ServiceLinkedRoleNotFoundFault":
|
|
1683
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
1684
|
-
case "TagQuotaPerResourceExceeded":
|
|
1685
|
-
case "com.amazonaws.elasticache#TagQuotaPerResourceExceeded":
|
|
1686
|
-
throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
|
|
1687
|
-
case "UserGroupAlreadyExists":
|
|
1688
|
-
case "com.amazonaws.elasticache#UserGroupAlreadyExistsFault":
|
|
1689
|
-
throw await de_UserGroupAlreadyExistsFaultRes(parsedOutput, context);
|
|
1690
|
-
case "UserGroupQuotaExceeded":
|
|
1691
|
-
case "com.amazonaws.elasticache#UserGroupQuotaExceededFault":
|
|
1692
|
-
throw await de_UserGroupQuotaExceededFaultRes(parsedOutput, context);
|
|
1693
|
-
case "UserNotFound":
|
|
1694
|
-
case "com.amazonaws.elasticache#UserNotFoundFault":
|
|
1695
|
-
throw await de_UserNotFoundFaultRes(parsedOutput, context);
|
|
1696
|
-
default:
|
|
1697
|
-
const parsedBody = parsedOutput.body;
|
|
1698
|
-
return throwDefaultError({
|
|
1699
|
-
output,
|
|
1700
|
-
parsedBody: parsedBody.Error,
|
|
1701
|
-
errorCode,
|
|
1702
|
-
});
|
|
1703
|
-
}
|
|
1704
|
-
};
|
|
1705
991
|
export const de_DecreaseNodeGroupsInGlobalReplicationGroupCommand = async (output, context) => {
|
|
1706
992
|
if (output.statusCode >= 300) {
|
|
1707
|
-
return
|
|
993
|
+
return de_CommandError(output, context);
|
|
1708
994
|
}
|
|
1709
995
|
const data = await parseBody(output.body, context);
|
|
1710
996
|
let contents = {};
|
|
@@ -1715,37 +1001,9 @@ export const de_DecreaseNodeGroupsInGlobalReplicationGroupCommand = async (outpu
|
|
|
1715
1001
|
};
|
|
1716
1002
|
return response;
|
|
1717
1003
|
};
|
|
1718
|
-
const de_DecreaseNodeGroupsInGlobalReplicationGroupCommandError = async (output, context) => {
|
|
1719
|
-
const parsedOutput = {
|
|
1720
|
-
...output,
|
|
1721
|
-
body: await parseErrorBody(output.body, context),
|
|
1722
|
-
};
|
|
1723
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1724
|
-
switch (errorCode) {
|
|
1725
|
-
case "GlobalReplicationGroupNotFoundFault":
|
|
1726
|
-
case "com.amazonaws.elasticache#GlobalReplicationGroupNotFoundFault":
|
|
1727
|
-
throw await de_GlobalReplicationGroupNotFoundFaultRes(parsedOutput, context);
|
|
1728
|
-
case "InvalidGlobalReplicationGroupState":
|
|
1729
|
-
case "com.amazonaws.elasticache#InvalidGlobalReplicationGroupStateFault":
|
|
1730
|
-
throw await de_InvalidGlobalReplicationGroupStateFaultRes(parsedOutput, context);
|
|
1731
|
-
case "InvalidParameterCombination":
|
|
1732
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
1733
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1734
|
-
case "InvalidParameterValue":
|
|
1735
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
1736
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1737
|
-
default:
|
|
1738
|
-
const parsedBody = parsedOutput.body;
|
|
1739
|
-
return throwDefaultError({
|
|
1740
|
-
output,
|
|
1741
|
-
parsedBody: parsedBody.Error,
|
|
1742
|
-
errorCode,
|
|
1743
|
-
});
|
|
1744
|
-
}
|
|
1745
|
-
};
|
|
1746
1004
|
export const de_DecreaseReplicaCountCommand = async (output, context) => {
|
|
1747
1005
|
if (output.statusCode >= 300) {
|
|
1748
|
-
return
|
|
1006
|
+
return de_CommandError(output, context);
|
|
1749
1007
|
}
|
|
1750
1008
|
const data = await parseBody(output.body, context);
|
|
1751
1009
|
let contents = {};
|
|
@@ -1756,111 +1014,22 @@ export const de_DecreaseReplicaCountCommand = async (output, context) => {
|
|
|
1756
1014
|
};
|
|
1757
1015
|
return response;
|
|
1758
1016
|
};
|
|
1759
|
-
const
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
case "InsufficientCacheClusterCapacity":
|
|
1770
|
-
case "com.amazonaws.elasticache#InsufficientCacheClusterCapacityFault":
|
|
1771
|
-
throw await de_InsufficientCacheClusterCapacityFaultRes(parsedOutput, context);
|
|
1772
|
-
case "InvalidCacheClusterState":
|
|
1773
|
-
case "com.amazonaws.elasticache#InvalidCacheClusterStateFault":
|
|
1774
|
-
throw await de_InvalidCacheClusterStateFaultRes(parsedOutput, context);
|
|
1775
|
-
case "InvalidParameterCombination":
|
|
1776
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
1777
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1778
|
-
case "InvalidParameterValue":
|
|
1779
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
1780
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1781
|
-
case "InvalidReplicationGroupState":
|
|
1782
|
-
case "com.amazonaws.elasticache#InvalidReplicationGroupStateFault":
|
|
1783
|
-
throw await de_InvalidReplicationGroupStateFaultRes(parsedOutput, context);
|
|
1784
|
-
case "InvalidVPCNetworkStateFault":
|
|
1785
|
-
case "com.amazonaws.elasticache#InvalidVPCNetworkStateFault":
|
|
1786
|
-
throw await de_InvalidVPCNetworkStateFaultRes(parsedOutput, context);
|
|
1787
|
-
case "NoOperationFault":
|
|
1788
|
-
case "com.amazonaws.elasticache#NoOperationFault":
|
|
1789
|
-
throw await de_NoOperationFaultRes(parsedOutput, context);
|
|
1790
|
-
case "NodeGroupsPerReplicationGroupQuotaExceeded":
|
|
1791
|
-
case "com.amazonaws.elasticache#NodeGroupsPerReplicationGroupQuotaExceededFault":
|
|
1792
|
-
throw await de_NodeGroupsPerReplicationGroupQuotaExceededFaultRes(parsedOutput, context);
|
|
1793
|
-
case "NodeQuotaForCustomerExceeded":
|
|
1794
|
-
case "com.amazonaws.elasticache#NodeQuotaForCustomerExceededFault":
|
|
1795
|
-
throw await de_NodeQuotaForCustomerExceededFaultRes(parsedOutput, context);
|
|
1796
|
-
case "ReplicationGroupNotFoundFault":
|
|
1797
|
-
case "com.amazonaws.elasticache#ReplicationGroupNotFoundFault":
|
|
1798
|
-
throw await de_ReplicationGroupNotFoundFaultRes(parsedOutput, context);
|
|
1799
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
1800
|
-
case "com.amazonaws.elasticache#ServiceLinkedRoleNotFoundFault":
|
|
1801
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
1802
|
-
default:
|
|
1803
|
-
const parsedBody = parsedOutput.body;
|
|
1804
|
-
return throwDefaultError({
|
|
1805
|
-
output,
|
|
1806
|
-
parsedBody: parsedBody.Error,
|
|
1807
|
-
errorCode,
|
|
1808
|
-
});
|
|
1809
|
-
}
|
|
1810
|
-
};
|
|
1811
|
-
export const de_DeleteCacheClusterCommand = async (output, context) => {
|
|
1812
|
-
if (output.statusCode >= 300) {
|
|
1813
|
-
return de_DeleteCacheClusterCommandError(output, context);
|
|
1814
|
-
}
|
|
1815
|
-
const data = await parseBody(output.body, context);
|
|
1816
|
-
let contents = {};
|
|
1817
|
-
contents = de_DeleteCacheClusterResult(data.DeleteCacheClusterResult, context);
|
|
1818
|
-
const response = {
|
|
1819
|
-
$metadata: deserializeMetadata(output),
|
|
1820
|
-
...contents,
|
|
1017
|
+
export const de_DeleteCacheClusterCommand = async (output, context) => {
|
|
1018
|
+
if (output.statusCode >= 300) {
|
|
1019
|
+
return de_CommandError(output, context);
|
|
1020
|
+
}
|
|
1021
|
+
const data = await parseBody(output.body, context);
|
|
1022
|
+
let contents = {};
|
|
1023
|
+
contents = de_DeleteCacheClusterResult(data.DeleteCacheClusterResult, context);
|
|
1024
|
+
const response = {
|
|
1025
|
+
$metadata: deserializeMetadata(output),
|
|
1026
|
+
...contents,
|
|
1821
1027
|
};
|
|
1822
1028
|
return response;
|
|
1823
1029
|
};
|
|
1824
|
-
const de_DeleteCacheClusterCommandError = async (output, context) => {
|
|
1825
|
-
const parsedOutput = {
|
|
1826
|
-
...output,
|
|
1827
|
-
body: await parseErrorBody(output.body, context),
|
|
1828
|
-
};
|
|
1829
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1830
|
-
switch (errorCode) {
|
|
1831
|
-
case "CacheClusterNotFound":
|
|
1832
|
-
case "com.amazonaws.elasticache#CacheClusterNotFoundFault":
|
|
1833
|
-
throw await de_CacheClusterNotFoundFaultRes(parsedOutput, context);
|
|
1834
|
-
case "InvalidCacheClusterState":
|
|
1835
|
-
case "com.amazonaws.elasticache#InvalidCacheClusterStateFault":
|
|
1836
|
-
throw await de_InvalidCacheClusterStateFaultRes(parsedOutput, context);
|
|
1837
|
-
case "InvalidParameterCombination":
|
|
1838
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
1839
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1840
|
-
case "InvalidParameterValue":
|
|
1841
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
1842
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1843
|
-
case "SnapshotAlreadyExistsFault":
|
|
1844
|
-
case "com.amazonaws.elasticache#SnapshotAlreadyExistsFault":
|
|
1845
|
-
throw await de_SnapshotAlreadyExistsFaultRes(parsedOutput, context);
|
|
1846
|
-
case "SnapshotFeatureNotSupportedFault":
|
|
1847
|
-
case "com.amazonaws.elasticache#SnapshotFeatureNotSupportedFault":
|
|
1848
|
-
throw await de_SnapshotFeatureNotSupportedFaultRes(parsedOutput, context);
|
|
1849
|
-
case "SnapshotQuotaExceededFault":
|
|
1850
|
-
case "com.amazonaws.elasticache#SnapshotQuotaExceededFault":
|
|
1851
|
-
throw await de_SnapshotQuotaExceededFaultRes(parsedOutput, context);
|
|
1852
|
-
default:
|
|
1853
|
-
const parsedBody = parsedOutput.body;
|
|
1854
|
-
return throwDefaultError({
|
|
1855
|
-
output,
|
|
1856
|
-
parsedBody: parsedBody.Error,
|
|
1857
|
-
errorCode,
|
|
1858
|
-
});
|
|
1859
|
-
}
|
|
1860
|
-
};
|
|
1861
1030
|
export const de_DeleteCacheParameterGroupCommand = async (output, context) => {
|
|
1862
1031
|
if (output.statusCode >= 300) {
|
|
1863
|
-
return
|
|
1032
|
+
return de_CommandError(output, context);
|
|
1864
1033
|
}
|
|
1865
1034
|
await collectBody(output.body, context);
|
|
1866
1035
|
const response = {
|
|
@@ -1868,37 +1037,9 @@ export const de_DeleteCacheParameterGroupCommand = async (output, context) => {
|
|
|
1868
1037
|
};
|
|
1869
1038
|
return response;
|
|
1870
1039
|
};
|
|
1871
|
-
const de_DeleteCacheParameterGroupCommandError = async (output, context) => {
|
|
1872
|
-
const parsedOutput = {
|
|
1873
|
-
...output,
|
|
1874
|
-
body: await parseErrorBody(output.body, context),
|
|
1875
|
-
};
|
|
1876
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1877
|
-
switch (errorCode) {
|
|
1878
|
-
case "CacheParameterGroupNotFound":
|
|
1879
|
-
case "com.amazonaws.elasticache#CacheParameterGroupNotFoundFault":
|
|
1880
|
-
throw await de_CacheParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
1881
|
-
case "InvalidCacheParameterGroupState":
|
|
1882
|
-
case "com.amazonaws.elasticache#InvalidCacheParameterGroupStateFault":
|
|
1883
|
-
throw await de_InvalidCacheParameterGroupStateFaultRes(parsedOutput, context);
|
|
1884
|
-
case "InvalidParameterCombination":
|
|
1885
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
1886
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1887
|
-
case "InvalidParameterValue":
|
|
1888
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
1889
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1890
|
-
default:
|
|
1891
|
-
const parsedBody = parsedOutput.body;
|
|
1892
|
-
return throwDefaultError({
|
|
1893
|
-
output,
|
|
1894
|
-
parsedBody: parsedBody.Error,
|
|
1895
|
-
errorCode,
|
|
1896
|
-
});
|
|
1897
|
-
}
|
|
1898
|
-
};
|
|
1899
1040
|
export const de_DeleteCacheSecurityGroupCommand = async (output, context) => {
|
|
1900
1041
|
if (output.statusCode >= 300) {
|
|
1901
|
-
return
|
|
1042
|
+
return de_CommandError(output, context);
|
|
1902
1043
|
}
|
|
1903
1044
|
await collectBody(output.body, context);
|
|
1904
1045
|
const response = {
|
|
@@ -1906,37 +1047,9 @@ export const de_DeleteCacheSecurityGroupCommand = async (output, context) => {
|
|
|
1906
1047
|
};
|
|
1907
1048
|
return response;
|
|
1908
1049
|
};
|
|
1909
|
-
const de_DeleteCacheSecurityGroupCommandError = async (output, context) => {
|
|
1910
|
-
const parsedOutput = {
|
|
1911
|
-
...output,
|
|
1912
|
-
body: await parseErrorBody(output.body, context),
|
|
1913
|
-
};
|
|
1914
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1915
|
-
switch (errorCode) {
|
|
1916
|
-
case "CacheSecurityGroupNotFound":
|
|
1917
|
-
case "com.amazonaws.elasticache#CacheSecurityGroupNotFoundFault":
|
|
1918
|
-
throw await de_CacheSecurityGroupNotFoundFaultRes(parsedOutput, context);
|
|
1919
|
-
case "InvalidCacheSecurityGroupState":
|
|
1920
|
-
case "com.amazonaws.elasticache#InvalidCacheSecurityGroupStateFault":
|
|
1921
|
-
throw await de_InvalidCacheSecurityGroupStateFaultRes(parsedOutput, context);
|
|
1922
|
-
case "InvalidParameterCombination":
|
|
1923
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
1924
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1925
|
-
case "InvalidParameterValue":
|
|
1926
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
1927
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1928
|
-
default:
|
|
1929
|
-
const parsedBody = parsedOutput.body;
|
|
1930
|
-
return throwDefaultError({
|
|
1931
|
-
output,
|
|
1932
|
-
parsedBody: parsedBody.Error,
|
|
1933
|
-
errorCode,
|
|
1934
|
-
});
|
|
1935
|
-
}
|
|
1936
|
-
};
|
|
1937
1050
|
export const de_DeleteCacheSubnetGroupCommand = async (output, context) => {
|
|
1938
1051
|
if (output.statusCode >= 300) {
|
|
1939
|
-
return
|
|
1052
|
+
return de_CommandError(output, context);
|
|
1940
1053
|
}
|
|
1941
1054
|
await collectBody(output.body, context);
|
|
1942
1055
|
const response = {
|
|
@@ -1944,31 +1057,9 @@ export const de_DeleteCacheSubnetGroupCommand = async (output, context) => {
|
|
|
1944
1057
|
};
|
|
1945
1058
|
return response;
|
|
1946
1059
|
};
|
|
1947
|
-
const de_DeleteCacheSubnetGroupCommandError = async (output, context) => {
|
|
1948
|
-
const parsedOutput = {
|
|
1949
|
-
...output,
|
|
1950
|
-
body: await parseErrorBody(output.body, context),
|
|
1951
|
-
};
|
|
1952
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1953
|
-
switch (errorCode) {
|
|
1954
|
-
case "CacheSubnetGroupInUse":
|
|
1955
|
-
case "com.amazonaws.elasticache#CacheSubnetGroupInUse":
|
|
1956
|
-
throw await de_CacheSubnetGroupInUseRes(parsedOutput, context);
|
|
1957
|
-
case "CacheSubnetGroupNotFoundFault":
|
|
1958
|
-
case "com.amazonaws.elasticache#CacheSubnetGroupNotFoundFault":
|
|
1959
|
-
throw await de_CacheSubnetGroupNotFoundFaultRes(parsedOutput, context);
|
|
1960
|
-
default:
|
|
1961
|
-
const parsedBody = parsedOutput.body;
|
|
1962
|
-
return throwDefaultError({
|
|
1963
|
-
output,
|
|
1964
|
-
parsedBody: parsedBody.Error,
|
|
1965
|
-
errorCode,
|
|
1966
|
-
});
|
|
1967
|
-
}
|
|
1968
|
-
};
|
|
1969
1060
|
export const de_DeleteGlobalReplicationGroupCommand = async (output, context) => {
|
|
1970
1061
|
if (output.statusCode >= 300) {
|
|
1971
|
-
return
|
|
1062
|
+
return de_CommandError(output, context);
|
|
1972
1063
|
}
|
|
1973
1064
|
const data = await parseBody(output.body, context);
|
|
1974
1065
|
let contents = {};
|
|
@@ -1979,34 +1070,9 @@ export const de_DeleteGlobalReplicationGroupCommand = async (output, context) =>
|
|
|
1979
1070
|
};
|
|
1980
1071
|
return response;
|
|
1981
1072
|
};
|
|
1982
|
-
const de_DeleteGlobalReplicationGroupCommandError = async (output, context) => {
|
|
1983
|
-
const parsedOutput = {
|
|
1984
|
-
...output,
|
|
1985
|
-
body: await parseErrorBody(output.body, context),
|
|
1986
|
-
};
|
|
1987
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1988
|
-
switch (errorCode) {
|
|
1989
|
-
case "GlobalReplicationGroupNotFoundFault":
|
|
1990
|
-
case "com.amazonaws.elasticache#GlobalReplicationGroupNotFoundFault":
|
|
1991
|
-
throw await de_GlobalReplicationGroupNotFoundFaultRes(parsedOutput, context);
|
|
1992
|
-
case "InvalidGlobalReplicationGroupState":
|
|
1993
|
-
case "com.amazonaws.elasticache#InvalidGlobalReplicationGroupStateFault":
|
|
1994
|
-
throw await de_InvalidGlobalReplicationGroupStateFaultRes(parsedOutput, context);
|
|
1995
|
-
case "InvalidParameterValue":
|
|
1996
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
1997
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1998
|
-
default:
|
|
1999
|
-
const parsedBody = parsedOutput.body;
|
|
2000
|
-
return throwDefaultError({
|
|
2001
|
-
output,
|
|
2002
|
-
parsedBody: parsedBody.Error,
|
|
2003
|
-
errorCode,
|
|
2004
|
-
});
|
|
2005
|
-
}
|
|
2006
|
-
};
|
|
2007
1073
|
export const de_DeleteReplicationGroupCommand = async (output, context) => {
|
|
2008
1074
|
if (output.statusCode >= 300) {
|
|
2009
|
-
return
|
|
1075
|
+
return de_CommandError(output, context);
|
|
2010
1076
|
}
|
|
2011
1077
|
const data = await parseBody(output.body, context);
|
|
2012
1078
|
let contents = {};
|
|
@@ -2017,46 +1083,9 @@ export const de_DeleteReplicationGroupCommand = async (output, context) => {
|
|
|
2017
1083
|
};
|
|
2018
1084
|
return response;
|
|
2019
1085
|
};
|
|
2020
|
-
const de_DeleteReplicationGroupCommandError = async (output, context) => {
|
|
2021
|
-
const parsedOutput = {
|
|
2022
|
-
...output,
|
|
2023
|
-
body: await parseErrorBody(output.body, context),
|
|
2024
|
-
};
|
|
2025
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2026
|
-
switch (errorCode) {
|
|
2027
|
-
case "InvalidParameterCombination":
|
|
2028
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
2029
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
2030
|
-
case "InvalidParameterValue":
|
|
2031
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
2032
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2033
|
-
case "InvalidReplicationGroupState":
|
|
2034
|
-
case "com.amazonaws.elasticache#InvalidReplicationGroupStateFault":
|
|
2035
|
-
throw await de_InvalidReplicationGroupStateFaultRes(parsedOutput, context);
|
|
2036
|
-
case "ReplicationGroupNotFoundFault":
|
|
2037
|
-
case "com.amazonaws.elasticache#ReplicationGroupNotFoundFault":
|
|
2038
|
-
throw await de_ReplicationGroupNotFoundFaultRes(parsedOutput, context);
|
|
2039
|
-
case "SnapshotAlreadyExistsFault":
|
|
2040
|
-
case "com.amazonaws.elasticache#SnapshotAlreadyExistsFault":
|
|
2041
|
-
throw await de_SnapshotAlreadyExistsFaultRes(parsedOutput, context);
|
|
2042
|
-
case "SnapshotFeatureNotSupportedFault":
|
|
2043
|
-
case "com.amazonaws.elasticache#SnapshotFeatureNotSupportedFault":
|
|
2044
|
-
throw await de_SnapshotFeatureNotSupportedFaultRes(parsedOutput, context);
|
|
2045
|
-
case "SnapshotQuotaExceededFault":
|
|
2046
|
-
case "com.amazonaws.elasticache#SnapshotQuotaExceededFault":
|
|
2047
|
-
throw await de_SnapshotQuotaExceededFaultRes(parsedOutput, context);
|
|
2048
|
-
default:
|
|
2049
|
-
const parsedBody = parsedOutput.body;
|
|
2050
|
-
return throwDefaultError({
|
|
2051
|
-
output,
|
|
2052
|
-
parsedBody: parsedBody.Error,
|
|
2053
|
-
errorCode,
|
|
2054
|
-
});
|
|
2055
|
-
}
|
|
2056
|
-
};
|
|
2057
1086
|
export const de_DeleteServerlessCacheCommand = async (output, context) => {
|
|
2058
1087
|
if (output.statusCode >= 300) {
|
|
2059
|
-
return
|
|
1088
|
+
return de_CommandError(output, context);
|
|
2060
1089
|
}
|
|
2061
1090
|
const data = await parseBody(output.body, context);
|
|
2062
1091
|
let contents = {};
|
|
@@ -2067,46 +1096,9 @@ export const de_DeleteServerlessCacheCommand = async (output, context) => {
|
|
|
2067
1096
|
};
|
|
2068
1097
|
return response;
|
|
2069
1098
|
};
|
|
2070
|
-
const de_DeleteServerlessCacheCommandError = async (output, context) => {
|
|
2071
|
-
const parsedOutput = {
|
|
2072
|
-
...output,
|
|
2073
|
-
body: await parseErrorBody(output.body, context),
|
|
2074
|
-
};
|
|
2075
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2076
|
-
switch (errorCode) {
|
|
2077
|
-
case "InvalidCredentialsException":
|
|
2078
|
-
case "com.amazonaws.elasticache#InvalidCredentialsException":
|
|
2079
|
-
throw await de_InvalidCredentialsExceptionRes(parsedOutput, context);
|
|
2080
|
-
case "InvalidParameterCombination":
|
|
2081
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
2082
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
2083
|
-
case "InvalidParameterValue":
|
|
2084
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
2085
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2086
|
-
case "InvalidServerlessCacheStateFault":
|
|
2087
|
-
case "com.amazonaws.elasticache#InvalidServerlessCacheStateFault":
|
|
2088
|
-
throw await de_InvalidServerlessCacheStateFaultRes(parsedOutput, context);
|
|
2089
|
-
case "ServerlessCacheNotFoundFault":
|
|
2090
|
-
case "com.amazonaws.elasticache#ServerlessCacheNotFoundFault":
|
|
2091
|
-
throw await de_ServerlessCacheNotFoundFaultRes(parsedOutput, context);
|
|
2092
|
-
case "ServerlessCacheSnapshotAlreadyExistsFault":
|
|
2093
|
-
case "com.amazonaws.elasticache#ServerlessCacheSnapshotAlreadyExistsFault":
|
|
2094
|
-
throw await de_ServerlessCacheSnapshotAlreadyExistsFaultRes(parsedOutput, context);
|
|
2095
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
2096
|
-
case "com.amazonaws.elasticache#ServiceLinkedRoleNotFoundFault":
|
|
2097
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
2098
|
-
default:
|
|
2099
|
-
const parsedBody = parsedOutput.body;
|
|
2100
|
-
return throwDefaultError({
|
|
2101
|
-
output,
|
|
2102
|
-
parsedBody: parsedBody.Error,
|
|
2103
|
-
errorCode,
|
|
2104
|
-
});
|
|
2105
|
-
}
|
|
2106
|
-
};
|
|
2107
1099
|
export const de_DeleteServerlessCacheSnapshotCommand = async (output, context) => {
|
|
2108
1100
|
if (output.statusCode >= 300) {
|
|
2109
|
-
return
|
|
1101
|
+
return de_CommandError(output, context);
|
|
2110
1102
|
}
|
|
2111
1103
|
const data = await parseBody(output.body, context);
|
|
2112
1104
|
let contents = {};
|
|
@@ -2117,37 +1109,9 @@ export const de_DeleteServerlessCacheSnapshotCommand = async (output, context) =
|
|
|
2117
1109
|
};
|
|
2118
1110
|
return response;
|
|
2119
1111
|
};
|
|
2120
|
-
const de_DeleteServerlessCacheSnapshotCommandError = async (output, context) => {
|
|
2121
|
-
const parsedOutput = {
|
|
2122
|
-
...output,
|
|
2123
|
-
body: await parseErrorBody(output.body, context),
|
|
2124
|
-
};
|
|
2125
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2126
|
-
switch (errorCode) {
|
|
2127
|
-
case "InvalidParameterValue":
|
|
2128
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
2129
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2130
|
-
case "InvalidServerlessCacheSnapshotStateFault":
|
|
2131
|
-
case "com.amazonaws.elasticache#InvalidServerlessCacheSnapshotStateFault":
|
|
2132
|
-
throw await de_InvalidServerlessCacheSnapshotStateFaultRes(parsedOutput, context);
|
|
2133
|
-
case "ServerlessCacheSnapshotNotFoundFault":
|
|
2134
|
-
case "com.amazonaws.elasticache#ServerlessCacheSnapshotNotFoundFault":
|
|
2135
|
-
throw await de_ServerlessCacheSnapshotNotFoundFaultRes(parsedOutput, context);
|
|
2136
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
2137
|
-
case "com.amazonaws.elasticache#ServiceLinkedRoleNotFoundFault":
|
|
2138
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
2139
|
-
default:
|
|
2140
|
-
const parsedBody = parsedOutput.body;
|
|
2141
|
-
return throwDefaultError({
|
|
2142
|
-
output,
|
|
2143
|
-
parsedBody: parsedBody.Error,
|
|
2144
|
-
errorCode,
|
|
2145
|
-
});
|
|
2146
|
-
}
|
|
2147
|
-
};
|
|
2148
1112
|
export const de_DeleteSnapshotCommand = async (output, context) => {
|
|
2149
1113
|
if (output.statusCode >= 300) {
|
|
2150
|
-
return
|
|
1114
|
+
return de_CommandError(output, context);
|
|
2151
1115
|
}
|
|
2152
1116
|
const data = await parseBody(output.body, context);
|
|
2153
1117
|
let contents = {};
|
|
@@ -2158,37 +1122,9 @@ export const de_DeleteSnapshotCommand = async (output, context) => {
|
|
|
2158
1122
|
};
|
|
2159
1123
|
return response;
|
|
2160
1124
|
};
|
|
2161
|
-
const de_DeleteSnapshotCommandError = async (output, context) => {
|
|
2162
|
-
const parsedOutput = {
|
|
2163
|
-
...output,
|
|
2164
|
-
body: await parseErrorBody(output.body, context),
|
|
2165
|
-
};
|
|
2166
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2167
|
-
switch (errorCode) {
|
|
2168
|
-
case "InvalidParameterCombination":
|
|
2169
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
2170
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
2171
|
-
case "InvalidParameterValue":
|
|
2172
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
2173
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2174
|
-
case "InvalidSnapshotState":
|
|
2175
|
-
case "com.amazonaws.elasticache#InvalidSnapshotStateFault":
|
|
2176
|
-
throw await de_InvalidSnapshotStateFaultRes(parsedOutput, context);
|
|
2177
|
-
case "SnapshotNotFoundFault":
|
|
2178
|
-
case "com.amazonaws.elasticache#SnapshotNotFoundFault":
|
|
2179
|
-
throw await de_SnapshotNotFoundFaultRes(parsedOutput, context);
|
|
2180
|
-
default:
|
|
2181
|
-
const parsedBody = parsedOutput.body;
|
|
2182
|
-
return throwDefaultError({
|
|
2183
|
-
output,
|
|
2184
|
-
parsedBody: parsedBody.Error,
|
|
2185
|
-
errorCode,
|
|
2186
|
-
});
|
|
2187
|
-
}
|
|
2188
|
-
};
|
|
2189
1125
|
export const de_DeleteUserCommand = async (output, context) => {
|
|
2190
1126
|
if (output.statusCode >= 300) {
|
|
2191
|
-
return
|
|
1127
|
+
return de_CommandError(output, context);
|
|
2192
1128
|
}
|
|
2193
1129
|
const data = await parseBody(output.body, context);
|
|
2194
1130
|
let contents = {};
|
|
@@ -2199,40 +1135,9 @@ export const de_DeleteUserCommand = async (output, context) => {
|
|
|
2199
1135
|
};
|
|
2200
1136
|
return response;
|
|
2201
1137
|
};
|
|
2202
|
-
const de_DeleteUserCommandError = async (output, context) => {
|
|
2203
|
-
const parsedOutput = {
|
|
2204
|
-
...output,
|
|
2205
|
-
body: await parseErrorBody(output.body, context),
|
|
2206
|
-
};
|
|
2207
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2208
|
-
switch (errorCode) {
|
|
2209
|
-
case "DefaultUserAssociatedToUserGroup":
|
|
2210
|
-
case "com.amazonaws.elasticache#DefaultUserAssociatedToUserGroupFault":
|
|
2211
|
-
throw await de_DefaultUserAssociatedToUserGroupFaultRes(parsedOutput, context);
|
|
2212
|
-
case "InvalidParameterValue":
|
|
2213
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
2214
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2215
|
-
case "InvalidUserState":
|
|
2216
|
-
case "com.amazonaws.elasticache#InvalidUserStateFault":
|
|
2217
|
-
throw await de_InvalidUserStateFaultRes(parsedOutput, context);
|
|
2218
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
2219
|
-
case "com.amazonaws.elasticache#ServiceLinkedRoleNotFoundFault":
|
|
2220
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
2221
|
-
case "UserNotFound":
|
|
2222
|
-
case "com.amazonaws.elasticache#UserNotFoundFault":
|
|
2223
|
-
throw await de_UserNotFoundFaultRes(parsedOutput, context);
|
|
2224
|
-
default:
|
|
2225
|
-
const parsedBody = parsedOutput.body;
|
|
2226
|
-
return throwDefaultError({
|
|
2227
|
-
output,
|
|
2228
|
-
parsedBody: parsedBody.Error,
|
|
2229
|
-
errorCode,
|
|
2230
|
-
});
|
|
2231
|
-
}
|
|
2232
|
-
};
|
|
2233
1138
|
export const de_DeleteUserGroupCommand = async (output, context) => {
|
|
2234
1139
|
if (output.statusCode >= 300) {
|
|
2235
|
-
return
|
|
1140
|
+
return de_CommandError(output, context);
|
|
2236
1141
|
}
|
|
2237
1142
|
const data = await parseBody(output.body, context);
|
|
2238
1143
|
let contents = {};
|
|
@@ -2243,37 +1148,9 @@ export const de_DeleteUserGroupCommand = async (output, context) => {
|
|
|
2243
1148
|
};
|
|
2244
1149
|
return response;
|
|
2245
1150
|
};
|
|
2246
|
-
const de_DeleteUserGroupCommandError = async (output, context) => {
|
|
2247
|
-
const parsedOutput = {
|
|
2248
|
-
...output,
|
|
2249
|
-
body: await parseErrorBody(output.body, context),
|
|
2250
|
-
};
|
|
2251
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2252
|
-
switch (errorCode) {
|
|
2253
|
-
case "InvalidParameterValue":
|
|
2254
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
2255
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2256
|
-
case "InvalidUserGroupState":
|
|
2257
|
-
case "com.amazonaws.elasticache#InvalidUserGroupStateFault":
|
|
2258
|
-
throw await de_InvalidUserGroupStateFaultRes(parsedOutput, context);
|
|
2259
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
2260
|
-
case "com.amazonaws.elasticache#ServiceLinkedRoleNotFoundFault":
|
|
2261
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
2262
|
-
case "UserGroupNotFound":
|
|
2263
|
-
case "com.amazonaws.elasticache#UserGroupNotFoundFault":
|
|
2264
|
-
throw await de_UserGroupNotFoundFaultRes(parsedOutput, context);
|
|
2265
|
-
default:
|
|
2266
|
-
const parsedBody = parsedOutput.body;
|
|
2267
|
-
return throwDefaultError({
|
|
2268
|
-
output,
|
|
2269
|
-
parsedBody: parsedBody.Error,
|
|
2270
|
-
errorCode,
|
|
2271
|
-
});
|
|
2272
|
-
}
|
|
2273
|
-
};
|
|
2274
1151
|
export const de_DescribeCacheClustersCommand = async (output, context) => {
|
|
2275
1152
|
if (output.statusCode >= 300) {
|
|
2276
|
-
return
|
|
1153
|
+
return de_CommandError(output, context);
|
|
2277
1154
|
}
|
|
2278
1155
|
const data = await parseBody(output.body, context);
|
|
2279
1156
|
let contents = {};
|
|
@@ -2284,34 +1161,9 @@ export const de_DescribeCacheClustersCommand = async (output, context) => {
|
|
|
2284
1161
|
};
|
|
2285
1162
|
return response;
|
|
2286
1163
|
};
|
|
2287
|
-
const de_DescribeCacheClustersCommandError = async (output, context) => {
|
|
2288
|
-
const parsedOutput = {
|
|
2289
|
-
...output,
|
|
2290
|
-
body: await parseErrorBody(output.body, context),
|
|
2291
|
-
};
|
|
2292
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2293
|
-
switch (errorCode) {
|
|
2294
|
-
case "CacheClusterNotFound":
|
|
2295
|
-
case "com.amazonaws.elasticache#CacheClusterNotFoundFault":
|
|
2296
|
-
throw await de_CacheClusterNotFoundFaultRes(parsedOutput, context);
|
|
2297
|
-
case "InvalidParameterCombination":
|
|
2298
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
2299
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
2300
|
-
case "InvalidParameterValue":
|
|
2301
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
2302
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2303
|
-
default:
|
|
2304
|
-
const parsedBody = parsedOutput.body;
|
|
2305
|
-
return throwDefaultError({
|
|
2306
|
-
output,
|
|
2307
|
-
parsedBody: parsedBody.Error,
|
|
2308
|
-
errorCode,
|
|
2309
|
-
});
|
|
2310
|
-
}
|
|
2311
|
-
};
|
|
2312
1164
|
export const de_DescribeCacheEngineVersionsCommand = async (output, context) => {
|
|
2313
1165
|
if (output.statusCode >= 300) {
|
|
2314
|
-
return
|
|
1166
|
+
return de_CommandError(output, context);
|
|
2315
1167
|
}
|
|
2316
1168
|
const data = await parseBody(output.body, context);
|
|
2317
1169
|
let contents = {};
|
|
@@ -2322,22 +1174,9 @@ export const de_DescribeCacheEngineVersionsCommand = async (output, context) =>
|
|
|
2322
1174
|
};
|
|
2323
1175
|
return response;
|
|
2324
1176
|
};
|
|
2325
|
-
const de_DescribeCacheEngineVersionsCommandError = async (output, context) => {
|
|
2326
|
-
const parsedOutput = {
|
|
2327
|
-
...output,
|
|
2328
|
-
body: await parseErrorBody(output.body, context),
|
|
2329
|
-
};
|
|
2330
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2331
|
-
const parsedBody = parsedOutput.body;
|
|
2332
|
-
return throwDefaultError({
|
|
2333
|
-
output,
|
|
2334
|
-
parsedBody: parsedBody.Error,
|
|
2335
|
-
errorCode,
|
|
2336
|
-
});
|
|
2337
|
-
};
|
|
2338
1177
|
export const de_DescribeCacheParameterGroupsCommand = async (output, context) => {
|
|
2339
1178
|
if (output.statusCode >= 300) {
|
|
2340
|
-
return
|
|
1179
|
+
return de_CommandError(output, context);
|
|
2341
1180
|
}
|
|
2342
1181
|
const data = await parseBody(output.body, context);
|
|
2343
1182
|
let contents = {};
|
|
@@ -2348,34 +1187,9 @@ export const de_DescribeCacheParameterGroupsCommand = async (output, context) =>
|
|
|
2348
1187
|
};
|
|
2349
1188
|
return response;
|
|
2350
1189
|
};
|
|
2351
|
-
const de_DescribeCacheParameterGroupsCommandError = async (output, context) => {
|
|
2352
|
-
const parsedOutput = {
|
|
2353
|
-
...output,
|
|
2354
|
-
body: await parseErrorBody(output.body, context),
|
|
2355
|
-
};
|
|
2356
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2357
|
-
switch (errorCode) {
|
|
2358
|
-
case "CacheParameterGroupNotFound":
|
|
2359
|
-
case "com.amazonaws.elasticache#CacheParameterGroupNotFoundFault":
|
|
2360
|
-
throw await de_CacheParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
2361
|
-
case "InvalidParameterCombination":
|
|
2362
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
2363
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
2364
|
-
case "InvalidParameterValue":
|
|
2365
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
2366
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2367
|
-
default:
|
|
2368
|
-
const parsedBody = parsedOutput.body;
|
|
2369
|
-
return throwDefaultError({
|
|
2370
|
-
output,
|
|
2371
|
-
parsedBody: parsedBody.Error,
|
|
2372
|
-
errorCode,
|
|
2373
|
-
});
|
|
2374
|
-
}
|
|
2375
|
-
};
|
|
2376
1190
|
export const de_DescribeCacheParametersCommand = async (output, context) => {
|
|
2377
1191
|
if (output.statusCode >= 300) {
|
|
2378
|
-
return
|
|
1192
|
+
return de_CommandError(output, context);
|
|
2379
1193
|
}
|
|
2380
1194
|
const data = await parseBody(output.body, context);
|
|
2381
1195
|
let contents = {};
|
|
@@ -2386,34 +1200,9 @@ export const de_DescribeCacheParametersCommand = async (output, context) => {
|
|
|
2386
1200
|
};
|
|
2387
1201
|
return response;
|
|
2388
1202
|
};
|
|
2389
|
-
const de_DescribeCacheParametersCommandError = async (output, context) => {
|
|
2390
|
-
const parsedOutput = {
|
|
2391
|
-
...output,
|
|
2392
|
-
body: await parseErrorBody(output.body, context),
|
|
2393
|
-
};
|
|
2394
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2395
|
-
switch (errorCode) {
|
|
2396
|
-
case "CacheParameterGroupNotFound":
|
|
2397
|
-
case "com.amazonaws.elasticache#CacheParameterGroupNotFoundFault":
|
|
2398
|
-
throw await de_CacheParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
2399
|
-
case "InvalidParameterCombination":
|
|
2400
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
2401
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
2402
|
-
case "InvalidParameterValue":
|
|
2403
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
2404
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2405
|
-
default:
|
|
2406
|
-
const parsedBody = parsedOutput.body;
|
|
2407
|
-
return throwDefaultError({
|
|
2408
|
-
output,
|
|
2409
|
-
parsedBody: parsedBody.Error,
|
|
2410
|
-
errorCode,
|
|
2411
|
-
});
|
|
2412
|
-
}
|
|
2413
|
-
};
|
|
2414
1203
|
export const de_DescribeCacheSecurityGroupsCommand = async (output, context) => {
|
|
2415
1204
|
if (output.statusCode >= 300) {
|
|
2416
|
-
return
|
|
1205
|
+
return de_CommandError(output, context);
|
|
2417
1206
|
}
|
|
2418
1207
|
const data = await parseBody(output.body, context);
|
|
2419
1208
|
let contents = {};
|
|
@@ -2424,34 +1213,9 @@ export const de_DescribeCacheSecurityGroupsCommand = async (output, context) =>
|
|
|
2424
1213
|
};
|
|
2425
1214
|
return response;
|
|
2426
1215
|
};
|
|
2427
|
-
const de_DescribeCacheSecurityGroupsCommandError = async (output, context) => {
|
|
2428
|
-
const parsedOutput = {
|
|
2429
|
-
...output,
|
|
2430
|
-
body: await parseErrorBody(output.body, context),
|
|
2431
|
-
};
|
|
2432
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2433
|
-
switch (errorCode) {
|
|
2434
|
-
case "CacheSecurityGroupNotFound":
|
|
2435
|
-
case "com.amazonaws.elasticache#CacheSecurityGroupNotFoundFault":
|
|
2436
|
-
throw await de_CacheSecurityGroupNotFoundFaultRes(parsedOutput, context);
|
|
2437
|
-
case "InvalidParameterCombination":
|
|
2438
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
2439
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
2440
|
-
case "InvalidParameterValue":
|
|
2441
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
2442
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2443
|
-
default:
|
|
2444
|
-
const parsedBody = parsedOutput.body;
|
|
2445
|
-
return throwDefaultError({
|
|
2446
|
-
output,
|
|
2447
|
-
parsedBody: parsedBody.Error,
|
|
2448
|
-
errorCode,
|
|
2449
|
-
});
|
|
2450
|
-
}
|
|
2451
|
-
};
|
|
2452
1216
|
export const de_DescribeCacheSubnetGroupsCommand = async (output, context) => {
|
|
2453
1217
|
if (output.statusCode >= 300) {
|
|
2454
|
-
return
|
|
1218
|
+
return de_CommandError(output, context);
|
|
2455
1219
|
}
|
|
2456
1220
|
const data = await parseBody(output.body, context);
|
|
2457
1221
|
let contents = {};
|
|
@@ -2462,28 +1226,9 @@ export const de_DescribeCacheSubnetGroupsCommand = async (output, context) => {
|
|
|
2462
1226
|
};
|
|
2463
1227
|
return response;
|
|
2464
1228
|
};
|
|
2465
|
-
const de_DescribeCacheSubnetGroupsCommandError = async (output, context) => {
|
|
2466
|
-
const parsedOutput = {
|
|
2467
|
-
...output,
|
|
2468
|
-
body: await parseErrorBody(output.body, context),
|
|
2469
|
-
};
|
|
2470
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2471
|
-
switch (errorCode) {
|
|
2472
|
-
case "CacheSubnetGroupNotFoundFault":
|
|
2473
|
-
case "com.amazonaws.elasticache#CacheSubnetGroupNotFoundFault":
|
|
2474
|
-
throw await de_CacheSubnetGroupNotFoundFaultRes(parsedOutput, context);
|
|
2475
|
-
default:
|
|
2476
|
-
const parsedBody = parsedOutput.body;
|
|
2477
|
-
return throwDefaultError({
|
|
2478
|
-
output,
|
|
2479
|
-
parsedBody: parsedBody.Error,
|
|
2480
|
-
errorCode,
|
|
2481
|
-
});
|
|
2482
|
-
}
|
|
2483
|
-
};
|
|
2484
1229
|
export const de_DescribeEngineDefaultParametersCommand = async (output, context) => {
|
|
2485
1230
|
if (output.statusCode >= 300) {
|
|
2486
|
-
return
|
|
1231
|
+
return de_CommandError(output, context);
|
|
2487
1232
|
}
|
|
2488
1233
|
const data = await parseBody(output.body, context);
|
|
2489
1234
|
let contents = {};
|
|
@@ -2494,31 +1239,9 @@ export const de_DescribeEngineDefaultParametersCommand = async (output, context)
|
|
|
2494
1239
|
};
|
|
2495
1240
|
return response;
|
|
2496
1241
|
};
|
|
2497
|
-
const de_DescribeEngineDefaultParametersCommandError = async (output, context) => {
|
|
2498
|
-
const parsedOutput = {
|
|
2499
|
-
...output,
|
|
2500
|
-
body: await parseErrorBody(output.body, context),
|
|
2501
|
-
};
|
|
2502
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2503
|
-
switch (errorCode) {
|
|
2504
|
-
case "InvalidParameterCombination":
|
|
2505
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
2506
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
2507
|
-
case "InvalidParameterValue":
|
|
2508
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
2509
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2510
|
-
default:
|
|
2511
|
-
const parsedBody = parsedOutput.body;
|
|
2512
|
-
return throwDefaultError({
|
|
2513
|
-
output,
|
|
2514
|
-
parsedBody: parsedBody.Error,
|
|
2515
|
-
errorCode,
|
|
2516
|
-
});
|
|
2517
|
-
}
|
|
2518
|
-
};
|
|
2519
1242
|
export const de_DescribeEventsCommand = async (output, context) => {
|
|
2520
1243
|
if (output.statusCode >= 300) {
|
|
2521
|
-
return
|
|
1244
|
+
return de_CommandError(output, context);
|
|
2522
1245
|
}
|
|
2523
1246
|
const data = await parseBody(output.body, context);
|
|
2524
1247
|
let contents = {};
|
|
@@ -2529,31 +1252,9 @@ export const de_DescribeEventsCommand = async (output, context) => {
|
|
|
2529
1252
|
};
|
|
2530
1253
|
return response;
|
|
2531
1254
|
};
|
|
2532
|
-
const de_DescribeEventsCommandError = async (output, context) => {
|
|
2533
|
-
const parsedOutput = {
|
|
2534
|
-
...output,
|
|
2535
|
-
body: await parseErrorBody(output.body, context),
|
|
2536
|
-
};
|
|
2537
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2538
|
-
switch (errorCode) {
|
|
2539
|
-
case "InvalidParameterCombination":
|
|
2540
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
2541
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
2542
|
-
case "InvalidParameterValue":
|
|
2543
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
2544
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2545
|
-
default:
|
|
2546
|
-
const parsedBody = parsedOutput.body;
|
|
2547
|
-
return throwDefaultError({
|
|
2548
|
-
output,
|
|
2549
|
-
parsedBody: parsedBody.Error,
|
|
2550
|
-
errorCode,
|
|
2551
|
-
});
|
|
2552
|
-
}
|
|
2553
|
-
};
|
|
2554
1255
|
export const de_DescribeGlobalReplicationGroupsCommand = async (output, context) => {
|
|
2555
1256
|
if (output.statusCode >= 300) {
|
|
2556
|
-
return
|
|
1257
|
+
return de_CommandError(output, context);
|
|
2557
1258
|
}
|
|
2558
1259
|
const data = await parseBody(output.body, context);
|
|
2559
1260
|
let contents = {};
|
|
@@ -2564,34 +1265,9 @@ export const de_DescribeGlobalReplicationGroupsCommand = async (output, context)
|
|
|
2564
1265
|
};
|
|
2565
1266
|
return response;
|
|
2566
1267
|
};
|
|
2567
|
-
const de_DescribeGlobalReplicationGroupsCommandError = async (output, context) => {
|
|
2568
|
-
const parsedOutput = {
|
|
2569
|
-
...output,
|
|
2570
|
-
body: await parseErrorBody(output.body, context),
|
|
2571
|
-
};
|
|
2572
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2573
|
-
switch (errorCode) {
|
|
2574
|
-
case "GlobalReplicationGroupNotFoundFault":
|
|
2575
|
-
case "com.amazonaws.elasticache#GlobalReplicationGroupNotFoundFault":
|
|
2576
|
-
throw await de_GlobalReplicationGroupNotFoundFaultRes(parsedOutput, context);
|
|
2577
|
-
case "InvalidParameterCombination":
|
|
2578
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
2579
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
2580
|
-
case "InvalidParameterValue":
|
|
2581
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
2582
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2583
|
-
default:
|
|
2584
|
-
const parsedBody = parsedOutput.body;
|
|
2585
|
-
return throwDefaultError({
|
|
2586
|
-
output,
|
|
2587
|
-
parsedBody: parsedBody.Error,
|
|
2588
|
-
errorCode,
|
|
2589
|
-
});
|
|
2590
|
-
}
|
|
2591
|
-
};
|
|
2592
1268
|
export const de_DescribeReplicationGroupsCommand = async (output, context) => {
|
|
2593
1269
|
if (output.statusCode >= 300) {
|
|
2594
|
-
return
|
|
1270
|
+
return de_CommandError(output, context);
|
|
2595
1271
|
}
|
|
2596
1272
|
const data = await parseBody(output.body, context);
|
|
2597
1273
|
let contents = {};
|
|
@@ -2602,34 +1278,9 @@ export const de_DescribeReplicationGroupsCommand = async (output, context) => {
|
|
|
2602
1278
|
};
|
|
2603
1279
|
return response;
|
|
2604
1280
|
};
|
|
2605
|
-
const de_DescribeReplicationGroupsCommandError = async (output, context) => {
|
|
2606
|
-
const parsedOutput = {
|
|
2607
|
-
...output,
|
|
2608
|
-
body: await parseErrorBody(output.body, context),
|
|
2609
|
-
};
|
|
2610
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2611
|
-
switch (errorCode) {
|
|
2612
|
-
case "InvalidParameterCombination":
|
|
2613
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
2614
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
2615
|
-
case "InvalidParameterValue":
|
|
2616
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
2617
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2618
|
-
case "ReplicationGroupNotFoundFault":
|
|
2619
|
-
case "com.amazonaws.elasticache#ReplicationGroupNotFoundFault":
|
|
2620
|
-
throw await de_ReplicationGroupNotFoundFaultRes(parsedOutput, context);
|
|
2621
|
-
default:
|
|
2622
|
-
const parsedBody = parsedOutput.body;
|
|
2623
|
-
return throwDefaultError({
|
|
2624
|
-
output,
|
|
2625
|
-
parsedBody: parsedBody.Error,
|
|
2626
|
-
errorCode,
|
|
2627
|
-
});
|
|
2628
|
-
}
|
|
2629
|
-
};
|
|
2630
1281
|
export const de_DescribeReservedCacheNodesCommand = async (output, context) => {
|
|
2631
1282
|
if (output.statusCode >= 300) {
|
|
2632
|
-
return
|
|
1283
|
+
return de_CommandError(output, context);
|
|
2633
1284
|
}
|
|
2634
1285
|
const data = await parseBody(output.body, context);
|
|
2635
1286
|
let contents = {};
|
|
@@ -2640,34 +1291,9 @@ export const de_DescribeReservedCacheNodesCommand = async (output, context) => {
|
|
|
2640
1291
|
};
|
|
2641
1292
|
return response;
|
|
2642
1293
|
};
|
|
2643
|
-
const de_DescribeReservedCacheNodesCommandError = async (output, context) => {
|
|
2644
|
-
const parsedOutput = {
|
|
2645
|
-
...output,
|
|
2646
|
-
body: await parseErrorBody(output.body, context),
|
|
2647
|
-
};
|
|
2648
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2649
|
-
switch (errorCode) {
|
|
2650
|
-
case "InvalidParameterCombination":
|
|
2651
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
2652
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
2653
|
-
case "InvalidParameterValue":
|
|
2654
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
2655
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2656
|
-
case "ReservedCacheNodeNotFound":
|
|
2657
|
-
case "com.amazonaws.elasticache#ReservedCacheNodeNotFoundFault":
|
|
2658
|
-
throw await de_ReservedCacheNodeNotFoundFaultRes(parsedOutput, context);
|
|
2659
|
-
default:
|
|
2660
|
-
const parsedBody = parsedOutput.body;
|
|
2661
|
-
return throwDefaultError({
|
|
2662
|
-
output,
|
|
2663
|
-
parsedBody: parsedBody.Error,
|
|
2664
|
-
errorCode,
|
|
2665
|
-
});
|
|
2666
|
-
}
|
|
2667
|
-
};
|
|
2668
1294
|
export const de_DescribeReservedCacheNodesOfferingsCommand = async (output, context) => {
|
|
2669
1295
|
if (output.statusCode >= 300) {
|
|
2670
|
-
return
|
|
1296
|
+
return de_CommandError(output, context);
|
|
2671
1297
|
}
|
|
2672
1298
|
const data = await parseBody(output.body, context);
|
|
2673
1299
|
let contents = {};
|
|
@@ -2678,34 +1304,9 @@ export const de_DescribeReservedCacheNodesOfferingsCommand = async (output, cont
|
|
|
2678
1304
|
};
|
|
2679
1305
|
return response;
|
|
2680
1306
|
};
|
|
2681
|
-
const de_DescribeReservedCacheNodesOfferingsCommandError = async (output, context) => {
|
|
2682
|
-
const parsedOutput = {
|
|
2683
|
-
...output,
|
|
2684
|
-
body: await parseErrorBody(output.body, context),
|
|
2685
|
-
};
|
|
2686
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2687
|
-
switch (errorCode) {
|
|
2688
|
-
case "InvalidParameterCombination":
|
|
2689
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
2690
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
2691
|
-
case "InvalidParameterValue":
|
|
2692
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
2693
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2694
|
-
case "ReservedCacheNodesOfferingNotFound":
|
|
2695
|
-
case "com.amazonaws.elasticache#ReservedCacheNodesOfferingNotFoundFault":
|
|
2696
|
-
throw await de_ReservedCacheNodesOfferingNotFoundFaultRes(parsedOutput, context);
|
|
2697
|
-
default:
|
|
2698
|
-
const parsedBody = parsedOutput.body;
|
|
2699
|
-
return throwDefaultError({
|
|
2700
|
-
output,
|
|
2701
|
-
parsedBody: parsedBody.Error,
|
|
2702
|
-
errorCode,
|
|
2703
|
-
});
|
|
2704
|
-
}
|
|
2705
|
-
};
|
|
2706
1307
|
export const de_DescribeServerlessCachesCommand = async (output, context) => {
|
|
2707
1308
|
if (output.statusCode >= 300) {
|
|
2708
|
-
return
|
|
1309
|
+
return de_CommandError(output, context);
|
|
2709
1310
|
}
|
|
2710
1311
|
const data = await parseBody(output.body, context);
|
|
2711
1312
|
let contents = {};
|
|
@@ -2716,34 +1317,9 @@ export const de_DescribeServerlessCachesCommand = async (output, context) => {
|
|
|
2716
1317
|
};
|
|
2717
1318
|
return response;
|
|
2718
1319
|
};
|
|
2719
|
-
const de_DescribeServerlessCachesCommandError = async (output, context) => {
|
|
2720
|
-
const parsedOutput = {
|
|
2721
|
-
...output,
|
|
2722
|
-
body: await parseErrorBody(output.body, context),
|
|
2723
|
-
};
|
|
2724
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2725
|
-
switch (errorCode) {
|
|
2726
|
-
case "InvalidParameterCombination":
|
|
2727
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
2728
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
2729
|
-
case "InvalidParameterValue":
|
|
2730
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
2731
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2732
|
-
case "ServerlessCacheNotFoundFault":
|
|
2733
|
-
case "com.amazonaws.elasticache#ServerlessCacheNotFoundFault":
|
|
2734
|
-
throw await de_ServerlessCacheNotFoundFaultRes(parsedOutput, context);
|
|
2735
|
-
default:
|
|
2736
|
-
const parsedBody = parsedOutput.body;
|
|
2737
|
-
return throwDefaultError({
|
|
2738
|
-
output,
|
|
2739
|
-
parsedBody: parsedBody.Error,
|
|
2740
|
-
errorCode,
|
|
2741
|
-
});
|
|
2742
|
-
}
|
|
2743
|
-
};
|
|
2744
1320
|
export const de_DescribeServerlessCacheSnapshotsCommand = async (output, context) => {
|
|
2745
1321
|
if (output.statusCode >= 300) {
|
|
2746
|
-
return
|
|
1322
|
+
return de_CommandError(output, context);
|
|
2747
1323
|
}
|
|
2748
1324
|
const data = await parseBody(output.body, context);
|
|
2749
1325
|
let contents = {};
|
|
@@ -2754,37 +1330,9 @@ export const de_DescribeServerlessCacheSnapshotsCommand = async (output, context
|
|
|
2754
1330
|
};
|
|
2755
1331
|
return response;
|
|
2756
1332
|
};
|
|
2757
|
-
const de_DescribeServerlessCacheSnapshotsCommandError = async (output, context) => {
|
|
2758
|
-
const parsedOutput = {
|
|
2759
|
-
...output,
|
|
2760
|
-
body: await parseErrorBody(output.body, context),
|
|
2761
|
-
};
|
|
2762
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2763
|
-
switch (errorCode) {
|
|
2764
|
-
case "InvalidParameterCombination":
|
|
2765
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
2766
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
2767
|
-
case "InvalidParameterValue":
|
|
2768
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
2769
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2770
|
-
case "ServerlessCacheNotFoundFault":
|
|
2771
|
-
case "com.amazonaws.elasticache#ServerlessCacheNotFoundFault":
|
|
2772
|
-
throw await de_ServerlessCacheNotFoundFaultRes(parsedOutput, context);
|
|
2773
|
-
case "ServerlessCacheSnapshotNotFoundFault":
|
|
2774
|
-
case "com.amazonaws.elasticache#ServerlessCacheSnapshotNotFoundFault":
|
|
2775
|
-
throw await de_ServerlessCacheSnapshotNotFoundFaultRes(parsedOutput, context);
|
|
2776
|
-
default:
|
|
2777
|
-
const parsedBody = parsedOutput.body;
|
|
2778
|
-
return throwDefaultError({
|
|
2779
|
-
output,
|
|
2780
|
-
parsedBody: parsedBody.Error,
|
|
2781
|
-
errorCode,
|
|
2782
|
-
});
|
|
2783
|
-
}
|
|
2784
|
-
};
|
|
2785
1333
|
export const de_DescribeServiceUpdatesCommand = async (output, context) => {
|
|
2786
1334
|
if (output.statusCode >= 300) {
|
|
2787
|
-
return
|
|
1335
|
+
return de_CommandError(output, context);
|
|
2788
1336
|
}
|
|
2789
1337
|
const data = await parseBody(output.body, context);
|
|
2790
1338
|
let contents = {};
|
|
@@ -2795,34 +1343,9 @@ export const de_DescribeServiceUpdatesCommand = async (output, context) => {
|
|
|
2795
1343
|
};
|
|
2796
1344
|
return response;
|
|
2797
1345
|
};
|
|
2798
|
-
const de_DescribeServiceUpdatesCommandError = async (output, context) => {
|
|
2799
|
-
const parsedOutput = {
|
|
2800
|
-
...output,
|
|
2801
|
-
body: await parseErrorBody(output.body, context),
|
|
2802
|
-
};
|
|
2803
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2804
|
-
switch (errorCode) {
|
|
2805
|
-
case "InvalidParameterCombination":
|
|
2806
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
2807
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
2808
|
-
case "InvalidParameterValue":
|
|
2809
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
2810
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2811
|
-
case "ServiceUpdateNotFoundFault":
|
|
2812
|
-
case "com.amazonaws.elasticache#ServiceUpdateNotFoundFault":
|
|
2813
|
-
throw await de_ServiceUpdateNotFoundFaultRes(parsedOutput, context);
|
|
2814
|
-
default:
|
|
2815
|
-
const parsedBody = parsedOutput.body;
|
|
2816
|
-
return throwDefaultError({
|
|
2817
|
-
output,
|
|
2818
|
-
parsedBody: parsedBody.Error,
|
|
2819
|
-
errorCode,
|
|
2820
|
-
});
|
|
2821
|
-
}
|
|
2822
|
-
};
|
|
2823
1346
|
export const de_DescribeSnapshotsCommand = async (output, context) => {
|
|
2824
1347
|
if (output.statusCode >= 300) {
|
|
2825
|
-
return
|
|
1348
|
+
return de_CommandError(output, context);
|
|
2826
1349
|
}
|
|
2827
1350
|
const data = await parseBody(output.body, context);
|
|
2828
1351
|
let contents = {};
|
|
@@ -2833,37 +1356,9 @@ export const de_DescribeSnapshotsCommand = async (output, context) => {
|
|
|
2833
1356
|
};
|
|
2834
1357
|
return response;
|
|
2835
1358
|
};
|
|
2836
|
-
const de_DescribeSnapshotsCommandError = async (output, context) => {
|
|
2837
|
-
const parsedOutput = {
|
|
2838
|
-
...output,
|
|
2839
|
-
body: await parseErrorBody(output.body, context),
|
|
2840
|
-
};
|
|
2841
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2842
|
-
switch (errorCode) {
|
|
2843
|
-
case "CacheClusterNotFound":
|
|
2844
|
-
case "com.amazonaws.elasticache#CacheClusterNotFoundFault":
|
|
2845
|
-
throw await de_CacheClusterNotFoundFaultRes(parsedOutput, context);
|
|
2846
|
-
case "InvalidParameterCombination":
|
|
2847
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
2848
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
2849
|
-
case "InvalidParameterValue":
|
|
2850
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
2851
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2852
|
-
case "SnapshotNotFoundFault":
|
|
2853
|
-
case "com.amazonaws.elasticache#SnapshotNotFoundFault":
|
|
2854
|
-
throw await de_SnapshotNotFoundFaultRes(parsedOutput, context);
|
|
2855
|
-
default:
|
|
2856
|
-
const parsedBody = parsedOutput.body;
|
|
2857
|
-
return throwDefaultError({
|
|
2858
|
-
output,
|
|
2859
|
-
parsedBody: parsedBody.Error,
|
|
2860
|
-
errorCode,
|
|
2861
|
-
});
|
|
2862
|
-
}
|
|
2863
|
-
};
|
|
2864
1359
|
export const de_DescribeUpdateActionsCommand = async (output, context) => {
|
|
2865
1360
|
if (output.statusCode >= 300) {
|
|
2866
|
-
return
|
|
1361
|
+
return de_CommandError(output, context);
|
|
2867
1362
|
}
|
|
2868
1363
|
const data = await parseBody(output.body, context);
|
|
2869
1364
|
let contents = {};
|
|
@@ -2874,31 +1369,9 @@ export const de_DescribeUpdateActionsCommand = async (output, context) => {
|
|
|
2874
1369
|
};
|
|
2875
1370
|
return response;
|
|
2876
1371
|
};
|
|
2877
|
-
const de_DescribeUpdateActionsCommandError = async (output, context) => {
|
|
2878
|
-
const parsedOutput = {
|
|
2879
|
-
...output,
|
|
2880
|
-
body: await parseErrorBody(output.body, context),
|
|
2881
|
-
};
|
|
2882
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2883
|
-
switch (errorCode) {
|
|
2884
|
-
case "InvalidParameterCombination":
|
|
2885
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
2886
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
2887
|
-
case "InvalidParameterValue":
|
|
2888
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
2889
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2890
|
-
default:
|
|
2891
|
-
const parsedBody = parsedOutput.body;
|
|
2892
|
-
return throwDefaultError({
|
|
2893
|
-
output,
|
|
2894
|
-
parsedBody: parsedBody.Error,
|
|
2895
|
-
errorCode,
|
|
2896
|
-
});
|
|
2897
|
-
}
|
|
2898
|
-
};
|
|
2899
1372
|
export const de_DescribeUserGroupsCommand = async (output, context) => {
|
|
2900
1373
|
if (output.statusCode >= 300) {
|
|
2901
|
-
return
|
|
1374
|
+
return de_CommandError(output, context);
|
|
2902
1375
|
}
|
|
2903
1376
|
const data = await parseBody(output.body, context);
|
|
2904
1377
|
let contents = {};
|
|
@@ -2909,34 +1382,9 @@ export const de_DescribeUserGroupsCommand = async (output, context) => {
|
|
|
2909
1382
|
};
|
|
2910
1383
|
return response;
|
|
2911
1384
|
};
|
|
2912
|
-
const de_DescribeUserGroupsCommandError = async (output, context) => {
|
|
2913
|
-
const parsedOutput = {
|
|
2914
|
-
...output,
|
|
2915
|
-
body: await parseErrorBody(output.body, context),
|
|
2916
|
-
};
|
|
2917
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2918
|
-
switch (errorCode) {
|
|
2919
|
-
case "InvalidParameterCombination":
|
|
2920
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
2921
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
2922
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
2923
|
-
case "com.amazonaws.elasticache#ServiceLinkedRoleNotFoundFault":
|
|
2924
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
2925
|
-
case "UserGroupNotFound":
|
|
2926
|
-
case "com.amazonaws.elasticache#UserGroupNotFoundFault":
|
|
2927
|
-
throw await de_UserGroupNotFoundFaultRes(parsedOutput, context);
|
|
2928
|
-
default:
|
|
2929
|
-
const parsedBody = parsedOutput.body;
|
|
2930
|
-
return throwDefaultError({
|
|
2931
|
-
output,
|
|
2932
|
-
parsedBody: parsedBody.Error,
|
|
2933
|
-
errorCode,
|
|
2934
|
-
});
|
|
2935
|
-
}
|
|
2936
|
-
};
|
|
2937
1385
|
export const de_DescribeUsersCommand = async (output, context) => {
|
|
2938
1386
|
if (output.statusCode >= 300) {
|
|
2939
|
-
return
|
|
1387
|
+
return de_CommandError(output, context);
|
|
2940
1388
|
}
|
|
2941
1389
|
const data = await parseBody(output.body, context);
|
|
2942
1390
|
let contents = {};
|
|
@@ -2947,34 +1395,9 @@ export const de_DescribeUsersCommand = async (output, context) => {
|
|
|
2947
1395
|
};
|
|
2948
1396
|
return response;
|
|
2949
1397
|
};
|
|
2950
|
-
const de_DescribeUsersCommandError = async (output, context) => {
|
|
2951
|
-
const parsedOutput = {
|
|
2952
|
-
...output,
|
|
2953
|
-
body: await parseErrorBody(output.body, context),
|
|
2954
|
-
};
|
|
2955
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2956
|
-
switch (errorCode) {
|
|
2957
|
-
case "InvalidParameterCombination":
|
|
2958
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
2959
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
2960
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
2961
|
-
case "com.amazonaws.elasticache#ServiceLinkedRoleNotFoundFault":
|
|
2962
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
2963
|
-
case "UserNotFound":
|
|
2964
|
-
case "com.amazonaws.elasticache#UserNotFoundFault":
|
|
2965
|
-
throw await de_UserNotFoundFaultRes(parsedOutput, context);
|
|
2966
|
-
default:
|
|
2967
|
-
const parsedBody = parsedOutput.body;
|
|
2968
|
-
return throwDefaultError({
|
|
2969
|
-
output,
|
|
2970
|
-
parsedBody: parsedBody.Error,
|
|
2971
|
-
errorCode,
|
|
2972
|
-
});
|
|
2973
|
-
}
|
|
2974
|
-
};
|
|
2975
1398
|
export const de_DisassociateGlobalReplicationGroupCommand = async (output, context) => {
|
|
2976
1399
|
if (output.statusCode >= 300) {
|
|
2977
|
-
return
|
|
1400
|
+
return de_CommandError(output, context);
|
|
2978
1401
|
}
|
|
2979
1402
|
const data = await parseBody(output.body, context);
|
|
2980
1403
|
let contents = {};
|
|
@@ -2985,37 +1408,9 @@ export const de_DisassociateGlobalReplicationGroupCommand = async (output, conte
|
|
|
2985
1408
|
};
|
|
2986
1409
|
return response;
|
|
2987
1410
|
};
|
|
2988
|
-
const de_DisassociateGlobalReplicationGroupCommandError = async (output, context) => {
|
|
2989
|
-
const parsedOutput = {
|
|
2990
|
-
...output,
|
|
2991
|
-
body: await parseErrorBody(output.body, context),
|
|
2992
|
-
};
|
|
2993
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2994
|
-
switch (errorCode) {
|
|
2995
|
-
case "GlobalReplicationGroupNotFoundFault":
|
|
2996
|
-
case "com.amazonaws.elasticache#GlobalReplicationGroupNotFoundFault":
|
|
2997
|
-
throw await de_GlobalReplicationGroupNotFoundFaultRes(parsedOutput, context);
|
|
2998
|
-
case "InvalidGlobalReplicationGroupState":
|
|
2999
|
-
case "com.amazonaws.elasticache#InvalidGlobalReplicationGroupStateFault":
|
|
3000
|
-
throw await de_InvalidGlobalReplicationGroupStateFaultRes(parsedOutput, context);
|
|
3001
|
-
case "InvalidParameterCombination":
|
|
3002
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
3003
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
3004
|
-
case "InvalidParameterValue":
|
|
3005
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
3006
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3007
|
-
default:
|
|
3008
|
-
const parsedBody = parsedOutput.body;
|
|
3009
|
-
return throwDefaultError({
|
|
3010
|
-
output,
|
|
3011
|
-
parsedBody: parsedBody.Error,
|
|
3012
|
-
errorCode,
|
|
3013
|
-
});
|
|
3014
|
-
}
|
|
3015
|
-
};
|
|
3016
1411
|
export const de_ExportServerlessCacheSnapshotCommand = async (output, context) => {
|
|
3017
1412
|
if (output.statusCode >= 300) {
|
|
3018
|
-
return
|
|
1413
|
+
return de_CommandError(output, context);
|
|
3019
1414
|
}
|
|
3020
1415
|
const data = await parseBody(output.body, context);
|
|
3021
1416
|
let contents = {};
|
|
@@ -3026,37 +1421,9 @@ export const de_ExportServerlessCacheSnapshotCommand = async (output, context) =
|
|
|
3026
1421
|
};
|
|
3027
1422
|
return response;
|
|
3028
1423
|
};
|
|
3029
|
-
const de_ExportServerlessCacheSnapshotCommandError = async (output, context) => {
|
|
3030
|
-
const parsedOutput = {
|
|
3031
|
-
...output,
|
|
3032
|
-
body: await parseErrorBody(output.body, context),
|
|
3033
|
-
};
|
|
3034
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3035
|
-
switch (errorCode) {
|
|
3036
|
-
case "InvalidParameterValue":
|
|
3037
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
3038
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3039
|
-
case "InvalidServerlessCacheSnapshotStateFault":
|
|
3040
|
-
case "com.amazonaws.elasticache#InvalidServerlessCacheSnapshotStateFault":
|
|
3041
|
-
throw await de_InvalidServerlessCacheSnapshotStateFaultRes(parsedOutput, context);
|
|
3042
|
-
case "ServerlessCacheSnapshotNotFoundFault":
|
|
3043
|
-
case "com.amazonaws.elasticache#ServerlessCacheSnapshotNotFoundFault":
|
|
3044
|
-
throw await de_ServerlessCacheSnapshotNotFoundFaultRes(parsedOutput, context);
|
|
3045
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
3046
|
-
case "com.amazonaws.elasticache#ServiceLinkedRoleNotFoundFault":
|
|
3047
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
3048
|
-
default:
|
|
3049
|
-
const parsedBody = parsedOutput.body;
|
|
3050
|
-
return throwDefaultError({
|
|
3051
|
-
output,
|
|
3052
|
-
parsedBody: parsedBody.Error,
|
|
3053
|
-
errorCode,
|
|
3054
|
-
});
|
|
3055
|
-
}
|
|
3056
|
-
};
|
|
3057
1424
|
export const de_FailoverGlobalReplicationGroupCommand = async (output, context) => {
|
|
3058
1425
|
if (output.statusCode >= 300) {
|
|
3059
|
-
return
|
|
1426
|
+
return de_CommandError(output, context);
|
|
3060
1427
|
}
|
|
3061
1428
|
const data = await parseBody(output.body, context);
|
|
3062
1429
|
let contents = {};
|
|
@@ -3067,37 +1434,9 @@ export const de_FailoverGlobalReplicationGroupCommand = async (output, context)
|
|
|
3067
1434
|
};
|
|
3068
1435
|
return response;
|
|
3069
1436
|
};
|
|
3070
|
-
const de_FailoverGlobalReplicationGroupCommandError = async (output, context) => {
|
|
3071
|
-
const parsedOutput = {
|
|
3072
|
-
...output,
|
|
3073
|
-
body: await parseErrorBody(output.body, context),
|
|
3074
|
-
};
|
|
3075
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3076
|
-
switch (errorCode) {
|
|
3077
|
-
case "GlobalReplicationGroupNotFoundFault":
|
|
3078
|
-
case "com.amazonaws.elasticache#GlobalReplicationGroupNotFoundFault":
|
|
3079
|
-
throw await de_GlobalReplicationGroupNotFoundFaultRes(parsedOutput, context);
|
|
3080
|
-
case "InvalidGlobalReplicationGroupState":
|
|
3081
|
-
case "com.amazonaws.elasticache#InvalidGlobalReplicationGroupStateFault":
|
|
3082
|
-
throw await de_InvalidGlobalReplicationGroupStateFaultRes(parsedOutput, context);
|
|
3083
|
-
case "InvalidParameterCombination":
|
|
3084
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
3085
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
3086
|
-
case "InvalidParameterValue":
|
|
3087
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
3088
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3089
|
-
default:
|
|
3090
|
-
const parsedBody = parsedOutput.body;
|
|
3091
|
-
return throwDefaultError({
|
|
3092
|
-
output,
|
|
3093
|
-
parsedBody: parsedBody.Error,
|
|
3094
|
-
errorCode,
|
|
3095
|
-
});
|
|
3096
|
-
}
|
|
3097
|
-
};
|
|
3098
1437
|
export const de_IncreaseNodeGroupsInGlobalReplicationGroupCommand = async (output, context) => {
|
|
3099
1438
|
if (output.statusCode >= 300) {
|
|
3100
|
-
return
|
|
1439
|
+
return de_CommandError(output, context);
|
|
3101
1440
|
}
|
|
3102
1441
|
const data = await parseBody(output.body, context);
|
|
3103
1442
|
let contents = {};
|
|
@@ -3108,34 +1447,9 @@ export const de_IncreaseNodeGroupsInGlobalReplicationGroupCommand = async (outpu
|
|
|
3108
1447
|
};
|
|
3109
1448
|
return response;
|
|
3110
1449
|
};
|
|
3111
|
-
const de_IncreaseNodeGroupsInGlobalReplicationGroupCommandError = async (output, context) => {
|
|
3112
|
-
const parsedOutput = {
|
|
3113
|
-
...output,
|
|
3114
|
-
body: await parseErrorBody(output.body, context),
|
|
3115
|
-
};
|
|
3116
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3117
|
-
switch (errorCode) {
|
|
3118
|
-
case "GlobalReplicationGroupNotFoundFault":
|
|
3119
|
-
case "com.amazonaws.elasticache#GlobalReplicationGroupNotFoundFault":
|
|
3120
|
-
throw await de_GlobalReplicationGroupNotFoundFaultRes(parsedOutput, context);
|
|
3121
|
-
case "InvalidGlobalReplicationGroupState":
|
|
3122
|
-
case "com.amazonaws.elasticache#InvalidGlobalReplicationGroupStateFault":
|
|
3123
|
-
throw await de_InvalidGlobalReplicationGroupStateFaultRes(parsedOutput, context);
|
|
3124
|
-
case "InvalidParameterValue":
|
|
3125
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
3126
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3127
|
-
default:
|
|
3128
|
-
const parsedBody = parsedOutput.body;
|
|
3129
|
-
return throwDefaultError({
|
|
3130
|
-
output,
|
|
3131
|
-
parsedBody: parsedBody.Error,
|
|
3132
|
-
errorCode,
|
|
3133
|
-
});
|
|
3134
|
-
}
|
|
3135
|
-
};
|
|
3136
1450
|
export const de_IncreaseReplicaCountCommand = async (output, context) => {
|
|
3137
1451
|
if (output.statusCode >= 300) {
|
|
3138
|
-
return
|
|
1452
|
+
return de_CommandError(output, context);
|
|
3139
1453
|
}
|
|
3140
1454
|
const data = await parseBody(output.body, context);
|
|
3141
1455
|
let contents = {};
|
|
@@ -3146,61 +1460,9 @@ export const de_IncreaseReplicaCountCommand = async (output, context) => {
|
|
|
3146
1460
|
};
|
|
3147
1461
|
return response;
|
|
3148
1462
|
};
|
|
3149
|
-
const de_IncreaseReplicaCountCommandError = async (output, context) => {
|
|
3150
|
-
const parsedOutput = {
|
|
3151
|
-
...output,
|
|
3152
|
-
body: await parseErrorBody(output.body, context),
|
|
3153
|
-
};
|
|
3154
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3155
|
-
switch (errorCode) {
|
|
3156
|
-
case "ClusterQuotaForCustomerExceeded":
|
|
3157
|
-
case "com.amazonaws.elasticache#ClusterQuotaForCustomerExceededFault":
|
|
3158
|
-
throw await de_ClusterQuotaForCustomerExceededFaultRes(parsedOutput, context);
|
|
3159
|
-
case "InsufficientCacheClusterCapacity":
|
|
3160
|
-
case "com.amazonaws.elasticache#InsufficientCacheClusterCapacityFault":
|
|
3161
|
-
throw await de_InsufficientCacheClusterCapacityFaultRes(parsedOutput, context);
|
|
3162
|
-
case "InvalidCacheClusterState":
|
|
3163
|
-
case "com.amazonaws.elasticache#InvalidCacheClusterStateFault":
|
|
3164
|
-
throw await de_InvalidCacheClusterStateFaultRes(parsedOutput, context);
|
|
3165
|
-
case "InvalidKMSKeyFault":
|
|
3166
|
-
case "com.amazonaws.elasticache#InvalidKMSKeyFault":
|
|
3167
|
-
throw await de_InvalidKMSKeyFaultRes(parsedOutput, context);
|
|
3168
|
-
case "InvalidParameterCombination":
|
|
3169
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
3170
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
3171
|
-
case "InvalidParameterValue":
|
|
3172
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
3173
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3174
|
-
case "InvalidReplicationGroupState":
|
|
3175
|
-
case "com.amazonaws.elasticache#InvalidReplicationGroupStateFault":
|
|
3176
|
-
throw await de_InvalidReplicationGroupStateFaultRes(parsedOutput, context);
|
|
3177
|
-
case "InvalidVPCNetworkStateFault":
|
|
3178
|
-
case "com.amazonaws.elasticache#InvalidVPCNetworkStateFault":
|
|
3179
|
-
throw await de_InvalidVPCNetworkStateFaultRes(parsedOutput, context);
|
|
3180
|
-
case "NoOperationFault":
|
|
3181
|
-
case "com.amazonaws.elasticache#NoOperationFault":
|
|
3182
|
-
throw await de_NoOperationFaultRes(parsedOutput, context);
|
|
3183
|
-
case "NodeGroupsPerReplicationGroupQuotaExceeded":
|
|
3184
|
-
case "com.amazonaws.elasticache#NodeGroupsPerReplicationGroupQuotaExceededFault":
|
|
3185
|
-
throw await de_NodeGroupsPerReplicationGroupQuotaExceededFaultRes(parsedOutput, context);
|
|
3186
|
-
case "NodeQuotaForCustomerExceeded":
|
|
3187
|
-
case "com.amazonaws.elasticache#NodeQuotaForCustomerExceededFault":
|
|
3188
|
-
throw await de_NodeQuotaForCustomerExceededFaultRes(parsedOutput, context);
|
|
3189
|
-
case "ReplicationGroupNotFoundFault":
|
|
3190
|
-
case "com.amazonaws.elasticache#ReplicationGroupNotFoundFault":
|
|
3191
|
-
throw await de_ReplicationGroupNotFoundFaultRes(parsedOutput, context);
|
|
3192
|
-
default:
|
|
3193
|
-
const parsedBody = parsedOutput.body;
|
|
3194
|
-
return throwDefaultError({
|
|
3195
|
-
output,
|
|
3196
|
-
parsedBody: parsedBody.Error,
|
|
3197
|
-
errorCode,
|
|
3198
|
-
});
|
|
3199
|
-
}
|
|
3200
|
-
};
|
|
3201
1463
|
export const de_ListAllowedNodeTypeModificationsCommand = async (output, context) => {
|
|
3202
1464
|
if (output.statusCode >= 300) {
|
|
3203
|
-
return
|
|
1465
|
+
return de_CommandError(output, context);
|
|
3204
1466
|
}
|
|
3205
1467
|
const data = await parseBody(output.body, context);
|
|
3206
1468
|
let contents = {};
|
|
@@ -3211,952 +1473,485 @@ export const de_ListAllowedNodeTypeModificationsCommand = async (output, context
|
|
|
3211
1473
|
};
|
|
3212
1474
|
return response;
|
|
3213
1475
|
};
|
|
3214
|
-
const
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
1476
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1477
|
+
if (output.statusCode >= 300) {
|
|
1478
|
+
return de_CommandError(output, context);
|
|
1479
|
+
}
|
|
1480
|
+
const data = await parseBody(output.body, context);
|
|
1481
|
+
let contents = {};
|
|
1482
|
+
contents = de_TagListMessage(data.ListTagsForResourceResult, context);
|
|
1483
|
+
const response = {
|
|
1484
|
+
$metadata: deserializeMetadata(output),
|
|
1485
|
+
...contents,
|
|
3218
1486
|
};
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
case "InvalidParameterCombination":
|
|
3225
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
3226
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
3227
|
-
case "InvalidParameterValue":
|
|
3228
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
3229
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3230
|
-
case "ReplicationGroupNotFoundFault":
|
|
3231
|
-
case "com.amazonaws.elasticache#ReplicationGroupNotFoundFault":
|
|
3232
|
-
throw await de_ReplicationGroupNotFoundFaultRes(parsedOutput, context);
|
|
3233
|
-
default:
|
|
3234
|
-
const parsedBody = parsedOutput.body;
|
|
3235
|
-
return throwDefaultError({
|
|
3236
|
-
output,
|
|
3237
|
-
parsedBody: parsedBody.Error,
|
|
3238
|
-
errorCode,
|
|
3239
|
-
});
|
|
1487
|
+
return response;
|
|
1488
|
+
};
|
|
1489
|
+
export const de_ModifyCacheClusterCommand = async (output, context) => {
|
|
1490
|
+
if (output.statusCode >= 300) {
|
|
1491
|
+
return de_CommandError(output, context);
|
|
3240
1492
|
}
|
|
1493
|
+
const data = await parseBody(output.body, context);
|
|
1494
|
+
let contents = {};
|
|
1495
|
+
contents = de_ModifyCacheClusterResult(data.ModifyCacheClusterResult, context);
|
|
1496
|
+
const response = {
|
|
1497
|
+
$metadata: deserializeMetadata(output),
|
|
1498
|
+
...contents,
|
|
1499
|
+
};
|
|
1500
|
+
return response;
|
|
3241
1501
|
};
|
|
3242
|
-
export const
|
|
1502
|
+
export const de_ModifyCacheParameterGroupCommand = async (output, context) => {
|
|
3243
1503
|
if (output.statusCode >= 300) {
|
|
3244
|
-
return
|
|
1504
|
+
return de_CommandError(output, context);
|
|
3245
1505
|
}
|
|
3246
1506
|
const data = await parseBody(output.body, context);
|
|
3247
1507
|
let contents = {};
|
|
3248
|
-
contents =
|
|
1508
|
+
contents = de_CacheParameterGroupNameMessage(data.ModifyCacheParameterGroupResult, context);
|
|
3249
1509
|
const response = {
|
|
3250
1510
|
$metadata: deserializeMetadata(output),
|
|
3251
1511
|
...contents,
|
|
3252
1512
|
};
|
|
3253
1513
|
return response;
|
|
3254
1514
|
};
|
|
3255
|
-
const
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
1515
|
+
export const de_ModifyCacheSubnetGroupCommand = async (output, context) => {
|
|
1516
|
+
if (output.statusCode >= 300) {
|
|
1517
|
+
return de_CommandError(output, context);
|
|
1518
|
+
}
|
|
1519
|
+
const data = await parseBody(output.body, context);
|
|
1520
|
+
let contents = {};
|
|
1521
|
+
contents = de_ModifyCacheSubnetGroupResult(data.ModifyCacheSubnetGroupResult, context);
|
|
1522
|
+
const response = {
|
|
1523
|
+
$metadata: deserializeMetadata(output),
|
|
1524
|
+
...contents,
|
|
3259
1525
|
};
|
|
3260
|
-
|
|
3261
|
-
switch (errorCode) {
|
|
3262
|
-
case "CacheClusterNotFound":
|
|
3263
|
-
case "com.amazonaws.elasticache#CacheClusterNotFoundFault":
|
|
3264
|
-
throw await de_CacheClusterNotFoundFaultRes(parsedOutput, context);
|
|
3265
|
-
case "CacheParameterGroupNotFound":
|
|
3266
|
-
case "com.amazonaws.elasticache#CacheParameterGroupNotFoundFault":
|
|
3267
|
-
throw await de_CacheParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
3268
|
-
case "CacheSecurityGroupNotFound":
|
|
3269
|
-
case "com.amazonaws.elasticache#CacheSecurityGroupNotFoundFault":
|
|
3270
|
-
throw await de_CacheSecurityGroupNotFoundFaultRes(parsedOutput, context);
|
|
3271
|
-
case "CacheSubnetGroupNotFoundFault":
|
|
3272
|
-
case "com.amazonaws.elasticache#CacheSubnetGroupNotFoundFault":
|
|
3273
|
-
throw await de_CacheSubnetGroupNotFoundFaultRes(parsedOutput, context);
|
|
3274
|
-
case "InvalidARN":
|
|
3275
|
-
case "com.amazonaws.elasticache#InvalidARNFault":
|
|
3276
|
-
throw await de_InvalidARNFaultRes(parsedOutput, context);
|
|
3277
|
-
case "InvalidReplicationGroupState":
|
|
3278
|
-
case "com.amazonaws.elasticache#InvalidReplicationGroupStateFault":
|
|
3279
|
-
throw await de_InvalidReplicationGroupStateFaultRes(parsedOutput, context);
|
|
3280
|
-
case "InvalidServerlessCacheSnapshotStateFault":
|
|
3281
|
-
case "com.amazonaws.elasticache#InvalidServerlessCacheSnapshotStateFault":
|
|
3282
|
-
throw await de_InvalidServerlessCacheSnapshotStateFaultRes(parsedOutput, context);
|
|
3283
|
-
case "InvalidServerlessCacheStateFault":
|
|
3284
|
-
case "com.amazonaws.elasticache#InvalidServerlessCacheStateFault":
|
|
3285
|
-
throw await de_InvalidServerlessCacheStateFaultRes(parsedOutput, context);
|
|
3286
|
-
case "ReplicationGroupNotFoundFault":
|
|
3287
|
-
case "com.amazonaws.elasticache#ReplicationGroupNotFoundFault":
|
|
3288
|
-
throw await de_ReplicationGroupNotFoundFaultRes(parsedOutput, context);
|
|
3289
|
-
case "ReservedCacheNodeNotFound":
|
|
3290
|
-
case "com.amazonaws.elasticache#ReservedCacheNodeNotFoundFault":
|
|
3291
|
-
throw await de_ReservedCacheNodeNotFoundFaultRes(parsedOutput, context);
|
|
3292
|
-
case "ServerlessCacheNotFoundFault":
|
|
3293
|
-
case "com.amazonaws.elasticache#ServerlessCacheNotFoundFault":
|
|
3294
|
-
throw await de_ServerlessCacheNotFoundFaultRes(parsedOutput, context);
|
|
3295
|
-
case "ServerlessCacheSnapshotNotFoundFault":
|
|
3296
|
-
case "com.amazonaws.elasticache#ServerlessCacheSnapshotNotFoundFault":
|
|
3297
|
-
throw await de_ServerlessCacheSnapshotNotFoundFaultRes(parsedOutput, context);
|
|
3298
|
-
case "SnapshotNotFoundFault":
|
|
3299
|
-
case "com.amazonaws.elasticache#SnapshotNotFoundFault":
|
|
3300
|
-
throw await de_SnapshotNotFoundFaultRes(parsedOutput, context);
|
|
3301
|
-
case "UserGroupNotFound":
|
|
3302
|
-
case "com.amazonaws.elasticache#UserGroupNotFoundFault":
|
|
3303
|
-
throw await de_UserGroupNotFoundFaultRes(parsedOutput, context);
|
|
3304
|
-
case "UserNotFound":
|
|
3305
|
-
case "com.amazonaws.elasticache#UserNotFoundFault":
|
|
3306
|
-
throw await de_UserNotFoundFaultRes(parsedOutput, context);
|
|
3307
|
-
default:
|
|
3308
|
-
const parsedBody = parsedOutput.body;
|
|
3309
|
-
return throwDefaultError({
|
|
3310
|
-
output,
|
|
3311
|
-
parsedBody: parsedBody.Error,
|
|
3312
|
-
errorCode,
|
|
3313
|
-
});
|
|
3314
|
-
}
|
|
1526
|
+
return response;
|
|
3315
1527
|
};
|
|
3316
|
-
export const
|
|
1528
|
+
export const de_ModifyGlobalReplicationGroupCommand = async (output, context) => {
|
|
3317
1529
|
if (output.statusCode >= 300) {
|
|
3318
|
-
return
|
|
1530
|
+
return de_CommandError(output, context);
|
|
3319
1531
|
}
|
|
3320
1532
|
const data = await parseBody(output.body, context);
|
|
3321
1533
|
let contents = {};
|
|
3322
|
-
contents =
|
|
1534
|
+
contents = de_ModifyGlobalReplicationGroupResult(data.ModifyGlobalReplicationGroupResult, context);
|
|
3323
1535
|
const response = {
|
|
3324
1536
|
$metadata: deserializeMetadata(output),
|
|
3325
1537
|
...contents,
|
|
3326
1538
|
};
|
|
3327
1539
|
return response;
|
|
3328
1540
|
};
|
|
3329
|
-
const
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
body: await parseErrorBody(output.body, context),
|
|
3333
|
-
};
|
|
3334
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3335
|
-
switch (errorCode) {
|
|
3336
|
-
case "CacheClusterNotFound":
|
|
3337
|
-
case "com.amazonaws.elasticache#CacheClusterNotFoundFault":
|
|
3338
|
-
throw await de_CacheClusterNotFoundFaultRes(parsedOutput, context);
|
|
3339
|
-
case "CacheParameterGroupNotFound":
|
|
3340
|
-
case "com.amazonaws.elasticache#CacheParameterGroupNotFoundFault":
|
|
3341
|
-
throw await de_CacheParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
3342
|
-
case "CacheSecurityGroupNotFound":
|
|
3343
|
-
case "com.amazonaws.elasticache#CacheSecurityGroupNotFoundFault":
|
|
3344
|
-
throw await de_CacheSecurityGroupNotFoundFaultRes(parsedOutput, context);
|
|
3345
|
-
case "InsufficientCacheClusterCapacity":
|
|
3346
|
-
case "com.amazonaws.elasticache#InsufficientCacheClusterCapacityFault":
|
|
3347
|
-
throw await de_InsufficientCacheClusterCapacityFaultRes(parsedOutput, context);
|
|
3348
|
-
case "InvalidCacheClusterState":
|
|
3349
|
-
case "com.amazonaws.elasticache#InvalidCacheClusterStateFault":
|
|
3350
|
-
throw await de_InvalidCacheClusterStateFaultRes(parsedOutput, context);
|
|
3351
|
-
case "InvalidCacheSecurityGroupState":
|
|
3352
|
-
case "com.amazonaws.elasticache#InvalidCacheSecurityGroupStateFault":
|
|
3353
|
-
throw await de_InvalidCacheSecurityGroupStateFaultRes(parsedOutput, context);
|
|
3354
|
-
case "InvalidParameterCombination":
|
|
3355
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
3356
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
3357
|
-
case "InvalidParameterValue":
|
|
3358
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
3359
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3360
|
-
case "InvalidVPCNetworkStateFault":
|
|
3361
|
-
case "com.amazonaws.elasticache#InvalidVPCNetworkStateFault":
|
|
3362
|
-
throw await de_InvalidVPCNetworkStateFaultRes(parsedOutput, context);
|
|
3363
|
-
case "NodeQuotaForClusterExceeded":
|
|
3364
|
-
case "com.amazonaws.elasticache#NodeQuotaForClusterExceededFault":
|
|
3365
|
-
throw await de_NodeQuotaForClusterExceededFaultRes(parsedOutput, context);
|
|
3366
|
-
case "NodeQuotaForCustomerExceeded":
|
|
3367
|
-
case "com.amazonaws.elasticache#NodeQuotaForCustomerExceededFault":
|
|
3368
|
-
throw await de_NodeQuotaForCustomerExceededFaultRes(parsedOutput, context);
|
|
3369
|
-
default:
|
|
3370
|
-
const parsedBody = parsedOutput.body;
|
|
3371
|
-
return throwDefaultError({
|
|
3372
|
-
output,
|
|
3373
|
-
parsedBody: parsedBody.Error,
|
|
3374
|
-
errorCode,
|
|
3375
|
-
});
|
|
1541
|
+
export const de_ModifyReplicationGroupCommand = async (output, context) => {
|
|
1542
|
+
if (output.statusCode >= 300) {
|
|
1543
|
+
return de_CommandError(output, context);
|
|
3376
1544
|
}
|
|
1545
|
+
const data = await parseBody(output.body, context);
|
|
1546
|
+
let contents = {};
|
|
1547
|
+
contents = de_ModifyReplicationGroupResult(data.ModifyReplicationGroupResult, context);
|
|
1548
|
+
const response = {
|
|
1549
|
+
$metadata: deserializeMetadata(output),
|
|
1550
|
+
...contents,
|
|
1551
|
+
};
|
|
1552
|
+
return response;
|
|
3377
1553
|
};
|
|
3378
|
-
export const
|
|
1554
|
+
export const de_ModifyReplicationGroupShardConfigurationCommand = async (output, context) => {
|
|
3379
1555
|
if (output.statusCode >= 300) {
|
|
3380
|
-
return
|
|
1556
|
+
return de_CommandError(output, context);
|
|
3381
1557
|
}
|
|
3382
1558
|
const data = await parseBody(output.body, context);
|
|
3383
1559
|
let contents = {};
|
|
3384
|
-
contents =
|
|
1560
|
+
contents = de_ModifyReplicationGroupShardConfigurationResult(data.ModifyReplicationGroupShardConfigurationResult, context);
|
|
3385
1561
|
const response = {
|
|
3386
1562
|
$metadata: deserializeMetadata(output),
|
|
3387
1563
|
...contents,
|
|
3388
1564
|
};
|
|
3389
1565
|
return response;
|
|
3390
1566
|
};
|
|
3391
|
-
const
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
body: await parseErrorBody(output.body, context),
|
|
3395
|
-
};
|
|
3396
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3397
|
-
switch (errorCode) {
|
|
3398
|
-
case "CacheParameterGroupNotFound":
|
|
3399
|
-
case "com.amazonaws.elasticache#CacheParameterGroupNotFoundFault":
|
|
3400
|
-
throw await de_CacheParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
3401
|
-
case "InvalidCacheParameterGroupState":
|
|
3402
|
-
case "com.amazonaws.elasticache#InvalidCacheParameterGroupStateFault":
|
|
3403
|
-
throw await de_InvalidCacheParameterGroupStateFaultRes(parsedOutput, context);
|
|
3404
|
-
case "InvalidGlobalReplicationGroupState":
|
|
3405
|
-
case "com.amazonaws.elasticache#InvalidGlobalReplicationGroupStateFault":
|
|
3406
|
-
throw await de_InvalidGlobalReplicationGroupStateFaultRes(parsedOutput, context);
|
|
3407
|
-
case "InvalidParameterCombination":
|
|
3408
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
3409
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
3410
|
-
case "InvalidParameterValue":
|
|
3411
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
3412
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3413
|
-
default:
|
|
3414
|
-
const parsedBody = parsedOutput.body;
|
|
3415
|
-
return throwDefaultError({
|
|
3416
|
-
output,
|
|
3417
|
-
parsedBody: parsedBody.Error,
|
|
3418
|
-
errorCode,
|
|
3419
|
-
});
|
|
1567
|
+
export const de_ModifyServerlessCacheCommand = async (output, context) => {
|
|
1568
|
+
if (output.statusCode >= 300) {
|
|
1569
|
+
return de_CommandError(output, context);
|
|
3420
1570
|
}
|
|
1571
|
+
const data = await parseBody(output.body, context);
|
|
1572
|
+
let contents = {};
|
|
1573
|
+
contents = de_ModifyServerlessCacheResponse(data.ModifyServerlessCacheResult, context);
|
|
1574
|
+
const response = {
|
|
1575
|
+
$metadata: deserializeMetadata(output),
|
|
1576
|
+
...contents,
|
|
1577
|
+
};
|
|
1578
|
+
return response;
|
|
3421
1579
|
};
|
|
3422
|
-
export const
|
|
1580
|
+
export const de_ModifyUserCommand = async (output, context) => {
|
|
3423
1581
|
if (output.statusCode >= 300) {
|
|
3424
|
-
return
|
|
1582
|
+
return de_CommandError(output, context);
|
|
3425
1583
|
}
|
|
3426
1584
|
const data = await parseBody(output.body, context);
|
|
3427
1585
|
let contents = {};
|
|
3428
|
-
contents =
|
|
1586
|
+
contents = de_User(data.ModifyUserResult, context);
|
|
3429
1587
|
const response = {
|
|
3430
1588
|
$metadata: deserializeMetadata(output),
|
|
3431
1589
|
...contents,
|
|
3432
1590
|
};
|
|
3433
1591
|
return response;
|
|
3434
1592
|
};
|
|
3435
|
-
const
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
1593
|
+
export const de_ModifyUserGroupCommand = async (output, context) => {
|
|
1594
|
+
if (output.statusCode >= 300) {
|
|
1595
|
+
return de_CommandError(output, context);
|
|
1596
|
+
}
|
|
1597
|
+
const data = await parseBody(output.body, context);
|
|
1598
|
+
let contents = {};
|
|
1599
|
+
contents = de_UserGroup(data.ModifyUserGroupResult, context);
|
|
1600
|
+
const response = {
|
|
1601
|
+
$metadata: deserializeMetadata(output),
|
|
1602
|
+
...contents,
|
|
3439
1603
|
};
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
case "CacheSubnetQuotaExceededFault":
|
|
3446
|
-
case "com.amazonaws.elasticache#CacheSubnetQuotaExceededFault":
|
|
3447
|
-
throw await de_CacheSubnetQuotaExceededFaultRes(parsedOutput, context);
|
|
3448
|
-
case "InvalidSubnet":
|
|
3449
|
-
case "com.amazonaws.elasticache#InvalidSubnet":
|
|
3450
|
-
throw await de_InvalidSubnetRes(parsedOutput, context);
|
|
3451
|
-
case "SubnetInUse":
|
|
3452
|
-
case "com.amazonaws.elasticache#SubnetInUse":
|
|
3453
|
-
throw await de_SubnetInUseRes(parsedOutput, context);
|
|
3454
|
-
case "SubnetNotAllowedFault":
|
|
3455
|
-
case "com.amazonaws.elasticache#SubnetNotAllowedFault":
|
|
3456
|
-
throw await de_SubnetNotAllowedFaultRes(parsedOutput, context);
|
|
3457
|
-
default:
|
|
3458
|
-
const parsedBody = parsedOutput.body;
|
|
3459
|
-
return throwDefaultError({
|
|
3460
|
-
output,
|
|
3461
|
-
parsedBody: parsedBody.Error,
|
|
3462
|
-
errorCode,
|
|
3463
|
-
});
|
|
1604
|
+
return response;
|
|
1605
|
+
};
|
|
1606
|
+
export const de_PurchaseReservedCacheNodesOfferingCommand = async (output, context) => {
|
|
1607
|
+
if (output.statusCode >= 300) {
|
|
1608
|
+
return de_CommandError(output, context);
|
|
3464
1609
|
}
|
|
1610
|
+
const data = await parseBody(output.body, context);
|
|
1611
|
+
let contents = {};
|
|
1612
|
+
contents = de_PurchaseReservedCacheNodesOfferingResult(data.PurchaseReservedCacheNodesOfferingResult, context);
|
|
1613
|
+
const response = {
|
|
1614
|
+
$metadata: deserializeMetadata(output),
|
|
1615
|
+
...contents,
|
|
1616
|
+
};
|
|
1617
|
+
return response;
|
|
3465
1618
|
};
|
|
3466
|
-
export const
|
|
1619
|
+
export const de_RebalanceSlotsInGlobalReplicationGroupCommand = async (output, context) => {
|
|
3467
1620
|
if (output.statusCode >= 300) {
|
|
3468
|
-
return
|
|
1621
|
+
return de_CommandError(output, context);
|
|
3469
1622
|
}
|
|
3470
1623
|
const data = await parseBody(output.body, context);
|
|
3471
1624
|
let contents = {};
|
|
3472
|
-
contents =
|
|
1625
|
+
contents = de_RebalanceSlotsInGlobalReplicationGroupResult(data.RebalanceSlotsInGlobalReplicationGroupResult, context);
|
|
3473
1626
|
const response = {
|
|
3474
1627
|
$metadata: deserializeMetadata(output),
|
|
3475
1628
|
...contents,
|
|
3476
1629
|
};
|
|
3477
1630
|
return response;
|
|
3478
1631
|
};
|
|
3479
|
-
const
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
1632
|
+
export const de_RebootCacheClusterCommand = async (output, context) => {
|
|
1633
|
+
if (output.statusCode >= 300) {
|
|
1634
|
+
return de_CommandError(output, context);
|
|
1635
|
+
}
|
|
1636
|
+
const data = await parseBody(output.body, context);
|
|
1637
|
+
let contents = {};
|
|
1638
|
+
contents = de_RebootCacheClusterResult(data.RebootCacheClusterResult, context);
|
|
1639
|
+
const response = {
|
|
1640
|
+
$metadata: deserializeMetadata(output),
|
|
1641
|
+
...contents,
|
|
3483
1642
|
};
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
case "InvalidGlobalReplicationGroupState":
|
|
3490
|
-
case "com.amazonaws.elasticache#InvalidGlobalReplicationGroupStateFault":
|
|
3491
|
-
throw await de_InvalidGlobalReplicationGroupStateFaultRes(parsedOutput, context);
|
|
3492
|
-
case "InvalidParameterValue":
|
|
3493
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
3494
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3495
|
-
default:
|
|
3496
|
-
const parsedBody = parsedOutput.body;
|
|
3497
|
-
return throwDefaultError({
|
|
3498
|
-
output,
|
|
3499
|
-
parsedBody: parsedBody.Error,
|
|
3500
|
-
errorCode,
|
|
3501
|
-
});
|
|
1643
|
+
return response;
|
|
1644
|
+
};
|
|
1645
|
+
export const de_RemoveTagsFromResourceCommand = async (output, context) => {
|
|
1646
|
+
if (output.statusCode >= 300) {
|
|
1647
|
+
return de_CommandError(output, context);
|
|
3502
1648
|
}
|
|
1649
|
+
const data = await parseBody(output.body, context);
|
|
1650
|
+
let contents = {};
|
|
1651
|
+
contents = de_TagListMessage(data.RemoveTagsFromResourceResult, context);
|
|
1652
|
+
const response = {
|
|
1653
|
+
$metadata: deserializeMetadata(output),
|
|
1654
|
+
...contents,
|
|
1655
|
+
};
|
|
1656
|
+
return response;
|
|
3503
1657
|
};
|
|
3504
|
-
export const
|
|
1658
|
+
export const de_ResetCacheParameterGroupCommand = async (output, context) => {
|
|
3505
1659
|
if (output.statusCode >= 300) {
|
|
3506
|
-
return
|
|
1660
|
+
return de_CommandError(output, context);
|
|
3507
1661
|
}
|
|
3508
1662
|
const data = await parseBody(output.body, context);
|
|
3509
1663
|
let contents = {};
|
|
3510
|
-
contents =
|
|
1664
|
+
contents = de_CacheParameterGroupNameMessage(data.ResetCacheParameterGroupResult, context);
|
|
3511
1665
|
const response = {
|
|
3512
1666
|
$metadata: deserializeMetadata(output),
|
|
3513
1667
|
...contents,
|
|
3514
1668
|
};
|
|
3515
1669
|
return response;
|
|
3516
1670
|
};
|
|
3517
|
-
const
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
1671
|
+
export const de_RevokeCacheSecurityGroupIngressCommand = async (output, context) => {
|
|
1672
|
+
if (output.statusCode >= 300) {
|
|
1673
|
+
return de_CommandError(output, context);
|
|
1674
|
+
}
|
|
1675
|
+
const data = await parseBody(output.body, context);
|
|
1676
|
+
let contents = {};
|
|
1677
|
+
contents = de_RevokeCacheSecurityGroupIngressResult(data.RevokeCacheSecurityGroupIngressResult, context);
|
|
1678
|
+
const response = {
|
|
1679
|
+
$metadata: deserializeMetadata(output),
|
|
1680
|
+
...contents,
|
|
3521
1681
|
};
|
|
3522
|
-
|
|
3523
|
-
switch (errorCode) {
|
|
3524
|
-
case "CacheClusterNotFound":
|
|
3525
|
-
case "com.amazonaws.elasticache#CacheClusterNotFoundFault":
|
|
3526
|
-
throw await de_CacheClusterNotFoundFaultRes(parsedOutput, context);
|
|
3527
|
-
case "CacheParameterGroupNotFound":
|
|
3528
|
-
case "com.amazonaws.elasticache#CacheParameterGroupNotFoundFault":
|
|
3529
|
-
throw await de_CacheParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
3530
|
-
case "CacheSecurityGroupNotFound":
|
|
3531
|
-
case "com.amazonaws.elasticache#CacheSecurityGroupNotFoundFault":
|
|
3532
|
-
throw await de_CacheSecurityGroupNotFoundFaultRes(parsedOutput, context);
|
|
3533
|
-
case "InsufficientCacheClusterCapacity":
|
|
3534
|
-
case "com.amazonaws.elasticache#InsufficientCacheClusterCapacityFault":
|
|
3535
|
-
throw await de_InsufficientCacheClusterCapacityFaultRes(parsedOutput, context);
|
|
3536
|
-
case "InvalidCacheClusterState":
|
|
3537
|
-
case "com.amazonaws.elasticache#InvalidCacheClusterStateFault":
|
|
3538
|
-
throw await de_InvalidCacheClusterStateFaultRes(parsedOutput, context);
|
|
3539
|
-
case "InvalidCacheSecurityGroupState":
|
|
3540
|
-
case "com.amazonaws.elasticache#InvalidCacheSecurityGroupStateFault":
|
|
3541
|
-
throw await de_InvalidCacheSecurityGroupStateFaultRes(parsedOutput, context);
|
|
3542
|
-
case "InvalidKMSKeyFault":
|
|
3543
|
-
case "com.amazonaws.elasticache#InvalidKMSKeyFault":
|
|
3544
|
-
throw await de_InvalidKMSKeyFaultRes(parsedOutput, context);
|
|
3545
|
-
case "InvalidParameterCombination":
|
|
3546
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
3547
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
3548
|
-
case "InvalidParameterValue":
|
|
3549
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
3550
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3551
|
-
case "InvalidReplicationGroupState":
|
|
3552
|
-
case "com.amazonaws.elasticache#InvalidReplicationGroupStateFault":
|
|
3553
|
-
throw await de_InvalidReplicationGroupStateFaultRes(parsedOutput, context);
|
|
3554
|
-
case "InvalidUserGroupState":
|
|
3555
|
-
case "com.amazonaws.elasticache#InvalidUserGroupStateFault":
|
|
3556
|
-
throw await de_InvalidUserGroupStateFaultRes(parsedOutput, context);
|
|
3557
|
-
case "InvalidVPCNetworkStateFault":
|
|
3558
|
-
case "com.amazonaws.elasticache#InvalidVPCNetworkStateFault":
|
|
3559
|
-
throw await de_InvalidVPCNetworkStateFaultRes(parsedOutput, context);
|
|
3560
|
-
case "NodeQuotaForClusterExceeded":
|
|
3561
|
-
case "com.amazonaws.elasticache#NodeQuotaForClusterExceededFault":
|
|
3562
|
-
throw await de_NodeQuotaForClusterExceededFaultRes(parsedOutput, context);
|
|
3563
|
-
case "NodeQuotaForCustomerExceeded":
|
|
3564
|
-
case "com.amazonaws.elasticache#NodeQuotaForCustomerExceededFault":
|
|
3565
|
-
throw await de_NodeQuotaForCustomerExceededFaultRes(parsedOutput, context);
|
|
3566
|
-
case "ReplicationGroupNotFoundFault":
|
|
3567
|
-
case "com.amazonaws.elasticache#ReplicationGroupNotFoundFault":
|
|
3568
|
-
throw await de_ReplicationGroupNotFoundFaultRes(parsedOutput, context);
|
|
3569
|
-
case "UserGroupNotFound":
|
|
3570
|
-
case "com.amazonaws.elasticache#UserGroupNotFoundFault":
|
|
3571
|
-
throw await de_UserGroupNotFoundFaultRes(parsedOutput, context);
|
|
3572
|
-
default:
|
|
3573
|
-
const parsedBody = parsedOutput.body;
|
|
3574
|
-
return throwDefaultError({
|
|
3575
|
-
output,
|
|
3576
|
-
parsedBody: parsedBody.Error,
|
|
3577
|
-
errorCode,
|
|
3578
|
-
});
|
|
3579
|
-
}
|
|
1682
|
+
return response;
|
|
3580
1683
|
};
|
|
3581
|
-
export const
|
|
1684
|
+
export const de_StartMigrationCommand = async (output, context) => {
|
|
3582
1685
|
if (output.statusCode >= 300) {
|
|
3583
|
-
return
|
|
1686
|
+
return de_CommandError(output, context);
|
|
3584
1687
|
}
|
|
3585
1688
|
const data = await parseBody(output.body, context);
|
|
3586
1689
|
let contents = {};
|
|
3587
|
-
contents =
|
|
1690
|
+
contents = de_StartMigrationResponse(data.StartMigrationResult, context);
|
|
3588
1691
|
const response = {
|
|
3589
1692
|
$metadata: deserializeMetadata(output),
|
|
3590
1693
|
...contents,
|
|
3591
1694
|
};
|
|
3592
1695
|
return response;
|
|
3593
1696
|
};
|
|
3594
|
-
const
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
body: await parseErrorBody(output.body, context),
|
|
3598
|
-
};
|
|
3599
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3600
|
-
switch (errorCode) {
|
|
3601
|
-
case "InsufficientCacheClusterCapacity":
|
|
3602
|
-
case "com.amazonaws.elasticache#InsufficientCacheClusterCapacityFault":
|
|
3603
|
-
throw await de_InsufficientCacheClusterCapacityFaultRes(parsedOutput, context);
|
|
3604
|
-
case "InvalidCacheClusterState":
|
|
3605
|
-
case "com.amazonaws.elasticache#InvalidCacheClusterStateFault":
|
|
3606
|
-
throw await de_InvalidCacheClusterStateFaultRes(parsedOutput, context);
|
|
3607
|
-
case "InvalidKMSKeyFault":
|
|
3608
|
-
case "com.amazonaws.elasticache#InvalidKMSKeyFault":
|
|
3609
|
-
throw await de_InvalidKMSKeyFaultRes(parsedOutput, context);
|
|
3610
|
-
case "InvalidParameterCombination":
|
|
3611
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
3612
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
3613
|
-
case "InvalidParameterValue":
|
|
3614
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
3615
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3616
|
-
case "InvalidReplicationGroupState":
|
|
3617
|
-
case "com.amazonaws.elasticache#InvalidReplicationGroupStateFault":
|
|
3618
|
-
throw await de_InvalidReplicationGroupStateFaultRes(parsedOutput, context);
|
|
3619
|
-
case "InvalidVPCNetworkStateFault":
|
|
3620
|
-
case "com.amazonaws.elasticache#InvalidVPCNetworkStateFault":
|
|
3621
|
-
throw await de_InvalidVPCNetworkStateFaultRes(parsedOutput, context);
|
|
3622
|
-
case "NodeGroupsPerReplicationGroupQuotaExceeded":
|
|
3623
|
-
case "com.amazonaws.elasticache#NodeGroupsPerReplicationGroupQuotaExceededFault":
|
|
3624
|
-
throw await de_NodeGroupsPerReplicationGroupQuotaExceededFaultRes(parsedOutput, context);
|
|
3625
|
-
case "NodeQuotaForCustomerExceeded":
|
|
3626
|
-
case "com.amazonaws.elasticache#NodeQuotaForCustomerExceededFault":
|
|
3627
|
-
throw await de_NodeQuotaForCustomerExceededFaultRes(parsedOutput, context);
|
|
3628
|
-
case "ReplicationGroupNotFoundFault":
|
|
3629
|
-
case "com.amazonaws.elasticache#ReplicationGroupNotFoundFault":
|
|
3630
|
-
throw await de_ReplicationGroupNotFoundFaultRes(parsedOutput, context);
|
|
3631
|
-
default:
|
|
3632
|
-
const parsedBody = parsedOutput.body;
|
|
3633
|
-
return throwDefaultError({
|
|
3634
|
-
output,
|
|
3635
|
-
parsedBody: parsedBody.Error,
|
|
3636
|
-
errorCode,
|
|
3637
|
-
});
|
|
1697
|
+
export const de_TestFailoverCommand = async (output, context) => {
|
|
1698
|
+
if (output.statusCode >= 300) {
|
|
1699
|
+
return de_CommandError(output, context);
|
|
3638
1700
|
}
|
|
1701
|
+
const data = await parseBody(output.body, context);
|
|
1702
|
+
let contents = {};
|
|
1703
|
+
contents = de_TestFailoverResult(data.TestFailoverResult, context);
|
|
1704
|
+
const response = {
|
|
1705
|
+
$metadata: deserializeMetadata(output),
|
|
1706
|
+
...contents,
|
|
1707
|
+
};
|
|
1708
|
+
return response;
|
|
3639
1709
|
};
|
|
3640
|
-
export const
|
|
1710
|
+
export const de_TestMigrationCommand = async (output, context) => {
|
|
3641
1711
|
if (output.statusCode >= 300) {
|
|
3642
|
-
return
|
|
1712
|
+
return de_CommandError(output, context);
|
|
3643
1713
|
}
|
|
3644
1714
|
const data = await parseBody(output.body, context);
|
|
3645
1715
|
let contents = {};
|
|
3646
|
-
contents =
|
|
1716
|
+
contents = de_TestMigrationResponse(data.TestMigrationResult, context);
|
|
3647
1717
|
const response = {
|
|
3648
1718
|
$metadata: deserializeMetadata(output),
|
|
3649
1719
|
...contents,
|
|
3650
1720
|
};
|
|
3651
1721
|
return response;
|
|
3652
1722
|
};
|
|
3653
|
-
const
|
|
1723
|
+
const de_CommandError = async (output, context) => {
|
|
3654
1724
|
const parsedOutput = {
|
|
3655
1725
|
...output,
|
|
3656
1726
|
body: await parseErrorBody(output.body, context),
|
|
3657
1727
|
};
|
|
3658
1728
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3659
1729
|
switch (errorCode) {
|
|
3660
|
-
case "
|
|
3661
|
-
case "com.amazonaws.elasticache#
|
|
3662
|
-
throw await
|
|
3663
|
-
case "
|
|
3664
|
-
case "com.amazonaws.elasticache#
|
|
3665
|
-
throw await
|
|
3666
|
-
case "
|
|
3667
|
-
case "com.amazonaws.elasticache#
|
|
3668
|
-
throw await
|
|
1730
|
+
case "CacheClusterNotFound":
|
|
1731
|
+
case "com.amazonaws.elasticache#CacheClusterNotFoundFault":
|
|
1732
|
+
throw await de_CacheClusterNotFoundFaultRes(parsedOutput, context);
|
|
1733
|
+
case "CacheParameterGroupNotFound":
|
|
1734
|
+
case "com.amazonaws.elasticache#CacheParameterGroupNotFoundFault":
|
|
1735
|
+
throw await de_CacheParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
1736
|
+
case "CacheSecurityGroupNotFound":
|
|
1737
|
+
case "com.amazonaws.elasticache#CacheSecurityGroupNotFoundFault":
|
|
1738
|
+
throw await de_CacheSecurityGroupNotFoundFaultRes(parsedOutput, context);
|
|
1739
|
+
case "CacheSubnetGroupNotFoundFault":
|
|
1740
|
+
case "com.amazonaws.elasticache#CacheSubnetGroupNotFoundFault":
|
|
1741
|
+
throw await de_CacheSubnetGroupNotFoundFaultRes(parsedOutput, context);
|
|
1742
|
+
case "InvalidARN":
|
|
1743
|
+
case "com.amazonaws.elasticache#InvalidARNFault":
|
|
1744
|
+
throw await de_InvalidARNFaultRes(parsedOutput, context);
|
|
1745
|
+
case "InvalidReplicationGroupState":
|
|
1746
|
+
case "com.amazonaws.elasticache#InvalidReplicationGroupStateFault":
|
|
1747
|
+
throw await de_InvalidReplicationGroupStateFaultRes(parsedOutput, context);
|
|
1748
|
+
case "InvalidServerlessCacheSnapshotStateFault":
|
|
1749
|
+
case "com.amazonaws.elasticache#InvalidServerlessCacheSnapshotStateFault":
|
|
1750
|
+
throw await de_InvalidServerlessCacheSnapshotStateFaultRes(parsedOutput, context);
|
|
3669
1751
|
case "InvalidServerlessCacheStateFault":
|
|
3670
1752
|
case "com.amazonaws.elasticache#InvalidServerlessCacheStateFault":
|
|
3671
1753
|
throw await de_InvalidServerlessCacheStateFaultRes(parsedOutput, context);
|
|
3672
|
-
case "
|
|
3673
|
-
case "com.amazonaws.elasticache#
|
|
3674
|
-
throw await
|
|
1754
|
+
case "ReplicationGroupNotFoundFault":
|
|
1755
|
+
case "com.amazonaws.elasticache#ReplicationGroupNotFoundFault":
|
|
1756
|
+
throw await de_ReplicationGroupNotFoundFaultRes(parsedOutput, context);
|
|
1757
|
+
case "ReservedCacheNodeNotFound":
|
|
1758
|
+
case "com.amazonaws.elasticache#ReservedCacheNodeNotFoundFault":
|
|
1759
|
+
throw await de_ReservedCacheNodeNotFoundFaultRes(parsedOutput, context);
|
|
3675
1760
|
case "ServerlessCacheNotFoundFault":
|
|
3676
1761
|
case "com.amazonaws.elasticache#ServerlessCacheNotFoundFault":
|
|
3677
1762
|
throw await de_ServerlessCacheNotFoundFaultRes(parsedOutput, context);
|
|
3678
|
-
case "
|
|
3679
|
-
case "com.amazonaws.elasticache#
|
|
3680
|
-
throw await
|
|
1763
|
+
case "ServerlessCacheSnapshotNotFoundFault":
|
|
1764
|
+
case "com.amazonaws.elasticache#ServerlessCacheSnapshotNotFoundFault":
|
|
1765
|
+
throw await de_ServerlessCacheSnapshotNotFoundFaultRes(parsedOutput, context);
|
|
1766
|
+
case "SnapshotNotFoundFault":
|
|
1767
|
+
case "com.amazonaws.elasticache#SnapshotNotFoundFault":
|
|
1768
|
+
throw await de_SnapshotNotFoundFaultRes(parsedOutput, context);
|
|
1769
|
+
case "TagQuotaPerResourceExceeded":
|
|
1770
|
+
case "com.amazonaws.elasticache#TagQuotaPerResourceExceeded":
|
|
1771
|
+
throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
|
|
3681
1772
|
case "UserGroupNotFound":
|
|
3682
1773
|
case "com.amazonaws.elasticache#UserGroupNotFoundFault":
|
|
3683
1774
|
throw await de_UserGroupNotFoundFaultRes(parsedOutput, context);
|
|
3684
|
-
default:
|
|
3685
|
-
const parsedBody = parsedOutput.body;
|
|
3686
|
-
return throwDefaultError({
|
|
3687
|
-
output,
|
|
3688
|
-
parsedBody: parsedBody.Error,
|
|
3689
|
-
errorCode,
|
|
3690
|
-
});
|
|
3691
|
-
}
|
|
3692
|
-
};
|
|
3693
|
-
export const de_ModifyUserCommand = async (output, context) => {
|
|
3694
|
-
if (output.statusCode >= 300) {
|
|
3695
|
-
return de_ModifyUserCommandError(output, context);
|
|
3696
|
-
}
|
|
3697
|
-
const data = await parseBody(output.body, context);
|
|
3698
|
-
let contents = {};
|
|
3699
|
-
contents = de_User(data.ModifyUserResult, context);
|
|
3700
|
-
const response = {
|
|
3701
|
-
$metadata: deserializeMetadata(output),
|
|
3702
|
-
...contents,
|
|
3703
|
-
};
|
|
3704
|
-
return response;
|
|
3705
|
-
};
|
|
3706
|
-
const de_ModifyUserCommandError = async (output, context) => {
|
|
3707
|
-
const parsedOutput = {
|
|
3708
|
-
...output,
|
|
3709
|
-
body: await parseErrorBody(output.body, context),
|
|
3710
|
-
};
|
|
3711
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3712
|
-
switch (errorCode) {
|
|
3713
|
-
case "InvalidParameterCombination":
|
|
3714
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
3715
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
3716
|
-
case "InvalidParameterValue":
|
|
3717
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
3718
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3719
|
-
case "InvalidUserState":
|
|
3720
|
-
case "com.amazonaws.elasticache#InvalidUserStateFault":
|
|
3721
|
-
throw await de_InvalidUserStateFaultRes(parsedOutput, context);
|
|
3722
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
3723
|
-
case "com.amazonaws.elasticache#ServiceLinkedRoleNotFoundFault":
|
|
3724
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
3725
1775
|
case "UserNotFound":
|
|
3726
1776
|
case "com.amazonaws.elasticache#UserNotFoundFault":
|
|
3727
1777
|
throw await de_UserNotFoundFaultRes(parsedOutput, context);
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
});
|
|
3735
|
-
}
|
|
3736
|
-
};
|
|
3737
|
-
export const de_ModifyUserGroupCommand = async (output, context) => {
|
|
3738
|
-
if (output.statusCode >= 300) {
|
|
3739
|
-
return de_ModifyUserGroupCommandError(output, context);
|
|
3740
|
-
}
|
|
3741
|
-
const data = await parseBody(output.body, context);
|
|
3742
|
-
let contents = {};
|
|
3743
|
-
contents = de_UserGroup(data.ModifyUserGroupResult, context);
|
|
3744
|
-
const response = {
|
|
3745
|
-
$metadata: deserializeMetadata(output),
|
|
3746
|
-
...contents,
|
|
3747
|
-
};
|
|
3748
|
-
return response;
|
|
3749
|
-
};
|
|
3750
|
-
const de_ModifyUserGroupCommandError = async (output, context) => {
|
|
3751
|
-
const parsedOutput = {
|
|
3752
|
-
...output,
|
|
3753
|
-
body: await parseErrorBody(output.body, context),
|
|
3754
|
-
};
|
|
3755
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3756
|
-
switch (errorCode) {
|
|
3757
|
-
case "DefaultUserRequired":
|
|
3758
|
-
case "com.amazonaws.elasticache#DefaultUserRequired":
|
|
3759
|
-
throw await de_DefaultUserRequiredRes(parsedOutput, context);
|
|
3760
|
-
case "DuplicateUserName":
|
|
3761
|
-
case "com.amazonaws.elasticache#DuplicateUserNameFault":
|
|
3762
|
-
throw await de_DuplicateUserNameFaultRes(parsedOutput, context);
|
|
1778
|
+
case "AuthorizationAlreadyExists":
|
|
1779
|
+
case "com.amazonaws.elasticache#AuthorizationAlreadyExistsFault":
|
|
1780
|
+
throw await de_AuthorizationAlreadyExistsFaultRes(parsedOutput, context);
|
|
1781
|
+
case "InvalidCacheSecurityGroupState":
|
|
1782
|
+
case "com.amazonaws.elasticache#InvalidCacheSecurityGroupStateFault":
|
|
1783
|
+
throw await de_InvalidCacheSecurityGroupStateFaultRes(parsedOutput, context);
|
|
3763
1784
|
case "InvalidParameterCombination":
|
|
3764
1785
|
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
3765
1786
|
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
3766
1787
|
case "InvalidParameterValue":
|
|
3767
1788
|
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
3768
1789
|
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3769
|
-
case "
|
|
3770
|
-
case "com.amazonaws.elasticache#
|
|
3771
|
-
throw await
|
|
3772
|
-
case "
|
|
3773
|
-
case "com.amazonaws.elasticache#
|
|
3774
|
-
throw await
|
|
3775
|
-
case "
|
|
3776
|
-
case "com.amazonaws.elasticache#
|
|
3777
|
-
throw await
|
|
3778
|
-
case "
|
|
3779
|
-
case "com.amazonaws.elasticache#
|
|
3780
|
-
throw await
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
case "
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
case "
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
case "com.amazonaws.elasticache#ReservedCacheNodeAlreadyExistsFault":
|
|
3818
|
-
throw await de_ReservedCacheNodeAlreadyExistsFaultRes(parsedOutput, context);
|
|
3819
|
-
case "ReservedCacheNodeQuotaExceeded":
|
|
3820
|
-
case "com.amazonaws.elasticache#ReservedCacheNodeQuotaExceededFault":
|
|
3821
|
-
throw await de_ReservedCacheNodeQuotaExceededFaultRes(parsedOutput, context);
|
|
3822
|
-
case "ReservedCacheNodesOfferingNotFound":
|
|
3823
|
-
case "com.amazonaws.elasticache#ReservedCacheNodesOfferingNotFoundFault":
|
|
3824
|
-
throw await de_ReservedCacheNodesOfferingNotFoundFaultRes(parsedOutput, context);
|
|
3825
|
-
case "TagQuotaPerResourceExceeded":
|
|
3826
|
-
case "com.amazonaws.elasticache#TagQuotaPerResourceExceeded":
|
|
3827
|
-
throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
|
|
3828
|
-
default:
|
|
3829
|
-
const parsedBody = parsedOutput.body;
|
|
3830
|
-
return throwDefaultError({
|
|
3831
|
-
output,
|
|
3832
|
-
parsedBody: parsedBody.Error,
|
|
3833
|
-
errorCode,
|
|
3834
|
-
});
|
|
3835
|
-
}
|
|
3836
|
-
};
|
|
3837
|
-
export const de_RebalanceSlotsInGlobalReplicationGroupCommand = async (output, context) => {
|
|
3838
|
-
if (output.statusCode >= 300) {
|
|
3839
|
-
return de_RebalanceSlotsInGlobalReplicationGroupCommandError(output, context);
|
|
3840
|
-
}
|
|
3841
|
-
const data = await parseBody(output.body, context);
|
|
3842
|
-
let contents = {};
|
|
3843
|
-
contents = de_RebalanceSlotsInGlobalReplicationGroupResult(data.RebalanceSlotsInGlobalReplicationGroupResult, context);
|
|
3844
|
-
const response = {
|
|
3845
|
-
$metadata: deserializeMetadata(output),
|
|
3846
|
-
...contents,
|
|
3847
|
-
};
|
|
3848
|
-
return response;
|
|
3849
|
-
};
|
|
3850
|
-
const de_RebalanceSlotsInGlobalReplicationGroupCommandError = async (output, context) => {
|
|
3851
|
-
const parsedOutput = {
|
|
3852
|
-
...output,
|
|
3853
|
-
body: await parseErrorBody(output.body, context),
|
|
3854
|
-
};
|
|
3855
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3856
|
-
switch (errorCode) {
|
|
3857
|
-
case "GlobalReplicationGroupNotFoundFault":
|
|
3858
|
-
case "com.amazonaws.elasticache#GlobalReplicationGroupNotFoundFault":
|
|
3859
|
-
throw await de_GlobalReplicationGroupNotFoundFaultRes(parsedOutput, context);
|
|
3860
|
-
case "InvalidGlobalReplicationGroupState":
|
|
3861
|
-
case "com.amazonaws.elasticache#InvalidGlobalReplicationGroupStateFault":
|
|
3862
|
-
throw await de_InvalidGlobalReplicationGroupStateFaultRes(parsedOutput, context);
|
|
3863
|
-
case "InvalidParameterValue":
|
|
3864
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
3865
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3866
|
-
default:
|
|
3867
|
-
const parsedBody = parsedOutput.body;
|
|
3868
|
-
return throwDefaultError({
|
|
3869
|
-
output,
|
|
3870
|
-
parsedBody: parsedBody.Error,
|
|
3871
|
-
errorCode,
|
|
3872
|
-
});
|
|
3873
|
-
}
|
|
3874
|
-
};
|
|
3875
|
-
export const de_RebootCacheClusterCommand = async (output, context) => {
|
|
3876
|
-
if (output.statusCode >= 300) {
|
|
3877
|
-
return de_RebootCacheClusterCommandError(output, context);
|
|
3878
|
-
}
|
|
3879
|
-
const data = await parseBody(output.body, context);
|
|
3880
|
-
let contents = {};
|
|
3881
|
-
contents = de_RebootCacheClusterResult(data.RebootCacheClusterResult, context);
|
|
3882
|
-
const response = {
|
|
3883
|
-
$metadata: deserializeMetadata(output),
|
|
3884
|
-
...contents,
|
|
3885
|
-
};
|
|
3886
|
-
return response;
|
|
3887
|
-
};
|
|
3888
|
-
const de_RebootCacheClusterCommandError = async (output, context) => {
|
|
3889
|
-
const parsedOutput = {
|
|
3890
|
-
...output,
|
|
3891
|
-
body: await parseErrorBody(output.body, context),
|
|
3892
|
-
};
|
|
3893
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3894
|
-
switch (errorCode) {
|
|
3895
|
-
case "CacheClusterNotFound":
|
|
3896
|
-
case "com.amazonaws.elasticache#CacheClusterNotFoundFault":
|
|
3897
|
-
throw await de_CacheClusterNotFoundFaultRes(parsedOutput, context);
|
|
3898
|
-
case "InvalidCacheClusterState":
|
|
3899
|
-
case "com.amazonaws.elasticache#InvalidCacheClusterStateFault":
|
|
3900
|
-
throw await de_InvalidCacheClusterStateFaultRes(parsedOutput, context);
|
|
3901
|
-
default:
|
|
3902
|
-
const parsedBody = parsedOutput.body;
|
|
3903
|
-
return throwDefaultError({
|
|
3904
|
-
output,
|
|
3905
|
-
parsedBody: parsedBody.Error,
|
|
3906
|
-
errorCode,
|
|
3907
|
-
});
|
|
3908
|
-
}
|
|
3909
|
-
};
|
|
3910
|
-
export const de_RemoveTagsFromResourceCommand = async (output, context) => {
|
|
3911
|
-
if (output.statusCode >= 300) {
|
|
3912
|
-
return de_RemoveTagsFromResourceCommandError(output, context);
|
|
3913
|
-
}
|
|
3914
|
-
const data = await parseBody(output.body, context);
|
|
3915
|
-
let contents = {};
|
|
3916
|
-
contents = de_TagListMessage(data.RemoveTagsFromResourceResult, context);
|
|
3917
|
-
const response = {
|
|
3918
|
-
$metadata: deserializeMetadata(output),
|
|
3919
|
-
...contents,
|
|
3920
|
-
};
|
|
3921
|
-
return response;
|
|
3922
|
-
};
|
|
3923
|
-
const de_RemoveTagsFromResourceCommandError = async (output, context) => {
|
|
3924
|
-
const parsedOutput = {
|
|
3925
|
-
...output,
|
|
3926
|
-
body: await parseErrorBody(output.body, context),
|
|
3927
|
-
};
|
|
3928
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3929
|
-
switch (errorCode) {
|
|
3930
|
-
case "CacheClusterNotFound":
|
|
3931
|
-
case "com.amazonaws.elasticache#CacheClusterNotFoundFault":
|
|
3932
|
-
throw await de_CacheClusterNotFoundFaultRes(parsedOutput, context);
|
|
3933
|
-
case "CacheParameterGroupNotFound":
|
|
3934
|
-
case "com.amazonaws.elasticache#CacheParameterGroupNotFoundFault":
|
|
3935
|
-
throw await de_CacheParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
3936
|
-
case "CacheSecurityGroupNotFound":
|
|
3937
|
-
case "com.amazonaws.elasticache#CacheSecurityGroupNotFoundFault":
|
|
3938
|
-
throw await de_CacheSecurityGroupNotFoundFaultRes(parsedOutput, context);
|
|
3939
|
-
case "CacheSubnetGroupNotFoundFault":
|
|
3940
|
-
case "com.amazonaws.elasticache#CacheSubnetGroupNotFoundFault":
|
|
3941
|
-
throw await de_CacheSubnetGroupNotFoundFaultRes(parsedOutput, context);
|
|
3942
|
-
case "InvalidARN":
|
|
3943
|
-
case "com.amazonaws.elasticache#InvalidARNFault":
|
|
3944
|
-
throw await de_InvalidARNFaultRes(parsedOutput, context);
|
|
3945
|
-
case "InvalidReplicationGroupState":
|
|
3946
|
-
case "com.amazonaws.elasticache#InvalidReplicationGroupStateFault":
|
|
3947
|
-
throw await de_InvalidReplicationGroupStateFaultRes(parsedOutput, context);
|
|
3948
|
-
case "InvalidServerlessCacheSnapshotStateFault":
|
|
3949
|
-
case "com.amazonaws.elasticache#InvalidServerlessCacheSnapshotStateFault":
|
|
3950
|
-
throw await de_InvalidServerlessCacheSnapshotStateFaultRes(parsedOutput, context);
|
|
3951
|
-
case "InvalidServerlessCacheStateFault":
|
|
3952
|
-
case "com.amazonaws.elasticache#InvalidServerlessCacheStateFault":
|
|
3953
|
-
throw await de_InvalidServerlessCacheStateFaultRes(parsedOutput, context);
|
|
3954
|
-
case "ReplicationGroupNotFoundFault":
|
|
3955
|
-
case "com.amazonaws.elasticache#ReplicationGroupNotFoundFault":
|
|
3956
|
-
throw await de_ReplicationGroupNotFoundFaultRes(parsedOutput, context);
|
|
3957
|
-
case "ReservedCacheNodeNotFound":
|
|
3958
|
-
case "com.amazonaws.elasticache#ReservedCacheNodeNotFoundFault":
|
|
3959
|
-
throw await de_ReservedCacheNodeNotFoundFaultRes(parsedOutput, context);
|
|
3960
|
-
case "ServerlessCacheNotFoundFault":
|
|
3961
|
-
case "com.amazonaws.elasticache#ServerlessCacheNotFoundFault":
|
|
3962
|
-
throw await de_ServerlessCacheNotFoundFaultRes(parsedOutput, context);
|
|
3963
|
-
case "ServerlessCacheSnapshotNotFoundFault":
|
|
3964
|
-
case "com.amazonaws.elasticache#ServerlessCacheSnapshotNotFoundFault":
|
|
3965
|
-
throw await de_ServerlessCacheSnapshotNotFoundFaultRes(parsedOutput, context);
|
|
3966
|
-
case "SnapshotNotFoundFault":
|
|
3967
|
-
case "com.amazonaws.elasticache#SnapshotNotFoundFault":
|
|
3968
|
-
throw await de_SnapshotNotFoundFaultRes(parsedOutput, context);
|
|
3969
|
-
case "TagNotFound":
|
|
3970
|
-
case "com.amazonaws.elasticache#TagNotFoundFault":
|
|
3971
|
-
throw await de_TagNotFoundFaultRes(parsedOutput, context);
|
|
3972
|
-
case "UserGroupNotFound":
|
|
3973
|
-
case "com.amazonaws.elasticache#UserGroupNotFoundFault":
|
|
3974
|
-
throw await de_UserGroupNotFoundFaultRes(parsedOutput, context);
|
|
3975
|
-
case "UserNotFound":
|
|
3976
|
-
case "com.amazonaws.elasticache#UserNotFoundFault":
|
|
3977
|
-
throw await de_UserNotFoundFaultRes(parsedOutput, context);
|
|
3978
|
-
default:
|
|
3979
|
-
const parsedBody = parsedOutput.body;
|
|
3980
|
-
return throwDefaultError({
|
|
3981
|
-
output,
|
|
3982
|
-
parsedBody: parsedBody.Error,
|
|
3983
|
-
errorCode,
|
|
3984
|
-
});
|
|
3985
|
-
}
|
|
3986
|
-
};
|
|
3987
|
-
export const de_ResetCacheParameterGroupCommand = async (output, context) => {
|
|
3988
|
-
if (output.statusCode >= 300) {
|
|
3989
|
-
return de_ResetCacheParameterGroupCommandError(output, context);
|
|
3990
|
-
}
|
|
3991
|
-
const data = await parseBody(output.body, context);
|
|
3992
|
-
let contents = {};
|
|
3993
|
-
contents = de_CacheParameterGroupNameMessage(data.ResetCacheParameterGroupResult, context);
|
|
3994
|
-
const response = {
|
|
3995
|
-
$metadata: deserializeMetadata(output),
|
|
3996
|
-
...contents,
|
|
3997
|
-
};
|
|
3998
|
-
return response;
|
|
3999
|
-
};
|
|
4000
|
-
const de_ResetCacheParameterGroupCommandError = async (output, context) => {
|
|
4001
|
-
const parsedOutput = {
|
|
4002
|
-
...output,
|
|
4003
|
-
body: await parseErrorBody(output.body, context),
|
|
4004
|
-
};
|
|
4005
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
4006
|
-
switch (errorCode) {
|
|
4007
|
-
case "CacheParameterGroupNotFound":
|
|
4008
|
-
case "com.amazonaws.elasticache#CacheParameterGroupNotFoundFault":
|
|
4009
|
-
throw await de_CacheParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
1790
|
+
case "ServiceUpdateNotFoundFault":
|
|
1791
|
+
case "com.amazonaws.elasticache#ServiceUpdateNotFoundFault":
|
|
1792
|
+
throw await de_ServiceUpdateNotFoundFaultRes(parsedOutput, context);
|
|
1793
|
+
case "ReplicationGroupNotUnderMigrationFault":
|
|
1794
|
+
case "com.amazonaws.elasticache#ReplicationGroupNotUnderMigrationFault":
|
|
1795
|
+
throw await de_ReplicationGroupNotUnderMigrationFaultRes(parsedOutput, context);
|
|
1796
|
+
case "ServerlessCacheSnapshotAlreadyExistsFault":
|
|
1797
|
+
case "com.amazonaws.elasticache#ServerlessCacheSnapshotAlreadyExistsFault":
|
|
1798
|
+
throw await de_ServerlessCacheSnapshotAlreadyExistsFaultRes(parsedOutput, context);
|
|
1799
|
+
case "ServerlessCacheSnapshotQuotaExceededFault":
|
|
1800
|
+
case "com.amazonaws.elasticache#ServerlessCacheSnapshotQuotaExceededFault":
|
|
1801
|
+
throw await de_ServerlessCacheSnapshotQuotaExceededFaultRes(parsedOutput, context);
|
|
1802
|
+
case "ServiceLinkedRoleNotFoundFault":
|
|
1803
|
+
case "com.amazonaws.elasticache#ServiceLinkedRoleNotFoundFault":
|
|
1804
|
+
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
1805
|
+
case "InvalidSnapshotState":
|
|
1806
|
+
case "com.amazonaws.elasticache#InvalidSnapshotStateFault":
|
|
1807
|
+
throw await de_InvalidSnapshotStateFaultRes(parsedOutput, context);
|
|
1808
|
+
case "SnapshotAlreadyExistsFault":
|
|
1809
|
+
case "com.amazonaws.elasticache#SnapshotAlreadyExistsFault":
|
|
1810
|
+
throw await de_SnapshotAlreadyExistsFaultRes(parsedOutput, context);
|
|
1811
|
+
case "SnapshotQuotaExceededFault":
|
|
1812
|
+
case "com.amazonaws.elasticache#SnapshotQuotaExceededFault":
|
|
1813
|
+
throw await de_SnapshotQuotaExceededFaultRes(parsedOutput, context);
|
|
1814
|
+
case "CacheClusterAlreadyExists":
|
|
1815
|
+
case "com.amazonaws.elasticache#CacheClusterAlreadyExistsFault":
|
|
1816
|
+
throw await de_CacheClusterAlreadyExistsFaultRes(parsedOutput, context);
|
|
1817
|
+
case "ClusterQuotaForCustomerExceeded":
|
|
1818
|
+
case "com.amazonaws.elasticache#ClusterQuotaForCustomerExceededFault":
|
|
1819
|
+
throw await de_ClusterQuotaForCustomerExceededFaultRes(parsedOutput, context);
|
|
1820
|
+
case "InsufficientCacheClusterCapacity":
|
|
1821
|
+
case "com.amazonaws.elasticache#InsufficientCacheClusterCapacityFault":
|
|
1822
|
+
throw await de_InsufficientCacheClusterCapacityFaultRes(parsedOutput, context);
|
|
1823
|
+
case "InvalidVPCNetworkStateFault":
|
|
1824
|
+
case "com.amazonaws.elasticache#InvalidVPCNetworkStateFault":
|
|
1825
|
+
throw await de_InvalidVPCNetworkStateFaultRes(parsedOutput, context);
|
|
1826
|
+
case "NodeQuotaForClusterExceeded":
|
|
1827
|
+
case "com.amazonaws.elasticache#NodeQuotaForClusterExceededFault":
|
|
1828
|
+
throw await de_NodeQuotaForClusterExceededFaultRes(parsedOutput, context);
|
|
1829
|
+
case "NodeQuotaForCustomerExceeded":
|
|
1830
|
+
case "com.amazonaws.elasticache#NodeQuotaForCustomerExceededFault":
|
|
1831
|
+
throw await de_NodeQuotaForCustomerExceededFaultRes(parsedOutput, context);
|
|
1832
|
+
case "CacheParameterGroupAlreadyExists":
|
|
1833
|
+
case "com.amazonaws.elasticache#CacheParameterGroupAlreadyExistsFault":
|
|
1834
|
+
throw await de_CacheParameterGroupAlreadyExistsFaultRes(parsedOutput, context);
|
|
1835
|
+
case "CacheParameterGroupQuotaExceeded":
|
|
1836
|
+
case "com.amazonaws.elasticache#CacheParameterGroupQuotaExceededFault":
|
|
1837
|
+
throw await de_CacheParameterGroupQuotaExceededFaultRes(parsedOutput, context);
|
|
4010
1838
|
case "InvalidCacheParameterGroupState":
|
|
4011
1839
|
case "com.amazonaws.elasticache#InvalidCacheParameterGroupStateFault":
|
|
4012
1840
|
throw await de_InvalidCacheParameterGroupStateFaultRes(parsedOutput, context);
|
|
1841
|
+
case "CacheSecurityGroupAlreadyExists":
|
|
1842
|
+
case "com.amazonaws.elasticache#CacheSecurityGroupAlreadyExistsFault":
|
|
1843
|
+
throw await de_CacheSecurityGroupAlreadyExistsFaultRes(parsedOutput, context);
|
|
1844
|
+
case "QuotaExceeded.CacheSecurityGroup":
|
|
1845
|
+
case "com.amazonaws.elasticache#CacheSecurityGroupQuotaExceededFault":
|
|
1846
|
+
throw await de_CacheSecurityGroupQuotaExceededFaultRes(parsedOutput, context);
|
|
1847
|
+
case "CacheSubnetGroupAlreadyExists":
|
|
1848
|
+
case "com.amazonaws.elasticache#CacheSubnetGroupAlreadyExistsFault":
|
|
1849
|
+
throw await de_CacheSubnetGroupAlreadyExistsFaultRes(parsedOutput, context);
|
|
1850
|
+
case "CacheSubnetGroupQuotaExceeded":
|
|
1851
|
+
case "com.amazonaws.elasticache#CacheSubnetGroupQuotaExceededFault":
|
|
1852
|
+
throw await de_CacheSubnetGroupQuotaExceededFaultRes(parsedOutput, context);
|
|
1853
|
+
case "CacheSubnetQuotaExceededFault":
|
|
1854
|
+
case "com.amazonaws.elasticache#CacheSubnetQuotaExceededFault":
|
|
1855
|
+
throw await de_CacheSubnetQuotaExceededFaultRes(parsedOutput, context);
|
|
1856
|
+
case "InvalidSubnet":
|
|
1857
|
+
case "com.amazonaws.elasticache#InvalidSubnet":
|
|
1858
|
+
throw await de_InvalidSubnetRes(parsedOutput, context);
|
|
1859
|
+
case "SubnetNotAllowedFault":
|
|
1860
|
+
case "com.amazonaws.elasticache#SubnetNotAllowedFault":
|
|
1861
|
+
throw await de_SubnetNotAllowedFaultRes(parsedOutput, context);
|
|
1862
|
+
case "GlobalReplicationGroupAlreadyExistsFault":
|
|
1863
|
+
case "com.amazonaws.elasticache#GlobalReplicationGroupAlreadyExistsFault":
|
|
1864
|
+
throw await de_GlobalReplicationGroupAlreadyExistsFaultRes(parsedOutput, context);
|
|
1865
|
+
case "GlobalReplicationGroupNotFoundFault":
|
|
1866
|
+
case "com.amazonaws.elasticache#GlobalReplicationGroupNotFoundFault":
|
|
1867
|
+
throw await de_GlobalReplicationGroupNotFoundFaultRes(parsedOutput, context);
|
|
1868
|
+
case "InvalidCacheClusterState":
|
|
1869
|
+
case "com.amazonaws.elasticache#InvalidCacheClusterStateFault":
|
|
1870
|
+
throw await de_InvalidCacheClusterStateFaultRes(parsedOutput, context);
|
|
4013
1871
|
case "InvalidGlobalReplicationGroupState":
|
|
4014
1872
|
case "com.amazonaws.elasticache#InvalidGlobalReplicationGroupStateFault":
|
|
4015
1873
|
throw await de_InvalidGlobalReplicationGroupStateFaultRes(parsedOutput, context);
|
|
4016
|
-
case "
|
|
4017
|
-
case "com.amazonaws.elasticache#
|
|
4018
|
-
throw await
|
|
4019
|
-
case "
|
|
4020
|
-
case "com.amazonaws.elasticache#
|
|
4021
|
-
throw await
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
|
|
4039
|
-
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
|
|
4043
|
-
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
|
|
1874
|
+
case "InvalidUserGroupState":
|
|
1875
|
+
case "com.amazonaws.elasticache#InvalidUserGroupStateFault":
|
|
1876
|
+
throw await de_InvalidUserGroupStateFaultRes(parsedOutput, context);
|
|
1877
|
+
case "NodeGroupsPerReplicationGroupQuotaExceeded":
|
|
1878
|
+
case "com.amazonaws.elasticache#NodeGroupsPerReplicationGroupQuotaExceededFault":
|
|
1879
|
+
throw await de_NodeGroupsPerReplicationGroupQuotaExceededFaultRes(parsedOutput, context);
|
|
1880
|
+
case "ReplicationGroupAlreadyExists":
|
|
1881
|
+
case "com.amazonaws.elasticache#ReplicationGroupAlreadyExistsFault":
|
|
1882
|
+
throw await de_ReplicationGroupAlreadyExistsFaultRes(parsedOutput, context);
|
|
1883
|
+
case "InvalidCredentialsException":
|
|
1884
|
+
case "com.amazonaws.elasticache#InvalidCredentialsException":
|
|
1885
|
+
throw await de_InvalidCredentialsExceptionRes(parsedOutput, context);
|
|
1886
|
+
case "ServerlessCacheAlreadyExistsFault":
|
|
1887
|
+
case "com.amazonaws.elasticache#ServerlessCacheAlreadyExistsFault":
|
|
1888
|
+
throw await de_ServerlessCacheAlreadyExistsFaultRes(parsedOutput, context);
|
|
1889
|
+
case "ServerlessCacheQuotaForCustomerExceededFault":
|
|
1890
|
+
case "com.amazonaws.elasticache#ServerlessCacheQuotaForCustomerExceededFault":
|
|
1891
|
+
throw await de_ServerlessCacheQuotaForCustomerExceededFaultRes(parsedOutput, context);
|
|
1892
|
+
case "SnapshotFeatureNotSupportedFault":
|
|
1893
|
+
case "com.amazonaws.elasticache#SnapshotFeatureNotSupportedFault":
|
|
1894
|
+
throw await de_SnapshotFeatureNotSupportedFaultRes(parsedOutput, context);
|
|
1895
|
+
case "DuplicateUserName":
|
|
1896
|
+
case "com.amazonaws.elasticache#DuplicateUserNameFault":
|
|
1897
|
+
throw await de_DuplicateUserNameFaultRes(parsedOutput, context);
|
|
1898
|
+
case "UserAlreadyExists":
|
|
1899
|
+
case "com.amazonaws.elasticache#UserAlreadyExistsFault":
|
|
1900
|
+
throw await de_UserAlreadyExistsFaultRes(parsedOutput, context);
|
|
1901
|
+
case "UserQuotaExceeded":
|
|
1902
|
+
case "com.amazonaws.elasticache#UserQuotaExceededFault":
|
|
1903
|
+
throw await de_UserQuotaExceededFaultRes(parsedOutput, context);
|
|
1904
|
+
case "DefaultUserRequired":
|
|
1905
|
+
case "com.amazonaws.elasticache#DefaultUserRequired":
|
|
1906
|
+
throw await de_DefaultUserRequiredRes(parsedOutput, context);
|
|
1907
|
+
case "UserGroupAlreadyExists":
|
|
1908
|
+
case "com.amazonaws.elasticache#UserGroupAlreadyExistsFault":
|
|
1909
|
+
throw await de_UserGroupAlreadyExistsFaultRes(parsedOutput, context);
|
|
1910
|
+
case "UserGroupQuotaExceeded":
|
|
1911
|
+
case "com.amazonaws.elasticache#UserGroupQuotaExceededFault":
|
|
1912
|
+
throw await de_UserGroupQuotaExceededFaultRes(parsedOutput, context);
|
|
1913
|
+
case "NoOperationFault":
|
|
1914
|
+
case "com.amazonaws.elasticache#NoOperationFault":
|
|
1915
|
+
throw await de_NoOperationFaultRes(parsedOutput, context);
|
|
1916
|
+
case "CacheSubnetGroupInUse":
|
|
1917
|
+
case "com.amazonaws.elasticache#CacheSubnetGroupInUse":
|
|
1918
|
+
throw await de_CacheSubnetGroupInUseRes(parsedOutput, context);
|
|
1919
|
+
case "DefaultUserAssociatedToUserGroup":
|
|
1920
|
+
case "com.amazonaws.elasticache#DefaultUserAssociatedToUserGroupFault":
|
|
1921
|
+
throw await de_DefaultUserAssociatedToUserGroupFaultRes(parsedOutput, context);
|
|
1922
|
+
case "InvalidUserState":
|
|
1923
|
+
case "com.amazonaws.elasticache#InvalidUserStateFault":
|
|
1924
|
+
throw await de_InvalidUserStateFaultRes(parsedOutput, context);
|
|
1925
|
+
case "ReservedCacheNodesOfferingNotFound":
|
|
1926
|
+
case "com.amazonaws.elasticache#ReservedCacheNodesOfferingNotFoundFault":
|
|
1927
|
+
throw await de_ReservedCacheNodesOfferingNotFoundFaultRes(parsedOutput, context);
|
|
1928
|
+
case "InvalidKMSKeyFault":
|
|
1929
|
+
case "com.amazonaws.elasticache#InvalidKMSKeyFault":
|
|
1930
|
+
throw await de_InvalidKMSKeyFaultRes(parsedOutput, context);
|
|
1931
|
+
case "SubnetInUse":
|
|
1932
|
+
case "com.amazonaws.elasticache#SubnetInUse":
|
|
1933
|
+
throw await de_SubnetInUseRes(parsedOutput, context);
|
|
1934
|
+
case "ReservedCacheNodeAlreadyExists":
|
|
1935
|
+
case "com.amazonaws.elasticache#ReservedCacheNodeAlreadyExistsFault":
|
|
1936
|
+
throw await de_ReservedCacheNodeAlreadyExistsFaultRes(parsedOutput, context);
|
|
1937
|
+
case "ReservedCacheNodeQuotaExceeded":
|
|
1938
|
+
case "com.amazonaws.elasticache#ReservedCacheNodeQuotaExceededFault":
|
|
1939
|
+
throw await de_ReservedCacheNodeQuotaExceededFaultRes(parsedOutput, context);
|
|
1940
|
+
case "TagNotFound":
|
|
1941
|
+
case "com.amazonaws.elasticache#TagNotFoundFault":
|
|
1942
|
+
throw await de_TagNotFoundFaultRes(parsedOutput, context);
|
|
4051
1943
|
case "AuthorizationNotFound":
|
|
4052
1944
|
case "com.amazonaws.elasticache#AuthorizationNotFoundFault":
|
|
4053
1945
|
throw await de_AuthorizationNotFoundFaultRes(parsedOutput, context);
|
|
4054
|
-
case "CacheSecurityGroupNotFound":
|
|
4055
|
-
case "com.amazonaws.elasticache#CacheSecurityGroupNotFoundFault":
|
|
4056
|
-
throw await de_CacheSecurityGroupNotFoundFaultRes(parsedOutput, context);
|
|
4057
|
-
case "InvalidCacheSecurityGroupState":
|
|
4058
|
-
case "com.amazonaws.elasticache#InvalidCacheSecurityGroupStateFault":
|
|
4059
|
-
throw await de_InvalidCacheSecurityGroupStateFaultRes(parsedOutput, context);
|
|
4060
|
-
case "InvalidParameterCombination":
|
|
4061
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
4062
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
4063
|
-
case "InvalidParameterValue":
|
|
4064
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
4065
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4066
|
-
default:
|
|
4067
|
-
const parsedBody = parsedOutput.body;
|
|
4068
|
-
return throwDefaultError({
|
|
4069
|
-
output,
|
|
4070
|
-
parsedBody: parsedBody.Error,
|
|
4071
|
-
errorCode,
|
|
4072
|
-
});
|
|
4073
|
-
}
|
|
4074
|
-
};
|
|
4075
|
-
export const de_StartMigrationCommand = async (output, context) => {
|
|
4076
|
-
if (output.statusCode >= 300) {
|
|
4077
|
-
return de_StartMigrationCommandError(output, context);
|
|
4078
|
-
}
|
|
4079
|
-
const data = await parseBody(output.body, context);
|
|
4080
|
-
let contents = {};
|
|
4081
|
-
contents = de_StartMigrationResponse(data.StartMigrationResult, context);
|
|
4082
|
-
const response = {
|
|
4083
|
-
$metadata: deserializeMetadata(output),
|
|
4084
|
-
...contents,
|
|
4085
|
-
};
|
|
4086
|
-
return response;
|
|
4087
|
-
};
|
|
4088
|
-
const de_StartMigrationCommandError = async (output, context) => {
|
|
4089
|
-
const parsedOutput = {
|
|
4090
|
-
...output,
|
|
4091
|
-
body: await parseErrorBody(output.body, context),
|
|
4092
|
-
};
|
|
4093
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
4094
|
-
switch (errorCode) {
|
|
4095
|
-
case "InvalidParameterValue":
|
|
4096
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
4097
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4098
|
-
case "InvalidReplicationGroupState":
|
|
4099
|
-
case "com.amazonaws.elasticache#InvalidReplicationGroupStateFault":
|
|
4100
|
-
throw await de_InvalidReplicationGroupStateFaultRes(parsedOutput, context);
|
|
4101
1946
|
case "ReplicationGroupAlreadyUnderMigrationFault":
|
|
4102
1947
|
case "com.amazonaws.elasticache#ReplicationGroupAlreadyUnderMigrationFault":
|
|
4103
1948
|
throw await de_ReplicationGroupAlreadyUnderMigrationFaultRes(parsedOutput, context);
|
|
4104
|
-
case "ReplicationGroupNotFoundFault":
|
|
4105
|
-
case "com.amazonaws.elasticache#ReplicationGroupNotFoundFault":
|
|
4106
|
-
throw await de_ReplicationGroupNotFoundFaultRes(parsedOutput, context);
|
|
4107
|
-
default:
|
|
4108
|
-
const parsedBody = parsedOutput.body;
|
|
4109
|
-
return throwDefaultError({
|
|
4110
|
-
output,
|
|
4111
|
-
parsedBody: parsedBody.Error,
|
|
4112
|
-
errorCode,
|
|
4113
|
-
});
|
|
4114
|
-
}
|
|
4115
|
-
};
|
|
4116
|
-
export const de_TestFailoverCommand = async (output, context) => {
|
|
4117
|
-
if (output.statusCode >= 300) {
|
|
4118
|
-
return de_TestFailoverCommandError(output, context);
|
|
4119
|
-
}
|
|
4120
|
-
const data = await parseBody(output.body, context);
|
|
4121
|
-
let contents = {};
|
|
4122
|
-
contents = de_TestFailoverResult(data.TestFailoverResult, context);
|
|
4123
|
-
const response = {
|
|
4124
|
-
$metadata: deserializeMetadata(output),
|
|
4125
|
-
...contents,
|
|
4126
|
-
};
|
|
4127
|
-
return response;
|
|
4128
|
-
};
|
|
4129
|
-
const de_TestFailoverCommandError = async (output, context) => {
|
|
4130
|
-
const parsedOutput = {
|
|
4131
|
-
...output,
|
|
4132
|
-
body: await parseErrorBody(output.body, context),
|
|
4133
|
-
};
|
|
4134
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
4135
|
-
switch (errorCode) {
|
|
4136
1949
|
case "APICallRateForCustomerExceeded":
|
|
4137
1950
|
case "com.amazonaws.elasticache#APICallRateForCustomerExceededFault":
|
|
4138
1951
|
throw await de_APICallRateForCustomerExceededFaultRes(parsedOutput, context);
|
|
4139
|
-
case "InvalidCacheClusterState":
|
|
4140
|
-
case "com.amazonaws.elasticache#InvalidCacheClusterStateFault":
|
|
4141
|
-
throw await de_InvalidCacheClusterStateFaultRes(parsedOutput, context);
|
|
4142
|
-
case "InvalidKMSKeyFault":
|
|
4143
|
-
case "com.amazonaws.elasticache#InvalidKMSKeyFault":
|
|
4144
|
-
throw await de_InvalidKMSKeyFaultRes(parsedOutput, context);
|
|
4145
|
-
case "InvalidParameterCombination":
|
|
4146
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
4147
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
4148
|
-
case "InvalidParameterValue":
|
|
4149
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
4150
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4151
|
-
case "InvalidReplicationGroupState":
|
|
4152
|
-
case "com.amazonaws.elasticache#InvalidReplicationGroupStateFault":
|
|
4153
|
-
throw await de_InvalidReplicationGroupStateFaultRes(parsedOutput, context);
|
|
4154
1952
|
case "NodeGroupNotFoundFault":
|
|
4155
1953
|
case "com.amazonaws.elasticache#NodeGroupNotFoundFault":
|
|
4156
1954
|
throw await de_NodeGroupNotFoundFaultRes(parsedOutput, context);
|
|
4157
|
-
case "ReplicationGroupNotFoundFault":
|
|
4158
|
-
case "com.amazonaws.elasticache#ReplicationGroupNotFoundFault":
|
|
4159
|
-
throw await de_ReplicationGroupNotFoundFaultRes(parsedOutput, context);
|
|
4160
1955
|
case "TestFailoverNotAvailableFault":
|
|
4161
1956
|
case "com.amazonaws.elasticache#TestFailoverNotAvailableFault":
|
|
4162
1957
|
throw await de_TestFailoverNotAvailableFaultRes(parsedOutput, context);
|
|
@@ -4169,47 +1964,6 @@ const de_TestFailoverCommandError = async (output, context) => {
|
|
|
4169
1964
|
});
|
|
4170
1965
|
}
|
|
4171
1966
|
};
|
|
4172
|
-
export const de_TestMigrationCommand = async (output, context) => {
|
|
4173
|
-
if (output.statusCode >= 300) {
|
|
4174
|
-
return de_TestMigrationCommandError(output, context);
|
|
4175
|
-
}
|
|
4176
|
-
const data = await parseBody(output.body, context);
|
|
4177
|
-
let contents = {};
|
|
4178
|
-
contents = de_TestMigrationResponse(data.TestMigrationResult, context);
|
|
4179
|
-
const response = {
|
|
4180
|
-
$metadata: deserializeMetadata(output),
|
|
4181
|
-
...contents,
|
|
4182
|
-
};
|
|
4183
|
-
return response;
|
|
4184
|
-
};
|
|
4185
|
-
const de_TestMigrationCommandError = async (output, context) => {
|
|
4186
|
-
const parsedOutput = {
|
|
4187
|
-
...output,
|
|
4188
|
-
body: await parseErrorBody(output.body, context),
|
|
4189
|
-
};
|
|
4190
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
4191
|
-
switch (errorCode) {
|
|
4192
|
-
case "InvalidParameterValue":
|
|
4193
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
4194
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4195
|
-
case "InvalidReplicationGroupState":
|
|
4196
|
-
case "com.amazonaws.elasticache#InvalidReplicationGroupStateFault":
|
|
4197
|
-
throw await de_InvalidReplicationGroupStateFaultRes(parsedOutput, context);
|
|
4198
|
-
case "ReplicationGroupAlreadyUnderMigrationFault":
|
|
4199
|
-
case "com.amazonaws.elasticache#ReplicationGroupAlreadyUnderMigrationFault":
|
|
4200
|
-
throw await de_ReplicationGroupAlreadyUnderMigrationFaultRes(parsedOutput, context);
|
|
4201
|
-
case "ReplicationGroupNotFoundFault":
|
|
4202
|
-
case "com.amazonaws.elasticache#ReplicationGroupNotFoundFault":
|
|
4203
|
-
throw await de_ReplicationGroupNotFoundFaultRes(parsedOutput, context);
|
|
4204
|
-
default:
|
|
4205
|
-
const parsedBody = parsedOutput.body;
|
|
4206
|
-
return throwDefaultError({
|
|
4207
|
-
output,
|
|
4208
|
-
parsedBody: parsedBody.Error,
|
|
4209
|
-
errorCode,
|
|
4210
|
-
});
|
|
4211
|
-
}
|
|
4212
|
-
};
|
|
4213
1967
|
const de_APICallRateForCustomerExceededFaultRes = async (parsedOutput, context) => {
|
|
4214
1968
|
const body = parsedOutput.body;
|
|
4215
1969
|
const deserialized = de_APICallRateForCustomerExceededFault(body.Error, context);
|