Runtime

class aws_cdk.aws_lambda.Runtime(name, family=None, *, supports_inline_code=None)

Bases: object

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').

__init__(name, family=None, *, supports_inline_code=None)
Parameters
  • name (str) –

  • family (Optional[RuntimeFamily]) –

  • supports_inline_code (Optional[bool]) – Whether the ZipFile (aka inline code) property can be used with this runtime. Default: false

Return type

None

Methods

runtime_equals(other)
Parameters

other (Runtime) –

Return type

bool

to_string()
Return type

str

Attributes

ALL = [<aws_cdk.aws_lambda.Runtime object>, <aws_cdk.aws_lambda.Runtime object>, <aws_cdk.aws_lambda.Runtime object>, <aws_cdk.aws_lambda.Runtime object>, <aws_cdk.aws_lambda.Runtime object>, <aws_cdk.aws_lambda.Runtime object>, <aws_cdk.aws_lambda.Runtime object>, <aws_cdk.aws_lambda.Runtime object>, <aws_cdk.aws_lambda.Runtime object>, <aws_cdk.aws_lambda.Runtime object>, <aws_cdk.aws_lambda.Runtime object>, <aws_cdk.aws_lambda.Runtime object>, <aws_cdk.aws_lambda.Runtime object>, <aws_cdk.aws_lambda.Runtime object>, <aws_cdk.aws_lambda.Runtime object>, <aws_cdk.aws_lambda.Runtime object>, <aws_cdk.aws_lambda.Runtime object>, <aws_cdk.aws_lambda.Runtime object>, <aws_cdk.aws_lambda.Runtime object>, <aws_cdk.aws_lambda.Runtime object>]
DOTNET_CORE_1 = <aws_cdk.aws_lambda.Runtime object>
DOTNET_CORE_2 = <aws_cdk.aws_lambda.Runtime object>
DOTNET_CORE_2_1 = <aws_cdk.aws_lambda.Runtime object>
DOTNET_CORE_3_1 = <aws_cdk.aws_lambda.Runtime object>
GO_1_X = <aws_cdk.aws_lambda.Runtime object>
JAVA_11 = <aws_cdk.aws_lambda.Runtime object>
JAVA_8 = <aws_cdk.aws_lambda.Runtime object>
NODEJS = <aws_cdk.aws_lambda.Runtime object>
NODEJS_10_X = <aws_cdk.aws_lambda.Runtime object>
NODEJS_12_X = <aws_cdk.aws_lambda.Runtime object>
NODEJS_4_3 = <aws_cdk.aws_lambda.Runtime object>
NODEJS_6_10 = <aws_cdk.aws_lambda.Runtime object>
NODEJS_8_10 = <aws_cdk.aws_lambda.Runtime object>
PROVIDED = <aws_cdk.aws_lambda.Runtime object>
PYTHON_2_7 = <aws_cdk.aws_lambda.Runtime object>
PYTHON_3_6 = <aws_cdk.aws_lambda.Runtime object>
PYTHON_3_7 = <aws_cdk.aws_lambda.Runtime object>
PYTHON_3_8 = <aws_cdk.aws_lambda.Runtime object>
RUBY_2_5 = <aws_cdk.aws_lambda.Runtime object>
RUBY_2_7 = <aws_cdk.aws_lambda.Runtime object>
bundling_docker_image

The bundling Docker image for this runtime.

Points to the lambci/lambda build image for this runtime.

see :see: https://hub.docker.com/r/lambci/lambda/

Return type

BundlingDockerImage

family

The runtime family.

Return type

Optional[RuntimeFamily]

name

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

Return type

str

supports_inline_code

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

Return type

bool