update_project
¶
update_project(
name: NonEmptyString,
*,
config_overrides: Optional[CodeBuildClientConfig] = 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/code_build.py
4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 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 | |