Interface BuildEnvironment

All Superinterfaces:
All Known Implementing Classes:

@Generated(value="jsii-pacmak/1.97.0 (build 729de35)", date="2024-04-18T17:54:14.015Z") @Stability(Stable) public interface BuildEnvironment extends

 CodePipeline pipeline = CodePipeline.Builder.create(this, "Pipeline")
                 .input(CodePipelineSource.connection("my-org/my-app", "main", ConnectionSourceOptions.builder()
                 .commands(List.of("npm ci", "npm run build", "npx cdk synth"))
         // Turn this on because the pipeline uses Docker image assets
 pipeline.addWave("MyWave", WaveOptions.builder()
                             // The user of a Docker image asset in the pipeline requires turning on
                             // 'dockerEnabledForSelfMutation'.
                             .buildImage(LinuxBuildImage.fromAsset(this, "Image", DockerImageAssetProps.builder()
  • Method Details

    • getBuildImage

      @Stability(Stable) @Nullable default IBuildImage getBuildImage()
      The image used for the builds.

      Default: LinuxBuildImage.STANDARD_1_0

    • getCertificate

      @Stability(Stable) @Nullable default BuildEnvironmentCertificate getCertificate()
      The location of the PEM-encoded certificate for the build project.

      Default: - No external certificate is added to the project

    • getComputeType

      @Stability(Stable) @Nullable default ComputeType getComputeType()
      The type of compute to use for this build.

      See the ComputeType enum for the possible values.

      Default: taken from `#buildImage#defaultComputeType`

    • getEnvironmentVariables

      @Stability(Stable) @Nullable default Map<String,BuildEnvironmentVariable> getEnvironmentVariables()
      The environment variables that your builds can use.
    • getPrivileged

      @Stability(Stable) @Nullable default Boolean getPrivileged()
      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

    • builder

      @Stability(Stable) static BuildEnvironment.Builder builder()
      a BuildEnvironment.Builder of BuildEnvironment