Project
¶
Source code in docs_src/capo_codebuild/types/project.py
arn
instance-attribute
¶
arn: NotRequired[String]
The Amazon Resource Name (ARN) of the build project.
artifacts
instance-attribute
¶
artifacts: NotRequired[ProjectArtifacts]
Information about the build output artifacts for the build project.
auto_retry_limit
instance-attribute
¶
auto_retry_limit: NotRequired[WrapperInt]
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 RetryBuild API to automatically retry your build for up to 2 additional times.
badge
instance-attribute
¶
badge: NotRequired[ProjectBadge]
Information about the build badge for the build project.
build_batch_config
instance-attribute
¶
build_batch_config: NotRequired[ProjectBuildBatchConfig]
A ProjectBuildBatchConfig object that defines the batch build options for the project.
cache
instance-attribute
¶
cache: NotRequired[ProjectCache]
Information about the cache for the build project.
concurrent_build_limit
instance-attribute
¶
concurrent_build_limit: NotRequired[WrapperInt]
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.
created
instance-attribute
¶
created: NotRequired[Timestamp]
When the build project was created, expressed in Unix time format.
description
instance-attribute
¶
description: NotRequired[ProjectDescription]
A description that makes the build project easy to identify.
encryption_key
instance-attribute
¶
encryption_key: NotRequired[NonEmptyString]
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/). If you don't specify a value, CodeBuild uses the managed CMK for Amazon Simple Storage Service (Amazon S3).
environment
instance-attribute
¶
environment: NotRequired[ProjectEnvironment]
Information about the build environment for this build project.
file_system_locations
instance-attribute
¶
file_system_locations: NotRequired[ProjectFileSystemLocations]
An array of ProjectFileSystemLocation objects for a CodeBuild build project. A ProjectFileSystemLocation object specifies the identifier, location, mountOptions, mountPoint, and type of a file system created using Amazon Elastic File System.
last_modified
instance-attribute
¶
last_modified: NotRequired[Timestamp]
When the build project's settings were last modified, expressed in Unix time format.
logs_config
instance-attribute
¶
logs_config: NotRequired[LogsConfig]
Information about logs for the build project. A project can create logs in CloudWatch Logs, an S3 bucket, or both.
public_project_alias
instance-attribute
¶
public_project_alias: NotRequired[NonEmptyString]
Contains the project identifier used with the public build APIs.
queued_timeout_in_minutes
instance-attribute
¶
queued_timeout_in_minutes: NotRequired[TimeOut]
The number of minutes a build is allowed to be queued before it times out.
resource_access_role
instance-attribute
¶
resource_access_role: NotRequired[NonEmptyString]
The ARN of the IAM role that enables CodeBuild to access the CloudWatch Logs and Amazon S3 artifacts for the project's builds.
secondary_artifacts
instance-attribute
¶
secondary_artifacts: NotRequired[ProjectArtifactsList]
An array of ProjectArtifacts objects.
secondary_source_versions
instance-attribute
¶
secondary_source_versions: NotRequired[ProjectSecondarySourceVersions]
An array of ProjectSourceVersion objects. If secondarySourceVersions is specified at the build level, then they take over these secondarySourceVersions (at the project level).
secondary_sources
instance-attribute
¶
secondary_sources: NotRequired[ProjectSources]
An array of ProjectSource objects.
service_role
instance-attribute
¶
service_role: NotRequired[NonEmptyString]
The ARN of the IAM role that enables CodeBuild to interact with dependent Amazon Web Services services on behalf of the Amazon Web Services account.
source
instance-attribute
¶
source: NotRequired[ProjectSource]
Information about the build input source code for this build project.
source_version
instance-attribute
¶
source_version: NotRequired[String]
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 sourceVersion is specified at the build level, then that version takes precedence over this sourceVersion (at the project level).
For more information, see Source Version Sample with CodeBuild in the CodeBuild User Guide.
tags
instance-attribute
¶
tags: NotRequired[TagList]
A 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.
timeout_in_minutes
instance-attribute
¶
timeout_in_minutes: NotRequired[BuildTimeOut]
How long, 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. The default is 60 minutes.