@aws-sdk/client-billingconductor 3.112.0 → 3.121.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 +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +150 -121
- package/dist-es/protocols/Aws_restJson1.js +150 -121
- package/package.json +6 -6
|
@@ -825,8 +825,7 @@ const deserializeAws_restJson1AssociateAccountsCommandError = async (output, con
|
|
|
825
825
|
body: await parseBody(output.body, context),
|
|
826
826
|
};
|
|
827
827
|
let response;
|
|
828
|
-
|
|
829
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
828
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
830
829
|
switch (errorCode) {
|
|
831
830
|
case "AccessDeniedException":
|
|
832
831
|
case "com.amazonaws.billingconductor#AccessDeniedException":
|
|
@@ -851,10 +850,12 @@ const deserializeAws_restJson1AssociateAccountsCommandError = async (output, con
|
|
|
851
850
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
852
851
|
default:
|
|
853
852
|
const parsedBody = parsedOutput.body;
|
|
853
|
+
const $metadata = deserializeMetadata(output);
|
|
854
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
854
855
|
response = new BillingconductorServiceException_1.BillingconductorServiceException({
|
|
855
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
856
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
856
857
|
$fault: "client",
|
|
857
|
-
$metadata
|
|
858
|
+
$metadata,
|
|
858
859
|
});
|
|
859
860
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
860
861
|
}
|
|
@@ -880,8 +881,7 @@ const deserializeAws_restJson1AssociatePricingRulesCommandError = async (output,
|
|
|
880
881
|
body: await parseBody(output.body, context),
|
|
881
882
|
};
|
|
882
883
|
let response;
|
|
883
|
-
|
|
884
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
884
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
885
885
|
switch (errorCode) {
|
|
886
886
|
case "AccessDeniedException":
|
|
887
887
|
case "com.amazonaws.billingconductor#AccessDeniedException":
|
|
@@ -906,10 +906,12 @@ const deserializeAws_restJson1AssociatePricingRulesCommandError = async (output,
|
|
|
906
906
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
907
907
|
default:
|
|
908
908
|
const parsedBody = parsedOutput.body;
|
|
909
|
+
const $metadata = deserializeMetadata(output);
|
|
910
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
909
911
|
response = new BillingconductorServiceException_1.BillingconductorServiceException({
|
|
910
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
912
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
911
913
|
$fault: "client",
|
|
912
|
-
$metadata
|
|
914
|
+
$metadata,
|
|
913
915
|
});
|
|
914
916
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
915
917
|
}
|
|
@@ -939,8 +941,7 @@ const deserializeAws_restJson1BatchAssociateResourcesToCustomLineItemCommandErro
|
|
|
939
941
|
body: await parseBody(output.body, context),
|
|
940
942
|
};
|
|
941
943
|
let response;
|
|
942
|
-
|
|
943
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
944
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
944
945
|
switch (errorCode) {
|
|
945
946
|
case "AccessDeniedException":
|
|
946
947
|
case "com.amazonaws.billingconductor#AccessDeniedException":
|
|
@@ -965,10 +966,12 @@ const deserializeAws_restJson1BatchAssociateResourcesToCustomLineItemCommandErro
|
|
|
965
966
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
966
967
|
default:
|
|
967
968
|
const parsedBody = parsedOutput.body;
|
|
969
|
+
const $metadata = deserializeMetadata(output);
|
|
970
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
968
971
|
response = new BillingconductorServiceException_1.BillingconductorServiceException({
|
|
969
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
972
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
970
973
|
$fault: "client",
|
|
971
|
-
$metadata
|
|
974
|
+
$metadata,
|
|
972
975
|
});
|
|
973
976
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
974
977
|
}
|
|
@@ -998,8 +1001,7 @@ const deserializeAws_restJson1BatchDisassociateResourcesFromCustomLineItemComman
|
|
|
998
1001
|
body: await parseBody(output.body, context),
|
|
999
1002
|
};
|
|
1000
1003
|
let response;
|
|
1001
|
-
|
|
1002
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1004
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1003
1005
|
switch (errorCode) {
|
|
1004
1006
|
case "AccessDeniedException":
|
|
1005
1007
|
case "com.amazonaws.billingconductor#AccessDeniedException":
|
|
@@ -1021,10 +1023,12 @@ const deserializeAws_restJson1BatchDisassociateResourcesFromCustomLineItemComman
|
|
|
1021
1023
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1022
1024
|
default:
|
|
1023
1025
|
const parsedBody = parsedOutput.body;
|
|
1026
|
+
const $metadata = deserializeMetadata(output);
|
|
1027
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1024
1028
|
response = new BillingconductorServiceException_1.BillingconductorServiceException({
|
|
1025
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1029
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1026
1030
|
$fault: "client",
|
|
1027
|
-
$metadata
|
|
1031
|
+
$metadata,
|
|
1028
1032
|
});
|
|
1029
1033
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1030
1034
|
}
|
|
@@ -1050,8 +1054,7 @@ const deserializeAws_restJson1CreateBillingGroupCommandError = async (output, co
|
|
|
1050
1054
|
body: await parseBody(output.body, context),
|
|
1051
1055
|
};
|
|
1052
1056
|
let response;
|
|
1053
|
-
|
|
1054
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1057
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1055
1058
|
switch (errorCode) {
|
|
1056
1059
|
case "AccessDeniedException":
|
|
1057
1060
|
case "com.amazonaws.billingconductor#AccessDeniedException":
|
|
@@ -1073,10 +1076,12 @@ const deserializeAws_restJson1CreateBillingGroupCommandError = async (output, co
|
|
|
1073
1076
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1074
1077
|
default:
|
|
1075
1078
|
const parsedBody = parsedOutput.body;
|
|
1079
|
+
const $metadata = deserializeMetadata(output);
|
|
1080
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1076
1081
|
response = new BillingconductorServiceException_1.BillingconductorServiceException({
|
|
1077
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1082
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1078
1083
|
$fault: "client",
|
|
1079
|
-
$metadata
|
|
1084
|
+
$metadata,
|
|
1080
1085
|
});
|
|
1081
1086
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1082
1087
|
}
|
|
@@ -1102,8 +1107,7 @@ const deserializeAws_restJson1CreateCustomLineItemCommandError = async (output,
|
|
|
1102
1107
|
body: await parseBody(output.body, context),
|
|
1103
1108
|
};
|
|
1104
1109
|
let response;
|
|
1105
|
-
|
|
1106
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1110
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1107
1111
|
switch (errorCode) {
|
|
1108
1112
|
case "AccessDeniedException":
|
|
1109
1113
|
case "com.amazonaws.billingconductor#AccessDeniedException":
|
|
@@ -1125,10 +1129,12 @@ const deserializeAws_restJson1CreateCustomLineItemCommandError = async (output,
|
|
|
1125
1129
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1126
1130
|
default:
|
|
1127
1131
|
const parsedBody = parsedOutput.body;
|
|
1132
|
+
const $metadata = deserializeMetadata(output);
|
|
1133
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1128
1134
|
response = new BillingconductorServiceException_1.BillingconductorServiceException({
|
|
1129
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1135
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1130
1136
|
$fault: "client",
|
|
1131
|
-
$metadata
|
|
1137
|
+
$metadata,
|
|
1132
1138
|
});
|
|
1133
1139
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1134
1140
|
}
|
|
@@ -1154,8 +1160,7 @@ const deserializeAws_restJson1CreatePricingPlanCommandError = async (output, con
|
|
|
1154
1160
|
body: await parseBody(output.body, context),
|
|
1155
1161
|
};
|
|
1156
1162
|
let response;
|
|
1157
|
-
|
|
1158
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1163
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1159
1164
|
switch (errorCode) {
|
|
1160
1165
|
case "AccessDeniedException":
|
|
1161
1166
|
case "com.amazonaws.billingconductor#AccessDeniedException":
|
|
@@ -1180,10 +1185,12 @@ const deserializeAws_restJson1CreatePricingPlanCommandError = async (output, con
|
|
|
1180
1185
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1181
1186
|
default:
|
|
1182
1187
|
const parsedBody = parsedOutput.body;
|
|
1188
|
+
const $metadata = deserializeMetadata(output);
|
|
1189
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1183
1190
|
response = new BillingconductorServiceException_1.BillingconductorServiceException({
|
|
1184
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1191
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1185
1192
|
$fault: "client",
|
|
1186
|
-
$metadata
|
|
1193
|
+
$metadata,
|
|
1187
1194
|
});
|
|
1188
1195
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1189
1196
|
}
|
|
@@ -1209,8 +1216,7 @@ const deserializeAws_restJson1CreatePricingRuleCommandError = async (output, con
|
|
|
1209
1216
|
body: await parseBody(output.body, context),
|
|
1210
1217
|
};
|
|
1211
1218
|
let response;
|
|
1212
|
-
|
|
1213
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1219
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1214
1220
|
switch (errorCode) {
|
|
1215
1221
|
case "AccessDeniedException":
|
|
1216
1222
|
case "com.amazonaws.billingconductor#AccessDeniedException":
|
|
@@ -1232,10 +1238,12 @@ const deserializeAws_restJson1CreatePricingRuleCommandError = async (output, con
|
|
|
1232
1238
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1233
1239
|
default:
|
|
1234
1240
|
const parsedBody = parsedOutput.body;
|
|
1241
|
+
const $metadata = deserializeMetadata(output);
|
|
1242
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1235
1243
|
response = new BillingconductorServiceException_1.BillingconductorServiceException({
|
|
1236
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1244
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1237
1245
|
$fault: "client",
|
|
1238
|
-
$metadata
|
|
1246
|
+
$metadata,
|
|
1239
1247
|
});
|
|
1240
1248
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1241
1249
|
}
|
|
@@ -1261,8 +1269,7 @@ const deserializeAws_restJson1DeleteBillingGroupCommandError = async (output, co
|
|
|
1261
1269
|
body: await parseBody(output.body, context),
|
|
1262
1270
|
};
|
|
1263
1271
|
let response;
|
|
1264
|
-
|
|
1265
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1272
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1266
1273
|
switch (errorCode) {
|
|
1267
1274
|
case "AccessDeniedException":
|
|
1268
1275
|
case "com.amazonaws.billingconductor#AccessDeniedException":
|
|
@@ -1278,10 +1285,12 @@ const deserializeAws_restJson1DeleteBillingGroupCommandError = async (output, co
|
|
|
1278
1285
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1279
1286
|
default:
|
|
1280
1287
|
const parsedBody = parsedOutput.body;
|
|
1288
|
+
const $metadata = deserializeMetadata(output);
|
|
1289
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1281
1290
|
response = new BillingconductorServiceException_1.BillingconductorServiceException({
|
|
1282
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1291
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1283
1292
|
$fault: "client",
|
|
1284
|
-
$metadata
|
|
1293
|
+
$metadata,
|
|
1285
1294
|
});
|
|
1286
1295
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1287
1296
|
}
|
|
@@ -1307,8 +1316,7 @@ const deserializeAws_restJson1DeleteCustomLineItemCommandError = async (output,
|
|
|
1307
1316
|
body: await parseBody(output.body, context),
|
|
1308
1317
|
};
|
|
1309
1318
|
let response;
|
|
1310
|
-
|
|
1311
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1319
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1312
1320
|
switch (errorCode) {
|
|
1313
1321
|
case "AccessDeniedException":
|
|
1314
1322
|
case "com.amazonaws.billingconductor#AccessDeniedException":
|
|
@@ -1327,10 +1335,12 @@ const deserializeAws_restJson1DeleteCustomLineItemCommandError = async (output,
|
|
|
1327
1335
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1328
1336
|
default:
|
|
1329
1337
|
const parsedBody = parsedOutput.body;
|
|
1338
|
+
const $metadata = deserializeMetadata(output);
|
|
1339
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1330
1340
|
response = new BillingconductorServiceException_1.BillingconductorServiceException({
|
|
1331
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1341
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1332
1342
|
$fault: "client",
|
|
1333
|
-
$metadata
|
|
1343
|
+
$metadata,
|
|
1334
1344
|
});
|
|
1335
1345
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1336
1346
|
}
|
|
@@ -1356,8 +1366,7 @@ const deserializeAws_restJson1DeletePricingPlanCommandError = async (output, con
|
|
|
1356
1366
|
body: await parseBody(output.body, context),
|
|
1357
1367
|
};
|
|
1358
1368
|
let response;
|
|
1359
|
-
|
|
1360
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1369
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1361
1370
|
switch (errorCode) {
|
|
1362
1371
|
case "AccessDeniedException":
|
|
1363
1372
|
case "com.amazonaws.billingconductor#AccessDeniedException":
|
|
@@ -1376,10 +1385,12 @@ const deserializeAws_restJson1DeletePricingPlanCommandError = async (output, con
|
|
|
1376
1385
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1377
1386
|
default:
|
|
1378
1387
|
const parsedBody = parsedOutput.body;
|
|
1388
|
+
const $metadata = deserializeMetadata(output);
|
|
1389
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1379
1390
|
response = new BillingconductorServiceException_1.BillingconductorServiceException({
|
|
1380
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1391
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1381
1392
|
$fault: "client",
|
|
1382
|
-
$metadata
|
|
1393
|
+
$metadata,
|
|
1383
1394
|
});
|
|
1384
1395
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1385
1396
|
}
|
|
@@ -1405,8 +1416,7 @@ const deserializeAws_restJson1DeletePricingRuleCommandError = async (output, con
|
|
|
1405
1416
|
body: await parseBody(output.body, context),
|
|
1406
1417
|
};
|
|
1407
1418
|
let response;
|
|
1408
|
-
|
|
1409
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1419
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1410
1420
|
switch (errorCode) {
|
|
1411
1421
|
case "AccessDeniedException":
|
|
1412
1422
|
case "com.amazonaws.billingconductor#AccessDeniedException":
|
|
@@ -1425,10 +1435,12 @@ const deserializeAws_restJson1DeletePricingRuleCommandError = async (output, con
|
|
|
1425
1435
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1426
1436
|
default:
|
|
1427
1437
|
const parsedBody = parsedOutput.body;
|
|
1438
|
+
const $metadata = deserializeMetadata(output);
|
|
1439
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1428
1440
|
response = new BillingconductorServiceException_1.BillingconductorServiceException({
|
|
1429
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1441
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1430
1442
|
$fault: "client",
|
|
1431
|
-
$metadata
|
|
1443
|
+
$metadata,
|
|
1432
1444
|
});
|
|
1433
1445
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1434
1446
|
}
|
|
@@ -1454,8 +1466,7 @@ const deserializeAws_restJson1DisassociateAccountsCommandError = async (output,
|
|
|
1454
1466
|
body: await parseBody(output.body, context),
|
|
1455
1467
|
};
|
|
1456
1468
|
let response;
|
|
1457
|
-
|
|
1458
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1469
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1459
1470
|
switch (errorCode) {
|
|
1460
1471
|
case "AccessDeniedException":
|
|
1461
1472
|
case "com.amazonaws.billingconductor#AccessDeniedException":
|
|
@@ -1477,10 +1488,12 @@ const deserializeAws_restJson1DisassociateAccountsCommandError = async (output,
|
|
|
1477
1488
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1478
1489
|
default:
|
|
1479
1490
|
const parsedBody = parsedOutput.body;
|
|
1491
|
+
const $metadata = deserializeMetadata(output);
|
|
1492
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1480
1493
|
response = new BillingconductorServiceException_1.BillingconductorServiceException({
|
|
1481
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1494
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1482
1495
|
$fault: "client",
|
|
1483
|
-
$metadata
|
|
1496
|
+
$metadata,
|
|
1484
1497
|
});
|
|
1485
1498
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1486
1499
|
}
|
|
@@ -1506,8 +1519,7 @@ const deserializeAws_restJson1DisassociatePricingRulesCommandError = async (outp
|
|
|
1506
1519
|
body: await parseBody(output.body, context),
|
|
1507
1520
|
};
|
|
1508
1521
|
let response;
|
|
1509
|
-
|
|
1510
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1522
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1511
1523
|
switch (errorCode) {
|
|
1512
1524
|
case "AccessDeniedException":
|
|
1513
1525
|
case "com.amazonaws.billingconductor#AccessDeniedException":
|
|
@@ -1529,10 +1541,12 @@ const deserializeAws_restJson1DisassociatePricingRulesCommandError = async (outp
|
|
|
1529
1541
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1530
1542
|
default:
|
|
1531
1543
|
const parsedBody = parsedOutput.body;
|
|
1544
|
+
const $metadata = deserializeMetadata(output);
|
|
1545
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1532
1546
|
response = new BillingconductorServiceException_1.BillingconductorServiceException({
|
|
1533
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1547
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1534
1548
|
$fault: "client",
|
|
1535
|
-
$metadata
|
|
1549
|
+
$metadata,
|
|
1536
1550
|
});
|
|
1537
1551
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1538
1552
|
}
|
|
@@ -1562,8 +1576,7 @@ const deserializeAws_restJson1ListAccountAssociationsCommandError = async (outpu
|
|
|
1562
1576
|
body: await parseBody(output.body, context),
|
|
1563
1577
|
};
|
|
1564
1578
|
let response;
|
|
1565
|
-
|
|
1566
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1579
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1567
1580
|
switch (errorCode) {
|
|
1568
1581
|
case "AccessDeniedException":
|
|
1569
1582
|
case "com.amazonaws.billingconductor#AccessDeniedException":
|
|
@@ -1582,10 +1595,12 @@ const deserializeAws_restJson1ListAccountAssociationsCommandError = async (outpu
|
|
|
1582
1595
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1583
1596
|
default:
|
|
1584
1597
|
const parsedBody = parsedOutput.body;
|
|
1598
|
+
const $metadata = deserializeMetadata(output);
|
|
1599
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1585
1600
|
response = new BillingconductorServiceException_1.BillingconductorServiceException({
|
|
1586
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1601
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1587
1602
|
$fault: "client",
|
|
1588
|
-
$metadata
|
|
1603
|
+
$metadata,
|
|
1589
1604
|
});
|
|
1590
1605
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1591
1606
|
}
|
|
@@ -1615,8 +1630,7 @@ const deserializeAws_restJson1ListBillingGroupCostReportsCommandError = async (o
|
|
|
1615
1630
|
body: await parseBody(output.body, context),
|
|
1616
1631
|
};
|
|
1617
1632
|
let response;
|
|
1618
|
-
|
|
1619
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1633
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1620
1634
|
switch (errorCode) {
|
|
1621
1635
|
case "AccessDeniedException":
|
|
1622
1636
|
case "com.amazonaws.billingconductor#AccessDeniedException":
|
|
@@ -1635,10 +1649,12 @@ const deserializeAws_restJson1ListBillingGroupCostReportsCommandError = async (o
|
|
|
1635
1649
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1636
1650
|
default:
|
|
1637
1651
|
const parsedBody = parsedOutput.body;
|
|
1652
|
+
const $metadata = deserializeMetadata(output);
|
|
1653
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1638
1654
|
response = new BillingconductorServiceException_1.BillingconductorServiceException({
|
|
1639
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1655
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1640
1656
|
$fault: "client",
|
|
1641
|
-
$metadata
|
|
1657
|
+
$metadata,
|
|
1642
1658
|
});
|
|
1643
1659
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1644
1660
|
}
|
|
@@ -1668,8 +1684,7 @@ const deserializeAws_restJson1ListBillingGroupsCommandError = async (output, con
|
|
|
1668
1684
|
body: await parseBody(output.body, context),
|
|
1669
1685
|
};
|
|
1670
1686
|
let response;
|
|
1671
|
-
|
|
1672
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1687
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1673
1688
|
switch (errorCode) {
|
|
1674
1689
|
case "AccessDeniedException":
|
|
1675
1690
|
case "com.amazonaws.billingconductor#AccessDeniedException":
|
|
@@ -1688,10 +1703,12 @@ const deserializeAws_restJson1ListBillingGroupsCommandError = async (output, con
|
|
|
1688
1703
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1689
1704
|
default:
|
|
1690
1705
|
const parsedBody = parsedOutput.body;
|
|
1706
|
+
const $metadata = deserializeMetadata(output);
|
|
1707
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1691
1708
|
response = new BillingconductorServiceException_1.BillingconductorServiceException({
|
|
1692
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1709
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1693
1710
|
$fault: "client",
|
|
1694
|
-
$metadata
|
|
1711
|
+
$metadata,
|
|
1695
1712
|
});
|
|
1696
1713
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1697
1714
|
}
|
|
@@ -1721,8 +1738,7 @@ const deserializeAws_restJson1ListCustomLineItemsCommandError = async (output, c
|
|
|
1721
1738
|
body: await parseBody(output.body, context),
|
|
1722
1739
|
};
|
|
1723
1740
|
let response;
|
|
1724
|
-
|
|
1725
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1741
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1726
1742
|
switch (errorCode) {
|
|
1727
1743
|
case "AccessDeniedException":
|
|
1728
1744
|
case "com.amazonaws.billingconductor#AccessDeniedException":
|
|
@@ -1741,10 +1757,12 @@ const deserializeAws_restJson1ListCustomLineItemsCommandError = async (output, c
|
|
|
1741
1757
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1742
1758
|
default:
|
|
1743
1759
|
const parsedBody = parsedOutput.body;
|
|
1760
|
+
const $metadata = deserializeMetadata(output);
|
|
1761
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1744
1762
|
response = new BillingconductorServiceException_1.BillingconductorServiceException({
|
|
1745
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1763
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1746
1764
|
$fault: "client",
|
|
1747
|
-
$metadata
|
|
1765
|
+
$metadata,
|
|
1748
1766
|
});
|
|
1749
1767
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1750
1768
|
}
|
|
@@ -1778,8 +1796,7 @@ const deserializeAws_restJson1ListPricingPlansCommandError = async (output, cont
|
|
|
1778
1796
|
body: await parseBody(output.body, context),
|
|
1779
1797
|
};
|
|
1780
1798
|
let response;
|
|
1781
|
-
|
|
1782
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1799
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1783
1800
|
switch (errorCode) {
|
|
1784
1801
|
case "AccessDeniedException":
|
|
1785
1802
|
case "com.amazonaws.billingconductor#AccessDeniedException":
|
|
@@ -1795,10 +1812,12 @@ const deserializeAws_restJson1ListPricingPlansCommandError = async (output, cont
|
|
|
1795
1812
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1796
1813
|
default:
|
|
1797
1814
|
const parsedBody = parsedOutput.body;
|
|
1815
|
+
const $metadata = deserializeMetadata(output);
|
|
1816
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1798
1817
|
response = new BillingconductorServiceException_1.BillingconductorServiceException({
|
|
1799
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1818
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1800
1819
|
$fault: "client",
|
|
1801
|
-
$metadata
|
|
1820
|
+
$metadata,
|
|
1802
1821
|
});
|
|
1803
1822
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1804
1823
|
}
|
|
@@ -1836,8 +1855,7 @@ const deserializeAws_restJson1ListPricingPlansAssociatedWithPricingRuleCommandEr
|
|
|
1836
1855
|
body: await parseBody(output.body, context),
|
|
1837
1856
|
};
|
|
1838
1857
|
let response;
|
|
1839
|
-
|
|
1840
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1858
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1841
1859
|
switch (errorCode) {
|
|
1842
1860
|
case "AccessDeniedException":
|
|
1843
1861
|
case "com.amazonaws.billingconductor#AccessDeniedException":
|
|
@@ -1856,10 +1874,12 @@ const deserializeAws_restJson1ListPricingPlansAssociatedWithPricingRuleCommandEr
|
|
|
1856
1874
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1857
1875
|
default:
|
|
1858
1876
|
const parsedBody = parsedOutput.body;
|
|
1877
|
+
const $metadata = deserializeMetadata(output);
|
|
1878
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1859
1879
|
response = new BillingconductorServiceException_1.BillingconductorServiceException({
|
|
1860
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1880
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1861
1881
|
$fault: "client",
|
|
1862
|
-
$metadata
|
|
1882
|
+
$metadata,
|
|
1863
1883
|
});
|
|
1864
1884
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1865
1885
|
}
|
|
@@ -1893,8 +1913,7 @@ const deserializeAws_restJson1ListPricingRulesCommandError = async (output, cont
|
|
|
1893
1913
|
body: await parseBody(output.body, context),
|
|
1894
1914
|
};
|
|
1895
1915
|
let response;
|
|
1896
|
-
|
|
1897
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1916
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1898
1917
|
switch (errorCode) {
|
|
1899
1918
|
case "AccessDeniedException":
|
|
1900
1919
|
case "com.amazonaws.billingconductor#AccessDeniedException":
|
|
@@ -1910,10 +1929,12 @@ const deserializeAws_restJson1ListPricingRulesCommandError = async (output, cont
|
|
|
1910
1929
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1911
1930
|
default:
|
|
1912
1931
|
const parsedBody = parsedOutput.body;
|
|
1932
|
+
const $metadata = deserializeMetadata(output);
|
|
1933
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1913
1934
|
response = new BillingconductorServiceException_1.BillingconductorServiceException({
|
|
1914
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1935
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1915
1936
|
$fault: "client",
|
|
1916
|
-
$metadata
|
|
1937
|
+
$metadata,
|
|
1917
1938
|
});
|
|
1918
1939
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1919
1940
|
}
|
|
@@ -1951,8 +1972,7 @@ const deserializeAws_restJson1ListPricingRulesAssociatedToPricingPlanCommandErro
|
|
|
1951
1972
|
body: await parseBody(output.body, context),
|
|
1952
1973
|
};
|
|
1953
1974
|
let response;
|
|
1954
|
-
|
|
1955
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1975
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1956
1976
|
switch (errorCode) {
|
|
1957
1977
|
case "AccessDeniedException":
|
|
1958
1978
|
case "com.amazonaws.billingconductor#AccessDeniedException":
|
|
@@ -1971,10 +1991,12 @@ const deserializeAws_restJson1ListPricingRulesAssociatedToPricingPlanCommandErro
|
|
|
1971
1991
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1972
1992
|
default:
|
|
1973
1993
|
const parsedBody = parsedOutput.body;
|
|
1994
|
+
const $metadata = deserializeMetadata(output);
|
|
1995
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1974
1996
|
response = new BillingconductorServiceException_1.BillingconductorServiceException({
|
|
1975
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1997
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1976
1998
|
$fault: "client",
|
|
1977
|
-
$metadata
|
|
1999
|
+
$metadata,
|
|
1978
2000
|
});
|
|
1979
2001
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1980
2002
|
}
|
|
@@ -2008,8 +2030,7 @@ const deserializeAws_restJson1ListResourcesAssociatedToCustomLineItemCommandErro
|
|
|
2008
2030
|
body: await parseBody(output.body, context),
|
|
2009
2031
|
};
|
|
2010
2032
|
let response;
|
|
2011
|
-
|
|
2012
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2033
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2013
2034
|
switch (errorCode) {
|
|
2014
2035
|
case "AccessDeniedException":
|
|
2015
2036
|
case "com.amazonaws.billingconductor#AccessDeniedException":
|
|
@@ -2028,10 +2049,12 @@ const deserializeAws_restJson1ListResourcesAssociatedToCustomLineItemCommandErro
|
|
|
2028
2049
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2029
2050
|
default:
|
|
2030
2051
|
const parsedBody = parsedOutput.body;
|
|
2052
|
+
const $metadata = deserializeMetadata(output);
|
|
2053
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2031
2054
|
response = new BillingconductorServiceException_1.BillingconductorServiceException({
|
|
2032
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2055
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2033
2056
|
$fault: "client",
|
|
2034
|
-
$metadata
|
|
2057
|
+
$metadata,
|
|
2035
2058
|
});
|
|
2036
2059
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2037
2060
|
}
|
|
@@ -2057,8 +2080,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2057
2080
|
body: await parseBody(output.body, context),
|
|
2058
2081
|
};
|
|
2059
2082
|
let response;
|
|
2060
|
-
|
|
2061
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2083
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2062
2084
|
switch (errorCode) {
|
|
2063
2085
|
case "AccessDeniedException":
|
|
2064
2086
|
case "com.amazonaws.billingconductor#AccessDeniedException":
|
|
@@ -2077,10 +2099,12 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2077
2099
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2078
2100
|
default:
|
|
2079
2101
|
const parsedBody = parsedOutput.body;
|
|
2102
|
+
const $metadata = deserializeMetadata(output);
|
|
2103
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2080
2104
|
response = new BillingconductorServiceException_1.BillingconductorServiceException({
|
|
2081
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2105
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2082
2106
|
$fault: "client",
|
|
2083
|
-
$metadata
|
|
2107
|
+
$metadata,
|
|
2084
2108
|
});
|
|
2085
2109
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2086
2110
|
}
|
|
@@ -2102,8 +2126,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2102
2126
|
body: await parseBody(output.body, context),
|
|
2103
2127
|
};
|
|
2104
2128
|
let response;
|
|
2105
|
-
|
|
2106
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2129
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2107
2130
|
switch (errorCode) {
|
|
2108
2131
|
case "AccessDeniedException":
|
|
2109
2132
|
case "com.amazonaws.billingconductor#AccessDeniedException":
|
|
@@ -2122,10 +2145,12 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2122
2145
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2123
2146
|
default:
|
|
2124
2147
|
const parsedBody = parsedOutput.body;
|
|
2148
|
+
const $metadata = deserializeMetadata(output);
|
|
2149
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2125
2150
|
response = new BillingconductorServiceException_1.BillingconductorServiceException({
|
|
2126
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2151
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2127
2152
|
$fault: "client",
|
|
2128
|
-
$metadata
|
|
2153
|
+
$metadata,
|
|
2129
2154
|
});
|
|
2130
2155
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2131
2156
|
}
|
|
@@ -2147,8 +2172,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2147
2172
|
body: await parseBody(output.body, context),
|
|
2148
2173
|
};
|
|
2149
2174
|
let response;
|
|
2150
|
-
|
|
2151
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2175
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2152
2176
|
switch (errorCode) {
|
|
2153
2177
|
case "AccessDeniedException":
|
|
2154
2178
|
case "com.amazonaws.billingconductor#AccessDeniedException":
|
|
@@ -2167,10 +2191,12 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2167
2191
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2168
2192
|
default:
|
|
2169
2193
|
const parsedBody = parsedOutput.body;
|
|
2194
|
+
const $metadata = deserializeMetadata(output);
|
|
2195
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2170
2196
|
response = new BillingconductorServiceException_1.BillingconductorServiceException({
|
|
2171
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2197
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2172
2198
|
$fault: "client",
|
|
2173
|
-
$metadata
|
|
2199
|
+
$metadata,
|
|
2174
2200
|
});
|
|
2175
2201
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2176
2202
|
}
|
|
@@ -2228,8 +2254,7 @@ const deserializeAws_restJson1UpdateBillingGroupCommandError = async (output, co
|
|
|
2228
2254
|
body: await parseBody(output.body, context),
|
|
2229
2255
|
};
|
|
2230
2256
|
let response;
|
|
2231
|
-
|
|
2232
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2257
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2233
2258
|
switch (errorCode) {
|
|
2234
2259
|
case "AccessDeniedException":
|
|
2235
2260
|
case "com.amazonaws.billingconductor#AccessDeniedException":
|
|
@@ -2251,10 +2276,12 @@ const deserializeAws_restJson1UpdateBillingGroupCommandError = async (output, co
|
|
|
2251
2276
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2252
2277
|
default:
|
|
2253
2278
|
const parsedBody = parsedOutput.body;
|
|
2279
|
+
const $metadata = deserializeMetadata(output);
|
|
2280
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2254
2281
|
response = new BillingconductorServiceException_1.BillingconductorServiceException({
|
|
2255
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2282
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2256
2283
|
$fault: "client",
|
|
2257
|
-
$metadata
|
|
2284
|
+
$metadata,
|
|
2258
2285
|
});
|
|
2259
2286
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2260
2287
|
}
|
|
@@ -2304,8 +2331,7 @@ const deserializeAws_restJson1UpdateCustomLineItemCommandError = async (output,
|
|
|
2304
2331
|
body: await parseBody(output.body, context),
|
|
2305
2332
|
};
|
|
2306
2333
|
let response;
|
|
2307
|
-
|
|
2308
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2334
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2309
2335
|
switch (errorCode) {
|
|
2310
2336
|
case "AccessDeniedException":
|
|
2311
2337
|
case "com.amazonaws.billingconductor#AccessDeniedException":
|
|
@@ -2324,10 +2350,12 @@ const deserializeAws_restJson1UpdateCustomLineItemCommandError = async (output,
|
|
|
2324
2350
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2325
2351
|
default:
|
|
2326
2352
|
const parsedBody = parsedOutput.body;
|
|
2353
|
+
const $metadata = deserializeMetadata(output);
|
|
2354
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2327
2355
|
response = new BillingconductorServiceException_1.BillingconductorServiceException({
|
|
2328
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2356
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2329
2357
|
$fault: "client",
|
|
2330
|
-
$metadata
|
|
2358
|
+
$metadata,
|
|
2331
2359
|
});
|
|
2332
2360
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2333
2361
|
}
|
|
@@ -2369,8 +2397,7 @@ const deserializeAws_restJson1UpdatePricingPlanCommandError = async (output, con
|
|
|
2369
2397
|
body: await parseBody(output.body, context),
|
|
2370
2398
|
};
|
|
2371
2399
|
let response;
|
|
2372
|
-
|
|
2373
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2400
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2374
2401
|
switch (errorCode) {
|
|
2375
2402
|
case "AccessDeniedException":
|
|
2376
2403
|
case "com.amazonaws.billingconductor#AccessDeniedException":
|
|
@@ -2392,10 +2419,12 @@ const deserializeAws_restJson1UpdatePricingPlanCommandError = async (output, con
|
|
|
2392
2419
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2393
2420
|
default:
|
|
2394
2421
|
const parsedBody = parsedOutput.body;
|
|
2422
|
+
const $metadata = deserializeMetadata(output);
|
|
2423
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2395
2424
|
response = new BillingconductorServiceException_1.BillingconductorServiceException({
|
|
2396
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2425
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2397
2426
|
$fault: "client",
|
|
2398
|
-
$metadata
|
|
2427
|
+
$metadata,
|
|
2399
2428
|
});
|
|
2400
2429
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2401
2430
|
}
|
|
@@ -2453,8 +2482,7 @@ const deserializeAws_restJson1UpdatePricingRuleCommandError = async (output, con
|
|
|
2453
2482
|
body: await parseBody(output.body, context),
|
|
2454
2483
|
};
|
|
2455
2484
|
let response;
|
|
2456
|
-
|
|
2457
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2485
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2458
2486
|
switch (errorCode) {
|
|
2459
2487
|
case "AccessDeniedException":
|
|
2460
2488
|
case "com.amazonaws.billingconductor#AccessDeniedException":
|
|
@@ -2476,10 +2504,12 @@ const deserializeAws_restJson1UpdatePricingRuleCommandError = async (output, con
|
|
|
2476
2504
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2477
2505
|
default:
|
|
2478
2506
|
const parsedBody = parsedOutput.body;
|
|
2507
|
+
const $metadata = deserializeMetadata(output);
|
|
2508
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2479
2509
|
response = new BillingconductorServiceException_1.BillingconductorServiceException({
|
|
2480
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2510
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2481
2511
|
$fault: "client",
|
|
2482
|
-
$metadata
|
|
2512
|
+
$metadata,
|
|
2483
2513
|
});
|
|
2484
2514
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2485
2515
|
}
|
|
@@ -3174,5 +3204,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
3174
3204
|
if (data["__type"] !== undefined) {
|
|
3175
3205
|
return sanitizeErrorCode(data["__type"]);
|
|
3176
3206
|
}
|
|
3177
|
-
return "";
|
|
3178
3207
|
};
|