public static final class EcrImageCode.Builder
extends java.lang.Object
EcrImageCode
.Modifier and Type | Method and Description |
---|---|
EcrImageCode |
build() |
EcrImageCode.Builder |
cmd(java.util.List<java.lang.String> cmd)
Specify or override the CMD on the specified Docker image or Dockerfile.
|
static EcrImageCode.Builder |
create(IRepository repository) |
EcrImageCode.Builder |
entrypoint(java.util.List<java.lang.String> entrypoint)
Specify or override the ENTRYPOINT on the specified Docker image or Dockerfile.
|
EcrImageCode.Builder |
tag(java.lang.String tag)
Deprecated.
use `tagOrDigest`
|
EcrImageCode.Builder |
tagOrDigest(java.lang.String tagOrDigest)
The image tag or digest to use when pulling the image from ECR (digests must start with `sha256:`).
|
EcrImageCode.Builder |
workingDirectory(java.lang.String workingDirectory)
Specify or override the WORKDIR on the specified Docker image or Dockerfile.
|
public static EcrImageCode.Builder create(IRepository repository)
repository
- This parameter is required.EcrImageCode.Builder
.public EcrImageCode.Builder cmd(java.util.List<java.lang.String> cmd)
This needs to be in the 'exec form', viz., [ 'executable', 'param1', 'param2' ]
.
Default: - use the CMD specified in the docker image or Dockerfile.
cmd
- Specify or override the CMD on the specified Docker image or Dockerfile. This parameter is required.this
public EcrImageCode.Builder entrypoint(java.util.List<java.lang.String> entrypoint)
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' ]
.
Default: - use the ENTRYPOINT in the docker image or Dockerfile.
entrypoint
- Specify or override the ENTRYPOINT on the specified Docker image or Dockerfile. This parameter is required.this
@Deprecated public EcrImageCode.Builder tag(java.lang.String tag)
Default: 'latest'
tag
- The image tag to use when pulling the image from ECR. This parameter is required.this
public EcrImageCode.Builder tagOrDigest(java.lang.String tagOrDigest)
Default: 'latest'
tagOrDigest
- The image tag or digest to use when pulling the image from ECR (digests must start with `sha256:`). This parameter is required.this
public EcrImageCode.Builder workingDirectory(java.lang.String workingDirectory)
A WORKDIR allows you to configure the working directory the container will use.
Default: - use the WORKDIR in the docker image or Dockerfile.
workingDirectory
- Specify or override the WORKDIR on the specified Docker image or Dockerfile. This parameter is required.this
public EcrImageCode build()