Class EcrImageCode.Builder
java.lang.Object
software.amazon.awscdk.services.lambda.EcrImageCode.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EcrImageCode>
- Enclosing class:
EcrImageCode
@Stability(Stable)
public static final class EcrImageCode.Builder
extends Object
implements software.amazon.jsii.Builder<EcrImageCode>
A fluent builder for
EcrImageCode.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Specify or override the CMD on the specified Docker image or Dockerfile.static EcrImageCode.Buildercreate(IRepository repository) entrypoint(List<String> entrypoint) Specify or override the ENTRYPOINT on the specified Docker image or Dockerfile.Deprecated.tagOrDigest(String tagOrDigest) The image tag or digest to use when pulling the image from ECR (digests must start withsha256:).workingDirectory(String workingDirectory) Specify or override the WORKDIR on the specified Docker image or Dockerfile.
-
Method Details
-
create
- Parameters:
repository- This parameter is required.- Returns:
- a new instance of
EcrImageCode.Builder.
-
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' ].Default: - use the CMD specified in the docker image or Dockerfile.
- Parameters:
cmd- Specify or override the CMD on the specified Docker image or Dockerfile. This parameter is required.- Returns:
this- See Also:
-
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' ].Default: - use the ENTRYPOINT in the docker image or Dockerfile.
- Parameters:
entrypoint- Specify or override the ENTRYPOINT on the specified Docker image or Dockerfile. This parameter is required.- Returns:
this- See Also:
-
tag
Deprecated.usetagOrDigest(deprecated) The image tag to use when pulling the image from ECR.Default: 'latest'
- Parameters:
tag- The image tag to use when pulling the image from ECR. This parameter is required.- Returns:
this
-
tagOrDigest
The image tag or digest to use when pulling the image from ECR (digests must start withsha256:).Default: 'latest'
- Parameters:
tagOrDigest- The image tag or digest to use when pulling the image from ECR (digests must start withsha256:). This parameter is required.- Returns:
this
-
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.
Default: - use the WORKDIR in the docker image or Dockerfile.
- Parameters:
workingDirectory- Specify or override the WORKDIR on the specified Docker image or Dockerfile. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<EcrImageCode>- Returns:
- a newly built instance of
EcrImageCode.
-
tagOrDigest