From 877d146a3f5a25386b462ac483956334354e7899 Mon Sep 17 00:00:00 2001
From: awstools 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 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. For overflow behavior 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. Information about the VPC configuration that CodeBuild accesses. The service role associated with the compute fleet. 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 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. Information about the VPC configuration that CodeBuild accesses. The service role associated with the compute fleet. 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. For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket,
- * this is either the access token or the app password. 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.ON_DEMAND
, your overflow builds run on CodeBuild on-demand.ON_DEMAND
, your overflow builds run on CodeBuild on-demand.authType
CODECONNECTIONS,
+ * this is the connectionArn
.
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. * + *The commit ID, branch, or Git tag to use.
+ *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.
+ *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.
\nFor overflow behavior QUEUE
, your overflow builds need to wait on \n the existing fleet instance to become available.
For overflow behavior ON_DEMAND
, your overflow builds run on CodeBuild on-demand.
The compute fleet overflow behavior.
\nFor overflow behavior QUEUE
, your overflow builds need to wait on \n the existing fleet instance to become available.
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 \n fleet, make sure that you add the required VPC permissions to your project service role. For more \n information, see Example \n policy statement to allow CodeBuild access to Amazon Web Services services required to create a VPC network interface.
\nThe 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:
\nFor CodeCommit: the commit ID, branch, or Git tag to use.
\nFor GitHub: the commit ID, pull request ID, branch name, or tag name that\n corresponds to the version of the source code you want to build. If a pull\n request ID is specified, it must use the format pr/pull-request-ID
\n (for 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 ID is\n used.
For Bitbucket: the commit ID, branch name, or tag name that corresponds to the\n version of 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.
\nFor Amazon S3: the version ID of the object that represents the build input ZIP\n file to use.
\nIf sourceVersion
is specified at the build level, then that version takes\n precedence over this sourceVersion
(at the project level).
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:
\nFor CodeCommit: the commit ID, branch, or Git tag to use.
\nFor GitHub: the commit ID, pull request ID, branch name, or tag name that\n corresponds to the version of the source code you want to build. If a pull\n request ID is specified, it must use the format pr/pull-request-ID
\n (for 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 ID is\n used.
For GitLab: the commit ID, branch, or Git tag to use.
\nFor Bitbucket: the commit ID, branch name, or tag name that corresponds to the\n version of 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.
\nFor Amazon S3: the version ID of the object that represents the build input ZIP\n file to use.
\nIf sourceVersion
is specified at the build level, then that version takes\n precedence over this sourceVersion
(at the project level).
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.
\nIf you're using compute fleets during project creation, do not provide vpcConfig.
\nThe compute fleet overflow behavior.
\nFor overflow behavior QUEUE
, your overflow builds need to wait on \n the existing fleet instance to become available.
For overflow behavior ON_DEMAND
, your overflow builds run on CodeBuild on-demand.
The compute fleet overflow behavior.
\nFor overflow behavior QUEUE
, your overflow builds need to wait on \n the existing fleet instance to become available.
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 \n fleet, make sure that you add the required VPC permissions to your project service role. For more \n information, see Example \n policy statement to allow CodeBuild access to Amazon Web Services services required to create a VPC network interface.
\nThe 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
.
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:
\nFor CodeCommit: the commit ID, branch, or Git tag to use.
\nFor GitHub: the commit ID, pull request ID, branch name, or tag name that\n corresponds to the version of the source code you want to build. If a pull\n request ID is specified, it must use the format pr/pull-request-ID
\n (for 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 ID is\n used.
For Bitbucket: the commit ID, branch name, or tag name that corresponds to the\n version of 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.
\nFor Amazon S3: the version ID of the object that represents the build input ZIP\n file to use.
\nIf sourceVersion
is specified at the build level, then that version\n takes precedence over this sourceVersion
(at the project level).
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:
\nFor CodeCommit: the commit ID, branch, or Git tag to use.
\nFor GitHub: the commit ID, pull request ID, branch name, or tag name that\n corresponds to the version of the source code you want to build. If a pull\n request ID is specified, it must use the format pr/pull-request-ID
\n (for 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 ID is\n used.
For GitLab: the commit ID, branch, or Git tag to use.
\nFor Bitbucket: the commit ID, branch name, or tag name that corresponds to the\n version of 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.
\nFor Amazon S3: the version ID of the object that represents the build input ZIP\n file to use.
\nIf sourceVersion
is specified at the build level, then that version\n takes precedence over this sourceVersion
(at the project level).
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:
\nFor CodeCommit: the commit ID, branch, or Git tag to use.
\nFor GitHub or GitLab: the commit ID, pull request ID, branch name, or tag name that\n corresponds to the version of the source code you want to build. If a pull\n request ID is specified, it must use the format pr/pull-request-ID
\n (for 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 ID is\n used.
For Bitbucket: the commit ID, branch name, or tag name that corresponds to the\n version of 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.
\nFor Amazon S3: the version ID of the object that represents the build input ZIP\n file to use.
\nFor 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:
\nFor CodeCommit: the commit ID, branch, or Git tag to use.
\nFor GitHub: the commit ID, pull request ID, branch name, or tag name that\n corresponds to the version of the source code you want to build. If a pull\n request ID is specified, it must use the format pr/pull-request-ID
\n (for 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 ID is\n used.
For GitLab: the commit ID, branch, or Git tag to use.
\nFor Bitbucket: the commit ID, branch name, or tag name that corresponds to the\n version of 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.
\nFor Amazon S3: the version ID of the object that represents the build input ZIP\n file to use.
\nFor 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:
\nThe commit ID, branch, or Git tag to use.
\nThe 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.
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.
\nThe version ID of the object that represents the build input ZIP file to\n use.
\nIf sourceVersion
is specified at the project level, then this\n sourceVersion
(at the build level) takes precedence.
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:
\nThe commit ID, branch, or Git tag to use.
\nThe 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.
The commit ID, branch, or Git tag to use.
\nThe 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.
\nThe version ID of the object that represents the build input ZIP file to\n use.
\nIf sourceVersion
is specified at the project level, then this\n sourceVersion
(at the build level) takes precedence.
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.
\nFor overflow behavior QUEUE
, your overflow builds need to wait on \n the existing fleet instance to become available.
For overflow behavior ON_DEMAND
, your overflow builds run on CodeBuild on-demand.
The compute fleet overflow behavior.
\nFor overflow behavior QUEUE
, your overflow builds need to wait on \n the existing fleet instance to become available.
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 \n fleet, make sure that you add the required VPC permissions to your project service role. For more \n information, see Example \n policy statement to allow CodeBuild access to Amazon Web Services services required to create a VPC network interface.
\nThe 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:
\nFor CodeCommit: the commit ID, branch, or Git tag to use.
\nFor GitHub: the commit ID, pull request ID, branch name, or tag name that\n corresponds to the version of the source code you want to build. If a pull\n request ID is specified, it must use the format pr/pull-request-ID
\n (for 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 ID is\n used.
For Bitbucket: the commit ID, branch name, or tag name that corresponds to the\n version of 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.
\nFor Amazon S3: the version ID of the object that represents the build input ZIP\n file to use.
\n If sourceVersion
is specified at the build level, then that version\n takes precedence over this sourceVersion
(at the project level).
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:
\nFor CodeCommit: the commit ID, branch, or Git tag to use.
\nFor GitHub: the commit ID, pull request ID, branch name, or tag name that\n corresponds to the version of the source code you want to build. If a pull\n request ID is specified, it must use the format pr/pull-request-ID
\n (for 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 ID is\n used.
For GitLab: the commit ID, branch, or Git tag to use.
\nFor Bitbucket: the commit ID, branch name, or tag name that corresponds to the\n version of 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.
\nFor Amazon S3: the version ID of the object that represents the build input ZIP\n file to use.
\n If sourceVersion
is specified at the build level, then that version\n takes precedence over this sourceVersion
(at the project level).
For more information, see Source Version Sample\n with CodeBuild in the CodeBuild User Guide. \n
" } }, "secondarySourceVersions": {