diff --git a/clients/client-codebuild/README.md b/clients/client-codebuild/README.md index 1ad6e762f5e8..5a232c2ade29 100644 --- a/clients/client-codebuild/README.md +++ b/clients/client-codebuild/README.md @@ -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/) + +
+ +BatchGetFleets + + +[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/) +
@@ -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/) +
+
+ +CreateFleet + + +[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/) +
@@ -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/) +
+
+ +DeleteFleet + + +[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/) +
@@ -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/) +
+
+ +ListFleets + + +[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/) +
@@ -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/) +
+
+ +UpdateFleet + + +[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/) +
diff --git a/clients/client-codebuild/src/CodeBuild.ts b/clients/client-codebuild/src/CodeBuild.ts index 32f015f833e7..a30d3e54ef09 100644 --- a/clients/client-codebuild/src/CodeBuild.ts +++ b/clients/client-codebuild/src/CodeBuild.ts @@ -18,6 +18,11 @@ import { BatchGetBuildsCommandInput, BatchGetBuildsCommandOutput, } from "./commands/BatchGetBuildsCommand"; +import { + BatchGetFleetsCommand, + BatchGetFleetsCommandInput, + BatchGetFleetsCommandOutput, +} from "./commands/BatchGetFleetsCommand"; import { BatchGetProjectsCommand, BatchGetProjectsCommandInput, @@ -33,6 +38,7 @@ import { BatchGetReportsCommandInput, BatchGetReportsCommandOutput, } from "./commands/BatchGetReportsCommand"; +import { CreateFleetCommand, CreateFleetCommandInput, CreateFleetCommandOutput } from "./commands/CreateFleetCommand"; import { CreateProjectCommand, CreateProjectCommandInput, @@ -53,6 +59,7 @@ import { DeleteBuildBatchCommandInput, DeleteBuildBatchCommandOutput, } from "./commands/DeleteBuildBatchCommand"; +import { DeleteFleetCommand, DeleteFleetCommandInput, DeleteFleetCommandOutput } from "./commands/DeleteFleetCommand"; import { DeleteProjectCommand, DeleteProjectCommandInput, @@ -134,6 +141,7 @@ import { ListCuratedEnvironmentImagesCommandInput, ListCuratedEnvironmentImagesCommandOutput, } from "./commands/ListCuratedEnvironmentImagesCommand"; +import { ListFleetsCommand, ListFleetsCommandInput, ListFleetsCommandOutput } from "./commands/ListFleetsCommand"; import { ListProjectsCommand, ListProjectsCommandInput, @@ -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, @@ -213,13 +222,16 @@ const commands = { BatchDeleteBuildsCommand, BatchGetBuildBatchesCommand, BatchGetBuildsCommand, + BatchGetFleetsCommand, BatchGetProjectsCommand, BatchGetReportGroupsCommand, BatchGetReportsCommand, + CreateFleetCommand, CreateProjectCommand, CreateReportGroupCommand, CreateWebhookCommand, DeleteBuildBatchCommand, + DeleteFleetCommand, DeleteProjectCommand, DeleteReportCommand, DeleteReportGroupCommand, @@ -237,6 +249,7 @@ const commands = { ListBuildsCommand, ListBuildsForProjectCommand, ListCuratedEnvironmentImagesCommand, + ListFleetsCommand, ListProjectsCommand, ListReportGroupsCommand, ListReportsCommand, @@ -251,6 +264,7 @@ const commands = { StartBuildBatchCommand, StopBuildCommand, StopBuildBatchCommand, + UpdateFleetCommand, UpdateProjectCommand, UpdateProjectVisibilityCommand, UpdateReportGroupCommand, @@ -306,6 +320,20 @@ export interface CodeBuild { cb: (err: any, data?: BatchGetBuildsCommandOutput) => void ): void; + /** + * @see {@link BatchGetFleetsCommand} + */ + batchGetFleets( + args: BatchGetFleetsCommandInput, + options?: __HttpHandlerOptions + ): Promise; + 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} */ @@ -354,6 +382,17 @@ export interface CodeBuild { cb: (err: any, data?: BatchGetReportsCommandOutput) => void ): void; + /** + * @see {@link CreateFleetCommand} + */ + createFleet(args: CreateFleetCommandInput, options?: __HttpHandlerOptions): Promise; + 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} */ @@ -410,6 +449,17 @@ export interface CodeBuild { cb: (err: any, data?: DeleteBuildBatchCommandOutput) => void ): void; + /** + * @see {@link DeleteFleetCommand} + */ + deleteFleet(args: DeleteFleetCommandInput, options?: __HttpHandlerOptions): Promise; + 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} */ @@ -675,6 +725,17 @@ export interface CodeBuild { cb: (err: any, data?: ListCuratedEnvironmentImagesCommandOutput) => void ): void; + /** + * @see {@link ListFleetsCommand} + */ + listFleets(args: ListFleetsCommandInput, options?: __HttpHandlerOptions): Promise; + 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} */ @@ -874,6 +935,17 @@ export interface CodeBuild { cb: (err: any, data?: StopBuildBatchCommandOutput) => void ): void; + /** + * @see {@link UpdateFleetCommand} + */ + updateFleet(args: UpdateFleetCommandInput, options?: __HttpHandlerOptions): Promise; + 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} */ diff --git a/clients/client-codebuild/src/CodeBuildClient.ts b/clients/client-codebuild/src/CodeBuildClient.ts index 7907cf2bcf1e..301ee7723c0b 100644 --- a/clients/client-codebuild/src/CodeBuildClient.ts +++ b/clients/client-codebuild/src/CodeBuildClient.ts @@ -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"; @@ -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"; @@ -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, @@ -156,13 +161,16 @@ export type ServiceInputTypes = | BatchDeleteBuildsCommandInput | BatchGetBuildBatchesCommandInput | BatchGetBuildsCommandInput + | BatchGetFleetsCommandInput | BatchGetProjectsCommandInput | BatchGetReportGroupsCommandInput | BatchGetReportsCommandInput + | CreateFleetCommandInput | CreateProjectCommandInput | CreateReportGroupCommandInput | CreateWebhookCommandInput | DeleteBuildBatchCommandInput + | DeleteFleetCommandInput | DeleteProjectCommandInput | DeleteReportCommandInput | DeleteReportGroupCommandInput @@ -180,6 +188,7 @@ export type ServiceInputTypes = | ListBuildsCommandInput | ListBuildsForProjectCommandInput | ListCuratedEnvironmentImagesCommandInput + | ListFleetsCommandInput | ListProjectsCommandInput | ListReportGroupsCommandInput | ListReportsCommandInput @@ -194,6 +203,7 @@ export type ServiceInputTypes = | StartBuildCommandInput | StopBuildBatchCommandInput | StopBuildCommandInput + | UpdateFleetCommandInput | UpdateProjectCommandInput | UpdateProjectVisibilityCommandInput | UpdateReportGroupCommandInput @@ -206,13 +216,16 @@ export type ServiceOutputTypes = | BatchDeleteBuildsCommandOutput | BatchGetBuildBatchesCommandOutput | BatchGetBuildsCommandOutput + | BatchGetFleetsCommandOutput | BatchGetProjectsCommandOutput | BatchGetReportGroupsCommandOutput | BatchGetReportsCommandOutput + | CreateFleetCommandOutput | CreateProjectCommandOutput | CreateReportGroupCommandOutput | CreateWebhookCommandOutput | DeleteBuildBatchCommandOutput + | DeleteFleetCommandOutput | DeleteProjectCommandOutput | DeleteReportCommandOutput | DeleteReportGroupCommandOutput @@ -230,6 +243,7 @@ export type ServiceOutputTypes = | ListBuildsCommandOutput | ListBuildsForProjectCommandOutput | ListCuratedEnvironmentImagesCommandOutput + | ListFleetsCommandOutput | ListProjectsCommandOutput | ListReportGroupsCommandOutput | ListReportsCommandOutput @@ -244,6 +258,7 @@ export type ServiceOutputTypes = | StartBuildCommandOutput | StopBuildBatchCommandOutput | StopBuildCommandOutput + | UpdateFleetCommandOutput | UpdateProjectCommandOutput | UpdateProjectVisibilityCommandOutput | UpdateReportGroupCommandOutput diff --git a/clients/client-codebuild/src/commands/BatchGetBuildBatchesCommand.ts b/clients/client-codebuild/src/commands/BatchGetBuildBatchesCommand.ts index 18fbd70743cf..8f8e564fd2de 100644 --- a/clients/client-codebuild/src/commands/BatchGetBuildBatchesCommand.ts +++ b/clients/client-codebuild/src/commands/BatchGetBuildBatchesCommand.ts @@ -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 diff --git a/clients/client-codebuild/src/commands/BatchGetBuildsCommand.ts b/clients/client-codebuild/src/commands/BatchGetBuildsCommand.ts index 0c9d3ee1dbf7..1aa7a2d67e15 100644 --- a/clients/client-codebuild/src/commands/BatchGetBuildsCommand.ts +++ b/clients/client-codebuild/src/commands/BatchGetBuildsCommand.ts @@ -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 diff --git a/clients/client-codebuild/src/commands/BatchGetFleetsCommand.ts b/clients/client-codebuild/src/commands/BatchGetFleetsCommand.ts new file mode 100644 index 000000000000..638be90db908 --- /dev/null +++ b/clients/client-codebuild/src/commands/BatchGetFleetsCommand.ts @@ -0,0 +1,122 @@ +// smithy-typescript generated code +import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { Command as $Command } from "@smithy/smithy-client"; +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; + +import { CodeBuildClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeBuildClient"; +import { commonParams } from "../endpoint/EndpointParameters"; +import { BatchGetFleetsInput, BatchGetFleetsOutput } from "../models/models_0"; +import { de_BatchGetFleetsCommand, se_BatchGetFleetsCommand } from "../protocols/Aws_json1_1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link BatchGetFleetsCommand}. + */ +export interface BatchGetFleetsCommandInput extends BatchGetFleetsInput {} +/** + * @public + * + * The output of {@link BatchGetFleetsCommand}. + */ +export interface BatchGetFleetsCommandOutput extends BatchGetFleetsOutput, __MetadataBearer {} + +/** + * @public + *

Gets information about one or more compute fleets.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { CodeBuildClient, BatchGetFleetsCommand } from "@aws-sdk/client-codebuild"; // ES Modules import + * // const { CodeBuildClient, BatchGetFleetsCommand } = require("@aws-sdk/client-codebuild"); // CommonJS import + * const client = new CodeBuildClient(config); + * const input = { // BatchGetFleetsInput + * names: [ // FleetNames // required + * "STRING_VALUE", + * ], + * }; + * const command = new BatchGetFleetsCommand(input); + * const response = await client.send(command); + * // { // BatchGetFleetsOutput + * // fleets: [ // Fleets + * // { // Fleet + * // arn: "STRING_VALUE", + * // name: "STRING_VALUE", + * // id: "STRING_VALUE", + * // created: new Date("TIMESTAMP"), + * // lastModified: new Date("TIMESTAMP"), + * // status: { // FleetStatus + * // statusCode: "CREATING" || "UPDATING" || "ROTATING" || "DELETING" || "CREATE_FAILED" || "UPDATE_ROLLBACK_FAILED" || "ACTIVE", + * // context: "CREATE_FAILED" || "UPDATE_FAILED", + * // message: "STRING_VALUE", + * // }, + * // baseCapacity: Number("int"), + * // environmentType: "WINDOWS_CONTAINER" || "LINUX_CONTAINER" || "LINUX_GPU_CONTAINER" || "ARM_CONTAINER" || "WINDOWS_SERVER_2019_CONTAINER" || "LINUX_LAMBDA_CONTAINER" || "ARM_LAMBDA_CONTAINER", + * // 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", + * // scalingConfiguration: { // ScalingConfigurationOutput + * // scalingType: "TARGET_TRACKING_SCALING", + * // targetTrackingScalingConfigs: [ // TargetTrackingScalingConfigurations + * // { // TargetTrackingScalingConfiguration + * // metricType: "FLEET_UTILIZATION_RATE", + * // targetValue: Number("double"), + * // }, + * // ], + * // maxCapacity: Number("int"), + * // desiredCapacity: Number("int"), + * // }, + * // tags: [ // TagList + * // { // Tag + * // key: "STRING_VALUE", + * // value: "STRING_VALUE", + * // }, + * // ], + * // }, + * // ], + * // fleetsNotFound: [ // FleetNames + * // "STRING_VALUE", + * // ], + * // }; + * + * ``` + * + * @param BatchGetFleetsCommandInput - {@link BatchGetFleetsCommandInput} + * @returns {@link BatchGetFleetsCommandOutput} + * @see {@link BatchGetFleetsCommandInput} for command's `input` shape. + * @see {@link BatchGetFleetsCommandOutput} for command's `response` shape. + * @see {@link CodeBuildClientResolvedConfig | config} for CodeBuildClient's `config` shape. + * + * @throws {@link InvalidInputException} (client fault) + *

The input value that was provided is not valid.

+ * + * @throws {@link CodeBuildServiceException} + *

Base exception class for all service exceptions from CodeBuild service.

+ * + */ +export class BatchGetFleetsCommand extends $Command + .classBuilder< + BatchGetFleetsCommandInput, + BatchGetFleetsCommandOutput, + CodeBuildClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep({ + ...commonParams, + }) + .m(function (this: any, Command: any, cs: any, config: CodeBuildClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("CodeBuild_20161006", "BatchGetFleets", {}) + .n("CodeBuildClient", "BatchGetFleetsCommand") + .f(void 0, void 0) + .ser(se_BatchGetFleetsCommand) + .de(de_BatchGetFleetsCommand) + .build() {} diff --git a/clients/client-codebuild/src/commands/BatchGetProjectsCommand.ts b/clients/client-codebuild/src/commands/BatchGetProjectsCommand.ts index 795ecb3d3ca0..56234d4c9e2d 100644 --- a/clients/client-codebuild/src/commands/BatchGetProjectsCommand.ts +++ b/clients/client-codebuild/src/commands/BatchGetProjectsCommand.ts @@ -134,6 +134,9 @@ export interface BatchGetProjectsCommandOutput extends BatchGetProjectsOutput, _ * // 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 diff --git a/clients/client-codebuild/src/commands/CreateFleetCommand.ts b/clients/client-codebuild/src/commands/CreateFleetCommand.ts new file mode 100644 index 000000000000..41f211a5d0c6 --- /dev/null +++ b/clients/client-codebuild/src/commands/CreateFleetCommand.ts @@ -0,0 +1,141 @@ +// smithy-typescript generated code +import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { Command as $Command } from "@smithy/smithy-client"; +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; + +import { CodeBuildClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeBuildClient"; +import { commonParams } from "../endpoint/EndpointParameters"; +import { CreateFleetInput, CreateFleetOutput } from "../models/models_0"; +import { de_CreateFleetCommand, se_CreateFleetCommand } from "../protocols/Aws_json1_1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link CreateFleetCommand}. + */ +export interface CreateFleetCommandInput extends CreateFleetInput {} +/** + * @public + * + * The output of {@link CreateFleetCommand}. + */ +export interface CreateFleetCommandOutput extends CreateFleetOutput, __MetadataBearer {} + +/** + * @public + *

Creates a compute fleet.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { CodeBuildClient, CreateFleetCommand } from "@aws-sdk/client-codebuild"; // ES Modules import + * // const { CodeBuildClient, CreateFleetCommand } = require("@aws-sdk/client-codebuild"); // CommonJS import + * const client = new CodeBuildClient(config); + * const input = { // CreateFleetInput + * name: "STRING_VALUE", // required + * baseCapacity: Number("int"), // required + * environmentType: "WINDOWS_CONTAINER" || "LINUX_CONTAINER" || "LINUX_GPU_CONTAINER" || "ARM_CONTAINER" || "WINDOWS_SERVER_2019_CONTAINER" || "LINUX_LAMBDA_CONTAINER" || "ARM_LAMBDA_CONTAINER", // 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 + * scalingConfiguration: { // ScalingConfigurationInput + * scalingType: "TARGET_TRACKING_SCALING", + * targetTrackingScalingConfigs: [ // TargetTrackingScalingConfigurations + * { // TargetTrackingScalingConfiguration + * metricType: "FLEET_UTILIZATION_RATE", + * targetValue: Number("double"), + * }, + * ], + * maxCapacity: Number("int"), + * }, + * tags: [ // TagList + * { // Tag + * key: "STRING_VALUE", + * value: "STRING_VALUE", + * }, + * ], + * }; + * const command = new CreateFleetCommand(input); + * const response = await client.send(command); + * // { // CreateFleetOutput + * // fleet: { // Fleet + * // arn: "STRING_VALUE", + * // name: "STRING_VALUE", + * // id: "STRING_VALUE", + * // created: new Date("TIMESTAMP"), + * // lastModified: new Date("TIMESTAMP"), + * // status: { // FleetStatus + * // statusCode: "CREATING" || "UPDATING" || "ROTATING" || "DELETING" || "CREATE_FAILED" || "UPDATE_ROLLBACK_FAILED" || "ACTIVE", + * // context: "CREATE_FAILED" || "UPDATE_FAILED", + * // message: "STRING_VALUE", + * // }, + * // baseCapacity: Number("int"), + * // environmentType: "WINDOWS_CONTAINER" || "LINUX_CONTAINER" || "LINUX_GPU_CONTAINER" || "ARM_CONTAINER" || "WINDOWS_SERVER_2019_CONTAINER" || "LINUX_LAMBDA_CONTAINER" || "ARM_LAMBDA_CONTAINER", + * // 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", + * // scalingConfiguration: { // ScalingConfigurationOutput + * // scalingType: "TARGET_TRACKING_SCALING", + * // targetTrackingScalingConfigs: [ // TargetTrackingScalingConfigurations + * // { // TargetTrackingScalingConfiguration + * // metricType: "FLEET_UTILIZATION_RATE", + * // targetValue: Number("double"), + * // }, + * // ], + * // maxCapacity: Number("int"), + * // desiredCapacity: Number("int"), + * // }, + * // tags: [ // TagList + * // { // Tag + * // key: "STRING_VALUE", + * // value: "STRING_VALUE", + * // }, + * // ], + * // }, + * // }; + * + * ``` + * + * @param CreateFleetCommandInput - {@link CreateFleetCommandInput} + * @returns {@link CreateFleetCommandOutput} + * @see {@link CreateFleetCommandInput} for command's `input` shape. + * @see {@link CreateFleetCommandOutput} for command's `response` shape. + * @see {@link CodeBuildClientResolvedConfig | config} for CodeBuildClient's `config` shape. + * + * @throws {@link AccountLimitExceededException} (client fault) + *

An Amazon Web Services service limit was exceeded for the calling Amazon Web Services account.

+ * + * @throws {@link InvalidInputException} (client fault) + *

The input value that was provided is not valid.

+ * + * @throws {@link ResourceAlreadyExistsException} (client fault) + *

The specified Amazon Web Services resource cannot be created, because an Amazon Web Services resource with the same + * settings already exists.

+ * + * @throws {@link CodeBuildServiceException} + *

Base exception class for all service exceptions from CodeBuild service.

+ * + */ +export class CreateFleetCommand extends $Command + .classBuilder< + CreateFleetCommandInput, + CreateFleetCommandOutput, + CodeBuildClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep({ + ...commonParams, + }) + .m(function (this: any, Command: any, cs: any, config: CodeBuildClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("CodeBuild_20161006", "CreateFleet", {}) + .n("CodeBuildClient", "CreateFleetCommand") + .f(void 0, void 0) + .ser(se_CreateFleetCommand) + .de(de_CreateFleetCommand) + .build() {} diff --git a/clients/client-codebuild/src/commands/CreateProjectCommand.ts b/clients/client-codebuild/src/commands/CreateProjectCommand.ts index 1d6c25e44a1b..a9bafdf23c0d 100644 --- a/clients/client-codebuild/src/commands/CreateProjectCommand.ts +++ b/clients/client-codebuild/src/commands/CreateProjectCommand.ts @@ -124,6 +124,9 @@ export interface CreateProjectCommandOutput extends CreateProjectOutput, __Metad * 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 @@ -288,6 +291,9 @@ export interface CreateProjectCommandOutput extends CreateProjectOutput, __Metad * // 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 diff --git a/clients/client-codebuild/src/commands/DeleteFleetCommand.ts b/clients/client-codebuild/src/commands/DeleteFleetCommand.ts new file mode 100644 index 000000000000..ce43c52bcc8e --- /dev/null +++ b/clients/client-codebuild/src/commands/DeleteFleetCommand.ts @@ -0,0 +1,82 @@ +// smithy-typescript generated code +import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { Command as $Command } from "@smithy/smithy-client"; +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; + +import { CodeBuildClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeBuildClient"; +import { commonParams } from "../endpoint/EndpointParameters"; +import { DeleteFleetInput, DeleteFleetOutput } from "../models/models_0"; +import { de_DeleteFleetCommand, se_DeleteFleetCommand } from "../protocols/Aws_json1_1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link DeleteFleetCommand}. + */ +export interface DeleteFleetCommandInput extends DeleteFleetInput {} +/** + * @public + * + * The output of {@link DeleteFleetCommand}. + */ +export interface DeleteFleetCommandOutput extends DeleteFleetOutput, __MetadataBearer {} + +/** + * @public + *

Deletes a compute fleet. When you delete a compute fleet, its builds are not deleted.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { CodeBuildClient, DeleteFleetCommand } from "@aws-sdk/client-codebuild"; // ES Modules import + * // const { CodeBuildClient, DeleteFleetCommand } = require("@aws-sdk/client-codebuild"); // CommonJS import + * const client = new CodeBuildClient(config); + * const input = { // DeleteFleetInput + * arn: "STRING_VALUE", // required + * }; + * const command = new DeleteFleetCommand(input); + * const response = await client.send(command); + * // {}; + * + * ``` + * + * @param DeleteFleetCommandInput - {@link DeleteFleetCommandInput} + * @returns {@link DeleteFleetCommandOutput} + * @see {@link DeleteFleetCommandInput} for command's `input` shape. + * @see {@link DeleteFleetCommandOutput} for command's `response` shape. + * @see {@link CodeBuildClientResolvedConfig | config} for CodeBuildClient's `config` shape. + * + * @throws {@link InvalidInputException} (client fault) + *

The input value that was provided is not valid.

+ * + * @throws {@link CodeBuildServiceException} + *

Base exception class for all service exceptions from CodeBuild service.

+ * + */ +export class DeleteFleetCommand extends $Command + .classBuilder< + DeleteFleetCommandInput, + DeleteFleetCommandOutput, + CodeBuildClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep({ + ...commonParams, + }) + .m(function (this: any, Command: any, cs: any, config: CodeBuildClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("CodeBuild_20161006", "DeleteFleet", {}) + .n("CodeBuildClient", "DeleteFleetCommand") + .f(void 0, void 0) + .ser(se_DeleteFleetCommand) + .de(de_DeleteFleetCommand) + .build() {} diff --git a/clients/client-codebuild/src/commands/ListFleetsCommand.ts b/clients/client-codebuild/src/commands/ListFleetsCommand.ts new file mode 100644 index 000000000000..14c8db532942 --- /dev/null +++ b/clients/client-codebuild/src/commands/ListFleetsCommand.ts @@ -0,0 +1,90 @@ +// smithy-typescript generated code +import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { Command as $Command } from "@smithy/smithy-client"; +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; + +import { CodeBuildClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeBuildClient"; +import { commonParams } from "../endpoint/EndpointParameters"; +import { ListFleetsInput, ListFleetsInputFilterSensitiveLog, ListFleetsOutput } from "../models/models_0"; +import { de_ListFleetsCommand, se_ListFleetsCommand } from "../protocols/Aws_json1_1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link ListFleetsCommand}. + */ +export interface ListFleetsCommandInput extends ListFleetsInput {} +/** + * @public + * + * The output of {@link ListFleetsCommand}. + */ +export interface ListFleetsCommandOutput extends ListFleetsOutput, __MetadataBearer {} + +/** + * @public + *

Gets a list of compute fleet names with each compute fleet name representing a single compute fleet.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { CodeBuildClient, ListFleetsCommand } from "@aws-sdk/client-codebuild"; // ES Modules import + * // const { CodeBuildClient, ListFleetsCommand } = require("@aws-sdk/client-codebuild"); // CommonJS import + * const client = new CodeBuildClient(config); + * const input = { // ListFleetsInput + * nextToken: "STRING_VALUE", + * maxResults: Number("int"), + * sortOrder: "ASCENDING" || "DESCENDING", + * sortBy: "NAME" || "CREATED_TIME" || "LAST_MODIFIED_TIME", + * }; + * const command = new ListFleetsCommand(input); + * const response = await client.send(command); + * // { // ListFleetsOutput + * // nextToken: "STRING_VALUE", + * // fleets: [ // FleetArns + * // "STRING_VALUE", + * // ], + * // }; + * + * ``` + * + * @param ListFleetsCommandInput - {@link ListFleetsCommandInput} + * @returns {@link ListFleetsCommandOutput} + * @see {@link ListFleetsCommandInput} for command's `input` shape. + * @see {@link ListFleetsCommandOutput} for command's `response` shape. + * @see {@link CodeBuildClientResolvedConfig | config} for CodeBuildClient's `config` shape. + * + * @throws {@link InvalidInputException} (client fault) + *

The input value that was provided is not valid.

+ * + * @throws {@link CodeBuildServiceException} + *

Base exception class for all service exceptions from CodeBuild service.

+ * + */ +export class ListFleetsCommand extends $Command + .classBuilder< + ListFleetsCommandInput, + ListFleetsCommandOutput, + CodeBuildClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep({ + ...commonParams, + }) + .m(function (this: any, Command: any, cs: any, config: CodeBuildClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("CodeBuild_20161006", "ListFleets", {}) + .n("CodeBuildClient", "ListFleetsCommand") + .f(ListFleetsInputFilterSensitiveLog, void 0) + .ser(se_ListFleetsCommand) + .de(de_ListFleetsCommand) + .build() {} diff --git a/clients/client-codebuild/src/commands/RetryBuildBatchCommand.ts b/clients/client-codebuild/src/commands/RetryBuildBatchCommand.ts index 19771f438ddb..80f9f20d2e37 100644 --- a/clients/client-codebuild/src/commands/RetryBuildBatchCommand.ts +++ b/clients/client-codebuild/src/commands/RetryBuildBatchCommand.ts @@ -147,6 +147,9 @@ export interface RetryBuildBatchCommandOutput extends RetryBuildBatchOutput, __M * // 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 diff --git a/clients/client-codebuild/src/commands/RetryBuildCommand.ts b/clients/client-codebuild/src/commands/RetryBuildCommand.ts index 2811cd49c4d2..b12a1ad6a833 100644 --- a/clients/client-codebuild/src/commands/RetryBuildCommand.ts +++ b/clients/client-codebuild/src/commands/RetryBuildCommand.ts @@ -147,6 +147,9 @@ export interface RetryBuildCommandOutput extends RetryBuildOutput, __MetadataBea * // 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 diff --git a/clients/client-codebuild/src/commands/StartBuildBatchCommand.ts b/clients/client-codebuild/src/commands/StartBuildBatchCommand.ts index 79355502496d..d89f1235efa6 100644 --- a/clients/client-codebuild/src/commands/StartBuildBatchCommand.ts +++ b/clients/client-codebuild/src/commands/StartBuildBatchCommand.ts @@ -268,6 +268,9 @@ export interface StartBuildBatchCommandOutput extends StartBuildBatchOutput, __M * // 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 diff --git a/clients/client-codebuild/src/commands/StartBuildCommand.ts b/clients/client-codebuild/src/commands/StartBuildCommand.ts index 982fa21366b9..b461c223ea4c 100644 --- a/clients/client-codebuild/src/commands/StartBuildCommand.ts +++ b/clients/client-codebuild/src/commands/StartBuildCommand.ts @@ -152,6 +152,9 @@ export interface StartBuildCommandOutput extends StartBuildOutput, __MetadataBea * }, * imagePullCredentialsTypeOverride: "CODEBUILD" || "SERVICE_ROLE", * debugSessionEnabled: true || false, + * fleetOverride: { // ProjectFleet + * fleetArn: "STRING_VALUE", + * }, * }; * const command = new StartBuildCommand(input); * const response = await client.send(command); @@ -261,6 +264,9 @@ export interface StartBuildCommandOutput extends StartBuildOutput, __MetadataBea * // 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 diff --git a/clients/client-codebuild/src/commands/StopBuildBatchCommand.ts b/clients/client-codebuild/src/commands/StopBuildBatchCommand.ts index 799e32339d05..fac1360431bb 100644 --- a/clients/client-codebuild/src/commands/StopBuildBatchCommand.ts +++ b/clients/client-codebuild/src/commands/StopBuildBatchCommand.ts @@ -145,6 +145,9 @@ export interface StopBuildBatchCommandOutput extends StopBuildBatchOutput, __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 diff --git a/clients/client-codebuild/src/commands/StopBuildCommand.ts b/clients/client-codebuild/src/commands/StopBuildCommand.ts index 8664d3cd6d1a..eb801f53793c 100644 --- a/clients/client-codebuild/src/commands/StopBuildCommand.ts +++ b/clients/client-codebuild/src/commands/StopBuildCommand.ts @@ -146,6 +146,9 @@ export interface StopBuildCommandOutput extends StopBuildOutput, __MetadataBeare * // 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 diff --git a/clients/client-codebuild/src/commands/UpdateFleetCommand.ts b/clients/client-codebuild/src/commands/UpdateFleetCommand.ts new file mode 100644 index 000000000000..0cac3599ca88 --- /dev/null +++ b/clients/client-codebuild/src/commands/UpdateFleetCommand.ts @@ -0,0 +1,140 @@ +// smithy-typescript generated code +import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { Command as $Command } from "@smithy/smithy-client"; +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; + +import { CodeBuildClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeBuildClient"; +import { commonParams } from "../endpoint/EndpointParameters"; +import { UpdateFleetInput, UpdateFleetOutput } from "../models/models_0"; +import { de_UpdateFleetCommand, se_UpdateFleetCommand } from "../protocols/Aws_json1_1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link UpdateFleetCommand}. + */ +export interface UpdateFleetCommandInput extends UpdateFleetInput {} +/** + * @public + * + * The output of {@link UpdateFleetCommand}. + */ +export interface UpdateFleetCommandOutput extends UpdateFleetOutput, __MetadataBearer {} + +/** + * @public + *

Updates a compute fleet.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { CodeBuildClient, UpdateFleetCommand } from "@aws-sdk/client-codebuild"; // ES Modules import + * // const { CodeBuildClient, UpdateFleetCommand } = require("@aws-sdk/client-codebuild"); // CommonJS import + * const client = new CodeBuildClient(config); + * const input = { // UpdateFleetInput + * arn: "STRING_VALUE", // required + * baseCapacity: Number("int"), + * environmentType: "WINDOWS_CONTAINER" || "LINUX_CONTAINER" || "LINUX_GPU_CONTAINER" || "ARM_CONTAINER" || "WINDOWS_SERVER_2019_CONTAINER" || "LINUX_LAMBDA_CONTAINER" || "ARM_LAMBDA_CONTAINER", + * 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", + * scalingConfiguration: { // ScalingConfigurationInput + * scalingType: "TARGET_TRACKING_SCALING", + * targetTrackingScalingConfigs: [ // TargetTrackingScalingConfigurations + * { // TargetTrackingScalingConfiguration + * metricType: "FLEET_UTILIZATION_RATE", + * targetValue: Number("double"), + * }, + * ], + * maxCapacity: Number("int"), + * }, + * tags: [ // TagList + * { // Tag + * key: "STRING_VALUE", + * value: "STRING_VALUE", + * }, + * ], + * }; + * const command = new UpdateFleetCommand(input); + * const response = await client.send(command); + * // { // UpdateFleetOutput + * // fleet: { // Fleet + * // arn: "STRING_VALUE", + * // name: "STRING_VALUE", + * // id: "STRING_VALUE", + * // created: new Date("TIMESTAMP"), + * // lastModified: new Date("TIMESTAMP"), + * // status: { // FleetStatus + * // statusCode: "CREATING" || "UPDATING" || "ROTATING" || "DELETING" || "CREATE_FAILED" || "UPDATE_ROLLBACK_FAILED" || "ACTIVE", + * // context: "CREATE_FAILED" || "UPDATE_FAILED", + * // message: "STRING_VALUE", + * // }, + * // baseCapacity: Number("int"), + * // environmentType: "WINDOWS_CONTAINER" || "LINUX_CONTAINER" || "LINUX_GPU_CONTAINER" || "ARM_CONTAINER" || "WINDOWS_SERVER_2019_CONTAINER" || "LINUX_LAMBDA_CONTAINER" || "ARM_LAMBDA_CONTAINER", + * // 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", + * // scalingConfiguration: { // ScalingConfigurationOutput + * // scalingType: "TARGET_TRACKING_SCALING", + * // targetTrackingScalingConfigs: [ // TargetTrackingScalingConfigurations + * // { // TargetTrackingScalingConfiguration + * // metricType: "FLEET_UTILIZATION_RATE", + * // targetValue: Number("double"), + * // }, + * // ], + * // maxCapacity: Number("int"), + * // desiredCapacity: Number("int"), + * // }, + * // tags: [ // TagList + * // { // Tag + * // key: "STRING_VALUE", + * // value: "STRING_VALUE", + * // }, + * // ], + * // }, + * // }; + * + * ``` + * + * @param UpdateFleetCommandInput - {@link UpdateFleetCommandInput} + * @returns {@link UpdateFleetCommandOutput} + * @see {@link UpdateFleetCommandInput} for command's `input` shape. + * @see {@link UpdateFleetCommandOutput} for command's `response` shape. + * @see {@link CodeBuildClientResolvedConfig | config} for CodeBuildClient's `config` shape. + * + * @throws {@link AccountLimitExceededException} (client fault) + *

An Amazon Web Services service limit was exceeded for the calling Amazon Web Services account.

+ * + * @throws {@link InvalidInputException} (client fault) + *

The input value that was provided is not valid.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

The specified Amazon Web Services resource cannot be found.

+ * + * @throws {@link CodeBuildServiceException} + *

Base exception class for all service exceptions from CodeBuild service.

+ * + */ +export class UpdateFleetCommand extends $Command + .classBuilder< + UpdateFleetCommandInput, + UpdateFleetCommandOutput, + CodeBuildClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep({ + ...commonParams, + }) + .m(function (this: any, Command: any, cs: any, config: CodeBuildClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("CodeBuild_20161006", "UpdateFleet", {}) + .n("CodeBuildClient", "UpdateFleetCommand") + .f(void 0, void 0) + .ser(se_UpdateFleetCommand) + .de(de_UpdateFleetCommand) + .build() {} diff --git a/clients/client-codebuild/src/commands/UpdateProjectCommand.ts b/clients/client-codebuild/src/commands/UpdateProjectCommand.ts index 236824649ae5..b6832c82c8d9 100644 --- a/clients/client-codebuild/src/commands/UpdateProjectCommand.ts +++ b/clients/client-codebuild/src/commands/UpdateProjectCommand.ts @@ -124,6 +124,9 @@ export interface UpdateProjectCommandOutput extends UpdateProjectOutput, __Metad * 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 @@ -288,6 +291,9 @@ export interface UpdateProjectCommandOutput extends UpdateProjectOutput, __Metad * // 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 diff --git a/clients/client-codebuild/src/commands/index.ts b/clients/client-codebuild/src/commands/index.ts index a04c4bc798ff..1f23728ba9fc 100644 --- a/clients/client-codebuild/src/commands/index.ts +++ b/clients/client-codebuild/src/commands/index.ts @@ -2,13 +2,16 @@ export * from "./BatchDeleteBuildsCommand"; export * from "./BatchGetBuildBatchesCommand"; export * from "./BatchGetBuildsCommand"; +export * from "./BatchGetFleetsCommand"; export * from "./BatchGetProjectsCommand"; export * from "./BatchGetReportGroupsCommand"; export * from "./BatchGetReportsCommand"; +export * from "./CreateFleetCommand"; export * from "./CreateProjectCommand"; export * from "./CreateReportGroupCommand"; export * from "./CreateWebhookCommand"; export * from "./DeleteBuildBatchCommand"; +export * from "./DeleteFleetCommand"; export * from "./DeleteProjectCommand"; export * from "./DeleteReportCommand"; export * from "./DeleteReportGroupCommand"; @@ -26,6 +29,7 @@ export * from "./ListBuildBatchesForProjectCommand"; export * from "./ListBuildsCommand"; export * from "./ListBuildsForProjectCommand"; export * from "./ListCuratedEnvironmentImagesCommand"; +export * from "./ListFleetsCommand"; export * from "./ListProjectsCommand"; export * from "./ListReportGroupsCommand"; export * from "./ListReportsCommand"; @@ -40,6 +44,7 @@ export * from "./StartBuildBatchCommand"; export * from "./StartBuildCommand"; export * from "./StopBuildBatchCommand"; export * from "./StopBuildCommand"; +export * from "./UpdateFleetCommand"; export * from "./UpdateProjectCommand"; export * from "./UpdateProjectVisibilityCommand"; export * from "./UpdateReportGroupCommand"; diff --git a/clients/client-codebuild/src/models/models_0.ts b/clients/client-codebuild/src/models/models_0.ts index 25f77455d6aa..b697bb3058d5 100644 --- a/clients/client-codebuild/src/models/models_0.ts +++ b/clients/client-codebuild/src/models/models_0.ts @@ -739,6 +739,20 @@ export interface EnvironmentVariable { type?: EnvironmentVariableType; } +/** + * @public + *

Information about the compute fleet of the build project. For more + * information, see Working + * with reserved capacity in CodeBuild.

+ */ +export interface ProjectFleet { + /** + * @public + *

Specifies the compute fleet ARN for the build project.

+ */ + fleetArn?: string; +} + /** * @public * @enum @@ -837,8 +851,7 @@ export interface ProjectEnvironment { * EU (Frankfurt).

* *
  • - *

    The environment type LINUX_CONTAINER with compute type - * build.general1.2xlarge is available only in regions + *

    The environment type LINUX_CONTAINER is available only in regions * US East (N. Virginia), US East (Ohio), US West (Oregon), * Canada (Central), EU (Ireland), EU (London), * EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Seoul), @@ -870,6 +883,9 @@ export interface ProjectEnvironment { * EU (Ireland).

    *
  • * + * + *

    If you're using compute fleets during project creation, type will be ignored.

    + *
    *

    For more information, see Build environment compute types in the CodeBuild * user guide.

    */ @@ -984,12 +1000,21 @@ export interface ProjectEnvironment { * memory and 8 vCPUs on ARM-based processors for builds.

    * * + * + *

    If you're using compute fleets during project creation, computeType will be ignored.

    + *
    *

    For more information, see Build Environment * Compute Types in the CodeBuild User Guide. *

    */ computeType: ComputeType | undefined; + /** + * @public + *

    A ProjectFleet object to use for this build project.

    + */ + fleet?: ProjectFleet; + /** * @public *

    A set of environment variables to make available to builds for this build @@ -2659,6 +2684,394 @@ export interface BatchGetBuildsOutput { buildsNotFound?: string[]; } +/** + * @public + */ +export interface BatchGetFleetsInput { + /** + * @public + *

    The names or ARNs of the compute fleets.

    + */ + names: string[] | undefined; +} + +/** + * @public + * @enum + */ +export const FleetScalingType = { + TARGET_TRACKING_SCALING: "TARGET_TRACKING_SCALING", +} as const; + +/** + * @public + */ +export type FleetScalingType = (typeof FleetScalingType)[keyof typeof FleetScalingType]; + +/** + * @public + * @enum + */ +export const FleetScalingMetricType = { + FLEET_UTILIZATION_RATE: "FLEET_UTILIZATION_RATE", +} as const; + +/** + * @public + */ +export type FleetScalingMetricType = (typeof FleetScalingMetricType)[keyof typeof FleetScalingMetricType]; + +/** + * @public + *

    Defines when a new instance is auto-scaled into the compute fleet.

    + */ +export interface TargetTrackingScalingConfiguration { + /** + * @public + *

    The metric type to determine auto-scaling.

    + */ + metricType?: FleetScalingMetricType; + + /** + * @public + *

    The value of metricType when to start scaling.

    + */ + targetValue?: number; +} + +/** + * @public + *

    The scaling configuration output of a compute fleet.

    + */ +export interface ScalingConfigurationOutput { + /** + * @public + *

    The scaling type for a compute fleet.

    + */ + scalingType?: FleetScalingType; + + /** + * @public + *

    A list of TargetTrackingScalingConfiguration objects.

    + */ + targetTrackingScalingConfigs?: TargetTrackingScalingConfiguration[]; + + /** + * @public + *

    The maximum number of instances in the fleet when auto-scaling.

    + */ + maxCapacity?: number; + + /** + * @public + *

    The desired number of instances in the fleet when auto-scaling.

    + */ + desiredCapacity?: number; +} + +/** + * @public + * @enum + */ +export const FleetContextCode = { + CREATE_FAILED: "CREATE_FAILED", + UPDATE_FAILED: "UPDATE_FAILED", +} as const; + +/** + * @public + */ +export type FleetContextCode = (typeof FleetContextCode)[keyof typeof FleetContextCode]; + +/** + * @public + * @enum + */ +export const FleetStatusCode = { + ACTIVE: "ACTIVE", + CREATE_FAILED: "CREATE_FAILED", + CREATING: "CREATING", + DELETING: "DELETING", + ROTATING: "ROTATING", + UPDATE_ROLLBACK_FAILED: "UPDATE_ROLLBACK_FAILED", + UPDATING: "UPDATING", +} as const; + +/** + * @public + */ +export type FleetStatusCode = (typeof FleetStatusCode)[keyof typeof FleetStatusCode]; + +/** + * @public + *

    The status of the compute fleet.

    + */ +export interface FleetStatus { + /** + * @public + *

    The status code of the compute fleet. Valid values include:

    + *
      + *
    • + *

      + * CREATING: The compute fleet is being created.

      + *
    • + *
    • + *

      + * UPDATING: The compute fleet is being updated.

      + *
    • + *
    • + *

      + * ROTATING: The compute fleet is being rotated.

      + *
    • + *
    • + *

      + * DELETING: The compute fleet is being deleted.

      + *
    • + *
    • + *

      + * CREATE_FAILED: The compute fleet has failed to create.

      + *
    • + *
    • + *

      + * UPDATE_ROLLBACK_FAILED: The compute fleet has failed to update and could not rollback to previous state.

      + *
    • + *
    • + *

      + * ACTIVE: The compute fleet has succeeded and is active.

      + *
    • + *
    + */ + statusCode?: FleetStatusCode; + + /** + * @public + *

    Additional information about a compute fleet. Valid values include:

    + *
      + *
    • + *

      + * CREATE_FAILED: The compute fleet has failed to create.

      + *
    • + *
    • + *

      + * UPDATE_FAILED: The compute fleet has failed to update.

      + *
    • + *
    + */ + context?: FleetContextCode; + + /** + * @public + *

    A message associated with the status of a compute fleet.

    + */ + message?: string; +} + +/** + * @public + *

    A tag, consisting of a key and a value.

    + *

    This tag is available for use by Amazon Web Services services that support tags in CodeBuild.

    + */ +export interface Tag { + /** + * @public + *

    The tag's key.

    + */ + key?: string; + + /** + * @public + *

    The tag's value.

    + */ + value?: string; +} + +/** + * @public + *

    A set of dedicated instances for your build environment.

    + */ +export interface Fleet { + /** + * @public + *

    The ARN of the compute fleet.

    + */ + arn?: string; + + /** + * @public + *

    The name of the compute fleet.

    + */ + name?: string; + + /** + * @public + *

    The ID of the compute fleet.

    + */ + id?: string; + + /** + * @public + *

    The time at which the compute fleet was created.

    + */ + created?: Date; + + /** + * @public + *

    The time at which the compute fleet was last modified.

    + */ + lastModified?: Date; + + /** + * @public + *

    The status of the compute fleet.

    + */ + status?: FleetStatus; + + /** + * @public + *

    The initial number of machines allocated to the compute fleet, which defines the number of builds that can run in parallel.

    + */ + baseCapacity?: number; + + /** + * @public + *

    The environment type of the compute fleet.

    + *
      + *
    • + *

      The environment type ARM_CONTAINER is available only in regions + * US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), + * Asia Pacific (Mumbai), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), + * EU (Frankfurt), and South America (São Paulo).

      + *
    • + *
    • + *

      The environment type LINUX_CONTAINER is available only in regions + * US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), + * EU (Frankfurt), Asia Pacific (Tokyo), + * Asia Pacific (Singapore), Asia Pacific (Sydney), South America (São Paulo), and + * Asia Pacific (Mumbai).

      + *
    • + *
    • + *

      The environment type LINUX_GPU_CONTAINER is available only in + * regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), + * EU (Frankfurt), Asia Pacific (Tokyo), and Asia Pacific (Sydney).

      + *
    • + *
    • + *

      The environment type WINDOWS_SERVER_2019_CONTAINER is available only in regions + * US East (N. Virginia), US East (Ohio), US West (Oregon), Asia Pacific (Sydney), + * Asia Pacific (Tokyo), Asia Pacific (Mumbai) and + * EU (Ireland).

      + *
    • + *
    • + *

      The environment type WINDOWS_SERVER_2022_CONTAINER is available only in regions + * US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), + * Asia Pacific (Sydney), Asia Pacific (Singapore), Asia Pacific (Tokyo), South America (São Paulo) and + * Asia Pacific (Mumbai).

      + *
    • + *
    + *

    For more information, see Build environment compute types in the CodeBuild + * user guide.

    + */ + environmentType?: EnvironmentType; + + /** + * @public + *

    Information about the compute resources the compute fleet uses. Available values + * include:

    + *
      + *
    • + *

      + * BUILD_GENERAL1_SMALL: Use up to 3 GB memory and 2 vCPUs for + * builds.

      + *
    • + *
    • + *

      + * BUILD_GENERAL1_MEDIUM: Use up to 7 GB memory and 4 vCPUs for + * builds.

      + *
    • + *
    • + *

      + * BUILD_GENERAL1_LARGE: Use up to 16 GB memory and 8 vCPUs for + * builds, depending on your environment type.

      + *
    • + *
    • + *

      + * BUILD_GENERAL1_XLARGE: Use up to 70 GB memory and 36 vCPUs for + * builds, depending on your environment type.

      + *
    • + *
    • + *

      + * BUILD_GENERAL1_2XLARGE: Use up to 145 GB memory, 72 vCPUs, and + * 824 GB of SSD storage for builds. This compute type supports Docker images up to + * 100 GB uncompressed.

      + *
    • + *
    + *

    If you use BUILD_GENERAL1_SMALL:

    + *
      + *
    • + *

      For environment type LINUX_CONTAINER, you can use up to 3 GB + * memory and 2 vCPUs for builds.

      + *
    • + *
    • + *

      For environment type LINUX_GPU_CONTAINER, you can use up to 16 + * GB memory, 4 vCPUs, and 1 NVIDIA A10G Tensor Core GPU for builds.

      + *
    • + *
    • + *

      For environment type ARM_CONTAINER, you can use up to 4 GB + * memory and 2 vCPUs on ARM-based processors for builds.

      + *
    • + *
    + *

    If you use BUILD_GENERAL1_LARGE:

    + *
      + *
    • + *

      For environment type LINUX_CONTAINER, you can use up to 15 GB + * memory and 8 vCPUs for builds.

      + *
    • + *
    • + *

      For environment type LINUX_GPU_CONTAINER, you can use up to 255 + * GB memory, 32 vCPUs, and 4 NVIDIA Tesla V100 GPUs for builds.

      + *
    • + *
    • + *

      For environment type ARM_CONTAINER, you can use up to 16 GB + * memory and 8 vCPUs on ARM-based processors for builds.

      + *
    • + *
    + *

    For more information, see Build environment + * compute types in the CodeBuild User Guide. + *

    + */ + computeType?: ComputeType; + + /** + * @public + *

    The scaling configuration of the compute fleet.

    + */ + scalingConfiguration?: ScalingConfigurationOutput; + + /** + * @public + *

    A list of tag key and value pairs associated with this compute fleet.

    + *

    These tags are available for use by Amazon Web Services services that support CodeBuild build project + * tags.

    + */ + tags?: Tag[]; +} + +/** + * @public + */ +export interface BatchGetFleetsOutput { + /** + * @public + *

    Information about the requested compute fleets.

    + */ + fleets?: Fleet[]; + + /** + * @public + *

    The names of compute fleets for which information could not be found.

    + */ + fleetsNotFound?: string[]; +} + /** * @public */ @@ -2969,25 +3382,6 @@ export const ProjectVisibilityType = { */ export type ProjectVisibilityType = (typeof ProjectVisibilityType)[keyof typeof ProjectVisibilityType]; -/** - * @public - *

    A tag, consisting of a key and a value.

    - *

    This tag is available for use by Amazon Web Services services that support tags in CodeBuild.

    - */ -export interface Tag { - /** - * @public - *

    The tag's key.

    - */ - key?: string; - - /** - * @public - *

    The tag's value.

    - */ - value?: string; -} - /** * @public * @enum @@ -3936,7 +4330,202 @@ export interface BuildBatchFilter { *

    The status of the batch builds to retrieve. Only batch builds that have this status will * be retrieved.

    */ - status?: StatusType; + status?: StatusType; +} + +/** + * @public + *

    The scaling configuration input of a compute fleet.

    + */ +export interface ScalingConfigurationInput { + /** + * @public + *

    The scaling type for a compute fleet.

    + */ + scalingType?: FleetScalingType; + + /** + * @public + *

    A list of TargetTrackingScalingConfiguration objects.

    + */ + targetTrackingScalingConfigs?: TargetTrackingScalingConfiguration[]; + + /** + * @public + *

    The maximum number of instances in the fleet when auto-scaling.

    + */ + maxCapacity?: number; +} + +/** + * @public + */ +export interface CreateFleetInput { + /** + * @public + *

    The name of the compute fleet.

    + */ + name: string | undefined; + + /** + * @public + *

    The initial number of machines allocated to the fleet, which defines the number of builds that can run in parallel.

    + */ + baseCapacity: number | undefined; + + /** + * @public + *

    The environment type of the compute fleet.

    + *
      + *
    • + *

      The environment type ARM_CONTAINER is available only in regions + * US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), + * Asia Pacific (Mumbai), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), + * EU (Frankfurt), and South America (São Paulo).

      + *
    • + *
    • + *

      The environment type LINUX_CONTAINER is available only in regions + * US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), + * EU (Frankfurt), Asia Pacific (Tokyo), + * Asia Pacific (Singapore), Asia Pacific (Sydney), South America (São Paulo), and + * Asia Pacific (Mumbai).

      + *
    • + *
    • + *

      The environment type LINUX_GPU_CONTAINER is available only in + * regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), + * EU (Frankfurt), Asia Pacific (Tokyo), and Asia Pacific (Sydney).

      + *
    • + *
    • + *

      The environment type WINDOWS_SERVER_2019_CONTAINER is available only in regions + * US East (N. Virginia), US East (Ohio), US West (Oregon), Asia Pacific (Sydney), + * Asia Pacific (Tokyo), Asia Pacific (Mumbai) and + * EU (Ireland).

      + *
    • + *
    • + *

      The environment type WINDOWS_SERVER_2022_CONTAINER is available only in regions + * US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), + * Asia Pacific (Sydney), Asia Pacific (Singapore), Asia Pacific (Tokyo), South America (São Paulo) and + * Asia Pacific (Mumbai).

      + *
    • + *
    + *

    For more information, see Build environment compute types in the CodeBuild + * user guide.

    + */ + environmentType: EnvironmentType | undefined; + + /** + * @public + *

    Information about the compute resources the compute fleet uses. Available values + * include:

    + *
      + *
    • + *

      + * BUILD_GENERAL1_SMALL: Use up to 3 GB memory and 2 vCPUs for + * builds.

      + *
    • + *
    • + *

      + * BUILD_GENERAL1_MEDIUM: Use up to 7 GB memory and 4 vCPUs for + * builds.

      + *
    • + *
    • + *

      + * BUILD_GENERAL1_LARGE: Use up to 16 GB memory and 8 vCPUs for + * builds, depending on your environment type.

      + *
    • + *
    • + *

      + * BUILD_GENERAL1_XLARGE: Use up to 70 GB memory and 36 vCPUs for + * builds, depending on your environment type.

      + *
    • + *
    • + *

      + * BUILD_GENERAL1_2XLARGE: Use up to 145 GB memory, 72 vCPUs, and + * 824 GB of SSD storage for builds. This compute type supports Docker images up to + * 100 GB uncompressed.

      + *
    • + *
    + *

    If you use BUILD_GENERAL1_SMALL:

    + *
      + *
    • + *

      For environment type LINUX_CONTAINER, you can use up to 3 GB + * memory and 2 vCPUs for builds.

      + *
    • + *
    • + *

      For environment type LINUX_GPU_CONTAINER, you can use up to 16 + * GB memory, 4 vCPUs, and 1 NVIDIA A10G Tensor Core GPU for builds.

      + *
    • + *
    • + *

      For environment type ARM_CONTAINER, you can use up to 4 GB + * memory and 2 vCPUs on ARM-based processors for builds.

      + *
    • + *
    + *

    If you use BUILD_GENERAL1_LARGE:

    + *
      + *
    • + *

      For environment type LINUX_CONTAINER, you can use up to 15 GB + * memory and 8 vCPUs for builds.

      + *
    • + *
    • + *

      For environment type LINUX_GPU_CONTAINER, you can use up to 255 + * GB memory, 32 vCPUs, and 4 NVIDIA Tesla V100 GPUs for builds.

      + *
    • + *
    • + *

      For environment type ARM_CONTAINER, you can use up to 16 GB + * memory and 8 vCPUs on ARM-based processors for builds.

      + *
    • + *
    + *

    For more information, see Build environment + * compute types in the CodeBuild User Guide. + *

    + */ + computeType: ComputeType | undefined; + + /** + * @public + *

    The scaling configuration of the compute fleet.

    + */ + scalingConfiguration?: ScalingConfigurationInput; + + /** + * @public + *

    A list of tag key and value pairs associated with this compute fleet.

    + *

    These tags are available for use by Amazon Web Services services that support CodeBuild build project + * tags.

    + */ + tags?: Tag[]; +} + +/** + * @public + */ +export interface CreateFleetOutput { + /** + * @public + *

    Information about the compute fleet

    + */ + fleet?: Fleet; +} + +/** + * @public + *

    The specified Amazon Web Services resource cannot be created, because an Amazon Web Services resource with the same + * settings already exists.

    + */ +export class ResourceAlreadyExistsException extends __BaseException { + readonly name: "ResourceAlreadyExistsException" = "ResourceAlreadyExistsException"; + readonly $fault: "client" = "client"; + /** + * @internal + */ + constructor(opts: __ExceptionOptionType) { + super({ + name: "ResourceAlreadyExistsException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, ResourceAlreadyExistsException.prototype); + } } /** @@ -4136,27 +4725,6 @@ export interface CreateProjectOutput { project?: Project; } -/** - * @public - *

    The specified Amazon Web Services resource cannot be created, because an Amazon Web Services resource with the same - * settings already exists.

    - */ -export class ResourceAlreadyExistsException extends __BaseException { - readonly name: "ResourceAlreadyExistsException" = "ResourceAlreadyExistsException"; - readonly $fault: "client" = "client"; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType) { - super({ - name: "ResourceAlreadyExistsException", - $fault: "client", - ...opts, - }); - Object.setPrototypeOf(this, ResourceAlreadyExistsException.prototype); - } -} - /** * @public */ @@ -4336,6 +4904,22 @@ export interface DeleteBuildBatchOutput { buildsNotDeleted?: BuildNotDeleted[]; } +/** + * @public + */ +export interface DeleteFleetInput { + /** + * @public + *

    The ARN of the compute fleet.

    + */ + arn: string | undefined; +} + +/** + * @public + */ +export interface DeleteFleetOutput {} + /** * @public */ @@ -5436,6 +6020,106 @@ export interface ListCuratedEnvironmentImagesOutput { platforms?: EnvironmentPlatform[]; } +/** + * @public + * @enum + */ +export const FleetSortByType = { + CREATED_TIME: "CREATED_TIME", + LAST_MODIFIED_TIME: "LAST_MODIFIED_TIME", + NAME: "NAME", +} as const; + +/** + * @public + */ +export type FleetSortByType = (typeof FleetSortByType)[keyof typeof FleetSortByType]; + +/** + * @public + */ +export interface ListFleetsInput { + /** + * @public + *

    During a previous call, if there are more than 100 items in the list, only the first + * 100 items are returned, along with a unique string called a + * nextToken. To get the next batch of items in the list, call + * this operation again, adding the next token to the call. To get all of the items in the + * list, keep calling this operation with each subsequent next token that is returned, + * until no more next tokens are returned.

    + */ + nextToken?: string; + + /** + * @public + *

    The maximum number of paginated compute fleets returned per response. Use + * nextToken to iterate pages in the list of returned compute fleets.

    + */ + maxResults?: number; + + /** + * @public + *

    The order in which to list compute fleets. Valid values include:

    + *
      + *
    • + *

      + * ASCENDING: List in ascending order.

      + *
    • + *
    • + *

      + * DESCENDING: List in descending order.

      + *
    • + *
    + *

    Use sortBy to specify the criterion to be used to list compute fleet + * names.

    + */ + sortOrder?: SortOrderType; + + /** + * @public + *

    The criterion to be used to list compute fleet names. Valid values include:

    + *
      + *
    • + *

      + * CREATED_TIME: List based on when each compute fleet was + * created.

      + *
    • + *
    • + *

      + * LAST_MODIFIED_TIME: List based on when information about each + * compute fleet was last changed.

      + *
    • + *
    • + *

      + * NAME: List based on each compute fleet's name.

      + *
    • + *
    + *

    Use sortOrder to specify in what order to list the compute fleet names + * based on the preceding criteria.

    + */ + sortBy?: FleetSortByType; +} + +/** + * @public + */ +export interface ListFleetsOutput { + /** + * @public + *

    If there are more than 100 items in the list, only the first 100 items are returned, + * along with a unique string called a nextToken. To get the next + * batch of items in the list, call this operation again, adding the next token to the + * call.

    + */ + nextToken?: string; + + /** + * @public + *

    The list of compute fleet names.

    + */ + fleets?: string[]; +} + /** * @public * @enum @@ -6420,6 +7104,13 @@ export interface StartBuildInput { * Viewing a running build in Session Manager.

    */ debugSessionEnabled?: boolean; + + /** + * @public + *

    A ProjectFleet object specified for this build that overrides the one defined in the + * build project.

    + */ + fleetOverride?: ProjectFleet; } /** @@ -6776,6 +7467,157 @@ export interface StopBuildBatchOutput { buildBatch?: BuildBatch; } +/** + * @public + */ +export interface UpdateFleetInput { + /** + * @public + *

    The ARN of the compute fleet.

    + */ + arn: string | undefined; + + /** + * @public + *

    The initial number of machines allocated to the compute fleet, which defines the number of builds that can + * run in parallel.

    + */ + baseCapacity?: number; + + /** + * @public + *

    The environment type of the compute fleet.

    + *
      + *
    • + *

      The environment type ARM_CONTAINER is available only in regions + * US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), + * Asia Pacific (Mumbai), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), + * EU (Frankfurt), and South America (São Paulo).

      + *
    • + *
    • + *

      The environment type LINUX_CONTAINER is available only in regions + * US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), + * EU (Frankfurt), Asia Pacific (Tokyo), + * Asia Pacific (Singapore), Asia Pacific (Sydney), South America (São Paulo), and + * Asia Pacific (Mumbai).

      + *
    • + *
    • + *

      The environment type LINUX_GPU_CONTAINER is available only in + * regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), + * EU (Frankfurt), Asia Pacific (Tokyo), and Asia Pacific (Sydney).

      + *
    • + *
    • + *

      The environment type WINDOWS_SERVER_2019_CONTAINER is available only in regions + * US East (N. Virginia), US East (Ohio), US West (Oregon), Asia Pacific (Sydney), + * Asia Pacific (Tokyo), Asia Pacific (Mumbai) and + * EU (Ireland).

      + *
    • + *
    • + *

      The environment type WINDOWS_SERVER_2022_CONTAINER is available only in regions + * US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), + * Asia Pacific (Sydney), Asia Pacific (Singapore), Asia Pacific (Tokyo), South America (São Paulo) and + * Asia Pacific (Mumbai).

      + *
    • + *
    + *

    For more information, see Build environment compute types in the CodeBuild + * user guide.

    + */ + environmentType?: EnvironmentType; + + /** + * @public + *

    Information about the compute resources the compute fleet uses. Available values + * include:

    + *
      + *
    • + *

      + * BUILD_GENERAL1_SMALL: Use up to 3 GB memory and 2 vCPUs for + * builds.

      + *
    • + *
    • + *

      + * BUILD_GENERAL1_MEDIUM: Use up to 7 GB memory and 4 vCPUs for + * builds.

      + *
    • + *
    • + *

      + * BUILD_GENERAL1_LARGE: Use up to 16 GB memory and 8 vCPUs for + * builds, depending on your environment type.

      + *
    • + *
    • + *

      + * BUILD_GENERAL1_XLARGE: Use up to 70 GB memory and 36 vCPUs for + * builds, depending on your environment type.

      + *
    • + *
    • + *

      + * BUILD_GENERAL1_2XLARGE: Use up to 145 GB memory, 72 vCPUs, and + * 824 GB of SSD storage for builds. This compute type supports Docker images up to + * 100 GB uncompressed.

      + *
    • + *
    + *

    If you use BUILD_GENERAL1_SMALL:

    + *
      + *
    • + *

      For environment type LINUX_CONTAINER, you can use up to 3 GB + * memory and 2 vCPUs for builds.

      + *
    • + *
    • + *

      For environment type LINUX_GPU_CONTAINER, you can use up to 16 + * GB memory, 4 vCPUs, and 1 NVIDIA A10G Tensor Core GPU for builds.

      + *
    • + *
    • + *

      For environment type ARM_CONTAINER, you can use up to 4 GB + * memory and 2 vCPUs on ARM-based processors for builds.

      + *
    • + *
    + *

    If you use BUILD_GENERAL1_LARGE:

    + *
      + *
    • + *

      For environment type LINUX_CONTAINER, you can use up to 15 GB + * memory and 8 vCPUs for builds.

      + *
    • + *
    • + *

      For environment type LINUX_GPU_CONTAINER, you can use up to 255 + * GB memory, 32 vCPUs, and 4 NVIDIA Tesla V100 GPUs for builds.

      + *
    • + *
    • + *

      For environment type ARM_CONTAINER, you can use up to 16 GB + * memory and 8 vCPUs on ARM-based processors for builds.

      + *
    • + *
    + *

    For more information, see Build environment + * compute types in the CodeBuild User Guide. + *

    + */ + computeType?: ComputeType; + + /** + * @public + *

    The scaling configuration of the compute fleet.

    + */ + scalingConfiguration?: ScalingConfigurationInput; + + /** + * @public + *

    A list of tag key and value pairs associated with this compute fleet.

    + *

    These tags are available for use by Amazon Web Services services that support CodeBuild build project + * tags.

    + */ + tags?: Tag[]; +} + +/** + * @public + */ +export interface UpdateFleetOutput { + /** + * @public + *

    A Fleet object.

    + */ + fleet?: Fleet; +} + /** * @public */ @@ -7164,3 +8006,11 @@ export const ImportSourceCredentialsInputFilterSensitiveLog = (obj: ImportSource ...obj, ...(obj.token && { token: SENSITIVE_STRING }), }); + +/** + * @internal + */ +export const ListFleetsInputFilterSensitiveLog = (obj: ListFleetsInput): any => ({ + ...obj, + ...(obj.nextToken && { nextToken: SENSITIVE_STRING }), +}); diff --git a/clients/client-codebuild/src/pagination/ListFleetsPaginator.ts b/clients/client-codebuild/src/pagination/ListFleetsPaginator.ts new file mode 100644 index 000000000000..81a565ac20d3 --- /dev/null +++ b/clients/client-codebuild/src/pagination/ListFleetsPaginator.ts @@ -0,0 +1,20 @@ +// smithy-typescript generated code +import { createPaginator } from "@smithy/core"; +import { Paginator } from "@smithy/types"; + +import { CodeBuildClient } from "../CodeBuildClient"; +import { ListFleetsCommand, ListFleetsCommandInput, ListFleetsCommandOutput } from "../commands/ListFleetsCommand"; +import { CodeBuildPaginationConfiguration } from "./Interfaces"; + +/** + * @public + */ +export const paginateListFleets: ( + config: CodeBuildPaginationConfiguration, + input: ListFleetsCommandInput, + ...rest: any[] +) => Paginator = createPaginator< + CodeBuildPaginationConfiguration, + ListFleetsCommandInput, + ListFleetsCommandOutput +>(CodeBuildClient, ListFleetsCommand, "nextToken", "nextToken", "maxResults"); diff --git a/clients/client-codebuild/src/pagination/index.ts b/clients/client-codebuild/src/pagination/index.ts index 30e01a3ef96a..698d1355f8f2 100644 --- a/clients/client-codebuild/src/pagination/index.ts +++ b/clients/client-codebuild/src/pagination/index.ts @@ -7,6 +7,7 @@ export * from "./ListBuildBatchesForProjectPaginator"; export * from "./ListBuildBatchesPaginator"; export * from "./ListBuildsForProjectPaginator"; export * from "./ListBuildsPaginator"; +export * from "./ListFleetsPaginator"; export * from "./ListProjectsPaginator"; export * from "./ListReportGroupsPaginator"; export * from "./ListReportsForReportGroupPaginator"; diff --git a/clients/client-codebuild/src/protocols/Aws_json1_1.ts b/clients/client-codebuild/src/protocols/Aws_json1_1.ts index 879b4aae81d8..6ad81f83b14b 100644 --- a/clients/client-codebuild/src/protocols/Aws_json1_1.ts +++ b/clients/client-codebuild/src/protocols/Aws_json1_1.ts @@ -29,16 +29,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"; @@ -83,6 +86,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"; @@ -106,6 +110,7 @@ import { StartBuildBatchCommandInput, StartBuildBatchCommandOutput } from "../co 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, @@ -121,6 +126,8 @@ import { BatchGetBuildBatchesOutput, BatchGetBuildsInput, BatchGetBuildsOutput, + BatchGetFleetsInput, + BatchGetFleetsOutput, BatchGetProjectsInput, BatchGetProjectsOutput, BatchGetReportGroupsInput, @@ -140,6 +147,8 @@ import { CloudWatchLogsConfig, CodeCoverage, CodeCoverageReportSummary, + CreateFleetInput, + CreateFleetOutput, CreateProjectInput, CreateProjectOutput, CreateReportGroupInput, @@ -147,6 +156,7 @@ import { CreateWebhookInput, CreateWebhookOutput, DeleteBuildBatchInput, + DeleteFleetInput, DeleteProjectInput, DeleteReportGroupInput, DeleteReportInput, @@ -158,6 +168,7 @@ import { DescribeTestCasesInput, DescribeTestCasesOutput, EnvironmentVariable, + Fleet, GetReportGroupTrendInput, GetResourcePolicyInput, GitSubmodulesConfig, @@ -169,6 +180,7 @@ import { ListBuildsForProjectInput, ListBuildsInput, ListCuratedEnvironmentImagesInput, + ListFleetsInput, ListProjectsInput, ListReportGroupsInput, ListReportsForReportGroupInput, @@ -184,6 +196,7 @@ import { ProjectCache, ProjectEnvironment, ProjectFileSystemLocation, + ProjectFleet, ProjectSource, ProjectSourceVersion, PutResourcePolicyInput, @@ -200,6 +213,8 @@ import { RetryBuildOutput, S3LogsConfig, S3ReportExportConfig, + ScalingConfigurationInput, + ScalingConfigurationOutput, SourceAuth, StartBuildBatchInput, StartBuildBatchOutput, @@ -210,8 +225,11 @@ import { StopBuildInput, StopBuildOutput, Tag, + TargetTrackingScalingConfiguration, TestCase, TestCaseFilter, + UpdateFleetInput, + UpdateFleetOutput, UpdateProjectInput, UpdateProjectOutput, UpdateProjectVisibilityInput, @@ -263,6 +281,19 @@ export const se_BatchGetBuildsCommand = async ( return buildHttpRpcRequest(context, headers, "/", undefined, body); }; +/** + * serializeAws_json1_1BatchGetFleetsCommand + */ +export const se_BatchGetFleetsCommand = async ( + input: BatchGetFleetsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("BatchGetFleets"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + /** * serializeAws_json1_1BatchGetProjectsCommand */ @@ -302,6 +333,19 @@ export const se_BatchGetReportsCommand = async ( return buildHttpRpcRequest(context, headers, "/", undefined, body); }; +/** + * serializeAws_json1_1CreateFleetCommand + */ +export const se_CreateFleetCommand = async ( + input: CreateFleetCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("CreateFleet"); + let body: any; + body = JSON.stringify(se_CreateFleetInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + /** * serializeAws_json1_1CreateProjectCommand */ @@ -354,6 +398,19 @@ export const se_DeleteBuildBatchCommand = async ( return buildHttpRpcRequest(context, headers, "/", undefined, body); }; +/** + * serializeAws_json1_1DeleteFleetCommand + */ +export const se_DeleteFleetCommand = async ( + input: DeleteFleetCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("DeleteFleet"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + /** * serializeAws_json1_1DeleteProjectCommand */ @@ -575,6 +632,19 @@ export const se_ListCuratedEnvironmentImagesCommand = async ( return buildHttpRpcRequest(context, headers, "/", undefined, body); }; +/** + * serializeAws_json1_1ListFleetsCommand + */ +export const se_ListFleetsCommand = async ( + input: ListFleetsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("ListFleets"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + /** * serializeAws_json1_1ListProjectsCommand */ @@ -757,6 +827,19 @@ export const se_StopBuildBatchCommand = async ( return buildHttpRpcRequest(context, headers, "/", undefined, body); }; +/** + * serializeAws_json1_1UpdateFleetCommand + */ +export const se_UpdateFleetCommand = async ( + input: UpdateFleetCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("UpdateFleet"); + let body: any; + body = JSON.stringify(se_UpdateFleetInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + /** * serializeAws_json1_1UpdateProjectCommand */ @@ -947,6 +1030,52 @@ const de_BatchGetBuildsCommandError = async ( } }; +/** + * deserializeAws_json1_1BatchGetFleetsCommand + */ +export const de_BatchGetFleetsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_BatchGetFleetsCommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = de_BatchGetFleetsOutput(data, context); + const response: BatchGetFleetsCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1BatchGetFleetsCommandError + */ +const de_BatchGetFleetsCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InvalidInputException": + case "com.amazonaws.codebuild#InvalidInputException": + throw await de_InvalidInputExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + /** * deserializeAws_json1_1BatchGetProjectsCommand */ @@ -1085,6 +1214,58 @@ const de_BatchGetReportsCommandError = async ( } }; +/** + * deserializeAws_json1_1CreateFleetCommand + */ +export const de_CreateFleetCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CreateFleetCommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = de_CreateFleetOutput(data, context); + const response: CreateFleetCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1CreateFleetCommandError + */ +const de_CreateFleetCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccountLimitExceededException": + case "com.amazonaws.codebuild#AccountLimitExceededException": + throw await de_AccountLimitExceededExceptionRes(parsedOutput, context); + case "InvalidInputException": + case "com.amazonaws.codebuild#InvalidInputException": + throw await de_InvalidInputExceptionRes(parsedOutput, context); + case "ResourceAlreadyExistsException": + case "com.amazonaws.codebuild#ResourceAlreadyExistsException": + throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + /** * deserializeAws_json1_1CreateProjectCommand */ @@ -1290,6 +1471,52 @@ const de_DeleteBuildBatchCommandError = async ( } }; +/** + * deserializeAws_json1_1DeleteFleetCommand + */ +export const de_DeleteFleetCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_DeleteFleetCommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: DeleteFleetCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1DeleteFleetCommandError + */ +const de_DeleteFleetCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InvalidInputException": + case "com.amazonaws.codebuild#InvalidInputException": + throw await de_InvalidInputExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + /** * deserializeAws_json1_1DeleteProjectCommand */ @@ -2099,6 +2326,52 @@ const de_ListCuratedEnvironmentImagesCommandError = async ( }); }; +/** + * deserializeAws_json1_1ListFleetsCommand + */ +export const de_ListFleetsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_ListFleetsCommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: ListFleetsCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1ListFleetsCommandError + */ +const de_ListFleetsCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InvalidInputException": + case "com.amazonaws.codebuild#InvalidInputException": + throw await de_InvalidInputExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + /** * deserializeAws_json1_1ListProjectsCommand */ @@ -2773,6 +3046,58 @@ const de_StopBuildBatchCommandError = async ( } }; +/** + * deserializeAws_json1_1UpdateFleetCommand + */ +export const de_UpdateFleetCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_UpdateFleetCommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = de_UpdateFleetOutput(data, context); + const response: UpdateFleetCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1UpdateFleetCommandError + */ +const de_UpdateFleetCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccountLimitExceededException": + case "com.amazonaws.codebuild#AccountLimitExceededException": + throw await de_AccountLimitExceededExceptionRes(parsedOutput, context); + case "InvalidInputException": + case "com.amazonaws.codebuild#InvalidInputException": + throw await de_InvalidInputExceptionRes(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.codebuild#ResourceNotFoundException": + throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + /** * deserializeAws_json1_1UpdateProjectCommand */ @@ -3058,6 +3383,8 @@ const de_ResourceNotFoundExceptionRes = async ( // se_BatchGetBuildsInput omitted. +// se_BatchGetFleetsInput omitted. + // se_BatchGetProjectsInput omitted. // se_BatchGetReportGroupsInput omitted. @@ -3078,6 +3405,20 @@ const de_ResourceNotFoundExceptionRes = async ( // se_ComputeTypesAllowed omitted. +/** + * serializeAws_json1_1CreateFleetInput + */ +const se_CreateFleetInput = (input: CreateFleetInput, context: __SerdeContext): any => { + return take(input, { + baseCapacity: [], + computeType: [], + environmentType: [], + name: [], + scalingConfiguration: (_) => se_ScalingConfigurationInput(_, context), + tags: _json, + }); +}; + // se_CreateProjectInput omitted. // se_CreateReportGroupInput omitted. @@ -3086,6 +3427,8 @@ const de_ResourceNotFoundExceptionRes = async ( // se_DeleteBuildBatchInput omitted. +// se_DeleteFleetInput omitted. + // se_DeleteProjectInput omitted. // se_DeleteReportGroupInput omitted. @@ -3123,6 +3466,8 @@ const se_DescribeCodeCoveragesInput = (input: DescribeCodeCoveragesInput, contex // se_FilterGroups omitted. +// se_FleetNames omitted. + // se_GetReportGroupTrendInput omitted. // se_GetResourcePolicyInput omitted. @@ -3143,6 +3488,8 @@ const se_DescribeCodeCoveragesInput = (input: DescribeCodeCoveragesInput, contex // se_ListCuratedEnvironmentImagesInput omitted. +// se_ListFleetsInput omitted. + // se_ListProjectsInput omitted. // se_ListReportGroupsInput omitted. @@ -3175,6 +3522,8 @@ const se_DescribeCodeCoveragesInput = (input: DescribeCodeCoveragesInput, contex // se_ProjectFileSystemLocations omitted. +// se_ProjectFleet omitted. + // se_ProjectNames omitted. // se_ProjectSecondarySourceVersions omitted. @@ -3205,6 +3554,17 @@ const se_DescribeCodeCoveragesInput = (input: DescribeCodeCoveragesInput, contex // se_S3ReportExportConfig omitted. +/** + * serializeAws_json1_1ScalingConfigurationInput + */ +const se_ScalingConfigurationInput = (input: ScalingConfigurationInput, context: __SerdeContext): any => { + return take(input, { + maxCapacity: [], + scalingType: [], + targetTrackingScalingConfigs: (_) => se_TargetTrackingScalingConfigurations(_, context), + }); +}; + // se_SecurityGroupIds omitted. // se_SourceAuth omitted. @@ -3223,8 +3583,49 @@ const se_DescribeCodeCoveragesInput = (input: DescribeCodeCoveragesInput, contex // se_TagList omitted. +/** + * serializeAws_json1_1TargetTrackingScalingConfiguration + */ +const se_TargetTrackingScalingConfiguration = ( + input: TargetTrackingScalingConfiguration, + context: __SerdeContext +): any => { + return take(input, { + metricType: [], + targetValue: __serializeFloat, + }); +}; + +/** + * serializeAws_json1_1TargetTrackingScalingConfigurations + */ +const se_TargetTrackingScalingConfigurations = ( + input: TargetTrackingScalingConfiguration[], + context: __SerdeContext +): any => { + return input + .filter((e: any) => e != null) + .map((entry) => { + return se_TargetTrackingScalingConfiguration(entry, context); + }); +}; + // se_TestCaseFilter omitted. +/** + * serializeAws_json1_1UpdateFleetInput + */ +const se_UpdateFleetInput = (input: UpdateFleetInput, context: __SerdeContext): any => { + return take(input, { + arn: [], + baseCapacity: [], + computeType: [], + environmentType: [], + scalingConfiguration: (_) => se_ScalingConfigurationInput(_, context), + tags: _json, + }); +}; + // se_UpdateProjectInput omitted. // se_UpdateProjectVisibilityInput omitted. @@ -3261,6 +3662,16 @@ const de_BatchGetBuildsOutput = (output: any, context: __SerdeContext): BatchGet }) as any; }; +/** + * deserializeAws_json1_1BatchGetFleetsOutput + */ +const de_BatchGetFleetsOutput = (output: any, context: __SerdeContext): BatchGetFleetsOutput => { + return take(output, { + fleets: (_: any) => de_Fleets(_, context), + fleetsNotFound: _json, + }) as any; +}; + /** * deserializeAws_json1_1BatchGetProjectsOutput */ @@ -3561,6 +3972,15 @@ const de_CodeCoverages = (output: any, context: __SerdeContext): CodeCoverage[] // de_ComputeTypesAllowed omitted. +/** + * deserializeAws_json1_1CreateFleetOutput + */ +const de_CreateFleetOutput = (output: any, context: __SerdeContext): CreateFleetOutput => { + return take(output, { + fleet: (_: any) => de_Fleet(_, context), + }) as any; +}; + /** * deserializeAws_json1_1CreateProjectOutput */ @@ -3592,6 +4012,8 @@ const de_CreateWebhookOutput = (output: any, context: __SerdeContext): CreateWeb // de_DeleteBuildBatchOutput omitted. +// de_DeleteFleetOutput omitted. + // de_DeleteProjectOutput omitted. // de_DeleteReportGroupOutput omitted. @@ -3648,6 +4070,43 @@ const de_DescribeTestCasesOutput = (output: any, context: __SerdeContext): Descr // de_FilterGroups omitted. +/** + * deserializeAws_json1_1Fleet + */ +const de_Fleet = (output: any, context: __SerdeContext): Fleet => { + return take(output, { + arn: __expectString, + baseCapacity: __expectInt32, + computeType: __expectString, + created: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), + environmentType: __expectString, + id: __expectString, + lastModified: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), + name: __expectString, + scalingConfiguration: (_: any) => de_ScalingConfigurationOutput(_, context), + status: _json, + tags: _json, + }) as any; +}; + +// de_FleetArns omitted. + +// de_FleetNames omitted. + +/** + * deserializeAws_json1_1Fleets + */ +const de_Fleets = (output: any, context: __SerdeContext): Fleet[] => { + const retVal = (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return de_Fleet(entry, context); + }); + return retVal; +}; + +// de_FleetStatus omitted. + // de_GetReportGroupTrendOutput omitted. // de_GetResourcePolicyOutput omitted. @@ -3674,6 +4133,8 @@ const de_DescribeTestCasesOutput = (output: any, context: __SerdeContext): Descr // de_ListCuratedEnvironmentImagesOutput omitted. +// de_ListFleetsOutput omitted. + // de_ListProjectsOutput omitted. // de_ListReportGroupsOutput omitted. @@ -3756,6 +4217,8 @@ const de_Project = (output: any, context: __SerdeContext): Project => { // de_ProjectFileSystemLocations omitted. +// de_ProjectFleet omitted. + // de_ProjectNames omitted. /** @@ -3886,6 +4349,18 @@ const de_RetryBuildOutput = (output: any, context: __SerdeContext): RetryBuildOu // de_S3ReportExportConfig omitted. +/** + * deserializeAws_json1_1ScalingConfigurationOutput + */ +const de_ScalingConfigurationOutput = (output: any, context: __SerdeContext): ScalingConfigurationOutput => { + return take(output, { + desiredCapacity: __expectInt32, + maxCapacity: __expectInt32, + scalingType: __expectString, + targetTrackingScalingConfigs: (_: any) => de_TargetTrackingScalingConfigurations(_, context), + }) as any; +}; + // de_SecurityGroupIds omitted. // de_SourceAuth omitted. @@ -3936,6 +4411,34 @@ const de_StopBuildOutput = (output: any, context: __SerdeContext): StopBuildOutp // de_TagList omitted. +/** + * deserializeAws_json1_1TargetTrackingScalingConfiguration + */ +const de_TargetTrackingScalingConfiguration = ( + output: any, + context: __SerdeContext +): TargetTrackingScalingConfiguration => { + return take(output, { + metricType: __expectString, + targetValue: __limitedParseDouble, + }) as any; +}; + +/** + * deserializeAws_json1_1TargetTrackingScalingConfigurations + */ +const de_TargetTrackingScalingConfigurations = ( + output: any, + context: __SerdeContext +): TargetTrackingScalingConfiguration[] => { + const retVal = (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return de_TargetTrackingScalingConfiguration(entry, context); + }); + return retVal; +}; + /** * deserializeAws_json1_1TestCase */ @@ -3966,6 +4469,15 @@ const de_TestCases = (output: any, context: __SerdeContext): TestCase[] => { // de_TestReportSummary omitted. +/** + * deserializeAws_json1_1UpdateFleetOutput + */ +const de_UpdateFleetOutput = (output: any, context: __SerdeContext): UpdateFleetOutput => { + return take(output, { + fleet: (_: any) => de_Fleet(_, context), + }) as any; +}; + /** * deserializeAws_json1_1UpdateProjectOutput */ diff --git a/codegen/sdk-codegen/aws-models/codebuild.json b/codegen/sdk-codegen/aws-models/codebuild.json index 960aa34ad363..5c78f9b05675 100644 --- a/codegen/sdk-codegen/aws-models/codebuild.json +++ b/codegen/sdk-codegen/aws-models/codebuild.json @@ -277,6 +277,58 @@ "smithy.api#output": {} } }, + "com.amazonaws.codebuild#BatchGetFleets": { + "type": "operation", + "input": { + "target": "com.amazonaws.codebuild#BatchGetFleetsInput" + }, + "output": { + "target": "com.amazonaws.codebuild#BatchGetFleetsOutput" + }, + "errors": [ + { + "target": "com.amazonaws.codebuild#InvalidInputException" + } + ], + "traits": { + "smithy.api#documentation": "

    Gets information about one or more compute fleets.

    " + } + }, + "com.amazonaws.codebuild#BatchGetFleetsInput": { + "type": "structure", + "members": { + "names": { + "target": "com.amazonaws.codebuild#FleetNames", + "traits": { + "smithy.api#documentation": "

    The names or ARNs of the compute fleets.

    ", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.codebuild#BatchGetFleetsOutput": { + "type": "structure", + "members": { + "fleets": { + "target": "com.amazonaws.codebuild#Fleets", + "traits": { + "smithy.api#documentation": "

    Information about the requested compute fleets.

    " + } + }, + "fleetsNotFound": { + "target": "com.amazonaws.codebuild#FleetNames", + "traits": { + "smithy.api#documentation": "

    The names of compute fleets for which information could not be found.

    " + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.codebuild#BatchGetProjects": { "type": "operation", "input": { @@ -1434,6 +1486,9 @@ { "target": "com.amazonaws.codebuild#BatchGetBuilds" }, + { + "target": "com.amazonaws.codebuild#BatchGetFleets" + }, { "target": "com.amazonaws.codebuild#BatchGetProjects" }, @@ -1443,6 +1498,9 @@ { "target": "com.amazonaws.codebuild#BatchGetReports" }, + { + "target": "com.amazonaws.codebuild#CreateFleet" + }, { "target": "com.amazonaws.codebuild#CreateProject" }, @@ -1455,6 +1513,9 @@ { "target": "com.amazonaws.codebuild#DeleteBuildBatch" }, + { + "target": "com.amazonaws.codebuild#DeleteFleet" + }, { "target": "com.amazonaws.codebuild#DeleteProject" }, @@ -1506,6 +1567,9 @@ { "target": "com.amazonaws.codebuild#ListCuratedEnvironmentImages" }, + { + "target": "com.amazonaws.codebuild#ListFleets" + }, { "target": "com.amazonaws.codebuild#ListProjects" }, @@ -1548,6 +1612,9 @@ { "target": "com.amazonaws.codebuild#StopBuildBatch" }, + { + "target": "com.amazonaws.codebuild#UpdateFleet" + }, { "target": "com.amazonaws.codebuild#UpdateProject" }, @@ -2745,6 +2812,91 @@ "target": "com.amazonaws.codebuild#NonEmptyString" } }, + "com.amazonaws.codebuild#CreateFleet": { + "type": "operation", + "input": { + "target": "com.amazonaws.codebuild#CreateFleetInput" + }, + "output": { + "target": "com.amazonaws.codebuild#CreateFleetOutput" + }, + "errors": [ + { + "target": "com.amazonaws.codebuild#AccountLimitExceededException" + }, + { + "target": "com.amazonaws.codebuild#InvalidInputException" + }, + { + "target": "com.amazonaws.codebuild#ResourceAlreadyExistsException" + } + ], + "traits": { + "smithy.api#documentation": "

    Creates a compute fleet.

    " + } + }, + "com.amazonaws.codebuild#CreateFleetInput": { + "type": "structure", + "members": { + "name": { + "target": "com.amazonaws.codebuild#FleetName", + "traits": { + "smithy.api#documentation": "

    The name of the compute fleet.

    ", + "smithy.api#required": {} + } + }, + "baseCapacity": { + "target": "com.amazonaws.codebuild#FleetCapacity", + "traits": { + "smithy.api#documentation": "

    The initial number of machines allocated to the fleet, which defines the number of builds that can run in parallel.

    ", + "smithy.api#required": {} + } + }, + "environmentType": { + "target": "com.amazonaws.codebuild#EnvironmentType", + "traits": { + "smithy.api#documentation": "

    The environment type of the compute fleet.

    \n
      \n
    • \n

      The environment type ARM_CONTAINER is available only in regions\n US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland),\n Asia Pacific (Mumbai), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), \n EU (Frankfurt), and South America (São Paulo).

      \n
    • \n
    • \n

      The environment type LINUX_CONTAINER is available only in regions\n US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), \n EU (Frankfurt), Asia Pacific (Tokyo),\n Asia Pacific (Singapore), Asia Pacific (Sydney), South America (São Paulo), and\n Asia Pacific (Mumbai).

      \n
    • \n
    • \n

      The environment type LINUX_GPU_CONTAINER is available only in\n regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), \n EU (Frankfurt), Asia Pacific (Tokyo), and Asia Pacific (Sydney).

      \n
    • \n
    • \n

      The environment type WINDOWS_SERVER_2019_CONTAINER is available only in regions\n US East (N. Virginia), US East (Ohio), US West (Oregon), Asia Pacific (Sydney), \n Asia Pacific (Tokyo), Asia Pacific (Mumbai) and\n EU (Ireland).

      \n
    • \n
    • \n

      The environment type WINDOWS_SERVER_2022_CONTAINER is available only in regions\n US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), \n Asia Pacific (Sydney), Asia Pacific (Singapore), Asia Pacific (Tokyo), South America (São Paulo) and\n Asia Pacific (Mumbai).

      \n
    • \n
    \n

    For more information, see Build environment compute types in the CodeBuild\n user guide.

    ", + "smithy.api#required": {} + } + }, + "computeType": { + "target": "com.amazonaws.codebuild#ComputeType", + "traits": { + "smithy.api#documentation": "

    Information about the compute resources the compute fleet uses. Available values\n include:

    \n
      \n
    • \n

      \n BUILD_GENERAL1_SMALL: Use up to 3 GB memory and 2 vCPUs for\n builds.

      \n
    • \n
    • \n

      \n BUILD_GENERAL1_MEDIUM: Use up to 7 GB memory and 4 vCPUs for\n builds.

      \n
    • \n
    • \n

      \n BUILD_GENERAL1_LARGE: Use up to 16 GB memory and 8 vCPUs for\n builds, depending on your environment type.

      \n
    • \n
    • \n

      \n BUILD_GENERAL1_XLARGE: Use up to 70 GB memory and 36 vCPUs for\n builds, depending on your environment type.

      \n
    • \n
    • \n

      \n BUILD_GENERAL1_2XLARGE: Use up to 145 GB memory, 72 vCPUs, and\n 824 GB of SSD storage for builds. This compute type supports Docker images up to\n 100 GB uncompressed.

      \n
    • \n
    \n

    If you use BUILD_GENERAL1_SMALL:

    \n
      \n
    • \n

      For environment type LINUX_CONTAINER, you can use up to 3 GB\n memory and 2 vCPUs for builds.

      \n
    • \n
    • \n

      For environment type LINUX_GPU_CONTAINER, you can use up to 16\n GB memory, 4 vCPUs, and 1 NVIDIA A10G Tensor Core GPU for builds.

      \n
    • \n
    • \n

      For environment type ARM_CONTAINER, you can use up to 4 GB\n memory and 2 vCPUs on ARM-based processors for builds.

      \n
    • \n
    \n

    If you use BUILD_GENERAL1_LARGE:

    \n
      \n
    • \n

      For environment type LINUX_CONTAINER, you can use up to 15 GB\n memory and 8 vCPUs for builds.

      \n
    • \n
    • \n

      For environment type LINUX_GPU_CONTAINER, you can use up to 255\n GB memory, 32 vCPUs, and 4 NVIDIA Tesla V100 GPUs for builds.

      \n
    • \n
    • \n

      For environment type ARM_CONTAINER, you can use up to 16 GB\n memory and 8 vCPUs on ARM-based processors for builds.

      \n
    • \n
    \n

    For more information, see Build environment\n compute types in the CodeBuild User Guide.\n

    ", + "smithy.api#required": {} + } + }, + "scalingConfiguration": { + "target": "com.amazonaws.codebuild#ScalingConfigurationInput", + "traits": { + "smithy.api#documentation": "

    The scaling configuration of the compute fleet.

    " + } + }, + "tags": { + "target": "com.amazonaws.codebuild#TagList", + "traits": { + "smithy.api#documentation": "

    A list of tag key and value pairs associated with this compute fleet.

    \n

    These tags are available for use by Amazon Web Services services that support CodeBuild build project\n tags.

    " + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.codebuild#CreateFleetOutput": { + "type": "structure", + "members": { + "fleet": { + "target": "com.amazonaws.codebuild#Fleet", + "traits": { + "smithy.api#documentation": "

    Information about the compute fleet

    " + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.codebuild#CreateProject": { "type": "operation", "input": { @@ -3155,6 +3307,45 @@ "smithy.api#output": {} } }, + "com.amazonaws.codebuild#DeleteFleet": { + "type": "operation", + "input": { + "target": "com.amazonaws.codebuild#DeleteFleetInput" + }, + "output": { + "target": "com.amazonaws.codebuild#DeleteFleetOutput" + }, + "errors": [ + { + "target": "com.amazonaws.codebuild#InvalidInputException" + } + ], + "traits": { + "smithy.api#documentation": "

    Deletes a compute fleet. When you delete a compute fleet, its builds are not deleted.

    " + } + }, + "com.amazonaws.codebuild#DeleteFleetInput": { + "type": "structure", + "members": { + "arn": { + "target": "com.amazonaws.codebuild#NonEmptyString", + "traits": { + "smithy.api#documentation": "

    The ARN of the compute fleet.

    ", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.codebuild#DeleteFleetOutput": { + "type": "structure", + "members": {}, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.codebuild#DeleteProject": { "type": "operation", "input": { @@ -3773,53 +3964,316 @@ "target": "com.amazonaws.codebuild#EnvironmentVariable" } }, - "com.amazonaws.codebuild#ExportedEnvironmentVariable": { + "com.amazonaws.codebuild#ExportedEnvironmentVariable": { + "type": "structure", + "members": { + "name": { + "target": "com.amazonaws.codebuild#NonEmptyString", + "traits": { + "smithy.api#documentation": "

    The name of the exported environment variable.

    " + } + }, + "value": { + "target": "com.amazonaws.codebuild#String", + "traits": { + "smithy.api#documentation": "

    The value assigned to the exported environment variable.

    " + } + } + }, + "traits": { + "smithy.api#documentation": "

    Contains information about an exported environment variable.

    \n

    Exported environment variables are used in conjunction with CodePipeline to export\n environment variables from the current build stage to subsequent stages in the pipeline.\n For more information, see Working with variables in the CodePipeline User Guide.

    \n \n

    During a build, the value of a variable is available starting with the\n install phase. It can be updated between the start of the\n install phase and the end of the post_build phase.\n After the post_build phase ends, the value of exported variables cannot\n change.

    \n
    " + } + }, + "com.amazonaws.codebuild#ExportedEnvironmentVariables": { + "type": "list", + "member": { + "target": "com.amazonaws.codebuild#ExportedEnvironmentVariable" + } + }, + "com.amazonaws.codebuild#FileSystemType": { + "type": "enum", + "members": { + "EFS": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "EFS" + } + } + } + }, + "com.amazonaws.codebuild#FilterGroup": { + "type": "list", + "member": { + "target": "com.amazonaws.codebuild#WebhookFilter" + } + }, + "com.amazonaws.codebuild#FilterGroups": { + "type": "list", + "member": { + "target": "com.amazonaws.codebuild#FilterGroup" + } + }, + "com.amazonaws.codebuild#Fleet": { + "type": "structure", + "members": { + "arn": { + "target": "com.amazonaws.codebuild#NonEmptyString", + "traits": { + "smithy.api#documentation": "

    The ARN of the compute fleet.

    " + } + }, + "name": { + "target": "com.amazonaws.codebuild#FleetName", + "traits": { + "smithy.api#documentation": "

    The name of the compute fleet.

    " + } + }, + "id": { + "target": "com.amazonaws.codebuild#NonEmptyString", + "traits": { + "smithy.api#documentation": "

    The ID of the compute fleet.

    " + } + }, + "created": { + "target": "com.amazonaws.codebuild#Timestamp", + "traits": { + "smithy.api#documentation": "

    The time at which the compute fleet was created.

    " + } + }, + "lastModified": { + "target": "com.amazonaws.codebuild#Timestamp", + "traits": { + "smithy.api#documentation": "

    The time at which the compute fleet was last modified.

    " + } + }, + "status": { + "target": "com.amazonaws.codebuild#FleetStatus", + "traits": { + "smithy.api#documentation": "

    The status of the compute fleet.

    " + } + }, + "baseCapacity": { + "target": "com.amazonaws.codebuild#FleetCapacity", + "traits": { + "smithy.api#documentation": "

    The initial number of machines allocated to the compute fleet, which defines the number of builds that can run in parallel.

    " + } + }, + "environmentType": { + "target": "com.amazonaws.codebuild#EnvironmentType", + "traits": { + "smithy.api#documentation": "

    The environment type of the compute fleet.

    \n
      \n
    • \n

      The environment type ARM_CONTAINER is available only in regions\n US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland),\n Asia Pacific (Mumbai), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), \n EU (Frankfurt), and South America (São Paulo).

      \n
    • \n
    • \n

      The environment type LINUX_CONTAINER is available only in regions\n US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), \n EU (Frankfurt), Asia Pacific (Tokyo),\n Asia Pacific (Singapore), Asia Pacific (Sydney), South America (São Paulo), and\n Asia Pacific (Mumbai).

      \n
    • \n
    • \n

      The environment type LINUX_GPU_CONTAINER is available only in\n regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), \n EU (Frankfurt), Asia Pacific (Tokyo), and Asia Pacific (Sydney).

      \n
    • \n
    • \n

      The environment type WINDOWS_SERVER_2019_CONTAINER is available only in regions\n US East (N. Virginia), US East (Ohio), US West (Oregon), Asia Pacific (Sydney), \n Asia Pacific (Tokyo), Asia Pacific (Mumbai) and\n EU (Ireland).

      \n
    • \n
    • \n

      The environment type WINDOWS_SERVER_2022_CONTAINER is available only in regions\n US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), \n Asia Pacific (Sydney), Asia Pacific (Singapore), Asia Pacific (Tokyo), South America (São Paulo) and\n Asia Pacific (Mumbai).

      \n
    • \n
    \n

    For more information, see Build environment compute types in the CodeBuild\n user guide.

    " + } + }, + "computeType": { + "target": "com.amazonaws.codebuild#ComputeType", + "traits": { + "smithy.api#documentation": "

    Information about the compute resources the compute fleet uses. Available values\n include:

    \n
      \n
    • \n

      \n BUILD_GENERAL1_SMALL: Use up to 3 GB memory and 2 vCPUs for\n builds.

      \n
    • \n
    • \n

      \n BUILD_GENERAL1_MEDIUM: Use up to 7 GB memory and 4 vCPUs for\n builds.

      \n
    • \n
    • \n

      \n BUILD_GENERAL1_LARGE: Use up to 16 GB memory and 8 vCPUs for\n builds, depending on your environment type.

      \n
    • \n
    • \n

      \n BUILD_GENERAL1_XLARGE: Use up to 70 GB memory and 36 vCPUs for\n builds, depending on your environment type.

      \n
    • \n
    • \n

      \n BUILD_GENERAL1_2XLARGE: Use up to 145 GB memory, 72 vCPUs, and\n 824 GB of SSD storage for builds. This compute type supports Docker images up to\n 100 GB uncompressed.

      \n
    • \n
    \n

    If you use BUILD_GENERAL1_SMALL:

    \n
      \n
    • \n

      For environment type LINUX_CONTAINER, you can use up to 3 GB\n memory and 2 vCPUs for builds.

      \n
    • \n
    • \n

      For environment type LINUX_GPU_CONTAINER, you can use up to 16\n GB memory, 4 vCPUs, and 1 NVIDIA A10G Tensor Core GPU for builds.

      \n
    • \n
    • \n

      For environment type ARM_CONTAINER, you can use up to 4 GB\n memory and 2 vCPUs on ARM-based processors for builds.

      \n
    • \n
    \n

    If you use BUILD_GENERAL1_LARGE:

    \n
      \n
    • \n

      For environment type LINUX_CONTAINER, you can use up to 15 GB\n memory and 8 vCPUs for builds.

      \n
    • \n
    • \n

      For environment type LINUX_GPU_CONTAINER, you can use up to 255\n GB memory, 32 vCPUs, and 4 NVIDIA Tesla V100 GPUs for builds.

      \n
    • \n
    • \n

      For environment type ARM_CONTAINER, you can use up to 16 GB\n memory and 8 vCPUs on ARM-based processors for builds.

      \n
    • \n
    \n

    For more information, see Build environment\n compute types in the CodeBuild User Guide.\n

    " + } + }, + "scalingConfiguration": { + "target": "com.amazonaws.codebuild#ScalingConfigurationOutput", + "traits": { + "smithy.api#documentation": "

    The scaling configuration of the compute fleet.

    " + } + }, + "tags": { + "target": "com.amazonaws.codebuild#TagList", + "traits": { + "smithy.api#documentation": "

    A list of tag key and value pairs associated with this compute fleet.

    \n

    These tags are available for use by Amazon Web Services services that support CodeBuild build project\n tags.

    " + } + } + }, + "traits": { + "smithy.api#documentation": "

    A set of dedicated instances for your build environment.

    " + } + }, + "com.amazonaws.codebuild#FleetArns": { + "type": "list", + "member": { + "target": "com.amazonaws.codebuild#NonEmptyString" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 100 + } + } + }, + "com.amazonaws.codebuild#FleetCapacity": { + "type": "integer", + "traits": { + "smithy.api#range": { + "min": 1 + } + } + }, + "com.amazonaws.codebuild#FleetContextCode": { + "type": "enum", + "members": { + "CREATE_FAILED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "CREATE_FAILED" + } + }, + "UPDATE_FAILED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "UPDATE_FAILED" + } + } + } + }, + "com.amazonaws.codebuild#FleetName": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 2, + "max": 128 + }, + "smithy.api#pattern": "^[A-Za-z0-9][A-Za-z0-9\\-_]{1,127}$" + } + }, + "com.amazonaws.codebuild#FleetNames": { + "type": "list", + "member": { + "target": "com.amazonaws.codebuild#NonEmptyString" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 100 + } + } + }, + "com.amazonaws.codebuild#FleetScalingMetricType": { + "type": "enum", + "members": { + "FLEET_UTILIZATION_RATE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "FLEET_UTILIZATION_RATE" + } + } + } + }, + "com.amazonaws.codebuild#FleetScalingType": { + "type": "enum", + "members": { + "TARGET_TRACKING_SCALING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "TARGET_TRACKING_SCALING" + } + } + } + }, + "com.amazonaws.codebuild#FleetSortByType": { + "type": "enum", + "members": { + "NAME": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "NAME" + } + }, + "CREATED_TIME": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "CREATED_TIME" + } + }, + "LAST_MODIFIED_TIME": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "LAST_MODIFIED_TIME" + } + } + } + }, + "com.amazonaws.codebuild#FleetStatus": { "type": "structure", "members": { - "name": { - "target": "com.amazonaws.codebuild#NonEmptyString", + "statusCode": { + "target": "com.amazonaws.codebuild#FleetStatusCode", "traits": { - "smithy.api#documentation": "

    The name of the exported environment variable.

    " + "smithy.api#documentation": "

    The status code of the compute fleet. Valid values include:

    \n
      \n
    • \n

      \n CREATING: The compute fleet is being created.

      \n
    • \n
    • \n

      \n UPDATING: The compute fleet is being updated.

      \n
    • \n
    • \n

      \n ROTATING: The compute fleet is being rotated.

      \n
    • \n
    • \n

      \n DELETING: The compute fleet is being deleted.

      \n
    • \n
    • \n

      \n CREATE_FAILED: The compute fleet has failed to create.

      \n
    • \n
    • \n

      \n UPDATE_ROLLBACK_FAILED: The compute fleet has failed to update and could not rollback to previous state.

      \n
    • \n
    • \n

      \n ACTIVE: The compute fleet has succeeded and is active.

      \n
    • \n
    " } }, - "value": { + "context": { + "target": "com.amazonaws.codebuild#FleetContextCode", + "traits": { + "smithy.api#documentation": "

    Additional information about a compute fleet. Valid values include:

    \n
      \n
    • \n

      \n CREATE_FAILED: The compute fleet has failed to create.

      \n
    • \n
    • \n

      \n UPDATE_FAILED: The compute fleet has failed to update.

      \n
    • \n
    " + } + }, + "message": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

    The value assigned to the exported environment variable.

    " + "smithy.api#documentation": "

    A message associated with the status of a compute fleet.

    " } } }, "traits": { - "smithy.api#documentation": "

    Contains information about an exported environment variable.

    \n

    Exported environment variables are used in conjunction with CodePipeline to export\n environment variables from the current build stage to subsequent stages in the pipeline.\n For more information, see Working with variables in the CodePipeline User Guide.

    \n \n

    During a build, the value of a variable is available starting with the\n install phase. It can be updated between the start of the\n install phase and the end of the post_build phase.\n After the post_build phase ends, the value of exported variables cannot\n change.

    \n
    " - } - }, - "com.amazonaws.codebuild#ExportedEnvironmentVariables": { - "type": "list", - "member": { - "target": "com.amazonaws.codebuild#ExportedEnvironmentVariable" + "smithy.api#documentation": "

    The status of the compute fleet.

    " } }, - "com.amazonaws.codebuild#FileSystemType": { + "com.amazonaws.codebuild#FleetStatusCode": { "type": "enum", "members": { - "EFS": { + "CREATING": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "EFS" + "smithy.api#enumValue": "CREATING" + } + }, + "UPDATING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "UPDATING" + } + }, + "ROTATING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ROTATING" + } + }, + "DELETING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DELETING" + } + }, + "CREATE_FAILED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "CREATE_FAILED" + } + }, + "UPDATE_ROLLBACK_FAILED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "UPDATE_ROLLBACK_FAILED" + } + }, + "ACTIVE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ACTIVE" } } } }, - "com.amazonaws.codebuild#FilterGroup": { - "type": "list", - "member": { - "target": "com.amazonaws.codebuild#WebhookFilter" - } - }, - "com.amazonaws.codebuild#FilterGroups": { + "com.amazonaws.codebuild#Fleets": { "type": "list", "member": { - "target": "com.amazonaws.codebuild#FilterGroup" + "target": "com.amazonaws.codebuild#Fleet" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 100 + } } }, "com.amazonaws.codebuild#GetReportGroupTrend": { @@ -4524,6 +4978,80 @@ "smithy.api#output": {} } }, + "com.amazonaws.codebuild#ListFleets": { + "type": "operation", + "input": { + "target": "com.amazonaws.codebuild#ListFleetsInput" + }, + "output": { + "target": "com.amazonaws.codebuild#ListFleetsOutput" + }, + "errors": [ + { + "target": "com.amazonaws.codebuild#InvalidInputException" + } + ], + "traits": { + "smithy.api#documentation": "

    Gets a list of compute fleet names with each compute fleet name representing a single compute fleet.

    ", + "smithy.api#paginated": { + "inputToken": "nextToken", + "outputToken": "nextToken", + "pageSize": "maxResults" + } + } + }, + "com.amazonaws.codebuild#ListFleetsInput": { + "type": "structure", + "members": { + "nextToken": { + "target": "com.amazonaws.codebuild#SensitiveString", + "traits": { + "smithy.api#documentation": "

    During a previous call, if there are more than 100 items in the list, only the first\n 100 items are returned, along with a unique string called a\n nextToken. To get the next batch of items in the list, call\n this operation again, adding the next token to the call. To get all of the items in the\n list, keep calling this operation with each subsequent next token that is returned,\n until no more next tokens are returned.

    " + } + }, + "maxResults": { + "target": "com.amazonaws.codebuild#PageSize", + "traits": { + "smithy.api#documentation": "

    The maximum number of paginated compute fleets returned per response. Use\n nextToken to iterate pages in the list of returned compute fleets.

    " + } + }, + "sortOrder": { + "target": "com.amazonaws.codebuild#SortOrderType", + "traits": { + "smithy.api#documentation": "

    The order in which to list compute fleets. Valid values include:

    \n
      \n
    • \n

      \n ASCENDING: List in ascending order.

      \n
    • \n
    • \n

      \n DESCENDING: List in descending order.

      \n
    • \n
    \n

    Use sortBy to specify the criterion to be used to list compute fleet\n names.

    " + } + }, + "sortBy": { + "target": "com.amazonaws.codebuild#FleetSortByType", + "traits": { + "smithy.api#documentation": "

    The criterion to be used to list compute fleet names. Valid values include:

    \n
      \n
    • \n

      \n CREATED_TIME: List based on when each compute fleet was\n created.

      \n
    • \n
    • \n

      \n LAST_MODIFIED_TIME: List based on when information about each\n compute fleet was last changed.

      \n
    • \n
    • \n

      \n NAME: List based on each compute fleet's name.

      \n
    • \n
    \n

    Use sortOrder to specify in what order to list the compute fleet names\n based on the preceding criteria.

    " + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.codebuild#ListFleetsOutput": { + "type": "structure", + "members": { + "nextToken": { + "target": "com.amazonaws.codebuild#String", + "traits": { + "smithy.api#documentation": "

    If there are more than 100 items in the list, only the first 100 items are returned,\n along with a unique string called a nextToken. To get the next\n batch of items in the list, call this operation again, adding the next token to the\n call.

    " + } + }, + "fleets": { + "target": "com.amazonaws.codebuild#FleetArns", + "traits": { + "smithy.api#documentation": "

    The list of compute fleet names.

    " + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.codebuild#ListProjects": { "type": "operation", "input": { @@ -5599,7 +6127,7 @@ "type": { "target": "com.amazonaws.codebuild#EnvironmentType", "traits": { - "smithy.api#documentation": "

    The type of build environment to use for related builds.

    \n
      \n
    • \n

      The environment type ARM_CONTAINER is available only in regions\n US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland),\n Asia Pacific (Mumbai), Asia Pacific (Tokyo), Asia Pacific (Sydney), and\n EU (Frankfurt).

      \n
    • \n
    • \n

      The environment type LINUX_CONTAINER with compute type\n build.general1.2xlarge is available only in regions\n US East (N. Virginia), US East (Ohio), US West (Oregon),\n Canada (Central), EU (Ireland), EU (London),\n EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Seoul),\n Asia Pacific (Singapore), Asia Pacific (Sydney), China (Beijing), and\n China (Ningxia).

      \n
    • \n
    • \n

      The environment type LINUX_GPU_CONTAINER is available only in\n regions US East (N. Virginia), US East (Ohio), US West (Oregon),\n Canada (Central), EU (Ireland), EU (London),\n EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Seoul),\n Asia Pacific (Singapore), Asia Pacific (Sydney) , China (Beijing), and\n China (Ningxia).

      \n
    • \n
    \n
      \n
    • \n

      The environment types ARM_LAMBDA_CONTAINER and\n LINUX_LAMBDA_CONTAINER are available only in regions\n US East (N. Virginia), US East (Ohio), US West (Oregon), Asia Pacific (Mumbai), Asia Pacific (Singapore), \n Asia Pacific (Sydney), Asia Pacific (Tokyo), EU (Frankfurt), EU (Ireland), and South America (São Paulo).

      \n
    • \n
    \n
      \n
    • \n

      The environment types WINDOWS_CONTAINER and\n WINDOWS_SERVER_2019_CONTAINER are available only in regions\n US East (N. Virginia), US East (Ohio), US West (Oregon), and\n EU (Ireland).

      \n
    • \n
    \n

    For more information, see Build environment compute types in the CodeBuild\n user guide.

    ", + "smithy.api#documentation": "

    The type of build environment to use for related builds.

    \n
      \n
    • \n

      The environment type ARM_CONTAINER is available only in regions\n US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland),\n Asia Pacific (Mumbai), Asia Pacific (Tokyo), Asia Pacific (Sydney), and\n EU (Frankfurt).

      \n
    • \n
    • \n

      The environment type LINUX_CONTAINER is available only in regions\n US East (N. Virginia), US East (Ohio), US West (Oregon),\n Canada (Central), EU (Ireland), EU (London),\n EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Seoul),\n Asia Pacific (Singapore), Asia Pacific (Sydney), China (Beijing), and\n China (Ningxia).

      \n
    • \n
    • \n

      The environment type LINUX_GPU_CONTAINER is available only in\n regions US East (N. Virginia), US East (Ohio), US West (Oregon),\n Canada (Central), EU (Ireland), EU (London),\n EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Seoul),\n Asia Pacific (Singapore), Asia Pacific (Sydney) , China (Beijing), and\n China (Ningxia).

      \n
    • \n
    \n
      \n
    • \n

      The environment types ARM_LAMBDA_CONTAINER and\n LINUX_LAMBDA_CONTAINER are available only in regions\n US East (N. Virginia), US East (Ohio), US West (Oregon), Asia Pacific (Mumbai), Asia Pacific (Singapore), \n Asia Pacific (Sydney), Asia Pacific (Tokyo), EU (Frankfurt), EU (Ireland), and South America (São Paulo).

      \n
    • \n
    \n
      \n
    • \n

      The environment types WINDOWS_CONTAINER and\n WINDOWS_SERVER_2019_CONTAINER are available only in regions\n US East (N. Virginia), US East (Ohio), US West (Oregon), and\n EU (Ireland).

      \n
    • \n
    \n \n

    If you're using compute fleets during project creation, type will be ignored.

    \n
    \n

    For more information, see Build environment compute types in the CodeBuild\n user guide.

    ", "smithy.api#required": {} } }, @@ -5613,10 +6141,16 @@ "computeType": { "target": "com.amazonaws.codebuild#ComputeType", "traits": { - "smithy.api#documentation": "

    Information about the compute resources the build project uses. Available values\n include:

    \n
      \n
    • \n

      \n BUILD_GENERAL1_SMALL: Use up to 3 GB memory and 2 vCPUs for\n builds.

      \n
    • \n
    • \n

      \n BUILD_GENERAL1_MEDIUM: Use up to 7 GB memory and 4 vCPUs for\n builds.

      \n
    • \n
    • \n

      \n BUILD_GENERAL1_LARGE: Use up to 16 GB memory and 8 vCPUs for\n builds, depending on your environment type.

      \n
    • \n
    • \n

      \n BUILD_GENERAL1_XLARGE: Use up to 70 GB memory and 36 vCPUs for\n builds, depending on your environment type.

      \n
    • \n
    • \n

      \n BUILD_GENERAL1_2XLARGE: Use up to 145 GB memory, 72 vCPUs, and\n 824 GB of SSD storage for builds. This compute type supports Docker images up to\n 100 GB uncompressed.

      \n
    • \n
    • \n

      \n BUILD_LAMBDA_1GB: Use up to 1 GB memory for\n builds. Only available for environment type LINUX_LAMBDA_CONTAINER and ARM_LAMBDA_CONTAINER.

      \n
    • \n
    • \n

      \n BUILD_LAMBDA_2GB: Use up to 2 GB memory for\n builds. Only available for environment type LINUX_LAMBDA_CONTAINER and ARM_LAMBDA_CONTAINER.

      \n
    • \n
    • \n

      \n BUILD_LAMBDA_4GB: Use up to 4 GB memory for\n builds. Only available for environment type LINUX_LAMBDA_CONTAINER and ARM_LAMBDA_CONTAINER.

      \n
    • \n
    • \n

      \n BUILD_LAMBDA_8GB: Use up to 8 GB memory for\n builds. Only available for environment type LINUX_LAMBDA_CONTAINER and ARM_LAMBDA_CONTAINER.

      \n
    • \n
    • \n

      \n BUILD_LAMBDA_10GB: Use up to 10 GB memory for\n builds. Only available for environment type LINUX_LAMBDA_CONTAINER and ARM_LAMBDA_CONTAINER.

      \n
    • \n
    \n

    If you use BUILD_GENERAL1_SMALL:

    \n
      \n
    • \n

      For environment type LINUX_CONTAINER, you can use up to 3 GB\n memory and 2 vCPUs for builds.

      \n
    • \n
    • \n

      For environment type LINUX_GPU_CONTAINER, you can use up to 16\n GB memory, 4 vCPUs, and 1 NVIDIA A10G Tensor Core GPU for builds.

      \n
    • \n
    • \n

      For environment type ARM_CONTAINER, you can use up to 4 GB\n memory and 2 vCPUs on ARM-based processors for builds.

      \n
    • \n
    \n

    If you use BUILD_GENERAL1_LARGE:

    \n
      \n
    • \n

      For environment type LINUX_CONTAINER, you can use up to 15 GB\n memory and 8 vCPUs for builds.

      \n
    • \n
    • \n

      For environment type LINUX_GPU_CONTAINER, you can use up to 255\n GB memory, 32 vCPUs, and 4 NVIDIA Tesla V100 GPUs for builds.

      \n
    • \n
    • \n

      For environment type ARM_CONTAINER, you can use up to 16 GB\n memory and 8 vCPUs on ARM-based processors for builds.

      \n
    • \n
    \n

    For more information, see Build Environment\n Compute Types in the CodeBuild User Guide.\n

    ", + "smithy.api#documentation": "

    Information about the compute resources the build project uses. Available values\n include:

    \n
      \n
    • \n

      \n BUILD_GENERAL1_SMALL: Use up to 3 GB memory and 2 vCPUs for\n builds.

      \n
    • \n
    • \n

      \n BUILD_GENERAL1_MEDIUM: Use up to 7 GB memory and 4 vCPUs for\n builds.

      \n
    • \n
    • \n

      \n BUILD_GENERAL1_LARGE: Use up to 16 GB memory and 8 vCPUs for\n builds, depending on your environment type.

      \n
    • \n
    • \n

      \n BUILD_GENERAL1_XLARGE: Use up to 70 GB memory and 36 vCPUs for\n builds, depending on your environment type.

      \n
    • \n
    • \n

      \n BUILD_GENERAL1_2XLARGE: Use up to 145 GB memory, 72 vCPUs, and\n 824 GB of SSD storage for builds. This compute type supports Docker images up to\n 100 GB uncompressed.

      \n
    • \n
    • \n

      \n BUILD_LAMBDA_1GB: Use up to 1 GB memory for\n builds. Only available for environment type LINUX_LAMBDA_CONTAINER and ARM_LAMBDA_CONTAINER.

      \n
    • \n
    • \n

      \n BUILD_LAMBDA_2GB: Use up to 2 GB memory for\n builds. Only available for environment type LINUX_LAMBDA_CONTAINER and ARM_LAMBDA_CONTAINER.

      \n
    • \n
    • \n

      \n BUILD_LAMBDA_4GB: Use up to 4 GB memory for\n builds. Only available for environment type LINUX_LAMBDA_CONTAINER and ARM_LAMBDA_CONTAINER.

      \n
    • \n
    • \n

      \n BUILD_LAMBDA_8GB: Use up to 8 GB memory for\n builds. Only available for environment type LINUX_LAMBDA_CONTAINER and ARM_LAMBDA_CONTAINER.

      \n
    • \n
    • \n

      \n BUILD_LAMBDA_10GB: Use up to 10 GB memory for\n builds. Only available for environment type LINUX_LAMBDA_CONTAINER and ARM_LAMBDA_CONTAINER.

      \n
    • \n
    \n

    If you use BUILD_GENERAL1_SMALL:

    \n
      \n
    • \n

      For environment type LINUX_CONTAINER, you can use up to 3 GB\n memory and 2 vCPUs for builds.

      \n
    • \n
    • \n

      For environment type LINUX_GPU_CONTAINER, you can use up to 16\n GB memory, 4 vCPUs, and 1 NVIDIA A10G Tensor Core GPU for builds.

      \n
    • \n
    • \n

      For environment type ARM_CONTAINER, you can use up to 4 GB\n memory and 2 vCPUs on ARM-based processors for builds.

      \n
    • \n
    \n

    If you use BUILD_GENERAL1_LARGE:

    \n
      \n
    • \n

      For environment type LINUX_CONTAINER, you can use up to 15 GB\n memory and 8 vCPUs for builds.

      \n
    • \n
    • \n

      For environment type LINUX_GPU_CONTAINER, you can use up to 255\n GB memory, 32 vCPUs, and 4 NVIDIA Tesla V100 GPUs for builds.

      \n
    • \n
    • \n

      For environment type ARM_CONTAINER, you can use up to 16 GB\n memory and 8 vCPUs on ARM-based processors for builds.

      \n
    • \n
    \n \n

    If you're using compute fleets during project creation, computeType will be ignored.

    \n
    \n

    For more information, see Build Environment\n Compute Types in the CodeBuild User Guide.\n

    ", "smithy.api#required": {} } }, + "fleet": { + "target": "com.amazonaws.codebuild#ProjectFleet", + "traits": { + "smithy.api#documentation": "

    A ProjectFleet object to use for this build project.

    " + } + }, "environmentVariables": { "target": "com.amazonaws.codebuild#EnvironmentVariables", "traits": { @@ -5696,6 +6230,20 @@ "target": "com.amazonaws.codebuild#ProjectFileSystemLocation" } }, + "com.amazonaws.codebuild#ProjectFleet": { + "type": "structure", + "members": { + "fleetArn": { + "target": "com.amazonaws.codebuild#String", + "traits": { + "smithy.api#documentation": "

    Specifies the compute fleet ARN for the build project.

    " + } + } + }, + "traits": { + "smithy.api#documentation": "

    Information about the compute fleet of the build project. For more\n information, see Working \n with reserved capacity in CodeBuild.

    " + } + }, "com.amazonaws.codebuild#ProjectName": { "type": "string", "traits": { @@ -6708,6 +7256,64 @@ "smithy.api#documentation": "

    Information about the S3 bucket where the raw data of a report are exported.

    " } }, + "com.amazonaws.codebuild#ScalingConfigurationInput": { + "type": "structure", + "members": { + "scalingType": { + "target": "com.amazonaws.codebuild#FleetScalingType", + "traits": { + "smithy.api#documentation": "

    The scaling type for a compute fleet.

    " + } + }, + "targetTrackingScalingConfigs": { + "target": "com.amazonaws.codebuild#TargetTrackingScalingConfigurations", + "traits": { + "smithy.api#documentation": "

    A list of TargetTrackingScalingConfiguration objects.

    " + } + }, + "maxCapacity": { + "target": "com.amazonaws.codebuild#FleetCapacity", + "traits": { + "smithy.api#documentation": "

    The maximum number of instances in the fleet when auto-scaling.

    " + } + } + }, + "traits": { + "smithy.api#documentation": "

    The scaling configuration input of a compute fleet.

    " + } + }, + "com.amazonaws.codebuild#ScalingConfigurationOutput": { + "type": "structure", + "members": { + "scalingType": { + "target": "com.amazonaws.codebuild#FleetScalingType", + "traits": { + "smithy.api#documentation": "

    The scaling type for a compute fleet.

    " + } + }, + "targetTrackingScalingConfigs": { + "target": "com.amazonaws.codebuild#TargetTrackingScalingConfigurations", + "traits": { + "smithy.api#documentation": "

    A list of TargetTrackingScalingConfiguration objects.

    " + } + }, + "maxCapacity": { + "target": "com.amazonaws.codebuild#FleetCapacity", + "traits": { + "smithy.api#documentation": "

    The maximum number of instances in the fleet when auto-scaling.

    " + } + }, + "desiredCapacity": { + "target": "com.amazonaws.codebuild#FleetCapacity", + "traits": { + "smithy.api#documentation": "

    The desired number of instances in the fleet when auto-scaling.

    " + } + } + }, + "traits": { + "smithy.api#documentation": "

    The scaling configuration output of a compute fleet.

    " + } + }, "com.amazonaws.codebuild#SecurityGroupIds": { "type": "list", "member": { @@ -6729,6 +7335,12 @@ "smithy.api#sensitive": {} } }, + "com.amazonaws.codebuild#SensitiveString": { + "type": "string", + "traits": { + "smithy.api#sensitive": {} + } + }, "com.amazonaws.codebuild#ServerType": { "type": "enum", "members": { @@ -7338,6 +7950,12 @@ "traits": { "smithy.api#documentation": "

    Specifies if session debugging is enabled for this build. For more information, see\n Viewing a running build in Session Manager.

    " } + }, + "fleetOverride": { + "target": "com.amazonaws.codebuild#ProjectFleet", + "traits": { + "smithy.api#documentation": "

    A ProjectFleet object specified for this build that overrides the one defined in the\n build project.

    " + } } }, "traits": { @@ -7541,6 +8159,32 @@ } } }, + "com.amazonaws.codebuild#TargetTrackingScalingConfiguration": { + "type": "structure", + "members": { + "metricType": { + "target": "com.amazonaws.codebuild#FleetScalingMetricType", + "traits": { + "smithy.api#documentation": "

    The metric type to determine auto-scaling.

    " + } + }, + "targetValue": { + "target": "com.amazonaws.codebuild#WrapperDouble", + "traits": { + "smithy.api#documentation": "

    The value of metricType when to start scaling.

    " + } + } + }, + "traits": { + "smithy.api#documentation": "

    Defines when a new instance is auto-scaled into the compute fleet.

    " + } + }, + "com.amazonaws.codebuild#TargetTrackingScalingConfigurations": { + "type": "list", + "member": { + "target": "com.amazonaws.codebuild#TargetTrackingScalingConfiguration" + } + }, "com.amazonaws.codebuild#TestCase": { "type": "structure", "members": { @@ -7664,6 +8308,88 @@ "com.amazonaws.codebuild#Timestamp": { "type": "timestamp" }, + "com.amazonaws.codebuild#UpdateFleet": { + "type": "operation", + "input": { + "target": "com.amazonaws.codebuild#UpdateFleetInput" + }, + "output": { + "target": "com.amazonaws.codebuild#UpdateFleetOutput" + }, + "errors": [ + { + "target": "com.amazonaws.codebuild#AccountLimitExceededException" + }, + { + "target": "com.amazonaws.codebuild#InvalidInputException" + }, + { + "target": "com.amazonaws.codebuild#ResourceNotFoundException" + } + ], + "traits": { + "smithy.api#documentation": "

    Updates a compute fleet.

    " + } + }, + "com.amazonaws.codebuild#UpdateFleetInput": { + "type": "structure", + "members": { + "arn": { + "target": "com.amazonaws.codebuild#NonEmptyString", + "traits": { + "smithy.api#documentation": "

    The ARN of the compute fleet.

    ", + "smithy.api#required": {} + } + }, + "baseCapacity": { + "target": "com.amazonaws.codebuild#FleetCapacity", + "traits": { + "smithy.api#documentation": "

    The initial number of machines allocated to the compute fleet, which defines the number of builds that can\n run in parallel.

    " + } + }, + "environmentType": { + "target": "com.amazonaws.codebuild#EnvironmentType", + "traits": { + "smithy.api#documentation": "

    The environment type of the compute fleet.

    \n
      \n
    • \n

      The environment type ARM_CONTAINER is available only in regions\n US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland),\n Asia Pacific (Mumbai), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), \n EU (Frankfurt), and South America (São Paulo).

      \n
    • \n
    • \n

      The environment type LINUX_CONTAINER is available only in regions\n US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), \n EU (Frankfurt), Asia Pacific (Tokyo),\n Asia Pacific (Singapore), Asia Pacific (Sydney), South America (São Paulo), and\n Asia Pacific (Mumbai).

      \n
    • \n
    • \n

      The environment type LINUX_GPU_CONTAINER is available only in\n regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), \n EU (Frankfurt), Asia Pacific (Tokyo), and Asia Pacific (Sydney).

      \n
    • \n
    • \n

      The environment type WINDOWS_SERVER_2019_CONTAINER is available only in regions\n US East (N. Virginia), US East (Ohio), US West (Oregon), Asia Pacific (Sydney), \n Asia Pacific (Tokyo), Asia Pacific (Mumbai) and\n EU (Ireland).

      \n
    • \n
    • \n

      The environment type WINDOWS_SERVER_2022_CONTAINER is available only in regions\n US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), \n Asia Pacific (Sydney), Asia Pacific (Singapore), Asia Pacific (Tokyo), South America (São Paulo) and\n Asia Pacific (Mumbai).

      \n
    • \n
    \n

    For more information, see Build environment compute types in the CodeBuild\n user guide.

    " + } + }, + "computeType": { + "target": "com.amazonaws.codebuild#ComputeType", + "traits": { + "smithy.api#documentation": "

    Information about the compute resources the compute fleet uses. Available values\n include:

    \n
      \n
    • \n

      \n BUILD_GENERAL1_SMALL: Use up to 3 GB memory and 2 vCPUs for\n builds.

      \n
    • \n
    • \n

      \n BUILD_GENERAL1_MEDIUM: Use up to 7 GB memory and 4 vCPUs for\n builds.

      \n
    • \n
    • \n

      \n BUILD_GENERAL1_LARGE: Use up to 16 GB memory and 8 vCPUs for\n builds, depending on your environment type.

      \n
    • \n
    • \n

      \n BUILD_GENERAL1_XLARGE: Use up to 70 GB memory and 36 vCPUs for\n builds, depending on your environment type.

      \n
    • \n
    • \n

      \n BUILD_GENERAL1_2XLARGE: Use up to 145 GB memory, 72 vCPUs, and\n 824 GB of SSD storage for builds. This compute type supports Docker images up to\n 100 GB uncompressed.

      \n
    • \n
    \n

    If you use BUILD_GENERAL1_SMALL:

    \n
      \n
    • \n

      For environment type LINUX_CONTAINER, you can use up to 3 GB\n memory and 2 vCPUs for builds.

      \n
    • \n
    • \n

      For environment type LINUX_GPU_CONTAINER, you can use up to 16\n GB memory, 4 vCPUs, and 1 NVIDIA A10G Tensor Core GPU for builds.

      \n
    • \n
    • \n

      For environment type ARM_CONTAINER, you can use up to 4 GB\n memory and 2 vCPUs on ARM-based processors for builds.

      \n
    • \n
    \n

    If you use BUILD_GENERAL1_LARGE:

    \n
      \n
    • \n

      For environment type LINUX_CONTAINER, you can use up to 15 GB\n memory and 8 vCPUs for builds.

      \n
    • \n
    • \n

      For environment type LINUX_GPU_CONTAINER, you can use up to 255\n GB memory, 32 vCPUs, and 4 NVIDIA Tesla V100 GPUs for builds.

      \n
    • \n
    • \n

      For environment type ARM_CONTAINER, you can use up to 16 GB\n memory and 8 vCPUs on ARM-based processors for builds.

      \n
    • \n
    \n

    For more information, see Build environment\n compute types in the CodeBuild User Guide.\n

    " + } + }, + "scalingConfiguration": { + "target": "com.amazonaws.codebuild#ScalingConfigurationInput", + "traits": { + "smithy.api#documentation": "

    The scaling configuration of the compute fleet.

    " + } + }, + "tags": { + "target": "com.amazonaws.codebuild#TagList", + "traits": { + "smithy.api#documentation": "

    A list of tag key and value pairs associated with this compute fleet.

    \n

    These tags are available for use by Amazon Web Services services that support CodeBuild build project\n tags.

    " + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.codebuild#UpdateFleetOutput": { + "type": "structure", + "members": { + "fleet": { + "target": "com.amazonaws.codebuild#Fleet", + "traits": { + "smithy.api#documentation": "

    A Fleet object.

    " + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.codebuild#UpdateProject": { "type": "operation", "input": { @@ -8213,6 +8939,9 @@ "com.amazonaws.codebuild#WrapperBoolean": { "type": "boolean" }, + "com.amazonaws.codebuild#WrapperDouble": { + "type": "double" + }, "com.amazonaws.codebuild#WrapperInt": { "type": "integer" },