-
Notifications
You must be signed in to change notification settings - Fork 50
/
frontdoor.go
556 lines (491 loc) · 26.1 KB
/
frontdoor.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
// 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 frontdoor
import (
"context"
"reflect"
"github.com/pkg/errors"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Manages an Azure Front Door instance.
//
// Azure Front Door Service is Microsoft's highly available and scalable web application acceleration platform and global HTTP(S) load balancer. It provides built-in DDoS protection and application layer security and caching. Front Door enables you to build applications that maximize and automate high-availability and performance for your end-users. Use Front Door with Azure services including Web/Mobile Apps, Cloud Services and Virtual Machines – or combine it with on-premises services for hybrid deployments and smooth cloud migration.
//
// Below are some of the key scenarios that Azure Front Door Service addresses:
//
// * Use Front Door to improve application scale and availability with instant multi-region failover
// * Use Front Door to improve application performance with SSL offload and routing requests to the fastest available application backend.
// * Use Front Door for application layer security and DDoS protection for your application.
//
// ## Example Usage
//
// ```go
// package main
//
// import (
// "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
// "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/frontdoor"
// "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
// }
// _, err = frontdoor.NewFrontdoor(ctx, "exampleFrontdoor", &frontdoor.FrontdoorArgs{
// ResourceGroupName: exampleResourceGroup.Name,
// RoutingRules: frontdoor.FrontdoorRoutingRuleArray{
// &frontdoor.FrontdoorRoutingRuleArgs{
// Name: pulumi.String("exampleRoutingRule1"),
// AcceptedProtocols: pulumi.StringArray{
// pulumi.String("Http"),
// pulumi.String("Https"),
// },
// PatternsToMatches: pulumi.StringArray{
// pulumi.String("/*"),
// },
// FrontendEndpoints: pulumi.StringArray{
// pulumi.String("exampleFrontendEndpoint1"),
// },
// ForwardingConfiguration: &frontdoor.FrontdoorRoutingRuleForwardingConfigurationArgs{
// ForwardingProtocol: pulumi.String("MatchRequest"),
// BackendPoolName: pulumi.String("exampleBackendBing"),
// },
// },
// },
// BackendPoolLoadBalancings: frontdoor.FrontdoorBackendPoolLoadBalancingArray{
// &frontdoor.FrontdoorBackendPoolLoadBalancingArgs{
// Name: pulumi.String("exampleLoadBalancingSettings1"),
// },
// },
// BackendPoolHealthProbes: frontdoor.FrontdoorBackendPoolHealthProbeArray{
// &frontdoor.FrontdoorBackendPoolHealthProbeArgs{
// Name: pulumi.String("exampleHealthProbeSetting1"),
// },
// },
// BackendPools: frontdoor.FrontdoorBackendPoolArray{
// &frontdoor.FrontdoorBackendPoolArgs{
// Name: pulumi.String("exampleBackendBing"),
// Backends: frontdoor.FrontdoorBackendPoolBackendArray{
// &frontdoor.FrontdoorBackendPoolBackendArgs{
// HostHeader: pulumi.String("www.bing.com"),
// Address: pulumi.String("www.bing.com"),
// HttpPort: pulumi.Int(80),
// HttpsPort: pulumi.Int(443),
// },
// },
// LoadBalancingName: pulumi.String("exampleLoadBalancingSettings1"),
// HealthProbeName: pulumi.String("exampleHealthProbeSetting1"),
// },
// },
// FrontendEndpoints: frontdoor.FrontdoorFrontendEndpointArray{
// &frontdoor.FrontdoorFrontendEndpointArgs{
// Name: pulumi.String("exampleFrontendEndpoint1"),
// HostName: pulumi.String("example-FrontDoor.azurefd.net"),
// },
// },
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
// ```
//
// ## Import
//
// Front Doors can be imported using the `resource id`, e.g.
//
// ```sh
// $ pulumi import azure:frontdoor/frontdoor:Frontdoor example /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/mygroup1/providers/Microsoft.Network/frontDoors/frontdoor1
// ```
type Frontdoor struct {
pulumi.CustomResourceState
// A `backendPoolHealthProbe` block as defined below.
BackendPoolHealthProbes FrontdoorBackendPoolHealthProbeArrayOutput `pulumi:"backendPoolHealthProbes"`
// A map/dictionary of Backend Pool Health Probe Names (key) to the Backend Pool Health Probe ID (value)
BackendPoolHealthProbesMap pulumi.StringMapOutput `pulumi:"backendPoolHealthProbesMap"`
// A map/dictionary of Backend Pool Load Balancing Setting Names (key) to the Backend Pool Load Balancing Setting ID (value)
BackendPoolLoadBalancingSettingsMap pulumi.StringMapOutput `pulumi:"backendPoolLoadBalancingSettingsMap"`
// A `backendPoolLoadBalancing` block as defined below.
BackendPoolLoadBalancings FrontdoorBackendPoolLoadBalancingArrayOutput `pulumi:"backendPoolLoadBalancings"`
BackendPoolSettings FrontdoorBackendPoolSettingArrayOutput `pulumi:"backendPoolSettings"`
// A `backendPool` block as defined below.
BackendPools FrontdoorBackendPoolArrayOutput `pulumi:"backendPools"`
// A map/dictionary of Backend Pool Names (key) to the Backend Pool ID (value)
BackendPoolsMap pulumi.StringMapOutput `pulumi:"backendPoolsMap"`
// The host that each frontendEndpoint must CNAME to.
Cname pulumi.StringOutput `pulumi:"cname"`
ExplicitResourceOrders FrontdoorExplicitResourceOrderArrayOutput `pulumi:"explicitResourceOrders"`
// A friendly name for the Front Door service.
FriendlyName pulumi.StringPtrOutput `pulumi:"friendlyName"`
// A `frontendEndpoint` block as defined below.
FrontendEndpoints FrontdoorFrontendEndpointArrayOutput `pulumi:"frontendEndpoints"`
// The names of the `frontendEndpoint` blocks within this resource to associate with this `routingRule`.
FrontendEndpointsMap pulumi.StringMapOutput `pulumi:"frontendEndpointsMap"`
// The unique ID of the Front Door which is embedded into the incoming headers `X-Azure-FDID` attribute and maybe used to filter traffic sent by the Front Door to your backend.
HeaderFrontdoorId pulumi.StringOutput `pulumi:"headerFrontdoorId"`
// Should the Front Door Load Balancer be Enabled? Defaults to `true`.
LoadBalancerEnabled pulumi.BoolPtrOutput `pulumi:"loadBalancerEnabled"`
// Specifies the name of the Front Door service. Must be globally unique. Changing this forces a new resource to be created.
Name pulumi.StringOutput `pulumi:"name"`
// Specifies the name of the Resource Group in which the Front Door service should exist. Changing this forces a new resource to be created.
ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
// A `routingRule` block as defined below.
RoutingRules FrontdoorRoutingRuleArrayOutput `pulumi:"routingRules"`
// A map/dictionary of Routing Rule Names (key) to the Routing Rule ID (value)
RoutingRulesMap pulumi.StringMapOutput `pulumi:"routingRulesMap"`
// A mapping of tags to assign to the resource.
Tags pulumi.StringMapOutput `pulumi:"tags"`
}
// NewFrontdoor registers a new resource with the given unique name, arguments, and options.
func NewFrontdoor(ctx *pulumi.Context,
name string, args *FrontdoorArgs, opts ...pulumi.ResourceOption) (*Frontdoor, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.BackendPoolHealthProbes == nil {
return nil, errors.New("invalid value for required argument 'BackendPoolHealthProbes'")
}
if args.BackendPoolLoadBalancings == nil {
return nil, errors.New("invalid value for required argument 'BackendPoolLoadBalancings'")
}
if args.BackendPools == nil {
return nil, errors.New("invalid value for required argument 'BackendPools'")
}
if args.FrontendEndpoints == nil {
return nil, errors.New("invalid value for required argument 'FrontendEndpoints'")
}
if args.ResourceGroupName == nil {
return nil, errors.New("invalid value for required argument 'ResourceGroupName'")
}
if args.RoutingRules == nil {
return nil, errors.New("invalid value for required argument 'RoutingRules'")
}
var resource Frontdoor
err := ctx.RegisterResource("azure:frontdoor/frontdoor:Frontdoor", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetFrontdoor gets an existing Frontdoor 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 GetFrontdoor(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *FrontdoorState, opts ...pulumi.ResourceOption) (*Frontdoor, error) {
var resource Frontdoor
err := ctx.ReadResource("azure:frontdoor/frontdoor:Frontdoor", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering Frontdoor resources.
type frontdoorState struct {
// A `backendPoolHealthProbe` block as defined below.
BackendPoolHealthProbes []FrontdoorBackendPoolHealthProbe `pulumi:"backendPoolHealthProbes"`
// A map/dictionary of Backend Pool Health Probe Names (key) to the Backend Pool Health Probe ID (value)
BackendPoolHealthProbesMap map[string]string `pulumi:"backendPoolHealthProbesMap"`
// A map/dictionary of Backend Pool Load Balancing Setting Names (key) to the Backend Pool Load Balancing Setting ID (value)
BackendPoolLoadBalancingSettingsMap map[string]string `pulumi:"backendPoolLoadBalancingSettingsMap"`
// A `backendPoolLoadBalancing` block as defined below.
BackendPoolLoadBalancings []FrontdoorBackendPoolLoadBalancing `pulumi:"backendPoolLoadBalancings"`
BackendPoolSettings []FrontdoorBackendPoolSetting `pulumi:"backendPoolSettings"`
// A `backendPool` block as defined below.
BackendPools []FrontdoorBackendPool `pulumi:"backendPools"`
// A map/dictionary of Backend Pool Names (key) to the Backend Pool ID (value)
BackendPoolsMap map[string]string `pulumi:"backendPoolsMap"`
// The host that each frontendEndpoint must CNAME to.
Cname *string `pulumi:"cname"`
ExplicitResourceOrders []FrontdoorExplicitResourceOrder `pulumi:"explicitResourceOrders"`
// A friendly name for the Front Door service.
FriendlyName *string `pulumi:"friendlyName"`
// A `frontendEndpoint` block as defined below.
FrontendEndpoints []FrontdoorFrontendEndpoint `pulumi:"frontendEndpoints"`
// The names of the `frontendEndpoint` blocks within this resource to associate with this `routingRule`.
FrontendEndpointsMap map[string]string `pulumi:"frontendEndpointsMap"`
// The unique ID of the Front Door which is embedded into the incoming headers `X-Azure-FDID` attribute and maybe used to filter traffic sent by the Front Door to your backend.
HeaderFrontdoorId *string `pulumi:"headerFrontdoorId"`
// Should the Front Door Load Balancer be Enabled? Defaults to `true`.
LoadBalancerEnabled *bool `pulumi:"loadBalancerEnabled"`
// Specifies the name of the Front Door service. Must be globally unique. Changing this forces a new resource to be created.
Name *string `pulumi:"name"`
// Specifies the name of the Resource Group in which the Front Door service should exist. Changing this forces a new resource to be created.
ResourceGroupName *string `pulumi:"resourceGroupName"`
// A `routingRule` block as defined below.
RoutingRules []FrontdoorRoutingRule `pulumi:"routingRules"`
// A map/dictionary of Routing Rule Names (key) to the Routing Rule ID (value)
RoutingRulesMap map[string]string `pulumi:"routingRulesMap"`
// A mapping of tags to assign to the resource.
Tags map[string]string `pulumi:"tags"`
}
type FrontdoorState struct {
// A `backendPoolHealthProbe` block as defined below.
BackendPoolHealthProbes FrontdoorBackendPoolHealthProbeArrayInput
// A map/dictionary of Backend Pool Health Probe Names (key) to the Backend Pool Health Probe ID (value)
BackendPoolHealthProbesMap pulumi.StringMapInput
// A map/dictionary of Backend Pool Load Balancing Setting Names (key) to the Backend Pool Load Balancing Setting ID (value)
BackendPoolLoadBalancingSettingsMap pulumi.StringMapInput
// A `backendPoolLoadBalancing` block as defined below.
BackendPoolLoadBalancings FrontdoorBackendPoolLoadBalancingArrayInput
BackendPoolSettings FrontdoorBackendPoolSettingArrayInput
// A `backendPool` block as defined below.
BackendPools FrontdoorBackendPoolArrayInput
// A map/dictionary of Backend Pool Names (key) to the Backend Pool ID (value)
BackendPoolsMap pulumi.StringMapInput
// The host that each frontendEndpoint must CNAME to.
Cname pulumi.StringPtrInput
ExplicitResourceOrders FrontdoorExplicitResourceOrderArrayInput
// A friendly name for the Front Door service.
FriendlyName pulumi.StringPtrInput
// A `frontendEndpoint` block as defined below.
FrontendEndpoints FrontdoorFrontendEndpointArrayInput
// The names of the `frontendEndpoint` blocks within this resource to associate with this `routingRule`.
FrontendEndpointsMap pulumi.StringMapInput
// The unique ID of the Front Door which is embedded into the incoming headers `X-Azure-FDID` attribute and maybe used to filter traffic sent by the Front Door to your backend.
HeaderFrontdoorId pulumi.StringPtrInput
// Should the Front Door Load Balancer be Enabled? Defaults to `true`.
LoadBalancerEnabled pulumi.BoolPtrInput
// Specifies the name of the Front Door service. Must be globally unique. Changing this forces a new resource to be created.
Name pulumi.StringPtrInput
// Specifies the name of the Resource Group in which the Front Door service should exist. Changing this forces a new resource to be created.
ResourceGroupName pulumi.StringPtrInput
// A `routingRule` block as defined below.
RoutingRules FrontdoorRoutingRuleArrayInput
// A map/dictionary of Routing Rule Names (key) to the Routing Rule ID (value)
RoutingRulesMap pulumi.StringMapInput
// A mapping of tags to assign to the resource.
Tags pulumi.StringMapInput
}
func (FrontdoorState) ElementType() reflect.Type {
return reflect.TypeOf((*frontdoorState)(nil)).Elem()
}
type frontdoorArgs struct {
// A `backendPoolHealthProbe` block as defined below.
BackendPoolHealthProbes []FrontdoorBackendPoolHealthProbe `pulumi:"backendPoolHealthProbes"`
// A `backendPoolLoadBalancing` block as defined below.
BackendPoolLoadBalancings []FrontdoorBackendPoolLoadBalancing `pulumi:"backendPoolLoadBalancings"`
BackendPoolSettings []FrontdoorBackendPoolSetting `pulumi:"backendPoolSettings"`
// A `backendPool` block as defined below.
BackendPools []FrontdoorBackendPool `pulumi:"backendPools"`
// A friendly name for the Front Door service.
FriendlyName *string `pulumi:"friendlyName"`
// A `frontendEndpoint` block as defined below.
FrontendEndpoints []FrontdoorFrontendEndpoint `pulumi:"frontendEndpoints"`
// Should the Front Door Load Balancer be Enabled? Defaults to `true`.
LoadBalancerEnabled *bool `pulumi:"loadBalancerEnabled"`
// Specifies the name of the Front Door service. Must be globally unique. Changing this forces a new resource to be created.
Name *string `pulumi:"name"`
// Specifies the name of the Resource Group in which the Front Door service should exist. Changing this forces a new resource to be created.
ResourceGroupName string `pulumi:"resourceGroupName"`
// A `routingRule` block as defined below.
RoutingRules []FrontdoorRoutingRule `pulumi:"routingRules"`
// A mapping of tags to assign to the resource.
Tags map[string]string `pulumi:"tags"`
}
// The set of arguments for constructing a Frontdoor resource.
type FrontdoorArgs struct {
// A `backendPoolHealthProbe` block as defined below.
BackendPoolHealthProbes FrontdoorBackendPoolHealthProbeArrayInput
// A `backendPoolLoadBalancing` block as defined below.
BackendPoolLoadBalancings FrontdoorBackendPoolLoadBalancingArrayInput
BackendPoolSettings FrontdoorBackendPoolSettingArrayInput
// A `backendPool` block as defined below.
BackendPools FrontdoorBackendPoolArrayInput
// A friendly name for the Front Door service.
FriendlyName pulumi.StringPtrInput
// A `frontendEndpoint` block as defined below.
FrontendEndpoints FrontdoorFrontendEndpointArrayInput
// Should the Front Door Load Balancer be Enabled? Defaults to `true`.
LoadBalancerEnabled pulumi.BoolPtrInput
// Specifies the name of the Front Door service. Must be globally unique. Changing this forces a new resource to be created.
Name pulumi.StringPtrInput
// Specifies the name of the Resource Group in which the Front Door service should exist. Changing this forces a new resource to be created.
ResourceGroupName pulumi.StringInput
// A `routingRule` block as defined below.
RoutingRules FrontdoorRoutingRuleArrayInput
// A mapping of tags to assign to the resource.
Tags pulumi.StringMapInput
}
func (FrontdoorArgs) ElementType() reflect.Type {
return reflect.TypeOf((*frontdoorArgs)(nil)).Elem()
}
type FrontdoorInput interface {
pulumi.Input
ToFrontdoorOutput() FrontdoorOutput
ToFrontdoorOutputWithContext(ctx context.Context) FrontdoorOutput
}
func (*Frontdoor) ElementType() reflect.Type {
return reflect.TypeOf((**Frontdoor)(nil)).Elem()
}
func (i *Frontdoor) ToFrontdoorOutput() FrontdoorOutput {
return i.ToFrontdoorOutputWithContext(context.Background())
}
func (i *Frontdoor) ToFrontdoorOutputWithContext(ctx context.Context) FrontdoorOutput {
return pulumi.ToOutputWithContext(ctx, i).(FrontdoorOutput)
}
// FrontdoorArrayInput is an input type that accepts FrontdoorArray and FrontdoorArrayOutput values.
// You can construct a concrete instance of `FrontdoorArrayInput` via:
//
// FrontdoorArray{ FrontdoorArgs{...} }
type FrontdoorArrayInput interface {
pulumi.Input
ToFrontdoorArrayOutput() FrontdoorArrayOutput
ToFrontdoorArrayOutputWithContext(context.Context) FrontdoorArrayOutput
}
type FrontdoorArray []FrontdoorInput
func (FrontdoorArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*Frontdoor)(nil)).Elem()
}
func (i FrontdoorArray) ToFrontdoorArrayOutput() FrontdoorArrayOutput {
return i.ToFrontdoorArrayOutputWithContext(context.Background())
}
func (i FrontdoorArray) ToFrontdoorArrayOutputWithContext(ctx context.Context) FrontdoorArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(FrontdoorArrayOutput)
}
// FrontdoorMapInput is an input type that accepts FrontdoorMap and FrontdoorMapOutput values.
// You can construct a concrete instance of `FrontdoorMapInput` via:
//
// FrontdoorMap{ "key": FrontdoorArgs{...} }
type FrontdoorMapInput interface {
pulumi.Input
ToFrontdoorMapOutput() FrontdoorMapOutput
ToFrontdoorMapOutputWithContext(context.Context) FrontdoorMapOutput
}
type FrontdoorMap map[string]FrontdoorInput
func (FrontdoorMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*Frontdoor)(nil)).Elem()
}
func (i FrontdoorMap) ToFrontdoorMapOutput() FrontdoorMapOutput {
return i.ToFrontdoorMapOutputWithContext(context.Background())
}
func (i FrontdoorMap) ToFrontdoorMapOutputWithContext(ctx context.Context) FrontdoorMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(FrontdoorMapOutput)
}
type FrontdoorOutput struct{ *pulumi.OutputState }
func (FrontdoorOutput) ElementType() reflect.Type {
return reflect.TypeOf((**Frontdoor)(nil)).Elem()
}
func (o FrontdoorOutput) ToFrontdoorOutput() FrontdoorOutput {
return o
}
func (o FrontdoorOutput) ToFrontdoorOutputWithContext(ctx context.Context) FrontdoorOutput {
return o
}
// A `backendPoolHealthProbe` block as defined below.
func (o FrontdoorOutput) BackendPoolHealthProbes() FrontdoorBackendPoolHealthProbeArrayOutput {
return o.ApplyT(func(v *Frontdoor) FrontdoorBackendPoolHealthProbeArrayOutput { return v.BackendPoolHealthProbes }).(FrontdoorBackendPoolHealthProbeArrayOutput)
}
// A map/dictionary of Backend Pool Health Probe Names (key) to the Backend Pool Health Probe ID (value)
func (o FrontdoorOutput) BackendPoolHealthProbesMap() pulumi.StringMapOutput {
return o.ApplyT(func(v *Frontdoor) pulumi.StringMapOutput { return v.BackendPoolHealthProbesMap }).(pulumi.StringMapOutput)
}
// A map/dictionary of Backend Pool Load Balancing Setting Names (key) to the Backend Pool Load Balancing Setting ID (value)
func (o FrontdoorOutput) BackendPoolLoadBalancingSettingsMap() pulumi.StringMapOutput {
return o.ApplyT(func(v *Frontdoor) pulumi.StringMapOutput { return v.BackendPoolLoadBalancingSettingsMap }).(pulumi.StringMapOutput)
}
// A `backendPoolLoadBalancing` block as defined below.
func (o FrontdoorOutput) BackendPoolLoadBalancings() FrontdoorBackendPoolLoadBalancingArrayOutput {
return o.ApplyT(func(v *Frontdoor) FrontdoorBackendPoolLoadBalancingArrayOutput { return v.BackendPoolLoadBalancings }).(FrontdoorBackendPoolLoadBalancingArrayOutput)
}
func (o FrontdoorOutput) BackendPoolSettings() FrontdoorBackendPoolSettingArrayOutput {
return o.ApplyT(func(v *Frontdoor) FrontdoorBackendPoolSettingArrayOutput { return v.BackendPoolSettings }).(FrontdoorBackendPoolSettingArrayOutput)
}
// A `backendPool` block as defined below.
func (o FrontdoorOutput) BackendPools() FrontdoorBackendPoolArrayOutput {
return o.ApplyT(func(v *Frontdoor) FrontdoorBackendPoolArrayOutput { return v.BackendPools }).(FrontdoorBackendPoolArrayOutput)
}
// A map/dictionary of Backend Pool Names (key) to the Backend Pool ID (value)
func (o FrontdoorOutput) BackendPoolsMap() pulumi.StringMapOutput {
return o.ApplyT(func(v *Frontdoor) pulumi.StringMapOutput { return v.BackendPoolsMap }).(pulumi.StringMapOutput)
}
// The host that each frontendEndpoint must CNAME to.
func (o FrontdoorOutput) Cname() pulumi.StringOutput {
return o.ApplyT(func(v *Frontdoor) pulumi.StringOutput { return v.Cname }).(pulumi.StringOutput)
}
func (o FrontdoorOutput) ExplicitResourceOrders() FrontdoorExplicitResourceOrderArrayOutput {
return o.ApplyT(func(v *Frontdoor) FrontdoorExplicitResourceOrderArrayOutput { return v.ExplicitResourceOrders }).(FrontdoorExplicitResourceOrderArrayOutput)
}
// A friendly name for the Front Door service.
func (o FrontdoorOutput) FriendlyName() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Frontdoor) pulumi.StringPtrOutput { return v.FriendlyName }).(pulumi.StringPtrOutput)
}
// A `frontendEndpoint` block as defined below.
func (o FrontdoorOutput) FrontendEndpoints() FrontdoorFrontendEndpointArrayOutput {
return o.ApplyT(func(v *Frontdoor) FrontdoorFrontendEndpointArrayOutput { return v.FrontendEndpoints }).(FrontdoorFrontendEndpointArrayOutput)
}
// The names of the `frontendEndpoint` blocks within this resource to associate with this `routingRule`.
func (o FrontdoorOutput) FrontendEndpointsMap() pulumi.StringMapOutput {
return o.ApplyT(func(v *Frontdoor) pulumi.StringMapOutput { return v.FrontendEndpointsMap }).(pulumi.StringMapOutput)
}
// The unique ID of the Front Door which is embedded into the incoming headers `X-Azure-FDID` attribute and maybe used to filter traffic sent by the Front Door to your backend.
func (o FrontdoorOutput) HeaderFrontdoorId() pulumi.StringOutput {
return o.ApplyT(func(v *Frontdoor) pulumi.StringOutput { return v.HeaderFrontdoorId }).(pulumi.StringOutput)
}
// Should the Front Door Load Balancer be Enabled? Defaults to `true`.
func (o FrontdoorOutput) LoadBalancerEnabled() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *Frontdoor) pulumi.BoolPtrOutput { return v.LoadBalancerEnabled }).(pulumi.BoolPtrOutput)
}
// Specifies the name of the Front Door service. Must be globally unique. Changing this forces a new resource to be created.
func (o FrontdoorOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v *Frontdoor) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)
}
// Specifies the name of the Resource Group in which the Front Door service should exist. Changing this forces a new resource to be created.
func (o FrontdoorOutput) ResourceGroupName() pulumi.StringOutput {
return o.ApplyT(func(v *Frontdoor) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput)
}
// A `routingRule` block as defined below.
func (o FrontdoorOutput) RoutingRules() FrontdoorRoutingRuleArrayOutput {
return o.ApplyT(func(v *Frontdoor) FrontdoorRoutingRuleArrayOutput { return v.RoutingRules }).(FrontdoorRoutingRuleArrayOutput)
}
// A map/dictionary of Routing Rule Names (key) to the Routing Rule ID (value)
func (o FrontdoorOutput) RoutingRulesMap() pulumi.StringMapOutput {
return o.ApplyT(func(v *Frontdoor) pulumi.StringMapOutput { return v.RoutingRulesMap }).(pulumi.StringMapOutput)
}
// A mapping of tags to assign to the resource.
func (o FrontdoorOutput) Tags() pulumi.StringMapOutput {
return o.ApplyT(func(v *Frontdoor) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput)
}
type FrontdoorArrayOutput struct{ *pulumi.OutputState }
func (FrontdoorArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*Frontdoor)(nil)).Elem()
}
func (o FrontdoorArrayOutput) ToFrontdoorArrayOutput() FrontdoorArrayOutput {
return o
}
func (o FrontdoorArrayOutput) ToFrontdoorArrayOutputWithContext(ctx context.Context) FrontdoorArrayOutput {
return o
}
func (o FrontdoorArrayOutput) Index(i pulumi.IntInput) FrontdoorOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *Frontdoor {
return vs[0].([]*Frontdoor)[vs[1].(int)]
}).(FrontdoorOutput)
}
type FrontdoorMapOutput struct{ *pulumi.OutputState }
func (FrontdoorMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*Frontdoor)(nil)).Elem()
}
func (o FrontdoorMapOutput) ToFrontdoorMapOutput() FrontdoorMapOutput {
return o
}
func (o FrontdoorMapOutput) ToFrontdoorMapOutputWithContext(ctx context.Context) FrontdoorMapOutput {
return o
}
func (o FrontdoorMapOutput) MapIndex(k pulumi.StringInput) FrontdoorOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *Frontdoor {
return vs[0].(map[string]*Frontdoor)[vs[1].(string)]
}).(FrontdoorOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*FrontdoorInput)(nil)).Elem(), &Frontdoor{})
pulumi.RegisterInputType(reflect.TypeOf((*FrontdoorArrayInput)(nil)).Elem(), FrontdoorArray{})
pulumi.RegisterInputType(reflect.TypeOf((*FrontdoorMapInput)(nil)).Elem(), FrontdoorMap{})
pulumi.RegisterOutputType(FrontdoorOutput{})
pulumi.RegisterOutputType(FrontdoorArrayOutput{})
pulumi.RegisterOutputType(FrontdoorMapOutput{})
}