@aws-sdk/client-codebuild 3.495.0 → 3.496.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 (55) hide show
  1. package/README.md +40 -0
  2. package/dist-cjs/commands/BatchGetFleetsCommand.js +1 -0
  3. package/dist-cjs/commands/CreateFleetCommand.js +1 -0
  4. package/dist-cjs/commands/DeleteFleetCommand.js +1 -0
  5. package/dist-cjs/commands/ListFleetsCommand.js +1 -0
  6. package/dist-cjs/commands/UpdateFleetCommand.js +1 -0
  7. package/dist-cjs/index.js +445 -0
  8. package/dist-cjs/pagination/ListFleetsPaginator.js +1 -0
  9. package/dist-es/CodeBuild.js +10 -0
  10. package/dist-es/commands/BatchGetFleetsCommand.js +24 -0
  11. package/dist-es/commands/CreateFleetCommand.js +24 -0
  12. package/dist-es/commands/DeleteFleetCommand.js +24 -0
  13. package/dist-es/commands/ListFleetsCommand.js +25 -0
  14. package/dist-es/commands/UpdateFleetCommand.js +24 -0
  15. package/dist-es/commands/index.js +5 -0
  16. package/dist-es/models/models_0.js +28 -0
  17. package/dist-es/pagination/ListFleetsPaginator.js +4 -0
  18. package/dist-es/pagination/index.js +1 -0
  19. package/dist-es/protocols/Aws_json1_1.js +303 -0
  20. package/dist-types/CodeBuild.d.ts +35 -0
  21. package/dist-types/CodeBuildClient.d.ts +7 -2
  22. package/dist-types/commands/BatchGetBuildBatchesCommand.d.ts +3 -0
  23. package/dist-types/commands/BatchGetBuildsCommand.d.ts +3 -0
  24. package/dist-types/commands/BatchGetFleetsCommand.d.ts +99 -0
  25. package/dist-types/commands/BatchGetProjectsCommand.d.ts +3 -0
  26. package/dist-types/commands/CreateFleetCommand.d.ts +118 -0
  27. package/dist-types/commands/CreateProjectCommand.d.ts +6 -0
  28. package/dist-types/commands/DeleteFleetCommand.d.ts +59 -0
  29. package/dist-types/commands/ListFleetsCommand.d.ts +67 -0
  30. package/dist-types/commands/RetryBuildBatchCommand.d.ts +3 -0
  31. package/dist-types/commands/RetryBuildCommand.d.ts +3 -0
  32. package/dist-types/commands/StartBuildBatchCommand.d.ts +3 -0
  33. package/dist-types/commands/StartBuildCommand.d.ts +6 -0
  34. package/dist-types/commands/StopBuildBatchCommand.d.ts +3 -0
  35. package/dist-types/commands/StopBuildCommand.d.ts +3 -0
  36. package/dist-types/commands/UpdateFleetCommand.d.ts +117 -0
  37. package/dist-types/commands/UpdateProjectCommand.d.ts +6 -0
  38. package/dist-types/commands/index.d.ts +5 -0
  39. package/dist-types/models/models_0.d.ts +843 -57
  40. package/dist-types/pagination/ListFleetsPaginator.d.ts +7 -0
  41. package/dist-types/pagination/index.d.ts +1 -0
  42. package/dist-types/protocols/Aws_json1_1.d.ts +45 -0
  43. package/dist-types/ts3.4/CodeBuild.d.ts +85 -0
  44. package/dist-types/ts3.4/CodeBuildClient.d.ts +30 -0
  45. package/dist-types/ts3.4/commands/BatchGetFleetsCommand.d.ts +26 -0
  46. package/dist-types/ts3.4/commands/CreateFleetCommand.d.ts +26 -0
  47. package/dist-types/ts3.4/commands/DeleteFleetCommand.d.ts +26 -0
  48. package/dist-types/ts3.4/commands/ListFleetsCommand.d.ts +26 -0
  49. package/dist-types/ts3.4/commands/UpdateFleetCommand.d.ts +26 -0
  50. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  51. package/dist-types/ts3.4/models/models_0.d.ts +129 -11
  52. package/dist-types/ts3.4/pagination/ListFleetsPaginator.d.ts +11 -0
  53. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  54. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +60 -0
  55. package/package.json +39 -39
@@ -20,6 +20,12 @@ export const se_BatchGetBuildsCommand = async (input, context) => {
20
20
  body = JSON.stringify(_json(input));
21
21
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
22
22
  };
23
+ export const se_BatchGetFleetsCommand = async (input, context) => {
24
+ const headers = sharedHeaders("BatchGetFleets");
25
+ let body;
26
+ body = JSON.stringify(_json(input));
27
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
28
+ };
23
29
  export const se_BatchGetProjectsCommand = async (input, context) => {
24
30
  const headers = sharedHeaders("BatchGetProjects");
25
31
  let body;
@@ -38,6 +44,12 @@ export const se_BatchGetReportsCommand = async (input, context) => {
38
44
  body = JSON.stringify(_json(input));
39
45
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
40
46
  };
47
+ export const se_CreateFleetCommand = async (input, context) => {
48
+ const headers = sharedHeaders("CreateFleet");
49
+ let body;
50
+ body = JSON.stringify(se_CreateFleetInput(input, context));
51
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
52
+ };
41
53
  export const se_CreateProjectCommand = async (input, context) => {
42
54
  const headers = sharedHeaders("CreateProject");
43
55
  let body;
@@ -62,6 +74,12 @@ export const se_DeleteBuildBatchCommand = async (input, context) => {
62
74
  body = JSON.stringify(_json(input));
63
75
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
64
76
  };
77
+ export const se_DeleteFleetCommand = async (input, context) => {
78
+ const headers = sharedHeaders("DeleteFleet");
79
+ let body;
80
+ body = JSON.stringify(_json(input));
81
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
82
+ };
65
83
  export const se_DeleteProjectCommand = async (input, context) => {
66
84
  const headers = sharedHeaders("DeleteProject");
67
85
  let body;
@@ -164,6 +182,12 @@ export const se_ListCuratedEnvironmentImagesCommand = async (input, context) =>
164
182
  body = JSON.stringify(_json(input));
165
183
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
166
184
  };
185
+ export const se_ListFleetsCommand = async (input, context) => {
186
+ const headers = sharedHeaders("ListFleets");
187
+ let body;
188
+ body = JSON.stringify(_json(input));
189
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
190
+ };
167
191
  export const se_ListProjectsCommand = async (input, context) => {
168
192
  const headers = sharedHeaders("ListProjects");
169
193
  let body;
@@ -248,6 +272,12 @@ export const se_StopBuildBatchCommand = async (input, context) => {
248
272
  body = JSON.stringify(_json(input));
249
273
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
250
274
  };
275
+ export const se_UpdateFleetCommand = async (input, context) => {
276
+ const headers = sharedHeaders("UpdateFleet");
277
+ let body;
278
+ body = JSON.stringify(se_UpdateFleetInput(input, context));
279
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
280
+ };
251
281
  export const se_UpdateProjectCommand = async (input, context) => {
252
282
  const headers = sharedHeaders("UpdateProject");
253
283
  let body;
@@ -368,6 +398,38 @@ const de_BatchGetBuildsCommandError = async (output, context) => {
368
398
  });
369
399
  }
370
400
  };
401
+ export const de_BatchGetFleetsCommand = async (output, context) => {
402
+ if (output.statusCode >= 300) {
403
+ return de_BatchGetFleetsCommandError(output, context);
404
+ }
405
+ const data = await parseBody(output.body, context);
406
+ let contents = {};
407
+ contents = de_BatchGetFleetsOutput(data, context);
408
+ const response = {
409
+ $metadata: deserializeMetadata(output),
410
+ ...contents,
411
+ };
412
+ return response;
413
+ };
414
+ const de_BatchGetFleetsCommandError = async (output, context) => {
415
+ const parsedOutput = {
416
+ ...output,
417
+ body: await parseErrorBody(output.body, context),
418
+ };
419
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
420
+ switch (errorCode) {
421
+ case "InvalidInputException":
422
+ case "com.amazonaws.codebuild#InvalidInputException":
423
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
424
+ default:
425
+ const parsedBody = parsedOutput.body;
426
+ return throwDefaultError({
427
+ output,
428
+ parsedBody,
429
+ errorCode,
430
+ });
431
+ }
432
+ };
371
433
  export const de_BatchGetProjectsCommand = async (output, context) => {
372
434
  if (output.statusCode >= 300) {
373
435
  return de_BatchGetProjectsCommandError(output, context);
@@ -464,6 +526,44 @@ const de_BatchGetReportsCommandError = async (output, context) => {
464
526
  });
465
527
  }
466
528
  };
529
+ export const de_CreateFleetCommand = async (output, context) => {
530
+ if (output.statusCode >= 300) {
531
+ return de_CreateFleetCommandError(output, context);
532
+ }
533
+ const data = await parseBody(output.body, context);
534
+ let contents = {};
535
+ contents = de_CreateFleetOutput(data, context);
536
+ const response = {
537
+ $metadata: deserializeMetadata(output),
538
+ ...contents,
539
+ };
540
+ return response;
541
+ };
542
+ const de_CreateFleetCommandError = async (output, context) => {
543
+ const parsedOutput = {
544
+ ...output,
545
+ body: await parseErrorBody(output.body, context),
546
+ };
547
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
548
+ switch (errorCode) {
549
+ case "AccountLimitExceededException":
550
+ case "com.amazonaws.codebuild#AccountLimitExceededException":
551
+ throw await de_AccountLimitExceededExceptionRes(parsedOutput, context);
552
+ case "InvalidInputException":
553
+ case "com.amazonaws.codebuild#InvalidInputException":
554
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
555
+ case "ResourceAlreadyExistsException":
556
+ case "com.amazonaws.codebuild#ResourceAlreadyExistsException":
557
+ throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
558
+ default:
559
+ const parsedBody = parsedOutput.body;
560
+ return throwDefaultError({
561
+ output,
562
+ parsedBody,
563
+ errorCode,
564
+ });
565
+ }
566
+ };
467
567
  export const de_CreateProjectCommand = async (output, context) => {
468
568
  if (output.statusCode >= 300) {
469
569
  return de_CreateProjectCommandError(output, context);
@@ -613,6 +713,38 @@ const de_DeleteBuildBatchCommandError = async (output, context) => {
613
713
  });
614
714
  }
615
715
  };
716
+ export const de_DeleteFleetCommand = async (output, context) => {
717
+ if (output.statusCode >= 300) {
718
+ return de_DeleteFleetCommandError(output, context);
719
+ }
720
+ const data = await parseBody(output.body, context);
721
+ let contents = {};
722
+ contents = _json(data);
723
+ const response = {
724
+ $metadata: deserializeMetadata(output),
725
+ ...contents,
726
+ };
727
+ return response;
728
+ };
729
+ const de_DeleteFleetCommandError = async (output, context) => {
730
+ const parsedOutput = {
731
+ ...output,
732
+ body: await parseErrorBody(output.body, context),
733
+ };
734
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
735
+ switch (errorCode) {
736
+ case "InvalidInputException":
737
+ case "com.amazonaws.codebuild#InvalidInputException":
738
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
739
+ default:
740
+ const parsedBody = parsedOutput.body;
741
+ return throwDefaultError({
742
+ output,
743
+ parsedBody,
744
+ errorCode,
745
+ });
746
+ }
747
+ };
616
748
  export const de_DeleteProjectCommand = async (output, context) => {
617
749
  if (output.statusCode >= 300) {
618
750
  return de_DeleteProjectCommandError(output, context);
@@ -1184,6 +1316,38 @@ const de_ListCuratedEnvironmentImagesCommandError = async (output, context) => {
1184
1316
  errorCode,
1185
1317
  });
1186
1318
  };
1319
+ export const de_ListFleetsCommand = async (output, context) => {
1320
+ if (output.statusCode >= 300) {
1321
+ return de_ListFleetsCommandError(output, context);
1322
+ }
1323
+ const data = await parseBody(output.body, context);
1324
+ let contents = {};
1325
+ contents = _json(data);
1326
+ const response = {
1327
+ $metadata: deserializeMetadata(output),
1328
+ ...contents,
1329
+ };
1330
+ return response;
1331
+ };
1332
+ const de_ListFleetsCommandError = async (output, context) => {
1333
+ const parsedOutput = {
1334
+ ...output,
1335
+ body: await parseErrorBody(output.body, context),
1336
+ };
1337
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1338
+ switch (errorCode) {
1339
+ case "InvalidInputException":
1340
+ case "com.amazonaws.codebuild#InvalidInputException":
1341
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
1342
+ default:
1343
+ const parsedBody = parsedOutput.body;
1344
+ return throwDefaultError({
1345
+ output,
1346
+ parsedBody,
1347
+ errorCode,
1348
+ });
1349
+ }
1350
+ };
1187
1351
  export const de_ListProjectsCommand = async (output, context) => {
1188
1352
  if (output.statusCode >= 300) {
1189
1353
  return de_ListProjectsCommandError(output, context);
@@ -1662,6 +1826,44 @@ const de_StopBuildBatchCommandError = async (output, context) => {
1662
1826
  });
1663
1827
  }
1664
1828
  };
1829
+ export const de_UpdateFleetCommand = async (output, context) => {
1830
+ if (output.statusCode >= 300) {
1831
+ return de_UpdateFleetCommandError(output, context);
1832
+ }
1833
+ const data = await parseBody(output.body, context);
1834
+ let contents = {};
1835
+ contents = de_UpdateFleetOutput(data, context);
1836
+ const response = {
1837
+ $metadata: deserializeMetadata(output),
1838
+ ...contents,
1839
+ };
1840
+ return response;
1841
+ };
1842
+ const de_UpdateFleetCommandError = async (output, context) => {
1843
+ const parsedOutput = {
1844
+ ...output,
1845
+ body: await parseErrorBody(output.body, context),
1846
+ };
1847
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1848
+ switch (errorCode) {
1849
+ case "AccountLimitExceededException":
1850
+ case "com.amazonaws.codebuild#AccountLimitExceededException":
1851
+ throw await de_AccountLimitExceededExceptionRes(parsedOutput, context);
1852
+ case "InvalidInputException":
1853
+ case "com.amazonaws.codebuild#InvalidInputException":
1854
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
1855
+ case "ResourceNotFoundException":
1856
+ case "com.amazonaws.codebuild#ResourceNotFoundException":
1857
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1858
+ default:
1859
+ const parsedBody = parsedOutput.body;
1860
+ return throwDefaultError({
1861
+ output,
1862
+ parsedBody,
1863
+ errorCode,
1864
+ });
1865
+ }
1866
+ };
1665
1867
  export const de_UpdateProjectCommand = async (output, context) => {
1666
1868
  if (output.statusCode >= 300) {
1667
1869
  return de_UpdateProjectCommandError(output, context);
@@ -1850,6 +2052,16 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1850
2052
  });
1851
2053
  return __decorateServiceException(exception, body);
1852
2054
  };
2055
+ const se_CreateFleetInput = (input, context) => {
2056
+ return take(input, {
2057
+ baseCapacity: [],
2058
+ computeType: [],
2059
+ environmentType: [],
2060
+ name: [],
2061
+ scalingConfiguration: (_) => se_ScalingConfigurationInput(_, context),
2062
+ tags: _json,
2063
+ });
2064
+ };
1853
2065
  const se_DescribeCodeCoveragesInput = (input, context) => {
1854
2066
  return take(input, {
1855
2067
  maxLineCoveragePercentage: __serializeFloat,
@@ -1861,6 +2073,36 @@ const se_DescribeCodeCoveragesInput = (input, context) => {
1861
2073
  sortOrder: [],
1862
2074
  });
1863
2075
  };
2076
+ const se_ScalingConfigurationInput = (input, context) => {
2077
+ return take(input, {
2078
+ maxCapacity: [],
2079
+ scalingType: [],
2080
+ targetTrackingScalingConfigs: (_) => se_TargetTrackingScalingConfigurations(_, context),
2081
+ });
2082
+ };
2083
+ const se_TargetTrackingScalingConfiguration = (input, context) => {
2084
+ return take(input, {
2085
+ metricType: [],
2086
+ targetValue: __serializeFloat,
2087
+ });
2088
+ };
2089
+ const se_TargetTrackingScalingConfigurations = (input, context) => {
2090
+ return input
2091
+ .filter((e) => e != null)
2092
+ .map((entry) => {
2093
+ return se_TargetTrackingScalingConfiguration(entry, context);
2094
+ });
2095
+ };
2096
+ const se_UpdateFleetInput = (input, context) => {
2097
+ return take(input, {
2098
+ arn: [],
2099
+ baseCapacity: [],
2100
+ computeType: [],
2101
+ environmentType: [],
2102
+ scalingConfiguration: (_) => se_ScalingConfigurationInput(_, context),
2103
+ tags: _json,
2104
+ });
2105
+ };
1864
2106
  const de_BatchGetBuildBatchesOutput = (output, context) => {
1865
2107
  return take(output, {
1866
2108
  buildBatches: (_) => de_BuildBatches(_, context),
@@ -1873,6 +2115,12 @@ const de_BatchGetBuildsOutput = (output, context) => {
1873
2115
  buildsNotFound: _json,
1874
2116
  });
1875
2117
  };
2118
+ const de_BatchGetFleetsOutput = (output, context) => {
2119
+ return take(output, {
2120
+ fleets: (_) => de_Fleets(_, context),
2121
+ fleetsNotFound: _json,
2122
+ });
2123
+ };
1876
2124
  const de_BatchGetProjectsOutput = (output, context) => {
1877
2125
  return take(output, {
1878
2126
  projects: (_) => de_Projects(_, context),
@@ -2079,6 +2327,11 @@ const de_CodeCoverages = (output, context) => {
2079
2327
  });
2080
2328
  return retVal;
2081
2329
  };
2330
+ const de_CreateFleetOutput = (output, context) => {
2331
+ return take(output, {
2332
+ fleet: (_) => de_Fleet(_, context),
2333
+ });
2334
+ };
2082
2335
  const de_CreateProjectOutput = (output, context) => {
2083
2336
  return take(output, {
2084
2337
  project: (_) => de_Project(_, context),
@@ -2106,6 +2359,29 @@ const de_DescribeTestCasesOutput = (output, context) => {
2106
2359
  testCases: (_) => de_TestCases(_, context),
2107
2360
  });
2108
2361
  };
2362
+ const de_Fleet = (output, context) => {
2363
+ return take(output, {
2364
+ arn: __expectString,
2365
+ baseCapacity: __expectInt32,
2366
+ computeType: __expectString,
2367
+ created: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2368
+ environmentType: __expectString,
2369
+ id: __expectString,
2370
+ lastModified: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2371
+ name: __expectString,
2372
+ scalingConfiguration: (_) => de_ScalingConfigurationOutput(_, context),
2373
+ status: _json,
2374
+ tags: _json,
2375
+ });
2376
+ };
2377
+ const de_Fleets = (output, context) => {
2378
+ const retVal = (output || [])
2379
+ .filter((e) => e != null)
2380
+ .map((entry) => {
2381
+ return de_Fleet(entry, context);
2382
+ });
2383
+ return retVal;
2384
+ };
2109
2385
  const de_Project = (output, context) => {
2110
2386
  return take(output, {
2111
2387
  arn: __expectString,
@@ -2200,6 +2476,14 @@ const de_RetryBuildOutput = (output, context) => {
2200
2476
  build: (_) => de_Build(_, context),
2201
2477
  });
2202
2478
  };
2479
+ const de_ScalingConfigurationOutput = (output, context) => {
2480
+ return take(output, {
2481
+ desiredCapacity: __expectInt32,
2482
+ maxCapacity: __expectInt32,
2483
+ scalingType: __expectString,
2484
+ targetTrackingScalingConfigs: (_) => de_TargetTrackingScalingConfigurations(_, context),
2485
+ });
2486
+ };
2203
2487
  const de_StartBuildBatchOutput = (output, context) => {
2204
2488
  return take(output, {
2205
2489
  buildBatch: (_) => de_BuildBatch(_, context),
@@ -2220,6 +2504,20 @@ const de_StopBuildOutput = (output, context) => {
2220
2504
  build: (_) => de_Build(_, context),
2221
2505
  });
2222
2506
  };
2507
+ const de_TargetTrackingScalingConfiguration = (output, context) => {
2508
+ return take(output, {
2509
+ metricType: __expectString,
2510
+ targetValue: __limitedParseDouble,
2511
+ });
2512
+ };
2513
+ const de_TargetTrackingScalingConfigurations = (output, context) => {
2514
+ const retVal = (output || [])
2515
+ .filter((e) => e != null)
2516
+ .map((entry) => {
2517
+ return de_TargetTrackingScalingConfiguration(entry, context);
2518
+ });
2519
+ return retVal;
2520
+ };
2223
2521
  const de_TestCase = (output, context) => {
2224
2522
  return take(output, {
2225
2523
  durationInNanoSeconds: __expectLong,
@@ -2240,6 +2538,11 @@ const de_TestCases = (output, context) => {
2240
2538
  });
2241
2539
  return retVal;
2242
2540
  };
2541
+ const de_UpdateFleetOutput = (output, context) => {
2542
+ return take(output, {
2543
+ fleet: (_) => de_Fleet(_, context),
2544
+ });
2545
+ };
2243
2546
  const de_UpdateProjectOutput = (output, context) => {
2244
2547
  return take(output, {
2245
2548
  project: (_) => de_Project(_, context),
@@ -3,13 +3,16 @@ import { CodeBuildClient } from "./CodeBuildClient";
3
3
  import { BatchDeleteBuildsCommandInput, BatchDeleteBuildsCommandOutput } from "./commands/BatchDeleteBuildsCommand";
4
4
  import { BatchGetBuildBatchesCommandInput, BatchGetBuildBatchesCommandOutput } from "./commands/BatchGetBuildBatchesCommand";
5
5
  import { BatchGetBuildsCommandInput, BatchGetBuildsCommandOutput } from "./commands/BatchGetBuildsCommand";
6
+ import { BatchGetFleetsCommandInput, BatchGetFleetsCommandOutput } from "./commands/BatchGetFleetsCommand";
6
7
  import { BatchGetProjectsCommandInput, BatchGetProjectsCommandOutput } from "./commands/BatchGetProjectsCommand";
7
8
  import { BatchGetReportGroupsCommandInput, BatchGetReportGroupsCommandOutput } from "./commands/BatchGetReportGroupsCommand";
8
9
  import { BatchGetReportsCommandInput, BatchGetReportsCommandOutput } from "./commands/BatchGetReportsCommand";
10
+ import { CreateFleetCommandInput, CreateFleetCommandOutput } from "./commands/CreateFleetCommand";
9
11
  import { CreateProjectCommandInput, CreateProjectCommandOutput } from "./commands/CreateProjectCommand";
10
12
  import { CreateReportGroupCommandInput, CreateReportGroupCommandOutput } from "./commands/CreateReportGroupCommand";
11
13
  import { CreateWebhookCommandInput, CreateWebhookCommandOutput } from "./commands/CreateWebhookCommand";
12
14
  import { DeleteBuildBatchCommandInput, DeleteBuildBatchCommandOutput } from "./commands/DeleteBuildBatchCommand";
15
+ import { DeleteFleetCommandInput, DeleteFleetCommandOutput } from "./commands/DeleteFleetCommand";
13
16
  import { DeleteProjectCommandInput, DeleteProjectCommandOutput } from "./commands/DeleteProjectCommand";
14
17
  import { DeleteReportCommandInput, DeleteReportCommandOutput } from "./commands/DeleteReportCommand";
15
18
  import { DeleteReportGroupCommandInput, DeleteReportGroupCommandOutput } from "./commands/DeleteReportGroupCommand";
@@ -27,6 +30,7 @@ import { ListBuildBatchesForProjectCommandInput, ListBuildBatchesForProjectComma
27
30
  import { ListBuildsCommandInput, ListBuildsCommandOutput } from "./commands/ListBuildsCommand";
28
31
  import { ListBuildsForProjectCommandInput, ListBuildsForProjectCommandOutput } from "./commands/ListBuildsForProjectCommand";
29
32
  import { ListCuratedEnvironmentImagesCommandInput, ListCuratedEnvironmentImagesCommandOutput } from "./commands/ListCuratedEnvironmentImagesCommand";
33
+ import { ListFleetsCommandInput, ListFleetsCommandOutput } from "./commands/ListFleetsCommand";
30
34
  import { ListProjectsCommandInput, ListProjectsCommandOutput } from "./commands/ListProjectsCommand";
31
35
  import { ListReportGroupsCommandInput, ListReportGroupsCommandOutput } from "./commands/ListReportGroupsCommand";
32
36
  import { ListReportsCommandInput, ListReportsCommandOutput } from "./commands/ListReportsCommand";
@@ -41,6 +45,7 @@ import { StartBuildBatchCommandInput, StartBuildBatchCommandOutput } from "./com
41
45
  import { StartBuildCommandInput, StartBuildCommandOutput } from "./commands/StartBuildCommand";
42
46
  import { StopBuildBatchCommandInput, StopBuildBatchCommandOutput } from "./commands/StopBuildBatchCommand";
43
47
  import { StopBuildCommandInput, StopBuildCommandOutput } from "./commands/StopBuildCommand";
48
+ import { UpdateFleetCommandInput, UpdateFleetCommandOutput } from "./commands/UpdateFleetCommand";
44
49
  import { UpdateProjectCommandInput, UpdateProjectCommandOutput } from "./commands/UpdateProjectCommand";
45
50
  import { UpdateProjectVisibilityCommandInput, UpdateProjectVisibilityCommandOutput } from "./commands/UpdateProjectVisibilityCommand";
46
51
  import { UpdateReportGroupCommandInput, UpdateReportGroupCommandOutput } from "./commands/UpdateReportGroupCommand";
@@ -64,6 +69,12 @@ export interface CodeBuild {
64
69
  batchGetBuilds(args: BatchGetBuildsCommandInput, options?: __HttpHandlerOptions): Promise<BatchGetBuildsCommandOutput>;
65
70
  batchGetBuilds(args: BatchGetBuildsCommandInput, cb: (err: any, data?: BatchGetBuildsCommandOutput) => void): void;
66
71
  batchGetBuilds(args: BatchGetBuildsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchGetBuildsCommandOutput) => void): void;
72
+ /**
73
+ * @see {@link BatchGetFleetsCommand}
74
+ */
75
+ batchGetFleets(args: BatchGetFleetsCommandInput, options?: __HttpHandlerOptions): Promise<BatchGetFleetsCommandOutput>;
76
+ batchGetFleets(args: BatchGetFleetsCommandInput, cb: (err: any, data?: BatchGetFleetsCommandOutput) => void): void;
77
+ batchGetFleets(args: BatchGetFleetsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchGetFleetsCommandOutput) => void): void;
67
78
  /**
68
79
  * @see {@link BatchGetProjectsCommand}
69
80
  */
@@ -82,6 +93,12 @@ export interface CodeBuild {
82
93
  batchGetReports(args: BatchGetReportsCommandInput, options?: __HttpHandlerOptions): Promise<BatchGetReportsCommandOutput>;
83
94
  batchGetReports(args: BatchGetReportsCommandInput, cb: (err: any, data?: BatchGetReportsCommandOutput) => void): void;
84
95
  batchGetReports(args: BatchGetReportsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchGetReportsCommandOutput) => void): void;
96
+ /**
97
+ * @see {@link CreateFleetCommand}
98
+ */
99
+ createFleet(args: CreateFleetCommandInput, options?: __HttpHandlerOptions): Promise<CreateFleetCommandOutput>;
100
+ createFleet(args: CreateFleetCommandInput, cb: (err: any, data?: CreateFleetCommandOutput) => void): void;
101
+ createFleet(args: CreateFleetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateFleetCommandOutput) => void): void;
85
102
  /**
86
103
  * @see {@link CreateProjectCommand}
87
104
  */
@@ -106,6 +123,12 @@ export interface CodeBuild {
106
123
  deleteBuildBatch(args: DeleteBuildBatchCommandInput, options?: __HttpHandlerOptions): Promise<DeleteBuildBatchCommandOutput>;
107
124
  deleteBuildBatch(args: DeleteBuildBatchCommandInput, cb: (err: any, data?: DeleteBuildBatchCommandOutput) => void): void;
108
125
  deleteBuildBatch(args: DeleteBuildBatchCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteBuildBatchCommandOutput) => void): void;
126
+ /**
127
+ * @see {@link DeleteFleetCommand}
128
+ */
129
+ deleteFleet(args: DeleteFleetCommandInput, options?: __HttpHandlerOptions): Promise<DeleteFleetCommandOutput>;
130
+ deleteFleet(args: DeleteFleetCommandInput, cb: (err: any, data?: DeleteFleetCommandOutput) => void): void;
131
+ deleteFleet(args: DeleteFleetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteFleetCommandOutput) => void): void;
109
132
  /**
110
133
  * @see {@link DeleteProjectCommand}
111
134
  */
@@ -208,6 +231,12 @@ export interface CodeBuild {
208
231
  listCuratedEnvironmentImages(args: ListCuratedEnvironmentImagesCommandInput, options?: __HttpHandlerOptions): Promise<ListCuratedEnvironmentImagesCommandOutput>;
209
232
  listCuratedEnvironmentImages(args: ListCuratedEnvironmentImagesCommandInput, cb: (err: any, data?: ListCuratedEnvironmentImagesCommandOutput) => void): void;
210
233
  listCuratedEnvironmentImages(args: ListCuratedEnvironmentImagesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListCuratedEnvironmentImagesCommandOutput) => void): void;
234
+ /**
235
+ * @see {@link ListFleetsCommand}
236
+ */
237
+ listFleets(args: ListFleetsCommandInput, options?: __HttpHandlerOptions): Promise<ListFleetsCommandOutput>;
238
+ listFleets(args: ListFleetsCommandInput, cb: (err: any, data?: ListFleetsCommandOutput) => void): void;
239
+ listFleets(args: ListFleetsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListFleetsCommandOutput) => void): void;
211
240
  /**
212
241
  * @see {@link ListProjectsCommand}
213
242
  */
@@ -292,6 +321,12 @@ export interface CodeBuild {
292
321
  stopBuildBatch(args: StopBuildBatchCommandInput, options?: __HttpHandlerOptions): Promise<StopBuildBatchCommandOutput>;
293
322
  stopBuildBatch(args: StopBuildBatchCommandInput, cb: (err: any, data?: StopBuildBatchCommandOutput) => void): void;
294
323
  stopBuildBatch(args: StopBuildBatchCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StopBuildBatchCommandOutput) => void): void;
324
+ /**
325
+ * @see {@link UpdateFleetCommand}
326
+ */
327
+ updateFleet(args: UpdateFleetCommandInput, options?: __HttpHandlerOptions): Promise<UpdateFleetCommandOutput>;
328
+ updateFleet(args: UpdateFleetCommandInput, cb: (err: any, data?: UpdateFleetCommandOutput) => void): void;
329
+ updateFleet(args: UpdateFleetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateFleetCommandOutput) => void): void;
295
330
  /**
296
331
  * @see {@link UpdateProjectCommand}
297
332
  */
@@ -11,13 +11,16 @@ import { BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConf
11
11
  import { BatchDeleteBuildsCommandInput, BatchDeleteBuildsCommandOutput } from "./commands/BatchDeleteBuildsCommand";
12
12
  import { BatchGetBuildBatchesCommandInput, BatchGetBuildBatchesCommandOutput } from "./commands/BatchGetBuildBatchesCommand";
13
13
  import { BatchGetBuildsCommandInput, BatchGetBuildsCommandOutput } from "./commands/BatchGetBuildsCommand";
14
+ import { BatchGetFleetsCommandInput, BatchGetFleetsCommandOutput } from "./commands/BatchGetFleetsCommand";
14
15
  import { BatchGetProjectsCommandInput, BatchGetProjectsCommandOutput } from "./commands/BatchGetProjectsCommand";
15
16
  import { BatchGetReportGroupsCommandInput, BatchGetReportGroupsCommandOutput } from "./commands/BatchGetReportGroupsCommand";
16
17
  import { BatchGetReportsCommandInput, BatchGetReportsCommandOutput } from "./commands/BatchGetReportsCommand";
18
+ import { CreateFleetCommandInput, CreateFleetCommandOutput } from "./commands/CreateFleetCommand";
17
19
  import { CreateProjectCommandInput, CreateProjectCommandOutput } from "./commands/CreateProjectCommand";
18
20
  import { CreateReportGroupCommandInput, CreateReportGroupCommandOutput } from "./commands/CreateReportGroupCommand";
19
21
  import { CreateWebhookCommandInput, CreateWebhookCommandOutput } from "./commands/CreateWebhookCommand";
20
22
  import { DeleteBuildBatchCommandInput, DeleteBuildBatchCommandOutput } from "./commands/DeleteBuildBatchCommand";
23
+ import { DeleteFleetCommandInput, DeleteFleetCommandOutput } from "./commands/DeleteFleetCommand";
21
24
  import { DeleteProjectCommandInput, DeleteProjectCommandOutput } from "./commands/DeleteProjectCommand";
22
25
  import { DeleteReportCommandInput, DeleteReportCommandOutput } from "./commands/DeleteReportCommand";
23
26
  import { DeleteReportGroupCommandInput, DeleteReportGroupCommandOutput } from "./commands/DeleteReportGroupCommand";
@@ -35,6 +38,7 @@ import { ListBuildBatchesForProjectCommandInput, ListBuildBatchesForProjectComma
35
38
  import { ListBuildsCommandInput, ListBuildsCommandOutput } from "./commands/ListBuildsCommand";
36
39
  import { ListBuildsForProjectCommandInput, ListBuildsForProjectCommandOutput } from "./commands/ListBuildsForProjectCommand";
37
40
  import { ListCuratedEnvironmentImagesCommandInput, ListCuratedEnvironmentImagesCommandOutput } from "./commands/ListCuratedEnvironmentImagesCommand";
41
+ import { ListFleetsCommandInput, ListFleetsCommandOutput } from "./commands/ListFleetsCommand";
38
42
  import { ListProjectsCommandInput, ListProjectsCommandOutput } from "./commands/ListProjectsCommand";
39
43
  import { ListReportGroupsCommandInput, ListReportGroupsCommandOutput } from "./commands/ListReportGroupsCommand";
40
44
  import { ListReportsCommandInput, ListReportsCommandOutput } from "./commands/ListReportsCommand";
@@ -49,6 +53,7 @@ import { StartBuildBatchCommandInput, StartBuildBatchCommandOutput } from "./com
49
53
  import { StartBuildCommandInput, StartBuildCommandOutput } from "./commands/StartBuildCommand";
50
54
  import { StopBuildBatchCommandInput, StopBuildBatchCommandOutput } from "./commands/StopBuildBatchCommand";
51
55
  import { StopBuildCommandInput, StopBuildCommandOutput } from "./commands/StopBuildCommand";
56
+ import { UpdateFleetCommandInput, UpdateFleetCommandOutput } from "./commands/UpdateFleetCommand";
52
57
  import { UpdateProjectCommandInput, UpdateProjectCommandOutput } from "./commands/UpdateProjectCommand";
53
58
  import { UpdateProjectVisibilityCommandInput, UpdateProjectVisibilityCommandOutput } from "./commands/UpdateProjectVisibilityCommand";
54
59
  import { UpdateReportGroupCommandInput, UpdateReportGroupCommandOutput } from "./commands/UpdateReportGroupCommand";
@@ -59,11 +64,11 @@ export { __Client };
59
64
  /**
60
65
  * @public
61
66
  */
62
- export type ServiceInputTypes = BatchDeleteBuildsCommandInput | BatchGetBuildBatchesCommandInput | BatchGetBuildsCommandInput | BatchGetProjectsCommandInput | BatchGetReportGroupsCommandInput | BatchGetReportsCommandInput | CreateProjectCommandInput | CreateReportGroupCommandInput | CreateWebhookCommandInput | DeleteBuildBatchCommandInput | DeleteProjectCommandInput | DeleteReportCommandInput | DeleteReportGroupCommandInput | DeleteResourcePolicyCommandInput | DeleteSourceCredentialsCommandInput | DeleteWebhookCommandInput | DescribeCodeCoveragesCommandInput | DescribeTestCasesCommandInput | GetReportGroupTrendCommandInput | GetResourcePolicyCommandInput | ImportSourceCredentialsCommandInput | InvalidateProjectCacheCommandInput | ListBuildBatchesCommandInput | ListBuildBatchesForProjectCommandInput | ListBuildsCommandInput | ListBuildsForProjectCommandInput | ListCuratedEnvironmentImagesCommandInput | ListProjectsCommandInput | ListReportGroupsCommandInput | ListReportsCommandInput | ListReportsForReportGroupCommandInput | ListSharedProjectsCommandInput | ListSharedReportGroupsCommandInput | ListSourceCredentialsCommandInput | PutResourcePolicyCommandInput | RetryBuildBatchCommandInput | RetryBuildCommandInput | StartBuildBatchCommandInput | StartBuildCommandInput | StopBuildBatchCommandInput | StopBuildCommandInput | UpdateProjectCommandInput | UpdateProjectVisibilityCommandInput | UpdateReportGroupCommandInput | UpdateWebhookCommandInput;
67
+ export type ServiceInputTypes = BatchDeleteBuildsCommandInput | BatchGetBuildBatchesCommandInput | BatchGetBuildsCommandInput | BatchGetFleetsCommandInput | BatchGetProjectsCommandInput | BatchGetReportGroupsCommandInput | BatchGetReportsCommandInput | CreateFleetCommandInput | CreateProjectCommandInput | CreateReportGroupCommandInput | CreateWebhookCommandInput | DeleteBuildBatchCommandInput | DeleteFleetCommandInput | DeleteProjectCommandInput | DeleteReportCommandInput | DeleteReportGroupCommandInput | DeleteResourcePolicyCommandInput | DeleteSourceCredentialsCommandInput | DeleteWebhookCommandInput | DescribeCodeCoveragesCommandInput | DescribeTestCasesCommandInput | GetReportGroupTrendCommandInput | GetResourcePolicyCommandInput | ImportSourceCredentialsCommandInput | InvalidateProjectCacheCommandInput | ListBuildBatchesCommandInput | ListBuildBatchesForProjectCommandInput | ListBuildsCommandInput | ListBuildsForProjectCommandInput | ListCuratedEnvironmentImagesCommandInput | ListFleetsCommandInput | ListProjectsCommandInput | ListReportGroupsCommandInput | ListReportsCommandInput | ListReportsForReportGroupCommandInput | ListSharedProjectsCommandInput | ListSharedReportGroupsCommandInput | ListSourceCredentialsCommandInput | PutResourcePolicyCommandInput | RetryBuildBatchCommandInput | RetryBuildCommandInput | StartBuildBatchCommandInput | StartBuildCommandInput | StopBuildBatchCommandInput | StopBuildCommandInput | UpdateFleetCommandInput | UpdateProjectCommandInput | UpdateProjectVisibilityCommandInput | UpdateReportGroupCommandInput | UpdateWebhookCommandInput;
63
68
  /**
64
69
  * @public
65
70
  */
66
- export type ServiceOutputTypes = BatchDeleteBuildsCommandOutput | BatchGetBuildBatchesCommandOutput | BatchGetBuildsCommandOutput | BatchGetProjectsCommandOutput | BatchGetReportGroupsCommandOutput | BatchGetReportsCommandOutput | CreateProjectCommandOutput | CreateReportGroupCommandOutput | CreateWebhookCommandOutput | DeleteBuildBatchCommandOutput | DeleteProjectCommandOutput | DeleteReportCommandOutput | DeleteReportGroupCommandOutput | DeleteResourcePolicyCommandOutput | DeleteSourceCredentialsCommandOutput | DeleteWebhookCommandOutput | DescribeCodeCoveragesCommandOutput | DescribeTestCasesCommandOutput | GetReportGroupTrendCommandOutput | GetResourcePolicyCommandOutput | ImportSourceCredentialsCommandOutput | InvalidateProjectCacheCommandOutput | ListBuildBatchesCommandOutput | ListBuildBatchesForProjectCommandOutput | ListBuildsCommandOutput | ListBuildsForProjectCommandOutput | ListCuratedEnvironmentImagesCommandOutput | ListProjectsCommandOutput | ListReportGroupsCommandOutput | ListReportsCommandOutput | ListReportsForReportGroupCommandOutput | ListSharedProjectsCommandOutput | ListSharedReportGroupsCommandOutput | ListSourceCredentialsCommandOutput | PutResourcePolicyCommandOutput | RetryBuildBatchCommandOutput | RetryBuildCommandOutput | StartBuildBatchCommandOutput | StartBuildCommandOutput | StopBuildBatchCommandOutput | StopBuildCommandOutput | UpdateProjectCommandOutput | UpdateProjectVisibilityCommandOutput | UpdateReportGroupCommandOutput | UpdateWebhookCommandOutput;
71
+ export type ServiceOutputTypes = BatchDeleteBuildsCommandOutput | BatchGetBuildBatchesCommandOutput | BatchGetBuildsCommandOutput | BatchGetFleetsCommandOutput | BatchGetProjectsCommandOutput | BatchGetReportGroupsCommandOutput | BatchGetReportsCommandOutput | CreateFleetCommandOutput | CreateProjectCommandOutput | CreateReportGroupCommandOutput | CreateWebhookCommandOutput | DeleteBuildBatchCommandOutput | DeleteFleetCommandOutput | DeleteProjectCommandOutput | DeleteReportCommandOutput | DeleteReportGroupCommandOutput | DeleteResourcePolicyCommandOutput | DeleteSourceCredentialsCommandOutput | DeleteWebhookCommandOutput | DescribeCodeCoveragesCommandOutput | DescribeTestCasesCommandOutput | GetReportGroupTrendCommandOutput | GetResourcePolicyCommandOutput | ImportSourceCredentialsCommandOutput | InvalidateProjectCacheCommandOutput | ListBuildBatchesCommandOutput | ListBuildBatchesForProjectCommandOutput | ListBuildsCommandOutput | ListBuildsForProjectCommandOutput | ListCuratedEnvironmentImagesCommandOutput | ListFleetsCommandOutput | ListProjectsCommandOutput | ListReportGroupsCommandOutput | ListReportsCommandOutput | ListReportsForReportGroupCommandOutput | ListSharedProjectsCommandOutput | ListSharedReportGroupsCommandOutput | ListSourceCredentialsCommandOutput | PutResourcePolicyCommandOutput | RetryBuildBatchCommandOutput | RetryBuildCommandOutput | StartBuildBatchCommandOutput | StartBuildCommandOutput | StopBuildBatchCommandOutput | StopBuildCommandOutput | UpdateFleetCommandOutput | UpdateProjectCommandOutput | UpdateProjectVisibilityCommandOutput | UpdateReportGroupCommandOutput | UpdateWebhookCommandOutput;
67
72
  /**
68
73
  * @public
69
74
  */
@@ -146,6 +146,9 @@ declare const BatchGetBuildBatchesCommand_base: {
146
146
  * // type: "WINDOWS_CONTAINER" || "LINUX_CONTAINER" || "LINUX_GPU_CONTAINER" || "ARM_CONTAINER" || "WINDOWS_SERVER_2019_CONTAINER" || "LINUX_LAMBDA_CONTAINER" || "ARM_LAMBDA_CONTAINER", // required
147
147
  * // image: "STRING_VALUE", // required
148
148
  * // computeType: "BUILD_GENERAL1_SMALL" || "BUILD_GENERAL1_MEDIUM" || "BUILD_GENERAL1_LARGE" || "BUILD_GENERAL1_XLARGE" || "BUILD_GENERAL1_2XLARGE" || "BUILD_LAMBDA_1GB" || "BUILD_LAMBDA_2GB" || "BUILD_LAMBDA_4GB" || "BUILD_LAMBDA_8GB" || "BUILD_LAMBDA_10GB", // required
149
+ * // fleet: { // ProjectFleet
150
+ * // fleetArn: "STRING_VALUE",
151
+ * // },
149
152
  * // environmentVariables: [ // EnvironmentVariables
150
153
  * // { // EnvironmentVariable
151
154
  * // name: "STRING_VALUE", // required
@@ -147,6 +147,9 @@ declare const BatchGetBuildsCommand_base: {
147
147
  * // type: "WINDOWS_CONTAINER" || "LINUX_CONTAINER" || "LINUX_GPU_CONTAINER" || "ARM_CONTAINER" || "WINDOWS_SERVER_2019_CONTAINER" || "LINUX_LAMBDA_CONTAINER" || "ARM_LAMBDA_CONTAINER", // required
148
148
  * // image: "STRING_VALUE", // required
149
149
  * // computeType: "BUILD_GENERAL1_SMALL" || "BUILD_GENERAL1_MEDIUM" || "BUILD_GENERAL1_LARGE" || "BUILD_GENERAL1_XLARGE" || "BUILD_GENERAL1_2XLARGE" || "BUILD_LAMBDA_1GB" || "BUILD_LAMBDA_2GB" || "BUILD_LAMBDA_4GB" || "BUILD_LAMBDA_8GB" || "BUILD_LAMBDA_10GB", // required
150
+ * // fleet: { // ProjectFleet
151
+ * // fleetArn: "STRING_VALUE",
152
+ * // },
150
153
  * // environmentVariables: [ // EnvironmentVariables
151
154
  * // { // EnvironmentVariable
152
155
  * // name: "STRING_VALUE", // required