@aws-sdk/client-elasticache 3.312.0 → 3.315.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/protocols/Aws_query.js +131 -195
- package/dist-es/protocols/Aws_query.js +132 -196
- package/package.json +6 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, strictParseFloat as __strictParseFloat, strictParseInt32 as __strictParseInt32,
|
|
2
|
+
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, strictParseFloat as __strictParseFloat, strictParseInt32 as __strictParseInt32, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { XMLParser } from "fast-xml-parser";
|
|
4
4
|
import { ElastiCacheServiceException as __BaseException } from "../models/ElastiCacheServiceException";
|
|
5
5
|
import { APICallRateForCustomerExceededFault, AuthorizationAlreadyExistsFault, AuthorizationNotFoundFault, CacheClusterAlreadyExistsFault, CacheClusterNotFoundFault, CacheParameterGroupAlreadyExistsFault, CacheParameterGroupNotFoundFault, CacheParameterGroupQuotaExceededFault, CacheSecurityGroupAlreadyExistsFault, CacheSecurityGroupNotFoundFault, CacheSecurityGroupQuotaExceededFault, CacheSubnetGroupAlreadyExistsFault, CacheSubnetGroupInUse, CacheSubnetGroupNotFoundFault, CacheSubnetGroupQuotaExceededFault, CacheSubnetQuotaExceededFault, ClusterQuotaForCustomerExceededFault, DefaultUserAssociatedToUserGroupFault, DefaultUserRequired, DuplicateUserNameFault, GlobalReplicationGroupAlreadyExistsFault, GlobalReplicationGroupNotFoundFault, InsufficientCacheClusterCapacityFault, InvalidARNFault, InvalidCacheClusterStateFault, InvalidCacheParameterGroupStateFault, InvalidCacheSecurityGroupStateFault, InvalidGlobalReplicationGroupStateFault, InvalidKMSKeyFault, InvalidParameterCombinationException, InvalidParameterValueException, InvalidReplicationGroupStateFault, InvalidSnapshotStateFault, InvalidSubnet, InvalidUserGroupStateFault, InvalidUserStateFault, InvalidVPCNetworkStateFault, NodeGroupNotFoundFault, NodeGroupsPerReplicationGroupQuotaExceededFault, NodeQuotaForClusterExceededFault, NodeQuotaForCustomerExceededFault, NoOperationFault, ReplicationGroupAlreadyExistsFault, ReplicationGroupAlreadyUnderMigrationFault, ReplicationGroupNotFoundFault, ReplicationGroupNotUnderMigrationFault, ReservedCacheNodeAlreadyExistsFault, ReservedCacheNodeNotFoundFault, ReservedCacheNodeQuotaExceededFault, ReservedCacheNodesOfferingNotFoundFault, ServiceLinkedRoleNotFoundFault, ServiceUpdateNotFoundFault, SnapshotAlreadyExistsFault, SnapshotFeatureNotSupportedFault, SnapshotNotFoundFault, SnapshotQuotaExceededFault, SubnetInUse, SubnetNotAllowedFault, TagNotFoundFault, TagQuotaPerResourceExceeded, TestFailoverNotAvailableFault, UserAlreadyExistsFault, UserGroupAlreadyExistsFault, UserGroupNotFoundFault, UserGroupQuotaExceededFault, UserNotFoundFault, UserQuotaExceededFault, } from "../models/models_0";
|
|
@@ -664,7 +664,7 @@ export const de_AddTagsToResourceCommand = async (output, context) => {
|
|
|
664
664
|
$metadata: deserializeMetadata(output),
|
|
665
665
|
...contents,
|
|
666
666
|
};
|
|
667
|
-
return
|
|
667
|
+
return response;
|
|
668
668
|
};
|
|
669
669
|
const de_AddTagsToResourceCommandError = async (output, context) => {
|
|
670
670
|
const parsedOutput = {
|
|
@@ -711,10 +711,9 @@ const de_AddTagsToResourceCommandError = async (output, context) => {
|
|
|
711
711
|
throw await de_UserNotFoundFaultRes(parsedOutput, context);
|
|
712
712
|
default:
|
|
713
713
|
const parsedBody = parsedOutput.body;
|
|
714
|
-
throwDefaultError({
|
|
714
|
+
return throwDefaultError({
|
|
715
715
|
output,
|
|
716
716
|
parsedBody: parsedBody.Error,
|
|
717
|
-
exceptionCtor: __BaseException,
|
|
718
717
|
errorCode,
|
|
719
718
|
});
|
|
720
719
|
}
|
|
@@ -730,7 +729,7 @@ export const de_AuthorizeCacheSecurityGroupIngressCommand = async (output, conte
|
|
|
730
729
|
$metadata: deserializeMetadata(output),
|
|
731
730
|
...contents,
|
|
732
731
|
};
|
|
733
|
-
return
|
|
732
|
+
return response;
|
|
734
733
|
};
|
|
735
734
|
const de_AuthorizeCacheSecurityGroupIngressCommandError = async (output, context) => {
|
|
736
735
|
const parsedOutput = {
|
|
@@ -756,10 +755,9 @@ const de_AuthorizeCacheSecurityGroupIngressCommandError = async (output, context
|
|
|
756
755
|
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
757
756
|
default:
|
|
758
757
|
const parsedBody = parsedOutput.body;
|
|
759
|
-
throwDefaultError({
|
|
758
|
+
return throwDefaultError({
|
|
760
759
|
output,
|
|
761
760
|
parsedBody: parsedBody.Error,
|
|
762
|
-
exceptionCtor: __BaseException,
|
|
763
761
|
errorCode,
|
|
764
762
|
});
|
|
765
763
|
}
|
|
@@ -775,7 +773,7 @@ export const de_BatchApplyUpdateActionCommand = async (output, context) => {
|
|
|
775
773
|
$metadata: deserializeMetadata(output),
|
|
776
774
|
...contents,
|
|
777
775
|
};
|
|
778
|
-
return
|
|
776
|
+
return response;
|
|
779
777
|
};
|
|
780
778
|
const de_BatchApplyUpdateActionCommandError = async (output, context) => {
|
|
781
779
|
const parsedOutput = {
|
|
@@ -792,10 +790,9 @@ const de_BatchApplyUpdateActionCommandError = async (output, context) => {
|
|
|
792
790
|
throw await de_ServiceUpdateNotFoundFaultRes(parsedOutput, context);
|
|
793
791
|
default:
|
|
794
792
|
const parsedBody = parsedOutput.body;
|
|
795
|
-
throwDefaultError({
|
|
793
|
+
return throwDefaultError({
|
|
796
794
|
output,
|
|
797
795
|
parsedBody: parsedBody.Error,
|
|
798
|
-
exceptionCtor: __BaseException,
|
|
799
796
|
errorCode,
|
|
800
797
|
});
|
|
801
798
|
}
|
|
@@ -811,7 +808,7 @@ export const de_BatchStopUpdateActionCommand = async (output, context) => {
|
|
|
811
808
|
$metadata: deserializeMetadata(output),
|
|
812
809
|
...contents,
|
|
813
810
|
};
|
|
814
|
-
return
|
|
811
|
+
return response;
|
|
815
812
|
};
|
|
816
813
|
const de_BatchStopUpdateActionCommandError = async (output, context) => {
|
|
817
814
|
const parsedOutput = {
|
|
@@ -828,10 +825,9 @@ const de_BatchStopUpdateActionCommandError = async (output, context) => {
|
|
|
828
825
|
throw await de_ServiceUpdateNotFoundFaultRes(parsedOutput, context);
|
|
829
826
|
default:
|
|
830
827
|
const parsedBody = parsedOutput.body;
|
|
831
|
-
throwDefaultError({
|
|
828
|
+
return throwDefaultError({
|
|
832
829
|
output,
|
|
833
830
|
parsedBody: parsedBody.Error,
|
|
834
|
-
exceptionCtor: __BaseException,
|
|
835
831
|
errorCode,
|
|
836
832
|
});
|
|
837
833
|
}
|
|
@@ -847,7 +843,7 @@ export const de_CompleteMigrationCommand = async (output, context) => {
|
|
|
847
843
|
$metadata: deserializeMetadata(output),
|
|
848
844
|
...contents,
|
|
849
845
|
};
|
|
850
|
-
return
|
|
846
|
+
return response;
|
|
851
847
|
};
|
|
852
848
|
const de_CompleteMigrationCommandError = async (output, context) => {
|
|
853
849
|
const parsedOutput = {
|
|
@@ -867,10 +863,9 @@ const de_CompleteMigrationCommandError = async (output, context) => {
|
|
|
867
863
|
throw await de_ReplicationGroupNotUnderMigrationFaultRes(parsedOutput, context);
|
|
868
864
|
default:
|
|
869
865
|
const parsedBody = parsedOutput.body;
|
|
870
|
-
throwDefaultError({
|
|
866
|
+
return throwDefaultError({
|
|
871
867
|
output,
|
|
872
868
|
parsedBody: parsedBody.Error,
|
|
873
|
-
exceptionCtor: __BaseException,
|
|
874
869
|
errorCode,
|
|
875
870
|
});
|
|
876
871
|
}
|
|
@@ -886,7 +881,7 @@ export const de_CopySnapshotCommand = async (output, context) => {
|
|
|
886
881
|
$metadata: deserializeMetadata(output),
|
|
887
882
|
...contents,
|
|
888
883
|
};
|
|
889
|
-
return
|
|
884
|
+
return response;
|
|
890
885
|
};
|
|
891
886
|
const de_CopySnapshotCommandError = async (output, context) => {
|
|
892
887
|
const parsedOutput = {
|
|
@@ -918,10 +913,9 @@ const de_CopySnapshotCommandError = async (output, context) => {
|
|
|
918
913
|
throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
|
|
919
914
|
default:
|
|
920
915
|
const parsedBody = parsedOutput.body;
|
|
921
|
-
throwDefaultError({
|
|
916
|
+
return throwDefaultError({
|
|
922
917
|
output,
|
|
923
918
|
parsedBody: parsedBody.Error,
|
|
924
|
-
exceptionCtor: __BaseException,
|
|
925
919
|
errorCode,
|
|
926
920
|
});
|
|
927
921
|
}
|
|
@@ -937,7 +931,7 @@ export const de_CreateCacheClusterCommand = async (output, context) => {
|
|
|
937
931
|
$metadata: deserializeMetadata(output),
|
|
938
932
|
...contents,
|
|
939
933
|
};
|
|
940
|
-
return
|
|
934
|
+
return response;
|
|
941
935
|
};
|
|
942
936
|
const de_CreateCacheClusterCommandError = async (output, context) => {
|
|
943
937
|
const parsedOutput = {
|
|
@@ -990,10 +984,9 @@ const de_CreateCacheClusterCommandError = async (output, context) => {
|
|
|
990
984
|
throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
|
|
991
985
|
default:
|
|
992
986
|
const parsedBody = parsedOutput.body;
|
|
993
|
-
throwDefaultError({
|
|
987
|
+
return throwDefaultError({
|
|
994
988
|
output,
|
|
995
989
|
parsedBody: parsedBody.Error,
|
|
996
|
-
exceptionCtor: __BaseException,
|
|
997
990
|
errorCode,
|
|
998
991
|
});
|
|
999
992
|
}
|
|
@@ -1009,7 +1002,7 @@ export const de_CreateCacheParameterGroupCommand = async (output, context) => {
|
|
|
1009
1002
|
$metadata: deserializeMetadata(output),
|
|
1010
1003
|
...contents,
|
|
1011
1004
|
};
|
|
1012
|
-
return
|
|
1005
|
+
return response;
|
|
1013
1006
|
};
|
|
1014
1007
|
const de_CreateCacheParameterGroupCommandError = async (output, context) => {
|
|
1015
1008
|
const parsedOutput = {
|
|
@@ -1038,10 +1031,9 @@ const de_CreateCacheParameterGroupCommandError = async (output, context) => {
|
|
|
1038
1031
|
throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
|
|
1039
1032
|
default:
|
|
1040
1033
|
const parsedBody = parsedOutput.body;
|
|
1041
|
-
throwDefaultError({
|
|
1034
|
+
return throwDefaultError({
|
|
1042
1035
|
output,
|
|
1043
1036
|
parsedBody: parsedBody.Error,
|
|
1044
|
-
exceptionCtor: __BaseException,
|
|
1045
1037
|
errorCode,
|
|
1046
1038
|
});
|
|
1047
1039
|
}
|
|
@@ -1057,7 +1049,7 @@ export const de_CreateCacheSecurityGroupCommand = async (output, context) => {
|
|
|
1057
1049
|
$metadata: deserializeMetadata(output),
|
|
1058
1050
|
...contents,
|
|
1059
1051
|
};
|
|
1060
|
-
return
|
|
1052
|
+
return response;
|
|
1061
1053
|
};
|
|
1062
1054
|
const de_CreateCacheSecurityGroupCommandError = async (output, context) => {
|
|
1063
1055
|
const parsedOutput = {
|
|
@@ -1083,10 +1075,9 @@ const de_CreateCacheSecurityGroupCommandError = async (output, context) => {
|
|
|
1083
1075
|
throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
|
|
1084
1076
|
default:
|
|
1085
1077
|
const parsedBody = parsedOutput.body;
|
|
1086
|
-
throwDefaultError({
|
|
1078
|
+
return throwDefaultError({
|
|
1087
1079
|
output,
|
|
1088
1080
|
parsedBody: parsedBody.Error,
|
|
1089
|
-
exceptionCtor: __BaseException,
|
|
1090
1081
|
errorCode,
|
|
1091
1082
|
});
|
|
1092
1083
|
}
|
|
@@ -1102,7 +1093,7 @@ export const de_CreateCacheSubnetGroupCommand = async (output, context) => {
|
|
|
1102
1093
|
$metadata: deserializeMetadata(output),
|
|
1103
1094
|
...contents,
|
|
1104
1095
|
};
|
|
1105
|
-
return
|
|
1096
|
+
return response;
|
|
1106
1097
|
};
|
|
1107
1098
|
const de_CreateCacheSubnetGroupCommandError = async (output, context) => {
|
|
1108
1099
|
const parsedOutput = {
|
|
@@ -1131,10 +1122,9 @@ const de_CreateCacheSubnetGroupCommandError = async (output, context) => {
|
|
|
1131
1122
|
throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
|
|
1132
1123
|
default:
|
|
1133
1124
|
const parsedBody = parsedOutput.body;
|
|
1134
|
-
throwDefaultError({
|
|
1125
|
+
return throwDefaultError({
|
|
1135
1126
|
output,
|
|
1136
1127
|
parsedBody: parsedBody.Error,
|
|
1137
|
-
exceptionCtor: __BaseException,
|
|
1138
1128
|
errorCode,
|
|
1139
1129
|
});
|
|
1140
1130
|
}
|
|
@@ -1150,7 +1140,7 @@ export const de_CreateGlobalReplicationGroupCommand = async (output, context) =>
|
|
|
1150
1140
|
$metadata: deserializeMetadata(output),
|
|
1151
1141
|
...contents,
|
|
1152
1142
|
};
|
|
1153
|
-
return
|
|
1143
|
+
return response;
|
|
1154
1144
|
};
|
|
1155
1145
|
const de_CreateGlobalReplicationGroupCommandError = async (output, context) => {
|
|
1156
1146
|
const parsedOutput = {
|
|
@@ -1176,10 +1166,9 @@ const de_CreateGlobalReplicationGroupCommandError = async (output, context) => {
|
|
|
1176
1166
|
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
1177
1167
|
default:
|
|
1178
1168
|
const parsedBody = parsedOutput.body;
|
|
1179
|
-
throwDefaultError({
|
|
1169
|
+
return throwDefaultError({
|
|
1180
1170
|
output,
|
|
1181
1171
|
parsedBody: parsedBody.Error,
|
|
1182
|
-
exceptionCtor: __BaseException,
|
|
1183
1172
|
errorCode,
|
|
1184
1173
|
});
|
|
1185
1174
|
}
|
|
@@ -1195,7 +1184,7 @@ export const de_CreateReplicationGroupCommand = async (output, context) => {
|
|
|
1195
1184
|
$metadata: deserializeMetadata(output),
|
|
1196
1185
|
...contents,
|
|
1197
1186
|
};
|
|
1198
|
-
return
|
|
1187
|
+
return response;
|
|
1199
1188
|
};
|
|
1200
1189
|
const de_CreateReplicationGroupCommandError = async (output, context) => {
|
|
1201
1190
|
const parsedOutput = {
|
|
@@ -1263,10 +1252,9 @@ const de_CreateReplicationGroupCommandError = async (output, context) => {
|
|
|
1263
1252
|
throw await de_UserGroupNotFoundFaultRes(parsedOutput, context);
|
|
1264
1253
|
default:
|
|
1265
1254
|
const parsedBody = parsedOutput.body;
|
|
1266
|
-
throwDefaultError({
|
|
1255
|
+
return throwDefaultError({
|
|
1267
1256
|
output,
|
|
1268
1257
|
parsedBody: parsedBody.Error,
|
|
1269
|
-
exceptionCtor: __BaseException,
|
|
1270
1258
|
errorCode,
|
|
1271
1259
|
});
|
|
1272
1260
|
}
|
|
@@ -1282,7 +1270,7 @@ export const de_CreateSnapshotCommand = async (output, context) => {
|
|
|
1282
1270
|
$metadata: deserializeMetadata(output),
|
|
1283
1271
|
...contents,
|
|
1284
1272
|
};
|
|
1285
|
-
return
|
|
1273
|
+
return response;
|
|
1286
1274
|
};
|
|
1287
1275
|
const de_CreateSnapshotCommandError = async (output, context) => {
|
|
1288
1276
|
const parsedOutput = {
|
|
@@ -1323,10 +1311,9 @@ const de_CreateSnapshotCommandError = async (output, context) => {
|
|
|
1323
1311
|
throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
|
|
1324
1312
|
default:
|
|
1325
1313
|
const parsedBody = parsedOutput.body;
|
|
1326
|
-
throwDefaultError({
|
|
1314
|
+
return throwDefaultError({
|
|
1327
1315
|
output,
|
|
1328
1316
|
parsedBody: parsedBody.Error,
|
|
1329
|
-
exceptionCtor: __BaseException,
|
|
1330
1317
|
errorCode,
|
|
1331
1318
|
});
|
|
1332
1319
|
}
|
|
@@ -1342,7 +1329,7 @@ export const de_CreateUserCommand = async (output, context) => {
|
|
|
1342
1329
|
$metadata: deserializeMetadata(output),
|
|
1343
1330
|
...contents,
|
|
1344
1331
|
};
|
|
1345
|
-
return
|
|
1332
|
+
return response;
|
|
1346
1333
|
};
|
|
1347
1334
|
const de_CreateUserCommandError = async (output, context) => {
|
|
1348
1335
|
const parsedOutput = {
|
|
@@ -1374,10 +1361,9 @@ const de_CreateUserCommandError = async (output, context) => {
|
|
|
1374
1361
|
throw await de_UserQuotaExceededFaultRes(parsedOutput, context);
|
|
1375
1362
|
default:
|
|
1376
1363
|
const parsedBody = parsedOutput.body;
|
|
1377
|
-
throwDefaultError({
|
|
1364
|
+
return throwDefaultError({
|
|
1378
1365
|
output,
|
|
1379
1366
|
parsedBody: parsedBody.Error,
|
|
1380
|
-
exceptionCtor: __BaseException,
|
|
1381
1367
|
errorCode,
|
|
1382
1368
|
});
|
|
1383
1369
|
}
|
|
@@ -1393,7 +1379,7 @@ export const de_CreateUserGroupCommand = async (output, context) => {
|
|
|
1393
1379
|
$metadata: deserializeMetadata(output),
|
|
1394
1380
|
...contents,
|
|
1395
1381
|
};
|
|
1396
|
-
return
|
|
1382
|
+
return response;
|
|
1397
1383
|
};
|
|
1398
1384
|
const de_CreateUserGroupCommandError = async (output, context) => {
|
|
1399
1385
|
const parsedOutput = {
|
|
@@ -1428,10 +1414,9 @@ const de_CreateUserGroupCommandError = async (output, context) => {
|
|
|
1428
1414
|
throw await de_UserNotFoundFaultRes(parsedOutput, context);
|
|
1429
1415
|
default:
|
|
1430
1416
|
const parsedBody = parsedOutput.body;
|
|
1431
|
-
throwDefaultError({
|
|
1417
|
+
return throwDefaultError({
|
|
1432
1418
|
output,
|
|
1433
1419
|
parsedBody: parsedBody.Error,
|
|
1434
|
-
exceptionCtor: __BaseException,
|
|
1435
1420
|
errorCode,
|
|
1436
1421
|
});
|
|
1437
1422
|
}
|
|
@@ -1447,7 +1432,7 @@ export const de_DecreaseNodeGroupsInGlobalReplicationGroupCommand = async (outpu
|
|
|
1447
1432
|
$metadata: deserializeMetadata(output),
|
|
1448
1433
|
...contents,
|
|
1449
1434
|
};
|
|
1450
|
-
return
|
|
1435
|
+
return response;
|
|
1451
1436
|
};
|
|
1452
1437
|
const de_DecreaseNodeGroupsInGlobalReplicationGroupCommandError = async (output, context) => {
|
|
1453
1438
|
const parsedOutput = {
|
|
@@ -1470,10 +1455,9 @@ const de_DecreaseNodeGroupsInGlobalReplicationGroupCommandError = async (output,
|
|
|
1470
1455
|
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1471
1456
|
default:
|
|
1472
1457
|
const parsedBody = parsedOutput.body;
|
|
1473
|
-
throwDefaultError({
|
|
1458
|
+
return throwDefaultError({
|
|
1474
1459
|
output,
|
|
1475
1460
|
parsedBody: parsedBody.Error,
|
|
1476
|
-
exceptionCtor: __BaseException,
|
|
1477
1461
|
errorCode,
|
|
1478
1462
|
});
|
|
1479
1463
|
}
|
|
@@ -1489,7 +1473,7 @@ export const de_DecreaseReplicaCountCommand = async (output, context) => {
|
|
|
1489
1473
|
$metadata: deserializeMetadata(output),
|
|
1490
1474
|
...contents,
|
|
1491
1475
|
};
|
|
1492
|
-
return
|
|
1476
|
+
return response;
|
|
1493
1477
|
};
|
|
1494
1478
|
const de_DecreaseReplicaCountCommandError = async (output, context) => {
|
|
1495
1479
|
const parsedOutput = {
|
|
@@ -1536,10 +1520,9 @@ const de_DecreaseReplicaCountCommandError = async (output, context) => {
|
|
|
1536
1520
|
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
1537
1521
|
default:
|
|
1538
1522
|
const parsedBody = parsedOutput.body;
|
|
1539
|
-
throwDefaultError({
|
|
1523
|
+
return throwDefaultError({
|
|
1540
1524
|
output,
|
|
1541
1525
|
parsedBody: parsedBody.Error,
|
|
1542
|
-
exceptionCtor: __BaseException,
|
|
1543
1526
|
errorCode,
|
|
1544
1527
|
});
|
|
1545
1528
|
}
|
|
@@ -1555,7 +1538,7 @@ export const de_DeleteCacheClusterCommand = async (output, context) => {
|
|
|
1555
1538
|
$metadata: deserializeMetadata(output),
|
|
1556
1539
|
...contents,
|
|
1557
1540
|
};
|
|
1558
|
-
return
|
|
1541
|
+
return response;
|
|
1559
1542
|
};
|
|
1560
1543
|
const de_DeleteCacheClusterCommandError = async (output, context) => {
|
|
1561
1544
|
const parsedOutput = {
|
|
@@ -1587,10 +1570,9 @@ const de_DeleteCacheClusterCommandError = async (output, context) => {
|
|
|
1587
1570
|
throw await de_SnapshotQuotaExceededFaultRes(parsedOutput, context);
|
|
1588
1571
|
default:
|
|
1589
1572
|
const parsedBody = parsedOutput.body;
|
|
1590
|
-
throwDefaultError({
|
|
1573
|
+
return throwDefaultError({
|
|
1591
1574
|
output,
|
|
1592
1575
|
parsedBody: parsedBody.Error,
|
|
1593
|
-
exceptionCtor: __BaseException,
|
|
1594
1576
|
errorCode,
|
|
1595
1577
|
});
|
|
1596
1578
|
}
|
|
@@ -1603,7 +1585,7 @@ export const de_DeleteCacheParameterGroupCommand = async (output, context) => {
|
|
|
1603
1585
|
const response = {
|
|
1604
1586
|
$metadata: deserializeMetadata(output),
|
|
1605
1587
|
};
|
|
1606
|
-
return
|
|
1588
|
+
return response;
|
|
1607
1589
|
};
|
|
1608
1590
|
const de_DeleteCacheParameterGroupCommandError = async (output, context) => {
|
|
1609
1591
|
const parsedOutput = {
|
|
@@ -1626,10 +1608,9 @@ const de_DeleteCacheParameterGroupCommandError = async (output, context) => {
|
|
|
1626
1608
|
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1627
1609
|
default:
|
|
1628
1610
|
const parsedBody = parsedOutput.body;
|
|
1629
|
-
throwDefaultError({
|
|
1611
|
+
return throwDefaultError({
|
|
1630
1612
|
output,
|
|
1631
1613
|
parsedBody: parsedBody.Error,
|
|
1632
|
-
exceptionCtor: __BaseException,
|
|
1633
1614
|
errorCode,
|
|
1634
1615
|
});
|
|
1635
1616
|
}
|
|
@@ -1642,7 +1623,7 @@ export const de_DeleteCacheSecurityGroupCommand = async (output, context) => {
|
|
|
1642
1623
|
const response = {
|
|
1643
1624
|
$metadata: deserializeMetadata(output),
|
|
1644
1625
|
};
|
|
1645
|
-
return
|
|
1626
|
+
return response;
|
|
1646
1627
|
};
|
|
1647
1628
|
const de_DeleteCacheSecurityGroupCommandError = async (output, context) => {
|
|
1648
1629
|
const parsedOutput = {
|
|
@@ -1665,10 +1646,9 @@ const de_DeleteCacheSecurityGroupCommandError = async (output, context) => {
|
|
|
1665
1646
|
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1666
1647
|
default:
|
|
1667
1648
|
const parsedBody = parsedOutput.body;
|
|
1668
|
-
throwDefaultError({
|
|
1649
|
+
return throwDefaultError({
|
|
1669
1650
|
output,
|
|
1670
1651
|
parsedBody: parsedBody.Error,
|
|
1671
|
-
exceptionCtor: __BaseException,
|
|
1672
1652
|
errorCode,
|
|
1673
1653
|
});
|
|
1674
1654
|
}
|
|
@@ -1681,7 +1661,7 @@ export const de_DeleteCacheSubnetGroupCommand = async (output, context) => {
|
|
|
1681
1661
|
const response = {
|
|
1682
1662
|
$metadata: deserializeMetadata(output),
|
|
1683
1663
|
};
|
|
1684
|
-
return
|
|
1664
|
+
return response;
|
|
1685
1665
|
};
|
|
1686
1666
|
const de_DeleteCacheSubnetGroupCommandError = async (output, context) => {
|
|
1687
1667
|
const parsedOutput = {
|
|
@@ -1698,10 +1678,9 @@ const de_DeleteCacheSubnetGroupCommandError = async (output, context) => {
|
|
|
1698
1678
|
throw await de_CacheSubnetGroupNotFoundFaultRes(parsedOutput, context);
|
|
1699
1679
|
default:
|
|
1700
1680
|
const parsedBody = parsedOutput.body;
|
|
1701
|
-
throwDefaultError({
|
|
1681
|
+
return throwDefaultError({
|
|
1702
1682
|
output,
|
|
1703
1683
|
parsedBody: parsedBody.Error,
|
|
1704
|
-
exceptionCtor: __BaseException,
|
|
1705
1684
|
errorCode,
|
|
1706
1685
|
});
|
|
1707
1686
|
}
|
|
@@ -1717,7 +1696,7 @@ export const de_DeleteGlobalReplicationGroupCommand = async (output, context) =>
|
|
|
1717
1696
|
$metadata: deserializeMetadata(output),
|
|
1718
1697
|
...contents,
|
|
1719
1698
|
};
|
|
1720
|
-
return
|
|
1699
|
+
return response;
|
|
1721
1700
|
};
|
|
1722
1701
|
const de_DeleteGlobalReplicationGroupCommandError = async (output, context) => {
|
|
1723
1702
|
const parsedOutput = {
|
|
@@ -1737,10 +1716,9 @@ const de_DeleteGlobalReplicationGroupCommandError = async (output, context) => {
|
|
|
1737
1716
|
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1738
1717
|
default:
|
|
1739
1718
|
const parsedBody = parsedOutput.body;
|
|
1740
|
-
throwDefaultError({
|
|
1719
|
+
return throwDefaultError({
|
|
1741
1720
|
output,
|
|
1742
1721
|
parsedBody: parsedBody.Error,
|
|
1743
|
-
exceptionCtor: __BaseException,
|
|
1744
1722
|
errorCode,
|
|
1745
1723
|
});
|
|
1746
1724
|
}
|
|
@@ -1756,7 +1734,7 @@ export const de_DeleteReplicationGroupCommand = async (output, context) => {
|
|
|
1756
1734
|
$metadata: deserializeMetadata(output),
|
|
1757
1735
|
...contents,
|
|
1758
1736
|
};
|
|
1759
|
-
return
|
|
1737
|
+
return response;
|
|
1760
1738
|
};
|
|
1761
1739
|
const de_DeleteReplicationGroupCommandError = async (output, context) => {
|
|
1762
1740
|
const parsedOutput = {
|
|
@@ -1788,10 +1766,9 @@ const de_DeleteReplicationGroupCommandError = async (output, context) => {
|
|
|
1788
1766
|
throw await de_SnapshotQuotaExceededFaultRes(parsedOutput, context);
|
|
1789
1767
|
default:
|
|
1790
1768
|
const parsedBody = parsedOutput.body;
|
|
1791
|
-
throwDefaultError({
|
|
1769
|
+
return throwDefaultError({
|
|
1792
1770
|
output,
|
|
1793
1771
|
parsedBody: parsedBody.Error,
|
|
1794
|
-
exceptionCtor: __BaseException,
|
|
1795
1772
|
errorCode,
|
|
1796
1773
|
});
|
|
1797
1774
|
}
|
|
@@ -1807,7 +1784,7 @@ export const de_DeleteSnapshotCommand = async (output, context) => {
|
|
|
1807
1784
|
$metadata: deserializeMetadata(output),
|
|
1808
1785
|
...contents,
|
|
1809
1786
|
};
|
|
1810
|
-
return
|
|
1787
|
+
return response;
|
|
1811
1788
|
};
|
|
1812
1789
|
const de_DeleteSnapshotCommandError = async (output, context) => {
|
|
1813
1790
|
const parsedOutput = {
|
|
@@ -1830,10 +1807,9 @@ const de_DeleteSnapshotCommandError = async (output, context) => {
|
|
|
1830
1807
|
throw await de_SnapshotNotFoundFaultRes(parsedOutput, context);
|
|
1831
1808
|
default:
|
|
1832
1809
|
const parsedBody = parsedOutput.body;
|
|
1833
|
-
throwDefaultError({
|
|
1810
|
+
return throwDefaultError({
|
|
1834
1811
|
output,
|
|
1835
1812
|
parsedBody: parsedBody.Error,
|
|
1836
|
-
exceptionCtor: __BaseException,
|
|
1837
1813
|
errorCode,
|
|
1838
1814
|
});
|
|
1839
1815
|
}
|
|
@@ -1849,7 +1825,7 @@ export const de_DeleteUserCommand = async (output, context) => {
|
|
|
1849
1825
|
$metadata: deserializeMetadata(output),
|
|
1850
1826
|
...contents,
|
|
1851
1827
|
};
|
|
1852
|
-
return
|
|
1828
|
+
return response;
|
|
1853
1829
|
};
|
|
1854
1830
|
const de_DeleteUserCommandError = async (output, context) => {
|
|
1855
1831
|
const parsedOutput = {
|
|
@@ -1875,10 +1851,9 @@ const de_DeleteUserCommandError = async (output, context) => {
|
|
|
1875
1851
|
throw await de_UserNotFoundFaultRes(parsedOutput, context);
|
|
1876
1852
|
default:
|
|
1877
1853
|
const parsedBody = parsedOutput.body;
|
|
1878
|
-
throwDefaultError({
|
|
1854
|
+
return throwDefaultError({
|
|
1879
1855
|
output,
|
|
1880
1856
|
parsedBody: parsedBody.Error,
|
|
1881
|
-
exceptionCtor: __BaseException,
|
|
1882
1857
|
errorCode,
|
|
1883
1858
|
});
|
|
1884
1859
|
}
|
|
@@ -1894,7 +1869,7 @@ export const de_DeleteUserGroupCommand = async (output, context) => {
|
|
|
1894
1869
|
$metadata: deserializeMetadata(output),
|
|
1895
1870
|
...contents,
|
|
1896
1871
|
};
|
|
1897
|
-
return
|
|
1872
|
+
return response;
|
|
1898
1873
|
};
|
|
1899
1874
|
const de_DeleteUserGroupCommandError = async (output, context) => {
|
|
1900
1875
|
const parsedOutput = {
|
|
@@ -1917,10 +1892,9 @@ const de_DeleteUserGroupCommandError = async (output, context) => {
|
|
|
1917
1892
|
throw await de_UserGroupNotFoundFaultRes(parsedOutput, context);
|
|
1918
1893
|
default:
|
|
1919
1894
|
const parsedBody = parsedOutput.body;
|
|
1920
|
-
throwDefaultError({
|
|
1895
|
+
return throwDefaultError({
|
|
1921
1896
|
output,
|
|
1922
1897
|
parsedBody: parsedBody.Error,
|
|
1923
|
-
exceptionCtor: __BaseException,
|
|
1924
1898
|
errorCode,
|
|
1925
1899
|
});
|
|
1926
1900
|
}
|
|
@@ -1936,7 +1910,7 @@ export const de_DescribeCacheClustersCommand = async (output, context) => {
|
|
|
1936
1910
|
$metadata: deserializeMetadata(output),
|
|
1937
1911
|
...contents,
|
|
1938
1912
|
};
|
|
1939
|
-
return
|
|
1913
|
+
return response;
|
|
1940
1914
|
};
|
|
1941
1915
|
const de_DescribeCacheClustersCommandError = async (output, context) => {
|
|
1942
1916
|
const parsedOutput = {
|
|
@@ -1956,10 +1930,9 @@ const de_DescribeCacheClustersCommandError = async (output, context) => {
|
|
|
1956
1930
|
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1957
1931
|
default:
|
|
1958
1932
|
const parsedBody = parsedOutput.body;
|
|
1959
|
-
throwDefaultError({
|
|
1933
|
+
return throwDefaultError({
|
|
1960
1934
|
output,
|
|
1961
1935
|
parsedBody: parsedBody.Error,
|
|
1962
|
-
exceptionCtor: __BaseException,
|
|
1963
1936
|
errorCode,
|
|
1964
1937
|
});
|
|
1965
1938
|
}
|
|
@@ -1975,7 +1948,7 @@ export const de_DescribeCacheEngineVersionsCommand = async (output, context) =>
|
|
|
1975
1948
|
$metadata: deserializeMetadata(output),
|
|
1976
1949
|
...contents,
|
|
1977
1950
|
};
|
|
1978
|
-
return
|
|
1951
|
+
return response;
|
|
1979
1952
|
};
|
|
1980
1953
|
const de_DescribeCacheEngineVersionsCommandError = async (output, context) => {
|
|
1981
1954
|
const parsedOutput = {
|
|
@@ -1984,10 +1957,9 @@ const de_DescribeCacheEngineVersionsCommandError = async (output, context) => {
|
|
|
1984
1957
|
};
|
|
1985
1958
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1986
1959
|
const parsedBody = parsedOutput.body;
|
|
1987
|
-
throwDefaultError({
|
|
1960
|
+
return throwDefaultError({
|
|
1988
1961
|
output,
|
|
1989
1962
|
parsedBody: parsedBody.Error,
|
|
1990
|
-
exceptionCtor: __BaseException,
|
|
1991
1963
|
errorCode,
|
|
1992
1964
|
});
|
|
1993
1965
|
};
|
|
@@ -2002,7 +1974,7 @@ export const de_DescribeCacheParameterGroupsCommand = async (output, context) =>
|
|
|
2002
1974
|
$metadata: deserializeMetadata(output),
|
|
2003
1975
|
...contents,
|
|
2004
1976
|
};
|
|
2005
|
-
return
|
|
1977
|
+
return response;
|
|
2006
1978
|
};
|
|
2007
1979
|
const de_DescribeCacheParameterGroupsCommandError = async (output, context) => {
|
|
2008
1980
|
const parsedOutput = {
|
|
@@ -2022,10 +1994,9 @@ const de_DescribeCacheParameterGroupsCommandError = async (output, context) => {
|
|
|
2022
1994
|
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2023
1995
|
default:
|
|
2024
1996
|
const parsedBody = parsedOutput.body;
|
|
2025
|
-
throwDefaultError({
|
|
1997
|
+
return throwDefaultError({
|
|
2026
1998
|
output,
|
|
2027
1999
|
parsedBody: parsedBody.Error,
|
|
2028
|
-
exceptionCtor: __BaseException,
|
|
2029
2000
|
errorCode,
|
|
2030
2001
|
});
|
|
2031
2002
|
}
|
|
@@ -2041,7 +2012,7 @@ export const de_DescribeCacheParametersCommand = async (output, context) => {
|
|
|
2041
2012
|
$metadata: deserializeMetadata(output),
|
|
2042
2013
|
...contents,
|
|
2043
2014
|
};
|
|
2044
|
-
return
|
|
2015
|
+
return response;
|
|
2045
2016
|
};
|
|
2046
2017
|
const de_DescribeCacheParametersCommandError = async (output, context) => {
|
|
2047
2018
|
const parsedOutput = {
|
|
@@ -2061,10 +2032,9 @@ const de_DescribeCacheParametersCommandError = async (output, context) => {
|
|
|
2061
2032
|
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2062
2033
|
default:
|
|
2063
2034
|
const parsedBody = parsedOutput.body;
|
|
2064
|
-
throwDefaultError({
|
|
2035
|
+
return throwDefaultError({
|
|
2065
2036
|
output,
|
|
2066
2037
|
parsedBody: parsedBody.Error,
|
|
2067
|
-
exceptionCtor: __BaseException,
|
|
2068
2038
|
errorCode,
|
|
2069
2039
|
});
|
|
2070
2040
|
}
|
|
@@ -2080,7 +2050,7 @@ export const de_DescribeCacheSecurityGroupsCommand = async (output, context) =>
|
|
|
2080
2050
|
$metadata: deserializeMetadata(output),
|
|
2081
2051
|
...contents,
|
|
2082
2052
|
};
|
|
2083
|
-
return
|
|
2053
|
+
return response;
|
|
2084
2054
|
};
|
|
2085
2055
|
const de_DescribeCacheSecurityGroupsCommandError = async (output, context) => {
|
|
2086
2056
|
const parsedOutput = {
|
|
@@ -2100,10 +2070,9 @@ const de_DescribeCacheSecurityGroupsCommandError = async (output, context) => {
|
|
|
2100
2070
|
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2101
2071
|
default:
|
|
2102
2072
|
const parsedBody = parsedOutput.body;
|
|
2103
|
-
throwDefaultError({
|
|
2073
|
+
return throwDefaultError({
|
|
2104
2074
|
output,
|
|
2105
2075
|
parsedBody: parsedBody.Error,
|
|
2106
|
-
exceptionCtor: __BaseException,
|
|
2107
2076
|
errorCode,
|
|
2108
2077
|
});
|
|
2109
2078
|
}
|
|
@@ -2119,7 +2088,7 @@ export const de_DescribeCacheSubnetGroupsCommand = async (output, context) => {
|
|
|
2119
2088
|
$metadata: deserializeMetadata(output),
|
|
2120
2089
|
...contents,
|
|
2121
2090
|
};
|
|
2122
|
-
return
|
|
2091
|
+
return response;
|
|
2123
2092
|
};
|
|
2124
2093
|
const de_DescribeCacheSubnetGroupsCommandError = async (output, context) => {
|
|
2125
2094
|
const parsedOutput = {
|
|
@@ -2133,10 +2102,9 @@ const de_DescribeCacheSubnetGroupsCommandError = async (output, context) => {
|
|
|
2133
2102
|
throw await de_CacheSubnetGroupNotFoundFaultRes(parsedOutput, context);
|
|
2134
2103
|
default:
|
|
2135
2104
|
const parsedBody = parsedOutput.body;
|
|
2136
|
-
throwDefaultError({
|
|
2105
|
+
return throwDefaultError({
|
|
2137
2106
|
output,
|
|
2138
2107
|
parsedBody: parsedBody.Error,
|
|
2139
|
-
exceptionCtor: __BaseException,
|
|
2140
2108
|
errorCode,
|
|
2141
2109
|
});
|
|
2142
2110
|
}
|
|
@@ -2152,7 +2120,7 @@ export const de_DescribeEngineDefaultParametersCommand = async (output, context)
|
|
|
2152
2120
|
$metadata: deserializeMetadata(output),
|
|
2153
2121
|
...contents,
|
|
2154
2122
|
};
|
|
2155
|
-
return
|
|
2123
|
+
return response;
|
|
2156
2124
|
};
|
|
2157
2125
|
const de_DescribeEngineDefaultParametersCommandError = async (output, context) => {
|
|
2158
2126
|
const parsedOutput = {
|
|
@@ -2169,10 +2137,9 @@ const de_DescribeEngineDefaultParametersCommandError = async (output, context) =
|
|
|
2169
2137
|
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2170
2138
|
default:
|
|
2171
2139
|
const parsedBody = parsedOutput.body;
|
|
2172
|
-
throwDefaultError({
|
|
2140
|
+
return throwDefaultError({
|
|
2173
2141
|
output,
|
|
2174
2142
|
parsedBody: parsedBody.Error,
|
|
2175
|
-
exceptionCtor: __BaseException,
|
|
2176
2143
|
errorCode,
|
|
2177
2144
|
});
|
|
2178
2145
|
}
|
|
@@ -2188,7 +2155,7 @@ export const de_DescribeEventsCommand = async (output, context) => {
|
|
|
2188
2155
|
$metadata: deserializeMetadata(output),
|
|
2189
2156
|
...contents,
|
|
2190
2157
|
};
|
|
2191
|
-
return
|
|
2158
|
+
return response;
|
|
2192
2159
|
};
|
|
2193
2160
|
const de_DescribeEventsCommandError = async (output, context) => {
|
|
2194
2161
|
const parsedOutput = {
|
|
@@ -2205,10 +2172,9 @@ const de_DescribeEventsCommandError = async (output, context) => {
|
|
|
2205
2172
|
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2206
2173
|
default:
|
|
2207
2174
|
const parsedBody = parsedOutput.body;
|
|
2208
|
-
throwDefaultError({
|
|
2175
|
+
return throwDefaultError({
|
|
2209
2176
|
output,
|
|
2210
2177
|
parsedBody: parsedBody.Error,
|
|
2211
|
-
exceptionCtor: __BaseException,
|
|
2212
2178
|
errorCode,
|
|
2213
2179
|
});
|
|
2214
2180
|
}
|
|
@@ -2224,7 +2190,7 @@ export const de_DescribeGlobalReplicationGroupsCommand = async (output, context)
|
|
|
2224
2190
|
$metadata: deserializeMetadata(output),
|
|
2225
2191
|
...contents,
|
|
2226
2192
|
};
|
|
2227
|
-
return
|
|
2193
|
+
return response;
|
|
2228
2194
|
};
|
|
2229
2195
|
const de_DescribeGlobalReplicationGroupsCommandError = async (output, context) => {
|
|
2230
2196
|
const parsedOutput = {
|
|
@@ -2244,10 +2210,9 @@ const de_DescribeGlobalReplicationGroupsCommandError = async (output, context) =
|
|
|
2244
2210
|
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2245
2211
|
default:
|
|
2246
2212
|
const parsedBody = parsedOutput.body;
|
|
2247
|
-
throwDefaultError({
|
|
2213
|
+
return throwDefaultError({
|
|
2248
2214
|
output,
|
|
2249
2215
|
parsedBody: parsedBody.Error,
|
|
2250
|
-
exceptionCtor: __BaseException,
|
|
2251
2216
|
errorCode,
|
|
2252
2217
|
});
|
|
2253
2218
|
}
|
|
@@ -2263,7 +2228,7 @@ export const de_DescribeReplicationGroupsCommand = async (output, context) => {
|
|
|
2263
2228
|
$metadata: deserializeMetadata(output),
|
|
2264
2229
|
...contents,
|
|
2265
2230
|
};
|
|
2266
|
-
return
|
|
2231
|
+
return response;
|
|
2267
2232
|
};
|
|
2268
2233
|
const de_DescribeReplicationGroupsCommandError = async (output, context) => {
|
|
2269
2234
|
const parsedOutput = {
|
|
@@ -2283,10 +2248,9 @@ const de_DescribeReplicationGroupsCommandError = async (output, context) => {
|
|
|
2283
2248
|
throw await de_ReplicationGroupNotFoundFaultRes(parsedOutput, context);
|
|
2284
2249
|
default:
|
|
2285
2250
|
const parsedBody = parsedOutput.body;
|
|
2286
|
-
throwDefaultError({
|
|
2251
|
+
return throwDefaultError({
|
|
2287
2252
|
output,
|
|
2288
2253
|
parsedBody: parsedBody.Error,
|
|
2289
|
-
exceptionCtor: __BaseException,
|
|
2290
2254
|
errorCode,
|
|
2291
2255
|
});
|
|
2292
2256
|
}
|
|
@@ -2302,7 +2266,7 @@ export const de_DescribeReservedCacheNodesCommand = async (output, context) => {
|
|
|
2302
2266
|
$metadata: deserializeMetadata(output),
|
|
2303
2267
|
...contents,
|
|
2304
2268
|
};
|
|
2305
|
-
return
|
|
2269
|
+
return response;
|
|
2306
2270
|
};
|
|
2307
2271
|
const de_DescribeReservedCacheNodesCommandError = async (output, context) => {
|
|
2308
2272
|
const parsedOutput = {
|
|
@@ -2322,10 +2286,9 @@ const de_DescribeReservedCacheNodesCommandError = async (output, context) => {
|
|
|
2322
2286
|
throw await de_ReservedCacheNodeNotFoundFaultRes(parsedOutput, context);
|
|
2323
2287
|
default:
|
|
2324
2288
|
const parsedBody = parsedOutput.body;
|
|
2325
|
-
throwDefaultError({
|
|
2289
|
+
return throwDefaultError({
|
|
2326
2290
|
output,
|
|
2327
2291
|
parsedBody: parsedBody.Error,
|
|
2328
|
-
exceptionCtor: __BaseException,
|
|
2329
2292
|
errorCode,
|
|
2330
2293
|
});
|
|
2331
2294
|
}
|
|
@@ -2341,7 +2304,7 @@ export const de_DescribeReservedCacheNodesOfferingsCommand = async (output, cont
|
|
|
2341
2304
|
$metadata: deserializeMetadata(output),
|
|
2342
2305
|
...contents,
|
|
2343
2306
|
};
|
|
2344
|
-
return
|
|
2307
|
+
return response;
|
|
2345
2308
|
};
|
|
2346
2309
|
const de_DescribeReservedCacheNodesOfferingsCommandError = async (output, context) => {
|
|
2347
2310
|
const parsedOutput = {
|
|
@@ -2361,10 +2324,9 @@ const de_DescribeReservedCacheNodesOfferingsCommandError = async (output, contex
|
|
|
2361
2324
|
throw await de_ReservedCacheNodesOfferingNotFoundFaultRes(parsedOutput, context);
|
|
2362
2325
|
default:
|
|
2363
2326
|
const parsedBody = parsedOutput.body;
|
|
2364
|
-
throwDefaultError({
|
|
2327
|
+
return throwDefaultError({
|
|
2365
2328
|
output,
|
|
2366
2329
|
parsedBody: parsedBody.Error,
|
|
2367
|
-
exceptionCtor: __BaseException,
|
|
2368
2330
|
errorCode,
|
|
2369
2331
|
});
|
|
2370
2332
|
}
|
|
@@ -2380,7 +2342,7 @@ export const de_DescribeServiceUpdatesCommand = async (output, context) => {
|
|
|
2380
2342
|
$metadata: deserializeMetadata(output),
|
|
2381
2343
|
...contents,
|
|
2382
2344
|
};
|
|
2383
|
-
return
|
|
2345
|
+
return response;
|
|
2384
2346
|
};
|
|
2385
2347
|
const de_DescribeServiceUpdatesCommandError = async (output, context) => {
|
|
2386
2348
|
const parsedOutput = {
|
|
@@ -2400,10 +2362,9 @@ const de_DescribeServiceUpdatesCommandError = async (output, context) => {
|
|
|
2400
2362
|
throw await de_ServiceUpdateNotFoundFaultRes(parsedOutput, context);
|
|
2401
2363
|
default:
|
|
2402
2364
|
const parsedBody = parsedOutput.body;
|
|
2403
|
-
throwDefaultError({
|
|
2365
|
+
return throwDefaultError({
|
|
2404
2366
|
output,
|
|
2405
2367
|
parsedBody: parsedBody.Error,
|
|
2406
|
-
exceptionCtor: __BaseException,
|
|
2407
2368
|
errorCode,
|
|
2408
2369
|
});
|
|
2409
2370
|
}
|
|
@@ -2419,7 +2380,7 @@ export const de_DescribeSnapshotsCommand = async (output, context) => {
|
|
|
2419
2380
|
$metadata: deserializeMetadata(output),
|
|
2420
2381
|
...contents,
|
|
2421
2382
|
};
|
|
2422
|
-
return
|
|
2383
|
+
return response;
|
|
2423
2384
|
};
|
|
2424
2385
|
const de_DescribeSnapshotsCommandError = async (output, context) => {
|
|
2425
2386
|
const parsedOutput = {
|
|
@@ -2442,10 +2403,9 @@ const de_DescribeSnapshotsCommandError = async (output, context) => {
|
|
|
2442
2403
|
throw await de_SnapshotNotFoundFaultRes(parsedOutput, context);
|
|
2443
2404
|
default:
|
|
2444
2405
|
const parsedBody = parsedOutput.body;
|
|
2445
|
-
throwDefaultError({
|
|
2406
|
+
return throwDefaultError({
|
|
2446
2407
|
output,
|
|
2447
2408
|
parsedBody: parsedBody.Error,
|
|
2448
|
-
exceptionCtor: __BaseException,
|
|
2449
2409
|
errorCode,
|
|
2450
2410
|
});
|
|
2451
2411
|
}
|
|
@@ -2461,7 +2421,7 @@ export const de_DescribeUpdateActionsCommand = async (output, context) => {
|
|
|
2461
2421
|
$metadata: deserializeMetadata(output),
|
|
2462
2422
|
...contents,
|
|
2463
2423
|
};
|
|
2464
|
-
return
|
|
2424
|
+
return response;
|
|
2465
2425
|
};
|
|
2466
2426
|
const de_DescribeUpdateActionsCommandError = async (output, context) => {
|
|
2467
2427
|
const parsedOutput = {
|
|
@@ -2478,10 +2438,9 @@ const de_DescribeUpdateActionsCommandError = async (output, context) => {
|
|
|
2478
2438
|
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2479
2439
|
default:
|
|
2480
2440
|
const parsedBody = parsedOutput.body;
|
|
2481
|
-
throwDefaultError({
|
|
2441
|
+
return throwDefaultError({
|
|
2482
2442
|
output,
|
|
2483
2443
|
parsedBody: parsedBody.Error,
|
|
2484
|
-
exceptionCtor: __BaseException,
|
|
2485
2444
|
errorCode,
|
|
2486
2445
|
});
|
|
2487
2446
|
}
|
|
@@ -2497,7 +2456,7 @@ export const de_DescribeUserGroupsCommand = async (output, context) => {
|
|
|
2497
2456
|
$metadata: deserializeMetadata(output),
|
|
2498
2457
|
...contents,
|
|
2499
2458
|
};
|
|
2500
|
-
return
|
|
2459
|
+
return response;
|
|
2501
2460
|
};
|
|
2502
2461
|
const de_DescribeUserGroupsCommandError = async (output, context) => {
|
|
2503
2462
|
const parsedOutput = {
|
|
@@ -2517,10 +2476,9 @@ const de_DescribeUserGroupsCommandError = async (output, context) => {
|
|
|
2517
2476
|
throw await de_UserGroupNotFoundFaultRes(parsedOutput, context);
|
|
2518
2477
|
default:
|
|
2519
2478
|
const parsedBody = parsedOutput.body;
|
|
2520
|
-
throwDefaultError({
|
|
2479
|
+
return throwDefaultError({
|
|
2521
2480
|
output,
|
|
2522
2481
|
parsedBody: parsedBody.Error,
|
|
2523
|
-
exceptionCtor: __BaseException,
|
|
2524
2482
|
errorCode,
|
|
2525
2483
|
});
|
|
2526
2484
|
}
|
|
@@ -2536,7 +2494,7 @@ export const de_DescribeUsersCommand = async (output, context) => {
|
|
|
2536
2494
|
$metadata: deserializeMetadata(output),
|
|
2537
2495
|
...contents,
|
|
2538
2496
|
};
|
|
2539
|
-
return
|
|
2497
|
+
return response;
|
|
2540
2498
|
};
|
|
2541
2499
|
const de_DescribeUsersCommandError = async (output, context) => {
|
|
2542
2500
|
const parsedOutput = {
|
|
@@ -2556,10 +2514,9 @@ const de_DescribeUsersCommandError = async (output, context) => {
|
|
|
2556
2514
|
throw await de_UserNotFoundFaultRes(parsedOutput, context);
|
|
2557
2515
|
default:
|
|
2558
2516
|
const parsedBody = parsedOutput.body;
|
|
2559
|
-
throwDefaultError({
|
|
2517
|
+
return throwDefaultError({
|
|
2560
2518
|
output,
|
|
2561
2519
|
parsedBody: parsedBody.Error,
|
|
2562
|
-
exceptionCtor: __BaseException,
|
|
2563
2520
|
errorCode,
|
|
2564
2521
|
});
|
|
2565
2522
|
}
|
|
@@ -2575,7 +2532,7 @@ export const de_DisassociateGlobalReplicationGroupCommand = async (output, conte
|
|
|
2575
2532
|
$metadata: deserializeMetadata(output),
|
|
2576
2533
|
...contents,
|
|
2577
2534
|
};
|
|
2578
|
-
return
|
|
2535
|
+
return response;
|
|
2579
2536
|
};
|
|
2580
2537
|
const de_DisassociateGlobalReplicationGroupCommandError = async (output, context) => {
|
|
2581
2538
|
const parsedOutput = {
|
|
@@ -2598,10 +2555,9 @@ const de_DisassociateGlobalReplicationGroupCommandError = async (output, context
|
|
|
2598
2555
|
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2599
2556
|
default:
|
|
2600
2557
|
const parsedBody = parsedOutput.body;
|
|
2601
|
-
throwDefaultError({
|
|
2558
|
+
return throwDefaultError({
|
|
2602
2559
|
output,
|
|
2603
2560
|
parsedBody: parsedBody.Error,
|
|
2604
|
-
exceptionCtor: __BaseException,
|
|
2605
2561
|
errorCode,
|
|
2606
2562
|
});
|
|
2607
2563
|
}
|
|
@@ -2617,7 +2573,7 @@ export const de_FailoverGlobalReplicationGroupCommand = async (output, context)
|
|
|
2617
2573
|
$metadata: deserializeMetadata(output),
|
|
2618
2574
|
...contents,
|
|
2619
2575
|
};
|
|
2620
|
-
return
|
|
2576
|
+
return response;
|
|
2621
2577
|
};
|
|
2622
2578
|
const de_FailoverGlobalReplicationGroupCommandError = async (output, context) => {
|
|
2623
2579
|
const parsedOutput = {
|
|
@@ -2640,10 +2596,9 @@ const de_FailoverGlobalReplicationGroupCommandError = async (output, context) =>
|
|
|
2640
2596
|
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2641
2597
|
default:
|
|
2642
2598
|
const parsedBody = parsedOutput.body;
|
|
2643
|
-
throwDefaultError({
|
|
2599
|
+
return throwDefaultError({
|
|
2644
2600
|
output,
|
|
2645
2601
|
parsedBody: parsedBody.Error,
|
|
2646
|
-
exceptionCtor: __BaseException,
|
|
2647
2602
|
errorCode,
|
|
2648
2603
|
});
|
|
2649
2604
|
}
|
|
@@ -2659,7 +2614,7 @@ export const de_IncreaseNodeGroupsInGlobalReplicationGroupCommand = async (outpu
|
|
|
2659
2614
|
$metadata: deserializeMetadata(output),
|
|
2660
2615
|
...contents,
|
|
2661
2616
|
};
|
|
2662
|
-
return
|
|
2617
|
+
return response;
|
|
2663
2618
|
};
|
|
2664
2619
|
const de_IncreaseNodeGroupsInGlobalReplicationGroupCommandError = async (output, context) => {
|
|
2665
2620
|
const parsedOutput = {
|
|
@@ -2679,10 +2634,9 @@ const de_IncreaseNodeGroupsInGlobalReplicationGroupCommandError = async (output,
|
|
|
2679
2634
|
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2680
2635
|
default:
|
|
2681
2636
|
const parsedBody = parsedOutput.body;
|
|
2682
|
-
throwDefaultError({
|
|
2637
|
+
return throwDefaultError({
|
|
2683
2638
|
output,
|
|
2684
2639
|
parsedBody: parsedBody.Error,
|
|
2685
|
-
exceptionCtor: __BaseException,
|
|
2686
2640
|
errorCode,
|
|
2687
2641
|
});
|
|
2688
2642
|
}
|
|
@@ -2698,7 +2652,7 @@ export const de_IncreaseReplicaCountCommand = async (output, context) => {
|
|
|
2698
2652
|
$metadata: deserializeMetadata(output),
|
|
2699
2653
|
...contents,
|
|
2700
2654
|
};
|
|
2701
|
-
return
|
|
2655
|
+
return response;
|
|
2702
2656
|
};
|
|
2703
2657
|
const de_IncreaseReplicaCountCommandError = async (output, context) => {
|
|
2704
2658
|
const parsedOutput = {
|
|
@@ -2745,10 +2699,9 @@ const de_IncreaseReplicaCountCommandError = async (output, context) => {
|
|
|
2745
2699
|
throw await de_ReplicationGroupNotFoundFaultRes(parsedOutput, context);
|
|
2746
2700
|
default:
|
|
2747
2701
|
const parsedBody = parsedOutput.body;
|
|
2748
|
-
throwDefaultError({
|
|
2702
|
+
return throwDefaultError({
|
|
2749
2703
|
output,
|
|
2750
2704
|
parsedBody: parsedBody.Error,
|
|
2751
|
-
exceptionCtor: __BaseException,
|
|
2752
2705
|
errorCode,
|
|
2753
2706
|
});
|
|
2754
2707
|
}
|
|
@@ -2764,7 +2717,7 @@ export const de_ListAllowedNodeTypeModificationsCommand = async (output, context
|
|
|
2764
2717
|
$metadata: deserializeMetadata(output),
|
|
2765
2718
|
...contents,
|
|
2766
2719
|
};
|
|
2767
|
-
return
|
|
2720
|
+
return response;
|
|
2768
2721
|
};
|
|
2769
2722
|
const de_ListAllowedNodeTypeModificationsCommandError = async (output, context) => {
|
|
2770
2723
|
const parsedOutput = {
|
|
@@ -2787,10 +2740,9 @@ const de_ListAllowedNodeTypeModificationsCommandError = async (output, context)
|
|
|
2787
2740
|
throw await de_ReplicationGroupNotFoundFaultRes(parsedOutput, context);
|
|
2788
2741
|
default:
|
|
2789
2742
|
const parsedBody = parsedOutput.body;
|
|
2790
|
-
throwDefaultError({
|
|
2743
|
+
return throwDefaultError({
|
|
2791
2744
|
output,
|
|
2792
2745
|
parsedBody: parsedBody.Error,
|
|
2793
|
-
exceptionCtor: __BaseException,
|
|
2794
2746
|
errorCode,
|
|
2795
2747
|
});
|
|
2796
2748
|
}
|
|
@@ -2806,7 +2758,7 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
2806
2758
|
$metadata: deserializeMetadata(output),
|
|
2807
2759
|
...contents,
|
|
2808
2760
|
};
|
|
2809
|
-
return
|
|
2761
|
+
return response;
|
|
2810
2762
|
};
|
|
2811
2763
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
2812
2764
|
const parsedOutput = {
|
|
@@ -2850,10 +2802,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
2850
2802
|
throw await de_UserNotFoundFaultRes(parsedOutput, context);
|
|
2851
2803
|
default:
|
|
2852
2804
|
const parsedBody = parsedOutput.body;
|
|
2853
|
-
throwDefaultError({
|
|
2805
|
+
return throwDefaultError({
|
|
2854
2806
|
output,
|
|
2855
2807
|
parsedBody: parsedBody.Error,
|
|
2856
|
-
exceptionCtor: __BaseException,
|
|
2857
2808
|
errorCode,
|
|
2858
2809
|
});
|
|
2859
2810
|
}
|
|
@@ -2869,7 +2820,7 @@ export const de_ModifyCacheClusterCommand = async (output, context) => {
|
|
|
2869
2820
|
$metadata: deserializeMetadata(output),
|
|
2870
2821
|
...contents,
|
|
2871
2822
|
};
|
|
2872
|
-
return
|
|
2823
|
+
return response;
|
|
2873
2824
|
};
|
|
2874
2825
|
const de_ModifyCacheClusterCommandError = async (output, context) => {
|
|
2875
2826
|
const parsedOutput = {
|
|
@@ -2913,10 +2864,9 @@ const de_ModifyCacheClusterCommandError = async (output, context) => {
|
|
|
2913
2864
|
throw await de_NodeQuotaForCustomerExceededFaultRes(parsedOutput, context);
|
|
2914
2865
|
default:
|
|
2915
2866
|
const parsedBody = parsedOutput.body;
|
|
2916
|
-
throwDefaultError({
|
|
2867
|
+
return throwDefaultError({
|
|
2917
2868
|
output,
|
|
2918
2869
|
parsedBody: parsedBody.Error,
|
|
2919
|
-
exceptionCtor: __BaseException,
|
|
2920
2870
|
errorCode,
|
|
2921
2871
|
});
|
|
2922
2872
|
}
|
|
@@ -2932,7 +2882,7 @@ export const de_ModifyCacheParameterGroupCommand = async (output, context) => {
|
|
|
2932
2882
|
$metadata: deserializeMetadata(output),
|
|
2933
2883
|
...contents,
|
|
2934
2884
|
};
|
|
2935
|
-
return
|
|
2885
|
+
return response;
|
|
2936
2886
|
};
|
|
2937
2887
|
const de_ModifyCacheParameterGroupCommandError = async (output, context) => {
|
|
2938
2888
|
const parsedOutput = {
|
|
@@ -2958,10 +2908,9 @@ const de_ModifyCacheParameterGroupCommandError = async (output, context) => {
|
|
|
2958
2908
|
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2959
2909
|
default:
|
|
2960
2910
|
const parsedBody = parsedOutput.body;
|
|
2961
|
-
throwDefaultError({
|
|
2911
|
+
return throwDefaultError({
|
|
2962
2912
|
output,
|
|
2963
2913
|
parsedBody: parsedBody.Error,
|
|
2964
|
-
exceptionCtor: __BaseException,
|
|
2965
2914
|
errorCode,
|
|
2966
2915
|
});
|
|
2967
2916
|
}
|
|
@@ -2977,7 +2926,7 @@ export const de_ModifyCacheSubnetGroupCommand = async (output, context) => {
|
|
|
2977
2926
|
$metadata: deserializeMetadata(output),
|
|
2978
2927
|
...contents,
|
|
2979
2928
|
};
|
|
2980
|
-
return
|
|
2929
|
+
return response;
|
|
2981
2930
|
};
|
|
2982
2931
|
const de_ModifyCacheSubnetGroupCommandError = async (output, context) => {
|
|
2983
2932
|
const parsedOutput = {
|
|
@@ -3003,10 +2952,9 @@ const de_ModifyCacheSubnetGroupCommandError = async (output, context) => {
|
|
|
3003
2952
|
throw await de_SubnetNotAllowedFaultRes(parsedOutput, context);
|
|
3004
2953
|
default:
|
|
3005
2954
|
const parsedBody = parsedOutput.body;
|
|
3006
|
-
throwDefaultError({
|
|
2955
|
+
return throwDefaultError({
|
|
3007
2956
|
output,
|
|
3008
2957
|
parsedBody: parsedBody.Error,
|
|
3009
|
-
exceptionCtor: __BaseException,
|
|
3010
2958
|
errorCode,
|
|
3011
2959
|
});
|
|
3012
2960
|
}
|
|
@@ -3022,7 +2970,7 @@ export const de_ModifyGlobalReplicationGroupCommand = async (output, context) =>
|
|
|
3022
2970
|
$metadata: deserializeMetadata(output),
|
|
3023
2971
|
...contents,
|
|
3024
2972
|
};
|
|
3025
|
-
return
|
|
2973
|
+
return response;
|
|
3026
2974
|
};
|
|
3027
2975
|
const de_ModifyGlobalReplicationGroupCommandError = async (output, context) => {
|
|
3028
2976
|
const parsedOutput = {
|
|
@@ -3042,10 +2990,9 @@ const de_ModifyGlobalReplicationGroupCommandError = async (output, context) => {
|
|
|
3042
2990
|
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3043
2991
|
default:
|
|
3044
2992
|
const parsedBody = parsedOutput.body;
|
|
3045
|
-
throwDefaultError({
|
|
2993
|
+
return throwDefaultError({
|
|
3046
2994
|
output,
|
|
3047
2995
|
parsedBody: parsedBody.Error,
|
|
3048
|
-
exceptionCtor: __BaseException,
|
|
3049
2996
|
errorCode,
|
|
3050
2997
|
});
|
|
3051
2998
|
}
|
|
@@ -3061,7 +3008,7 @@ export const de_ModifyReplicationGroupCommand = async (output, context) => {
|
|
|
3061
3008
|
$metadata: deserializeMetadata(output),
|
|
3062
3009
|
...contents,
|
|
3063
3010
|
};
|
|
3064
|
-
return
|
|
3011
|
+
return response;
|
|
3065
3012
|
};
|
|
3066
3013
|
const de_ModifyReplicationGroupCommandError = async (output, context) => {
|
|
3067
3014
|
const parsedOutput = {
|
|
@@ -3120,10 +3067,9 @@ const de_ModifyReplicationGroupCommandError = async (output, context) => {
|
|
|
3120
3067
|
throw await de_UserGroupNotFoundFaultRes(parsedOutput, context);
|
|
3121
3068
|
default:
|
|
3122
3069
|
const parsedBody = parsedOutput.body;
|
|
3123
|
-
throwDefaultError({
|
|
3070
|
+
return throwDefaultError({
|
|
3124
3071
|
output,
|
|
3125
3072
|
parsedBody: parsedBody.Error,
|
|
3126
|
-
exceptionCtor: __BaseException,
|
|
3127
3073
|
errorCode,
|
|
3128
3074
|
});
|
|
3129
3075
|
}
|
|
@@ -3139,7 +3085,7 @@ export const de_ModifyReplicationGroupShardConfigurationCommand = async (output,
|
|
|
3139
3085
|
$metadata: deserializeMetadata(output),
|
|
3140
3086
|
...contents,
|
|
3141
3087
|
};
|
|
3142
|
-
return
|
|
3088
|
+
return response;
|
|
3143
3089
|
};
|
|
3144
3090
|
const de_ModifyReplicationGroupShardConfigurationCommandError = async (output, context) => {
|
|
3145
3091
|
const parsedOutput = {
|
|
@@ -3180,10 +3126,9 @@ const de_ModifyReplicationGroupShardConfigurationCommandError = async (output, c
|
|
|
3180
3126
|
throw await de_ReplicationGroupNotFoundFaultRes(parsedOutput, context);
|
|
3181
3127
|
default:
|
|
3182
3128
|
const parsedBody = parsedOutput.body;
|
|
3183
|
-
throwDefaultError({
|
|
3129
|
+
return throwDefaultError({
|
|
3184
3130
|
output,
|
|
3185
3131
|
parsedBody: parsedBody.Error,
|
|
3186
|
-
exceptionCtor: __BaseException,
|
|
3187
3132
|
errorCode,
|
|
3188
3133
|
});
|
|
3189
3134
|
}
|
|
@@ -3199,7 +3144,7 @@ export const de_ModifyUserCommand = async (output, context) => {
|
|
|
3199
3144
|
$metadata: deserializeMetadata(output),
|
|
3200
3145
|
...contents,
|
|
3201
3146
|
};
|
|
3202
|
-
return
|
|
3147
|
+
return response;
|
|
3203
3148
|
};
|
|
3204
3149
|
const de_ModifyUserCommandError = async (output, context) => {
|
|
3205
3150
|
const parsedOutput = {
|
|
@@ -3225,10 +3170,9 @@ const de_ModifyUserCommandError = async (output, context) => {
|
|
|
3225
3170
|
throw await de_UserNotFoundFaultRes(parsedOutput, context);
|
|
3226
3171
|
default:
|
|
3227
3172
|
const parsedBody = parsedOutput.body;
|
|
3228
|
-
throwDefaultError({
|
|
3173
|
+
return throwDefaultError({
|
|
3229
3174
|
output,
|
|
3230
3175
|
parsedBody: parsedBody.Error,
|
|
3231
|
-
exceptionCtor: __BaseException,
|
|
3232
3176
|
errorCode,
|
|
3233
3177
|
});
|
|
3234
3178
|
}
|
|
@@ -3244,7 +3188,7 @@ export const de_ModifyUserGroupCommand = async (output, context) => {
|
|
|
3244
3188
|
$metadata: deserializeMetadata(output),
|
|
3245
3189
|
...contents,
|
|
3246
3190
|
};
|
|
3247
|
-
return
|
|
3191
|
+
return response;
|
|
3248
3192
|
};
|
|
3249
3193
|
const de_ModifyUserGroupCommandError = async (output, context) => {
|
|
3250
3194
|
const parsedOutput = {
|
|
@@ -3279,10 +3223,9 @@ const de_ModifyUserGroupCommandError = async (output, context) => {
|
|
|
3279
3223
|
throw await de_UserNotFoundFaultRes(parsedOutput, context);
|
|
3280
3224
|
default:
|
|
3281
3225
|
const parsedBody = parsedOutput.body;
|
|
3282
|
-
throwDefaultError({
|
|
3226
|
+
return throwDefaultError({
|
|
3283
3227
|
output,
|
|
3284
3228
|
parsedBody: parsedBody.Error,
|
|
3285
|
-
exceptionCtor: __BaseException,
|
|
3286
3229
|
errorCode,
|
|
3287
3230
|
});
|
|
3288
3231
|
}
|
|
@@ -3298,7 +3241,7 @@ export const de_PurchaseReservedCacheNodesOfferingCommand = async (output, conte
|
|
|
3298
3241
|
$metadata: deserializeMetadata(output),
|
|
3299
3242
|
...contents,
|
|
3300
3243
|
};
|
|
3301
|
-
return
|
|
3244
|
+
return response;
|
|
3302
3245
|
};
|
|
3303
3246
|
const de_PurchaseReservedCacheNodesOfferingCommandError = async (output, context) => {
|
|
3304
3247
|
const parsedOutput = {
|
|
@@ -3327,10 +3270,9 @@ const de_PurchaseReservedCacheNodesOfferingCommandError = async (output, context
|
|
|
3327
3270
|
throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
|
|
3328
3271
|
default:
|
|
3329
3272
|
const parsedBody = parsedOutput.body;
|
|
3330
|
-
throwDefaultError({
|
|
3273
|
+
return throwDefaultError({
|
|
3331
3274
|
output,
|
|
3332
3275
|
parsedBody: parsedBody.Error,
|
|
3333
|
-
exceptionCtor: __BaseException,
|
|
3334
3276
|
errorCode,
|
|
3335
3277
|
});
|
|
3336
3278
|
}
|
|
@@ -3346,7 +3288,7 @@ export const de_RebalanceSlotsInGlobalReplicationGroupCommand = async (output, c
|
|
|
3346
3288
|
$metadata: deserializeMetadata(output),
|
|
3347
3289
|
...contents,
|
|
3348
3290
|
};
|
|
3349
|
-
return
|
|
3291
|
+
return response;
|
|
3350
3292
|
};
|
|
3351
3293
|
const de_RebalanceSlotsInGlobalReplicationGroupCommandError = async (output, context) => {
|
|
3352
3294
|
const parsedOutput = {
|
|
@@ -3366,10 +3308,9 @@ const de_RebalanceSlotsInGlobalReplicationGroupCommandError = async (output, con
|
|
|
3366
3308
|
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3367
3309
|
default:
|
|
3368
3310
|
const parsedBody = parsedOutput.body;
|
|
3369
|
-
throwDefaultError({
|
|
3311
|
+
return throwDefaultError({
|
|
3370
3312
|
output,
|
|
3371
3313
|
parsedBody: parsedBody.Error,
|
|
3372
|
-
exceptionCtor: __BaseException,
|
|
3373
3314
|
errorCode,
|
|
3374
3315
|
});
|
|
3375
3316
|
}
|
|
@@ -3385,7 +3326,7 @@ export const de_RebootCacheClusterCommand = async (output, context) => {
|
|
|
3385
3326
|
$metadata: deserializeMetadata(output),
|
|
3386
3327
|
...contents,
|
|
3387
3328
|
};
|
|
3388
|
-
return
|
|
3329
|
+
return response;
|
|
3389
3330
|
};
|
|
3390
3331
|
const de_RebootCacheClusterCommandError = async (output, context) => {
|
|
3391
3332
|
const parsedOutput = {
|
|
@@ -3402,10 +3343,9 @@ const de_RebootCacheClusterCommandError = async (output, context) => {
|
|
|
3402
3343
|
throw await de_InvalidCacheClusterStateFaultRes(parsedOutput, context);
|
|
3403
3344
|
default:
|
|
3404
3345
|
const parsedBody = parsedOutput.body;
|
|
3405
|
-
throwDefaultError({
|
|
3346
|
+
return throwDefaultError({
|
|
3406
3347
|
output,
|
|
3407
3348
|
parsedBody: parsedBody.Error,
|
|
3408
|
-
exceptionCtor: __BaseException,
|
|
3409
3349
|
errorCode,
|
|
3410
3350
|
});
|
|
3411
3351
|
}
|
|
@@ -3421,7 +3361,7 @@ export const de_RemoveTagsFromResourceCommand = async (output, context) => {
|
|
|
3421
3361
|
$metadata: deserializeMetadata(output),
|
|
3422
3362
|
...contents,
|
|
3423
3363
|
};
|
|
3424
|
-
return
|
|
3364
|
+
return response;
|
|
3425
3365
|
};
|
|
3426
3366
|
const de_RemoveTagsFromResourceCommandError = async (output, context) => {
|
|
3427
3367
|
const parsedOutput = {
|
|
@@ -3468,10 +3408,9 @@ const de_RemoveTagsFromResourceCommandError = async (output, context) => {
|
|
|
3468
3408
|
throw await de_UserNotFoundFaultRes(parsedOutput, context);
|
|
3469
3409
|
default:
|
|
3470
3410
|
const parsedBody = parsedOutput.body;
|
|
3471
|
-
throwDefaultError({
|
|
3411
|
+
return throwDefaultError({
|
|
3472
3412
|
output,
|
|
3473
3413
|
parsedBody: parsedBody.Error,
|
|
3474
|
-
exceptionCtor: __BaseException,
|
|
3475
3414
|
errorCode,
|
|
3476
3415
|
});
|
|
3477
3416
|
}
|
|
@@ -3487,7 +3426,7 @@ export const de_ResetCacheParameterGroupCommand = async (output, context) => {
|
|
|
3487
3426
|
$metadata: deserializeMetadata(output),
|
|
3488
3427
|
...contents,
|
|
3489
3428
|
};
|
|
3490
|
-
return
|
|
3429
|
+
return response;
|
|
3491
3430
|
};
|
|
3492
3431
|
const de_ResetCacheParameterGroupCommandError = async (output, context) => {
|
|
3493
3432
|
const parsedOutput = {
|
|
@@ -3513,10 +3452,9 @@ const de_ResetCacheParameterGroupCommandError = async (output, context) => {
|
|
|
3513
3452
|
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3514
3453
|
default:
|
|
3515
3454
|
const parsedBody = parsedOutput.body;
|
|
3516
|
-
throwDefaultError({
|
|
3455
|
+
return throwDefaultError({
|
|
3517
3456
|
output,
|
|
3518
3457
|
parsedBody: parsedBody.Error,
|
|
3519
|
-
exceptionCtor: __BaseException,
|
|
3520
3458
|
errorCode,
|
|
3521
3459
|
});
|
|
3522
3460
|
}
|
|
@@ -3532,7 +3470,7 @@ export const de_RevokeCacheSecurityGroupIngressCommand = async (output, context)
|
|
|
3532
3470
|
$metadata: deserializeMetadata(output),
|
|
3533
3471
|
...contents,
|
|
3534
3472
|
};
|
|
3535
|
-
return
|
|
3473
|
+
return response;
|
|
3536
3474
|
};
|
|
3537
3475
|
const de_RevokeCacheSecurityGroupIngressCommandError = async (output, context) => {
|
|
3538
3476
|
const parsedOutput = {
|
|
@@ -3558,10 +3496,9 @@ const de_RevokeCacheSecurityGroupIngressCommandError = async (output, context) =
|
|
|
3558
3496
|
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3559
3497
|
default:
|
|
3560
3498
|
const parsedBody = parsedOutput.body;
|
|
3561
|
-
throwDefaultError({
|
|
3499
|
+
return throwDefaultError({
|
|
3562
3500
|
output,
|
|
3563
3501
|
parsedBody: parsedBody.Error,
|
|
3564
|
-
exceptionCtor: __BaseException,
|
|
3565
3502
|
errorCode,
|
|
3566
3503
|
});
|
|
3567
3504
|
}
|
|
@@ -3577,7 +3514,7 @@ export const de_StartMigrationCommand = async (output, context) => {
|
|
|
3577
3514
|
$metadata: deserializeMetadata(output),
|
|
3578
3515
|
...contents,
|
|
3579
3516
|
};
|
|
3580
|
-
return
|
|
3517
|
+
return response;
|
|
3581
3518
|
};
|
|
3582
3519
|
const de_StartMigrationCommandError = async (output, context) => {
|
|
3583
3520
|
const parsedOutput = {
|
|
@@ -3600,10 +3537,9 @@ const de_StartMigrationCommandError = async (output, context) => {
|
|
|
3600
3537
|
throw await de_ReplicationGroupNotFoundFaultRes(parsedOutput, context);
|
|
3601
3538
|
default:
|
|
3602
3539
|
const parsedBody = parsedOutput.body;
|
|
3603
|
-
throwDefaultError({
|
|
3540
|
+
return throwDefaultError({
|
|
3604
3541
|
output,
|
|
3605
3542
|
parsedBody: parsedBody.Error,
|
|
3606
|
-
exceptionCtor: __BaseException,
|
|
3607
3543
|
errorCode,
|
|
3608
3544
|
});
|
|
3609
3545
|
}
|
|
@@ -3619,7 +3555,7 @@ export const de_TestFailoverCommand = async (output, context) => {
|
|
|
3619
3555
|
$metadata: deserializeMetadata(output),
|
|
3620
3556
|
...contents,
|
|
3621
3557
|
};
|
|
3622
|
-
return
|
|
3558
|
+
return response;
|
|
3623
3559
|
};
|
|
3624
3560
|
const de_TestFailoverCommandError = async (output, context) => {
|
|
3625
3561
|
const parsedOutput = {
|
|
@@ -3657,10 +3593,9 @@ const de_TestFailoverCommandError = async (output, context) => {
|
|
|
3657
3593
|
throw await de_TestFailoverNotAvailableFaultRes(parsedOutput, context);
|
|
3658
3594
|
default:
|
|
3659
3595
|
const parsedBody = parsedOutput.body;
|
|
3660
|
-
throwDefaultError({
|
|
3596
|
+
return throwDefaultError({
|
|
3661
3597
|
output,
|
|
3662
3598
|
parsedBody: parsedBody.Error,
|
|
3663
|
-
exceptionCtor: __BaseException,
|
|
3664
3599
|
errorCode,
|
|
3665
3600
|
});
|
|
3666
3601
|
}
|
|
@@ -9370,6 +9305,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
9370
9305
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
9371
9306
|
};
|
|
9372
9307
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
9308
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
9373
9309
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
9374
9310
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
9375
9311
|
const contents = {
|