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 Summary
Modifier and TypeMethodDescriptionbuild()
bundlingDockerImage
(String bundlingDockerImage) The Docker image name to be used for bundling in this runtime.static Runtime.Builder
static Runtime.Builder
create
(String name, RuntimeFamily family) isVariable
(Boolean isVariable) Whether the runtime enum is meant to change over time, IE NODEJS_LATEST.supportsCodeGuruProfiling
(Boolean supportsCodeGuruProfiling) Whether this runtime is integrated with and supported for profiling using Amazon CodeGuru Profiler.supportsInlineCode
(Boolean supportsInlineCode) Whether theZipFile
(aka inline code) property can be used with this runtime.supportsSnapStart
(Boolean supportsSnapStart) Whether this runtime supports SnapStart.
-
Method Details
-
create
- Parameters:
name
- This parameter is required.family
-- Returns:
- a new instance of
Runtime.Builder
.
-
create
- Parameters:
name
- This parameter is required.- Returns:
- a new instance of
Runtime.Builder
.
-
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
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
Whether theZipFile
(aka inline code) property can be used with this runtime.Default: false
- Parameters:
supportsInlineCode
- Whether theZipFile
(aka inline code) property can be used with this runtime. This parameter is required.- Returns:
this
-
supportsSnapStart
Whether this runtime supports SnapStart.Default: false
- Parameters:
supportsSnapStart
- Whether this runtime supports SnapStart. This parameter is required.- Returns:
this
-
build
-