Skip to content

Commit

Permalink
Add dotnet8 runtime (#3559)
Browse files Browse the repository at this point in the history
Fixes #3549
  • Loading branch information
iwahbe authored Mar 4, 2024
1 parent 133b3c9 commit 59f3fff
Show file tree
Hide file tree
Showing 7 changed files with 243 additions and 225 deletions.
144 changes: 74 additions & 70 deletions provider/cmd/pulumi-resource-aws/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -79680,21 +79680,6 @@
"description": "See https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html",
"type": "string",
"enum": [
{
"name": "DotnetCore2d1",
"value": "dotnetcore2.1",
"deprecationMessage": "This runtime is now deprecated"
},
{
"name": "DotnetCore3d1",
"value": "dotnetcore3.1",
"deprecationMessage": "This runtime is now deprecated"
},
{
"name": "Dotnet5d0",
"value": "dotnet5.0",
"deprecationMessage": "This runtime is now deprecated"
},
{
"name": "Dotnet6",
"value": "dotnet6"
Expand All @@ -79704,18 +79689,8 @@
"value": "dotnet7"
},
{
"name": "Go1dx",
"value": "go1.x",
"deprecationMessage": "This runtime is now deprecated"
},
{
"name": "Java8",
"value": "java8",
"deprecationMessage": "This runtime is now deprecated"
},
{
"name": "Java8AL2",
"value": "java8.al2"
"name": "Dotnet8",
"value": "dotnet8"
},
{
"name": "Java11",
Expand All @@ -79730,93 +79705,122 @@
"value": "java21"
},
{
"name": "Ruby2d5",
"value": "ruby2.5",
"deprecationMessage": "This runtime is now deprecated"
"name": "Java8AL2",
"value": "java8.al2"
},
{
"name": "Ruby2d7",
"value": "ruby2.7",
"deprecationMessage": "This runtime is now deprecated"
"name": "NodeJS16dX",
"value": "nodejs16.x"
},
{
"name": "Ruby3d2",
"value": "ruby3.2"
"name": "NodeJS18dX",
"value": "nodejs18.x"
},
{
"name": "NodeJS10dX",
"value": "nodejs10.x",
"deprecationMessage": "This runtime is now deprecated"
"name": "NodeJS20dX",
"value": "nodejs20.x"
},
{
"name": "NodeJS12dX",
"value": "nodejs12.x",
"deprecationMessage": "This runtime is now deprecated"
"name": "CustomAL2",
"value": "provided.al2"
},
{
"name": "NodeJS14dX",
"value": "nodejs14.x",
"deprecationMessage": "This runtime is now deprecated"
"name": "CustomAL2023",
"value": "provided.al2023"
},
{
"name": "NodeJS16dX",
"value": "nodejs16.x"
"name": "Python3d10",
"value": "python3.10"
},
{
"name": "NodeJS18dX",
"value": "nodejs18.x"
"name": "Python3d11",
"value": "python3.11"
},
{
"name": "NodeJS20dX",
"value": "nodejs20.x"
"name": "Python3d12",
"value": "python3.12"
},
{
"name": "Python2d7",
"value": "python2.7",
"name": "Python3d8",
"value": "python3.8"
},
{
"name": "Python3d9",
"value": "python3.9"
},
{
"name": "Ruby3d2",
"value": "ruby3.2"
},
{
"name": "Dotnet5d0",
"value": "dotnet5.0",
"deprecationMessage": "This runtime is now deprecated"
},
{
"name": "Python3d6",
"value": "python3.6",
"name": "DotnetCore2d1",
"value": "dotnetcore2.1",
"deprecationMessage": "This runtime is now deprecated"
},
{
"name": "Python3d7",
"value": "python3.7",
"name": "DotnetCore3d1",
"value": "dotnetcore3.1",
"deprecationMessage": "This runtime is now deprecated"
},
{
"name": "Python3d8",
"value": "python3.8"
"name": "Go1dx",
"value": "go1.x",
"deprecationMessage": "This runtime is now deprecated"
},
{
"name": "Python3d9",
"value": "python3.9"
"name": "Java8",
"value": "java8",
"deprecationMessage": "This runtime is now deprecated"
},
{
"name": "Python3d10",
"value": "python3.10"
"name": "NodeJS10dX",
"value": "nodejs10.x",
"deprecationMessage": "This runtime is now deprecated"
},
{
"name": "Python3d11",
"value": "python3.11"
"name": "NodeJS12dX",
"value": "nodejs12.x",
"deprecationMessage": "This runtime is now deprecated"
},
{
"name": "Python3d12",
"value": "python3.12"
"name": "NodeJS14dX",
"value": "nodejs14.x",
"deprecationMessage": "This runtime is now deprecated"
},
{
"name": "Custom",
"value": "provided",
"deprecationMessage": "This runtime is now deprecated"
},
{
"name": "CustomAL2",
"value": "provided.al2"
"name": "Python2d7",
"value": "python2.7",
"deprecationMessage": "This runtime is now deprecated"
},
{
"name": "CustomAL2023",
"value": "provided.al2023"
"name": "Python3d6",
"value": "python3.6",
"deprecationMessage": "This runtime is now deprecated"
},
{
"name": "Python3d7",
"value": "python3.7",
"deprecationMessage": "This runtime is now deprecated"
},
{
"name": "Ruby2d5",
"value": "ruby2.5",
"deprecationMessage": "This runtime is now deprecated"
},
{
"name": "Ruby2d7",
"value": "ruby2.7",
"deprecationMessage": "This runtime is now deprecated"
}
]
},
Expand Down
48 changes: 28 additions & 20 deletions provider/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -786,6 +786,12 @@ func newUpstreamProvider(ctx context.Context) awsShim.UpstreamProvider {
return upstreamProvider
}

func deprecateRuntime(value, name string) schema.EnumValueSpec {
s := schema.EnumValueSpec{Value: value, Name: name}
s.DeprecationMessage = "This runtime is now deprecated"
return s
}

// Provider returns additional overlaid schema and metadata associated with the aws package.
func ProviderFromMeta(metaInfo *tfbridge.MetadataInfo) *tfbridge.ProviderInfo {
ctx := context.Background()
Expand Down Expand Up @@ -4861,37 +4867,39 @@ $ pulumi import aws:networkfirewall/resourcePolicy:ResourcePolicy example arn:aw
Description: "See https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html",
},
Enum: []schema.EnumValueSpec{
{Value: "dotnetcore2.1", Name: "DotnetCore2d1", DeprecationMessage: "This runtime is now deprecated"},
{Value: "dotnetcore3.1", Name: "DotnetCore3d1", DeprecationMessage: "This runtime is now deprecated"},
{Value: "dotnet5.0", Name: "Dotnet5d0", DeprecationMessage: "This runtime is now deprecated"},
{Value: "dotnet6", Name: "Dotnet6"},
{Value: "dotnet7", Name: "Dotnet7"},
{Value: "go1.x", Name: "Go1dx", DeprecationMessage: "This runtime is now deprecated"},
{Value: "java8", Name: "Java8", DeprecationMessage: "This runtime is now deprecated"},
{Value: "java8.al2", Name: "Java8AL2"},
{Value: "dotnet8", Name: "Dotnet8"},
{Value: "java11", Name: "Java11"},
{Value: "java17", Name: "Java17"},
{Value: "java21", Name: "Java21"},
{Value: "ruby2.5", Name: "Ruby2d5", DeprecationMessage: "This runtime is now deprecated"},
{Value: "ruby2.7", Name: "Ruby2d7", DeprecationMessage: "This runtime is now deprecated"},
{Value: "ruby3.2", Name: "Ruby3d2"},
{Value: "nodejs10.x", Name: "NodeJS10dX", DeprecationMessage: "This runtime is now deprecated"},
{Value: "nodejs12.x", Name: "NodeJS12dX", DeprecationMessage: "This runtime is now deprecated"},
{Value: "nodejs14.x", Name: "NodeJS14dX", DeprecationMessage: "This runtime is now deprecated"},
{Value: "java8.al2", Name: "Java8AL2"},
{Value: "nodejs16.x", Name: "NodeJS16dX"},
{Value: "nodejs18.x", Name: "NodeJS18dX"},
{Value: "nodejs20.x", Name: "NodeJS20dX"},
{Value: "python2.7", Name: "Python2d7", DeprecationMessage: "This runtime is now deprecated"},
{Value: "python3.6", Name: "Python3d6", DeprecationMessage: "This runtime is now deprecated"},
{Value: "python3.7", Name: "Python3d7", DeprecationMessage: "This runtime is now deprecated"},
{Value: "python3.8", Name: "Python3d8"},
{Value: "python3.9", Name: "Python3d9"},
{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: "provided", Name: "Custom", DeprecationMessage: "This runtime is now deprecated"},
{Value: "provided.al2", Name: "CustomAL2"},
{Value: "provided.al2023", Name: "CustomAL2023"},
{Value: "python3.8", Name: "Python3d8"},
{Value: "python3.9", Name: "Python3d9"},
{Value: "ruby3.2", Name: "Ruby3d2"},

deprecateRuntime("dotnet5.0", "Dotnet5d0"),
deprecateRuntime("dotnetcore2.1", "DotnetCore2d1"),
deprecateRuntime("dotnetcore3.1", "DotnetCore3d1"),
deprecateRuntime("go1.x", "Go1dx"),
deprecateRuntime("java8", "Java8"),
deprecateRuntime("nodejs10.x", "NodeJS10dX"),
deprecateRuntime("nodejs12.x", "NodeJS12dX"),
deprecateRuntime("nodejs14.x", "NodeJS14dX"),
deprecateRuntime("provided", "Custom"),
deprecateRuntime("python2.7", "Python2d7"),
deprecateRuntime("python3.6", "Python3d6"),
deprecateRuntime("python3.7", "Python3d7"),
deprecateRuntime("ruby2.5", "Ruby2d5"),
deprecateRuntime("ruby2.7", "Ruby2d7"),
},
},
"aws:rds/EngineMode:EngineMode": {
Expand Down
49 changes: 25 additions & 24 deletions sdk/dotnet/Lambda/Enums.cs

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

Loading

0 comments on commit 59f3fff

Please sign in to comment.