Class Runtime.Builder

java.lang.Object
software.amazon.awscdk.services.lambda.Runtime.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<Runtime>
Enclosing class:
Runtime

@Stability(Stable) public static final class Runtime.Builder extends Object implements software.amazon.jsii.Builder<Runtime>
A fluent builder for Runtime.
  • Method Details

    • create

      @Stability(Stable) public static Runtime.Builder create(String name, RuntimeFamily family)
      Parameters:
      name - This parameter is required.
      family -
      Returns:
      a new instance of Runtime.Builder.
    • create

      @Stability(Stable) public static Runtime.Builder create(String name)
      Parameters:
      name - This parameter is required.
      Returns:
      a new instance of Runtime.Builder.
    • bundlingDockerImage

      @Stability(Stable) public Runtime.Builder bundlingDockerImage(String bundlingDockerImage)
      The Docker image name to be used for bundling in this runtime.

      Default: - the latest docker image "amazon/public.ecr.aws/sam/build-" from https://gallery.ecr.aws

      Parameters:
      bundlingDockerImage - The Docker image name to be used for bundling in this runtime. This parameter is required.
      Returns:
      this
    • isVariable

      @Stability(Stable) public Runtime.Builder isVariable(Boolean isVariable)
      Whether the runtime enum is meant to change over time, IE NODEJS_LATEST.

      Default: false

      Parameters:
      isVariable - Whether the runtime enum is meant to change over time, IE NODEJS_LATEST. This parameter is required.
      Returns:
      this
    • supportsCodeGuruProfiling

      @Stability(Stable) public Runtime.Builder supportsCodeGuruProfiling(Boolean supportsCodeGuruProfiling)
      Whether this runtime is integrated with and supported for profiling using Amazon CodeGuru Profiler.

      Default: false

      Parameters:
      supportsCodeGuruProfiling - Whether this runtime is integrated with and supported for profiling using Amazon CodeGuru Profiler. This parameter is required.
      Returns:
      this
    • supportsInlineCode

      @Stability(Stable) public Runtime.Builder supportsInlineCode(Boolean supportsInlineCode)
      Whether the ZipFile (aka inline code) property can be used with this runtime.

      Default: false

      Parameters:
      supportsInlineCode - Whether the ZipFile (aka inline code) property can be used with this runtime. This parameter is required.
      Returns:
      this
    • supportsSnapStart

      @Stability(Stable) public Runtime.Builder supportsSnapStart(Boolean supportsSnapStart)
      Whether this runtime supports SnapStart.

      Default: false

      Parameters:
      supportsSnapStart - Whether this runtime supports SnapStart. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public Runtime build()
      Specified by:
      build in interface software.amazon.jsii.Builder<Runtime>
      Returns:
      a newly built instance of Runtime.