Runtime

class aws_cdk.aws_lambda.Runtime(name, family=None, *, bundling_docker_image=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').

Parameters
  • name (str) –

  • family (Optional[RuntimeFamily]) –

  • bundling_docker_image (Optional[str]) – The Docker image name to be used for bundling in this runtime. Default: - the latest docker image “amazon/aws-sam-cli-build-image-” from https://hub.docker.com/u/amazon

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

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>, <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>
FROM_IMAGE = <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>
JAVA_8_CORRETTO = <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>
PROVIDED_AL2 = <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.

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