From 877d146a3f5a25386b462ac483956334354e7899 Mon Sep 17 00:00:00 2001 From: awstools Date: Wed, 15 May 2024 18:11:50 +0000 Subject: [PATCH] feat(client-codebuild): CodeBuild Reserved Capacity VPC Support --- .../src/commands/BatchGetFleetsCommand.ts | 12 ++- .../src/commands/CreateFleetCommand.ts | 22 ++++- .../src/commands/UpdateFleetCommand.ts | 22 ++++- .../client-codebuild/src/models/models_0.ts | 90 +++++++++++++++++-- .../src/protocols/Aws_json1_1.ts | 6 ++ codegen/sdk-codegen/aws-models/codebuild.json | 63 +++++++++---- 6 files changed, 190 insertions(+), 25 deletions(-) diff --git a/clients/client-codebuild/src/commands/BatchGetFleetsCommand.ts b/clients/client-codebuild/src/commands/BatchGetFleetsCommand.ts index 2b433712b875..df9f657379a9 100644 --- a/clients/client-codebuild/src/commands/BatchGetFleetsCommand.ts +++ b/clients/client-codebuild/src/commands/BatchGetFleetsCommand.ts @@ -51,7 +51,7 @@ export interface BatchGetFleetsCommandOutput extends BatchGetFleetsOutput, __Met * // lastModified: new Date("TIMESTAMP"), * // status: { // FleetStatus * // statusCode: "CREATING" || "UPDATING" || "ROTATING" || "PENDING_DELETION" || "DELETING" || "CREATE_FAILED" || "UPDATE_ROLLBACK_FAILED" || "ACTIVE", - * // context: "CREATE_FAILED" || "UPDATE_FAILED", + * // context: "CREATE_FAILED" || "UPDATE_FAILED" || "ACTION_REQUIRED", * // message: "STRING_VALUE", * // }, * // baseCapacity: Number("int"), @@ -69,6 +69,16 @@ export interface BatchGetFleetsCommandOutput extends BatchGetFleetsOutput, __Met * // desiredCapacity: Number("int"), * // }, * // overflowBehavior: "QUEUE" || "ON_DEMAND", + * // vpcConfig: { // VpcConfig + * // vpcId: "STRING_VALUE", + * // subnets: [ // Subnets + * // "STRING_VALUE", + * // ], + * // securityGroupIds: [ // SecurityGroupIds + * // "STRING_VALUE", + * // ], + * // }, + * // fleetServiceRole: "STRING_VALUE", * // tags: [ // TagList * // { // Tag * // key: "STRING_VALUE", diff --git a/clients/client-codebuild/src/commands/CreateFleetCommand.ts b/clients/client-codebuild/src/commands/CreateFleetCommand.ts index 5333179331b6..d02f5ed502e5 100644 --- a/clients/client-codebuild/src/commands/CreateFleetCommand.ts +++ b/clients/client-codebuild/src/commands/CreateFleetCommand.ts @@ -50,6 +50,16 @@ export interface CreateFleetCommandOutput extends CreateFleetOutput, __MetadataB * maxCapacity: Number("int"), * }, * overflowBehavior: "QUEUE" || "ON_DEMAND", + * vpcConfig: { // VpcConfig + * vpcId: "STRING_VALUE", + * subnets: [ // Subnets + * "STRING_VALUE", + * ], + * securityGroupIds: [ // SecurityGroupIds + * "STRING_VALUE", + * ], + * }, + * fleetServiceRole: "STRING_VALUE", * tags: [ // TagList * { // Tag * key: "STRING_VALUE", @@ -68,7 +78,7 @@ export interface CreateFleetCommandOutput extends CreateFleetOutput, __MetadataB * // lastModified: new Date("TIMESTAMP"), * // status: { // FleetStatus * // statusCode: "CREATING" || "UPDATING" || "ROTATING" || "PENDING_DELETION" || "DELETING" || "CREATE_FAILED" || "UPDATE_ROLLBACK_FAILED" || "ACTIVE", - * // context: "CREATE_FAILED" || "UPDATE_FAILED", + * // context: "CREATE_FAILED" || "UPDATE_FAILED" || "ACTION_REQUIRED", * // message: "STRING_VALUE", * // }, * // baseCapacity: Number("int"), @@ -86,6 +96,16 @@ export interface CreateFleetCommandOutput extends CreateFleetOutput, __MetadataB * // desiredCapacity: Number("int"), * // }, * // overflowBehavior: "QUEUE" || "ON_DEMAND", + * // vpcConfig: { // VpcConfig + * // vpcId: "STRING_VALUE", + * // subnets: [ // Subnets + * // "STRING_VALUE", + * // ], + * // securityGroupIds: [ // SecurityGroupIds + * // "STRING_VALUE", + * // ], + * // }, + * // fleetServiceRole: "STRING_VALUE", * // tags: [ // TagList * // { // Tag * // key: "STRING_VALUE", diff --git a/clients/client-codebuild/src/commands/UpdateFleetCommand.ts b/clients/client-codebuild/src/commands/UpdateFleetCommand.ts index bbf1704fd972..0c381a3bccc2 100644 --- a/clients/client-codebuild/src/commands/UpdateFleetCommand.ts +++ b/clients/client-codebuild/src/commands/UpdateFleetCommand.ts @@ -50,6 +50,16 @@ export interface UpdateFleetCommandOutput extends UpdateFleetOutput, __MetadataB * maxCapacity: Number("int"), * }, * overflowBehavior: "QUEUE" || "ON_DEMAND", + * vpcConfig: { // VpcConfig + * vpcId: "STRING_VALUE", + * subnets: [ // Subnets + * "STRING_VALUE", + * ], + * securityGroupIds: [ // SecurityGroupIds + * "STRING_VALUE", + * ], + * }, + * fleetServiceRole: "STRING_VALUE", * tags: [ // TagList * { // Tag * key: "STRING_VALUE", @@ -68,7 +78,7 @@ export interface UpdateFleetCommandOutput extends UpdateFleetOutput, __MetadataB * // lastModified: new Date("TIMESTAMP"), * // status: { // FleetStatus * // statusCode: "CREATING" || "UPDATING" || "ROTATING" || "PENDING_DELETION" || "DELETING" || "CREATE_FAILED" || "UPDATE_ROLLBACK_FAILED" || "ACTIVE", - * // context: "CREATE_FAILED" || "UPDATE_FAILED", + * // context: "CREATE_FAILED" || "UPDATE_FAILED" || "ACTION_REQUIRED", * // message: "STRING_VALUE", * // }, * // baseCapacity: Number("int"), @@ -86,6 +96,16 @@ export interface UpdateFleetCommandOutput extends UpdateFleetOutput, __MetadataB * // desiredCapacity: Number("int"), * // }, * // overflowBehavior: "QUEUE" || "ON_DEMAND", + * // vpcConfig: { // VpcConfig + * // vpcId: "STRING_VALUE", + * // subnets: [ // Subnets + * // "STRING_VALUE", + * // ], + * // securityGroupIds: [ // SecurityGroupIds + * // "STRING_VALUE", + * // ], + * // }, + * // fleetServiceRole: "STRING_VALUE", * // tags: [ // TagList * // { // Tag * // key: "STRING_VALUE", diff --git a/clients/client-codebuild/src/models/models_0.ts b/clients/client-codebuild/src/models/models_0.ts index 749849afbbea..8b7de8feda58 100644 --- a/clients/client-codebuild/src/models/models_0.ts +++ b/clients/client-codebuild/src/models/models_0.ts @@ -1789,7 +1789,7 @@ export interface ProjectSourceVersion { *

For CodeCommit: the commit ID, branch, or Git tag to use.

* *
  • - *

    For GitHub or GitLab: the commit ID, pull request ID, branch name, or tag name that + *

    For GitHub: the commit ID, pull request ID, branch name, or tag name that * corresponds to the version of the source code you want to build. If a pull * request ID is specified, it must use the format pr/pull-request-ID * (for example, pr/25). If a branch name is specified, the branch's @@ -1797,6 +1797,9 @@ export interface ProjectSourceVersion { * used.

    *
  • *
  • + *

    For GitLab: the commit ID, branch, or Git tag to use.

    + *
  • + *
  • *

    For Bitbucket: the commit ID, branch name, or tag name that corresponds to the * version of the source code you want to build. If a branch name is specified, the * branch's HEAD commit ID is used. If not specified, the default branch's HEAD @@ -2582,7 +2585,7 @@ export interface Build { logs?: LogsLocation; /** - *

    How long, in minutes, for CodeBuild to wait before timing out this build if it does not + *

    How long, in minutes, from 5 to 480 (8 hours), for CodeBuild to wait before timing out this build if it does not * get marked as completed.

    * @public */ @@ -2807,6 +2810,7 @@ export interface ScalingConfigurationOutput { * @enum */ export const FleetContextCode = { + ACTION_REQUIRED: "ACTION_REQUIRED", CREATE_FAILED: "CREATE_FAILED", UPDATE_FAILED: "UPDATE_FAILED", } as const; @@ -3093,12 +3097,30 @@ export interface Fleet { *
  • *
  • *

    For overflow behavior ON_DEMAND, your overflow builds run on CodeBuild on-demand.

    + * + *

    If you choose to set your overflow behavior to on-demand while creating a VPC-connected + * fleet, make sure that you add the required VPC permissions to your project service role. For more + * information, see Example + * policy statement to allow CodeBuild access to Amazon Web Services services required to create a VPC network interface.

    + *
    *
  • * * @public */ overflowBehavior?: FleetOverflowBehavior; + /** + *

    Information about the VPC configuration that CodeBuild accesses.

    + * @public + */ + vpcConfig?: VpcConfig; + + /** + *

    The service role associated with the compute fleet.

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

    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 @@ -3749,6 +3771,9 @@ export interface Project { * used.

    * *
  • + *

    For GitLab: the commit ID, branch, or Git tag to use.

    + *
  • + *
  • *

    For Bitbucket: the commit ID, branch name, or tag name that corresponds to the * version of the source code you want to build. If a branch name is specified, the * branch's HEAD commit ID is used. If not specified, the default branch's HEAD @@ -4608,12 +4633,30 @@ export interface CreateFleetInput { *

  • *
  • *

    For overflow behavior ON_DEMAND, your overflow builds run on CodeBuild on-demand.

    + * + *

    If you choose to set your overflow behavior to on-demand while creating a VPC-connected + * fleet, make sure that you add the required VPC permissions to your project service role. For more + * information, see Example + * policy statement to allow CodeBuild access to Amazon Web Services services required to create a VPC network interface.

    + *
    *
  • * * @public */ overflowBehavior?: FleetOverflowBehavior; + /** + *

    Information about the VPC configuration that CodeBuild accesses.

    + * @public + */ + vpcConfig?: VpcConfig; + + /** + *

    The service role associated with the compute fleet.

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

    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 @@ -4699,6 +4742,9 @@ export interface CreateProjectInput { * used.

    * *
  • + *

    For GitLab: the commit ID, branch, or Git tag to use.

    + *
  • + *
  • *

    For Bitbucket: the commit ID, branch name, or tag name that corresponds to the * version of the source code you want to build. If a branch name is specified, the * branch's HEAD commit ID is used. If not specified, the default branch's HEAD @@ -4796,6 +4842,9 @@ export interface CreateProjectInput { /** *

    VpcConfig enables CodeBuild to access resources in an Amazon VPC.

    + * + *

    If you're using compute fleets during project creation, do not provide vpcConfig.

    + *
    * @public */ vpcConfig?: VpcConfig; @@ -5732,7 +5781,8 @@ export interface ImportSourceCredentialsInput { /** *

    For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket, - * this is either the access token or the app password.

    + * this is either the access token or the app password. For the authType CODECONNECTIONS, + * this is the connectionArn.

    * @public */ token: string | undefined; @@ -5744,9 +5794,10 @@ export interface ImportSourceCredentialsInput { serverType: ServerType | undefined; /** - *

    The type of authentication used to connect to a GitHub, GitHub Enterprise, or + *

    The type of authentication used to connect to a GitHub, GitHub Enterprise, GitLab, GitLab Self Managed, or * Bitbucket repository. An OAUTH connection is not supported by the API and must be - * created using the CodeBuild console.

    + * created using the CodeBuild console. Note that CODECONNECTIONS is only valid for + * GitLab and GitLab Self Managed.

    * @public */ authType: AuthType | undefined; @@ -6992,6 +7043,10 @@ export interface StartBuildInput { * HEAD commit ID is used. If not specified, the default branch's HEAD commit * ID is used.

    * + *
    GitLab
    + *
    + *

    The commit ID, branch, or Git tag to use.

    + *
    *
    Bitbucket
    *
    *

    The commit ID, branch name, or tag name that corresponds to the version of @@ -7049,8 +7104,8 @@ export interface StartBuildInput { /** *

    An authorization type for this build that overrides the one defined in the build - * project. This override applies only if the build project's source is BitBucket or - * GitHub.

    + * project. This override applies only if the build project's source is BitBucket, GitHub, + * GitLab, or GitLab Self Managed.

    * @public */ sourceAuthOverride?: SourceAuth; @@ -7748,12 +7803,30 @@ export interface UpdateFleetInput { *
  • *
  • *

    For overflow behavior ON_DEMAND, your overflow builds run on CodeBuild on-demand.

    + * + *

    If you choose to set your overflow behavior to on-demand while creating a VPC-connected + * fleet, make sure that you add the required VPC permissions to your project service role. For more + * information, see Example + * policy statement to allow CodeBuild access to Amazon Web Services services required to create a VPC network interface.

    + *
    *
  • * * @public */ overflowBehavior?: FleetOverflowBehavior; + /** + *

    Information about the VPC configuration that CodeBuild accesses.

    + * @public + */ + vpcConfig?: VpcConfig; + + /** + *

    The service role associated with the compute fleet.

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

    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 @@ -7822,6 +7895,9 @@ export interface UpdateProjectInput { * used.

    * *
  • + *

    For GitLab: the commit ID, branch, or Git tag to use.

    + *
  • + *
  • *

    For Bitbucket: the commit ID, branch name, or tag name that corresponds to the * version of the source code you want to build. If a branch name is specified, the * branch's HEAD commit ID is used. If not specified, the default branch's HEAD diff --git a/clients/client-codebuild/src/protocols/Aws_json1_1.ts b/clients/client-codebuild/src/protocols/Aws_json1_1.ts index 60e7e176118d..6674f50c212a 100644 --- a/clients/client-codebuild/src/protocols/Aws_json1_1.ts +++ b/clients/client-codebuild/src/protocols/Aws_json1_1.ts @@ -2044,10 +2044,12 @@ const se_CreateFleetInput = (input: CreateFleetInput, context: __SerdeContext): baseCapacity: [], computeType: [], environmentType: [], + fleetServiceRole: [], name: [], overflowBehavior: [], scalingConfiguration: (_) => se_ScalingConfigurationInput(_, context), tags: _json, + vpcConfig: _json, }); }; @@ -2253,9 +2255,11 @@ const se_UpdateFleetInput = (input: UpdateFleetInput, context: __SerdeContext): baseCapacity: [], computeType: [], environmentType: [], + fleetServiceRole: [], overflowBehavior: [], scalingConfiguration: (_) => se_ScalingConfigurationInput(_, context), tags: _json, + vpcConfig: _json, }); }; @@ -2713,6 +2717,7 @@ const de_Fleet = (output: any, context: __SerdeContext): Fleet => { computeType: __expectString, created: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), environmentType: __expectString, + fleetServiceRole: __expectString, id: __expectString, lastModified: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), name: __expectString, @@ -2720,6 +2725,7 @@ const de_Fleet = (output: any, context: __SerdeContext): Fleet => { scalingConfiguration: (_: any) => de_ScalingConfigurationOutput(_, context), status: _json, tags: _json, + vpcConfig: _json, }) as any; }; diff --git a/codegen/sdk-codegen/aws-models/codebuild.json b/codegen/sdk-codegen/aws-models/codebuild.json index 3c8a485b1e64..2cb68f0c21d4 100644 --- a/codegen/sdk-codegen/aws-models/codebuild.json +++ b/codegen/sdk-codegen/aws-models/codebuild.json @@ -686,7 +686,7 @@ "timeoutInMinutes": { "target": "com.amazonaws.codebuild#WrapperInt", "traits": { - "smithy.api#documentation": "

    How long, in minutes, for CodeBuild to wait before timing out this build if it does not\n get marked as completed.

    " + "smithy.api#documentation": "

    How long, in minutes, from 5 to 480 (8 hours), for CodeBuild to wait before timing out this build if it does not\n get marked as completed.

    " } }, "queuedTimeoutInMinutes": { @@ -2881,7 +2881,16 @@ "overflowBehavior": { "target": "com.amazonaws.codebuild#FleetOverflowBehavior", "traits": { - "smithy.api#documentation": "

    The compute fleet overflow behavior.

    \n " + "smithy.api#documentation": "

    The compute fleet overflow behavior.

    \n " + } + }, + "vpcConfig": { + "target": "com.amazonaws.codebuild#VpcConfig" + }, + "fleetServiceRole": { + "target": "com.amazonaws.codebuild#NonEmptyString", + "traits": { + "smithy.api#documentation": "

    The service role associated with the compute fleet.

    " } }, "tags": { @@ -2964,7 +2973,7 @@ "sourceVersion": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

    A version of the build input to be built for this project. If not specified, the latest\n version is used. If specified, it must be one of:

    \n \n

    If sourceVersion is specified at the build level, then that version takes\n precedence over this sourceVersion (at the project level).

    \n

    For more information, see Source Version Sample\n with CodeBuild in the CodeBuild User Guide. \n

    " + "smithy.api#documentation": "

    A version of the build input to be built for this project. If not specified, the latest\n version is used. If specified, it must be one of:

    \n \n

    If sourceVersion is specified at the build level, then that version takes\n precedence over this sourceVersion (at the project level).

    \n

    For more information, see Source Version Sample\n with CodeBuild in the CodeBuild User Guide. \n

    " } }, "secondarySourceVersions": { @@ -3033,7 +3042,7 @@ "vpcConfig": { "target": "com.amazonaws.codebuild#VpcConfig", "traits": { - "smithy.api#documentation": "

    VpcConfig enables CodeBuild to access resources in an Amazon VPC.

    " + "smithy.api#documentation": "

    VpcConfig enables CodeBuild to access resources in an Amazon VPC.

    \n \n

    If you're using compute fleets during project creation, do not provide vpcConfig.

    \n
    " } }, "badgeEnabled": { @@ -4091,7 +4100,16 @@ "overflowBehavior": { "target": "com.amazonaws.codebuild#FleetOverflowBehavior", "traits": { - "smithy.api#documentation": "

    The compute fleet overflow behavior.

    \n " + "smithy.api#documentation": "

    The compute fleet overflow behavior.

    \n " + } + }, + "vpcConfig": { + "target": "com.amazonaws.codebuild#VpcConfig" + }, + "fleetServiceRole": { + "target": "com.amazonaws.codebuild#NonEmptyString", + "traits": { + "smithy.api#documentation": "

    The service role associated with the compute fleet.

    " } }, "tags": { @@ -4139,6 +4157,12 @@ "traits": { "smithy.api#enumValue": "UPDATE_FAILED" } + }, + "ACTION_REQUIRED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ACTION_REQUIRED" + } } } }, @@ -4521,7 +4545,7 @@ "token": { "target": "com.amazonaws.codebuild#SensitiveNonEmptyString", "traits": { - "smithy.api#documentation": "

    For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket,\n this is either the access token or the app password.

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

    For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket,\n this is either the access token or the app password. For the authType CODECONNECTIONS, \n this is the connectionArn.

    ", "smithy.api#required": {} } }, @@ -4535,7 +4559,7 @@ "authType": { "target": "com.amazonaws.codebuild#AuthType", "traits": { - "smithy.api#documentation": "

    The type of authentication used to connect to a GitHub, GitHub Enterprise, or\n Bitbucket repository. An OAUTH connection is not supported by the API and must be\n created using the CodeBuild console.

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

    The type of authentication used to connect to a GitHub, GitHub Enterprise, GitLab, GitLab Self Managed, or\n Bitbucket repository. An OAUTH connection is not supported by the API and must be\n created using the CodeBuild console. Note that CODECONNECTIONS is only valid for \n GitLab and GitLab Self Managed.

    ", "smithy.api#required": {} } }, @@ -5834,7 +5858,7 @@ "sourceVersion": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

    A version of the build input to be built for this project. If not specified, the\n latest version is used. If specified, it must be one of:

    \n \n

    If sourceVersion is specified at the build level, then that version\n takes precedence over this sourceVersion (at the project level).

    \n

    For more information, see Source Version Sample\n with CodeBuild in the CodeBuild User Guide. \n

    " + "smithy.api#documentation": "

    A version of the build input to be built for this project. If not specified, the\n latest version is used. If specified, it must be one of:

    \n \n

    If sourceVersion is specified at the build level, then that version\n takes precedence over this sourceVersion (at the project level).

    \n

    For more information, see Source Version Sample\n with CodeBuild in the CodeBuild User Guide. \n

    " } }, "secondarySourceVersions": { @@ -6290,9 +6314,9 @@ "traits": { "smithy.api#length": { "min": 2, - "max": 255 + "max": 150 }, - "smithy.api#pattern": "^[A-Za-z0-9][A-Za-z0-9\\-_]{1,254}$" + "smithy.api#pattern": "^[A-Za-z0-9][A-Za-z0-9\\-_]{1,149}$" } }, "com.amazonaws.codebuild#ProjectNames": { @@ -6424,7 +6448,7 @@ "sourceVersion": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

    The source version for the corresponding source identifier. If specified, must be one\n of:

    \n \n

    For more information, see Source Version Sample\n with CodeBuild in the CodeBuild User Guide.

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

    The source version for the corresponding source identifier. If specified, must be one\n of:

    \n \n

    For more information, see Source Version Sample\n with CodeBuild in the CodeBuild User Guide.

    ", "smithy.api#required": {} } } @@ -7863,7 +7887,7 @@ "sourceVersion": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

    The version of the build input to be built, for this build only. If not specified,\n the latest version is used. If specified, the contents depends on the source\n provider:

    \n
    \n
    CodeCommit
    \n
    \n

    The commit ID, branch, or Git tag to use.

    \n
    \n
    GitHub
    \n
    \n

    The commit ID, pull request ID, branch name, or tag name that corresponds\n to the version of the source code you want to build. If a pull request ID is\n specified, it must use the format pr/pull-request-ID (for\n example pr/25). If a branch name is specified, the branch's\n HEAD commit ID is used. If not specified, the default branch's HEAD commit\n ID is used.

    \n
    \n
    Bitbucket
    \n
    \n

    The commit ID, branch name, or tag name that corresponds to the version of\n the source code you want to build. If a branch name is specified, the\n branch's HEAD commit ID is used. If not specified, the default branch's HEAD\n commit ID is used.

    \n
    \n
    Amazon S3
    \n
    \n

    The version ID of the object that represents the build input ZIP file to\n use.

    \n
    \n
    \n

    If sourceVersion is specified at the project level, then this\n sourceVersion (at the build level) takes precedence.

    \n

    For more information, see Source Version Sample\n with CodeBuild in the CodeBuild User Guide.

    " + "smithy.api#documentation": "

    The version of the build input to be built, for this build only. If not specified,\n the latest version is used. If specified, the contents depends on the source\n provider:

    \n
    \n
    CodeCommit
    \n
    \n

    The commit ID, branch, or Git tag to use.

    \n
    \n
    GitHub
    \n
    \n

    The commit ID, pull request ID, branch name, or tag name that corresponds\n to the version of the source code you want to build. If a pull request ID is\n specified, it must use the format pr/pull-request-ID (for\n example pr/25). If a branch name is specified, the branch's\n HEAD commit ID is used. If not specified, the default branch's HEAD commit\n ID is used.

    \n
    \n
    GitLab
    \n
    \n

    The commit ID, branch, or Git tag to use.

    \n
    \n
    Bitbucket
    \n
    \n

    The commit ID, branch name, or tag name that corresponds to the version of\n the source code you want to build. If a branch name is specified, the\n branch's HEAD commit ID is used. If not specified, the default branch's HEAD\n commit ID is used.

    \n
    \n
    Amazon S3
    \n
    \n

    The version ID of the object that represents the build input ZIP file to\n use.

    \n
    \n
    \n

    If sourceVersion is specified at the project level, then this\n sourceVersion (at the build level) takes precedence.

    \n

    For more information, see Source Version Sample\n with CodeBuild in the CodeBuild User Guide.

    " } }, "artifactsOverride": { @@ -7899,7 +7923,7 @@ "sourceAuthOverride": { "target": "com.amazonaws.codebuild#SourceAuth", "traits": { - "smithy.api#documentation": "

    An authorization type for this build that overrides the one defined in the build\n project. This override applies only if the build project's source is BitBucket or\n GitHub.

    " + "smithy.api#documentation": "

    An authorization type for this build that overrides the one defined in the build\n project. This override applies only if the build project's source is BitBucket, GitHub, \n GitLab, or GitLab Self Managed.

    " } }, "gitCloneDepthOverride": { @@ -8445,7 +8469,16 @@ "overflowBehavior": { "target": "com.amazonaws.codebuild#FleetOverflowBehavior", "traits": { - "smithy.api#documentation": "

    The compute fleet overflow behavior.

    \n " + "smithy.api#documentation": "

    The compute fleet overflow behavior.

    \n " + } + }, + "vpcConfig": { + "target": "com.amazonaws.codebuild#VpcConfig" + }, + "fleetServiceRole": { + "target": "com.amazonaws.codebuild#NonEmptyString", + "traits": { + "smithy.api#documentation": "

    The service role associated with the compute fleet.

    " } }, "tags": { @@ -8524,7 +8557,7 @@ "sourceVersion": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

    A version of the build input to be built for this project. If not specified, the\n latest version is used. If specified, it must be one of:

    \n \n

    If sourceVersion is specified at the build level, then that version\n takes precedence over this sourceVersion (at the project level).

    \n

    For more information, see Source Version Sample\n with CodeBuild in the CodeBuild User Guide. \n

    " + "smithy.api#documentation": "

    A version of the build input to be built for this project. If not specified, the\n latest version is used. If specified, it must be one of:

    \n \n

    If sourceVersion is specified at the build level, then that version\n takes precedence over this sourceVersion (at the project level).

    \n

    For more information, see Source Version Sample\n with CodeBuild in the CodeBuild User Guide. \n

    " } }, "secondarySourceVersions": {