@aws-sdk/client-docdb 3.312.0 → 3.316.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/DocDB.js +57 -742
- package/dist-cjs/protocols/Aws_query.js +107 -159
- package/dist-es/DocDB.js +57 -742
- package/dist-es/protocols/Aws_query.js +108 -160
- package/dist-types/DocDB.d.ts +60 -233
- package/dist-types/ts3.4/DocDB.d.ts +2 -1
- package/package.json +6 -6
|
@@ -602,7 +602,7 @@ const de_AddSourceIdentifierToSubscriptionCommand = async (output, context) => {
|
|
|
602
602
|
$metadata: deserializeMetadata(output),
|
|
603
603
|
...contents,
|
|
604
604
|
};
|
|
605
|
-
return
|
|
605
|
+
return response;
|
|
606
606
|
};
|
|
607
607
|
exports.de_AddSourceIdentifierToSubscriptionCommand = de_AddSourceIdentifierToSubscriptionCommand;
|
|
608
608
|
const de_AddSourceIdentifierToSubscriptionCommandError = async (output, context) => {
|
|
@@ -620,10 +620,9 @@ const de_AddSourceIdentifierToSubscriptionCommandError = async (output, context)
|
|
|
620
620
|
throw await de_SubscriptionNotFoundFaultRes(parsedOutput, context);
|
|
621
621
|
default:
|
|
622
622
|
const parsedBody = parsedOutput.body;
|
|
623
|
-
|
|
623
|
+
return throwDefaultError({
|
|
624
624
|
output,
|
|
625
625
|
parsedBody: parsedBody.Error,
|
|
626
|
-
exceptionCtor: DocDBServiceException_1.DocDBServiceException,
|
|
627
626
|
errorCode,
|
|
628
627
|
});
|
|
629
628
|
}
|
|
@@ -636,7 +635,7 @@ const de_AddTagsToResourceCommand = async (output, context) => {
|
|
|
636
635
|
const response = {
|
|
637
636
|
$metadata: deserializeMetadata(output),
|
|
638
637
|
};
|
|
639
|
-
return
|
|
638
|
+
return response;
|
|
640
639
|
};
|
|
641
640
|
exports.de_AddTagsToResourceCommand = de_AddTagsToResourceCommand;
|
|
642
641
|
const de_AddTagsToResourceCommandError = async (output, context) => {
|
|
@@ -657,10 +656,9 @@ const de_AddTagsToResourceCommandError = async (output, context) => {
|
|
|
657
656
|
throw await de_DBSnapshotNotFoundFaultRes(parsedOutput, context);
|
|
658
657
|
default:
|
|
659
658
|
const parsedBody = parsedOutput.body;
|
|
660
|
-
|
|
659
|
+
return throwDefaultError({
|
|
661
660
|
output,
|
|
662
661
|
parsedBody: parsedBody.Error,
|
|
663
|
-
exceptionCtor: DocDBServiceException_1.DocDBServiceException,
|
|
664
662
|
errorCode,
|
|
665
663
|
});
|
|
666
664
|
}
|
|
@@ -676,7 +674,7 @@ const de_ApplyPendingMaintenanceActionCommand = async (output, context) => {
|
|
|
676
674
|
$metadata: deserializeMetadata(output),
|
|
677
675
|
...contents,
|
|
678
676
|
};
|
|
679
|
-
return
|
|
677
|
+
return response;
|
|
680
678
|
};
|
|
681
679
|
exports.de_ApplyPendingMaintenanceActionCommand = de_ApplyPendingMaintenanceActionCommand;
|
|
682
680
|
const de_ApplyPendingMaintenanceActionCommandError = async (output, context) => {
|
|
@@ -697,10 +695,9 @@ const de_ApplyPendingMaintenanceActionCommandError = async (output, context) =>
|
|
|
697
695
|
throw await de_ResourceNotFoundFaultRes(parsedOutput, context);
|
|
698
696
|
default:
|
|
699
697
|
const parsedBody = parsedOutput.body;
|
|
700
|
-
|
|
698
|
+
return throwDefaultError({
|
|
701
699
|
output,
|
|
702
700
|
parsedBody: parsedBody.Error,
|
|
703
|
-
exceptionCtor: DocDBServiceException_1.DocDBServiceException,
|
|
704
701
|
errorCode,
|
|
705
702
|
});
|
|
706
703
|
}
|
|
@@ -716,7 +713,7 @@ const de_CopyDBClusterParameterGroupCommand = async (output, context) => {
|
|
|
716
713
|
$metadata: deserializeMetadata(output),
|
|
717
714
|
...contents,
|
|
718
715
|
};
|
|
719
|
-
return
|
|
716
|
+
return response;
|
|
720
717
|
};
|
|
721
718
|
exports.de_CopyDBClusterParameterGroupCommand = de_CopyDBClusterParameterGroupCommand;
|
|
722
719
|
const de_CopyDBClusterParameterGroupCommandError = async (output, context) => {
|
|
@@ -737,10 +734,9 @@ const de_CopyDBClusterParameterGroupCommandError = async (output, context) => {
|
|
|
737
734
|
throw await de_DBParameterGroupQuotaExceededFaultRes(parsedOutput, context);
|
|
738
735
|
default:
|
|
739
736
|
const parsedBody = parsedOutput.body;
|
|
740
|
-
|
|
737
|
+
return throwDefaultError({
|
|
741
738
|
output,
|
|
742
739
|
parsedBody: parsedBody.Error,
|
|
743
|
-
exceptionCtor: DocDBServiceException_1.DocDBServiceException,
|
|
744
740
|
errorCode,
|
|
745
741
|
});
|
|
746
742
|
}
|
|
@@ -756,7 +752,7 @@ const de_CopyDBClusterSnapshotCommand = async (output, context) => {
|
|
|
756
752
|
$metadata: deserializeMetadata(output),
|
|
757
753
|
...contents,
|
|
758
754
|
};
|
|
759
|
-
return
|
|
755
|
+
return response;
|
|
760
756
|
};
|
|
761
757
|
exports.de_CopyDBClusterSnapshotCommand = de_CopyDBClusterSnapshotCommand;
|
|
762
758
|
const de_CopyDBClusterSnapshotCommandError = async (output, context) => {
|
|
@@ -786,10 +782,9 @@ const de_CopyDBClusterSnapshotCommandError = async (output, context) => {
|
|
|
786
782
|
throw await de_SnapshotQuotaExceededFaultRes(parsedOutput, context);
|
|
787
783
|
default:
|
|
788
784
|
const parsedBody = parsedOutput.body;
|
|
789
|
-
|
|
785
|
+
return throwDefaultError({
|
|
790
786
|
output,
|
|
791
787
|
parsedBody: parsedBody.Error,
|
|
792
|
-
exceptionCtor: DocDBServiceException_1.DocDBServiceException,
|
|
793
788
|
errorCode,
|
|
794
789
|
});
|
|
795
790
|
}
|
|
@@ -805,7 +800,7 @@ const de_CreateDBClusterCommand = async (output, context) => {
|
|
|
805
800
|
$metadata: deserializeMetadata(output),
|
|
806
801
|
...contents,
|
|
807
802
|
};
|
|
808
|
-
return
|
|
803
|
+
return response;
|
|
809
804
|
};
|
|
810
805
|
exports.de_CreateDBClusterCommand = de_CreateDBClusterCommand;
|
|
811
806
|
const de_CreateDBClusterCommandError = async (output, context) => {
|
|
@@ -868,10 +863,9 @@ const de_CreateDBClusterCommandError = async (output, context) => {
|
|
|
868
863
|
throw await de_StorageQuotaExceededFaultRes(parsedOutput, context);
|
|
869
864
|
default:
|
|
870
865
|
const parsedBody = parsedOutput.body;
|
|
871
|
-
|
|
866
|
+
return throwDefaultError({
|
|
872
867
|
output,
|
|
873
868
|
parsedBody: parsedBody.Error,
|
|
874
|
-
exceptionCtor: DocDBServiceException_1.DocDBServiceException,
|
|
875
869
|
errorCode,
|
|
876
870
|
});
|
|
877
871
|
}
|
|
@@ -887,7 +881,7 @@ const de_CreateDBClusterParameterGroupCommand = async (output, context) => {
|
|
|
887
881
|
$metadata: deserializeMetadata(output),
|
|
888
882
|
...contents,
|
|
889
883
|
};
|
|
890
|
-
return
|
|
884
|
+
return response;
|
|
891
885
|
};
|
|
892
886
|
exports.de_CreateDBClusterParameterGroupCommand = de_CreateDBClusterParameterGroupCommand;
|
|
893
887
|
const de_CreateDBClusterParameterGroupCommandError = async (output, context) => {
|
|
@@ -905,10 +899,9 @@ const de_CreateDBClusterParameterGroupCommandError = async (output, context) =>
|
|
|
905
899
|
throw await de_DBParameterGroupQuotaExceededFaultRes(parsedOutput, context);
|
|
906
900
|
default:
|
|
907
901
|
const parsedBody = parsedOutput.body;
|
|
908
|
-
|
|
902
|
+
return throwDefaultError({
|
|
909
903
|
output,
|
|
910
904
|
parsedBody: parsedBody.Error,
|
|
911
|
-
exceptionCtor: DocDBServiceException_1.DocDBServiceException,
|
|
912
905
|
errorCode,
|
|
913
906
|
});
|
|
914
907
|
}
|
|
@@ -924,7 +917,7 @@ const de_CreateDBClusterSnapshotCommand = async (output, context) => {
|
|
|
924
917
|
$metadata: deserializeMetadata(output),
|
|
925
918
|
...contents,
|
|
926
919
|
};
|
|
927
|
-
return
|
|
920
|
+
return response;
|
|
928
921
|
};
|
|
929
922
|
exports.de_CreateDBClusterSnapshotCommand = de_CreateDBClusterSnapshotCommand;
|
|
930
923
|
const de_CreateDBClusterSnapshotCommandError = async (output, context) => {
|
|
@@ -951,10 +944,9 @@ const de_CreateDBClusterSnapshotCommandError = async (output, context) => {
|
|
|
951
944
|
throw await de_SnapshotQuotaExceededFaultRes(parsedOutput, context);
|
|
952
945
|
default:
|
|
953
946
|
const parsedBody = parsedOutput.body;
|
|
954
|
-
|
|
947
|
+
return throwDefaultError({
|
|
955
948
|
output,
|
|
956
949
|
parsedBody: parsedBody.Error,
|
|
957
|
-
exceptionCtor: DocDBServiceException_1.DocDBServiceException,
|
|
958
950
|
errorCode,
|
|
959
951
|
});
|
|
960
952
|
}
|
|
@@ -970,7 +962,7 @@ const de_CreateDBInstanceCommand = async (output, context) => {
|
|
|
970
962
|
$metadata: deserializeMetadata(output),
|
|
971
963
|
...contents,
|
|
972
964
|
};
|
|
973
|
-
return
|
|
965
|
+
return response;
|
|
974
966
|
};
|
|
975
967
|
exports.de_CreateDBInstanceCommand = de_CreateDBInstanceCommand;
|
|
976
968
|
const de_CreateDBInstanceCommandError = async (output, context) => {
|
|
@@ -1027,10 +1019,9 @@ const de_CreateDBInstanceCommandError = async (output, context) => {
|
|
|
1027
1019
|
throw await de_StorageTypeNotSupportedFaultRes(parsedOutput, context);
|
|
1028
1020
|
default:
|
|
1029
1021
|
const parsedBody = parsedOutput.body;
|
|
1030
|
-
|
|
1022
|
+
return throwDefaultError({
|
|
1031
1023
|
output,
|
|
1032
1024
|
parsedBody: parsedBody.Error,
|
|
1033
|
-
exceptionCtor: DocDBServiceException_1.DocDBServiceException,
|
|
1034
1025
|
errorCode,
|
|
1035
1026
|
});
|
|
1036
1027
|
}
|
|
@@ -1046,7 +1037,7 @@ const de_CreateDBSubnetGroupCommand = async (output, context) => {
|
|
|
1046
1037
|
$metadata: deserializeMetadata(output),
|
|
1047
1038
|
...contents,
|
|
1048
1039
|
};
|
|
1049
|
-
return
|
|
1040
|
+
return response;
|
|
1050
1041
|
};
|
|
1051
1042
|
exports.de_CreateDBSubnetGroupCommand = de_CreateDBSubnetGroupCommand;
|
|
1052
1043
|
const de_CreateDBSubnetGroupCommandError = async (output, context) => {
|
|
@@ -1073,10 +1064,9 @@ const de_CreateDBSubnetGroupCommandError = async (output, context) => {
|
|
|
1073
1064
|
throw await de_InvalidSubnetRes(parsedOutput, context);
|
|
1074
1065
|
default:
|
|
1075
1066
|
const parsedBody = parsedOutput.body;
|
|
1076
|
-
|
|
1067
|
+
return throwDefaultError({
|
|
1077
1068
|
output,
|
|
1078
1069
|
parsedBody: parsedBody.Error,
|
|
1079
|
-
exceptionCtor: DocDBServiceException_1.DocDBServiceException,
|
|
1080
1070
|
errorCode,
|
|
1081
1071
|
});
|
|
1082
1072
|
}
|
|
@@ -1092,7 +1082,7 @@ const de_CreateEventSubscriptionCommand = async (output, context) => {
|
|
|
1092
1082
|
$metadata: deserializeMetadata(output),
|
|
1093
1083
|
...contents,
|
|
1094
1084
|
};
|
|
1095
|
-
return
|
|
1085
|
+
return response;
|
|
1096
1086
|
};
|
|
1097
1087
|
exports.de_CreateEventSubscriptionCommand = de_CreateEventSubscriptionCommand;
|
|
1098
1088
|
const de_CreateEventSubscriptionCommandError = async (output, context) => {
|
|
@@ -1125,10 +1115,9 @@ const de_CreateEventSubscriptionCommandError = async (output, context) => {
|
|
|
1125
1115
|
throw await de_SubscriptionCategoryNotFoundFaultRes(parsedOutput, context);
|
|
1126
1116
|
default:
|
|
1127
1117
|
const parsedBody = parsedOutput.body;
|
|
1128
|
-
|
|
1118
|
+
return throwDefaultError({
|
|
1129
1119
|
output,
|
|
1130
1120
|
parsedBody: parsedBody.Error,
|
|
1131
|
-
exceptionCtor: DocDBServiceException_1.DocDBServiceException,
|
|
1132
1121
|
errorCode,
|
|
1133
1122
|
});
|
|
1134
1123
|
}
|
|
@@ -1144,7 +1133,7 @@ const de_CreateGlobalClusterCommand = async (output, context) => {
|
|
|
1144
1133
|
$metadata: deserializeMetadata(output),
|
|
1145
1134
|
...contents,
|
|
1146
1135
|
};
|
|
1147
|
-
return
|
|
1136
|
+
return response;
|
|
1148
1137
|
};
|
|
1149
1138
|
exports.de_CreateGlobalClusterCommand = de_CreateGlobalClusterCommand;
|
|
1150
1139
|
const de_CreateGlobalClusterCommandError = async (output, context) => {
|
|
@@ -1168,10 +1157,9 @@ const de_CreateGlobalClusterCommandError = async (output, context) => {
|
|
|
1168
1157
|
throw await de_InvalidDBClusterStateFaultRes(parsedOutput, context);
|
|
1169
1158
|
default:
|
|
1170
1159
|
const parsedBody = parsedOutput.body;
|
|
1171
|
-
|
|
1160
|
+
return throwDefaultError({
|
|
1172
1161
|
output,
|
|
1173
1162
|
parsedBody: parsedBody.Error,
|
|
1174
|
-
exceptionCtor: DocDBServiceException_1.DocDBServiceException,
|
|
1175
1163
|
errorCode,
|
|
1176
1164
|
});
|
|
1177
1165
|
}
|
|
@@ -1187,7 +1175,7 @@ const de_DeleteDBClusterCommand = async (output, context) => {
|
|
|
1187
1175
|
$metadata: deserializeMetadata(output),
|
|
1188
1176
|
...contents,
|
|
1189
1177
|
};
|
|
1190
|
-
return
|
|
1178
|
+
return response;
|
|
1191
1179
|
};
|
|
1192
1180
|
exports.de_DeleteDBClusterCommand = de_DeleteDBClusterCommand;
|
|
1193
1181
|
const de_DeleteDBClusterCommandError = async (output, context) => {
|
|
@@ -1214,10 +1202,9 @@ const de_DeleteDBClusterCommandError = async (output, context) => {
|
|
|
1214
1202
|
throw await de_SnapshotQuotaExceededFaultRes(parsedOutput, context);
|
|
1215
1203
|
default:
|
|
1216
1204
|
const parsedBody = parsedOutput.body;
|
|
1217
|
-
|
|
1205
|
+
return throwDefaultError({
|
|
1218
1206
|
output,
|
|
1219
1207
|
parsedBody: parsedBody.Error,
|
|
1220
|
-
exceptionCtor: DocDBServiceException_1.DocDBServiceException,
|
|
1221
1208
|
errorCode,
|
|
1222
1209
|
});
|
|
1223
1210
|
}
|
|
@@ -1230,7 +1217,7 @@ const de_DeleteDBClusterParameterGroupCommand = async (output, context) => {
|
|
|
1230
1217
|
const response = {
|
|
1231
1218
|
$metadata: deserializeMetadata(output),
|
|
1232
1219
|
};
|
|
1233
|
-
return
|
|
1220
|
+
return response;
|
|
1234
1221
|
};
|
|
1235
1222
|
exports.de_DeleteDBClusterParameterGroupCommand = de_DeleteDBClusterParameterGroupCommand;
|
|
1236
1223
|
const de_DeleteDBClusterParameterGroupCommandError = async (output, context) => {
|
|
@@ -1248,10 +1235,9 @@ const de_DeleteDBClusterParameterGroupCommandError = async (output, context) =>
|
|
|
1248
1235
|
throw await de_InvalidDBParameterGroupStateFaultRes(parsedOutput, context);
|
|
1249
1236
|
default:
|
|
1250
1237
|
const parsedBody = parsedOutput.body;
|
|
1251
|
-
|
|
1238
|
+
return throwDefaultError({
|
|
1252
1239
|
output,
|
|
1253
1240
|
parsedBody: parsedBody.Error,
|
|
1254
|
-
exceptionCtor: DocDBServiceException_1.DocDBServiceException,
|
|
1255
1241
|
errorCode,
|
|
1256
1242
|
});
|
|
1257
1243
|
}
|
|
@@ -1267,7 +1253,7 @@ const de_DeleteDBClusterSnapshotCommand = async (output, context) => {
|
|
|
1267
1253
|
$metadata: deserializeMetadata(output),
|
|
1268
1254
|
...contents,
|
|
1269
1255
|
};
|
|
1270
|
-
return
|
|
1256
|
+
return response;
|
|
1271
1257
|
};
|
|
1272
1258
|
exports.de_DeleteDBClusterSnapshotCommand = de_DeleteDBClusterSnapshotCommand;
|
|
1273
1259
|
const de_DeleteDBClusterSnapshotCommandError = async (output, context) => {
|
|
@@ -1285,10 +1271,9 @@ const de_DeleteDBClusterSnapshotCommandError = async (output, context) => {
|
|
|
1285
1271
|
throw await de_InvalidDBClusterSnapshotStateFaultRes(parsedOutput, context);
|
|
1286
1272
|
default:
|
|
1287
1273
|
const parsedBody = parsedOutput.body;
|
|
1288
|
-
|
|
1274
|
+
return throwDefaultError({
|
|
1289
1275
|
output,
|
|
1290
1276
|
parsedBody: parsedBody.Error,
|
|
1291
|
-
exceptionCtor: DocDBServiceException_1.DocDBServiceException,
|
|
1292
1277
|
errorCode,
|
|
1293
1278
|
});
|
|
1294
1279
|
}
|
|
@@ -1304,7 +1289,7 @@ const de_DeleteDBInstanceCommand = async (output, context) => {
|
|
|
1304
1289
|
$metadata: deserializeMetadata(output),
|
|
1305
1290
|
...contents,
|
|
1306
1291
|
};
|
|
1307
|
-
return
|
|
1292
|
+
return response;
|
|
1308
1293
|
};
|
|
1309
1294
|
exports.de_DeleteDBInstanceCommand = de_DeleteDBInstanceCommand;
|
|
1310
1295
|
const de_DeleteDBInstanceCommandError = async (output, context) => {
|
|
@@ -1331,10 +1316,9 @@ const de_DeleteDBInstanceCommandError = async (output, context) => {
|
|
|
1331
1316
|
throw await de_SnapshotQuotaExceededFaultRes(parsedOutput, context);
|
|
1332
1317
|
default:
|
|
1333
1318
|
const parsedBody = parsedOutput.body;
|
|
1334
|
-
|
|
1319
|
+
return throwDefaultError({
|
|
1335
1320
|
output,
|
|
1336
1321
|
parsedBody: parsedBody.Error,
|
|
1337
|
-
exceptionCtor: DocDBServiceException_1.DocDBServiceException,
|
|
1338
1322
|
errorCode,
|
|
1339
1323
|
});
|
|
1340
1324
|
}
|
|
@@ -1347,7 +1331,7 @@ const de_DeleteDBSubnetGroupCommand = async (output, context) => {
|
|
|
1347
1331
|
const response = {
|
|
1348
1332
|
$metadata: deserializeMetadata(output),
|
|
1349
1333
|
};
|
|
1350
|
-
return
|
|
1334
|
+
return response;
|
|
1351
1335
|
};
|
|
1352
1336
|
exports.de_DeleteDBSubnetGroupCommand = de_DeleteDBSubnetGroupCommand;
|
|
1353
1337
|
const de_DeleteDBSubnetGroupCommandError = async (output, context) => {
|
|
@@ -1368,10 +1352,9 @@ const de_DeleteDBSubnetGroupCommandError = async (output, context) => {
|
|
|
1368
1352
|
throw await de_InvalidDBSubnetStateFaultRes(parsedOutput, context);
|
|
1369
1353
|
default:
|
|
1370
1354
|
const parsedBody = parsedOutput.body;
|
|
1371
|
-
|
|
1355
|
+
return throwDefaultError({
|
|
1372
1356
|
output,
|
|
1373
1357
|
parsedBody: parsedBody.Error,
|
|
1374
|
-
exceptionCtor: DocDBServiceException_1.DocDBServiceException,
|
|
1375
1358
|
errorCode,
|
|
1376
1359
|
});
|
|
1377
1360
|
}
|
|
@@ -1387,7 +1370,7 @@ const de_DeleteEventSubscriptionCommand = async (output, context) => {
|
|
|
1387
1370
|
$metadata: deserializeMetadata(output),
|
|
1388
1371
|
...contents,
|
|
1389
1372
|
};
|
|
1390
|
-
return
|
|
1373
|
+
return response;
|
|
1391
1374
|
};
|
|
1392
1375
|
exports.de_DeleteEventSubscriptionCommand = de_DeleteEventSubscriptionCommand;
|
|
1393
1376
|
const de_DeleteEventSubscriptionCommandError = async (output, context) => {
|
|
@@ -1405,10 +1388,9 @@ const de_DeleteEventSubscriptionCommandError = async (output, context) => {
|
|
|
1405
1388
|
throw await de_SubscriptionNotFoundFaultRes(parsedOutput, context);
|
|
1406
1389
|
default:
|
|
1407
1390
|
const parsedBody = parsedOutput.body;
|
|
1408
|
-
|
|
1391
|
+
return throwDefaultError({
|
|
1409
1392
|
output,
|
|
1410
1393
|
parsedBody: parsedBody.Error,
|
|
1411
|
-
exceptionCtor: DocDBServiceException_1.DocDBServiceException,
|
|
1412
1394
|
errorCode,
|
|
1413
1395
|
});
|
|
1414
1396
|
}
|
|
@@ -1424,7 +1406,7 @@ const de_DeleteGlobalClusterCommand = async (output, context) => {
|
|
|
1424
1406
|
$metadata: deserializeMetadata(output),
|
|
1425
1407
|
...contents,
|
|
1426
1408
|
};
|
|
1427
|
-
return
|
|
1409
|
+
return response;
|
|
1428
1410
|
};
|
|
1429
1411
|
exports.de_DeleteGlobalClusterCommand = de_DeleteGlobalClusterCommand;
|
|
1430
1412
|
const de_DeleteGlobalClusterCommandError = async (output, context) => {
|
|
@@ -1442,10 +1424,9 @@ const de_DeleteGlobalClusterCommandError = async (output, context) => {
|
|
|
1442
1424
|
throw await de_InvalidGlobalClusterStateFaultRes(parsedOutput, context);
|
|
1443
1425
|
default:
|
|
1444
1426
|
const parsedBody = parsedOutput.body;
|
|
1445
|
-
|
|
1427
|
+
return throwDefaultError({
|
|
1446
1428
|
output,
|
|
1447
1429
|
parsedBody: parsedBody.Error,
|
|
1448
|
-
exceptionCtor: DocDBServiceException_1.DocDBServiceException,
|
|
1449
1430
|
errorCode,
|
|
1450
1431
|
});
|
|
1451
1432
|
}
|
|
@@ -1461,7 +1442,7 @@ const de_DescribeCertificatesCommand = async (output, context) => {
|
|
|
1461
1442
|
$metadata: deserializeMetadata(output),
|
|
1462
1443
|
...contents,
|
|
1463
1444
|
};
|
|
1464
|
-
return
|
|
1445
|
+
return response;
|
|
1465
1446
|
};
|
|
1466
1447
|
exports.de_DescribeCertificatesCommand = de_DescribeCertificatesCommand;
|
|
1467
1448
|
const de_DescribeCertificatesCommandError = async (output, context) => {
|
|
@@ -1476,10 +1457,9 @@ const de_DescribeCertificatesCommandError = async (output, context) => {
|
|
|
1476
1457
|
throw await de_CertificateNotFoundFaultRes(parsedOutput, context);
|
|
1477
1458
|
default:
|
|
1478
1459
|
const parsedBody = parsedOutput.body;
|
|
1479
|
-
|
|
1460
|
+
return throwDefaultError({
|
|
1480
1461
|
output,
|
|
1481
1462
|
parsedBody: parsedBody.Error,
|
|
1482
|
-
exceptionCtor: DocDBServiceException_1.DocDBServiceException,
|
|
1483
1463
|
errorCode,
|
|
1484
1464
|
});
|
|
1485
1465
|
}
|
|
@@ -1495,7 +1475,7 @@ const de_DescribeDBClusterParameterGroupsCommand = async (output, context) => {
|
|
|
1495
1475
|
$metadata: deserializeMetadata(output),
|
|
1496
1476
|
...contents,
|
|
1497
1477
|
};
|
|
1498
|
-
return
|
|
1478
|
+
return response;
|
|
1499
1479
|
};
|
|
1500
1480
|
exports.de_DescribeDBClusterParameterGroupsCommand = de_DescribeDBClusterParameterGroupsCommand;
|
|
1501
1481
|
const de_DescribeDBClusterParameterGroupsCommandError = async (output, context) => {
|
|
@@ -1510,10 +1490,9 @@ const de_DescribeDBClusterParameterGroupsCommandError = async (output, context)
|
|
|
1510
1490
|
throw await de_DBParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
1511
1491
|
default:
|
|
1512
1492
|
const parsedBody = parsedOutput.body;
|
|
1513
|
-
|
|
1493
|
+
return throwDefaultError({
|
|
1514
1494
|
output,
|
|
1515
1495
|
parsedBody: parsedBody.Error,
|
|
1516
|
-
exceptionCtor: DocDBServiceException_1.DocDBServiceException,
|
|
1517
1496
|
errorCode,
|
|
1518
1497
|
});
|
|
1519
1498
|
}
|
|
@@ -1529,7 +1508,7 @@ const de_DescribeDBClusterParametersCommand = async (output, context) => {
|
|
|
1529
1508
|
$metadata: deserializeMetadata(output),
|
|
1530
1509
|
...contents,
|
|
1531
1510
|
};
|
|
1532
|
-
return
|
|
1511
|
+
return response;
|
|
1533
1512
|
};
|
|
1534
1513
|
exports.de_DescribeDBClusterParametersCommand = de_DescribeDBClusterParametersCommand;
|
|
1535
1514
|
const de_DescribeDBClusterParametersCommandError = async (output, context) => {
|
|
@@ -1544,10 +1523,9 @@ const de_DescribeDBClusterParametersCommandError = async (output, context) => {
|
|
|
1544
1523
|
throw await de_DBParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
1545
1524
|
default:
|
|
1546
1525
|
const parsedBody = parsedOutput.body;
|
|
1547
|
-
|
|
1526
|
+
return throwDefaultError({
|
|
1548
1527
|
output,
|
|
1549
1528
|
parsedBody: parsedBody.Error,
|
|
1550
|
-
exceptionCtor: DocDBServiceException_1.DocDBServiceException,
|
|
1551
1529
|
errorCode,
|
|
1552
1530
|
});
|
|
1553
1531
|
}
|
|
@@ -1563,7 +1541,7 @@ const de_DescribeDBClustersCommand = async (output, context) => {
|
|
|
1563
1541
|
$metadata: deserializeMetadata(output),
|
|
1564
1542
|
...contents,
|
|
1565
1543
|
};
|
|
1566
|
-
return
|
|
1544
|
+
return response;
|
|
1567
1545
|
};
|
|
1568
1546
|
exports.de_DescribeDBClustersCommand = de_DescribeDBClustersCommand;
|
|
1569
1547
|
const de_DescribeDBClustersCommandError = async (output, context) => {
|
|
@@ -1578,10 +1556,9 @@ const de_DescribeDBClustersCommandError = async (output, context) => {
|
|
|
1578
1556
|
throw await de_DBClusterNotFoundFaultRes(parsedOutput, context);
|
|
1579
1557
|
default:
|
|
1580
1558
|
const parsedBody = parsedOutput.body;
|
|
1581
|
-
|
|
1559
|
+
return throwDefaultError({
|
|
1582
1560
|
output,
|
|
1583
1561
|
parsedBody: parsedBody.Error,
|
|
1584
|
-
exceptionCtor: DocDBServiceException_1.DocDBServiceException,
|
|
1585
1562
|
errorCode,
|
|
1586
1563
|
});
|
|
1587
1564
|
}
|
|
@@ -1597,7 +1574,7 @@ const de_DescribeDBClusterSnapshotAttributesCommand = async (output, context) =>
|
|
|
1597
1574
|
$metadata: deserializeMetadata(output),
|
|
1598
1575
|
...contents,
|
|
1599
1576
|
};
|
|
1600
|
-
return
|
|
1577
|
+
return response;
|
|
1601
1578
|
};
|
|
1602
1579
|
exports.de_DescribeDBClusterSnapshotAttributesCommand = de_DescribeDBClusterSnapshotAttributesCommand;
|
|
1603
1580
|
const de_DescribeDBClusterSnapshotAttributesCommandError = async (output, context) => {
|
|
@@ -1612,10 +1589,9 @@ const de_DescribeDBClusterSnapshotAttributesCommandError = async (output, contex
|
|
|
1612
1589
|
throw await de_DBClusterSnapshotNotFoundFaultRes(parsedOutput, context);
|
|
1613
1590
|
default:
|
|
1614
1591
|
const parsedBody = parsedOutput.body;
|
|
1615
|
-
|
|
1592
|
+
return throwDefaultError({
|
|
1616
1593
|
output,
|
|
1617
1594
|
parsedBody: parsedBody.Error,
|
|
1618
|
-
exceptionCtor: DocDBServiceException_1.DocDBServiceException,
|
|
1619
1595
|
errorCode,
|
|
1620
1596
|
});
|
|
1621
1597
|
}
|
|
@@ -1631,7 +1607,7 @@ const de_DescribeDBClusterSnapshotsCommand = async (output, context) => {
|
|
|
1631
1607
|
$metadata: deserializeMetadata(output),
|
|
1632
1608
|
...contents,
|
|
1633
1609
|
};
|
|
1634
|
-
return
|
|
1610
|
+
return response;
|
|
1635
1611
|
};
|
|
1636
1612
|
exports.de_DescribeDBClusterSnapshotsCommand = de_DescribeDBClusterSnapshotsCommand;
|
|
1637
1613
|
const de_DescribeDBClusterSnapshotsCommandError = async (output, context) => {
|
|
@@ -1646,10 +1622,9 @@ const de_DescribeDBClusterSnapshotsCommandError = async (output, context) => {
|
|
|
1646
1622
|
throw await de_DBClusterSnapshotNotFoundFaultRes(parsedOutput, context);
|
|
1647
1623
|
default:
|
|
1648
1624
|
const parsedBody = parsedOutput.body;
|
|
1649
|
-
|
|
1625
|
+
return throwDefaultError({
|
|
1650
1626
|
output,
|
|
1651
1627
|
parsedBody: parsedBody.Error,
|
|
1652
|
-
exceptionCtor: DocDBServiceException_1.DocDBServiceException,
|
|
1653
1628
|
errorCode,
|
|
1654
1629
|
});
|
|
1655
1630
|
}
|
|
@@ -1665,7 +1640,7 @@ const de_DescribeDBEngineVersionsCommand = async (output, context) => {
|
|
|
1665
1640
|
$metadata: deserializeMetadata(output),
|
|
1666
1641
|
...contents,
|
|
1667
1642
|
};
|
|
1668
|
-
return
|
|
1643
|
+
return response;
|
|
1669
1644
|
};
|
|
1670
1645
|
exports.de_DescribeDBEngineVersionsCommand = de_DescribeDBEngineVersionsCommand;
|
|
1671
1646
|
const de_DescribeDBEngineVersionsCommandError = async (output, context) => {
|
|
@@ -1675,10 +1650,9 @@ const de_DescribeDBEngineVersionsCommandError = async (output, context) => {
|
|
|
1675
1650
|
};
|
|
1676
1651
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1677
1652
|
const parsedBody = parsedOutput.body;
|
|
1678
|
-
|
|
1653
|
+
return throwDefaultError({
|
|
1679
1654
|
output,
|
|
1680
1655
|
parsedBody: parsedBody.Error,
|
|
1681
|
-
exceptionCtor: DocDBServiceException_1.DocDBServiceException,
|
|
1682
1656
|
errorCode,
|
|
1683
1657
|
});
|
|
1684
1658
|
};
|
|
@@ -1693,7 +1667,7 @@ const de_DescribeDBInstancesCommand = async (output, context) => {
|
|
|
1693
1667
|
$metadata: deserializeMetadata(output),
|
|
1694
1668
|
...contents,
|
|
1695
1669
|
};
|
|
1696
|
-
return
|
|
1670
|
+
return response;
|
|
1697
1671
|
};
|
|
1698
1672
|
exports.de_DescribeDBInstancesCommand = de_DescribeDBInstancesCommand;
|
|
1699
1673
|
const de_DescribeDBInstancesCommandError = async (output, context) => {
|
|
@@ -1708,10 +1682,9 @@ const de_DescribeDBInstancesCommandError = async (output, context) => {
|
|
|
1708
1682
|
throw await de_DBInstanceNotFoundFaultRes(parsedOutput, context);
|
|
1709
1683
|
default:
|
|
1710
1684
|
const parsedBody = parsedOutput.body;
|
|
1711
|
-
|
|
1685
|
+
return throwDefaultError({
|
|
1712
1686
|
output,
|
|
1713
1687
|
parsedBody: parsedBody.Error,
|
|
1714
|
-
exceptionCtor: DocDBServiceException_1.DocDBServiceException,
|
|
1715
1688
|
errorCode,
|
|
1716
1689
|
});
|
|
1717
1690
|
}
|
|
@@ -1727,7 +1700,7 @@ const de_DescribeDBSubnetGroupsCommand = async (output, context) => {
|
|
|
1727
1700
|
$metadata: deserializeMetadata(output),
|
|
1728
1701
|
...contents,
|
|
1729
1702
|
};
|
|
1730
|
-
return
|
|
1703
|
+
return response;
|
|
1731
1704
|
};
|
|
1732
1705
|
exports.de_DescribeDBSubnetGroupsCommand = de_DescribeDBSubnetGroupsCommand;
|
|
1733
1706
|
const de_DescribeDBSubnetGroupsCommandError = async (output, context) => {
|
|
@@ -1742,10 +1715,9 @@ const de_DescribeDBSubnetGroupsCommandError = async (output, context) => {
|
|
|
1742
1715
|
throw await de_DBSubnetGroupNotFoundFaultRes(parsedOutput, context);
|
|
1743
1716
|
default:
|
|
1744
1717
|
const parsedBody = parsedOutput.body;
|
|
1745
|
-
|
|
1718
|
+
return throwDefaultError({
|
|
1746
1719
|
output,
|
|
1747
1720
|
parsedBody: parsedBody.Error,
|
|
1748
|
-
exceptionCtor: DocDBServiceException_1.DocDBServiceException,
|
|
1749
1721
|
errorCode,
|
|
1750
1722
|
});
|
|
1751
1723
|
}
|
|
@@ -1761,7 +1733,7 @@ const de_DescribeEngineDefaultClusterParametersCommand = async (output, context)
|
|
|
1761
1733
|
$metadata: deserializeMetadata(output),
|
|
1762
1734
|
...contents,
|
|
1763
1735
|
};
|
|
1764
|
-
return
|
|
1736
|
+
return response;
|
|
1765
1737
|
};
|
|
1766
1738
|
exports.de_DescribeEngineDefaultClusterParametersCommand = de_DescribeEngineDefaultClusterParametersCommand;
|
|
1767
1739
|
const de_DescribeEngineDefaultClusterParametersCommandError = async (output, context) => {
|
|
@@ -1771,10 +1743,9 @@ const de_DescribeEngineDefaultClusterParametersCommandError = async (output, con
|
|
|
1771
1743
|
};
|
|
1772
1744
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1773
1745
|
const parsedBody = parsedOutput.body;
|
|
1774
|
-
|
|
1746
|
+
return throwDefaultError({
|
|
1775
1747
|
output,
|
|
1776
1748
|
parsedBody: parsedBody.Error,
|
|
1777
|
-
exceptionCtor: DocDBServiceException_1.DocDBServiceException,
|
|
1778
1749
|
errorCode,
|
|
1779
1750
|
});
|
|
1780
1751
|
};
|
|
@@ -1789,7 +1760,7 @@ const de_DescribeEventCategoriesCommand = async (output, context) => {
|
|
|
1789
1760
|
$metadata: deserializeMetadata(output),
|
|
1790
1761
|
...contents,
|
|
1791
1762
|
};
|
|
1792
|
-
return
|
|
1763
|
+
return response;
|
|
1793
1764
|
};
|
|
1794
1765
|
exports.de_DescribeEventCategoriesCommand = de_DescribeEventCategoriesCommand;
|
|
1795
1766
|
const de_DescribeEventCategoriesCommandError = async (output, context) => {
|
|
@@ -1799,10 +1770,9 @@ const de_DescribeEventCategoriesCommandError = async (output, context) => {
|
|
|
1799
1770
|
};
|
|
1800
1771
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1801
1772
|
const parsedBody = parsedOutput.body;
|
|
1802
|
-
|
|
1773
|
+
return throwDefaultError({
|
|
1803
1774
|
output,
|
|
1804
1775
|
parsedBody: parsedBody.Error,
|
|
1805
|
-
exceptionCtor: DocDBServiceException_1.DocDBServiceException,
|
|
1806
1776
|
errorCode,
|
|
1807
1777
|
});
|
|
1808
1778
|
};
|
|
@@ -1817,7 +1787,7 @@ const de_DescribeEventsCommand = async (output, context) => {
|
|
|
1817
1787
|
$metadata: deserializeMetadata(output),
|
|
1818
1788
|
...contents,
|
|
1819
1789
|
};
|
|
1820
|
-
return
|
|
1790
|
+
return response;
|
|
1821
1791
|
};
|
|
1822
1792
|
exports.de_DescribeEventsCommand = de_DescribeEventsCommand;
|
|
1823
1793
|
const de_DescribeEventsCommandError = async (output, context) => {
|
|
@@ -1827,10 +1797,9 @@ const de_DescribeEventsCommandError = async (output, context) => {
|
|
|
1827
1797
|
};
|
|
1828
1798
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1829
1799
|
const parsedBody = parsedOutput.body;
|
|
1830
|
-
|
|
1800
|
+
return throwDefaultError({
|
|
1831
1801
|
output,
|
|
1832
1802
|
parsedBody: parsedBody.Error,
|
|
1833
|
-
exceptionCtor: DocDBServiceException_1.DocDBServiceException,
|
|
1834
1803
|
errorCode,
|
|
1835
1804
|
});
|
|
1836
1805
|
};
|
|
@@ -1845,7 +1814,7 @@ const de_DescribeEventSubscriptionsCommand = async (output, context) => {
|
|
|
1845
1814
|
$metadata: deserializeMetadata(output),
|
|
1846
1815
|
...contents,
|
|
1847
1816
|
};
|
|
1848
|
-
return
|
|
1817
|
+
return response;
|
|
1849
1818
|
};
|
|
1850
1819
|
exports.de_DescribeEventSubscriptionsCommand = de_DescribeEventSubscriptionsCommand;
|
|
1851
1820
|
const de_DescribeEventSubscriptionsCommandError = async (output, context) => {
|
|
@@ -1860,10 +1829,9 @@ const de_DescribeEventSubscriptionsCommandError = async (output, context) => {
|
|
|
1860
1829
|
throw await de_SubscriptionNotFoundFaultRes(parsedOutput, context);
|
|
1861
1830
|
default:
|
|
1862
1831
|
const parsedBody = parsedOutput.body;
|
|
1863
|
-
|
|
1832
|
+
return throwDefaultError({
|
|
1864
1833
|
output,
|
|
1865
1834
|
parsedBody: parsedBody.Error,
|
|
1866
|
-
exceptionCtor: DocDBServiceException_1.DocDBServiceException,
|
|
1867
1835
|
errorCode,
|
|
1868
1836
|
});
|
|
1869
1837
|
}
|
|
@@ -1879,7 +1847,7 @@ const de_DescribeGlobalClustersCommand = async (output, context) => {
|
|
|
1879
1847
|
$metadata: deserializeMetadata(output),
|
|
1880
1848
|
...contents,
|
|
1881
1849
|
};
|
|
1882
|
-
return
|
|
1850
|
+
return response;
|
|
1883
1851
|
};
|
|
1884
1852
|
exports.de_DescribeGlobalClustersCommand = de_DescribeGlobalClustersCommand;
|
|
1885
1853
|
const de_DescribeGlobalClustersCommandError = async (output, context) => {
|
|
@@ -1894,10 +1862,9 @@ const de_DescribeGlobalClustersCommandError = async (output, context) => {
|
|
|
1894
1862
|
throw await de_GlobalClusterNotFoundFaultRes(parsedOutput, context);
|
|
1895
1863
|
default:
|
|
1896
1864
|
const parsedBody = parsedOutput.body;
|
|
1897
|
-
|
|
1865
|
+
return throwDefaultError({
|
|
1898
1866
|
output,
|
|
1899
1867
|
parsedBody: parsedBody.Error,
|
|
1900
|
-
exceptionCtor: DocDBServiceException_1.DocDBServiceException,
|
|
1901
1868
|
errorCode,
|
|
1902
1869
|
});
|
|
1903
1870
|
}
|
|
@@ -1913,7 +1880,7 @@ const de_DescribeOrderableDBInstanceOptionsCommand = async (output, context) =>
|
|
|
1913
1880
|
$metadata: deserializeMetadata(output),
|
|
1914
1881
|
...contents,
|
|
1915
1882
|
};
|
|
1916
|
-
return
|
|
1883
|
+
return response;
|
|
1917
1884
|
};
|
|
1918
1885
|
exports.de_DescribeOrderableDBInstanceOptionsCommand = de_DescribeOrderableDBInstanceOptionsCommand;
|
|
1919
1886
|
const de_DescribeOrderableDBInstanceOptionsCommandError = async (output, context) => {
|
|
@@ -1923,10 +1890,9 @@ const de_DescribeOrderableDBInstanceOptionsCommandError = async (output, context
|
|
|
1923
1890
|
};
|
|
1924
1891
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1925
1892
|
const parsedBody = parsedOutput.body;
|
|
1926
|
-
|
|
1893
|
+
return throwDefaultError({
|
|
1927
1894
|
output,
|
|
1928
1895
|
parsedBody: parsedBody.Error,
|
|
1929
|
-
exceptionCtor: DocDBServiceException_1.DocDBServiceException,
|
|
1930
1896
|
errorCode,
|
|
1931
1897
|
});
|
|
1932
1898
|
};
|
|
@@ -1941,7 +1907,7 @@ const de_DescribePendingMaintenanceActionsCommand = async (output, context) => {
|
|
|
1941
1907
|
$metadata: deserializeMetadata(output),
|
|
1942
1908
|
...contents,
|
|
1943
1909
|
};
|
|
1944
|
-
return
|
|
1910
|
+
return response;
|
|
1945
1911
|
};
|
|
1946
1912
|
exports.de_DescribePendingMaintenanceActionsCommand = de_DescribePendingMaintenanceActionsCommand;
|
|
1947
1913
|
const de_DescribePendingMaintenanceActionsCommandError = async (output, context) => {
|
|
@@ -1956,10 +1922,9 @@ const de_DescribePendingMaintenanceActionsCommandError = async (output, context)
|
|
|
1956
1922
|
throw await de_ResourceNotFoundFaultRes(parsedOutput, context);
|
|
1957
1923
|
default:
|
|
1958
1924
|
const parsedBody = parsedOutput.body;
|
|
1959
|
-
|
|
1925
|
+
return throwDefaultError({
|
|
1960
1926
|
output,
|
|
1961
1927
|
parsedBody: parsedBody.Error,
|
|
1962
|
-
exceptionCtor: DocDBServiceException_1.DocDBServiceException,
|
|
1963
1928
|
errorCode,
|
|
1964
1929
|
});
|
|
1965
1930
|
}
|
|
@@ -1975,7 +1940,7 @@ const de_FailoverDBClusterCommand = async (output, context) => {
|
|
|
1975
1940
|
$metadata: deserializeMetadata(output),
|
|
1976
1941
|
...contents,
|
|
1977
1942
|
};
|
|
1978
|
-
return
|
|
1943
|
+
return response;
|
|
1979
1944
|
};
|
|
1980
1945
|
exports.de_FailoverDBClusterCommand = de_FailoverDBClusterCommand;
|
|
1981
1946
|
const de_FailoverDBClusterCommandError = async (output, context) => {
|
|
@@ -1996,10 +1961,9 @@ const de_FailoverDBClusterCommandError = async (output, context) => {
|
|
|
1996
1961
|
throw await de_InvalidDBInstanceStateFaultRes(parsedOutput, context);
|
|
1997
1962
|
default:
|
|
1998
1963
|
const parsedBody = parsedOutput.body;
|
|
1999
|
-
|
|
1964
|
+
return throwDefaultError({
|
|
2000
1965
|
output,
|
|
2001
1966
|
parsedBody: parsedBody.Error,
|
|
2002
|
-
exceptionCtor: DocDBServiceException_1.DocDBServiceException,
|
|
2003
1967
|
errorCode,
|
|
2004
1968
|
});
|
|
2005
1969
|
}
|
|
@@ -2015,7 +1979,7 @@ const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
2015
1979
|
$metadata: deserializeMetadata(output),
|
|
2016
1980
|
...contents,
|
|
2017
1981
|
};
|
|
2018
|
-
return
|
|
1982
|
+
return response;
|
|
2019
1983
|
};
|
|
2020
1984
|
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
2021
1985
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -2036,10 +2000,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
2036
2000
|
throw await de_DBSnapshotNotFoundFaultRes(parsedOutput, context);
|
|
2037
2001
|
default:
|
|
2038
2002
|
const parsedBody = parsedOutput.body;
|
|
2039
|
-
|
|
2003
|
+
return throwDefaultError({
|
|
2040
2004
|
output,
|
|
2041
2005
|
parsedBody: parsedBody.Error,
|
|
2042
|
-
exceptionCtor: DocDBServiceException_1.DocDBServiceException,
|
|
2043
2006
|
errorCode,
|
|
2044
2007
|
});
|
|
2045
2008
|
}
|
|
@@ -2055,7 +2018,7 @@ const de_ModifyDBClusterCommand = async (output, context) => {
|
|
|
2055
2018
|
$metadata: deserializeMetadata(output),
|
|
2056
2019
|
...contents,
|
|
2057
2020
|
};
|
|
2058
|
-
return
|
|
2021
|
+
return response;
|
|
2059
2022
|
};
|
|
2060
2023
|
exports.de_ModifyDBClusterCommand = de_ModifyDBClusterCommand;
|
|
2061
2024
|
const de_ModifyDBClusterCommandError = async (output, context) => {
|
|
@@ -2100,10 +2063,9 @@ const de_ModifyDBClusterCommandError = async (output, context) => {
|
|
|
2100
2063
|
throw await de_StorageQuotaExceededFaultRes(parsedOutput, context);
|
|
2101
2064
|
default:
|
|
2102
2065
|
const parsedBody = parsedOutput.body;
|
|
2103
|
-
|
|
2066
|
+
return throwDefaultError({
|
|
2104
2067
|
output,
|
|
2105
2068
|
parsedBody: parsedBody.Error,
|
|
2106
|
-
exceptionCtor: DocDBServiceException_1.DocDBServiceException,
|
|
2107
2069
|
errorCode,
|
|
2108
2070
|
});
|
|
2109
2071
|
}
|
|
@@ -2119,7 +2081,7 @@ const de_ModifyDBClusterParameterGroupCommand = async (output, context) => {
|
|
|
2119
2081
|
$metadata: deserializeMetadata(output),
|
|
2120
2082
|
...contents,
|
|
2121
2083
|
};
|
|
2122
|
-
return
|
|
2084
|
+
return response;
|
|
2123
2085
|
};
|
|
2124
2086
|
exports.de_ModifyDBClusterParameterGroupCommand = de_ModifyDBClusterParameterGroupCommand;
|
|
2125
2087
|
const de_ModifyDBClusterParameterGroupCommandError = async (output, context) => {
|
|
@@ -2137,10 +2099,9 @@ const de_ModifyDBClusterParameterGroupCommandError = async (output, context) =>
|
|
|
2137
2099
|
throw await de_InvalidDBParameterGroupStateFaultRes(parsedOutput, context);
|
|
2138
2100
|
default:
|
|
2139
2101
|
const parsedBody = parsedOutput.body;
|
|
2140
|
-
|
|
2102
|
+
return throwDefaultError({
|
|
2141
2103
|
output,
|
|
2142
2104
|
parsedBody: parsedBody.Error,
|
|
2143
|
-
exceptionCtor: DocDBServiceException_1.DocDBServiceException,
|
|
2144
2105
|
errorCode,
|
|
2145
2106
|
});
|
|
2146
2107
|
}
|
|
@@ -2156,7 +2117,7 @@ const de_ModifyDBClusterSnapshotAttributeCommand = async (output, context) => {
|
|
|
2156
2117
|
$metadata: deserializeMetadata(output),
|
|
2157
2118
|
...contents,
|
|
2158
2119
|
};
|
|
2159
|
-
return
|
|
2120
|
+
return response;
|
|
2160
2121
|
};
|
|
2161
2122
|
exports.de_ModifyDBClusterSnapshotAttributeCommand = de_ModifyDBClusterSnapshotAttributeCommand;
|
|
2162
2123
|
const de_ModifyDBClusterSnapshotAttributeCommandError = async (output, context) => {
|
|
@@ -2177,10 +2138,9 @@ const de_ModifyDBClusterSnapshotAttributeCommandError = async (output, context)
|
|
|
2177
2138
|
throw await de_SharedSnapshotQuotaExceededFaultRes(parsedOutput, context);
|
|
2178
2139
|
default:
|
|
2179
2140
|
const parsedBody = parsedOutput.body;
|
|
2180
|
-
|
|
2141
|
+
return throwDefaultError({
|
|
2181
2142
|
output,
|
|
2182
2143
|
parsedBody: parsedBody.Error,
|
|
2183
|
-
exceptionCtor: DocDBServiceException_1.DocDBServiceException,
|
|
2184
2144
|
errorCode,
|
|
2185
2145
|
});
|
|
2186
2146
|
}
|
|
@@ -2196,7 +2156,7 @@ const de_ModifyDBInstanceCommand = async (output, context) => {
|
|
|
2196
2156
|
$metadata: deserializeMetadata(output),
|
|
2197
2157
|
...contents,
|
|
2198
2158
|
};
|
|
2199
|
-
return
|
|
2159
|
+
return response;
|
|
2200
2160
|
};
|
|
2201
2161
|
exports.de_ModifyDBInstanceCommand = de_ModifyDBInstanceCommand;
|
|
2202
2162
|
const de_ModifyDBInstanceCommandError = async (output, context) => {
|
|
@@ -2247,10 +2207,9 @@ const de_ModifyDBInstanceCommandError = async (output, context) => {
|
|
|
2247
2207
|
throw await de_StorageTypeNotSupportedFaultRes(parsedOutput, context);
|
|
2248
2208
|
default:
|
|
2249
2209
|
const parsedBody = parsedOutput.body;
|
|
2250
|
-
|
|
2210
|
+
return throwDefaultError({
|
|
2251
2211
|
output,
|
|
2252
2212
|
parsedBody: parsedBody.Error,
|
|
2253
|
-
exceptionCtor: DocDBServiceException_1.DocDBServiceException,
|
|
2254
2213
|
errorCode,
|
|
2255
2214
|
});
|
|
2256
2215
|
}
|
|
@@ -2266,7 +2225,7 @@ const de_ModifyDBSubnetGroupCommand = async (output, context) => {
|
|
|
2266
2225
|
$metadata: deserializeMetadata(output),
|
|
2267
2226
|
...contents,
|
|
2268
2227
|
};
|
|
2269
|
-
return
|
|
2228
|
+
return response;
|
|
2270
2229
|
};
|
|
2271
2230
|
exports.de_ModifyDBSubnetGroupCommand = de_ModifyDBSubnetGroupCommand;
|
|
2272
2231
|
const de_ModifyDBSubnetGroupCommandError = async (output, context) => {
|
|
@@ -2293,10 +2252,9 @@ const de_ModifyDBSubnetGroupCommandError = async (output, context) => {
|
|
|
2293
2252
|
throw await de_SubnetAlreadyInUseRes(parsedOutput, context);
|
|
2294
2253
|
default:
|
|
2295
2254
|
const parsedBody = parsedOutput.body;
|
|
2296
|
-
|
|
2255
|
+
return throwDefaultError({
|
|
2297
2256
|
output,
|
|
2298
2257
|
parsedBody: parsedBody.Error,
|
|
2299
|
-
exceptionCtor: DocDBServiceException_1.DocDBServiceException,
|
|
2300
2258
|
errorCode,
|
|
2301
2259
|
});
|
|
2302
2260
|
}
|
|
@@ -2312,7 +2270,7 @@ const de_ModifyEventSubscriptionCommand = async (output, context) => {
|
|
|
2312
2270
|
$metadata: deserializeMetadata(output),
|
|
2313
2271
|
...contents,
|
|
2314
2272
|
};
|
|
2315
|
-
return
|
|
2273
|
+
return response;
|
|
2316
2274
|
};
|
|
2317
2275
|
exports.de_ModifyEventSubscriptionCommand = de_ModifyEventSubscriptionCommand;
|
|
2318
2276
|
const de_ModifyEventSubscriptionCommandError = async (output, context) => {
|
|
@@ -2342,10 +2300,9 @@ const de_ModifyEventSubscriptionCommandError = async (output, context) => {
|
|
|
2342
2300
|
throw await de_SubscriptionNotFoundFaultRes(parsedOutput, context);
|
|
2343
2301
|
default:
|
|
2344
2302
|
const parsedBody = parsedOutput.body;
|
|
2345
|
-
|
|
2303
|
+
return throwDefaultError({
|
|
2346
2304
|
output,
|
|
2347
2305
|
parsedBody: parsedBody.Error,
|
|
2348
|
-
exceptionCtor: DocDBServiceException_1.DocDBServiceException,
|
|
2349
2306
|
errorCode,
|
|
2350
2307
|
});
|
|
2351
2308
|
}
|
|
@@ -2361,7 +2318,7 @@ const de_ModifyGlobalClusterCommand = async (output, context) => {
|
|
|
2361
2318
|
$metadata: deserializeMetadata(output),
|
|
2362
2319
|
...contents,
|
|
2363
2320
|
};
|
|
2364
|
-
return
|
|
2321
|
+
return response;
|
|
2365
2322
|
};
|
|
2366
2323
|
exports.de_ModifyGlobalClusterCommand = de_ModifyGlobalClusterCommand;
|
|
2367
2324
|
const de_ModifyGlobalClusterCommandError = async (output, context) => {
|
|
@@ -2379,10 +2336,9 @@ const de_ModifyGlobalClusterCommandError = async (output, context) => {
|
|
|
2379
2336
|
throw await de_InvalidGlobalClusterStateFaultRes(parsedOutput, context);
|
|
2380
2337
|
default:
|
|
2381
2338
|
const parsedBody = parsedOutput.body;
|
|
2382
|
-
|
|
2339
|
+
return throwDefaultError({
|
|
2383
2340
|
output,
|
|
2384
2341
|
parsedBody: parsedBody.Error,
|
|
2385
|
-
exceptionCtor: DocDBServiceException_1.DocDBServiceException,
|
|
2386
2342
|
errorCode,
|
|
2387
2343
|
});
|
|
2388
2344
|
}
|
|
@@ -2398,7 +2354,7 @@ const de_RebootDBInstanceCommand = async (output, context) => {
|
|
|
2398
2354
|
$metadata: deserializeMetadata(output),
|
|
2399
2355
|
...contents,
|
|
2400
2356
|
};
|
|
2401
|
-
return
|
|
2357
|
+
return response;
|
|
2402
2358
|
};
|
|
2403
2359
|
exports.de_RebootDBInstanceCommand = de_RebootDBInstanceCommand;
|
|
2404
2360
|
const de_RebootDBInstanceCommandError = async (output, context) => {
|
|
@@ -2416,10 +2372,9 @@ const de_RebootDBInstanceCommandError = async (output, context) => {
|
|
|
2416
2372
|
throw await de_InvalidDBInstanceStateFaultRes(parsedOutput, context);
|
|
2417
2373
|
default:
|
|
2418
2374
|
const parsedBody = parsedOutput.body;
|
|
2419
|
-
|
|
2375
|
+
return throwDefaultError({
|
|
2420
2376
|
output,
|
|
2421
2377
|
parsedBody: parsedBody.Error,
|
|
2422
|
-
exceptionCtor: DocDBServiceException_1.DocDBServiceException,
|
|
2423
2378
|
errorCode,
|
|
2424
2379
|
});
|
|
2425
2380
|
}
|
|
@@ -2435,7 +2390,7 @@ const de_RemoveFromGlobalClusterCommand = async (output, context) => {
|
|
|
2435
2390
|
$metadata: deserializeMetadata(output),
|
|
2436
2391
|
...contents,
|
|
2437
2392
|
};
|
|
2438
|
-
return
|
|
2393
|
+
return response;
|
|
2439
2394
|
};
|
|
2440
2395
|
exports.de_RemoveFromGlobalClusterCommand = de_RemoveFromGlobalClusterCommand;
|
|
2441
2396
|
const de_RemoveFromGlobalClusterCommandError = async (output, context) => {
|
|
@@ -2456,10 +2411,9 @@ const de_RemoveFromGlobalClusterCommandError = async (output, context) => {
|
|
|
2456
2411
|
throw await de_InvalidGlobalClusterStateFaultRes(parsedOutput, context);
|
|
2457
2412
|
default:
|
|
2458
2413
|
const parsedBody = parsedOutput.body;
|
|
2459
|
-
|
|
2414
|
+
return throwDefaultError({
|
|
2460
2415
|
output,
|
|
2461
2416
|
parsedBody: parsedBody.Error,
|
|
2462
|
-
exceptionCtor: DocDBServiceException_1.DocDBServiceException,
|
|
2463
2417
|
errorCode,
|
|
2464
2418
|
});
|
|
2465
2419
|
}
|
|
@@ -2475,7 +2429,7 @@ const de_RemoveSourceIdentifierFromSubscriptionCommand = async (output, context)
|
|
|
2475
2429
|
$metadata: deserializeMetadata(output),
|
|
2476
2430
|
...contents,
|
|
2477
2431
|
};
|
|
2478
|
-
return
|
|
2432
|
+
return response;
|
|
2479
2433
|
};
|
|
2480
2434
|
exports.de_RemoveSourceIdentifierFromSubscriptionCommand = de_RemoveSourceIdentifierFromSubscriptionCommand;
|
|
2481
2435
|
const de_RemoveSourceIdentifierFromSubscriptionCommandError = async (output, context) => {
|
|
@@ -2493,10 +2447,9 @@ const de_RemoveSourceIdentifierFromSubscriptionCommandError = async (output, con
|
|
|
2493
2447
|
throw await de_SubscriptionNotFoundFaultRes(parsedOutput, context);
|
|
2494
2448
|
default:
|
|
2495
2449
|
const parsedBody = parsedOutput.body;
|
|
2496
|
-
|
|
2450
|
+
return throwDefaultError({
|
|
2497
2451
|
output,
|
|
2498
2452
|
parsedBody: parsedBody.Error,
|
|
2499
|
-
exceptionCtor: DocDBServiceException_1.DocDBServiceException,
|
|
2500
2453
|
errorCode,
|
|
2501
2454
|
});
|
|
2502
2455
|
}
|
|
@@ -2509,7 +2462,7 @@ const de_RemoveTagsFromResourceCommand = async (output, context) => {
|
|
|
2509
2462
|
const response = {
|
|
2510
2463
|
$metadata: deserializeMetadata(output),
|
|
2511
2464
|
};
|
|
2512
|
-
return
|
|
2465
|
+
return response;
|
|
2513
2466
|
};
|
|
2514
2467
|
exports.de_RemoveTagsFromResourceCommand = de_RemoveTagsFromResourceCommand;
|
|
2515
2468
|
const de_RemoveTagsFromResourceCommandError = async (output, context) => {
|
|
@@ -2530,10 +2483,9 @@ const de_RemoveTagsFromResourceCommandError = async (output, context) => {
|
|
|
2530
2483
|
throw await de_DBSnapshotNotFoundFaultRes(parsedOutput, context);
|
|
2531
2484
|
default:
|
|
2532
2485
|
const parsedBody = parsedOutput.body;
|
|
2533
|
-
|
|
2486
|
+
return throwDefaultError({
|
|
2534
2487
|
output,
|
|
2535
2488
|
parsedBody: parsedBody.Error,
|
|
2536
|
-
exceptionCtor: DocDBServiceException_1.DocDBServiceException,
|
|
2537
2489
|
errorCode,
|
|
2538
2490
|
});
|
|
2539
2491
|
}
|
|
@@ -2549,7 +2501,7 @@ const de_ResetDBClusterParameterGroupCommand = async (output, context) => {
|
|
|
2549
2501
|
$metadata: deserializeMetadata(output),
|
|
2550
2502
|
...contents,
|
|
2551
2503
|
};
|
|
2552
|
-
return
|
|
2504
|
+
return response;
|
|
2553
2505
|
};
|
|
2554
2506
|
exports.de_ResetDBClusterParameterGroupCommand = de_ResetDBClusterParameterGroupCommand;
|
|
2555
2507
|
const de_ResetDBClusterParameterGroupCommandError = async (output, context) => {
|
|
@@ -2567,10 +2519,9 @@ const de_ResetDBClusterParameterGroupCommandError = async (output, context) => {
|
|
|
2567
2519
|
throw await de_InvalidDBParameterGroupStateFaultRes(parsedOutput, context);
|
|
2568
2520
|
default:
|
|
2569
2521
|
const parsedBody = parsedOutput.body;
|
|
2570
|
-
|
|
2522
|
+
return throwDefaultError({
|
|
2571
2523
|
output,
|
|
2572
2524
|
parsedBody: parsedBody.Error,
|
|
2573
|
-
exceptionCtor: DocDBServiceException_1.DocDBServiceException,
|
|
2574
2525
|
errorCode,
|
|
2575
2526
|
});
|
|
2576
2527
|
}
|
|
@@ -2586,7 +2537,7 @@ const de_RestoreDBClusterFromSnapshotCommand = async (output, context) => {
|
|
|
2586
2537
|
$metadata: deserializeMetadata(output),
|
|
2587
2538
|
...contents,
|
|
2588
2539
|
};
|
|
2589
|
-
return
|
|
2540
|
+
return response;
|
|
2590
2541
|
};
|
|
2591
2542
|
exports.de_RestoreDBClusterFromSnapshotCommand = de_RestoreDBClusterFromSnapshotCommand;
|
|
2592
2543
|
const de_RestoreDBClusterFromSnapshotCommandError = async (output, context) => {
|
|
@@ -2640,10 +2591,9 @@ const de_RestoreDBClusterFromSnapshotCommandError = async (output, context) => {
|
|
|
2640
2591
|
throw await de_StorageQuotaExceededFaultRes(parsedOutput, context);
|
|
2641
2592
|
default:
|
|
2642
2593
|
const parsedBody = parsedOutput.body;
|
|
2643
|
-
|
|
2594
|
+
return throwDefaultError({
|
|
2644
2595
|
output,
|
|
2645
2596
|
parsedBody: parsedBody.Error,
|
|
2646
|
-
exceptionCtor: DocDBServiceException_1.DocDBServiceException,
|
|
2647
2597
|
errorCode,
|
|
2648
2598
|
});
|
|
2649
2599
|
}
|
|
@@ -2659,7 +2609,7 @@ const de_RestoreDBClusterToPointInTimeCommand = async (output, context) => {
|
|
|
2659
2609
|
$metadata: deserializeMetadata(output),
|
|
2660
2610
|
...contents,
|
|
2661
2611
|
};
|
|
2662
|
-
return
|
|
2612
|
+
return response;
|
|
2663
2613
|
};
|
|
2664
2614
|
exports.de_RestoreDBClusterToPointInTimeCommand = de_RestoreDBClusterToPointInTimeCommand;
|
|
2665
2615
|
const de_RestoreDBClusterToPointInTimeCommandError = async (output, context) => {
|
|
@@ -2716,10 +2666,9 @@ const de_RestoreDBClusterToPointInTimeCommandError = async (output, context) =>
|
|
|
2716
2666
|
throw await de_StorageQuotaExceededFaultRes(parsedOutput, context);
|
|
2717
2667
|
default:
|
|
2718
2668
|
const parsedBody = parsedOutput.body;
|
|
2719
|
-
|
|
2669
|
+
return throwDefaultError({
|
|
2720
2670
|
output,
|
|
2721
2671
|
parsedBody: parsedBody.Error,
|
|
2722
|
-
exceptionCtor: DocDBServiceException_1.DocDBServiceException,
|
|
2723
2672
|
errorCode,
|
|
2724
2673
|
});
|
|
2725
2674
|
}
|
|
@@ -2735,7 +2684,7 @@ const de_StartDBClusterCommand = async (output, context) => {
|
|
|
2735
2684
|
$metadata: deserializeMetadata(output),
|
|
2736
2685
|
...contents,
|
|
2737
2686
|
};
|
|
2738
|
-
return
|
|
2687
|
+
return response;
|
|
2739
2688
|
};
|
|
2740
2689
|
exports.de_StartDBClusterCommand = de_StartDBClusterCommand;
|
|
2741
2690
|
const de_StartDBClusterCommandError = async (output, context) => {
|
|
@@ -2756,10 +2705,9 @@ const de_StartDBClusterCommandError = async (output, context) => {
|
|
|
2756
2705
|
throw await de_InvalidDBInstanceStateFaultRes(parsedOutput, context);
|
|
2757
2706
|
default:
|
|
2758
2707
|
const parsedBody = parsedOutput.body;
|
|
2759
|
-
|
|
2708
|
+
return throwDefaultError({
|
|
2760
2709
|
output,
|
|
2761
2710
|
parsedBody: parsedBody.Error,
|
|
2762
|
-
exceptionCtor: DocDBServiceException_1.DocDBServiceException,
|
|
2763
2711
|
errorCode,
|
|
2764
2712
|
});
|
|
2765
2713
|
}
|
|
@@ -2775,7 +2723,7 @@ const de_StopDBClusterCommand = async (output, context) => {
|
|
|
2775
2723
|
$metadata: deserializeMetadata(output),
|
|
2776
2724
|
...contents,
|
|
2777
2725
|
};
|
|
2778
|
-
return
|
|
2726
|
+
return response;
|
|
2779
2727
|
};
|
|
2780
2728
|
exports.de_StopDBClusterCommand = de_StopDBClusterCommand;
|
|
2781
2729
|
const de_StopDBClusterCommandError = async (output, context) => {
|
|
@@ -2796,10 +2744,9 @@ const de_StopDBClusterCommandError = async (output, context) => {
|
|
|
2796
2744
|
throw await de_InvalidDBInstanceStateFaultRes(parsedOutput, context);
|
|
2797
2745
|
default:
|
|
2798
2746
|
const parsedBody = parsedOutput.body;
|
|
2799
|
-
|
|
2747
|
+
return throwDefaultError({
|
|
2800
2748
|
output,
|
|
2801
2749
|
parsedBody: parsedBody.Error,
|
|
2802
|
-
exceptionCtor: DocDBServiceException_1.DocDBServiceException,
|
|
2803
2750
|
errorCode,
|
|
2804
2751
|
});
|
|
2805
2752
|
}
|
|
@@ -6717,6 +6664,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
6717
6664
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
6718
6665
|
};
|
|
6719
6666
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
6667
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(DocDBServiceException_1.DocDBServiceException);
|
|
6720
6668
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
6721
6669
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
6722
6670
|
const contents = {
|