@aws-sdk/client-codeartifact 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 +170 -137
- package/dist-es/protocols/Aws_restJson1.js +170 -137
- package/package.json +6 -6
|
@@ -919,8 +919,7 @@ const deserializeAws_restJson1AssociateExternalConnectionCommandError = async (o
|
|
|
919
919
|
body: await parseBody(output.body, context),
|
|
920
920
|
};
|
|
921
921
|
let response;
|
|
922
|
-
|
|
923
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
922
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
924
923
|
switch (errorCode) {
|
|
925
924
|
case "AccessDeniedException":
|
|
926
925
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -945,10 +944,12 @@ const deserializeAws_restJson1AssociateExternalConnectionCommandError = async (o
|
|
|
945
944
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
946
945
|
default:
|
|
947
946
|
const parsedBody = parsedOutput.body;
|
|
947
|
+
const $metadata = deserializeMetadata(output);
|
|
948
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
948
949
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
949
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
950
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
950
951
|
$fault: "client",
|
|
951
|
-
$metadata
|
|
952
|
+
$metadata,
|
|
952
953
|
});
|
|
953
954
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
954
955
|
}
|
|
@@ -978,8 +979,7 @@ const deserializeAws_restJson1CopyPackageVersionsCommandError = async (output, c
|
|
|
978
979
|
body: await parseBody(output.body, context),
|
|
979
980
|
};
|
|
980
981
|
let response;
|
|
981
|
-
|
|
982
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
982
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
983
983
|
switch (errorCode) {
|
|
984
984
|
case "AccessDeniedException":
|
|
985
985
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -1004,10 +1004,12 @@ const deserializeAws_restJson1CopyPackageVersionsCommandError = async (output, c
|
|
|
1004
1004
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1005
1005
|
default:
|
|
1006
1006
|
const parsedBody = parsedOutput.body;
|
|
1007
|
+
const $metadata = deserializeMetadata(output);
|
|
1008
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1007
1009
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
1008
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1010
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1009
1011
|
$fault: "client",
|
|
1010
|
-
$metadata
|
|
1012
|
+
$metadata,
|
|
1011
1013
|
});
|
|
1012
1014
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1013
1015
|
}
|
|
@@ -1033,8 +1035,7 @@ const deserializeAws_restJson1CreateDomainCommandError = async (output, context)
|
|
|
1033
1035
|
body: await parseBody(output.body, context),
|
|
1034
1036
|
};
|
|
1035
1037
|
let response;
|
|
1036
|
-
|
|
1037
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1038
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1038
1039
|
switch (errorCode) {
|
|
1039
1040
|
case "AccessDeniedException":
|
|
1040
1041
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -1059,10 +1060,12 @@ const deserializeAws_restJson1CreateDomainCommandError = async (output, context)
|
|
|
1059
1060
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1060
1061
|
default:
|
|
1061
1062
|
const parsedBody = parsedOutput.body;
|
|
1063
|
+
const $metadata = deserializeMetadata(output);
|
|
1064
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1062
1065
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
1063
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1066
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1064
1067
|
$fault: "client",
|
|
1065
|
-
$metadata
|
|
1068
|
+
$metadata,
|
|
1066
1069
|
});
|
|
1067
1070
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1068
1071
|
}
|
|
@@ -1088,8 +1091,7 @@ const deserializeAws_restJson1CreateRepositoryCommandError = async (output, cont
|
|
|
1088
1091
|
body: await parseBody(output.body, context),
|
|
1089
1092
|
};
|
|
1090
1093
|
let response;
|
|
1091
|
-
|
|
1092
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1094
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1093
1095
|
switch (errorCode) {
|
|
1094
1096
|
case "AccessDeniedException":
|
|
1095
1097
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -1114,10 +1116,12 @@ const deserializeAws_restJson1CreateRepositoryCommandError = async (output, cont
|
|
|
1114
1116
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1115
1117
|
default:
|
|
1116
1118
|
const parsedBody = parsedOutput.body;
|
|
1119
|
+
const $metadata = deserializeMetadata(output);
|
|
1120
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1117
1121
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
1118
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1122
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1119
1123
|
$fault: "client",
|
|
1120
|
-
$metadata
|
|
1124
|
+
$metadata,
|
|
1121
1125
|
});
|
|
1122
1126
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1123
1127
|
}
|
|
@@ -1143,8 +1147,7 @@ const deserializeAws_restJson1DeleteDomainCommandError = async (output, context)
|
|
|
1143
1147
|
body: await parseBody(output.body, context),
|
|
1144
1148
|
};
|
|
1145
1149
|
let response;
|
|
1146
|
-
|
|
1147
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1150
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1148
1151
|
switch (errorCode) {
|
|
1149
1152
|
case "AccessDeniedException":
|
|
1150
1153
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -1163,10 +1166,12 @@ const deserializeAws_restJson1DeleteDomainCommandError = async (output, context)
|
|
|
1163
1166
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1164
1167
|
default:
|
|
1165
1168
|
const parsedBody = parsedOutput.body;
|
|
1169
|
+
const $metadata = deserializeMetadata(output);
|
|
1170
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1166
1171
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
1167
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1172
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1168
1173
|
$fault: "client",
|
|
1169
|
-
$metadata
|
|
1174
|
+
$metadata,
|
|
1170
1175
|
});
|
|
1171
1176
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1172
1177
|
}
|
|
@@ -1192,8 +1197,7 @@ const deserializeAws_restJson1DeleteDomainPermissionsPolicyCommandError = async
|
|
|
1192
1197
|
body: await parseBody(output.body, context),
|
|
1193
1198
|
};
|
|
1194
1199
|
let response;
|
|
1195
|
-
|
|
1196
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1200
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1197
1201
|
switch (errorCode) {
|
|
1198
1202
|
case "AccessDeniedException":
|
|
1199
1203
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -1215,10 +1219,12 @@ const deserializeAws_restJson1DeleteDomainPermissionsPolicyCommandError = async
|
|
|
1215
1219
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1216
1220
|
default:
|
|
1217
1221
|
const parsedBody = parsedOutput.body;
|
|
1222
|
+
const $metadata = deserializeMetadata(output);
|
|
1223
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1218
1224
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
1219
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1225
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1220
1226
|
$fault: "client",
|
|
1221
|
-
$metadata
|
|
1227
|
+
$metadata,
|
|
1222
1228
|
});
|
|
1223
1229
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1224
1230
|
}
|
|
@@ -1248,8 +1254,7 @@ const deserializeAws_restJson1DeletePackageVersionsCommandError = async (output,
|
|
|
1248
1254
|
body: await parseBody(output.body, context),
|
|
1249
1255
|
};
|
|
1250
1256
|
let response;
|
|
1251
|
-
|
|
1252
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1257
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1253
1258
|
switch (errorCode) {
|
|
1254
1259
|
case "AccessDeniedException":
|
|
1255
1260
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -1271,10 +1276,12 @@ const deserializeAws_restJson1DeletePackageVersionsCommandError = async (output,
|
|
|
1271
1276
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1272
1277
|
default:
|
|
1273
1278
|
const parsedBody = parsedOutput.body;
|
|
1279
|
+
const $metadata = deserializeMetadata(output);
|
|
1280
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1274
1281
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
1275
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1282
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1276
1283
|
$fault: "client",
|
|
1277
|
-
$metadata
|
|
1284
|
+
$metadata,
|
|
1278
1285
|
});
|
|
1279
1286
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1280
1287
|
}
|
|
@@ -1300,8 +1307,7 @@ const deserializeAws_restJson1DeleteRepositoryCommandError = async (output, cont
|
|
|
1300
1307
|
body: await parseBody(output.body, context),
|
|
1301
1308
|
};
|
|
1302
1309
|
let response;
|
|
1303
|
-
|
|
1304
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1310
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1305
1311
|
switch (errorCode) {
|
|
1306
1312
|
case "AccessDeniedException":
|
|
1307
1313
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -1323,10 +1329,12 @@ const deserializeAws_restJson1DeleteRepositoryCommandError = async (output, cont
|
|
|
1323
1329
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1324
1330
|
default:
|
|
1325
1331
|
const parsedBody = parsedOutput.body;
|
|
1332
|
+
const $metadata = deserializeMetadata(output);
|
|
1333
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1326
1334
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
1327
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1335
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1328
1336
|
$fault: "client",
|
|
1329
|
-
$metadata
|
|
1337
|
+
$metadata,
|
|
1330
1338
|
});
|
|
1331
1339
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1332
1340
|
}
|
|
@@ -1352,8 +1360,7 @@ const deserializeAws_restJson1DeleteRepositoryPermissionsPolicyCommandError = as
|
|
|
1352
1360
|
body: await parseBody(output.body, context),
|
|
1353
1361
|
};
|
|
1354
1362
|
let response;
|
|
1355
|
-
|
|
1356
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1363
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1357
1364
|
switch (errorCode) {
|
|
1358
1365
|
case "AccessDeniedException":
|
|
1359
1366
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -1375,10 +1382,12 @@ const deserializeAws_restJson1DeleteRepositoryPermissionsPolicyCommandError = as
|
|
|
1375
1382
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1376
1383
|
default:
|
|
1377
1384
|
const parsedBody = parsedOutput.body;
|
|
1385
|
+
const $metadata = deserializeMetadata(output);
|
|
1386
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1378
1387
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
1379
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1388
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1380
1389
|
$fault: "client",
|
|
1381
|
-
$metadata
|
|
1390
|
+
$metadata,
|
|
1382
1391
|
});
|
|
1383
1392
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1384
1393
|
}
|
|
@@ -1404,8 +1413,7 @@ const deserializeAws_restJson1DescribeDomainCommandError = async (output, contex
|
|
|
1404
1413
|
body: await parseBody(output.body, context),
|
|
1405
1414
|
};
|
|
1406
1415
|
let response;
|
|
1407
|
-
|
|
1408
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1416
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1409
1417
|
switch (errorCode) {
|
|
1410
1418
|
case "AccessDeniedException":
|
|
1411
1419
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -1424,10 +1432,12 @@ const deserializeAws_restJson1DescribeDomainCommandError = async (output, contex
|
|
|
1424
1432
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1425
1433
|
default:
|
|
1426
1434
|
const parsedBody = parsedOutput.body;
|
|
1435
|
+
const $metadata = deserializeMetadata(output);
|
|
1436
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1427
1437
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
1428
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1438
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1429
1439
|
$fault: "client",
|
|
1430
|
-
$metadata
|
|
1440
|
+
$metadata,
|
|
1431
1441
|
});
|
|
1432
1442
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1433
1443
|
}
|
|
@@ -1453,8 +1463,7 @@ const deserializeAws_restJson1DescribePackageVersionCommandError = async (output
|
|
|
1453
1463
|
body: await parseBody(output.body, context),
|
|
1454
1464
|
};
|
|
1455
1465
|
let response;
|
|
1456
|
-
|
|
1457
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1466
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1458
1467
|
switch (errorCode) {
|
|
1459
1468
|
case "AccessDeniedException":
|
|
1460
1469
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -1476,10 +1485,12 @@ const deserializeAws_restJson1DescribePackageVersionCommandError = async (output
|
|
|
1476
1485
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1477
1486
|
default:
|
|
1478
1487
|
const parsedBody = parsedOutput.body;
|
|
1488
|
+
const $metadata = deserializeMetadata(output);
|
|
1489
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1479
1490
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
1480
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1491
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1481
1492
|
$fault: "client",
|
|
1482
|
-
$metadata
|
|
1493
|
+
$metadata,
|
|
1483
1494
|
});
|
|
1484
1495
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1485
1496
|
}
|
|
@@ -1505,8 +1516,7 @@ const deserializeAws_restJson1DescribeRepositoryCommandError = async (output, co
|
|
|
1505
1516
|
body: await parseBody(output.body, context),
|
|
1506
1517
|
};
|
|
1507
1518
|
let response;
|
|
1508
|
-
|
|
1509
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1519
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1510
1520
|
switch (errorCode) {
|
|
1511
1521
|
case "AccessDeniedException":
|
|
1512
1522
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -1525,10 +1535,12 @@ const deserializeAws_restJson1DescribeRepositoryCommandError = async (output, co
|
|
|
1525
1535
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1526
1536
|
default:
|
|
1527
1537
|
const parsedBody = parsedOutput.body;
|
|
1538
|
+
const $metadata = deserializeMetadata(output);
|
|
1539
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1528
1540
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
1529
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1541
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1530
1542
|
$fault: "client",
|
|
1531
|
-
$metadata
|
|
1543
|
+
$metadata,
|
|
1532
1544
|
});
|
|
1533
1545
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1534
1546
|
}
|
|
@@ -1554,8 +1566,7 @@ const deserializeAws_restJson1DisassociateExternalConnectionCommandError = async
|
|
|
1554
1566
|
body: await parseBody(output.body, context),
|
|
1555
1567
|
};
|
|
1556
1568
|
let response;
|
|
1557
|
-
|
|
1558
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1569
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1559
1570
|
switch (errorCode) {
|
|
1560
1571
|
case "AccessDeniedException":
|
|
1561
1572
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -1580,10 +1591,12 @@ const deserializeAws_restJson1DisassociateExternalConnectionCommandError = async
|
|
|
1580
1591
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1581
1592
|
default:
|
|
1582
1593
|
const parsedBody = parsedOutput.body;
|
|
1594
|
+
const $metadata = deserializeMetadata(output);
|
|
1595
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1583
1596
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
1584
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1597
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1585
1598
|
$fault: "client",
|
|
1586
|
-
$metadata
|
|
1599
|
+
$metadata,
|
|
1587
1600
|
});
|
|
1588
1601
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1589
1602
|
}
|
|
@@ -1613,8 +1626,7 @@ const deserializeAws_restJson1DisposePackageVersionsCommandError = async (output
|
|
|
1613
1626
|
body: await parseBody(output.body, context),
|
|
1614
1627
|
};
|
|
1615
1628
|
let response;
|
|
1616
|
-
|
|
1617
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1629
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1618
1630
|
switch (errorCode) {
|
|
1619
1631
|
case "AccessDeniedException":
|
|
1620
1632
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -1636,10 +1648,12 @@ const deserializeAws_restJson1DisposePackageVersionsCommandError = async (output
|
|
|
1636
1648
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1637
1649
|
default:
|
|
1638
1650
|
const parsedBody = parsedOutput.body;
|
|
1651
|
+
const $metadata = deserializeMetadata(output);
|
|
1652
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1639
1653
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
1640
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1654
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1641
1655
|
$fault: "client",
|
|
1642
|
-
$metadata
|
|
1656
|
+
$metadata,
|
|
1643
1657
|
});
|
|
1644
1658
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1645
1659
|
}
|
|
@@ -1669,8 +1683,7 @@ const deserializeAws_restJson1GetAuthorizationTokenCommandError = async (output,
|
|
|
1669
1683
|
body: await parseBody(output.body, context),
|
|
1670
1684
|
};
|
|
1671
1685
|
let response;
|
|
1672
|
-
|
|
1673
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1686
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1674
1687
|
switch (errorCode) {
|
|
1675
1688
|
case "AccessDeniedException":
|
|
1676
1689
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -1689,10 +1702,12 @@ const deserializeAws_restJson1GetAuthorizationTokenCommandError = async (output,
|
|
|
1689
1702
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1690
1703
|
default:
|
|
1691
1704
|
const parsedBody = parsedOutput.body;
|
|
1705
|
+
const $metadata = deserializeMetadata(output);
|
|
1706
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1692
1707
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
1693
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1708
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1694
1709
|
$fault: "client",
|
|
1695
|
-
$metadata
|
|
1710
|
+
$metadata,
|
|
1696
1711
|
});
|
|
1697
1712
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1698
1713
|
}
|
|
@@ -1718,8 +1733,7 @@ const deserializeAws_restJson1GetDomainPermissionsPolicyCommandError = async (ou
|
|
|
1718
1733
|
body: await parseBody(output.body, context),
|
|
1719
1734
|
};
|
|
1720
1735
|
let response;
|
|
1721
|
-
|
|
1722
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1736
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1723
1737
|
switch (errorCode) {
|
|
1724
1738
|
case "AccessDeniedException":
|
|
1725
1739
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -1738,10 +1752,12 @@ const deserializeAws_restJson1GetDomainPermissionsPolicyCommandError = async (ou
|
|
|
1738
1752
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1739
1753
|
default:
|
|
1740
1754
|
const parsedBody = parsedOutput.body;
|
|
1755
|
+
const $metadata = deserializeMetadata(output);
|
|
1756
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1741
1757
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
1742
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1758
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1743
1759
|
$fault: "client",
|
|
1744
|
-
$metadata
|
|
1760
|
+
$metadata,
|
|
1745
1761
|
});
|
|
1746
1762
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1747
1763
|
}
|
|
@@ -1777,8 +1793,7 @@ const deserializeAws_restJson1GetPackageVersionAssetCommandError = async (output
|
|
|
1777
1793
|
body: await parseBody(output.body, context),
|
|
1778
1794
|
};
|
|
1779
1795
|
let response;
|
|
1780
|
-
|
|
1781
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1796
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1782
1797
|
switch (errorCode) {
|
|
1783
1798
|
case "AccessDeniedException":
|
|
1784
1799
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -1800,10 +1815,12 @@ const deserializeAws_restJson1GetPackageVersionAssetCommandError = async (output
|
|
|
1800
1815
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1801
1816
|
default:
|
|
1802
1817
|
const parsedBody = parsedOutput.body;
|
|
1818
|
+
const $metadata = deserializeMetadata(output);
|
|
1819
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1803
1820
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
1804
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1821
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1805
1822
|
$fault: "client",
|
|
1806
|
-
$metadata
|
|
1823
|
+
$metadata,
|
|
1807
1824
|
});
|
|
1808
1825
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1809
1826
|
}
|
|
@@ -1849,8 +1866,7 @@ const deserializeAws_restJson1GetPackageVersionReadmeCommandError = async (outpu
|
|
|
1849
1866
|
body: await parseBody(output.body, context),
|
|
1850
1867
|
};
|
|
1851
1868
|
let response;
|
|
1852
|
-
|
|
1853
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1869
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1854
1870
|
switch (errorCode) {
|
|
1855
1871
|
case "AccessDeniedException":
|
|
1856
1872
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -1869,10 +1885,12 @@ const deserializeAws_restJson1GetPackageVersionReadmeCommandError = async (outpu
|
|
|
1869
1885
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1870
1886
|
default:
|
|
1871
1887
|
const parsedBody = parsedOutput.body;
|
|
1888
|
+
const $metadata = deserializeMetadata(output);
|
|
1889
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1872
1890
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
1873
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1891
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1874
1892
|
$fault: "client",
|
|
1875
|
-
$metadata
|
|
1893
|
+
$metadata,
|
|
1876
1894
|
});
|
|
1877
1895
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1878
1896
|
}
|
|
@@ -1898,8 +1916,7 @@ const deserializeAws_restJson1GetRepositoryEndpointCommandError = async (output,
|
|
|
1898
1916
|
body: await parseBody(output.body, context),
|
|
1899
1917
|
};
|
|
1900
1918
|
let response;
|
|
1901
|
-
|
|
1902
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1919
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1903
1920
|
switch (errorCode) {
|
|
1904
1921
|
case "AccessDeniedException":
|
|
1905
1922
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -1918,10 +1935,12 @@ const deserializeAws_restJson1GetRepositoryEndpointCommandError = async (output,
|
|
|
1918
1935
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1919
1936
|
default:
|
|
1920
1937
|
const parsedBody = parsedOutput.body;
|
|
1938
|
+
const $metadata = deserializeMetadata(output);
|
|
1939
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1921
1940
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
1922
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1941
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1923
1942
|
$fault: "client",
|
|
1924
|
-
$metadata
|
|
1943
|
+
$metadata,
|
|
1925
1944
|
});
|
|
1926
1945
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1927
1946
|
}
|
|
@@ -1947,8 +1966,7 @@ const deserializeAws_restJson1GetRepositoryPermissionsPolicyCommandError = async
|
|
|
1947
1966
|
body: await parseBody(output.body, context),
|
|
1948
1967
|
};
|
|
1949
1968
|
let response;
|
|
1950
|
-
|
|
1951
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1969
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1952
1970
|
switch (errorCode) {
|
|
1953
1971
|
case "AccessDeniedException":
|
|
1954
1972
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -1967,10 +1985,12 @@ const deserializeAws_restJson1GetRepositoryPermissionsPolicyCommandError = async
|
|
|
1967
1985
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1968
1986
|
default:
|
|
1969
1987
|
const parsedBody = parsedOutput.body;
|
|
1988
|
+
const $metadata = deserializeMetadata(output);
|
|
1989
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1970
1990
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
1971
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1991
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1972
1992
|
$fault: "client",
|
|
1973
|
-
$metadata
|
|
1993
|
+
$metadata,
|
|
1974
1994
|
});
|
|
1975
1995
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1976
1996
|
}
|
|
@@ -2000,8 +2020,7 @@ const deserializeAws_restJson1ListDomainsCommandError = async (output, context)
|
|
|
2000
2020
|
body: await parseBody(output.body, context),
|
|
2001
2021
|
};
|
|
2002
2022
|
let response;
|
|
2003
|
-
|
|
2004
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2023
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2005
2024
|
switch (errorCode) {
|
|
2006
2025
|
case "AccessDeniedException":
|
|
2007
2026
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -2017,10 +2036,12 @@ const deserializeAws_restJson1ListDomainsCommandError = async (output, context)
|
|
|
2017
2036
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2018
2037
|
default:
|
|
2019
2038
|
const parsedBody = parsedOutput.body;
|
|
2039
|
+
const $metadata = deserializeMetadata(output);
|
|
2040
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2020
2041
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
2021
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2042
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2022
2043
|
$fault: "client",
|
|
2023
|
-
$metadata
|
|
2044
|
+
$metadata,
|
|
2024
2045
|
});
|
|
2025
2046
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2026
2047
|
}
|
|
@@ -2050,8 +2071,7 @@ const deserializeAws_restJson1ListPackagesCommandError = async (output, context)
|
|
|
2050
2071
|
body: await parseBody(output.body, context),
|
|
2051
2072
|
};
|
|
2052
2073
|
let response;
|
|
2053
|
-
|
|
2054
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2074
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2055
2075
|
switch (errorCode) {
|
|
2056
2076
|
case "AccessDeniedException":
|
|
2057
2077
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -2070,10 +2090,12 @@ const deserializeAws_restJson1ListPackagesCommandError = async (output, context)
|
|
|
2070
2090
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2071
2091
|
default:
|
|
2072
2092
|
const parsedBody = parsedOutput.body;
|
|
2093
|
+
const $metadata = deserializeMetadata(output);
|
|
2094
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2073
2095
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
2074
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2096
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2075
2097
|
$fault: "client",
|
|
2076
|
-
$metadata
|
|
2098
|
+
$metadata,
|
|
2077
2099
|
});
|
|
2078
2100
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2079
2101
|
}
|
|
@@ -2123,8 +2145,7 @@ const deserializeAws_restJson1ListPackageVersionAssetsCommandError = async (outp
|
|
|
2123
2145
|
body: await parseBody(output.body, context),
|
|
2124
2146
|
};
|
|
2125
2147
|
let response;
|
|
2126
|
-
|
|
2127
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2148
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2128
2149
|
switch (errorCode) {
|
|
2129
2150
|
case "AccessDeniedException":
|
|
2130
2151
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -2143,10 +2164,12 @@ const deserializeAws_restJson1ListPackageVersionAssetsCommandError = async (outp
|
|
|
2143
2164
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2144
2165
|
default:
|
|
2145
2166
|
const parsedBody = parsedOutput.body;
|
|
2167
|
+
const $metadata = deserializeMetadata(output);
|
|
2168
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2146
2169
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
2147
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2170
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2148
2171
|
$fault: "client",
|
|
2149
|
-
$metadata
|
|
2172
|
+
$metadata,
|
|
2150
2173
|
});
|
|
2151
2174
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2152
2175
|
}
|
|
@@ -2196,8 +2219,7 @@ const deserializeAws_restJson1ListPackageVersionDependenciesCommandError = async
|
|
|
2196
2219
|
body: await parseBody(output.body, context),
|
|
2197
2220
|
};
|
|
2198
2221
|
let response;
|
|
2199
|
-
|
|
2200
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2222
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2201
2223
|
switch (errorCode) {
|
|
2202
2224
|
case "AccessDeniedException":
|
|
2203
2225
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -2216,10 +2238,12 @@ const deserializeAws_restJson1ListPackageVersionDependenciesCommandError = async
|
|
|
2216
2238
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2217
2239
|
default:
|
|
2218
2240
|
const parsedBody = parsedOutput.body;
|
|
2241
|
+
const $metadata = deserializeMetadata(output);
|
|
2242
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2219
2243
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
2220
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2244
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2221
2245
|
$fault: "client",
|
|
2222
|
-
$metadata
|
|
2246
|
+
$metadata,
|
|
2223
2247
|
});
|
|
2224
2248
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2225
2249
|
}
|
|
@@ -2265,8 +2289,7 @@ const deserializeAws_restJson1ListPackageVersionsCommandError = async (output, c
|
|
|
2265
2289
|
body: await parseBody(output.body, context),
|
|
2266
2290
|
};
|
|
2267
2291
|
let response;
|
|
2268
|
-
|
|
2269
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2292
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2270
2293
|
switch (errorCode) {
|
|
2271
2294
|
case "AccessDeniedException":
|
|
2272
2295
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -2285,10 +2308,12 @@ const deserializeAws_restJson1ListPackageVersionsCommandError = async (output, c
|
|
|
2285
2308
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2286
2309
|
default:
|
|
2287
2310
|
const parsedBody = parsedOutput.body;
|
|
2311
|
+
const $metadata = deserializeMetadata(output);
|
|
2312
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2288
2313
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
2289
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2314
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2290
2315
|
$fault: "client",
|
|
2291
|
-
$metadata
|
|
2316
|
+
$metadata,
|
|
2292
2317
|
});
|
|
2293
2318
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2294
2319
|
}
|
|
@@ -2318,8 +2343,7 @@ const deserializeAws_restJson1ListRepositoriesCommandError = async (output, cont
|
|
|
2318
2343
|
body: await parseBody(output.body, context),
|
|
2319
2344
|
};
|
|
2320
2345
|
let response;
|
|
2321
|
-
|
|
2322
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2346
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2323
2347
|
switch (errorCode) {
|
|
2324
2348
|
case "AccessDeniedException":
|
|
2325
2349
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -2335,10 +2359,12 @@ const deserializeAws_restJson1ListRepositoriesCommandError = async (output, cont
|
|
|
2335
2359
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2336
2360
|
default:
|
|
2337
2361
|
const parsedBody = parsedOutput.body;
|
|
2362
|
+
const $metadata = deserializeMetadata(output);
|
|
2363
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2338
2364
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
2339
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2365
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2340
2366
|
$fault: "client",
|
|
2341
|
-
$metadata
|
|
2367
|
+
$metadata,
|
|
2342
2368
|
});
|
|
2343
2369
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2344
2370
|
}
|
|
@@ -2368,8 +2394,7 @@ const deserializeAws_restJson1ListRepositoriesInDomainCommandError = async (outp
|
|
|
2368
2394
|
body: await parseBody(output.body, context),
|
|
2369
2395
|
};
|
|
2370
2396
|
let response;
|
|
2371
|
-
|
|
2372
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2397
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2373
2398
|
switch (errorCode) {
|
|
2374
2399
|
case "AccessDeniedException":
|
|
2375
2400
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -2388,10 +2413,12 @@ const deserializeAws_restJson1ListRepositoriesInDomainCommandError = async (outp
|
|
|
2388
2413
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2389
2414
|
default:
|
|
2390
2415
|
const parsedBody = parsedOutput.body;
|
|
2416
|
+
const $metadata = deserializeMetadata(output);
|
|
2417
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2391
2418
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
2392
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2419
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2393
2420
|
$fault: "client",
|
|
2394
|
-
$metadata
|
|
2421
|
+
$metadata,
|
|
2395
2422
|
});
|
|
2396
2423
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2397
2424
|
}
|
|
@@ -2417,8 +2444,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2417
2444
|
body: await parseBody(output.body, context),
|
|
2418
2445
|
};
|
|
2419
2446
|
let response;
|
|
2420
|
-
|
|
2421
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2447
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2422
2448
|
switch (errorCode) {
|
|
2423
2449
|
case "AccessDeniedException":
|
|
2424
2450
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -2434,10 +2460,12 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2434
2460
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2435
2461
|
default:
|
|
2436
2462
|
const parsedBody = parsedOutput.body;
|
|
2463
|
+
const $metadata = deserializeMetadata(output);
|
|
2464
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2437
2465
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
2438
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2466
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2439
2467
|
$fault: "client",
|
|
2440
|
-
$metadata
|
|
2468
|
+
$metadata,
|
|
2441
2469
|
});
|
|
2442
2470
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2443
2471
|
}
|
|
@@ -2463,8 +2491,7 @@ const deserializeAws_restJson1PutDomainPermissionsPolicyCommandError = async (ou
|
|
|
2463
2491
|
body: await parseBody(output.body, context),
|
|
2464
2492
|
};
|
|
2465
2493
|
let response;
|
|
2466
|
-
|
|
2467
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2494
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2468
2495
|
switch (errorCode) {
|
|
2469
2496
|
case "AccessDeniedException":
|
|
2470
2497
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -2489,10 +2516,12 @@ const deserializeAws_restJson1PutDomainPermissionsPolicyCommandError = async (ou
|
|
|
2489
2516
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2490
2517
|
default:
|
|
2491
2518
|
const parsedBody = parsedOutput.body;
|
|
2519
|
+
const $metadata = deserializeMetadata(output);
|
|
2520
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2492
2521
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
2493
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2522
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2494
2523
|
$fault: "client",
|
|
2495
|
-
$metadata
|
|
2524
|
+
$metadata,
|
|
2496
2525
|
});
|
|
2497
2526
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2498
2527
|
}
|
|
@@ -2518,8 +2547,7 @@ const deserializeAws_restJson1PutRepositoryPermissionsPolicyCommandError = async
|
|
|
2518
2547
|
body: await parseBody(output.body, context),
|
|
2519
2548
|
};
|
|
2520
2549
|
let response;
|
|
2521
|
-
|
|
2522
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2550
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2523
2551
|
switch (errorCode) {
|
|
2524
2552
|
case "AccessDeniedException":
|
|
2525
2553
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -2544,10 +2572,12 @@ const deserializeAws_restJson1PutRepositoryPermissionsPolicyCommandError = async
|
|
|
2544
2572
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2545
2573
|
default:
|
|
2546
2574
|
const parsedBody = parsedOutput.body;
|
|
2575
|
+
const $metadata = deserializeMetadata(output);
|
|
2576
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2547
2577
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
2548
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2578
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2549
2579
|
$fault: "client",
|
|
2550
|
-
$metadata
|
|
2580
|
+
$metadata,
|
|
2551
2581
|
});
|
|
2552
2582
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2553
2583
|
}
|
|
@@ -2569,8 +2599,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2569
2599
|
body: await parseBody(output.body, context),
|
|
2570
2600
|
};
|
|
2571
2601
|
let response;
|
|
2572
|
-
|
|
2573
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2602
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2574
2603
|
switch (errorCode) {
|
|
2575
2604
|
case "AccessDeniedException":
|
|
2576
2605
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -2589,10 +2618,12 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2589
2618
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2590
2619
|
default:
|
|
2591
2620
|
const parsedBody = parsedOutput.body;
|
|
2621
|
+
const $metadata = deserializeMetadata(output);
|
|
2622
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2592
2623
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
2593
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2624
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2594
2625
|
$fault: "client",
|
|
2595
|
-
$metadata
|
|
2626
|
+
$metadata,
|
|
2596
2627
|
});
|
|
2597
2628
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2598
2629
|
}
|
|
@@ -2614,8 +2645,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2614
2645
|
body: await parseBody(output.body, context),
|
|
2615
2646
|
};
|
|
2616
2647
|
let response;
|
|
2617
|
-
|
|
2618
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2648
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2619
2649
|
switch (errorCode) {
|
|
2620
2650
|
case "AccessDeniedException":
|
|
2621
2651
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -2631,10 +2661,12 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2631
2661
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2632
2662
|
default:
|
|
2633
2663
|
const parsedBody = parsedOutput.body;
|
|
2664
|
+
const $metadata = deserializeMetadata(output);
|
|
2665
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2634
2666
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
2635
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2667
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2636
2668
|
$fault: "client",
|
|
2637
|
-
$metadata
|
|
2669
|
+
$metadata,
|
|
2638
2670
|
});
|
|
2639
2671
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2640
2672
|
}
|
|
@@ -2664,8 +2696,7 @@ const deserializeAws_restJson1UpdatePackageVersionsStatusCommandError = async (o
|
|
|
2664
2696
|
body: await parseBody(output.body, context),
|
|
2665
2697
|
};
|
|
2666
2698
|
let response;
|
|
2667
|
-
|
|
2668
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2699
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2669
2700
|
switch (errorCode) {
|
|
2670
2701
|
case "AccessDeniedException":
|
|
2671
2702
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -2687,10 +2718,12 @@ const deserializeAws_restJson1UpdatePackageVersionsStatusCommandError = async (o
|
|
|
2687
2718
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2688
2719
|
default:
|
|
2689
2720
|
const parsedBody = parsedOutput.body;
|
|
2721
|
+
const $metadata = deserializeMetadata(output);
|
|
2722
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2690
2723
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
2691
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2724
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2692
2725
|
$fault: "client",
|
|
2693
|
-
$metadata
|
|
2726
|
+
$metadata,
|
|
2694
2727
|
});
|
|
2695
2728
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2696
2729
|
}
|
|
@@ -2716,8 +2749,7 @@ const deserializeAws_restJson1UpdateRepositoryCommandError = async (output, cont
|
|
|
2716
2749
|
body: await parseBody(output.body, context),
|
|
2717
2750
|
};
|
|
2718
2751
|
let response;
|
|
2719
|
-
|
|
2720
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2752
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2721
2753
|
switch (errorCode) {
|
|
2722
2754
|
case "AccessDeniedException":
|
|
2723
2755
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -2742,10 +2774,12 @@ const deserializeAws_restJson1UpdateRepositoryCommandError = async (output, cont
|
|
|
2742
2774
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2743
2775
|
default:
|
|
2744
2776
|
const parsedBody = parsedOutput.body;
|
|
2777
|
+
const $metadata = deserializeMetadata(output);
|
|
2778
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2745
2779
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
2746
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2780
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2747
2781
|
$fault: "client",
|
|
2748
|
-
$metadata
|
|
2782
|
+
$metadata,
|
|
2749
2783
|
});
|
|
2750
2784
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2751
2785
|
}
|
|
@@ -3260,5 +3294,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
3260
3294
|
if (data["__type"] !== undefined) {
|
|
3261
3295
|
return sanitizeErrorCode(data["__type"]);
|
|
3262
3296
|
}
|
|
3263
|
-
return "";
|
|
3264
3297
|
};
|