-
Notifications
You must be signed in to change notification settings - Fork 50
/
environment.go
467 lines (408 loc) · 21.6 KB
/
environment.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
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
// 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 appservice
import (
"context"
"reflect"
"github.com/pkg/errors"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Manages an App Service Environment.
//
// ## Example Usage
//
// ```go
// package main
//
// import (
// "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/appservice"
// "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
// "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/network"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
// Location: pulumi.String("West Europe"),
// })
// if err != nil {
// return err
// }
// exampleVirtualNetwork, err := network.NewVirtualNetwork(ctx, "exampleVirtualNetwork", &network.VirtualNetworkArgs{
// Location: exampleResourceGroup.Location,
// ResourceGroupName: exampleResourceGroup.Name,
// AddressSpaces: pulumi.StringArray{
// pulumi.String("10.0.0.0/16"),
// },
// })
// if err != nil {
// return err
// }
// ase, err := network.NewSubnet(ctx, "ase", &network.SubnetArgs{
// ResourceGroupName: exampleResourceGroup.Name,
// VirtualNetworkName: exampleVirtualNetwork.Name,
// AddressPrefixes: pulumi.StringArray{
// pulumi.String("10.0.1.0/24"),
// },
// })
// if err != nil {
// return err
// }
// _, err = network.NewSubnet(ctx, "gateway", &network.SubnetArgs{
// ResourceGroupName: exampleResourceGroup.Name,
// VirtualNetworkName: exampleVirtualNetwork.Name,
// AddressPrefixes: pulumi.StringArray{
// pulumi.String("10.0.2.0/24"),
// },
// })
// if err != nil {
// return err
// }
// _, err = appservice.NewEnvironment(ctx, "exampleEnvironment", &appservice.EnvironmentArgs{
// ResourceGroupName: exampleResourceGroup.Name,
// SubnetId: ase.ID(),
// PricingTier: pulumi.String("I2"),
// FrontEndScaleFactor: pulumi.Int(10),
// InternalLoadBalancingMode: pulumi.String("Web, Publishing"),
// AllowedUserIpCidrs: pulumi.StringArray{
// pulumi.String("11.22.33.44/32"),
// pulumi.String("55.66.77.0/24"),
// },
// ClusterSettings: appservice.EnvironmentClusterSettingArray{
// &appservice.EnvironmentClusterSettingArgs{
// Name: pulumi.String("DisableTls1.0"),
// Value: pulumi.String("1"),
// },
// },
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
// ```
//
// ## Import
//
// The App Service Environment can be imported using the `resource id`, e.g.
//
// ```sh
// $ pulumi import azure:appservice/environment:Environment myAppServiceEnv /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Web/hostingEnvironments/myAppServiceEnv
// ```
type Environment struct {
pulumi.CustomResourceState
// Allowed user added IP ranges on the ASE database. Use the addresses you want to set as the explicit egress address ranges.
AllowedUserIpCidrs pulumi.StringArrayOutput `pulumi:"allowedUserIpCidrs"`
// Zero or more `clusterSetting` blocks as defined below.
ClusterSettings EnvironmentClusterSettingArrayOutput `pulumi:"clusterSettings"`
// Scale factor for front end instances. Possible values are between `5` and `15`. Defaults to `15`.
FrontEndScaleFactor pulumi.IntPtrOutput `pulumi:"frontEndScaleFactor"`
// IP address of internal load balancer of the App Service Environment.
InternalIpAddress pulumi.StringOutput `pulumi:"internalIpAddress"`
// Specifies which endpoints to serve internally in the Virtual Network for the App Service Environment. Possible values are `None`, `Web`, `Publishing` and combined value `"Web, Publishing"`. Defaults to `None`.
InternalLoadBalancingMode pulumi.StringPtrOutput `pulumi:"internalLoadBalancingMode"`
// The location where the App Service Environment exists.
Location pulumi.StringOutput `pulumi:"location"`
// The name of the App Service Environment. Changing this forces a new resource to be created.
Name pulumi.StringOutput `pulumi:"name"`
// List of outbound IP addresses of the App Service Environment.
OutboundIpAddresses pulumi.StringArrayOutput `pulumi:"outboundIpAddresses"`
// Pricing tier for the front end instances. Possible values are `I1`, `I2` and `I3`. Defaults to `I1`.
PricingTier pulumi.StringPtrOutput `pulumi:"pricingTier"`
// The name of the Resource Group where the App Service Environment exists. Defaults to the Resource Group of the Subnet (specified by `subnetId`).
ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
// IP address of service endpoint of the App Service Environment.
ServiceIpAddress pulumi.StringOutput `pulumi:"serviceIpAddress"`
// The ID of the Subnet which the App Service Environment should be connected to. Changing this forces a new resource to be created.
SubnetId pulumi.StringOutput `pulumi:"subnetId"`
// A mapping of tags to assign to the resource. Changing this forces a new resource to be created.
Tags pulumi.StringMapOutput `pulumi:"tags"`
}
// NewEnvironment registers a new resource with the given unique name, arguments, and options.
func NewEnvironment(ctx *pulumi.Context,
name string, args *EnvironmentArgs, opts ...pulumi.ResourceOption) (*Environment, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.ResourceGroupName == nil {
return nil, errors.New("invalid value for required argument 'ResourceGroupName'")
}
if args.SubnetId == nil {
return nil, errors.New("invalid value for required argument 'SubnetId'")
}
var resource Environment
err := ctx.RegisterResource("azure:appservice/environment:Environment", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetEnvironment gets an existing Environment resource's state with the given name, ID, and optional
// state properties that are used to uniquely qualify the lookup (nil if not required).
func GetEnvironment(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *EnvironmentState, opts ...pulumi.ResourceOption) (*Environment, error) {
var resource Environment
err := ctx.ReadResource("azure:appservice/environment:Environment", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering Environment resources.
type environmentState struct {
// Allowed user added IP ranges on the ASE database. Use the addresses you want to set as the explicit egress address ranges.
AllowedUserIpCidrs []string `pulumi:"allowedUserIpCidrs"`
// Zero or more `clusterSetting` blocks as defined below.
ClusterSettings []EnvironmentClusterSetting `pulumi:"clusterSettings"`
// Scale factor for front end instances. Possible values are between `5` and `15`. Defaults to `15`.
FrontEndScaleFactor *int `pulumi:"frontEndScaleFactor"`
// IP address of internal load balancer of the App Service Environment.
InternalIpAddress *string `pulumi:"internalIpAddress"`
// Specifies which endpoints to serve internally in the Virtual Network for the App Service Environment. Possible values are `None`, `Web`, `Publishing` and combined value `"Web, Publishing"`. Defaults to `None`.
InternalLoadBalancingMode *string `pulumi:"internalLoadBalancingMode"`
// The location where the App Service Environment exists.
Location *string `pulumi:"location"`
// The name of the App Service Environment. Changing this forces a new resource to be created.
Name *string `pulumi:"name"`
// List of outbound IP addresses of the App Service Environment.
OutboundIpAddresses []string `pulumi:"outboundIpAddresses"`
// Pricing tier for the front end instances. Possible values are `I1`, `I2` and `I3`. Defaults to `I1`.
PricingTier *string `pulumi:"pricingTier"`
// The name of the Resource Group where the App Service Environment exists. Defaults to the Resource Group of the Subnet (specified by `subnetId`).
ResourceGroupName *string `pulumi:"resourceGroupName"`
// IP address of service endpoint of the App Service Environment.
ServiceIpAddress *string `pulumi:"serviceIpAddress"`
// The ID of the Subnet which the App Service Environment should be connected to. Changing this forces a new resource to be created.
SubnetId *string `pulumi:"subnetId"`
// A mapping of tags to assign to the resource. Changing this forces a new resource to be created.
Tags map[string]string `pulumi:"tags"`
}
type EnvironmentState struct {
// Allowed user added IP ranges on the ASE database. Use the addresses you want to set as the explicit egress address ranges.
AllowedUserIpCidrs pulumi.StringArrayInput
// Zero or more `clusterSetting` blocks as defined below.
ClusterSettings EnvironmentClusterSettingArrayInput
// Scale factor for front end instances. Possible values are between `5` and `15`. Defaults to `15`.
FrontEndScaleFactor pulumi.IntPtrInput
// IP address of internal load balancer of the App Service Environment.
InternalIpAddress pulumi.StringPtrInput
// Specifies which endpoints to serve internally in the Virtual Network for the App Service Environment. Possible values are `None`, `Web`, `Publishing` and combined value `"Web, Publishing"`. Defaults to `None`.
InternalLoadBalancingMode pulumi.StringPtrInput
// The location where the App Service Environment exists.
Location pulumi.StringPtrInput
// The name of the App Service Environment. Changing this forces a new resource to be created.
Name pulumi.StringPtrInput
// List of outbound IP addresses of the App Service Environment.
OutboundIpAddresses pulumi.StringArrayInput
// Pricing tier for the front end instances. Possible values are `I1`, `I2` and `I3`. Defaults to `I1`.
PricingTier pulumi.StringPtrInput
// The name of the Resource Group where the App Service Environment exists. Defaults to the Resource Group of the Subnet (specified by `subnetId`).
ResourceGroupName pulumi.StringPtrInput
// IP address of service endpoint of the App Service Environment.
ServiceIpAddress pulumi.StringPtrInput
// The ID of the Subnet which the App Service Environment should be connected to. Changing this forces a new resource to be created.
SubnetId pulumi.StringPtrInput
// A mapping of tags to assign to the resource. Changing this forces a new resource to be created.
Tags pulumi.StringMapInput
}
func (EnvironmentState) ElementType() reflect.Type {
return reflect.TypeOf((*environmentState)(nil)).Elem()
}
type environmentArgs struct {
// Allowed user added IP ranges on the ASE database. Use the addresses you want to set as the explicit egress address ranges.
AllowedUserIpCidrs []string `pulumi:"allowedUserIpCidrs"`
// Zero or more `clusterSetting` blocks as defined below.
ClusterSettings []EnvironmentClusterSetting `pulumi:"clusterSettings"`
// Scale factor for front end instances. Possible values are between `5` and `15`. Defaults to `15`.
FrontEndScaleFactor *int `pulumi:"frontEndScaleFactor"`
// Specifies which endpoints to serve internally in the Virtual Network for the App Service Environment. Possible values are `None`, `Web`, `Publishing` and combined value `"Web, Publishing"`. Defaults to `None`.
InternalLoadBalancingMode *string `pulumi:"internalLoadBalancingMode"`
// The name of the App Service Environment. Changing this forces a new resource to be created.
Name *string `pulumi:"name"`
// Pricing tier for the front end instances. Possible values are `I1`, `I2` and `I3`. Defaults to `I1`.
PricingTier *string `pulumi:"pricingTier"`
// The name of the Resource Group where the App Service Environment exists. Defaults to the Resource Group of the Subnet (specified by `subnetId`).
ResourceGroupName string `pulumi:"resourceGroupName"`
// The ID of the Subnet which the App Service Environment should be connected to. Changing this forces a new resource to be created.
SubnetId string `pulumi:"subnetId"`
// A mapping of tags to assign to the resource. Changing this forces a new resource to be created.
Tags map[string]string `pulumi:"tags"`
}
// The set of arguments for constructing a Environment resource.
type EnvironmentArgs struct {
// Allowed user added IP ranges on the ASE database. Use the addresses you want to set as the explicit egress address ranges.
AllowedUserIpCidrs pulumi.StringArrayInput
// Zero or more `clusterSetting` blocks as defined below.
ClusterSettings EnvironmentClusterSettingArrayInput
// Scale factor for front end instances. Possible values are between `5` and `15`. Defaults to `15`.
FrontEndScaleFactor pulumi.IntPtrInput
// Specifies which endpoints to serve internally in the Virtual Network for the App Service Environment. Possible values are `None`, `Web`, `Publishing` and combined value `"Web, Publishing"`. Defaults to `None`.
InternalLoadBalancingMode pulumi.StringPtrInput
// The name of the App Service Environment. Changing this forces a new resource to be created.
Name pulumi.StringPtrInput
// Pricing tier for the front end instances. Possible values are `I1`, `I2` and `I3`. Defaults to `I1`.
PricingTier pulumi.StringPtrInput
// The name of the Resource Group where the App Service Environment exists. Defaults to the Resource Group of the Subnet (specified by `subnetId`).
ResourceGroupName pulumi.StringInput
// The ID of the Subnet which the App Service Environment should be connected to. Changing this forces a new resource to be created.
SubnetId pulumi.StringInput
// A mapping of tags to assign to the resource. Changing this forces a new resource to be created.
Tags pulumi.StringMapInput
}
func (EnvironmentArgs) ElementType() reflect.Type {
return reflect.TypeOf((*environmentArgs)(nil)).Elem()
}
type EnvironmentInput interface {
pulumi.Input
ToEnvironmentOutput() EnvironmentOutput
ToEnvironmentOutputWithContext(ctx context.Context) EnvironmentOutput
}
func (*Environment) ElementType() reflect.Type {
return reflect.TypeOf((**Environment)(nil)).Elem()
}
func (i *Environment) ToEnvironmentOutput() EnvironmentOutput {
return i.ToEnvironmentOutputWithContext(context.Background())
}
func (i *Environment) ToEnvironmentOutputWithContext(ctx context.Context) EnvironmentOutput {
return pulumi.ToOutputWithContext(ctx, i).(EnvironmentOutput)
}
// EnvironmentArrayInput is an input type that accepts EnvironmentArray and EnvironmentArrayOutput values.
// You can construct a concrete instance of `EnvironmentArrayInput` via:
//
// EnvironmentArray{ EnvironmentArgs{...} }
type EnvironmentArrayInput interface {
pulumi.Input
ToEnvironmentArrayOutput() EnvironmentArrayOutput
ToEnvironmentArrayOutputWithContext(context.Context) EnvironmentArrayOutput
}
type EnvironmentArray []EnvironmentInput
func (EnvironmentArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*Environment)(nil)).Elem()
}
func (i EnvironmentArray) ToEnvironmentArrayOutput() EnvironmentArrayOutput {
return i.ToEnvironmentArrayOutputWithContext(context.Background())
}
func (i EnvironmentArray) ToEnvironmentArrayOutputWithContext(ctx context.Context) EnvironmentArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(EnvironmentArrayOutput)
}
// EnvironmentMapInput is an input type that accepts EnvironmentMap and EnvironmentMapOutput values.
// You can construct a concrete instance of `EnvironmentMapInput` via:
//
// EnvironmentMap{ "key": EnvironmentArgs{...} }
type EnvironmentMapInput interface {
pulumi.Input
ToEnvironmentMapOutput() EnvironmentMapOutput
ToEnvironmentMapOutputWithContext(context.Context) EnvironmentMapOutput
}
type EnvironmentMap map[string]EnvironmentInput
func (EnvironmentMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*Environment)(nil)).Elem()
}
func (i EnvironmentMap) ToEnvironmentMapOutput() EnvironmentMapOutput {
return i.ToEnvironmentMapOutputWithContext(context.Background())
}
func (i EnvironmentMap) ToEnvironmentMapOutputWithContext(ctx context.Context) EnvironmentMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(EnvironmentMapOutput)
}
type EnvironmentOutput struct{ *pulumi.OutputState }
func (EnvironmentOutput) ElementType() reflect.Type {
return reflect.TypeOf((**Environment)(nil)).Elem()
}
func (o EnvironmentOutput) ToEnvironmentOutput() EnvironmentOutput {
return o
}
func (o EnvironmentOutput) ToEnvironmentOutputWithContext(ctx context.Context) EnvironmentOutput {
return o
}
// Allowed user added IP ranges on the ASE database. Use the addresses you want to set as the explicit egress address ranges.
func (o EnvironmentOutput) AllowedUserIpCidrs() pulumi.StringArrayOutput {
return o.ApplyT(func(v *Environment) pulumi.StringArrayOutput { return v.AllowedUserIpCidrs }).(pulumi.StringArrayOutput)
}
// Zero or more `clusterSetting` blocks as defined below.
func (o EnvironmentOutput) ClusterSettings() EnvironmentClusterSettingArrayOutput {
return o.ApplyT(func(v *Environment) EnvironmentClusterSettingArrayOutput { return v.ClusterSettings }).(EnvironmentClusterSettingArrayOutput)
}
// Scale factor for front end instances. Possible values are between `5` and `15`. Defaults to `15`.
func (o EnvironmentOutput) FrontEndScaleFactor() pulumi.IntPtrOutput {
return o.ApplyT(func(v *Environment) pulumi.IntPtrOutput { return v.FrontEndScaleFactor }).(pulumi.IntPtrOutput)
}
// IP address of internal load balancer of the App Service Environment.
func (o EnvironmentOutput) InternalIpAddress() pulumi.StringOutput {
return o.ApplyT(func(v *Environment) pulumi.StringOutput { return v.InternalIpAddress }).(pulumi.StringOutput)
}
// Specifies which endpoints to serve internally in the Virtual Network for the App Service Environment. Possible values are `None`, `Web`, `Publishing` and combined value `"Web, Publishing"`. Defaults to `None`.
func (o EnvironmentOutput) InternalLoadBalancingMode() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Environment) pulumi.StringPtrOutput { return v.InternalLoadBalancingMode }).(pulumi.StringPtrOutput)
}
// The location where the App Service Environment exists.
func (o EnvironmentOutput) Location() pulumi.StringOutput {
return o.ApplyT(func(v *Environment) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput)
}
// The name of the App Service Environment. Changing this forces a new resource to be created.
func (o EnvironmentOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v *Environment) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)
}
// List of outbound IP addresses of the App Service Environment.
func (o EnvironmentOutput) OutboundIpAddresses() pulumi.StringArrayOutput {
return o.ApplyT(func(v *Environment) pulumi.StringArrayOutput { return v.OutboundIpAddresses }).(pulumi.StringArrayOutput)
}
// Pricing tier for the front end instances. Possible values are `I1`, `I2` and `I3`. Defaults to `I1`.
func (o EnvironmentOutput) PricingTier() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Environment) pulumi.StringPtrOutput { return v.PricingTier }).(pulumi.StringPtrOutput)
}
// The name of the Resource Group where the App Service Environment exists. Defaults to the Resource Group of the Subnet (specified by `subnetId`).
func (o EnvironmentOutput) ResourceGroupName() pulumi.StringOutput {
return o.ApplyT(func(v *Environment) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput)
}
// IP address of service endpoint of the App Service Environment.
func (o EnvironmentOutput) ServiceIpAddress() pulumi.StringOutput {
return o.ApplyT(func(v *Environment) pulumi.StringOutput { return v.ServiceIpAddress }).(pulumi.StringOutput)
}
// The ID of the Subnet which the App Service Environment should be connected to. Changing this forces a new resource to be created.
func (o EnvironmentOutput) SubnetId() pulumi.StringOutput {
return o.ApplyT(func(v *Environment) pulumi.StringOutput { return v.SubnetId }).(pulumi.StringOutput)
}
// A mapping of tags to assign to the resource. Changing this forces a new resource to be created.
func (o EnvironmentOutput) Tags() pulumi.StringMapOutput {
return o.ApplyT(func(v *Environment) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput)
}
type EnvironmentArrayOutput struct{ *pulumi.OutputState }
func (EnvironmentArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*Environment)(nil)).Elem()
}
func (o EnvironmentArrayOutput) ToEnvironmentArrayOutput() EnvironmentArrayOutput {
return o
}
func (o EnvironmentArrayOutput) ToEnvironmentArrayOutputWithContext(ctx context.Context) EnvironmentArrayOutput {
return o
}
func (o EnvironmentArrayOutput) Index(i pulumi.IntInput) EnvironmentOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *Environment {
return vs[0].([]*Environment)[vs[1].(int)]
}).(EnvironmentOutput)
}
type EnvironmentMapOutput struct{ *pulumi.OutputState }
func (EnvironmentMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*Environment)(nil)).Elem()
}
func (o EnvironmentMapOutput) ToEnvironmentMapOutput() EnvironmentMapOutput {
return o
}
func (o EnvironmentMapOutput) ToEnvironmentMapOutputWithContext(ctx context.Context) EnvironmentMapOutput {
return o
}
func (o EnvironmentMapOutput) MapIndex(k pulumi.StringInput) EnvironmentOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *Environment {
return vs[0].(map[string]*Environment)[vs[1].(string)]
}).(EnvironmentOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*EnvironmentInput)(nil)).Elem(), &Environment{})
pulumi.RegisterInputType(reflect.TypeOf((*EnvironmentArrayInput)(nil)).Elem(), EnvironmentArray{})
pulumi.RegisterInputType(reflect.TypeOf((*EnvironmentMapInput)(nil)).Elem(), EnvironmentMap{})
pulumi.RegisterOutputType(EnvironmentOutput{})
pulumi.RegisterOutputType(EnvironmentArrayOutput{})
pulumi.RegisterOutputType(EnvironmentMapOutput{})
}