Interface DockerBuildAssetOptions
- All Superinterfaces:
DockerBuildOptions,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
DockerBuildAssetOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-17T14:40:54.891Z")
@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"))
.cacheDisabled(false)
.cacheFrom(List.of(DockerCacheOption.builder()
.type("type")
// the properties below are optional
.params(Map.of(
"paramsKey", "params"))
.build()))
.cacheTo(DockerCacheOption.builder()
.type("type")
// the properties below are optional
.params(Map.of(
"paramsKey", "params"))
.build())
.file("file")
.imagePath("imagePath")
.network("network")
.outputPath("outputPath")
.platform("platform")
.targetStage("targetStage")
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forDockerBuildAssetOptionsstatic final classAn implementation forDockerBuildAssetOptions -
Method Summary
Methods inherited from interface software.amazon.awscdk.DockerBuildOptions
getBuildArgs, getCacheDisabled, getCacheFrom, getCacheTo, getFile, getNetwork, getPlatform, getTargetStageMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getImagePath
The path in the Docker image where the asset is located after the build operation.Default: /asset
-
getOutputPath
The path on the local filesystem where the asset will be copied usingdocker cp.Default: - a unique temporary directory in the system temp directory
-
builder
- Returns:
- a
DockerBuildAssetOptions.BuilderofDockerBuildAssetOptions
-