update_project
async
¶
update_project(
name: NonEmptyString,
*,
config_overrides: Optional[AsyncCodeBuildClientConfig] = None,
description: Optional[ProjectDescription] = None,
source: Optional[ProjectSource] = None,
secondary_sources: Optional[ProjectSources] = None,
source_version: Optional[String] = None,
secondary_source_versions: Optional[ProjectSecondarySourceVersions] = None,
artifacts: Optional[ProjectArtifacts] = None,
secondary_artifacts: Optional[ProjectArtifactsList] = None,
cache: Optional[ProjectCache] = None,
environment: Optional[ProjectEnvironment] = None,
service_role: Optional[NonEmptyString] = None,
timeout_in_minutes: Optional[BuildTimeOut] = None,
queued_timeout_in_minutes: Optional[TimeOut] = None,
encryption_key: Optional[NonEmptyString] = None,
tags: Optional[TagList] = None,
vpc_config: Optional[VpcConfig] = None,
badge_enabled: Optional[WrapperBoolean] = None,
logs_config: Optional[LogsConfig] = None,
file_system_locations: Optional[ProjectFileSystemLocations] = None,
build_batch_config: Optional[ProjectBuildBatchConfig] = None,
concurrent_build_limit: Optional[WrapperInt] = None,
auto_retry_limit: Optional[WrapperInt] = None,
) -> UpdateProjectOutput
Changes the settings of a build project.
Parameters:
-
name(NonEmptyString) –The name of the build project.
You cannot change a build project's name.
-
description(Optional[ProjectDescription], default:None) –A new or replacement description of the build project.
-
source(Optional[ProjectSource], default:None) –Information to be changed about the build input source code for the build project.
-
secondary_sources(Optional[ProjectSources], default:None) –An array of
ProjectSourceobjects. -
source_version(Optional[String], default:None) –A version of the build input to be built for this project. If not specified, the latest version is used. If specified, it must be one of:
-
For CodeCommit: the commit ID, branch, or Git tag to use.
-
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 examplepr/25). If a branch name is specified, the branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is 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 commit ID is used.
-
For Amazon S3: the version ID of the object that represents the build input ZIP file to use.
If
sourceVersionis specified at the build level, then that version takes precedence over thissourceVersion(at the project level).For more information, see Source Version Sample with CodeBuild in the CodeBuild User Guide.
-
-
secondary_source_versions(Optional[ProjectSecondarySourceVersions], default:None) –An array of
ProjectSourceVersionobjects. IfsecondarySourceVersionsis specified at the build level, then they take over thesesecondarySourceVersions(at the project level). -
artifacts(Optional[ProjectArtifacts], default:None) –Information to be changed about the build output artifacts for the build project.
-
secondary_artifacts(Optional[ProjectArtifactsList], default:None) –An array of
ProjectArtifactobjects. -
cache(Optional[ProjectCache], default:None) –Stores recently used information so that it can be quickly accessed at a later time.
-
environment(Optional[ProjectEnvironment], default:None) –Information to be changed about the build environment for the build project.
-
service_role(Optional[NonEmptyString], default:None) –The replacement ARN of the IAM role that enables CodeBuild to interact with dependent Amazon Web Services services on behalf of the Amazon Web Services account.
-
timeout_in_minutes(Optional[BuildTimeOut], default:None) –The replacement value in minutes, from 5 to 2160 (36 hours), for CodeBuild to wait before timing out any related build that did not get marked as completed.
-
queued_timeout_in_minutes(Optional[TimeOut], default:None) –The number of minutes a build is allowed to be queued before it times out.
-
encryption_key(Optional[NonEmptyString], default:None) –The Key Management Service customer master key (CMK) to be used for encrypting the build output artifacts.
You can use a cross-account KMS key to encrypt the build output artifacts if your service role has permission to that key.
You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using the format
alias/). -
tags(Optional[TagList], default:None) –An updated list of tag key and value pairs associated with this build project.
These tags are available for use by Amazon Web Services services that support CodeBuild build project tags.
-
vpc_config(Optional[VpcConfig], default:None) –VpcConfig enables CodeBuild to access resources in an Amazon VPC.
-
badge_enabled(Optional[WrapperBoolean], default:None) –Set this to true to generate a publicly accessible URL for your project's build badge.
-
logs_config(Optional[LogsConfig], default:None) –Information about logs for the build project. A project can create logs in CloudWatch Logs, logs in an S3 bucket, or both.
-
file_system_locations(Optional[ProjectFileSystemLocations], default:None) –An array of
ProjectFileSystemLocationobjects for a CodeBuild build project. AProjectFileSystemLocationobject specifies theidentifier,location,mountOptions,mountPoint, andtypeof a file system created using Amazon Elastic File System. -
concurrent_build_limit(Optional[WrapperInt], default:None) –The maximum number of concurrent builds that are allowed for this project.
New builds are only started if the current number of builds is less than or equal to this limit. If the current build count meets this limit, new builds are throttled and are not run.
To remove this limit, set this value to -1.
-
auto_retry_limit(Optional[WrapperInt], default:None) –The maximum number of additional automatic retries after a failed build. For example, if the auto-retry limit is set to 2, CodeBuild will call the
RetryBuildAPI to automatically retry your build for up to 2 additional times.
Raises:
-
InvalidInputException–The input value that was provided is not valid.
-
ResourceNotFoundException–The specified Amazon Web Services resource cannot be found.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_codebuild/_services/async_code_build.py
5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 | |