@aws-sdk/client-resiliencehub 3.52.0 → 3.53.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/CHANGELOG.md +11 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/ResiliencehubServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +100 -3
- package/dist-cjs/protocols/Aws_restJson1.js +452 -1736
- package/dist-es/index.js +1 -0
- package/dist-es/models/ResiliencehubServiceException.js +12 -0
- package/dist-es/models/models_0.js +91 -1
- package/dist-es/protocols/Aws_restJson1.js +963 -1900
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/ResiliencehubServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +51 -29
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/ResiliencehubServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +37 -29
- package/package.json +25 -25
|
@@ -5,6 +5,8 @@ exports.deserializeAws_restJson1UpdateResiliencyPolicyCommand = exports.deserial
|
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const uuid_1 = require("uuid");
|
|
8
|
+
const models_0_1 = require("../models/models_0");
|
|
9
|
+
const ResiliencehubServiceException_1 = require("../models/ResiliencehubServiceException");
|
|
8
10
|
const serializeAws_restJson1AddDraftAppVersionResourceMappingsCommand = async (input, context) => {
|
|
9
11
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
10
12
|
const headers = {
|
|
@@ -1011,67 +1013,31 @@ const deserializeAws_restJson1AddDraftAppVersionResourceMappingsCommandError = a
|
|
|
1011
1013
|
switch (errorCode) {
|
|
1012
1014
|
case "AccessDeniedException":
|
|
1013
1015
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
1014
|
-
|
|
1015
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1016
|
-
name: errorCode,
|
|
1017
|
-
$metadata: deserializeMetadata(output),
|
|
1018
|
-
};
|
|
1019
|
-
break;
|
|
1016
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1020
1017
|
case "ConflictException":
|
|
1021
1018
|
case "com.amazonaws.resiliencehub#ConflictException":
|
|
1022
|
-
|
|
1023
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
1024
|
-
name: errorCode,
|
|
1025
|
-
$metadata: deserializeMetadata(output),
|
|
1026
|
-
};
|
|
1027
|
-
break;
|
|
1019
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1028
1020
|
case "InternalServerException":
|
|
1029
1021
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
1030
|
-
|
|
1031
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1032
|
-
name: errorCode,
|
|
1033
|
-
$metadata: deserializeMetadata(output),
|
|
1034
|
-
};
|
|
1035
|
-
break;
|
|
1022
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1036
1023
|
case "ResourceNotFoundException":
|
|
1037
1024
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
1038
|
-
|
|
1039
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1040
|
-
name: errorCode,
|
|
1041
|
-
$metadata: deserializeMetadata(output),
|
|
1042
|
-
};
|
|
1043
|
-
break;
|
|
1025
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1044
1026
|
case "ThrottlingException":
|
|
1045
1027
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
1046
|
-
|
|
1047
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1048
|
-
name: errorCode,
|
|
1049
|
-
$metadata: deserializeMetadata(output),
|
|
1050
|
-
};
|
|
1051
|
-
break;
|
|
1028
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1052
1029
|
case "ValidationException":
|
|
1053
1030
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
1054
|
-
|
|
1055
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1056
|
-
name: errorCode,
|
|
1057
|
-
$metadata: deserializeMetadata(output),
|
|
1058
|
-
};
|
|
1059
|
-
break;
|
|
1031
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1060
1032
|
default:
|
|
1061
1033
|
const parsedBody = parsedOutput.body;
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
...parsedBody,
|
|
1065
|
-
name: `${errorCode}`,
|
|
1066
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1034
|
+
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
1035
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1067
1036
|
$fault: "client",
|
|
1068
1037
|
$metadata: deserializeMetadata(output),
|
|
1069
|
-
};
|
|
1038
|
+
});
|
|
1039
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1070
1040
|
}
|
|
1071
|
-
const message = response.message || response.Message || errorCode;
|
|
1072
|
-
response.message = message;
|
|
1073
|
-
delete response.Message;
|
|
1074
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1075
1041
|
};
|
|
1076
1042
|
const deserializeAws_restJson1CreateAppCommand = async (output, context) => {
|
|
1077
1043
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1099,75 +1065,34 @@ const deserializeAws_restJson1CreateAppCommandError = async (output, context) =>
|
|
|
1099
1065
|
switch (errorCode) {
|
|
1100
1066
|
case "AccessDeniedException":
|
|
1101
1067
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
1102
|
-
|
|
1103
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1104
|
-
name: errorCode,
|
|
1105
|
-
$metadata: deserializeMetadata(output),
|
|
1106
|
-
};
|
|
1107
|
-
break;
|
|
1068
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1108
1069
|
case "ConflictException":
|
|
1109
1070
|
case "com.amazonaws.resiliencehub#ConflictException":
|
|
1110
|
-
|
|
1111
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
1112
|
-
name: errorCode,
|
|
1113
|
-
$metadata: deserializeMetadata(output),
|
|
1114
|
-
};
|
|
1115
|
-
break;
|
|
1071
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1116
1072
|
case "InternalServerException":
|
|
1117
1073
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
1118
|
-
|
|
1119
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1120
|
-
name: errorCode,
|
|
1121
|
-
$metadata: deserializeMetadata(output),
|
|
1122
|
-
};
|
|
1123
|
-
break;
|
|
1074
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1124
1075
|
case "ResourceNotFoundException":
|
|
1125
1076
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
1126
|
-
|
|
1127
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1128
|
-
name: errorCode,
|
|
1129
|
-
$metadata: deserializeMetadata(output),
|
|
1130
|
-
};
|
|
1131
|
-
break;
|
|
1077
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1132
1078
|
case "ServiceQuotaExceededException":
|
|
1133
1079
|
case "com.amazonaws.resiliencehub#ServiceQuotaExceededException":
|
|
1134
|
-
|
|
1135
|
-
...(await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
1136
|
-
name: errorCode,
|
|
1137
|
-
$metadata: deserializeMetadata(output),
|
|
1138
|
-
};
|
|
1139
|
-
break;
|
|
1080
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
1140
1081
|
case "ThrottlingException":
|
|
1141
1082
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
1142
|
-
|
|
1143
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1144
|
-
name: errorCode,
|
|
1145
|
-
$metadata: deserializeMetadata(output),
|
|
1146
|
-
};
|
|
1147
|
-
break;
|
|
1083
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1148
1084
|
case "ValidationException":
|
|
1149
1085
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
1150
|
-
|
|
1151
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1152
|
-
name: errorCode,
|
|
1153
|
-
$metadata: deserializeMetadata(output),
|
|
1154
|
-
};
|
|
1155
|
-
break;
|
|
1086
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1156
1087
|
default:
|
|
1157
1088
|
const parsedBody = parsedOutput.body;
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
...parsedBody,
|
|
1161
|
-
name: `${errorCode}`,
|
|
1162
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1089
|
+
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
1090
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1163
1091
|
$fault: "client",
|
|
1164
1092
|
$metadata: deserializeMetadata(output),
|
|
1165
|
-
};
|
|
1093
|
+
});
|
|
1094
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1166
1095
|
}
|
|
1167
|
-
const message = response.message || response.Message || errorCode;
|
|
1168
|
-
response.message = message;
|
|
1169
|
-
delete response.Message;
|
|
1170
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1171
1096
|
};
|
|
1172
1097
|
const deserializeAws_restJson1CreateRecommendationTemplateCommand = async (output, context) => {
|
|
1173
1098
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1195,67 +1120,31 @@ const deserializeAws_restJson1CreateRecommendationTemplateCommandError = async (
|
|
|
1195
1120
|
switch (errorCode) {
|
|
1196
1121
|
case "AccessDeniedException":
|
|
1197
1122
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
1198
|
-
|
|
1199
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1200
|
-
name: errorCode,
|
|
1201
|
-
$metadata: deserializeMetadata(output),
|
|
1202
|
-
};
|
|
1203
|
-
break;
|
|
1123
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1204
1124
|
case "ConflictException":
|
|
1205
1125
|
case "com.amazonaws.resiliencehub#ConflictException":
|
|
1206
|
-
|
|
1207
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
1208
|
-
name: errorCode,
|
|
1209
|
-
$metadata: deserializeMetadata(output),
|
|
1210
|
-
};
|
|
1211
|
-
break;
|
|
1126
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1212
1127
|
case "InternalServerException":
|
|
1213
1128
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
1214
|
-
|
|
1215
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1216
|
-
name: errorCode,
|
|
1217
|
-
$metadata: deserializeMetadata(output),
|
|
1218
|
-
};
|
|
1219
|
-
break;
|
|
1129
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1220
1130
|
case "ResourceNotFoundException":
|
|
1221
1131
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
1222
|
-
|
|
1223
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1224
|
-
name: errorCode,
|
|
1225
|
-
$metadata: deserializeMetadata(output),
|
|
1226
|
-
};
|
|
1227
|
-
break;
|
|
1132
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1228
1133
|
case "ThrottlingException":
|
|
1229
1134
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
1230
|
-
|
|
1231
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1232
|
-
name: errorCode,
|
|
1233
|
-
$metadata: deserializeMetadata(output),
|
|
1234
|
-
};
|
|
1235
|
-
break;
|
|
1135
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1236
1136
|
case "ValidationException":
|
|
1237
1137
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
1238
|
-
|
|
1239
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1240
|
-
name: errorCode,
|
|
1241
|
-
$metadata: deserializeMetadata(output),
|
|
1242
|
-
};
|
|
1243
|
-
break;
|
|
1138
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1244
1139
|
default:
|
|
1245
1140
|
const parsedBody = parsedOutput.body;
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
...parsedBody,
|
|
1249
|
-
name: `${errorCode}`,
|
|
1250
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1141
|
+
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
1142
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1251
1143
|
$fault: "client",
|
|
1252
1144
|
$metadata: deserializeMetadata(output),
|
|
1253
|
-
};
|
|
1145
|
+
});
|
|
1146
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1254
1147
|
}
|
|
1255
|
-
const message = response.message || response.Message || errorCode;
|
|
1256
|
-
response.message = message;
|
|
1257
|
-
delete response.Message;
|
|
1258
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1259
1148
|
};
|
|
1260
1149
|
const deserializeAws_restJson1CreateResiliencyPolicyCommand = async (output, context) => {
|
|
1261
1150
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1283,67 +1172,31 @@ const deserializeAws_restJson1CreateResiliencyPolicyCommandError = async (output
|
|
|
1283
1172
|
switch (errorCode) {
|
|
1284
1173
|
case "AccessDeniedException":
|
|
1285
1174
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
1286
|
-
|
|
1287
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1288
|
-
name: errorCode,
|
|
1289
|
-
$metadata: deserializeMetadata(output),
|
|
1290
|
-
};
|
|
1291
|
-
break;
|
|
1175
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1292
1176
|
case "ConflictException":
|
|
1293
1177
|
case "com.amazonaws.resiliencehub#ConflictException":
|
|
1294
|
-
|
|
1295
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
1296
|
-
name: errorCode,
|
|
1297
|
-
$metadata: deserializeMetadata(output),
|
|
1298
|
-
};
|
|
1299
|
-
break;
|
|
1178
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1300
1179
|
case "InternalServerException":
|
|
1301
1180
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
1302
|
-
|
|
1303
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1304
|
-
name: errorCode,
|
|
1305
|
-
$metadata: deserializeMetadata(output),
|
|
1306
|
-
};
|
|
1307
|
-
break;
|
|
1181
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1308
1182
|
case "ServiceQuotaExceededException":
|
|
1309
1183
|
case "com.amazonaws.resiliencehub#ServiceQuotaExceededException":
|
|
1310
|
-
|
|
1311
|
-
...(await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
1312
|
-
name: errorCode,
|
|
1313
|
-
$metadata: deserializeMetadata(output),
|
|
1314
|
-
};
|
|
1315
|
-
break;
|
|
1184
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
1316
1185
|
case "ThrottlingException":
|
|
1317
1186
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
1318
|
-
|
|
1319
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1320
|
-
name: errorCode,
|
|
1321
|
-
$metadata: deserializeMetadata(output),
|
|
1322
|
-
};
|
|
1323
|
-
break;
|
|
1187
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1324
1188
|
case "ValidationException":
|
|
1325
1189
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
1326
|
-
|
|
1327
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1328
|
-
name: errorCode,
|
|
1329
|
-
$metadata: deserializeMetadata(output),
|
|
1330
|
-
};
|
|
1331
|
-
break;
|
|
1190
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1332
1191
|
default:
|
|
1333
1192
|
const parsedBody = parsedOutput.body;
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
...parsedBody,
|
|
1337
|
-
name: `${errorCode}`,
|
|
1338
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1193
|
+
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
1194
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1339
1195
|
$fault: "client",
|
|
1340
1196
|
$metadata: deserializeMetadata(output),
|
|
1341
|
-
};
|
|
1197
|
+
});
|
|
1198
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1342
1199
|
}
|
|
1343
|
-
const message = response.message || response.Message || errorCode;
|
|
1344
|
-
response.message = message;
|
|
1345
|
-
delete response.Message;
|
|
1346
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1347
1200
|
};
|
|
1348
1201
|
const deserializeAws_restJson1DeleteAppCommand = async (output, context) => {
|
|
1349
1202
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1371,59 +1224,28 @@ const deserializeAws_restJson1DeleteAppCommandError = async (output, context) =>
|
|
|
1371
1224
|
switch (errorCode) {
|
|
1372
1225
|
case "ConflictException":
|
|
1373
1226
|
case "com.amazonaws.resiliencehub#ConflictException":
|
|
1374
|
-
|
|
1375
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
1376
|
-
name: errorCode,
|
|
1377
|
-
$metadata: deserializeMetadata(output),
|
|
1378
|
-
};
|
|
1379
|
-
break;
|
|
1227
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1380
1228
|
case "InternalServerException":
|
|
1381
1229
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
1382
|
-
|
|
1383
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1384
|
-
name: errorCode,
|
|
1385
|
-
$metadata: deserializeMetadata(output),
|
|
1386
|
-
};
|
|
1387
|
-
break;
|
|
1230
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1388
1231
|
case "ResourceNotFoundException":
|
|
1389
1232
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
1390
|
-
|
|
1391
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1392
|
-
name: errorCode,
|
|
1393
|
-
$metadata: deserializeMetadata(output),
|
|
1394
|
-
};
|
|
1395
|
-
break;
|
|
1233
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1396
1234
|
case "ThrottlingException":
|
|
1397
1235
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
1398
|
-
|
|
1399
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1400
|
-
name: errorCode,
|
|
1401
|
-
$metadata: deserializeMetadata(output),
|
|
1402
|
-
};
|
|
1403
|
-
break;
|
|
1236
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1404
1237
|
case "ValidationException":
|
|
1405
1238
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
1406
|
-
|
|
1407
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1408
|
-
name: errorCode,
|
|
1409
|
-
$metadata: deserializeMetadata(output),
|
|
1410
|
-
};
|
|
1411
|
-
break;
|
|
1239
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1412
1240
|
default:
|
|
1413
1241
|
const parsedBody = parsedOutput.body;
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
...parsedBody,
|
|
1417
|
-
name: `${errorCode}`,
|
|
1418
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1242
|
+
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
1243
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1419
1244
|
$fault: "client",
|
|
1420
1245
|
$metadata: deserializeMetadata(output),
|
|
1421
|
-
};
|
|
1246
|
+
});
|
|
1247
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1422
1248
|
}
|
|
1423
|
-
const message = response.message || response.Message || errorCode;
|
|
1424
|
-
response.message = message;
|
|
1425
|
-
delete response.Message;
|
|
1426
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1427
1249
|
};
|
|
1428
1250
|
const deserializeAws_restJson1DeleteAppAssessmentCommand = async (output, context) => {
|
|
1429
1251
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1455,67 +1277,31 @@ const deserializeAws_restJson1DeleteAppAssessmentCommandError = async (output, c
|
|
|
1455
1277
|
switch (errorCode) {
|
|
1456
1278
|
case "AccessDeniedException":
|
|
1457
1279
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
1458
|
-
|
|
1459
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1460
|
-
name: errorCode,
|
|
1461
|
-
$metadata: deserializeMetadata(output),
|
|
1462
|
-
};
|
|
1463
|
-
break;
|
|
1280
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1464
1281
|
case "ConflictException":
|
|
1465
1282
|
case "com.amazonaws.resiliencehub#ConflictException":
|
|
1466
|
-
|
|
1467
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
1468
|
-
name: errorCode,
|
|
1469
|
-
$metadata: deserializeMetadata(output),
|
|
1470
|
-
};
|
|
1471
|
-
break;
|
|
1283
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1472
1284
|
case "InternalServerException":
|
|
1473
1285
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
1474
|
-
|
|
1475
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1476
|
-
name: errorCode,
|
|
1477
|
-
$metadata: deserializeMetadata(output),
|
|
1478
|
-
};
|
|
1479
|
-
break;
|
|
1286
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1480
1287
|
case "ResourceNotFoundException":
|
|
1481
1288
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
1482
|
-
|
|
1483
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1484
|
-
name: errorCode,
|
|
1485
|
-
$metadata: deserializeMetadata(output),
|
|
1486
|
-
};
|
|
1487
|
-
break;
|
|
1289
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1488
1290
|
case "ThrottlingException":
|
|
1489
1291
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
1490
|
-
|
|
1491
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1492
|
-
name: errorCode,
|
|
1493
|
-
$metadata: deserializeMetadata(output),
|
|
1494
|
-
};
|
|
1495
|
-
break;
|
|
1292
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1496
1293
|
case "ValidationException":
|
|
1497
1294
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
1498
|
-
|
|
1499
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1500
|
-
name: errorCode,
|
|
1501
|
-
$metadata: deserializeMetadata(output),
|
|
1502
|
-
};
|
|
1503
|
-
break;
|
|
1295
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1504
1296
|
default:
|
|
1505
1297
|
const parsedBody = parsedOutput.body;
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
...parsedBody,
|
|
1509
|
-
name: `${errorCode}`,
|
|
1510
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1298
|
+
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
1299
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1511
1300
|
$fault: "client",
|
|
1512
1301
|
$metadata: deserializeMetadata(output),
|
|
1513
|
-
};
|
|
1302
|
+
});
|
|
1303
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1514
1304
|
}
|
|
1515
|
-
const message = response.message || response.Message || errorCode;
|
|
1516
|
-
response.message = message;
|
|
1517
|
-
delete response.Message;
|
|
1518
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1519
1305
|
};
|
|
1520
1306
|
const deserializeAws_restJson1DeleteRecommendationTemplateCommand = async (output, context) => {
|
|
1521
1307
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1547,59 +1333,28 @@ const deserializeAws_restJson1DeleteRecommendationTemplateCommandError = async (
|
|
|
1547
1333
|
switch (errorCode) {
|
|
1548
1334
|
case "AccessDeniedException":
|
|
1549
1335
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
1550
|
-
|
|
1551
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1552
|
-
name: errorCode,
|
|
1553
|
-
$metadata: deserializeMetadata(output),
|
|
1554
|
-
};
|
|
1555
|
-
break;
|
|
1336
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1556
1337
|
case "InternalServerException":
|
|
1557
1338
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
1558
|
-
|
|
1559
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1560
|
-
name: errorCode,
|
|
1561
|
-
$metadata: deserializeMetadata(output),
|
|
1562
|
-
};
|
|
1563
|
-
break;
|
|
1339
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1564
1340
|
case "ResourceNotFoundException":
|
|
1565
1341
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
1566
|
-
|
|
1567
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1568
|
-
name: errorCode,
|
|
1569
|
-
$metadata: deserializeMetadata(output),
|
|
1570
|
-
};
|
|
1571
|
-
break;
|
|
1342
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1572
1343
|
case "ThrottlingException":
|
|
1573
1344
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
1574
|
-
|
|
1575
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1576
|
-
name: errorCode,
|
|
1577
|
-
$metadata: deserializeMetadata(output),
|
|
1578
|
-
};
|
|
1579
|
-
break;
|
|
1345
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1580
1346
|
case "ValidationException":
|
|
1581
1347
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
1582
|
-
|
|
1583
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1584
|
-
name: errorCode,
|
|
1585
|
-
$metadata: deserializeMetadata(output),
|
|
1586
|
-
};
|
|
1587
|
-
break;
|
|
1348
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1588
1349
|
default:
|
|
1589
1350
|
const parsedBody = parsedOutput.body;
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
...parsedBody,
|
|
1593
|
-
name: `${errorCode}`,
|
|
1594
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1351
|
+
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
1352
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1595
1353
|
$fault: "client",
|
|
1596
1354
|
$metadata: deserializeMetadata(output),
|
|
1597
|
-
};
|
|
1355
|
+
});
|
|
1356
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1598
1357
|
}
|
|
1599
|
-
const message = response.message || response.Message || errorCode;
|
|
1600
|
-
response.message = message;
|
|
1601
|
-
delete response.Message;
|
|
1602
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1603
1358
|
};
|
|
1604
1359
|
const deserializeAws_restJson1DeleteResiliencyPolicyCommand = async (output, context) => {
|
|
1605
1360
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1627,67 +1382,31 @@ const deserializeAws_restJson1DeleteResiliencyPolicyCommandError = async (output
|
|
|
1627
1382
|
switch (errorCode) {
|
|
1628
1383
|
case "AccessDeniedException":
|
|
1629
1384
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
1630
|
-
|
|
1631
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1632
|
-
name: errorCode,
|
|
1633
|
-
$metadata: deserializeMetadata(output),
|
|
1634
|
-
};
|
|
1635
|
-
break;
|
|
1385
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1636
1386
|
case "ConflictException":
|
|
1637
1387
|
case "com.amazonaws.resiliencehub#ConflictException":
|
|
1638
|
-
|
|
1639
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
1640
|
-
name: errorCode,
|
|
1641
|
-
$metadata: deserializeMetadata(output),
|
|
1642
|
-
};
|
|
1643
|
-
break;
|
|
1388
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1644
1389
|
case "InternalServerException":
|
|
1645
1390
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
1646
|
-
|
|
1647
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1648
|
-
name: errorCode,
|
|
1649
|
-
$metadata: deserializeMetadata(output),
|
|
1650
|
-
};
|
|
1651
|
-
break;
|
|
1391
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1652
1392
|
case "ResourceNotFoundException":
|
|
1653
1393
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
1654
|
-
|
|
1655
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1656
|
-
name: errorCode,
|
|
1657
|
-
$metadata: deserializeMetadata(output),
|
|
1658
|
-
};
|
|
1659
|
-
break;
|
|
1394
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1660
1395
|
case "ThrottlingException":
|
|
1661
1396
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
1662
|
-
|
|
1663
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1664
|
-
name: errorCode,
|
|
1665
|
-
$metadata: deserializeMetadata(output),
|
|
1666
|
-
};
|
|
1667
|
-
break;
|
|
1397
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1668
1398
|
case "ValidationException":
|
|
1669
1399
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
1670
|
-
|
|
1671
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1672
|
-
name: errorCode,
|
|
1673
|
-
$metadata: deserializeMetadata(output),
|
|
1674
|
-
};
|
|
1675
|
-
break;
|
|
1400
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1676
1401
|
default:
|
|
1677
1402
|
const parsedBody = parsedOutput.body;
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
...parsedBody,
|
|
1681
|
-
name: `${errorCode}`,
|
|
1682
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1403
|
+
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
1404
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1683
1405
|
$fault: "client",
|
|
1684
1406
|
$metadata: deserializeMetadata(output),
|
|
1685
|
-
};
|
|
1407
|
+
});
|
|
1408
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1686
1409
|
}
|
|
1687
|
-
const message = response.message || response.Message || errorCode;
|
|
1688
|
-
response.message = message;
|
|
1689
|
-
delete response.Message;
|
|
1690
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1691
1410
|
};
|
|
1692
1411
|
const deserializeAws_restJson1DescribeAppCommand = async (output, context) => {
|
|
1693
1412
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1715,59 +1434,28 @@ const deserializeAws_restJson1DescribeAppCommandError = async (output, context)
|
|
|
1715
1434
|
switch (errorCode) {
|
|
1716
1435
|
case "AccessDeniedException":
|
|
1717
1436
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
1718
|
-
|
|
1719
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1720
|
-
name: errorCode,
|
|
1721
|
-
$metadata: deserializeMetadata(output),
|
|
1722
|
-
};
|
|
1723
|
-
break;
|
|
1437
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1724
1438
|
case "InternalServerException":
|
|
1725
1439
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
1726
|
-
|
|
1727
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1728
|
-
name: errorCode,
|
|
1729
|
-
$metadata: deserializeMetadata(output),
|
|
1730
|
-
};
|
|
1731
|
-
break;
|
|
1440
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1732
1441
|
case "ResourceNotFoundException":
|
|
1733
1442
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
1734
|
-
|
|
1735
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1736
|
-
name: errorCode,
|
|
1737
|
-
$metadata: deserializeMetadata(output),
|
|
1738
|
-
};
|
|
1739
|
-
break;
|
|
1443
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1740
1444
|
case "ThrottlingException":
|
|
1741
1445
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
1742
|
-
|
|
1743
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1744
|
-
name: errorCode,
|
|
1745
|
-
$metadata: deserializeMetadata(output),
|
|
1746
|
-
};
|
|
1747
|
-
break;
|
|
1446
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1748
1447
|
case "ValidationException":
|
|
1749
1448
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
1750
|
-
|
|
1751
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1752
|
-
name: errorCode,
|
|
1753
|
-
$metadata: deserializeMetadata(output),
|
|
1754
|
-
};
|
|
1755
|
-
break;
|
|
1449
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1756
1450
|
default:
|
|
1757
1451
|
const parsedBody = parsedOutput.body;
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
...parsedBody,
|
|
1761
|
-
name: `${errorCode}`,
|
|
1762
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1452
|
+
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
1453
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1763
1454
|
$fault: "client",
|
|
1764
1455
|
$metadata: deserializeMetadata(output),
|
|
1765
|
-
};
|
|
1456
|
+
});
|
|
1457
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1766
1458
|
}
|
|
1767
|
-
const message = response.message || response.Message || errorCode;
|
|
1768
|
-
response.message = message;
|
|
1769
|
-
delete response.Message;
|
|
1770
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1771
1459
|
};
|
|
1772
1460
|
const deserializeAws_restJson1DescribeAppAssessmentCommand = async (output, context) => {
|
|
1773
1461
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1795,59 +1483,28 @@ const deserializeAws_restJson1DescribeAppAssessmentCommandError = async (output,
|
|
|
1795
1483
|
switch (errorCode) {
|
|
1796
1484
|
case "AccessDeniedException":
|
|
1797
1485
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
1798
|
-
|
|
1799
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1800
|
-
name: errorCode,
|
|
1801
|
-
$metadata: deserializeMetadata(output),
|
|
1802
|
-
};
|
|
1803
|
-
break;
|
|
1486
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1804
1487
|
case "InternalServerException":
|
|
1805
1488
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
1806
|
-
|
|
1807
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1808
|
-
name: errorCode,
|
|
1809
|
-
$metadata: deserializeMetadata(output),
|
|
1810
|
-
};
|
|
1811
|
-
break;
|
|
1489
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1812
1490
|
case "ResourceNotFoundException":
|
|
1813
1491
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
1814
|
-
|
|
1815
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1816
|
-
name: errorCode,
|
|
1817
|
-
$metadata: deserializeMetadata(output),
|
|
1818
|
-
};
|
|
1819
|
-
break;
|
|
1492
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1820
1493
|
case "ThrottlingException":
|
|
1821
1494
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
1822
|
-
|
|
1823
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1824
|
-
name: errorCode,
|
|
1825
|
-
$metadata: deserializeMetadata(output),
|
|
1826
|
-
};
|
|
1827
|
-
break;
|
|
1495
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1828
1496
|
case "ValidationException":
|
|
1829
1497
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
1830
|
-
|
|
1831
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1832
|
-
name: errorCode,
|
|
1833
|
-
$metadata: deserializeMetadata(output),
|
|
1834
|
-
};
|
|
1835
|
-
break;
|
|
1498
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1836
1499
|
default:
|
|
1837
1500
|
const parsedBody = parsedOutput.body;
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
...parsedBody,
|
|
1841
|
-
name: `${errorCode}`,
|
|
1842
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1501
|
+
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
1502
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1843
1503
|
$fault: "client",
|
|
1844
1504
|
$metadata: deserializeMetadata(output),
|
|
1845
|
-
};
|
|
1505
|
+
});
|
|
1506
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1846
1507
|
}
|
|
1847
|
-
const message = response.message || response.Message || errorCode;
|
|
1848
|
-
response.message = message;
|
|
1849
|
-
delete response.Message;
|
|
1850
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1851
1508
|
};
|
|
1852
1509
|
const deserializeAws_restJson1DescribeAppVersionResourcesResolutionStatusCommand = async (output, context) => {
|
|
1853
1510
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1891,59 +1548,28 @@ const deserializeAws_restJson1DescribeAppVersionResourcesResolutionStatusCommand
|
|
|
1891
1548
|
switch (errorCode) {
|
|
1892
1549
|
case "AccessDeniedException":
|
|
1893
1550
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
1894
|
-
|
|
1895
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1896
|
-
name: errorCode,
|
|
1897
|
-
$metadata: deserializeMetadata(output),
|
|
1898
|
-
};
|
|
1899
|
-
break;
|
|
1551
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1900
1552
|
case "InternalServerException":
|
|
1901
1553
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
1902
|
-
|
|
1903
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1904
|
-
name: errorCode,
|
|
1905
|
-
$metadata: deserializeMetadata(output),
|
|
1906
|
-
};
|
|
1907
|
-
break;
|
|
1554
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1908
1555
|
case "ResourceNotFoundException":
|
|
1909
1556
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
1910
|
-
|
|
1911
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1912
|
-
name: errorCode,
|
|
1913
|
-
$metadata: deserializeMetadata(output),
|
|
1914
|
-
};
|
|
1915
|
-
break;
|
|
1557
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1916
1558
|
case "ThrottlingException":
|
|
1917
1559
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
1918
|
-
|
|
1919
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1920
|
-
name: errorCode,
|
|
1921
|
-
$metadata: deserializeMetadata(output),
|
|
1922
|
-
};
|
|
1923
|
-
break;
|
|
1560
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1924
1561
|
case "ValidationException":
|
|
1925
1562
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
1926
|
-
|
|
1927
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1928
|
-
name: errorCode,
|
|
1929
|
-
$metadata: deserializeMetadata(output),
|
|
1930
|
-
};
|
|
1931
|
-
break;
|
|
1563
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1932
1564
|
default:
|
|
1933
1565
|
const parsedBody = parsedOutput.body;
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
...parsedBody,
|
|
1937
|
-
name: `${errorCode}`,
|
|
1938
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1566
|
+
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
1567
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1939
1568
|
$fault: "client",
|
|
1940
1569
|
$metadata: deserializeMetadata(output),
|
|
1941
|
-
};
|
|
1570
|
+
});
|
|
1571
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1942
1572
|
}
|
|
1943
|
-
const message = response.message || response.Message || errorCode;
|
|
1944
|
-
response.message = message;
|
|
1945
|
-
delete response.Message;
|
|
1946
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1947
1573
|
};
|
|
1948
1574
|
const deserializeAws_restJson1DescribeAppVersionTemplateCommand = async (output, context) => {
|
|
1949
1575
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1979,59 +1605,28 @@ const deserializeAws_restJson1DescribeAppVersionTemplateCommandError = async (ou
|
|
|
1979
1605
|
switch (errorCode) {
|
|
1980
1606
|
case "AccessDeniedException":
|
|
1981
1607
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
1982
|
-
|
|
1983
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1984
|
-
name: errorCode,
|
|
1985
|
-
$metadata: deserializeMetadata(output),
|
|
1986
|
-
};
|
|
1987
|
-
break;
|
|
1608
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1988
1609
|
case "InternalServerException":
|
|
1989
1610
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
1990
|
-
|
|
1991
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1992
|
-
name: errorCode,
|
|
1993
|
-
$metadata: deserializeMetadata(output),
|
|
1994
|
-
};
|
|
1995
|
-
break;
|
|
1611
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1996
1612
|
case "ResourceNotFoundException":
|
|
1997
1613
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
1998
|
-
|
|
1999
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2000
|
-
name: errorCode,
|
|
2001
|
-
$metadata: deserializeMetadata(output),
|
|
2002
|
-
};
|
|
2003
|
-
break;
|
|
1614
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2004
1615
|
case "ThrottlingException":
|
|
2005
1616
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
2006
|
-
|
|
2007
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2008
|
-
name: errorCode,
|
|
2009
|
-
$metadata: deserializeMetadata(output),
|
|
2010
|
-
};
|
|
2011
|
-
break;
|
|
1617
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2012
1618
|
case "ValidationException":
|
|
2013
1619
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
2014
|
-
|
|
2015
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2016
|
-
name: errorCode,
|
|
2017
|
-
$metadata: deserializeMetadata(output),
|
|
2018
|
-
};
|
|
2019
|
-
break;
|
|
1620
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2020
1621
|
default:
|
|
2021
1622
|
const parsedBody = parsedOutput.body;
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
...parsedBody,
|
|
2025
|
-
name: `${errorCode}`,
|
|
2026
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1623
|
+
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
1624
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2027
1625
|
$fault: "client",
|
|
2028
1626
|
$metadata: deserializeMetadata(output),
|
|
2029
|
-
};
|
|
1627
|
+
});
|
|
1628
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2030
1629
|
}
|
|
2031
|
-
const message = response.message || response.Message || errorCode;
|
|
2032
|
-
response.message = message;
|
|
2033
|
-
delete response.Message;
|
|
2034
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2035
1630
|
};
|
|
2036
1631
|
const deserializeAws_restJson1DescribeDraftAppVersionResourcesImportStatusCommand = async (output, context) => {
|
|
2037
1632
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2075,59 +1670,28 @@ const deserializeAws_restJson1DescribeDraftAppVersionResourcesImportStatusComman
|
|
|
2075
1670
|
switch (errorCode) {
|
|
2076
1671
|
case "AccessDeniedException":
|
|
2077
1672
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
2078
|
-
|
|
2079
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2080
|
-
name: errorCode,
|
|
2081
|
-
$metadata: deserializeMetadata(output),
|
|
2082
|
-
};
|
|
2083
|
-
break;
|
|
1673
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2084
1674
|
case "InternalServerException":
|
|
2085
1675
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
2086
|
-
|
|
2087
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2088
|
-
name: errorCode,
|
|
2089
|
-
$metadata: deserializeMetadata(output),
|
|
2090
|
-
};
|
|
2091
|
-
break;
|
|
1676
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2092
1677
|
case "ResourceNotFoundException":
|
|
2093
1678
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
2094
|
-
|
|
2095
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2096
|
-
name: errorCode,
|
|
2097
|
-
$metadata: deserializeMetadata(output),
|
|
2098
|
-
};
|
|
2099
|
-
break;
|
|
1679
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2100
1680
|
case "ThrottlingException":
|
|
2101
1681
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
2102
|
-
|
|
2103
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2104
|
-
name: errorCode,
|
|
2105
|
-
$metadata: deserializeMetadata(output),
|
|
2106
|
-
};
|
|
2107
|
-
break;
|
|
1682
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2108
1683
|
case "ValidationException":
|
|
2109
1684
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
2110
|
-
|
|
2111
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2112
|
-
name: errorCode,
|
|
2113
|
-
$metadata: deserializeMetadata(output),
|
|
2114
|
-
};
|
|
2115
|
-
break;
|
|
1685
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2116
1686
|
default:
|
|
2117
1687
|
const parsedBody = parsedOutput.body;
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
...parsedBody,
|
|
2121
|
-
name: `${errorCode}`,
|
|
2122
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1688
|
+
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
1689
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2123
1690
|
$fault: "client",
|
|
2124
1691
|
$metadata: deserializeMetadata(output),
|
|
2125
|
-
};
|
|
1692
|
+
});
|
|
1693
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2126
1694
|
}
|
|
2127
|
-
const message = response.message || response.Message || errorCode;
|
|
2128
|
-
response.message = message;
|
|
2129
|
-
delete response.Message;
|
|
2130
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2131
1695
|
};
|
|
2132
1696
|
const deserializeAws_restJson1DescribeResiliencyPolicyCommand = async (output, context) => {
|
|
2133
1697
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2155,59 +1719,28 @@ const deserializeAws_restJson1DescribeResiliencyPolicyCommandError = async (outp
|
|
|
2155
1719
|
switch (errorCode) {
|
|
2156
1720
|
case "AccessDeniedException":
|
|
2157
1721
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
2158
|
-
|
|
2159
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2160
|
-
name: errorCode,
|
|
2161
|
-
$metadata: deserializeMetadata(output),
|
|
2162
|
-
};
|
|
2163
|
-
break;
|
|
1722
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2164
1723
|
case "InternalServerException":
|
|
2165
1724
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
2166
|
-
|
|
2167
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2168
|
-
name: errorCode,
|
|
2169
|
-
$metadata: deserializeMetadata(output),
|
|
2170
|
-
};
|
|
2171
|
-
break;
|
|
1725
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2172
1726
|
case "ResourceNotFoundException":
|
|
2173
1727
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
2174
|
-
|
|
2175
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2176
|
-
name: errorCode,
|
|
2177
|
-
$metadata: deserializeMetadata(output),
|
|
2178
|
-
};
|
|
2179
|
-
break;
|
|
1728
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2180
1729
|
case "ThrottlingException":
|
|
2181
1730
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
2182
|
-
|
|
2183
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2184
|
-
name: errorCode,
|
|
2185
|
-
$metadata: deserializeMetadata(output),
|
|
2186
|
-
};
|
|
2187
|
-
break;
|
|
1731
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2188
1732
|
case "ValidationException":
|
|
2189
1733
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
2190
|
-
|
|
2191
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2192
|
-
name: errorCode,
|
|
2193
|
-
$metadata: deserializeMetadata(output),
|
|
2194
|
-
};
|
|
2195
|
-
break;
|
|
1734
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2196
1735
|
default:
|
|
2197
1736
|
const parsedBody = parsedOutput.body;
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
...parsedBody,
|
|
2201
|
-
name: `${errorCode}`,
|
|
2202
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1737
|
+
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
1738
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2203
1739
|
$fault: "client",
|
|
2204
1740
|
$metadata: deserializeMetadata(output),
|
|
2205
|
-
};
|
|
1741
|
+
});
|
|
1742
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2206
1743
|
}
|
|
2207
|
-
const message = response.message || response.Message || errorCode;
|
|
2208
|
-
response.message = message;
|
|
2209
|
-
delete response.Message;
|
|
2210
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2211
1744
|
};
|
|
2212
1745
|
const deserializeAws_restJson1ImportResourcesToDraftAppVersionCommand = async (output, context) => {
|
|
2213
1746
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2247,67 +1780,31 @@ const deserializeAws_restJson1ImportResourcesToDraftAppVersionCommandError = asy
|
|
|
2247
1780
|
switch (errorCode) {
|
|
2248
1781
|
case "AccessDeniedException":
|
|
2249
1782
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
2250
|
-
|
|
2251
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2252
|
-
name: errorCode,
|
|
2253
|
-
$metadata: deserializeMetadata(output),
|
|
2254
|
-
};
|
|
2255
|
-
break;
|
|
1783
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2256
1784
|
case "ConflictException":
|
|
2257
1785
|
case "com.amazonaws.resiliencehub#ConflictException":
|
|
2258
|
-
|
|
2259
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
2260
|
-
name: errorCode,
|
|
2261
|
-
$metadata: deserializeMetadata(output),
|
|
2262
|
-
};
|
|
2263
|
-
break;
|
|
1786
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
2264
1787
|
case "InternalServerException":
|
|
2265
1788
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
2266
|
-
|
|
2267
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2268
|
-
name: errorCode,
|
|
2269
|
-
$metadata: deserializeMetadata(output),
|
|
2270
|
-
};
|
|
2271
|
-
break;
|
|
1789
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2272
1790
|
case "ResourceNotFoundException":
|
|
2273
1791
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
2274
|
-
|
|
2275
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2276
|
-
name: errorCode,
|
|
2277
|
-
$metadata: deserializeMetadata(output),
|
|
2278
|
-
};
|
|
2279
|
-
break;
|
|
1792
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2280
1793
|
case "ThrottlingException":
|
|
2281
1794
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
2282
|
-
|
|
2283
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2284
|
-
name: errorCode,
|
|
2285
|
-
$metadata: deserializeMetadata(output),
|
|
2286
|
-
};
|
|
2287
|
-
break;
|
|
1795
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2288
1796
|
case "ValidationException":
|
|
2289
1797
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
2290
|
-
|
|
2291
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2292
|
-
name: errorCode,
|
|
2293
|
-
$metadata: deserializeMetadata(output),
|
|
2294
|
-
};
|
|
2295
|
-
break;
|
|
1798
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2296
1799
|
default:
|
|
2297
1800
|
const parsedBody = parsedOutput.body;
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
...parsedBody,
|
|
2301
|
-
name: `${errorCode}`,
|
|
2302
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1801
|
+
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
1802
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2303
1803
|
$fault: "client",
|
|
2304
1804
|
$metadata: deserializeMetadata(output),
|
|
2305
|
-
};
|
|
1805
|
+
});
|
|
1806
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2306
1807
|
}
|
|
2307
|
-
const message = response.message || response.Message || errorCode;
|
|
2308
|
-
response.message = message;
|
|
2309
|
-
delete response.Message;
|
|
2310
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2311
1808
|
};
|
|
2312
1809
|
const deserializeAws_restJson1ListAlarmRecommendationsCommand = async (output, context) => {
|
|
2313
1810
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2339,59 +1836,28 @@ const deserializeAws_restJson1ListAlarmRecommendationsCommandError = async (outp
|
|
|
2339
1836
|
switch (errorCode) {
|
|
2340
1837
|
case "AccessDeniedException":
|
|
2341
1838
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
2342
|
-
|
|
2343
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2344
|
-
name: errorCode,
|
|
2345
|
-
$metadata: deserializeMetadata(output),
|
|
2346
|
-
};
|
|
2347
|
-
break;
|
|
1839
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2348
1840
|
case "InternalServerException":
|
|
2349
1841
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
2350
|
-
|
|
2351
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2352
|
-
name: errorCode,
|
|
2353
|
-
$metadata: deserializeMetadata(output),
|
|
2354
|
-
};
|
|
2355
|
-
break;
|
|
1842
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2356
1843
|
case "ResourceNotFoundException":
|
|
2357
1844
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
2358
|
-
|
|
2359
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2360
|
-
name: errorCode,
|
|
2361
|
-
$metadata: deserializeMetadata(output),
|
|
2362
|
-
};
|
|
2363
|
-
break;
|
|
1845
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2364
1846
|
case "ThrottlingException":
|
|
2365
1847
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
2366
|
-
|
|
2367
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2368
|
-
name: errorCode,
|
|
2369
|
-
$metadata: deserializeMetadata(output),
|
|
2370
|
-
};
|
|
2371
|
-
break;
|
|
1848
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2372
1849
|
case "ValidationException":
|
|
2373
1850
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
2374
|
-
|
|
2375
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2376
|
-
name: errorCode,
|
|
2377
|
-
$metadata: deserializeMetadata(output),
|
|
2378
|
-
};
|
|
2379
|
-
break;
|
|
1851
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2380
1852
|
default:
|
|
2381
1853
|
const parsedBody = parsedOutput.body;
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
...parsedBody,
|
|
2385
|
-
name: `${errorCode}`,
|
|
2386
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1854
|
+
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
1855
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2387
1856
|
$fault: "client",
|
|
2388
1857
|
$metadata: deserializeMetadata(output),
|
|
2389
|
-
};
|
|
1858
|
+
});
|
|
1859
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2390
1860
|
}
|
|
2391
|
-
const message = response.message || response.Message || errorCode;
|
|
2392
|
-
response.message = message;
|
|
2393
|
-
delete response.Message;
|
|
2394
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2395
1861
|
};
|
|
2396
1862
|
const deserializeAws_restJson1ListAppAssessmentsCommand = async (output, context) => {
|
|
2397
1863
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2423,59 +1889,28 @@ const deserializeAws_restJson1ListAppAssessmentsCommandError = async (output, co
|
|
|
2423
1889
|
switch (errorCode) {
|
|
2424
1890
|
case "AccessDeniedException":
|
|
2425
1891
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
2426
|
-
|
|
2427
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2428
|
-
name: errorCode,
|
|
2429
|
-
$metadata: deserializeMetadata(output),
|
|
2430
|
-
};
|
|
2431
|
-
break;
|
|
1892
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2432
1893
|
case "InternalServerException":
|
|
2433
1894
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
2434
|
-
|
|
2435
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2436
|
-
name: errorCode,
|
|
2437
|
-
$metadata: deserializeMetadata(output),
|
|
2438
|
-
};
|
|
2439
|
-
break;
|
|
1895
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2440
1896
|
case "ResourceNotFoundException":
|
|
2441
1897
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
2442
|
-
|
|
2443
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2444
|
-
name: errorCode,
|
|
2445
|
-
$metadata: deserializeMetadata(output),
|
|
2446
|
-
};
|
|
2447
|
-
break;
|
|
1898
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2448
1899
|
case "ThrottlingException":
|
|
2449
1900
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
2450
|
-
|
|
2451
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2452
|
-
name: errorCode,
|
|
2453
|
-
$metadata: deserializeMetadata(output),
|
|
2454
|
-
};
|
|
2455
|
-
break;
|
|
1901
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2456
1902
|
case "ValidationException":
|
|
2457
1903
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
2458
|
-
|
|
2459
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2460
|
-
name: errorCode,
|
|
2461
|
-
$metadata: deserializeMetadata(output),
|
|
2462
|
-
};
|
|
2463
|
-
break;
|
|
1904
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2464
1905
|
default:
|
|
2465
1906
|
const parsedBody = parsedOutput.body;
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
...parsedBody,
|
|
2469
|
-
name: `${errorCode}`,
|
|
2470
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1907
|
+
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
1908
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2471
1909
|
$fault: "client",
|
|
2472
1910
|
$metadata: deserializeMetadata(output),
|
|
2473
|
-
};
|
|
1911
|
+
});
|
|
1912
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2474
1913
|
}
|
|
2475
|
-
const message = response.message || response.Message || errorCode;
|
|
2476
|
-
response.message = message;
|
|
2477
|
-
delete response.Message;
|
|
2478
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2479
1914
|
};
|
|
2480
1915
|
const deserializeAws_restJson1ListAppComponentCompliancesCommand = async (output, context) => {
|
|
2481
1916
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2507,59 +1942,28 @@ const deserializeAws_restJson1ListAppComponentCompliancesCommandError = async (o
|
|
|
2507
1942
|
switch (errorCode) {
|
|
2508
1943
|
case "AccessDeniedException":
|
|
2509
1944
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
2510
|
-
|
|
2511
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2512
|
-
name: errorCode,
|
|
2513
|
-
$metadata: deserializeMetadata(output),
|
|
2514
|
-
};
|
|
2515
|
-
break;
|
|
1945
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2516
1946
|
case "InternalServerException":
|
|
2517
1947
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
2518
|
-
|
|
2519
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2520
|
-
name: errorCode,
|
|
2521
|
-
$metadata: deserializeMetadata(output),
|
|
2522
|
-
};
|
|
2523
|
-
break;
|
|
1948
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2524
1949
|
case "ResourceNotFoundException":
|
|
2525
1950
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
2526
|
-
|
|
2527
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2528
|
-
name: errorCode,
|
|
2529
|
-
$metadata: deserializeMetadata(output),
|
|
2530
|
-
};
|
|
2531
|
-
break;
|
|
1951
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2532
1952
|
case "ThrottlingException":
|
|
2533
1953
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
2534
|
-
|
|
2535
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2536
|
-
name: errorCode,
|
|
2537
|
-
$metadata: deserializeMetadata(output),
|
|
2538
|
-
};
|
|
2539
|
-
break;
|
|
1954
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2540
1955
|
case "ValidationException":
|
|
2541
1956
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
2542
|
-
|
|
2543
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2544
|
-
name: errorCode,
|
|
2545
|
-
$metadata: deserializeMetadata(output),
|
|
2546
|
-
};
|
|
2547
|
-
break;
|
|
1957
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2548
1958
|
default:
|
|
2549
1959
|
const parsedBody = parsedOutput.body;
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
...parsedBody,
|
|
2553
|
-
name: `${errorCode}`,
|
|
2554
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1960
|
+
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
1961
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2555
1962
|
$fault: "client",
|
|
2556
1963
|
$metadata: deserializeMetadata(output),
|
|
2557
|
-
};
|
|
1964
|
+
});
|
|
1965
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2558
1966
|
}
|
|
2559
|
-
const message = response.message || response.Message || errorCode;
|
|
2560
|
-
response.message = message;
|
|
2561
|
-
delete response.Message;
|
|
2562
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2563
1967
|
};
|
|
2564
1968
|
const deserializeAws_restJson1ListAppComponentRecommendationsCommand = async (output, context) => {
|
|
2565
1969
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2591,59 +1995,28 @@ const deserializeAws_restJson1ListAppComponentRecommendationsCommandError = asyn
|
|
|
2591
1995
|
switch (errorCode) {
|
|
2592
1996
|
case "AccessDeniedException":
|
|
2593
1997
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
2594
|
-
|
|
2595
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2596
|
-
name: errorCode,
|
|
2597
|
-
$metadata: deserializeMetadata(output),
|
|
2598
|
-
};
|
|
2599
|
-
break;
|
|
1998
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2600
1999
|
case "InternalServerException":
|
|
2601
2000
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
2602
|
-
|
|
2603
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2604
|
-
name: errorCode,
|
|
2605
|
-
$metadata: deserializeMetadata(output),
|
|
2606
|
-
};
|
|
2607
|
-
break;
|
|
2001
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2608
2002
|
case "ResourceNotFoundException":
|
|
2609
2003
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
2610
|
-
|
|
2611
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2612
|
-
name: errorCode,
|
|
2613
|
-
$metadata: deserializeMetadata(output),
|
|
2614
|
-
};
|
|
2615
|
-
break;
|
|
2004
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2616
2005
|
case "ThrottlingException":
|
|
2617
2006
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
2618
|
-
|
|
2619
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2620
|
-
name: errorCode,
|
|
2621
|
-
$metadata: deserializeMetadata(output),
|
|
2622
|
-
};
|
|
2623
|
-
break;
|
|
2007
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2624
2008
|
case "ValidationException":
|
|
2625
2009
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
2626
|
-
|
|
2627
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2628
|
-
name: errorCode,
|
|
2629
|
-
$metadata: deserializeMetadata(output),
|
|
2630
|
-
};
|
|
2631
|
-
break;
|
|
2010
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2632
2011
|
default:
|
|
2633
2012
|
const parsedBody = parsedOutput.body;
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
...parsedBody,
|
|
2637
|
-
name: `${errorCode}`,
|
|
2638
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2013
|
+
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
2014
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2639
2015
|
$fault: "client",
|
|
2640
2016
|
$metadata: deserializeMetadata(output),
|
|
2641
|
-
};
|
|
2017
|
+
});
|
|
2018
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2642
2019
|
}
|
|
2643
|
-
const message = response.message || response.Message || errorCode;
|
|
2644
|
-
response.message = message;
|
|
2645
|
-
delete response.Message;
|
|
2646
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2647
2020
|
};
|
|
2648
2021
|
const deserializeAws_restJson1ListAppsCommand = async (output, context) => {
|
|
2649
2022
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2675,51 +2048,25 @@ const deserializeAws_restJson1ListAppsCommandError = async (output, context) =>
|
|
|
2675
2048
|
switch (errorCode) {
|
|
2676
2049
|
case "AccessDeniedException":
|
|
2677
2050
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
2678
|
-
|
|
2679
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2680
|
-
name: errorCode,
|
|
2681
|
-
$metadata: deserializeMetadata(output),
|
|
2682
|
-
};
|
|
2683
|
-
break;
|
|
2051
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2684
2052
|
case "InternalServerException":
|
|
2685
2053
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
2686
|
-
|
|
2687
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2688
|
-
name: errorCode,
|
|
2689
|
-
$metadata: deserializeMetadata(output),
|
|
2690
|
-
};
|
|
2691
|
-
break;
|
|
2054
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2692
2055
|
case "ThrottlingException":
|
|
2693
2056
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
2694
|
-
|
|
2695
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2696
|
-
name: errorCode,
|
|
2697
|
-
$metadata: deserializeMetadata(output),
|
|
2698
|
-
};
|
|
2699
|
-
break;
|
|
2057
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2700
2058
|
case "ValidationException":
|
|
2701
2059
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
2702
|
-
|
|
2703
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2704
|
-
name: errorCode,
|
|
2705
|
-
$metadata: deserializeMetadata(output),
|
|
2706
|
-
};
|
|
2707
|
-
break;
|
|
2060
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2708
2061
|
default:
|
|
2709
2062
|
const parsedBody = parsedOutput.body;
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
...parsedBody,
|
|
2713
|
-
name: `${errorCode}`,
|
|
2714
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2063
|
+
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
2064
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2715
2065
|
$fault: "client",
|
|
2716
2066
|
$metadata: deserializeMetadata(output),
|
|
2717
|
-
};
|
|
2067
|
+
});
|
|
2068
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2718
2069
|
}
|
|
2719
|
-
const message = response.message || response.Message || errorCode;
|
|
2720
|
-
response.message = message;
|
|
2721
|
-
delete response.Message;
|
|
2722
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2723
2070
|
};
|
|
2724
2071
|
const deserializeAws_restJson1ListAppVersionResourceMappingsCommand = async (output, context) => {
|
|
2725
2072
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2751,59 +2098,28 @@ const deserializeAws_restJson1ListAppVersionResourceMappingsCommandError = async
|
|
|
2751
2098
|
switch (errorCode) {
|
|
2752
2099
|
case "AccessDeniedException":
|
|
2753
2100
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
2754
|
-
|
|
2755
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2756
|
-
name: errorCode,
|
|
2757
|
-
$metadata: deserializeMetadata(output),
|
|
2758
|
-
};
|
|
2759
|
-
break;
|
|
2101
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2760
2102
|
case "InternalServerException":
|
|
2761
2103
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
2762
|
-
|
|
2763
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2764
|
-
name: errorCode,
|
|
2765
|
-
$metadata: deserializeMetadata(output),
|
|
2766
|
-
};
|
|
2767
|
-
break;
|
|
2104
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2768
2105
|
case "ResourceNotFoundException":
|
|
2769
2106
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
2770
|
-
|
|
2771
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2772
|
-
name: errorCode,
|
|
2773
|
-
$metadata: deserializeMetadata(output),
|
|
2774
|
-
};
|
|
2775
|
-
break;
|
|
2107
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2776
2108
|
case "ThrottlingException":
|
|
2777
2109
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
2778
|
-
|
|
2779
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2780
|
-
name: errorCode,
|
|
2781
|
-
$metadata: deserializeMetadata(output),
|
|
2782
|
-
};
|
|
2783
|
-
break;
|
|
2110
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2784
2111
|
case "ValidationException":
|
|
2785
2112
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
2786
|
-
|
|
2787
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2788
|
-
name: errorCode,
|
|
2789
|
-
$metadata: deserializeMetadata(output),
|
|
2790
|
-
};
|
|
2791
|
-
break;
|
|
2113
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2792
2114
|
default:
|
|
2793
2115
|
const parsedBody = parsedOutput.body;
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
...parsedBody,
|
|
2797
|
-
name: `${errorCode}`,
|
|
2798
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2116
|
+
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
2117
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2799
2118
|
$fault: "client",
|
|
2800
2119
|
$metadata: deserializeMetadata(output),
|
|
2801
|
-
};
|
|
2120
|
+
});
|
|
2121
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2802
2122
|
}
|
|
2803
|
-
const message = response.message || response.Message || errorCode;
|
|
2804
|
-
response.message = message;
|
|
2805
|
-
delete response.Message;
|
|
2806
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2807
2123
|
};
|
|
2808
2124
|
const deserializeAws_restJson1ListAppVersionResourcesCommand = async (output, context) => {
|
|
2809
2125
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2839,67 +2155,31 @@ const deserializeAws_restJson1ListAppVersionResourcesCommandError = async (outpu
|
|
|
2839
2155
|
switch (errorCode) {
|
|
2840
2156
|
case "AccessDeniedException":
|
|
2841
2157
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
2842
|
-
|
|
2843
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2844
|
-
name: errorCode,
|
|
2845
|
-
$metadata: deserializeMetadata(output),
|
|
2846
|
-
};
|
|
2847
|
-
break;
|
|
2158
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2848
2159
|
case "ConflictException":
|
|
2849
2160
|
case "com.amazonaws.resiliencehub#ConflictException":
|
|
2850
|
-
|
|
2851
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
2852
|
-
name: errorCode,
|
|
2853
|
-
$metadata: deserializeMetadata(output),
|
|
2854
|
-
};
|
|
2855
|
-
break;
|
|
2161
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
2856
2162
|
case "InternalServerException":
|
|
2857
2163
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
2858
|
-
|
|
2859
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2860
|
-
name: errorCode,
|
|
2861
|
-
$metadata: deserializeMetadata(output),
|
|
2862
|
-
};
|
|
2863
|
-
break;
|
|
2164
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2864
2165
|
case "ResourceNotFoundException":
|
|
2865
2166
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
2866
|
-
|
|
2867
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2868
|
-
name: errorCode,
|
|
2869
|
-
$metadata: deserializeMetadata(output),
|
|
2870
|
-
};
|
|
2871
|
-
break;
|
|
2167
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2872
2168
|
case "ThrottlingException":
|
|
2873
2169
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
2874
|
-
|
|
2875
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2876
|
-
name: errorCode,
|
|
2877
|
-
$metadata: deserializeMetadata(output),
|
|
2878
|
-
};
|
|
2879
|
-
break;
|
|
2170
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2880
2171
|
case "ValidationException":
|
|
2881
2172
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
2882
|
-
|
|
2883
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2884
|
-
name: errorCode,
|
|
2885
|
-
$metadata: deserializeMetadata(output),
|
|
2886
|
-
};
|
|
2887
|
-
break;
|
|
2173
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2888
2174
|
default:
|
|
2889
2175
|
const parsedBody = parsedOutput.body;
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
...parsedBody,
|
|
2893
|
-
name: `${errorCode}`,
|
|
2894
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2176
|
+
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
2177
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2895
2178
|
$fault: "client",
|
|
2896
2179
|
$metadata: deserializeMetadata(output),
|
|
2897
|
-
};
|
|
2180
|
+
});
|
|
2181
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2898
2182
|
}
|
|
2899
|
-
const message = response.message || response.Message || errorCode;
|
|
2900
|
-
response.message = message;
|
|
2901
|
-
delete response.Message;
|
|
2902
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2903
2183
|
};
|
|
2904
2184
|
const deserializeAws_restJson1ListAppVersionsCommand = async (output, context) => {
|
|
2905
2185
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2931,51 +2211,25 @@ const deserializeAws_restJson1ListAppVersionsCommandError = async (output, conte
|
|
|
2931
2211
|
switch (errorCode) {
|
|
2932
2212
|
case "AccessDeniedException":
|
|
2933
2213
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
2934
|
-
|
|
2935
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2936
|
-
name: errorCode,
|
|
2937
|
-
$metadata: deserializeMetadata(output),
|
|
2938
|
-
};
|
|
2939
|
-
break;
|
|
2214
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2940
2215
|
case "InternalServerException":
|
|
2941
2216
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
2942
|
-
|
|
2943
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2944
|
-
name: errorCode,
|
|
2945
|
-
$metadata: deserializeMetadata(output),
|
|
2946
|
-
};
|
|
2947
|
-
break;
|
|
2217
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2948
2218
|
case "ResourceNotFoundException":
|
|
2949
2219
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
2950
|
-
|
|
2951
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2952
|
-
name: errorCode,
|
|
2953
|
-
$metadata: deserializeMetadata(output),
|
|
2954
|
-
};
|
|
2955
|
-
break;
|
|
2220
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2956
2221
|
case "ValidationException":
|
|
2957
2222
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
2958
|
-
|
|
2959
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2960
|
-
name: errorCode,
|
|
2961
|
-
$metadata: deserializeMetadata(output),
|
|
2962
|
-
};
|
|
2963
|
-
break;
|
|
2223
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2964
2224
|
default:
|
|
2965
2225
|
const parsedBody = parsedOutput.body;
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
...parsedBody,
|
|
2969
|
-
name: `${errorCode}`,
|
|
2970
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2226
|
+
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
2227
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2971
2228
|
$fault: "client",
|
|
2972
2229
|
$metadata: deserializeMetadata(output),
|
|
2973
|
-
};
|
|
2230
|
+
});
|
|
2231
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2974
2232
|
}
|
|
2975
|
-
const message = response.message || response.Message || errorCode;
|
|
2976
|
-
response.message = message;
|
|
2977
|
-
delete response.Message;
|
|
2978
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2979
2233
|
};
|
|
2980
2234
|
const deserializeAws_restJson1ListRecommendationTemplatesCommand = async (output, context) => {
|
|
2981
2235
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3007,51 +2261,25 @@ const deserializeAws_restJson1ListRecommendationTemplatesCommandError = async (o
|
|
|
3007
2261
|
switch (errorCode) {
|
|
3008
2262
|
case "AccessDeniedException":
|
|
3009
2263
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
3010
|
-
|
|
3011
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3012
|
-
name: errorCode,
|
|
3013
|
-
$metadata: deserializeMetadata(output),
|
|
3014
|
-
};
|
|
3015
|
-
break;
|
|
2264
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3016
2265
|
case "InternalServerException":
|
|
3017
2266
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
3018
|
-
|
|
3019
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3020
|
-
name: errorCode,
|
|
3021
|
-
$metadata: deserializeMetadata(output),
|
|
3022
|
-
};
|
|
3023
|
-
break;
|
|
2267
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3024
2268
|
case "ThrottlingException":
|
|
3025
2269
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
3026
|
-
|
|
3027
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
3028
|
-
name: errorCode,
|
|
3029
|
-
$metadata: deserializeMetadata(output),
|
|
3030
|
-
};
|
|
3031
|
-
break;
|
|
2270
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3032
2271
|
case "ValidationException":
|
|
3033
2272
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
3034
|
-
|
|
3035
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3036
|
-
name: errorCode,
|
|
3037
|
-
$metadata: deserializeMetadata(output),
|
|
3038
|
-
};
|
|
3039
|
-
break;
|
|
2273
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3040
2274
|
default:
|
|
3041
2275
|
const parsedBody = parsedOutput.body;
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
...parsedBody,
|
|
3045
|
-
name: `${errorCode}`,
|
|
3046
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2276
|
+
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
2277
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3047
2278
|
$fault: "client",
|
|
3048
2279
|
$metadata: deserializeMetadata(output),
|
|
3049
|
-
};
|
|
2280
|
+
});
|
|
2281
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3050
2282
|
}
|
|
3051
|
-
const message = response.message || response.Message || errorCode;
|
|
3052
|
-
response.message = message;
|
|
3053
|
-
delete response.Message;
|
|
3054
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3055
2283
|
};
|
|
3056
2284
|
const deserializeAws_restJson1ListResiliencyPoliciesCommand = async (output, context) => {
|
|
3057
2285
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3083,59 +2311,28 @@ const deserializeAws_restJson1ListResiliencyPoliciesCommandError = async (output
|
|
|
3083
2311
|
switch (errorCode) {
|
|
3084
2312
|
case "AccessDeniedException":
|
|
3085
2313
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
3086
|
-
|
|
3087
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3088
|
-
name: errorCode,
|
|
3089
|
-
$metadata: deserializeMetadata(output),
|
|
3090
|
-
};
|
|
3091
|
-
break;
|
|
2314
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3092
2315
|
case "InternalServerException":
|
|
3093
2316
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
3094
|
-
|
|
3095
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3096
|
-
name: errorCode,
|
|
3097
|
-
$metadata: deserializeMetadata(output),
|
|
3098
|
-
};
|
|
3099
|
-
break;
|
|
2317
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3100
2318
|
case "ResourceNotFoundException":
|
|
3101
2319
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
3102
|
-
|
|
3103
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3104
|
-
name: errorCode,
|
|
3105
|
-
$metadata: deserializeMetadata(output),
|
|
3106
|
-
};
|
|
3107
|
-
break;
|
|
2320
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3108
2321
|
case "ThrottlingException":
|
|
3109
2322
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
3110
|
-
|
|
3111
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
3112
|
-
name: errorCode,
|
|
3113
|
-
$metadata: deserializeMetadata(output),
|
|
3114
|
-
};
|
|
3115
|
-
break;
|
|
2323
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3116
2324
|
case "ValidationException":
|
|
3117
2325
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
3118
|
-
|
|
3119
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3120
|
-
name: errorCode,
|
|
3121
|
-
$metadata: deserializeMetadata(output),
|
|
3122
|
-
};
|
|
3123
|
-
break;
|
|
2326
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3124
2327
|
default:
|
|
3125
2328
|
const parsedBody = parsedOutput.body;
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
...parsedBody,
|
|
3129
|
-
name: `${errorCode}`,
|
|
3130
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2329
|
+
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
2330
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3131
2331
|
$fault: "client",
|
|
3132
2332
|
$metadata: deserializeMetadata(output),
|
|
3133
|
-
};
|
|
2333
|
+
});
|
|
2334
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3134
2335
|
}
|
|
3135
|
-
const message = response.message || response.Message || errorCode;
|
|
3136
|
-
response.message = message;
|
|
3137
|
-
delete response.Message;
|
|
3138
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3139
2336
|
};
|
|
3140
2337
|
const deserializeAws_restJson1ListSopRecommendationsCommand = async (output, context) => {
|
|
3141
2338
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3167,67 +2364,31 @@ const deserializeAws_restJson1ListSopRecommendationsCommandError = async (output
|
|
|
3167
2364
|
switch (errorCode) {
|
|
3168
2365
|
case "AccessDeniedException":
|
|
3169
2366
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
3170
|
-
|
|
3171
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3172
|
-
name: errorCode,
|
|
3173
|
-
$metadata: deserializeMetadata(output),
|
|
3174
|
-
};
|
|
3175
|
-
break;
|
|
2367
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3176
2368
|
case "ConflictException":
|
|
3177
2369
|
case "com.amazonaws.resiliencehub#ConflictException":
|
|
3178
|
-
|
|
3179
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
3180
|
-
name: errorCode,
|
|
3181
|
-
$metadata: deserializeMetadata(output),
|
|
3182
|
-
};
|
|
3183
|
-
break;
|
|
2370
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
3184
2371
|
case "InternalServerException":
|
|
3185
2372
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
3186
|
-
|
|
3187
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3188
|
-
name: errorCode,
|
|
3189
|
-
$metadata: deserializeMetadata(output),
|
|
3190
|
-
};
|
|
3191
|
-
break;
|
|
2373
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3192
2374
|
case "ResourceNotFoundException":
|
|
3193
2375
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
3194
|
-
|
|
3195
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3196
|
-
name: errorCode,
|
|
3197
|
-
$metadata: deserializeMetadata(output),
|
|
3198
|
-
};
|
|
3199
|
-
break;
|
|
2376
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3200
2377
|
case "ThrottlingException":
|
|
3201
2378
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
3202
|
-
|
|
3203
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
3204
|
-
name: errorCode,
|
|
3205
|
-
$metadata: deserializeMetadata(output),
|
|
3206
|
-
};
|
|
3207
|
-
break;
|
|
2379
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3208
2380
|
case "ValidationException":
|
|
3209
2381
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
3210
|
-
|
|
3211
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3212
|
-
name: errorCode,
|
|
3213
|
-
$metadata: deserializeMetadata(output),
|
|
3214
|
-
};
|
|
3215
|
-
break;
|
|
2382
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3216
2383
|
default:
|
|
3217
2384
|
const parsedBody = parsedOutput.body;
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
...parsedBody,
|
|
3221
|
-
name: `${errorCode}`,
|
|
3222
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2385
|
+
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
2386
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3223
2387
|
$fault: "client",
|
|
3224
2388
|
$metadata: deserializeMetadata(output),
|
|
3225
|
-
};
|
|
2389
|
+
});
|
|
2390
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3226
2391
|
}
|
|
3227
|
-
const message = response.message || response.Message || errorCode;
|
|
3228
|
-
response.message = message;
|
|
3229
|
-
delete response.Message;
|
|
3230
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3231
2392
|
};
|
|
3232
2393
|
const deserializeAws_restJson1ListSuggestedResiliencyPoliciesCommand = async (output, context) => {
|
|
3233
2394
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3259,59 +2420,28 @@ const deserializeAws_restJson1ListSuggestedResiliencyPoliciesCommandError = asyn
|
|
|
3259
2420
|
switch (errorCode) {
|
|
3260
2421
|
case "AccessDeniedException":
|
|
3261
2422
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
3262
|
-
|
|
3263
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3264
|
-
name: errorCode,
|
|
3265
|
-
$metadata: deserializeMetadata(output),
|
|
3266
|
-
};
|
|
3267
|
-
break;
|
|
2423
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3268
2424
|
case "InternalServerException":
|
|
3269
2425
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
3270
|
-
|
|
3271
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3272
|
-
name: errorCode,
|
|
3273
|
-
$metadata: deserializeMetadata(output),
|
|
3274
|
-
};
|
|
3275
|
-
break;
|
|
2426
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3276
2427
|
case "ResourceNotFoundException":
|
|
3277
2428
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
3278
|
-
|
|
3279
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3280
|
-
name: errorCode,
|
|
3281
|
-
$metadata: deserializeMetadata(output),
|
|
3282
|
-
};
|
|
3283
|
-
break;
|
|
2429
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3284
2430
|
case "ThrottlingException":
|
|
3285
2431
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
3286
|
-
|
|
3287
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
3288
|
-
name: errorCode,
|
|
3289
|
-
$metadata: deserializeMetadata(output),
|
|
3290
|
-
};
|
|
3291
|
-
break;
|
|
2432
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3292
2433
|
case "ValidationException":
|
|
3293
2434
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
3294
|
-
|
|
3295
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3296
|
-
name: errorCode,
|
|
3297
|
-
$metadata: deserializeMetadata(output),
|
|
3298
|
-
};
|
|
3299
|
-
break;
|
|
2435
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3300
2436
|
default:
|
|
3301
2437
|
const parsedBody = parsedOutput.body;
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
...parsedBody,
|
|
3305
|
-
name: `${errorCode}`,
|
|
3306
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2438
|
+
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
2439
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3307
2440
|
$fault: "client",
|
|
3308
2441
|
$metadata: deserializeMetadata(output),
|
|
3309
|
-
};
|
|
2442
|
+
});
|
|
2443
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3310
2444
|
}
|
|
3311
|
-
const message = response.message || response.Message || errorCode;
|
|
3312
|
-
response.message = message;
|
|
3313
|
-
delete response.Message;
|
|
3314
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3315
2445
|
};
|
|
3316
2446
|
const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
|
|
3317
2447
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3339,59 +2469,28 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
3339
2469
|
switch (errorCode) {
|
|
3340
2470
|
case "AccessDeniedException":
|
|
3341
2471
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
3342
|
-
|
|
3343
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3344
|
-
name: errorCode,
|
|
3345
|
-
$metadata: deserializeMetadata(output),
|
|
3346
|
-
};
|
|
3347
|
-
break;
|
|
2472
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3348
2473
|
case "InternalServerException":
|
|
3349
2474
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
3350
|
-
|
|
3351
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3352
|
-
name: errorCode,
|
|
3353
|
-
$metadata: deserializeMetadata(output),
|
|
3354
|
-
};
|
|
3355
|
-
break;
|
|
2475
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3356
2476
|
case "ResourceNotFoundException":
|
|
3357
2477
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
3358
|
-
|
|
3359
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3360
|
-
name: errorCode,
|
|
3361
|
-
$metadata: deserializeMetadata(output),
|
|
3362
|
-
};
|
|
3363
|
-
break;
|
|
2478
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3364
2479
|
case "ThrottlingException":
|
|
3365
2480
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
3366
|
-
|
|
3367
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
3368
|
-
name: errorCode,
|
|
3369
|
-
$metadata: deserializeMetadata(output),
|
|
3370
|
-
};
|
|
3371
|
-
break;
|
|
2481
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3372
2482
|
case "ValidationException":
|
|
3373
2483
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
3374
|
-
|
|
3375
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3376
|
-
name: errorCode,
|
|
3377
|
-
$metadata: deserializeMetadata(output),
|
|
3378
|
-
};
|
|
3379
|
-
break;
|
|
2484
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3380
2485
|
default:
|
|
3381
2486
|
const parsedBody = parsedOutput.body;
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
...parsedBody,
|
|
3385
|
-
name: `${errorCode}`,
|
|
3386
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2487
|
+
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
2488
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3387
2489
|
$fault: "client",
|
|
3388
2490
|
$metadata: deserializeMetadata(output),
|
|
3389
|
-
};
|
|
2491
|
+
});
|
|
2492
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3390
2493
|
}
|
|
3391
|
-
const message = response.message || response.Message || errorCode;
|
|
3392
|
-
response.message = message;
|
|
3393
|
-
delete response.Message;
|
|
3394
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3395
2494
|
};
|
|
3396
2495
|
const deserializeAws_restJson1ListTestRecommendationsCommand = async (output, context) => {
|
|
3397
2496
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3423,67 +2522,31 @@ const deserializeAws_restJson1ListTestRecommendationsCommandError = async (outpu
|
|
|
3423
2522
|
switch (errorCode) {
|
|
3424
2523
|
case "AccessDeniedException":
|
|
3425
2524
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
3426
|
-
|
|
3427
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3428
|
-
name: errorCode,
|
|
3429
|
-
$metadata: deserializeMetadata(output),
|
|
3430
|
-
};
|
|
3431
|
-
break;
|
|
2525
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3432
2526
|
case "ConflictException":
|
|
3433
2527
|
case "com.amazonaws.resiliencehub#ConflictException":
|
|
3434
|
-
|
|
3435
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
3436
|
-
name: errorCode,
|
|
3437
|
-
$metadata: deserializeMetadata(output),
|
|
3438
|
-
};
|
|
3439
|
-
break;
|
|
2528
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
3440
2529
|
case "InternalServerException":
|
|
3441
2530
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
3442
|
-
|
|
3443
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3444
|
-
name: errorCode,
|
|
3445
|
-
$metadata: deserializeMetadata(output),
|
|
3446
|
-
};
|
|
3447
|
-
break;
|
|
2531
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3448
2532
|
case "ResourceNotFoundException":
|
|
3449
2533
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
3450
|
-
|
|
3451
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3452
|
-
name: errorCode,
|
|
3453
|
-
$metadata: deserializeMetadata(output),
|
|
3454
|
-
};
|
|
3455
|
-
break;
|
|
2534
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3456
2535
|
case "ThrottlingException":
|
|
3457
2536
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
3458
|
-
|
|
3459
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
3460
|
-
name: errorCode,
|
|
3461
|
-
$metadata: deserializeMetadata(output),
|
|
3462
|
-
};
|
|
3463
|
-
break;
|
|
2537
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3464
2538
|
case "ValidationException":
|
|
3465
2539
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
3466
|
-
|
|
3467
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3468
|
-
name: errorCode,
|
|
3469
|
-
$metadata: deserializeMetadata(output),
|
|
3470
|
-
};
|
|
3471
|
-
break;
|
|
2540
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3472
2541
|
default:
|
|
3473
2542
|
const parsedBody = parsedOutput.body;
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
...parsedBody,
|
|
3477
|
-
name: `${errorCode}`,
|
|
3478
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2543
|
+
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
2544
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3479
2545
|
$fault: "client",
|
|
3480
2546
|
$metadata: deserializeMetadata(output),
|
|
3481
|
-
};
|
|
2547
|
+
});
|
|
2548
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3482
2549
|
}
|
|
3483
|
-
const message = response.message || response.Message || errorCode;
|
|
3484
|
-
response.message = message;
|
|
3485
|
-
delete response.Message;
|
|
3486
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3487
2550
|
};
|
|
3488
2551
|
const deserializeAws_restJson1ListUnsupportedAppVersionResourcesCommand = async (output, context) => {
|
|
3489
2552
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3519,67 +2582,31 @@ const deserializeAws_restJson1ListUnsupportedAppVersionResourcesCommandError = a
|
|
|
3519
2582
|
switch (errorCode) {
|
|
3520
2583
|
case "AccessDeniedException":
|
|
3521
2584
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
3522
|
-
|
|
3523
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3524
|
-
name: errorCode,
|
|
3525
|
-
$metadata: deserializeMetadata(output),
|
|
3526
|
-
};
|
|
3527
|
-
break;
|
|
2585
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3528
2586
|
case "ConflictException":
|
|
3529
2587
|
case "com.amazonaws.resiliencehub#ConflictException":
|
|
3530
|
-
|
|
3531
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
3532
|
-
name: errorCode,
|
|
3533
|
-
$metadata: deserializeMetadata(output),
|
|
3534
|
-
};
|
|
3535
|
-
break;
|
|
2588
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
3536
2589
|
case "InternalServerException":
|
|
3537
2590
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
3538
|
-
|
|
3539
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3540
|
-
name: errorCode,
|
|
3541
|
-
$metadata: deserializeMetadata(output),
|
|
3542
|
-
};
|
|
3543
|
-
break;
|
|
2591
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3544
2592
|
case "ResourceNotFoundException":
|
|
3545
2593
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
3546
|
-
|
|
3547
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3548
|
-
name: errorCode,
|
|
3549
|
-
$metadata: deserializeMetadata(output),
|
|
3550
|
-
};
|
|
3551
|
-
break;
|
|
2594
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3552
2595
|
case "ThrottlingException":
|
|
3553
2596
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
3554
|
-
|
|
3555
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
3556
|
-
name: errorCode,
|
|
3557
|
-
$metadata: deserializeMetadata(output),
|
|
3558
|
-
};
|
|
3559
|
-
break;
|
|
2597
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3560
2598
|
case "ValidationException":
|
|
3561
2599
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
3562
|
-
|
|
3563
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3564
|
-
name: errorCode,
|
|
3565
|
-
$metadata: deserializeMetadata(output),
|
|
3566
|
-
};
|
|
3567
|
-
break;
|
|
2600
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3568
2601
|
default:
|
|
3569
2602
|
const parsedBody = parsedOutput.body;
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
...parsedBody,
|
|
3573
|
-
name: `${errorCode}`,
|
|
3574
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2603
|
+
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
2604
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3575
2605
|
$fault: "client",
|
|
3576
2606
|
$metadata: deserializeMetadata(output),
|
|
3577
|
-
};
|
|
2607
|
+
});
|
|
2608
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3578
2609
|
}
|
|
3579
|
-
const message = response.message || response.Message || errorCode;
|
|
3580
|
-
response.message = message;
|
|
3581
|
-
delete response.Message;
|
|
3582
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3583
2610
|
};
|
|
3584
2611
|
const deserializeAws_restJson1PublishAppVersionCommand = async (output, context) => {
|
|
3585
2612
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3611,67 +2638,31 @@ const deserializeAws_restJson1PublishAppVersionCommandError = async (output, con
|
|
|
3611
2638
|
switch (errorCode) {
|
|
3612
2639
|
case "AccessDeniedException":
|
|
3613
2640
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
3614
|
-
|
|
3615
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3616
|
-
name: errorCode,
|
|
3617
|
-
$metadata: deserializeMetadata(output),
|
|
3618
|
-
};
|
|
3619
|
-
break;
|
|
2641
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3620
2642
|
case "ConflictException":
|
|
3621
2643
|
case "com.amazonaws.resiliencehub#ConflictException":
|
|
3622
|
-
|
|
3623
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
3624
|
-
name: errorCode,
|
|
3625
|
-
$metadata: deserializeMetadata(output),
|
|
3626
|
-
};
|
|
3627
|
-
break;
|
|
2644
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
3628
2645
|
case "InternalServerException":
|
|
3629
2646
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
3630
|
-
|
|
3631
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3632
|
-
name: errorCode,
|
|
3633
|
-
$metadata: deserializeMetadata(output),
|
|
3634
|
-
};
|
|
3635
|
-
break;
|
|
2647
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3636
2648
|
case "ResourceNotFoundException":
|
|
3637
2649
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
3638
|
-
|
|
3639
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3640
|
-
name: errorCode,
|
|
3641
|
-
$metadata: deserializeMetadata(output),
|
|
3642
|
-
};
|
|
3643
|
-
break;
|
|
2650
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3644
2651
|
case "ThrottlingException":
|
|
3645
2652
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
3646
|
-
|
|
3647
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
3648
|
-
name: errorCode,
|
|
3649
|
-
$metadata: deserializeMetadata(output),
|
|
3650
|
-
};
|
|
3651
|
-
break;
|
|
2653
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3652
2654
|
case "ValidationException":
|
|
3653
2655
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
3654
|
-
|
|
3655
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3656
|
-
name: errorCode,
|
|
3657
|
-
$metadata: deserializeMetadata(output),
|
|
3658
|
-
};
|
|
3659
|
-
break;
|
|
2656
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3660
2657
|
default:
|
|
3661
2658
|
const parsedBody = parsedOutput.body;
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
...parsedBody,
|
|
3665
|
-
name: `${errorCode}`,
|
|
3666
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2659
|
+
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
2660
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3667
2661
|
$fault: "client",
|
|
3668
2662
|
$metadata: deserializeMetadata(output),
|
|
3669
|
-
};
|
|
2663
|
+
});
|
|
2664
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3670
2665
|
}
|
|
3671
|
-
const message = response.message || response.Message || errorCode;
|
|
3672
|
-
response.message = message;
|
|
3673
|
-
delete response.Message;
|
|
3674
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3675
2666
|
};
|
|
3676
2667
|
const deserializeAws_restJson1PutDraftAppVersionTemplateCommand = async (output, context) => {
|
|
3677
2668
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3703,67 +2694,31 @@ const deserializeAws_restJson1PutDraftAppVersionTemplateCommandError = async (ou
|
|
|
3703
2694
|
switch (errorCode) {
|
|
3704
2695
|
case "AccessDeniedException":
|
|
3705
2696
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
3706
|
-
|
|
3707
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3708
|
-
name: errorCode,
|
|
3709
|
-
$metadata: deserializeMetadata(output),
|
|
3710
|
-
};
|
|
3711
|
-
break;
|
|
2697
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3712
2698
|
case "ConflictException":
|
|
3713
2699
|
case "com.amazonaws.resiliencehub#ConflictException":
|
|
3714
|
-
|
|
3715
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
3716
|
-
name: errorCode,
|
|
3717
|
-
$metadata: deserializeMetadata(output),
|
|
3718
|
-
};
|
|
3719
|
-
break;
|
|
2700
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
3720
2701
|
case "InternalServerException":
|
|
3721
2702
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
3722
|
-
|
|
3723
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3724
|
-
name: errorCode,
|
|
3725
|
-
$metadata: deserializeMetadata(output),
|
|
3726
|
-
};
|
|
3727
|
-
break;
|
|
2703
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3728
2704
|
case "ResourceNotFoundException":
|
|
3729
2705
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
3730
|
-
|
|
3731
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3732
|
-
name: errorCode,
|
|
3733
|
-
$metadata: deserializeMetadata(output),
|
|
3734
|
-
};
|
|
3735
|
-
break;
|
|
2706
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3736
2707
|
case "ThrottlingException":
|
|
3737
2708
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
3738
|
-
|
|
3739
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
3740
|
-
name: errorCode,
|
|
3741
|
-
$metadata: deserializeMetadata(output),
|
|
3742
|
-
};
|
|
3743
|
-
break;
|
|
2709
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3744
2710
|
case "ValidationException":
|
|
3745
2711
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
3746
|
-
|
|
3747
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3748
|
-
name: errorCode,
|
|
3749
|
-
$metadata: deserializeMetadata(output),
|
|
3750
|
-
};
|
|
3751
|
-
break;
|
|
2712
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3752
2713
|
default:
|
|
3753
2714
|
const parsedBody = parsedOutput.body;
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
...parsedBody,
|
|
3757
|
-
name: `${errorCode}`,
|
|
3758
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2715
|
+
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
2716
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3759
2717
|
$fault: "client",
|
|
3760
2718
|
$metadata: deserializeMetadata(output),
|
|
3761
|
-
};
|
|
2719
|
+
});
|
|
2720
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3762
2721
|
}
|
|
3763
|
-
const message = response.message || response.Message || errorCode;
|
|
3764
|
-
response.message = message;
|
|
3765
|
-
delete response.Message;
|
|
3766
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3767
2722
|
};
|
|
3768
2723
|
const deserializeAws_restJson1RemoveDraftAppVersionResourceMappingsCommand = async (output, context) => {
|
|
3769
2724
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3795,67 +2750,31 @@ const deserializeAws_restJson1RemoveDraftAppVersionResourceMappingsCommandError
|
|
|
3795
2750
|
switch (errorCode) {
|
|
3796
2751
|
case "AccessDeniedException":
|
|
3797
2752
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
3798
|
-
|
|
3799
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3800
|
-
name: errorCode,
|
|
3801
|
-
$metadata: deserializeMetadata(output),
|
|
3802
|
-
};
|
|
3803
|
-
break;
|
|
2753
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3804
2754
|
case "ConflictException":
|
|
3805
2755
|
case "com.amazonaws.resiliencehub#ConflictException":
|
|
3806
|
-
|
|
3807
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
3808
|
-
name: errorCode,
|
|
3809
|
-
$metadata: deserializeMetadata(output),
|
|
3810
|
-
};
|
|
3811
|
-
break;
|
|
2756
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
3812
2757
|
case "InternalServerException":
|
|
3813
2758
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
3814
|
-
|
|
3815
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3816
|
-
name: errorCode,
|
|
3817
|
-
$metadata: deserializeMetadata(output),
|
|
3818
|
-
};
|
|
3819
|
-
break;
|
|
2759
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3820
2760
|
case "ResourceNotFoundException":
|
|
3821
2761
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
3822
|
-
|
|
3823
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3824
|
-
name: errorCode,
|
|
3825
|
-
$metadata: deserializeMetadata(output),
|
|
3826
|
-
};
|
|
3827
|
-
break;
|
|
2762
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3828
2763
|
case "ThrottlingException":
|
|
3829
2764
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
3830
|
-
|
|
3831
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
3832
|
-
name: errorCode,
|
|
3833
|
-
$metadata: deserializeMetadata(output),
|
|
3834
|
-
};
|
|
3835
|
-
break;
|
|
2765
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3836
2766
|
case "ValidationException":
|
|
3837
2767
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
3838
|
-
|
|
3839
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3840
|
-
name: errorCode,
|
|
3841
|
-
$metadata: deserializeMetadata(output),
|
|
3842
|
-
};
|
|
3843
|
-
break;
|
|
2768
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3844
2769
|
default:
|
|
3845
2770
|
const parsedBody = parsedOutput.body;
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
...parsedBody,
|
|
3849
|
-
name: `${errorCode}`,
|
|
3850
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2771
|
+
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
2772
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3851
2773
|
$fault: "client",
|
|
3852
2774
|
$metadata: deserializeMetadata(output),
|
|
3853
|
-
};
|
|
2775
|
+
});
|
|
2776
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3854
2777
|
}
|
|
3855
|
-
const message = response.message || response.Message || errorCode;
|
|
3856
|
-
response.message = message;
|
|
3857
|
-
delete response.Message;
|
|
3858
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3859
2778
|
};
|
|
3860
2779
|
const deserializeAws_restJson1ResolveAppVersionResourcesCommand = async (output, context) => {
|
|
3861
2780
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3895,67 +2814,31 @@ const deserializeAws_restJson1ResolveAppVersionResourcesCommandError = async (ou
|
|
|
3895
2814
|
switch (errorCode) {
|
|
3896
2815
|
case "AccessDeniedException":
|
|
3897
2816
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
3898
|
-
|
|
3899
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3900
|
-
name: errorCode,
|
|
3901
|
-
$metadata: deserializeMetadata(output),
|
|
3902
|
-
};
|
|
3903
|
-
break;
|
|
2817
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3904
2818
|
case "ConflictException":
|
|
3905
2819
|
case "com.amazonaws.resiliencehub#ConflictException":
|
|
3906
|
-
|
|
3907
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
3908
|
-
name: errorCode,
|
|
3909
|
-
$metadata: deserializeMetadata(output),
|
|
3910
|
-
};
|
|
3911
|
-
break;
|
|
2820
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
3912
2821
|
case "InternalServerException":
|
|
3913
2822
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
3914
|
-
|
|
3915
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3916
|
-
name: errorCode,
|
|
3917
|
-
$metadata: deserializeMetadata(output),
|
|
3918
|
-
};
|
|
3919
|
-
break;
|
|
2823
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3920
2824
|
case "ResourceNotFoundException":
|
|
3921
2825
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
3922
|
-
|
|
3923
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3924
|
-
name: errorCode,
|
|
3925
|
-
$metadata: deserializeMetadata(output),
|
|
3926
|
-
};
|
|
3927
|
-
break;
|
|
2826
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3928
2827
|
case "ThrottlingException":
|
|
3929
2828
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
3930
|
-
|
|
3931
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
3932
|
-
name: errorCode,
|
|
3933
|
-
$metadata: deserializeMetadata(output),
|
|
3934
|
-
};
|
|
3935
|
-
break;
|
|
2829
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3936
2830
|
case "ValidationException":
|
|
3937
2831
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
3938
|
-
|
|
3939
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3940
|
-
name: errorCode,
|
|
3941
|
-
$metadata: deserializeMetadata(output),
|
|
3942
|
-
};
|
|
3943
|
-
break;
|
|
2832
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3944
2833
|
default:
|
|
3945
2834
|
const parsedBody = parsedOutput.body;
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
...parsedBody,
|
|
3949
|
-
name: `${errorCode}`,
|
|
3950
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2835
|
+
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
2836
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3951
2837
|
$fault: "client",
|
|
3952
2838
|
$metadata: deserializeMetadata(output),
|
|
3953
|
-
};
|
|
2839
|
+
});
|
|
2840
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3954
2841
|
}
|
|
3955
|
-
const message = response.message || response.Message || errorCode;
|
|
3956
|
-
response.message = message;
|
|
3957
|
-
delete response.Message;
|
|
3958
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3959
2842
|
};
|
|
3960
2843
|
const deserializeAws_restJson1StartAppAssessmentCommand = async (output, context) => {
|
|
3961
2844
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3983,75 +2866,34 @@ const deserializeAws_restJson1StartAppAssessmentCommandError = async (output, co
|
|
|
3983
2866
|
switch (errorCode) {
|
|
3984
2867
|
case "AccessDeniedException":
|
|
3985
2868
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
3986
|
-
|
|
3987
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3988
|
-
name: errorCode,
|
|
3989
|
-
$metadata: deserializeMetadata(output),
|
|
3990
|
-
};
|
|
3991
|
-
break;
|
|
2869
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3992
2870
|
case "ConflictException":
|
|
3993
2871
|
case "com.amazonaws.resiliencehub#ConflictException":
|
|
3994
|
-
|
|
3995
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
3996
|
-
name: errorCode,
|
|
3997
|
-
$metadata: deserializeMetadata(output),
|
|
3998
|
-
};
|
|
3999
|
-
break;
|
|
2872
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
4000
2873
|
case "InternalServerException":
|
|
4001
2874
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
4002
|
-
|
|
4003
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
4004
|
-
name: errorCode,
|
|
4005
|
-
$metadata: deserializeMetadata(output),
|
|
4006
|
-
};
|
|
4007
|
-
break;
|
|
2875
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
4008
2876
|
case "ResourceNotFoundException":
|
|
4009
2877
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
4010
|
-
|
|
4011
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
4012
|
-
name: errorCode,
|
|
4013
|
-
$metadata: deserializeMetadata(output),
|
|
4014
|
-
};
|
|
4015
|
-
break;
|
|
2878
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4016
2879
|
case "ServiceQuotaExceededException":
|
|
4017
2880
|
case "com.amazonaws.resiliencehub#ServiceQuotaExceededException":
|
|
4018
|
-
|
|
4019
|
-
...(await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
4020
|
-
name: errorCode,
|
|
4021
|
-
$metadata: deserializeMetadata(output),
|
|
4022
|
-
};
|
|
4023
|
-
break;
|
|
2881
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
4024
2882
|
case "ThrottlingException":
|
|
4025
2883
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
4026
|
-
|
|
4027
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
4028
|
-
name: errorCode,
|
|
4029
|
-
$metadata: deserializeMetadata(output),
|
|
4030
|
-
};
|
|
4031
|
-
break;
|
|
2884
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4032
2885
|
case "ValidationException":
|
|
4033
2886
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
4034
|
-
|
|
4035
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
4036
|
-
name: errorCode,
|
|
4037
|
-
$metadata: deserializeMetadata(output),
|
|
4038
|
-
};
|
|
4039
|
-
break;
|
|
2887
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4040
2888
|
default:
|
|
4041
2889
|
const parsedBody = parsedOutput.body;
|
|
4042
|
-
|
|
4043
|
-
|
|
4044
|
-
...parsedBody,
|
|
4045
|
-
name: `${errorCode}`,
|
|
4046
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2890
|
+
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
2891
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4047
2892
|
$fault: "client",
|
|
4048
2893
|
$metadata: deserializeMetadata(output),
|
|
4049
|
-
};
|
|
2894
|
+
});
|
|
2895
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4050
2896
|
}
|
|
4051
|
-
const message = response.message || response.Message || errorCode;
|
|
4052
|
-
response.message = message;
|
|
4053
|
-
delete response.Message;
|
|
4054
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4055
2897
|
};
|
|
4056
2898
|
const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
4057
2899
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -4075,59 +2917,28 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
4075
2917
|
switch (errorCode) {
|
|
4076
2918
|
case "AccessDeniedException":
|
|
4077
2919
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
4078
|
-
|
|
4079
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
4080
|
-
name: errorCode,
|
|
4081
|
-
$metadata: deserializeMetadata(output),
|
|
4082
|
-
};
|
|
4083
|
-
break;
|
|
2920
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
4084
2921
|
case "InternalServerException":
|
|
4085
2922
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
4086
|
-
|
|
4087
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
4088
|
-
name: errorCode,
|
|
4089
|
-
$metadata: deserializeMetadata(output),
|
|
4090
|
-
};
|
|
4091
|
-
break;
|
|
2923
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
4092
2924
|
case "ResourceNotFoundException":
|
|
4093
2925
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
4094
|
-
|
|
4095
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
4096
|
-
name: errorCode,
|
|
4097
|
-
$metadata: deserializeMetadata(output),
|
|
4098
|
-
};
|
|
4099
|
-
break;
|
|
2926
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4100
2927
|
case "ThrottlingException":
|
|
4101
2928
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
4102
|
-
|
|
4103
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
4104
|
-
name: errorCode,
|
|
4105
|
-
$metadata: deserializeMetadata(output),
|
|
4106
|
-
};
|
|
4107
|
-
break;
|
|
2929
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4108
2930
|
case "ValidationException":
|
|
4109
2931
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
4110
|
-
|
|
4111
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
4112
|
-
name: errorCode,
|
|
4113
|
-
$metadata: deserializeMetadata(output),
|
|
4114
|
-
};
|
|
4115
|
-
break;
|
|
2932
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4116
2933
|
default:
|
|
4117
2934
|
const parsedBody = parsedOutput.body;
|
|
4118
|
-
|
|
4119
|
-
|
|
4120
|
-
...parsedBody,
|
|
4121
|
-
name: `${errorCode}`,
|
|
4122
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2935
|
+
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
2936
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4123
2937
|
$fault: "client",
|
|
4124
2938
|
$metadata: deserializeMetadata(output),
|
|
4125
|
-
};
|
|
2939
|
+
});
|
|
2940
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4126
2941
|
}
|
|
4127
|
-
const message = response.message || response.Message || errorCode;
|
|
4128
|
-
response.message = message;
|
|
4129
|
-
delete response.Message;
|
|
4130
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4131
2942
|
};
|
|
4132
2943
|
const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
4133
2944
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -4151,59 +2962,28 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
4151
2962
|
switch (errorCode) {
|
|
4152
2963
|
case "AccessDeniedException":
|
|
4153
2964
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
4154
|
-
|
|
4155
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
4156
|
-
name: errorCode,
|
|
4157
|
-
$metadata: deserializeMetadata(output),
|
|
4158
|
-
};
|
|
4159
|
-
break;
|
|
2965
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
4160
2966
|
case "InternalServerException":
|
|
4161
2967
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
4162
|
-
|
|
4163
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
4164
|
-
name: errorCode,
|
|
4165
|
-
$metadata: deserializeMetadata(output),
|
|
4166
|
-
};
|
|
4167
|
-
break;
|
|
2968
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
4168
2969
|
case "ResourceNotFoundException":
|
|
4169
2970
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
4170
|
-
|
|
4171
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
4172
|
-
name: errorCode,
|
|
4173
|
-
$metadata: deserializeMetadata(output),
|
|
4174
|
-
};
|
|
4175
|
-
break;
|
|
2971
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4176
2972
|
case "ThrottlingException":
|
|
4177
2973
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
4178
|
-
|
|
4179
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
4180
|
-
name: errorCode,
|
|
4181
|
-
$metadata: deserializeMetadata(output),
|
|
4182
|
-
};
|
|
4183
|
-
break;
|
|
2974
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4184
2975
|
case "ValidationException":
|
|
4185
2976
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
4186
|
-
|
|
4187
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
4188
|
-
name: errorCode,
|
|
4189
|
-
$metadata: deserializeMetadata(output),
|
|
4190
|
-
};
|
|
4191
|
-
break;
|
|
2977
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4192
2978
|
default:
|
|
4193
2979
|
const parsedBody = parsedOutput.body;
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
...parsedBody,
|
|
4197
|
-
name: `${errorCode}`,
|
|
4198
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2980
|
+
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
2981
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4199
2982
|
$fault: "client",
|
|
4200
2983
|
$metadata: deserializeMetadata(output),
|
|
4201
|
-
};
|
|
2984
|
+
});
|
|
2985
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4202
2986
|
}
|
|
4203
|
-
const message = response.message || response.Message || errorCode;
|
|
4204
|
-
response.message = message;
|
|
4205
|
-
delete response.Message;
|
|
4206
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4207
2987
|
};
|
|
4208
2988
|
const deserializeAws_restJson1UpdateAppCommand = async (output, context) => {
|
|
4209
2989
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -4231,67 +3011,31 @@ const deserializeAws_restJson1UpdateAppCommandError = async (output, context) =>
|
|
|
4231
3011
|
switch (errorCode) {
|
|
4232
3012
|
case "AccessDeniedException":
|
|
4233
3013
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
4234
|
-
|
|
4235
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
4236
|
-
name: errorCode,
|
|
4237
|
-
$metadata: deserializeMetadata(output),
|
|
4238
|
-
};
|
|
4239
|
-
break;
|
|
3014
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
4240
3015
|
case "ConflictException":
|
|
4241
3016
|
case "com.amazonaws.resiliencehub#ConflictException":
|
|
4242
|
-
|
|
4243
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
4244
|
-
name: errorCode,
|
|
4245
|
-
$metadata: deserializeMetadata(output),
|
|
4246
|
-
};
|
|
4247
|
-
break;
|
|
3017
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
4248
3018
|
case "InternalServerException":
|
|
4249
3019
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
4250
|
-
|
|
4251
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
4252
|
-
name: errorCode,
|
|
4253
|
-
$metadata: deserializeMetadata(output),
|
|
4254
|
-
};
|
|
4255
|
-
break;
|
|
3020
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
4256
3021
|
case "ResourceNotFoundException":
|
|
4257
3022
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
4258
|
-
|
|
4259
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
4260
|
-
name: errorCode,
|
|
4261
|
-
$metadata: deserializeMetadata(output),
|
|
4262
|
-
};
|
|
4263
|
-
break;
|
|
3023
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4264
3024
|
case "ThrottlingException":
|
|
4265
3025
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
4266
|
-
|
|
4267
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
4268
|
-
name: errorCode,
|
|
4269
|
-
$metadata: deserializeMetadata(output),
|
|
4270
|
-
};
|
|
4271
|
-
break;
|
|
3026
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4272
3027
|
case "ValidationException":
|
|
4273
3028
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
4274
|
-
|
|
4275
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
4276
|
-
name: errorCode,
|
|
4277
|
-
$metadata: deserializeMetadata(output),
|
|
4278
|
-
};
|
|
4279
|
-
break;
|
|
3029
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4280
3030
|
default:
|
|
4281
3031
|
const parsedBody = parsedOutput.body;
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
...parsedBody,
|
|
4285
|
-
name: `${errorCode}`,
|
|
4286
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3032
|
+
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
3033
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4287
3034
|
$fault: "client",
|
|
4288
3035
|
$metadata: deserializeMetadata(output),
|
|
4289
|
-
};
|
|
3036
|
+
});
|
|
3037
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4290
3038
|
}
|
|
4291
|
-
const message = response.message || response.Message || errorCode;
|
|
4292
|
-
response.message = message;
|
|
4293
|
-
delete response.Message;
|
|
4294
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4295
3039
|
};
|
|
4296
3040
|
const deserializeAws_restJson1UpdateResiliencyPolicyCommand = async (output, context) => {
|
|
4297
3041
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -4319,90 +3063,46 @@ const deserializeAws_restJson1UpdateResiliencyPolicyCommandError = async (output
|
|
|
4319
3063
|
switch (errorCode) {
|
|
4320
3064
|
case "AccessDeniedException":
|
|
4321
3065
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
4322
|
-
|
|
4323
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
4324
|
-
name: errorCode,
|
|
4325
|
-
$metadata: deserializeMetadata(output),
|
|
4326
|
-
};
|
|
4327
|
-
break;
|
|
3066
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
4328
3067
|
case "ConflictException":
|
|
4329
3068
|
case "com.amazonaws.resiliencehub#ConflictException":
|
|
4330
|
-
|
|
4331
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
4332
|
-
name: errorCode,
|
|
4333
|
-
$metadata: deserializeMetadata(output),
|
|
4334
|
-
};
|
|
4335
|
-
break;
|
|
3069
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
4336
3070
|
case "InternalServerException":
|
|
4337
3071
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
4338
|
-
|
|
4339
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
4340
|
-
name: errorCode,
|
|
4341
|
-
$metadata: deserializeMetadata(output),
|
|
4342
|
-
};
|
|
4343
|
-
break;
|
|
3072
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
4344
3073
|
case "ResourceNotFoundException":
|
|
4345
3074
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
4346
|
-
|
|
4347
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
4348
|
-
name: errorCode,
|
|
4349
|
-
$metadata: deserializeMetadata(output),
|
|
4350
|
-
};
|
|
4351
|
-
break;
|
|
3075
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4352
3076
|
case "ThrottlingException":
|
|
4353
3077
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
4354
|
-
|
|
4355
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
4356
|
-
name: errorCode,
|
|
4357
|
-
$metadata: deserializeMetadata(output),
|
|
4358
|
-
};
|
|
4359
|
-
break;
|
|
3078
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4360
3079
|
case "ValidationException":
|
|
4361
3080
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
4362
|
-
|
|
4363
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
4364
|
-
name: errorCode,
|
|
4365
|
-
$metadata: deserializeMetadata(output),
|
|
4366
|
-
};
|
|
4367
|
-
break;
|
|
3081
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4368
3082
|
default:
|
|
4369
3083
|
const parsedBody = parsedOutput.body;
|
|
4370
|
-
|
|
4371
|
-
|
|
4372
|
-
...parsedBody,
|
|
4373
|
-
name: `${errorCode}`,
|
|
4374
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3084
|
+
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
3085
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4375
3086
|
$fault: "client",
|
|
4376
3087
|
$metadata: deserializeMetadata(output),
|
|
4377
|
-
};
|
|
3088
|
+
});
|
|
3089
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4378
3090
|
}
|
|
4379
|
-
const message = response.message || response.Message || errorCode;
|
|
4380
|
-
response.message = message;
|
|
4381
|
-
delete response.Message;
|
|
4382
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4383
3091
|
};
|
|
4384
3092
|
const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
4385
|
-
const contents = {
|
|
4386
|
-
name: "AccessDeniedException",
|
|
4387
|
-
$fault: "client",
|
|
4388
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4389
|
-
message: undefined,
|
|
4390
|
-
};
|
|
3093
|
+
const contents = {};
|
|
4391
3094
|
const data = parsedOutput.body;
|
|
4392
3095
|
if (data.message !== undefined && data.message !== null) {
|
|
4393
3096
|
contents.message = smithy_client_1.expectString(data.message);
|
|
4394
3097
|
}
|
|
4395
|
-
|
|
3098
|
+
const exception = new models_0_1.AccessDeniedException({
|
|
3099
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3100
|
+
...contents,
|
|
3101
|
+
});
|
|
3102
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
4396
3103
|
};
|
|
4397
3104
|
const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
4398
|
-
const contents = {
|
|
4399
|
-
name: "ConflictException",
|
|
4400
|
-
$fault: "client",
|
|
4401
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4402
|
-
message: undefined,
|
|
4403
|
-
resourceId: undefined,
|
|
4404
|
-
resourceType: undefined,
|
|
4405
|
-
};
|
|
3105
|
+
const contents = {};
|
|
4406
3106
|
const data = parsedOutput.body;
|
|
4407
3107
|
if (data.message !== undefined && data.message !== null) {
|
|
4408
3108
|
contents.message = smithy_client_1.expectString(data.message);
|
|
@@ -4413,30 +3113,26 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
4413
3113
|
if (data.resourceType !== undefined && data.resourceType !== null) {
|
|
4414
3114
|
contents.resourceType = smithy_client_1.expectString(data.resourceType);
|
|
4415
3115
|
}
|
|
4416
|
-
|
|
3116
|
+
const exception = new models_0_1.ConflictException({
|
|
3117
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3118
|
+
...contents,
|
|
3119
|
+
});
|
|
3120
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
4417
3121
|
};
|
|
4418
3122
|
const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
|
|
4419
|
-
const contents = {
|
|
4420
|
-
name: "InternalServerException",
|
|
4421
|
-
$fault: "server",
|
|
4422
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4423
|
-
message: undefined,
|
|
4424
|
-
};
|
|
3123
|
+
const contents = {};
|
|
4425
3124
|
const data = parsedOutput.body;
|
|
4426
3125
|
if (data.message !== undefined && data.message !== null) {
|
|
4427
3126
|
contents.message = smithy_client_1.expectString(data.message);
|
|
4428
3127
|
}
|
|
4429
|
-
|
|
3128
|
+
const exception = new models_0_1.InternalServerException({
|
|
3129
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3130
|
+
...contents,
|
|
3131
|
+
});
|
|
3132
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
4430
3133
|
};
|
|
4431
3134
|
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
4432
|
-
const contents = {
|
|
4433
|
-
name: "ResourceNotFoundException",
|
|
4434
|
-
$fault: "client",
|
|
4435
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4436
|
-
message: undefined,
|
|
4437
|
-
resourceId: undefined,
|
|
4438
|
-
resourceType: undefined,
|
|
4439
|
-
};
|
|
3135
|
+
const contents = {};
|
|
4440
3136
|
const data = parsedOutput.body;
|
|
4441
3137
|
if (data.message !== undefined && data.message !== null) {
|
|
4442
3138
|
contents.message = smithy_client_1.expectString(data.message);
|
|
@@ -4447,29 +3143,26 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
4447
3143
|
if (data.resourceType !== undefined && data.resourceType !== null) {
|
|
4448
3144
|
contents.resourceType = smithy_client_1.expectString(data.resourceType);
|
|
4449
3145
|
}
|
|
4450
|
-
|
|
3146
|
+
const exception = new models_0_1.ResourceNotFoundException({
|
|
3147
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3148
|
+
...contents,
|
|
3149
|
+
});
|
|
3150
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
4451
3151
|
};
|
|
4452
3152
|
const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
|
|
4453
|
-
const contents = {
|
|
4454
|
-
name: "ServiceQuotaExceededException",
|
|
4455
|
-
$fault: "client",
|
|
4456
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4457
|
-
message: undefined,
|
|
4458
|
-
};
|
|
3153
|
+
const contents = {};
|
|
4459
3154
|
const data = parsedOutput.body;
|
|
4460
3155
|
if (data.message !== undefined && data.message !== null) {
|
|
4461
3156
|
contents.message = smithy_client_1.expectString(data.message);
|
|
4462
3157
|
}
|
|
4463
|
-
|
|
3158
|
+
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
3159
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3160
|
+
...contents,
|
|
3161
|
+
});
|
|
3162
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
4464
3163
|
};
|
|
4465
3164
|
const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
|
|
4466
|
-
const contents = {
|
|
4467
|
-
name: "ThrottlingException",
|
|
4468
|
-
$fault: "client",
|
|
4469
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4470
|
-
message: undefined,
|
|
4471
|
-
retryAfterSeconds: undefined,
|
|
4472
|
-
};
|
|
3165
|
+
const contents = {};
|
|
4473
3166
|
const data = parsedOutput.body;
|
|
4474
3167
|
if (data.message !== undefined && data.message !== null) {
|
|
4475
3168
|
contents.message = smithy_client_1.expectString(data.message);
|
|
@@ -4477,20 +3170,23 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
4477
3170
|
if (data.retryAfterSeconds !== undefined && data.retryAfterSeconds !== null) {
|
|
4478
3171
|
contents.retryAfterSeconds = smithy_client_1.expectInt32(data.retryAfterSeconds);
|
|
4479
3172
|
}
|
|
4480
|
-
|
|
3173
|
+
const exception = new models_0_1.ThrottlingException({
|
|
3174
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3175
|
+
...contents,
|
|
3176
|
+
});
|
|
3177
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
4481
3178
|
};
|
|
4482
3179
|
const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
4483
|
-
const contents = {
|
|
4484
|
-
name: "ValidationException",
|
|
4485
|
-
$fault: "client",
|
|
4486
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4487
|
-
message: undefined,
|
|
4488
|
-
};
|
|
3180
|
+
const contents = {};
|
|
4489
3181
|
const data = parsedOutput.body;
|
|
4490
3182
|
if (data.message !== undefined && data.message !== null) {
|
|
4491
3183
|
contents.message = smithy_client_1.expectString(data.message);
|
|
4492
3184
|
}
|
|
4493
|
-
|
|
3185
|
+
const exception = new models_0_1.ValidationException({
|
|
3186
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3187
|
+
...contents,
|
|
3188
|
+
});
|
|
3189
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
4494
3190
|
};
|
|
4495
3191
|
const serializeAws_restJson1ArnList = (input, context) => {
|
|
4496
3192
|
return input
|
|
@@ -4619,7 +3315,7 @@ const deserializeAws_restJson1AlarmRecommendation = (output, context) => {
|
|
|
4619
3315
|
};
|
|
4620
3316
|
};
|
|
4621
3317
|
const deserializeAws_restJson1AlarmRecommendationList = (output, context) => {
|
|
4622
|
-
|
|
3318
|
+
const retVal = (output || [])
|
|
4623
3319
|
.filter((e) => e != null)
|
|
4624
3320
|
.map((entry) => {
|
|
4625
3321
|
if (entry === null) {
|
|
@@ -4627,6 +3323,7 @@ const deserializeAws_restJson1AlarmRecommendationList = (output, context) => {
|
|
|
4627
3323
|
}
|
|
4628
3324
|
return deserializeAws_restJson1AlarmRecommendation(entry, context);
|
|
4629
3325
|
});
|
|
3326
|
+
return retVal;
|
|
4630
3327
|
};
|
|
4631
3328
|
const deserializeAws_restJson1App = (output, context) => {
|
|
4632
3329
|
return {
|
|
@@ -4707,7 +3404,7 @@ const deserializeAws_restJson1AppAssessmentSummary = (output, context) => {
|
|
|
4707
3404
|
};
|
|
4708
3405
|
};
|
|
4709
3406
|
const deserializeAws_restJson1AppAssessmentSummaryList = (output, context) => {
|
|
4710
|
-
|
|
3407
|
+
const retVal = (output || [])
|
|
4711
3408
|
.filter((e) => e != null)
|
|
4712
3409
|
.map((entry) => {
|
|
4713
3410
|
if (entry === null) {
|
|
@@ -4715,6 +3412,7 @@ const deserializeAws_restJson1AppAssessmentSummaryList = (output, context) => {
|
|
|
4715
3412
|
}
|
|
4716
3413
|
return deserializeAws_restJson1AppAssessmentSummary(entry, context);
|
|
4717
3414
|
});
|
|
3415
|
+
return retVal;
|
|
4718
3416
|
};
|
|
4719
3417
|
const deserializeAws_restJson1AppComponent = (output, context) => {
|
|
4720
3418
|
return {
|
|
@@ -4739,7 +3437,7 @@ const deserializeAws_restJson1AppComponentCompliance = (output, context) => {
|
|
|
4739
3437
|
};
|
|
4740
3438
|
};
|
|
4741
3439
|
const deserializeAws_restJson1AppComponentList = (output, context) => {
|
|
4742
|
-
|
|
3440
|
+
const retVal = (output || [])
|
|
4743
3441
|
.filter((e) => e != null)
|
|
4744
3442
|
.map((entry) => {
|
|
4745
3443
|
if (entry === null) {
|
|
@@ -4747,6 +3445,7 @@ const deserializeAws_restJson1AppComponentList = (output, context) => {
|
|
|
4747
3445
|
}
|
|
4748
3446
|
return deserializeAws_restJson1AppComponent(entry, context);
|
|
4749
3447
|
});
|
|
3448
|
+
return retVal;
|
|
4750
3449
|
};
|
|
4751
3450
|
const deserializeAws_restJson1AppSummary = (output, context) => {
|
|
4752
3451
|
return {
|
|
@@ -4761,7 +3460,7 @@ const deserializeAws_restJson1AppSummary = (output, context) => {
|
|
|
4761
3460
|
};
|
|
4762
3461
|
};
|
|
4763
3462
|
const deserializeAws_restJson1AppSummaryList = (output, context) => {
|
|
4764
|
-
|
|
3463
|
+
const retVal = (output || [])
|
|
4765
3464
|
.filter((e) => e != null)
|
|
4766
3465
|
.map((entry) => {
|
|
4767
3466
|
if (entry === null) {
|
|
@@ -4769,9 +3468,10 @@ const deserializeAws_restJson1AppSummaryList = (output, context) => {
|
|
|
4769
3468
|
}
|
|
4770
3469
|
return deserializeAws_restJson1AppSummary(entry, context);
|
|
4771
3470
|
});
|
|
3471
|
+
return retVal;
|
|
4772
3472
|
};
|
|
4773
3473
|
const deserializeAws_restJson1AppVersionList = (output, context) => {
|
|
4774
|
-
|
|
3474
|
+
const retVal = (output || [])
|
|
4775
3475
|
.filter((e) => e != null)
|
|
4776
3476
|
.map((entry) => {
|
|
4777
3477
|
if (entry === null) {
|
|
@@ -4779,6 +3479,7 @@ const deserializeAws_restJson1AppVersionList = (output, context) => {
|
|
|
4779
3479
|
}
|
|
4780
3480
|
return deserializeAws_restJson1AppVersionSummary(entry, context);
|
|
4781
3481
|
});
|
|
3482
|
+
return retVal;
|
|
4782
3483
|
};
|
|
4783
3484
|
const deserializeAws_restJson1AppVersionSummary = (output, context) => {
|
|
4784
3485
|
return {
|
|
@@ -4786,7 +3487,7 @@ const deserializeAws_restJson1AppVersionSummary = (output, context) => {
|
|
|
4786
3487
|
};
|
|
4787
3488
|
};
|
|
4788
3489
|
const deserializeAws_restJson1ArnList = (output, context) => {
|
|
4789
|
-
|
|
3490
|
+
const retVal = (output || [])
|
|
4790
3491
|
.filter((e) => e != null)
|
|
4791
3492
|
.map((entry) => {
|
|
4792
3493
|
if (entry === null) {
|
|
@@ -4794,6 +3495,7 @@ const deserializeAws_restJson1ArnList = (output, context) => {
|
|
|
4794
3495
|
}
|
|
4795
3496
|
return smithy_client_1.expectString(entry);
|
|
4796
3497
|
});
|
|
3498
|
+
return retVal;
|
|
4797
3499
|
};
|
|
4798
3500
|
const deserializeAws_restJson1AssessmentCompliance = (output, context) => {
|
|
4799
3501
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
@@ -4807,7 +3509,7 @@ const deserializeAws_restJson1AssessmentCompliance = (output, context) => {
|
|
|
4807
3509
|
}, {});
|
|
4808
3510
|
};
|
|
4809
3511
|
const deserializeAws_restJson1ComponentCompliancesList = (output, context) => {
|
|
4810
|
-
|
|
3512
|
+
const retVal = (output || [])
|
|
4811
3513
|
.filter((e) => e != null)
|
|
4812
3514
|
.map((entry) => {
|
|
4813
3515
|
if (entry === null) {
|
|
@@ -4815,6 +3517,7 @@ const deserializeAws_restJson1ComponentCompliancesList = (output, context) => {
|
|
|
4815
3517
|
}
|
|
4816
3518
|
return deserializeAws_restJson1AppComponentCompliance(entry, context);
|
|
4817
3519
|
});
|
|
3520
|
+
return retVal;
|
|
4818
3521
|
};
|
|
4819
3522
|
const deserializeAws_restJson1ComponentRecommendation = (output, context) => {
|
|
4820
3523
|
return {
|
|
@@ -4826,7 +3529,7 @@ const deserializeAws_restJson1ComponentRecommendation = (output, context) => {
|
|
|
4826
3529
|
};
|
|
4827
3530
|
};
|
|
4828
3531
|
const deserializeAws_restJson1ComponentRecommendationList = (output, context) => {
|
|
4829
|
-
|
|
3532
|
+
const retVal = (output || [])
|
|
4830
3533
|
.filter((e) => e != null)
|
|
4831
3534
|
.map((entry) => {
|
|
4832
3535
|
if (entry === null) {
|
|
@@ -4834,6 +3537,7 @@ const deserializeAws_restJson1ComponentRecommendationList = (output, context) =>
|
|
|
4834
3537
|
}
|
|
4835
3538
|
return deserializeAws_restJson1ComponentRecommendation(entry, context);
|
|
4836
3539
|
});
|
|
3540
|
+
return retVal;
|
|
4837
3541
|
};
|
|
4838
3542
|
const deserializeAws_restJson1ConfigRecommendation = (output, context) => {
|
|
4839
3543
|
return {
|
|
@@ -4858,7 +3562,7 @@ const deserializeAws_restJson1ConfigRecommendation = (output, context) => {
|
|
|
4858
3562
|
};
|
|
4859
3563
|
};
|
|
4860
3564
|
const deserializeAws_restJson1ConfigRecommendationList = (output, context) => {
|
|
4861
|
-
|
|
3565
|
+
const retVal = (output || [])
|
|
4862
3566
|
.filter((e) => e != null)
|
|
4863
3567
|
.map((entry) => {
|
|
4864
3568
|
if (entry === null) {
|
|
@@ -4866,6 +3570,7 @@ const deserializeAws_restJson1ConfigRecommendationList = (output, context) => {
|
|
|
4866
3570
|
}
|
|
4867
3571
|
return deserializeAws_restJson1ConfigRecommendation(entry, context);
|
|
4868
3572
|
});
|
|
3573
|
+
return retVal;
|
|
4869
3574
|
};
|
|
4870
3575
|
const deserializeAws_restJson1Cost = (output, context) => {
|
|
4871
3576
|
return {
|
|
@@ -4947,7 +3652,7 @@ const deserializeAws_restJson1PhysicalResourceId = (output, context) => {
|
|
|
4947
3652
|
};
|
|
4948
3653
|
};
|
|
4949
3654
|
const deserializeAws_restJson1PhysicalResourceList = (output, context) => {
|
|
4950
|
-
|
|
3655
|
+
const retVal = (output || [])
|
|
4951
3656
|
.filter((e) => e != null)
|
|
4952
3657
|
.map((entry) => {
|
|
4953
3658
|
if (entry === null) {
|
|
@@ -4955,6 +3660,7 @@ const deserializeAws_restJson1PhysicalResourceList = (output, context) => {
|
|
|
4955
3660
|
}
|
|
4956
3661
|
return deserializeAws_restJson1PhysicalResource(entry, context);
|
|
4957
3662
|
});
|
|
3663
|
+
return retVal;
|
|
4958
3664
|
};
|
|
4959
3665
|
const deserializeAws_restJson1RecommendationCompliance = (output, context) => {
|
|
4960
3666
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
@@ -4977,7 +3683,7 @@ const deserializeAws_restJson1RecommendationDisruptionCompliance = (output, cont
|
|
|
4977
3683
|
};
|
|
4978
3684
|
};
|
|
4979
3685
|
const deserializeAws_restJson1RecommendationIdList = (output, context) => {
|
|
4980
|
-
|
|
3686
|
+
const retVal = (output || [])
|
|
4981
3687
|
.filter((e) => e != null)
|
|
4982
3688
|
.map((entry) => {
|
|
4983
3689
|
if (entry === null) {
|
|
@@ -4985,6 +3691,7 @@ const deserializeAws_restJson1RecommendationIdList = (output, context) => {
|
|
|
4985
3691
|
}
|
|
4986
3692
|
return smithy_client_1.expectString(entry);
|
|
4987
3693
|
});
|
|
3694
|
+
return retVal;
|
|
4988
3695
|
};
|
|
4989
3696
|
const deserializeAws_restJson1RecommendationItem = (output, context) => {
|
|
4990
3697
|
return {
|
|
@@ -4995,7 +3702,7 @@ const deserializeAws_restJson1RecommendationItem = (output, context) => {
|
|
|
4995
3702
|
};
|
|
4996
3703
|
};
|
|
4997
3704
|
const deserializeAws_restJson1RecommendationItemList = (output, context) => {
|
|
4998
|
-
|
|
3705
|
+
const retVal = (output || [])
|
|
4999
3706
|
.filter((e) => e != null)
|
|
5000
3707
|
.map((entry) => {
|
|
5001
3708
|
if (entry === null) {
|
|
@@ -5003,6 +3710,7 @@ const deserializeAws_restJson1RecommendationItemList = (output, context) => {
|
|
|
5003
3710
|
}
|
|
5004
3711
|
return deserializeAws_restJson1RecommendationItem(entry, context);
|
|
5005
3712
|
});
|
|
3713
|
+
return retVal;
|
|
5006
3714
|
};
|
|
5007
3715
|
const deserializeAws_restJson1RecommendationTemplate = (output, context) => {
|
|
5008
3716
|
return {
|
|
@@ -5035,7 +3743,7 @@ const deserializeAws_restJson1RecommendationTemplate = (output, context) => {
|
|
|
5035
3743
|
};
|
|
5036
3744
|
};
|
|
5037
3745
|
const deserializeAws_restJson1RecommendationTemplateList = (output, context) => {
|
|
5038
|
-
|
|
3746
|
+
const retVal = (output || [])
|
|
5039
3747
|
.filter((e) => e != null)
|
|
5040
3748
|
.map((entry) => {
|
|
5041
3749
|
if (entry === null) {
|
|
@@ -5043,9 +3751,10 @@ const deserializeAws_restJson1RecommendationTemplateList = (output, context) =>
|
|
|
5043
3751
|
}
|
|
5044
3752
|
return deserializeAws_restJson1RecommendationTemplate(entry, context);
|
|
5045
3753
|
});
|
|
3754
|
+
return retVal;
|
|
5046
3755
|
};
|
|
5047
3756
|
const deserializeAws_restJson1RenderRecommendationTypeList = (output, context) => {
|
|
5048
|
-
|
|
3757
|
+
const retVal = (output || [])
|
|
5049
3758
|
.filter((e) => e != null)
|
|
5050
3759
|
.map((entry) => {
|
|
5051
3760
|
if (entry === null) {
|
|
@@ -5053,9 +3762,10 @@ const deserializeAws_restJson1RenderRecommendationTypeList = (output, context) =
|
|
|
5053
3762
|
}
|
|
5054
3763
|
return smithy_client_1.expectString(entry);
|
|
5055
3764
|
});
|
|
3765
|
+
return retVal;
|
|
5056
3766
|
};
|
|
5057
3767
|
const deserializeAws_restJson1ResiliencyPolicies = (output, context) => {
|
|
5058
|
-
|
|
3768
|
+
const retVal = (output || [])
|
|
5059
3769
|
.filter((e) => e != null)
|
|
5060
3770
|
.map((entry) => {
|
|
5061
3771
|
if (entry === null) {
|
|
@@ -5063,6 +3773,7 @@ const deserializeAws_restJson1ResiliencyPolicies = (output, context) => {
|
|
|
5063
3773
|
}
|
|
5064
3774
|
return deserializeAws_restJson1ResiliencyPolicy(entry, context);
|
|
5065
3775
|
});
|
|
3776
|
+
return retVal;
|
|
5066
3777
|
};
|
|
5067
3778
|
const deserializeAws_restJson1ResiliencyPolicy = (output, context) => {
|
|
5068
3779
|
return {
|
|
@@ -5104,7 +3815,7 @@ const deserializeAws_restJson1ResourceMapping = (output, context) => {
|
|
|
5104
3815
|
};
|
|
5105
3816
|
};
|
|
5106
3817
|
const deserializeAws_restJson1ResourceMappingList = (output, context) => {
|
|
5107
|
-
|
|
3818
|
+
const retVal = (output || [])
|
|
5108
3819
|
.filter((e) => e != null)
|
|
5109
3820
|
.map((entry) => {
|
|
5110
3821
|
if (entry === null) {
|
|
@@ -5112,6 +3823,7 @@ const deserializeAws_restJson1ResourceMappingList = (output, context) => {
|
|
|
5112
3823
|
}
|
|
5113
3824
|
return deserializeAws_restJson1ResourceMapping(entry, context);
|
|
5114
3825
|
});
|
|
3826
|
+
return retVal;
|
|
5115
3827
|
};
|
|
5116
3828
|
const deserializeAws_restJson1S3Location = (output, context) => {
|
|
5117
3829
|
return {
|
|
@@ -5134,7 +3846,7 @@ const deserializeAws_restJson1SopRecommendation = (output, context) => {
|
|
|
5134
3846
|
};
|
|
5135
3847
|
};
|
|
5136
3848
|
const deserializeAws_restJson1SopRecommendationList = (output, context) => {
|
|
5137
|
-
|
|
3849
|
+
const retVal = (output || [])
|
|
5138
3850
|
.filter((e) => e != null)
|
|
5139
3851
|
.map((entry) => {
|
|
5140
3852
|
if (entry === null) {
|
|
@@ -5142,9 +3854,10 @@ const deserializeAws_restJson1SopRecommendationList = (output, context) => {
|
|
|
5142
3854
|
}
|
|
5143
3855
|
return deserializeAws_restJson1SopRecommendation(entry, context);
|
|
5144
3856
|
});
|
|
3857
|
+
return retVal;
|
|
5145
3858
|
};
|
|
5146
3859
|
const deserializeAws_restJson1SuggestedChangesList = (output, context) => {
|
|
5147
|
-
|
|
3860
|
+
const retVal = (output || [])
|
|
5148
3861
|
.filter((e) => e != null)
|
|
5149
3862
|
.map((entry) => {
|
|
5150
3863
|
if (entry === null) {
|
|
@@ -5152,6 +3865,7 @@ const deserializeAws_restJson1SuggestedChangesList = (output, context) => {
|
|
|
5152
3865
|
}
|
|
5153
3866
|
return smithy_client_1.expectString(entry);
|
|
5154
3867
|
});
|
|
3868
|
+
return retVal;
|
|
5155
3869
|
};
|
|
5156
3870
|
const deserializeAws_restJson1TagMap = (output, context) => {
|
|
5157
3871
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
@@ -5181,7 +3895,7 @@ const deserializeAws_restJson1TestRecommendation = (output, context) => {
|
|
|
5181
3895
|
};
|
|
5182
3896
|
};
|
|
5183
3897
|
const deserializeAws_restJson1TestRecommendationList = (output, context) => {
|
|
5184
|
-
|
|
3898
|
+
const retVal = (output || [])
|
|
5185
3899
|
.filter((e) => e != null)
|
|
5186
3900
|
.map((entry) => {
|
|
5187
3901
|
if (entry === null) {
|
|
@@ -5189,6 +3903,7 @@ const deserializeAws_restJson1TestRecommendationList = (output, context) => {
|
|
|
5189
3903
|
}
|
|
5190
3904
|
return deserializeAws_restJson1TestRecommendation(entry, context);
|
|
5191
3905
|
});
|
|
3906
|
+
return retVal;
|
|
5192
3907
|
};
|
|
5193
3908
|
const deserializeAws_restJson1UnsupportedResource = (output, context) => {
|
|
5194
3909
|
return {
|
|
@@ -5202,7 +3917,7 @@ const deserializeAws_restJson1UnsupportedResource = (output, context) => {
|
|
|
5202
3917
|
};
|
|
5203
3918
|
};
|
|
5204
3919
|
const deserializeAws_restJson1UnsupportedResourceList = (output, context) => {
|
|
5205
|
-
|
|
3920
|
+
const retVal = (output || [])
|
|
5206
3921
|
.filter((e) => e != null)
|
|
5207
3922
|
.map((entry) => {
|
|
5208
3923
|
if (entry === null) {
|
|
@@ -5210,6 +3925,7 @@ const deserializeAws_restJson1UnsupportedResourceList = (output, context) => {
|
|
|
5210
3925
|
}
|
|
5211
3926
|
return deserializeAws_restJson1UnsupportedResource(entry, context);
|
|
5212
3927
|
});
|
|
3928
|
+
return retVal;
|
|
5213
3929
|
};
|
|
5214
3930
|
const deserializeMetadata = (output) => {
|
|
5215
3931
|
var _a;
|