github.com/pulumi/pulumi-aws/sdk/v6@v6.32.0/go/aws/lambda/pulumiEnums.go (about) 1 // Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. 2 // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** 3 4 package lambda 5 6 import ( 7 "context" 8 "reflect" 9 10 "github.com/pulumi/pulumi/sdk/v3/go/pulumi" 11 ) 12 13 // See https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html 14 type Runtime string 15 16 const ( 17 RuntimeDotnet6 = Runtime("dotnet6") 18 RuntimeDotnet7 = Runtime("dotnet7") 19 RuntimeDotnet8 = Runtime("dotnet8") 20 RuntimeJava11 = Runtime("java11") 21 RuntimeJava17 = Runtime("java17") 22 RuntimeJava21 = Runtime("java21") 23 RuntimeJava8AL2 = Runtime("java8.al2") 24 RuntimeNodeJS16dX = Runtime("nodejs16.x") 25 RuntimeNodeJS18dX = Runtime("nodejs18.x") 26 RuntimeNodeJS20dX = Runtime("nodejs20.x") 27 RuntimeCustomAL2 = Runtime("provided.al2") 28 RuntimeCustomAL2023 = Runtime("provided.al2023") 29 RuntimePython3d10 = Runtime("python3.10") 30 RuntimePython3d11 = Runtime("python3.11") 31 RuntimePython3d12 = Runtime("python3.12") 32 RuntimePython3d8 = Runtime("python3.8") 33 RuntimePython3d9 = Runtime("python3.9") 34 RuntimeRuby3d2 = Runtime("ruby3.2") 35 // Deprecated: This runtime is now deprecated 36 RuntimeDotnet5d0 = Runtime("dotnet5.0") 37 // Deprecated: This runtime is now deprecated 38 RuntimeDotnetCore2d1 = Runtime("dotnetcore2.1") 39 // Deprecated: This runtime is now deprecated 40 RuntimeDotnetCore3d1 = Runtime("dotnetcore3.1") 41 // Deprecated: This runtime is now deprecated 42 RuntimeGo1dx = Runtime("go1.x") 43 // Deprecated: This runtime is now deprecated 44 RuntimeJava8 = Runtime("java8") 45 // Deprecated: This runtime is now deprecated 46 RuntimeNodeJS10dX = Runtime("nodejs10.x") 47 // Deprecated: This runtime is now deprecated 48 RuntimeNodeJS12dX = Runtime("nodejs12.x") 49 // Deprecated: This runtime is now deprecated 50 RuntimeNodeJS14dX = Runtime("nodejs14.x") 51 // Deprecated: This runtime is now deprecated 52 RuntimeCustom = Runtime("provided") 53 // Deprecated: This runtime is now deprecated 54 RuntimePython2d7 = Runtime("python2.7") 55 // Deprecated: This runtime is now deprecated 56 RuntimePython3d6 = Runtime("python3.6") 57 // Deprecated: This runtime is now deprecated 58 RuntimePython3d7 = Runtime("python3.7") 59 // Deprecated: This runtime is now deprecated 60 RuntimeRuby2d5 = Runtime("ruby2.5") 61 // Deprecated: This runtime is now deprecated 62 RuntimeRuby2d7 = Runtime("ruby2.7") 63 ) 64 65 func (Runtime) ElementType() reflect.Type { 66 return reflect.TypeOf((*Runtime)(nil)).Elem() 67 } 68 69 func (e Runtime) ToRuntimeOutput() RuntimeOutput { 70 return pulumi.ToOutput(e).(RuntimeOutput) 71 } 72 73 func (e Runtime) ToRuntimeOutputWithContext(ctx context.Context) RuntimeOutput { 74 return pulumi.ToOutputWithContext(ctx, e).(RuntimeOutput) 75 } 76 77 func (e Runtime) ToRuntimePtrOutput() RuntimePtrOutput { 78 return e.ToRuntimePtrOutputWithContext(context.Background()) 79 } 80 81 func (e Runtime) ToRuntimePtrOutputWithContext(ctx context.Context) RuntimePtrOutput { 82 return Runtime(e).ToRuntimeOutputWithContext(ctx).ToRuntimePtrOutputWithContext(ctx) 83 } 84 85 func (e Runtime) ToStringOutput() pulumi.StringOutput { 86 return pulumi.ToOutput(pulumi.String(e)).(pulumi.StringOutput) 87 } 88 89 func (e Runtime) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { 90 return pulumi.ToOutputWithContext(ctx, pulumi.String(e)).(pulumi.StringOutput) 91 } 92 93 func (e Runtime) ToStringPtrOutput() pulumi.StringPtrOutput { 94 return pulumi.String(e).ToStringPtrOutputWithContext(context.Background()) 95 } 96 97 func (e Runtime) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { 98 return pulumi.String(e).ToStringOutputWithContext(ctx).ToStringPtrOutputWithContext(ctx) 99 } 100 101 type RuntimeOutput struct{ *pulumi.OutputState } 102 103 func (RuntimeOutput) ElementType() reflect.Type { 104 return reflect.TypeOf((*Runtime)(nil)).Elem() 105 } 106 107 func (o RuntimeOutput) ToRuntimeOutput() RuntimeOutput { 108 return o 109 } 110 111 func (o RuntimeOutput) ToRuntimeOutputWithContext(ctx context.Context) RuntimeOutput { 112 return o 113 } 114 115 func (o RuntimeOutput) ToRuntimePtrOutput() RuntimePtrOutput { 116 return o.ToRuntimePtrOutputWithContext(context.Background()) 117 } 118 119 func (o RuntimeOutput) ToRuntimePtrOutputWithContext(ctx context.Context) RuntimePtrOutput { 120 return o.ApplyTWithContext(ctx, func(_ context.Context, v Runtime) *Runtime { 121 return &v 122 }).(RuntimePtrOutput) 123 } 124 125 func (o RuntimeOutput) ToStringOutput() pulumi.StringOutput { 126 return o.ToStringOutputWithContext(context.Background()) 127 } 128 129 func (o RuntimeOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { 130 return o.ApplyTWithContext(ctx, func(_ context.Context, e Runtime) string { 131 return string(e) 132 }).(pulumi.StringOutput) 133 } 134 135 func (o RuntimeOutput) ToStringPtrOutput() pulumi.StringPtrOutput { 136 return o.ToStringPtrOutputWithContext(context.Background()) 137 } 138 139 func (o RuntimeOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { 140 return o.ApplyTWithContext(ctx, func(_ context.Context, e Runtime) *string { 141 v := string(e) 142 return &v 143 }).(pulumi.StringPtrOutput) 144 } 145 146 type RuntimePtrOutput struct{ *pulumi.OutputState } 147 148 func (RuntimePtrOutput) ElementType() reflect.Type { 149 return reflect.TypeOf((**Runtime)(nil)).Elem() 150 } 151 152 func (o RuntimePtrOutput) ToRuntimePtrOutput() RuntimePtrOutput { 153 return o 154 } 155 156 func (o RuntimePtrOutput) ToRuntimePtrOutputWithContext(ctx context.Context) RuntimePtrOutput { 157 return o 158 } 159 160 func (o RuntimePtrOutput) Elem() RuntimeOutput { 161 return o.ApplyT(func(v *Runtime) Runtime { 162 if v != nil { 163 return *v 164 } 165 var ret Runtime 166 return ret 167 }).(RuntimeOutput) 168 } 169 170 func (o RuntimePtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput { 171 return o.ToStringPtrOutputWithContext(context.Background()) 172 } 173 174 func (o RuntimePtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { 175 return o.ApplyTWithContext(ctx, func(_ context.Context, e *Runtime) *string { 176 if e == nil { 177 return nil 178 } 179 v := string(*e) 180 return &v 181 }).(pulumi.StringPtrOutput) 182 } 183 184 // RuntimeInput is an input type that accepts values of the Runtime enum 185 // A concrete instance of `RuntimeInput` can be one of the following: 186 // 187 // RuntimeDotnet6 188 // RuntimeDotnet7 189 // RuntimeDotnet8 190 // RuntimeJava11 191 // RuntimeJava17 192 // RuntimeJava21 193 // RuntimeJava8AL2 194 // RuntimeNodeJS16dX 195 // RuntimeNodeJS18dX 196 // RuntimeNodeJS20dX 197 // RuntimeCustomAL2 198 // RuntimeCustomAL2023 199 // RuntimePython3d10 200 // RuntimePython3d11 201 // RuntimePython3d12 202 // RuntimePython3d8 203 // RuntimePython3d9 204 // RuntimeRuby3d2 205 type RuntimeInput interface { 206 pulumi.Input 207 208 ToRuntimeOutput() RuntimeOutput 209 ToRuntimeOutputWithContext(context.Context) RuntimeOutput 210 } 211 212 var runtimePtrType = reflect.TypeOf((**Runtime)(nil)).Elem() 213 214 type RuntimePtrInput interface { 215 pulumi.Input 216 217 ToRuntimePtrOutput() RuntimePtrOutput 218 ToRuntimePtrOutputWithContext(context.Context) RuntimePtrOutput 219 } 220 221 type runtimePtr string 222 223 func RuntimePtr(v string) RuntimePtrInput { 224 return (*runtimePtr)(&v) 225 } 226 227 func (*runtimePtr) ElementType() reflect.Type { 228 return runtimePtrType 229 } 230 231 func (in *runtimePtr) ToRuntimePtrOutput() RuntimePtrOutput { 232 return pulumi.ToOutput(in).(RuntimePtrOutput) 233 } 234 235 func (in *runtimePtr) ToRuntimePtrOutputWithContext(ctx context.Context) RuntimePtrOutput { 236 return pulumi.ToOutputWithContext(ctx, in).(RuntimePtrOutput) 237 } 238 239 func init() { 240 pulumi.RegisterInputType(reflect.TypeOf((*RuntimeInput)(nil)).Elem(), Runtime("dotnet6")) 241 pulumi.RegisterInputType(reflect.TypeOf((*RuntimePtrInput)(nil)).Elem(), Runtime("dotnet6")) 242 pulumi.RegisterOutputType(RuntimeOutput{}) 243 pulumi.RegisterOutputType(RuntimePtrOutput{}) 244 }