@Stability(value=Stable) public static final class AssetImageCodeProps.Builder extends Object implements software.amazon.jsii.Builder<AssetImageCodeProps>
AssetImageCodeProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public AssetImageCodeProps.Builder cmd(List<String> cmd)
AssetImageCodeProps.getCmd()cmd - Specify or override the CMD on the specified Docker image or Dockerfile.
This needs to be in the 'exec form', viz., [ 'executable', 'param1', 'param2' ].this@Stability(value=Stable) public AssetImageCodeProps.Builder entrypoint(List<String> entrypoint)
AssetImageCodeProps.getEntrypoint()entrypoint - Specify or override the ENTRYPOINT on the specified Docker image or Dockerfile.
An ENTRYPOINT allows you to configure a container that will run as an executable.
This needs to be in the 'exec form', viz., [ 'executable', 'param1', 'param2' ].this@Stability(value=Stable) public AssetImageCodeProps.Builder workingDirectory(String workingDirectory)
AssetImageCodeProps.getWorkingDirectory()workingDirectory - Specify or override the WORKDIR on the specified Docker image or Dockerfile.
A WORKDIR allows you to configure the working directory the container will use.this@Stability(value=Stable) public AssetImageCodeProps.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 AssetImageCodeProps.Builder file(String file)
DockerImageAssetOptions.getFile()file - Path to the Dockerfile (relative to the directory).this@Stability(value=Stable) public AssetImageCodeProps.Builder invalidation(DockerImageAssetInvalidationOptions invalidation)
DockerImageAssetOptions.getInvalidation()invalidation - Options to control which parameters are used to invalidate the asset hash.this@Stability(value=Stable) public AssetImageCodeProps.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 AssetImageCodeProps.Builder platform(Platform platform)
DockerImageAssetOptions.getPlatform()platform - Platform to build for.
Requires Docker Buildx.this@Stability(value=Deprecated) @Deprecated public AssetImageCodeProps.Builder repositoryName(String repositoryName)
DockerImageAssetOptions.getRepositoryName()repositoryName - ECR repository name.
Specify this property if you need to statically address the image, e.g.
from a Kubernetes Pod. Note, this is only the repository name, without the
registry and the tag parts.this@Stability(value=Stable) public AssetImageCodeProps.Builder target(String target)
DockerImageAssetOptions.getTarget()target - Docker target to build to.this@Stability(value=Stable) public AssetImageCodeProps.Builder extraHash(String extraHash)
DockerImageAssetOptions.getExtraHash()extraHash - Extra information to encode into the fingerprint (e.g. build instructions and other inputs).this@Stability(value=Stable) public AssetImageCodeProps.Builder exclude(List<String> exclude)
DockerImageAssetOptions.getExclude()exclude - Glob patterns to exclude from the copy.this@Stability(value=Deprecated) @Deprecated public AssetImageCodeProps.Builder follow(software.amazon.awscdk.assets.FollowMode follow)
CopyOptions.getFollow()follow - A strategy for how to handle symlinks.this@Stability(value=Stable) public AssetImageCodeProps.Builder ignoreMode(IgnoreMode ignoreMode)
DockerImageAssetOptions.getIgnoreMode()ignoreMode - The ignore behavior to use for exclude patterns.this@Stability(value=Stable) public AssetImageCodeProps.Builder followSymlinks(SymlinkFollowMode followSymlinks)
FileCopyOptions.getFollowSymlinks()followSymlinks - A strategy for how to handle symlinks.this@Stability(value=Stable) public AssetImageCodeProps build()
build in interface software.amazon.jsii.Builder<AssetImageCodeProps>AssetImageCodePropsNullPointerException - if any required attribute was not providedCopyright © 2023. All rights reserved.