@aws-sdk/client-codebuild 3.183.0 → 3.185.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.
Files changed (70) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/protocols/Aws_json1_1.js +2 -2
  3. package/dist-es/CodeBuild.js +189 -182
  4. package/dist-es/CodeBuildClient.js +28 -22
  5. package/dist-es/commands/BatchDeleteBuildsCommand.js +28 -21
  6. package/dist-es/commands/BatchGetBuildBatchesCommand.js +28 -21
  7. package/dist-es/commands/BatchGetBuildsCommand.js +28 -21
  8. package/dist-es/commands/BatchGetProjectsCommand.js +28 -21
  9. package/dist-es/commands/BatchGetReportGroupsCommand.js +28 -21
  10. package/dist-es/commands/BatchGetReportsCommand.js +28 -21
  11. package/dist-es/commands/CreateProjectCommand.js +28 -21
  12. package/dist-es/commands/CreateReportGroupCommand.js +28 -21
  13. package/dist-es/commands/CreateWebhookCommand.js +28 -21
  14. package/dist-es/commands/DeleteBuildBatchCommand.js +28 -21
  15. package/dist-es/commands/DeleteProjectCommand.js +28 -21
  16. package/dist-es/commands/DeleteReportCommand.js +28 -21
  17. package/dist-es/commands/DeleteReportGroupCommand.js +28 -21
  18. package/dist-es/commands/DeleteResourcePolicyCommand.js +28 -21
  19. package/dist-es/commands/DeleteSourceCredentialsCommand.js +28 -21
  20. package/dist-es/commands/DeleteWebhookCommand.js +28 -21
  21. package/dist-es/commands/DescribeCodeCoveragesCommand.js +28 -21
  22. package/dist-es/commands/DescribeTestCasesCommand.js +28 -21
  23. package/dist-es/commands/GetReportGroupTrendCommand.js +28 -21
  24. package/dist-es/commands/GetResourcePolicyCommand.js +28 -21
  25. package/dist-es/commands/ImportSourceCredentialsCommand.js +28 -21
  26. package/dist-es/commands/InvalidateProjectCacheCommand.js +28 -21
  27. package/dist-es/commands/ListBuildBatchesCommand.js +28 -21
  28. package/dist-es/commands/ListBuildBatchesForProjectCommand.js +28 -21
  29. package/dist-es/commands/ListBuildsCommand.js +28 -21
  30. package/dist-es/commands/ListBuildsForProjectCommand.js +28 -21
  31. package/dist-es/commands/ListCuratedEnvironmentImagesCommand.js +28 -21
  32. package/dist-es/commands/ListProjectsCommand.js +28 -21
  33. package/dist-es/commands/ListReportGroupsCommand.js +28 -21
  34. package/dist-es/commands/ListReportsCommand.js +28 -21
  35. package/dist-es/commands/ListReportsForReportGroupCommand.js +28 -21
  36. package/dist-es/commands/ListSharedProjectsCommand.js +28 -21
  37. package/dist-es/commands/ListSharedReportGroupsCommand.js +28 -21
  38. package/dist-es/commands/ListSourceCredentialsCommand.js +28 -21
  39. package/dist-es/commands/PutResourcePolicyCommand.js +28 -21
  40. package/dist-es/commands/RetryBuildBatchCommand.js +28 -21
  41. package/dist-es/commands/RetryBuildCommand.js +28 -21
  42. package/dist-es/commands/StartBuildBatchCommand.js +28 -21
  43. package/dist-es/commands/StartBuildCommand.js +28 -21
  44. package/dist-es/commands/StopBuildBatchCommand.js +28 -21
  45. package/dist-es/commands/StopBuildCommand.js +28 -21
  46. package/dist-es/commands/UpdateProjectCommand.js +28 -21
  47. package/dist-es/commands/UpdateProjectVisibilityCommand.js +28 -21
  48. package/dist-es/commands/UpdateReportGroupCommand.js +28 -21
  49. package/dist-es/commands/UpdateWebhookCommand.js +28 -21
  50. package/dist-es/endpoints.js +8 -8
  51. package/dist-es/models/CodeBuildServiceException.js +10 -5
  52. package/dist-es/models/models_0.js +199 -485
  53. package/dist-es/pagination/DescribeCodeCoveragesPaginator.js +68 -25
  54. package/dist-es/pagination/DescribeTestCasesPaginator.js +68 -25
  55. package/dist-es/pagination/ListBuildBatchesForProjectPaginator.js +68 -25
  56. package/dist-es/pagination/ListBuildBatchesPaginator.js +68 -25
  57. package/dist-es/pagination/ListBuildsForProjectPaginator.js +67 -24
  58. package/dist-es/pagination/ListBuildsPaginator.js +67 -24
  59. package/dist-es/pagination/ListProjectsPaginator.js +67 -24
  60. package/dist-es/pagination/ListReportGroupsPaginator.js +68 -25
  61. package/dist-es/pagination/ListReportsForReportGroupPaginator.js +68 -25
  62. package/dist-es/pagination/ListReportsPaginator.js +68 -25
  63. package/dist-es/pagination/ListSharedProjectsPaginator.js +68 -25
  64. package/dist-es/pagination/ListSharedReportGroupsPaginator.js +68 -25
  65. package/dist-es/protocols/Aws_json1_1.js +3597 -3001
  66. package/dist-es/runtimeConfig.browser.js +12 -26
  67. package/dist-es/runtimeConfig.js +12 -30
  68. package/dist-es/runtimeConfig.native.js +5 -8
  69. package/dist-es/runtimeConfig.shared.js +11 -8
  70. package/package.json +5 -5
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { CodeBuildClient } from "./CodeBuildClient";
2
3
  import { BatchDeleteBuildsCommand, } from "./commands/BatchDeleteBuildsCommand";
3
4
  import { BatchGetBuildBatchesCommand, } from "./commands/BatchGetBuildBatchesCommand";
@@ -44,635 +45,641 @@ import { UpdateProjectCommand, } from "./commands/UpdateProjectCommand";
44
45
  import { UpdateProjectVisibilityCommand, } from "./commands/UpdateProjectVisibilityCommand";
45
46
  import { UpdateReportGroupCommand, } from "./commands/UpdateReportGroupCommand";
46
47
  import { UpdateWebhookCommand, } from "./commands/UpdateWebhookCommand";
47
- export class CodeBuild extends CodeBuildClient {
48
- batchDeleteBuilds(args, optionsOrCb, cb) {
49
- const command = new BatchDeleteBuildsCommand(args);
48
+ var CodeBuild = (function (_super) {
49
+ __extends(CodeBuild, _super);
50
+ function CodeBuild() {
51
+ return _super !== null && _super.apply(this, arguments) || this;
52
+ }
53
+ CodeBuild.prototype.batchDeleteBuilds = function (args, optionsOrCb, cb) {
54
+ var command = new BatchDeleteBuildsCommand(args);
50
55
  if (typeof optionsOrCb === "function") {
51
56
  this.send(command, optionsOrCb);
52
57
  }
53
58
  else if (typeof cb === "function") {
54
59
  if (typeof optionsOrCb !== "object")
55
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
60
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
56
61
  this.send(command, optionsOrCb || {}, cb);
57
62
  }
58
63
  else {
59
64
  return this.send(command, optionsOrCb);
60
65
  }
61
- }
62
- batchGetBuildBatches(args, optionsOrCb, cb) {
63
- const command = new BatchGetBuildBatchesCommand(args);
66
+ };
67
+ CodeBuild.prototype.batchGetBuildBatches = function (args, optionsOrCb, cb) {
68
+ var command = new BatchGetBuildBatchesCommand(args);
64
69
  if (typeof optionsOrCb === "function") {
65
70
  this.send(command, optionsOrCb);
66
71
  }
67
72
  else if (typeof cb === "function") {
68
73
  if (typeof optionsOrCb !== "object")
69
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
74
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
70
75
  this.send(command, optionsOrCb || {}, cb);
71
76
  }
72
77
  else {
73
78
  return this.send(command, optionsOrCb);
74
79
  }
75
- }
76
- batchGetBuilds(args, optionsOrCb, cb) {
77
- const command = new BatchGetBuildsCommand(args);
80
+ };
81
+ CodeBuild.prototype.batchGetBuilds = function (args, optionsOrCb, cb) {
82
+ var command = new BatchGetBuildsCommand(args);
78
83
  if (typeof optionsOrCb === "function") {
79
84
  this.send(command, optionsOrCb);
80
85
  }
81
86
  else if (typeof cb === "function") {
82
87
  if (typeof optionsOrCb !== "object")
83
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
88
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
84
89
  this.send(command, optionsOrCb || {}, cb);
85
90
  }
86
91
  else {
87
92
  return this.send(command, optionsOrCb);
88
93
  }
89
- }
90
- batchGetProjects(args, optionsOrCb, cb) {
91
- const command = new BatchGetProjectsCommand(args);
94
+ };
95
+ CodeBuild.prototype.batchGetProjects = function (args, optionsOrCb, cb) {
96
+ var command = new BatchGetProjectsCommand(args);
92
97
  if (typeof optionsOrCb === "function") {
93
98
  this.send(command, optionsOrCb);
94
99
  }
95
100
  else if (typeof cb === "function") {
96
101
  if (typeof optionsOrCb !== "object")
97
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
102
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
98
103
  this.send(command, optionsOrCb || {}, cb);
99
104
  }
100
105
  else {
101
106
  return this.send(command, optionsOrCb);
102
107
  }
103
- }
104
- batchGetReportGroups(args, optionsOrCb, cb) {
105
- const command = new BatchGetReportGroupsCommand(args);
108
+ };
109
+ CodeBuild.prototype.batchGetReportGroups = function (args, optionsOrCb, cb) {
110
+ var command = new BatchGetReportGroupsCommand(args);
106
111
  if (typeof optionsOrCb === "function") {
107
112
  this.send(command, optionsOrCb);
108
113
  }
109
114
  else if (typeof cb === "function") {
110
115
  if (typeof optionsOrCb !== "object")
111
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
116
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
112
117
  this.send(command, optionsOrCb || {}, cb);
113
118
  }
114
119
  else {
115
120
  return this.send(command, optionsOrCb);
116
121
  }
117
- }
118
- batchGetReports(args, optionsOrCb, cb) {
119
- const command = new BatchGetReportsCommand(args);
122
+ };
123
+ CodeBuild.prototype.batchGetReports = function (args, optionsOrCb, cb) {
124
+ var command = new BatchGetReportsCommand(args);
120
125
  if (typeof optionsOrCb === "function") {
121
126
  this.send(command, optionsOrCb);
122
127
  }
123
128
  else if (typeof cb === "function") {
124
129
  if (typeof optionsOrCb !== "object")
125
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
130
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
126
131
  this.send(command, optionsOrCb || {}, cb);
127
132
  }
128
133
  else {
129
134
  return this.send(command, optionsOrCb);
130
135
  }
131
- }
132
- createProject(args, optionsOrCb, cb) {
133
- const command = new CreateProjectCommand(args);
136
+ };
137
+ CodeBuild.prototype.createProject = function (args, optionsOrCb, cb) {
138
+ var command = new CreateProjectCommand(args);
134
139
  if (typeof optionsOrCb === "function") {
135
140
  this.send(command, optionsOrCb);
136
141
  }
137
142
  else if (typeof cb === "function") {
138
143
  if (typeof optionsOrCb !== "object")
139
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
144
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
140
145
  this.send(command, optionsOrCb || {}, cb);
141
146
  }
142
147
  else {
143
148
  return this.send(command, optionsOrCb);
144
149
  }
145
- }
146
- createReportGroup(args, optionsOrCb, cb) {
147
- const command = new CreateReportGroupCommand(args);
150
+ };
151
+ CodeBuild.prototype.createReportGroup = function (args, optionsOrCb, cb) {
152
+ var command = new CreateReportGroupCommand(args);
148
153
  if (typeof optionsOrCb === "function") {
149
154
  this.send(command, optionsOrCb);
150
155
  }
151
156
  else if (typeof cb === "function") {
152
157
  if (typeof optionsOrCb !== "object")
153
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
158
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
154
159
  this.send(command, optionsOrCb || {}, cb);
155
160
  }
156
161
  else {
157
162
  return this.send(command, optionsOrCb);
158
163
  }
159
- }
160
- createWebhook(args, optionsOrCb, cb) {
161
- const command = new CreateWebhookCommand(args);
164
+ };
165
+ CodeBuild.prototype.createWebhook = function (args, optionsOrCb, cb) {
166
+ var command = new CreateWebhookCommand(args);
162
167
  if (typeof optionsOrCb === "function") {
163
168
  this.send(command, optionsOrCb);
164
169
  }
165
170
  else if (typeof cb === "function") {
166
171
  if (typeof optionsOrCb !== "object")
167
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
172
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
168
173
  this.send(command, optionsOrCb || {}, cb);
169
174
  }
170
175
  else {
171
176
  return this.send(command, optionsOrCb);
172
177
  }
173
- }
174
- deleteBuildBatch(args, optionsOrCb, cb) {
175
- const command = new DeleteBuildBatchCommand(args);
178
+ };
179
+ CodeBuild.prototype.deleteBuildBatch = function (args, optionsOrCb, cb) {
180
+ var command = new DeleteBuildBatchCommand(args);
176
181
  if (typeof optionsOrCb === "function") {
177
182
  this.send(command, optionsOrCb);
178
183
  }
179
184
  else if (typeof cb === "function") {
180
185
  if (typeof optionsOrCb !== "object")
181
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
186
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
182
187
  this.send(command, optionsOrCb || {}, cb);
183
188
  }
184
189
  else {
185
190
  return this.send(command, optionsOrCb);
186
191
  }
187
- }
188
- deleteProject(args, optionsOrCb, cb) {
189
- const command = new DeleteProjectCommand(args);
192
+ };
193
+ CodeBuild.prototype.deleteProject = function (args, optionsOrCb, cb) {
194
+ var command = new DeleteProjectCommand(args);
190
195
  if (typeof optionsOrCb === "function") {
191
196
  this.send(command, optionsOrCb);
192
197
  }
193
198
  else if (typeof cb === "function") {
194
199
  if (typeof optionsOrCb !== "object")
195
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
200
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
196
201
  this.send(command, optionsOrCb || {}, cb);
197
202
  }
198
203
  else {
199
204
  return this.send(command, optionsOrCb);
200
205
  }
201
- }
202
- deleteReport(args, optionsOrCb, cb) {
203
- const command = new DeleteReportCommand(args);
206
+ };
207
+ CodeBuild.prototype.deleteReport = function (args, optionsOrCb, cb) {
208
+ var command = new DeleteReportCommand(args);
204
209
  if (typeof optionsOrCb === "function") {
205
210
  this.send(command, optionsOrCb);
206
211
  }
207
212
  else if (typeof cb === "function") {
208
213
  if (typeof optionsOrCb !== "object")
209
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
214
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
210
215
  this.send(command, optionsOrCb || {}, cb);
211
216
  }
212
217
  else {
213
218
  return this.send(command, optionsOrCb);
214
219
  }
215
- }
216
- deleteReportGroup(args, optionsOrCb, cb) {
217
- const command = new DeleteReportGroupCommand(args);
220
+ };
221
+ CodeBuild.prototype.deleteReportGroup = function (args, optionsOrCb, cb) {
222
+ var command = new DeleteReportGroupCommand(args);
218
223
  if (typeof optionsOrCb === "function") {
219
224
  this.send(command, optionsOrCb);
220
225
  }
221
226
  else if (typeof cb === "function") {
222
227
  if (typeof optionsOrCb !== "object")
223
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
228
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
224
229
  this.send(command, optionsOrCb || {}, cb);
225
230
  }
226
231
  else {
227
232
  return this.send(command, optionsOrCb);
228
233
  }
229
- }
230
- deleteResourcePolicy(args, optionsOrCb, cb) {
231
- const command = new DeleteResourcePolicyCommand(args);
234
+ };
235
+ CodeBuild.prototype.deleteResourcePolicy = function (args, optionsOrCb, cb) {
236
+ var command = new DeleteResourcePolicyCommand(args);
232
237
  if (typeof optionsOrCb === "function") {
233
238
  this.send(command, optionsOrCb);
234
239
  }
235
240
  else if (typeof cb === "function") {
236
241
  if (typeof optionsOrCb !== "object")
237
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
242
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
238
243
  this.send(command, optionsOrCb || {}, cb);
239
244
  }
240
245
  else {
241
246
  return this.send(command, optionsOrCb);
242
247
  }
243
- }
244
- deleteSourceCredentials(args, optionsOrCb, cb) {
245
- const command = new DeleteSourceCredentialsCommand(args);
248
+ };
249
+ CodeBuild.prototype.deleteSourceCredentials = function (args, optionsOrCb, cb) {
250
+ var command = new DeleteSourceCredentialsCommand(args);
246
251
  if (typeof optionsOrCb === "function") {
247
252
  this.send(command, optionsOrCb);
248
253
  }
249
254
  else if (typeof cb === "function") {
250
255
  if (typeof optionsOrCb !== "object")
251
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
256
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
252
257
  this.send(command, optionsOrCb || {}, cb);
253
258
  }
254
259
  else {
255
260
  return this.send(command, optionsOrCb);
256
261
  }
257
- }
258
- deleteWebhook(args, optionsOrCb, cb) {
259
- const command = new DeleteWebhookCommand(args);
262
+ };
263
+ CodeBuild.prototype.deleteWebhook = function (args, optionsOrCb, cb) {
264
+ var command = new DeleteWebhookCommand(args);
260
265
  if (typeof optionsOrCb === "function") {
261
266
  this.send(command, optionsOrCb);
262
267
  }
263
268
  else if (typeof cb === "function") {
264
269
  if (typeof optionsOrCb !== "object")
265
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
270
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
266
271
  this.send(command, optionsOrCb || {}, cb);
267
272
  }
268
273
  else {
269
274
  return this.send(command, optionsOrCb);
270
275
  }
271
- }
272
- describeCodeCoverages(args, optionsOrCb, cb) {
273
- const command = new DescribeCodeCoveragesCommand(args);
276
+ };
277
+ CodeBuild.prototype.describeCodeCoverages = function (args, optionsOrCb, cb) {
278
+ var command = new DescribeCodeCoveragesCommand(args);
274
279
  if (typeof optionsOrCb === "function") {
275
280
  this.send(command, optionsOrCb);
276
281
  }
277
282
  else if (typeof cb === "function") {
278
283
  if (typeof optionsOrCb !== "object")
279
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
284
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
280
285
  this.send(command, optionsOrCb || {}, cb);
281
286
  }
282
287
  else {
283
288
  return this.send(command, optionsOrCb);
284
289
  }
285
- }
286
- describeTestCases(args, optionsOrCb, cb) {
287
- const command = new DescribeTestCasesCommand(args);
290
+ };
291
+ CodeBuild.prototype.describeTestCases = function (args, optionsOrCb, cb) {
292
+ var command = new DescribeTestCasesCommand(args);
288
293
  if (typeof optionsOrCb === "function") {
289
294
  this.send(command, optionsOrCb);
290
295
  }
291
296
  else if (typeof cb === "function") {
292
297
  if (typeof optionsOrCb !== "object")
293
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
298
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
294
299
  this.send(command, optionsOrCb || {}, cb);
295
300
  }
296
301
  else {
297
302
  return this.send(command, optionsOrCb);
298
303
  }
299
- }
300
- getReportGroupTrend(args, optionsOrCb, cb) {
301
- const command = new GetReportGroupTrendCommand(args);
304
+ };
305
+ CodeBuild.prototype.getReportGroupTrend = function (args, optionsOrCb, cb) {
306
+ var command = new GetReportGroupTrendCommand(args);
302
307
  if (typeof optionsOrCb === "function") {
303
308
  this.send(command, optionsOrCb);
304
309
  }
305
310
  else if (typeof cb === "function") {
306
311
  if (typeof optionsOrCb !== "object")
307
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
312
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
308
313
  this.send(command, optionsOrCb || {}, cb);
309
314
  }
310
315
  else {
311
316
  return this.send(command, optionsOrCb);
312
317
  }
313
- }
314
- getResourcePolicy(args, optionsOrCb, cb) {
315
- const command = new GetResourcePolicyCommand(args);
318
+ };
319
+ CodeBuild.prototype.getResourcePolicy = function (args, optionsOrCb, cb) {
320
+ var command = new GetResourcePolicyCommand(args);
316
321
  if (typeof optionsOrCb === "function") {
317
322
  this.send(command, optionsOrCb);
318
323
  }
319
324
  else if (typeof cb === "function") {
320
325
  if (typeof optionsOrCb !== "object")
321
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
326
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
322
327
  this.send(command, optionsOrCb || {}, cb);
323
328
  }
324
329
  else {
325
330
  return this.send(command, optionsOrCb);
326
331
  }
327
- }
328
- importSourceCredentials(args, optionsOrCb, cb) {
329
- const command = new ImportSourceCredentialsCommand(args);
332
+ };
333
+ CodeBuild.prototype.importSourceCredentials = function (args, optionsOrCb, cb) {
334
+ var command = new ImportSourceCredentialsCommand(args);
330
335
  if (typeof optionsOrCb === "function") {
331
336
  this.send(command, optionsOrCb);
332
337
  }
333
338
  else if (typeof cb === "function") {
334
339
  if (typeof optionsOrCb !== "object")
335
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
340
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
336
341
  this.send(command, optionsOrCb || {}, cb);
337
342
  }
338
343
  else {
339
344
  return this.send(command, optionsOrCb);
340
345
  }
341
- }
342
- invalidateProjectCache(args, optionsOrCb, cb) {
343
- const command = new InvalidateProjectCacheCommand(args);
346
+ };
347
+ CodeBuild.prototype.invalidateProjectCache = function (args, optionsOrCb, cb) {
348
+ var command = new InvalidateProjectCacheCommand(args);
344
349
  if (typeof optionsOrCb === "function") {
345
350
  this.send(command, optionsOrCb);
346
351
  }
347
352
  else if (typeof cb === "function") {
348
353
  if (typeof optionsOrCb !== "object")
349
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
354
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
350
355
  this.send(command, optionsOrCb || {}, cb);
351
356
  }
352
357
  else {
353
358
  return this.send(command, optionsOrCb);
354
359
  }
355
- }
356
- listBuildBatches(args, optionsOrCb, cb) {
357
- const command = new ListBuildBatchesCommand(args);
360
+ };
361
+ CodeBuild.prototype.listBuildBatches = function (args, optionsOrCb, cb) {
362
+ var command = new ListBuildBatchesCommand(args);
358
363
  if (typeof optionsOrCb === "function") {
359
364
  this.send(command, optionsOrCb);
360
365
  }
361
366
  else if (typeof cb === "function") {
362
367
  if (typeof optionsOrCb !== "object")
363
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
368
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
364
369
  this.send(command, optionsOrCb || {}, cb);
365
370
  }
366
371
  else {
367
372
  return this.send(command, optionsOrCb);
368
373
  }
369
- }
370
- listBuildBatchesForProject(args, optionsOrCb, cb) {
371
- const command = new ListBuildBatchesForProjectCommand(args);
374
+ };
375
+ CodeBuild.prototype.listBuildBatchesForProject = function (args, optionsOrCb, cb) {
376
+ var command = new ListBuildBatchesForProjectCommand(args);
372
377
  if (typeof optionsOrCb === "function") {
373
378
  this.send(command, optionsOrCb);
374
379
  }
375
380
  else if (typeof cb === "function") {
376
381
  if (typeof optionsOrCb !== "object")
377
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
382
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
378
383
  this.send(command, optionsOrCb || {}, cb);
379
384
  }
380
385
  else {
381
386
  return this.send(command, optionsOrCb);
382
387
  }
383
- }
384
- listBuilds(args, optionsOrCb, cb) {
385
- const command = new ListBuildsCommand(args);
388
+ };
389
+ CodeBuild.prototype.listBuilds = function (args, optionsOrCb, cb) {
390
+ var command = new ListBuildsCommand(args);
386
391
  if (typeof optionsOrCb === "function") {
387
392
  this.send(command, optionsOrCb);
388
393
  }
389
394
  else if (typeof cb === "function") {
390
395
  if (typeof optionsOrCb !== "object")
391
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
396
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
392
397
  this.send(command, optionsOrCb || {}, cb);
393
398
  }
394
399
  else {
395
400
  return this.send(command, optionsOrCb);
396
401
  }
397
- }
398
- listBuildsForProject(args, optionsOrCb, cb) {
399
- const command = new ListBuildsForProjectCommand(args);
402
+ };
403
+ CodeBuild.prototype.listBuildsForProject = function (args, optionsOrCb, cb) {
404
+ var command = new ListBuildsForProjectCommand(args);
400
405
  if (typeof optionsOrCb === "function") {
401
406
  this.send(command, optionsOrCb);
402
407
  }
403
408
  else if (typeof cb === "function") {
404
409
  if (typeof optionsOrCb !== "object")
405
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
410
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
406
411
  this.send(command, optionsOrCb || {}, cb);
407
412
  }
408
413
  else {
409
414
  return this.send(command, optionsOrCb);
410
415
  }
411
- }
412
- listCuratedEnvironmentImages(args, optionsOrCb, cb) {
413
- const command = new ListCuratedEnvironmentImagesCommand(args);
416
+ };
417
+ CodeBuild.prototype.listCuratedEnvironmentImages = function (args, optionsOrCb, cb) {
418
+ var command = new ListCuratedEnvironmentImagesCommand(args);
414
419
  if (typeof optionsOrCb === "function") {
415
420
  this.send(command, optionsOrCb);
416
421
  }
417
422
  else if (typeof cb === "function") {
418
423
  if (typeof optionsOrCb !== "object")
419
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
424
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
420
425
  this.send(command, optionsOrCb || {}, cb);
421
426
  }
422
427
  else {
423
428
  return this.send(command, optionsOrCb);
424
429
  }
425
- }
426
- listProjects(args, optionsOrCb, cb) {
427
- const command = new ListProjectsCommand(args);
430
+ };
431
+ CodeBuild.prototype.listProjects = function (args, optionsOrCb, cb) {
432
+ var command = new ListProjectsCommand(args);
428
433
  if (typeof optionsOrCb === "function") {
429
434
  this.send(command, optionsOrCb);
430
435
  }
431
436
  else if (typeof cb === "function") {
432
437
  if (typeof optionsOrCb !== "object")
433
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
438
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
434
439
  this.send(command, optionsOrCb || {}, cb);
435
440
  }
436
441
  else {
437
442
  return this.send(command, optionsOrCb);
438
443
  }
439
- }
440
- listReportGroups(args, optionsOrCb, cb) {
441
- const command = new ListReportGroupsCommand(args);
444
+ };
445
+ CodeBuild.prototype.listReportGroups = function (args, optionsOrCb, cb) {
446
+ var command = new ListReportGroupsCommand(args);
442
447
  if (typeof optionsOrCb === "function") {
443
448
  this.send(command, optionsOrCb);
444
449
  }
445
450
  else if (typeof cb === "function") {
446
451
  if (typeof optionsOrCb !== "object")
447
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
452
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
448
453
  this.send(command, optionsOrCb || {}, cb);
449
454
  }
450
455
  else {
451
456
  return this.send(command, optionsOrCb);
452
457
  }
453
- }
454
- listReports(args, optionsOrCb, cb) {
455
- const command = new ListReportsCommand(args);
458
+ };
459
+ CodeBuild.prototype.listReports = function (args, optionsOrCb, cb) {
460
+ var command = new ListReportsCommand(args);
456
461
  if (typeof optionsOrCb === "function") {
457
462
  this.send(command, optionsOrCb);
458
463
  }
459
464
  else if (typeof cb === "function") {
460
465
  if (typeof optionsOrCb !== "object")
461
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
466
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
462
467
  this.send(command, optionsOrCb || {}, cb);
463
468
  }
464
469
  else {
465
470
  return this.send(command, optionsOrCb);
466
471
  }
467
- }
468
- listReportsForReportGroup(args, optionsOrCb, cb) {
469
- const command = new ListReportsForReportGroupCommand(args);
472
+ };
473
+ CodeBuild.prototype.listReportsForReportGroup = function (args, optionsOrCb, cb) {
474
+ var command = new ListReportsForReportGroupCommand(args);
470
475
  if (typeof optionsOrCb === "function") {
471
476
  this.send(command, optionsOrCb);
472
477
  }
473
478
  else if (typeof cb === "function") {
474
479
  if (typeof optionsOrCb !== "object")
475
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
480
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
476
481
  this.send(command, optionsOrCb || {}, cb);
477
482
  }
478
483
  else {
479
484
  return this.send(command, optionsOrCb);
480
485
  }
481
- }
482
- listSharedProjects(args, optionsOrCb, cb) {
483
- const command = new ListSharedProjectsCommand(args);
486
+ };
487
+ CodeBuild.prototype.listSharedProjects = function (args, optionsOrCb, cb) {
488
+ var command = new ListSharedProjectsCommand(args);
484
489
  if (typeof optionsOrCb === "function") {
485
490
  this.send(command, optionsOrCb);
486
491
  }
487
492
  else if (typeof cb === "function") {
488
493
  if (typeof optionsOrCb !== "object")
489
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
494
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
490
495
  this.send(command, optionsOrCb || {}, cb);
491
496
  }
492
497
  else {
493
498
  return this.send(command, optionsOrCb);
494
499
  }
495
- }
496
- listSharedReportGroups(args, optionsOrCb, cb) {
497
- const command = new ListSharedReportGroupsCommand(args);
500
+ };
501
+ CodeBuild.prototype.listSharedReportGroups = function (args, optionsOrCb, cb) {
502
+ var command = new ListSharedReportGroupsCommand(args);
498
503
  if (typeof optionsOrCb === "function") {
499
504
  this.send(command, optionsOrCb);
500
505
  }
501
506
  else if (typeof cb === "function") {
502
507
  if (typeof optionsOrCb !== "object")
503
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
508
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
504
509
  this.send(command, optionsOrCb || {}, cb);
505
510
  }
506
511
  else {
507
512
  return this.send(command, optionsOrCb);
508
513
  }
509
- }
510
- listSourceCredentials(args, optionsOrCb, cb) {
511
- const command = new ListSourceCredentialsCommand(args);
514
+ };
515
+ CodeBuild.prototype.listSourceCredentials = function (args, optionsOrCb, cb) {
516
+ var command = new ListSourceCredentialsCommand(args);
512
517
  if (typeof optionsOrCb === "function") {
513
518
  this.send(command, optionsOrCb);
514
519
  }
515
520
  else if (typeof cb === "function") {
516
521
  if (typeof optionsOrCb !== "object")
517
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
522
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
518
523
  this.send(command, optionsOrCb || {}, cb);
519
524
  }
520
525
  else {
521
526
  return this.send(command, optionsOrCb);
522
527
  }
523
- }
524
- putResourcePolicy(args, optionsOrCb, cb) {
525
- const command = new PutResourcePolicyCommand(args);
528
+ };
529
+ CodeBuild.prototype.putResourcePolicy = function (args, optionsOrCb, cb) {
530
+ var command = new PutResourcePolicyCommand(args);
526
531
  if (typeof optionsOrCb === "function") {
527
532
  this.send(command, optionsOrCb);
528
533
  }
529
534
  else if (typeof cb === "function") {
530
535
  if (typeof optionsOrCb !== "object")
531
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
536
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
532
537
  this.send(command, optionsOrCb || {}, cb);
533
538
  }
534
539
  else {
535
540
  return this.send(command, optionsOrCb);
536
541
  }
537
- }
538
- retryBuild(args, optionsOrCb, cb) {
539
- const command = new RetryBuildCommand(args);
542
+ };
543
+ CodeBuild.prototype.retryBuild = function (args, optionsOrCb, cb) {
544
+ var command = new RetryBuildCommand(args);
540
545
  if (typeof optionsOrCb === "function") {
541
546
  this.send(command, optionsOrCb);
542
547
  }
543
548
  else if (typeof cb === "function") {
544
549
  if (typeof optionsOrCb !== "object")
545
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
550
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
546
551
  this.send(command, optionsOrCb || {}, cb);
547
552
  }
548
553
  else {
549
554
  return this.send(command, optionsOrCb);
550
555
  }
551
- }
552
- retryBuildBatch(args, optionsOrCb, cb) {
553
- const command = new RetryBuildBatchCommand(args);
556
+ };
557
+ CodeBuild.prototype.retryBuildBatch = function (args, optionsOrCb, cb) {
558
+ var command = new RetryBuildBatchCommand(args);
554
559
  if (typeof optionsOrCb === "function") {
555
560
  this.send(command, optionsOrCb);
556
561
  }
557
562
  else if (typeof cb === "function") {
558
563
  if (typeof optionsOrCb !== "object")
559
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
564
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
560
565
  this.send(command, optionsOrCb || {}, cb);
561
566
  }
562
567
  else {
563
568
  return this.send(command, optionsOrCb);
564
569
  }
565
- }
566
- startBuild(args, optionsOrCb, cb) {
567
- const command = new StartBuildCommand(args);
570
+ };
571
+ CodeBuild.prototype.startBuild = function (args, optionsOrCb, cb) {
572
+ var command = new StartBuildCommand(args);
568
573
  if (typeof optionsOrCb === "function") {
569
574
  this.send(command, optionsOrCb);
570
575
  }
571
576
  else if (typeof cb === "function") {
572
577
  if (typeof optionsOrCb !== "object")
573
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
578
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
574
579
  this.send(command, optionsOrCb || {}, cb);
575
580
  }
576
581
  else {
577
582
  return this.send(command, optionsOrCb);
578
583
  }
579
- }
580
- startBuildBatch(args, optionsOrCb, cb) {
581
- const command = new StartBuildBatchCommand(args);
584
+ };
585
+ CodeBuild.prototype.startBuildBatch = function (args, optionsOrCb, cb) {
586
+ var command = new StartBuildBatchCommand(args);
582
587
  if (typeof optionsOrCb === "function") {
583
588
  this.send(command, optionsOrCb);
584
589
  }
585
590
  else if (typeof cb === "function") {
586
591
  if (typeof optionsOrCb !== "object")
587
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
592
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
588
593
  this.send(command, optionsOrCb || {}, cb);
589
594
  }
590
595
  else {
591
596
  return this.send(command, optionsOrCb);
592
597
  }
593
- }
594
- stopBuild(args, optionsOrCb, cb) {
595
- const command = new StopBuildCommand(args);
598
+ };
599
+ CodeBuild.prototype.stopBuild = function (args, optionsOrCb, cb) {
600
+ var command = new StopBuildCommand(args);
596
601
  if (typeof optionsOrCb === "function") {
597
602
  this.send(command, optionsOrCb);
598
603
  }
599
604
  else if (typeof cb === "function") {
600
605
  if (typeof optionsOrCb !== "object")
601
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
606
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
602
607
  this.send(command, optionsOrCb || {}, cb);
603
608
  }
604
609
  else {
605
610
  return this.send(command, optionsOrCb);
606
611
  }
607
- }
608
- stopBuildBatch(args, optionsOrCb, cb) {
609
- const command = new StopBuildBatchCommand(args);
612
+ };
613
+ CodeBuild.prototype.stopBuildBatch = function (args, optionsOrCb, cb) {
614
+ var command = new StopBuildBatchCommand(args);
610
615
  if (typeof optionsOrCb === "function") {
611
616
  this.send(command, optionsOrCb);
612
617
  }
613
618
  else if (typeof cb === "function") {
614
619
  if (typeof optionsOrCb !== "object")
615
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
620
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
616
621
  this.send(command, optionsOrCb || {}, cb);
617
622
  }
618
623
  else {
619
624
  return this.send(command, optionsOrCb);
620
625
  }
621
- }
622
- updateProject(args, optionsOrCb, cb) {
623
- const command = new UpdateProjectCommand(args);
626
+ };
627
+ CodeBuild.prototype.updateProject = function (args, optionsOrCb, cb) {
628
+ var command = new UpdateProjectCommand(args);
624
629
  if (typeof optionsOrCb === "function") {
625
630
  this.send(command, optionsOrCb);
626
631
  }
627
632
  else if (typeof cb === "function") {
628
633
  if (typeof optionsOrCb !== "object")
629
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
634
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
630
635
  this.send(command, optionsOrCb || {}, cb);
631
636
  }
632
637
  else {
633
638
  return this.send(command, optionsOrCb);
634
639
  }
635
- }
636
- updateProjectVisibility(args, optionsOrCb, cb) {
637
- const command = new UpdateProjectVisibilityCommand(args);
640
+ };
641
+ CodeBuild.prototype.updateProjectVisibility = function (args, optionsOrCb, cb) {
642
+ var command = new UpdateProjectVisibilityCommand(args);
638
643
  if (typeof optionsOrCb === "function") {
639
644
  this.send(command, optionsOrCb);
640
645
  }
641
646
  else if (typeof cb === "function") {
642
647
  if (typeof optionsOrCb !== "object")
643
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
648
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
644
649
  this.send(command, optionsOrCb || {}, cb);
645
650
  }
646
651
  else {
647
652
  return this.send(command, optionsOrCb);
648
653
  }
649
- }
650
- updateReportGroup(args, optionsOrCb, cb) {
651
- const command = new UpdateReportGroupCommand(args);
654
+ };
655
+ CodeBuild.prototype.updateReportGroup = function (args, optionsOrCb, cb) {
656
+ var command = new UpdateReportGroupCommand(args);
652
657
  if (typeof optionsOrCb === "function") {
653
658
  this.send(command, optionsOrCb);
654
659
  }
655
660
  else if (typeof cb === "function") {
656
661
  if (typeof optionsOrCb !== "object")
657
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
662
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
658
663
  this.send(command, optionsOrCb || {}, cb);
659
664
  }
660
665
  else {
661
666
  return this.send(command, optionsOrCb);
662
667
  }
663
- }
664
- updateWebhook(args, optionsOrCb, cb) {
665
- const command = new UpdateWebhookCommand(args);
668
+ };
669
+ CodeBuild.prototype.updateWebhook = function (args, optionsOrCb, cb) {
670
+ var command = new UpdateWebhookCommand(args);
666
671
  if (typeof optionsOrCb === "function") {
667
672
  this.send(command, optionsOrCb);
668
673
  }
669
674
  else if (typeof cb === "function") {
670
675
  if (typeof optionsOrCb !== "object")
671
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
676
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
672
677
  this.send(command, optionsOrCb || {}, cb);
673
678
  }
674
679
  else {
675
680
  return this.send(command, optionsOrCb);
676
681
  }
677
- }
678
- }
682
+ };
683
+ return CodeBuild;
684
+ }(CodeBuildClient));
685
+ export { CodeBuild };