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
4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 | |