diff --git a/provider/cmd/pulumi-resource-aws/schema.json b/provider/cmd/pulumi-resource-aws/schema.json index bfac6171645..3734f440a94 100644 --- a/provider/cmd/pulumi-resource-aws/schema.json +++ b/provider/cmd/pulumi-resource-aws/schema.json @@ -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" @@ -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", @@ -79730,80 +79705,92 @@ "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", @@ -79811,12 +79798,29 @@ "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" } ] }, diff --git a/provider/resources.go b/provider/resources.go index bf4fc95bdbd..022904c4a78 100644 --- a/provider/resources.go +++ b/provider/resources.go @@ -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() @@ -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": { diff --git a/sdk/dotnet/Lambda/Enums.cs b/sdk/dotnet/Lambda/Enums.cs index b67771f030b..542f643377a 100644 --- a/sdk/dotnet/Lambda/Enums.cs +++ b/sdk/dotnet/Lambda/Enums.cs @@ -20,51 +20,52 @@ private Runtime(string value) _value = value ?? throw new ArgumentNullException(nameof(value)); } + public static Runtime Dotnet6 { get; } = new Runtime("dotnet6"); + public static Runtime Dotnet7 { get; } = new Runtime("dotnet7"); + public static Runtime Dotnet8 { get; } = new Runtime("dotnet8"); + public static Runtime Java11 { get; } = new Runtime("java11"); + public static Runtime Java17 { get; } = new Runtime("java17"); + public static Runtime Java21 { get; } = new Runtime("java21"); + public static Runtime Java8AL2 { get; } = new Runtime("java8.al2"); + 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"); + public static Runtime CustomAL2 { get; } = new Runtime("provided.al2"); + public static Runtime CustomAL2023 { get; } = new Runtime("provided.al2023"); + 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"); + public static Runtime Python3d8 { get; } = new Runtime("python3.8"); + public static Runtime Python3d9 { get; } = new Runtime("python3.9"); + public static Runtime Ruby3d2 { get; } = new Runtime("ruby3.2"); + [Obsolete(@"This runtime is now deprecated")] + public static Runtime Dotnet5d0 { get; } = new Runtime("dotnet5.0"); [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 Custom { get; } = new Runtime("provided"); [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 Runtime Ruby2d5 { get; } = new Runtime("ruby2.5"); + [Obsolete(@"This runtime is now deprecated")] + public static Runtime Ruby2d7 { get; } = new Runtime("ruby2.7"); 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 df64ead228e..02f82daaff8 100644 --- a/sdk/go/aws/lambda/pulumiEnums.go +++ b/sdk/go/aws/lambda/pulumiEnums.go @@ -14,51 +14,52 @@ import ( type Runtime string const ( + RuntimeDotnet6 = Runtime("dotnet6") + RuntimeDotnet7 = Runtime("dotnet7") + RuntimeDotnet8 = Runtime("dotnet8") + RuntimeJava11 = Runtime("java11") + RuntimeJava17 = Runtime("java17") + RuntimeJava21 = Runtime("java21") + RuntimeJava8AL2 = Runtime("java8.al2") + RuntimeNodeJS16dX = Runtime("nodejs16.x") + RuntimeNodeJS18dX = Runtime("nodejs18.x") + RuntimeNodeJS20dX = Runtime("nodejs20.x") + RuntimeCustomAL2 = Runtime("provided.al2") + RuntimeCustomAL2023 = Runtime("provided.al2023") + RuntimePython3d10 = Runtime("python3.10") + RuntimePython3d11 = Runtime("python3.11") + RuntimePython3d12 = Runtime("python3.12") + RuntimePython3d8 = Runtime("python3.8") + RuntimePython3d9 = Runtime("python3.9") + RuntimeRuby3d2 = Runtime("ruby3.2") + // Deprecated: This runtime is now deprecated + RuntimeDotnet5d0 = Runtime("dotnet5.0") // Deprecated: This runtime is now deprecated RuntimeDotnetCore2d1 = Runtime("dotnetcore2.1") // Deprecated: This runtime is now deprecated RuntimeDotnetCore3d1 = Runtime("dotnetcore3.1") // 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") + RuntimeJava8 = Runtime("java8") // 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 + RuntimeCustom = Runtime("provided") // Deprecated: This runtime is now deprecated RuntimePython2d7 = Runtime("python2.7") // Deprecated: This runtime is now deprecated 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") - RuntimePython3d12 = Runtime("python3.12") + RuntimePython3d7 = Runtime("python3.7") // Deprecated: This runtime is now deprecated - RuntimeCustom = Runtime("provided") - RuntimeCustomAL2 = Runtime("provided.al2") - RuntimeCustomAL2023 = Runtime("provided.al2023") + RuntimeRuby2d5 = Runtime("ruby2.5") + // Deprecated: This runtime is now deprecated + RuntimeRuby2d7 = Runtime("ruby2.7") ) func (Runtime) ElementType() reflect.Type { @@ -185,21 +186,22 @@ func (o RuntimePtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulu // // RuntimeDotnet6 // RuntimeDotnet7 -// RuntimeJava8AL2 +// RuntimeDotnet8 // RuntimeJava11 // RuntimeJava17 // RuntimeJava21 -// RuntimeRuby3d2 +// RuntimeJava8AL2 // RuntimeNodeJS16dX // RuntimeNodeJS18dX // RuntimeNodeJS20dX -// RuntimePython3d8 -// RuntimePython3d9 +// RuntimeCustomAL2 +// RuntimeCustomAL2023 // RuntimePython3d10 // RuntimePython3d11 // RuntimePython3d12 -// RuntimeCustomAL2 -// RuntimeCustomAL2023 +// RuntimePython3d8 +// RuntimePython3d9 +// RuntimeRuby3d2 type RuntimeInput interface { pulumi.Input @@ -235,8 +237,8 @@ func (in *runtimePtr) ToRuntimePtrOutputWithContext(ctx context.Context) Runtime } func init() { - pulumi.RegisterInputType(reflect.TypeOf((*RuntimeInput)(nil)).Elem(), Runtime("dotnetcore2.1")) - pulumi.RegisterInputType(reflect.TypeOf((*RuntimePtrInput)(nil)).Elem(), Runtime("dotnetcore2.1")) + pulumi.RegisterInputType(reflect.TypeOf((*RuntimeInput)(nil)).Elem(), Runtime("dotnet6")) + pulumi.RegisterInputType(reflect.TypeOf((*RuntimePtrInput)(nil)).Elem(), Runtime("dotnet6")) pulumi.RegisterOutputType(RuntimeOutput{}) pulumi.RegisterOutputType(RuntimePtrOutput{}) } 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 aefaa7be130..cd97106f8b0 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 @@ -14,26 +14,42 @@ */ @EnumType public enum Runtime { + Dotnet6("dotnet6"), + Dotnet7("dotnet7"), + Dotnet8("dotnet8"), + Java11("java11"), + Java17("java17"), + Java21("java21"), + Java8AL2("java8.al2"), + NodeJS16dX("nodejs16.x"), + NodeJS18dX("nodejs18.x"), + NodeJS20dX("nodejs20.x"), + CustomAL2("provided.al2"), + CustomAL2023("provided.al2023"), + Python3d10("python3.10"), + Python3d11("python3.11"), + Python3d12("python3.12"), + Python3d8("python3.8"), + Python3d9("python3.9"), + Ruby3d2("ruby3.2"), /** * @deprecated * This runtime is now deprecated */ @Deprecated /* This runtime is now deprecated */ - DotnetCore2d1("dotnetcore2.1"), + Dotnet5d0("dotnet5.0"), /** * @deprecated * This runtime is now deprecated */ @Deprecated /* This runtime is now deprecated */ - DotnetCore3d1("dotnetcore3.1"), + DotnetCore2d1("dotnetcore2.1"), /** * @deprecated * This runtime is now deprecated */ @Deprecated /* This runtime is now deprecated */ - Dotnet5d0("dotnet5.0"), - Dotnet6("dotnet6"), - Dotnet7("dotnet7"), + DotnetCore3d1("dotnetcore3.1"), /** * @deprecated * This runtime is now deprecated @@ -46,75 +62,60 @@ public enum Runtime { */ @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"), + NodeJS10dX("nodejs10.x"), /** * @deprecated * This runtime is now deprecated */ @Deprecated /* This runtime is now deprecated */ - Ruby2d7("ruby2.7"), - Ruby3d2("ruby3.2"), + NodeJS12dX("nodejs12.x"), /** * @deprecated * This runtime is now deprecated */ @Deprecated /* This runtime is now deprecated */ - NodeJS10dX("nodejs10.x"), + NodeJS14dX("nodejs14.x"), /** * @deprecated * This runtime is now deprecated */ @Deprecated /* This runtime is now deprecated */ - NodeJS12dX("nodejs12.x"), + Custom("provided"), /** * @deprecated * This runtime is now deprecated */ @Deprecated /* This runtime is now deprecated */ - NodeJS14dX("nodejs14.x"), - NodeJS16dX("nodejs16.x"), - NodeJS18dX("nodejs18.x"), - NodeJS20dX("nodejs20.x"), + Python2d7("python2.7"), /** * @deprecated * This runtime is now deprecated */ @Deprecated /* This runtime is now deprecated */ - Python2d7("python2.7"), + Python3d6("python3.6"), /** * @deprecated * This runtime is now deprecated */ @Deprecated /* This runtime is now deprecated */ - Python3d6("python3.6"), + Python3d7("python3.7"), /** * @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"), + Ruby2d5("ruby2.5"), /** * @deprecated * This runtime is now deprecated */ @Deprecated /* This runtime is now deprecated */ - Custom("provided"), - CustomAL2("provided.al2"), - CustomAL2023("provided.al2023"); + Ruby2d7("ruby2.7"); private final String value; diff --git a/sdk/nodejs/types/enums/lambda/index.ts b/sdk/nodejs/types/enums/lambda/index.ts index cd7bb7bfcf2..01f0b4d9605 100644 --- a/sdk/nodejs/types/enums/lambda/index.ts +++ b/sdk/nodejs/types/enums/lambda/index.ts @@ -3,20 +3,36 @@ export const Runtime = { + Dotnet6: "dotnet6", + Dotnet7: "dotnet7", + Dotnet8: "dotnet8", + Java11: "java11", + Java17: "java17", + Java21: "java21", + Java8AL2: "java8.al2", + NodeJS16dX: "nodejs16.x", + NodeJS18dX: "nodejs18.x", + NodeJS20dX: "nodejs20.x", + CustomAL2: "provided.al2", + CustomAL2023: "provided.al2023", + Python3d10: "python3.10", + Python3d11: "python3.11", + Python3d12: "python3.12", + Python3d8: "python3.8", + Python3d9: "python3.9", + Ruby3d2: "ruby3.2", /** * @deprecated This runtime is now deprecated */ - DotnetCore2d1: "dotnetcore2.1", + Dotnet5d0: "dotnet5.0", /** * @deprecated This runtime is now deprecated */ - DotnetCore3d1: "dotnetcore3.1", + DotnetCore2d1: "dotnetcore2.1", /** * @deprecated This runtime is now deprecated */ - Dotnet5d0: "dotnet5.0", - Dotnet6: "dotnet6", - Dotnet7: "dotnet7", + DotnetCore3d1: "dotnetcore3.1", /** * @deprecated This runtime is now deprecated */ @@ -25,19 +41,6 @@ export const Runtime = { * @deprecated This runtime is now deprecated */ Java8: "java8", - Java8AL2: "java8.al2", - Java11: "java11", - Java17: "java17", - Java21: "java21", - /** - * @deprecated This runtime is now deprecated - */ - Ruby2d5: "ruby2.5", - /** - * @deprecated This runtime is now deprecated - */ - Ruby2d7: "ruby2.7", - Ruby3d2: "ruby3.2", /** * @deprecated This runtime is now deprecated */ @@ -50,9 +53,10 @@ export const Runtime = { * @deprecated This runtime is now deprecated */ NodeJS14dX: "nodejs14.x", - NodeJS16dX: "nodejs16.x", - NodeJS18dX: "nodejs18.x", - NodeJS20dX: "nodejs20.x", + /** + * @deprecated This runtime is now deprecated + */ + Custom: "provided", /** * @deprecated This runtime is now deprecated */ @@ -65,17 +69,14 @@ export const Runtime = { * @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 */ - Custom: "provided", - CustomAL2: "provided.al2", - CustomAL2023: "provided.al2023", + Ruby2d5: "ruby2.5", + /** + * @deprecated This runtime is now deprecated + */ + Ruby2d7: "ruby2.7", } as const; /** diff --git a/sdk/python/pulumi_aws/lambda_/_enums.py b/sdk/python/pulumi_aws/lambda_/_enums.py index 902155c2ac7..db8c1ec0833 100644 --- a/sdk/python/pulumi_aws/lambda_/_enums.py +++ b/sdk/python/pulumi_aws/lambda_/_enums.py @@ -13,34 +13,35 @@ class Runtime(str, Enum): """ See https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html """ - DOTNET_CORE2D1 = "dotnetcore2.1" - DOTNET_CORE3D1 = "dotnetcore3.1" - DOTNET5D0 = "dotnet5.0" DOTNET6 = "dotnet6" DOTNET7 = "dotnet7" - GO1DX = "go1.x" - JAVA8 = "java8" - JAVA8_AL2 = "java8.al2" + DOTNET8 = "dotnet8" JAVA11 = "java11" JAVA17 = "java17" JAVA21 = "java21" - RUBY2D5 = "ruby2.5" - RUBY2D7 = "ruby2.7" - RUBY3D2 = "ruby3.2" - NODE_JS10D_X = "nodejs10.x" - NODE_JS12D_X = "nodejs12.x" - NODE_JS14D_X = "nodejs14.x" + JAVA8_AL2 = "java8.al2" NODE_JS16D_X = "nodejs16.x" NODE_JS18D_X = "nodejs18.x" NODE_JS20D_X = "nodejs20.x" - PYTHON2D7 = "python2.7" - PYTHON3D6 = "python3.6" - PYTHON3D7 = "python3.7" - PYTHON3D8 = "python3.8" - PYTHON3D9 = "python3.9" + CUSTOM_AL2 = "provided.al2" + CUSTOM_AL2023 = "provided.al2023" PYTHON3D10 = "python3.10" PYTHON3D11 = "python3.11" PYTHON3D12 = "python3.12" + PYTHON3D8 = "python3.8" + PYTHON3D9 = "python3.9" + RUBY3D2 = "ruby3.2" + DOTNET5D0 = "dotnet5.0" + DOTNET_CORE2D1 = "dotnetcore2.1" + DOTNET_CORE3D1 = "dotnetcore3.1" + GO1DX = "go1.x" + JAVA8 = "java8" + NODE_JS10D_X = "nodejs10.x" + NODE_JS12D_X = "nodejs12.x" + NODE_JS14D_X = "nodejs14.x" CUSTOM = "provided" - CUSTOM_AL2 = "provided.al2" - CUSTOM_AL2023 = "provided.al2023" + PYTHON2D7 = "python2.7" + PYTHON3D6 = "python3.6" + PYTHON3D7 = "python3.7" + RUBY2D5 = "ruby2.5" + RUBY2D7 = "ruby2.7"