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 Details

    • Builder

      public Builder()
  • Method Details

    • imageUri

      @Stability(Stable) public CodeImageConfig.Builder imageUri(String imageUri)
      Parameters:
      imageUri - URI to the Docker image. This parameter is required.
      Returns:
      this
    • cmd

      @Stability(Stable) public CodeImageConfig.Builder cmd(List<String> cmd)
      Sets the value of CodeImageConfig.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

      @Stability(Stable) public CodeImageConfig.Builder entrypoint(List<String> entrypoint)
      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

      @Stability(Stable) public CodeImageConfig.Builder workingDirectory(String workingDirectory)
      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

      @Stability(Stable) public CodeImageConfig build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CodeImageConfig>
      Returns:
      a new instance of CodeImageConfig
      Throws:
      NullPointerException - if any required attribute was not provided