Skip to content

Commit

Permalink
feat(client-codebuild): Release CodeBuild Reserved Capacity feature
Browse files Browse the repository at this point in the history
  • Loading branch information
awstools committed Jan 19, 2024
1 parent b02d4af commit c0c445d
Show file tree
Hide file tree
Showing 25 changed files with 2,930 additions and 69 deletions.
40 changes: 40 additions & 0 deletions clients/client-codebuild/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,14 @@ BatchGetBuilds

[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/)

</details>
<details>
<summary>
BatchGetFleets
</summary>

[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/)

</details>
<details>
<summary>
Expand All @@ -261,6 +269,14 @@ BatchGetReports

[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/)

</details>
<details>
<summary>
CreateFleet
</summary>

[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/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -293,6 +309,14 @@ DeleteBuildBatch

[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/)

</details>
<details>
<summary>
DeleteFleet
</summary>

[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/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -429,6 +453,14 @@ ListCuratedEnvironmentImages

[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/)

</details>
<details>
<summary>
ListFleets
</summary>

[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/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -541,6 +573,14 @@ StopBuildBatch

[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/)

</details>
<details>
<summary>
UpdateFleet
</summary>

[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/)

</details>
<details>
<summary>
Expand Down
72 changes: 72 additions & 0 deletions clients/client-codebuild/src/CodeBuild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ import {
BatchGetBuildsCommandInput,
BatchGetBuildsCommandOutput,
} from "./commands/BatchGetBuildsCommand";
import {
BatchGetFleetsCommand,
BatchGetFleetsCommandInput,
BatchGetFleetsCommandOutput,
} from "./commands/BatchGetFleetsCommand";
import {
BatchGetProjectsCommand,
BatchGetProjectsCommandInput,
Expand All @@ -33,6 +38,7 @@ import {
BatchGetReportsCommandInput,
BatchGetReportsCommandOutput,
} from "./commands/BatchGetReportsCommand";
import { CreateFleetCommand, CreateFleetCommandInput, CreateFleetCommandOutput } from "./commands/CreateFleetCommand";
import {
CreateProjectCommand,
CreateProjectCommandInput,
Expand All @@ -53,6 +59,7 @@ import {
DeleteBuildBatchCommandInput,
DeleteBuildBatchCommandOutput,
} from "./commands/DeleteBuildBatchCommand";
import { DeleteFleetCommand, DeleteFleetCommandInput, DeleteFleetCommandOutput } from "./commands/DeleteFleetCommand";
import {
DeleteProjectCommand,
DeleteProjectCommandInput,
Expand Down Expand Up @@ -134,6 +141,7 @@ import {
ListCuratedEnvironmentImagesCommandInput,
ListCuratedEnvironmentImagesCommandOutput,
} from "./commands/ListCuratedEnvironmentImagesCommand";
import { ListFleetsCommand, ListFleetsCommandInput, ListFleetsCommandOutput } from "./commands/ListFleetsCommand";
import {
ListProjectsCommand,
ListProjectsCommandInput,
Expand Down Expand Up @@ -188,6 +196,7 @@ import {
StopBuildBatchCommandOutput,
} from "./commands/StopBuildBatchCommand";
import { StopBuildCommand, StopBuildCommandInput, StopBuildCommandOutput } from "./commands/StopBuildCommand";
import { UpdateFleetCommand, UpdateFleetCommandInput, UpdateFleetCommandOutput } from "./commands/UpdateFleetCommand";
import {
UpdateProjectCommand,
UpdateProjectCommandInput,
Expand All @@ -213,13 +222,16 @@ const commands = {
BatchDeleteBuildsCommand,
BatchGetBuildBatchesCommand,
BatchGetBuildsCommand,
BatchGetFleetsCommand,
BatchGetProjectsCommand,
BatchGetReportGroupsCommand,
BatchGetReportsCommand,
CreateFleetCommand,
CreateProjectCommand,
CreateReportGroupCommand,
CreateWebhookCommand,
DeleteBuildBatchCommand,
DeleteFleetCommand,
DeleteProjectCommand,
DeleteReportCommand,
DeleteReportGroupCommand,
Expand All @@ -237,6 +249,7 @@ const commands = {
ListBuildsCommand,
ListBuildsForProjectCommand,
ListCuratedEnvironmentImagesCommand,
ListFleetsCommand,
ListProjectsCommand,
ListReportGroupsCommand,
ListReportsCommand,
Expand All @@ -251,6 +264,7 @@ const commands = {
StartBuildBatchCommand,
StopBuildCommand,
StopBuildBatchCommand,
UpdateFleetCommand,
UpdateProjectCommand,
UpdateProjectVisibilityCommand,
UpdateReportGroupCommand,
Expand Down Expand Up @@ -306,6 +320,20 @@ export interface CodeBuild {
cb: (err: any, data?: BatchGetBuildsCommandOutput) => void
): void;

/**
* @see {@link BatchGetFleetsCommand}
*/
batchGetFleets(
args: BatchGetFleetsCommandInput,
options?: __HttpHandlerOptions
): Promise<BatchGetFleetsCommandOutput>;
batchGetFleets(args: BatchGetFleetsCommandInput, cb: (err: any, data?: BatchGetFleetsCommandOutput) => void): void;
batchGetFleets(
args: BatchGetFleetsCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: BatchGetFleetsCommandOutput) => void
): void;

/**
* @see {@link BatchGetProjectsCommand}
*/
Expand Down Expand Up @@ -354,6 +382,17 @@ export interface CodeBuild {
cb: (err: any, data?: BatchGetReportsCommandOutput) => void
): void;

/**
* @see {@link CreateFleetCommand}
*/
createFleet(args: CreateFleetCommandInput, options?: __HttpHandlerOptions): Promise<CreateFleetCommandOutput>;
createFleet(args: CreateFleetCommandInput, cb: (err: any, data?: CreateFleetCommandOutput) => void): void;
createFleet(
args: CreateFleetCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: CreateFleetCommandOutput) => void
): void;

/**
* @see {@link CreateProjectCommand}
*/
Expand Down Expand Up @@ -410,6 +449,17 @@ export interface CodeBuild {
cb: (err: any, data?: DeleteBuildBatchCommandOutput) => void
): void;

/**
* @see {@link DeleteFleetCommand}
*/
deleteFleet(args: DeleteFleetCommandInput, options?: __HttpHandlerOptions): Promise<DeleteFleetCommandOutput>;
deleteFleet(args: DeleteFleetCommandInput, cb: (err: any, data?: DeleteFleetCommandOutput) => void): void;
deleteFleet(
args: DeleteFleetCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: DeleteFleetCommandOutput) => void
): void;

/**
* @see {@link DeleteProjectCommand}
*/
Expand Down Expand Up @@ -675,6 +725,17 @@ export interface CodeBuild {
cb: (err: any, data?: ListCuratedEnvironmentImagesCommandOutput) => void
): void;

/**
* @see {@link ListFleetsCommand}
*/
listFleets(args: ListFleetsCommandInput, options?: __HttpHandlerOptions): Promise<ListFleetsCommandOutput>;
listFleets(args: ListFleetsCommandInput, cb: (err: any, data?: ListFleetsCommandOutput) => void): void;
listFleets(
args: ListFleetsCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ListFleetsCommandOutput) => void
): void;

/**
* @see {@link ListProjectsCommand}
*/
Expand Down Expand Up @@ -874,6 +935,17 @@ export interface CodeBuild {
cb: (err: any, data?: StopBuildBatchCommandOutput) => void
): void;

/**
* @see {@link UpdateFleetCommand}
*/
updateFleet(args: UpdateFleetCommandInput, options?: __HttpHandlerOptions): Promise<UpdateFleetCommandOutput>;
updateFleet(args: UpdateFleetCommandInput, cb: (err: any, data?: UpdateFleetCommandOutput) => void): void;
updateFleet(
args: UpdateFleetCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: UpdateFleetCommandOutput) => void
): void;

/**
* @see {@link UpdateProjectCommand}
*/
Expand Down
15 changes: 15 additions & 0 deletions clients/client-codebuild/src/CodeBuildClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,19 @@ import {
BatchGetBuildBatchesCommandOutput,
} from "./commands/BatchGetBuildBatchesCommand";
import { BatchGetBuildsCommandInput, BatchGetBuildsCommandOutput } from "./commands/BatchGetBuildsCommand";
import { BatchGetFleetsCommandInput, BatchGetFleetsCommandOutput } from "./commands/BatchGetFleetsCommand";
import { BatchGetProjectsCommandInput, BatchGetProjectsCommandOutput } from "./commands/BatchGetProjectsCommand";
import {
BatchGetReportGroupsCommandInput,
BatchGetReportGroupsCommandOutput,
} from "./commands/BatchGetReportGroupsCommand";
import { BatchGetReportsCommandInput, BatchGetReportsCommandOutput } from "./commands/BatchGetReportsCommand";
import { CreateFleetCommandInput, CreateFleetCommandOutput } from "./commands/CreateFleetCommand";
import { CreateProjectCommandInput, CreateProjectCommandOutput } from "./commands/CreateProjectCommand";
import { CreateReportGroupCommandInput, CreateReportGroupCommandOutput } from "./commands/CreateReportGroupCommand";
import { CreateWebhookCommandInput, CreateWebhookCommandOutput } from "./commands/CreateWebhookCommand";
import { DeleteBuildBatchCommandInput, DeleteBuildBatchCommandOutput } from "./commands/DeleteBuildBatchCommand";
import { DeleteFleetCommandInput, DeleteFleetCommandOutput } from "./commands/DeleteFleetCommand";
import { DeleteProjectCommandInput, DeleteProjectCommandOutput } from "./commands/DeleteProjectCommand";
import { DeleteReportCommandInput, DeleteReportCommandOutput } from "./commands/DeleteReportCommand";
import { DeleteReportGroupCommandInput, DeleteReportGroupCommandOutput } from "./commands/DeleteReportGroupCommand";
Expand Down Expand Up @@ -108,6 +111,7 @@ import {
ListCuratedEnvironmentImagesCommandInput,
ListCuratedEnvironmentImagesCommandOutput,
} from "./commands/ListCuratedEnvironmentImagesCommand";
import { ListFleetsCommandInput, ListFleetsCommandOutput } from "./commands/ListFleetsCommand";
import { ListProjectsCommandInput, ListProjectsCommandOutput } from "./commands/ListProjectsCommand";
import { ListReportGroupsCommandInput, ListReportGroupsCommandOutput } from "./commands/ListReportGroupsCommand";
import { ListReportsCommandInput, ListReportsCommandOutput } from "./commands/ListReportsCommand";
Expand All @@ -131,6 +135,7 @@ import { StartBuildBatchCommandInput, StartBuildBatchCommandOutput } from "./com
import { StartBuildCommandInput, StartBuildCommandOutput } from "./commands/StartBuildCommand";
import { StopBuildBatchCommandInput, StopBuildBatchCommandOutput } from "./commands/StopBuildBatchCommand";
import { StopBuildCommandInput, StopBuildCommandOutput } from "./commands/StopBuildCommand";
import { UpdateFleetCommandInput, UpdateFleetCommandOutput } from "./commands/UpdateFleetCommand";
import { UpdateProjectCommandInput, UpdateProjectCommandOutput } from "./commands/UpdateProjectCommand";
import {
UpdateProjectVisibilityCommandInput,
Expand All @@ -156,13 +161,16 @@ export type ServiceInputTypes =
| BatchDeleteBuildsCommandInput
| BatchGetBuildBatchesCommandInput
| BatchGetBuildsCommandInput
| BatchGetFleetsCommandInput
| BatchGetProjectsCommandInput
| BatchGetReportGroupsCommandInput
| BatchGetReportsCommandInput
| CreateFleetCommandInput
| CreateProjectCommandInput
| CreateReportGroupCommandInput
| CreateWebhookCommandInput
| DeleteBuildBatchCommandInput
| DeleteFleetCommandInput
| DeleteProjectCommandInput
| DeleteReportCommandInput
| DeleteReportGroupCommandInput
Expand All @@ -180,6 +188,7 @@ export type ServiceInputTypes =
| ListBuildsCommandInput
| ListBuildsForProjectCommandInput
| ListCuratedEnvironmentImagesCommandInput
| ListFleetsCommandInput
| ListProjectsCommandInput
| ListReportGroupsCommandInput
| ListReportsCommandInput
Expand All @@ -194,6 +203,7 @@ export type ServiceInputTypes =
| StartBuildCommandInput
| StopBuildBatchCommandInput
| StopBuildCommandInput
| UpdateFleetCommandInput
| UpdateProjectCommandInput
| UpdateProjectVisibilityCommandInput
| UpdateReportGroupCommandInput
Expand All @@ -206,13 +216,16 @@ export type ServiceOutputTypes =
| BatchDeleteBuildsCommandOutput
| BatchGetBuildBatchesCommandOutput
| BatchGetBuildsCommandOutput
| BatchGetFleetsCommandOutput
| BatchGetProjectsCommandOutput
| BatchGetReportGroupsCommandOutput
| BatchGetReportsCommandOutput
| CreateFleetCommandOutput
| CreateProjectCommandOutput
| CreateReportGroupCommandOutput
| CreateWebhookCommandOutput
| DeleteBuildBatchCommandOutput
| DeleteFleetCommandOutput
| DeleteProjectCommandOutput
| DeleteReportCommandOutput
| DeleteReportGroupCommandOutput
Expand All @@ -230,6 +243,7 @@ export type ServiceOutputTypes =
| ListBuildsCommandOutput
| ListBuildsForProjectCommandOutput
| ListCuratedEnvironmentImagesCommandOutput
| ListFleetsCommandOutput
| ListProjectsCommandOutput
| ListReportGroupsCommandOutput
| ListReportsCommandOutput
Expand All @@ -244,6 +258,7 @@ export type ServiceOutputTypes =
| StartBuildCommandOutput
| StopBuildBatchCommandOutput
| StopBuildCommandOutput
| UpdateFleetCommandOutput
| UpdateProjectCommandOutput
| UpdateProjectVisibilityCommandOutput
| UpdateReportGroupCommandOutput
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ export interface BatchGetBuildBatchesCommandOutput extends BatchGetBuildBatchesO
* // type: "WINDOWS_CONTAINER" || "LINUX_CONTAINER" || "LINUX_GPU_CONTAINER" || "ARM_CONTAINER" || "WINDOWS_SERVER_2019_CONTAINER" || "LINUX_LAMBDA_CONTAINER" || "ARM_LAMBDA_CONTAINER", // required
* // image: "STRING_VALUE", // required
* // 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
* // fleet: { // ProjectFleet
* // fleetArn: "STRING_VALUE",
* // },
* // environmentVariables: [ // EnvironmentVariables
* // { // EnvironmentVariable
* // name: "STRING_VALUE", // required
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ export interface BatchGetBuildsCommandOutput extends BatchGetBuildsOutput, __Met
* // type: "WINDOWS_CONTAINER" || "LINUX_CONTAINER" || "LINUX_GPU_CONTAINER" || "ARM_CONTAINER" || "WINDOWS_SERVER_2019_CONTAINER" || "LINUX_LAMBDA_CONTAINER" || "ARM_LAMBDA_CONTAINER", // required
* // image: "STRING_VALUE", // required
* // 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
* // fleet: { // ProjectFleet
* // fleetArn: "STRING_VALUE",
* // },
* // environmentVariables: [ // EnvironmentVariables
* // { // EnvironmentVariable
* // name: "STRING_VALUE", // required
Expand Down
Loading

0 comments on commit c0c445d

Please sign in to comment.