AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Information about the build input source code for the build project.
Namespace: Amazon.CodeBuild.Model
Assembly: AWSSDK.CodeBuild.dll
Version: 3.x.y.z
public class ProjectSource
The ProjectSource type exposes the following members
Name | Description | |
---|---|---|
![]() |
ProjectSource() |
Name | Type | Description | |
---|---|---|---|
![]() |
Auth | Amazon.CodeBuild.Model.SourceAuth |
Gets and sets the property Auth. Information about the authorization settings for CodeBuild to access the source code to be built. |
![]() |
Buildspec | System.String |
Gets and sets the property Buildspec. The buildspec file declaration to use for the builds in this build project.
If this value is set, it can be either an inline buildspec definition, the path to
an alternate buildspec file relative to the value of the built-in |
![]() |
BuildStatusConfig | Amazon.CodeBuild.Model.BuildStatusConfig |
Gets and sets the property BuildStatusConfig.
Contains information that defines how the build project reports the build status to
the source provider. This option is only used when the source provider is |
![]() |
GitCloneDepth | System.Int32 |
Gets and sets the property GitCloneDepth. Information about the Git clone depth for the build project. |
![]() |
GitSubmodulesConfig | Amazon.CodeBuild.Model.GitSubmodulesConfig |
Gets and sets the property GitSubmodulesConfig. Information about the Git submodules configuration for the build project. |
![]() |
InsecureSsl | System.Boolean |
Gets and sets the property InsecureSsl. Enable this flag to ignore SSL warnings while connecting to the project source code. |
![]() |
Location | System.String |
Gets and sets the property Location. Information about the location of the source code to be built. Valid values include:
If you specify |
![]() |
ReportBuildStatus | System.Boolean |
Gets and sets the property ReportBuildStatus.
Set to true to report the status of a build's start and finish to your source provider.
This option is valid only when your source provider is GitHub, GitHub Enterprise,
GitLab, GitLab Self Managed, GitLab, GitLab Self Managed, or Bitbucket. If this is
set and you use a different source provider, an To be able to report the build status to the source provider, the user associated with the source provider must have write access to the repo. If the user does not have write access, the build status cannot be updated. For more information, see Source provider access in the CodeBuild User Guide. The status of a build triggered by a webhook is always reported to your source provider. If your project's builds are triggered by a webhook, you must push a new commit to the repo for a change to this property to take effect. |
![]() |
SourceIdentifier | System.String |
Gets and sets the property SourceIdentifier. An identifier for this project source. The identifier can only contain alphanumeric characters and underscores, and must be less than 128 characters in length. |
![]() |
Type | Amazon.CodeBuild.SourceType |
Gets and sets the property Type. The type of repository that contains the source code to be built. Valid values include:
|
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5 and newer, 3.5