Interface DockerBuildAssetOptions

All Superinterfaces:
DockerBuildOptions, software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
DockerBuildAssetOptions.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:40.698Z") @Stability(Stable) public interface DockerBuildAssetOptions extends software.amazon.jsii.JsiiSerializable, DockerBuildOptions
Options when creating an asset from a Docker build.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.lambda.*;
 DockerBuildAssetOptions dockerBuildAssetOptions = DockerBuildAssetOptions.builder()
         .buildArgs(Map.of(
                 "buildArgsKey", "buildArgs"))
         .file("file")
         .imagePath("imagePath")
         .outputPath("outputPath")
         .platform("platform")
         .build();
 
  • Method Details

    • getImagePath

      @Stability(Stable) @Nullable default String getImagePath()
      The path in the Docker image where the asset is located after the build operation.

      Default: /asset

    • getOutputPath

      @Stability(Stable) @Nullable default String getOutputPath()
      The path on the local filesystem where the asset will be copied using docker cp.

      Default: - a unique temporary directory in the system temp directory

    • builder

      @Stability(Stable) static DockerBuildAssetOptions.Builder builder()
      Returns:
      a DockerBuildAssetOptions.Builder of DockerBuildAssetOptions