@aws-sdk/client-codebuild 3.525.0 → 3.529.1
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 +53 -93
- package/dist-es/protocols/Aws_json1_1.js +1 -40
- package/package.json +4 -4
package/dist-cjs/index.js
CHANGED
|
@@ -294,6 +294,7 @@ var import_middleware_serde = require("@smithy/middleware-serde");
|
|
|
294
294
|
var import_types = require("@smithy/types");
|
|
295
295
|
|
|
296
296
|
// src/protocols/Aws_json1_1.ts
|
|
297
|
+
var import_core2 = require("@aws-sdk/core");
|
|
297
298
|
|
|
298
299
|
|
|
299
300
|
|
|
@@ -954,7 +955,7 @@ var de_BatchDeleteBuildsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
954
955
|
if (output.statusCode >= 300) {
|
|
955
956
|
return de_CommandError(output, context);
|
|
956
957
|
}
|
|
957
|
-
const data = await
|
|
958
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
958
959
|
let contents = {};
|
|
959
960
|
contents = (0, import_smithy_client._json)(data);
|
|
960
961
|
const response = {
|
|
@@ -967,7 +968,7 @@ var de_BatchGetBuildBatchesCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
967
968
|
if (output.statusCode >= 300) {
|
|
968
969
|
return de_CommandError(output, context);
|
|
969
970
|
}
|
|
970
|
-
const data = await
|
|
971
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
971
972
|
let contents = {};
|
|
972
973
|
contents = de_BatchGetBuildBatchesOutput(data, context);
|
|
973
974
|
const response = {
|
|
@@ -980,7 +981,7 @@ var de_BatchGetBuildsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
980
981
|
if (output.statusCode >= 300) {
|
|
981
982
|
return de_CommandError(output, context);
|
|
982
983
|
}
|
|
983
|
-
const data = await
|
|
984
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
984
985
|
let contents = {};
|
|
985
986
|
contents = de_BatchGetBuildsOutput(data, context);
|
|
986
987
|
const response = {
|
|
@@ -993,7 +994,7 @@ var de_BatchGetFleetsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
993
994
|
if (output.statusCode >= 300) {
|
|
994
995
|
return de_CommandError(output, context);
|
|
995
996
|
}
|
|
996
|
-
const data = await
|
|
997
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
997
998
|
let contents = {};
|
|
998
999
|
contents = de_BatchGetFleetsOutput(data, context);
|
|
999
1000
|
const response = {
|
|
@@ -1006,7 +1007,7 @@ var de_BatchGetProjectsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1006
1007
|
if (output.statusCode >= 300) {
|
|
1007
1008
|
return de_CommandError(output, context);
|
|
1008
1009
|
}
|
|
1009
|
-
const data = await
|
|
1010
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1010
1011
|
let contents = {};
|
|
1011
1012
|
contents = de_BatchGetProjectsOutput(data, context);
|
|
1012
1013
|
const response = {
|
|
@@ -1019,7 +1020,7 @@ var de_BatchGetReportGroupsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1019
1020
|
if (output.statusCode >= 300) {
|
|
1020
1021
|
return de_CommandError(output, context);
|
|
1021
1022
|
}
|
|
1022
|
-
const data = await
|
|
1023
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1023
1024
|
let contents = {};
|
|
1024
1025
|
contents = de_BatchGetReportGroupsOutput(data, context);
|
|
1025
1026
|
const response = {
|
|
@@ -1032,7 +1033,7 @@ var de_BatchGetReportsCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1032
1033
|
if (output.statusCode >= 300) {
|
|
1033
1034
|
return de_CommandError(output, context);
|
|
1034
1035
|
}
|
|
1035
|
-
const data = await
|
|
1036
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1036
1037
|
let contents = {};
|
|
1037
1038
|
contents = de_BatchGetReportsOutput(data, context);
|
|
1038
1039
|
const response = {
|
|
@@ -1045,7 +1046,7 @@ var de_CreateFleetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1045
1046
|
if (output.statusCode >= 300) {
|
|
1046
1047
|
return de_CommandError(output, context);
|
|
1047
1048
|
}
|
|
1048
|
-
const data = await
|
|
1049
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1049
1050
|
let contents = {};
|
|
1050
1051
|
contents = de_CreateFleetOutput(data, context);
|
|
1051
1052
|
const response = {
|
|
@@ -1058,7 +1059,7 @@ var de_CreateProjectCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1058
1059
|
if (output.statusCode >= 300) {
|
|
1059
1060
|
return de_CommandError(output, context);
|
|
1060
1061
|
}
|
|
1061
|
-
const data = await
|
|
1062
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1062
1063
|
let contents = {};
|
|
1063
1064
|
contents = de_CreateProjectOutput(data, context);
|
|
1064
1065
|
const response = {
|
|
@@ -1071,7 +1072,7 @@ var de_CreateReportGroupCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1071
1072
|
if (output.statusCode >= 300) {
|
|
1072
1073
|
return de_CommandError(output, context);
|
|
1073
1074
|
}
|
|
1074
|
-
const data = await
|
|
1075
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1075
1076
|
let contents = {};
|
|
1076
1077
|
contents = de_CreateReportGroupOutput(data, context);
|
|
1077
1078
|
const response = {
|
|
@@ -1084,7 +1085,7 @@ var de_CreateWebhookCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1084
1085
|
if (output.statusCode >= 300) {
|
|
1085
1086
|
return de_CommandError(output, context);
|
|
1086
1087
|
}
|
|
1087
|
-
const data = await
|
|
1088
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1088
1089
|
let contents = {};
|
|
1089
1090
|
contents = de_CreateWebhookOutput(data, context);
|
|
1090
1091
|
const response = {
|
|
@@ -1097,7 +1098,7 @@ var de_DeleteBuildBatchCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1097
1098
|
if (output.statusCode >= 300) {
|
|
1098
1099
|
return de_CommandError(output, context);
|
|
1099
1100
|
}
|
|
1100
|
-
const data = await
|
|
1101
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1101
1102
|
let contents = {};
|
|
1102
1103
|
contents = (0, import_smithy_client._json)(data);
|
|
1103
1104
|
const response = {
|
|
@@ -1110,7 +1111,7 @@ var de_DeleteFleetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1110
1111
|
if (output.statusCode >= 300) {
|
|
1111
1112
|
return de_CommandError(output, context);
|
|
1112
1113
|
}
|
|
1113
|
-
const data = await
|
|
1114
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1114
1115
|
let contents = {};
|
|
1115
1116
|
contents = (0, import_smithy_client._json)(data);
|
|
1116
1117
|
const response = {
|
|
@@ -1123,7 +1124,7 @@ var de_DeleteProjectCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1123
1124
|
if (output.statusCode >= 300) {
|
|
1124
1125
|
return de_CommandError(output, context);
|
|
1125
1126
|
}
|
|
1126
|
-
const data = await
|
|
1127
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1127
1128
|
let contents = {};
|
|
1128
1129
|
contents = (0, import_smithy_client._json)(data);
|
|
1129
1130
|
const response = {
|
|
@@ -1136,7 +1137,7 @@ var de_DeleteReportCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1136
1137
|
if (output.statusCode >= 300) {
|
|
1137
1138
|
return de_CommandError(output, context);
|
|
1138
1139
|
}
|
|
1139
|
-
const data = await
|
|
1140
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1140
1141
|
let contents = {};
|
|
1141
1142
|
contents = (0, import_smithy_client._json)(data);
|
|
1142
1143
|
const response = {
|
|
@@ -1149,7 +1150,7 @@ var de_DeleteReportGroupCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1149
1150
|
if (output.statusCode >= 300) {
|
|
1150
1151
|
return de_CommandError(output, context);
|
|
1151
1152
|
}
|
|
1152
|
-
const data = await
|
|
1153
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1153
1154
|
let contents = {};
|
|
1154
1155
|
contents = (0, import_smithy_client._json)(data);
|
|
1155
1156
|
const response = {
|
|
@@ -1162,7 +1163,7 @@ var de_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1162
1163
|
if (output.statusCode >= 300) {
|
|
1163
1164
|
return de_CommandError(output, context);
|
|
1164
1165
|
}
|
|
1165
|
-
const data = await
|
|
1166
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1166
1167
|
let contents = {};
|
|
1167
1168
|
contents = (0, import_smithy_client._json)(data);
|
|
1168
1169
|
const response = {
|
|
@@ -1175,7 +1176,7 @@ var de_DeleteSourceCredentialsCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1175
1176
|
if (output.statusCode >= 300) {
|
|
1176
1177
|
return de_CommandError(output, context);
|
|
1177
1178
|
}
|
|
1178
|
-
const data = await
|
|
1179
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1179
1180
|
let contents = {};
|
|
1180
1181
|
contents = (0, import_smithy_client._json)(data);
|
|
1181
1182
|
const response = {
|
|
@@ -1188,7 +1189,7 @@ var de_DeleteWebhookCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1188
1189
|
if (output.statusCode >= 300) {
|
|
1189
1190
|
return de_CommandError(output, context);
|
|
1190
1191
|
}
|
|
1191
|
-
const data = await
|
|
1192
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1192
1193
|
let contents = {};
|
|
1193
1194
|
contents = (0, import_smithy_client._json)(data);
|
|
1194
1195
|
const response = {
|
|
@@ -1201,7 +1202,7 @@ var de_DescribeCodeCoveragesCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1201
1202
|
if (output.statusCode >= 300) {
|
|
1202
1203
|
return de_CommandError(output, context);
|
|
1203
1204
|
}
|
|
1204
|
-
const data = await
|
|
1205
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1205
1206
|
let contents = {};
|
|
1206
1207
|
contents = de_DescribeCodeCoveragesOutput(data, context);
|
|
1207
1208
|
const response = {
|
|
@@ -1214,7 +1215,7 @@ var de_DescribeTestCasesCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1214
1215
|
if (output.statusCode >= 300) {
|
|
1215
1216
|
return de_CommandError(output, context);
|
|
1216
1217
|
}
|
|
1217
|
-
const data = await
|
|
1218
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1218
1219
|
let contents = {};
|
|
1219
1220
|
contents = de_DescribeTestCasesOutput(data, context);
|
|
1220
1221
|
const response = {
|
|
@@ -1227,7 +1228,7 @@ var de_GetReportGroupTrendCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1227
1228
|
if (output.statusCode >= 300) {
|
|
1228
1229
|
return de_CommandError(output, context);
|
|
1229
1230
|
}
|
|
1230
|
-
const data = await
|
|
1231
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1231
1232
|
let contents = {};
|
|
1232
1233
|
contents = (0, import_smithy_client._json)(data);
|
|
1233
1234
|
const response = {
|
|
@@ -1240,7 +1241,7 @@ var de_GetResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1240
1241
|
if (output.statusCode >= 300) {
|
|
1241
1242
|
return de_CommandError(output, context);
|
|
1242
1243
|
}
|
|
1243
|
-
const data = await
|
|
1244
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1244
1245
|
let contents = {};
|
|
1245
1246
|
contents = (0, import_smithy_client._json)(data);
|
|
1246
1247
|
const response = {
|
|
@@ -1253,7 +1254,7 @@ var de_ImportSourceCredentialsCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1253
1254
|
if (output.statusCode >= 300) {
|
|
1254
1255
|
return de_CommandError(output, context);
|
|
1255
1256
|
}
|
|
1256
|
-
const data = await
|
|
1257
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1257
1258
|
let contents = {};
|
|
1258
1259
|
contents = (0, import_smithy_client._json)(data);
|
|
1259
1260
|
const response = {
|
|
@@ -1266,7 +1267,7 @@ var de_InvalidateProjectCacheCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1266
1267
|
if (output.statusCode >= 300) {
|
|
1267
1268
|
return de_CommandError(output, context);
|
|
1268
1269
|
}
|
|
1269
|
-
const data = await
|
|
1270
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1270
1271
|
let contents = {};
|
|
1271
1272
|
contents = (0, import_smithy_client._json)(data);
|
|
1272
1273
|
const response = {
|
|
@@ -1279,7 +1280,7 @@ var de_ListBuildBatchesCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1279
1280
|
if (output.statusCode >= 300) {
|
|
1280
1281
|
return de_CommandError(output, context);
|
|
1281
1282
|
}
|
|
1282
|
-
const data = await
|
|
1283
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1283
1284
|
let contents = {};
|
|
1284
1285
|
contents = (0, import_smithy_client._json)(data);
|
|
1285
1286
|
const response = {
|
|
@@ -1292,7 +1293,7 @@ var de_ListBuildBatchesForProjectCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1292
1293
|
if (output.statusCode >= 300) {
|
|
1293
1294
|
return de_CommandError(output, context);
|
|
1294
1295
|
}
|
|
1295
|
-
const data = await
|
|
1296
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1296
1297
|
let contents = {};
|
|
1297
1298
|
contents = (0, import_smithy_client._json)(data);
|
|
1298
1299
|
const response = {
|
|
@@ -1305,7 +1306,7 @@ var de_ListBuildsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1305
1306
|
if (output.statusCode >= 300) {
|
|
1306
1307
|
return de_CommandError(output, context);
|
|
1307
1308
|
}
|
|
1308
|
-
const data = await
|
|
1309
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1309
1310
|
let contents = {};
|
|
1310
1311
|
contents = (0, import_smithy_client._json)(data);
|
|
1311
1312
|
const response = {
|
|
@@ -1318,7 +1319,7 @@ var de_ListBuildsForProjectCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1318
1319
|
if (output.statusCode >= 300) {
|
|
1319
1320
|
return de_CommandError(output, context);
|
|
1320
1321
|
}
|
|
1321
|
-
const data = await
|
|
1322
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1322
1323
|
let contents = {};
|
|
1323
1324
|
contents = (0, import_smithy_client._json)(data);
|
|
1324
1325
|
const response = {
|
|
@@ -1331,7 +1332,7 @@ var de_ListCuratedEnvironmentImagesCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
1331
1332
|
if (output.statusCode >= 300) {
|
|
1332
1333
|
return de_CommandError(output, context);
|
|
1333
1334
|
}
|
|
1334
|
-
const data = await
|
|
1335
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1335
1336
|
let contents = {};
|
|
1336
1337
|
contents = (0, import_smithy_client._json)(data);
|
|
1337
1338
|
const response = {
|
|
@@ -1344,7 +1345,7 @@ var de_ListFleetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1344
1345
|
if (output.statusCode >= 300) {
|
|
1345
1346
|
return de_CommandError(output, context);
|
|
1346
1347
|
}
|
|
1347
|
-
const data = await
|
|
1348
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1348
1349
|
let contents = {};
|
|
1349
1350
|
contents = (0, import_smithy_client._json)(data);
|
|
1350
1351
|
const response = {
|
|
@@ -1357,7 +1358,7 @@ var de_ListProjectsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1357
1358
|
if (output.statusCode >= 300) {
|
|
1358
1359
|
return de_CommandError(output, context);
|
|
1359
1360
|
}
|
|
1360
|
-
const data = await
|
|
1361
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1361
1362
|
let contents = {};
|
|
1362
1363
|
contents = (0, import_smithy_client._json)(data);
|
|
1363
1364
|
const response = {
|
|
@@ -1370,7 +1371,7 @@ var de_ListReportGroupsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1370
1371
|
if (output.statusCode >= 300) {
|
|
1371
1372
|
return de_CommandError(output, context);
|
|
1372
1373
|
}
|
|
1373
|
-
const data = await
|
|
1374
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1374
1375
|
let contents = {};
|
|
1375
1376
|
contents = (0, import_smithy_client._json)(data);
|
|
1376
1377
|
const response = {
|
|
@@ -1383,7 +1384,7 @@ var de_ListReportsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1383
1384
|
if (output.statusCode >= 300) {
|
|
1384
1385
|
return de_CommandError(output, context);
|
|
1385
1386
|
}
|
|
1386
|
-
const data = await
|
|
1387
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1387
1388
|
let contents = {};
|
|
1388
1389
|
contents = (0, import_smithy_client._json)(data);
|
|
1389
1390
|
const response = {
|
|
@@ -1396,7 +1397,7 @@ var de_ListReportsForReportGroupCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1396
1397
|
if (output.statusCode >= 300) {
|
|
1397
1398
|
return de_CommandError(output, context);
|
|
1398
1399
|
}
|
|
1399
|
-
const data = await
|
|
1400
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1400
1401
|
let contents = {};
|
|
1401
1402
|
contents = (0, import_smithy_client._json)(data);
|
|
1402
1403
|
const response = {
|
|
@@ -1409,7 +1410,7 @@ var de_ListSharedProjectsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1409
1410
|
if (output.statusCode >= 300) {
|
|
1410
1411
|
return de_CommandError(output, context);
|
|
1411
1412
|
}
|
|
1412
|
-
const data = await
|
|
1413
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1413
1414
|
let contents = {};
|
|
1414
1415
|
contents = (0, import_smithy_client._json)(data);
|
|
1415
1416
|
const response = {
|
|
@@ -1422,7 +1423,7 @@ var de_ListSharedReportGroupsCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1422
1423
|
if (output.statusCode >= 300) {
|
|
1423
1424
|
return de_CommandError(output, context);
|
|
1424
1425
|
}
|
|
1425
|
-
const data = await
|
|
1426
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1426
1427
|
let contents = {};
|
|
1427
1428
|
contents = (0, import_smithy_client._json)(data);
|
|
1428
1429
|
const response = {
|
|
@@ -1435,7 +1436,7 @@ var de_ListSourceCredentialsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1435
1436
|
if (output.statusCode >= 300) {
|
|
1436
1437
|
return de_CommandError(output, context);
|
|
1437
1438
|
}
|
|
1438
|
-
const data = await
|
|
1439
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1439
1440
|
let contents = {};
|
|
1440
1441
|
contents = (0, import_smithy_client._json)(data);
|
|
1441
1442
|
const response = {
|
|
@@ -1448,7 +1449,7 @@ var de_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1448
1449
|
if (output.statusCode >= 300) {
|
|
1449
1450
|
return de_CommandError(output, context);
|
|
1450
1451
|
}
|
|
1451
|
-
const data = await
|
|
1452
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1452
1453
|
let contents = {};
|
|
1453
1454
|
contents = (0, import_smithy_client._json)(data);
|
|
1454
1455
|
const response = {
|
|
@@ -1461,7 +1462,7 @@ var de_RetryBuildCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1461
1462
|
if (output.statusCode >= 300) {
|
|
1462
1463
|
return de_CommandError(output, context);
|
|
1463
1464
|
}
|
|
1464
|
-
const data = await
|
|
1465
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1465
1466
|
let contents = {};
|
|
1466
1467
|
contents = de_RetryBuildOutput(data, context);
|
|
1467
1468
|
const response = {
|
|
@@ -1474,7 +1475,7 @@ var de_RetryBuildBatchCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1474
1475
|
if (output.statusCode >= 300) {
|
|
1475
1476
|
return de_CommandError(output, context);
|
|
1476
1477
|
}
|
|
1477
|
-
const data = await
|
|
1478
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1478
1479
|
let contents = {};
|
|
1479
1480
|
contents = de_RetryBuildBatchOutput(data, context);
|
|
1480
1481
|
const response = {
|
|
@@ -1487,7 +1488,7 @@ var de_StartBuildCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1487
1488
|
if (output.statusCode >= 300) {
|
|
1488
1489
|
return de_CommandError(output, context);
|
|
1489
1490
|
}
|
|
1490
|
-
const data = await
|
|
1491
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1491
1492
|
let contents = {};
|
|
1492
1493
|
contents = de_StartBuildOutput(data, context);
|
|
1493
1494
|
const response = {
|
|
@@ -1500,7 +1501,7 @@ var de_StartBuildBatchCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1500
1501
|
if (output.statusCode >= 300) {
|
|
1501
1502
|
return de_CommandError(output, context);
|
|
1502
1503
|
}
|
|
1503
|
-
const data = await
|
|
1504
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1504
1505
|
let contents = {};
|
|
1505
1506
|
contents = de_StartBuildBatchOutput(data, context);
|
|
1506
1507
|
const response = {
|
|
@@ -1513,7 +1514,7 @@ var de_StopBuildCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1513
1514
|
if (output.statusCode >= 300) {
|
|
1514
1515
|
return de_CommandError(output, context);
|
|
1515
1516
|
}
|
|
1516
|
-
const data = await
|
|
1517
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1517
1518
|
let contents = {};
|
|
1518
1519
|
contents = de_StopBuildOutput(data, context);
|
|
1519
1520
|
const response = {
|
|
@@ -1526,7 +1527,7 @@ var de_StopBuildBatchCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1526
1527
|
if (output.statusCode >= 300) {
|
|
1527
1528
|
return de_CommandError(output, context);
|
|
1528
1529
|
}
|
|
1529
|
-
const data = await
|
|
1530
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1530
1531
|
let contents = {};
|
|
1531
1532
|
contents = de_StopBuildBatchOutput(data, context);
|
|
1532
1533
|
const response = {
|
|
@@ -1539,7 +1540,7 @@ var de_UpdateFleetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1539
1540
|
if (output.statusCode >= 300) {
|
|
1540
1541
|
return de_CommandError(output, context);
|
|
1541
1542
|
}
|
|
1542
|
-
const data = await
|
|
1543
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1543
1544
|
let contents = {};
|
|
1544
1545
|
contents = de_UpdateFleetOutput(data, context);
|
|
1545
1546
|
const response = {
|
|
@@ -1552,7 +1553,7 @@ var de_UpdateProjectCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1552
1553
|
if (output.statusCode >= 300) {
|
|
1553
1554
|
return de_CommandError(output, context);
|
|
1554
1555
|
}
|
|
1555
|
-
const data = await
|
|
1556
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1556
1557
|
let contents = {};
|
|
1557
1558
|
contents = de_UpdateProjectOutput(data, context);
|
|
1558
1559
|
const response = {
|
|
@@ -1565,7 +1566,7 @@ var de_UpdateProjectVisibilityCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1565
1566
|
if (output.statusCode >= 300) {
|
|
1566
1567
|
return de_CommandError(output, context);
|
|
1567
1568
|
}
|
|
1568
|
-
const data = await
|
|
1569
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1569
1570
|
let contents = {};
|
|
1570
1571
|
contents = (0, import_smithy_client._json)(data);
|
|
1571
1572
|
const response = {
|
|
@@ -1578,7 +1579,7 @@ var de_UpdateReportGroupCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1578
1579
|
if (output.statusCode >= 300) {
|
|
1579
1580
|
return de_CommandError(output, context);
|
|
1580
1581
|
}
|
|
1581
|
-
const data = await
|
|
1582
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1582
1583
|
let contents = {};
|
|
1583
1584
|
contents = de_UpdateReportGroupOutput(data, context);
|
|
1584
1585
|
const response = {
|
|
@@ -1591,7 +1592,7 @@ var de_UpdateWebhookCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1591
1592
|
if (output.statusCode >= 300) {
|
|
1592
1593
|
return de_CommandError(output, context);
|
|
1593
1594
|
}
|
|
1594
|
-
const data = await
|
|
1595
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1595
1596
|
let contents = {};
|
|
1596
1597
|
contents = de_UpdateWebhookOutput(data, context);
|
|
1597
1598
|
const response = {
|
|
@@ -1603,9 +1604,9 @@ var de_UpdateWebhookCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1603
1604
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1604
1605
|
const parsedOutput = {
|
|
1605
1606
|
...output,
|
|
1606
|
-
body: await
|
|
1607
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
1607
1608
|
};
|
|
1608
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1609
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
1609
1610
|
switch (errorCode) {
|
|
1610
1611
|
case "InvalidInputException":
|
|
1611
1612
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
@@ -2171,7 +2172,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
2171
2172
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2172
2173
|
cfId: output.headers["x-amz-cf-id"]
|
|
2173
2174
|
}), "deserializeMetadata");
|
|
2174
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
2175
2175
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(CodeBuildServiceException);
|
|
2176
2176
|
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
2177
2177
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -2198,46 +2198,6 @@ function sharedHeaders(operation) {
|
|
|
2198
2198
|
};
|
|
2199
2199
|
}
|
|
2200
2200
|
__name(sharedHeaders, "sharedHeaders");
|
|
2201
|
-
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2202
|
-
if (encoded.length) {
|
|
2203
|
-
return JSON.parse(encoded);
|
|
2204
|
-
}
|
|
2205
|
-
return {};
|
|
2206
|
-
}), "parseBody");
|
|
2207
|
-
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
2208
|
-
const value = await parseBody(errorBody, context);
|
|
2209
|
-
value.message = value.message ?? value.Message;
|
|
2210
|
-
return value;
|
|
2211
|
-
}, "parseErrorBody");
|
|
2212
|
-
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
2213
|
-
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
2214
|
-
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
2215
|
-
let cleanValue = rawValue;
|
|
2216
|
-
if (typeof cleanValue === "number") {
|
|
2217
|
-
cleanValue = cleanValue.toString();
|
|
2218
|
-
}
|
|
2219
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
2220
|
-
cleanValue = cleanValue.split(",")[0];
|
|
2221
|
-
}
|
|
2222
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
2223
|
-
cleanValue = cleanValue.split(":")[0];
|
|
2224
|
-
}
|
|
2225
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
2226
|
-
cleanValue = cleanValue.split("#")[1];
|
|
2227
|
-
}
|
|
2228
|
-
return cleanValue;
|
|
2229
|
-
}, "sanitizeErrorCode");
|
|
2230
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2231
|
-
if (headerKey !== void 0) {
|
|
2232
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2233
|
-
}
|
|
2234
|
-
if (data.code !== void 0) {
|
|
2235
|
-
return sanitizeErrorCode(data.code);
|
|
2236
|
-
}
|
|
2237
|
-
if (data["__type"] !== void 0) {
|
|
2238
|
-
return sanitizeErrorCode(data["__type"]);
|
|
2239
|
-
}
|
|
2240
|
-
}, "loadRestJsonErrorCode");
|
|
2241
2201
|
|
|
2242
2202
|
// src/commands/BatchDeleteBuildsCommand.ts
|
|
2243
2203
|
var _BatchDeleteBuildsCommand = class _BatchDeleteBuildsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
1
2
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
2
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
4
|
import { CodeBuildServiceException as __BaseException } from "../models/CodeBuildServiceException";
|
|
@@ -1577,43 +1578,3 @@ function sharedHeaders(operation) {
|
|
|
1577
1578
|
"x-amz-target": `CodeBuild_20161006.${operation}`,
|
|
1578
1579
|
};
|
|
1579
1580
|
}
|
|
1580
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1581
|
-
if (encoded.length) {
|
|
1582
|
-
return JSON.parse(encoded);
|
|
1583
|
-
}
|
|
1584
|
-
return {};
|
|
1585
|
-
});
|
|
1586
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
1587
|
-
const value = await parseBody(errorBody, context);
|
|
1588
|
-
value.message = value.message ?? value.Message;
|
|
1589
|
-
return value;
|
|
1590
|
-
};
|
|
1591
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
1592
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1593
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
1594
|
-
let cleanValue = rawValue;
|
|
1595
|
-
if (typeof cleanValue === "number") {
|
|
1596
|
-
cleanValue = cleanValue.toString();
|
|
1597
|
-
}
|
|
1598
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1599
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1600
|
-
}
|
|
1601
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1602
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1603
|
-
}
|
|
1604
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1605
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1606
|
-
}
|
|
1607
|
-
return cleanValue;
|
|
1608
|
-
};
|
|
1609
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1610
|
-
if (headerKey !== undefined) {
|
|
1611
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1612
|
-
}
|
|
1613
|
-
if (data.code !== undefined) {
|
|
1614
|
-
return sanitizeErrorCode(data.code);
|
|
1615
|
-
}
|
|
1616
|
-
if (data["__type"] !== undefined) {
|
|
1617
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1618
|
-
}
|
|
1619
|
-
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-codebuild",
|
|
3
3
|
"description": "AWS SDK for JavaScript Codebuild Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.529.1",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-codebuild",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.529.1",
|
|
24
|
+
"@aws-sdk/core": "3.529.1",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.529.1",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.523.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.523.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.523.0",
|