@aws-sdk/client-dax 3.504.0 → 3.509.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 +107 -697
- package/dist-es/protocols/Aws_json1_1.js +102 -692
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -812,7 +812,7 @@ var se_UpdateSubnetGroupCommand = /* @__PURE__ */ __name(async (input, context)
|
|
|
812
812
|
}, "se_UpdateSubnetGroupCommand");
|
|
813
813
|
var de_CreateClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
814
814
|
if (output.statusCode >= 300) {
|
|
815
|
-
return
|
|
815
|
+
return de_CommandError(output, context);
|
|
816
816
|
}
|
|
817
817
|
const data = await parseBody(output.body, context);
|
|
818
818
|
let contents = {};
|
|
@@ -823,70 +823,9 @@ var de_CreateClusterCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
823
823
|
};
|
|
824
824
|
return response;
|
|
825
825
|
}, "de_CreateClusterCommand");
|
|
826
|
-
var de_CreateClusterCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
827
|
-
const parsedOutput = {
|
|
828
|
-
...output,
|
|
829
|
-
body: await parseErrorBody(output.body, context)
|
|
830
|
-
};
|
|
831
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
832
|
-
switch (errorCode) {
|
|
833
|
-
case "ClusterAlreadyExistsFault":
|
|
834
|
-
case "com.amazonaws.dax#ClusterAlreadyExistsFault":
|
|
835
|
-
throw await de_ClusterAlreadyExistsFaultRes(parsedOutput, context);
|
|
836
|
-
case "ClusterQuotaForCustomerExceededFault":
|
|
837
|
-
case "com.amazonaws.dax#ClusterQuotaForCustomerExceededFault":
|
|
838
|
-
throw await de_ClusterQuotaForCustomerExceededFaultRes(parsedOutput, context);
|
|
839
|
-
case "InsufficientClusterCapacityFault":
|
|
840
|
-
case "com.amazonaws.dax#InsufficientClusterCapacityFault":
|
|
841
|
-
throw await de_InsufficientClusterCapacityFaultRes(parsedOutput, context);
|
|
842
|
-
case "InvalidClusterStateFault":
|
|
843
|
-
case "com.amazonaws.dax#InvalidClusterStateFault":
|
|
844
|
-
throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
|
|
845
|
-
case "InvalidParameterCombinationException":
|
|
846
|
-
case "com.amazonaws.dax#InvalidParameterCombinationException":
|
|
847
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
848
|
-
case "InvalidParameterGroupStateFault":
|
|
849
|
-
case "com.amazonaws.dax#InvalidParameterGroupStateFault":
|
|
850
|
-
throw await de_InvalidParameterGroupStateFaultRes(parsedOutput, context);
|
|
851
|
-
case "InvalidParameterValueException":
|
|
852
|
-
case "com.amazonaws.dax#InvalidParameterValueException":
|
|
853
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
854
|
-
case "InvalidVPCNetworkStateFault":
|
|
855
|
-
case "com.amazonaws.dax#InvalidVPCNetworkStateFault":
|
|
856
|
-
throw await de_InvalidVPCNetworkStateFaultRes(parsedOutput, context);
|
|
857
|
-
case "NodeQuotaForClusterExceededFault":
|
|
858
|
-
case "com.amazonaws.dax#NodeQuotaForClusterExceededFault":
|
|
859
|
-
throw await de_NodeQuotaForClusterExceededFaultRes(parsedOutput, context);
|
|
860
|
-
case "NodeQuotaForCustomerExceededFault":
|
|
861
|
-
case "com.amazonaws.dax#NodeQuotaForCustomerExceededFault":
|
|
862
|
-
throw await de_NodeQuotaForCustomerExceededFaultRes(parsedOutput, context);
|
|
863
|
-
case "ParameterGroupNotFoundFault":
|
|
864
|
-
case "com.amazonaws.dax#ParameterGroupNotFoundFault":
|
|
865
|
-
throw await de_ParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
866
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
867
|
-
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
868
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
869
|
-
case "ServiceQuotaExceededException":
|
|
870
|
-
case "com.amazonaws.dax#ServiceQuotaExceededException":
|
|
871
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
872
|
-
case "SubnetGroupNotFoundFault":
|
|
873
|
-
case "com.amazonaws.dax#SubnetGroupNotFoundFault":
|
|
874
|
-
throw await de_SubnetGroupNotFoundFaultRes(parsedOutput, context);
|
|
875
|
-
case "TagQuotaPerResourceExceeded":
|
|
876
|
-
case "com.amazonaws.dax#TagQuotaPerResourceExceeded":
|
|
877
|
-
throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
|
|
878
|
-
default:
|
|
879
|
-
const parsedBody = parsedOutput.body;
|
|
880
|
-
return throwDefaultError({
|
|
881
|
-
output,
|
|
882
|
-
parsedBody,
|
|
883
|
-
errorCode
|
|
884
|
-
});
|
|
885
|
-
}
|
|
886
|
-
}, "de_CreateClusterCommandError");
|
|
887
826
|
var de_CreateParameterGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
888
827
|
if (output.statusCode >= 300) {
|
|
889
|
-
return
|
|
828
|
+
return de_CommandError(output, context);
|
|
890
829
|
}
|
|
891
830
|
const data = await parseBody(output.body, context);
|
|
892
831
|
let contents = {};
|
|
@@ -897,43 +836,9 @@ var de_CreateParameterGroupCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
897
836
|
};
|
|
898
837
|
return response;
|
|
899
838
|
}, "de_CreateParameterGroupCommand");
|
|
900
|
-
var de_CreateParameterGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
901
|
-
const parsedOutput = {
|
|
902
|
-
...output,
|
|
903
|
-
body: await parseErrorBody(output.body, context)
|
|
904
|
-
};
|
|
905
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
906
|
-
switch (errorCode) {
|
|
907
|
-
case "InvalidParameterCombinationException":
|
|
908
|
-
case "com.amazonaws.dax#InvalidParameterCombinationException":
|
|
909
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
910
|
-
case "InvalidParameterGroupStateFault":
|
|
911
|
-
case "com.amazonaws.dax#InvalidParameterGroupStateFault":
|
|
912
|
-
throw await de_InvalidParameterGroupStateFaultRes(parsedOutput, context);
|
|
913
|
-
case "InvalidParameterValueException":
|
|
914
|
-
case "com.amazonaws.dax#InvalidParameterValueException":
|
|
915
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
916
|
-
case "ParameterGroupAlreadyExistsFault":
|
|
917
|
-
case "com.amazonaws.dax#ParameterGroupAlreadyExistsFault":
|
|
918
|
-
throw await de_ParameterGroupAlreadyExistsFaultRes(parsedOutput, context);
|
|
919
|
-
case "ParameterGroupQuotaExceededFault":
|
|
920
|
-
case "com.amazonaws.dax#ParameterGroupQuotaExceededFault":
|
|
921
|
-
throw await de_ParameterGroupQuotaExceededFaultRes(parsedOutput, context);
|
|
922
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
923
|
-
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
924
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
925
|
-
default:
|
|
926
|
-
const parsedBody = parsedOutput.body;
|
|
927
|
-
return throwDefaultError({
|
|
928
|
-
output,
|
|
929
|
-
parsedBody,
|
|
930
|
-
errorCode
|
|
931
|
-
});
|
|
932
|
-
}
|
|
933
|
-
}, "de_CreateParameterGroupCommandError");
|
|
934
839
|
var de_CreateSubnetGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
935
840
|
if (output.statusCode >= 300) {
|
|
936
|
-
return
|
|
841
|
+
return de_CommandError(output, context);
|
|
937
842
|
}
|
|
938
843
|
const data = await parseBody(output.body, context);
|
|
939
844
|
let contents = {};
|
|
@@ -944,40 +849,9 @@ var de_CreateSubnetGroupCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
944
849
|
};
|
|
945
850
|
return response;
|
|
946
851
|
}, "de_CreateSubnetGroupCommand");
|
|
947
|
-
var de_CreateSubnetGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
948
|
-
const parsedOutput = {
|
|
949
|
-
...output,
|
|
950
|
-
body: await parseErrorBody(output.body, context)
|
|
951
|
-
};
|
|
952
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
953
|
-
switch (errorCode) {
|
|
954
|
-
case "InvalidSubnet":
|
|
955
|
-
case "com.amazonaws.dax#InvalidSubnet":
|
|
956
|
-
throw await de_InvalidSubnetRes(parsedOutput, context);
|
|
957
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
958
|
-
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
959
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
960
|
-
case "SubnetGroupAlreadyExistsFault":
|
|
961
|
-
case "com.amazonaws.dax#SubnetGroupAlreadyExistsFault":
|
|
962
|
-
throw await de_SubnetGroupAlreadyExistsFaultRes(parsedOutput, context);
|
|
963
|
-
case "SubnetGroupQuotaExceededFault":
|
|
964
|
-
case "com.amazonaws.dax#SubnetGroupQuotaExceededFault":
|
|
965
|
-
throw await de_SubnetGroupQuotaExceededFaultRes(parsedOutput, context);
|
|
966
|
-
case "SubnetQuotaExceededFault":
|
|
967
|
-
case "com.amazonaws.dax#SubnetQuotaExceededFault":
|
|
968
|
-
throw await de_SubnetQuotaExceededFaultRes(parsedOutput, context);
|
|
969
|
-
default:
|
|
970
|
-
const parsedBody = parsedOutput.body;
|
|
971
|
-
return throwDefaultError({
|
|
972
|
-
output,
|
|
973
|
-
parsedBody,
|
|
974
|
-
errorCode
|
|
975
|
-
});
|
|
976
|
-
}
|
|
977
|
-
}, "de_CreateSubnetGroupCommandError");
|
|
978
852
|
var de_DecreaseReplicationFactorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
979
853
|
if (output.statusCode >= 300) {
|
|
980
|
-
return
|
|
854
|
+
return de_CommandError(output, context);
|
|
981
855
|
}
|
|
982
856
|
const data = await parseBody(output.body, context);
|
|
983
857
|
let contents = {};
|
|
@@ -988,43 +862,9 @@ var de_DecreaseReplicationFactorCommand = /* @__PURE__ */ __name(async (output,
|
|
|
988
862
|
};
|
|
989
863
|
return response;
|
|
990
864
|
}, "de_DecreaseReplicationFactorCommand");
|
|
991
|
-
var de_DecreaseReplicationFactorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
992
|
-
const parsedOutput = {
|
|
993
|
-
...output,
|
|
994
|
-
body: await parseErrorBody(output.body, context)
|
|
995
|
-
};
|
|
996
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
997
|
-
switch (errorCode) {
|
|
998
|
-
case "ClusterNotFoundFault":
|
|
999
|
-
case "com.amazonaws.dax#ClusterNotFoundFault":
|
|
1000
|
-
throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
|
|
1001
|
-
case "InvalidClusterStateFault":
|
|
1002
|
-
case "com.amazonaws.dax#InvalidClusterStateFault":
|
|
1003
|
-
throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
|
|
1004
|
-
case "InvalidParameterCombinationException":
|
|
1005
|
-
case "com.amazonaws.dax#InvalidParameterCombinationException":
|
|
1006
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1007
|
-
case "InvalidParameterValueException":
|
|
1008
|
-
case "com.amazonaws.dax#InvalidParameterValueException":
|
|
1009
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1010
|
-
case "NodeNotFoundFault":
|
|
1011
|
-
case "com.amazonaws.dax#NodeNotFoundFault":
|
|
1012
|
-
throw await de_NodeNotFoundFaultRes(parsedOutput, context);
|
|
1013
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
1014
|
-
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
1015
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
1016
|
-
default:
|
|
1017
|
-
const parsedBody = parsedOutput.body;
|
|
1018
|
-
return throwDefaultError({
|
|
1019
|
-
output,
|
|
1020
|
-
parsedBody,
|
|
1021
|
-
errorCode
|
|
1022
|
-
});
|
|
1023
|
-
}
|
|
1024
|
-
}, "de_DecreaseReplicationFactorCommandError");
|
|
1025
865
|
var de_DeleteClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1026
866
|
if (output.statusCode >= 300) {
|
|
1027
|
-
return
|
|
867
|
+
return de_CommandError(output, context);
|
|
1028
868
|
}
|
|
1029
869
|
const data = await parseBody(output.body, context);
|
|
1030
870
|
let contents = {};
|
|
@@ -1035,40 +875,9 @@ var de_DeleteClusterCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1035
875
|
};
|
|
1036
876
|
return response;
|
|
1037
877
|
}, "de_DeleteClusterCommand");
|
|
1038
|
-
var de_DeleteClusterCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1039
|
-
const parsedOutput = {
|
|
1040
|
-
...output,
|
|
1041
|
-
body: await parseErrorBody(output.body, context)
|
|
1042
|
-
};
|
|
1043
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1044
|
-
switch (errorCode) {
|
|
1045
|
-
case "ClusterNotFoundFault":
|
|
1046
|
-
case "com.amazonaws.dax#ClusterNotFoundFault":
|
|
1047
|
-
throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
|
|
1048
|
-
case "InvalidClusterStateFault":
|
|
1049
|
-
case "com.amazonaws.dax#InvalidClusterStateFault":
|
|
1050
|
-
throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
|
|
1051
|
-
case "InvalidParameterCombinationException":
|
|
1052
|
-
case "com.amazonaws.dax#InvalidParameterCombinationException":
|
|
1053
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1054
|
-
case "InvalidParameterValueException":
|
|
1055
|
-
case "com.amazonaws.dax#InvalidParameterValueException":
|
|
1056
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1057
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
1058
|
-
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
1059
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
1060
|
-
default:
|
|
1061
|
-
const parsedBody = parsedOutput.body;
|
|
1062
|
-
return throwDefaultError({
|
|
1063
|
-
output,
|
|
1064
|
-
parsedBody,
|
|
1065
|
-
errorCode
|
|
1066
|
-
});
|
|
1067
|
-
}
|
|
1068
|
-
}, "de_DeleteClusterCommandError");
|
|
1069
878
|
var de_DeleteParameterGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1070
879
|
if (output.statusCode >= 300) {
|
|
1071
|
-
return
|
|
880
|
+
return de_CommandError(output, context);
|
|
1072
881
|
}
|
|
1073
882
|
const data = await parseBody(output.body, context);
|
|
1074
883
|
let contents = {};
|
|
@@ -1079,40 +888,9 @@ var de_DeleteParameterGroupCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1079
888
|
};
|
|
1080
889
|
return response;
|
|
1081
890
|
}, "de_DeleteParameterGroupCommand");
|
|
1082
|
-
var de_DeleteParameterGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1083
|
-
const parsedOutput = {
|
|
1084
|
-
...output,
|
|
1085
|
-
body: await parseErrorBody(output.body, context)
|
|
1086
|
-
};
|
|
1087
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1088
|
-
switch (errorCode) {
|
|
1089
|
-
case "InvalidParameterCombinationException":
|
|
1090
|
-
case "com.amazonaws.dax#InvalidParameterCombinationException":
|
|
1091
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1092
|
-
case "InvalidParameterGroupStateFault":
|
|
1093
|
-
case "com.amazonaws.dax#InvalidParameterGroupStateFault":
|
|
1094
|
-
throw await de_InvalidParameterGroupStateFaultRes(parsedOutput, context);
|
|
1095
|
-
case "InvalidParameterValueException":
|
|
1096
|
-
case "com.amazonaws.dax#InvalidParameterValueException":
|
|
1097
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1098
|
-
case "ParameterGroupNotFoundFault":
|
|
1099
|
-
case "com.amazonaws.dax#ParameterGroupNotFoundFault":
|
|
1100
|
-
throw await de_ParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
1101
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
1102
|
-
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
1103
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
1104
|
-
default:
|
|
1105
|
-
const parsedBody = parsedOutput.body;
|
|
1106
|
-
return throwDefaultError({
|
|
1107
|
-
output,
|
|
1108
|
-
parsedBody,
|
|
1109
|
-
errorCode
|
|
1110
|
-
});
|
|
1111
|
-
}
|
|
1112
|
-
}, "de_DeleteParameterGroupCommandError");
|
|
1113
891
|
var de_DeleteSubnetGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1114
892
|
if (output.statusCode >= 300) {
|
|
1115
|
-
return
|
|
893
|
+
return de_CommandError(output, context);
|
|
1116
894
|
}
|
|
1117
895
|
const data = await parseBody(output.body, context);
|
|
1118
896
|
let contents = {};
|
|
@@ -1123,34 +901,9 @@ var de_DeleteSubnetGroupCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1123
901
|
};
|
|
1124
902
|
return response;
|
|
1125
903
|
}, "de_DeleteSubnetGroupCommand");
|
|
1126
|
-
var de_DeleteSubnetGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1127
|
-
const parsedOutput = {
|
|
1128
|
-
...output,
|
|
1129
|
-
body: await parseErrorBody(output.body, context)
|
|
1130
|
-
};
|
|
1131
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1132
|
-
switch (errorCode) {
|
|
1133
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
1134
|
-
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
1135
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
1136
|
-
case "SubnetGroupInUseFault":
|
|
1137
|
-
case "com.amazonaws.dax#SubnetGroupInUseFault":
|
|
1138
|
-
throw await de_SubnetGroupInUseFaultRes(parsedOutput, context);
|
|
1139
|
-
case "SubnetGroupNotFoundFault":
|
|
1140
|
-
case "com.amazonaws.dax#SubnetGroupNotFoundFault":
|
|
1141
|
-
throw await de_SubnetGroupNotFoundFaultRes(parsedOutput, context);
|
|
1142
|
-
default:
|
|
1143
|
-
const parsedBody = parsedOutput.body;
|
|
1144
|
-
return throwDefaultError({
|
|
1145
|
-
output,
|
|
1146
|
-
parsedBody,
|
|
1147
|
-
errorCode
|
|
1148
|
-
});
|
|
1149
|
-
}
|
|
1150
|
-
}, "de_DeleteSubnetGroupCommandError");
|
|
1151
904
|
var de_DescribeClustersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1152
905
|
if (output.statusCode >= 300) {
|
|
1153
|
-
return
|
|
906
|
+
return de_CommandError(output, context);
|
|
1154
907
|
}
|
|
1155
908
|
const data = await parseBody(output.body, context);
|
|
1156
909
|
let contents = {};
|
|
@@ -1161,37 +914,9 @@ var de_DescribeClustersCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1161
914
|
};
|
|
1162
915
|
return response;
|
|
1163
916
|
}, "de_DescribeClustersCommand");
|
|
1164
|
-
var de_DescribeClustersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1165
|
-
const parsedOutput = {
|
|
1166
|
-
...output,
|
|
1167
|
-
body: await parseErrorBody(output.body, context)
|
|
1168
|
-
};
|
|
1169
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1170
|
-
switch (errorCode) {
|
|
1171
|
-
case "ClusterNotFoundFault":
|
|
1172
|
-
case "com.amazonaws.dax#ClusterNotFoundFault":
|
|
1173
|
-
throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
|
|
1174
|
-
case "InvalidParameterCombinationException":
|
|
1175
|
-
case "com.amazonaws.dax#InvalidParameterCombinationException":
|
|
1176
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1177
|
-
case "InvalidParameterValueException":
|
|
1178
|
-
case "com.amazonaws.dax#InvalidParameterValueException":
|
|
1179
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1180
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
1181
|
-
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
1182
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
1183
|
-
default:
|
|
1184
|
-
const parsedBody = parsedOutput.body;
|
|
1185
|
-
return throwDefaultError({
|
|
1186
|
-
output,
|
|
1187
|
-
parsedBody,
|
|
1188
|
-
errorCode
|
|
1189
|
-
});
|
|
1190
|
-
}
|
|
1191
|
-
}, "de_DescribeClustersCommandError");
|
|
1192
917
|
var de_DescribeDefaultParametersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1193
918
|
if (output.statusCode >= 300) {
|
|
1194
|
-
return
|
|
919
|
+
return de_CommandError(output, context);
|
|
1195
920
|
}
|
|
1196
921
|
const data = await parseBody(output.body, context);
|
|
1197
922
|
let contents = {};
|
|
@@ -1202,34 +927,9 @@ var de_DescribeDefaultParametersCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1202
927
|
};
|
|
1203
928
|
return response;
|
|
1204
929
|
}, "de_DescribeDefaultParametersCommand");
|
|
1205
|
-
var de_DescribeDefaultParametersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1206
|
-
const parsedOutput = {
|
|
1207
|
-
...output,
|
|
1208
|
-
body: await parseErrorBody(output.body, context)
|
|
1209
|
-
};
|
|
1210
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1211
|
-
switch (errorCode) {
|
|
1212
|
-
case "InvalidParameterCombinationException":
|
|
1213
|
-
case "com.amazonaws.dax#InvalidParameterCombinationException":
|
|
1214
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1215
|
-
case "InvalidParameterValueException":
|
|
1216
|
-
case "com.amazonaws.dax#InvalidParameterValueException":
|
|
1217
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1218
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
1219
|
-
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
1220
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
1221
|
-
default:
|
|
1222
|
-
const parsedBody = parsedOutput.body;
|
|
1223
|
-
return throwDefaultError({
|
|
1224
|
-
output,
|
|
1225
|
-
parsedBody,
|
|
1226
|
-
errorCode
|
|
1227
|
-
});
|
|
1228
|
-
}
|
|
1229
|
-
}, "de_DescribeDefaultParametersCommandError");
|
|
1230
930
|
var de_DescribeEventsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1231
931
|
if (output.statusCode >= 300) {
|
|
1232
|
-
return
|
|
932
|
+
return de_CommandError(output, context);
|
|
1233
933
|
}
|
|
1234
934
|
const data = await parseBody(output.body, context);
|
|
1235
935
|
let contents = {};
|
|
@@ -1240,34 +940,9 @@ var de_DescribeEventsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1240
940
|
};
|
|
1241
941
|
return response;
|
|
1242
942
|
}, "de_DescribeEventsCommand");
|
|
1243
|
-
var de_DescribeEventsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1244
|
-
const parsedOutput = {
|
|
1245
|
-
...output,
|
|
1246
|
-
body: await parseErrorBody(output.body, context)
|
|
1247
|
-
};
|
|
1248
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1249
|
-
switch (errorCode) {
|
|
1250
|
-
case "InvalidParameterCombinationException":
|
|
1251
|
-
case "com.amazonaws.dax#InvalidParameterCombinationException":
|
|
1252
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1253
|
-
case "InvalidParameterValueException":
|
|
1254
|
-
case "com.amazonaws.dax#InvalidParameterValueException":
|
|
1255
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1256
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
1257
|
-
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
1258
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
1259
|
-
default:
|
|
1260
|
-
const parsedBody = parsedOutput.body;
|
|
1261
|
-
return throwDefaultError({
|
|
1262
|
-
output,
|
|
1263
|
-
parsedBody,
|
|
1264
|
-
errorCode
|
|
1265
|
-
});
|
|
1266
|
-
}
|
|
1267
|
-
}, "de_DescribeEventsCommandError");
|
|
1268
943
|
var de_DescribeParameterGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1269
944
|
if (output.statusCode >= 300) {
|
|
1270
|
-
return
|
|
945
|
+
return de_CommandError(output, context);
|
|
1271
946
|
}
|
|
1272
947
|
const data = await parseBody(output.body, context);
|
|
1273
948
|
let contents = {};
|
|
@@ -1278,37 +953,9 @@ var de_DescribeParameterGroupsCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1278
953
|
};
|
|
1279
954
|
return response;
|
|
1280
955
|
}, "de_DescribeParameterGroupsCommand");
|
|
1281
|
-
var de_DescribeParameterGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1282
|
-
const parsedOutput = {
|
|
1283
|
-
...output,
|
|
1284
|
-
body: await parseErrorBody(output.body, context)
|
|
1285
|
-
};
|
|
1286
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1287
|
-
switch (errorCode) {
|
|
1288
|
-
case "InvalidParameterCombinationException":
|
|
1289
|
-
case "com.amazonaws.dax#InvalidParameterCombinationException":
|
|
1290
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1291
|
-
case "InvalidParameterValueException":
|
|
1292
|
-
case "com.amazonaws.dax#InvalidParameterValueException":
|
|
1293
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1294
|
-
case "ParameterGroupNotFoundFault":
|
|
1295
|
-
case "com.amazonaws.dax#ParameterGroupNotFoundFault":
|
|
1296
|
-
throw await de_ParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
1297
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
1298
|
-
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
1299
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
1300
|
-
default:
|
|
1301
|
-
const parsedBody = parsedOutput.body;
|
|
1302
|
-
return throwDefaultError({
|
|
1303
|
-
output,
|
|
1304
|
-
parsedBody,
|
|
1305
|
-
errorCode
|
|
1306
|
-
});
|
|
1307
|
-
}
|
|
1308
|
-
}, "de_DescribeParameterGroupsCommandError");
|
|
1309
956
|
var de_DescribeParametersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1310
957
|
if (output.statusCode >= 300) {
|
|
1311
|
-
return
|
|
958
|
+
return de_CommandError(output, context);
|
|
1312
959
|
}
|
|
1313
960
|
const data = await parseBody(output.body, context);
|
|
1314
961
|
let contents = {};
|
|
@@ -1319,37 +966,9 @@ var de_DescribeParametersCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1319
966
|
};
|
|
1320
967
|
return response;
|
|
1321
968
|
}, "de_DescribeParametersCommand");
|
|
1322
|
-
var de_DescribeParametersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1323
|
-
const parsedOutput = {
|
|
1324
|
-
...output,
|
|
1325
|
-
body: await parseErrorBody(output.body, context)
|
|
1326
|
-
};
|
|
1327
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1328
|
-
switch (errorCode) {
|
|
1329
|
-
case "InvalidParameterCombinationException":
|
|
1330
|
-
case "com.amazonaws.dax#InvalidParameterCombinationException":
|
|
1331
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1332
|
-
case "InvalidParameterValueException":
|
|
1333
|
-
case "com.amazonaws.dax#InvalidParameterValueException":
|
|
1334
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1335
|
-
case "ParameterGroupNotFoundFault":
|
|
1336
|
-
case "com.amazonaws.dax#ParameterGroupNotFoundFault":
|
|
1337
|
-
throw await de_ParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
1338
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
1339
|
-
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
1340
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
1341
|
-
default:
|
|
1342
|
-
const parsedBody = parsedOutput.body;
|
|
1343
|
-
return throwDefaultError({
|
|
1344
|
-
output,
|
|
1345
|
-
parsedBody,
|
|
1346
|
-
errorCode
|
|
1347
|
-
});
|
|
1348
|
-
}
|
|
1349
|
-
}, "de_DescribeParametersCommandError");
|
|
1350
969
|
var de_DescribeSubnetGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1351
970
|
if (output.statusCode >= 300) {
|
|
1352
|
-
return
|
|
971
|
+
return de_CommandError(output, context);
|
|
1353
972
|
}
|
|
1354
973
|
const data = await parseBody(output.body, context);
|
|
1355
974
|
let contents = {};
|
|
@@ -1360,31 +979,9 @@ var de_DescribeSubnetGroupsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1360
979
|
};
|
|
1361
980
|
return response;
|
|
1362
981
|
}, "de_DescribeSubnetGroupsCommand");
|
|
1363
|
-
var de_DescribeSubnetGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1364
|
-
const parsedOutput = {
|
|
1365
|
-
...output,
|
|
1366
|
-
body: await parseErrorBody(output.body, context)
|
|
1367
|
-
};
|
|
1368
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1369
|
-
switch (errorCode) {
|
|
1370
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
1371
|
-
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
1372
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
1373
|
-
case "SubnetGroupNotFoundFault":
|
|
1374
|
-
case "com.amazonaws.dax#SubnetGroupNotFoundFault":
|
|
1375
|
-
throw await de_SubnetGroupNotFoundFaultRes(parsedOutput, context);
|
|
1376
|
-
default:
|
|
1377
|
-
const parsedBody = parsedOutput.body;
|
|
1378
|
-
return throwDefaultError({
|
|
1379
|
-
output,
|
|
1380
|
-
parsedBody,
|
|
1381
|
-
errorCode
|
|
1382
|
-
});
|
|
1383
|
-
}
|
|
1384
|
-
}, "de_DescribeSubnetGroupsCommandError");
|
|
1385
982
|
var de_IncreaseReplicationFactorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1386
983
|
if (output.statusCode >= 300) {
|
|
1387
|
-
return
|
|
984
|
+
return de_CommandError(output, context);
|
|
1388
985
|
}
|
|
1389
986
|
const data = await parseBody(output.body, context);
|
|
1390
987
|
let contents = {};
|
|
@@ -1394,100 +991,23 @@ var de_IncreaseReplicationFactorCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1394
991
|
...contents
|
|
1395
992
|
};
|
|
1396
993
|
return response;
|
|
1397
|
-
}, "de_IncreaseReplicationFactorCommand");
|
|
1398
|
-
var
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
body: await parseErrorBody(output.body, context)
|
|
1402
|
-
};
|
|
1403
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1404
|
-
switch (errorCode) {
|
|
1405
|
-
case "ClusterNotFoundFault":
|
|
1406
|
-
case "com.amazonaws.dax#ClusterNotFoundFault":
|
|
1407
|
-
throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
|
|
1408
|
-
case "InsufficientClusterCapacityFault":
|
|
1409
|
-
case "com.amazonaws.dax#InsufficientClusterCapacityFault":
|
|
1410
|
-
throw await de_InsufficientClusterCapacityFaultRes(parsedOutput, context);
|
|
1411
|
-
case "InvalidClusterStateFault":
|
|
1412
|
-
case "com.amazonaws.dax#InvalidClusterStateFault":
|
|
1413
|
-
throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
|
|
1414
|
-
case "InvalidParameterCombinationException":
|
|
1415
|
-
case "com.amazonaws.dax#InvalidParameterCombinationException":
|
|
1416
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1417
|
-
case "InvalidParameterValueException":
|
|
1418
|
-
case "com.amazonaws.dax#InvalidParameterValueException":
|
|
1419
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1420
|
-
case "InvalidVPCNetworkStateFault":
|
|
1421
|
-
case "com.amazonaws.dax#InvalidVPCNetworkStateFault":
|
|
1422
|
-
throw await de_InvalidVPCNetworkStateFaultRes(parsedOutput, context);
|
|
1423
|
-
case "NodeQuotaForClusterExceededFault":
|
|
1424
|
-
case "com.amazonaws.dax#NodeQuotaForClusterExceededFault":
|
|
1425
|
-
throw await de_NodeQuotaForClusterExceededFaultRes(parsedOutput, context);
|
|
1426
|
-
case "NodeQuotaForCustomerExceededFault":
|
|
1427
|
-
case "com.amazonaws.dax#NodeQuotaForCustomerExceededFault":
|
|
1428
|
-
throw await de_NodeQuotaForCustomerExceededFaultRes(parsedOutput, context);
|
|
1429
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
1430
|
-
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
1431
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
1432
|
-
default:
|
|
1433
|
-
const parsedBody = parsedOutput.body;
|
|
1434
|
-
return throwDefaultError({
|
|
1435
|
-
output,
|
|
1436
|
-
parsedBody,
|
|
1437
|
-
errorCode
|
|
1438
|
-
});
|
|
1439
|
-
}
|
|
1440
|
-
}, "de_IncreaseReplicationFactorCommandError");
|
|
1441
|
-
var de_ListTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1442
|
-
if (output.statusCode >= 300) {
|
|
1443
|
-
return de_ListTagsCommandError(output, context);
|
|
1444
|
-
}
|
|
1445
|
-
const data = await parseBody(output.body, context);
|
|
1446
|
-
let contents = {};
|
|
1447
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1448
|
-
const response = {
|
|
1449
|
-
$metadata: deserializeMetadata(output),
|
|
1450
|
-
...contents
|
|
1451
|
-
};
|
|
1452
|
-
return response;
|
|
1453
|
-
}, "de_ListTagsCommand");
|
|
1454
|
-
var de_ListTagsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1455
|
-
const parsedOutput = {
|
|
1456
|
-
...output,
|
|
1457
|
-
body: await parseErrorBody(output.body, context)
|
|
1458
|
-
};
|
|
1459
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1460
|
-
switch (errorCode) {
|
|
1461
|
-
case "ClusterNotFoundFault":
|
|
1462
|
-
case "com.amazonaws.dax#ClusterNotFoundFault":
|
|
1463
|
-
throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
|
|
1464
|
-
case "InvalidARNFault":
|
|
1465
|
-
case "com.amazonaws.dax#InvalidARNFault":
|
|
1466
|
-
throw await de_InvalidARNFaultRes(parsedOutput, context);
|
|
1467
|
-
case "InvalidClusterStateFault":
|
|
1468
|
-
case "com.amazonaws.dax#InvalidClusterStateFault":
|
|
1469
|
-
throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
|
|
1470
|
-
case "InvalidParameterCombinationException":
|
|
1471
|
-
case "com.amazonaws.dax#InvalidParameterCombinationException":
|
|
1472
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1473
|
-
case "InvalidParameterValueException":
|
|
1474
|
-
case "com.amazonaws.dax#InvalidParameterValueException":
|
|
1475
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1476
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
1477
|
-
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
1478
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
1479
|
-
default:
|
|
1480
|
-
const parsedBody = parsedOutput.body;
|
|
1481
|
-
return throwDefaultError({
|
|
1482
|
-
output,
|
|
1483
|
-
parsedBody,
|
|
1484
|
-
errorCode
|
|
1485
|
-
});
|
|
994
|
+
}, "de_IncreaseReplicationFactorCommand");
|
|
995
|
+
var de_ListTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
996
|
+
if (output.statusCode >= 300) {
|
|
997
|
+
return de_CommandError(output, context);
|
|
1486
998
|
}
|
|
1487
|
-
|
|
999
|
+
const data = await parseBody(output.body, context);
|
|
1000
|
+
let contents = {};
|
|
1001
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1002
|
+
const response = {
|
|
1003
|
+
$metadata: deserializeMetadata(output),
|
|
1004
|
+
...contents
|
|
1005
|
+
};
|
|
1006
|
+
return response;
|
|
1007
|
+
}, "de_ListTagsCommand");
|
|
1488
1008
|
var de_RebootNodeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1489
1009
|
if (output.statusCode >= 300) {
|
|
1490
|
-
return
|
|
1010
|
+
return de_CommandError(output, context);
|
|
1491
1011
|
}
|
|
1492
1012
|
const data = await parseBody(output.body, context);
|
|
1493
1013
|
let contents = {};
|
|
@@ -1498,43 +1018,9 @@ var de_RebootNodeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1498
1018
|
};
|
|
1499
1019
|
return response;
|
|
1500
1020
|
}, "de_RebootNodeCommand");
|
|
1501
|
-
var de_RebootNodeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1502
|
-
const parsedOutput = {
|
|
1503
|
-
...output,
|
|
1504
|
-
body: await parseErrorBody(output.body, context)
|
|
1505
|
-
};
|
|
1506
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1507
|
-
switch (errorCode) {
|
|
1508
|
-
case "ClusterNotFoundFault":
|
|
1509
|
-
case "com.amazonaws.dax#ClusterNotFoundFault":
|
|
1510
|
-
throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
|
|
1511
|
-
case "InvalidClusterStateFault":
|
|
1512
|
-
case "com.amazonaws.dax#InvalidClusterStateFault":
|
|
1513
|
-
throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
|
|
1514
|
-
case "InvalidParameterCombinationException":
|
|
1515
|
-
case "com.amazonaws.dax#InvalidParameterCombinationException":
|
|
1516
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1517
|
-
case "InvalidParameterValueException":
|
|
1518
|
-
case "com.amazonaws.dax#InvalidParameterValueException":
|
|
1519
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1520
|
-
case "NodeNotFoundFault":
|
|
1521
|
-
case "com.amazonaws.dax#NodeNotFoundFault":
|
|
1522
|
-
throw await de_NodeNotFoundFaultRes(parsedOutput, context);
|
|
1523
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
1524
|
-
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
1525
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
1526
|
-
default:
|
|
1527
|
-
const parsedBody = parsedOutput.body;
|
|
1528
|
-
return throwDefaultError({
|
|
1529
|
-
output,
|
|
1530
|
-
parsedBody,
|
|
1531
|
-
errorCode
|
|
1532
|
-
});
|
|
1533
|
-
}
|
|
1534
|
-
}, "de_RebootNodeCommandError");
|
|
1535
1021
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1536
1022
|
if (output.statusCode >= 300) {
|
|
1537
|
-
return
|
|
1023
|
+
return de_CommandError(output, context);
|
|
1538
1024
|
}
|
|
1539
1025
|
const data = await parseBody(output.body, context);
|
|
1540
1026
|
let contents = {};
|
|
@@ -1545,46 +1031,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1545
1031
|
};
|
|
1546
1032
|
return response;
|
|
1547
1033
|
}, "de_TagResourceCommand");
|
|
1548
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1549
|
-
const parsedOutput = {
|
|
1550
|
-
...output,
|
|
1551
|
-
body: await parseErrorBody(output.body, context)
|
|
1552
|
-
};
|
|
1553
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1554
|
-
switch (errorCode) {
|
|
1555
|
-
case "ClusterNotFoundFault":
|
|
1556
|
-
case "com.amazonaws.dax#ClusterNotFoundFault":
|
|
1557
|
-
throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
|
|
1558
|
-
case "InvalidARNFault":
|
|
1559
|
-
case "com.amazonaws.dax#InvalidARNFault":
|
|
1560
|
-
throw await de_InvalidARNFaultRes(parsedOutput, context);
|
|
1561
|
-
case "InvalidClusterStateFault":
|
|
1562
|
-
case "com.amazonaws.dax#InvalidClusterStateFault":
|
|
1563
|
-
throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
|
|
1564
|
-
case "InvalidParameterCombinationException":
|
|
1565
|
-
case "com.amazonaws.dax#InvalidParameterCombinationException":
|
|
1566
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1567
|
-
case "InvalidParameterValueException":
|
|
1568
|
-
case "com.amazonaws.dax#InvalidParameterValueException":
|
|
1569
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1570
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
1571
|
-
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
1572
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
1573
|
-
case "TagQuotaPerResourceExceeded":
|
|
1574
|
-
case "com.amazonaws.dax#TagQuotaPerResourceExceeded":
|
|
1575
|
-
throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
|
|
1576
|
-
default:
|
|
1577
|
-
const parsedBody = parsedOutput.body;
|
|
1578
|
-
return throwDefaultError({
|
|
1579
|
-
output,
|
|
1580
|
-
parsedBody,
|
|
1581
|
-
errorCode
|
|
1582
|
-
});
|
|
1583
|
-
}
|
|
1584
|
-
}, "de_TagResourceCommandError");
|
|
1585
1034
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1586
1035
|
if (output.statusCode >= 300) {
|
|
1587
|
-
return
|
|
1036
|
+
return de_CommandError(output, context);
|
|
1588
1037
|
}
|
|
1589
1038
|
const data = await parseBody(output.body, context);
|
|
1590
1039
|
let contents = {};
|
|
@@ -1595,46 +1044,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1595
1044
|
};
|
|
1596
1045
|
return response;
|
|
1597
1046
|
}, "de_UntagResourceCommand");
|
|
1598
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1599
|
-
const parsedOutput = {
|
|
1600
|
-
...output,
|
|
1601
|
-
body: await parseErrorBody(output.body, context)
|
|
1602
|
-
};
|
|
1603
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1604
|
-
switch (errorCode) {
|
|
1605
|
-
case "ClusterNotFoundFault":
|
|
1606
|
-
case "com.amazonaws.dax#ClusterNotFoundFault":
|
|
1607
|
-
throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
|
|
1608
|
-
case "InvalidARNFault":
|
|
1609
|
-
case "com.amazonaws.dax#InvalidARNFault":
|
|
1610
|
-
throw await de_InvalidARNFaultRes(parsedOutput, context);
|
|
1611
|
-
case "InvalidClusterStateFault":
|
|
1612
|
-
case "com.amazonaws.dax#InvalidClusterStateFault":
|
|
1613
|
-
throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
|
|
1614
|
-
case "InvalidParameterCombinationException":
|
|
1615
|
-
case "com.amazonaws.dax#InvalidParameterCombinationException":
|
|
1616
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1617
|
-
case "InvalidParameterValueException":
|
|
1618
|
-
case "com.amazonaws.dax#InvalidParameterValueException":
|
|
1619
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1620
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
1621
|
-
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
1622
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
1623
|
-
case "TagNotFoundFault":
|
|
1624
|
-
case "com.amazonaws.dax#TagNotFoundFault":
|
|
1625
|
-
throw await de_TagNotFoundFaultRes(parsedOutput, context);
|
|
1626
|
-
default:
|
|
1627
|
-
const parsedBody = parsedOutput.body;
|
|
1628
|
-
return throwDefaultError({
|
|
1629
|
-
output,
|
|
1630
|
-
parsedBody,
|
|
1631
|
-
errorCode
|
|
1632
|
-
});
|
|
1633
|
-
}
|
|
1634
|
-
}, "de_UntagResourceCommandError");
|
|
1635
1047
|
var de_UpdateClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1636
1048
|
if (output.statusCode >= 300) {
|
|
1637
|
-
return
|
|
1049
|
+
return de_CommandError(output, context);
|
|
1638
1050
|
}
|
|
1639
1051
|
const data = await parseBody(output.body, context);
|
|
1640
1052
|
let contents = {};
|
|
@@ -1645,46 +1057,9 @@ var de_UpdateClusterCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1645
1057
|
};
|
|
1646
1058
|
return response;
|
|
1647
1059
|
}, "de_UpdateClusterCommand");
|
|
1648
|
-
var de_UpdateClusterCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1649
|
-
const parsedOutput = {
|
|
1650
|
-
...output,
|
|
1651
|
-
body: await parseErrorBody(output.body, context)
|
|
1652
|
-
};
|
|
1653
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1654
|
-
switch (errorCode) {
|
|
1655
|
-
case "ClusterNotFoundFault":
|
|
1656
|
-
case "com.amazonaws.dax#ClusterNotFoundFault":
|
|
1657
|
-
throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
|
|
1658
|
-
case "InvalidClusterStateFault":
|
|
1659
|
-
case "com.amazonaws.dax#InvalidClusterStateFault":
|
|
1660
|
-
throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
|
|
1661
|
-
case "InvalidParameterCombinationException":
|
|
1662
|
-
case "com.amazonaws.dax#InvalidParameterCombinationException":
|
|
1663
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1664
|
-
case "InvalidParameterGroupStateFault":
|
|
1665
|
-
case "com.amazonaws.dax#InvalidParameterGroupStateFault":
|
|
1666
|
-
throw await de_InvalidParameterGroupStateFaultRes(parsedOutput, context);
|
|
1667
|
-
case "InvalidParameterValueException":
|
|
1668
|
-
case "com.amazonaws.dax#InvalidParameterValueException":
|
|
1669
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1670
|
-
case "ParameterGroupNotFoundFault":
|
|
1671
|
-
case "com.amazonaws.dax#ParameterGroupNotFoundFault":
|
|
1672
|
-
throw await de_ParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
1673
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
1674
|
-
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
1675
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
1676
|
-
default:
|
|
1677
|
-
const parsedBody = parsedOutput.body;
|
|
1678
|
-
return throwDefaultError({
|
|
1679
|
-
output,
|
|
1680
|
-
parsedBody,
|
|
1681
|
-
errorCode
|
|
1682
|
-
});
|
|
1683
|
-
}
|
|
1684
|
-
}, "de_UpdateClusterCommandError");
|
|
1685
1060
|
var de_UpdateParameterGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1686
1061
|
if (output.statusCode >= 300) {
|
|
1687
|
-
return
|
|
1062
|
+
return de_CommandError(output, context);
|
|
1688
1063
|
}
|
|
1689
1064
|
const data = await parseBody(output.body, context);
|
|
1690
1065
|
let contents = {};
|
|
@@ -1695,40 +1070,9 @@ var de_UpdateParameterGroupCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1695
1070
|
};
|
|
1696
1071
|
return response;
|
|
1697
1072
|
}, "de_UpdateParameterGroupCommand");
|
|
1698
|
-
var de_UpdateParameterGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1699
|
-
const parsedOutput = {
|
|
1700
|
-
...output,
|
|
1701
|
-
body: await parseErrorBody(output.body, context)
|
|
1702
|
-
};
|
|
1703
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1704
|
-
switch (errorCode) {
|
|
1705
|
-
case "InvalidParameterCombinationException":
|
|
1706
|
-
case "com.amazonaws.dax#InvalidParameterCombinationException":
|
|
1707
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1708
|
-
case "InvalidParameterGroupStateFault":
|
|
1709
|
-
case "com.amazonaws.dax#InvalidParameterGroupStateFault":
|
|
1710
|
-
throw await de_InvalidParameterGroupStateFaultRes(parsedOutput, context);
|
|
1711
|
-
case "InvalidParameterValueException":
|
|
1712
|
-
case "com.amazonaws.dax#InvalidParameterValueException":
|
|
1713
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1714
|
-
case "ParameterGroupNotFoundFault":
|
|
1715
|
-
case "com.amazonaws.dax#ParameterGroupNotFoundFault":
|
|
1716
|
-
throw await de_ParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
1717
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
1718
|
-
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
1719
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
1720
|
-
default:
|
|
1721
|
-
const parsedBody = parsedOutput.body;
|
|
1722
|
-
return throwDefaultError({
|
|
1723
|
-
output,
|
|
1724
|
-
parsedBody,
|
|
1725
|
-
errorCode
|
|
1726
|
-
});
|
|
1727
|
-
}
|
|
1728
|
-
}, "de_UpdateParameterGroupCommandError");
|
|
1729
1073
|
var de_UpdateSubnetGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1730
1074
|
if (output.statusCode >= 300) {
|
|
1731
|
-
return
|
|
1075
|
+
return de_CommandError(output, context);
|
|
1732
1076
|
}
|
|
1733
1077
|
const data = await parseBody(output.body, context);
|
|
1734
1078
|
let contents = {};
|
|
@@ -1739,28 +1083,94 @@ var de_UpdateSubnetGroupCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1739
1083
|
};
|
|
1740
1084
|
return response;
|
|
1741
1085
|
}, "de_UpdateSubnetGroupCommand");
|
|
1742
|
-
var
|
|
1086
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1743
1087
|
const parsedOutput = {
|
|
1744
1088
|
...output,
|
|
1745
1089
|
body: await parseErrorBody(output.body, context)
|
|
1746
1090
|
};
|
|
1747
1091
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1748
1092
|
switch (errorCode) {
|
|
1749
|
-
case "
|
|
1750
|
-
case "com.amazonaws.dax#
|
|
1751
|
-
throw await
|
|
1093
|
+
case "ClusterAlreadyExistsFault":
|
|
1094
|
+
case "com.amazonaws.dax#ClusterAlreadyExistsFault":
|
|
1095
|
+
throw await de_ClusterAlreadyExistsFaultRes(parsedOutput, context);
|
|
1096
|
+
case "ClusterQuotaForCustomerExceededFault":
|
|
1097
|
+
case "com.amazonaws.dax#ClusterQuotaForCustomerExceededFault":
|
|
1098
|
+
throw await de_ClusterQuotaForCustomerExceededFaultRes(parsedOutput, context);
|
|
1099
|
+
case "InsufficientClusterCapacityFault":
|
|
1100
|
+
case "com.amazonaws.dax#InsufficientClusterCapacityFault":
|
|
1101
|
+
throw await de_InsufficientClusterCapacityFaultRes(parsedOutput, context);
|
|
1102
|
+
case "InvalidClusterStateFault":
|
|
1103
|
+
case "com.amazonaws.dax#InvalidClusterStateFault":
|
|
1104
|
+
throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
|
|
1105
|
+
case "InvalidParameterCombinationException":
|
|
1106
|
+
case "com.amazonaws.dax#InvalidParameterCombinationException":
|
|
1107
|
+
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1108
|
+
case "InvalidParameterGroupStateFault":
|
|
1109
|
+
case "com.amazonaws.dax#InvalidParameterGroupStateFault":
|
|
1110
|
+
throw await de_InvalidParameterGroupStateFaultRes(parsedOutput, context);
|
|
1111
|
+
case "InvalidParameterValueException":
|
|
1112
|
+
case "com.amazonaws.dax#InvalidParameterValueException":
|
|
1113
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1114
|
+
case "InvalidVPCNetworkStateFault":
|
|
1115
|
+
case "com.amazonaws.dax#InvalidVPCNetworkStateFault":
|
|
1116
|
+
throw await de_InvalidVPCNetworkStateFaultRes(parsedOutput, context);
|
|
1117
|
+
case "NodeQuotaForClusterExceededFault":
|
|
1118
|
+
case "com.amazonaws.dax#NodeQuotaForClusterExceededFault":
|
|
1119
|
+
throw await de_NodeQuotaForClusterExceededFaultRes(parsedOutput, context);
|
|
1120
|
+
case "NodeQuotaForCustomerExceededFault":
|
|
1121
|
+
case "com.amazonaws.dax#NodeQuotaForCustomerExceededFault":
|
|
1122
|
+
throw await de_NodeQuotaForCustomerExceededFaultRes(parsedOutput, context);
|
|
1123
|
+
case "ParameterGroupNotFoundFault":
|
|
1124
|
+
case "com.amazonaws.dax#ParameterGroupNotFoundFault":
|
|
1125
|
+
throw await de_ParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
1752
1126
|
case "ServiceLinkedRoleNotFoundFault":
|
|
1753
1127
|
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
1754
1128
|
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
1129
|
+
case "ServiceQuotaExceededException":
|
|
1130
|
+
case "com.amazonaws.dax#ServiceQuotaExceededException":
|
|
1131
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1755
1132
|
case "SubnetGroupNotFoundFault":
|
|
1756
1133
|
case "com.amazonaws.dax#SubnetGroupNotFoundFault":
|
|
1757
1134
|
throw await de_SubnetGroupNotFoundFaultRes(parsedOutput, context);
|
|
1758
|
-
case "
|
|
1759
|
-
case "com.amazonaws.dax#
|
|
1760
|
-
throw await
|
|
1135
|
+
case "TagQuotaPerResourceExceeded":
|
|
1136
|
+
case "com.amazonaws.dax#TagQuotaPerResourceExceeded":
|
|
1137
|
+
throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
|
|
1138
|
+
case "ParameterGroupAlreadyExistsFault":
|
|
1139
|
+
case "com.amazonaws.dax#ParameterGroupAlreadyExistsFault":
|
|
1140
|
+
throw await de_ParameterGroupAlreadyExistsFaultRes(parsedOutput, context);
|
|
1141
|
+
case "ParameterGroupQuotaExceededFault":
|
|
1142
|
+
case "com.amazonaws.dax#ParameterGroupQuotaExceededFault":
|
|
1143
|
+
throw await de_ParameterGroupQuotaExceededFaultRes(parsedOutput, context);
|
|
1144
|
+
case "InvalidSubnet":
|
|
1145
|
+
case "com.amazonaws.dax#InvalidSubnet":
|
|
1146
|
+
throw await de_InvalidSubnetRes(parsedOutput, context);
|
|
1147
|
+
case "SubnetGroupAlreadyExistsFault":
|
|
1148
|
+
case "com.amazonaws.dax#SubnetGroupAlreadyExistsFault":
|
|
1149
|
+
throw await de_SubnetGroupAlreadyExistsFaultRes(parsedOutput, context);
|
|
1150
|
+
case "SubnetGroupQuotaExceededFault":
|
|
1151
|
+
case "com.amazonaws.dax#SubnetGroupQuotaExceededFault":
|
|
1152
|
+
throw await de_SubnetGroupQuotaExceededFaultRes(parsedOutput, context);
|
|
1761
1153
|
case "SubnetQuotaExceededFault":
|
|
1762
1154
|
case "com.amazonaws.dax#SubnetQuotaExceededFault":
|
|
1763
1155
|
throw await de_SubnetQuotaExceededFaultRes(parsedOutput, context);
|
|
1156
|
+
case "ClusterNotFoundFault":
|
|
1157
|
+
case "com.amazonaws.dax#ClusterNotFoundFault":
|
|
1158
|
+
throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
|
|
1159
|
+
case "NodeNotFoundFault":
|
|
1160
|
+
case "com.amazonaws.dax#NodeNotFoundFault":
|
|
1161
|
+
throw await de_NodeNotFoundFaultRes(parsedOutput, context);
|
|
1162
|
+
case "SubnetGroupInUseFault":
|
|
1163
|
+
case "com.amazonaws.dax#SubnetGroupInUseFault":
|
|
1164
|
+
throw await de_SubnetGroupInUseFaultRes(parsedOutput, context);
|
|
1165
|
+
case "InvalidARNFault":
|
|
1166
|
+
case "com.amazonaws.dax#InvalidARNFault":
|
|
1167
|
+
throw await de_InvalidARNFaultRes(parsedOutput, context);
|
|
1168
|
+
case "TagNotFoundFault":
|
|
1169
|
+
case "com.amazonaws.dax#TagNotFoundFault":
|
|
1170
|
+
throw await de_TagNotFoundFaultRes(parsedOutput, context);
|
|
1171
|
+
case "SubnetInUse":
|
|
1172
|
+
case "com.amazonaws.dax#SubnetInUse":
|
|
1173
|
+
throw await de_SubnetInUseRes(parsedOutput, context);
|
|
1764
1174
|
default:
|
|
1765
1175
|
const parsedBody = parsedOutput.body;
|
|
1766
1176
|
return throwDefaultError({
|
|
@@ -1769,7 +1179,7 @@ var de_UpdateSubnetGroupCommandError = /* @__PURE__ */ __name(async (output, con
|
|
|
1769
1179
|
errorCode
|
|
1770
1180
|
});
|
|
1771
1181
|
}
|
|
1772
|
-
}, "
|
|
1182
|
+
}, "de_CommandError");
|
|
1773
1183
|
var de_ClusterAlreadyExistsFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1774
1184
|
const body = parsedOutput.body;
|
|
1775
1185
|
const deserialized = (0, import_smithy_client._json)(body);
|