@aws-sdk/client-eventbridge 3.503.1 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +115 -1487
- package/dist-es/protocols/Aws_json1_1.js +186 -1558
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -1021,7 +1021,7 @@ var se_UpdateEndpointCommand = /* @__PURE__ */ __name(async (input, context) =>
|
|
|
1021
1021
|
}, "se_UpdateEndpointCommand");
|
|
1022
1022
|
var de_ActivateEventSourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1023
1023
|
if (output.statusCode >= 300) {
|
|
1024
|
-
return
|
|
1024
|
+
return de_CommandError(output, context);
|
|
1025
1025
|
}
|
|
1026
1026
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1027
1027
|
const response = {
|
|
@@ -1029,40 +1029,9 @@ var de_ActivateEventSourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1029
1029
|
};
|
|
1030
1030
|
return response;
|
|
1031
1031
|
}, "de_ActivateEventSourceCommand");
|
|
1032
|
-
var de_ActivateEventSourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1033
|
-
const parsedOutput = {
|
|
1034
|
-
...output,
|
|
1035
|
-
body: await parseErrorBody(output.body, context)
|
|
1036
|
-
};
|
|
1037
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1038
|
-
switch (errorCode) {
|
|
1039
|
-
case "ConcurrentModificationException":
|
|
1040
|
-
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
1041
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1042
|
-
case "InternalException":
|
|
1043
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
1044
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1045
|
-
case "InvalidStateException":
|
|
1046
|
-
case "com.amazonaws.eventbridge#InvalidStateException":
|
|
1047
|
-
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
1048
|
-
case "OperationDisabledException":
|
|
1049
|
-
case "com.amazonaws.eventbridge#OperationDisabledException":
|
|
1050
|
-
throw await de_OperationDisabledExceptionRes(parsedOutput, context);
|
|
1051
|
-
case "ResourceNotFoundException":
|
|
1052
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
1053
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1054
|
-
default:
|
|
1055
|
-
const parsedBody = parsedOutput.body;
|
|
1056
|
-
return throwDefaultError({
|
|
1057
|
-
output,
|
|
1058
|
-
parsedBody,
|
|
1059
|
-
errorCode
|
|
1060
|
-
});
|
|
1061
|
-
}
|
|
1062
|
-
}, "de_ActivateEventSourceCommandError");
|
|
1063
1032
|
var de_CancelReplayCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1064
1033
|
if (output.statusCode >= 300) {
|
|
1065
|
-
return
|
|
1034
|
+
return de_CommandError(output, context);
|
|
1066
1035
|
}
|
|
1067
1036
|
const data = await parseBody(output.body, context);
|
|
1068
1037
|
let contents = {};
|
|
@@ -1073,37 +1042,9 @@ var de_CancelReplayCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1073
1042
|
};
|
|
1074
1043
|
return response;
|
|
1075
1044
|
}, "de_CancelReplayCommand");
|
|
1076
|
-
var de_CancelReplayCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1077
|
-
const parsedOutput = {
|
|
1078
|
-
...output,
|
|
1079
|
-
body: await parseErrorBody(output.body, context)
|
|
1080
|
-
};
|
|
1081
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1082
|
-
switch (errorCode) {
|
|
1083
|
-
case "ConcurrentModificationException":
|
|
1084
|
-
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
1085
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1086
|
-
case "IllegalStatusException":
|
|
1087
|
-
case "com.amazonaws.eventbridge#IllegalStatusException":
|
|
1088
|
-
throw await de_IllegalStatusExceptionRes(parsedOutput, context);
|
|
1089
|
-
case "InternalException":
|
|
1090
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
1091
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1092
|
-
case "ResourceNotFoundException":
|
|
1093
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
1094
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1095
|
-
default:
|
|
1096
|
-
const parsedBody = parsedOutput.body;
|
|
1097
|
-
return throwDefaultError({
|
|
1098
|
-
output,
|
|
1099
|
-
parsedBody,
|
|
1100
|
-
errorCode
|
|
1101
|
-
});
|
|
1102
|
-
}
|
|
1103
|
-
}, "de_CancelReplayCommandError");
|
|
1104
1045
|
var de_CreateApiDestinationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1105
1046
|
if (output.statusCode >= 300) {
|
|
1106
|
-
return
|
|
1047
|
+
return de_CommandError(output, context);
|
|
1107
1048
|
}
|
|
1108
1049
|
const data = await parseBody(output.body, context);
|
|
1109
1050
|
let contents = {};
|
|
@@ -1114,37 +1055,9 @@ var de_CreateApiDestinationCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1114
1055
|
};
|
|
1115
1056
|
return response;
|
|
1116
1057
|
}, "de_CreateApiDestinationCommand");
|
|
1117
|
-
var de_CreateApiDestinationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1118
|
-
const parsedOutput = {
|
|
1119
|
-
...output,
|
|
1120
|
-
body: await parseErrorBody(output.body, context)
|
|
1121
|
-
};
|
|
1122
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1123
|
-
switch (errorCode) {
|
|
1124
|
-
case "InternalException":
|
|
1125
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
1126
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1127
|
-
case "LimitExceededException":
|
|
1128
|
-
case "com.amazonaws.eventbridge#LimitExceededException":
|
|
1129
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1130
|
-
case "ResourceAlreadyExistsException":
|
|
1131
|
-
case "com.amazonaws.eventbridge#ResourceAlreadyExistsException":
|
|
1132
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1133
|
-
case "ResourceNotFoundException":
|
|
1134
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
1135
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1136
|
-
default:
|
|
1137
|
-
const parsedBody = parsedOutput.body;
|
|
1138
|
-
return throwDefaultError({
|
|
1139
|
-
output,
|
|
1140
|
-
parsedBody,
|
|
1141
|
-
errorCode
|
|
1142
|
-
});
|
|
1143
|
-
}
|
|
1144
|
-
}, "de_CreateApiDestinationCommandError");
|
|
1145
1058
|
var de_CreateArchiveCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1146
1059
|
if (output.statusCode >= 300) {
|
|
1147
|
-
return
|
|
1060
|
+
return de_CommandError(output, context);
|
|
1148
1061
|
}
|
|
1149
1062
|
const data = await parseBody(output.body, context);
|
|
1150
1063
|
let contents = {};
|
|
@@ -1155,43 +1068,9 @@ var de_CreateArchiveCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1155
1068
|
};
|
|
1156
1069
|
return response;
|
|
1157
1070
|
}, "de_CreateArchiveCommand");
|
|
1158
|
-
var de_CreateArchiveCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1159
|
-
const parsedOutput = {
|
|
1160
|
-
...output,
|
|
1161
|
-
body: await parseErrorBody(output.body, context)
|
|
1162
|
-
};
|
|
1163
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1164
|
-
switch (errorCode) {
|
|
1165
|
-
case "ConcurrentModificationException":
|
|
1166
|
-
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
1167
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1168
|
-
case "InternalException":
|
|
1169
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
1170
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1171
|
-
case "InvalidEventPatternException":
|
|
1172
|
-
case "com.amazonaws.eventbridge#InvalidEventPatternException":
|
|
1173
|
-
throw await de_InvalidEventPatternExceptionRes(parsedOutput, context);
|
|
1174
|
-
case "LimitExceededException":
|
|
1175
|
-
case "com.amazonaws.eventbridge#LimitExceededException":
|
|
1176
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1177
|
-
case "ResourceAlreadyExistsException":
|
|
1178
|
-
case "com.amazonaws.eventbridge#ResourceAlreadyExistsException":
|
|
1179
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1180
|
-
case "ResourceNotFoundException":
|
|
1181
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
1182
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1183
|
-
default:
|
|
1184
|
-
const parsedBody = parsedOutput.body;
|
|
1185
|
-
return throwDefaultError({
|
|
1186
|
-
output,
|
|
1187
|
-
parsedBody,
|
|
1188
|
-
errorCode
|
|
1189
|
-
});
|
|
1190
|
-
}
|
|
1191
|
-
}, "de_CreateArchiveCommandError");
|
|
1192
1071
|
var de_CreateConnectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1193
1072
|
if (output.statusCode >= 300) {
|
|
1194
|
-
return
|
|
1073
|
+
return de_CommandError(output, context);
|
|
1195
1074
|
}
|
|
1196
1075
|
const data = await parseBody(output.body, context);
|
|
1197
1076
|
let contents = {};
|
|
@@ -1202,34 +1081,9 @@ var de_CreateConnectionCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1202
1081
|
};
|
|
1203
1082
|
return response;
|
|
1204
1083
|
}, "de_CreateConnectionCommand");
|
|
1205
|
-
var de_CreateConnectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1206
|
-
const parsedOutput = {
|
|
1207
|
-
...output,
|
|
1208
|
-
body: await parseErrorBody(output.body, context)
|
|
1209
|
-
};
|
|
1210
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1211
|
-
switch (errorCode) {
|
|
1212
|
-
case "InternalException":
|
|
1213
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
1214
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1215
|
-
case "LimitExceededException":
|
|
1216
|
-
case "com.amazonaws.eventbridge#LimitExceededException":
|
|
1217
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1218
|
-
case "ResourceAlreadyExistsException":
|
|
1219
|
-
case "com.amazonaws.eventbridge#ResourceAlreadyExistsException":
|
|
1220
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1221
|
-
default:
|
|
1222
|
-
const parsedBody = parsedOutput.body;
|
|
1223
|
-
return throwDefaultError({
|
|
1224
|
-
output,
|
|
1225
|
-
parsedBody,
|
|
1226
|
-
errorCode
|
|
1227
|
-
});
|
|
1228
|
-
}
|
|
1229
|
-
}, "de_CreateConnectionCommandError");
|
|
1230
1084
|
var de_CreateEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1231
1085
|
if (output.statusCode >= 300) {
|
|
1232
|
-
return
|
|
1086
|
+
return de_CommandError(output, context);
|
|
1233
1087
|
}
|
|
1234
1088
|
const data = await parseBody(output.body, context);
|
|
1235
1089
|
let contents = {};
|
|
@@ -1240,34 +1094,9 @@ var de_CreateEndpointCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1240
1094
|
};
|
|
1241
1095
|
return response;
|
|
1242
1096
|
}, "de_CreateEndpointCommand");
|
|
1243
|
-
var de_CreateEndpointCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1244
|
-
const parsedOutput = {
|
|
1245
|
-
...output,
|
|
1246
|
-
body: await parseErrorBody(output.body, context)
|
|
1247
|
-
};
|
|
1248
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1249
|
-
switch (errorCode) {
|
|
1250
|
-
case "InternalException":
|
|
1251
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
1252
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1253
|
-
case "LimitExceededException":
|
|
1254
|
-
case "com.amazonaws.eventbridge#LimitExceededException":
|
|
1255
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1256
|
-
case "ResourceAlreadyExistsException":
|
|
1257
|
-
case "com.amazonaws.eventbridge#ResourceAlreadyExistsException":
|
|
1258
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1259
|
-
default:
|
|
1260
|
-
const parsedBody = parsedOutput.body;
|
|
1261
|
-
return throwDefaultError({
|
|
1262
|
-
output,
|
|
1263
|
-
parsedBody,
|
|
1264
|
-
errorCode
|
|
1265
|
-
});
|
|
1266
|
-
}
|
|
1267
|
-
}, "de_CreateEndpointCommandError");
|
|
1268
1097
|
var de_CreateEventBusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1269
1098
|
if (output.statusCode >= 300) {
|
|
1270
|
-
return
|
|
1099
|
+
return de_CommandError(output, context);
|
|
1271
1100
|
}
|
|
1272
1101
|
const data = await parseBody(output.body, context);
|
|
1273
1102
|
let contents = {};
|
|
@@ -1278,46 +1107,9 @@ var de_CreateEventBusCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1278
1107
|
};
|
|
1279
1108
|
return response;
|
|
1280
1109
|
}, "de_CreateEventBusCommand");
|
|
1281
|
-
var de_CreateEventBusCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1282
|
-
const parsedOutput = {
|
|
1283
|
-
...output,
|
|
1284
|
-
body: await parseErrorBody(output.body, context)
|
|
1285
|
-
};
|
|
1286
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1287
|
-
switch (errorCode) {
|
|
1288
|
-
case "ConcurrentModificationException":
|
|
1289
|
-
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
1290
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1291
|
-
case "InternalException":
|
|
1292
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
1293
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1294
|
-
case "InvalidStateException":
|
|
1295
|
-
case "com.amazonaws.eventbridge#InvalidStateException":
|
|
1296
|
-
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
1297
|
-
case "LimitExceededException":
|
|
1298
|
-
case "com.amazonaws.eventbridge#LimitExceededException":
|
|
1299
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1300
|
-
case "OperationDisabledException":
|
|
1301
|
-
case "com.amazonaws.eventbridge#OperationDisabledException":
|
|
1302
|
-
throw await de_OperationDisabledExceptionRes(parsedOutput, context);
|
|
1303
|
-
case "ResourceAlreadyExistsException":
|
|
1304
|
-
case "com.amazonaws.eventbridge#ResourceAlreadyExistsException":
|
|
1305
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1306
|
-
case "ResourceNotFoundException":
|
|
1307
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
1308
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1309
|
-
default:
|
|
1310
|
-
const parsedBody = parsedOutput.body;
|
|
1311
|
-
return throwDefaultError({
|
|
1312
|
-
output,
|
|
1313
|
-
parsedBody,
|
|
1314
|
-
errorCode
|
|
1315
|
-
});
|
|
1316
|
-
}
|
|
1317
|
-
}, "de_CreateEventBusCommandError");
|
|
1318
1110
|
var de_CreatePartnerEventSourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1319
1111
|
if (output.statusCode >= 300) {
|
|
1320
|
-
return
|
|
1112
|
+
return de_CommandError(output, context);
|
|
1321
1113
|
}
|
|
1322
1114
|
const data = await parseBody(output.body, context);
|
|
1323
1115
|
let contents = {};
|
|
@@ -1328,40 +1120,9 @@ var de_CreatePartnerEventSourceCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1328
1120
|
};
|
|
1329
1121
|
return response;
|
|
1330
1122
|
}, "de_CreatePartnerEventSourceCommand");
|
|
1331
|
-
var de_CreatePartnerEventSourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1332
|
-
const parsedOutput = {
|
|
1333
|
-
...output,
|
|
1334
|
-
body: await parseErrorBody(output.body, context)
|
|
1335
|
-
};
|
|
1336
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1337
|
-
switch (errorCode) {
|
|
1338
|
-
case "ConcurrentModificationException":
|
|
1339
|
-
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
1340
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1341
|
-
case "InternalException":
|
|
1342
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
1343
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1344
|
-
case "LimitExceededException":
|
|
1345
|
-
case "com.amazonaws.eventbridge#LimitExceededException":
|
|
1346
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1347
|
-
case "OperationDisabledException":
|
|
1348
|
-
case "com.amazonaws.eventbridge#OperationDisabledException":
|
|
1349
|
-
throw await de_OperationDisabledExceptionRes(parsedOutput, context);
|
|
1350
|
-
case "ResourceAlreadyExistsException":
|
|
1351
|
-
case "com.amazonaws.eventbridge#ResourceAlreadyExistsException":
|
|
1352
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1353
|
-
default:
|
|
1354
|
-
const parsedBody = parsedOutput.body;
|
|
1355
|
-
return throwDefaultError({
|
|
1356
|
-
output,
|
|
1357
|
-
parsedBody,
|
|
1358
|
-
errorCode
|
|
1359
|
-
});
|
|
1360
|
-
}
|
|
1361
|
-
}, "de_CreatePartnerEventSourceCommandError");
|
|
1362
1123
|
var de_DeactivateEventSourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1363
1124
|
if (output.statusCode >= 300) {
|
|
1364
|
-
return
|
|
1125
|
+
return de_CommandError(output, context);
|
|
1365
1126
|
}
|
|
1366
1127
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1367
1128
|
const response = {
|
|
@@ -1369,40 +1130,9 @@ var de_DeactivateEventSourceCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1369
1130
|
};
|
|
1370
1131
|
return response;
|
|
1371
1132
|
}, "de_DeactivateEventSourceCommand");
|
|
1372
|
-
var de_DeactivateEventSourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1373
|
-
const parsedOutput = {
|
|
1374
|
-
...output,
|
|
1375
|
-
body: await parseErrorBody(output.body, context)
|
|
1376
|
-
};
|
|
1377
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1378
|
-
switch (errorCode) {
|
|
1379
|
-
case "ConcurrentModificationException":
|
|
1380
|
-
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
1381
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1382
|
-
case "InternalException":
|
|
1383
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
1384
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1385
|
-
case "InvalidStateException":
|
|
1386
|
-
case "com.amazonaws.eventbridge#InvalidStateException":
|
|
1387
|
-
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
1388
|
-
case "OperationDisabledException":
|
|
1389
|
-
case "com.amazonaws.eventbridge#OperationDisabledException":
|
|
1390
|
-
throw await de_OperationDisabledExceptionRes(parsedOutput, context);
|
|
1391
|
-
case "ResourceNotFoundException":
|
|
1392
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
1393
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1394
|
-
default:
|
|
1395
|
-
const parsedBody = parsedOutput.body;
|
|
1396
|
-
return throwDefaultError({
|
|
1397
|
-
output,
|
|
1398
|
-
parsedBody,
|
|
1399
|
-
errorCode
|
|
1400
|
-
});
|
|
1401
|
-
}
|
|
1402
|
-
}, "de_DeactivateEventSourceCommandError");
|
|
1403
1133
|
var de_DeauthorizeConnectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1404
1134
|
if (output.statusCode >= 300) {
|
|
1405
|
-
return
|
|
1135
|
+
return de_CommandError(output, context);
|
|
1406
1136
|
}
|
|
1407
1137
|
const data = await parseBody(output.body, context);
|
|
1408
1138
|
let contents = {};
|
|
@@ -1413,34 +1143,9 @@ var de_DeauthorizeConnectionCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1413
1143
|
};
|
|
1414
1144
|
return response;
|
|
1415
1145
|
}, "de_DeauthorizeConnectionCommand");
|
|
1416
|
-
var de_DeauthorizeConnectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1417
|
-
const parsedOutput = {
|
|
1418
|
-
...output,
|
|
1419
|
-
body: await parseErrorBody(output.body, context)
|
|
1420
|
-
};
|
|
1421
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1422
|
-
switch (errorCode) {
|
|
1423
|
-
case "ConcurrentModificationException":
|
|
1424
|
-
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
1425
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1426
|
-
case "InternalException":
|
|
1427
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
1428
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1429
|
-
case "ResourceNotFoundException":
|
|
1430
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
1431
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1432
|
-
default:
|
|
1433
|
-
const parsedBody = parsedOutput.body;
|
|
1434
|
-
return throwDefaultError({
|
|
1435
|
-
output,
|
|
1436
|
-
parsedBody,
|
|
1437
|
-
errorCode
|
|
1438
|
-
});
|
|
1439
|
-
}
|
|
1440
|
-
}, "de_DeauthorizeConnectionCommandError");
|
|
1441
1146
|
var de_DeleteApiDestinationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1442
1147
|
if (output.statusCode >= 300) {
|
|
1443
|
-
return
|
|
1148
|
+
return de_CommandError(output, context);
|
|
1444
1149
|
}
|
|
1445
1150
|
const data = await parseBody(output.body, context);
|
|
1446
1151
|
let contents = {};
|
|
@@ -1451,34 +1156,9 @@ var de_DeleteApiDestinationCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1451
1156
|
};
|
|
1452
1157
|
return response;
|
|
1453
1158
|
}, "de_DeleteApiDestinationCommand");
|
|
1454
|
-
var de_DeleteApiDestinationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1455
|
-
const parsedOutput = {
|
|
1456
|
-
...output,
|
|
1457
|
-
body: await parseErrorBody(output.body, context)
|
|
1458
|
-
};
|
|
1459
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1460
|
-
switch (errorCode) {
|
|
1461
|
-
case "ConcurrentModificationException":
|
|
1462
|
-
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
1463
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1464
|
-
case "InternalException":
|
|
1465
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
1466
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1467
|
-
case "ResourceNotFoundException":
|
|
1468
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
1469
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1470
|
-
default:
|
|
1471
|
-
const parsedBody = parsedOutput.body;
|
|
1472
|
-
return throwDefaultError({
|
|
1473
|
-
output,
|
|
1474
|
-
parsedBody,
|
|
1475
|
-
errorCode
|
|
1476
|
-
});
|
|
1477
|
-
}
|
|
1478
|
-
}, "de_DeleteApiDestinationCommandError");
|
|
1479
1159
|
var de_DeleteArchiveCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1480
1160
|
if (output.statusCode >= 300) {
|
|
1481
|
-
return
|
|
1161
|
+
return de_CommandError(output, context);
|
|
1482
1162
|
}
|
|
1483
1163
|
const data = await parseBody(output.body, context);
|
|
1484
1164
|
let contents = {};
|
|
@@ -1489,34 +1169,9 @@ var de_DeleteArchiveCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1489
1169
|
};
|
|
1490
1170
|
return response;
|
|
1491
1171
|
}, "de_DeleteArchiveCommand");
|
|
1492
|
-
var de_DeleteArchiveCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1493
|
-
const parsedOutput = {
|
|
1494
|
-
...output,
|
|
1495
|
-
body: await parseErrorBody(output.body, context)
|
|
1496
|
-
};
|
|
1497
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1498
|
-
switch (errorCode) {
|
|
1499
|
-
case "ConcurrentModificationException":
|
|
1500
|
-
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
1501
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1502
|
-
case "InternalException":
|
|
1503
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
1504
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1505
|
-
case "ResourceNotFoundException":
|
|
1506
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
1507
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1508
|
-
default:
|
|
1509
|
-
const parsedBody = parsedOutput.body;
|
|
1510
|
-
return throwDefaultError({
|
|
1511
|
-
output,
|
|
1512
|
-
parsedBody,
|
|
1513
|
-
errorCode
|
|
1514
|
-
});
|
|
1515
|
-
}
|
|
1516
|
-
}, "de_DeleteArchiveCommandError");
|
|
1517
1172
|
var de_DeleteConnectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1518
1173
|
if (output.statusCode >= 300) {
|
|
1519
|
-
return
|
|
1174
|
+
return de_CommandError(output, context);
|
|
1520
1175
|
}
|
|
1521
1176
|
const data = await parseBody(output.body, context);
|
|
1522
1177
|
let contents = {};
|
|
@@ -1527,34 +1182,9 @@ var de_DeleteConnectionCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1527
1182
|
};
|
|
1528
1183
|
return response;
|
|
1529
1184
|
}, "de_DeleteConnectionCommand");
|
|
1530
|
-
var de_DeleteConnectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1531
|
-
const parsedOutput = {
|
|
1532
|
-
...output,
|
|
1533
|
-
body: await parseErrorBody(output.body, context)
|
|
1534
|
-
};
|
|
1535
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1536
|
-
switch (errorCode) {
|
|
1537
|
-
case "ConcurrentModificationException":
|
|
1538
|
-
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
1539
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1540
|
-
case "InternalException":
|
|
1541
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
1542
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1543
|
-
case "ResourceNotFoundException":
|
|
1544
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
1545
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1546
|
-
default:
|
|
1547
|
-
const parsedBody = parsedOutput.body;
|
|
1548
|
-
return throwDefaultError({
|
|
1549
|
-
output,
|
|
1550
|
-
parsedBody,
|
|
1551
|
-
errorCode
|
|
1552
|
-
});
|
|
1553
|
-
}
|
|
1554
|
-
}, "de_DeleteConnectionCommandError");
|
|
1555
1185
|
var de_DeleteEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1556
1186
|
if (output.statusCode >= 300) {
|
|
1557
|
-
return
|
|
1187
|
+
return de_CommandError(output, context);
|
|
1558
1188
|
}
|
|
1559
1189
|
const data = await parseBody(output.body, context);
|
|
1560
1190
|
let contents = {};
|
|
@@ -1565,34 +1195,9 @@ var de_DeleteEndpointCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1565
1195
|
};
|
|
1566
1196
|
return response;
|
|
1567
1197
|
}, "de_DeleteEndpointCommand");
|
|
1568
|
-
var de_DeleteEndpointCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1569
|
-
const parsedOutput = {
|
|
1570
|
-
...output,
|
|
1571
|
-
body: await parseErrorBody(output.body, context)
|
|
1572
|
-
};
|
|
1573
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1574
|
-
switch (errorCode) {
|
|
1575
|
-
case "ConcurrentModificationException":
|
|
1576
|
-
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
1577
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1578
|
-
case "InternalException":
|
|
1579
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
1580
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1581
|
-
case "ResourceNotFoundException":
|
|
1582
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
1583
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1584
|
-
default:
|
|
1585
|
-
const parsedBody = parsedOutput.body;
|
|
1586
|
-
return throwDefaultError({
|
|
1587
|
-
output,
|
|
1588
|
-
parsedBody,
|
|
1589
|
-
errorCode
|
|
1590
|
-
});
|
|
1591
|
-
}
|
|
1592
|
-
}, "de_DeleteEndpointCommandError");
|
|
1593
1198
|
var de_DeleteEventBusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1594
1199
|
if (output.statusCode >= 300) {
|
|
1595
|
-
return
|
|
1200
|
+
return de_CommandError(output, context);
|
|
1596
1201
|
}
|
|
1597
1202
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1598
1203
|
const response = {
|
|
@@ -1600,31 +1205,9 @@ var de_DeleteEventBusCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1600
1205
|
};
|
|
1601
1206
|
return response;
|
|
1602
1207
|
}, "de_DeleteEventBusCommand");
|
|
1603
|
-
var de_DeleteEventBusCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1604
|
-
const parsedOutput = {
|
|
1605
|
-
...output,
|
|
1606
|
-
body: await parseErrorBody(output.body, context)
|
|
1607
|
-
};
|
|
1608
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1609
|
-
switch (errorCode) {
|
|
1610
|
-
case "ConcurrentModificationException":
|
|
1611
|
-
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
1612
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1613
|
-
case "InternalException":
|
|
1614
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
1615
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1616
|
-
default:
|
|
1617
|
-
const parsedBody = parsedOutput.body;
|
|
1618
|
-
return throwDefaultError({
|
|
1619
|
-
output,
|
|
1620
|
-
parsedBody,
|
|
1621
|
-
errorCode
|
|
1622
|
-
});
|
|
1623
|
-
}
|
|
1624
|
-
}, "de_DeleteEventBusCommandError");
|
|
1625
1208
|
var de_DeletePartnerEventSourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1626
1209
|
if (output.statusCode >= 300) {
|
|
1627
|
-
return
|
|
1210
|
+
return de_CommandError(output, context);
|
|
1628
1211
|
}
|
|
1629
1212
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1630
1213
|
const response = {
|
|
@@ -1632,34 +1215,9 @@ var de_DeletePartnerEventSourceCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1632
1215
|
};
|
|
1633
1216
|
return response;
|
|
1634
1217
|
}, "de_DeletePartnerEventSourceCommand");
|
|
1635
|
-
var de_DeletePartnerEventSourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1636
|
-
const parsedOutput = {
|
|
1637
|
-
...output,
|
|
1638
|
-
body: await parseErrorBody(output.body, context)
|
|
1639
|
-
};
|
|
1640
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1641
|
-
switch (errorCode) {
|
|
1642
|
-
case "ConcurrentModificationException":
|
|
1643
|
-
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
1644
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1645
|
-
case "InternalException":
|
|
1646
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
1647
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1648
|
-
case "OperationDisabledException":
|
|
1649
|
-
case "com.amazonaws.eventbridge#OperationDisabledException":
|
|
1650
|
-
throw await de_OperationDisabledExceptionRes(parsedOutput, context);
|
|
1651
|
-
default:
|
|
1652
|
-
const parsedBody = parsedOutput.body;
|
|
1653
|
-
return throwDefaultError({
|
|
1654
|
-
output,
|
|
1655
|
-
parsedBody,
|
|
1656
|
-
errorCode
|
|
1657
|
-
});
|
|
1658
|
-
}
|
|
1659
|
-
}, "de_DeletePartnerEventSourceCommandError");
|
|
1660
1218
|
var de_DeleteRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1661
1219
|
if (output.statusCode >= 300) {
|
|
1662
|
-
return
|
|
1220
|
+
return de_CommandError(output, context);
|
|
1663
1221
|
}
|
|
1664
1222
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1665
1223
|
const response = {
|
|
@@ -1667,37 +1225,9 @@ var de_DeleteRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1667
1225
|
};
|
|
1668
1226
|
return response;
|
|
1669
1227
|
}, "de_DeleteRuleCommand");
|
|
1670
|
-
var de_DeleteRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1671
|
-
const parsedOutput = {
|
|
1672
|
-
...output,
|
|
1673
|
-
body: await parseErrorBody(output.body, context)
|
|
1674
|
-
};
|
|
1675
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1676
|
-
switch (errorCode) {
|
|
1677
|
-
case "ConcurrentModificationException":
|
|
1678
|
-
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
1679
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1680
|
-
case "InternalException":
|
|
1681
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
1682
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1683
|
-
case "ManagedRuleException":
|
|
1684
|
-
case "com.amazonaws.eventbridge#ManagedRuleException":
|
|
1685
|
-
throw await de_ManagedRuleExceptionRes(parsedOutput, context);
|
|
1686
|
-
case "ResourceNotFoundException":
|
|
1687
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
1688
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1689
|
-
default:
|
|
1690
|
-
const parsedBody = parsedOutput.body;
|
|
1691
|
-
return throwDefaultError({
|
|
1692
|
-
output,
|
|
1693
|
-
parsedBody,
|
|
1694
|
-
errorCode
|
|
1695
|
-
});
|
|
1696
|
-
}
|
|
1697
|
-
}, "de_DeleteRuleCommandError");
|
|
1698
1228
|
var de_DescribeApiDestinationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1699
1229
|
if (output.statusCode >= 300) {
|
|
1700
|
-
return
|
|
1230
|
+
return de_CommandError(output, context);
|
|
1701
1231
|
}
|
|
1702
1232
|
const data = await parseBody(output.body, context);
|
|
1703
1233
|
let contents = {};
|
|
@@ -1708,31 +1238,9 @@ var de_DescribeApiDestinationCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1708
1238
|
};
|
|
1709
1239
|
return response;
|
|
1710
1240
|
}, "de_DescribeApiDestinationCommand");
|
|
1711
|
-
var de_DescribeApiDestinationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1712
|
-
const parsedOutput = {
|
|
1713
|
-
...output,
|
|
1714
|
-
body: await parseErrorBody(output.body, context)
|
|
1715
|
-
};
|
|
1716
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1717
|
-
switch (errorCode) {
|
|
1718
|
-
case "InternalException":
|
|
1719
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
1720
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1721
|
-
case "ResourceNotFoundException":
|
|
1722
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
1723
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1724
|
-
default:
|
|
1725
|
-
const parsedBody = parsedOutput.body;
|
|
1726
|
-
return throwDefaultError({
|
|
1727
|
-
output,
|
|
1728
|
-
parsedBody,
|
|
1729
|
-
errorCode
|
|
1730
|
-
});
|
|
1731
|
-
}
|
|
1732
|
-
}, "de_DescribeApiDestinationCommandError");
|
|
1733
1241
|
var de_DescribeArchiveCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1734
1242
|
if (output.statusCode >= 300) {
|
|
1735
|
-
return
|
|
1243
|
+
return de_CommandError(output, context);
|
|
1736
1244
|
}
|
|
1737
1245
|
const data = await parseBody(output.body, context);
|
|
1738
1246
|
let contents = {};
|
|
@@ -1743,34 +1251,9 @@ var de_DescribeArchiveCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1743
1251
|
};
|
|
1744
1252
|
return response;
|
|
1745
1253
|
}, "de_DescribeArchiveCommand");
|
|
1746
|
-
var de_DescribeArchiveCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1747
|
-
const parsedOutput = {
|
|
1748
|
-
...output,
|
|
1749
|
-
body: await parseErrorBody(output.body, context)
|
|
1750
|
-
};
|
|
1751
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1752
|
-
switch (errorCode) {
|
|
1753
|
-
case "InternalException":
|
|
1754
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
1755
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1756
|
-
case "ResourceAlreadyExistsException":
|
|
1757
|
-
case "com.amazonaws.eventbridge#ResourceAlreadyExistsException":
|
|
1758
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1759
|
-
case "ResourceNotFoundException":
|
|
1760
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
1761
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1762
|
-
default:
|
|
1763
|
-
const parsedBody = parsedOutput.body;
|
|
1764
|
-
return throwDefaultError({
|
|
1765
|
-
output,
|
|
1766
|
-
parsedBody,
|
|
1767
|
-
errorCode
|
|
1768
|
-
});
|
|
1769
|
-
}
|
|
1770
|
-
}, "de_DescribeArchiveCommandError");
|
|
1771
1254
|
var de_DescribeConnectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1772
1255
|
if (output.statusCode >= 300) {
|
|
1773
|
-
return
|
|
1256
|
+
return de_CommandError(output, context);
|
|
1774
1257
|
}
|
|
1775
1258
|
const data = await parseBody(output.body, context);
|
|
1776
1259
|
let contents = {};
|
|
@@ -1781,31 +1264,9 @@ var de_DescribeConnectionCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1781
1264
|
};
|
|
1782
1265
|
return response;
|
|
1783
1266
|
}, "de_DescribeConnectionCommand");
|
|
1784
|
-
var de_DescribeConnectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1785
|
-
const parsedOutput = {
|
|
1786
|
-
...output,
|
|
1787
|
-
body: await parseErrorBody(output.body, context)
|
|
1788
|
-
};
|
|
1789
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1790
|
-
switch (errorCode) {
|
|
1791
|
-
case "InternalException":
|
|
1792
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
1793
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1794
|
-
case "ResourceNotFoundException":
|
|
1795
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
1796
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1797
|
-
default:
|
|
1798
|
-
const parsedBody = parsedOutput.body;
|
|
1799
|
-
return throwDefaultError({
|
|
1800
|
-
output,
|
|
1801
|
-
parsedBody,
|
|
1802
|
-
errorCode
|
|
1803
|
-
});
|
|
1804
|
-
}
|
|
1805
|
-
}, "de_DescribeConnectionCommandError");
|
|
1806
1267
|
var de_DescribeEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1807
1268
|
if (output.statusCode >= 300) {
|
|
1808
|
-
return
|
|
1269
|
+
return de_CommandError(output, context);
|
|
1809
1270
|
}
|
|
1810
1271
|
const data = await parseBody(output.body, context);
|
|
1811
1272
|
let contents = {};
|
|
@@ -1816,66 +1277,22 @@ var de_DescribeEndpointCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1816
1277
|
};
|
|
1817
1278
|
return response;
|
|
1818
1279
|
}, "de_DescribeEndpointCommand");
|
|
1819
|
-
var
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
case "ResourceNotFoundException":
|
|
1830
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
1831
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1832
|
-
default:
|
|
1833
|
-
const parsedBody = parsedOutput.body;
|
|
1834
|
-
return throwDefaultError({
|
|
1835
|
-
output,
|
|
1836
|
-
parsedBody,
|
|
1837
|
-
errorCode
|
|
1838
|
-
});
|
|
1839
|
-
}
|
|
1840
|
-
}, "de_DescribeEndpointCommandError");
|
|
1841
|
-
var de_DescribeEventBusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1842
|
-
if (output.statusCode >= 300) {
|
|
1843
|
-
return de_DescribeEventBusCommandError(output, context);
|
|
1844
|
-
}
|
|
1845
|
-
const data = await parseBody(output.body, context);
|
|
1846
|
-
let contents = {};
|
|
1847
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1848
|
-
const response = {
|
|
1849
|
-
$metadata: deserializeMetadata(output),
|
|
1850
|
-
...contents
|
|
1280
|
+
var de_DescribeEventBusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1281
|
+
if (output.statusCode >= 300) {
|
|
1282
|
+
return de_CommandError(output, context);
|
|
1283
|
+
}
|
|
1284
|
+
const data = await parseBody(output.body, context);
|
|
1285
|
+
let contents = {};
|
|
1286
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1287
|
+
const response = {
|
|
1288
|
+
$metadata: deserializeMetadata(output),
|
|
1289
|
+
...contents
|
|
1851
1290
|
};
|
|
1852
1291
|
return response;
|
|
1853
1292
|
}, "de_DescribeEventBusCommand");
|
|
1854
|
-
var de_DescribeEventBusCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1855
|
-
const parsedOutput = {
|
|
1856
|
-
...output,
|
|
1857
|
-
body: await parseErrorBody(output.body, context)
|
|
1858
|
-
};
|
|
1859
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1860
|
-
switch (errorCode) {
|
|
1861
|
-
case "InternalException":
|
|
1862
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
1863
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1864
|
-
case "ResourceNotFoundException":
|
|
1865
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
1866
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1867
|
-
default:
|
|
1868
|
-
const parsedBody = parsedOutput.body;
|
|
1869
|
-
return throwDefaultError({
|
|
1870
|
-
output,
|
|
1871
|
-
parsedBody,
|
|
1872
|
-
errorCode
|
|
1873
|
-
});
|
|
1874
|
-
}
|
|
1875
|
-
}, "de_DescribeEventBusCommandError");
|
|
1876
1293
|
var de_DescribeEventSourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1877
1294
|
if (output.statusCode >= 300) {
|
|
1878
|
-
return
|
|
1295
|
+
return de_CommandError(output, context);
|
|
1879
1296
|
}
|
|
1880
1297
|
const data = await parseBody(output.body, context);
|
|
1881
1298
|
let contents = {};
|
|
@@ -1886,34 +1303,9 @@ var de_DescribeEventSourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1886
1303
|
};
|
|
1887
1304
|
return response;
|
|
1888
1305
|
}, "de_DescribeEventSourceCommand");
|
|
1889
|
-
var de_DescribeEventSourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1890
|
-
const parsedOutput = {
|
|
1891
|
-
...output,
|
|
1892
|
-
body: await parseErrorBody(output.body, context)
|
|
1893
|
-
};
|
|
1894
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1895
|
-
switch (errorCode) {
|
|
1896
|
-
case "InternalException":
|
|
1897
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
1898
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1899
|
-
case "OperationDisabledException":
|
|
1900
|
-
case "com.amazonaws.eventbridge#OperationDisabledException":
|
|
1901
|
-
throw await de_OperationDisabledExceptionRes(parsedOutput, context);
|
|
1902
|
-
case "ResourceNotFoundException":
|
|
1903
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
1904
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1905
|
-
default:
|
|
1906
|
-
const parsedBody = parsedOutput.body;
|
|
1907
|
-
return throwDefaultError({
|
|
1908
|
-
output,
|
|
1909
|
-
parsedBody,
|
|
1910
|
-
errorCode
|
|
1911
|
-
});
|
|
1912
|
-
}
|
|
1913
|
-
}, "de_DescribeEventSourceCommandError");
|
|
1914
1306
|
var de_DescribePartnerEventSourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1915
1307
|
if (output.statusCode >= 300) {
|
|
1916
|
-
return
|
|
1308
|
+
return de_CommandError(output, context);
|
|
1917
1309
|
}
|
|
1918
1310
|
const data = await parseBody(output.body, context);
|
|
1919
1311
|
let contents = {};
|
|
@@ -1924,34 +1316,9 @@ var de_DescribePartnerEventSourceCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1924
1316
|
};
|
|
1925
1317
|
return response;
|
|
1926
1318
|
}, "de_DescribePartnerEventSourceCommand");
|
|
1927
|
-
var de_DescribePartnerEventSourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1928
|
-
const parsedOutput = {
|
|
1929
|
-
...output,
|
|
1930
|
-
body: await parseErrorBody(output.body, context)
|
|
1931
|
-
};
|
|
1932
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1933
|
-
switch (errorCode) {
|
|
1934
|
-
case "InternalException":
|
|
1935
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
1936
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1937
|
-
case "OperationDisabledException":
|
|
1938
|
-
case "com.amazonaws.eventbridge#OperationDisabledException":
|
|
1939
|
-
throw await de_OperationDisabledExceptionRes(parsedOutput, context);
|
|
1940
|
-
case "ResourceNotFoundException":
|
|
1941
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
1942
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1943
|
-
default:
|
|
1944
|
-
const parsedBody = parsedOutput.body;
|
|
1945
|
-
return throwDefaultError({
|
|
1946
|
-
output,
|
|
1947
|
-
parsedBody,
|
|
1948
|
-
errorCode
|
|
1949
|
-
});
|
|
1950
|
-
}
|
|
1951
|
-
}, "de_DescribePartnerEventSourceCommandError");
|
|
1952
1319
|
var de_DescribeReplayCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1953
1320
|
if (output.statusCode >= 300) {
|
|
1954
|
-
return
|
|
1321
|
+
return de_CommandError(output, context);
|
|
1955
1322
|
}
|
|
1956
1323
|
const data = await parseBody(output.body, context);
|
|
1957
1324
|
let contents = {};
|
|
@@ -1962,31 +1329,9 @@ var de_DescribeReplayCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1962
1329
|
};
|
|
1963
1330
|
return response;
|
|
1964
1331
|
}, "de_DescribeReplayCommand");
|
|
1965
|
-
var de_DescribeReplayCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1966
|
-
const parsedOutput = {
|
|
1967
|
-
...output,
|
|
1968
|
-
body: await parseErrorBody(output.body, context)
|
|
1969
|
-
};
|
|
1970
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1971
|
-
switch (errorCode) {
|
|
1972
|
-
case "InternalException":
|
|
1973
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
1974
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1975
|
-
case "ResourceNotFoundException":
|
|
1976
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
1977
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1978
|
-
default:
|
|
1979
|
-
const parsedBody = parsedOutput.body;
|
|
1980
|
-
return throwDefaultError({
|
|
1981
|
-
output,
|
|
1982
|
-
parsedBody,
|
|
1983
|
-
errorCode
|
|
1984
|
-
});
|
|
1985
|
-
}
|
|
1986
|
-
}, "de_DescribeReplayCommandError");
|
|
1987
1332
|
var de_DescribeRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1988
1333
|
if (output.statusCode >= 300) {
|
|
1989
|
-
return
|
|
1334
|
+
return de_CommandError(output, context);
|
|
1990
1335
|
}
|
|
1991
1336
|
const data = await parseBody(output.body, context);
|
|
1992
1337
|
let contents = {};
|
|
@@ -1997,31 +1342,9 @@ var de_DescribeRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1997
1342
|
};
|
|
1998
1343
|
return response;
|
|
1999
1344
|
}, "de_DescribeRuleCommand");
|
|
2000
|
-
var de_DescribeRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2001
|
-
const parsedOutput = {
|
|
2002
|
-
...output,
|
|
2003
|
-
body: await parseErrorBody(output.body, context)
|
|
2004
|
-
};
|
|
2005
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2006
|
-
switch (errorCode) {
|
|
2007
|
-
case "InternalException":
|
|
2008
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
2009
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2010
|
-
case "ResourceNotFoundException":
|
|
2011
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
2012
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2013
|
-
default:
|
|
2014
|
-
const parsedBody = parsedOutput.body;
|
|
2015
|
-
return throwDefaultError({
|
|
2016
|
-
output,
|
|
2017
|
-
parsedBody,
|
|
2018
|
-
errorCode
|
|
2019
|
-
});
|
|
2020
|
-
}
|
|
2021
|
-
}, "de_DescribeRuleCommandError");
|
|
2022
1345
|
var de_DisableRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2023
1346
|
if (output.statusCode >= 300) {
|
|
2024
|
-
return
|
|
1347
|
+
return de_CommandError(output, context);
|
|
2025
1348
|
}
|
|
2026
1349
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2027
1350
|
const response = {
|
|
@@ -2029,37 +1352,9 @@ var de_DisableRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2029
1352
|
};
|
|
2030
1353
|
return response;
|
|
2031
1354
|
}, "de_DisableRuleCommand");
|
|
2032
|
-
var de_DisableRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2033
|
-
const parsedOutput = {
|
|
2034
|
-
...output,
|
|
2035
|
-
body: await parseErrorBody(output.body, context)
|
|
2036
|
-
};
|
|
2037
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2038
|
-
switch (errorCode) {
|
|
2039
|
-
case "ConcurrentModificationException":
|
|
2040
|
-
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
2041
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2042
|
-
case "InternalException":
|
|
2043
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
2044
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2045
|
-
case "ManagedRuleException":
|
|
2046
|
-
case "com.amazonaws.eventbridge#ManagedRuleException":
|
|
2047
|
-
throw await de_ManagedRuleExceptionRes(parsedOutput, context);
|
|
2048
|
-
case "ResourceNotFoundException":
|
|
2049
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
2050
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2051
|
-
default:
|
|
2052
|
-
const parsedBody = parsedOutput.body;
|
|
2053
|
-
return throwDefaultError({
|
|
2054
|
-
output,
|
|
2055
|
-
parsedBody,
|
|
2056
|
-
errorCode
|
|
2057
|
-
});
|
|
2058
|
-
}
|
|
2059
|
-
}, "de_DisableRuleCommandError");
|
|
2060
1355
|
var de_EnableRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2061
1356
|
if (output.statusCode >= 300) {
|
|
2062
|
-
return
|
|
1357
|
+
return de_CommandError(output, context);
|
|
2063
1358
|
}
|
|
2064
1359
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2065
1360
|
const response = {
|
|
@@ -2067,37 +1362,9 @@ var de_EnableRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2067
1362
|
};
|
|
2068
1363
|
return response;
|
|
2069
1364
|
}, "de_EnableRuleCommand");
|
|
2070
|
-
var de_EnableRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2071
|
-
const parsedOutput = {
|
|
2072
|
-
...output,
|
|
2073
|
-
body: await parseErrorBody(output.body, context)
|
|
2074
|
-
};
|
|
2075
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2076
|
-
switch (errorCode) {
|
|
2077
|
-
case "ConcurrentModificationException":
|
|
2078
|
-
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
2079
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2080
|
-
case "InternalException":
|
|
2081
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
2082
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2083
|
-
case "ManagedRuleException":
|
|
2084
|
-
case "com.amazonaws.eventbridge#ManagedRuleException":
|
|
2085
|
-
throw await de_ManagedRuleExceptionRes(parsedOutput, context);
|
|
2086
|
-
case "ResourceNotFoundException":
|
|
2087
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
2088
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2089
|
-
default:
|
|
2090
|
-
const parsedBody = parsedOutput.body;
|
|
2091
|
-
return throwDefaultError({
|
|
2092
|
-
output,
|
|
2093
|
-
parsedBody,
|
|
2094
|
-
errorCode
|
|
2095
|
-
});
|
|
2096
|
-
}
|
|
2097
|
-
}, "de_EnableRuleCommandError");
|
|
2098
1365
|
var de_ListApiDestinationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2099
1366
|
if (output.statusCode >= 300) {
|
|
2100
|
-
return
|
|
1367
|
+
return de_CommandError(output, context);
|
|
2101
1368
|
}
|
|
2102
1369
|
const data = await parseBody(output.body, context);
|
|
2103
1370
|
let contents = {};
|
|
@@ -2108,28 +1375,9 @@ var de_ListApiDestinationsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2108
1375
|
};
|
|
2109
1376
|
return response;
|
|
2110
1377
|
}, "de_ListApiDestinationsCommand");
|
|
2111
|
-
var de_ListApiDestinationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2112
|
-
const parsedOutput = {
|
|
2113
|
-
...output,
|
|
2114
|
-
body: await parseErrorBody(output.body, context)
|
|
2115
|
-
};
|
|
2116
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2117
|
-
switch (errorCode) {
|
|
2118
|
-
case "InternalException":
|
|
2119
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
2120
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2121
|
-
default:
|
|
2122
|
-
const parsedBody = parsedOutput.body;
|
|
2123
|
-
return throwDefaultError({
|
|
2124
|
-
output,
|
|
2125
|
-
parsedBody,
|
|
2126
|
-
errorCode
|
|
2127
|
-
});
|
|
2128
|
-
}
|
|
2129
|
-
}, "de_ListApiDestinationsCommandError");
|
|
2130
1378
|
var de_ListArchivesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2131
1379
|
if (output.statusCode >= 300) {
|
|
2132
|
-
return
|
|
1380
|
+
return de_CommandError(output, context);
|
|
2133
1381
|
}
|
|
2134
1382
|
const data = await parseBody(output.body, context);
|
|
2135
1383
|
let contents = {};
|
|
@@ -2140,31 +1388,9 @@ var de_ListArchivesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2140
1388
|
};
|
|
2141
1389
|
return response;
|
|
2142
1390
|
}, "de_ListArchivesCommand");
|
|
2143
|
-
var de_ListArchivesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2144
|
-
const parsedOutput = {
|
|
2145
|
-
...output,
|
|
2146
|
-
body: await parseErrorBody(output.body, context)
|
|
2147
|
-
};
|
|
2148
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2149
|
-
switch (errorCode) {
|
|
2150
|
-
case "InternalException":
|
|
2151
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
2152
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2153
|
-
case "ResourceNotFoundException":
|
|
2154
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
2155
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2156
|
-
default:
|
|
2157
|
-
const parsedBody = parsedOutput.body;
|
|
2158
|
-
return throwDefaultError({
|
|
2159
|
-
output,
|
|
2160
|
-
parsedBody,
|
|
2161
|
-
errorCode
|
|
2162
|
-
});
|
|
2163
|
-
}
|
|
2164
|
-
}, "de_ListArchivesCommandError");
|
|
2165
1391
|
var de_ListConnectionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2166
1392
|
if (output.statusCode >= 300) {
|
|
2167
|
-
return
|
|
1393
|
+
return de_CommandError(output, context);
|
|
2168
1394
|
}
|
|
2169
1395
|
const data = await parseBody(output.body, context);
|
|
2170
1396
|
let contents = {};
|
|
@@ -2175,28 +1401,9 @@ var de_ListConnectionsCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2175
1401
|
};
|
|
2176
1402
|
return response;
|
|
2177
1403
|
}, "de_ListConnectionsCommand");
|
|
2178
|
-
var de_ListConnectionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2179
|
-
const parsedOutput = {
|
|
2180
|
-
...output,
|
|
2181
|
-
body: await parseErrorBody(output.body, context)
|
|
2182
|
-
};
|
|
2183
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2184
|
-
switch (errorCode) {
|
|
2185
|
-
case "InternalException":
|
|
2186
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
2187
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2188
|
-
default:
|
|
2189
|
-
const parsedBody = parsedOutput.body;
|
|
2190
|
-
return throwDefaultError({
|
|
2191
|
-
output,
|
|
2192
|
-
parsedBody,
|
|
2193
|
-
errorCode
|
|
2194
|
-
});
|
|
2195
|
-
}
|
|
2196
|
-
}, "de_ListConnectionsCommandError");
|
|
2197
1404
|
var de_ListEndpointsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2198
1405
|
if (output.statusCode >= 300) {
|
|
2199
|
-
return
|
|
1406
|
+
return de_CommandError(output, context);
|
|
2200
1407
|
}
|
|
2201
1408
|
const data = await parseBody(output.body, context);
|
|
2202
1409
|
let contents = {};
|
|
@@ -2207,28 +1414,9 @@ var de_ListEndpointsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2207
1414
|
};
|
|
2208
1415
|
return response;
|
|
2209
1416
|
}, "de_ListEndpointsCommand");
|
|
2210
|
-
var de_ListEndpointsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2211
|
-
const parsedOutput = {
|
|
2212
|
-
...output,
|
|
2213
|
-
body: await parseErrorBody(output.body, context)
|
|
2214
|
-
};
|
|
2215
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2216
|
-
switch (errorCode) {
|
|
2217
|
-
case "InternalException":
|
|
2218
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
2219
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2220
|
-
default:
|
|
2221
|
-
const parsedBody = parsedOutput.body;
|
|
2222
|
-
return throwDefaultError({
|
|
2223
|
-
output,
|
|
2224
|
-
parsedBody,
|
|
2225
|
-
errorCode
|
|
2226
|
-
});
|
|
2227
|
-
}
|
|
2228
|
-
}, "de_ListEndpointsCommandError");
|
|
2229
1417
|
var de_ListEventBusesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2230
1418
|
if (output.statusCode >= 300) {
|
|
2231
|
-
return
|
|
1419
|
+
return de_CommandError(output, context);
|
|
2232
1420
|
}
|
|
2233
1421
|
const data = await parseBody(output.body, context);
|
|
2234
1422
|
let contents = {};
|
|
@@ -2239,28 +1427,9 @@ var de_ListEventBusesCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2239
1427
|
};
|
|
2240
1428
|
return response;
|
|
2241
1429
|
}, "de_ListEventBusesCommand");
|
|
2242
|
-
var de_ListEventBusesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2243
|
-
const parsedOutput = {
|
|
2244
|
-
...output,
|
|
2245
|
-
body: await parseErrorBody(output.body, context)
|
|
2246
|
-
};
|
|
2247
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2248
|
-
switch (errorCode) {
|
|
2249
|
-
case "InternalException":
|
|
2250
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
2251
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2252
|
-
default:
|
|
2253
|
-
const parsedBody = parsedOutput.body;
|
|
2254
|
-
return throwDefaultError({
|
|
2255
|
-
output,
|
|
2256
|
-
parsedBody,
|
|
2257
|
-
errorCode
|
|
2258
|
-
});
|
|
2259
|
-
}
|
|
2260
|
-
}, "de_ListEventBusesCommandError");
|
|
2261
1430
|
var de_ListEventSourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2262
1431
|
if (output.statusCode >= 300) {
|
|
2263
|
-
return
|
|
1432
|
+
return de_CommandError(output, context);
|
|
2264
1433
|
}
|
|
2265
1434
|
const data = await parseBody(output.body, context);
|
|
2266
1435
|
let contents = {};
|
|
@@ -2271,31 +1440,9 @@ var de_ListEventSourcesCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2271
1440
|
};
|
|
2272
1441
|
return response;
|
|
2273
1442
|
}, "de_ListEventSourcesCommand");
|
|
2274
|
-
var de_ListEventSourcesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2275
|
-
const parsedOutput = {
|
|
2276
|
-
...output,
|
|
2277
|
-
body: await parseErrorBody(output.body, context)
|
|
2278
|
-
};
|
|
2279
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2280
|
-
switch (errorCode) {
|
|
2281
|
-
case "InternalException":
|
|
2282
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
2283
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2284
|
-
case "OperationDisabledException":
|
|
2285
|
-
case "com.amazonaws.eventbridge#OperationDisabledException":
|
|
2286
|
-
throw await de_OperationDisabledExceptionRes(parsedOutput, context);
|
|
2287
|
-
default:
|
|
2288
|
-
const parsedBody = parsedOutput.body;
|
|
2289
|
-
return throwDefaultError({
|
|
2290
|
-
output,
|
|
2291
|
-
parsedBody,
|
|
2292
|
-
errorCode
|
|
2293
|
-
});
|
|
2294
|
-
}
|
|
2295
|
-
}, "de_ListEventSourcesCommandError");
|
|
2296
1443
|
var de_ListPartnerEventSourceAccountsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2297
1444
|
if (output.statusCode >= 300) {
|
|
2298
|
-
return
|
|
1445
|
+
return de_CommandError(output, context);
|
|
2299
1446
|
}
|
|
2300
1447
|
const data = await parseBody(output.body, context);
|
|
2301
1448
|
let contents = {};
|
|
@@ -2306,34 +1453,9 @@ var de_ListPartnerEventSourceAccountsCommand = /* @__PURE__ */ __name(async (out
|
|
|
2306
1453
|
};
|
|
2307
1454
|
return response;
|
|
2308
1455
|
}, "de_ListPartnerEventSourceAccountsCommand");
|
|
2309
|
-
var de_ListPartnerEventSourceAccountsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2310
|
-
const parsedOutput = {
|
|
2311
|
-
...output,
|
|
2312
|
-
body: await parseErrorBody(output.body, context)
|
|
2313
|
-
};
|
|
2314
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2315
|
-
switch (errorCode) {
|
|
2316
|
-
case "InternalException":
|
|
2317
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
2318
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2319
|
-
case "OperationDisabledException":
|
|
2320
|
-
case "com.amazonaws.eventbridge#OperationDisabledException":
|
|
2321
|
-
throw await de_OperationDisabledExceptionRes(parsedOutput, context);
|
|
2322
|
-
case "ResourceNotFoundException":
|
|
2323
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
2324
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2325
|
-
default:
|
|
2326
|
-
const parsedBody = parsedOutput.body;
|
|
2327
|
-
return throwDefaultError({
|
|
2328
|
-
output,
|
|
2329
|
-
parsedBody,
|
|
2330
|
-
errorCode
|
|
2331
|
-
});
|
|
2332
|
-
}
|
|
2333
|
-
}, "de_ListPartnerEventSourceAccountsCommandError");
|
|
2334
1456
|
var de_ListPartnerEventSourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2335
1457
|
if (output.statusCode >= 300) {
|
|
2336
|
-
return
|
|
1458
|
+
return de_CommandError(output, context);
|
|
2337
1459
|
}
|
|
2338
1460
|
const data = await parseBody(output.body, context);
|
|
2339
1461
|
let contents = {};
|
|
@@ -2344,31 +1466,9 @@ var de_ListPartnerEventSourcesCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2344
1466
|
};
|
|
2345
1467
|
return response;
|
|
2346
1468
|
}, "de_ListPartnerEventSourcesCommand");
|
|
2347
|
-
var de_ListPartnerEventSourcesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2348
|
-
const parsedOutput = {
|
|
2349
|
-
...output,
|
|
2350
|
-
body: await parseErrorBody(output.body, context)
|
|
2351
|
-
};
|
|
2352
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2353
|
-
switch (errorCode) {
|
|
2354
|
-
case "InternalException":
|
|
2355
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
2356
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2357
|
-
case "OperationDisabledException":
|
|
2358
|
-
case "com.amazonaws.eventbridge#OperationDisabledException":
|
|
2359
|
-
throw await de_OperationDisabledExceptionRes(parsedOutput, context);
|
|
2360
|
-
default:
|
|
2361
|
-
const parsedBody = parsedOutput.body;
|
|
2362
|
-
return throwDefaultError({
|
|
2363
|
-
output,
|
|
2364
|
-
parsedBody,
|
|
2365
|
-
errorCode
|
|
2366
|
-
});
|
|
2367
|
-
}
|
|
2368
|
-
}, "de_ListPartnerEventSourcesCommandError");
|
|
2369
1469
|
var de_ListReplaysCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2370
1470
|
if (output.statusCode >= 300) {
|
|
2371
|
-
return
|
|
1471
|
+
return de_CommandError(output, context);
|
|
2372
1472
|
}
|
|
2373
1473
|
const data = await parseBody(output.body, context);
|
|
2374
1474
|
let contents = {};
|
|
@@ -2379,28 +1479,9 @@ var de_ListReplaysCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2379
1479
|
};
|
|
2380
1480
|
return response;
|
|
2381
1481
|
}, "de_ListReplaysCommand");
|
|
2382
|
-
var de_ListReplaysCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2383
|
-
const parsedOutput = {
|
|
2384
|
-
...output,
|
|
2385
|
-
body: await parseErrorBody(output.body, context)
|
|
2386
|
-
};
|
|
2387
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2388
|
-
switch (errorCode) {
|
|
2389
|
-
case "InternalException":
|
|
2390
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
2391
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2392
|
-
default:
|
|
2393
|
-
const parsedBody = parsedOutput.body;
|
|
2394
|
-
return throwDefaultError({
|
|
2395
|
-
output,
|
|
2396
|
-
parsedBody,
|
|
2397
|
-
errorCode
|
|
2398
|
-
});
|
|
2399
|
-
}
|
|
2400
|
-
}, "de_ListReplaysCommandError");
|
|
2401
1482
|
var de_ListRuleNamesByTargetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2402
1483
|
if (output.statusCode >= 300) {
|
|
2403
|
-
return
|
|
1484
|
+
return de_CommandError(output, context);
|
|
2404
1485
|
}
|
|
2405
1486
|
const data = await parseBody(output.body, context);
|
|
2406
1487
|
let contents = {};
|
|
@@ -2411,31 +1492,9 @@ var de_ListRuleNamesByTargetCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2411
1492
|
};
|
|
2412
1493
|
return response;
|
|
2413
1494
|
}, "de_ListRuleNamesByTargetCommand");
|
|
2414
|
-
var de_ListRuleNamesByTargetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2415
|
-
const parsedOutput = {
|
|
2416
|
-
...output,
|
|
2417
|
-
body: await parseErrorBody(output.body, context)
|
|
2418
|
-
};
|
|
2419
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2420
|
-
switch (errorCode) {
|
|
2421
|
-
case "InternalException":
|
|
2422
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
2423
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2424
|
-
case "ResourceNotFoundException":
|
|
2425
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
2426
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2427
|
-
default:
|
|
2428
|
-
const parsedBody = parsedOutput.body;
|
|
2429
|
-
return throwDefaultError({
|
|
2430
|
-
output,
|
|
2431
|
-
parsedBody,
|
|
2432
|
-
errorCode
|
|
2433
|
-
});
|
|
2434
|
-
}
|
|
2435
|
-
}, "de_ListRuleNamesByTargetCommandError");
|
|
2436
1495
|
var de_ListRulesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2437
1496
|
if (output.statusCode >= 300) {
|
|
2438
|
-
return
|
|
1497
|
+
return de_CommandError(output, context);
|
|
2439
1498
|
}
|
|
2440
1499
|
const data = await parseBody(output.body, context);
|
|
2441
1500
|
let contents = {};
|
|
@@ -2446,31 +1505,9 @@ var de_ListRulesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2446
1505
|
};
|
|
2447
1506
|
return response;
|
|
2448
1507
|
}, "de_ListRulesCommand");
|
|
2449
|
-
var de_ListRulesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2450
|
-
const parsedOutput = {
|
|
2451
|
-
...output,
|
|
2452
|
-
body: await parseErrorBody(output.body, context)
|
|
2453
|
-
};
|
|
2454
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2455
|
-
switch (errorCode) {
|
|
2456
|
-
case "InternalException":
|
|
2457
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
2458
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2459
|
-
case "ResourceNotFoundException":
|
|
2460
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
2461
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2462
|
-
default:
|
|
2463
|
-
const parsedBody = parsedOutput.body;
|
|
2464
|
-
return throwDefaultError({
|
|
2465
|
-
output,
|
|
2466
|
-
parsedBody,
|
|
2467
|
-
errorCode
|
|
2468
|
-
});
|
|
2469
|
-
}
|
|
2470
|
-
}, "de_ListRulesCommandError");
|
|
2471
1508
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2472
1509
|
if (output.statusCode >= 300) {
|
|
2473
|
-
return
|
|
1510
|
+
return de_CommandError(output, context);
|
|
2474
1511
|
}
|
|
2475
1512
|
const data = await parseBody(output.body, context);
|
|
2476
1513
|
let contents = {};
|
|
@@ -2481,31 +1518,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2481
1518
|
};
|
|
2482
1519
|
return response;
|
|
2483
1520
|
}, "de_ListTagsForResourceCommand");
|
|
2484
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2485
|
-
const parsedOutput = {
|
|
2486
|
-
...output,
|
|
2487
|
-
body: await parseErrorBody(output.body, context)
|
|
2488
|
-
};
|
|
2489
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2490
|
-
switch (errorCode) {
|
|
2491
|
-
case "InternalException":
|
|
2492
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
2493
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2494
|
-
case "ResourceNotFoundException":
|
|
2495
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
2496
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2497
|
-
default:
|
|
2498
|
-
const parsedBody = parsedOutput.body;
|
|
2499
|
-
return throwDefaultError({
|
|
2500
|
-
output,
|
|
2501
|
-
parsedBody,
|
|
2502
|
-
errorCode
|
|
2503
|
-
});
|
|
2504
|
-
}
|
|
2505
|
-
}, "de_ListTagsForResourceCommandError");
|
|
2506
1521
|
var de_ListTargetsByRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2507
1522
|
if (output.statusCode >= 300) {
|
|
2508
|
-
return
|
|
1523
|
+
return de_CommandError(output, context);
|
|
2509
1524
|
}
|
|
2510
1525
|
const data = await parseBody(output.body, context);
|
|
2511
1526
|
let contents = {};
|
|
@@ -2516,31 +1531,9 @@ var de_ListTargetsByRuleCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2516
1531
|
};
|
|
2517
1532
|
return response;
|
|
2518
1533
|
}, "de_ListTargetsByRuleCommand");
|
|
2519
|
-
var de_ListTargetsByRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2520
|
-
const parsedOutput = {
|
|
2521
|
-
...output,
|
|
2522
|
-
body: await parseErrorBody(output.body, context)
|
|
2523
|
-
};
|
|
2524
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2525
|
-
switch (errorCode) {
|
|
2526
|
-
case "InternalException":
|
|
2527
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
2528
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2529
|
-
case "ResourceNotFoundException":
|
|
2530
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
2531
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2532
|
-
default:
|
|
2533
|
-
const parsedBody = parsedOutput.body;
|
|
2534
|
-
return throwDefaultError({
|
|
2535
|
-
output,
|
|
2536
|
-
parsedBody,
|
|
2537
|
-
errorCode
|
|
2538
|
-
});
|
|
2539
|
-
}
|
|
2540
|
-
}, "de_ListTargetsByRuleCommandError");
|
|
2541
1534
|
var de_PutEventsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2542
1535
|
if (output.statusCode >= 300) {
|
|
2543
|
-
return
|
|
1536
|
+
return de_CommandError(output, context);
|
|
2544
1537
|
}
|
|
2545
1538
|
const data = await parseBody(output.body, context);
|
|
2546
1539
|
let contents = {};
|
|
@@ -2551,28 +1544,9 @@ var de_PutEventsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2551
1544
|
};
|
|
2552
1545
|
return response;
|
|
2553
1546
|
}, "de_PutEventsCommand");
|
|
2554
|
-
var de_PutEventsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2555
|
-
const parsedOutput = {
|
|
2556
|
-
...output,
|
|
2557
|
-
body: await parseErrorBody(output.body, context)
|
|
2558
|
-
};
|
|
2559
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2560
|
-
switch (errorCode) {
|
|
2561
|
-
case "InternalException":
|
|
2562
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
2563
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2564
|
-
default:
|
|
2565
|
-
const parsedBody = parsedOutput.body;
|
|
2566
|
-
return throwDefaultError({
|
|
2567
|
-
output,
|
|
2568
|
-
parsedBody,
|
|
2569
|
-
errorCode
|
|
2570
|
-
});
|
|
2571
|
-
}
|
|
2572
|
-
}, "de_PutEventsCommandError");
|
|
2573
1547
|
var de_PutPartnerEventsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2574
1548
|
if (output.statusCode >= 300) {
|
|
2575
|
-
return
|
|
1549
|
+
return de_CommandError(output, context);
|
|
2576
1550
|
}
|
|
2577
1551
|
const data = await parseBody(output.body, context);
|
|
2578
1552
|
let contents = {};
|
|
@@ -2583,31 +1557,9 @@ var de_PutPartnerEventsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2583
1557
|
};
|
|
2584
1558
|
return response;
|
|
2585
1559
|
}, "de_PutPartnerEventsCommand");
|
|
2586
|
-
var de_PutPartnerEventsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2587
|
-
const parsedOutput = {
|
|
2588
|
-
...output,
|
|
2589
|
-
body: await parseErrorBody(output.body, context)
|
|
2590
|
-
};
|
|
2591
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2592
|
-
switch (errorCode) {
|
|
2593
|
-
case "InternalException":
|
|
2594
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
2595
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2596
|
-
case "OperationDisabledException":
|
|
2597
|
-
case "com.amazonaws.eventbridge#OperationDisabledException":
|
|
2598
|
-
throw await de_OperationDisabledExceptionRes(parsedOutput, context);
|
|
2599
|
-
default:
|
|
2600
|
-
const parsedBody = parsedOutput.body;
|
|
2601
|
-
return throwDefaultError({
|
|
2602
|
-
output,
|
|
2603
|
-
parsedBody,
|
|
2604
|
-
errorCode
|
|
2605
|
-
});
|
|
2606
|
-
}
|
|
2607
|
-
}, "de_PutPartnerEventsCommandError");
|
|
2608
1560
|
var de_PutPermissionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2609
1561
|
if (output.statusCode >= 300) {
|
|
2610
|
-
return
|
|
1562
|
+
return de_CommandError(output, context);
|
|
2611
1563
|
}
|
|
2612
1564
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2613
1565
|
const response = {
|
|
@@ -2615,169 +1567,45 @@ var de_PutPermissionCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2615
1567
|
};
|
|
2616
1568
|
return response;
|
|
2617
1569
|
}, "de_PutPermissionCommand");
|
|
2618
|
-
var de_PutPermissionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2619
|
-
const parsedOutput = {
|
|
2620
|
-
...output,
|
|
2621
|
-
body: await parseErrorBody(output.body, context)
|
|
2622
|
-
};
|
|
2623
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2624
|
-
switch (errorCode) {
|
|
2625
|
-
case "ConcurrentModificationException":
|
|
2626
|
-
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
2627
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2628
|
-
case "InternalException":
|
|
2629
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
2630
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2631
|
-
case "OperationDisabledException":
|
|
2632
|
-
case "com.amazonaws.eventbridge#OperationDisabledException":
|
|
2633
|
-
throw await de_OperationDisabledExceptionRes(parsedOutput, context);
|
|
2634
|
-
case "PolicyLengthExceededException":
|
|
2635
|
-
case "com.amazonaws.eventbridge#PolicyLengthExceededException":
|
|
2636
|
-
throw await de_PolicyLengthExceededExceptionRes(parsedOutput, context);
|
|
2637
|
-
case "ResourceNotFoundException":
|
|
2638
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
2639
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2640
|
-
default:
|
|
2641
|
-
const parsedBody = parsedOutput.body;
|
|
2642
|
-
return throwDefaultError({
|
|
2643
|
-
output,
|
|
2644
|
-
parsedBody,
|
|
2645
|
-
errorCode
|
|
2646
|
-
});
|
|
2647
|
-
}
|
|
2648
|
-
}, "de_PutPermissionCommandError");
|
|
2649
1570
|
var de_PutRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2650
1571
|
if (output.statusCode >= 300) {
|
|
2651
|
-
return
|
|
2652
|
-
}
|
|
2653
|
-
const data = await parseBody(output.body, context);
|
|
2654
|
-
let contents = {};
|
|
2655
|
-
contents = (0, import_smithy_client._json)(data);
|
|
2656
|
-
const response = {
|
|
2657
|
-
$metadata: deserializeMetadata(output),
|
|
2658
|
-
...contents
|
|
2659
|
-
};
|
|
2660
|
-
return response;
|
|
2661
|
-
}, "de_PutRuleCommand");
|
|
2662
|
-
var de_PutRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2663
|
-
const parsedOutput = {
|
|
2664
|
-
...output,
|
|
2665
|
-
body: await parseErrorBody(output.body, context)
|
|
2666
|
-
};
|
|
2667
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2668
|
-
switch (errorCode) {
|
|
2669
|
-
case "ConcurrentModificationException":
|
|
2670
|
-
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
2671
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2672
|
-
case "InternalException":
|
|
2673
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
2674
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2675
|
-
case "InvalidEventPatternException":
|
|
2676
|
-
case "com.amazonaws.eventbridge#InvalidEventPatternException":
|
|
2677
|
-
throw await de_InvalidEventPatternExceptionRes(parsedOutput, context);
|
|
2678
|
-
case "LimitExceededException":
|
|
2679
|
-
case "com.amazonaws.eventbridge#LimitExceededException":
|
|
2680
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2681
|
-
case "ManagedRuleException":
|
|
2682
|
-
case "com.amazonaws.eventbridge#ManagedRuleException":
|
|
2683
|
-
throw await de_ManagedRuleExceptionRes(parsedOutput, context);
|
|
2684
|
-
case "ResourceNotFoundException":
|
|
2685
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
2686
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2687
|
-
default:
|
|
2688
|
-
const parsedBody = parsedOutput.body;
|
|
2689
|
-
return throwDefaultError({
|
|
2690
|
-
output,
|
|
2691
|
-
parsedBody,
|
|
2692
|
-
errorCode
|
|
2693
|
-
});
|
|
2694
|
-
}
|
|
2695
|
-
}, "de_PutRuleCommandError");
|
|
2696
|
-
var de_PutTargetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2697
|
-
if (output.statusCode >= 300) {
|
|
2698
|
-
return de_PutTargetsCommandError(output, context);
|
|
1572
|
+
return de_CommandError(output, context);
|
|
2699
1573
|
}
|
|
2700
1574
|
const data = await parseBody(output.body, context);
|
|
2701
1575
|
let contents = {};
|
|
2702
1576
|
contents = (0, import_smithy_client._json)(data);
|
|
2703
1577
|
const response = {
|
|
2704
1578
|
$metadata: deserializeMetadata(output),
|
|
2705
|
-
...contents
|
|
2706
|
-
};
|
|
2707
|
-
return response;
|
|
2708
|
-
}, "
|
|
2709
|
-
var
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
case "ManagedRuleException":
|
|
2726
|
-
case "com.amazonaws.eventbridge#ManagedRuleException":
|
|
2727
|
-
throw await de_ManagedRuleExceptionRes(parsedOutput, context);
|
|
2728
|
-
case "ResourceNotFoundException":
|
|
2729
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
2730
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2731
|
-
default:
|
|
2732
|
-
const parsedBody = parsedOutput.body;
|
|
2733
|
-
return throwDefaultError({
|
|
2734
|
-
output,
|
|
2735
|
-
parsedBody,
|
|
2736
|
-
errorCode
|
|
2737
|
-
});
|
|
2738
|
-
}
|
|
2739
|
-
}, "de_PutTargetsCommandError");
|
|
2740
|
-
var de_RemovePermissionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2741
|
-
if (output.statusCode >= 300) {
|
|
2742
|
-
return de_RemovePermissionCommandError(output, context);
|
|
2743
|
-
}
|
|
2744
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2745
|
-
const response = {
|
|
2746
|
-
$metadata: deserializeMetadata(output)
|
|
2747
|
-
};
|
|
2748
|
-
return response;
|
|
2749
|
-
}, "de_RemovePermissionCommand");
|
|
2750
|
-
var de_RemovePermissionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2751
|
-
const parsedOutput = {
|
|
2752
|
-
...output,
|
|
2753
|
-
body: await parseErrorBody(output.body, context)
|
|
2754
|
-
};
|
|
2755
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2756
|
-
switch (errorCode) {
|
|
2757
|
-
case "ConcurrentModificationException":
|
|
2758
|
-
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
2759
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2760
|
-
case "InternalException":
|
|
2761
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
2762
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2763
|
-
case "OperationDisabledException":
|
|
2764
|
-
case "com.amazonaws.eventbridge#OperationDisabledException":
|
|
2765
|
-
throw await de_OperationDisabledExceptionRes(parsedOutput, context);
|
|
2766
|
-
case "ResourceNotFoundException":
|
|
2767
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
2768
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2769
|
-
default:
|
|
2770
|
-
const parsedBody = parsedOutput.body;
|
|
2771
|
-
return throwDefaultError({
|
|
2772
|
-
output,
|
|
2773
|
-
parsedBody,
|
|
2774
|
-
errorCode
|
|
2775
|
-
});
|
|
1579
|
+
...contents
|
|
1580
|
+
};
|
|
1581
|
+
return response;
|
|
1582
|
+
}, "de_PutRuleCommand");
|
|
1583
|
+
var de_PutTargetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1584
|
+
if (output.statusCode >= 300) {
|
|
1585
|
+
return de_CommandError(output, context);
|
|
1586
|
+
}
|
|
1587
|
+
const data = await parseBody(output.body, context);
|
|
1588
|
+
let contents = {};
|
|
1589
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1590
|
+
const response = {
|
|
1591
|
+
$metadata: deserializeMetadata(output),
|
|
1592
|
+
...contents
|
|
1593
|
+
};
|
|
1594
|
+
return response;
|
|
1595
|
+
}, "de_PutTargetsCommand");
|
|
1596
|
+
var de_RemovePermissionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1597
|
+
if (output.statusCode >= 300) {
|
|
1598
|
+
return de_CommandError(output, context);
|
|
2776
1599
|
}
|
|
2777
|
-
|
|
1600
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1601
|
+
const response = {
|
|
1602
|
+
$metadata: deserializeMetadata(output)
|
|
1603
|
+
};
|
|
1604
|
+
return response;
|
|
1605
|
+
}, "de_RemovePermissionCommand");
|
|
2778
1606
|
var de_RemoveTargetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2779
1607
|
if (output.statusCode >= 300) {
|
|
2780
|
-
return
|
|
1608
|
+
return de_CommandError(output, context);
|
|
2781
1609
|
}
|
|
2782
1610
|
const data = await parseBody(output.body, context);
|
|
2783
1611
|
let contents = {};
|
|
@@ -2788,37 +1616,9 @@ var de_RemoveTargetsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2788
1616
|
};
|
|
2789
1617
|
return response;
|
|
2790
1618
|
}, "de_RemoveTargetsCommand");
|
|
2791
|
-
var de_RemoveTargetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2792
|
-
const parsedOutput = {
|
|
2793
|
-
...output,
|
|
2794
|
-
body: await parseErrorBody(output.body, context)
|
|
2795
|
-
};
|
|
2796
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2797
|
-
switch (errorCode) {
|
|
2798
|
-
case "ConcurrentModificationException":
|
|
2799
|
-
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
2800
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2801
|
-
case "InternalException":
|
|
2802
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
2803
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2804
|
-
case "ManagedRuleException":
|
|
2805
|
-
case "com.amazonaws.eventbridge#ManagedRuleException":
|
|
2806
|
-
throw await de_ManagedRuleExceptionRes(parsedOutput, context);
|
|
2807
|
-
case "ResourceNotFoundException":
|
|
2808
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
2809
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2810
|
-
default:
|
|
2811
|
-
const parsedBody = parsedOutput.body;
|
|
2812
|
-
return throwDefaultError({
|
|
2813
|
-
output,
|
|
2814
|
-
parsedBody,
|
|
2815
|
-
errorCode
|
|
2816
|
-
});
|
|
2817
|
-
}
|
|
2818
|
-
}, "de_RemoveTargetsCommandError");
|
|
2819
1619
|
var de_StartReplayCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2820
1620
|
if (output.statusCode >= 300) {
|
|
2821
|
-
return
|
|
1621
|
+
return de_CommandError(output, context);
|
|
2822
1622
|
}
|
|
2823
1623
|
const data = await parseBody(output.body, context);
|
|
2824
1624
|
let contents = {};
|
|
@@ -2829,40 +1629,9 @@ var de_StartReplayCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2829
1629
|
};
|
|
2830
1630
|
return response;
|
|
2831
1631
|
}, "de_StartReplayCommand");
|
|
2832
|
-
var de_StartReplayCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2833
|
-
const parsedOutput = {
|
|
2834
|
-
...output,
|
|
2835
|
-
body: await parseErrorBody(output.body, context)
|
|
2836
|
-
};
|
|
2837
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2838
|
-
switch (errorCode) {
|
|
2839
|
-
case "InternalException":
|
|
2840
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
2841
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2842
|
-
case "InvalidEventPatternException":
|
|
2843
|
-
case "com.amazonaws.eventbridge#InvalidEventPatternException":
|
|
2844
|
-
throw await de_InvalidEventPatternExceptionRes(parsedOutput, context);
|
|
2845
|
-
case "LimitExceededException":
|
|
2846
|
-
case "com.amazonaws.eventbridge#LimitExceededException":
|
|
2847
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2848
|
-
case "ResourceAlreadyExistsException":
|
|
2849
|
-
case "com.amazonaws.eventbridge#ResourceAlreadyExistsException":
|
|
2850
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
2851
|
-
case "ResourceNotFoundException":
|
|
2852
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
2853
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2854
|
-
default:
|
|
2855
|
-
const parsedBody = parsedOutput.body;
|
|
2856
|
-
return throwDefaultError({
|
|
2857
|
-
output,
|
|
2858
|
-
parsedBody,
|
|
2859
|
-
errorCode
|
|
2860
|
-
});
|
|
2861
|
-
}
|
|
2862
|
-
}, "de_StartReplayCommandError");
|
|
2863
1632
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2864
1633
|
if (output.statusCode >= 300) {
|
|
2865
|
-
return
|
|
1634
|
+
return de_CommandError(output, context);
|
|
2866
1635
|
}
|
|
2867
1636
|
const data = await parseBody(output.body, context);
|
|
2868
1637
|
let contents = {};
|
|
@@ -2873,37 +1642,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2873
1642
|
};
|
|
2874
1643
|
return response;
|
|
2875
1644
|
}, "de_TagResourceCommand");
|
|
2876
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2877
|
-
const parsedOutput = {
|
|
2878
|
-
...output,
|
|
2879
|
-
body: await parseErrorBody(output.body, context)
|
|
2880
|
-
};
|
|
2881
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2882
|
-
switch (errorCode) {
|
|
2883
|
-
case "ConcurrentModificationException":
|
|
2884
|
-
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
2885
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2886
|
-
case "InternalException":
|
|
2887
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
2888
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2889
|
-
case "ManagedRuleException":
|
|
2890
|
-
case "com.amazonaws.eventbridge#ManagedRuleException":
|
|
2891
|
-
throw await de_ManagedRuleExceptionRes(parsedOutput, context);
|
|
2892
|
-
case "ResourceNotFoundException":
|
|
2893
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
2894
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2895
|
-
default:
|
|
2896
|
-
const parsedBody = parsedOutput.body;
|
|
2897
|
-
return throwDefaultError({
|
|
2898
|
-
output,
|
|
2899
|
-
parsedBody,
|
|
2900
|
-
errorCode
|
|
2901
|
-
});
|
|
2902
|
-
}
|
|
2903
|
-
}, "de_TagResourceCommandError");
|
|
2904
1645
|
var de_TestEventPatternCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2905
1646
|
if (output.statusCode >= 300) {
|
|
2906
|
-
return
|
|
1647
|
+
return de_CommandError(output, context);
|
|
2907
1648
|
}
|
|
2908
1649
|
const data = await parseBody(output.body, context);
|
|
2909
1650
|
let contents = {};
|
|
@@ -2914,31 +1655,9 @@ var de_TestEventPatternCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2914
1655
|
};
|
|
2915
1656
|
return response;
|
|
2916
1657
|
}, "de_TestEventPatternCommand");
|
|
2917
|
-
var de_TestEventPatternCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2918
|
-
const parsedOutput = {
|
|
2919
|
-
...output,
|
|
2920
|
-
body: await parseErrorBody(output.body, context)
|
|
2921
|
-
};
|
|
2922
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2923
|
-
switch (errorCode) {
|
|
2924
|
-
case "InternalException":
|
|
2925
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
2926
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2927
|
-
case "InvalidEventPatternException":
|
|
2928
|
-
case "com.amazonaws.eventbridge#InvalidEventPatternException":
|
|
2929
|
-
throw await de_InvalidEventPatternExceptionRes(parsedOutput, context);
|
|
2930
|
-
default:
|
|
2931
|
-
const parsedBody = parsedOutput.body;
|
|
2932
|
-
return throwDefaultError({
|
|
2933
|
-
output,
|
|
2934
|
-
parsedBody,
|
|
2935
|
-
errorCode
|
|
2936
|
-
});
|
|
2937
|
-
}
|
|
2938
|
-
}, "de_TestEventPatternCommandError");
|
|
2939
1658
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2940
1659
|
if (output.statusCode >= 300) {
|
|
2941
|
-
return
|
|
1660
|
+
return de_CommandError(output, context);
|
|
2942
1661
|
}
|
|
2943
1662
|
const data = await parseBody(output.body, context);
|
|
2944
1663
|
let contents = {};
|
|
@@ -2949,37 +1668,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2949
1668
|
};
|
|
2950
1669
|
return response;
|
|
2951
1670
|
}, "de_UntagResourceCommand");
|
|
2952
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2953
|
-
const parsedOutput = {
|
|
2954
|
-
...output,
|
|
2955
|
-
body: await parseErrorBody(output.body, context)
|
|
2956
|
-
};
|
|
2957
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2958
|
-
switch (errorCode) {
|
|
2959
|
-
case "ConcurrentModificationException":
|
|
2960
|
-
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
2961
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2962
|
-
case "InternalException":
|
|
2963
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
2964
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2965
|
-
case "ManagedRuleException":
|
|
2966
|
-
case "com.amazonaws.eventbridge#ManagedRuleException":
|
|
2967
|
-
throw await de_ManagedRuleExceptionRes(parsedOutput, context);
|
|
2968
|
-
case "ResourceNotFoundException":
|
|
2969
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
2970
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2971
|
-
default:
|
|
2972
|
-
const parsedBody = parsedOutput.body;
|
|
2973
|
-
return throwDefaultError({
|
|
2974
|
-
output,
|
|
2975
|
-
parsedBody,
|
|
2976
|
-
errorCode
|
|
2977
|
-
});
|
|
2978
|
-
}
|
|
2979
|
-
}, "de_UntagResourceCommandError");
|
|
2980
1671
|
var de_UpdateApiDestinationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2981
1672
|
if (output.statusCode >= 300) {
|
|
2982
|
-
return
|
|
1673
|
+
return de_CommandError(output, context);
|
|
2983
1674
|
}
|
|
2984
1675
|
const data = await parseBody(output.body, context);
|
|
2985
1676
|
let contents = {};
|
|
@@ -2990,37 +1681,9 @@ var de_UpdateApiDestinationCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2990
1681
|
};
|
|
2991
1682
|
return response;
|
|
2992
1683
|
}, "de_UpdateApiDestinationCommand");
|
|
2993
|
-
var de_UpdateApiDestinationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2994
|
-
const parsedOutput = {
|
|
2995
|
-
...output,
|
|
2996
|
-
body: await parseErrorBody(output.body, context)
|
|
2997
|
-
};
|
|
2998
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2999
|
-
switch (errorCode) {
|
|
3000
|
-
case "ConcurrentModificationException":
|
|
3001
|
-
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
3002
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
3003
|
-
case "InternalException":
|
|
3004
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
3005
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3006
|
-
case "LimitExceededException":
|
|
3007
|
-
case "com.amazonaws.eventbridge#LimitExceededException":
|
|
3008
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3009
|
-
case "ResourceNotFoundException":
|
|
3010
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
3011
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3012
|
-
default:
|
|
3013
|
-
const parsedBody = parsedOutput.body;
|
|
3014
|
-
return throwDefaultError({
|
|
3015
|
-
output,
|
|
3016
|
-
parsedBody,
|
|
3017
|
-
errorCode
|
|
3018
|
-
});
|
|
3019
|
-
}
|
|
3020
|
-
}, "de_UpdateApiDestinationCommandError");
|
|
3021
1684
|
var de_UpdateArchiveCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3022
1685
|
if (output.statusCode >= 300) {
|
|
3023
|
-
return
|
|
1686
|
+
return de_CommandError(output, context);
|
|
3024
1687
|
}
|
|
3025
1688
|
const data = await parseBody(output.body, context);
|
|
3026
1689
|
let contents = {};
|
|
@@ -3031,40 +1694,9 @@ var de_UpdateArchiveCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3031
1694
|
};
|
|
3032
1695
|
return response;
|
|
3033
1696
|
}, "de_UpdateArchiveCommand");
|
|
3034
|
-
var de_UpdateArchiveCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3035
|
-
const parsedOutput = {
|
|
3036
|
-
...output,
|
|
3037
|
-
body: await parseErrorBody(output.body, context)
|
|
3038
|
-
};
|
|
3039
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3040
|
-
switch (errorCode) {
|
|
3041
|
-
case "ConcurrentModificationException":
|
|
3042
|
-
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
3043
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
3044
|
-
case "InternalException":
|
|
3045
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
3046
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3047
|
-
case "InvalidEventPatternException":
|
|
3048
|
-
case "com.amazonaws.eventbridge#InvalidEventPatternException":
|
|
3049
|
-
throw await de_InvalidEventPatternExceptionRes(parsedOutput, context);
|
|
3050
|
-
case "LimitExceededException":
|
|
3051
|
-
case "com.amazonaws.eventbridge#LimitExceededException":
|
|
3052
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3053
|
-
case "ResourceNotFoundException":
|
|
3054
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
3055
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3056
|
-
default:
|
|
3057
|
-
const parsedBody = parsedOutput.body;
|
|
3058
|
-
return throwDefaultError({
|
|
3059
|
-
output,
|
|
3060
|
-
parsedBody,
|
|
3061
|
-
errorCode
|
|
3062
|
-
});
|
|
3063
|
-
}
|
|
3064
|
-
}, "de_UpdateArchiveCommandError");
|
|
3065
1697
|
var de_UpdateConnectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3066
1698
|
if (output.statusCode >= 300) {
|
|
3067
|
-
return
|
|
1699
|
+
return de_CommandError(output, context);
|
|
3068
1700
|
}
|
|
3069
1701
|
const data = await parseBody(output.body, context);
|
|
3070
1702
|
let contents = {};
|
|
@@ -3075,37 +1707,9 @@ var de_UpdateConnectionCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3075
1707
|
};
|
|
3076
1708
|
return response;
|
|
3077
1709
|
}, "de_UpdateConnectionCommand");
|
|
3078
|
-
var de_UpdateConnectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3079
|
-
const parsedOutput = {
|
|
3080
|
-
...output,
|
|
3081
|
-
body: await parseErrorBody(output.body, context)
|
|
3082
|
-
};
|
|
3083
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3084
|
-
switch (errorCode) {
|
|
3085
|
-
case "ConcurrentModificationException":
|
|
3086
|
-
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
3087
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
3088
|
-
case "InternalException":
|
|
3089
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
3090
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3091
|
-
case "LimitExceededException":
|
|
3092
|
-
case "com.amazonaws.eventbridge#LimitExceededException":
|
|
3093
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3094
|
-
case "ResourceNotFoundException":
|
|
3095
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
3096
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3097
|
-
default:
|
|
3098
|
-
const parsedBody = parsedOutput.body;
|
|
3099
|
-
return throwDefaultError({
|
|
3100
|
-
output,
|
|
3101
|
-
parsedBody,
|
|
3102
|
-
errorCode
|
|
3103
|
-
});
|
|
3104
|
-
}
|
|
3105
|
-
}, "de_UpdateConnectionCommandError");
|
|
3106
1710
|
var de_UpdateEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3107
1711
|
if (output.statusCode >= 300) {
|
|
3108
|
-
return
|
|
1712
|
+
return de_CommandError(output, context);
|
|
3109
1713
|
}
|
|
3110
1714
|
const data = await parseBody(output.body, context);
|
|
3111
1715
|
let contents = {};
|
|
@@ -3116,7 +1720,7 @@ var de_UpdateEndpointCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3116
1720
|
};
|
|
3117
1721
|
return response;
|
|
3118
1722
|
}, "de_UpdateEndpointCommand");
|
|
3119
|
-
var
|
|
1723
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3120
1724
|
const parsedOutput = {
|
|
3121
1725
|
...output,
|
|
3122
1726
|
body: await parseErrorBody(output.body, context)
|
|
@@ -3129,9 +1733,33 @@ var de_UpdateEndpointCommandError = /* @__PURE__ */ __name(async (output, contex
|
|
|
3129
1733
|
case "InternalException":
|
|
3130
1734
|
case "com.amazonaws.eventbridge#InternalException":
|
|
3131
1735
|
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1736
|
+
case "InvalidStateException":
|
|
1737
|
+
case "com.amazonaws.eventbridge#InvalidStateException":
|
|
1738
|
+
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
1739
|
+
case "OperationDisabledException":
|
|
1740
|
+
case "com.amazonaws.eventbridge#OperationDisabledException":
|
|
1741
|
+
throw await de_OperationDisabledExceptionRes(parsedOutput, context);
|
|
3132
1742
|
case "ResourceNotFoundException":
|
|
3133
1743
|
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
3134
1744
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1745
|
+
case "IllegalStatusException":
|
|
1746
|
+
case "com.amazonaws.eventbridge#IllegalStatusException":
|
|
1747
|
+
throw await de_IllegalStatusExceptionRes(parsedOutput, context);
|
|
1748
|
+
case "LimitExceededException":
|
|
1749
|
+
case "com.amazonaws.eventbridge#LimitExceededException":
|
|
1750
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1751
|
+
case "ResourceAlreadyExistsException":
|
|
1752
|
+
case "com.amazonaws.eventbridge#ResourceAlreadyExistsException":
|
|
1753
|
+
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1754
|
+
case "InvalidEventPatternException":
|
|
1755
|
+
case "com.amazonaws.eventbridge#InvalidEventPatternException":
|
|
1756
|
+
throw await de_InvalidEventPatternExceptionRes(parsedOutput, context);
|
|
1757
|
+
case "ManagedRuleException":
|
|
1758
|
+
case "com.amazonaws.eventbridge#ManagedRuleException":
|
|
1759
|
+
throw await de_ManagedRuleExceptionRes(parsedOutput, context);
|
|
1760
|
+
case "PolicyLengthExceededException":
|
|
1761
|
+
case "com.amazonaws.eventbridge#PolicyLengthExceededException":
|
|
1762
|
+
throw await de_PolicyLengthExceededExceptionRes(parsedOutput, context);
|
|
3135
1763
|
default:
|
|
3136
1764
|
const parsedBody = parsedOutput.body;
|
|
3137
1765
|
return throwDefaultError({
|
|
@@ -3140,7 +1768,7 @@ var de_UpdateEndpointCommandError = /* @__PURE__ */ __name(async (output, contex
|
|
|
3140
1768
|
errorCode
|
|
3141
1769
|
});
|
|
3142
1770
|
}
|
|
3143
|
-
}, "
|
|
1771
|
+
}, "de_CommandError");
|
|
3144
1772
|
var de_ConcurrentModificationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
3145
1773
|
const body = parsedOutput.body;
|
|
3146
1774
|
const deserialized = (0, import_smithy_client._json)(body);
|