From 2503f6855b6b0dad73c6fafc51f81f66354e2822 Mon Sep 17 00:00:00 2001 From: KIDANI Akito Date: Tue, 13 Feb 2024 04:41:30 +0900 Subject: [PATCH] fix(lambda): @deprecated tag to deprecated runtimes (#29081) ### Issue # (if applicable) Closes #. ### Reason for this change Updated according to [this document](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-support-policy). ### Description of changes ### Description of how you validated changes ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* --- packages/aws-cdk-lib/aws-lambda/lib/runtime.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/aws-cdk-lib/aws-lambda/lib/runtime.ts b/packages/aws-cdk-lib/aws-lambda/lib/runtime.ts index 69dd0283bc1f8..1c05e74ec7957 100644 --- a/packages/aws-cdk-lib/aws-lambda/lib/runtime.ts +++ b/packages/aws-cdk-lib/aws-lambda/lib/runtime.ts @@ -135,6 +135,7 @@ export class Runtime { /** * The Python 3.7 runtime (python3.7) + * @deprecated Legacy runtime no longer supported by AWS Lambda. Migrate to the latest Python runtime. */ public static readonly PYTHON_3_7 = new Runtime('python3.7', RuntimeFamily.PYTHON, { supportsInlineCode: true, @@ -183,6 +184,7 @@ export class Runtime { /** * The Java 8 runtime (java8) + * @deprecated Legacy runtime no longer supported by AWS Lambda. Migrate to the latest Java runtime. */ public static readonly JAVA_8 = new Runtime('java8', RuntimeFamily.JAVA, { supportsCodeGuruProfiling: true, @@ -262,6 +264,7 @@ export class Runtime { /** * The Ruby 2.7 runtime (ruby2.7) + * @deprecated Legacy runtime no longer supported by AWS Lambda. Migrate to the latest Ruby runtime. */ public static readonly RUBY_2_7 = new Runtime('ruby2.7', RuntimeFamily.RUBY);