@Generated(value="jsii-pacmak/1.46.0 (build cd08c55)", date="2021-11-25T20:11:06.108Z") @Stability(value=Experimental) public interface DockerImageAssetOptions extends software.amazon.jsii.JsiiSerializable, FileFingerprintOptions
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
import software.amazon.awscdk.services.ecr.assets.*;
DockerImageAssetOptions dockerImageAssetOptions = DockerImageAssetOptions.builder()
.buildArgs(Map.of(
"buildArgsKey", "buildArgs"))
.exclude(List.of("exclude"))
.extraHash("extraHash")
.file("file")
.followSymlinks(SymlinkFollowMode.NEVER)
.ignoreMode(IgnoreMode.GLOB)
.invalidation(DockerImageAssetInvalidationOptions.builder()
.buildArgs(false)
.extraHash(false)
.file(false)
.repositoryName(false)
.target(false)
.build())
.target("target")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
DockerImageAssetOptions.Builder
A builder for
DockerImageAssetOptions |
static class |
DockerImageAssetOptions.Jsii$Proxy
An implementation for
DockerImageAssetOptions |
| Modifier and Type | Method and Description |
|---|---|
static DockerImageAssetOptions.Builder |
builder() |
default Map<String,String> |
getBuildArgs()
(experimental) Build args to pass to the `docker build` command.
|
default String |
getFile()
(experimental) Path to the Dockerfile (relative to the directory).
|
default DockerImageAssetInvalidationOptions |
getInvalidation()
(experimental) Options to control which parameters are used to invalidate the asset hash.
|
default String |
getTarget()
(experimental) Docker target to build to.
|
getExtraHashgetExclude, getFollowSymlinks, getIgnoreMode@Stability(value=Experimental) @Nullable default Map<String,String> getBuildArgs()
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
@Stability(value=Experimental) @Nullable default String getFile()
Default: 'Dockerfile'
@Stability(value=Experimental) @Nullable default DockerImageAssetInvalidationOptions getInvalidation()
Default: - hash all parameters
@Stability(value=Experimental) @Nullable default String getTarget()
Default: - no target
@Stability(value=Experimental) static DockerImageAssetOptions.Builder builder()
builder in interface FileCopyOptionsbuilder in interface FileFingerprintOptionsDockerImageAssetOptions.Builder of DockerImageAssetOptionsCopyright © 2021. All rights reserved.