@Stability(value=Stable) public static final class EcrImageCode.Builder extends Object implements software.amazon.jsii.Builder<EcrImageCode>
EcrImageCode
.Modifier and Type | Method and Description |
---|---|
EcrImageCode |
build() |
EcrImageCode.Builder |
cmd(List<String> cmd)
Specify or override the CMD on the specified Docker image or Dockerfile.
|
static EcrImageCode.Builder |
create(IRepository repository) |
EcrImageCode.Builder |
entrypoint(List<String> entrypoint)
Specify or override the ENTRYPOINT on the specified Docker image or Dockerfile.
|
EcrImageCode.Builder |
tag(String tag)
Deprecated.
use `tagOrDigest`
|
EcrImageCode.Builder |
tagOrDigest(String tagOrDigest)
The image tag or digest to use when pulling the image from ECR (digests must start with `sha256:`).
|
EcrImageCode.Builder |
workingDirectory(String workingDirectory)
Specify or override the WORKDIR on the specified Docker image or Dockerfile.
|
@Stability(value=Stable) public static EcrImageCode.Builder create(IRepository repository)
repository
- This parameter is required.EcrImageCode.Builder
.@Stability(value=Stable) public EcrImageCode.Builder cmd(List<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
@Stability(value=Stable) public EcrImageCode.Builder entrypoint(List<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
@Stability(value=Deprecated) @Deprecated public EcrImageCode.Builder tag(String tag)
Default: 'latest'
tag
- The image tag to use when pulling the image from ECR. This parameter is required.this
@Stability(value=Stable) public EcrImageCode.Builder tagOrDigest(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
@Stability(value=Stable) public EcrImageCode.Builder workingDirectory(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
@Stability(value=Stable) public EcrImageCode build()
build
in interface software.amazon.jsii.Builder<EcrImageCode>
Copyright © 2022. All rights reserved.