BuildEnvironment

class aws_cdk.aws_codebuild.BuildEnvironment(*, build_image=None, compute_type=None, environment_variables=None, privileged=None)

Bases: object

__init__(*, build_image=None, compute_type=None, environment_variables=None, privileged=None)
Parameters
  • build_image (Optional[IBuildImage]) – The image used for the builds. Default: LinuxBuildImage.STANDARD_1_0

  • compute_type (Optional[ComputeType]) – The type of compute to use for this build. See the {@link ComputeType} enum for the possible values. Default: taken from {@link #buildImage#defaultComputeType}

  • environment_variables (Optional[Mapping[str, BuildEnvironmentVariable]]) – The environment variables that your builds can use.

  • privileged (Optional[bool]) – Indicates how the project builds Docker images. Specify true to enable running the Docker daemon inside a Docker container. 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. Default: false

Attributes

build_image

The image used for the builds.

default :default: LinuxBuildImage.STANDARD_1_0

Return type

Optional[IBuildImage]

compute_type

The type of compute to use for this build.

See the {@link ComputeType} enum for the possible values.

default :default: taken from {@link #buildImage#defaultComputeType}

Return type

Optional[ComputeType]

environment_variables

The environment variables that your builds can use.

Return type

Optional[Mapping[str, BuildEnvironmentVariable]]

privileged

Indicates how the project builds Docker images.

Specify true to enable running the Docker daemon inside a Docker container. 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.

default :default: false

Return type

Optional[bool]