/
policyAccessForwardingRule.go
458 lines (391 loc) · 21.5 KB
/
policyAccessForwardingRule.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
// 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 zpa
import (
"context"
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/zscaler/pulumi-zpa/sdk/go/zpa/internal"
)
// * [Official documentation](https://help.zscaler.com/zpa/about-client-forwarding-policy)
// * [API documentation](https://help.zscaler.com/zpa/configuring-client-forwarding-policies-using-api)
//
// The **zpa_policy_forwarding_rule** resource creates a policy forwarding access rule in the Zscaler Private Access cloud.
//
// ⚠️ **WARNING:**: The attribute ``ruleOrder`` is now deprecated in favor of the new resource ``PolicyAccessReorderRule`` policyAccessRuleReorder
//
// ## Import
//
// Zscaler offers a dedicated tool called Zscaler-Terraformer to allow the automated import of ZPA configurations into Terraform-compliant HashiCorp Configuration Language.
//
// # Visit
//
// Policy Access Forwarding Rule can be imported by using `<POLICY FORWARDING RULE ID>` as the import ID.
//
// For example:
//
// ```sh
// $ pulumi import zpa:index/policyAccessForwardingRule:PolicyAccessForwardingRule example <policy_forwarding_rule_id>
// ```
type PolicyAccessForwardingRule struct {
pulumi.CustomResourceState
// This is for providing the rule action.
Action pulumi.StringPtrOutput `pulumi:"action"`
// This field defines the description of the server.
ActionId pulumi.StringPtrOutput `pulumi:"actionId"`
BypassDefaultRule pulumi.BoolPtrOutput `pulumi:"bypassDefaultRule"`
// This is for proviidng the set of conditions for the policy.
Conditions PolicyAccessForwardingRuleConditionArrayOutput `pulumi:"conditions"`
// This is for providing a customer message for the user.
CustomMsg pulumi.StringPtrOutput `pulumi:"customMsg"`
// This is for providing a customer message for the user.
DefaultRule pulumi.BoolPtrOutput `pulumi:"defaultRule"`
// This is the description of the access policy.
Description pulumi.StringPtrOutput `pulumi:"description"`
LssDefaultRule pulumi.BoolPtrOutput `pulumi:"lssDefaultRule"`
MicrotenantId pulumi.StringOutput `pulumi:"microtenantId"`
// This is the name of the policy.
Name pulumi.StringOutput `pulumi:"name"`
Operator pulumi.StringOutput `pulumi:"operator"`
PolicySetId pulumi.StringOutput `pulumi:"policySetId"`
PolicyType pulumi.StringOutput `pulumi:"policyType"`
Priority pulumi.StringOutput `pulumi:"priority"`
ReauthDefaultRule pulumi.BoolPtrOutput `pulumi:"reauthDefaultRule"`
ReauthIdleTimeout pulumi.StringPtrOutput `pulumi:"reauthIdleTimeout"`
ReauthTimeout pulumi.StringPtrOutput `pulumi:"reauthTimeout"`
// Deprecated: The `ruleOrder` field is now deprecated for all zpa access policy resources in favor of the resource `PolicyAccessReorderRule`
RuleOrder pulumi.StringOutput `pulumi:"ruleOrder"`
ZpnCbiProfileId pulumi.StringOutput `pulumi:"zpnCbiProfileId"`
ZpnInspectionProfileId pulumi.StringOutput `pulumi:"zpnInspectionProfileId"`
ZpnIsolationProfileId pulumi.StringOutput `pulumi:"zpnIsolationProfileId"`
}
// NewPolicyAccessForwardingRule registers a new resource with the given unique name, arguments, and options.
func NewPolicyAccessForwardingRule(ctx *pulumi.Context,
name string, args *PolicyAccessForwardingRuleArgs, opts ...pulumi.ResourceOption) (*PolicyAccessForwardingRule, error) {
if args == nil {
args = &PolicyAccessForwardingRuleArgs{}
}
opts = internal.PkgResourceDefaultOpts(opts)
var resource PolicyAccessForwardingRule
err := ctx.RegisterResource("zpa:index/policyAccessForwardingRule:PolicyAccessForwardingRule", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetPolicyAccessForwardingRule gets an existing PolicyAccessForwardingRule 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 GetPolicyAccessForwardingRule(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *PolicyAccessForwardingRuleState, opts ...pulumi.ResourceOption) (*PolicyAccessForwardingRule, error) {
var resource PolicyAccessForwardingRule
err := ctx.ReadResource("zpa:index/policyAccessForwardingRule:PolicyAccessForwardingRule", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering PolicyAccessForwardingRule resources.
type policyAccessForwardingRuleState struct {
// This is for providing the rule action.
Action *string `pulumi:"action"`
// This field defines the description of the server.
ActionId *string `pulumi:"actionId"`
BypassDefaultRule *bool `pulumi:"bypassDefaultRule"`
// This is for proviidng the set of conditions for the policy.
Conditions []PolicyAccessForwardingRuleCondition `pulumi:"conditions"`
// This is for providing a customer message for the user.
CustomMsg *string `pulumi:"customMsg"`
// This is for providing a customer message for the user.
DefaultRule *bool `pulumi:"defaultRule"`
// This is the description of the access policy.
Description *string `pulumi:"description"`
LssDefaultRule *bool `pulumi:"lssDefaultRule"`
MicrotenantId *string `pulumi:"microtenantId"`
// This is the name of the policy.
Name *string `pulumi:"name"`
Operator *string `pulumi:"operator"`
PolicySetId *string `pulumi:"policySetId"`
PolicyType *string `pulumi:"policyType"`
Priority *string `pulumi:"priority"`
ReauthDefaultRule *bool `pulumi:"reauthDefaultRule"`
ReauthIdleTimeout *string `pulumi:"reauthIdleTimeout"`
ReauthTimeout *string `pulumi:"reauthTimeout"`
// Deprecated: The `ruleOrder` field is now deprecated for all zpa access policy resources in favor of the resource `PolicyAccessReorderRule`
RuleOrder *string `pulumi:"ruleOrder"`
ZpnCbiProfileId *string `pulumi:"zpnCbiProfileId"`
ZpnInspectionProfileId *string `pulumi:"zpnInspectionProfileId"`
ZpnIsolationProfileId *string `pulumi:"zpnIsolationProfileId"`
}
type PolicyAccessForwardingRuleState struct {
// This is for providing the rule action.
Action pulumi.StringPtrInput
// This field defines the description of the server.
ActionId pulumi.StringPtrInput
BypassDefaultRule pulumi.BoolPtrInput
// This is for proviidng the set of conditions for the policy.
Conditions PolicyAccessForwardingRuleConditionArrayInput
// This is for providing a customer message for the user.
CustomMsg pulumi.StringPtrInput
// This is for providing a customer message for the user.
DefaultRule pulumi.BoolPtrInput
// This is the description of the access policy.
Description pulumi.StringPtrInput
LssDefaultRule pulumi.BoolPtrInput
MicrotenantId pulumi.StringPtrInput
// This is the name of the policy.
Name pulumi.StringPtrInput
Operator pulumi.StringPtrInput
PolicySetId pulumi.StringPtrInput
PolicyType pulumi.StringPtrInput
Priority pulumi.StringPtrInput
ReauthDefaultRule pulumi.BoolPtrInput
ReauthIdleTimeout pulumi.StringPtrInput
ReauthTimeout pulumi.StringPtrInput
// Deprecated: The `ruleOrder` field is now deprecated for all zpa access policy resources in favor of the resource `PolicyAccessReorderRule`
RuleOrder pulumi.StringPtrInput
ZpnCbiProfileId pulumi.StringPtrInput
ZpnInspectionProfileId pulumi.StringPtrInput
ZpnIsolationProfileId pulumi.StringPtrInput
}
func (PolicyAccessForwardingRuleState) ElementType() reflect.Type {
return reflect.TypeOf((*policyAccessForwardingRuleState)(nil)).Elem()
}
type policyAccessForwardingRuleArgs struct {
// This is for providing the rule action.
Action *string `pulumi:"action"`
// This field defines the description of the server.
ActionId *string `pulumi:"actionId"`
BypassDefaultRule *bool `pulumi:"bypassDefaultRule"`
// This is for proviidng the set of conditions for the policy.
Conditions []PolicyAccessForwardingRuleCondition `pulumi:"conditions"`
// This is for providing a customer message for the user.
CustomMsg *string `pulumi:"customMsg"`
// This is for providing a customer message for the user.
DefaultRule *bool `pulumi:"defaultRule"`
// This is the description of the access policy.
Description *string `pulumi:"description"`
LssDefaultRule *bool `pulumi:"lssDefaultRule"`
MicrotenantId *string `pulumi:"microtenantId"`
// This is the name of the policy.
Name *string `pulumi:"name"`
Operator *string `pulumi:"operator"`
PolicySetId *string `pulumi:"policySetId"`
PolicyType *string `pulumi:"policyType"`
Priority *string `pulumi:"priority"`
ReauthDefaultRule *bool `pulumi:"reauthDefaultRule"`
ReauthIdleTimeout *string `pulumi:"reauthIdleTimeout"`
ReauthTimeout *string `pulumi:"reauthTimeout"`
// Deprecated: The `ruleOrder` field is now deprecated for all zpa access policy resources in favor of the resource `PolicyAccessReorderRule`
RuleOrder *string `pulumi:"ruleOrder"`
ZpnCbiProfileId *string `pulumi:"zpnCbiProfileId"`
ZpnInspectionProfileId *string `pulumi:"zpnInspectionProfileId"`
ZpnIsolationProfileId *string `pulumi:"zpnIsolationProfileId"`
}
// The set of arguments for constructing a PolicyAccessForwardingRule resource.
type PolicyAccessForwardingRuleArgs struct {
// This is for providing the rule action.
Action pulumi.StringPtrInput
// This field defines the description of the server.
ActionId pulumi.StringPtrInput
BypassDefaultRule pulumi.BoolPtrInput
// This is for proviidng the set of conditions for the policy.
Conditions PolicyAccessForwardingRuleConditionArrayInput
// This is for providing a customer message for the user.
CustomMsg pulumi.StringPtrInput
// This is for providing a customer message for the user.
DefaultRule pulumi.BoolPtrInput
// This is the description of the access policy.
Description pulumi.StringPtrInput
LssDefaultRule pulumi.BoolPtrInput
MicrotenantId pulumi.StringPtrInput
// This is the name of the policy.
Name pulumi.StringPtrInput
Operator pulumi.StringPtrInput
PolicySetId pulumi.StringPtrInput
PolicyType pulumi.StringPtrInput
Priority pulumi.StringPtrInput
ReauthDefaultRule pulumi.BoolPtrInput
ReauthIdleTimeout pulumi.StringPtrInput
ReauthTimeout pulumi.StringPtrInput
// Deprecated: The `ruleOrder` field is now deprecated for all zpa access policy resources in favor of the resource `PolicyAccessReorderRule`
RuleOrder pulumi.StringPtrInput
ZpnCbiProfileId pulumi.StringPtrInput
ZpnInspectionProfileId pulumi.StringPtrInput
ZpnIsolationProfileId pulumi.StringPtrInput
}
func (PolicyAccessForwardingRuleArgs) ElementType() reflect.Type {
return reflect.TypeOf((*policyAccessForwardingRuleArgs)(nil)).Elem()
}
type PolicyAccessForwardingRuleInput interface {
pulumi.Input
ToPolicyAccessForwardingRuleOutput() PolicyAccessForwardingRuleOutput
ToPolicyAccessForwardingRuleOutputWithContext(ctx context.Context) PolicyAccessForwardingRuleOutput
}
func (*PolicyAccessForwardingRule) ElementType() reflect.Type {
return reflect.TypeOf((**PolicyAccessForwardingRule)(nil)).Elem()
}
func (i *PolicyAccessForwardingRule) ToPolicyAccessForwardingRuleOutput() PolicyAccessForwardingRuleOutput {
return i.ToPolicyAccessForwardingRuleOutputWithContext(context.Background())
}
func (i *PolicyAccessForwardingRule) ToPolicyAccessForwardingRuleOutputWithContext(ctx context.Context) PolicyAccessForwardingRuleOutput {
return pulumi.ToOutputWithContext(ctx, i).(PolicyAccessForwardingRuleOutput)
}
// PolicyAccessForwardingRuleArrayInput is an input type that accepts PolicyAccessForwardingRuleArray and PolicyAccessForwardingRuleArrayOutput values.
// You can construct a concrete instance of `PolicyAccessForwardingRuleArrayInput` via:
//
// PolicyAccessForwardingRuleArray{ PolicyAccessForwardingRuleArgs{...} }
type PolicyAccessForwardingRuleArrayInput interface {
pulumi.Input
ToPolicyAccessForwardingRuleArrayOutput() PolicyAccessForwardingRuleArrayOutput
ToPolicyAccessForwardingRuleArrayOutputWithContext(context.Context) PolicyAccessForwardingRuleArrayOutput
}
type PolicyAccessForwardingRuleArray []PolicyAccessForwardingRuleInput
func (PolicyAccessForwardingRuleArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*PolicyAccessForwardingRule)(nil)).Elem()
}
func (i PolicyAccessForwardingRuleArray) ToPolicyAccessForwardingRuleArrayOutput() PolicyAccessForwardingRuleArrayOutput {
return i.ToPolicyAccessForwardingRuleArrayOutputWithContext(context.Background())
}
func (i PolicyAccessForwardingRuleArray) ToPolicyAccessForwardingRuleArrayOutputWithContext(ctx context.Context) PolicyAccessForwardingRuleArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(PolicyAccessForwardingRuleArrayOutput)
}
// PolicyAccessForwardingRuleMapInput is an input type that accepts PolicyAccessForwardingRuleMap and PolicyAccessForwardingRuleMapOutput values.
// You can construct a concrete instance of `PolicyAccessForwardingRuleMapInput` via:
//
// PolicyAccessForwardingRuleMap{ "key": PolicyAccessForwardingRuleArgs{...} }
type PolicyAccessForwardingRuleMapInput interface {
pulumi.Input
ToPolicyAccessForwardingRuleMapOutput() PolicyAccessForwardingRuleMapOutput
ToPolicyAccessForwardingRuleMapOutputWithContext(context.Context) PolicyAccessForwardingRuleMapOutput
}
type PolicyAccessForwardingRuleMap map[string]PolicyAccessForwardingRuleInput
func (PolicyAccessForwardingRuleMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*PolicyAccessForwardingRule)(nil)).Elem()
}
func (i PolicyAccessForwardingRuleMap) ToPolicyAccessForwardingRuleMapOutput() PolicyAccessForwardingRuleMapOutput {
return i.ToPolicyAccessForwardingRuleMapOutputWithContext(context.Background())
}
func (i PolicyAccessForwardingRuleMap) ToPolicyAccessForwardingRuleMapOutputWithContext(ctx context.Context) PolicyAccessForwardingRuleMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(PolicyAccessForwardingRuleMapOutput)
}
type PolicyAccessForwardingRuleOutput struct{ *pulumi.OutputState }
func (PolicyAccessForwardingRuleOutput) ElementType() reflect.Type {
return reflect.TypeOf((**PolicyAccessForwardingRule)(nil)).Elem()
}
func (o PolicyAccessForwardingRuleOutput) ToPolicyAccessForwardingRuleOutput() PolicyAccessForwardingRuleOutput {
return o
}
func (o PolicyAccessForwardingRuleOutput) ToPolicyAccessForwardingRuleOutputWithContext(ctx context.Context) PolicyAccessForwardingRuleOutput {
return o
}
// This is for providing the rule action.
func (o PolicyAccessForwardingRuleOutput) Action() pulumi.StringPtrOutput {
return o.ApplyT(func(v *PolicyAccessForwardingRule) pulumi.StringPtrOutput { return v.Action }).(pulumi.StringPtrOutput)
}
// This field defines the description of the server.
func (o PolicyAccessForwardingRuleOutput) ActionId() pulumi.StringPtrOutput {
return o.ApplyT(func(v *PolicyAccessForwardingRule) pulumi.StringPtrOutput { return v.ActionId }).(pulumi.StringPtrOutput)
}
func (o PolicyAccessForwardingRuleOutput) BypassDefaultRule() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *PolicyAccessForwardingRule) pulumi.BoolPtrOutput { return v.BypassDefaultRule }).(pulumi.BoolPtrOutput)
}
// This is for proviidng the set of conditions for the policy.
func (o PolicyAccessForwardingRuleOutput) Conditions() PolicyAccessForwardingRuleConditionArrayOutput {
return o.ApplyT(func(v *PolicyAccessForwardingRule) PolicyAccessForwardingRuleConditionArrayOutput {
return v.Conditions
}).(PolicyAccessForwardingRuleConditionArrayOutput)
}
// This is for providing a customer message for the user.
func (o PolicyAccessForwardingRuleOutput) CustomMsg() pulumi.StringPtrOutput {
return o.ApplyT(func(v *PolicyAccessForwardingRule) pulumi.StringPtrOutput { return v.CustomMsg }).(pulumi.StringPtrOutput)
}
// This is for providing a customer message for the user.
func (o PolicyAccessForwardingRuleOutput) DefaultRule() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *PolicyAccessForwardingRule) pulumi.BoolPtrOutput { return v.DefaultRule }).(pulumi.BoolPtrOutput)
}
// This is the description of the access policy.
func (o PolicyAccessForwardingRuleOutput) Description() pulumi.StringPtrOutput {
return o.ApplyT(func(v *PolicyAccessForwardingRule) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput)
}
func (o PolicyAccessForwardingRuleOutput) LssDefaultRule() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *PolicyAccessForwardingRule) pulumi.BoolPtrOutput { return v.LssDefaultRule }).(pulumi.BoolPtrOutput)
}
func (o PolicyAccessForwardingRuleOutput) MicrotenantId() pulumi.StringOutput {
return o.ApplyT(func(v *PolicyAccessForwardingRule) pulumi.StringOutput { return v.MicrotenantId }).(pulumi.StringOutput)
}
// This is the name of the policy.
func (o PolicyAccessForwardingRuleOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v *PolicyAccessForwardingRule) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)
}
func (o PolicyAccessForwardingRuleOutput) Operator() pulumi.StringOutput {
return o.ApplyT(func(v *PolicyAccessForwardingRule) pulumi.StringOutput { return v.Operator }).(pulumi.StringOutput)
}
func (o PolicyAccessForwardingRuleOutput) PolicySetId() pulumi.StringOutput {
return o.ApplyT(func(v *PolicyAccessForwardingRule) pulumi.StringOutput { return v.PolicySetId }).(pulumi.StringOutput)
}
func (o PolicyAccessForwardingRuleOutput) PolicyType() pulumi.StringOutput {
return o.ApplyT(func(v *PolicyAccessForwardingRule) pulumi.StringOutput { return v.PolicyType }).(pulumi.StringOutput)
}
func (o PolicyAccessForwardingRuleOutput) Priority() pulumi.StringOutput {
return o.ApplyT(func(v *PolicyAccessForwardingRule) pulumi.StringOutput { return v.Priority }).(pulumi.StringOutput)
}
func (o PolicyAccessForwardingRuleOutput) ReauthDefaultRule() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *PolicyAccessForwardingRule) pulumi.BoolPtrOutput { return v.ReauthDefaultRule }).(pulumi.BoolPtrOutput)
}
func (o PolicyAccessForwardingRuleOutput) ReauthIdleTimeout() pulumi.StringPtrOutput {
return o.ApplyT(func(v *PolicyAccessForwardingRule) pulumi.StringPtrOutput { return v.ReauthIdleTimeout }).(pulumi.StringPtrOutput)
}
func (o PolicyAccessForwardingRuleOutput) ReauthTimeout() pulumi.StringPtrOutput {
return o.ApplyT(func(v *PolicyAccessForwardingRule) pulumi.StringPtrOutput { return v.ReauthTimeout }).(pulumi.StringPtrOutput)
}
// Deprecated: The `ruleOrder` field is now deprecated for all zpa access policy resources in favor of the resource `PolicyAccessReorderRule`
func (o PolicyAccessForwardingRuleOutput) RuleOrder() pulumi.StringOutput {
return o.ApplyT(func(v *PolicyAccessForwardingRule) pulumi.StringOutput { return v.RuleOrder }).(pulumi.StringOutput)
}
func (o PolicyAccessForwardingRuleOutput) ZpnCbiProfileId() pulumi.StringOutput {
return o.ApplyT(func(v *PolicyAccessForwardingRule) pulumi.StringOutput { return v.ZpnCbiProfileId }).(pulumi.StringOutput)
}
func (o PolicyAccessForwardingRuleOutput) ZpnInspectionProfileId() pulumi.StringOutput {
return o.ApplyT(func(v *PolicyAccessForwardingRule) pulumi.StringOutput { return v.ZpnInspectionProfileId }).(pulumi.StringOutput)
}
func (o PolicyAccessForwardingRuleOutput) ZpnIsolationProfileId() pulumi.StringOutput {
return o.ApplyT(func(v *PolicyAccessForwardingRule) pulumi.StringOutput { return v.ZpnIsolationProfileId }).(pulumi.StringOutput)
}
type PolicyAccessForwardingRuleArrayOutput struct{ *pulumi.OutputState }
func (PolicyAccessForwardingRuleArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*PolicyAccessForwardingRule)(nil)).Elem()
}
func (o PolicyAccessForwardingRuleArrayOutput) ToPolicyAccessForwardingRuleArrayOutput() PolicyAccessForwardingRuleArrayOutput {
return o
}
func (o PolicyAccessForwardingRuleArrayOutput) ToPolicyAccessForwardingRuleArrayOutputWithContext(ctx context.Context) PolicyAccessForwardingRuleArrayOutput {
return o
}
func (o PolicyAccessForwardingRuleArrayOutput) Index(i pulumi.IntInput) PolicyAccessForwardingRuleOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *PolicyAccessForwardingRule {
return vs[0].([]*PolicyAccessForwardingRule)[vs[1].(int)]
}).(PolicyAccessForwardingRuleOutput)
}
type PolicyAccessForwardingRuleMapOutput struct{ *pulumi.OutputState }
func (PolicyAccessForwardingRuleMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*PolicyAccessForwardingRule)(nil)).Elem()
}
func (o PolicyAccessForwardingRuleMapOutput) ToPolicyAccessForwardingRuleMapOutput() PolicyAccessForwardingRuleMapOutput {
return o
}
func (o PolicyAccessForwardingRuleMapOutput) ToPolicyAccessForwardingRuleMapOutputWithContext(ctx context.Context) PolicyAccessForwardingRuleMapOutput {
return o
}
func (o PolicyAccessForwardingRuleMapOutput) MapIndex(k pulumi.StringInput) PolicyAccessForwardingRuleOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *PolicyAccessForwardingRule {
return vs[0].(map[string]*PolicyAccessForwardingRule)[vs[1].(string)]
}).(PolicyAccessForwardingRuleOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*PolicyAccessForwardingRuleInput)(nil)).Elem(), &PolicyAccessForwardingRule{})
pulumi.RegisterInputType(reflect.TypeOf((*PolicyAccessForwardingRuleArrayInput)(nil)).Elem(), PolicyAccessForwardingRuleArray{})
pulumi.RegisterInputType(reflect.TypeOf((*PolicyAccessForwardingRuleMapInput)(nil)).Elem(), PolicyAccessForwardingRuleMap{})
pulumi.RegisterOutputType(PolicyAccessForwardingRuleOutput{})
pulumi.RegisterOutputType(PolicyAccessForwardingRuleArrayOutput{})
pulumi.RegisterOutputType(PolicyAccessForwardingRuleMapOutput{})
}