@Stability(value=Stable) public static final class AssetImageProps.Builder extends Object implements software.amazon.jsii.Builder<AssetImageProps>
AssetImageProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public AssetImageProps.Builder buildArgs(Map<String,String> buildArgs)
DockerImageAssetOptions.getBuildArgs()buildArgs - Build args to pass to the `docker build` command.
Since Docker build arguments are resolved before deployment, keys and
values cannot refer to unresolved tokens (such as lambda.functionArn or
queue.queueUrl).this@Stability(value=Stable) public AssetImageProps.Builder file(String file)
DockerImageAssetOptions.getFile()file - Path to the Dockerfile (relative to the directory).this@Stability(value=Stable) public AssetImageProps.Builder invalidation(DockerImageAssetInvalidationOptions invalidation)
DockerImageAssetOptions.getInvalidation()invalidation - Options to control which parameters are used to invalidate the asset hash.this@Stability(value=Stable) public AssetImageProps.Builder networkMode(NetworkMode networkMode)
DockerImageAssetOptions.getNetworkMode()networkMode - Networking mode for the RUN commands during build.
Support docker API 1.25+.this@Stability(value=Stable) public AssetImageProps.Builder platform(Platform platform)
DockerImageAssetOptions.getPlatform()platform - Platform to build for.
Requires Docker Buildx.this@Stability(value=Stable) public AssetImageProps.Builder target(String target)
DockerImageAssetOptions.getTarget()target - Docker target to build to.this@Stability(value=Stable) public AssetImageProps.Builder extraHash(String extraHash)
FileFingerprintOptions.getExtraHash()extraHash - Extra information to encode into the fingerprint (e.g. build instructions and other inputs).this@Stability(value=Stable) public AssetImageProps.Builder exclude(List<String> exclude)
FileCopyOptions.getExclude()exclude - File paths matching the patterns will be excluded.
See ignoreMode to set the matching behavior.
Has no effect on Assets bundled using the bundling property.this@Stability(value=Stable) public AssetImageProps.Builder followSymlinks(SymlinkFollowMode followSymlinks)
FileCopyOptions.getFollowSymlinks()followSymlinks - A strategy for how to handle symlinks.this@Stability(value=Stable) public AssetImageProps.Builder ignoreMode(IgnoreMode ignoreMode)
FileCopyOptions.getIgnoreMode()ignoreMode - The ignore behavior to use for `exclude` patterns.this@Stability(value=Stable) public AssetImageProps build()
build in interface software.amazon.jsii.Builder<AssetImageProps>AssetImagePropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.