@Stability(value=Experimental) public static final class DockerImageAssetSource.Builder extends Object implements software.amazon.jsii.Builder<DockerImageAssetSource>
DockerImageAssetSource| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
DockerImageAssetSource |
build()
Builds the configured instance.
|
DockerImageAssetSource.Builder |
directoryName(String directoryName)
Sets the value of
DockerImageAssetSource.getDirectoryName() |
DockerImageAssetSource.Builder |
dockerBuildArgs(Map<String,String> dockerBuildArgs)
Sets the value of
DockerImageAssetSource.getDockerBuildArgs() |
DockerImageAssetSource.Builder |
dockerBuildTarget(String dockerBuildTarget)
Sets the value of
DockerImageAssetSource.getDockerBuildTarget() |
DockerImageAssetSource.Builder |
dockerFile(String dockerFile)
Sets the value of
DockerImageAssetSource.getDockerFile() |
DockerImageAssetSource.Builder |
executable(List<String> executable)
Sets the value of
DockerImageAssetSource.getExecutable() |
DockerImageAssetSource.Builder |
sourceHash(String sourceHash)
Sets the value of
DockerImageAssetSource.getSourceHash() |
@Stability(value=Experimental) public DockerImageAssetSource.Builder sourceHash(String sourceHash)
DockerImageAssetSource.getSourceHash()sourceHash - The hash of the contents of the docker build context. This parameter is required.
This hash is used
throughout the system to identify this image and avoid duplicate work
in case the source did not change.
NOTE: this means that if you wish to update your docker image, you must make a modification to the source (e.g. add some metadata to your Dockerfile).
this@Stability(value=Experimental) public DockerImageAssetSource.Builder directoryName(String directoryName)
DockerImageAssetSource.getDirectoryName()directoryName - The directory where the Dockerfile is stored, must be relative to the cloud assembly root.this@Stability(value=Experimental) public DockerImageAssetSource.Builder dockerBuildArgs(Map<String,String> dockerBuildArgs)
DockerImageAssetSource.getDockerBuildArgs()dockerBuildArgs - 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).
Only allowed when directoryName is specified.
this@Stability(value=Experimental) public DockerImageAssetSource.Builder dockerBuildTarget(String dockerBuildTarget)
DockerImageAssetSource.getDockerBuildTarget()dockerBuildTarget - Docker target to build to.
Only allowed when directoryName is specified.this@Stability(value=Experimental) public DockerImageAssetSource.Builder dockerFile(String dockerFile)
DockerImageAssetSource.getDockerFile()dockerFile - Path to the Dockerfile (relative to the directory).
Only allowed when directoryName is specified.this@Stability(value=Experimental) public DockerImageAssetSource.Builder executable(List<String> executable)
DockerImageAssetSource.getExecutable()executable - An external command that will produce the packaged asset.
The command should produce the name of a local Docker image on stdout.this@Stability(value=Experimental) public DockerImageAssetSource build()
build in interface software.amazon.jsii.Builder<DockerImageAssetSource>DockerImageAssetSourceNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.