/
overridefilter.go
556 lines (490 loc) · 28.6 KB
/
overridefilter.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 v4
import (
"context"
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-fortios/sdk/go/fortios/internal"
)
// Override filters for remote system server.
//
// ## Example Usage
//
// <!--Start PulumiCodeChooser -->
// ```go
// package main
//
// import (
//
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
// "github.com/pulumiverse/pulumi-fortios/sdk/go/fortios/log"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// _, err := log.NewOverridefilter(ctx, "trname", &log.OverridefilterArgs{
// Anomaly: pulumi.String("enable"),
// Dns: pulumi.String("enable"),
// FilterType: pulumi.String("include"),
// ForwardTraffic: pulumi.String("enable"),
// Gtp: pulumi.String("enable"),
// LocalTraffic: pulumi.String("enable"),
// MulticastTraffic: pulumi.String("enable"),
// Severity: pulumi.String("information"),
// SnifferTraffic: pulumi.String("enable"),
// Ssh: pulumi.String("enable"),
// Voip: pulumi.String("enable"),
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
// <!--End PulumiCodeChooser -->
//
// ## Import
//
// LogSyslogd4 OverrideFilter can be imported using any of these accepted formats:
//
// ```sh
// $ pulumi import fortios:log/syslogd/v4/overridefilter:Overridefilter labelname LogSyslogd4OverrideFilter
// ```
//
// If you do not want to import arguments of block:
//
// $ export "FORTIOS_IMPORT_TABLE"="false"
//
// ```sh
// $ pulumi import fortios:log/syslogd/v4/overridefilter:Overridefilter labelname LogSyslogd4OverrideFilter
// ```
//
// $ unset "FORTIOS_IMPORT_TABLE"
type Overridefilter struct {
pulumi.CustomResourceState
// Enable/disable anomaly logging. Valid values: `enable`, `disable`.
Anomaly pulumi.StringOutput `pulumi:"anomaly"`
// Enable/disable detailed DNS event logging. Valid values: `enable`, `disable`.
Dns pulumi.StringOutput `pulumi:"dns"`
// Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
DynamicSortSubtable pulumi.StringPtrOutput `pulumi:"dynamicSortSubtable"`
// Syslog 4 filter.
Filter pulumi.StringOutput `pulumi:"filter"`
// Include/exclude logs that match the filter. Valid values: `include`, `exclude`.
FilterType pulumi.StringOutput `pulumi:"filterType"`
// Enable/disable Forti-Switch logging. Valid values: `enable`, `disable`.
FortiSwitch pulumi.StringOutput `pulumi:"fortiSwitch"`
// Enable/disable forward traffic logging. Valid values: `enable`, `disable`.
ForwardTraffic pulumi.StringOutput `pulumi:"forwardTraffic"`
// Free Style Filters The structure of `freeStyle` block is documented below.
FreeStyles OverridefilterFreeStyleArrayOutput `pulumi:"freeStyles"`
// Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
GetAllTables pulumi.StringPtrOutput `pulumi:"getAllTables"`
// Enable/disable GTP messages logging. Valid values: `enable`, `disable`.
Gtp pulumi.StringOutput `pulumi:"gtp"`
// Enable/disable local in or out traffic logging. Valid values: `enable`, `disable`.
LocalTraffic pulumi.StringOutput `pulumi:"localTraffic"`
// Enable/disable multicast traffic logging. Valid values: `enable`, `disable`.
MulticastTraffic pulumi.StringOutput `pulumi:"multicastTraffic"`
// Enable/disable netscan discovery event logging.
NetscanDiscovery pulumi.StringOutput `pulumi:"netscanDiscovery"`
// Enable/disable netscan vulnerability event logging.
NetscanVulnerability pulumi.StringOutput `pulumi:"netscanVulnerability"`
// Lowest severity level to log. Valid values: `emergency`, `alert`, `critical`, `error`, `warning`, `notification`, `information`, `debug`.
Severity pulumi.StringOutput `pulumi:"severity"`
// Enable/disable sniffer traffic logging. Valid values: `enable`, `disable`.
SnifferTraffic pulumi.StringOutput `pulumi:"snifferTraffic"`
// Enable/disable SSH logging. Valid values: `enable`, `disable`.
Ssh pulumi.StringOutput `pulumi:"ssh"`
// Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
Vdomparam pulumi.StringPtrOutput `pulumi:"vdomparam"`
// Enable/disable VoIP logging. Valid values: `enable`, `disable`.
Voip pulumi.StringOutput `pulumi:"voip"`
// Enable/disable ztna traffic logging. Valid values: `enable`, `disable`.
ZtnaTraffic pulumi.StringOutput `pulumi:"ztnaTraffic"`
}
// NewOverridefilter registers a new resource with the given unique name, arguments, and options.
func NewOverridefilter(ctx *pulumi.Context,
name string, args *OverridefilterArgs, opts ...pulumi.ResourceOption) (*Overridefilter, error) {
if args == nil {
args = &OverridefilterArgs{}
}
opts = internal.PkgResourceDefaultOpts(opts)
var resource Overridefilter
err := ctx.RegisterResource("fortios:log/syslogd/v4/overridefilter:Overridefilter", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetOverridefilter gets an existing Overridefilter 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 GetOverridefilter(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *OverridefilterState, opts ...pulumi.ResourceOption) (*Overridefilter, error) {
var resource Overridefilter
err := ctx.ReadResource("fortios:log/syslogd/v4/overridefilter:Overridefilter", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering Overridefilter resources.
type overridefilterState struct {
// Enable/disable anomaly logging. Valid values: `enable`, `disable`.
Anomaly *string `pulumi:"anomaly"`
// Enable/disable detailed DNS event logging. Valid values: `enable`, `disable`.
Dns *string `pulumi:"dns"`
// Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
DynamicSortSubtable *string `pulumi:"dynamicSortSubtable"`
// Syslog 4 filter.
Filter *string `pulumi:"filter"`
// Include/exclude logs that match the filter. Valid values: `include`, `exclude`.
FilterType *string `pulumi:"filterType"`
// Enable/disable Forti-Switch logging. Valid values: `enable`, `disable`.
FortiSwitch *string `pulumi:"fortiSwitch"`
// Enable/disable forward traffic logging. Valid values: `enable`, `disable`.
ForwardTraffic *string `pulumi:"forwardTraffic"`
// Free Style Filters The structure of `freeStyle` block is documented below.
FreeStyles []OverridefilterFreeStyle `pulumi:"freeStyles"`
// Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
GetAllTables *string `pulumi:"getAllTables"`
// Enable/disable GTP messages logging. Valid values: `enable`, `disable`.
Gtp *string `pulumi:"gtp"`
// Enable/disable local in or out traffic logging. Valid values: `enable`, `disable`.
LocalTraffic *string `pulumi:"localTraffic"`
// Enable/disable multicast traffic logging. Valid values: `enable`, `disable`.
MulticastTraffic *string `pulumi:"multicastTraffic"`
// Enable/disable netscan discovery event logging.
NetscanDiscovery *string `pulumi:"netscanDiscovery"`
// Enable/disable netscan vulnerability event logging.
NetscanVulnerability *string `pulumi:"netscanVulnerability"`
// Lowest severity level to log. Valid values: `emergency`, `alert`, `critical`, `error`, `warning`, `notification`, `information`, `debug`.
Severity *string `pulumi:"severity"`
// Enable/disable sniffer traffic logging. Valid values: `enable`, `disable`.
SnifferTraffic *string `pulumi:"snifferTraffic"`
// Enable/disable SSH logging. Valid values: `enable`, `disable`.
Ssh *string `pulumi:"ssh"`
// Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
Vdomparam *string `pulumi:"vdomparam"`
// Enable/disable VoIP logging. Valid values: `enable`, `disable`.
Voip *string `pulumi:"voip"`
// Enable/disable ztna traffic logging. Valid values: `enable`, `disable`.
ZtnaTraffic *string `pulumi:"ztnaTraffic"`
}
type OverridefilterState struct {
// Enable/disable anomaly logging. Valid values: `enable`, `disable`.
Anomaly pulumi.StringPtrInput
// Enable/disable detailed DNS event logging. Valid values: `enable`, `disable`.
Dns pulumi.StringPtrInput
// Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
DynamicSortSubtable pulumi.StringPtrInput
// Syslog 4 filter.
Filter pulumi.StringPtrInput
// Include/exclude logs that match the filter. Valid values: `include`, `exclude`.
FilterType pulumi.StringPtrInput
// Enable/disable Forti-Switch logging. Valid values: `enable`, `disable`.
FortiSwitch pulumi.StringPtrInput
// Enable/disable forward traffic logging. Valid values: `enable`, `disable`.
ForwardTraffic pulumi.StringPtrInput
// Free Style Filters The structure of `freeStyle` block is documented below.
FreeStyles OverridefilterFreeStyleArrayInput
// Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
GetAllTables pulumi.StringPtrInput
// Enable/disable GTP messages logging. Valid values: `enable`, `disable`.
Gtp pulumi.StringPtrInput
// Enable/disable local in or out traffic logging. Valid values: `enable`, `disable`.
LocalTraffic pulumi.StringPtrInput
// Enable/disable multicast traffic logging. Valid values: `enable`, `disable`.
MulticastTraffic pulumi.StringPtrInput
// Enable/disable netscan discovery event logging.
NetscanDiscovery pulumi.StringPtrInput
// Enable/disable netscan vulnerability event logging.
NetscanVulnerability pulumi.StringPtrInput
// Lowest severity level to log. Valid values: `emergency`, `alert`, `critical`, `error`, `warning`, `notification`, `information`, `debug`.
Severity pulumi.StringPtrInput
// Enable/disable sniffer traffic logging. Valid values: `enable`, `disable`.
SnifferTraffic pulumi.StringPtrInput
// Enable/disable SSH logging. Valid values: `enable`, `disable`.
Ssh pulumi.StringPtrInput
// Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
Vdomparam pulumi.StringPtrInput
// Enable/disable VoIP logging. Valid values: `enable`, `disable`.
Voip pulumi.StringPtrInput
// Enable/disable ztna traffic logging. Valid values: `enable`, `disable`.
ZtnaTraffic pulumi.StringPtrInput
}
func (OverridefilterState) ElementType() reflect.Type {
return reflect.TypeOf((*overridefilterState)(nil)).Elem()
}
type overridefilterArgs struct {
// Enable/disable anomaly logging. Valid values: `enable`, `disable`.
Anomaly *string `pulumi:"anomaly"`
// Enable/disable detailed DNS event logging. Valid values: `enable`, `disable`.
Dns *string `pulumi:"dns"`
// Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
DynamicSortSubtable *string `pulumi:"dynamicSortSubtable"`
// Syslog 4 filter.
Filter *string `pulumi:"filter"`
// Include/exclude logs that match the filter. Valid values: `include`, `exclude`.
FilterType *string `pulumi:"filterType"`
// Enable/disable Forti-Switch logging. Valid values: `enable`, `disable`.
FortiSwitch *string `pulumi:"fortiSwitch"`
// Enable/disable forward traffic logging. Valid values: `enable`, `disable`.
ForwardTraffic *string `pulumi:"forwardTraffic"`
// Free Style Filters The structure of `freeStyle` block is documented below.
FreeStyles []OverridefilterFreeStyle `pulumi:"freeStyles"`
// Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
GetAllTables *string `pulumi:"getAllTables"`
// Enable/disable GTP messages logging. Valid values: `enable`, `disable`.
Gtp *string `pulumi:"gtp"`
// Enable/disable local in or out traffic logging. Valid values: `enable`, `disable`.
LocalTraffic *string `pulumi:"localTraffic"`
// Enable/disable multicast traffic logging. Valid values: `enable`, `disable`.
MulticastTraffic *string `pulumi:"multicastTraffic"`
// Enable/disable netscan discovery event logging.
NetscanDiscovery *string `pulumi:"netscanDiscovery"`
// Enable/disable netscan vulnerability event logging.
NetscanVulnerability *string `pulumi:"netscanVulnerability"`
// Lowest severity level to log. Valid values: `emergency`, `alert`, `critical`, `error`, `warning`, `notification`, `information`, `debug`.
Severity *string `pulumi:"severity"`
// Enable/disable sniffer traffic logging. Valid values: `enable`, `disable`.
SnifferTraffic *string `pulumi:"snifferTraffic"`
// Enable/disable SSH logging. Valid values: `enable`, `disable`.
Ssh *string `pulumi:"ssh"`
// Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
Vdomparam *string `pulumi:"vdomparam"`
// Enable/disable VoIP logging. Valid values: `enable`, `disable`.
Voip *string `pulumi:"voip"`
// Enable/disable ztna traffic logging. Valid values: `enable`, `disable`.
ZtnaTraffic *string `pulumi:"ztnaTraffic"`
}
// The set of arguments for constructing a Overridefilter resource.
type OverridefilterArgs struct {
// Enable/disable anomaly logging. Valid values: `enable`, `disable`.
Anomaly pulumi.StringPtrInput
// Enable/disable detailed DNS event logging. Valid values: `enable`, `disable`.
Dns pulumi.StringPtrInput
// Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
DynamicSortSubtable pulumi.StringPtrInput
// Syslog 4 filter.
Filter pulumi.StringPtrInput
// Include/exclude logs that match the filter. Valid values: `include`, `exclude`.
FilterType pulumi.StringPtrInput
// Enable/disable Forti-Switch logging. Valid values: `enable`, `disable`.
FortiSwitch pulumi.StringPtrInput
// Enable/disable forward traffic logging. Valid values: `enable`, `disable`.
ForwardTraffic pulumi.StringPtrInput
// Free Style Filters The structure of `freeStyle` block is documented below.
FreeStyles OverridefilterFreeStyleArrayInput
// Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
GetAllTables pulumi.StringPtrInput
// Enable/disable GTP messages logging. Valid values: `enable`, `disable`.
Gtp pulumi.StringPtrInput
// Enable/disable local in or out traffic logging. Valid values: `enable`, `disable`.
LocalTraffic pulumi.StringPtrInput
// Enable/disable multicast traffic logging. Valid values: `enable`, `disable`.
MulticastTraffic pulumi.StringPtrInput
// Enable/disable netscan discovery event logging.
NetscanDiscovery pulumi.StringPtrInput
// Enable/disable netscan vulnerability event logging.
NetscanVulnerability pulumi.StringPtrInput
// Lowest severity level to log. Valid values: `emergency`, `alert`, `critical`, `error`, `warning`, `notification`, `information`, `debug`.
Severity pulumi.StringPtrInput
// Enable/disable sniffer traffic logging. Valid values: `enable`, `disable`.
SnifferTraffic pulumi.StringPtrInput
// Enable/disable SSH logging. Valid values: `enable`, `disable`.
Ssh pulumi.StringPtrInput
// Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
Vdomparam pulumi.StringPtrInput
// Enable/disable VoIP logging. Valid values: `enable`, `disable`.
Voip pulumi.StringPtrInput
// Enable/disable ztna traffic logging. Valid values: `enable`, `disable`.
ZtnaTraffic pulumi.StringPtrInput
}
func (OverridefilterArgs) ElementType() reflect.Type {
return reflect.TypeOf((*overridefilterArgs)(nil)).Elem()
}
type OverridefilterInput interface {
pulumi.Input
ToOverridefilterOutput() OverridefilterOutput
ToOverridefilterOutputWithContext(ctx context.Context) OverridefilterOutput
}
func (*Overridefilter) ElementType() reflect.Type {
return reflect.TypeOf((**Overridefilter)(nil)).Elem()
}
func (i *Overridefilter) ToOverridefilterOutput() OverridefilterOutput {
return i.ToOverridefilterOutputWithContext(context.Background())
}
func (i *Overridefilter) ToOverridefilterOutputWithContext(ctx context.Context) OverridefilterOutput {
return pulumi.ToOutputWithContext(ctx, i).(OverridefilterOutput)
}
// OverridefilterArrayInput is an input type that accepts OverridefilterArray and OverridefilterArrayOutput values.
// You can construct a concrete instance of `OverridefilterArrayInput` via:
//
// OverridefilterArray{ OverridefilterArgs{...} }
type OverridefilterArrayInput interface {
pulumi.Input
ToOverridefilterArrayOutput() OverridefilterArrayOutput
ToOverridefilterArrayOutputWithContext(context.Context) OverridefilterArrayOutput
}
type OverridefilterArray []OverridefilterInput
func (OverridefilterArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*Overridefilter)(nil)).Elem()
}
func (i OverridefilterArray) ToOverridefilterArrayOutput() OverridefilterArrayOutput {
return i.ToOverridefilterArrayOutputWithContext(context.Background())
}
func (i OverridefilterArray) ToOverridefilterArrayOutputWithContext(ctx context.Context) OverridefilterArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(OverridefilterArrayOutput)
}
// OverridefilterMapInput is an input type that accepts OverridefilterMap and OverridefilterMapOutput values.
// You can construct a concrete instance of `OverridefilterMapInput` via:
//
// OverridefilterMap{ "key": OverridefilterArgs{...} }
type OverridefilterMapInput interface {
pulumi.Input
ToOverridefilterMapOutput() OverridefilterMapOutput
ToOverridefilterMapOutputWithContext(context.Context) OverridefilterMapOutput
}
type OverridefilterMap map[string]OverridefilterInput
func (OverridefilterMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*Overridefilter)(nil)).Elem()
}
func (i OverridefilterMap) ToOverridefilterMapOutput() OverridefilterMapOutput {
return i.ToOverridefilterMapOutputWithContext(context.Background())
}
func (i OverridefilterMap) ToOverridefilterMapOutputWithContext(ctx context.Context) OverridefilterMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(OverridefilterMapOutput)
}
type OverridefilterOutput struct{ *pulumi.OutputState }
func (OverridefilterOutput) ElementType() reflect.Type {
return reflect.TypeOf((**Overridefilter)(nil)).Elem()
}
func (o OverridefilterOutput) ToOverridefilterOutput() OverridefilterOutput {
return o
}
func (o OverridefilterOutput) ToOverridefilterOutputWithContext(ctx context.Context) OverridefilterOutput {
return o
}
// Enable/disable anomaly logging. Valid values: `enable`, `disable`.
func (o OverridefilterOutput) Anomaly() pulumi.StringOutput {
return o.ApplyT(func(v *Overridefilter) pulumi.StringOutput { return v.Anomaly }).(pulumi.StringOutput)
}
// Enable/disable detailed DNS event logging. Valid values: `enable`, `disable`.
func (o OverridefilterOutput) Dns() pulumi.StringOutput {
return o.ApplyT(func(v *Overridefilter) pulumi.StringOutput { return v.Dns }).(pulumi.StringOutput)
}
// Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
func (o OverridefilterOutput) DynamicSortSubtable() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Overridefilter) pulumi.StringPtrOutput { return v.DynamicSortSubtable }).(pulumi.StringPtrOutput)
}
// Syslog 4 filter.
func (o OverridefilterOutput) Filter() pulumi.StringOutput {
return o.ApplyT(func(v *Overridefilter) pulumi.StringOutput { return v.Filter }).(pulumi.StringOutput)
}
// Include/exclude logs that match the filter. Valid values: `include`, `exclude`.
func (o OverridefilterOutput) FilterType() pulumi.StringOutput {
return o.ApplyT(func(v *Overridefilter) pulumi.StringOutput { return v.FilterType }).(pulumi.StringOutput)
}
// Enable/disable Forti-Switch logging. Valid values: `enable`, `disable`.
func (o OverridefilterOutput) FortiSwitch() pulumi.StringOutput {
return o.ApplyT(func(v *Overridefilter) pulumi.StringOutput { return v.FortiSwitch }).(pulumi.StringOutput)
}
// Enable/disable forward traffic logging. Valid values: `enable`, `disable`.
func (o OverridefilterOutput) ForwardTraffic() pulumi.StringOutput {
return o.ApplyT(func(v *Overridefilter) pulumi.StringOutput { return v.ForwardTraffic }).(pulumi.StringOutput)
}
// Free Style Filters The structure of `freeStyle` block is documented below.
func (o OverridefilterOutput) FreeStyles() OverridefilterFreeStyleArrayOutput {
return o.ApplyT(func(v *Overridefilter) OverridefilterFreeStyleArrayOutput { return v.FreeStyles }).(OverridefilterFreeStyleArrayOutput)
}
// Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
func (o OverridefilterOutput) GetAllTables() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Overridefilter) pulumi.StringPtrOutput { return v.GetAllTables }).(pulumi.StringPtrOutput)
}
// Enable/disable GTP messages logging. Valid values: `enable`, `disable`.
func (o OverridefilterOutput) Gtp() pulumi.StringOutput {
return o.ApplyT(func(v *Overridefilter) pulumi.StringOutput { return v.Gtp }).(pulumi.StringOutput)
}
// Enable/disable local in or out traffic logging. Valid values: `enable`, `disable`.
func (o OverridefilterOutput) LocalTraffic() pulumi.StringOutput {
return o.ApplyT(func(v *Overridefilter) pulumi.StringOutput { return v.LocalTraffic }).(pulumi.StringOutput)
}
// Enable/disable multicast traffic logging. Valid values: `enable`, `disable`.
func (o OverridefilterOutput) MulticastTraffic() pulumi.StringOutput {
return o.ApplyT(func(v *Overridefilter) pulumi.StringOutput { return v.MulticastTraffic }).(pulumi.StringOutput)
}
// Enable/disable netscan discovery event logging.
func (o OverridefilterOutput) NetscanDiscovery() pulumi.StringOutput {
return o.ApplyT(func(v *Overridefilter) pulumi.StringOutput { return v.NetscanDiscovery }).(pulumi.StringOutput)
}
// Enable/disable netscan vulnerability event logging.
func (o OverridefilterOutput) NetscanVulnerability() pulumi.StringOutput {
return o.ApplyT(func(v *Overridefilter) pulumi.StringOutput { return v.NetscanVulnerability }).(pulumi.StringOutput)
}
// Lowest severity level to log. Valid values: `emergency`, `alert`, `critical`, `error`, `warning`, `notification`, `information`, `debug`.
func (o OverridefilterOutput) Severity() pulumi.StringOutput {
return o.ApplyT(func(v *Overridefilter) pulumi.StringOutput { return v.Severity }).(pulumi.StringOutput)
}
// Enable/disable sniffer traffic logging. Valid values: `enable`, `disable`.
func (o OverridefilterOutput) SnifferTraffic() pulumi.StringOutput {
return o.ApplyT(func(v *Overridefilter) pulumi.StringOutput { return v.SnifferTraffic }).(pulumi.StringOutput)
}
// Enable/disable SSH logging. Valid values: `enable`, `disable`.
func (o OverridefilterOutput) Ssh() pulumi.StringOutput {
return o.ApplyT(func(v *Overridefilter) pulumi.StringOutput { return v.Ssh }).(pulumi.StringOutput)
}
// Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
func (o OverridefilterOutput) Vdomparam() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Overridefilter) pulumi.StringPtrOutput { return v.Vdomparam }).(pulumi.StringPtrOutput)
}
// Enable/disable VoIP logging. Valid values: `enable`, `disable`.
func (o OverridefilterOutput) Voip() pulumi.StringOutput {
return o.ApplyT(func(v *Overridefilter) pulumi.StringOutput { return v.Voip }).(pulumi.StringOutput)
}
// Enable/disable ztna traffic logging. Valid values: `enable`, `disable`.
func (o OverridefilterOutput) ZtnaTraffic() pulumi.StringOutput {
return o.ApplyT(func(v *Overridefilter) pulumi.StringOutput { return v.ZtnaTraffic }).(pulumi.StringOutput)
}
type OverridefilterArrayOutput struct{ *pulumi.OutputState }
func (OverridefilterArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*Overridefilter)(nil)).Elem()
}
func (o OverridefilterArrayOutput) ToOverridefilterArrayOutput() OverridefilterArrayOutput {
return o
}
func (o OverridefilterArrayOutput) ToOverridefilterArrayOutputWithContext(ctx context.Context) OverridefilterArrayOutput {
return o
}
func (o OverridefilterArrayOutput) Index(i pulumi.IntInput) OverridefilterOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *Overridefilter {
return vs[0].([]*Overridefilter)[vs[1].(int)]
}).(OverridefilterOutput)
}
type OverridefilterMapOutput struct{ *pulumi.OutputState }
func (OverridefilterMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*Overridefilter)(nil)).Elem()
}
func (o OverridefilterMapOutput) ToOverridefilterMapOutput() OverridefilterMapOutput {
return o
}
func (o OverridefilterMapOutput) ToOverridefilterMapOutputWithContext(ctx context.Context) OverridefilterMapOutput {
return o
}
func (o OverridefilterMapOutput) MapIndex(k pulumi.StringInput) OverridefilterOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *Overridefilter {
return vs[0].(map[string]*Overridefilter)[vs[1].(string)]
}).(OverridefilterOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*OverridefilterInput)(nil)).Elem(), &Overridefilter{})
pulumi.RegisterInputType(reflect.TypeOf((*OverridefilterArrayInput)(nil)).Elem(), OverridefilterArray{})
pulumi.RegisterInputType(reflect.TypeOf((*OverridefilterMapInput)(nil)).Elem(), OverridefilterMap{})
pulumi.RegisterOutputType(OverridefilterOutput{})
pulumi.RegisterOutputType(OverridefilterArrayOutput{})
pulumi.RegisterOutputType(OverridefilterMapOutput{})
}