@Stability(value=Stable) 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)
Specify or override the CMD on the specified Docker image or Dockerfile.
|
static AssetImageCode.Builder |
create(String directory) |
AssetImageCode.Builder |
entrypoint(List<String> entrypoint)
Specify or override the ENTRYPOINT on the specified Docker image or Dockerfile.
|
AssetImageCode.Builder |
exclude(List<String> exclude)
Deprecated.
|
AssetImageCode.Builder |
extraHash(String extraHash)
Deprecated.
|
AssetImageCode.Builder |
file(String file)
(experimental) Path to the Dockerfile (relative to the directory).
|
AssetImageCode.Builder |
follow(software.amazon.awscdk.assets.FollowMode follow)
Deprecated.
|
AssetImageCode.Builder |
ignoreMode(IgnoreMode ignoreMode)
Deprecated.
|
AssetImageCode.Builder |
repositoryName(String repositoryName)
Deprecated.
to control the location of docker image assets, please override
`Stack.addDockerImageAsset`. this feature will be removed in future
releases.
|
AssetImageCode.Builder |
target(String target)
(experimental) Docker target to build to.
|
@Stability(value=Stable) public static AssetImageCode.Builder create(String directory)
directory - This parameter is required.AssetImageCode.Builder.@Stability(value=Deprecated) @Deprecated 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=Deprecated) @Deprecated public AssetImageCode.Builder follow(software.amazon.awscdk.assets.FollowMode follow)
Default: Never
follow - A strategy for how to handle symlinks. This parameter is required.this@Stability(value=Deprecated) @Deprecated public AssetImageCode.Builder ignoreMode(IgnoreMode ignoreMode)
Default: - GLOB for file assets, DOCKER or GLOB for docker assets depending on whether the '
ignoreMode - The ignore behavior to use for exclude patterns. This parameter is required.this@Stability(value=Deprecated) @Deprecated 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=Deprecated) @Deprecated public AssetImageCode.Builder repositoryName(String repositoryName)
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.
Default: - the default ECR repository for CDK assets
repositoryName - ECR repository name. 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=Stable) 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=Stable) 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=Stable) public AssetImageCode build()
build in interface software.amazon.jsii.Builder<AssetImageCode>Copyright © 2021. All rights reserved.