Class: AWSCDK::Lambda::Runtime
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::Lambda::Runtime
- Defined in:
- lambda/runtime.rb
Overview
Lambda function runtime environment.
If you need to use a runtime name that doesn't exist as a static member, you
can instantiate a Runtime object, e.g: new Runtime('nodejs99.99').
For NodeJS lambda functions, it is recommended to use the latest LTS NodeJS runtime available
(Runtime.NODEJS_LATEST) to keep the lambda function up-to-date.
Class Method Summary collapse
-
.ALL ⇒ Array<AWSCDK::Lambda::Runtime>
A list of all known
Runtime's. -
.determine_latest_python_runtime(scope) ⇒ AWSCDK::Lambda::Runtime
The latest Python version currently available.
-
.DOTNET_10 ⇒ AWSCDK::Lambda::Runtime
The .NET 10 runtime (dotnet10).
-
.DOTNET_6 ⇒ AWSCDK::Lambda::Runtime
deprecated
Deprecated.
Legacy runtime no longer supported by AWS Lambda. Migrate to the latest .NET runtime.
-
.DOTNET_8 ⇒ AWSCDK::Lambda::Runtime
The .NET 8 runtime (dotnet8).
-
.DOTNET_9 ⇒ AWSCDK::Lambda::Runtime
The .NET 9 runtime (dotnet9).
-
.DOTNET_CORE_1 ⇒ AWSCDK::Lambda::Runtime
deprecated
Deprecated.
Legacy runtime no longer supported by AWS Lambda. Migrate to the latest .NET Core runtime.
-
.DOTNET_CORE_2 ⇒ AWSCDK::Lambda::Runtime
deprecated
Deprecated.
Legacy runtime no longer supported by AWS Lambda. Migrate to the latest .NET Core runtime.
-
.DOTNET_CORE_2_1 ⇒ AWSCDK::Lambda::Runtime
deprecated
Deprecated.
Legacy runtime no longer supported by AWS Lambda. Migrate to the latest .NET Core runtime.
-
.DOTNET_CORE_3_1 ⇒ AWSCDK::Lambda::Runtime
deprecated
Deprecated.
Legacy runtime no longer supported by AWS Lambda. Migrate to the latest .NET Core runtime.
-
.FROM_IMAGE ⇒ AWSCDK::Lambda::Runtime
A special runtime entry to be used when function is using a docker image.
-
.GO_1_X ⇒ AWSCDK::Lambda::Runtime
deprecated
Deprecated.
Legacy runtime no longer supported by AWS Lambda. Migrate to the PROVIDED_AL2023 runtime.
-
.JAVA_11 ⇒ AWSCDK::Lambda::Runtime
The Java 11 runtime (java11).
-
.JAVA_17 ⇒ AWSCDK::Lambda::Runtime
The Java 17 runtime (java17).
-
.JAVA_21 ⇒ AWSCDK::Lambda::Runtime
The Java 21 runtime (java21).
-
.JAVA_25 ⇒ AWSCDK::Lambda::Runtime
The Java 25 runtime (java25).
-
.JAVA_8 ⇒ AWSCDK::Lambda::Runtime
deprecated
Deprecated.
Legacy runtime no longer supported by AWS Lambda. Migrate to the latest Java runtime.
-
.JAVA_8_CORRETTO ⇒ AWSCDK::Lambda::Runtime
The Java 8 Corretto runtime (java8.al2).
- .jsii_overridable_methods ⇒ Object
-
.NODEJS ⇒ AWSCDK::Lambda::Runtime
deprecated
Deprecated.
Legacy runtime no longer supported by AWS Lambda. Migrate to the latest NodeJS runtime.
-
.NODEJS_10_X ⇒ AWSCDK::Lambda::Runtime
deprecated
Deprecated.
Legacy runtime no longer supported by AWS Lambda. Migrate to the latest NodeJS runtime.
-
.NODEJS_12_X ⇒ AWSCDK::Lambda::Runtime
deprecated
Deprecated.
Legacy runtime no longer supported by AWS Lambda. Migrate to the latest NodeJS runtime.
-
.NODEJS_14_X ⇒ AWSCDK::Lambda::Runtime
deprecated
Deprecated.
Legacy runtime no longer supported by AWS Lambda. Migrate to the latest NodeJS runtime.
-
.NODEJS_16_X ⇒ AWSCDK::Lambda::Runtime
deprecated
Deprecated.
Legacy runtime no longer supported by AWS Lambda. Migrate to the latest NodeJS runtime.
-
.NODEJS_18_X ⇒ AWSCDK::Lambda::Runtime
deprecated
Deprecated.
Legacy runtime no longer supported by AWS Lambda. Migrate to the latest NodeJS runtime.
-
.NODEJS_20_X ⇒ AWSCDK::Lambda::Runtime
The NodeJS 20.x runtime (nodejs20.x).
-
.NODEJS_22_X ⇒ AWSCDK::Lambda::Runtime
The NodeJS 22.x runtime (nodejs22.x).
-
.NODEJS_24_X ⇒ AWSCDK::Lambda::Runtime
The NodeJS 24.x runtime (nodejs24.x).
-
.NODEJS_4_3 ⇒ AWSCDK::Lambda::Runtime
deprecated
Deprecated.
Legacy runtime no longer supported by AWS Lambda. Migrate to the latest NodeJS runtime.
-
.NODEJS_6_10 ⇒ AWSCDK::Lambda::Runtime
deprecated
Deprecated.
Legacy runtime no longer supported by AWS Lambda. Migrate to the latest NodeJS runtime.
-
.NODEJS_8_10 ⇒ AWSCDK::Lambda::Runtime
deprecated
Deprecated.
Legacy runtime no longer supported by AWS Lambda. Migrate to the latest NodeJS runtime.
-
.NODEJS_LATEST ⇒ AWSCDK::Lambda::Runtime
The latest NodeJS version currently available in ALL regions (not necessarily the latest NodeJS version available in YOUR region).
-
.PROVIDED ⇒ AWSCDK::Lambda::Runtime
deprecated
Deprecated.
Legacy runtime no longer supported by AWS Lambda. Migrate to the latest provided.al2023 runtime.
-
.PROVIDED_AL2 ⇒ AWSCDK::Lambda::Runtime
The custom provided runtime with Amazon Linux 2 (provided.al2).
-
.PROVIDED_AL2023 ⇒ AWSCDK::Lambda::Runtime
The custom provided runtime with Amazon Linux 2023 (provided.al2023).
-
.PYTHON_2_7 ⇒ AWSCDK::Lambda::Runtime
deprecated
Deprecated.
Legacy runtime no longer supported by AWS Lambda. Migrate to the latest Python runtime.
-
.PYTHON_3_10 ⇒ AWSCDK::Lambda::Runtime
The Python 3.10 runtime (python3.10).
-
.PYTHON_3_11 ⇒ AWSCDK::Lambda::Runtime
The Python 3.11 runtime (python3.11).
-
.PYTHON_3_12 ⇒ AWSCDK::Lambda::Runtime
The Python 3.12 runtime (python3.12).
-
.PYTHON_3_13 ⇒ AWSCDK::Lambda::Runtime
The Python 3.13 runtime (python3.13).
-
.PYTHON_3_14 ⇒ AWSCDK::Lambda::Runtime
The Python 3.14 runtime (python3.14).
-
.PYTHON_3_6 ⇒ AWSCDK::Lambda::Runtime
deprecated
Deprecated.
Legacy runtime no longer supported by AWS Lambda. Migrate to the latest Python runtime.
-
.PYTHON_3_7 ⇒ AWSCDK::Lambda::Runtime
deprecated
Deprecated.
Legacy runtime no longer supported by AWS Lambda. Migrate to the latest Python runtime.
-
.PYTHON_3_8 ⇒ AWSCDK::Lambda::Runtime
deprecated
Deprecated.
Legacy runtime no longer supported by AWS Lambda. Migrate to the latest Python runtime.
-
.PYTHON_3_9 ⇒ AWSCDK::Lambda::Runtime
deprecated
Deprecated.
Legacy runtime no longer supported by AWS Lambda. Migrate to the latest Python runtime.
-
.RUBY_2_5 ⇒ AWSCDK::Lambda::Runtime
deprecated
Deprecated.
Legacy runtime no longer supported by AWS Lambda. Migrate to the latest Ruby runtime.
-
.RUBY_2_7 ⇒ AWSCDK::Lambda::Runtime
deprecated
Deprecated.
Legacy runtime no longer supported by AWS Lambda. Migrate to the latest Ruby runtime.
-
.RUBY_3_2 ⇒ AWSCDK::Lambda::Runtime
The Ruby 3.2 runtime (ruby3.2).
-
.RUBY_3_3 ⇒ AWSCDK::Lambda::Runtime
The Ruby 3.3 runtime (ruby3.3).
-
.RUBY_3_4 ⇒ AWSCDK::Lambda::Runtime
The Ruby 3.4 runtime (ruby3.4).
-
.RUBY_4_0 ⇒ AWSCDK::Lambda::Runtime
The Ruby 4.0 runtime (ruby4.0).
Instance Method Summary collapse
-
#bundling_image ⇒ AWSCDK::DockerImage
The bundling Docker image for this runtime.
-
#family ⇒ AWSCDK::Lambda::RuntimeFamily?
The runtime family.
-
#initialize(name, family = nil, props = nil) ⇒ Runtime
constructor
A new instance of Runtime.
-
#is_variable ⇒ Boolean
Enabled for runtime enums that always target the latest available.
-
#name ⇒ String
The name of this runtime, as expected by the Lambda resource.
- #runtime_equals(other) ⇒ Boolean
-
#supports_code_guru_profiling ⇒ Boolean
Whether this runtime is integrated with and supported for profiling using Amazon CodeGuru Profiler.
-
#supports_inline_code ⇒ Boolean
Whether the
ZipFile(aka inline code) property can be used with this runtime. -
#supports_snap_start ⇒ Boolean
Whether this runtime supports snapstart.
- #to_string ⇒ String
Constructor Details
#initialize(name, family = nil, props = nil) ⇒ Runtime
Returns a new instance of Runtime.
17 18 19 20 21 22 23 |
# File 'lambda/runtime.rb', line 17 def initialize(name, family = nil, props = nil) props = props.is_a?(Hash) ? ::AWSCDK::Lambda::LambdaRuntimeProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") Jsii::Type.check_type(family, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbGFtYmRhLlJ1bnRpbWVGYW1pbHkifQ==")), "family") unless family.nil? Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbGFtYmRhLkxhbWJkYVJ1bnRpbWVQcm9wcyJ9")), "props") unless props.nil? Jsii::Object.instance_method(:initialize).bind(self).call(name, family, props) end |
Class Method Details
.ALL ⇒ Array<AWSCDK::Lambda::Runtime>
A list of all known Runtime's.
51 52 53 |
# File 'lambda/runtime.rb', line 51 def self.ALL() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_lambda.Runtime", "ALL") end |
.determine_latest_python_runtime(scope) ⇒ AWSCDK::Lambda::Runtime
The latest Python version currently available.
43 44 45 46 |
# File 'lambda/runtime.rb', line 43 def self.determine_latest_python_runtime(scope) Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_lambda.Runtime", "determineLatestPythonRuntime", [scope]) end |
.DOTNET_10 ⇒ AWSCDK::Lambda::Runtime
The .NET 10 runtime (dotnet10).
58 59 60 |
# File 'lambda/runtime.rb', line 58 def self.DOTNET_10() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_lambda.Runtime", "DOTNET_10") end |
.DOTNET_6 ⇒ AWSCDK::Lambda::Runtime
Legacy runtime no longer supported by AWS Lambda. Migrate to the latest .NET runtime.
The .NET 6 runtime (dotnet6).
66 67 68 |
# File 'lambda/runtime.rb', line 66 def self.DOTNET_6() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_lambda.Runtime", "DOTNET_6") end |
.DOTNET_8 ⇒ AWSCDK::Lambda::Runtime
The .NET 8 runtime (dotnet8).
73 74 75 |
# File 'lambda/runtime.rb', line 73 def self.DOTNET_8() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_lambda.Runtime", "DOTNET_8") end |
.DOTNET_9 ⇒ AWSCDK::Lambda::Runtime
The .NET 9 runtime (dotnet9).
80 81 82 |
# File 'lambda/runtime.rb', line 80 def self.DOTNET_9() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_lambda.Runtime", "DOTNET_9") end |
.DOTNET_CORE_1 ⇒ AWSCDK::Lambda::Runtime
Legacy runtime no longer supported by AWS Lambda. Migrate to the latest .NET Core runtime.
The .NET Core 1.0 runtime (dotnetcore1.0).
88 89 90 |
# File 'lambda/runtime.rb', line 88 def self.DOTNET_CORE_1() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_lambda.Runtime", "DOTNET_CORE_1") end |
.DOTNET_CORE_2 ⇒ AWSCDK::Lambda::Runtime
Legacy runtime no longer supported by AWS Lambda. Migrate to the latest .NET Core runtime.
The .NET Core 2.0 runtime (dotnetcore2.0).
96 97 98 |
# File 'lambda/runtime.rb', line 96 def self.DOTNET_CORE_2() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_lambda.Runtime", "DOTNET_CORE_2") end |
.DOTNET_CORE_2_1 ⇒ AWSCDK::Lambda::Runtime
Legacy runtime no longer supported by AWS Lambda. Migrate to the latest .NET Core runtime.
The .NET Core 2.1 runtime (dotnetcore2.1).
104 105 106 |
# File 'lambda/runtime.rb', line 104 def self.DOTNET_CORE_2_1() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_lambda.Runtime", "DOTNET_CORE_2_1") end |
.DOTNET_CORE_3_1 ⇒ AWSCDK::Lambda::Runtime
Legacy runtime no longer supported by AWS Lambda. Migrate to the latest .NET Core runtime.
The .NET Core 3.1 runtime (dotnetcore3.1).
112 113 114 |
# File 'lambda/runtime.rb', line 112 def self.DOTNET_CORE_3_1() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_lambda.Runtime", "DOTNET_CORE_3_1") end |
.FROM_IMAGE ⇒ AWSCDK::Lambda::Runtime
A special runtime entry to be used when function is using a docker image.
119 120 121 |
# File 'lambda/runtime.rb', line 119 def self.FROM_IMAGE() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_lambda.Runtime", "FROM_IMAGE") end |
.GO_1_X ⇒ AWSCDK::Lambda::Runtime
Legacy runtime no longer supported by AWS Lambda. Migrate to the PROVIDED_AL2023 runtime.
The Go 1.x runtime (go1.x).
127 128 129 |
# File 'lambda/runtime.rb', line 127 def self.GO_1_X() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_lambda.Runtime", "GO_1_X") end |
.JAVA_11 ⇒ AWSCDK::Lambda::Runtime
The Java 11 runtime (java11).
134 135 136 |
# File 'lambda/runtime.rb', line 134 def self.JAVA_11() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_lambda.Runtime", "JAVA_11") end |
.JAVA_17 ⇒ AWSCDK::Lambda::Runtime
The Java 17 runtime (java17).
141 142 143 |
# File 'lambda/runtime.rb', line 141 def self.JAVA_17() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_lambda.Runtime", "JAVA_17") end |
.JAVA_21 ⇒ AWSCDK::Lambda::Runtime
The Java 21 runtime (java21).
148 149 150 |
# File 'lambda/runtime.rb', line 148 def self.JAVA_21() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_lambda.Runtime", "JAVA_21") end |
.JAVA_25 ⇒ AWSCDK::Lambda::Runtime
The Java 25 runtime (java25).
155 156 157 |
# File 'lambda/runtime.rb', line 155 def self.JAVA_25() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_lambda.Runtime", "JAVA_25") end |
.JAVA_8 ⇒ AWSCDK::Lambda::Runtime
Legacy runtime no longer supported by AWS Lambda. Migrate to the latest Java runtime.
The Java 8 runtime (java8).
163 164 165 |
# File 'lambda/runtime.rb', line 163 def self.JAVA_8() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_lambda.Runtime", "JAVA_8") end |
.JAVA_8_CORRETTO ⇒ AWSCDK::Lambda::Runtime
The Java 8 Corretto runtime (java8.al2).
170 171 172 |
# File 'lambda/runtime.rb', line 170 def self.JAVA_8_CORRETTO() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_lambda.Runtime", "JAVA_8_CORRETTO") end |
.jsii_overridable_methods ⇒ Object
25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lambda/runtime.rb', line 25 def self.jsii_overridable_methods { :bundling_image => { kind: :property, name: "bundlingImage", is_optional: false }, :is_variable => { kind: :property, name: "isVariable", is_optional: false }, :name => { kind: :property, name: "name", is_optional: false }, :supports_code_guru_profiling => { kind: :property, name: "supportsCodeGuruProfiling", is_optional: false }, :supports_inline_code => { kind: :property, name: "supportsInlineCode", is_optional: false }, :supports_snap_start => { kind: :property, name: "supportsSnapStart", is_optional: false }, :family => { kind: :property, name: "family", is_optional: true }, :runtime_equals => { kind: :method, name: "runtimeEquals", is_optional: false }, :to_string => { kind: :method, name: "toString", is_optional: false }, } end |
.NODEJS ⇒ AWSCDK::Lambda::Runtime
Legacy runtime no longer supported by AWS Lambda. Migrate to the latest NodeJS runtime.
The NodeJS runtime (nodejs).
178 179 180 |
# File 'lambda/runtime.rb', line 178 def self.NODEJS() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_lambda.Runtime", "NODEJS") end |
.NODEJS_10_X ⇒ AWSCDK::Lambda::Runtime
Legacy runtime no longer supported by AWS Lambda. Migrate to the latest NodeJS runtime.
The NodeJS 10.x runtime (nodejs10.x).
186 187 188 |
# File 'lambda/runtime.rb', line 186 def self.NODEJS_10_X() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_lambda.Runtime", "NODEJS_10_X") end |
.NODEJS_12_X ⇒ AWSCDK::Lambda::Runtime
Legacy runtime no longer supported by AWS Lambda. Migrate to the latest NodeJS runtime.
The NodeJS 12.x runtime (nodejs12.x).
194 195 196 |
# File 'lambda/runtime.rb', line 194 def self.NODEJS_12_X() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_lambda.Runtime", "NODEJS_12_X") end |
.NODEJS_14_X ⇒ AWSCDK::Lambda::Runtime
Legacy runtime no longer supported by AWS Lambda. Migrate to the latest NodeJS runtime.
The NodeJS 14.x runtime (nodejs14.x).
202 203 204 |
# File 'lambda/runtime.rb', line 202 def self.NODEJS_14_X() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_lambda.Runtime", "NODEJS_14_X") end |
.NODEJS_16_X ⇒ AWSCDK::Lambda::Runtime
Legacy runtime no longer supported by AWS Lambda. Migrate to the latest NodeJS runtime.
The NodeJS 16.x runtime (nodejs16.x).
210 211 212 |
# File 'lambda/runtime.rb', line 210 def self.NODEJS_16_X() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_lambda.Runtime", "NODEJS_16_X") end |
.NODEJS_18_X ⇒ AWSCDK::Lambda::Runtime
Legacy runtime no longer supported by AWS Lambda. Migrate to the latest NodeJS runtime.
The NodeJS 18.x runtime (nodejs18.x).
218 219 220 |
# File 'lambda/runtime.rb', line 218 def self.NODEJS_18_X() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_lambda.Runtime", "NODEJS_18_X") end |
.NODEJS_20_X ⇒ AWSCDK::Lambda::Runtime
The NodeJS 20.x runtime (nodejs20.x).
225 226 227 |
# File 'lambda/runtime.rb', line 225 def self.NODEJS_20_X() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_lambda.Runtime", "NODEJS_20_X") end |
.NODEJS_22_X ⇒ AWSCDK::Lambda::Runtime
The NodeJS 22.x runtime (nodejs22.x).
232 233 234 |
# File 'lambda/runtime.rb', line 232 def self.NODEJS_22_X() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_lambda.Runtime", "NODEJS_22_X") end |
.NODEJS_24_X ⇒ AWSCDK::Lambda::Runtime
The NodeJS 24.x runtime (nodejs24.x).
239 240 241 |
# File 'lambda/runtime.rb', line 239 def self.NODEJS_24_X() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_lambda.Runtime", "NODEJS_24_X") end |
.NODEJS_4_3 ⇒ AWSCDK::Lambda::Runtime
Legacy runtime no longer supported by AWS Lambda. Migrate to the latest NodeJS runtime.
The NodeJS 4.3 runtime (nodejs4.3).
247 248 249 |
# File 'lambda/runtime.rb', line 247 def self.NODEJS_4_3() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_lambda.Runtime", "NODEJS_4_3") end |
.NODEJS_6_10 ⇒ AWSCDK::Lambda::Runtime
Legacy runtime no longer supported by AWS Lambda. Migrate to the latest NodeJS runtime.
The NodeJS 6.10 runtime (nodejs6.10).
255 256 257 |
# File 'lambda/runtime.rb', line 255 def self.NODEJS_6_10() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_lambda.Runtime", "NODEJS_6_10") end |
.NODEJS_8_10 ⇒ AWSCDK::Lambda::Runtime
Legacy runtime no longer supported by AWS Lambda. Migrate to the latest NodeJS runtime.
The NodeJS 8.10 runtime (nodejs8.10).
263 264 265 |
# File 'lambda/runtime.rb', line 263 def self.NODEJS_8_10() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_lambda.Runtime", "NODEJS_8_10") end |
.NODEJS_LATEST ⇒ AWSCDK::Lambda::Runtime
The latest NodeJS version currently available in ALL regions (not necessarily the latest NodeJS version available in YOUR region).
270 271 272 |
# File 'lambda/runtime.rb', line 270 def self.NODEJS_LATEST() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_lambda.Runtime", "NODEJS_LATEST") end |
.PROVIDED ⇒ AWSCDK::Lambda::Runtime
Legacy runtime no longer supported by AWS Lambda. Migrate to the latest provided.al2023 runtime.
The custom provided runtime (provided).
278 279 280 |
# File 'lambda/runtime.rb', line 278 def self.PROVIDED() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_lambda.Runtime", "PROVIDED") end |
.PROVIDED_AL2 ⇒ AWSCDK::Lambda::Runtime
The custom provided runtime with Amazon Linux 2 (provided.al2).
285 286 287 |
# File 'lambda/runtime.rb', line 285 def self.PROVIDED_AL2() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_lambda.Runtime", "PROVIDED_AL2") end |
.PROVIDED_AL2023 ⇒ AWSCDK::Lambda::Runtime
The custom provided runtime with Amazon Linux 2023 (provided.al2023).
292 293 294 |
# File 'lambda/runtime.rb', line 292 def self.PROVIDED_AL2023() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_lambda.Runtime", "PROVIDED_AL2023") end |
.PYTHON_2_7 ⇒ AWSCDK::Lambda::Runtime
Legacy runtime no longer supported by AWS Lambda. Migrate to the latest Python runtime.
The Python 2.7 runtime (python2.7).
300 301 302 |
# File 'lambda/runtime.rb', line 300 def self.PYTHON_2_7() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_lambda.Runtime", "PYTHON_2_7") end |
.PYTHON_3_10 ⇒ AWSCDK::Lambda::Runtime
The Python 3.10 runtime (python3.10).
307 308 309 |
# File 'lambda/runtime.rb', line 307 def self.PYTHON_3_10() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_lambda.Runtime", "PYTHON_3_10") end |
.PYTHON_3_11 ⇒ AWSCDK::Lambda::Runtime
The Python 3.11 runtime (python3.11).
314 315 316 |
# File 'lambda/runtime.rb', line 314 def self.PYTHON_3_11() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_lambda.Runtime", "PYTHON_3_11") end |
.PYTHON_3_12 ⇒ AWSCDK::Lambda::Runtime
The Python 3.12 runtime (python3.12).
321 322 323 |
# File 'lambda/runtime.rb', line 321 def self.PYTHON_3_12() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_lambda.Runtime", "PYTHON_3_12") end |
.PYTHON_3_13 ⇒ AWSCDK::Lambda::Runtime
The Python 3.13 runtime (python3.13).
328 329 330 |
# File 'lambda/runtime.rb', line 328 def self.PYTHON_3_13() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_lambda.Runtime", "PYTHON_3_13") end |
.PYTHON_3_14 ⇒ AWSCDK::Lambda::Runtime
The Python 3.14 runtime (python3.14).
335 336 337 |
# File 'lambda/runtime.rb', line 335 def self.PYTHON_3_14() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_lambda.Runtime", "PYTHON_3_14") end |
.PYTHON_3_6 ⇒ AWSCDK::Lambda::Runtime
Legacy runtime no longer supported by AWS Lambda. Migrate to the latest Python runtime.
The Python 3.6 runtime (python3.6) (not recommended).
The Python 3.6 runtime is deprecated as of July 2022.
345 346 347 |
# File 'lambda/runtime.rb', line 345 def self.PYTHON_3_6() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_lambda.Runtime", "PYTHON_3_6") end |
.PYTHON_3_7 ⇒ AWSCDK::Lambda::Runtime
Legacy runtime no longer supported by AWS Lambda. Migrate to the latest Python runtime.
The Python 3.7 runtime (python3.7).
353 354 355 |
# File 'lambda/runtime.rb', line 353 def self.PYTHON_3_7() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_lambda.Runtime", "PYTHON_3_7") end |
.PYTHON_3_8 ⇒ AWSCDK::Lambda::Runtime
Legacy runtime no longer supported by AWS Lambda. Migrate to the latest Python runtime.
The Python 3.8 runtime (python3.8).
361 362 363 |
# File 'lambda/runtime.rb', line 361 def self.PYTHON_3_8() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_lambda.Runtime", "PYTHON_3_8") end |
.PYTHON_3_9 ⇒ AWSCDK::Lambda::Runtime
Legacy runtime no longer supported by AWS Lambda. Migrate to the latest Python runtime.
The Python 3.9 runtime (python3.9).
369 370 371 |
# File 'lambda/runtime.rb', line 369 def self.PYTHON_3_9() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_lambda.Runtime", "PYTHON_3_9") end |
.RUBY_2_5 ⇒ AWSCDK::Lambda::Runtime
Legacy runtime no longer supported by AWS Lambda. Migrate to the latest Ruby runtime.
The Ruby 2.5 runtime (ruby2.5).
377 378 379 |
# File 'lambda/runtime.rb', line 377 def self.RUBY_2_5() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_lambda.Runtime", "RUBY_2_5") end |
.RUBY_2_7 ⇒ AWSCDK::Lambda::Runtime
Legacy runtime no longer supported by AWS Lambda. Migrate to the latest Ruby runtime.
The Ruby 2.7 runtime (ruby2.7).
385 386 387 |
# File 'lambda/runtime.rb', line 385 def self.RUBY_2_7() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_lambda.Runtime", "RUBY_2_7") end |
.RUBY_3_2 ⇒ AWSCDK::Lambda::Runtime
The Ruby 3.2 runtime (ruby3.2).
392 393 394 |
# File 'lambda/runtime.rb', line 392 def self.RUBY_3_2() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_lambda.Runtime", "RUBY_3_2") end |
.RUBY_3_3 ⇒ AWSCDK::Lambda::Runtime
The Ruby 3.3 runtime (ruby3.3).
399 400 401 |
# File 'lambda/runtime.rb', line 399 def self.RUBY_3_3() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_lambda.Runtime", "RUBY_3_3") end |
.RUBY_3_4 ⇒ AWSCDK::Lambda::Runtime
The Ruby 3.4 runtime (ruby3.4).
406 407 408 |
# File 'lambda/runtime.rb', line 406 def self.RUBY_3_4() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_lambda.Runtime", "RUBY_3_4") end |
.RUBY_4_0 ⇒ AWSCDK::Lambda::Runtime
The Ruby 4.0 runtime (ruby4.0).
413 414 415 |
# File 'lambda/runtime.rb', line 413 def self.RUBY_4_0() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_lambda.Runtime", "RUBY_4_0") end |
Instance Method Details
#bundling_image ⇒ AWSCDK::DockerImage
The bundling Docker image for this runtime.
420 421 422 |
# File 'lambda/runtime.rb', line 420 def bundling_image() jsii_get_property("bundlingImage") end |
#family ⇒ AWSCDK::Lambda::RuntimeFamily?
The runtime family.
462 463 464 |
# File 'lambda/runtime.rb', line 462 def family() jsii_get_property("family") end |
#is_variable ⇒ Boolean
Enabled for runtime enums that always target the latest available.
427 428 429 |
# File 'lambda/runtime.rb', line 427 def is_variable() jsii_get_property("isVariable") end |
#name ⇒ String
The name of this runtime, as expected by the Lambda resource.
434 435 436 |
# File 'lambda/runtime.rb', line 434 def name() jsii_get_property("name") end |
#runtime_equals(other) ⇒ Boolean
468 469 470 471 |
# File 'lambda/runtime.rb', line 468 def runtime_equals(other) Jsii::Type.check_type(other, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbGFtYmRhLlJ1bnRpbWUifQ==")), "other") jsii_call_method("runtimeEquals", [other]) end |
#supports_code_guru_profiling ⇒ Boolean
Whether this runtime is integrated with and supported for profiling using Amazon CodeGuru Profiler.
441 442 443 |
# File 'lambda/runtime.rb', line 441 def supports_code_guru_profiling() jsii_get_property("supportsCodeGuruProfiling") end |
#supports_inline_code ⇒ Boolean
Whether the ZipFile (aka inline code) property can be used with this runtime.
448 449 450 |
# File 'lambda/runtime.rb', line 448 def supports_inline_code() jsii_get_property("supportsInlineCode") end |
#supports_snap_start ⇒ Boolean
Whether this runtime supports snapstart.
455 456 457 |
# File 'lambda/runtime.rb', line 455 def supports_snap_start() jsii_get_property("supportsSnapStart") end |
#to_string ⇒ String
474 475 476 |
# File 'lambda/runtime.rb', line 474 def to_string() jsii_call_method("toString", []) end |