/
profile.go
931 lines (840 loc) · 51.7 KB
/
profile.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
// 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 antivirus
import (
"context"
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-fortios/sdk/go/fortios/internal"
)
// Configure AntiVirus profiles.
//
// ## Example Usage
//
// <!--Start PulumiCodeChooser -->
// ```go
// package main
//
// import (
//
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
// "github.com/pulumiverse/pulumi-fortios/sdk/go/fortios/antivirus"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// _, err := antivirus.NewProfile(ctx, "trname", &antivirus.ProfileArgs{
// AnalyticsBlFiletype: pulumi.Int(0),
// AnalyticsDb: pulumi.String("disable"),
// AnalyticsMaxUpload: pulumi.Int(10),
// AnalyticsWlFiletype: pulumi.Int(0),
// AvBlockLog: pulumi.String("enable"),
// AvVirusLog: pulumi.String("enable"),
// ExtendedLog: pulumi.String("disable"),
// FtgdAnalytics: pulumi.String("disable"),
// InspectionMode: pulumi.String("flow-based"),
// MobileMalwareDb: pulumi.String("enable"),
// ScanMode: pulumi.String("quick"),
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
// <!--End PulumiCodeChooser -->
//
// ## Import
//
// Antivirus Profile can be imported using any of these accepted formats:
//
// ```sh
// $ pulumi import fortios:antivirus/profile:Profile labelname {{name}}
// ```
//
// If you do not want to import arguments of block:
//
// $ export "FORTIOS_IMPORT_TABLE"="false"
//
// ```sh
// $ pulumi import fortios:antivirus/profile:Profile labelname {{name}}
// ```
//
// $ unset "FORTIOS_IMPORT_TABLE"
type Profile struct {
pulumi.CustomResourceState
// Only submit files matching this DLP file-pattern to FortiSandbox.
AnalyticsAcceptFiletype pulumi.IntOutput `pulumi:"analyticsAcceptFiletype"`
// Only submit files matching this DLP file-pattern to FortiSandbox.
AnalyticsBlFiletype pulumi.IntOutput `pulumi:"analyticsBlFiletype"`
// Enable/disable using the FortiSandbox signature database to supplement the AV signature databases. Valid values: `disable`, `enable`.
AnalyticsDb pulumi.StringOutput `pulumi:"analyticsDb"`
// Do not submit files matching this DLP file-pattern to FortiSandbox (post-transfer scan only).
AnalyticsIgnoreFiletype pulumi.IntOutput `pulumi:"analyticsIgnoreFiletype"`
// Maximum size of files that can be uploaded to FortiSandbox.
AnalyticsMaxUpload pulumi.IntOutput `pulumi:"analyticsMaxUpload"`
// Do not submit files matching this DLP file-pattern to FortiSandbox.
AnalyticsWlFiletype pulumi.IntOutput `pulumi:"analyticsWlFiletype"`
// Enable/disable logging for AntiVirus file blocking. Valid values: `enable`, `disable`.
AvBlockLog pulumi.StringOutput `pulumi:"avBlockLog"`
// Enable/disable AntiVirus logging. Valid values: `enable`, `disable`.
AvVirusLog pulumi.StringOutput `pulumi:"avVirusLog"`
// Configure CIFS AntiVirus options. The structure of `cifs` block is documented below.
Cifs ProfileCifsOutput `pulumi:"cifs"`
// Comment.
Comment pulumi.StringPtrOutput `pulumi:"comment"`
// AV Content Disarm and Reconstruction settings. The structure of `contentDisarm` block is documented below.
ContentDisarm ProfileContentDisarmOutput `pulumi:"contentDisarm"`
// 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"`
// Enable/disable use of EMS threat feed when performing AntiVirus scan. Analyzes files including the content of archives. Valid values: `disable`, `enable`.
EmsThreatFeed pulumi.StringOutput `pulumi:"emsThreatFeed"`
// Enable/disable extended logging for antivirus. Valid values: `enable`, `disable`.
ExtendedLog pulumi.StringOutput `pulumi:"extendedLog"`
// Enable/disable all external blocklists. Valid values: `disable`, `enable`.
ExternalBlocklistEnableAll pulumi.StringOutput `pulumi:"externalBlocklistEnableAll"`
// One or more external malware block lists. The structure of `externalBlocklist` block is documented below.
ExternalBlocklists ProfileExternalBlocklistArrayOutput `pulumi:"externalBlocklists"`
// Flow/proxy feature set. Valid values: `flow`, `proxy`.
FeatureSet pulumi.StringOutput `pulumi:"featureSet"`
// Action to take if FortiAI encounters an error. Valid values: `log-only`, `block`, `ignore`.
FortiaiErrorAction pulumi.StringOutput `pulumi:"fortiaiErrorAction"`
// Action to take if FortiAI encounters a scan timeout. Valid values: `log-only`, `block`, `ignore`.
FortiaiTimeoutAction pulumi.StringOutput `pulumi:"fortiaiTimeoutAction"`
// Action to take if FortiNDR encounters an error. Valid values: `log-only`, `block`, `ignore`.
FortindrErrorAction pulumi.StringOutput `pulumi:"fortindrErrorAction"`
// Action to take if FortiNDR encounters a scan timeout. Valid values: `log-only`, `block`, `ignore`.
FortindrTimeoutAction pulumi.StringOutput `pulumi:"fortindrTimeoutAction"`
// Action to take if FortiSandbox inline scan encounters an error. Valid values: `log-only`, `block`, `ignore`.
FortisandboxErrorAction pulumi.StringOutput `pulumi:"fortisandboxErrorAction"`
// Maximum size of files that can be uploaded to FortiSandbox.
FortisandboxMaxUpload pulumi.IntOutput `pulumi:"fortisandboxMaxUpload"`
// FortiSandbox scan modes. Valid values: `inline`, `analytics-suspicious`, `analytics-everything`.
FortisandboxMode pulumi.StringOutput `pulumi:"fortisandboxMode"`
// Action to take if FortiSandbox inline scan encounters a scan timeout. Valid values: `log-only`, `block`, `ignore`.
FortisandboxTimeoutAction pulumi.StringOutput `pulumi:"fortisandboxTimeoutAction"`
// Settings to control which files are uploaded to FortiSandbox. Valid values: `disable`, `suspicious`, `everything`.
FtgdAnalytics pulumi.StringOutput `pulumi:"ftgdAnalytics"`
// Configure FTP AntiVirus options. The structure of `ftp` block is documented below.
Ftp ProfileFtpOutput `pulumi:"ftp"`
// 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"`
// Configure HTTP AntiVirus options. The structure of `http` block is documented below.
Http ProfileHttpOutput `pulumi:"http"`
// Configure IMAP AntiVirus options. The structure of `imap` block is documented below.
Imap ProfileImapOutput `pulumi:"imap"`
// Inspection mode. Valid values: `proxy`, `flow-based`.
InspectionMode pulumi.StringOutput `pulumi:"inspectionMode"`
// Configure MAPI AntiVirus options. The structure of `mapi` block is documented below.
Mapi ProfileMapiOutput `pulumi:"mapi"`
// Enable/disable using the mobile malware signature database. Valid values: `disable`, `enable`.
MobileMalwareDb pulumi.StringOutput `pulumi:"mobileMalwareDb"`
// Configure AntiVirus quarantine settings. The structure of `nacQuar` block is documented below.
NacQuar ProfileNacQuarOutput `pulumi:"nacQuar"`
// Profile name.
Name pulumi.StringOutput `pulumi:"name"`
// Configure NNTP AntiVirus options. The structure of `nntp` block is documented below.
Nntp ProfileNntpOutput `pulumi:"nntp"`
// Configure Virus Outbreak Prevention settings. The structure of `outbreakPrevention` block is documented below.
OutbreakPrevention ProfileOutbreakPreventionOutput `pulumi:"outbreakPrevention"`
// Enable/disable outbreak-prevention archive scanning. Valid values: `disable`, `enable`.
OutbreakPreventionArchiveScan pulumi.StringOutput `pulumi:"outbreakPreventionArchiveScan"`
// Configure POP3 AntiVirus options. The structure of `pop3` block is documented below.
Pop3 ProfilePop3Output `pulumi:"pop3"`
// Replacement message group customized for this profile.
ReplacemsgGroup pulumi.StringOutput `pulumi:"replacemsgGroup"`
// Configure scan mode (default or legacy).
ScanMode pulumi.StringOutput `pulumi:"scanMode"`
// Configure SMB AntiVirus options. The structure of `smb` block is documented below.
Smb ProfileSmbOutput `pulumi:"smb"`
// Configure SMTP AntiVirus options. The structure of `smtp` block is documented below.
Smtp ProfileSmtpOutput `pulumi:"smtp"`
// Configure SFTP and SCP AntiVirus options. The structure of `ssh` block is documented below.
Ssh ProfileSshOutput `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"`
}
// NewProfile registers a new resource with the given unique name, arguments, and options.
func NewProfile(ctx *pulumi.Context,
name string, args *ProfileArgs, opts ...pulumi.ResourceOption) (*Profile, error) {
if args == nil {
args = &ProfileArgs{}
}
opts = internal.PkgResourceDefaultOpts(opts)
var resource Profile
err := ctx.RegisterResource("fortios:antivirus/profile:Profile", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetProfile gets an existing Profile 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 GetProfile(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *ProfileState, opts ...pulumi.ResourceOption) (*Profile, error) {
var resource Profile
err := ctx.ReadResource("fortios:antivirus/profile:Profile", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering Profile resources.
type profileState struct {
// Only submit files matching this DLP file-pattern to FortiSandbox.
AnalyticsAcceptFiletype *int `pulumi:"analyticsAcceptFiletype"`
// Only submit files matching this DLP file-pattern to FortiSandbox.
AnalyticsBlFiletype *int `pulumi:"analyticsBlFiletype"`
// Enable/disable using the FortiSandbox signature database to supplement the AV signature databases. Valid values: `disable`, `enable`.
AnalyticsDb *string `pulumi:"analyticsDb"`
// Do not submit files matching this DLP file-pattern to FortiSandbox (post-transfer scan only).
AnalyticsIgnoreFiletype *int `pulumi:"analyticsIgnoreFiletype"`
// Maximum size of files that can be uploaded to FortiSandbox.
AnalyticsMaxUpload *int `pulumi:"analyticsMaxUpload"`
// Do not submit files matching this DLP file-pattern to FortiSandbox.
AnalyticsWlFiletype *int `pulumi:"analyticsWlFiletype"`
// Enable/disable logging for AntiVirus file blocking. Valid values: `enable`, `disable`.
AvBlockLog *string `pulumi:"avBlockLog"`
// Enable/disable AntiVirus logging. Valid values: `enable`, `disable`.
AvVirusLog *string `pulumi:"avVirusLog"`
// Configure CIFS AntiVirus options. The structure of `cifs` block is documented below.
Cifs *ProfileCifs `pulumi:"cifs"`
// Comment.
Comment *string `pulumi:"comment"`
// AV Content Disarm and Reconstruction settings. The structure of `contentDisarm` block is documented below.
ContentDisarm *ProfileContentDisarm `pulumi:"contentDisarm"`
// 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"`
// Enable/disable use of EMS threat feed when performing AntiVirus scan. Analyzes files including the content of archives. Valid values: `disable`, `enable`.
EmsThreatFeed *string `pulumi:"emsThreatFeed"`
// Enable/disable extended logging for antivirus. Valid values: `enable`, `disable`.
ExtendedLog *string `pulumi:"extendedLog"`
// Enable/disable all external blocklists. Valid values: `disable`, `enable`.
ExternalBlocklistEnableAll *string `pulumi:"externalBlocklistEnableAll"`
// One or more external malware block lists. The structure of `externalBlocklist` block is documented below.
ExternalBlocklists []ProfileExternalBlocklist `pulumi:"externalBlocklists"`
// Flow/proxy feature set. Valid values: `flow`, `proxy`.
FeatureSet *string `pulumi:"featureSet"`
// Action to take if FortiAI encounters an error. Valid values: `log-only`, `block`, `ignore`.
FortiaiErrorAction *string `pulumi:"fortiaiErrorAction"`
// Action to take if FortiAI encounters a scan timeout. Valid values: `log-only`, `block`, `ignore`.
FortiaiTimeoutAction *string `pulumi:"fortiaiTimeoutAction"`
// Action to take if FortiNDR encounters an error. Valid values: `log-only`, `block`, `ignore`.
FortindrErrorAction *string `pulumi:"fortindrErrorAction"`
// Action to take if FortiNDR encounters a scan timeout. Valid values: `log-only`, `block`, `ignore`.
FortindrTimeoutAction *string `pulumi:"fortindrTimeoutAction"`
// Action to take if FortiSandbox inline scan encounters an error. Valid values: `log-only`, `block`, `ignore`.
FortisandboxErrorAction *string `pulumi:"fortisandboxErrorAction"`
// Maximum size of files that can be uploaded to FortiSandbox.
FortisandboxMaxUpload *int `pulumi:"fortisandboxMaxUpload"`
// FortiSandbox scan modes. Valid values: `inline`, `analytics-suspicious`, `analytics-everything`.
FortisandboxMode *string `pulumi:"fortisandboxMode"`
// Action to take if FortiSandbox inline scan encounters a scan timeout. Valid values: `log-only`, `block`, `ignore`.
FortisandboxTimeoutAction *string `pulumi:"fortisandboxTimeoutAction"`
// Settings to control which files are uploaded to FortiSandbox. Valid values: `disable`, `suspicious`, `everything`.
FtgdAnalytics *string `pulumi:"ftgdAnalytics"`
// Configure FTP AntiVirus options. The structure of `ftp` block is documented below.
Ftp *ProfileFtp `pulumi:"ftp"`
// 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"`
// Configure HTTP AntiVirus options. The structure of `http` block is documented below.
Http *ProfileHttp `pulumi:"http"`
// Configure IMAP AntiVirus options. The structure of `imap` block is documented below.
Imap *ProfileImap `pulumi:"imap"`
// Inspection mode. Valid values: `proxy`, `flow-based`.
InspectionMode *string `pulumi:"inspectionMode"`
// Configure MAPI AntiVirus options. The structure of `mapi` block is documented below.
Mapi *ProfileMapi `pulumi:"mapi"`
// Enable/disable using the mobile malware signature database. Valid values: `disable`, `enable`.
MobileMalwareDb *string `pulumi:"mobileMalwareDb"`
// Configure AntiVirus quarantine settings. The structure of `nacQuar` block is documented below.
NacQuar *ProfileNacQuar `pulumi:"nacQuar"`
// Profile name.
Name *string `pulumi:"name"`
// Configure NNTP AntiVirus options. The structure of `nntp` block is documented below.
Nntp *ProfileNntp `pulumi:"nntp"`
// Configure Virus Outbreak Prevention settings. The structure of `outbreakPrevention` block is documented below.
OutbreakPrevention *ProfileOutbreakPrevention `pulumi:"outbreakPrevention"`
// Enable/disable outbreak-prevention archive scanning. Valid values: `disable`, `enable`.
OutbreakPreventionArchiveScan *string `pulumi:"outbreakPreventionArchiveScan"`
// Configure POP3 AntiVirus options. The structure of `pop3` block is documented below.
Pop3 *ProfilePop3 `pulumi:"pop3"`
// Replacement message group customized for this profile.
ReplacemsgGroup *string `pulumi:"replacemsgGroup"`
// Configure scan mode (default or legacy).
ScanMode *string `pulumi:"scanMode"`
// Configure SMB AntiVirus options. The structure of `smb` block is documented below.
Smb *ProfileSmb `pulumi:"smb"`
// Configure SMTP AntiVirus options. The structure of `smtp` block is documented below.
Smtp *ProfileSmtp `pulumi:"smtp"`
// Configure SFTP and SCP AntiVirus options. The structure of `ssh` block is documented below.
Ssh *ProfileSsh `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"`
}
type ProfileState struct {
// Only submit files matching this DLP file-pattern to FortiSandbox.
AnalyticsAcceptFiletype pulumi.IntPtrInput
// Only submit files matching this DLP file-pattern to FortiSandbox.
AnalyticsBlFiletype pulumi.IntPtrInput
// Enable/disable using the FortiSandbox signature database to supplement the AV signature databases. Valid values: `disable`, `enable`.
AnalyticsDb pulumi.StringPtrInput
// Do not submit files matching this DLP file-pattern to FortiSandbox (post-transfer scan only).
AnalyticsIgnoreFiletype pulumi.IntPtrInput
// Maximum size of files that can be uploaded to FortiSandbox.
AnalyticsMaxUpload pulumi.IntPtrInput
// Do not submit files matching this DLP file-pattern to FortiSandbox.
AnalyticsWlFiletype pulumi.IntPtrInput
// Enable/disable logging for AntiVirus file blocking. Valid values: `enable`, `disable`.
AvBlockLog pulumi.StringPtrInput
// Enable/disable AntiVirus logging. Valid values: `enable`, `disable`.
AvVirusLog pulumi.StringPtrInput
// Configure CIFS AntiVirus options. The structure of `cifs` block is documented below.
Cifs ProfileCifsPtrInput
// Comment.
Comment pulumi.StringPtrInput
// AV Content Disarm and Reconstruction settings. The structure of `contentDisarm` block is documented below.
ContentDisarm ProfileContentDisarmPtrInput
// 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
// Enable/disable use of EMS threat feed when performing AntiVirus scan. Analyzes files including the content of archives. Valid values: `disable`, `enable`.
EmsThreatFeed pulumi.StringPtrInput
// Enable/disable extended logging for antivirus. Valid values: `enable`, `disable`.
ExtendedLog pulumi.StringPtrInput
// Enable/disable all external blocklists. Valid values: `disable`, `enable`.
ExternalBlocklistEnableAll pulumi.StringPtrInput
// One or more external malware block lists. The structure of `externalBlocklist` block is documented below.
ExternalBlocklists ProfileExternalBlocklistArrayInput
// Flow/proxy feature set. Valid values: `flow`, `proxy`.
FeatureSet pulumi.StringPtrInput
// Action to take if FortiAI encounters an error. Valid values: `log-only`, `block`, `ignore`.
FortiaiErrorAction pulumi.StringPtrInput
// Action to take if FortiAI encounters a scan timeout. Valid values: `log-only`, `block`, `ignore`.
FortiaiTimeoutAction pulumi.StringPtrInput
// Action to take if FortiNDR encounters an error. Valid values: `log-only`, `block`, `ignore`.
FortindrErrorAction pulumi.StringPtrInput
// Action to take if FortiNDR encounters a scan timeout. Valid values: `log-only`, `block`, `ignore`.
FortindrTimeoutAction pulumi.StringPtrInput
// Action to take if FortiSandbox inline scan encounters an error. Valid values: `log-only`, `block`, `ignore`.
FortisandboxErrorAction pulumi.StringPtrInput
// Maximum size of files that can be uploaded to FortiSandbox.
FortisandboxMaxUpload pulumi.IntPtrInput
// FortiSandbox scan modes. Valid values: `inline`, `analytics-suspicious`, `analytics-everything`.
FortisandboxMode pulumi.StringPtrInput
// Action to take if FortiSandbox inline scan encounters a scan timeout. Valid values: `log-only`, `block`, `ignore`.
FortisandboxTimeoutAction pulumi.StringPtrInput
// Settings to control which files are uploaded to FortiSandbox. Valid values: `disable`, `suspicious`, `everything`.
FtgdAnalytics pulumi.StringPtrInput
// Configure FTP AntiVirus options. The structure of `ftp` block is documented below.
Ftp ProfileFtpPtrInput
// 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
// Configure HTTP AntiVirus options. The structure of `http` block is documented below.
Http ProfileHttpPtrInput
// Configure IMAP AntiVirus options. The structure of `imap` block is documented below.
Imap ProfileImapPtrInput
// Inspection mode. Valid values: `proxy`, `flow-based`.
InspectionMode pulumi.StringPtrInput
// Configure MAPI AntiVirus options. The structure of `mapi` block is documented below.
Mapi ProfileMapiPtrInput
// Enable/disable using the mobile malware signature database. Valid values: `disable`, `enable`.
MobileMalwareDb pulumi.StringPtrInput
// Configure AntiVirus quarantine settings. The structure of `nacQuar` block is documented below.
NacQuar ProfileNacQuarPtrInput
// Profile name.
Name pulumi.StringPtrInput
// Configure NNTP AntiVirus options. The structure of `nntp` block is documented below.
Nntp ProfileNntpPtrInput
// Configure Virus Outbreak Prevention settings. The structure of `outbreakPrevention` block is documented below.
OutbreakPrevention ProfileOutbreakPreventionPtrInput
// Enable/disable outbreak-prevention archive scanning. Valid values: `disable`, `enable`.
OutbreakPreventionArchiveScan pulumi.StringPtrInput
// Configure POP3 AntiVirus options. The structure of `pop3` block is documented below.
Pop3 ProfilePop3PtrInput
// Replacement message group customized for this profile.
ReplacemsgGroup pulumi.StringPtrInput
// Configure scan mode (default or legacy).
ScanMode pulumi.StringPtrInput
// Configure SMB AntiVirus options. The structure of `smb` block is documented below.
Smb ProfileSmbPtrInput
// Configure SMTP AntiVirus options. The structure of `smtp` block is documented below.
Smtp ProfileSmtpPtrInput
// Configure SFTP and SCP AntiVirus options. The structure of `ssh` block is documented below.
Ssh ProfileSshPtrInput
// 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
}
func (ProfileState) ElementType() reflect.Type {
return reflect.TypeOf((*profileState)(nil)).Elem()
}
type profileArgs struct {
// Only submit files matching this DLP file-pattern to FortiSandbox.
AnalyticsAcceptFiletype *int `pulumi:"analyticsAcceptFiletype"`
// Only submit files matching this DLP file-pattern to FortiSandbox.
AnalyticsBlFiletype *int `pulumi:"analyticsBlFiletype"`
// Enable/disable using the FortiSandbox signature database to supplement the AV signature databases. Valid values: `disable`, `enable`.
AnalyticsDb *string `pulumi:"analyticsDb"`
// Do not submit files matching this DLP file-pattern to FortiSandbox (post-transfer scan only).
AnalyticsIgnoreFiletype *int `pulumi:"analyticsIgnoreFiletype"`
// Maximum size of files that can be uploaded to FortiSandbox.
AnalyticsMaxUpload *int `pulumi:"analyticsMaxUpload"`
// Do not submit files matching this DLP file-pattern to FortiSandbox.
AnalyticsWlFiletype *int `pulumi:"analyticsWlFiletype"`
// Enable/disable logging for AntiVirus file blocking. Valid values: `enable`, `disable`.
AvBlockLog *string `pulumi:"avBlockLog"`
// Enable/disable AntiVirus logging. Valid values: `enable`, `disable`.
AvVirusLog *string `pulumi:"avVirusLog"`
// Configure CIFS AntiVirus options. The structure of `cifs` block is documented below.
Cifs *ProfileCifs `pulumi:"cifs"`
// Comment.
Comment *string `pulumi:"comment"`
// AV Content Disarm and Reconstruction settings. The structure of `contentDisarm` block is documented below.
ContentDisarm *ProfileContentDisarm `pulumi:"contentDisarm"`
// 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"`
// Enable/disable use of EMS threat feed when performing AntiVirus scan. Analyzes files including the content of archives. Valid values: `disable`, `enable`.
EmsThreatFeed *string `pulumi:"emsThreatFeed"`
// Enable/disable extended logging for antivirus. Valid values: `enable`, `disable`.
ExtendedLog *string `pulumi:"extendedLog"`
// Enable/disable all external blocklists. Valid values: `disable`, `enable`.
ExternalBlocklistEnableAll *string `pulumi:"externalBlocklistEnableAll"`
// One or more external malware block lists. The structure of `externalBlocklist` block is documented below.
ExternalBlocklists []ProfileExternalBlocklist `pulumi:"externalBlocklists"`
// Flow/proxy feature set. Valid values: `flow`, `proxy`.
FeatureSet *string `pulumi:"featureSet"`
// Action to take if FortiAI encounters an error. Valid values: `log-only`, `block`, `ignore`.
FortiaiErrorAction *string `pulumi:"fortiaiErrorAction"`
// Action to take if FortiAI encounters a scan timeout. Valid values: `log-only`, `block`, `ignore`.
FortiaiTimeoutAction *string `pulumi:"fortiaiTimeoutAction"`
// Action to take if FortiNDR encounters an error. Valid values: `log-only`, `block`, `ignore`.
FortindrErrorAction *string `pulumi:"fortindrErrorAction"`
// Action to take if FortiNDR encounters a scan timeout. Valid values: `log-only`, `block`, `ignore`.
FortindrTimeoutAction *string `pulumi:"fortindrTimeoutAction"`
// Action to take if FortiSandbox inline scan encounters an error. Valid values: `log-only`, `block`, `ignore`.
FortisandboxErrorAction *string `pulumi:"fortisandboxErrorAction"`
// Maximum size of files that can be uploaded to FortiSandbox.
FortisandboxMaxUpload *int `pulumi:"fortisandboxMaxUpload"`
// FortiSandbox scan modes. Valid values: `inline`, `analytics-suspicious`, `analytics-everything`.
FortisandboxMode *string `pulumi:"fortisandboxMode"`
// Action to take if FortiSandbox inline scan encounters a scan timeout. Valid values: `log-only`, `block`, `ignore`.
FortisandboxTimeoutAction *string `pulumi:"fortisandboxTimeoutAction"`
// Settings to control which files are uploaded to FortiSandbox. Valid values: `disable`, `suspicious`, `everything`.
FtgdAnalytics *string `pulumi:"ftgdAnalytics"`
// Configure FTP AntiVirus options. The structure of `ftp` block is documented below.
Ftp *ProfileFtp `pulumi:"ftp"`
// 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"`
// Configure HTTP AntiVirus options. The structure of `http` block is documented below.
Http *ProfileHttp `pulumi:"http"`
// Configure IMAP AntiVirus options. The structure of `imap` block is documented below.
Imap *ProfileImap `pulumi:"imap"`
// Inspection mode. Valid values: `proxy`, `flow-based`.
InspectionMode *string `pulumi:"inspectionMode"`
// Configure MAPI AntiVirus options. The structure of `mapi` block is documented below.
Mapi *ProfileMapi `pulumi:"mapi"`
// Enable/disable using the mobile malware signature database. Valid values: `disable`, `enable`.
MobileMalwareDb *string `pulumi:"mobileMalwareDb"`
// Configure AntiVirus quarantine settings. The structure of `nacQuar` block is documented below.
NacQuar *ProfileNacQuar `pulumi:"nacQuar"`
// Profile name.
Name *string `pulumi:"name"`
// Configure NNTP AntiVirus options. The structure of `nntp` block is documented below.
Nntp *ProfileNntp `pulumi:"nntp"`
// Configure Virus Outbreak Prevention settings. The structure of `outbreakPrevention` block is documented below.
OutbreakPrevention *ProfileOutbreakPrevention `pulumi:"outbreakPrevention"`
// Enable/disable outbreak-prevention archive scanning. Valid values: `disable`, `enable`.
OutbreakPreventionArchiveScan *string `pulumi:"outbreakPreventionArchiveScan"`
// Configure POP3 AntiVirus options. The structure of `pop3` block is documented below.
Pop3 *ProfilePop3 `pulumi:"pop3"`
// Replacement message group customized for this profile.
ReplacemsgGroup *string `pulumi:"replacemsgGroup"`
// Configure scan mode (default or legacy).
ScanMode *string `pulumi:"scanMode"`
// Configure SMB AntiVirus options. The structure of `smb` block is documented below.
Smb *ProfileSmb `pulumi:"smb"`
// Configure SMTP AntiVirus options. The structure of `smtp` block is documented below.
Smtp *ProfileSmtp `pulumi:"smtp"`
// Configure SFTP and SCP AntiVirus options. The structure of `ssh` block is documented below.
Ssh *ProfileSsh `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"`
}
// The set of arguments for constructing a Profile resource.
type ProfileArgs struct {
// Only submit files matching this DLP file-pattern to FortiSandbox.
AnalyticsAcceptFiletype pulumi.IntPtrInput
// Only submit files matching this DLP file-pattern to FortiSandbox.
AnalyticsBlFiletype pulumi.IntPtrInput
// Enable/disable using the FortiSandbox signature database to supplement the AV signature databases. Valid values: `disable`, `enable`.
AnalyticsDb pulumi.StringPtrInput
// Do not submit files matching this DLP file-pattern to FortiSandbox (post-transfer scan only).
AnalyticsIgnoreFiletype pulumi.IntPtrInput
// Maximum size of files that can be uploaded to FortiSandbox.
AnalyticsMaxUpload pulumi.IntPtrInput
// Do not submit files matching this DLP file-pattern to FortiSandbox.
AnalyticsWlFiletype pulumi.IntPtrInput
// Enable/disable logging for AntiVirus file blocking. Valid values: `enable`, `disable`.
AvBlockLog pulumi.StringPtrInput
// Enable/disable AntiVirus logging. Valid values: `enable`, `disable`.
AvVirusLog pulumi.StringPtrInput
// Configure CIFS AntiVirus options. The structure of `cifs` block is documented below.
Cifs ProfileCifsPtrInput
// Comment.
Comment pulumi.StringPtrInput
// AV Content Disarm and Reconstruction settings. The structure of `contentDisarm` block is documented below.
ContentDisarm ProfileContentDisarmPtrInput
// 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
// Enable/disable use of EMS threat feed when performing AntiVirus scan. Analyzes files including the content of archives. Valid values: `disable`, `enable`.
EmsThreatFeed pulumi.StringPtrInput
// Enable/disable extended logging for antivirus. Valid values: `enable`, `disable`.
ExtendedLog pulumi.StringPtrInput
// Enable/disable all external blocklists. Valid values: `disable`, `enable`.
ExternalBlocklistEnableAll pulumi.StringPtrInput
// One or more external malware block lists. The structure of `externalBlocklist` block is documented below.
ExternalBlocklists ProfileExternalBlocklistArrayInput
// Flow/proxy feature set. Valid values: `flow`, `proxy`.
FeatureSet pulumi.StringPtrInput
// Action to take if FortiAI encounters an error. Valid values: `log-only`, `block`, `ignore`.
FortiaiErrorAction pulumi.StringPtrInput
// Action to take if FortiAI encounters a scan timeout. Valid values: `log-only`, `block`, `ignore`.
FortiaiTimeoutAction pulumi.StringPtrInput
// Action to take if FortiNDR encounters an error. Valid values: `log-only`, `block`, `ignore`.
FortindrErrorAction pulumi.StringPtrInput
// Action to take if FortiNDR encounters a scan timeout. Valid values: `log-only`, `block`, `ignore`.
FortindrTimeoutAction pulumi.StringPtrInput
// Action to take if FortiSandbox inline scan encounters an error. Valid values: `log-only`, `block`, `ignore`.
FortisandboxErrorAction pulumi.StringPtrInput
// Maximum size of files that can be uploaded to FortiSandbox.
FortisandboxMaxUpload pulumi.IntPtrInput
// FortiSandbox scan modes. Valid values: `inline`, `analytics-suspicious`, `analytics-everything`.
FortisandboxMode pulumi.StringPtrInput
// Action to take if FortiSandbox inline scan encounters a scan timeout. Valid values: `log-only`, `block`, `ignore`.
FortisandboxTimeoutAction pulumi.StringPtrInput
// Settings to control which files are uploaded to FortiSandbox. Valid values: `disable`, `suspicious`, `everything`.
FtgdAnalytics pulumi.StringPtrInput
// Configure FTP AntiVirus options. The structure of `ftp` block is documented below.
Ftp ProfileFtpPtrInput
// 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
// Configure HTTP AntiVirus options. The structure of `http` block is documented below.
Http ProfileHttpPtrInput
// Configure IMAP AntiVirus options. The structure of `imap` block is documented below.
Imap ProfileImapPtrInput
// Inspection mode. Valid values: `proxy`, `flow-based`.
InspectionMode pulumi.StringPtrInput
// Configure MAPI AntiVirus options. The structure of `mapi` block is documented below.
Mapi ProfileMapiPtrInput
// Enable/disable using the mobile malware signature database. Valid values: `disable`, `enable`.
MobileMalwareDb pulumi.StringPtrInput
// Configure AntiVirus quarantine settings. The structure of `nacQuar` block is documented below.
NacQuar ProfileNacQuarPtrInput
// Profile name.
Name pulumi.StringPtrInput
// Configure NNTP AntiVirus options. The structure of `nntp` block is documented below.
Nntp ProfileNntpPtrInput
// Configure Virus Outbreak Prevention settings. The structure of `outbreakPrevention` block is documented below.
OutbreakPrevention ProfileOutbreakPreventionPtrInput
// Enable/disable outbreak-prevention archive scanning. Valid values: `disable`, `enable`.
OutbreakPreventionArchiveScan pulumi.StringPtrInput
// Configure POP3 AntiVirus options. The structure of `pop3` block is documented below.
Pop3 ProfilePop3PtrInput
// Replacement message group customized for this profile.
ReplacemsgGroup pulumi.StringPtrInput
// Configure scan mode (default or legacy).
ScanMode pulumi.StringPtrInput
// Configure SMB AntiVirus options. The structure of `smb` block is documented below.
Smb ProfileSmbPtrInput
// Configure SMTP AntiVirus options. The structure of `smtp` block is documented below.
Smtp ProfileSmtpPtrInput
// Configure SFTP and SCP AntiVirus options. The structure of `ssh` block is documented below.
Ssh ProfileSshPtrInput
// 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
}
func (ProfileArgs) ElementType() reflect.Type {
return reflect.TypeOf((*profileArgs)(nil)).Elem()
}
type ProfileInput interface {
pulumi.Input
ToProfileOutput() ProfileOutput
ToProfileOutputWithContext(ctx context.Context) ProfileOutput
}
func (*Profile) ElementType() reflect.Type {
return reflect.TypeOf((**Profile)(nil)).Elem()
}
func (i *Profile) ToProfileOutput() ProfileOutput {
return i.ToProfileOutputWithContext(context.Background())
}
func (i *Profile) ToProfileOutputWithContext(ctx context.Context) ProfileOutput {
return pulumi.ToOutputWithContext(ctx, i).(ProfileOutput)
}
// ProfileArrayInput is an input type that accepts ProfileArray and ProfileArrayOutput values.
// You can construct a concrete instance of `ProfileArrayInput` via:
//
// ProfileArray{ ProfileArgs{...} }
type ProfileArrayInput interface {
pulumi.Input
ToProfileArrayOutput() ProfileArrayOutput
ToProfileArrayOutputWithContext(context.Context) ProfileArrayOutput
}
type ProfileArray []ProfileInput
func (ProfileArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*Profile)(nil)).Elem()
}
func (i ProfileArray) ToProfileArrayOutput() ProfileArrayOutput {
return i.ToProfileArrayOutputWithContext(context.Background())
}
func (i ProfileArray) ToProfileArrayOutputWithContext(ctx context.Context) ProfileArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(ProfileArrayOutput)
}
// ProfileMapInput is an input type that accepts ProfileMap and ProfileMapOutput values.
// You can construct a concrete instance of `ProfileMapInput` via:
//
// ProfileMap{ "key": ProfileArgs{...} }
type ProfileMapInput interface {
pulumi.Input
ToProfileMapOutput() ProfileMapOutput
ToProfileMapOutputWithContext(context.Context) ProfileMapOutput
}
type ProfileMap map[string]ProfileInput
func (ProfileMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*Profile)(nil)).Elem()
}
func (i ProfileMap) ToProfileMapOutput() ProfileMapOutput {
return i.ToProfileMapOutputWithContext(context.Background())
}
func (i ProfileMap) ToProfileMapOutputWithContext(ctx context.Context) ProfileMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(ProfileMapOutput)
}
type ProfileOutput struct{ *pulumi.OutputState }
func (ProfileOutput) ElementType() reflect.Type {
return reflect.TypeOf((**Profile)(nil)).Elem()
}
func (o ProfileOutput) ToProfileOutput() ProfileOutput {
return o
}
func (o ProfileOutput) ToProfileOutputWithContext(ctx context.Context) ProfileOutput {
return o
}
// Only submit files matching this DLP file-pattern to FortiSandbox.
func (o ProfileOutput) AnalyticsAcceptFiletype() pulumi.IntOutput {
return o.ApplyT(func(v *Profile) pulumi.IntOutput { return v.AnalyticsAcceptFiletype }).(pulumi.IntOutput)
}
// Only submit files matching this DLP file-pattern to FortiSandbox.
func (o ProfileOutput) AnalyticsBlFiletype() pulumi.IntOutput {
return o.ApplyT(func(v *Profile) pulumi.IntOutput { return v.AnalyticsBlFiletype }).(pulumi.IntOutput)
}
// Enable/disable using the FortiSandbox signature database to supplement the AV signature databases. Valid values: `disable`, `enable`.
func (o ProfileOutput) AnalyticsDb() pulumi.StringOutput {
return o.ApplyT(func(v *Profile) pulumi.StringOutput { return v.AnalyticsDb }).(pulumi.StringOutput)
}
// Do not submit files matching this DLP file-pattern to FortiSandbox (post-transfer scan only).
func (o ProfileOutput) AnalyticsIgnoreFiletype() pulumi.IntOutput {
return o.ApplyT(func(v *Profile) pulumi.IntOutput { return v.AnalyticsIgnoreFiletype }).(pulumi.IntOutput)
}
// Maximum size of files that can be uploaded to FortiSandbox.
func (o ProfileOutput) AnalyticsMaxUpload() pulumi.IntOutput {
return o.ApplyT(func(v *Profile) pulumi.IntOutput { return v.AnalyticsMaxUpload }).(pulumi.IntOutput)
}
// Do not submit files matching this DLP file-pattern to FortiSandbox.
func (o ProfileOutput) AnalyticsWlFiletype() pulumi.IntOutput {
return o.ApplyT(func(v *Profile) pulumi.IntOutput { return v.AnalyticsWlFiletype }).(pulumi.IntOutput)
}
// Enable/disable logging for AntiVirus file blocking. Valid values: `enable`, `disable`.
func (o ProfileOutput) AvBlockLog() pulumi.StringOutput {
return o.ApplyT(func(v *Profile) pulumi.StringOutput { return v.AvBlockLog }).(pulumi.StringOutput)
}
// Enable/disable AntiVirus logging. Valid values: `enable`, `disable`.
func (o ProfileOutput) AvVirusLog() pulumi.StringOutput {
return o.ApplyT(func(v *Profile) pulumi.StringOutput { return v.AvVirusLog }).(pulumi.StringOutput)
}
// Configure CIFS AntiVirus options. The structure of `cifs` block is documented below.
func (o ProfileOutput) Cifs() ProfileCifsOutput {
return o.ApplyT(func(v *Profile) ProfileCifsOutput { return v.Cifs }).(ProfileCifsOutput)
}
// Comment.
func (o ProfileOutput) Comment() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Profile) pulumi.StringPtrOutput { return v.Comment }).(pulumi.StringPtrOutput)
}
// AV Content Disarm and Reconstruction settings. The structure of `contentDisarm` block is documented below.
func (o ProfileOutput) ContentDisarm() ProfileContentDisarmOutput {
return o.ApplyT(func(v *Profile) ProfileContentDisarmOutput { return v.ContentDisarm }).(ProfileContentDisarmOutput)
}
// 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 ProfileOutput) DynamicSortSubtable() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Profile) pulumi.StringPtrOutput { return v.DynamicSortSubtable }).(pulumi.StringPtrOutput)
}
// Enable/disable use of EMS threat feed when performing AntiVirus scan. Analyzes files including the content of archives. Valid values: `disable`, `enable`.
func (o ProfileOutput) EmsThreatFeed() pulumi.StringOutput {
return o.ApplyT(func(v *Profile) pulumi.StringOutput { return v.EmsThreatFeed }).(pulumi.StringOutput)
}
// Enable/disable extended logging for antivirus. Valid values: `enable`, `disable`.
func (o ProfileOutput) ExtendedLog() pulumi.StringOutput {
return o.ApplyT(func(v *Profile) pulumi.StringOutput { return v.ExtendedLog }).(pulumi.StringOutput)
}
// Enable/disable all external blocklists. Valid values: `disable`, `enable`.
func (o ProfileOutput) ExternalBlocklistEnableAll() pulumi.StringOutput {
return o.ApplyT(func(v *Profile) pulumi.StringOutput { return v.ExternalBlocklistEnableAll }).(pulumi.StringOutput)
}
// One or more external malware block lists. The structure of `externalBlocklist` block is documented below.
func (o ProfileOutput) ExternalBlocklists() ProfileExternalBlocklistArrayOutput {
return o.ApplyT(func(v *Profile) ProfileExternalBlocklistArrayOutput { return v.ExternalBlocklists }).(ProfileExternalBlocklistArrayOutput)
}
// Flow/proxy feature set. Valid values: `flow`, `proxy`.
func (o ProfileOutput) FeatureSet() pulumi.StringOutput {
return o.ApplyT(func(v *Profile) pulumi.StringOutput { return v.FeatureSet }).(pulumi.StringOutput)
}
// Action to take if FortiAI encounters an error. Valid values: `log-only`, `block`, `ignore`.
func (o ProfileOutput) FortiaiErrorAction() pulumi.StringOutput {
return o.ApplyT(func(v *Profile) pulumi.StringOutput { return v.FortiaiErrorAction }).(pulumi.StringOutput)
}
// Action to take if FortiAI encounters a scan timeout. Valid values: `log-only`, `block`, `ignore`.
func (o ProfileOutput) FortiaiTimeoutAction() pulumi.StringOutput {
return o.ApplyT(func(v *Profile) pulumi.StringOutput { return v.FortiaiTimeoutAction }).(pulumi.StringOutput)
}
// Action to take if FortiNDR encounters an error. Valid values: `log-only`, `block`, `ignore`.
func (o ProfileOutput) FortindrErrorAction() pulumi.StringOutput {
return o.ApplyT(func(v *Profile) pulumi.StringOutput { return v.FortindrErrorAction }).(pulumi.StringOutput)
}
// Action to take if FortiNDR encounters a scan timeout. Valid values: `log-only`, `block`, `ignore`.
func (o ProfileOutput) FortindrTimeoutAction() pulumi.StringOutput {
return o.ApplyT(func(v *Profile) pulumi.StringOutput { return v.FortindrTimeoutAction }).(pulumi.StringOutput)
}
// Action to take if FortiSandbox inline scan encounters an error. Valid values: `log-only`, `block`, `ignore`.
func (o ProfileOutput) FortisandboxErrorAction() pulumi.StringOutput {
return o.ApplyT(func(v *Profile) pulumi.StringOutput { return v.FortisandboxErrorAction }).(pulumi.StringOutput)
}
// Maximum size of files that can be uploaded to FortiSandbox.
func (o ProfileOutput) FortisandboxMaxUpload() pulumi.IntOutput {
return o.ApplyT(func(v *Profile) pulumi.IntOutput { return v.FortisandboxMaxUpload }).(pulumi.IntOutput)
}
// FortiSandbox scan modes. Valid values: `inline`, `analytics-suspicious`, `analytics-everything`.
func (o ProfileOutput) FortisandboxMode() pulumi.StringOutput {
return o.ApplyT(func(v *Profile) pulumi.StringOutput { return v.FortisandboxMode }).(pulumi.StringOutput)
}
// Action to take if FortiSandbox inline scan encounters a scan timeout. Valid values: `log-only`, `block`, `ignore`.
func (o ProfileOutput) FortisandboxTimeoutAction() pulumi.StringOutput {
return o.ApplyT(func(v *Profile) pulumi.StringOutput { return v.FortisandboxTimeoutAction }).(pulumi.StringOutput)
}
// Settings to control which files are uploaded to FortiSandbox. Valid values: `disable`, `suspicious`, `everything`.
func (o ProfileOutput) FtgdAnalytics() pulumi.StringOutput {
return o.ApplyT(func(v *Profile) pulumi.StringOutput { return v.FtgdAnalytics }).(pulumi.StringOutput)
}
// Configure FTP AntiVirus options. The structure of `ftp` block is documented below.
func (o ProfileOutput) Ftp() ProfileFtpOutput {
return o.ApplyT(func(v *Profile) ProfileFtpOutput { return v.Ftp }).(ProfileFtpOutput)
}
// 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 ProfileOutput) GetAllTables() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Profile) pulumi.StringPtrOutput { return v.GetAllTables }).(pulumi.StringPtrOutput)
}
// Configure HTTP AntiVirus options. The structure of `http` block is documented below.
func (o ProfileOutput) Http() ProfileHttpOutput {
return o.ApplyT(func(v *Profile) ProfileHttpOutput { return v.Http }).(ProfileHttpOutput)
}
// Configure IMAP AntiVirus options. The structure of `imap` block is documented below.
func (o ProfileOutput) Imap() ProfileImapOutput {
return o.ApplyT(func(v *Profile) ProfileImapOutput { return v.Imap }).(ProfileImapOutput)
}
// Inspection mode. Valid values: `proxy`, `flow-based`.
func (o ProfileOutput) InspectionMode() pulumi.StringOutput {
return o.ApplyT(func(v *Profile) pulumi.StringOutput { return v.InspectionMode }).(pulumi.StringOutput)
}
// Configure MAPI AntiVirus options. The structure of `mapi` block is documented below.
func (o ProfileOutput) Mapi() ProfileMapiOutput {
return o.ApplyT(func(v *Profile) ProfileMapiOutput { return v.Mapi }).(ProfileMapiOutput)
}
// Enable/disable using the mobile malware signature database. Valid values: `disable`, `enable`.
func (o ProfileOutput) MobileMalwareDb() pulumi.StringOutput {
return o.ApplyT(func(v *Profile) pulumi.StringOutput { return v.MobileMalwareDb }).(pulumi.StringOutput)
}
// Configure AntiVirus quarantine settings. The structure of `nacQuar` block is documented below.
func (o ProfileOutput) NacQuar() ProfileNacQuarOutput {
return o.ApplyT(func(v *Profile) ProfileNacQuarOutput { return v.NacQuar }).(ProfileNacQuarOutput)
}
// Profile name.
func (o ProfileOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v *Profile) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)
}
// Configure NNTP AntiVirus options. The structure of `nntp` block is documented below.
func (o ProfileOutput) Nntp() ProfileNntpOutput {
return o.ApplyT(func(v *Profile) ProfileNntpOutput { return v.Nntp }).(ProfileNntpOutput)
}
// Configure Virus Outbreak Prevention settings. The structure of `outbreakPrevention` block is documented below.
func (o ProfileOutput) OutbreakPrevention() ProfileOutbreakPreventionOutput {
return o.ApplyT(func(v *Profile) ProfileOutbreakPreventionOutput { return v.OutbreakPrevention }).(ProfileOutbreakPreventionOutput)
}
// Enable/disable outbreak-prevention archive scanning. Valid values: `disable`, `enable`.
func (o ProfileOutput) OutbreakPreventionArchiveScan() pulumi.StringOutput {
return o.ApplyT(func(v *Profile) pulumi.StringOutput { return v.OutbreakPreventionArchiveScan }).(pulumi.StringOutput)
}
// Configure POP3 AntiVirus options. The structure of `pop3` block is documented below.
func (o ProfileOutput) Pop3() ProfilePop3Output {
return o.ApplyT(func(v *Profile) ProfilePop3Output { return v.Pop3 }).(ProfilePop3Output)
}
// Replacement message group customized for this profile.
func (o ProfileOutput) ReplacemsgGroup() pulumi.StringOutput {
return o.ApplyT(func(v *Profile) pulumi.StringOutput { return v.ReplacemsgGroup }).(pulumi.StringOutput)
}
// Configure scan mode (default or legacy).
func (o ProfileOutput) ScanMode() pulumi.StringOutput {
return o.ApplyT(func(v *Profile) pulumi.StringOutput { return v.ScanMode }).(pulumi.StringOutput)
}
// Configure SMB AntiVirus options. The structure of `smb` block is documented below.
func (o ProfileOutput) Smb() ProfileSmbOutput {
return o.ApplyT(func(v *Profile) ProfileSmbOutput { return v.Smb }).(ProfileSmbOutput)
}
// Configure SMTP AntiVirus options. The structure of `smtp` block is documented below.
func (o ProfileOutput) Smtp() ProfileSmtpOutput {
return o.ApplyT(func(v *Profile) ProfileSmtpOutput { return v.Smtp }).(ProfileSmtpOutput)
}
// Configure SFTP and SCP AntiVirus options. The structure of `ssh` block is documented below.
func (o ProfileOutput) Ssh() ProfileSshOutput {
return o.ApplyT(func(v *Profile) ProfileSshOutput { return v.Ssh }).(ProfileSshOutput)
}
// 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 ProfileOutput) Vdomparam() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Profile) pulumi.StringPtrOutput { return v.Vdomparam }).(pulumi.StringPtrOutput)
}
type ProfileArrayOutput struct{ *pulumi.OutputState }
func (ProfileArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*Profile)(nil)).Elem()
}
func (o ProfileArrayOutput) ToProfileArrayOutput() ProfileArrayOutput {
return o
}
func (o ProfileArrayOutput) ToProfileArrayOutputWithContext(ctx context.Context) ProfileArrayOutput {
return o
}
func (o ProfileArrayOutput) Index(i pulumi.IntInput) ProfileOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *Profile {
return vs[0].([]*Profile)[vs[1].(int)]
}).(ProfileOutput)
}
type ProfileMapOutput struct{ *pulumi.OutputState }
func (ProfileMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*Profile)(nil)).Elem()
}
func (o ProfileMapOutput) ToProfileMapOutput() ProfileMapOutput {
return o
}
func (o ProfileMapOutput) ToProfileMapOutputWithContext(ctx context.Context) ProfileMapOutput {
return o
}
func (o ProfileMapOutput) MapIndex(k pulumi.StringInput) ProfileOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *Profile {
return vs[0].(map[string]*Profile)[vs[1].(string)]
}).(ProfileOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*ProfileInput)(nil)).Elem(), &Profile{})
pulumi.RegisterInputType(reflect.TypeOf((*ProfileArrayInput)(nil)).Elem(), ProfileArray{})
pulumi.RegisterInputType(reflect.TypeOf((*ProfileMapInput)(nil)).Elem(), ProfileMap{})
pulumi.RegisterOutputType(ProfileOutput{})
pulumi.RegisterOutputType(ProfileArrayOutput{})
pulumi.RegisterOutputType(ProfileMapOutput{})
}