/
frontdoor.go
463 lines (403 loc) · 22.5 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
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** 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/v2/go/pulumi"
)
// ## 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"`
// 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"`
// Specifies the send and receive timeout on forwarding request to the backend. When the timeout is reached, the request fails and returns. Possible values are between `0` - `240`. Defaults to `60`.
BackendPoolsSendReceiveTimeoutSeconds pulumi.IntPtrOutput `pulumi:"backendPoolsSendReceiveTimeoutSeconds"`
// The host that each frontendEndpoint must CNAME to.
Cname pulumi.StringOutput `pulumi:"cname"`
// Enforce certificate name check on `HTTPS` requests to all backend pools, this setting will have no effect on `HTTP` requests. Permitted values are `true` or `false`.
EnforceBackendPoolsCertificateNameCheck pulumi.BoolOutput `pulumi:"enforceBackendPoolsCertificateNameCheck"`
// 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 supported Azure location where the resource exists. Changing this forces a new resource to be created
//
// Deprecated: Due to the service's API changing 'location' must now always be set to 'Global' for new resources, however if the Front Door service was created prior 2020/03/10 it may continue to exist in a specific current location
Location pulumi.StringOutput `pulumi:"location"`
// 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.EnforceBackendPoolsCertificateNameCheck == nil {
return nil, errors.New("invalid value for required argument 'EnforceBackendPoolsCertificateNameCheck'")
}
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"`
// 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"`
// Specifies the send and receive timeout on forwarding request to the backend. When the timeout is reached, the request fails and returns. Possible values are between `0` - `240`. Defaults to `60`.
BackendPoolsSendReceiveTimeoutSeconds *int `pulumi:"backendPoolsSendReceiveTimeoutSeconds"`
// The host that each frontendEndpoint must CNAME to.
Cname *string `pulumi:"cname"`
// Enforce certificate name check on `HTTPS` requests to all backend pools, this setting will have no effect on `HTTP` requests. Permitted values are `true` or `false`.
EnforceBackendPoolsCertificateNameCheck *bool `pulumi:"enforceBackendPoolsCertificateNameCheck"`
// 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 supported Azure location where the resource exists. Changing this forces a new resource to be created
//
// Deprecated: Due to the service's API changing 'location' must now always be set to 'Global' for new resources, however if the Front Door service was created prior 2020/03/10 it may continue to exist in a specific current location
Location *string `pulumi:"location"`
// 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
// 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
// Specifies the send and receive timeout on forwarding request to the backend. When the timeout is reached, the request fails and returns. Possible values are between `0` - `240`. Defaults to `60`.
BackendPoolsSendReceiveTimeoutSeconds pulumi.IntPtrInput
// The host that each frontendEndpoint must CNAME to.
Cname pulumi.StringPtrInput
// Enforce certificate name check on `HTTPS` requests to all backend pools, this setting will have no effect on `HTTP` requests. Permitted values are `true` or `false`.
EnforceBackendPoolsCertificateNameCheck pulumi.BoolPtrInput
// 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 supported Azure location where the resource exists. Changing this forces a new resource to be created
//
// Deprecated: Due to the service's API changing 'location' must now always be set to 'Global' for new resources, however if the Front Door service was created prior 2020/03/10 it may continue to exist in a specific current location
Location pulumi.StringPtrInput
// 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"`
// A `backendPool` block as defined below.
BackendPools []FrontdoorBackendPool `pulumi:"backendPools"`
// Specifies the send and receive timeout on forwarding request to the backend. When the timeout is reached, the request fails and returns. Possible values are between `0` - `240`. Defaults to `60`.
BackendPoolsSendReceiveTimeoutSeconds *int `pulumi:"backendPoolsSendReceiveTimeoutSeconds"`
// Enforce certificate name check on `HTTPS` requests to all backend pools, this setting will have no effect on `HTTP` requests. Permitted values are `true` or `false`.
EnforceBackendPoolsCertificateNameCheck bool `pulumi:"enforceBackendPoolsCertificateNameCheck"`
// 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 supported Azure location where the resource exists. Changing this forces a new resource to be created
//
// Deprecated: Due to the service's API changing 'location' must now always be set to 'Global' for new resources, however if the Front Door service was created prior 2020/03/10 it may continue to exist in a specific current location
Location *string `pulumi:"location"`
// 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
// A `backendPool` block as defined below.
BackendPools FrontdoorBackendPoolArrayInput
// Specifies the send and receive timeout on forwarding request to the backend. When the timeout is reached, the request fails and returns. Possible values are between `0` - `240`. Defaults to `60`.
BackendPoolsSendReceiveTimeoutSeconds pulumi.IntPtrInput
// Enforce certificate name check on `HTTPS` requests to all backend pools, this setting will have no effect on `HTTP` requests. Permitted values are `true` or `false`.
EnforceBackendPoolsCertificateNameCheck pulumi.BoolInput
// 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 supported Azure location where the resource exists. Changing this forces a new resource to be created
//
// Deprecated: Due to the service's API changing 'location' must now always be set to 'Global' for new resources, however if the Front Door service was created prior 2020/03/10 it may continue to exist in a specific current location
Location pulumi.StringPtrInput
// 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))
}
func (i *Frontdoor) ToFrontdoorOutput() FrontdoorOutput {
return i.ToFrontdoorOutputWithContext(context.Background())
}
func (i *Frontdoor) ToFrontdoorOutputWithContext(ctx context.Context) FrontdoorOutput {
return pulumi.ToOutputWithContext(ctx, i).(FrontdoorOutput)
}
func (i *Frontdoor) ToFrontdoorPtrOutput() FrontdoorPtrOutput {
return i.ToFrontdoorPtrOutputWithContext(context.Background())
}
func (i *Frontdoor) ToFrontdoorPtrOutputWithContext(ctx context.Context) FrontdoorPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(FrontdoorPtrOutput)
}
type FrontdoorPtrInput interface {
pulumi.Input
ToFrontdoorPtrOutput() FrontdoorPtrOutput
ToFrontdoorPtrOutputWithContext(ctx context.Context) FrontdoorPtrOutput
}
type frontdoorPtrType FrontdoorArgs
func (*frontdoorPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**Frontdoor)(nil))
}
func (i *frontdoorPtrType) ToFrontdoorPtrOutput() FrontdoorPtrOutput {
return i.ToFrontdoorPtrOutputWithContext(context.Background())
}
func (i *frontdoorPtrType) ToFrontdoorPtrOutputWithContext(ctx context.Context) FrontdoorPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(FrontdoorPtrOutput)
}
// 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))
}
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))
}
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))
}
func (o FrontdoorOutput) ToFrontdoorOutput() FrontdoorOutput {
return o
}
func (o FrontdoorOutput) ToFrontdoorOutputWithContext(ctx context.Context) FrontdoorOutput {
return o
}
func (o FrontdoorOutput) ToFrontdoorPtrOutput() FrontdoorPtrOutput {
return o.ToFrontdoorPtrOutputWithContext(context.Background())
}
func (o FrontdoorOutput) ToFrontdoorPtrOutputWithContext(ctx context.Context) FrontdoorPtrOutput {
return o.ApplyT(func(v Frontdoor) *Frontdoor {
return &v
}).(FrontdoorPtrOutput)
}
type FrontdoorPtrOutput struct {
*pulumi.OutputState
}
func (FrontdoorPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**Frontdoor)(nil))
}
func (o FrontdoorPtrOutput) ToFrontdoorPtrOutput() FrontdoorPtrOutput {
return o
}
func (o FrontdoorPtrOutput) ToFrontdoorPtrOutputWithContext(ctx context.Context) FrontdoorPtrOutput {
return o
}
type FrontdoorArrayOutput struct{ *pulumi.OutputState }
func (FrontdoorArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]Frontdoor)(nil))
}
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))
}
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.RegisterOutputType(FrontdoorOutput{})
pulumi.RegisterOutputType(FrontdoorPtrOutput{})
pulumi.RegisterOutputType(FrontdoorArrayOutput{})
pulumi.RegisterOutputType(FrontdoorMapOutput{})
}