Skip to content

Project

Source code in docs_src/capo_codebuild/types/project.py
class Project(TypedDict, closed=True):
    name: NotRequired["capo_codebuild.types.project_name.ProjectName"]
    """<p>The name of the build project.</p>"""
    arn: NotRequired["capo_codebuild.types.string.String"]
    """<p>The Amazon Resource Name (ARN) of the build project.</p>"""
    description: NotRequired[
        "capo_codebuild.types.project_description.ProjectDescription"
    ]
    """<p>A description that makes the build project easy to identify.</p>"""
    source: NotRequired["capo_codebuild.types.project_source.ProjectSource"]
    """<p>Information about the build input source code for this build project.</p>"""
    secondary_sources: NotRequired[
        "capo_codebuild.types.project_sources.ProjectSources"
    ]
    """<p>An array of <code>ProjectSource</code> objects. </p>"""
    source_version: NotRequired["capo_codebuild.types.string.String"]
    """<p>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:</p> <ul> <li> <p>For CodeCommit: the commit ID, branch, or Git tag to use.</p> </li> <li> <p>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 <code>pr/pull-request-ID</code> (for example <code>pr/25</code>). 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.</p> </li> <li> <p>For GitLab: the commit ID, branch, or Git tag to use.</p> </li> <li> <p>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.</p> </li> <li> <p>For Amazon S3: the version ID of the object that represents the build input ZIP file to use.</p> </li> </ul> <p>If <code>sourceVersion</code> is specified at the build level, then that version takes precedence over this <code>sourceVersion</code> (at the project level). </p> <p>For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/sample-source-version.html">Source Version Sample with CodeBuild</a> in the <i>CodeBuild User Guide</i>. </p>"""
    secondary_source_versions: NotRequired[
        "capo_codebuild.types.project_secondary_source_versions.ProjectSecondarySourceVersions"
    ]
    """<p>An array of <code>ProjectSourceVersion</code> objects. If <code>secondarySourceVersions</code> is specified at the build level, then they take over these <code>secondarySourceVersions</code> (at the project level). </p>"""
    artifacts: NotRequired["capo_codebuild.types.project_artifacts.ProjectArtifacts"]
    """<p>Information about the build output artifacts for the build project.</p>"""
    secondary_artifacts: NotRequired[
        "capo_codebuild.types.project_artifacts_list.ProjectArtifactsList"
    ]
    """<p>An array of <code>ProjectArtifacts</code> objects. </p>"""
    cache: NotRequired["capo_codebuild.types.project_cache.ProjectCache"]
    """<p>Information about the cache for the build project.</p>"""
    environment: NotRequired[
        "capo_codebuild.types.project_environment.ProjectEnvironment"
    ]
    """<p>Information about the build environment for this build project.</p>"""
    service_role: NotRequired["capo_codebuild.types.non_empty_string.NonEmptyString"]
    """<p>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.</p>"""
    timeout_in_minutes: NotRequired["capo_codebuild.types.build_time_out.BuildTimeOut"]
    """<p>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.</p>"""
    queued_timeout_in_minutes: NotRequired["capo_codebuild.types.time_out.TimeOut"]
    """<p>The number of minutes a build is allowed to be queued before it times out. </p>"""
    encryption_key: NotRequired["capo_codebuild.types.non_empty_string.NonEmptyString"]
    """<p>The Key Management Service customer master key (CMK) to be used for encrypting the build output artifacts.</p> <note> <p>You can use a cross-account KMS key to encrypt the build output artifacts if your service role has permission to that key. </p> </note> <p>You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using the format <code>alias/<alias-name></code>). If you don't specify a value, CodeBuild uses the managed CMK for Amazon Simple Storage Service (Amazon S3). </p>"""
    tags: NotRequired["capo_codebuild.types.tag_list.TagList"]
    """<p>A list of tag key and value pairs associated with this build project.</p> <p>These tags are available for use by Amazon Web Services services that support CodeBuild build project tags.</p>"""
    created: NotRequired["capo_codebuild.types.timestamp.Timestamp"]
    """<p>When the build project was created, expressed in Unix time format.</p>"""
    last_modified: NotRequired["capo_codebuild.types.timestamp.Timestamp"]
    """<p>When the build project's settings were last modified, expressed in Unix time format.</p>"""
    webhook: NotRequired["capo_codebuild.types.webhook.Webhook"]
    """<p>Information about a webhook that connects repository events to a build project in CodeBuild.</p>"""
    vpc_config: NotRequired["capo_codebuild.types.vpc_config.VpcConfig"]
    """<p>Information about the VPC configuration that CodeBuild accesses.</p>"""
    badge: NotRequired["capo_codebuild.types.project_badge.ProjectBadge"]
    """<p>Information about the build badge for the build project.</p>"""
    logs_config: NotRequired["capo_codebuild.types.logs_config.LogsConfig"]
    """<p>Information about logs for the build project. A project can create logs in CloudWatch Logs, an S3 bucket, or both. </p>"""
    file_system_locations: NotRequired[
        "capo_codebuild.types.project_file_system_locations.ProjectFileSystemLocations"
    ]
    """<p> An array of <code>ProjectFileSystemLocation</code> objects for a CodeBuild build project. A <code>ProjectFileSystemLocation</code> object specifies the <code>identifier</code>, <code>location</code>, <code>mountOptions</code>, <code>mountPoint</code>, and <code>type</code> of a file system created using Amazon Elastic File System. </p>"""
    build_batch_config: NotRequired[
        "capo_codebuild.types.project_build_batch_config.ProjectBuildBatchConfig"
    ]
    """<p>A <a>ProjectBuildBatchConfig</a> object that defines the batch build options for the project.</p>"""
    concurrent_build_limit: NotRequired["capo_codebuild.types.wrapper_int.WrapperInt"]
    """<p>The maximum number of concurrent builds that are allowed for this project.</p> <p>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.</p>"""
    project_visibility: NotRequired[
        "capo_codebuild.types.project_visibility_type.ProjectVisibilityType"
    ]
    public_project_alias: NotRequired[
        "capo_codebuild.types.non_empty_string.NonEmptyString"
    ]
    """<p>Contains the project identifier used with the public build APIs. </p>"""
    resource_access_role: NotRequired[
        "capo_codebuild.types.non_empty_string.NonEmptyString"
    ]
    """<p>The ARN of the IAM role that enables CodeBuild to access the CloudWatch Logs and Amazon S3 artifacts for the project's builds.</p>"""
    auto_retry_limit: NotRequired["capo_codebuild.types.wrapper_int.WrapperInt"]
    """<p>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 <code>RetryBuild</code> API to automatically retry your build for up to 2 additional times.</p>"""

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.

name instance-attribute

name: NotRequired[ProjectName]

The name of the build project.

project_visibility instance-attribute

project_visibility: NotRequired[ProjectVisibilityType]

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 example pr/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.

vpc_config instance-attribute

vpc_config: NotRequired[VpcConfig]

Information about the VPC configuration that CodeBuild accesses.

webhook instance-attribute

webhook: NotRequired[Webhook]

Information about a webhook that connects repository events to a build project in CodeBuild.