@aws-sdk/client-ssm-incidents 3.504.0 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +75 -1011
- package/dist-es/protocols/Aws_restJson1.js +66 -1002
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -1068,7 +1068,7 @@ var se_UpdateTimelineEventCommand = /* @__PURE__ */ __name(async (input, context
|
|
|
1068
1068
|
}, "se_UpdateTimelineEventCommand");
|
|
1069
1069
|
var de_BatchGetIncidentFindingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1070
1070
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1071
|
-
return
|
|
1071
|
+
return de_CommandError(output, context);
|
|
1072
1072
|
}
|
|
1073
1073
|
const contents = (0, import_smithy_client.map)({
|
|
1074
1074
|
$metadata: deserializeMetadata(output)
|
|
@@ -1081,40 +1081,9 @@ var de_BatchGetIncidentFindingsCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1081
1081
|
Object.assign(contents, doc);
|
|
1082
1082
|
return contents;
|
|
1083
1083
|
}, "de_BatchGetIncidentFindingsCommand");
|
|
1084
|
-
var de_BatchGetIncidentFindingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1085
|
-
const parsedOutput = {
|
|
1086
|
-
...output,
|
|
1087
|
-
body: await parseErrorBody(output.body, context)
|
|
1088
|
-
};
|
|
1089
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1090
|
-
switch (errorCode) {
|
|
1091
|
-
case "AccessDeniedException":
|
|
1092
|
-
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
1093
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1094
|
-
case "InternalServerException":
|
|
1095
|
-
case "com.amazonaws.ssmincidents#InternalServerException":
|
|
1096
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1097
|
-
case "ResourceNotFoundException":
|
|
1098
|
-
case "com.amazonaws.ssmincidents#ResourceNotFoundException":
|
|
1099
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1100
|
-
case "ThrottlingException":
|
|
1101
|
-
case "com.amazonaws.ssmincidents#ThrottlingException":
|
|
1102
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1103
|
-
case "ValidationException":
|
|
1104
|
-
case "com.amazonaws.ssmincidents#ValidationException":
|
|
1105
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1106
|
-
default:
|
|
1107
|
-
const parsedBody = parsedOutput.body;
|
|
1108
|
-
return throwDefaultError({
|
|
1109
|
-
output,
|
|
1110
|
-
parsedBody,
|
|
1111
|
-
errorCode
|
|
1112
|
-
});
|
|
1113
|
-
}
|
|
1114
|
-
}, "de_BatchGetIncidentFindingsCommandError");
|
|
1115
1084
|
var de_CreateReplicationSetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1116
1085
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1117
|
-
return
|
|
1086
|
+
return de_CommandError(output, context);
|
|
1118
1087
|
}
|
|
1119
1088
|
const contents = (0, import_smithy_client.map)({
|
|
1120
1089
|
$metadata: deserializeMetadata(output)
|
|
@@ -1126,43 +1095,9 @@ var de_CreateReplicationSetCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1126
1095
|
Object.assign(contents, doc);
|
|
1127
1096
|
return contents;
|
|
1128
1097
|
}, "de_CreateReplicationSetCommand");
|
|
1129
|
-
var de_CreateReplicationSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1130
|
-
const parsedOutput = {
|
|
1131
|
-
...output,
|
|
1132
|
-
body: await parseErrorBody(output.body, context)
|
|
1133
|
-
};
|
|
1134
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1135
|
-
switch (errorCode) {
|
|
1136
|
-
case "AccessDeniedException":
|
|
1137
|
-
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
1138
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1139
|
-
case "ConflictException":
|
|
1140
|
-
case "com.amazonaws.ssmincidents#ConflictException":
|
|
1141
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1142
|
-
case "InternalServerException":
|
|
1143
|
-
case "com.amazonaws.ssmincidents#InternalServerException":
|
|
1144
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1145
|
-
case "ServiceQuotaExceededException":
|
|
1146
|
-
case "com.amazonaws.ssmincidents#ServiceQuotaExceededException":
|
|
1147
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1148
|
-
case "ThrottlingException":
|
|
1149
|
-
case "com.amazonaws.ssmincidents#ThrottlingException":
|
|
1150
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1151
|
-
case "ValidationException":
|
|
1152
|
-
case "com.amazonaws.ssmincidents#ValidationException":
|
|
1153
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1154
|
-
default:
|
|
1155
|
-
const parsedBody = parsedOutput.body;
|
|
1156
|
-
return throwDefaultError({
|
|
1157
|
-
output,
|
|
1158
|
-
parsedBody,
|
|
1159
|
-
errorCode
|
|
1160
|
-
});
|
|
1161
|
-
}
|
|
1162
|
-
}, "de_CreateReplicationSetCommandError");
|
|
1163
1098
|
var de_CreateResponsePlanCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1164
1099
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1165
|
-
return
|
|
1100
|
+
return de_CommandError(output, context);
|
|
1166
1101
|
}
|
|
1167
1102
|
const contents = (0, import_smithy_client.map)({
|
|
1168
1103
|
$metadata: deserializeMetadata(output)
|
|
@@ -1174,43 +1109,9 @@ var de_CreateResponsePlanCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1174
1109
|
Object.assign(contents, doc);
|
|
1175
1110
|
return contents;
|
|
1176
1111
|
}, "de_CreateResponsePlanCommand");
|
|
1177
|
-
var de_CreateResponsePlanCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1178
|
-
const parsedOutput = {
|
|
1179
|
-
...output,
|
|
1180
|
-
body: await parseErrorBody(output.body, context)
|
|
1181
|
-
};
|
|
1182
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1183
|
-
switch (errorCode) {
|
|
1184
|
-
case "AccessDeniedException":
|
|
1185
|
-
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
1186
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1187
|
-
case "ConflictException":
|
|
1188
|
-
case "com.amazonaws.ssmincidents#ConflictException":
|
|
1189
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1190
|
-
case "InternalServerException":
|
|
1191
|
-
case "com.amazonaws.ssmincidents#InternalServerException":
|
|
1192
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1193
|
-
case "ResourceNotFoundException":
|
|
1194
|
-
case "com.amazonaws.ssmincidents#ResourceNotFoundException":
|
|
1195
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1196
|
-
case "ThrottlingException":
|
|
1197
|
-
case "com.amazonaws.ssmincidents#ThrottlingException":
|
|
1198
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1199
|
-
case "ValidationException":
|
|
1200
|
-
case "com.amazonaws.ssmincidents#ValidationException":
|
|
1201
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1202
|
-
default:
|
|
1203
|
-
const parsedBody = parsedOutput.body;
|
|
1204
|
-
return throwDefaultError({
|
|
1205
|
-
output,
|
|
1206
|
-
parsedBody,
|
|
1207
|
-
errorCode
|
|
1208
|
-
});
|
|
1209
|
-
}
|
|
1210
|
-
}, "de_CreateResponsePlanCommandError");
|
|
1211
1112
|
var de_CreateTimelineEventCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1212
1113
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1213
|
-
return
|
|
1114
|
+
return de_CommandError(output, context);
|
|
1214
1115
|
}
|
|
1215
1116
|
const contents = (0, import_smithy_client.map)({
|
|
1216
1117
|
$metadata: deserializeMetadata(output)
|
|
@@ -1223,43 +1124,9 @@ var de_CreateTimelineEventCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1223
1124
|
Object.assign(contents, doc);
|
|
1224
1125
|
return contents;
|
|
1225
1126
|
}, "de_CreateTimelineEventCommand");
|
|
1226
|
-
var de_CreateTimelineEventCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1227
|
-
const parsedOutput = {
|
|
1228
|
-
...output,
|
|
1229
|
-
body: await parseErrorBody(output.body, context)
|
|
1230
|
-
};
|
|
1231
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1232
|
-
switch (errorCode) {
|
|
1233
|
-
case "AccessDeniedException":
|
|
1234
|
-
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
1235
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1236
|
-
case "ConflictException":
|
|
1237
|
-
case "com.amazonaws.ssmincidents#ConflictException":
|
|
1238
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1239
|
-
case "InternalServerException":
|
|
1240
|
-
case "com.amazonaws.ssmincidents#InternalServerException":
|
|
1241
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1242
|
-
case "ResourceNotFoundException":
|
|
1243
|
-
case "com.amazonaws.ssmincidents#ResourceNotFoundException":
|
|
1244
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1245
|
-
case "ThrottlingException":
|
|
1246
|
-
case "com.amazonaws.ssmincidents#ThrottlingException":
|
|
1247
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1248
|
-
case "ValidationException":
|
|
1249
|
-
case "com.amazonaws.ssmincidents#ValidationException":
|
|
1250
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1251
|
-
default:
|
|
1252
|
-
const parsedBody = parsedOutput.body;
|
|
1253
|
-
return throwDefaultError({
|
|
1254
|
-
output,
|
|
1255
|
-
parsedBody,
|
|
1256
|
-
errorCode
|
|
1257
|
-
});
|
|
1258
|
-
}
|
|
1259
|
-
}, "de_CreateTimelineEventCommandError");
|
|
1260
1127
|
var de_DeleteIncidentRecordCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1261
1128
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1262
|
-
return
|
|
1129
|
+
return de_CommandError(output, context);
|
|
1263
1130
|
}
|
|
1264
1131
|
const contents = (0, import_smithy_client.map)({
|
|
1265
1132
|
$metadata: deserializeMetadata(output)
|
|
@@ -1267,37 +1134,9 @@ var de_DeleteIncidentRecordCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1267
1134
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1268
1135
|
return contents;
|
|
1269
1136
|
}, "de_DeleteIncidentRecordCommand");
|
|
1270
|
-
var de_DeleteIncidentRecordCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1271
|
-
const parsedOutput = {
|
|
1272
|
-
...output,
|
|
1273
|
-
body: await parseErrorBody(output.body, context)
|
|
1274
|
-
};
|
|
1275
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1276
|
-
switch (errorCode) {
|
|
1277
|
-
case "AccessDeniedException":
|
|
1278
|
-
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
1279
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1280
|
-
case "InternalServerException":
|
|
1281
|
-
case "com.amazonaws.ssmincidents#InternalServerException":
|
|
1282
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1283
|
-
case "ThrottlingException":
|
|
1284
|
-
case "com.amazonaws.ssmincidents#ThrottlingException":
|
|
1285
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1286
|
-
case "ValidationException":
|
|
1287
|
-
case "com.amazonaws.ssmincidents#ValidationException":
|
|
1288
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1289
|
-
default:
|
|
1290
|
-
const parsedBody = parsedOutput.body;
|
|
1291
|
-
return throwDefaultError({
|
|
1292
|
-
output,
|
|
1293
|
-
parsedBody,
|
|
1294
|
-
errorCode
|
|
1295
|
-
});
|
|
1296
|
-
}
|
|
1297
|
-
}, "de_DeleteIncidentRecordCommandError");
|
|
1298
1137
|
var de_DeleteReplicationSetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1299
1138
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1300
|
-
return
|
|
1139
|
+
return de_CommandError(output, context);
|
|
1301
1140
|
}
|
|
1302
1141
|
const contents = (0, import_smithy_client.map)({
|
|
1303
1142
|
$metadata: deserializeMetadata(output)
|
|
@@ -1305,40 +1144,9 @@ var de_DeleteReplicationSetCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1305
1144
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1306
1145
|
return contents;
|
|
1307
1146
|
}, "de_DeleteReplicationSetCommand");
|
|
1308
|
-
var de_DeleteReplicationSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1309
|
-
const parsedOutput = {
|
|
1310
|
-
...output,
|
|
1311
|
-
body: await parseErrorBody(output.body, context)
|
|
1312
|
-
};
|
|
1313
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1314
|
-
switch (errorCode) {
|
|
1315
|
-
case "AccessDeniedException":
|
|
1316
|
-
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
1317
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1318
|
-
case "InternalServerException":
|
|
1319
|
-
case "com.amazonaws.ssmincidents#InternalServerException":
|
|
1320
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1321
|
-
case "ResourceNotFoundException":
|
|
1322
|
-
case "com.amazonaws.ssmincidents#ResourceNotFoundException":
|
|
1323
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1324
|
-
case "ThrottlingException":
|
|
1325
|
-
case "com.amazonaws.ssmincidents#ThrottlingException":
|
|
1326
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1327
|
-
case "ValidationException":
|
|
1328
|
-
case "com.amazonaws.ssmincidents#ValidationException":
|
|
1329
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1330
|
-
default:
|
|
1331
|
-
const parsedBody = parsedOutput.body;
|
|
1332
|
-
return throwDefaultError({
|
|
1333
|
-
output,
|
|
1334
|
-
parsedBody,
|
|
1335
|
-
errorCode
|
|
1336
|
-
});
|
|
1337
|
-
}
|
|
1338
|
-
}, "de_DeleteReplicationSetCommandError");
|
|
1339
1147
|
var de_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1340
1148
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1341
|
-
return
|
|
1149
|
+
return de_CommandError(output, context);
|
|
1342
1150
|
}
|
|
1343
1151
|
const contents = (0, import_smithy_client.map)({
|
|
1344
1152
|
$metadata: deserializeMetadata(output)
|
|
@@ -1346,40 +1154,9 @@ var de_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1346
1154
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1347
1155
|
return contents;
|
|
1348
1156
|
}, "de_DeleteResourcePolicyCommand");
|
|
1349
|
-
var de_DeleteResourcePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1350
|
-
const parsedOutput = {
|
|
1351
|
-
...output,
|
|
1352
|
-
body: await parseErrorBody(output.body, context)
|
|
1353
|
-
};
|
|
1354
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1355
|
-
switch (errorCode) {
|
|
1356
|
-
case "AccessDeniedException":
|
|
1357
|
-
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
1358
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1359
|
-
case "InternalServerException":
|
|
1360
|
-
case "com.amazonaws.ssmincidents#InternalServerException":
|
|
1361
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1362
|
-
case "ResourceNotFoundException":
|
|
1363
|
-
case "com.amazonaws.ssmincidents#ResourceNotFoundException":
|
|
1364
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1365
|
-
case "ThrottlingException":
|
|
1366
|
-
case "com.amazonaws.ssmincidents#ThrottlingException":
|
|
1367
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1368
|
-
case "ValidationException":
|
|
1369
|
-
case "com.amazonaws.ssmincidents#ValidationException":
|
|
1370
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1371
|
-
default:
|
|
1372
|
-
const parsedBody = parsedOutput.body;
|
|
1373
|
-
return throwDefaultError({
|
|
1374
|
-
output,
|
|
1375
|
-
parsedBody,
|
|
1376
|
-
errorCode
|
|
1377
|
-
});
|
|
1378
|
-
}
|
|
1379
|
-
}, "de_DeleteResourcePolicyCommandError");
|
|
1380
1157
|
var de_DeleteResponsePlanCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1381
1158
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1382
|
-
return
|
|
1159
|
+
return de_CommandError(output, context);
|
|
1383
1160
|
}
|
|
1384
1161
|
const contents = (0, import_smithy_client.map)({
|
|
1385
1162
|
$metadata: deserializeMetadata(output)
|
|
@@ -1387,37 +1164,9 @@ var de_DeleteResponsePlanCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1387
1164
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1388
1165
|
return contents;
|
|
1389
1166
|
}, "de_DeleteResponsePlanCommand");
|
|
1390
|
-
var de_DeleteResponsePlanCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1391
|
-
const parsedOutput = {
|
|
1392
|
-
...output,
|
|
1393
|
-
body: await parseErrorBody(output.body, context)
|
|
1394
|
-
};
|
|
1395
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1396
|
-
switch (errorCode) {
|
|
1397
|
-
case "AccessDeniedException":
|
|
1398
|
-
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
1399
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1400
|
-
case "InternalServerException":
|
|
1401
|
-
case "com.amazonaws.ssmincidents#InternalServerException":
|
|
1402
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1403
|
-
case "ThrottlingException":
|
|
1404
|
-
case "com.amazonaws.ssmincidents#ThrottlingException":
|
|
1405
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1406
|
-
case "ValidationException":
|
|
1407
|
-
case "com.amazonaws.ssmincidents#ValidationException":
|
|
1408
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1409
|
-
default:
|
|
1410
|
-
const parsedBody = parsedOutput.body;
|
|
1411
|
-
return throwDefaultError({
|
|
1412
|
-
output,
|
|
1413
|
-
parsedBody,
|
|
1414
|
-
errorCode
|
|
1415
|
-
});
|
|
1416
|
-
}
|
|
1417
|
-
}, "de_DeleteResponsePlanCommandError");
|
|
1418
1167
|
var de_DeleteTimelineEventCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1419
1168
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1420
|
-
return
|
|
1169
|
+
return de_CommandError(output, context);
|
|
1421
1170
|
}
|
|
1422
1171
|
const contents = (0, import_smithy_client.map)({
|
|
1423
1172
|
$metadata: deserializeMetadata(output)
|
|
@@ -1425,37 +1174,9 @@ var de_DeleteTimelineEventCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1425
1174
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1426
1175
|
return contents;
|
|
1427
1176
|
}, "de_DeleteTimelineEventCommand");
|
|
1428
|
-
var de_DeleteTimelineEventCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1429
|
-
const parsedOutput = {
|
|
1430
|
-
...output,
|
|
1431
|
-
body: await parseErrorBody(output.body, context)
|
|
1432
|
-
};
|
|
1433
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1434
|
-
switch (errorCode) {
|
|
1435
|
-
case "AccessDeniedException":
|
|
1436
|
-
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
1437
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1438
|
-
case "InternalServerException":
|
|
1439
|
-
case "com.amazonaws.ssmincidents#InternalServerException":
|
|
1440
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1441
|
-
case "ThrottlingException":
|
|
1442
|
-
case "com.amazonaws.ssmincidents#ThrottlingException":
|
|
1443
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1444
|
-
case "ValidationException":
|
|
1445
|
-
case "com.amazonaws.ssmincidents#ValidationException":
|
|
1446
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1447
|
-
default:
|
|
1448
|
-
const parsedBody = parsedOutput.body;
|
|
1449
|
-
return throwDefaultError({
|
|
1450
|
-
output,
|
|
1451
|
-
parsedBody,
|
|
1452
|
-
errorCode
|
|
1453
|
-
});
|
|
1454
|
-
}
|
|
1455
|
-
}, "de_DeleteTimelineEventCommandError");
|
|
1456
1177
|
var de_GetIncidentRecordCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1457
1178
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1458
|
-
return
|
|
1179
|
+
return de_CommandError(output, context);
|
|
1459
1180
|
}
|
|
1460
1181
|
const contents = (0, import_smithy_client.map)({
|
|
1461
1182
|
$metadata: deserializeMetadata(output)
|
|
@@ -1467,40 +1188,9 @@ var de_GetIncidentRecordCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1467
1188
|
Object.assign(contents, doc);
|
|
1468
1189
|
return contents;
|
|
1469
1190
|
}, "de_GetIncidentRecordCommand");
|
|
1470
|
-
var de_GetIncidentRecordCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1471
|
-
const parsedOutput = {
|
|
1472
|
-
...output,
|
|
1473
|
-
body: await parseErrorBody(output.body, context)
|
|
1474
|
-
};
|
|
1475
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1476
|
-
switch (errorCode) {
|
|
1477
|
-
case "AccessDeniedException":
|
|
1478
|
-
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
1479
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1480
|
-
case "InternalServerException":
|
|
1481
|
-
case "com.amazonaws.ssmincidents#InternalServerException":
|
|
1482
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1483
|
-
case "ResourceNotFoundException":
|
|
1484
|
-
case "com.amazonaws.ssmincidents#ResourceNotFoundException":
|
|
1485
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1486
|
-
case "ThrottlingException":
|
|
1487
|
-
case "com.amazonaws.ssmincidents#ThrottlingException":
|
|
1488
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1489
|
-
case "ValidationException":
|
|
1490
|
-
case "com.amazonaws.ssmincidents#ValidationException":
|
|
1491
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1492
|
-
default:
|
|
1493
|
-
const parsedBody = parsedOutput.body;
|
|
1494
|
-
return throwDefaultError({
|
|
1495
|
-
output,
|
|
1496
|
-
parsedBody,
|
|
1497
|
-
errorCode
|
|
1498
|
-
});
|
|
1499
|
-
}
|
|
1500
|
-
}, "de_GetIncidentRecordCommandError");
|
|
1501
1191
|
var de_GetReplicationSetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1502
1192
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1503
|
-
return
|
|
1193
|
+
return de_CommandError(output, context);
|
|
1504
1194
|
}
|
|
1505
1195
|
const contents = (0, import_smithy_client.map)({
|
|
1506
1196
|
$metadata: deserializeMetadata(output)
|
|
@@ -1512,40 +1202,9 @@ var de_GetReplicationSetCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1512
1202
|
Object.assign(contents, doc);
|
|
1513
1203
|
return contents;
|
|
1514
1204
|
}, "de_GetReplicationSetCommand");
|
|
1515
|
-
var de_GetReplicationSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1516
|
-
const parsedOutput = {
|
|
1517
|
-
...output,
|
|
1518
|
-
body: await parseErrorBody(output.body, context)
|
|
1519
|
-
};
|
|
1520
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1521
|
-
switch (errorCode) {
|
|
1522
|
-
case "AccessDeniedException":
|
|
1523
|
-
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
1524
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1525
|
-
case "InternalServerException":
|
|
1526
|
-
case "com.amazonaws.ssmincidents#InternalServerException":
|
|
1527
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1528
|
-
case "ResourceNotFoundException":
|
|
1529
|
-
case "com.amazonaws.ssmincidents#ResourceNotFoundException":
|
|
1530
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1531
|
-
case "ThrottlingException":
|
|
1532
|
-
case "com.amazonaws.ssmincidents#ThrottlingException":
|
|
1533
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1534
|
-
case "ValidationException":
|
|
1535
|
-
case "com.amazonaws.ssmincidents#ValidationException":
|
|
1536
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1537
|
-
default:
|
|
1538
|
-
const parsedBody = parsedOutput.body;
|
|
1539
|
-
return throwDefaultError({
|
|
1540
|
-
output,
|
|
1541
|
-
parsedBody,
|
|
1542
|
-
errorCode
|
|
1543
|
-
});
|
|
1544
|
-
}
|
|
1545
|
-
}, "de_GetReplicationSetCommandError");
|
|
1546
1205
|
var de_GetResourcePoliciesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1547
1206
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1548
|
-
return
|
|
1207
|
+
return de_CommandError(output, context);
|
|
1549
1208
|
}
|
|
1550
1209
|
const contents = (0, import_smithy_client.map)({
|
|
1551
1210
|
$metadata: deserializeMetadata(output)
|
|
@@ -1558,40 +1217,9 @@ var de_GetResourcePoliciesCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1558
1217
|
Object.assign(contents, doc);
|
|
1559
1218
|
return contents;
|
|
1560
1219
|
}, "de_GetResourcePoliciesCommand");
|
|
1561
|
-
var de_GetResourcePoliciesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1562
|
-
const parsedOutput = {
|
|
1563
|
-
...output,
|
|
1564
|
-
body: await parseErrorBody(output.body, context)
|
|
1565
|
-
};
|
|
1566
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1567
|
-
switch (errorCode) {
|
|
1568
|
-
case "AccessDeniedException":
|
|
1569
|
-
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
1570
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1571
|
-
case "InternalServerException":
|
|
1572
|
-
case "com.amazonaws.ssmincidents#InternalServerException":
|
|
1573
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1574
|
-
case "ResourceNotFoundException":
|
|
1575
|
-
case "com.amazonaws.ssmincidents#ResourceNotFoundException":
|
|
1576
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1577
|
-
case "ThrottlingException":
|
|
1578
|
-
case "com.amazonaws.ssmincidents#ThrottlingException":
|
|
1579
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1580
|
-
case "ValidationException":
|
|
1581
|
-
case "com.amazonaws.ssmincidents#ValidationException":
|
|
1582
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1583
|
-
default:
|
|
1584
|
-
const parsedBody = parsedOutput.body;
|
|
1585
|
-
return throwDefaultError({
|
|
1586
|
-
output,
|
|
1587
|
-
parsedBody,
|
|
1588
|
-
errorCode
|
|
1589
|
-
});
|
|
1590
|
-
}
|
|
1591
|
-
}, "de_GetResourcePoliciesCommandError");
|
|
1592
1220
|
var de_GetResponsePlanCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1593
1221
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1594
|
-
return
|
|
1222
|
+
return de_CommandError(output, context);
|
|
1595
1223
|
}
|
|
1596
1224
|
const contents = (0, import_smithy_client.map)({
|
|
1597
1225
|
$metadata: deserializeMetadata(output)
|
|
@@ -1610,40 +1238,9 @@ var de_GetResponsePlanCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1610
1238
|
Object.assign(contents, doc);
|
|
1611
1239
|
return contents;
|
|
1612
1240
|
}, "de_GetResponsePlanCommand");
|
|
1613
|
-
var de_GetResponsePlanCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1614
|
-
const parsedOutput = {
|
|
1615
|
-
...output,
|
|
1616
|
-
body: await parseErrorBody(output.body, context)
|
|
1617
|
-
};
|
|
1618
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1619
|
-
switch (errorCode) {
|
|
1620
|
-
case "AccessDeniedException":
|
|
1621
|
-
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
1622
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1623
|
-
case "InternalServerException":
|
|
1624
|
-
case "com.amazonaws.ssmincidents#InternalServerException":
|
|
1625
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1626
|
-
case "ResourceNotFoundException":
|
|
1627
|
-
case "com.amazonaws.ssmincidents#ResourceNotFoundException":
|
|
1628
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1629
|
-
case "ThrottlingException":
|
|
1630
|
-
case "com.amazonaws.ssmincidents#ThrottlingException":
|
|
1631
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1632
|
-
case "ValidationException":
|
|
1633
|
-
case "com.amazonaws.ssmincidents#ValidationException":
|
|
1634
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1635
|
-
default:
|
|
1636
|
-
const parsedBody = parsedOutput.body;
|
|
1637
|
-
return throwDefaultError({
|
|
1638
|
-
output,
|
|
1639
|
-
parsedBody,
|
|
1640
|
-
errorCode
|
|
1641
|
-
});
|
|
1642
|
-
}
|
|
1643
|
-
}, "de_GetResponsePlanCommandError");
|
|
1644
1241
|
var de_GetTimelineEventCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1645
1242
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1646
|
-
return
|
|
1243
|
+
return de_CommandError(output, context);
|
|
1647
1244
|
}
|
|
1648
1245
|
const contents = (0, import_smithy_client.map)({
|
|
1649
1246
|
$metadata: deserializeMetadata(output)
|
|
@@ -1655,86 +1252,24 @@ var de_GetTimelineEventCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1655
1252
|
Object.assign(contents, doc);
|
|
1656
1253
|
return contents;
|
|
1657
1254
|
}, "de_GetTimelineEventCommand");
|
|
1658
|
-
var
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
body: await parseErrorBody(output.body, context)
|
|
1662
|
-
};
|
|
1663
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1664
|
-
switch (errorCode) {
|
|
1665
|
-
case "AccessDeniedException":
|
|
1666
|
-
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
1667
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1668
|
-
case "InternalServerException":
|
|
1669
|
-
case "com.amazonaws.ssmincidents#InternalServerException":
|
|
1670
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1671
|
-
case "ResourceNotFoundException":
|
|
1672
|
-
case "com.amazonaws.ssmincidents#ResourceNotFoundException":
|
|
1673
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1674
|
-
case "ThrottlingException":
|
|
1675
|
-
case "com.amazonaws.ssmincidents#ThrottlingException":
|
|
1676
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1677
|
-
case "ValidationException":
|
|
1678
|
-
case "com.amazonaws.ssmincidents#ValidationException":
|
|
1679
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1680
|
-
default:
|
|
1681
|
-
const parsedBody = parsedOutput.body;
|
|
1682
|
-
return throwDefaultError({
|
|
1683
|
-
output,
|
|
1684
|
-
parsedBody,
|
|
1685
|
-
errorCode
|
|
1686
|
-
});
|
|
1687
|
-
}
|
|
1688
|
-
}, "de_GetTimelineEventCommandError");
|
|
1689
|
-
var de_ListIncidentFindingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1690
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1691
|
-
return de_ListIncidentFindingsCommandError(output, context);
|
|
1692
|
-
}
|
|
1693
|
-
const contents = (0, import_smithy_client.map)({
|
|
1694
|
-
$metadata: deserializeMetadata(output)
|
|
1695
|
-
});
|
|
1696
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1697
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1698
|
-
findings: (_) => de_FindingSummaryList(_, context),
|
|
1699
|
-
nextToken: import_smithy_client.expectString
|
|
1700
|
-
});
|
|
1701
|
-
Object.assign(contents, doc);
|
|
1702
|
-
return contents;
|
|
1703
|
-
}, "de_ListIncidentFindingsCommand");
|
|
1704
|
-
var de_ListIncidentFindingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1705
|
-
const parsedOutput = {
|
|
1706
|
-
...output,
|
|
1707
|
-
body: await parseErrorBody(output.body, context)
|
|
1708
|
-
};
|
|
1709
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1710
|
-
switch (errorCode) {
|
|
1711
|
-
case "AccessDeniedException":
|
|
1712
|
-
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
1713
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1714
|
-
case "InternalServerException":
|
|
1715
|
-
case "com.amazonaws.ssmincidents#InternalServerException":
|
|
1716
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1717
|
-
case "ResourceNotFoundException":
|
|
1718
|
-
case "com.amazonaws.ssmincidents#ResourceNotFoundException":
|
|
1719
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1720
|
-
case "ThrottlingException":
|
|
1721
|
-
case "com.amazonaws.ssmincidents#ThrottlingException":
|
|
1722
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1723
|
-
case "ValidationException":
|
|
1724
|
-
case "com.amazonaws.ssmincidents#ValidationException":
|
|
1725
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1726
|
-
default:
|
|
1727
|
-
const parsedBody = parsedOutput.body;
|
|
1728
|
-
return throwDefaultError({
|
|
1729
|
-
output,
|
|
1730
|
-
parsedBody,
|
|
1731
|
-
errorCode
|
|
1732
|
-
});
|
|
1255
|
+
var de_ListIncidentFindingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1256
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1257
|
+
return de_CommandError(output, context);
|
|
1733
1258
|
}
|
|
1734
|
-
|
|
1259
|
+
const contents = (0, import_smithy_client.map)({
|
|
1260
|
+
$metadata: deserializeMetadata(output)
|
|
1261
|
+
});
|
|
1262
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1263
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1264
|
+
findings: (_) => de_FindingSummaryList(_, context),
|
|
1265
|
+
nextToken: import_smithy_client.expectString
|
|
1266
|
+
});
|
|
1267
|
+
Object.assign(contents, doc);
|
|
1268
|
+
return contents;
|
|
1269
|
+
}, "de_ListIncidentFindingsCommand");
|
|
1735
1270
|
var de_ListIncidentRecordsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1736
1271
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1737
|
-
return
|
|
1272
|
+
return de_CommandError(output, context);
|
|
1738
1273
|
}
|
|
1739
1274
|
const contents = (0, import_smithy_client.map)({
|
|
1740
1275
|
$metadata: deserializeMetadata(output)
|
|
@@ -1747,37 +1282,9 @@ var de_ListIncidentRecordsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1747
1282
|
Object.assign(contents, doc);
|
|
1748
1283
|
return contents;
|
|
1749
1284
|
}, "de_ListIncidentRecordsCommand");
|
|
1750
|
-
var de_ListIncidentRecordsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1751
|
-
const parsedOutput = {
|
|
1752
|
-
...output,
|
|
1753
|
-
body: await parseErrorBody(output.body, context)
|
|
1754
|
-
};
|
|
1755
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1756
|
-
switch (errorCode) {
|
|
1757
|
-
case "AccessDeniedException":
|
|
1758
|
-
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
1759
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1760
|
-
case "InternalServerException":
|
|
1761
|
-
case "com.amazonaws.ssmincidents#InternalServerException":
|
|
1762
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1763
|
-
case "ThrottlingException":
|
|
1764
|
-
case "com.amazonaws.ssmincidents#ThrottlingException":
|
|
1765
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1766
|
-
case "ValidationException":
|
|
1767
|
-
case "com.amazonaws.ssmincidents#ValidationException":
|
|
1768
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1769
|
-
default:
|
|
1770
|
-
const parsedBody = parsedOutput.body;
|
|
1771
|
-
return throwDefaultError({
|
|
1772
|
-
output,
|
|
1773
|
-
parsedBody,
|
|
1774
|
-
errorCode
|
|
1775
|
-
});
|
|
1776
|
-
}
|
|
1777
|
-
}, "de_ListIncidentRecordsCommandError");
|
|
1778
1285
|
var de_ListRelatedItemsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1779
1286
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1780
|
-
return
|
|
1287
|
+
return de_CommandError(output, context);
|
|
1781
1288
|
}
|
|
1782
1289
|
const contents = (0, import_smithy_client.map)({
|
|
1783
1290
|
$metadata: deserializeMetadata(output)
|
|
@@ -1790,37 +1297,9 @@ var de_ListRelatedItemsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1790
1297
|
Object.assign(contents, doc);
|
|
1791
1298
|
return contents;
|
|
1792
1299
|
}, "de_ListRelatedItemsCommand");
|
|
1793
|
-
var de_ListRelatedItemsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1794
|
-
const parsedOutput = {
|
|
1795
|
-
...output,
|
|
1796
|
-
body: await parseErrorBody(output.body, context)
|
|
1797
|
-
};
|
|
1798
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1799
|
-
switch (errorCode) {
|
|
1800
|
-
case "AccessDeniedException":
|
|
1801
|
-
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
1802
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1803
|
-
case "InternalServerException":
|
|
1804
|
-
case "com.amazonaws.ssmincidents#InternalServerException":
|
|
1805
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1806
|
-
case "ThrottlingException":
|
|
1807
|
-
case "com.amazonaws.ssmincidents#ThrottlingException":
|
|
1808
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1809
|
-
case "ValidationException":
|
|
1810
|
-
case "com.amazonaws.ssmincidents#ValidationException":
|
|
1811
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1812
|
-
default:
|
|
1813
|
-
const parsedBody = parsedOutput.body;
|
|
1814
|
-
return throwDefaultError({
|
|
1815
|
-
output,
|
|
1816
|
-
parsedBody,
|
|
1817
|
-
errorCode
|
|
1818
|
-
});
|
|
1819
|
-
}
|
|
1820
|
-
}, "de_ListRelatedItemsCommandError");
|
|
1821
1300
|
var de_ListReplicationSetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1822
1301
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1823
|
-
return
|
|
1302
|
+
return de_CommandError(output, context);
|
|
1824
1303
|
}
|
|
1825
1304
|
const contents = (0, import_smithy_client.map)({
|
|
1826
1305
|
$metadata: deserializeMetadata(output)
|
|
@@ -1833,37 +1312,9 @@ var de_ListReplicationSetsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1833
1312
|
Object.assign(contents, doc);
|
|
1834
1313
|
return contents;
|
|
1835
1314
|
}, "de_ListReplicationSetsCommand");
|
|
1836
|
-
var de_ListReplicationSetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1837
|
-
const parsedOutput = {
|
|
1838
|
-
...output,
|
|
1839
|
-
body: await parseErrorBody(output.body, context)
|
|
1840
|
-
};
|
|
1841
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1842
|
-
switch (errorCode) {
|
|
1843
|
-
case "AccessDeniedException":
|
|
1844
|
-
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
1845
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1846
|
-
case "InternalServerException":
|
|
1847
|
-
case "com.amazonaws.ssmincidents#InternalServerException":
|
|
1848
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1849
|
-
case "ThrottlingException":
|
|
1850
|
-
case "com.amazonaws.ssmincidents#ThrottlingException":
|
|
1851
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1852
|
-
case "ValidationException":
|
|
1853
|
-
case "com.amazonaws.ssmincidents#ValidationException":
|
|
1854
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1855
|
-
default:
|
|
1856
|
-
const parsedBody = parsedOutput.body;
|
|
1857
|
-
return throwDefaultError({
|
|
1858
|
-
output,
|
|
1859
|
-
parsedBody,
|
|
1860
|
-
errorCode
|
|
1861
|
-
});
|
|
1862
|
-
}
|
|
1863
|
-
}, "de_ListReplicationSetsCommandError");
|
|
1864
1315
|
var de_ListResponsePlansCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1865
1316
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1866
|
-
return
|
|
1317
|
+
return de_CommandError(output, context);
|
|
1867
1318
|
}
|
|
1868
1319
|
const contents = (0, import_smithy_client.map)({
|
|
1869
1320
|
$metadata: deserializeMetadata(output)
|
|
@@ -1876,37 +1327,9 @@ var de_ListResponsePlansCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1876
1327
|
Object.assign(contents, doc);
|
|
1877
1328
|
return contents;
|
|
1878
1329
|
}, "de_ListResponsePlansCommand");
|
|
1879
|
-
var de_ListResponsePlansCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1880
|
-
const parsedOutput = {
|
|
1881
|
-
...output,
|
|
1882
|
-
body: await parseErrorBody(output.body, context)
|
|
1883
|
-
};
|
|
1884
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1885
|
-
switch (errorCode) {
|
|
1886
|
-
case "AccessDeniedException":
|
|
1887
|
-
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
1888
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1889
|
-
case "InternalServerException":
|
|
1890
|
-
case "com.amazonaws.ssmincidents#InternalServerException":
|
|
1891
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1892
|
-
case "ThrottlingException":
|
|
1893
|
-
case "com.amazonaws.ssmincidents#ThrottlingException":
|
|
1894
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1895
|
-
case "ValidationException":
|
|
1896
|
-
case "com.amazonaws.ssmincidents#ValidationException":
|
|
1897
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1898
|
-
default:
|
|
1899
|
-
const parsedBody = parsedOutput.body;
|
|
1900
|
-
return throwDefaultError({
|
|
1901
|
-
output,
|
|
1902
|
-
parsedBody,
|
|
1903
|
-
errorCode
|
|
1904
|
-
});
|
|
1905
|
-
}
|
|
1906
|
-
}, "de_ListResponsePlansCommandError");
|
|
1907
1330
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1908
1331
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1909
|
-
return
|
|
1332
|
+
return de_CommandError(output, context);
|
|
1910
1333
|
}
|
|
1911
1334
|
const contents = (0, import_smithy_client.map)({
|
|
1912
1335
|
$metadata: deserializeMetadata(output)
|
|
@@ -1918,40 +1341,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1918
1341
|
Object.assign(contents, doc);
|
|
1919
1342
|
return contents;
|
|
1920
1343
|
}, "de_ListTagsForResourceCommand");
|
|
1921
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1922
|
-
const parsedOutput = {
|
|
1923
|
-
...output,
|
|
1924
|
-
body: await parseErrorBody(output.body, context)
|
|
1925
|
-
};
|
|
1926
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1927
|
-
switch (errorCode) {
|
|
1928
|
-
case "AccessDeniedException":
|
|
1929
|
-
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
1930
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1931
|
-
case "InternalServerException":
|
|
1932
|
-
case "com.amazonaws.ssmincidents#InternalServerException":
|
|
1933
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1934
|
-
case "ResourceNotFoundException":
|
|
1935
|
-
case "com.amazonaws.ssmincidents#ResourceNotFoundException":
|
|
1936
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1937
|
-
case "ThrottlingException":
|
|
1938
|
-
case "com.amazonaws.ssmincidents#ThrottlingException":
|
|
1939
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1940
|
-
case "ValidationException":
|
|
1941
|
-
case "com.amazonaws.ssmincidents#ValidationException":
|
|
1942
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1943
|
-
default:
|
|
1944
|
-
const parsedBody = parsedOutput.body;
|
|
1945
|
-
return throwDefaultError({
|
|
1946
|
-
output,
|
|
1947
|
-
parsedBody,
|
|
1948
|
-
errorCode
|
|
1949
|
-
});
|
|
1950
|
-
}
|
|
1951
|
-
}, "de_ListTagsForResourceCommandError");
|
|
1952
1344
|
var de_ListTimelineEventsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1953
1345
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1954
|
-
return
|
|
1346
|
+
return de_CommandError(output, context);
|
|
1955
1347
|
}
|
|
1956
1348
|
const contents = (0, import_smithy_client.map)({
|
|
1957
1349
|
$metadata: deserializeMetadata(output)
|
|
@@ -1964,130 +1356,37 @@ var de_ListTimelineEventsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1964
1356
|
Object.assign(contents, doc);
|
|
1965
1357
|
return contents;
|
|
1966
1358
|
}, "de_ListTimelineEventsCommand");
|
|
1967
|
-
var de_ListTimelineEventsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1968
|
-
const parsedOutput = {
|
|
1969
|
-
...output,
|
|
1970
|
-
body: await parseErrorBody(output.body, context)
|
|
1971
|
-
};
|
|
1972
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1973
|
-
switch (errorCode) {
|
|
1974
|
-
case "AccessDeniedException":
|
|
1975
|
-
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
1976
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1977
|
-
case "InternalServerException":
|
|
1978
|
-
case "com.amazonaws.ssmincidents#InternalServerException":
|
|
1979
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1980
|
-
case "ThrottlingException":
|
|
1981
|
-
case "com.amazonaws.ssmincidents#ThrottlingException":
|
|
1982
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1983
|
-
case "ValidationException":
|
|
1984
|
-
case "com.amazonaws.ssmincidents#ValidationException":
|
|
1985
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1986
|
-
default:
|
|
1987
|
-
const parsedBody = parsedOutput.body;
|
|
1988
|
-
return throwDefaultError({
|
|
1989
|
-
output,
|
|
1990
|
-
parsedBody,
|
|
1991
|
-
errorCode
|
|
1992
|
-
});
|
|
1993
|
-
}
|
|
1994
|
-
}, "de_ListTimelineEventsCommandError");
|
|
1995
1359
|
var de_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1996
1360
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1997
|
-
return
|
|
1998
|
-
}
|
|
1999
|
-
const contents = (0, import_smithy_client.map)({
|
|
2000
|
-
$metadata: deserializeMetadata(output)
|
|
2001
|
-
});
|
|
2002
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2003
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
2004
|
-
policyId: import_smithy_client.expectString
|
|
2005
|
-
});
|
|
2006
|
-
Object.assign(contents, doc);
|
|
2007
|
-
return contents;
|
|
2008
|
-
}, "de_PutResourcePolicyCommand");
|
|
2009
|
-
var de_PutResourcePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2010
|
-
const parsedOutput = {
|
|
2011
|
-
...output,
|
|
2012
|
-
body: await parseErrorBody(output.body, context)
|
|
2013
|
-
};
|
|
2014
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2015
|
-
switch (errorCode) {
|
|
2016
|
-
case "AccessDeniedException":
|
|
2017
|
-
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
2018
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2019
|
-
case "InternalServerException":
|
|
2020
|
-
case "com.amazonaws.ssmincidents#InternalServerException":
|
|
2021
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2022
|
-
case "ResourceNotFoundException":
|
|
2023
|
-
case "com.amazonaws.ssmincidents#ResourceNotFoundException":
|
|
2024
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2025
|
-
case "ThrottlingException":
|
|
2026
|
-
case "com.amazonaws.ssmincidents#ThrottlingException":
|
|
2027
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2028
|
-
case "ValidationException":
|
|
2029
|
-
case "com.amazonaws.ssmincidents#ValidationException":
|
|
2030
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2031
|
-
default:
|
|
2032
|
-
const parsedBody = parsedOutput.body;
|
|
2033
|
-
return throwDefaultError({
|
|
2034
|
-
output,
|
|
2035
|
-
parsedBody,
|
|
2036
|
-
errorCode
|
|
2037
|
-
});
|
|
2038
|
-
}
|
|
2039
|
-
}, "de_PutResourcePolicyCommandError");
|
|
2040
|
-
var de_StartIncidentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2041
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2042
|
-
return de_StartIncidentCommandError(output, context);
|
|
2043
|
-
}
|
|
2044
|
-
const contents = (0, import_smithy_client.map)({
|
|
2045
|
-
$metadata: deserializeMetadata(output)
|
|
2046
|
-
});
|
|
2047
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2048
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
2049
|
-
incidentRecordArn: import_smithy_client.expectString
|
|
2050
|
-
});
|
|
2051
|
-
Object.assign(contents, doc);
|
|
2052
|
-
return contents;
|
|
2053
|
-
}, "de_StartIncidentCommand");
|
|
2054
|
-
var de_StartIncidentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2055
|
-
const parsedOutput = {
|
|
2056
|
-
...output,
|
|
2057
|
-
body: await parseErrorBody(output.body, context)
|
|
2058
|
-
};
|
|
2059
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2060
|
-
switch (errorCode) {
|
|
2061
|
-
case "AccessDeniedException":
|
|
2062
|
-
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
2063
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2064
|
-
case "ConflictException":
|
|
2065
|
-
case "com.amazonaws.ssmincidents#ConflictException":
|
|
2066
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2067
|
-
case "InternalServerException":
|
|
2068
|
-
case "com.amazonaws.ssmincidents#InternalServerException":
|
|
2069
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2070
|
-
case "ResourceNotFoundException":
|
|
2071
|
-
case "com.amazonaws.ssmincidents#ResourceNotFoundException":
|
|
2072
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2073
|
-
case "ThrottlingException":
|
|
2074
|
-
case "com.amazonaws.ssmincidents#ThrottlingException":
|
|
2075
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2076
|
-
case "ValidationException":
|
|
2077
|
-
case "com.amazonaws.ssmincidents#ValidationException":
|
|
2078
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2079
|
-
default:
|
|
2080
|
-
const parsedBody = parsedOutput.body;
|
|
2081
|
-
return throwDefaultError({
|
|
2082
|
-
output,
|
|
2083
|
-
parsedBody,
|
|
2084
|
-
errorCode
|
|
2085
|
-
});
|
|
1361
|
+
return de_CommandError(output, context);
|
|
2086
1362
|
}
|
|
2087
|
-
|
|
1363
|
+
const contents = (0, import_smithy_client.map)({
|
|
1364
|
+
$metadata: deserializeMetadata(output)
|
|
1365
|
+
});
|
|
1366
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1367
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1368
|
+
policyId: import_smithy_client.expectString
|
|
1369
|
+
});
|
|
1370
|
+
Object.assign(contents, doc);
|
|
1371
|
+
return contents;
|
|
1372
|
+
}, "de_PutResourcePolicyCommand");
|
|
1373
|
+
var de_StartIncidentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1374
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1375
|
+
return de_CommandError(output, context);
|
|
1376
|
+
}
|
|
1377
|
+
const contents = (0, import_smithy_client.map)({
|
|
1378
|
+
$metadata: deserializeMetadata(output)
|
|
1379
|
+
});
|
|
1380
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1381
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1382
|
+
incidentRecordArn: import_smithy_client.expectString
|
|
1383
|
+
});
|
|
1384
|
+
Object.assign(contents, doc);
|
|
1385
|
+
return contents;
|
|
1386
|
+
}, "de_StartIncidentCommand");
|
|
2088
1387
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2089
1388
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2090
|
-
return
|
|
1389
|
+
return de_CommandError(output, context);
|
|
2091
1390
|
}
|
|
2092
1391
|
const contents = (0, import_smithy_client.map)({
|
|
2093
1392
|
$metadata: deserializeMetadata(output)
|
|
@@ -2095,46 +1394,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2095
1394
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2096
1395
|
return contents;
|
|
2097
1396
|
}, "de_TagResourceCommand");
|
|
2098
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2099
|
-
const parsedOutput = {
|
|
2100
|
-
...output,
|
|
2101
|
-
body: await parseErrorBody(output.body, context)
|
|
2102
|
-
};
|
|
2103
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2104
|
-
switch (errorCode) {
|
|
2105
|
-
case "AccessDeniedException":
|
|
2106
|
-
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
2107
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2108
|
-
case "ConflictException":
|
|
2109
|
-
case "com.amazonaws.ssmincidents#ConflictException":
|
|
2110
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2111
|
-
case "InternalServerException":
|
|
2112
|
-
case "com.amazonaws.ssmincidents#InternalServerException":
|
|
2113
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2114
|
-
case "ResourceNotFoundException":
|
|
2115
|
-
case "com.amazonaws.ssmincidents#ResourceNotFoundException":
|
|
2116
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2117
|
-
case "ServiceQuotaExceededException":
|
|
2118
|
-
case "com.amazonaws.ssmincidents#ServiceQuotaExceededException":
|
|
2119
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2120
|
-
case "ThrottlingException":
|
|
2121
|
-
case "com.amazonaws.ssmincidents#ThrottlingException":
|
|
2122
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2123
|
-
case "ValidationException":
|
|
2124
|
-
case "com.amazonaws.ssmincidents#ValidationException":
|
|
2125
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2126
|
-
default:
|
|
2127
|
-
const parsedBody = parsedOutput.body;
|
|
2128
|
-
return throwDefaultError({
|
|
2129
|
-
output,
|
|
2130
|
-
parsedBody,
|
|
2131
|
-
errorCode
|
|
2132
|
-
});
|
|
2133
|
-
}
|
|
2134
|
-
}, "de_TagResourceCommandError");
|
|
2135
1397
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2136
1398
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2137
|
-
return
|
|
1399
|
+
return de_CommandError(output, context);
|
|
2138
1400
|
}
|
|
2139
1401
|
const contents = (0, import_smithy_client.map)({
|
|
2140
1402
|
$metadata: deserializeMetadata(output)
|
|
@@ -2142,43 +1404,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2142
1404
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2143
1405
|
return contents;
|
|
2144
1406
|
}, "de_UntagResourceCommand");
|
|
2145
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2146
|
-
const parsedOutput = {
|
|
2147
|
-
...output,
|
|
2148
|
-
body: await parseErrorBody(output.body, context)
|
|
2149
|
-
};
|
|
2150
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2151
|
-
switch (errorCode) {
|
|
2152
|
-
case "AccessDeniedException":
|
|
2153
|
-
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
2154
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2155
|
-
case "ConflictException":
|
|
2156
|
-
case "com.amazonaws.ssmincidents#ConflictException":
|
|
2157
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2158
|
-
case "InternalServerException":
|
|
2159
|
-
case "com.amazonaws.ssmincidents#InternalServerException":
|
|
2160
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2161
|
-
case "ResourceNotFoundException":
|
|
2162
|
-
case "com.amazonaws.ssmincidents#ResourceNotFoundException":
|
|
2163
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2164
|
-
case "ThrottlingException":
|
|
2165
|
-
case "com.amazonaws.ssmincidents#ThrottlingException":
|
|
2166
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2167
|
-
case "ValidationException":
|
|
2168
|
-
case "com.amazonaws.ssmincidents#ValidationException":
|
|
2169
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2170
|
-
default:
|
|
2171
|
-
const parsedBody = parsedOutput.body;
|
|
2172
|
-
return throwDefaultError({
|
|
2173
|
-
output,
|
|
2174
|
-
parsedBody,
|
|
2175
|
-
errorCode
|
|
2176
|
-
});
|
|
2177
|
-
}
|
|
2178
|
-
}, "de_UntagResourceCommandError");
|
|
2179
1407
|
var de_UpdateDeletionProtectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2180
1408
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2181
|
-
return
|
|
1409
|
+
return de_CommandError(output, context);
|
|
2182
1410
|
}
|
|
2183
1411
|
const contents = (0, import_smithy_client.map)({
|
|
2184
1412
|
$metadata: deserializeMetadata(output)
|
|
@@ -2186,40 +1414,9 @@ var de_UpdateDeletionProtectionCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2186
1414
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2187
1415
|
return contents;
|
|
2188
1416
|
}, "de_UpdateDeletionProtectionCommand");
|
|
2189
|
-
var de_UpdateDeletionProtectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2190
|
-
const parsedOutput = {
|
|
2191
|
-
...output,
|
|
2192
|
-
body: await parseErrorBody(output.body, context)
|
|
2193
|
-
};
|
|
2194
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2195
|
-
switch (errorCode) {
|
|
2196
|
-
case "AccessDeniedException":
|
|
2197
|
-
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
2198
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2199
|
-
case "InternalServerException":
|
|
2200
|
-
case "com.amazonaws.ssmincidents#InternalServerException":
|
|
2201
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2202
|
-
case "ResourceNotFoundException":
|
|
2203
|
-
case "com.amazonaws.ssmincidents#ResourceNotFoundException":
|
|
2204
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2205
|
-
case "ThrottlingException":
|
|
2206
|
-
case "com.amazonaws.ssmincidents#ThrottlingException":
|
|
2207
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2208
|
-
case "ValidationException":
|
|
2209
|
-
case "com.amazonaws.ssmincidents#ValidationException":
|
|
2210
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2211
|
-
default:
|
|
2212
|
-
const parsedBody = parsedOutput.body;
|
|
2213
|
-
return throwDefaultError({
|
|
2214
|
-
output,
|
|
2215
|
-
parsedBody,
|
|
2216
|
-
errorCode
|
|
2217
|
-
});
|
|
2218
|
-
}
|
|
2219
|
-
}, "de_UpdateDeletionProtectionCommandError");
|
|
2220
1417
|
var de_UpdateIncidentRecordCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2221
1418
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2222
|
-
return
|
|
1419
|
+
return de_CommandError(output, context);
|
|
2223
1420
|
}
|
|
2224
1421
|
const contents = (0, import_smithy_client.map)({
|
|
2225
1422
|
$metadata: deserializeMetadata(output)
|
|
@@ -2227,43 +1424,9 @@ var de_UpdateIncidentRecordCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2227
1424
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2228
1425
|
return contents;
|
|
2229
1426
|
}, "de_UpdateIncidentRecordCommand");
|
|
2230
|
-
var de_UpdateIncidentRecordCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2231
|
-
const parsedOutput = {
|
|
2232
|
-
...output,
|
|
2233
|
-
body: await parseErrorBody(output.body, context)
|
|
2234
|
-
};
|
|
2235
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2236
|
-
switch (errorCode) {
|
|
2237
|
-
case "AccessDeniedException":
|
|
2238
|
-
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
2239
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2240
|
-
case "ConflictException":
|
|
2241
|
-
case "com.amazonaws.ssmincidents#ConflictException":
|
|
2242
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2243
|
-
case "InternalServerException":
|
|
2244
|
-
case "com.amazonaws.ssmincidents#InternalServerException":
|
|
2245
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2246
|
-
case "ResourceNotFoundException":
|
|
2247
|
-
case "com.amazonaws.ssmincidents#ResourceNotFoundException":
|
|
2248
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2249
|
-
case "ThrottlingException":
|
|
2250
|
-
case "com.amazonaws.ssmincidents#ThrottlingException":
|
|
2251
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2252
|
-
case "ValidationException":
|
|
2253
|
-
case "com.amazonaws.ssmincidents#ValidationException":
|
|
2254
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2255
|
-
default:
|
|
2256
|
-
const parsedBody = parsedOutput.body;
|
|
2257
|
-
return throwDefaultError({
|
|
2258
|
-
output,
|
|
2259
|
-
parsedBody,
|
|
2260
|
-
errorCode
|
|
2261
|
-
});
|
|
2262
|
-
}
|
|
2263
|
-
}, "de_UpdateIncidentRecordCommandError");
|
|
2264
1427
|
var de_UpdateRelatedItemsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2265
1428
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2266
|
-
return
|
|
1429
|
+
return de_CommandError(output, context);
|
|
2267
1430
|
}
|
|
2268
1431
|
const contents = (0, import_smithy_client.map)({
|
|
2269
1432
|
$metadata: deserializeMetadata(output)
|
|
@@ -2271,43 +1434,9 @@ var de_UpdateRelatedItemsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2271
1434
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2272
1435
|
return contents;
|
|
2273
1436
|
}, "de_UpdateRelatedItemsCommand");
|
|
2274
|
-
var de_UpdateRelatedItemsCommandError = /* @__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 "AccessDeniedException":
|
|
2282
|
-
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
2283
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2284
|
-
case "ConflictException":
|
|
2285
|
-
case "com.amazonaws.ssmincidents#ConflictException":
|
|
2286
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2287
|
-
case "InternalServerException":
|
|
2288
|
-
case "com.amazonaws.ssmincidents#InternalServerException":
|
|
2289
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2290
|
-
case "ResourceNotFoundException":
|
|
2291
|
-
case "com.amazonaws.ssmincidents#ResourceNotFoundException":
|
|
2292
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2293
|
-
case "ThrottlingException":
|
|
2294
|
-
case "com.amazonaws.ssmincidents#ThrottlingException":
|
|
2295
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2296
|
-
case "ValidationException":
|
|
2297
|
-
case "com.amazonaws.ssmincidents#ValidationException":
|
|
2298
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2299
|
-
default:
|
|
2300
|
-
const parsedBody = parsedOutput.body;
|
|
2301
|
-
return throwDefaultError({
|
|
2302
|
-
output,
|
|
2303
|
-
parsedBody,
|
|
2304
|
-
errorCode
|
|
2305
|
-
});
|
|
2306
|
-
}
|
|
2307
|
-
}, "de_UpdateRelatedItemsCommandError");
|
|
2308
1437
|
var de_UpdateReplicationSetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2309
1438
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2310
|
-
return
|
|
1439
|
+
return de_CommandError(output, context);
|
|
2311
1440
|
}
|
|
2312
1441
|
const contents = (0, import_smithy_client.map)({
|
|
2313
1442
|
$metadata: deserializeMetadata(output)
|
|
@@ -2315,43 +1444,9 @@ var de_UpdateReplicationSetCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2315
1444
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2316
1445
|
return contents;
|
|
2317
1446
|
}, "de_UpdateReplicationSetCommand");
|
|
2318
|
-
var de_UpdateReplicationSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2319
|
-
const parsedOutput = {
|
|
2320
|
-
...output,
|
|
2321
|
-
body: await parseErrorBody(output.body, context)
|
|
2322
|
-
};
|
|
2323
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2324
|
-
switch (errorCode) {
|
|
2325
|
-
case "AccessDeniedException":
|
|
2326
|
-
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
2327
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2328
|
-
case "ConflictException":
|
|
2329
|
-
case "com.amazonaws.ssmincidents#ConflictException":
|
|
2330
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2331
|
-
case "InternalServerException":
|
|
2332
|
-
case "com.amazonaws.ssmincidents#InternalServerException":
|
|
2333
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2334
|
-
case "ResourceNotFoundException":
|
|
2335
|
-
case "com.amazonaws.ssmincidents#ResourceNotFoundException":
|
|
2336
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2337
|
-
case "ThrottlingException":
|
|
2338
|
-
case "com.amazonaws.ssmincidents#ThrottlingException":
|
|
2339
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2340
|
-
case "ValidationException":
|
|
2341
|
-
case "com.amazonaws.ssmincidents#ValidationException":
|
|
2342
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2343
|
-
default:
|
|
2344
|
-
const parsedBody = parsedOutput.body;
|
|
2345
|
-
return throwDefaultError({
|
|
2346
|
-
output,
|
|
2347
|
-
parsedBody,
|
|
2348
|
-
errorCode
|
|
2349
|
-
});
|
|
2350
|
-
}
|
|
2351
|
-
}, "de_UpdateReplicationSetCommandError");
|
|
2352
1447
|
var de_UpdateResponsePlanCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2353
1448
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2354
|
-
return
|
|
1449
|
+
return de_CommandError(output, context);
|
|
2355
1450
|
}
|
|
2356
1451
|
const contents = (0, import_smithy_client.map)({
|
|
2357
1452
|
$metadata: deserializeMetadata(output)
|
|
@@ -2359,43 +1454,9 @@ var de_UpdateResponsePlanCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2359
1454
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2360
1455
|
return contents;
|
|
2361
1456
|
}, "de_UpdateResponsePlanCommand");
|
|
2362
|
-
var de_UpdateResponsePlanCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2363
|
-
const parsedOutput = {
|
|
2364
|
-
...output,
|
|
2365
|
-
body: await parseErrorBody(output.body, context)
|
|
2366
|
-
};
|
|
2367
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2368
|
-
switch (errorCode) {
|
|
2369
|
-
case "AccessDeniedException":
|
|
2370
|
-
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
2371
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2372
|
-
case "ConflictException":
|
|
2373
|
-
case "com.amazonaws.ssmincidents#ConflictException":
|
|
2374
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2375
|
-
case "InternalServerException":
|
|
2376
|
-
case "com.amazonaws.ssmincidents#InternalServerException":
|
|
2377
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2378
|
-
case "ResourceNotFoundException":
|
|
2379
|
-
case "com.amazonaws.ssmincidents#ResourceNotFoundException":
|
|
2380
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2381
|
-
case "ThrottlingException":
|
|
2382
|
-
case "com.amazonaws.ssmincidents#ThrottlingException":
|
|
2383
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2384
|
-
case "ValidationException":
|
|
2385
|
-
case "com.amazonaws.ssmincidents#ValidationException":
|
|
2386
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2387
|
-
default:
|
|
2388
|
-
const parsedBody = parsedOutput.body;
|
|
2389
|
-
return throwDefaultError({
|
|
2390
|
-
output,
|
|
2391
|
-
parsedBody,
|
|
2392
|
-
errorCode
|
|
2393
|
-
});
|
|
2394
|
-
}
|
|
2395
|
-
}, "de_UpdateResponsePlanCommandError");
|
|
2396
1457
|
var de_UpdateTimelineEventCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2397
1458
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2398
|
-
return
|
|
1459
|
+
return de_CommandError(output, context);
|
|
2399
1460
|
}
|
|
2400
1461
|
const contents = (0, import_smithy_client.map)({
|
|
2401
1462
|
$metadata: deserializeMetadata(output)
|
|
@@ -2403,7 +1464,7 @@ var de_UpdateTimelineEventCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2403
1464
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2404
1465
|
return contents;
|
|
2405
1466
|
}, "de_UpdateTimelineEventCommand");
|
|
2406
|
-
var
|
|
1467
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2407
1468
|
const parsedOutput = {
|
|
2408
1469
|
...output,
|
|
2409
1470
|
body: await parseErrorBody(output.body, context)
|
|
@@ -2413,9 +1474,6 @@ var de_UpdateTimelineEventCommandError = /* @__PURE__ */ __name(async (output, c
|
|
|
2413
1474
|
case "AccessDeniedException":
|
|
2414
1475
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
2415
1476
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2416
|
-
case "ConflictException":
|
|
2417
|
-
case "com.amazonaws.ssmincidents#ConflictException":
|
|
2418
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2419
1477
|
case "InternalServerException":
|
|
2420
1478
|
case "com.amazonaws.ssmincidents#InternalServerException":
|
|
2421
1479
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
@@ -2428,6 +1486,12 @@ var de_UpdateTimelineEventCommandError = /* @__PURE__ */ __name(async (output, c
|
|
|
2428
1486
|
case "ValidationException":
|
|
2429
1487
|
case "com.amazonaws.ssmincidents#ValidationException":
|
|
2430
1488
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1489
|
+
case "ConflictException":
|
|
1490
|
+
case "com.amazonaws.ssmincidents#ConflictException":
|
|
1491
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1492
|
+
case "ServiceQuotaExceededException":
|
|
1493
|
+
case "com.amazonaws.ssmincidents#ServiceQuotaExceededException":
|
|
1494
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2431
1495
|
default:
|
|
2432
1496
|
const parsedBody = parsedOutput.body;
|
|
2433
1497
|
return throwDefaultError({
|
|
@@ -2436,7 +1500,7 @@ var de_UpdateTimelineEventCommandError = /* @__PURE__ */ __name(async (output, c
|
|
|
2436
1500
|
errorCode
|
|
2437
1501
|
});
|
|
2438
1502
|
}
|
|
2439
|
-
}, "
|
|
1503
|
+
}, "de_CommandError");
|
|
2440
1504
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(SSMIncidentsServiceException);
|
|
2441
1505
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2442
1506
|
const contents = (0, import_smithy_client.map)({});
|