Skip to content

Commit c0c445d

Browse files
author
awstools
committed
feat(client-codebuild): Release CodeBuild Reserved Capacity feature
1 parent b02d4af commit c0c445d

25 files changed

+2930
-69
lines changed

clients/client-codebuild/README.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,14 @@ BatchGetBuilds
237237

238238
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/codebuild/command/BatchGetBuildsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codebuild/Interface/BatchGetBuildsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codebuild/Interface/BatchGetBuildsCommandOutput/)
239239

240+
</details>
241+
<details>
242+
<summary>
243+
BatchGetFleets
244+
</summary>
245+
246+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/codebuild/command/BatchGetFleetsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codebuild/Interface/BatchGetFleetsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codebuild/Interface/BatchGetFleetsCommandOutput/)
247+
240248
</details>
241249
<details>
242250
<summary>
@@ -261,6 +269,14 @@ BatchGetReports
261269

262270
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/codebuild/command/BatchGetReportsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codebuild/Interface/BatchGetReportsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codebuild/Interface/BatchGetReportsCommandOutput/)
263271

272+
</details>
273+
<details>
274+
<summary>
275+
CreateFleet
276+
</summary>
277+
278+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/codebuild/command/CreateFleetCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codebuild/Interface/CreateFleetCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codebuild/Interface/CreateFleetCommandOutput/)
279+
264280
</details>
265281
<details>
266282
<summary>
@@ -293,6 +309,14 @@ DeleteBuildBatch
293309

294310
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/codebuild/command/DeleteBuildBatchCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codebuild/Interface/DeleteBuildBatchCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codebuild/Interface/DeleteBuildBatchCommandOutput/)
295311

312+
</details>
313+
<details>
314+
<summary>
315+
DeleteFleet
316+
</summary>
317+
318+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/codebuild/command/DeleteFleetCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codebuild/Interface/DeleteFleetCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codebuild/Interface/DeleteFleetCommandOutput/)
319+
296320
</details>
297321
<details>
298322
<summary>
@@ -429,6 +453,14 @@ ListCuratedEnvironmentImages
429453

430454
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/codebuild/command/ListCuratedEnvironmentImagesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codebuild/Interface/ListCuratedEnvironmentImagesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codebuild/Interface/ListCuratedEnvironmentImagesCommandOutput/)
431455

456+
</details>
457+
<details>
458+
<summary>
459+
ListFleets
460+
</summary>
461+
462+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/codebuild/command/ListFleetsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codebuild/Interface/ListFleetsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codebuild/Interface/ListFleetsCommandOutput/)
463+
432464
</details>
433465
<details>
434466
<summary>
@@ -541,6 +573,14 @@ StopBuildBatch
541573

542574
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/codebuild/command/StopBuildBatchCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codebuild/Interface/StopBuildBatchCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codebuild/Interface/StopBuildBatchCommandOutput/)
543575

576+
</details>
577+
<details>
578+
<summary>
579+
UpdateFleet
580+
</summary>
581+
582+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/codebuild/command/UpdateFleetCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codebuild/Interface/UpdateFleetCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codebuild/Interface/UpdateFleetCommandOutput/)
583+
544584
</details>
545585
<details>
546586
<summary>

clients/client-codebuild/src/CodeBuild.ts

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ import {
1818
BatchGetBuildsCommandInput,
1919
BatchGetBuildsCommandOutput,
2020
} from "./commands/BatchGetBuildsCommand";
21+
import {
22+
BatchGetFleetsCommand,
23+
BatchGetFleetsCommandInput,
24+
BatchGetFleetsCommandOutput,
25+
} from "./commands/BatchGetFleetsCommand";
2126
import {
2227
BatchGetProjectsCommand,
2328
BatchGetProjectsCommandInput,
@@ -33,6 +38,7 @@ import {
3338
BatchGetReportsCommandInput,
3439
BatchGetReportsCommandOutput,
3540
} from "./commands/BatchGetReportsCommand";
41+
import { CreateFleetCommand, CreateFleetCommandInput, CreateFleetCommandOutput } from "./commands/CreateFleetCommand";
3642
import {
3743
CreateProjectCommand,
3844
CreateProjectCommandInput,
@@ -53,6 +59,7 @@ import {
5359
DeleteBuildBatchCommandInput,
5460
DeleteBuildBatchCommandOutput,
5561
} from "./commands/DeleteBuildBatchCommand";
62+
import { DeleteFleetCommand, DeleteFleetCommandInput, DeleteFleetCommandOutput } from "./commands/DeleteFleetCommand";
5663
import {
5764
DeleteProjectCommand,
5865
DeleteProjectCommandInput,
@@ -134,6 +141,7 @@ import {
134141
ListCuratedEnvironmentImagesCommandInput,
135142
ListCuratedEnvironmentImagesCommandOutput,
136143
} from "./commands/ListCuratedEnvironmentImagesCommand";
144+
import { ListFleetsCommand, ListFleetsCommandInput, ListFleetsCommandOutput } from "./commands/ListFleetsCommand";
137145
import {
138146
ListProjectsCommand,
139147
ListProjectsCommandInput,
@@ -188,6 +196,7 @@ import {
188196
StopBuildBatchCommandOutput,
189197
} from "./commands/StopBuildBatchCommand";
190198
import { StopBuildCommand, StopBuildCommandInput, StopBuildCommandOutput } from "./commands/StopBuildCommand";
199+
import { UpdateFleetCommand, UpdateFleetCommandInput, UpdateFleetCommandOutput } from "./commands/UpdateFleetCommand";
191200
import {
192201
UpdateProjectCommand,
193202
UpdateProjectCommandInput,
@@ -213,13 +222,16 @@ const commands = {
213222
BatchDeleteBuildsCommand,
214223
BatchGetBuildBatchesCommand,
215224
BatchGetBuildsCommand,
225+
BatchGetFleetsCommand,
216226
BatchGetProjectsCommand,
217227
BatchGetReportGroupsCommand,
218228
BatchGetReportsCommand,
229+
CreateFleetCommand,
219230
CreateProjectCommand,
220231
CreateReportGroupCommand,
221232
CreateWebhookCommand,
222233
DeleteBuildBatchCommand,
234+
DeleteFleetCommand,
223235
DeleteProjectCommand,
224236
DeleteReportCommand,
225237
DeleteReportGroupCommand,
@@ -237,6 +249,7 @@ const commands = {
237249
ListBuildsCommand,
238250
ListBuildsForProjectCommand,
239251
ListCuratedEnvironmentImagesCommand,
252+
ListFleetsCommand,
240253
ListProjectsCommand,
241254
ListReportGroupsCommand,
242255
ListReportsCommand,
@@ -251,6 +264,7 @@ const commands = {
251264
StartBuildBatchCommand,
252265
StopBuildCommand,
253266
StopBuildBatchCommand,
267+
UpdateFleetCommand,
254268
UpdateProjectCommand,
255269
UpdateProjectVisibilityCommand,
256270
UpdateReportGroupCommand,
@@ -306,6 +320,20 @@ export interface CodeBuild {
306320
cb: (err: any, data?: BatchGetBuildsCommandOutput) => void
307321
): void;
308322

323+
/**
324+
* @see {@link BatchGetFleetsCommand}
325+
*/
326+
batchGetFleets(
327+
args: BatchGetFleetsCommandInput,
328+
options?: __HttpHandlerOptions
329+
): Promise<BatchGetFleetsCommandOutput>;
330+
batchGetFleets(args: BatchGetFleetsCommandInput, cb: (err: any, data?: BatchGetFleetsCommandOutput) => void): void;
331+
batchGetFleets(
332+
args: BatchGetFleetsCommandInput,
333+
options: __HttpHandlerOptions,
334+
cb: (err: any, data?: BatchGetFleetsCommandOutput) => void
335+
): void;
336+
309337
/**
310338
* @see {@link BatchGetProjectsCommand}
311339
*/
@@ -354,6 +382,17 @@ export interface CodeBuild {
354382
cb: (err: any, data?: BatchGetReportsCommandOutput) => void
355383
): void;
356384

385+
/**
386+
* @see {@link CreateFleetCommand}
387+
*/
388+
createFleet(args: CreateFleetCommandInput, options?: __HttpHandlerOptions): Promise<CreateFleetCommandOutput>;
389+
createFleet(args: CreateFleetCommandInput, cb: (err: any, data?: CreateFleetCommandOutput) => void): void;
390+
createFleet(
391+
args: CreateFleetCommandInput,
392+
options: __HttpHandlerOptions,
393+
cb: (err: any, data?: CreateFleetCommandOutput) => void
394+
): void;
395+
357396
/**
358397
* @see {@link CreateProjectCommand}
359398
*/
@@ -410,6 +449,17 @@ export interface CodeBuild {
410449
cb: (err: any, data?: DeleteBuildBatchCommandOutput) => void
411450
): void;
412451

452+
/**
453+
* @see {@link DeleteFleetCommand}
454+
*/
455+
deleteFleet(args: DeleteFleetCommandInput, options?: __HttpHandlerOptions): Promise<DeleteFleetCommandOutput>;
456+
deleteFleet(args: DeleteFleetCommandInput, cb: (err: any, data?: DeleteFleetCommandOutput) => void): void;
457+
deleteFleet(
458+
args: DeleteFleetCommandInput,
459+
options: __HttpHandlerOptions,
460+
cb: (err: any, data?: DeleteFleetCommandOutput) => void
461+
): void;
462+
413463
/**
414464
* @see {@link DeleteProjectCommand}
415465
*/
@@ -675,6 +725,17 @@ export interface CodeBuild {
675725
cb: (err: any, data?: ListCuratedEnvironmentImagesCommandOutput) => void
676726
): void;
677727

728+
/**
729+
* @see {@link ListFleetsCommand}
730+
*/
731+
listFleets(args: ListFleetsCommandInput, options?: __HttpHandlerOptions): Promise<ListFleetsCommandOutput>;
732+
listFleets(args: ListFleetsCommandInput, cb: (err: any, data?: ListFleetsCommandOutput) => void): void;
733+
listFleets(
734+
args: ListFleetsCommandInput,
735+
options: __HttpHandlerOptions,
736+
cb: (err: any, data?: ListFleetsCommandOutput) => void
737+
): void;
738+
678739
/**
679740
* @see {@link ListProjectsCommand}
680741
*/
@@ -874,6 +935,17 @@ export interface CodeBuild {
874935
cb: (err: any, data?: StopBuildBatchCommandOutput) => void
875936
): void;
876937

938+
/**
939+
* @see {@link UpdateFleetCommand}
940+
*/
941+
updateFleet(args: UpdateFleetCommandInput, options?: __HttpHandlerOptions): Promise<UpdateFleetCommandOutput>;
942+
updateFleet(args: UpdateFleetCommandInput, cb: (err: any, data?: UpdateFleetCommandOutput) => void): void;
943+
updateFleet(
944+
args: UpdateFleetCommandInput,
945+
options: __HttpHandlerOptions,
946+
cb: (err: any, data?: UpdateFleetCommandOutput) => void
947+
): void;
948+
877949
/**
878950
* @see {@link UpdateProjectCommand}
879951
*/

clients/client-codebuild/src/CodeBuildClient.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,19 @@ import {
5454
BatchGetBuildBatchesCommandOutput,
5555
} from "./commands/BatchGetBuildBatchesCommand";
5656
import { BatchGetBuildsCommandInput, BatchGetBuildsCommandOutput } from "./commands/BatchGetBuildsCommand";
57+
import { BatchGetFleetsCommandInput, BatchGetFleetsCommandOutput } from "./commands/BatchGetFleetsCommand";
5758
import { BatchGetProjectsCommandInput, BatchGetProjectsCommandOutput } from "./commands/BatchGetProjectsCommand";
5859
import {
5960
BatchGetReportGroupsCommandInput,
6061
BatchGetReportGroupsCommandOutput,
6162
} from "./commands/BatchGetReportGroupsCommand";
6263
import { BatchGetReportsCommandInput, BatchGetReportsCommandOutput } from "./commands/BatchGetReportsCommand";
64+
import { CreateFleetCommandInput, CreateFleetCommandOutput } from "./commands/CreateFleetCommand";
6365
import { CreateProjectCommandInput, CreateProjectCommandOutput } from "./commands/CreateProjectCommand";
6466
import { CreateReportGroupCommandInput, CreateReportGroupCommandOutput } from "./commands/CreateReportGroupCommand";
6567
import { CreateWebhookCommandInput, CreateWebhookCommandOutput } from "./commands/CreateWebhookCommand";
6668
import { DeleteBuildBatchCommandInput, DeleteBuildBatchCommandOutput } from "./commands/DeleteBuildBatchCommand";
69+
import { DeleteFleetCommandInput, DeleteFleetCommandOutput } from "./commands/DeleteFleetCommand";
6770
import { DeleteProjectCommandInput, DeleteProjectCommandOutput } from "./commands/DeleteProjectCommand";
6871
import { DeleteReportCommandInput, DeleteReportCommandOutput } from "./commands/DeleteReportCommand";
6972
import { DeleteReportGroupCommandInput, DeleteReportGroupCommandOutput } from "./commands/DeleteReportGroupCommand";
@@ -108,6 +111,7 @@ import {
108111
ListCuratedEnvironmentImagesCommandInput,
109112
ListCuratedEnvironmentImagesCommandOutput,
110113
} from "./commands/ListCuratedEnvironmentImagesCommand";
114+
import { ListFleetsCommandInput, ListFleetsCommandOutput } from "./commands/ListFleetsCommand";
111115
import { ListProjectsCommandInput, ListProjectsCommandOutput } from "./commands/ListProjectsCommand";
112116
import { ListReportGroupsCommandInput, ListReportGroupsCommandOutput } from "./commands/ListReportGroupsCommand";
113117
import { ListReportsCommandInput, ListReportsCommandOutput } from "./commands/ListReportsCommand";
@@ -131,6 +135,7 @@ import { StartBuildBatchCommandInput, StartBuildBatchCommandOutput } from "./com
131135
import { StartBuildCommandInput, StartBuildCommandOutput } from "./commands/StartBuildCommand";
132136
import { StopBuildBatchCommandInput, StopBuildBatchCommandOutput } from "./commands/StopBuildBatchCommand";
133137
import { StopBuildCommandInput, StopBuildCommandOutput } from "./commands/StopBuildCommand";
138+
import { UpdateFleetCommandInput, UpdateFleetCommandOutput } from "./commands/UpdateFleetCommand";
134139
import { UpdateProjectCommandInput, UpdateProjectCommandOutput } from "./commands/UpdateProjectCommand";
135140
import {
136141
UpdateProjectVisibilityCommandInput,
@@ -156,13 +161,16 @@ export type ServiceInputTypes =
156161
| BatchDeleteBuildsCommandInput
157162
| BatchGetBuildBatchesCommandInput
158163
| BatchGetBuildsCommandInput
164+
| BatchGetFleetsCommandInput
159165
| BatchGetProjectsCommandInput
160166
| BatchGetReportGroupsCommandInput
161167
| BatchGetReportsCommandInput
168+
| CreateFleetCommandInput
162169
| CreateProjectCommandInput
163170
| CreateReportGroupCommandInput
164171
| CreateWebhookCommandInput
165172
| DeleteBuildBatchCommandInput
173+
| DeleteFleetCommandInput
166174
| DeleteProjectCommandInput
167175
| DeleteReportCommandInput
168176
| DeleteReportGroupCommandInput
@@ -180,6 +188,7 @@ export type ServiceInputTypes =
180188
| ListBuildsCommandInput
181189
| ListBuildsForProjectCommandInput
182190
| ListCuratedEnvironmentImagesCommandInput
191+
| ListFleetsCommandInput
183192
| ListProjectsCommandInput
184193
| ListReportGroupsCommandInput
185194
| ListReportsCommandInput
@@ -194,6 +203,7 @@ export type ServiceInputTypes =
194203
| StartBuildCommandInput
195204
| StopBuildBatchCommandInput
196205
| StopBuildCommandInput
206+
| UpdateFleetCommandInput
197207
| UpdateProjectCommandInput
198208
| UpdateProjectVisibilityCommandInput
199209
| UpdateReportGroupCommandInput
@@ -206,13 +216,16 @@ export type ServiceOutputTypes =
206216
| BatchDeleteBuildsCommandOutput
207217
| BatchGetBuildBatchesCommandOutput
208218
| BatchGetBuildsCommandOutput
219+
| BatchGetFleetsCommandOutput
209220
| BatchGetProjectsCommandOutput
210221
| BatchGetReportGroupsCommandOutput
211222
| BatchGetReportsCommandOutput
223+
| CreateFleetCommandOutput
212224
| CreateProjectCommandOutput
213225
| CreateReportGroupCommandOutput
214226
| CreateWebhookCommandOutput
215227
| DeleteBuildBatchCommandOutput
228+
| DeleteFleetCommandOutput
216229
| DeleteProjectCommandOutput
217230
| DeleteReportCommandOutput
218231
| DeleteReportGroupCommandOutput
@@ -230,6 +243,7 @@ export type ServiceOutputTypes =
230243
| ListBuildsCommandOutput
231244
| ListBuildsForProjectCommandOutput
232245
| ListCuratedEnvironmentImagesCommandOutput
246+
| ListFleetsCommandOutput
233247
| ListProjectsCommandOutput
234248
| ListReportGroupsCommandOutput
235249
| ListReportsCommandOutput
@@ -244,6 +258,7 @@ export type ServiceOutputTypes =
244258
| StartBuildCommandOutput
245259
| StopBuildBatchCommandOutput
246260
| StopBuildCommandOutput
261+
| UpdateFleetCommandOutput
247262
| UpdateProjectCommandOutput
248263
| UpdateProjectVisibilityCommandOutput
249264
| UpdateReportGroupCommandOutput

clients/client-codebuild/src/commands/BatchGetBuildBatchesCommand.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,9 @@ export interface BatchGetBuildBatchesCommandOutput extends BatchGetBuildBatchesO
148148
* // type: "WINDOWS_CONTAINER" || "LINUX_CONTAINER" || "LINUX_GPU_CONTAINER" || "ARM_CONTAINER" || "WINDOWS_SERVER_2019_CONTAINER" || "LINUX_LAMBDA_CONTAINER" || "ARM_LAMBDA_CONTAINER", // required
149149
* // image: "STRING_VALUE", // required
150150
* // 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
151+
* // fleet: { // ProjectFleet
152+
* // fleetArn: "STRING_VALUE",
153+
* // },
151154
* // environmentVariables: [ // EnvironmentVariables
152155
* // { // EnvironmentVariable
153156
* // name: "STRING_VALUE", // required

clients/client-codebuild/src/commands/BatchGetBuildsCommand.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,9 @@ export interface BatchGetBuildsCommandOutput extends BatchGetBuildsOutput, __Met
149149
* // type: "WINDOWS_CONTAINER" || "LINUX_CONTAINER" || "LINUX_GPU_CONTAINER" || "ARM_CONTAINER" || "WINDOWS_SERVER_2019_CONTAINER" || "LINUX_LAMBDA_CONTAINER" || "ARM_LAMBDA_CONTAINER", // required
150150
* // image: "STRING_VALUE", // required
151151
* // 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
152+
* // fleet: { // ProjectFleet
153+
* // fleetArn: "STRING_VALUE",
154+
* // },
152155
* // environmentVariables: [ // EnvironmentVariables
153156
* // { // EnvironmentVariable
154157
* // name: "STRING_VALUE", // required

0 commit comments

Comments
 (0)