Skip to content

Commit 2503f68

Browse files
authored
fix(lambda): @deprecated tag to deprecated runtimes (#29081)
### Issue # (if applicable) Closes #<issue number here>. ### 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*
1 parent 683d595 commit 2503f68

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/aws-cdk-lib/aws-lambda/lib/runtime.ts

+3
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ export class Runtime {
135135

136136
/**
137137
* The Python 3.7 runtime (python3.7)
138+
* @deprecated Legacy runtime no longer supported by AWS Lambda. Migrate to the latest Python runtime.
138139
*/
139140
public static readonly PYTHON_3_7 = new Runtime('python3.7', RuntimeFamily.PYTHON, {
140141
supportsInlineCode: true,
@@ -183,6 +184,7 @@ export class Runtime {
183184

184185
/**
185186
* The Java 8 runtime (java8)
187+
* @deprecated Legacy runtime no longer supported by AWS Lambda. Migrate to the latest Java runtime.
186188
*/
187189
public static readonly JAVA_8 = new Runtime('java8', RuntimeFamily.JAVA, {
188190
supportsCodeGuruProfiling: true,
@@ -262,6 +264,7 @@ export class Runtime {
262264

263265
/**
264266
* The Ruby 2.7 runtime (ruby2.7)
267+
* @deprecated Legacy runtime no longer supported by AWS Lambda. Migrate to the latest Ruby runtime.
265268
*/
266269
public static readonly RUBY_2_7 = new Runtime('ruby2.7', RuntimeFamily.RUBY);
267270

0 commit comments

Comments
 (0)