generated from pulumi/pulumi-tf-provider-boilerplate
/
loadBalancer.go
578 lines (518 loc) · 21.5 KB
/
loadBalancer.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
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
// 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 loadbalancer
import (
"context"
"reflect"
"errors"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/raeumlich/pulumi-scaleway/sdk/go/scaleway/internal"
)
// Creates and manages Scaleway Load-Balancers.
// For more information, see [the documentation](https://www.scaleway.com/en/developers/api/load-balancer/zoned-api).
//
// ## Example Usage
//
// ### Basic
//
// <!--Start PulumiCodeChooser -->
// ```go
// package main
//
// import (
//
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
// "github.com/raeumlich/pulumi-scaleway/sdk/go/scaleway/loadbalancer"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// main, err := loadbalancer.NewIP(ctx, "main", &loadbalancer.IPArgs{
// Zone: pulumi.String("fr-par-1"),
// })
// if err != nil {
// return err
// }
// _, err = loadbalancer.NewLoadBalancer(ctx, "base", &loadbalancer.LoadBalancerArgs{
// IpId: main.ID(),
// Zone: main.Zone,
// Type: pulumi.String("LB-S"),
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
// <!--End PulumiCodeChooser -->
//
// ### Private LB
//
// <!--Start PulumiCodeChooser -->
// ```go
// package main
//
// import (
//
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
// "github.com/raeumlich/pulumi-scaleway/sdk/go/scaleway/loadbalancer"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// _, err := loadbalancer.NewLoadBalancer(ctx, "base", &loadbalancer.LoadBalancerArgs{
// IpId: pulumi.Any(scaleway_lb_ip.Main.Id),
// Zone: pulumi.Any(scaleway_lb_ip.Main.Zone),
// Type: pulumi.String("LB-S"),
// AssignFlexibleIp: pulumi.Bool(false),
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
// <!--End PulumiCodeChooser -->
//
// ## IP ID
//
// Since v1.15.0, `ipId` is a required field. This means that now a separate `loadbalancer.IP` is required.
// When importing, the IP needs to be imported as well as the LB.
// When upgrading to v1.15.0, you will need to create a new `loadbalancer.IP` resource and import it.
//
// For instance, if you had the following:
//
// <!--Start PulumiCodeChooser -->
// ```go
// package main
//
// import (
//
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
// "github.com/raeumlich/pulumi-scaleway/sdk/go/scaleway/loadbalancer"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// _, err := loadbalancer.NewLoadBalancer(ctx, "main", &loadbalancer.LoadBalancerArgs{
// Type: pulumi.String("LB-S"),
// Zone: pulumi.String("fr-par-1"),
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
// <!--End PulumiCodeChooser -->
//
// You will need to update it to:
//
// <!--Start PulumiCodeChooser -->
// ```go
// package main
//
// import (
//
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
// "github.com/raeumlich/pulumi-scaleway/sdk/go/scaleway/loadbalancer"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// mainIP, err := loadbalancer.NewIP(ctx, "mainIP", nil)
// if err != nil {
// return err
// }
// _, err = loadbalancer.NewLoadBalancer(ctx, "mainLoadBalancer", &loadbalancer.LoadBalancerArgs{
// IpId: mainIP.ID(),
// Zone: pulumi.String("fr-par-1"),
// Type: pulumi.String("LB-S"),
// ReleaseIp: pulumi.Bool(false),
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
// <!--End PulumiCodeChooser -->
//
// ## Import
//
// Load-Balancer can be imported using the `{zone}/{id}`, e.g.
//
// bash
//
// ```sh
// $ pulumi import scaleway:loadbalancer/loadBalancer:LoadBalancer main fr-par-1/11111111-1111-1111-1111-111111111111
// ```
//
// Be aware that you will also need to import the `scaleway_lb_ip` resource.
type LoadBalancer struct {
pulumi.CustomResourceState
// Defines whether to automatically assign a flexible public IP to the load-balancer.
AssignFlexibleIp pulumi.BoolPtrOutput `pulumi:"assignFlexibleIp"`
// The description of the load-balancer.
Description pulumi.StringPtrOutput `pulumi:"description"`
// The load-balance public IP Address
IpAddress pulumi.StringOutput `pulumi:"ipAddress"`
// The ID of the associated LB IP. See below.
//
// > **Important:** Updates to `ipId` will recreate the load-balancer.
IpId pulumi.StringPtrOutput `pulumi:"ipId"`
// The name of the load-balancer.
Name pulumi.StringOutput `pulumi:"name"`
// The organization ID the load-balancer is associated with.
OrganizationId pulumi.StringOutput `pulumi:"organizationId"`
// List of private network to connect with your load balancer
PrivateNetworks LoadBalancerPrivateNetworkArrayOutput `pulumi:"privateNetworks"`
// `projectId`) The ID of the project the load-balancer is associated with.
ProjectId pulumi.StringOutput `pulumi:"projectId"`
// The region of the resource
Region pulumi.StringOutput `pulumi:"region"`
// The releaseIp allow release the ip address associated with the load-balancers.
//
// Deprecated: The resource ip will be destroyed by it's own resource. Please set this to `false`
ReleaseIp pulumi.BoolPtrOutput `pulumi:"releaseIp"`
// Enforces minimal SSL version (in SSL/TLS offloading context). Please check [possible values](https://www.scaleway.com/en/developers/api/load-balancer/zoned-api/#path-load-balancer-create-a-load-balancer).
SslCompatibilityLevel pulumi.StringPtrOutput `pulumi:"sslCompatibilityLevel"`
// The tags associated with the load-balancers.
Tags pulumi.StringArrayOutput `pulumi:"tags"`
// The type of the load-balancer. Please check the migration section to upgrade the type.
Type pulumi.StringOutput `pulumi:"type"`
// `zone`) The zone of the load-balancer.
Zone pulumi.StringOutput `pulumi:"zone"`
}
// NewLoadBalancer registers a new resource with the given unique name, arguments, and options.
func NewLoadBalancer(ctx *pulumi.Context,
name string, args *LoadBalancerArgs, opts ...pulumi.ResourceOption) (*LoadBalancer, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.Type == nil {
return nil, errors.New("invalid value for required argument 'Type'")
}
opts = internal.PkgResourceDefaultOpts(opts)
var resource LoadBalancer
err := ctx.RegisterResource("scaleway:loadbalancer/loadBalancer:LoadBalancer", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetLoadBalancer gets an existing LoadBalancer 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 GetLoadBalancer(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *LoadBalancerState, opts ...pulumi.ResourceOption) (*LoadBalancer, error) {
var resource LoadBalancer
err := ctx.ReadResource("scaleway:loadbalancer/loadBalancer:LoadBalancer", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering LoadBalancer resources.
type loadBalancerState struct {
// Defines whether to automatically assign a flexible public IP to the load-balancer.
AssignFlexibleIp *bool `pulumi:"assignFlexibleIp"`
// The description of the load-balancer.
Description *string `pulumi:"description"`
// The load-balance public IP Address
IpAddress *string `pulumi:"ipAddress"`
// The ID of the associated LB IP. See below.
//
// > **Important:** Updates to `ipId` will recreate the load-balancer.
IpId *string `pulumi:"ipId"`
// The name of the load-balancer.
Name *string `pulumi:"name"`
// The organization ID the load-balancer is associated with.
OrganizationId *string `pulumi:"organizationId"`
// List of private network to connect with your load balancer
PrivateNetworks []LoadBalancerPrivateNetwork `pulumi:"privateNetworks"`
// `projectId`) The ID of the project the load-balancer is associated with.
ProjectId *string `pulumi:"projectId"`
// The region of the resource
Region *string `pulumi:"region"`
// The releaseIp allow release the ip address associated with the load-balancers.
//
// Deprecated: The resource ip will be destroyed by it's own resource. Please set this to `false`
ReleaseIp *bool `pulumi:"releaseIp"`
// Enforces minimal SSL version (in SSL/TLS offloading context). Please check [possible values](https://www.scaleway.com/en/developers/api/load-balancer/zoned-api/#path-load-balancer-create-a-load-balancer).
SslCompatibilityLevel *string `pulumi:"sslCompatibilityLevel"`
// The tags associated with the load-balancers.
Tags []string `pulumi:"tags"`
// The type of the load-balancer. Please check the migration section to upgrade the type.
Type *string `pulumi:"type"`
// `zone`) The zone of the load-balancer.
Zone *string `pulumi:"zone"`
}
type LoadBalancerState struct {
// Defines whether to automatically assign a flexible public IP to the load-balancer.
AssignFlexibleIp pulumi.BoolPtrInput
// The description of the load-balancer.
Description pulumi.StringPtrInput
// The load-balance public IP Address
IpAddress pulumi.StringPtrInput
// The ID of the associated LB IP. See below.
//
// > **Important:** Updates to `ipId` will recreate the load-balancer.
IpId pulumi.StringPtrInput
// The name of the load-balancer.
Name pulumi.StringPtrInput
// The organization ID the load-balancer is associated with.
OrganizationId pulumi.StringPtrInput
// List of private network to connect with your load balancer
PrivateNetworks LoadBalancerPrivateNetworkArrayInput
// `projectId`) The ID of the project the load-balancer is associated with.
ProjectId pulumi.StringPtrInput
// The region of the resource
Region pulumi.StringPtrInput
// The releaseIp allow release the ip address associated with the load-balancers.
//
// Deprecated: The resource ip will be destroyed by it's own resource. Please set this to `false`
ReleaseIp pulumi.BoolPtrInput
// Enforces minimal SSL version (in SSL/TLS offloading context). Please check [possible values](https://www.scaleway.com/en/developers/api/load-balancer/zoned-api/#path-load-balancer-create-a-load-balancer).
SslCompatibilityLevel pulumi.StringPtrInput
// The tags associated with the load-balancers.
Tags pulumi.StringArrayInput
// The type of the load-balancer. Please check the migration section to upgrade the type.
Type pulumi.StringPtrInput
// `zone`) The zone of the load-balancer.
Zone pulumi.StringPtrInput
}
func (LoadBalancerState) ElementType() reflect.Type {
return reflect.TypeOf((*loadBalancerState)(nil)).Elem()
}
type loadBalancerArgs struct {
// Defines whether to automatically assign a flexible public IP to the load-balancer.
AssignFlexibleIp *bool `pulumi:"assignFlexibleIp"`
// The description of the load-balancer.
Description *string `pulumi:"description"`
// The ID of the associated LB IP. See below.
//
// > **Important:** Updates to `ipId` will recreate the load-balancer.
IpId *string `pulumi:"ipId"`
// The name of the load-balancer.
Name *string `pulumi:"name"`
// List of private network to connect with your load balancer
PrivateNetworks []LoadBalancerPrivateNetwork `pulumi:"privateNetworks"`
// `projectId`) The ID of the project the load-balancer is associated with.
ProjectId *string `pulumi:"projectId"`
// The releaseIp allow release the ip address associated with the load-balancers.
//
// Deprecated: The resource ip will be destroyed by it's own resource. Please set this to `false`
ReleaseIp *bool `pulumi:"releaseIp"`
// Enforces minimal SSL version (in SSL/TLS offloading context). Please check [possible values](https://www.scaleway.com/en/developers/api/load-balancer/zoned-api/#path-load-balancer-create-a-load-balancer).
SslCompatibilityLevel *string `pulumi:"sslCompatibilityLevel"`
// The tags associated with the load-balancers.
Tags []string `pulumi:"tags"`
// The type of the load-balancer. Please check the migration section to upgrade the type.
Type string `pulumi:"type"`
// `zone`) The zone of the load-balancer.
Zone *string `pulumi:"zone"`
}
// The set of arguments for constructing a LoadBalancer resource.
type LoadBalancerArgs struct {
// Defines whether to automatically assign a flexible public IP to the load-balancer.
AssignFlexibleIp pulumi.BoolPtrInput
// The description of the load-balancer.
Description pulumi.StringPtrInput
// The ID of the associated LB IP. See below.
//
// > **Important:** Updates to `ipId` will recreate the load-balancer.
IpId pulumi.StringPtrInput
// The name of the load-balancer.
Name pulumi.StringPtrInput
// List of private network to connect with your load balancer
PrivateNetworks LoadBalancerPrivateNetworkArrayInput
// `projectId`) The ID of the project the load-balancer is associated with.
ProjectId pulumi.StringPtrInput
// The releaseIp allow release the ip address associated with the load-balancers.
//
// Deprecated: The resource ip will be destroyed by it's own resource. Please set this to `false`
ReleaseIp pulumi.BoolPtrInput
// Enforces minimal SSL version (in SSL/TLS offloading context). Please check [possible values](https://www.scaleway.com/en/developers/api/load-balancer/zoned-api/#path-load-balancer-create-a-load-balancer).
SslCompatibilityLevel pulumi.StringPtrInput
// The tags associated with the load-balancers.
Tags pulumi.StringArrayInput
// The type of the load-balancer. Please check the migration section to upgrade the type.
Type pulumi.StringInput
// `zone`) The zone of the load-balancer.
Zone pulumi.StringPtrInput
}
func (LoadBalancerArgs) ElementType() reflect.Type {
return reflect.TypeOf((*loadBalancerArgs)(nil)).Elem()
}
type LoadBalancerInput interface {
pulumi.Input
ToLoadBalancerOutput() LoadBalancerOutput
ToLoadBalancerOutputWithContext(ctx context.Context) LoadBalancerOutput
}
func (*LoadBalancer) ElementType() reflect.Type {
return reflect.TypeOf((**LoadBalancer)(nil)).Elem()
}
func (i *LoadBalancer) ToLoadBalancerOutput() LoadBalancerOutput {
return i.ToLoadBalancerOutputWithContext(context.Background())
}
func (i *LoadBalancer) ToLoadBalancerOutputWithContext(ctx context.Context) LoadBalancerOutput {
return pulumi.ToOutputWithContext(ctx, i).(LoadBalancerOutput)
}
// LoadBalancerArrayInput is an input type that accepts LoadBalancerArray and LoadBalancerArrayOutput values.
// You can construct a concrete instance of `LoadBalancerArrayInput` via:
//
// LoadBalancerArray{ LoadBalancerArgs{...} }
type LoadBalancerArrayInput interface {
pulumi.Input
ToLoadBalancerArrayOutput() LoadBalancerArrayOutput
ToLoadBalancerArrayOutputWithContext(context.Context) LoadBalancerArrayOutput
}
type LoadBalancerArray []LoadBalancerInput
func (LoadBalancerArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*LoadBalancer)(nil)).Elem()
}
func (i LoadBalancerArray) ToLoadBalancerArrayOutput() LoadBalancerArrayOutput {
return i.ToLoadBalancerArrayOutputWithContext(context.Background())
}
func (i LoadBalancerArray) ToLoadBalancerArrayOutputWithContext(ctx context.Context) LoadBalancerArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(LoadBalancerArrayOutput)
}
// LoadBalancerMapInput is an input type that accepts LoadBalancerMap and LoadBalancerMapOutput values.
// You can construct a concrete instance of `LoadBalancerMapInput` via:
//
// LoadBalancerMap{ "key": LoadBalancerArgs{...} }
type LoadBalancerMapInput interface {
pulumi.Input
ToLoadBalancerMapOutput() LoadBalancerMapOutput
ToLoadBalancerMapOutputWithContext(context.Context) LoadBalancerMapOutput
}
type LoadBalancerMap map[string]LoadBalancerInput
func (LoadBalancerMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*LoadBalancer)(nil)).Elem()
}
func (i LoadBalancerMap) ToLoadBalancerMapOutput() LoadBalancerMapOutput {
return i.ToLoadBalancerMapOutputWithContext(context.Background())
}
func (i LoadBalancerMap) ToLoadBalancerMapOutputWithContext(ctx context.Context) LoadBalancerMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(LoadBalancerMapOutput)
}
type LoadBalancerOutput struct{ *pulumi.OutputState }
func (LoadBalancerOutput) ElementType() reflect.Type {
return reflect.TypeOf((**LoadBalancer)(nil)).Elem()
}
func (o LoadBalancerOutput) ToLoadBalancerOutput() LoadBalancerOutput {
return o
}
func (o LoadBalancerOutput) ToLoadBalancerOutputWithContext(ctx context.Context) LoadBalancerOutput {
return o
}
// Defines whether to automatically assign a flexible public IP to the load-balancer.
func (o LoadBalancerOutput) AssignFlexibleIp() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *LoadBalancer) pulumi.BoolPtrOutput { return v.AssignFlexibleIp }).(pulumi.BoolPtrOutput)
}
// The description of the load-balancer.
func (o LoadBalancerOutput) Description() pulumi.StringPtrOutput {
return o.ApplyT(func(v *LoadBalancer) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput)
}
// The load-balance public IP Address
func (o LoadBalancerOutput) IpAddress() pulumi.StringOutput {
return o.ApplyT(func(v *LoadBalancer) pulumi.StringOutput { return v.IpAddress }).(pulumi.StringOutput)
}
// The ID of the associated LB IP. See below.
//
// > **Important:** Updates to `ipId` will recreate the load-balancer.
func (o LoadBalancerOutput) IpId() pulumi.StringPtrOutput {
return o.ApplyT(func(v *LoadBalancer) pulumi.StringPtrOutput { return v.IpId }).(pulumi.StringPtrOutput)
}
// The name of the load-balancer.
func (o LoadBalancerOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v *LoadBalancer) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)
}
// The organization ID the load-balancer is associated with.
func (o LoadBalancerOutput) OrganizationId() pulumi.StringOutput {
return o.ApplyT(func(v *LoadBalancer) pulumi.StringOutput { return v.OrganizationId }).(pulumi.StringOutput)
}
// List of private network to connect with your load balancer
func (o LoadBalancerOutput) PrivateNetworks() LoadBalancerPrivateNetworkArrayOutput {
return o.ApplyT(func(v *LoadBalancer) LoadBalancerPrivateNetworkArrayOutput { return v.PrivateNetworks }).(LoadBalancerPrivateNetworkArrayOutput)
}
// `projectId`) The ID of the project the load-balancer is associated with.
func (o LoadBalancerOutput) ProjectId() pulumi.StringOutput {
return o.ApplyT(func(v *LoadBalancer) pulumi.StringOutput { return v.ProjectId }).(pulumi.StringOutput)
}
// The region of the resource
func (o LoadBalancerOutput) Region() pulumi.StringOutput {
return o.ApplyT(func(v *LoadBalancer) pulumi.StringOutput { return v.Region }).(pulumi.StringOutput)
}
// The releaseIp allow release the ip address associated with the load-balancers.
//
// Deprecated: The resource ip will be destroyed by it's own resource. Please set this to `false`
func (o LoadBalancerOutput) ReleaseIp() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *LoadBalancer) pulumi.BoolPtrOutput { return v.ReleaseIp }).(pulumi.BoolPtrOutput)
}
// Enforces minimal SSL version (in SSL/TLS offloading context). Please check [possible values](https://www.scaleway.com/en/developers/api/load-balancer/zoned-api/#path-load-balancer-create-a-load-balancer).
func (o LoadBalancerOutput) SslCompatibilityLevel() pulumi.StringPtrOutput {
return o.ApplyT(func(v *LoadBalancer) pulumi.StringPtrOutput { return v.SslCompatibilityLevel }).(pulumi.StringPtrOutput)
}
// The tags associated with the load-balancers.
func (o LoadBalancerOutput) Tags() pulumi.StringArrayOutput {
return o.ApplyT(func(v *LoadBalancer) pulumi.StringArrayOutput { return v.Tags }).(pulumi.StringArrayOutput)
}
// The type of the load-balancer. Please check the migration section to upgrade the type.
func (o LoadBalancerOutput) Type() pulumi.StringOutput {
return o.ApplyT(func(v *LoadBalancer) pulumi.StringOutput { return v.Type }).(pulumi.StringOutput)
}
// `zone`) The zone of the load-balancer.
func (o LoadBalancerOutput) Zone() pulumi.StringOutput {
return o.ApplyT(func(v *LoadBalancer) pulumi.StringOutput { return v.Zone }).(pulumi.StringOutput)
}
type LoadBalancerArrayOutput struct{ *pulumi.OutputState }
func (LoadBalancerArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*LoadBalancer)(nil)).Elem()
}
func (o LoadBalancerArrayOutput) ToLoadBalancerArrayOutput() LoadBalancerArrayOutput {
return o
}
func (o LoadBalancerArrayOutput) ToLoadBalancerArrayOutputWithContext(ctx context.Context) LoadBalancerArrayOutput {
return o
}
func (o LoadBalancerArrayOutput) Index(i pulumi.IntInput) LoadBalancerOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *LoadBalancer {
return vs[0].([]*LoadBalancer)[vs[1].(int)]
}).(LoadBalancerOutput)
}
type LoadBalancerMapOutput struct{ *pulumi.OutputState }
func (LoadBalancerMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*LoadBalancer)(nil)).Elem()
}
func (o LoadBalancerMapOutput) ToLoadBalancerMapOutput() LoadBalancerMapOutput {
return o
}
func (o LoadBalancerMapOutput) ToLoadBalancerMapOutputWithContext(ctx context.Context) LoadBalancerMapOutput {
return o
}
func (o LoadBalancerMapOutput) MapIndex(k pulumi.StringInput) LoadBalancerOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *LoadBalancer {
return vs[0].(map[string]*LoadBalancer)[vs[1].(string)]
}).(LoadBalancerOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*LoadBalancerInput)(nil)).Elem(), &LoadBalancer{})
pulumi.RegisterInputType(reflect.TypeOf((*LoadBalancerArrayInput)(nil)).Elem(), LoadBalancerArray{})
pulumi.RegisterInputType(reflect.TypeOf((*LoadBalancerMapInput)(nil)).Elem(), LoadBalancerMap{})
pulumi.RegisterOutputType(LoadBalancerOutput{})
pulumi.RegisterOutputType(LoadBalancerArrayOutput{})
pulumi.RegisterOutputType(LoadBalancerMapOutput{})
}