Class EcrImageCodeProps.Builder
java.lang.Object
software.amazon.awscdk.services.lambda.EcrImageCodeProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EcrImageCodeProps>
- Enclosing interface:
EcrImageCodeProps
@Stability(Stable)
public static final class EcrImageCodeProps.Builder
extends Object
implements software.amazon.jsii.Builder<EcrImageCodeProps>
A builder for
EcrImageCodeProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofEcrImageCodeProps.getCmd()
entrypoint
(List<String> entrypoint) Sets the value ofEcrImageCodeProps.getEntrypoint()
Deprecated.use `tagOrDigest`tagOrDigest
(String tagOrDigest) Sets the value ofEcrImageCodeProps.getTagOrDigest()
workingDirectory
(String workingDirectory) Sets the value ofEcrImageCodeProps.getWorkingDirectory()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cmd
Sets the value ofEcrImageCodeProps.getCmd()
- Parameters:
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' ]
.- Returns:
this
-
entrypoint
Sets the value ofEcrImageCodeProps.getEntrypoint()
- Parameters:
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' ]
.- Returns:
this
-
tag
Deprecated.use `tagOrDigest`Sets the value ofEcrImageCodeProps.getTag()
- Parameters:
tag
- The image tag to use when pulling the image from ECR.- Returns:
this
-
tagOrDigest
Sets the value ofEcrImageCodeProps.getTagOrDigest()
- Parameters:
tagOrDigest
- The image tag or digest to use when pulling the image from ECR (digests must start withsha256:
).- Returns:
this
-
workingDirectory
Sets the value ofEcrImageCodeProps.getWorkingDirectory()
- Parameters:
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.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<EcrImageCodeProps>
- Returns:
- a new instance of
EcrImageCodeProps
- Throws:
NullPointerException
- if any required attribute was not provided
-