@aws-sdk/client-codeartifact 3.504.0 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +70 -1280
- package/dist-es/protocols/Aws_restJson1.js +61 -1271
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -1073,7 +1073,7 @@ var se_UpdateRepositoryCommand = /* @__PURE__ */ __name(async (input, context) =
|
|
|
1073
1073
|
}, "se_UpdateRepositoryCommand");
|
|
1074
1074
|
var de_AssociateExternalConnectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1075
1075
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1076
|
-
return
|
|
1076
|
+
return de_CommandError(output, context);
|
|
1077
1077
|
}
|
|
1078
1078
|
const contents = (0, import_smithy_client.map)({
|
|
1079
1079
|
$metadata: deserializeMetadata(output)
|
|
@@ -1085,46 +1085,9 @@ var de_AssociateExternalConnectionCommand = /* @__PURE__ */ __name(async (output
|
|
|
1085
1085
|
Object.assign(contents, doc);
|
|
1086
1086
|
return contents;
|
|
1087
1087
|
}, "de_AssociateExternalConnectionCommand");
|
|
1088
|
-
var de_AssociateExternalConnectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1089
|
-
const parsedOutput = {
|
|
1090
|
-
...output,
|
|
1091
|
-
body: await parseErrorBody(output.body, context)
|
|
1092
|
-
};
|
|
1093
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1094
|
-
switch (errorCode) {
|
|
1095
|
-
case "AccessDeniedException":
|
|
1096
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1097
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1098
|
-
case "ConflictException":
|
|
1099
|
-
case "com.amazonaws.codeartifact#ConflictException":
|
|
1100
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1101
|
-
case "InternalServerException":
|
|
1102
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1103
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1104
|
-
case "ResourceNotFoundException":
|
|
1105
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1106
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1107
|
-
case "ServiceQuotaExceededException":
|
|
1108
|
-
case "com.amazonaws.codeartifact#ServiceQuotaExceededException":
|
|
1109
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1110
|
-
case "ThrottlingException":
|
|
1111
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1112
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1113
|
-
case "ValidationException":
|
|
1114
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
1115
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1116
|
-
default:
|
|
1117
|
-
const parsedBody = parsedOutput.body;
|
|
1118
|
-
return throwDefaultError({
|
|
1119
|
-
output,
|
|
1120
|
-
parsedBody,
|
|
1121
|
-
errorCode
|
|
1122
|
-
});
|
|
1123
|
-
}
|
|
1124
|
-
}, "de_AssociateExternalConnectionCommandError");
|
|
1125
1088
|
var de_CopyPackageVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1126
1089
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1127
|
-
return
|
|
1090
|
+
return de_CommandError(output, context);
|
|
1128
1091
|
}
|
|
1129
1092
|
const contents = (0, import_smithy_client.map)({
|
|
1130
1093
|
$metadata: deserializeMetadata(output)
|
|
@@ -1137,46 +1100,9 @@ var de_CopyPackageVersionsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1137
1100
|
Object.assign(contents, doc);
|
|
1138
1101
|
return contents;
|
|
1139
1102
|
}, "de_CopyPackageVersionsCommand");
|
|
1140
|
-
var de_CopyPackageVersionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1141
|
-
const parsedOutput = {
|
|
1142
|
-
...output,
|
|
1143
|
-
body: await parseErrorBody(output.body, context)
|
|
1144
|
-
};
|
|
1145
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1146
|
-
switch (errorCode) {
|
|
1147
|
-
case "AccessDeniedException":
|
|
1148
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1149
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1150
|
-
case "ConflictException":
|
|
1151
|
-
case "com.amazonaws.codeartifact#ConflictException":
|
|
1152
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1153
|
-
case "InternalServerException":
|
|
1154
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1155
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1156
|
-
case "ResourceNotFoundException":
|
|
1157
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1158
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1159
|
-
case "ServiceQuotaExceededException":
|
|
1160
|
-
case "com.amazonaws.codeartifact#ServiceQuotaExceededException":
|
|
1161
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1162
|
-
case "ThrottlingException":
|
|
1163
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1164
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1165
|
-
case "ValidationException":
|
|
1166
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
1167
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1168
|
-
default:
|
|
1169
|
-
const parsedBody = parsedOutput.body;
|
|
1170
|
-
return throwDefaultError({
|
|
1171
|
-
output,
|
|
1172
|
-
parsedBody,
|
|
1173
|
-
errorCode
|
|
1174
|
-
});
|
|
1175
|
-
}
|
|
1176
|
-
}, "de_CopyPackageVersionsCommandError");
|
|
1177
1103
|
var de_CreateDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1178
1104
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1179
|
-
return
|
|
1105
|
+
return de_CommandError(output, context);
|
|
1180
1106
|
}
|
|
1181
1107
|
const contents = (0, import_smithy_client.map)({
|
|
1182
1108
|
$metadata: deserializeMetadata(output)
|
|
@@ -1188,46 +1114,9 @@ var de_CreateDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1188
1114
|
Object.assign(contents, doc);
|
|
1189
1115
|
return contents;
|
|
1190
1116
|
}, "de_CreateDomainCommand");
|
|
1191
|
-
var de_CreateDomainCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1192
|
-
const parsedOutput = {
|
|
1193
|
-
...output,
|
|
1194
|
-
body: await parseErrorBody(output.body, context)
|
|
1195
|
-
};
|
|
1196
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1197
|
-
switch (errorCode) {
|
|
1198
|
-
case "AccessDeniedException":
|
|
1199
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1200
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1201
|
-
case "ConflictException":
|
|
1202
|
-
case "com.amazonaws.codeartifact#ConflictException":
|
|
1203
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1204
|
-
case "InternalServerException":
|
|
1205
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1206
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1207
|
-
case "ResourceNotFoundException":
|
|
1208
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1209
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1210
|
-
case "ServiceQuotaExceededException":
|
|
1211
|
-
case "com.amazonaws.codeartifact#ServiceQuotaExceededException":
|
|
1212
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1213
|
-
case "ThrottlingException":
|
|
1214
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1215
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1216
|
-
case "ValidationException":
|
|
1217
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
1218
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1219
|
-
default:
|
|
1220
|
-
const parsedBody = parsedOutput.body;
|
|
1221
|
-
return throwDefaultError({
|
|
1222
|
-
output,
|
|
1223
|
-
parsedBody,
|
|
1224
|
-
errorCode
|
|
1225
|
-
});
|
|
1226
|
-
}
|
|
1227
|
-
}, "de_CreateDomainCommandError");
|
|
1228
1117
|
var de_CreateRepositoryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1229
1118
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1230
|
-
return
|
|
1119
|
+
return de_CommandError(output, context);
|
|
1231
1120
|
}
|
|
1232
1121
|
const contents = (0, import_smithy_client.map)({
|
|
1233
1122
|
$metadata: deserializeMetadata(output)
|
|
@@ -1239,46 +1128,9 @@ var de_CreateRepositoryCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1239
1128
|
Object.assign(contents, doc);
|
|
1240
1129
|
return contents;
|
|
1241
1130
|
}, "de_CreateRepositoryCommand");
|
|
1242
|
-
var de_CreateRepositoryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1243
|
-
const parsedOutput = {
|
|
1244
|
-
...output,
|
|
1245
|
-
body: await parseErrorBody(output.body, context)
|
|
1246
|
-
};
|
|
1247
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1248
|
-
switch (errorCode) {
|
|
1249
|
-
case "AccessDeniedException":
|
|
1250
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1251
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1252
|
-
case "ConflictException":
|
|
1253
|
-
case "com.amazonaws.codeartifact#ConflictException":
|
|
1254
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1255
|
-
case "InternalServerException":
|
|
1256
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1257
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1258
|
-
case "ResourceNotFoundException":
|
|
1259
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1260
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1261
|
-
case "ServiceQuotaExceededException":
|
|
1262
|
-
case "com.amazonaws.codeartifact#ServiceQuotaExceededException":
|
|
1263
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1264
|
-
case "ThrottlingException":
|
|
1265
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1266
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1267
|
-
case "ValidationException":
|
|
1268
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
1269
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1270
|
-
default:
|
|
1271
|
-
const parsedBody = parsedOutput.body;
|
|
1272
|
-
return throwDefaultError({
|
|
1273
|
-
output,
|
|
1274
|
-
parsedBody,
|
|
1275
|
-
errorCode
|
|
1276
|
-
});
|
|
1277
|
-
}
|
|
1278
|
-
}, "de_CreateRepositoryCommandError");
|
|
1279
1131
|
var de_DeleteDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1280
1132
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1281
|
-
return
|
|
1133
|
+
return de_CommandError(output, context);
|
|
1282
1134
|
}
|
|
1283
1135
|
const contents = (0, import_smithy_client.map)({
|
|
1284
1136
|
$metadata: deserializeMetadata(output)
|
|
@@ -1290,40 +1142,9 @@ var de_DeleteDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1290
1142
|
Object.assign(contents, doc);
|
|
1291
1143
|
return contents;
|
|
1292
1144
|
}, "de_DeleteDomainCommand");
|
|
1293
|
-
var de_DeleteDomainCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1294
|
-
const parsedOutput = {
|
|
1295
|
-
...output,
|
|
1296
|
-
body: await parseErrorBody(output.body, context)
|
|
1297
|
-
};
|
|
1298
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1299
|
-
switch (errorCode) {
|
|
1300
|
-
case "AccessDeniedException":
|
|
1301
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1302
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1303
|
-
case "ConflictException":
|
|
1304
|
-
case "com.amazonaws.codeartifact#ConflictException":
|
|
1305
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1306
|
-
case "InternalServerException":
|
|
1307
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1308
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1309
|
-
case "ThrottlingException":
|
|
1310
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1311
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1312
|
-
case "ValidationException":
|
|
1313
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
1314
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1315
|
-
default:
|
|
1316
|
-
const parsedBody = parsedOutput.body;
|
|
1317
|
-
return throwDefaultError({
|
|
1318
|
-
output,
|
|
1319
|
-
parsedBody,
|
|
1320
|
-
errorCode
|
|
1321
|
-
});
|
|
1322
|
-
}
|
|
1323
|
-
}, "de_DeleteDomainCommandError");
|
|
1324
1145
|
var de_DeleteDomainPermissionsPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1325
1146
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1326
|
-
return
|
|
1147
|
+
return de_CommandError(output, context);
|
|
1327
1148
|
}
|
|
1328
1149
|
const contents = (0, import_smithy_client.map)({
|
|
1329
1150
|
$metadata: deserializeMetadata(output)
|
|
@@ -1335,43 +1156,9 @@ var de_DeleteDomainPermissionsPolicyCommand = /* @__PURE__ */ __name(async (outp
|
|
|
1335
1156
|
Object.assign(contents, doc);
|
|
1336
1157
|
return contents;
|
|
1337
1158
|
}, "de_DeleteDomainPermissionsPolicyCommand");
|
|
1338
|
-
var de_DeleteDomainPermissionsPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1339
|
-
const parsedOutput = {
|
|
1340
|
-
...output,
|
|
1341
|
-
body: await parseErrorBody(output.body, context)
|
|
1342
|
-
};
|
|
1343
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1344
|
-
switch (errorCode) {
|
|
1345
|
-
case "AccessDeniedException":
|
|
1346
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1347
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1348
|
-
case "ConflictException":
|
|
1349
|
-
case "com.amazonaws.codeartifact#ConflictException":
|
|
1350
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1351
|
-
case "InternalServerException":
|
|
1352
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1353
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1354
|
-
case "ResourceNotFoundException":
|
|
1355
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1356
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1357
|
-
case "ThrottlingException":
|
|
1358
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1359
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1360
|
-
case "ValidationException":
|
|
1361
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
1362
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1363
|
-
default:
|
|
1364
|
-
const parsedBody = parsedOutput.body;
|
|
1365
|
-
return throwDefaultError({
|
|
1366
|
-
output,
|
|
1367
|
-
parsedBody,
|
|
1368
|
-
errorCode
|
|
1369
|
-
});
|
|
1370
|
-
}
|
|
1371
|
-
}, "de_DeleteDomainPermissionsPolicyCommandError");
|
|
1372
1159
|
var de_DeletePackageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1373
1160
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1374
|
-
return
|
|
1161
|
+
return de_CommandError(output, context);
|
|
1375
1162
|
}
|
|
1376
1163
|
const contents = (0, import_smithy_client.map)({
|
|
1377
1164
|
$metadata: deserializeMetadata(output)
|
|
@@ -1383,43 +1170,9 @@ var de_DeletePackageCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1383
1170
|
Object.assign(contents, doc);
|
|
1384
1171
|
return contents;
|
|
1385
1172
|
}, "de_DeletePackageCommand");
|
|
1386
|
-
var de_DeletePackageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1387
|
-
const parsedOutput = {
|
|
1388
|
-
...output,
|
|
1389
|
-
body: await parseErrorBody(output.body, context)
|
|
1390
|
-
};
|
|
1391
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1392
|
-
switch (errorCode) {
|
|
1393
|
-
case "AccessDeniedException":
|
|
1394
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1395
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1396
|
-
case "ConflictException":
|
|
1397
|
-
case "com.amazonaws.codeartifact#ConflictException":
|
|
1398
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1399
|
-
case "InternalServerException":
|
|
1400
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1401
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1402
|
-
case "ResourceNotFoundException":
|
|
1403
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1404
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1405
|
-
case "ThrottlingException":
|
|
1406
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1407
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1408
|
-
case "ValidationException":
|
|
1409
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
1410
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1411
|
-
default:
|
|
1412
|
-
const parsedBody = parsedOutput.body;
|
|
1413
|
-
return throwDefaultError({
|
|
1414
|
-
output,
|
|
1415
|
-
parsedBody,
|
|
1416
|
-
errorCode
|
|
1417
|
-
});
|
|
1418
|
-
}
|
|
1419
|
-
}, "de_DeletePackageCommandError");
|
|
1420
1173
|
var de_DeletePackageVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1421
1174
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1422
|
-
return
|
|
1175
|
+
return de_CommandError(output, context);
|
|
1423
1176
|
}
|
|
1424
1177
|
const contents = (0, import_smithy_client.map)({
|
|
1425
1178
|
$metadata: deserializeMetadata(output)
|
|
@@ -1432,43 +1185,9 @@ var de_DeletePackageVersionsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1432
1185
|
Object.assign(contents, doc);
|
|
1433
1186
|
return contents;
|
|
1434
1187
|
}, "de_DeletePackageVersionsCommand");
|
|
1435
|
-
var de_DeletePackageVersionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1436
|
-
const parsedOutput = {
|
|
1437
|
-
...output,
|
|
1438
|
-
body: await parseErrorBody(output.body, context)
|
|
1439
|
-
};
|
|
1440
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1441
|
-
switch (errorCode) {
|
|
1442
|
-
case "AccessDeniedException":
|
|
1443
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1444
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1445
|
-
case "ConflictException":
|
|
1446
|
-
case "com.amazonaws.codeartifact#ConflictException":
|
|
1447
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1448
|
-
case "InternalServerException":
|
|
1449
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1450
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1451
|
-
case "ResourceNotFoundException":
|
|
1452
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1453
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1454
|
-
case "ThrottlingException":
|
|
1455
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1456
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1457
|
-
case "ValidationException":
|
|
1458
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
1459
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1460
|
-
default:
|
|
1461
|
-
const parsedBody = parsedOutput.body;
|
|
1462
|
-
return throwDefaultError({
|
|
1463
|
-
output,
|
|
1464
|
-
parsedBody,
|
|
1465
|
-
errorCode
|
|
1466
|
-
});
|
|
1467
|
-
}
|
|
1468
|
-
}, "de_DeletePackageVersionsCommandError");
|
|
1469
1188
|
var de_DeleteRepositoryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1470
1189
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1471
|
-
return
|
|
1190
|
+
return de_CommandError(output, context);
|
|
1472
1191
|
}
|
|
1473
1192
|
const contents = (0, import_smithy_client.map)({
|
|
1474
1193
|
$metadata: deserializeMetadata(output)
|
|
@@ -1480,43 +1199,9 @@ var de_DeleteRepositoryCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1480
1199
|
Object.assign(contents, doc);
|
|
1481
1200
|
return contents;
|
|
1482
1201
|
}, "de_DeleteRepositoryCommand");
|
|
1483
|
-
var de_DeleteRepositoryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1484
|
-
const parsedOutput = {
|
|
1485
|
-
...output,
|
|
1486
|
-
body: await parseErrorBody(output.body, context)
|
|
1487
|
-
};
|
|
1488
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1489
|
-
switch (errorCode) {
|
|
1490
|
-
case "AccessDeniedException":
|
|
1491
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1492
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1493
|
-
case "ConflictException":
|
|
1494
|
-
case "com.amazonaws.codeartifact#ConflictException":
|
|
1495
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1496
|
-
case "InternalServerException":
|
|
1497
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1498
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1499
|
-
case "ResourceNotFoundException":
|
|
1500
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1501
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1502
|
-
case "ThrottlingException":
|
|
1503
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1504
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1505
|
-
case "ValidationException":
|
|
1506
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
1507
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1508
|
-
default:
|
|
1509
|
-
const parsedBody = parsedOutput.body;
|
|
1510
|
-
return throwDefaultError({
|
|
1511
|
-
output,
|
|
1512
|
-
parsedBody,
|
|
1513
|
-
errorCode
|
|
1514
|
-
});
|
|
1515
|
-
}
|
|
1516
|
-
}, "de_DeleteRepositoryCommandError");
|
|
1517
1202
|
var de_DeleteRepositoryPermissionsPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1518
1203
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1519
|
-
return
|
|
1204
|
+
return de_CommandError(output, context);
|
|
1520
1205
|
}
|
|
1521
1206
|
const contents = (0, import_smithy_client.map)({
|
|
1522
1207
|
$metadata: deserializeMetadata(output)
|
|
@@ -1528,43 +1213,9 @@ var de_DeleteRepositoryPermissionsPolicyCommand = /* @__PURE__ */ __name(async (
|
|
|
1528
1213
|
Object.assign(contents, doc);
|
|
1529
1214
|
return contents;
|
|
1530
1215
|
}, "de_DeleteRepositoryPermissionsPolicyCommand");
|
|
1531
|
-
var de_DeleteRepositoryPermissionsPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1532
|
-
const parsedOutput = {
|
|
1533
|
-
...output,
|
|
1534
|
-
body: await parseErrorBody(output.body, context)
|
|
1535
|
-
};
|
|
1536
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1537
|
-
switch (errorCode) {
|
|
1538
|
-
case "AccessDeniedException":
|
|
1539
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1540
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1541
|
-
case "ConflictException":
|
|
1542
|
-
case "com.amazonaws.codeartifact#ConflictException":
|
|
1543
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1544
|
-
case "InternalServerException":
|
|
1545
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1546
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1547
|
-
case "ResourceNotFoundException":
|
|
1548
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1549
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1550
|
-
case "ThrottlingException":
|
|
1551
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1552
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1553
|
-
case "ValidationException":
|
|
1554
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
1555
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1556
|
-
default:
|
|
1557
|
-
const parsedBody = parsedOutput.body;
|
|
1558
|
-
return throwDefaultError({
|
|
1559
|
-
output,
|
|
1560
|
-
parsedBody,
|
|
1561
|
-
errorCode
|
|
1562
|
-
});
|
|
1563
|
-
}
|
|
1564
|
-
}, "de_DeleteRepositoryPermissionsPolicyCommandError");
|
|
1565
1216
|
var de_DescribeDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1566
1217
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1567
|
-
return
|
|
1218
|
+
return de_CommandError(output, context);
|
|
1568
1219
|
}
|
|
1569
1220
|
const contents = (0, import_smithy_client.map)({
|
|
1570
1221
|
$metadata: deserializeMetadata(output)
|
|
@@ -1576,40 +1227,9 @@ var de_DescribeDomainCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1576
1227
|
Object.assign(contents, doc);
|
|
1577
1228
|
return contents;
|
|
1578
1229
|
}, "de_DescribeDomainCommand");
|
|
1579
|
-
var de_DescribeDomainCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1580
|
-
const parsedOutput = {
|
|
1581
|
-
...output,
|
|
1582
|
-
body: await parseErrorBody(output.body, context)
|
|
1583
|
-
};
|
|
1584
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1585
|
-
switch (errorCode) {
|
|
1586
|
-
case "AccessDeniedException":
|
|
1587
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1588
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1589
|
-
case "InternalServerException":
|
|
1590
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1591
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1592
|
-
case "ResourceNotFoundException":
|
|
1593
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1594
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1595
|
-
case "ThrottlingException":
|
|
1596
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1597
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1598
|
-
case "ValidationException":
|
|
1599
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
1600
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1601
|
-
default:
|
|
1602
|
-
const parsedBody = parsedOutput.body;
|
|
1603
|
-
return throwDefaultError({
|
|
1604
|
-
output,
|
|
1605
|
-
parsedBody,
|
|
1606
|
-
errorCode
|
|
1607
|
-
});
|
|
1608
|
-
}
|
|
1609
|
-
}, "de_DescribeDomainCommandError");
|
|
1610
1230
|
var de_DescribePackageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1611
1231
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1612
|
-
return
|
|
1232
|
+
return de_CommandError(output, context);
|
|
1613
1233
|
}
|
|
1614
1234
|
const contents = (0, import_smithy_client.map)({
|
|
1615
1235
|
$metadata: deserializeMetadata(output)
|
|
@@ -1621,40 +1241,9 @@ var de_DescribePackageCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1621
1241
|
Object.assign(contents, doc);
|
|
1622
1242
|
return contents;
|
|
1623
1243
|
}, "de_DescribePackageCommand");
|
|
1624
|
-
var de_DescribePackageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1625
|
-
const parsedOutput = {
|
|
1626
|
-
...output,
|
|
1627
|
-
body: await parseErrorBody(output.body, context)
|
|
1628
|
-
};
|
|
1629
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1630
|
-
switch (errorCode) {
|
|
1631
|
-
case "AccessDeniedException":
|
|
1632
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1633
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1634
|
-
case "InternalServerException":
|
|
1635
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1636
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1637
|
-
case "ResourceNotFoundException":
|
|
1638
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1639
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1640
|
-
case "ThrottlingException":
|
|
1641
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1642
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1643
|
-
case "ValidationException":
|
|
1644
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
1645
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1646
|
-
default:
|
|
1647
|
-
const parsedBody = parsedOutput.body;
|
|
1648
|
-
return throwDefaultError({
|
|
1649
|
-
output,
|
|
1650
|
-
parsedBody,
|
|
1651
|
-
errorCode
|
|
1652
|
-
});
|
|
1653
|
-
}
|
|
1654
|
-
}, "de_DescribePackageCommandError");
|
|
1655
1244
|
var de_DescribePackageVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1656
1245
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1657
|
-
return
|
|
1246
|
+
return de_CommandError(output, context);
|
|
1658
1247
|
}
|
|
1659
1248
|
const contents = (0, import_smithy_client.map)({
|
|
1660
1249
|
$metadata: deserializeMetadata(output)
|
|
@@ -1666,43 +1255,9 @@ var de_DescribePackageVersionCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1666
1255
|
Object.assign(contents, doc);
|
|
1667
1256
|
return contents;
|
|
1668
1257
|
}, "de_DescribePackageVersionCommand");
|
|
1669
|
-
var de_DescribePackageVersionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1670
|
-
const parsedOutput = {
|
|
1671
|
-
...output,
|
|
1672
|
-
body: await parseErrorBody(output.body, context)
|
|
1673
|
-
};
|
|
1674
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1675
|
-
switch (errorCode) {
|
|
1676
|
-
case "AccessDeniedException":
|
|
1677
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1678
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1679
|
-
case "ConflictException":
|
|
1680
|
-
case "com.amazonaws.codeartifact#ConflictException":
|
|
1681
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1682
|
-
case "InternalServerException":
|
|
1683
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1684
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1685
|
-
case "ResourceNotFoundException":
|
|
1686
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1687
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1688
|
-
case "ThrottlingException":
|
|
1689
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1690
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1691
|
-
case "ValidationException":
|
|
1692
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
1693
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1694
|
-
default:
|
|
1695
|
-
const parsedBody = parsedOutput.body;
|
|
1696
|
-
return throwDefaultError({
|
|
1697
|
-
output,
|
|
1698
|
-
parsedBody,
|
|
1699
|
-
errorCode
|
|
1700
|
-
});
|
|
1701
|
-
}
|
|
1702
|
-
}, "de_DescribePackageVersionCommandError");
|
|
1703
1258
|
var de_DescribeRepositoryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1704
1259
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1705
|
-
return
|
|
1260
|
+
return de_CommandError(output, context);
|
|
1706
1261
|
}
|
|
1707
1262
|
const contents = (0, import_smithy_client.map)({
|
|
1708
1263
|
$metadata: deserializeMetadata(output)
|
|
@@ -1714,40 +1269,9 @@ var de_DescribeRepositoryCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1714
1269
|
Object.assign(contents, doc);
|
|
1715
1270
|
return contents;
|
|
1716
1271
|
}, "de_DescribeRepositoryCommand");
|
|
1717
|
-
var de_DescribeRepositoryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1718
|
-
const parsedOutput = {
|
|
1719
|
-
...output,
|
|
1720
|
-
body: await parseErrorBody(output.body, context)
|
|
1721
|
-
};
|
|
1722
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1723
|
-
switch (errorCode) {
|
|
1724
|
-
case "AccessDeniedException":
|
|
1725
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1726
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1727
|
-
case "InternalServerException":
|
|
1728
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1729
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1730
|
-
case "ResourceNotFoundException":
|
|
1731
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1732
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1733
|
-
case "ThrottlingException":
|
|
1734
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1735
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1736
|
-
case "ValidationException":
|
|
1737
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
1738
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1739
|
-
default:
|
|
1740
|
-
const parsedBody = parsedOutput.body;
|
|
1741
|
-
return throwDefaultError({
|
|
1742
|
-
output,
|
|
1743
|
-
parsedBody,
|
|
1744
|
-
errorCode
|
|
1745
|
-
});
|
|
1746
|
-
}
|
|
1747
|
-
}, "de_DescribeRepositoryCommandError");
|
|
1748
1272
|
var de_DisassociateExternalConnectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1749
1273
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1750
|
-
return
|
|
1274
|
+
return de_CommandError(output, context);
|
|
1751
1275
|
}
|
|
1752
1276
|
const contents = (0, import_smithy_client.map)({
|
|
1753
1277
|
$metadata: deserializeMetadata(output)
|
|
@@ -1759,46 +1283,9 @@ var de_DisassociateExternalConnectionCommand = /* @__PURE__ */ __name(async (out
|
|
|
1759
1283
|
Object.assign(contents, doc);
|
|
1760
1284
|
return contents;
|
|
1761
1285
|
}, "de_DisassociateExternalConnectionCommand");
|
|
1762
|
-
var de_DisassociateExternalConnectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1763
|
-
const parsedOutput = {
|
|
1764
|
-
...output,
|
|
1765
|
-
body: await parseErrorBody(output.body, context)
|
|
1766
|
-
};
|
|
1767
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1768
|
-
switch (errorCode) {
|
|
1769
|
-
case "AccessDeniedException":
|
|
1770
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1771
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1772
|
-
case "ConflictException":
|
|
1773
|
-
case "com.amazonaws.codeartifact#ConflictException":
|
|
1774
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1775
|
-
case "InternalServerException":
|
|
1776
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1777
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1778
|
-
case "ResourceNotFoundException":
|
|
1779
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1780
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1781
|
-
case "ServiceQuotaExceededException":
|
|
1782
|
-
case "com.amazonaws.codeartifact#ServiceQuotaExceededException":
|
|
1783
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1784
|
-
case "ThrottlingException":
|
|
1785
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1786
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1787
|
-
case "ValidationException":
|
|
1788
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
1789
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1790
|
-
default:
|
|
1791
|
-
const parsedBody = parsedOutput.body;
|
|
1792
|
-
return throwDefaultError({
|
|
1793
|
-
output,
|
|
1794
|
-
parsedBody,
|
|
1795
|
-
errorCode
|
|
1796
|
-
});
|
|
1797
|
-
}
|
|
1798
|
-
}, "de_DisassociateExternalConnectionCommandError");
|
|
1799
1286
|
var de_DisposePackageVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1800
1287
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1801
|
-
return
|
|
1288
|
+
return de_CommandError(output, context);
|
|
1802
1289
|
}
|
|
1803
1290
|
const contents = (0, import_smithy_client.map)({
|
|
1804
1291
|
$metadata: deserializeMetadata(output)
|
|
@@ -1811,43 +1298,9 @@ var de_DisposePackageVersionsCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1811
1298
|
Object.assign(contents, doc);
|
|
1812
1299
|
return contents;
|
|
1813
1300
|
}, "de_DisposePackageVersionsCommand");
|
|
1814
|
-
var de_DisposePackageVersionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1815
|
-
const parsedOutput = {
|
|
1816
|
-
...output,
|
|
1817
|
-
body: await parseErrorBody(output.body, context)
|
|
1818
|
-
};
|
|
1819
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1820
|
-
switch (errorCode) {
|
|
1821
|
-
case "AccessDeniedException":
|
|
1822
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1823
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1824
|
-
case "ConflictException":
|
|
1825
|
-
case "com.amazonaws.codeartifact#ConflictException":
|
|
1826
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1827
|
-
case "InternalServerException":
|
|
1828
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1829
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1830
|
-
case "ResourceNotFoundException":
|
|
1831
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1832
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1833
|
-
case "ThrottlingException":
|
|
1834
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1835
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1836
|
-
case "ValidationException":
|
|
1837
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
1838
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1839
|
-
default:
|
|
1840
|
-
const parsedBody = parsedOutput.body;
|
|
1841
|
-
return throwDefaultError({
|
|
1842
|
-
output,
|
|
1843
|
-
parsedBody,
|
|
1844
|
-
errorCode
|
|
1845
|
-
});
|
|
1846
|
-
}
|
|
1847
|
-
}, "de_DisposePackageVersionsCommandError");
|
|
1848
1301
|
var de_GetAuthorizationTokenCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1849
1302
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1850
|
-
return
|
|
1303
|
+
return de_CommandError(output, context);
|
|
1851
1304
|
}
|
|
1852
1305
|
const contents = (0, import_smithy_client.map)({
|
|
1853
1306
|
$metadata: deserializeMetadata(output)
|
|
@@ -1860,40 +1313,9 @@ var de_GetAuthorizationTokenCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1860
1313
|
Object.assign(contents, doc);
|
|
1861
1314
|
return contents;
|
|
1862
1315
|
}, "de_GetAuthorizationTokenCommand");
|
|
1863
|
-
var de_GetAuthorizationTokenCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1864
|
-
const parsedOutput = {
|
|
1865
|
-
...output,
|
|
1866
|
-
body: await parseErrorBody(output.body, context)
|
|
1867
|
-
};
|
|
1868
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1869
|
-
switch (errorCode) {
|
|
1870
|
-
case "AccessDeniedException":
|
|
1871
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1872
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1873
|
-
case "InternalServerException":
|
|
1874
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1875
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1876
|
-
case "ResourceNotFoundException":
|
|
1877
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1878
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1879
|
-
case "ThrottlingException":
|
|
1880
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1881
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1882
|
-
case "ValidationException":
|
|
1883
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
1884
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1885
|
-
default:
|
|
1886
|
-
const parsedBody = parsedOutput.body;
|
|
1887
|
-
return throwDefaultError({
|
|
1888
|
-
output,
|
|
1889
|
-
parsedBody,
|
|
1890
|
-
errorCode
|
|
1891
|
-
});
|
|
1892
|
-
}
|
|
1893
|
-
}, "de_GetAuthorizationTokenCommandError");
|
|
1894
1316
|
var de_GetDomainPermissionsPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1895
1317
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1896
|
-
return
|
|
1318
|
+
return de_CommandError(output, context);
|
|
1897
1319
|
}
|
|
1898
1320
|
const contents = (0, import_smithy_client.map)({
|
|
1899
1321
|
$metadata: deserializeMetadata(output)
|
|
@@ -1905,40 +1327,9 @@ var de_GetDomainPermissionsPolicyCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1905
1327
|
Object.assign(contents, doc);
|
|
1906
1328
|
return contents;
|
|
1907
1329
|
}, "de_GetDomainPermissionsPolicyCommand");
|
|
1908
|
-
var de_GetDomainPermissionsPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1909
|
-
const parsedOutput = {
|
|
1910
|
-
...output,
|
|
1911
|
-
body: await parseErrorBody(output.body, context)
|
|
1912
|
-
};
|
|
1913
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1914
|
-
switch (errorCode) {
|
|
1915
|
-
case "AccessDeniedException":
|
|
1916
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1917
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1918
|
-
case "InternalServerException":
|
|
1919
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1920
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1921
|
-
case "ResourceNotFoundException":
|
|
1922
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1923
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1924
|
-
case "ThrottlingException":
|
|
1925
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1926
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1927
|
-
case "ValidationException":
|
|
1928
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
1929
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1930
|
-
default:
|
|
1931
|
-
const parsedBody = parsedOutput.body;
|
|
1932
|
-
return throwDefaultError({
|
|
1933
|
-
output,
|
|
1934
|
-
parsedBody,
|
|
1935
|
-
errorCode
|
|
1936
|
-
});
|
|
1937
|
-
}
|
|
1938
|
-
}, "de_GetDomainPermissionsPolicyCommandError");
|
|
1939
1330
|
var de_GetPackageVersionAssetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1940
1331
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1941
|
-
return
|
|
1332
|
+
return de_CommandError(output, context);
|
|
1942
1333
|
}
|
|
1943
1334
|
const contents = (0, import_smithy_client.map)({
|
|
1944
1335
|
$metadata: deserializeMetadata(output),
|
|
@@ -1951,43 +1342,9 @@ var de_GetPackageVersionAssetCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1951
1342
|
contents.asset = data;
|
|
1952
1343
|
return contents;
|
|
1953
1344
|
}, "de_GetPackageVersionAssetCommand");
|
|
1954
|
-
var de_GetPackageVersionAssetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1955
|
-
const parsedOutput = {
|
|
1956
|
-
...output,
|
|
1957
|
-
body: await parseErrorBody(output.body, context)
|
|
1958
|
-
};
|
|
1959
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1960
|
-
switch (errorCode) {
|
|
1961
|
-
case "AccessDeniedException":
|
|
1962
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1963
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1964
|
-
case "ConflictException":
|
|
1965
|
-
case "com.amazonaws.codeartifact#ConflictException":
|
|
1966
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1967
|
-
case "InternalServerException":
|
|
1968
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1969
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1970
|
-
case "ResourceNotFoundException":
|
|
1971
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1972
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1973
|
-
case "ThrottlingException":
|
|
1974
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1975
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1976
|
-
case "ValidationException":
|
|
1977
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
1978
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1979
|
-
default:
|
|
1980
|
-
const parsedBody = parsedOutput.body;
|
|
1981
|
-
return throwDefaultError({
|
|
1982
|
-
output,
|
|
1983
|
-
parsedBody,
|
|
1984
|
-
errorCode
|
|
1985
|
-
});
|
|
1986
|
-
}
|
|
1987
|
-
}, "de_GetPackageVersionAssetCommandError");
|
|
1988
1345
|
var de_GetPackageVersionReadmeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1989
1346
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1990
|
-
return
|
|
1347
|
+
return de_CommandError(output, context);
|
|
1991
1348
|
}
|
|
1992
1349
|
const contents = (0, import_smithy_client.map)({
|
|
1993
1350
|
$metadata: deserializeMetadata(output)
|
|
@@ -1995,94 +1352,32 @@ var de_GetPackageVersionReadmeCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1995
1352
|
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1996
1353
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1997
1354
|
format: import_smithy_client.expectString,
|
|
1998
|
-
namespace: import_smithy_client.expectString,
|
|
1999
|
-
package: import_smithy_client.expectString,
|
|
2000
|
-
readme: import_smithy_client.expectString,
|
|
2001
|
-
version: import_smithy_client.expectString,
|
|
2002
|
-
versionRevision: import_smithy_client.expectString
|
|
2003
|
-
});
|
|
2004
|
-
Object.assign(contents, doc);
|
|
2005
|
-
return contents;
|
|
2006
|
-
}, "de_GetPackageVersionReadmeCommand");
|
|
2007
|
-
var
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
body: await parseErrorBody(output.body, context)
|
|
2011
|
-
};
|
|
2012
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2013
|
-
switch (errorCode) {
|
|
2014
|
-
case "AccessDeniedException":
|
|
2015
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
2016
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2017
|
-
case "InternalServerException":
|
|
2018
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
2019
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2020
|
-
case "ResourceNotFoundException":
|
|
2021
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
2022
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2023
|
-
case "ThrottlingException":
|
|
2024
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
2025
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2026
|
-
case "ValidationException":
|
|
2027
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
2028
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2029
|
-
default:
|
|
2030
|
-
const parsedBody = parsedOutput.body;
|
|
2031
|
-
return throwDefaultError({
|
|
2032
|
-
output,
|
|
2033
|
-
parsedBody,
|
|
2034
|
-
errorCode
|
|
2035
|
-
});
|
|
2036
|
-
}
|
|
2037
|
-
}, "de_GetPackageVersionReadmeCommandError");
|
|
2038
|
-
var de_GetRepositoryEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2039
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2040
|
-
return de_GetRepositoryEndpointCommandError(output, context);
|
|
2041
|
-
}
|
|
2042
|
-
const contents = (0, import_smithy_client.map)({
|
|
2043
|
-
$metadata: deserializeMetadata(output)
|
|
2044
|
-
});
|
|
2045
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2046
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
2047
|
-
repositoryEndpoint: import_smithy_client.expectString
|
|
2048
|
-
});
|
|
2049
|
-
Object.assign(contents, doc);
|
|
2050
|
-
return contents;
|
|
2051
|
-
}, "de_GetRepositoryEndpointCommand");
|
|
2052
|
-
var de_GetRepositoryEndpointCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2053
|
-
const parsedOutput = {
|
|
2054
|
-
...output,
|
|
2055
|
-
body: await parseErrorBody(output.body, context)
|
|
2056
|
-
};
|
|
2057
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2058
|
-
switch (errorCode) {
|
|
2059
|
-
case "AccessDeniedException":
|
|
2060
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
2061
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2062
|
-
case "InternalServerException":
|
|
2063
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
2064
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2065
|
-
case "ResourceNotFoundException":
|
|
2066
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
2067
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2068
|
-
case "ThrottlingException":
|
|
2069
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
2070
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2071
|
-
case "ValidationException":
|
|
2072
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
2073
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2074
|
-
default:
|
|
2075
|
-
const parsedBody = parsedOutput.body;
|
|
2076
|
-
return throwDefaultError({
|
|
2077
|
-
output,
|
|
2078
|
-
parsedBody,
|
|
2079
|
-
errorCode
|
|
2080
|
-
});
|
|
1355
|
+
namespace: import_smithy_client.expectString,
|
|
1356
|
+
package: import_smithy_client.expectString,
|
|
1357
|
+
readme: import_smithy_client.expectString,
|
|
1358
|
+
version: import_smithy_client.expectString,
|
|
1359
|
+
versionRevision: import_smithy_client.expectString
|
|
1360
|
+
});
|
|
1361
|
+
Object.assign(contents, doc);
|
|
1362
|
+
return contents;
|
|
1363
|
+
}, "de_GetPackageVersionReadmeCommand");
|
|
1364
|
+
var de_GetRepositoryEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1365
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1366
|
+
return de_CommandError(output, context);
|
|
2081
1367
|
}
|
|
2082
|
-
|
|
1368
|
+
const contents = (0, import_smithy_client.map)({
|
|
1369
|
+
$metadata: deserializeMetadata(output)
|
|
1370
|
+
});
|
|
1371
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1372
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1373
|
+
repositoryEndpoint: import_smithy_client.expectString
|
|
1374
|
+
});
|
|
1375
|
+
Object.assign(contents, doc);
|
|
1376
|
+
return contents;
|
|
1377
|
+
}, "de_GetRepositoryEndpointCommand");
|
|
2083
1378
|
var de_GetRepositoryPermissionsPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2084
1379
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2085
|
-
return
|
|
1380
|
+
return de_CommandError(output, context);
|
|
2086
1381
|
}
|
|
2087
1382
|
const contents = (0, import_smithy_client.map)({
|
|
2088
1383
|
$metadata: deserializeMetadata(output)
|
|
@@ -2094,40 +1389,9 @@ var de_GetRepositoryPermissionsPolicyCommand = /* @__PURE__ */ __name(async (out
|
|
|
2094
1389
|
Object.assign(contents, doc);
|
|
2095
1390
|
return contents;
|
|
2096
1391
|
}, "de_GetRepositoryPermissionsPolicyCommand");
|
|
2097
|
-
var de_GetRepositoryPermissionsPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2098
|
-
const parsedOutput = {
|
|
2099
|
-
...output,
|
|
2100
|
-
body: await parseErrorBody(output.body, context)
|
|
2101
|
-
};
|
|
2102
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2103
|
-
switch (errorCode) {
|
|
2104
|
-
case "AccessDeniedException":
|
|
2105
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
2106
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2107
|
-
case "InternalServerException":
|
|
2108
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
2109
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2110
|
-
case "ResourceNotFoundException":
|
|
2111
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
2112
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2113
|
-
case "ThrottlingException":
|
|
2114
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
2115
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2116
|
-
case "ValidationException":
|
|
2117
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
2118
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2119
|
-
default:
|
|
2120
|
-
const parsedBody = parsedOutput.body;
|
|
2121
|
-
return throwDefaultError({
|
|
2122
|
-
output,
|
|
2123
|
-
parsedBody,
|
|
2124
|
-
errorCode
|
|
2125
|
-
});
|
|
2126
|
-
}
|
|
2127
|
-
}, "de_GetRepositoryPermissionsPolicyCommandError");
|
|
2128
1392
|
var de_ListDomainsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2129
1393
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2130
|
-
return
|
|
1394
|
+
return de_CommandError(output, context);
|
|
2131
1395
|
}
|
|
2132
1396
|
const contents = (0, import_smithy_client.map)({
|
|
2133
1397
|
$metadata: deserializeMetadata(output)
|
|
@@ -2140,37 +1404,9 @@ var de_ListDomainsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2140
1404
|
Object.assign(contents, doc);
|
|
2141
1405
|
return contents;
|
|
2142
1406
|
}, "de_ListDomainsCommand");
|
|
2143
|
-
var de_ListDomainsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2144
|
-
const parsedOutput = {
|
|
2145
|
-
...output,
|
|
2146
|
-
body: await parseErrorBody(output.body, context)
|
|
2147
|
-
};
|
|
2148
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2149
|
-
switch (errorCode) {
|
|
2150
|
-
case "AccessDeniedException":
|
|
2151
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
2152
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2153
|
-
case "InternalServerException":
|
|
2154
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
2155
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2156
|
-
case "ThrottlingException":
|
|
2157
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
2158
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2159
|
-
case "ValidationException":
|
|
2160
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
2161
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2162
|
-
default:
|
|
2163
|
-
const parsedBody = parsedOutput.body;
|
|
2164
|
-
return throwDefaultError({
|
|
2165
|
-
output,
|
|
2166
|
-
parsedBody,
|
|
2167
|
-
errorCode
|
|
2168
|
-
});
|
|
2169
|
-
}
|
|
2170
|
-
}, "de_ListDomainsCommandError");
|
|
2171
1407
|
var de_ListPackagesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2172
1408
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2173
|
-
return
|
|
1409
|
+
return de_CommandError(output, context);
|
|
2174
1410
|
}
|
|
2175
1411
|
const contents = (0, import_smithy_client.map)({
|
|
2176
1412
|
$metadata: deserializeMetadata(output)
|
|
@@ -2183,40 +1419,9 @@ var de_ListPackagesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2183
1419
|
Object.assign(contents, doc);
|
|
2184
1420
|
return contents;
|
|
2185
1421
|
}, "de_ListPackagesCommand");
|
|
2186
|
-
var de_ListPackagesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2187
|
-
const parsedOutput = {
|
|
2188
|
-
...output,
|
|
2189
|
-
body: await parseErrorBody(output.body, context)
|
|
2190
|
-
};
|
|
2191
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2192
|
-
switch (errorCode) {
|
|
2193
|
-
case "AccessDeniedException":
|
|
2194
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
2195
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2196
|
-
case "InternalServerException":
|
|
2197
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
2198
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2199
|
-
case "ResourceNotFoundException":
|
|
2200
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
2201
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2202
|
-
case "ThrottlingException":
|
|
2203
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
2204
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2205
|
-
case "ValidationException":
|
|
2206
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
2207
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2208
|
-
default:
|
|
2209
|
-
const parsedBody = parsedOutput.body;
|
|
2210
|
-
return throwDefaultError({
|
|
2211
|
-
output,
|
|
2212
|
-
parsedBody,
|
|
2213
|
-
errorCode
|
|
2214
|
-
});
|
|
2215
|
-
}
|
|
2216
|
-
}, "de_ListPackagesCommandError");
|
|
2217
1422
|
var de_ListPackageVersionAssetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2218
1423
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2219
|
-
return
|
|
1424
|
+
return de_CommandError(output, context);
|
|
2220
1425
|
}
|
|
2221
1426
|
const contents = (0, import_smithy_client.map)({
|
|
2222
1427
|
$metadata: deserializeMetadata(output)
|
|
@@ -2234,40 +1439,9 @@ var de_ListPackageVersionAssetsCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2234
1439
|
Object.assign(contents, doc);
|
|
2235
1440
|
return contents;
|
|
2236
1441
|
}, "de_ListPackageVersionAssetsCommand");
|
|
2237
|
-
var de_ListPackageVersionAssetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2238
|
-
const parsedOutput = {
|
|
2239
|
-
...output,
|
|
2240
|
-
body: await parseErrorBody(output.body, context)
|
|
2241
|
-
};
|
|
2242
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2243
|
-
switch (errorCode) {
|
|
2244
|
-
case "AccessDeniedException":
|
|
2245
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
2246
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2247
|
-
case "InternalServerException":
|
|
2248
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
2249
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2250
|
-
case "ResourceNotFoundException":
|
|
2251
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
2252
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2253
|
-
case "ThrottlingException":
|
|
2254
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
2255
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2256
|
-
case "ValidationException":
|
|
2257
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
2258
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2259
|
-
default:
|
|
2260
|
-
const parsedBody = parsedOutput.body;
|
|
2261
|
-
return throwDefaultError({
|
|
2262
|
-
output,
|
|
2263
|
-
parsedBody,
|
|
2264
|
-
errorCode
|
|
2265
|
-
});
|
|
2266
|
-
}
|
|
2267
|
-
}, "de_ListPackageVersionAssetsCommandError");
|
|
2268
1442
|
var de_ListPackageVersionDependenciesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2269
1443
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2270
|
-
return
|
|
1444
|
+
return de_CommandError(output, context);
|
|
2271
1445
|
}
|
|
2272
1446
|
const contents = (0, import_smithy_client.map)({
|
|
2273
1447
|
$metadata: deserializeMetadata(output)
|
|
@@ -2285,40 +1459,9 @@ var de_ListPackageVersionDependenciesCommand = /* @__PURE__ */ __name(async (out
|
|
|
2285
1459
|
Object.assign(contents, doc);
|
|
2286
1460
|
return contents;
|
|
2287
1461
|
}, "de_ListPackageVersionDependenciesCommand");
|
|
2288
|
-
var de_ListPackageVersionDependenciesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2289
|
-
const parsedOutput = {
|
|
2290
|
-
...output,
|
|
2291
|
-
body: await parseErrorBody(output.body, context)
|
|
2292
|
-
};
|
|
2293
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2294
|
-
switch (errorCode) {
|
|
2295
|
-
case "AccessDeniedException":
|
|
2296
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
2297
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2298
|
-
case "InternalServerException":
|
|
2299
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
2300
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2301
|
-
case "ResourceNotFoundException":
|
|
2302
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
2303
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2304
|
-
case "ThrottlingException":
|
|
2305
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
2306
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2307
|
-
case "ValidationException":
|
|
2308
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
2309
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2310
|
-
default:
|
|
2311
|
-
const parsedBody = parsedOutput.body;
|
|
2312
|
-
return throwDefaultError({
|
|
2313
|
-
output,
|
|
2314
|
-
parsedBody,
|
|
2315
|
-
errorCode
|
|
2316
|
-
});
|
|
2317
|
-
}
|
|
2318
|
-
}, "de_ListPackageVersionDependenciesCommandError");
|
|
2319
1462
|
var de_ListPackageVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2320
1463
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2321
|
-
return
|
|
1464
|
+
return de_CommandError(output, context);
|
|
2322
1465
|
}
|
|
2323
1466
|
const contents = (0, import_smithy_client.map)({
|
|
2324
1467
|
$metadata: deserializeMetadata(output)
|
|
@@ -2335,40 +1478,9 @@ var de_ListPackageVersionsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2335
1478
|
Object.assign(contents, doc);
|
|
2336
1479
|
return contents;
|
|
2337
1480
|
}, "de_ListPackageVersionsCommand");
|
|
2338
|
-
var de_ListPackageVersionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2339
|
-
const parsedOutput = {
|
|
2340
|
-
...output,
|
|
2341
|
-
body: await parseErrorBody(output.body, context)
|
|
2342
|
-
};
|
|
2343
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2344
|
-
switch (errorCode) {
|
|
2345
|
-
case "AccessDeniedException":
|
|
2346
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
2347
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2348
|
-
case "InternalServerException":
|
|
2349
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
2350
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2351
|
-
case "ResourceNotFoundException":
|
|
2352
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
2353
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2354
|
-
case "ThrottlingException":
|
|
2355
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
2356
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2357
|
-
case "ValidationException":
|
|
2358
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
2359
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2360
|
-
default:
|
|
2361
|
-
const parsedBody = parsedOutput.body;
|
|
2362
|
-
return throwDefaultError({
|
|
2363
|
-
output,
|
|
2364
|
-
parsedBody,
|
|
2365
|
-
errorCode
|
|
2366
|
-
});
|
|
2367
|
-
}
|
|
2368
|
-
}, "de_ListPackageVersionsCommandError");
|
|
2369
1481
|
var de_ListRepositoriesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2370
1482
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2371
|
-
return
|
|
1483
|
+
return de_CommandError(output, context);
|
|
2372
1484
|
}
|
|
2373
1485
|
const contents = (0, import_smithy_client.map)({
|
|
2374
1486
|
$metadata: deserializeMetadata(output)
|
|
@@ -2381,83 +1493,24 @@ var de_ListRepositoriesCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2381
1493
|
Object.assign(contents, doc);
|
|
2382
1494
|
return contents;
|
|
2383
1495
|
}, "de_ListRepositoriesCommand");
|
|
2384
|
-
var de_ListRepositoriesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2385
|
-
const parsedOutput = {
|
|
2386
|
-
...output,
|
|
2387
|
-
body: await parseErrorBody(output.body, context)
|
|
2388
|
-
};
|
|
2389
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2390
|
-
switch (errorCode) {
|
|
2391
|
-
case "AccessDeniedException":
|
|
2392
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
2393
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2394
|
-
case "InternalServerException":
|
|
2395
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
2396
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2397
|
-
case "ThrottlingException":
|
|
2398
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
2399
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2400
|
-
case "ValidationException":
|
|
2401
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
2402
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2403
|
-
default:
|
|
2404
|
-
const parsedBody = parsedOutput.body;
|
|
2405
|
-
return throwDefaultError({
|
|
2406
|
-
output,
|
|
2407
|
-
parsedBody,
|
|
2408
|
-
errorCode
|
|
2409
|
-
});
|
|
2410
|
-
}
|
|
2411
|
-
}, "de_ListRepositoriesCommandError");
|
|
2412
1496
|
var de_ListRepositoriesInDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2413
1497
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2414
|
-
return
|
|
1498
|
+
return de_CommandError(output, context);
|
|
2415
1499
|
}
|
|
2416
1500
|
const contents = (0, import_smithy_client.map)({
|
|
2417
1501
|
$metadata: deserializeMetadata(output)
|
|
2418
|
-
});
|
|
2419
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2420
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
2421
|
-
nextToken: import_smithy_client.expectString,
|
|
2422
|
-
repositories: (_) => de_RepositorySummaryList(_, context)
|
|
2423
|
-
});
|
|
2424
|
-
Object.assign(contents, doc);
|
|
2425
|
-
return contents;
|
|
2426
|
-
}, "de_ListRepositoriesInDomainCommand");
|
|
2427
|
-
var de_ListRepositoriesInDomainCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2428
|
-
const parsedOutput = {
|
|
2429
|
-
...output,
|
|
2430
|
-
body: await parseErrorBody(output.body, context)
|
|
2431
|
-
};
|
|
2432
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2433
|
-
switch (errorCode) {
|
|
2434
|
-
case "AccessDeniedException":
|
|
2435
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
2436
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2437
|
-
case "InternalServerException":
|
|
2438
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
2439
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2440
|
-
case "ResourceNotFoundException":
|
|
2441
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
2442
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2443
|
-
case "ThrottlingException":
|
|
2444
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
2445
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2446
|
-
case "ValidationException":
|
|
2447
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
2448
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2449
|
-
default:
|
|
2450
|
-
const parsedBody = parsedOutput.body;
|
|
2451
|
-
return throwDefaultError({
|
|
2452
|
-
output,
|
|
2453
|
-
parsedBody,
|
|
2454
|
-
errorCode
|
|
2455
|
-
});
|
|
2456
|
-
}
|
|
2457
|
-
}, "de_ListRepositoriesInDomainCommandError");
|
|
1502
|
+
});
|
|
1503
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1504
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1505
|
+
nextToken: import_smithy_client.expectString,
|
|
1506
|
+
repositories: (_) => de_RepositorySummaryList(_, context)
|
|
1507
|
+
});
|
|
1508
|
+
Object.assign(contents, doc);
|
|
1509
|
+
return contents;
|
|
1510
|
+
}, "de_ListRepositoriesInDomainCommand");
|
|
2458
1511
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2459
1512
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2460
|
-
return
|
|
1513
|
+
return de_CommandError(output, context);
|
|
2461
1514
|
}
|
|
2462
1515
|
const contents = (0, import_smithy_client.map)({
|
|
2463
1516
|
$metadata: deserializeMetadata(output)
|
|
@@ -2469,37 +1522,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2469
1522
|
Object.assign(contents, doc);
|
|
2470
1523
|
return contents;
|
|
2471
1524
|
}, "de_ListTagsForResourceCommand");
|
|
2472
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2473
|
-
const parsedOutput = {
|
|
2474
|
-
...output,
|
|
2475
|
-
body: await parseErrorBody(output.body, context)
|
|
2476
|
-
};
|
|
2477
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2478
|
-
switch (errorCode) {
|
|
2479
|
-
case "AccessDeniedException":
|
|
2480
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
2481
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2482
|
-
case "ResourceNotFoundException":
|
|
2483
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
2484
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2485
|
-
case "ThrottlingException":
|
|
2486
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
2487
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2488
|
-
case "ValidationException":
|
|
2489
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
2490
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2491
|
-
default:
|
|
2492
|
-
const parsedBody = parsedOutput.body;
|
|
2493
|
-
return throwDefaultError({
|
|
2494
|
-
output,
|
|
2495
|
-
parsedBody,
|
|
2496
|
-
errorCode
|
|
2497
|
-
});
|
|
2498
|
-
}
|
|
2499
|
-
}, "de_ListTagsForResourceCommandError");
|
|
2500
1525
|
var de_PublishPackageVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2501
1526
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2502
|
-
return
|
|
1527
|
+
return de_CommandError(output, context);
|
|
2503
1528
|
}
|
|
2504
1529
|
const contents = (0, import_smithy_client.map)({
|
|
2505
1530
|
$metadata: deserializeMetadata(output)
|
|
@@ -2517,46 +1542,9 @@ var de_PublishPackageVersionCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2517
1542
|
Object.assign(contents, doc);
|
|
2518
1543
|
return contents;
|
|
2519
1544
|
}, "de_PublishPackageVersionCommand");
|
|
2520
|
-
var de_PublishPackageVersionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2521
|
-
const parsedOutput = {
|
|
2522
|
-
...output,
|
|
2523
|
-
body: await parseErrorBody(output.body, context)
|
|
2524
|
-
};
|
|
2525
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2526
|
-
switch (errorCode) {
|
|
2527
|
-
case "AccessDeniedException":
|
|
2528
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
2529
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2530
|
-
case "ConflictException":
|
|
2531
|
-
case "com.amazonaws.codeartifact#ConflictException":
|
|
2532
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2533
|
-
case "InternalServerException":
|
|
2534
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
2535
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2536
|
-
case "ResourceNotFoundException":
|
|
2537
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
2538
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2539
|
-
case "ServiceQuotaExceededException":
|
|
2540
|
-
case "com.amazonaws.codeartifact#ServiceQuotaExceededException":
|
|
2541
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2542
|
-
case "ThrottlingException":
|
|
2543
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
2544
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2545
|
-
case "ValidationException":
|
|
2546
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
2547
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2548
|
-
default:
|
|
2549
|
-
const parsedBody = parsedOutput.body;
|
|
2550
|
-
return throwDefaultError({
|
|
2551
|
-
output,
|
|
2552
|
-
parsedBody,
|
|
2553
|
-
errorCode
|
|
2554
|
-
});
|
|
2555
|
-
}
|
|
2556
|
-
}, "de_PublishPackageVersionCommandError");
|
|
2557
1545
|
var de_PutDomainPermissionsPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2558
1546
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2559
|
-
return
|
|
1547
|
+
return de_CommandError(output, context);
|
|
2560
1548
|
}
|
|
2561
1549
|
const contents = (0, import_smithy_client.map)({
|
|
2562
1550
|
$metadata: deserializeMetadata(output)
|
|
@@ -2568,46 +1556,9 @@ var de_PutDomainPermissionsPolicyCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2568
1556
|
Object.assign(contents, doc);
|
|
2569
1557
|
return contents;
|
|
2570
1558
|
}, "de_PutDomainPermissionsPolicyCommand");
|
|
2571
|
-
var de_PutDomainPermissionsPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2572
|
-
const parsedOutput = {
|
|
2573
|
-
...output,
|
|
2574
|
-
body: await parseErrorBody(output.body, context)
|
|
2575
|
-
};
|
|
2576
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2577
|
-
switch (errorCode) {
|
|
2578
|
-
case "AccessDeniedException":
|
|
2579
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
2580
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2581
|
-
case "ConflictException":
|
|
2582
|
-
case "com.amazonaws.codeartifact#ConflictException":
|
|
2583
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2584
|
-
case "InternalServerException":
|
|
2585
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
2586
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2587
|
-
case "ResourceNotFoundException":
|
|
2588
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
2589
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2590
|
-
case "ServiceQuotaExceededException":
|
|
2591
|
-
case "com.amazonaws.codeartifact#ServiceQuotaExceededException":
|
|
2592
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2593
|
-
case "ThrottlingException":
|
|
2594
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
2595
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2596
|
-
case "ValidationException":
|
|
2597
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
2598
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2599
|
-
default:
|
|
2600
|
-
const parsedBody = parsedOutput.body;
|
|
2601
|
-
return throwDefaultError({
|
|
2602
|
-
output,
|
|
2603
|
-
parsedBody,
|
|
2604
|
-
errorCode
|
|
2605
|
-
});
|
|
2606
|
-
}
|
|
2607
|
-
}, "de_PutDomainPermissionsPolicyCommandError");
|
|
2608
1559
|
var de_PutPackageOriginConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2609
1560
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2610
|
-
return
|
|
1561
|
+
return de_CommandError(output, context);
|
|
2611
1562
|
}
|
|
2612
1563
|
const contents = (0, import_smithy_client.map)({
|
|
2613
1564
|
$metadata: deserializeMetadata(output)
|
|
@@ -2619,40 +1570,9 @@ var de_PutPackageOriginConfigurationCommand = /* @__PURE__ */ __name(async (outp
|
|
|
2619
1570
|
Object.assign(contents, doc);
|
|
2620
1571
|
return contents;
|
|
2621
1572
|
}, "de_PutPackageOriginConfigurationCommand");
|
|
2622
|
-
var de_PutPackageOriginConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2623
|
-
const parsedOutput = {
|
|
2624
|
-
...output,
|
|
2625
|
-
body: await parseErrorBody(output.body, context)
|
|
2626
|
-
};
|
|
2627
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2628
|
-
switch (errorCode) {
|
|
2629
|
-
case "AccessDeniedException":
|
|
2630
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
2631
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2632
|
-
case "InternalServerException":
|
|
2633
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
2634
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2635
|
-
case "ResourceNotFoundException":
|
|
2636
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
2637
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2638
|
-
case "ThrottlingException":
|
|
2639
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
2640
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2641
|
-
case "ValidationException":
|
|
2642
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
2643
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2644
|
-
default:
|
|
2645
|
-
const parsedBody = parsedOutput.body;
|
|
2646
|
-
return throwDefaultError({
|
|
2647
|
-
output,
|
|
2648
|
-
parsedBody,
|
|
2649
|
-
errorCode
|
|
2650
|
-
});
|
|
2651
|
-
}
|
|
2652
|
-
}, "de_PutPackageOriginConfigurationCommandError");
|
|
2653
1573
|
var de_PutRepositoryPermissionsPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2654
1574
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2655
|
-
return
|
|
1575
|
+
return de_CommandError(output, context);
|
|
2656
1576
|
}
|
|
2657
1577
|
const contents = (0, import_smithy_client.map)({
|
|
2658
1578
|
$metadata: deserializeMetadata(output)
|
|
@@ -2664,46 +1584,9 @@ var de_PutRepositoryPermissionsPolicyCommand = /* @__PURE__ */ __name(async (out
|
|
|
2664
1584
|
Object.assign(contents, doc);
|
|
2665
1585
|
return contents;
|
|
2666
1586
|
}, "de_PutRepositoryPermissionsPolicyCommand");
|
|
2667
|
-
var de_PutRepositoryPermissionsPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2668
|
-
const parsedOutput = {
|
|
2669
|
-
...output,
|
|
2670
|
-
body: await parseErrorBody(output.body, context)
|
|
2671
|
-
};
|
|
2672
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2673
|
-
switch (errorCode) {
|
|
2674
|
-
case "AccessDeniedException":
|
|
2675
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
2676
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2677
|
-
case "ConflictException":
|
|
2678
|
-
case "com.amazonaws.codeartifact#ConflictException":
|
|
2679
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2680
|
-
case "InternalServerException":
|
|
2681
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
2682
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2683
|
-
case "ResourceNotFoundException":
|
|
2684
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
2685
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2686
|
-
case "ServiceQuotaExceededException":
|
|
2687
|
-
case "com.amazonaws.codeartifact#ServiceQuotaExceededException":
|
|
2688
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2689
|
-
case "ThrottlingException":
|
|
2690
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
2691
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2692
|
-
case "ValidationException":
|
|
2693
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
2694
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2695
|
-
default:
|
|
2696
|
-
const parsedBody = parsedOutput.body;
|
|
2697
|
-
return throwDefaultError({
|
|
2698
|
-
output,
|
|
2699
|
-
parsedBody,
|
|
2700
|
-
errorCode
|
|
2701
|
-
});
|
|
2702
|
-
}
|
|
2703
|
-
}, "de_PutRepositoryPermissionsPolicyCommandError");
|
|
2704
1587
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2705
1588
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2706
|
-
return
|
|
1589
|
+
return de_CommandError(output, context);
|
|
2707
1590
|
}
|
|
2708
1591
|
const contents = (0, import_smithy_client.map)({
|
|
2709
1592
|
$metadata: deserializeMetadata(output)
|
|
@@ -2711,40 +1594,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2711
1594
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2712
1595
|
return contents;
|
|
2713
1596
|
}, "de_TagResourceCommand");
|
|
2714
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2715
|
-
const parsedOutput = {
|
|
2716
|
-
...output,
|
|
2717
|
-
body: await parseErrorBody(output.body, context)
|
|
2718
|
-
};
|
|
2719
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2720
|
-
switch (errorCode) {
|
|
2721
|
-
case "AccessDeniedException":
|
|
2722
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
2723
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2724
|
-
case "ResourceNotFoundException":
|
|
2725
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
2726
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2727
|
-
case "ServiceQuotaExceededException":
|
|
2728
|
-
case "com.amazonaws.codeartifact#ServiceQuotaExceededException":
|
|
2729
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2730
|
-
case "ThrottlingException":
|
|
2731
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
2732
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2733
|
-
case "ValidationException":
|
|
2734
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
2735
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2736
|
-
default:
|
|
2737
|
-
const parsedBody = parsedOutput.body;
|
|
2738
|
-
return throwDefaultError({
|
|
2739
|
-
output,
|
|
2740
|
-
parsedBody,
|
|
2741
|
-
errorCode
|
|
2742
|
-
});
|
|
2743
|
-
}
|
|
2744
|
-
}, "de_TagResourceCommandError");
|
|
2745
1597
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2746
1598
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2747
|
-
return
|
|
1599
|
+
return de_CommandError(output, context);
|
|
2748
1600
|
}
|
|
2749
1601
|
const contents = (0, import_smithy_client.map)({
|
|
2750
1602
|
$metadata: deserializeMetadata(output)
|
|
@@ -2752,37 +1604,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2752
1604
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2753
1605
|
return contents;
|
|
2754
1606
|
}, "de_UntagResourceCommand");
|
|
2755
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2756
|
-
const parsedOutput = {
|
|
2757
|
-
...output,
|
|
2758
|
-
body: await parseErrorBody(output.body, context)
|
|
2759
|
-
};
|
|
2760
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2761
|
-
switch (errorCode) {
|
|
2762
|
-
case "AccessDeniedException":
|
|
2763
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
2764
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2765
|
-
case "ResourceNotFoundException":
|
|
2766
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
2767
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2768
|
-
case "ThrottlingException":
|
|
2769
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
2770
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2771
|
-
case "ValidationException":
|
|
2772
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
2773
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2774
|
-
default:
|
|
2775
|
-
const parsedBody = parsedOutput.body;
|
|
2776
|
-
return throwDefaultError({
|
|
2777
|
-
output,
|
|
2778
|
-
parsedBody,
|
|
2779
|
-
errorCode
|
|
2780
|
-
});
|
|
2781
|
-
}
|
|
2782
|
-
}, "de_UntagResourceCommandError");
|
|
2783
1607
|
var de_UpdatePackageVersionsStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2784
1608
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2785
|
-
return
|
|
1609
|
+
return de_CommandError(output, context);
|
|
2786
1610
|
}
|
|
2787
1611
|
const contents = (0, import_smithy_client.map)({
|
|
2788
1612
|
$metadata: deserializeMetadata(output)
|
|
@@ -2795,43 +1619,9 @@ var de_UpdatePackageVersionsStatusCommand = /* @__PURE__ */ __name(async (output
|
|
|
2795
1619
|
Object.assign(contents, doc);
|
|
2796
1620
|
return contents;
|
|
2797
1621
|
}, "de_UpdatePackageVersionsStatusCommand");
|
|
2798
|
-
var de_UpdatePackageVersionsStatusCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2799
|
-
const parsedOutput = {
|
|
2800
|
-
...output,
|
|
2801
|
-
body: await parseErrorBody(output.body, context)
|
|
2802
|
-
};
|
|
2803
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2804
|
-
switch (errorCode) {
|
|
2805
|
-
case "AccessDeniedException":
|
|
2806
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
2807
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2808
|
-
case "ConflictException":
|
|
2809
|
-
case "com.amazonaws.codeartifact#ConflictException":
|
|
2810
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2811
|
-
case "InternalServerException":
|
|
2812
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
2813
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2814
|
-
case "ResourceNotFoundException":
|
|
2815
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
2816
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2817
|
-
case "ThrottlingException":
|
|
2818
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
2819
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2820
|
-
case "ValidationException":
|
|
2821
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
2822
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2823
|
-
default:
|
|
2824
|
-
const parsedBody = parsedOutput.body;
|
|
2825
|
-
return throwDefaultError({
|
|
2826
|
-
output,
|
|
2827
|
-
parsedBody,
|
|
2828
|
-
errorCode
|
|
2829
|
-
});
|
|
2830
|
-
}
|
|
2831
|
-
}, "de_UpdatePackageVersionsStatusCommandError");
|
|
2832
1622
|
var de_UpdateRepositoryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2833
1623
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2834
|
-
return
|
|
1624
|
+
return de_CommandError(output, context);
|
|
2835
1625
|
}
|
|
2836
1626
|
const contents = (0, import_smithy_client.map)({
|
|
2837
1627
|
$metadata: deserializeMetadata(output)
|
|
@@ -2843,7 +1633,7 @@ var de_UpdateRepositoryCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2843
1633
|
Object.assign(contents, doc);
|
|
2844
1634
|
return contents;
|
|
2845
1635
|
}, "de_UpdateRepositoryCommand");
|
|
2846
|
-
var
|
|
1636
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2847
1637
|
const parsedOutput = {
|
|
2848
1638
|
...output,
|
|
2849
1639
|
body: await parseErrorBody(output.body, context)
|
|
@@ -2879,7 +1669,7 @@ var de_UpdateRepositoryCommandError = /* @__PURE__ */ __name(async (output, cont
|
|
|
2879
1669
|
errorCode
|
|
2880
1670
|
});
|
|
2881
1671
|
}
|
|
2882
|
-
}, "
|
|
1672
|
+
}, "de_CommandError");
|
|
2883
1673
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(CodeartifactServiceException);
|
|
2884
1674
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2885
1675
|
const contents = (0, import_smithy_client.map)({});
|