Class: AWSCDK::Lambda::Runtime

Inherits:
Jsii::Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(name, family = nil, props = nil) ⇒ Runtime

Returns a new instance of Runtime.

Parameters:



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

.ALLArray<AWSCDK::Lambda::Runtime>

A list of all known Runtime's.

Returns:

  • (Array<AWSCDK::Lambda::Runtime>)


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.

Parameters:

  • scope (Constructs::Construct)

Returns:

  • (AWSCDK::Lambda::Runtime)


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_10AWSCDK::Lambda::Runtime

The .NET 10 runtime (dotnet10).

Returns:

  • (AWSCDK::Lambda::Runtime)


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_6AWSCDK::Lambda::Runtime

Deprecated.

Legacy runtime no longer supported by AWS Lambda. Migrate to the latest .NET runtime.

The .NET 6 runtime (dotnet6).

Returns:

  • (AWSCDK::Lambda::Runtime)


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_8AWSCDK::Lambda::Runtime

The .NET 8 runtime (dotnet8).

Returns:

  • (AWSCDK::Lambda::Runtime)


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_9AWSCDK::Lambda::Runtime

The .NET 9 runtime (dotnet9).

Returns:

  • (AWSCDK::Lambda::Runtime)


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_1AWSCDK::Lambda::Runtime

Deprecated.

Legacy runtime no longer supported by AWS Lambda. Migrate to the latest .NET Core runtime.

The .NET Core 1.0 runtime (dotnetcore1.0).

Returns:

  • (AWSCDK::Lambda::Runtime)


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_2AWSCDK::Lambda::Runtime

Deprecated.

Legacy runtime no longer supported by AWS Lambda. Migrate to the latest .NET Core runtime.

The .NET Core 2.0 runtime (dotnetcore2.0).

Returns:

  • (AWSCDK::Lambda::Runtime)


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_1AWSCDK::Lambda::Runtime

Deprecated.

Legacy runtime no longer supported by AWS Lambda. Migrate to the latest .NET Core runtime.

The .NET Core 2.1 runtime (dotnetcore2.1).

Returns:

  • (AWSCDK::Lambda::Runtime)


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_1AWSCDK::Lambda::Runtime

Deprecated.

Legacy runtime no longer supported by AWS Lambda. Migrate to the latest .NET Core runtime.

The .NET Core 3.1 runtime (dotnetcore3.1).

Returns:

  • (AWSCDK::Lambda::Runtime)


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_IMAGEAWSCDK::Lambda::Runtime

A special runtime entry to be used when function is using a docker image.

Returns:

  • (AWSCDK::Lambda::Runtime)


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_XAWSCDK::Lambda::Runtime

Deprecated.

Legacy runtime no longer supported by AWS Lambda. Migrate to the PROVIDED_AL2023 runtime.

The Go 1.x runtime (go1.x).

Returns:

  • (AWSCDK::Lambda::Runtime)


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_11AWSCDK::Lambda::Runtime

The Java 11 runtime (java11).

Returns:

  • (AWSCDK::Lambda::Runtime)


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_17AWSCDK::Lambda::Runtime

The Java 17 runtime (java17).

Returns:

  • (AWSCDK::Lambda::Runtime)


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_21AWSCDK::Lambda::Runtime

The Java 21 runtime (java21).

Returns:

  • (AWSCDK::Lambda::Runtime)


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_25AWSCDK::Lambda::Runtime

The Java 25 runtime (java25).

Returns:

  • (AWSCDK::Lambda::Runtime)


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_8AWSCDK::Lambda::Runtime

Deprecated.

Legacy runtime no longer supported by AWS Lambda. Migrate to the latest Java runtime.

The Java 8 runtime (java8).

Returns:

  • (AWSCDK::Lambda::Runtime)


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_CORRETTOAWSCDK::Lambda::Runtime

The Java 8 Corretto runtime (java8.al2).

Returns:

  • (AWSCDK::Lambda::Runtime)


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_methodsObject



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

.NODEJSAWSCDK::Lambda::Runtime

Deprecated.

Legacy runtime no longer supported by AWS Lambda. Migrate to the latest NodeJS runtime.

The NodeJS runtime (nodejs).

Returns:

  • (AWSCDK::Lambda::Runtime)


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_XAWSCDK::Lambda::Runtime

Deprecated.

Legacy runtime no longer supported by AWS Lambda. Migrate to the latest NodeJS runtime.

The NodeJS 10.x runtime (nodejs10.x).

Returns:

  • (AWSCDK::Lambda::Runtime)


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_XAWSCDK::Lambda::Runtime

Deprecated.

Legacy runtime no longer supported by AWS Lambda. Migrate to the latest NodeJS runtime.

The NodeJS 12.x runtime (nodejs12.x).

Returns:

  • (AWSCDK::Lambda::Runtime)


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_XAWSCDK::Lambda::Runtime

Deprecated.

Legacy runtime no longer supported by AWS Lambda. Migrate to the latest NodeJS runtime.

The NodeJS 14.x runtime (nodejs14.x).

Returns:

  • (AWSCDK::Lambda::Runtime)


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_XAWSCDK::Lambda::Runtime

Deprecated.

Legacy runtime no longer supported by AWS Lambda. Migrate to the latest NodeJS runtime.

The NodeJS 16.x runtime (nodejs16.x).

Returns:

  • (AWSCDK::Lambda::Runtime)


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_XAWSCDK::Lambda::Runtime

Deprecated.

Legacy runtime no longer supported by AWS Lambda. Migrate to the latest NodeJS runtime.

The NodeJS 18.x runtime (nodejs18.x).

Returns:

  • (AWSCDK::Lambda::Runtime)


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_XAWSCDK::Lambda::Runtime

The NodeJS 20.x runtime (nodejs20.x).

Returns:

  • (AWSCDK::Lambda::Runtime)


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_XAWSCDK::Lambda::Runtime

The NodeJS 22.x runtime (nodejs22.x).

Returns:

  • (AWSCDK::Lambda::Runtime)


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_XAWSCDK::Lambda::Runtime

The NodeJS 24.x runtime (nodejs24.x).

Returns:

  • (AWSCDK::Lambda::Runtime)


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_3AWSCDK::Lambda::Runtime

Deprecated.

Legacy runtime no longer supported by AWS Lambda. Migrate to the latest NodeJS runtime.

The NodeJS 4.3 runtime (nodejs4.3).

Returns:

  • (AWSCDK::Lambda::Runtime)


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_10AWSCDK::Lambda::Runtime

Deprecated.

Legacy runtime no longer supported by AWS Lambda. Migrate to the latest NodeJS runtime.

The NodeJS 6.10 runtime (nodejs6.10).

Returns:

  • (AWSCDK::Lambda::Runtime)


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_10AWSCDK::Lambda::Runtime

Deprecated.

Legacy runtime no longer supported by AWS Lambda. Migrate to the latest NodeJS runtime.

The NodeJS 8.10 runtime (nodejs8.10).

Returns:

  • (AWSCDK::Lambda::Runtime)


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_LATESTAWSCDK::Lambda::Runtime

The latest NodeJS version currently available in ALL regions (not necessarily the latest NodeJS version available in YOUR region).

Returns:

  • (AWSCDK::Lambda::Runtime)


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

.PROVIDEDAWSCDK::Lambda::Runtime

Deprecated.

Legacy runtime no longer supported by AWS Lambda. Migrate to the latest provided.al2023 runtime.

The custom provided runtime (provided).

Returns:

  • (AWSCDK::Lambda::Runtime)


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_AL2AWSCDK::Lambda::Runtime

The custom provided runtime with Amazon Linux 2 (provided.al2).

Returns:

  • (AWSCDK::Lambda::Runtime)


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_AL2023AWSCDK::Lambda::Runtime

The custom provided runtime with Amazon Linux 2023 (provided.al2023).

Returns:

  • (AWSCDK::Lambda::Runtime)


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_7AWSCDK::Lambda::Runtime

Deprecated.

Legacy runtime no longer supported by AWS Lambda. Migrate to the latest Python runtime.

The Python 2.7 runtime (python2.7).

Returns:

  • (AWSCDK::Lambda::Runtime)


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_10AWSCDK::Lambda::Runtime

The Python 3.10 runtime (python3.10).

Returns:

  • (AWSCDK::Lambda::Runtime)


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_11AWSCDK::Lambda::Runtime

The Python 3.11 runtime (python3.11).

Returns:

  • (AWSCDK::Lambda::Runtime)


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_12AWSCDK::Lambda::Runtime

The Python 3.12 runtime (python3.12).

Returns:

  • (AWSCDK::Lambda::Runtime)


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_13AWSCDK::Lambda::Runtime

The Python 3.13 runtime (python3.13).

Returns:

  • (AWSCDK::Lambda::Runtime)


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_14AWSCDK::Lambda::Runtime

The Python 3.14 runtime (python3.14).

Returns:

  • (AWSCDK::Lambda::Runtime)


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_6AWSCDK::Lambda::Runtime

Deprecated.

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.

Returns:

  • (AWSCDK::Lambda::Runtime)


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_7AWSCDK::Lambda::Runtime

Deprecated.

Legacy runtime no longer supported by AWS Lambda. Migrate to the latest Python runtime.

The Python 3.7 runtime (python3.7).

Returns:

  • (AWSCDK::Lambda::Runtime)


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_8AWSCDK::Lambda::Runtime

Deprecated.

Legacy runtime no longer supported by AWS Lambda. Migrate to the latest Python runtime.

The Python 3.8 runtime (python3.8).

Returns:

  • (AWSCDK::Lambda::Runtime)


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_9AWSCDK::Lambda::Runtime

Deprecated.

Legacy runtime no longer supported by AWS Lambda. Migrate to the latest Python runtime.

The Python 3.9 runtime (python3.9).

Returns:

  • (AWSCDK::Lambda::Runtime)


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_5AWSCDK::Lambda::Runtime

Deprecated.

Legacy runtime no longer supported by AWS Lambda. Migrate to the latest Ruby runtime.

The Ruby 2.5 runtime (ruby2.5).

Returns:

  • (AWSCDK::Lambda::Runtime)


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_7AWSCDK::Lambda::Runtime

Deprecated.

Legacy runtime no longer supported by AWS Lambda. Migrate to the latest Ruby runtime.

The Ruby 2.7 runtime (ruby2.7).

Returns:

  • (AWSCDK::Lambda::Runtime)


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_2AWSCDK::Lambda::Runtime

The Ruby 3.2 runtime (ruby3.2).

Returns:

  • (AWSCDK::Lambda::Runtime)


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_3AWSCDK::Lambda::Runtime

The Ruby 3.3 runtime (ruby3.3).

Returns:

  • (AWSCDK::Lambda::Runtime)


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_4AWSCDK::Lambda::Runtime

The Ruby 3.4 runtime (ruby3.4).

Returns:

  • (AWSCDK::Lambda::Runtime)


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_0AWSCDK::Lambda::Runtime

The Ruby 4.0 runtime (ruby4.0).

Returns:

  • (AWSCDK::Lambda::Runtime)


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_imageAWSCDK::DockerImage

The bundling Docker image for this runtime.

Returns:



420
421
422
# File 'lambda/runtime.rb', line 420

def bundling_image()
  jsii_get_property("bundlingImage")
end

#familyAWSCDK::Lambda::RuntimeFamily?

The runtime family.



462
463
464
# File 'lambda/runtime.rb', line 462

def family()
  jsii_get_property("family")
end

#is_variableBoolean

Enabled for runtime enums that always target the latest available.

Returns:

  • (Boolean)


427
428
429
# File 'lambda/runtime.rb', line 427

def is_variable()
  jsii_get_property("isVariable")
end

#nameString

The name of this runtime, as expected by the Lambda resource.

Returns:

  • (String)


434
435
436
# File 'lambda/runtime.rb', line 434

def name()
  jsii_get_property("name")
end

#runtime_equals(other) ⇒ Boolean

Parameters:

  • other (AWSCDK::Lambda::Runtime)

Returns:

  • (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_profilingBoolean

Whether this runtime is integrated with and supported for profiling using Amazon CodeGuru Profiler.

Returns:

  • (Boolean)


441
442
443
# File 'lambda/runtime.rb', line 441

def supports_code_guru_profiling()
  jsii_get_property("supportsCodeGuruProfiling")
end

#supports_inline_codeBoolean

Whether the ZipFile (aka inline code) property can be used with this runtime.

Returns:

  • (Boolean)


448
449
450
# File 'lambda/runtime.rb', line 448

def supports_inline_code()
  jsii_get_property("supportsInlineCode")
end

#supports_snap_startBoolean

Whether this runtime supports snapstart.

Returns:

  • (Boolean)


455
456
457
# File 'lambda/runtime.rb', line 455

def supports_snap_start()
  jsii_get_property("supportsSnapStart")
end

#to_stringString

Returns:

  • (String)


474
475
476
# File 'lambda/runtime.rb', line 474

def to_string()
  jsii_call_method("toString", [])
end