@Stability(value=Stable) public static final class EcrImageCodeProps.Builder extends Object implements software.amazon.jsii.Builder<EcrImageCodeProps>
EcrImageCodeProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
EcrImageCodeProps |
build()
Builds the configured instance.
|
EcrImageCodeProps.Builder |
cmd(List<String> cmd)
Sets the value of
EcrImageCodeProps.getCmd() |
EcrImageCodeProps.Builder |
entrypoint(List<String> entrypoint)
Sets the value of
EcrImageCodeProps.getEntrypoint() |
EcrImageCodeProps.Builder |
tag(String tag)
Deprecated.
use `tagOrDigest`
|
EcrImageCodeProps.Builder |
tagOrDigest(String tagOrDigest)
Sets the value of
EcrImageCodeProps.getTagOrDigest() |
EcrImageCodeProps.Builder |
workingDirectory(String workingDirectory)
Sets the value of
EcrImageCodeProps.getWorkingDirectory() |
@Stability(value=Stable) public EcrImageCodeProps.Builder cmd(List<String> cmd)
EcrImageCodeProps.getCmd()cmd - Specify or override the CMD on the specified Docker image or Dockerfile.
This needs to be in the 'exec form', viz., [ 'executable', 'param1', 'param2' ].this@Stability(value=Stable) public EcrImageCodeProps.Builder entrypoint(List<String> entrypoint)
EcrImageCodeProps.getEntrypoint()entrypoint - Specify or override the ENTRYPOINT on the specified Docker image or Dockerfile.
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' ].this@Stability(value=Deprecated) @Deprecated public EcrImageCodeProps.Builder tag(String tag)
EcrImageCodeProps.getTag()tag - The image tag to use when pulling the image from ECR.this@Stability(value=Stable) public EcrImageCodeProps.Builder tagOrDigest(String tagOrDigest)
EcrImageCodeProps.getTagOrDigest()tagOrDigest - The image tag or digest to use when pulling the image from ECR (digests must start with `sha256:`).this@Stability(value=Stable) public EcrImageCodeProps.Builder workingDirectory(String workingDirectory)
EcrImageCodeProps.getWorkingDirectory()workingDirectory - Specify or override the WORKDIR on the specified Docker image or Dockerfile.
A WORKDIR allows you to configure the working directory the container will use.this@Stability(value=Stable) public EcrImageCodeProps build()
build in interface software.amazon.jsii.Builder<EcrImageCodeProps>EcrImageCodePropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.