Skip to content

Commit 6f4a83b

Browse files
authored
feat: added python 3.12, java 21 and al2023.
Suggested changes by @owenvoke
1 parent 61b4c6e commit 6f4a83b

File tree

4 files changed

+35
-28
lines changed

4 files changed

+35
-28
lines changed

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,20 @@ You can write functions in any of the following runtimes and execute them straig
2323
- Node.js 20
2424
- Node.js 18
2525
- Node.js 16
26-
- Node.js 14
26+
- Python 3.12
2727
- Python 3.11
2828
- Python 3.10
2929
- Python 3.9
3030
- Python 3.8
31-
- Python 3.7
32-
- Ruby 3.2
33-
- Ruby 2.7
31+
- Java 21
3432
- Java 17
3533
- Java 11
3634
- Java 8
37-
- Go 1.x
3835
- .NET 7
3936
- .NET 6
40-
- Custom runtime
37+
- Ruby 3.2
38+
- OS-only runtime (Amazon Linux 2023)
39+
- OS-only runtime (Amazon Linux 2)
4140

4241
Any runtime that [Lambda supports](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html), you can use!
4342

docs/functions/customization.md

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,32 +10,29 @@ Lambda supports multiple languages through the use of runtimes. You can choose a
1010
- Node.js 20: `nodejs20.x`
1111
- Node.js 18: `nodejs18.x`
1212
- Node.js 16: `nodejs16.x`
13-
- Node.js 14: `nodejs14.x`
13+
- Python 3.12: `python3.12`
1414
- Python 3.11: `python3.11`
1515
- Python 3.10: `python3.10`
1616
- Python 3.9: `python3.9`
1717
- Python 3.8: `python3.8`
18-
- Python 3.7: `python3.7`
19-
- Ruby 3.2: `ruby3.2`
20-
- Ruby 2.7: `ruby2.7`
18+
- Java 21: `java21`
2119
- Java 17: `java17`
2220
- Java 11: `java11`
23-
- Java 8: `java8`
24-
- Java 8 Linux 2: `java8.al2`
25-
- Go 1.x: `go1.x`
21+
- Java 8: `java8.al2`
2622
- .NET 7: `dotnet7`
2723
- .NET 6: `dotnet6`
28-
- Custom runntime: `provided.al2`
29-
- Custom runntime: `provided`
24+
- Ruby 3.2: `ruby3.2`
25+
- OS-only runtime (Amazon Linux 2023): `provided.al2023`
26+
- OS-only runtime (Amazon Linux 2): `provided.al2`
3027

31-
E.g. to use the Go runtime, you would return `go1.x`:
28+
E.g. to use the Python 3.12 runtime, you would return `python3.12`:
3229

3330
```php
3431
class ExampleFunction extends LambdaFunction
3532
{
3633
public function runtime() // [tl! focus:3]
3734
{
38-
return 'go1.x';
35+
return 'python3.12';
3936
}
4037
}
4138
```

docs/overview.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,20 @@ You can write functions in any of the following runtimes and execute them straig
1010
- Node.js 20
1111
- Node.js 18
1212
- Node.js 16
13-
- Node.js 14
13+
- Python 3.12
1414
- Python 3.11
1515
- Python 3.10
1616
- Python 3.9
1717
- Python 3.8
18-
- Python 3.7
19-
- Ruby 3.2
20-
- Ruby 2.7
18+
- Java 21
2119
- Java 17
2220
- Java 11
2321
- Java 8
24-
- Go 1.x
2522
- .NET 7
2623
- .NET 6
27-
- Custom runtime
24+
- Ruby 3.2
25+
- OS-only runtime (Amazon Linux 2023)
26+
- OS-only runtime (Amazon Linux 2)
2827

2928
Any runtime that [Lambda supports](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html), you can use!
3029

src/Runtime.php

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,11 @@ abstract class Runtime
1010

1111
public const NODEJS_16 = 'nodejs16.x';
1212

13+
/** @deprecated */
1314
public const NODEJS_14 = 'nodejs14.x';
1415

16+
public const PYTHON_312 = 'python3.12';
17+
1518
public const PYTHON_311 = 'python3.11';
1619

1720
public const PYTHON_310 = 'python3.10';
@@ -20,27 +23,36 @@ abstract class Runtime
2023

2124
public const PYTHON_38 = 'python3.8';
2225

26+
/** @deprecated */
2327
public const PYTHON_37 = 'python3.7';
2428

25-
public const RUBY_32 = 'ruby3.2';
26-
27-
public const RUBY_27 = 'ruby2.7';
29+
public const JAVA_21 = 'java21';
2830

2931
public const JAVA_17 = 'java17';
3032

3133
public const JAVA_11 = 'java11';
3234

3335
public const JAVA_8_LINUX2 = 'java8.al2';
3436

37+
/** @deprecated */
3538
public const JAVA_8 = 'java8';
3639

37-
public const GO_1X = 'go1.x';
38-
3940
public const DOT_NET_7 = 'dotnet7';
4041

4142
public const DOT_NET_6 = 'dotnet6';
4243

44+
public const RUBY_32 = 'ruby3.2';
45+
46+
/** @deprecated */
47+
public const RUBY_27 = 'ruby2.7';
48+
49+
/** @deprecated */
50+
public const GO_1X = 'go1.x';
51+
52+
public const PROVIDED_AL2023 = 'provided.al2023';
53+
4354
public const PROVIDED_AL2 = 'provided.al2';
4455

56+
/** @deprecated */
4557
public const PROVIDED = 'provided';
4658
}

0 commit comments

Comments
 (0)