@aws-sdk/client-ssm-incidents 3.118.0 → 3.123.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.
|
@@ -712,6 +712,10 @@ const serializeAws_restJson1UpdateResponsePlanCommand = async (input, context) =
|
|
|
712
712
|
}),
|
|
713
713
|
...(input.incidentTemplateSummary !== undefined &&
|
|
714
714
|
input.incidentTemplateSummary !== null && { incidentTemplateSummary: input.incidentTemplateSummary }),
|
|
715
|
+
...(input.incidentTemplateTags !== undefined &&
|
|
716
|
+
input.incidentTemplateTags !== null && {
|
|
717
|
+
incidentTemplateTags: serializeAws_restJson1TagMapUpdate(input.incidentTemplateTags, context),
|
|
718
|
+
}),
|
|
715
719
|
...(input.incidentTemplateTitle !== undefined &&
|
|
716
720
|
input.incidentTemplateTitle !== null && { incidentTemplateTitle: input.incidentTemplateTitle }),
|
|
717
721
|
});
|
|
@@ -776,8 +780,7 @@ const deserializeAws_restJson1CreateReplicationSetCommandError = async (output,
|
|
|
776
780
|
body: await parseBody(output.body, context),
|
|
777
781
|
};
|
|
778
782
|
let response;
|
|
779
|
-
|
|
780
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
783
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
781
784
|
switch (errorCode) {
|
|
782
785
|
case "AccessDeniedException":
|
|
783
786
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
@@ -799,10 +802,12 @@ const deserializeAws_restJson1CreateReplicationSetCommandError = async (output,
|
|
|
799
802
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
800
803
|
default:
|
|
801
804
|
const parsedBody = parsedOutput.body;
|
|
805
|
+
const $metadata = deserializeMetadata(output);
|
|
806
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
802
807
|
response = new SSMIncidentsServiceException_1.SSMIncidentsServiceException({
|
|
803
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
808
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
804
809
|
$fault: "client",
|
|
805
|
-
$metadata
|
|
810
|
+
$metadata,
|
|
806
811
|
});
|
|
807
812
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
808
813
|
}
|
|
@@ -828,8 +833,7 @@ const deserializeAws_restJson1CreateResponsePlanCommandError = async (output, co
|
|
|
828
833
|
body: await parseBody(output.body, context),
|
|
829
834
|
};
|
|
830
835
|
let response;
|
|
831
|
-
|
|
832
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
836
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
833
837
|
switch (errorCode) {
|
|
834
838
|
case "AccessDeniedException":
|
|
835
839
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
@@ -851,10 +855,12 @@ const deserializeAws_restJson1CreateResponsePlanCommandError = async (output, co
|
|
|
851
855
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
852
856
|
default:
|
|
853
857
|
const parsedBody = parsedOutput.body;
|
|
858
|
+
const $metadata = deserializeMetadata(output);
|
|
859
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
854
860
|
response = new SSMIncidentsServiceException_1.SSMIncidentsServiceException({
|
|
855
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
861
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
856
862
|
$fault: "client",
|
|
857
|
-
$metadata
|
|
863
|
+
$metadata,
|
|
858
864
|
});
|
|
859
865
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
860
866
|
}
|
|
@@ -884,8 +890,7 @@ const deserializeAws_restJson1CreateTimelineEventCommandError = async (output, c
|
|
|
884
890
|
body: await parseBody(output.body, context),
|
|
885
891
|
};
|
|
886
892
|
let response;
|
|
887
|
-
|
|
888
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
893
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
889
894
|
switch (errorCode) {
|
|
890
895
|
case "AccessDeniedException":
|
|
891
896
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
@@ -907,10 +912,12 @@ const deserializeAws_restJson1CreateTimelineEventCommandError = async (output, c
|
|
|
907
912
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
908
913
|
default:
|
|
909
914
|
const parsedBody = parsedOutput.body;
|
|
915
|
+
const $metadata = deserializeMetadata(output);
|
|
916
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
910
917
|
response = new SSMIncidentsServiceException_1.SSMIncidentsServiceException({
|
|
911
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
918
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
912
919
|
$fault: "client",
|
|
913
|
-
$metadata
|
|
920
|
+
$metadata,
|
|
914
921
|
});
|
|
915
922
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
916
923
|
}
|
|
@@ -932,8 +939,7 @@ const deserializeAws_restJson1DeleteIncidentRecordCommandError = async (output,
|
|
|
932
939
|
body: await parseBody(output.body, context),
|
|
933
940
|
};
|
|
934
941
|
let response;
|
|
935
|
-
|
|
936
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
942
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
937
943
|
switch (errorCode) {
|
|
938
944
|
case "AccessDeniedException":
|
|
939
945
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
@@ -949,10 +955,12 @@ const deserializeAws_restJson1DeleteIncidentRecordCommandError = async (output,
|
|
|
949
955
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
950
956
|
default:
|
|
951
957
|
const parsedBody = parsedOutput.body;
|
|
958
|
+
const $metadata = deserializeMetadata(output);
|
|
959
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
952
960
|
response = new SSMIncidentsServiceException_1.SSMIncidentsServiceException({
|
|
953
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
961
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
954
962
|
$fault: "client",
|
|
955
|
-
$metadata
|
|
963
|
+
$metadata,
|
|
956
964
|
});
|
|
957
965
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
958
966
|
}
|
|
@@ -974,8 +982,7 @@ const deserializeAws_restJson1DeleteReplicationSetCommandError = async (output,
|
|
|
974
982
|
body: await parseBody(output.body, context),
|
|
975
983
|
};
|
|
976
984
|
let response;
|
|
977
|
-
|
|
978
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
985
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
979
986
|
switch (errorCode) {
|
|
980
987
|
case "AccessDeniedException":
|
|
981
988
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
@@ -994,10 +1001,12 @@ const deserializeAws_restJson1DeleteReplicationSetCommandError = async (output,
|
|
|
994
1001
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
995
1002
|
default:
|
|
996
1003
|
const parsedBody = parsedOutput.body;
|
|
1004
|
+
const $metadata = deserializeMetadata(output);
|
|
1005
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
997
1006
|
response = new SSMIncidentsServiceException_1.SSMIncidentsServiceException({
|
|
998
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1007
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
999
1008
|
$fault: "client",
|
|
1000
|
-
$metadata
|
|
1009
|
+
$metadata,
|
|
1001
1010
|
});
|
|
1002
1011
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1003
1012
|
}
|
|
@@ -1019,8 +1028,7 @@ const deserializeAws_restJson1DeleteResourcePolicyCommandError = async (output,
|
|
|
1019
1028
|
body: await parseBody(output.body, context),
|
|
1020
1029
|
};
|
|
1021
1030
|
let response;
|
|
1022
|
-
|
|
1023
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1031
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1024
1032
|
switch (errorCode) {
|
|
1025
1033
|
case "AccessDeniedException":
|
|
1026
1034
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
@@ -1039,10 +1047,12 @@ const deserializeAws_restJson1DeleteResourcePolicyCommandError = async (output,
|
|
|
1039
1047
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1040
1048
|
default:
|
|
1041
1049
|
const parsedBody = parsedOutput.body;
|
|
1050
|
+
const $metadata = deserializeMetadata(output);
|
|
1051
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1042
1052
|
response = new SSMIncidentsServiceException_1.SSMIncidentsServiceException({
|
|
1043
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1053
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1044
1054
|
$fault: "client",
|
|
1045
|
-
$metadata
|
|
1055
|
+
$metadata,
|
|
1046
1056
|
});
|
|
1047
1057
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1048
1058
|
}
|
|
@@ -1064,8 +1074,7 @@ const deserializeAws_restJson1DeleteResponsePlanCommandError = async (output, co
|
|
|
1064
1074
|
body: await parseBody(output.body, context),
|
|
1065
1075
|
};
|
|
1066
1076
|
let response;
|
|
1067
|
-
|
|
1068
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1077
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1069
1078
|
switch (errorCode) {
|
|
1070
1079
|
case "AccessDeniedException":
|
|
1071
1080
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
@@ -1081,10 +1090,12 @@ const deserializeAws_restJson1DeleteResponsePlanCommandError = async (output, co
|
|
|
1081
1090
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1082
1091
|
default:
|
|
1083
1092
|
const parsedBody = parsedOutput.body;
|
|
1093
|
+
const $metadata = deserializeMetadata(output);
|
|
1094
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1084
1095
|
response = new SSMIncidentsServiceException_1.SSMIncidentsServiceException({
|
|
1085
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1096
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1086
1097
|
$fault: "client",
|
|
1087
|
-
$metadata
|
|
1098
|
+
$metadata,
|
|
1088
1099
|
});
|
|
1089
1100
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1090
1101
|
}
|
|
@@ -1106,8 +1117,7 @@ const deserializeAws_restJson1DeleteTimelineEventCommandError = async (output, c
|
|
|
1106
1117
|
body: await parseBody(output.body, context),
|
|
1107
1118
|
};
|
|
1108
1119
|
let response;
|
|
1109
|
-
|
|
1110
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1120
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1111
1121
|
switch (errorCode) {
|
|
1112
1122
|
case "AccessDeniedException":
|
|
1113
1123
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
@@ -1123,10 +1133,12 @@ const deserializeAws_restJson1DeleteTimelineEventCommandError = async (output, c
|
|
|
1123
1133
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1124
1134
|
default:
|
|
1125
1135
|
const parsedBody = parsedOutput.body;
|
|
1136
|
+
const $metadata = deserializeMetadata(output);
|
|
1137
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1126
1138
|
response = new SSMIncidentsServiceException_1.SSMIncidentsServiceException({
|
|
1127
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1139
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1128
1140
|
$fault: "client",
|
|
1129
|
-
$metadata
|
|
1141
|
+
$metadata,
|
|
1130
1142
|
});
|
|
1131
1143
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1132
1144
|
}
|
|
@@ -1152,8 +1164,7 @@ const deserializeAws_restJson1GetIncidentRecordCommandError = async (output, con
|
|
|
1152
1164
|
body: await parseBody(output.body, context),
|
|
1153
1165
|
};
|
|
1154
1166
|
let response;
|
|
1155
|
-
|
|
1156
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1167
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1157
1168
|
switch (errorCode) {
|
|
1158
1169
|
case "AccessDeniedException":
|
|
1159
1170
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
@@ -1172,10 +1183,12 @@ const deserializeAws_restJson1GetIncidentRecordCommandError = async (output, con
|
|
|
1172
1183
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1173
1184
|
default:
|
|
1174
1185
|
const parsedBody = parsedOutput.body;
|
|
1186
|
+
const $metadata = deserializeMetadata(output);
|
|
1187
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1175
1188
|
response = new SSMIncidentsServiceException_1.SSMIncidentsServiceException({
|
|
1176
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1189
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1177
1190
|
$fault: "client",
|
|
1178
|
-
$metadata
|
|
1191
|
+
$metadata,
|
|
1179
1192
|
});
|
|
1180
1193
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1181
1194
|
}
|
|
@@ -1201,8 +1214,7 @@ const deserializeAws_restJson1GetReplicationSetCommandError = async (output, con
|
|
|
1201
1214
|
body: await parseBody(output.body, context),
|
|
1202
1215
|
};
|
|
1203
1216
|
let response;
|
|
1204
|
-
|
|
1205
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1217
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1206
1218
|
switch (errorCode) {
|
|
1207
1219
|
case "AccessDeniedException":
|
|
1208
1220
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
@@ -1221,10 +1233,12 @@ const deserializeAws_restJson1GetReplicationSetCommandError = async (output, con
|
|
|
1221
1233
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1222
1234
|
default:
|
|
1223
1235
|
const parsedBody = parsedOutput.body;
|
|
1236
|
+
const $metadata = deserializeMetadata(output);
|
|
1237
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1224
1238
|
response = new SSMIncidentsServiceException_1.SSMIncidentsServiceException({
|
|
1225
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1239
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1226
1240
|
$fault: "client",
|
|
1227
|
-
$metadata
|
|
1241
|
+
$metadata,
|
|
1228
1242
|
});
|
|
1229
1243
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1230
1244
|
}
|
|
@@ -1254,8 +1268,7 @@ const deserializeAws_restJson1GetResourcePoliciesCommandError = async (output, c
|
|
|
1254
1268
|
body: await parseBody(output.body, context),
|
|
1255
1269
|
};
|
|
1256
1270
|
let response;
|
|
1257
|
-
|
|
1258
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1271
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1259
1272
|
switch (errorCode) {
|
|
1260
1273
|
case "AccessDeniedException":
|
|
1261
1274
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
@@ -1274,10 +1287,12 @@ const deserializeAws_restJson1GetResourcePoliciesCommandError = async (output, c
|
|
|
1274
1287
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1275
1288
|
default:
|
|
1276
1289
|
const parsedBody = parsedOutput.body;
|
|
1290
|
+
const $metadata = deserializeMetadata(output);
|
|
1291
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1277
1292
|
response = new SSMIncidentsServiceException_1.SSMIncidentsServiceException({
|
|
1278
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1293
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1279
1294
|
$fault: "client",
|
|
1280
|
-
$metadata
|
|
1295
|
+
$metadata,
|
|
1281
1296
|
});
|
|
1282
1297
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1283
1298
|
}
|
|
@@ -1327,8 +1342,7 @@ const deserializeAws_restJson1GetResponsePlanCommandError = async (output, conte
|
|
|
1327
1342
|
body: await parseBody(output.body, context),
|
|
1328
1343
|
};
|
|
1329
1344
|
let response;
|
|
1330
|
-
|
|
1331
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1345
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1332
1346
|
switch (errorCode) {
|
|
1333
1347
|
case "AccessDeniedException":
|
|
1334
1348
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
@@ -1347,10 +1361,12 @@ const deserializeAws_restJson1GetResponsePlanCommandError = async (output, conte
|
|
|
1347
1361
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1348
1362
|
default:
|
|
1349
1363
|
const parsedBody = parsedOutput.body;
|
|
1364
|
+
const $metadata = deserializeMetadata(output);
|
|
1365
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1350
1366
|
response = new SSMIncidentsServiceException_1.SSMIncidentsServiceException({
|
|
1351
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1367
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1352
1368
|
$fault: "client",
|
|
1353
|
-
$metadata
|
|
1369
|
+
$metadata,
|
|
1354
1370
|
});
|
|
1355
1371
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1356
1372
|
}
|
|
@@ -1376,8 +1392,7 @@ const deserializeAws_restJson1GetTimelineEventCommandError = async (output, cont
|
|
|
1376
1392
|
body: await parseBody(output.body, context),
|
|
1377
1393
|
};
|
|
1378
1394
|
let response;
|
|
1379
|
-
|
|
1380
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1395
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1381
1396
|
switch (errorCode) {
|
|
1382
1397
|
case "AccessDeniedException":
|
|
1383
1398
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
@@ -1396,10 +1411,12 @@ const deserializeAws_restJson1GetTimelineEventCommandError = async (output, cont
|
|
|
1396
1411
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1397
1412
|
default:
|
|
1398
1413
|
const parsedBody = parsedOutput.body;
|
|
1414
|
+
const $metadata = deserializeMetadata(output);
|
|
1415
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1399
1416
|
response = new SSMIncidentsServiceException_1.SSMIncidentsServiceException({
|
|
1400
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1417
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1401
1418
|
$fault: "client",
|
|
1402
|
-
$metadata
|
|
1419
|
+
$metadata,
|
|
1403
1420
|
});
|
|
1404
1421
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1405
1422
|
}
|
|
@@ -1429,8 +1446,7 @@ const deserializeAws_restJson1ListIncidentRecordsCommandError = async (output, c
|
|
|
1429
1446
|
body: await parseBody(output.body, context),
|
|
1430
1447
|
};
|
|
1431
1448
|
let response;
|
|
1432
|
-
|
|
1433
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1449
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1434
1450
|
switch (errorCode) {
|
|
1435
1451
|
case "AccessDeniedException":
|
|
1436
1452
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
@@ -1446,10 +1462,12 @@ const deserializeAws_restJson1ListIncidentRecordsCommandError = async (output, c
|
|
|
1446
1462
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1447
1463
|
default:
|
|
1448
1464
|
const parsedBody = parsedOutput.body;
|
|
1465
|
+
const $metadata = deserializeMetadata(output);
|
|
1466
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1449
1467
|
response = new SSMIncidentsServiceException_1.SSMIncidentsServiceException({
|
|
1450
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1468
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1451
1469
|
$fault: "client",
|
|
1452
|
-
$metadata
|
|
1470
|
+
$metadata,
|
|
1453
1471
|
});
|
|
1454
1472
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1455
1473
|
}
|
|
@@ -1479,8 +1497,7 @@ const deserializeAws_restJson1ListRelatedItemsCommandError = async (output, cont
|
|
|
1479
1497
|
body: await parseBody(output.body, context),
|
|
1480
1498
|
};
|
|
1481
1499
|
let response;
|
|
1482
|
-
|
|
1483
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1500
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1484
1501
|
switch (errorCode) {
|
|
1485
1502
|
case "AccessDeniedException":
|
|
1486
1503
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
@@ -1496,10 +1513,12 @@ const deserializeAws_restJson1ListRelatedItemsCommandError = async (output, cont
|
|
|
1496
1513
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1497
1514
|
default:
|
|
1498
1515
|
const parsedBody = parsedOutput.body;
|
|
1516
|
+
const $metadata = deserializeMetadata(output);
|
|
1517
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1499
1518
|
response = new SSMIncidentsServiceException_1.SSMIncidentsServiceException({
|
|
1500
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1519
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1501
1520
|
$fault: "client",
|
|
1502
|
-
$metadata
|
|
1521
|
+
$metadata,
|
|
1503
1522
|
});
|
|
1504
1523
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1505
1524
|
}
|
|
@@ -1529,8 +1548,7 @@ const deserializeAws_restJson1ListReplicationSetsCommandError = async (output, c
|
|
|
1529
1548
|
body: await parseBody(output.body, context),
|
|
1530
1549
|
};
|
|
1531
1550
|
let response;
|
|
1532
|
-
|
|
1533
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1551
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1534
1552
|
switch (errorCode) {
|
|
1535
1553
|
case "AccessDeniedException":
|
|
1536
1554
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
@@ -1546,10 +1564,12 @@ const deserializeAws_restJson1ListReplicationSetsCommandError = async (output, c
|
|
|
1546
1564
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1547
1565
|
default:
|
|
1548
1566
|
const parsedBody = parsedOutput.body;
|
|
1567
|
+
const $metadata = deserializeMetadata(output);
|
|
1568
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1549
1569
|
response = new SSMIncidentsServiceException_1.SSMIncidentsServiceException({
|
|
1550
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1570
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1551
1571
|
$fault: "client",
|
|
1552
|
-
$metadata
|
|
1572
|
+
$metadata,
|
|
1553
1573
|
});
|
|
1554
1574
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1555
1575
|
}
|
|
@@ -1579,8 +1599,7 @@ const deserializeAws_restJson1ListResponsePlansCommandError = async (output, con
|
|
|
1579
1599
|
body: await parseBody(output.body, context),
|
|
1580
1600
|
};
|
|
1581
1601
|
let response;
|
|
1582
|
-
|
|
1583
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1602
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1584
1603
|
switch (errorCode) {
|
|
1585
1604
|
case "AccessDeniedException":
|
|
1586
1605
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
@@ -1596,10 +1615,12 @@ const deserializeAws_restJson1ListResponsePlansCommandError = async (output, con
|
|
|
1596
1615
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1597
1616
|
default:
|
|
1598
1617
|
const parsedBody = parsedOutput.body;
|
|
1618
|
+
const $metadata = deserializeMetadata(output);
|
|
1619
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1599
1620
|
response = new SSMIncidentsServiceException_1.SSMIncidentsServiceException({
|
|
1600
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1621
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1601
1622
|
$fault: "client",
|
|
1602
|
-
$metadata
|
|
1623
|
+
$metadata,
|
|
1603
1624
|
});
|
|
1604
1625
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1605
1626
|
}
|
|
@@ -1625,8 +1646,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1625
1646
|
body: await parseBody(output.body, context),
|
|
1626
1647
|
};
|
|
1627
1648
|
let response;
|
|
1628
|
-
|
|
1629
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1649
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1630
1650
|
switch (errorCode) {
|
|
1631
1651
|
case "AccessDeniedException":
|
|
1632
1652
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
@@ -1645,10 +1665,12 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1645
1665
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1646
1666
|
default:
|
|
1647
1667
|
const parsedBody = parsedOutput.body;
|
|
1668
|
+
const $metadata = deserializeMetadata(output);
|
|
1669
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1648
1670
|
response = new SSMIncidentsServiceException_1.SSMIncidentsServiceException({
|
|
1649
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1671
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1650
1672
|
$fault: "client",
|
|
1651
|
-
$metadata
|
|
1673
|
+
$metadata,
|
|
1652
1674
|
});
|
|
1653
1675
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1654
1676
|
}
|
|
@@ -1678,8 +1700,7 @@ const deserializeAws_restJson1ListTimelineEventsCommandError = async (output, co
|
|
|
1678
1700
|
body: await parseBody(output.body, context),
|
|
1679
1701
|
};
|
|
1680
1702
|
let response;
|
|
1681
|
-
|
|
1682
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1703
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1683
1704
|
switch (errorCode) {
|
|
1684
1705
|
case "AccessDeniedException":
|
|
1685
1706
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
@@ -1695,10 +1716,12 @@ const deserializeAws_restJson1ListTimelineEventsCommandError = async (output, co
|
|
|
1695
1716
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1696
1717
|
default:
|
|
1697
1718
|
const parsedBody = parsedOutput.body;
|
|
1719
|
+
const $metadata = deserializeMetadata(output);
|
|
1720
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1698
1721
|
response = new SSMIncidentsServiceException_1.SSMIncidentsServiceException({
|
|
1699
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1722
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1700
1723
|
$fault: "client",
|
|
1701
|
-
$metadata
|
|
1724
|
+
$metadata,
|
|
1702
1725
|
});
|
|
1703
1726
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1704
1727
|
}
|
|
@@ -1724,8 +1747,7 @@ const deserializeAws_restJson1PutResourcePolicyCommandError = async (output, con
|
|
|
1724
1747
|
body: await parseBody(output.body, context),
|
|
1725
1748
|
};
|
|
1726
1749
|
let response;
|
|
1727
|
-
|
|
1728
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1750
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1729
1751
|
switch (errorCode) {
|
|
1730
1752
|
case "AccessDeniedException":
|
|
1731
1753
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
@@ -1744,10 +1766,12 @@ const deserializeAws_restJson1PutResourcePolicyCommandError = async (output, con
|
|
|
1744
1766
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1745
1767
|
default:
|
|
1746
1768
|
const parsedBody = parsedOutput.body;
|
|
1769
|
+
const $metadata = deserializeMetadata(output);
|
|
1770
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1747
1771
|
response = new SSMIncidentsServiceException_1.SSMIncidentsServiceException({
|
|
1748
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1772
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1749
1773
|
$fault: "client",
|
|
1750
|
-
$metadata
|
|
1774
|
+
$metadata,
|
|
1751
1775
|
});
|
|
1752
1776
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1753
1777
|
}
|
|
@@ -1773,8 +1797,7 @@ const deserializeAws_restJson1StartIncidentCommandError = async (output, context
|
|
|
1773
1797
|
body: await parseBody(output.body, context),
|
|
1774
1798
|
};
|
|
1775
1799
|
let response;
|
|
1776
|
-
|
|
1777
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1800
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1778
1801
|
switch (errorCode) {
|
|
1779
1802
|
case "AccessDeniedException":
|
|
1780
1803
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
@@ -1796,10 +1819,12 @@ const deserializeAws_restJson1StartIncidentCommandError = async (output, context
|
|
|
1796
1819
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1797
1820
|
default:
|
|
1798
1821
|
const parsedBody = parsedOutput.body;
|
|
1822
|
+
const $metadata = deserializeMetadata(output);
|
|
1823
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1799
1824
|
response = new SSMIncidentsServiceException_1.SSMIncidentsServiceException({
|
|
1800
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1825
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1801
1826
|
$fault: "client",
|
|
1802
|
-
$metadata
|
|
1827
|
+
$metadata,
|
|
1803
1828
|
});
|
|
1804
1829
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1805
1830
|
}
|
|
@@ -1821,8 +1846,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1821
1846
|
body: await parseBody(output.body, context),
|
|
1822
1847
|
};
|
|
1823
1848
|
let response;
|
|
1824
|
-
|
|
1825
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1849
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1826
1850
|
switch (errorCode) {
|
|
1827
1851
|
case "AccessDeniedException":
|
|
1828
1852
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
@@ -1847,10 +1871,12 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1847
1871
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1848
1872
|
default:
|
|
1849
1873
|
const parsedBody = parsedOutput.body;
|
|
1874
|
+
const $metadata = deserializeMetadata(output);
|
|
1875
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1850
1876
|
response = new SSMIncidentsServiceException_1.SSMIncidentsServiceException({
|
|
1851
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1877
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1852
1878
|
$fault: "client",
|
|
1853
|
-
$metadata
|
|
1879
|
+
$metadata,
|
|
1854
1880
|
});
|
|
1855
1881
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1856
1882
|
}
|
|
@@ -1872,8 +1898,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1872
1898
|
body: await parseBody(output.body, context),
|
|
1873
1899
|
};
|
|
1874
1900
|
let response;
|
|
1875
|
-
|
|
1876
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1901
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1877
1902
|
switch (errorCode) {
|
|
1878
1903
|
case "AccessDeniedException":
|
|
1879
1904
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
@@ -1895,10 +1920,12 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1895
1920
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1896
1921
|
default:
|
|
1897
1922
|
const parsedBody = parsedOutput.body;
|
|
1923
|
+
const $metadata = deserializeMetadata(output);
|
|
1924
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1898
1925
|
response = new SSMIncidentsServiceException_1.SSMIncidentsServiceException({
|
|
1899
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1926
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1900
1927
|
$fault: "client",
|
|
1901
|
-
$metadata
|
|
1928
|
+
$metadata,
|
|
1902
1929
|
});
|
|
1903
1930
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1904
1931
|
}
|
|
@@ -1920,8 +1947,7 @@ const deserializeAws_restJson1UpdateDeletionProtectionCommandError = async (outp
|
|
|
1920
1947
|
body: await parseBody(output.body, context),
|
|
1921
1948
|
};
|
|
1922
1949
|
let response;
|
|
1923
|
-
|
|
1924
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1950
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1925
1951
|
switch (errorCode) {
|
|
1926
1952
|
case "AccessDeniedException":
|
|
1927
1953
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
@@ -1940,10 +1966,12 @@ const deserializeAws_restJson1UpdateDeletionProtectionCommandError = async (outp
|
|
|
1940
1966
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1941
1967
|
default:
|
|
1942
1968
|
const parsedBody = parsedOutput.body;
|
|
1969
|
+
const $metadata = deserializeMetadata(output);
|
|
1970
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1943
1971
|
response = new SSMIncidentsServiceException_1.SSMIncidentsServiceException({
|
|
1944
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1972
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1945
1973
|
$fault: "client",
|
|
1946
|
-
$metadata
|
|
1974
|
+
$metadata,
|
|
1947
1975
|
});
|
|
1948
1976
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1949
1977
|
}
|
|
@@ -1965,8 +1993,7 @@ const deserializeAws_restJson1UpdateIncidentRecordCommandError = async (output,
|
|
|
1965
1993
|
body: await parseBody(output.body, context),
|
|
1966
1994
|
};
|
|
1967
1995
|
let response;
|
|
1968
|
-
|
|
1969
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1996
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1970
1997
|
switch (errorCode) {
|
|
1971
1998
|
case "AccessDeniedException":
|
|
1972
1999
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
@@ -1988,10 +2015,12 @@ const deserializeAws_restJson1UpdateIncidentRecordCommandError = async (output,
|
|
|
1988
2015
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1989
2016
|
default:
|
|
1990
2017
|
const parsedBody = parsedOutput.body;
|
|
2018
|
+
const $metadata = deserializeMetadata(output);
|
|
2019
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1991
2020
|
response = new SSMIncidentsServiceException_1.SSMIncidentsServiceException({
|
|
1992
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2021
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1993
2022
|
$fault: "client",
|
|
1994
|
-
$metadata
|
|
2023
|
+
$metadata,
|
|
1995
2024
|
});
|
|
1996
2025
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1997
2026
|
}
|
|
@@ -2013,8 +2042,7 @@ const deserializeAws_restJson1UpdateRelatedItemsCommandError = async (output, co
|
|
|
2013
2042
|
body: await parseBody(output.body, context),
|
|
2014
2043
|
};
|
|
2015
2044
|
let response;
|
|
2016
|
-
|
|
2017
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2045
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2018
2046
|
switch (errorCode) {
|
|
2019
2047
|
case "AccessDeniedException":
|
|
2020
2048
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
@@ -2036,10 +2064,12 @@ const deserializeAws_restJson1UpdateRelatedItemsCommandError = async (output, co
|
|
|
2036
2064
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2037
2065
|
default:
|
|
2038
2066
|
const parsedBody = parsedOutput.body;
|
|
2067
|
+
const $metadata = deserializeMetadata(output);
|
|
2068
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2039
2069
|
response = new SSMIncidentsServiceException_1.SSMIncidentsServiceException({
|
|
2040
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2070
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2041
2071
|
$fault: "client",
|
|
2042
|
-
$metadata
|
|
2072
|
+
$metadata,
|
|
2043
2073
|
});
|
|
2044
2074
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2045
2075
|
}
|
|
@@ -2061,8 +2091,7 @@ const deserializeAws_restJson1UpdateReplicationSetCommandError = async (output,
|
|
|
2061
2091
|
body: await parseBody(output.body, context),
|
|
2062
2092
|
};
|
|
2063
2093
|
let response;
|
|
2064
|
-
|
|
2065
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2094
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2066
2095
|
switch (errorCode) {
|
|
2067
2096
|
case "AccessDeniedException":
|
|
2068
2097
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
@@ -2084,10 +2113,12 @@ const deserializeAws_restJson1UpdateReplicationSetCommandError = async (output,
|
|
|
2084
2113
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2085
2114
|
default:
|
|
2086
2115
|
const parsedBody = parsedOutput.body;
|
|
2116
|
+
const $metadata = deserializeMetadata(output);
|
|
2117
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2087
2118
|
response = new SSMIncidentsServiceException_1.SSMIncidentsServiceException({
|
|
2088
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2119
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2089
2120
|
$fault: "client",
|
|
2090
|
-
$metadata
|
|
2121
|
+
$metadata,
|
|
2091
2122
|
});
|
|
2092
2123
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2093
2124
|
}
|
|
@@ -2109,8 +2140,7 @@ const deserializeAws_restJson1UpdateResponsePlanCommandError = async (output, co
|
|
|
2109
2140
|
body: await parseBody(output.body, context),
|
|
2110
2141
|
};
|
|
2111
2142
|
let response;
|
|
2112
|
-
|
|
2113
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2143
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2114
2144
|
switch (errorCode) {
|
|
2115
2145
|
case "AccessDeniedException":
|
|
2116
2146
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
@@ -2132,10 +2162,12 @@ const deserializeAws_restJson1UpdateResponsePlanCommandError = async (output, co
|
|
|
2132
2162
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2133
2163
|
default:
|
|
2134
2164
|
const parsedBody = parsedOutput.body;
|
|
2165
|
+
const $metadata = deserializeMetadata(output);
|
|
2166
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2135
2167
|
response = new SSMIncidentsServiceException_1.SSMIncidentsServiceException({
|
|
2136
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2168
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2137
2169
|
$fault: "client",
|
|
2138
|
-
$metadata
|
|
2170
|
+
$metadata,
|
|
2139
2171
|
});
|
|
2140
2172
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2141
2173
|
}
|
|
@@ -2157,8 +2189,7 @@ const deserializeAws_restJson1UpdateTimelineEventCommandError = async (output, c
|
|
|
2157
2189
|
body: await parseBody(output.body, context),
|
|
2158
2190
|
};
|
|
2159
2191
|
let response;
|
|
2160
|
-
|
|
2161
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2192
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2162
2193
|
switch (errorCode) {
|
|
2163
2194
|
case "AccessDeniedException":
|
|
2164
2195
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
@@ -2180,10 +2211,12 @@ const deserializeAws_restJson1UpdateTimelineEventCommandError = async (output, c
|
|
|
2180
2211
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2181
2212
|
default:
|
|
2182
2213
|
const parsedBody = parsedOutput.body;
|
|
2214
|
+
const $metadata = deserializeMetadata(output);
|
|
2215
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2183
2216
|
response = new SSMIncidentsServiceException_1.SSMIncidentsServiceException({
|
|
2184
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2217
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2185
2218
|
$fault: "client",
|
|
2186
|
-
$metadata
|
|
2219
|
+
$metadata,
|
|
2187
2220
|
});
|
|
2188
2221
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2189
2222
|
}
|
|
@@ -2415,6 +2448,8 @@ const serializeAws_restJson1IncidentTemplate = (input, context) => {
|
|
|
2415
2448
|
return {
|
|
2416
2449
|
...(input.dedupeString !== undefined && input.dedupeString !== null && { dedupeString: input.dedupeString }),
|
|
2417
2450
|
...(input.impact !== undefined && input.impact !== null && { impact: input.impact }),
|
|
2451
|
+
...(input.incidentTags !== undefined &&
|
|
2452
|
+
input.incidentTags !== null && { incidentTags: serializeAws_restJson1TagMap(input.incidentTags, context) }),
|
|
2418
2453
|
...(input.notificationTargets !== undefined &&
|
|
2419
2454
|
input.notificationTargets !== null && {
|
|
2420
2455
|
notificationTargets: serializeAws_restJson1NotificationTargetSet(input.notificationTargets, context),
|
|
@@ -2561,6 +2596,17 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
2561
2596
|
};
|
|
2562
2597
|
}, {});
|
|
2563
2598
|
};
|
|
2599
|
+
const serializeAws_restJson1TagMapUpdate = (input, context) => {
|
|
2600
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2601
|
+
if (value === null) {
|
|
2602
|
+
return acc;
|
|
2603
|
+
}
|
|
2604
|
+
return {
|
|
2605
|
+
...acc,
|
|
2606
|
+
[key]: value,
|
|
2607
|
+
};
|
|
2608
|
+
}, {});
|
|
2609
|
+
};
|
|
2564
2610
|
const serializeAws_restJson1TriggerDetails = (input, context) => {
|
|
2565
2611
|
return {
|
|
2566
2612
|
...(input.rawData !== undefined && input.rawData !== null && { rawData: input.rawData }),
|
|
@@ -2774,6 +2820,9 @@ const deserializeAws_restJson1IncidentTemplate = (output, context) => {
|
|
|
2774
2820
|
return {
|
|
2775
2821
|
dedupeString: (0, smithy_client_1.expectString)(output.dedupeString),
|
|
2776
2822
|
impact: (0, smithy_client_1.expectInt32)(output.impact),
|
|
2823
|
+
incidentTags: output.incidentTags !== undefined && output.incidentTags !== null
|
|
2824
|
+
? deserializeAws_restJson1TagMap(output.incidentTags, context)
|
|
2825
|
+
: undefined,
|
|
2777
2826
|
notificationTargets: output.notificationTargets !== undefined && output.notificationTargets !== null
|
|
2778
2827
|
? deserializeAws_restJson1NotificationTargetSet(output.notificationTargets, context)
|
|
2779
2828
|
: undefined,
|
|
@@ -3033,5 +3082,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
3033
3082
|
if (data["__type"] !== undefined) {
|
|
3034
3083
|
return sanitizeErrorCode(data["__type"]);
|
|
3035
3084
|
}
|
|
3036
|
-
return "";
|
|
3037
3085
|
};
|