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