AWS SDK Version 3 for .NET
API Reference

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.

Inheritance Hierarchy

System.Object
  Amazon.CodeBuild.Model.ProjectEnvironment

Namespace: Amazon.CodeBuild.Model
Assembly: AWSSDK.CodeBuild.dll
Version: 3.x.y.z

Syntax

C#
public class ProjectEnvironment

The ProjectEnvironment type exposes the following members

Constructors

NameDescription
Public Method ProjectEnvironment()

Properties

NameTypeDescription
Public Property ComputeType Amazon.CodeBuild.ComputeType

Gets and sets the property ComputeType.

Information about the compute resources the build project will use. Available values include:

  • BUILD_GENERAL1_SMALL: Use up to 3 GB memory and 2 vCPUs for builds.

  • BUILD_GENERAL1_MEDIUM: Use up to 7 GB memory and 4 vCPUs for builds.

  • BUILD_GENERAL1_LARGE: Use up to 15 GB memory and 8 vCPUs for builds.

Public Property 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.

Public Property Image System.String

Gets and sets the property Image.

The ID of the Docker image to use for this build project.

Public Property PrivilegedMode System.Boolean

Gets and sets the property PrivilegedMode.

If set to true, enables running the Docker daemon inside a Docker container; otherwise, false or not specified (the default). This value must be set to true only if this build project will be used to build Docker images, and the specified build environment image is not one provided by AWS CodeBuild with Docker support. Otherwise, all associated builds that attempt to interact with the Docker daemon will fail. Note that you must also start the Docker daemon so that your builds can interact with it as needed. One way to do this is to initialize the Docker daemon in the install phase of your build spec by running the following build commands. (Do not run the following build commands if the specified build environment image is provided by AWS CodeBuild with Docker support.)

- nohup /usr/local/bin/dockerd --host=unix:///var/run/docker.sock --host=tcp://0.0.0.0:2375
            --storage-driver=overlay& - timeout -t 15 sh -c "until docker info; do echo .;
            sleep 1; done"

Public Property Type Amazon.CodeBuild.EnvironmentType

Gets and sets the property Type.

The type of build environment to use for related builds.

Version Information

.NET Standard:
Supported in: 1.3

.NET Framework:
Supported in: 4.5, 4.0, 3.5

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms