Skip to content

Commit

Permalink
Update Lambda Runtime enum (#4880)
Browse files Browse the repository at this point in the history
Updates the lambda runtime enum according to the AWS docs:
https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html

We should look into automating this in the future: #4881
Fixes #4875
  • Loading branch information
flostadler authored Dec 4, 2024
1 parent 375329a commit 05c63ab
Show file tree
Hide file tree
Showing 7 changed files with 73 additions and 20 deletions.
26 changes: 20 additions & 6 deletions provider/cmd/pulumi-resource-aws/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -92215,10 +92215,6 @@
"name": "Dotnet6",
"value": "dotnet6"
},
{
"name": "Dotnet7",
"value": "dotnet7"
},
{
"name": "Dotnet8",
"value": "dotnet8"
Expand Down Expand Up @@ -92247,6 +92243,10 @@
"name": "NodeJS20dX",
"value": "nodejs20.x"
},
{
"name": "NodeJS22dX",
"value": "nodejs22.x"
},
{
"name": "CustomAL2",
"value": "provided.al2"
Expand All @@ -92268,8 +92268,8 @@
"value": "python3.12"
},
{
"name": "Python3d8",
"value": "python3.8"
"name": "Python3d13",
"value": "python3.13"
},
{
"name": "Python3d9",
Expand All @@ -92279,11 +92279,20 @@
"name": "Ruby3d2",
"value": "ruby3.2"
},
{
"name": "Ruby3d3",
"value": "ruby3.3"
},
{
"name": "Dotnet5d0",
"value": "dotnet5.0",
"deprecationMessage": "This runtime is now deprecated"
},
{
"name": "Dotnet7",
"value": "dotnet7",
"deprecationMessage": "This runtime is now deprecated"
},
{
"name": "DotnetCore2d1",
"value": "dotnetcore2.1",
Expand Down Expand Up @@ -92344,6 +92353,11 @@
"value": "python3.7",
"deprecationMessage": "This runtime is now deprecated"
},
{
"name": "Python3d8",
"value": "python3.8",
"deprecationMessage": "This runtime is now deprecated"
},
{
"name": "Ruby2d5",
"value": "ruby2.5",
Expand Down
7 changes: 5 additions & 2 deletions provider/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,24 +225,26 @@ var extraTypes = map[string]schema.ComplexTypeSpec{
},
Enum: []schema.EnumValueSpec{
{Value: "dotnet6", Name: "Dotnet6"},
{Value: "dotnet7", Name: "Dotnet7"},
{Value: "dotnet8", Name: "Dotnet8"},
{Value: "java11", Name: "Java11"},
{Value: "java17", Name: "Java17"},
{Value: "java21", Name: "Java21"},
{Value: "java8.al2", Name: "Java8AL2"},
{Value: "nodejs18.x", Name: "NodeJS18dX"},
{Value: "nodejs20.x", Name: "NodeJS20dX"},
{Value: "nodejs22.x", Name: "NodeJS22dX"},
{Value: "provided.al2", Name: "CustomAL2"},
{Value: "provided.al2023", Name: "CustomAL2023"},
{Value: "python3.10", Name: "Python3d10"},
{Value: "python3.11", Name: "Python3d11"},
{Value: "python3.12", Name: "Python3d12"},
{Value: "python3.8", Name: "Python3d8"},
{Value: "python3.13", Name: "Python3d13"},
{Value: "python3.9", Name: "Python3d9"},
{Value: "ruby3.2", Name: "Ruby3d2"},
{Value: "ruby3.3", Name: "Ruby3d3"},

deprecateRuntime("dotnet5.0", "Dotnet5d0"),
deprecateRuntime("dotnet7", "Dotnet7"),
deprecateRuntime("dotnetcore2.1", "DotnetCore2d1"),
deprecateRuntime("dotnetcore3.1", "DotnetCore3d1"),
deprecateRuntime("go1.x", "Go1dx"),
Expand All @@ -255,6 +257,7 @@ var extraTypes = map[string]schema.ComplexTypeSpec{
deprecateRuntime("python2.7", "Python2d7"),
deprecateRuntime("python3.6", "Python3d6"),
deprecateRuntime("python3.7", "Python3d7"),
deprecateRuntime("python3.8", "Python3d8"),
deprecateRuntime("ruby2.5", "Ruby2d5"),
deprecateRuntime("ruby2.7", "Ruby2d7"),
},
Expand Down
9 changes: 7 additions & 2 deletions sdk/dotnet/Lambda/Enums.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 10 additions & 4 deletions sdk/go/aws/lambda/pulumiEnums.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 15 additions & 2 deletions sdk/java/src/main/java/com/pulumi/aws/lambda/enums/Runtime.java

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 11 additions & 2 deletions sdk/nodejs/types/enums/lambda/index.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions sdk/python/pulumi_aws/lambda_/_enums.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 05c63ab

Please sign in to comment.