public static final class DockerImageAssetProps.Builder extends Object
DockerImageAssetProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
DockerImageAssetProps |
build()
Builds the configured instance.
|
DockerImageAssetProps.Builder |
withBuildArgs(Map<String,String> value)
Sets the value of BuildArgs
|
DockerImageAssetProps.Builder |
withDirectory(String value)
Sets the value of Directory
|
DockerImageAssetProps.Builder |
withExclude(List<String> value)
Sets the value of Exclude
|
DockerImageAssetProps.Builder |
withFollow(software.amazon.awscdk.assets.FollowMode value)
Sets the value of Follow
|
DockerImageAssetProps.Builder |
withRepositoryName(String value)
Sets the value of RepositoryName
|
public DockerImageAssetProps.Builder withDirectory(String value)
value - The directory where the Dockerfile is stored.thispublic DockerImageAssetProps.Builder withBuildArgs(@Nullable Map<String,String> value)
value - Build args to pass to the `docker build` command.thispublic DockerImageAssetProps.Builder withRepositoryName(@Nullable String value)
value - ECR repository name.thispublic DockerImageAssetProps.Builder withExclude(@Nullable List<String> value)
value - Glob patterns to exclude from the copy.thispublic DockerImageAssetProps.Builder withFollow(@Nullable software.amazon.awscdk.assets.FollowMode value)
value - A strategy for how to handle symlinks.thispublic DockerImageAssetProps build()
DockerImageAssetPropsNullPointerException - if any required attribute was not providedCopyright © 2019. All rights reserved.