@Stability(value=Experimental) public static final class AssetImageCode.Builder extends Object implements software.amazon.jsii.Builder<AssetImageCode>
AssetImageCode.| Modifier and Type | Method and Description |
|---|---|
AssetImageCode |
build() |
AssetImageCode.Builder |
buildArgs(Map<String,String> buildArgs)
(experimental) Build args to pass to the `docker build` command.
|
AssetImageCode.Builder |
cmd(List<String> cmd)
(experimental) Specify or override the CMD on the specified Docker image or Dockerfile.
|
static AssetImageCode.Builder |
create(String directory) |
AssetImageCode.Builder |
entrypoint(List<String> entrypoint)
(experimental) Specify or override the ENTRYPOINT on the specified Docker image or Dockerfile.
|
AssetImageCode.Builder |
exclude(List<String> exclude)
(experimental) Glob patterns to exclude from the copy.
|
AssetImageCode.Builder |
extraHash(String extraHash)
(experimental) Extra information to encode into the fingerprint (e.g.
|
AssetImageCode.Builder |
file(String file)
(experimental) Path to the Dockerfile (relative to the directory).
|
AssetImageCode.Builder |
followSymlinks(SymlinkFollowMode followSymlinks)
(experimental) A strategy for how to handle symlinks.
|
AssetImageCode.Builder |
ignoreMode(IgnoreMode ignoreMode)
(experimental) The ignore behavior to use for exclude patterns.
|
AssetImageCode.Builder |
target(String target)
(experimental) Docker target to build to.
|
@Stability(value=Experimental) public static AssetImageCode.Builder create(String directory)
directory - This parameter is required.AssetImageCode.Builder.@Stability(value=Experimental) public AssetImageCode.Builder exclude(List<String> exclude)
Default: - nothing is excluded
exclude - Glob patterns to exclude from the copy. This parameter is required.this@Stability(value=Experimental) public AssetImageCode.Builder followSymlinks(SymlinkFollowMode followSymlinks)
Default: SymlinkFollowMode.NEVER
followSymlinks - A strategy for how to handle symlinks. This parameter is required.this@Stability(value=Experimental) public AssetImageCode.Builder ignoreMode(IgnoreMode ignoreMode)
Default: IgnoreMode.GLOB
ignoreMode - The ignore behavior to use for exclude patterns. This parameter is required.this@Stability(value=Experimental) public AssetImageCode.Builder extraHash(String extraHash)
Default: - hash is only based on source content
extraHash - Extra information to encode into the fingerprint (e.g. build instructions and other inputs). This parameter is required.this@Stability(value=Experimental) public AssetImageCode.Builder buildArgs(Map<String,String> buildArgs)
Since Docker build arguments are resolved before deployment, keys and
values cannot refer to unresolved tokens (such as lambda.functionArn or
queue.queueUrl).
Default: - no build args are passed
buildArgs - Build args to pass to the `docker build` command. This parameter is required.this@Stability(value=Experimental) public AssetImageCode.Builder file(String file)
Default: 'Dockerfile'
file - Path to the Dockerfile (relative to the directory). This parameter is required.this@Stability(value=Experimental) public AssetImageCode.Builder target(String target)
Default: - no target
target - Docker target to build to. This parameter is required.this@Stability(value=Experimental) public AssetImageCode.Builder cmd(List<String> cmd)
This needs to be in the 'exec form', viz., [ 'executable', 'param1', 'param2' ].
Default: - use the CMD specified in the docker image or Dockerfile.
cmd - Specify or override the CMD on the specified Docker image or Dockerfile. This parameter is required.thishttps://docs.docker.com/engine/reference/builder/#cmd@Stability(value=Experimental) public AssetImageCode.Builder entrypoint(List<String> entrypoint)
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' ].
Default: - use the ENTRYPOINT in the docker image or Dockerfile.
entrypoint - Specify or override the ENTRYPOINT on the specified Docker image or Dockerfile. This parameter is required.thishttps://docs.docker.com/engine/reference/builder/#entrypoint@Stability(value=Experimental) public AssetImageCode build()
build in interface software.amazon.jsii.Builder<AssetImageCode>Copyright © 2021. All rights reserved.