From b3675bdf87e4dbd1536b6b88dd23881f2e8aaba7 Mon Sep 17 00:00:00 2001 From: Luke Hoban Date: Tue, 16 Jan 2024 16:52:07 -0800 Subject: [PATCH] Update aws.lambda.Runtime to latest AWS support (#3261) Catches our enum up to date with the latest from https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html. Also updates the deprecated runtimes to latest, including some which have been very recently deprecated (but in a few cases, are not yet erroring on create/update - though those are coming in the next few weeks). Also fixes CallbackFunction in TS to ensure it can accept a normal `string` as well, to ensure that users are not prevented from passing not-yet-supported enum values in the future. This aligns with the underlying `Function` type which accepts both. Fixes #3260. Fixes https://github.com/pulumi/pulumi-aws/issues/2994. --- provider/cmd/pulumi-resource-aws/schema.json | 49 +++++++++++++---- provider/resources.go | 23 ++++---- sdk/dotnet/Lambda/Enums.cs | 14 +++++ sdk/go/aws/lambda/pulumiEnums.go | 48 ++++++++++------- .../com/pulumi/aws/lambda/enums/Runtime.java | 52 ++++++++++++++++++- sdk/nodejs/lambda/lambdaMixins.ts | 2 +- sdk/nodejs/types/enums/lambda/index.ts | 32 ++++++++++++ sdk/python/pulumi_aws/lambda_/_enums.py | 5 ++ 8 files changed, 185 insertions(+), 40 deletions(-) diff --git a/provider/cmd/pulumi-resource-aws/schema.json b/provider/cmd/pulumi-resource-aws/schema.json index 598c1304186..c3e573d65ec 100644 --- a/provider/cmd/pulumi-resource-aws/schema.json +++ b/provider/cmd/pulumi-resource-aws/schema.json @@ -77728,23 +77728,31 @@ }, { "name": "DotnetCore3d1", - "value": "dotnetcore3.1" + "value": "dotnetcore3.1", + "deprecationMessage": "This runtime is now deprecated" }, { "name": "Dotnet5d0", - "value": "dotnet5.0" + "value": "dotnet5.0", + "deprecationMessage": "This runtime is now deprecated" }, { "name": "Dotnet6", "value": "dotnet6" }, + { + "name": "Dotnet7", + "value": "dotnet7" + }, { "name": "Go1dx", - "value": "go1.x" + "value": "go1.x", + "deprecationMessage": "This runtime is now deprecated" }, { "name": "Java8", - "value": "java8" + "value": "java8", + "deprecationMessage": "This runtime is now deprecated" }, { "name": "Java8AL2", @@ -77758,6 +77766,10 @@ "name": "Java17", "value": "java17" }, + { + "name": "Java21", + "value": "java21" + }, { "name": "Ruby2d5", "value": "ruby2.5", @@ -77765,7 +77777,8 @@ }, { "name": "Ruby2d7", - "value": "ruby2.7" + "value": "ruby2.7", + "deprecationMessage": "This runtime is now deprecated" }, { "name": "Ruby3d2", @@ -77778,11 +77791,13 @@ }, { "name": "NodeJS12dX", - "value": "nodejs12.x" + "value": "nodejs12.x", + "deprecationMessage": "This runtime is now deprecated" }, { "name": "NodeJS14dX", - "value": "nodejs14.x" + "value": "nodejs14.x", + "deprecationMessage": "This runtime is now deprecated" }, { "name": "NodeJS16dX", @@ -77792,6 +77807,10 @@ "name": "NodeJS18dX", "value": "nodejs18.x" }, + { + "name": "NodeJS20dX", + "value": "nodejs20.x" + }, { "name": "Python2d7", "value": "python2.7", @@ -77804,7 +77823,8 @@ }, { "name": "Python3d7", - "value": "python3.7" + "value": "python3.7", + "deprecationMessage": "This runtime is now deprecated" }, { "name": "Python3d8", @@ -77822,13 +77842,22 @@ "name": "Python3d11", "value": "python3.11" }, + { + "name": "Python3d12", + "value": "python3.12" + }, { "name": "Custom", - "value": "provided" + "value": "provided", + "deprecationMessage": "This runtime is now deprecated" }, { "name": "CustomAL2", "value": "provided.al2" + }, + { + "name": "CustomAL2023", + "value": "provided.al2023" } ] }, @@ -345698,7 +345727,7 @@ } }, "aws:iot/getEndpoint:getEndpoint": { - "description": "Returns a unique endpoint specific to the AWS account making the call.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\nimport * as kubernetes from \"@pulumi/kubernetes\";\n\nconst example = aws.iot.getEndpoint({});\nconst agent = new kubernetes.index.Kubernetes_pod(\"agent\", {\n metadata: [{\n name: \"my-device\",\n }],\n spec: [{\n container: [{\n image: \"gcr.io/my-project/image-name\",\n name: \"image-name\",\n env: [{\n name: \"IOT_ENDPOINT\",\n value: example.endpointAddress,\n }],\n }],\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\nimport pulumi_kubernetes as kubernetes\n\nexample = aws.iot.get_endpoint()\nagent = kubernetes.index.Kubernetes_pod(\"agent\",\n metadata=[{\n name: my-device,\n }],\n spec=[{\n container: [{\n image: gcr.io/my-project/image-name,\n name: image-name,\n env: [{\n name: IOT_ENDPOINT,\n value: example.endpoint_address,\n }],\n }],\n }])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\nusing Kubernetes = Pulumi.Kubernetes;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Aws.Iot.GetEndpoint.Invoke();\n\n var agent = new Kubernetes.Index.Kubernetes_pod(\"agent\", new()\n {\n Metadata = new[]\n {\n \n {\n { \"name\", \"my-device\" },\n },\n },\n Spec = new[]\n {\n \n {\n { \"container\", new[]\n {\n \n {\n { \"image\", \"gcr.io/my-project/image-name\" },\n { \"name\", \"image-name\" },\n { \"env\", new[]\n {\n \n {\n { \"name\", \"IOT_ENDPOINT\" },\n { \"value\", example.Apply(getEndpointResult =\u003e getEndpointResult.EndpointAddress) },\n },\n } },\n },\n } },\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/iot\"\n\t\"github.com/pulumi/pulumi-kubernetes/sdk/v1/go/kubernetes\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := iot.GetEndpoint(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = index.NewKubernetes_pod(ctx, \"agent\", \u0026index.Kubernetes_podArgs{\n\t\t\tMetadata: []map[string]interface{}{\n\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\"name\": \"my-device\",\n\t\t\t\t},\n\t\t\t},\n\t\t\tSpec: []map[string]interface{}{\n\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\"container\": []map[string]interface{}{\n\t\t\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\t\t\"image\": \"gcr.io/my-project/image-name\",\n\t\t\t\t\t\t\t\"name\": \"image-name\",\n\t\t\t\t\t\t\t\"env\": []map[string]interface{}{\n\t\t\t\t\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\t\t\t\t\"name\": \"IOT_ENDPOINT\",\n\t\t\t\t\t\t\t\t\t\"value\": example.EndpointAddress,\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.iot.IotFunctions;\nimport com.pulumi.aws.iot.inputs.GetEndpointArgs;\nimport com.pulumi.kubernetes.kubernetes_pod;\nimport com.pulumi.kubernetes.Kubernetes_podArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = IotFunctions.getEndpoint();\n\n var agent = new Kubernetes_pod(\"agent\", Kubernetes_podArgs.builder() \n .metadata(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))\n .spec(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n agent:\n type: kubernetes:kubernetes_pod\n properties:\n metadata:\n - name: my-device\n spec:\n - container:\n - image: gcr.io/my-project/image-name\n name: image-name\n env:\n - name: IOT_ENDPOINT\n value: ${example.endpointAddress}\nvariables:\n example:\n fn::invoke:\n Function: aws:iot:getEndpoint\n Arguments: {}\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Returns a unique endpoint specific to the AWS account making the call.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\nimport * as kubernetes from \"@pulumi/kubernetes\";\n\nconst example = aws.iot.getEndpoint({});\nconst agent = new kubernetes.index.Kubernetes_pod(\"agent\", {\n metadata: [{\n name: \"my-device\",\n }],\n spec: [{\n container: [{\n image: \"gcr.io/my-project/image-name\",\n name: \"image-name\",\n env: [{\n name: \"IOT_ENDPOINT\",\n value: example.endpointAddress,\n }],\n }],\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\nimport pulumi_kubernetes as kubernetes\n\nexample = aws.iot.get_endpoint()\nagent = kubernetes.index.Kubernetes_pod(\"agent\",\n metadata=[{\n name: my-device,\n }],\n spec=[{\n container: [{\n image: gcr.io/my-project/image-name,\n name: image-name,\n env: [{\n name: IOT_ENDPOINT,\n value: example.endpoint_address,\n }],\n }],\n }])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\nusing Kubernetes = Pulumi.Kubernetes;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Aws.Iot.GetEndpoint.Invoke();\n\n var agent = new Kubernetes.Index.Kubernetes_pod(\"agent\", new()\n {\n Metadata = new[]\n {\n \n {\n { \"name\", \"my-device\" },\n },\n },\n Spec = new[]\n {\n \n {\n { \"container\", new[]\n {\n \n {\n { \"image\", \"gcr.io/my-project/image-name\" },\n { \"name\", \"image-name\" },\n { \"env\", new[]\n {\n \n {\n { \"name\", \"IOT_ENDPOINT\" },\n { \"value\", example.Apply(getEndpointResult =\u003e getEndpointResult.EndpointAddress) },\n },\n } },\n },\n } },\n },\n },\n });\n\n});\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.iot.IotFunctions;\nimport com.pulumi.aws.iot.inputs.GetEndpointArgs;\nimport com.pulumi.kubernetes.kubernetes_pod;\nimport com.pulumi.kubernetes.Kubernetes_podArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = IotFunctions.getEndpoint();\n\n var agent = new Kubernetes_pod(\"agent\", Kubernetes_podArgs.builder() \n .metadata(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))\n .spec(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n agent:\n type: kubernetes:kubernetes_pod\n properties:\n metadata:\n - name: my-device\n spec:\n - container:\n - image: gcr.io/my-project/image-name\n name: image-name\n env:\n - name: IOT_ENDPOINT\n value: ${example.endpointAddress}\nvariables:\n example:\n fn::invoke:\n Function: aws:iot:getEndpoint\n Arguments: {}\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getEndpoint.\n", "properties": { diff --git a/provider/resources.go b/provider/resources.go index 612f927289d..f19761ac71d 100644 --- a/provider/resources.go +++ b/provider/resources.go @@ -4771,31 +4771,36 @@ $ pulumi import aws:networkfirewall/resourcePolicy:ResourcePolicy example arn:aw }, Enum: []schema.EnumValueSpec{ {Value: "dotnetcore2.1", Name: "DotnetCore2d1", DeprecationMessage: "This runtime is now deprecated"}, - {Value: "dotnetcore3.1", Name: "DotnetCore3d1"}, - {Value: "dotnet5.0", Name: "Dotnet5d0"}, + {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: "go1.x", Name: "Go1dx"}, - {Value: "java8", Name: "Java8"}, + {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: "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"}, + {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"}, - {Value: "nodejs14.x", Name: "NodeJS14dX"}, + {Value: "nodejs12.x", Name: "NodeJS12dX", DeprecationMessage: "This runtime is now deprecated"}, + {Value: "nodejs14.x", Name: "NodeJS14dX", DeprecationMessage: "This runtime is now deprecated"}, {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"}, + {Value: "python3.7", Name: "Python3d7", DeprecationMessage: "This runtime is now deprecated"}, {Value: "python3.8", Name: "Python3d8"}, {Value: "python3.9", Name: "Python3d9"}, {Value: "python3.10", Name: "Python3d10"}, {Value: "python3.11", Name: "Python3d11"}, - {Value: "provided", Name: "Custom"}, + {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"}, }, }, "aws:rds/EngineMode:EngineMode": { diff --git a/sdk/dotnet/Lambda/Enums.cs b/sdk/dotnet/Lambda/Enums.cs index 2708539c76e..b67771f030b 100644 --- a/sdk/dotnet/Lambda/Enums.cs +++ b/sdk/dotnet/Lambda/Enums.cs @@ -22,35 +22,49 @@ private Runtime(string value) [Obsolete(@"This runtime is now deprecated")] public static Runtime DotnetCore2d1 { get; } = new Runtime("dotnetcore2.1"); + [Obsolete(@"This runtime is now deprecated")] public static Runtime DotnetCore3d1 { get; } = new Runtime("dotnetcore3.1"); + [Obsolete(@"This runtime is now deprecated")] public static Runtime Dotnet5d0 { get; } = new Runtime("dotnet5.0"); public static Runtime Dotnet6 { get; } = new Runtime("dotnet6"); + public static Runtime Dotnet7 { get; } = new Runtime("dotnet7"); + [Obsolete(@"This runtime is now deprecated")] public static Runtime Go1dx { get; } = new Runtime("go1.x"); + [Obsolete(@"This runtime is now deprecated")] public static Runtime Java8 { get; } = new Runtime("java8"); public static Runtime Java8AL2 { get; } = new Runtime("java8.al2"); public static Runtime Java11 { get; } = new Runtime("java11"); public static Runtime Java17 { get; } = new Runtime("java17"); + public static Runtime Java21 { get; } = new Runtime("java21"); [Obsolete(@"This runtime is now deprecated")] public static Runtime Ruby2d5 { get; } = new Runtime("ruby2.5"); + [Obsolete(@"This runtime is now deprecated")] public static Runtime Ruby2d7 { get; } = new Runtime("ruby2.7"); public static Runtime Ruby3d2 { get; } = new Runtime("ruby3.2"); [Obsolete(@"This runtime is now deprecated")] public static Runtime NodeJS10dX { get; } = new Runtime("nodejs10.x"); + [Obsolete(@"This runtime is now deprecated")] public static Runtime NodeJS12dX { get; } = new Runtime("nodejs12.x"); + [Obsolete(@"This runtime is now deprecated")] public static Runtime NodeJS14dX { get; } = new Runtime("nodejs14.x"); public static Runtime NodeJS16dX { get; } = new Runtime("nodejs16.x"); public static Runtime NodeJS18dX { get; } = new Runtime("nodejs18.x"); + public static Runtime NodeJS20dX { get; } = new Runtime("nodejs20.x"); [Obsolete(@"This runtime is now deprecated")] public static Runtime Python2d7 { get; } = new Runtime("python2.7"); [Obsolete(@"This runtime is now deprecated")] public static Runtime Python3d6 { get; } = new Runtime("python3.6"); + [Obsolete(@"This runtime is now deprecated")] public static Runtime Python3d7 { get; } = new Runtime("python3.7"); public static Runtime Python3d8 { get; } = new Runtime("python3.8"); public static Runtime Python3d9 { get; } = new Runtime("python3.9"); public static Runtime Python3d10 { get; } = new Runtime("python3.10"); public static Runtime Python3d11 { get; } = new Runtime("python3.11"); + public static Runtime Python3d12 { get; } = new Runtime("python3.12"); + [Obsolete(@"This runtime is now deprecated")] public static Runtime Custom { get; } = new Runtime("provided"); public static Runtime CustomAL2 { get; } = new Runtime("provided.al2"); + public static Runtime CustomAL2023 { get; } = new Runtime("provided.al2023"); public static bool operator ==(Runtime left, Runtime right) => left.Equals(right); public static bool operator !=(Runtime left, Runtime right) => !left.Equals(right); diff --git a/sdk/go/aws/lambda/pulumiEnums.go b/sdk/go/aws/lambda/pulumiEnums.go index 0cf90b456b2..c056323aac3 100644 --- a/sdk/go/aws/lambda/pulumiEnums.go +++ b/sdk/go/aws/lambda/pulumiEnums.go @@ -17,35 +17,49 @@ type Runtime string const ( // Deprecated: This runtime is now deprecated RuntimeDotnetCore2d1 = Runtime("dotnetcore2.1") + // Deprecated: This runtime is now deprecated RuntimeDotnetCore3d1 = Runtime("dotnetcore3.1") - RuntimeDotnet5d0 = Runtime("dotnet5.0") - RuntimeDotnet6 = Runtime("dotnet6") - RuntimeGo1dx = Runtime("go1.x") - RuntimeJava8 = Runtime("java8") - RuntimeJava8AL2 = Runtime("java8.al2") - RuntimeJava11 = Runtime("java11") - RuntimeJava17 = Runtime("java17") + // Deprecated: This runtime is now deprecated + RuntimeDotnet5d0 = Runtime("dotnet5.0") + RuntimeDotnet6 = Runtime("dotnet6") + RuntimeDotnet7 = Runtime("dotnet7") + // Deprecated: This runtime is now deprecated + RuntimeGo1dx = Runtime("go1.x") + // Deprecated: This runtime is now deprecated + RuntimeJava8 = Runtime("java8") + RuntimeJava8AL2 = Runtime("java8.al2") + RuntimeJava11 = Runtime("java11") + RuntimeJava17 = Runtime("java17") + RuntimeJava21 = Runtime("java21") // Deprecated: This runtime is now deprecated RuntimeRuby2d5 = Runtime("ruby2.5") + // Deprecated: This runtime is now deprecated RuntimeRuby2d7 = Runtime("ruby2.7") RuntimeRuby3d2 = Runtime("ruby3.2") // Deprecated: This runtime is now deprecated RuntimeNodeJS10dX = Runtime("nodejs10.x") + // Deprecated: This runtime is now deprecated RuntimeNodeJS12dX = Runtime("nodejs12.x") + // Deprecated: This runtime is now deprecated RuntimeNodeJS14dX = Runtime("nodejs14.x") RuntimeNodeJS16dX = Runtime("nodejs16.x") RuntimeNodeJS18dX = Runtime("nodejs18.x") + RuntimeNodeJS20dX = Runtime("nodejs20.x") // Deprecated: This runtime is now deprecated RuntimePython2d7 = Runtime("python2.7") // Deprecated: This runtime is now deprecated - RuntimePython3d6 = Runtime("python3.6") + RuntimePython3d6 = Runtime("python3.6") + // Deprecated: This runtime is now deprecated RuntimePython3d7 = Runtime("python3.7") RuntimePython3d8 = Runtime("python3.8") RuntimePython3d9 = Runtime("python3.9") RuntimePython3d10 = Runtime("python3.10") RuntimePython3d11 = Runtime("python3.11") - RuntimeCustom = Runtime("provided") - RuntimeCustomAL2 = Runtime("provided.al2") + RuntimePython3d12 = Runtime("python3.12") + // Deprecated: This runtime is now deprecated + RuntimeCustom = Runtime("provided") + RuntimeCustomAL2 = Runtime("provided.al2") + RuntimeCustomAL2023 = Runtime("provided.al2023") ) func (Runtime) ElementType() reflect.Type { @@ -170,27 +184,23 @@ func (o RuntimePtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulu // RuntimeInput is an input type that accepts values of the Runtime enum // A concrete instance of `RuntimeInput` can be one of the following: // -// RuntimeDotnetCore3d1 -// RuntimeDotnet5d0 // RuntimeDotnet6 -// RuntimeGo1dx -// RuntimeJava8 +// RuntimeDotnet7 // RuntimeJava8AL2 // RuntimeJava11 // RuntimeJava17 -// RuntimeRuby2d7 +// RuntimeJava21 // RuntimeRuby3d2 -// RuntimeNodeJS12dX -// RuntimeNodeJS14dX // RuntimeNodeJS16dX // RuntimeNodeJS18dX -// RuntimePython3d7 +// RuntimeNodeJS20dX // RuntimePython3d8 // RuntimePython3d9 // RuntimePython3d10 // RuntimePython3d11 -// RuntimeCustom +// RuntimePython3d12 // RuntimeCustomAL2 +// RuntimeCustomAL2023 type RuntimeInput interface { pulumi.Input diff --git a/sdk/java/src/main/java/com/pulumi/aws/lambda/enums/Runtime.java b/sdk/java/src/main/java/com/pulumi/aws/lambda/enums/Runtime.java index 07f3620397c..aefaa7be130 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lambda/enums/Runtime.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lambda/enums/Runtime.java @@ -20,20 +20,47 @@ public enum Runtime { */ @Deprecated /* This runtime is now deprecated */ DotnetCore2d1("dotnetcore2.1"), + /** + * @deprecated + * This runtime is now deprecated + */ + @Deprecated /* This runtime is now deprecated */ DotnetCore3d1("dotnetcore3.1"), + /** + * @deprecated + * This runtime is now deprecated + */ + @Deprecated /* This runtime is now deprecated */ Dotnet5d0("dotnet5.0"), Dotnet6("dotnet6"), + Dotnet7("dotnet7"), + /** + * @deprecated + * This runtime is now deprecated + */ + @Deprecated /* This runtime is now deprecated */ Go1dx("go1.x"), + /** + * @deprecated + * This runtime is now deprecated + */ + @Deprecated /* This runtime is now deprecated */ Java8("java8"), Java8AL2("java8.al2"), Java11("java11"), Java17("java17"), + Java21("java21"), /** * @deprecated * This runtime is now deprecated */ @Deprecated /* This runtime is now deprecated */ Ruby2d5("ruby2.5"), + /** + * @deprecated + * This runtime is now deprecated + */ + @Deprecated /* This runtime is now deprecated */ Ruby2d7("ruby2.7"), Ruby3d2("ruby3.2"), /** @@ -42,10 +69,21 @@ public enum Runtime { */ @Deprecated /* This runtime is now deprecated */ NodeJS10dX("nodejs10.x"), + /** + * @deprecated + * This runtime is now deprecated + */ + @Deprecated /* This runtime is now deprecated */ NodeJS12dX("nodejs12.x"), + /** + * @deprecated + * This runtime is now deprecated + */ + @Deprecated /* This runtime is now deprecated */ NodeJS14dX("nodejs14.x"), NodeJS16dX("nodejs16.x"), NodeJS18dX("nodejs18.x"), + NodeJS20dX("nodejs20.x"), /** * @deprecated * This runtime is now deprecated @@ -58,13 +96,25 @@ public enum Runtime { */ @Deprecated /* This runtime is now deprecated */ Python3d6("python3.6"), + /** + * @deprecated + * This runtime is now deprecated + */ + @Deprecated /* This runtime is now deprecated */ Python3d7("python3.7"), Python3d8("python3.8"), Python3d9("python3.9"), Python3d10("python3.10"), Python3d11("python3.11"), + Python3d12("python3.12"), + /** + * @deprecated + * This runtime is now deprecated + */ + @Deprecated /* This runtime is now deprecated */ Custom("provided"), - CustomAL2("provided.al2"); + CustomAL2("provided.al2"), + CustomAL2023("provided.al2023"); private final String value; diff --git a/sdk/nodejs/lambda/lambdaMixins.ts b/sdk/nodejs/lambda/lambdaMixins.ts index 33bd776eb32..8cd8f4d774d 100644 --- a/sdk/nodejs/lambda/lambdaMixins.ts +++ b/sdk/nodejs/lambda/lambdaMixins.ts @@ -226,7 +226,7 @@ export type BaseCallbackFunctionArgs = utils.Overwrite