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 environment of the build project.
Namespace: Amazon.CodeBuild.Model
Assembly: AWSSDK.CodeBuild.dll
Version: 3.x.y.z
public class ProjectEnvironment
The ProjectEnvironment type exposes the following members
Name | Description | |
---|---|---|
![]() |
ProjectEnvironment() |
Name | Type | Description | |
---|---|---|---|
![]() |
Certificate | System.String |
Gets and sets the property Certificate. The ARN of the Amazon S3 bucket, path prefix, and object key that contains the PEM-encoded certificate for the build project. For more information, see certificate in the CodeBuild User Guide. |
![]() |
ComputeConfiguration | Amazon.CodeBuild.Model.ComputeConfiguration |
Gets and sets the property ComputeConfiguration.
The compute configuration of the build project. This is only required if |
![]() |
ComputeType | Amazon.CodeBuild.ComputeType |
Gets and sets the property ComputeType. Information about the compute resources the build project uses. Available values include:
If you use
If you use
For more information, see On-demand environment types in the CodeBuild User Guide. |
![]() |
DockerServer | Amazon.CodeBuild.Model.DockerServer |
Gets and sets the property DockerServer. A DockerServer object to use for this build project. |
![]() |
EnvironmentVariables | System.Collections.Generic.List<Amazon.CodeBuild.Model.EnvironmentVariable> |
Gets and sets the property EnvironmentVariables. A set of environment variables to make available to builds for this build project. |
![]() |
Fleet | Amazon.CodeBuild.Model.ProjectFleet |
Gets and sets the property Fleet. A ProjectFleet object to use for this build project. |
![]() |
Image | System.String |
Gets and sets the property Image. The image tag or image digest that identifies the Docker image to use for this build project. Use the following formats:
For more information, see Docker images provided by CodeBuild in the CodeBuild user guide. |
![]() |
ImagePullCredentialsType | Amazon.CodeBuild.ImagePullCredentialsType |
Gets and sets the property ImagePullCredentialsType. The type of credentials CodeBuild uses to pull images in your build. There are two valid values:
When you use a cross-account or private registry image, you must use SERVICE_ROLE credentials. When you use an CodeBuild curated image, you must use CODEBUILD credentials. |
![]() |
PrivilegedMode | System.Boolean |
Gets and sets the property PrivilegedMode.
Enables running the Docker daemon inside a Docker container. Set to true only if the
build project is used to build Docker images. Otherwise, a build that attempts to
interact with the Docker daemon fails. The default setting is You can initialize the Docker daemon during the install phase of your build by adding one of the following sets of commands to the install phase of your buildspec file: If the operating system's base image is Ubuntu Linux:
If the operating system's base image is Alpine Linux and the previous command does
not work, add the
|
![]() |
RegistryCredential | Amazon.CodeBuild.Model.RegistryCredential |
Gets and sets the property RegistryCredential. The credentials for access to a private registry. |
![]() |
Type | Amazon.CodeBuild.EnvironmentType |
Gets and sets the property Type. The type of build environment to use for related builds.
If you're using compute fleets during project creation, For more information, see Build environment compute types in the CodeBuild user guide. |
.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