@Stability(value=Experimental) public static final class DockerImageAssetProps.Builder extends Object implements software.amazon.jsii.Builder<DockerImageAssetProps>
DockerImageAssetProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Experimental) public DockerImageAssetProps.Builder directory(String directory)
DockerImageAssetProps.getDirectory()directory - The directory where the Dockerfile is stored. This parameter is required.
Any directory inside with a name that matches the CDK output folder (cdk.out by default) will be excluded from the assetthis@Stability(value=Experimental) public DockerImageAssetProps.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=Experimental) public DockerImageAssetProps.Builder file(String file)
DockerImageAssetOptions.getFile()file - Path to the Dockerfile (relative to the directory).this@Stability(value=Experimental) public DockerImageAssetProps.Builder invalidation(DockerImageAssetInvalidationOptions invalidation)
DockerImageAssetOptions.getInvalidation()invalidation - Options to control which parameters are used to invalidate the asset hash.this@Stability(value=Deprecated) @Deprecated public DockerImageAssetProps.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=Experimental) public DockerImageAssetProps.Builder target(String target)
DockerImageAssetOptions.getTarget()target - Docker target to build to.this@Stability(value=Experimental) public DockerImageAssetProps.Builder extraHash(String extraHash)
DockerImageAssetOptions.getExtraHash()extraHash - Extra information to encode into the fingerprint (e.g. build instructions and other inputs).this@Stability(value=Experimental) public DockerImageAssetProps.Builder exclude(List<String> exclude)
DockerImageAssetOptions.getExclude()exclude - Glob patterns to exclude from the copy.this@Stability(value=Deprecated) @Deprecated public DockerImageAssetProps.Builder follow(FollowMode follow)
CopyOptions.getFollow()follow - A strategy for how to handle symlinks.this@Stability(value=Experimental) public DockerImageAssetProps.Builder ignoreMode(IgnoreMode ignoreMode)
DockerImageAssetOptions.getIgnoreMode()ignoreMode - The ignore behavior to use for exclude patterns.this@Stability(value=Experimental) public DockerImageAssetProps.Builder followSymlinks(SymlinkFollowMode followSymlinks)
FileCopyOptions.getFollowSymlinks()followSymlinks - A strategy for how to handle symlinks.this@Stability(value=Experimental) public DockerImageAssetProps build()
build in interface software.amazon.jsii.Builder<DockerImageAssetProps>DockerImageAssetPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.