Class CodeImageConfig.Builder
java.lang.Object
software.amazon.awscdk.services.lambda.CodeImageConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CodeImageConfig>
- Enclosing interface:
CodeImageConfig
@Stability(Stable)
public static final class CodeImageConfig.Builder
extends Object
implements software.amazon.jsii.Builder<CodeImageConfig>
A builder for
CodeImageConfig
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCodeImageConfig.getCmd()
entrypoint
(List<String> entrypoint) Sets the value ofCodeImageConfig.getEntrypoint()
Sets the value ofCodeImageConfig.getImageUri()
workingDirectory
(String workingDirectory) Sets the value ofCodeImageConfig.getWorkingDirectory()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
imageUri
Sets the value ofCodeImageConfig.getImageUri()
- Parameters:
imageUri
- URI to the Docker image. This parameter is required.- Returns:
this
-
cmd
Sets the value ofCodeImageConfig.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 ofCodeImageConfig.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
-
workingDirectory
Sets the value ofCodeImageConfig.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<CodeImageConfig>
- Returns:
- a new instance of
CodeImageConfig
- Throws:
NullPointerException
- if any required attribute was not provided
-