/
policy.go
1615 lines (1476 loc) · 91.3 KB
/
policy.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
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// 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 consolidated
import (
"context"
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-fortios/sdk/go/fortios/internal"
)
// Configure consolidated IPv4/IPv6 policies. Applies to FortiOS Version `<= 6.4.0`.
//
// ## Import
//
// FirewallConsolidated Policy can be imported using any of these accepted formats:
//
// ```sh
// $ pulumi import fortios:firewall/consolidated/policy:Policy labelname {{policyid}}
// ```
//
// If you do not want to import arguments of block:
//
// $ export "FORTIOS_IMPORT_TABLE"="false"
//
// ```sh
// $ pulumi import fortios:firewall/consolidated/policy:Policy labelname {{policyid}}
// ```
//
// $ unset "FORTIOS_IMPORT_TABLE"
type Policy struct {
pulumi.CustomResourceState
// Policy action (allow/deny/ipsec). Valid values: `accept`, `deny`, `ipsec`.
Action pulumi.StringOutput `pulumi:"action"`
// Application category ID list. The structure of `appCategory` block is documented below.
AppCategories PolicyAppCategoryArrayOutput `pulumi:"appCategories"`
// Application group names. The structure of `appGroup` block is documented below.
AppGroups PolicyAppGroupArrayOutput `pulumi:"appGroups"`
// Name of an existing Application list.
ApplicationList pulumi.StringOutput `pulumi:"applicationList"`
// Application ID list. The structure of `application` block is documented below.
Applications PolicyApplicationArrayOutput `pulumi:"applications"`
// Enable/disable policy traffic ASIC offloading. Valid values: `enable`, `disable`.
AutoAsicOffload pulumi.StringOutput `pulumi:"autoAsicOffload"`
// Name of an existing Antivirus profile.
AvProfile pulumi.StringOutput `pulumi:"avProfile"`
// Enable exemption of some users from the captive portal. Valid values: `enable`, `disable`.
CaptivePortalExempt pulumi.StringOutput `pulumi:"captivePortalExempt"`
// Name of an existing CIFS profile.
CifsProfile pulumi.StringOutput `pulumi:"cifsProfile"`
// Comment.
Comments pulumi.StringPtrOutput `pulumi:"comments"`
// Enable to change packet's DiffServ values to the specified diffservcode-forward value. Valid values: `enable`, `disable`.
DiffservForward pulumi.StringOutput `pulumi:"diffservForward"`
// Enable to change packet's reverse (reply) DiffServ values to the specified diffservcode-rev value. Valid values: `enable`, `disable`.
DiffservReverse pulumi.StringOutput `pulumi:"diffservReverse"`
// Change packet's DiffServ to this value.
DiffservcodeForward pulumi.StringOutput `pulumi:"diffservcodeForward"`
// Change packet's reverse (reply) DiffServ to this value.
DiffservcodeRev pulumi.StringOutput `pulumi:"diffservcodeRev"`
// Name of an existing DLP sensor.
DlpSensor pulumi.StringOutput `pulumi:"dlpSensor"`
// Name of an existing DNS filter profile.
DnsfilterProfile pulumi.StringOutput `pulumi:"dnsfilterProfile"`
// Destination IPv4 address name and address group names. The structure of `dstaddr4` block is documented below.
Dstaddr4s PolicyDstaddr4ArrayOutput `pulumi:"dstaddr4s"`
// Destination IPv6 address name and address group names. The structure of `dstaddr6` block is documented below.
Dstaddr6s PolicyDstaddr6ArrayOutput `pulumi:"dstaddr6s"`
// When enabled dstaddr specifies what the destination address must NOT be. Valid values: `enable`, `disable`.
DstaddrNegate pulumi.StringOutput `pulumi:"dstaddrNegate"`
// Outgoing (egress) interface. The structure of `dstintf` block is documented below.
Dstintfs PolicyDstintfArrayOutput `pulumi:"dstintfs"`
// 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"`
// Name of an existing email filter profile.
EmailfilterProfile pulumi.StringOutput `pulumi:"emailfilterProfile"`
// Enable to prevent source NAT from changing a session's source port. Valid values: `enable`, `disable`.
Fixedport pulumi.StringOutput `pulumi:"fixedport"`
// Names of FSSO groups. The structure of `fssoGroups` block is documented below.
FssoGroups PolicyFssoGroupArrayOutput `pulumi:"fssoGroups"`
// 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"`
// Names of user groups that can authenticate with this policy. The structure of `groups` block is documented below.
Groups PolicyGroupArrayOutput `pulumi:"groups"`
// Redirect HTTP(S) traffic to matching transparent web proxy policy. Valid values: `enable`, `disable`.
HttpPolicyRedirect pulumi.StringOutput `pulumi:"httpPolicyRedirect"`
// Name of an existing ICAP profile.
IcapProfile pulumi.StringOutput `pulumi:"icapProfile"`
// Policy-based IPsec VPN: only traffic from the remote network can initiate a VPN. Valid values: `enable`, `disable`.
Inbound pulumi.StringOutput `pulumi:"inbound"`
// Policy inspection mode (Flow/proxy). Default is Flow mode. Valid values: `proxy`, `flow`.
InspectionMode pulumi.StringOutput `pulumi:"inspectionMode"`
// Enable/disable use of Internet Services for this policy. If enabled, destination address and service are not used. Valid values: `enable`, `disable`.
InternetService pulumi.StringOutput `pulumi:"internetService"`
// Custom Internet Service group name. The structure of `internetServiceCustomGroup` block is documented below.
InternetServiceCustomGroups PolicyInternetServiceCustomGroupArrayOutput `pulumi:"internetServiceCustomGroups"`
// Custom Internet Service name. The structure of `internetServiceCustom` block is documented below.
InternetServiceCustoms PolicyInternetServiceCustomArrayOutput `pulumi:"internetServiceCustoms"`
// Internet Service group name. The structure of `internetServiceGroup` block is documented below.
InternetServiceGroups PolicyInternetServiceGroupArrayOutput `pulumi:"internetServiceGroups"`
// Internet Service ID. The structure of `internetServiceId` block is documented below.
InternetServiceIds PolicyInternetServiceIdArrayOutput `pulumi:"internetServiceIds"`
// Internet Service name. The structure of `internetServiceName` block is documented below.
InternetServiceNames PolicyInternetServiceNameArrayOutput `pulumi:"internetServiceNames"`
// When enabled internet-service specifies what the service must NOT be. Valid values: `enable`, `disable`.
InternetServiceNegate pulumi.StringOutput `pulumi:"internetServiceNegate"`
// Enable/disable use of Internet Services in source for this policy. If enabled, source address is not used. Valid values: `enable`, `disable`.
InternetServiceSrc pulumi.StringOutput `pulumi:"internetServiceSrc"`
// Custom Internet Service source group name. The structure of `internetServiceSrcCustomGroup` block is documented below.
InternetServiceSrcCustomGroups PolicyInternetServiceSrcCustomGroupArrayOutput `pulumi:"internetServiceSrcCustomGroups"`
// Custom Internet Service source name. The structure of `internetServiceSrcCustom` block is documented below.
InternetServiceSrcCustoms PolicyInternetServiceSrcCustomArrayOutput `pulumi:"internetServiceSrcCustoms"`
// Internet Service source group name. The structure of `internetServiceSrcGroup` block is documented below.
InternetServiceSrcGroups PolicyInternetServiceSrcGroupArrayOutput `pulumi:"internetServiceSrcGroups"`
// Internet Service source ID. The structure of `internetServiceSrcId` block is documented below.
InternetServiceSrcIds PolicyInternetServiceSrcIdArrayOutput `pulumi:"internetServiceSrcIds"`
// Internet Service source name. The structure of `internetServiceSrcName` block is documented below.
InternetServiceSrcNames PolicyInternetServiceSrcNameArrayOutput `pulumi:"internetServiceSrcNames"`
// When enabled internet-service-src specifies what the service must NOT be. Valid values: `enable`, `disable`.
InternetServiceSrcNegate pulumi.StringOutput `pulumi:"internetServiceSrcNegate"`
// Enable to use IP Pools for source NAT. Valid values: `enable`, `disable`.
Ippool pulumi.StringOutput `pulumi:"ippool"`
// Name of an existing IPS sensor.
IpsSensor pulumi.StringOutput `pulumi:"ipsSensor"`
// Enable or disable logging. Log all sessions or security profile sessions. Valid values: `all`, `utm`, `disable`.
Logtraffic pulumi.StringOutput `pulumi:"logtraffic"`
// Record logs when a session starts. Valid values: `enable`, `disable`.
LogtrafficStart pulumi.StringOutput `pulumi:"logtrafficStart"`
// Policy name.
Name pulumi.StringOutput `pulumi:"name"`
// Enable/disable source NAT. Valid values: `enable`, `disable`.
Nat pulumi.StringOutput `pulumi:"nat"`
// Policy-based IPsec VPN: only traffic from the internal network can initiate a VPN. Valid values: `enable`, `disable`.
Outbound pulumi.StringOutput `pulumi:"outbound"`
// Per-IP traffic shaper.
PerIpShaper pulumi.StringOutput `pulumi:"perIpShaper"`
// Policy ID.
Policyid pulumi.IntOutput `pulumi:"policyid"`
// IPv4 pool names. The structure of `poolname4` block is documented below.
Poolname4s PolicyPoolname4ArrayOutput `pulumi:"poolname4s"`
// IPv6 pool names. The structure of `poolname6` block is documented below.
Poolname6s PolicyPoolname6ArrayOutput `pulumi:"poolname6s"`
// Name of profile group.
ProfileGroup pulumi.StringOutput `pulumi:"profileGroup"`
// Name of an existing Protocol options profile.
ProfileProtocolOptions pulumi.StringOutput `pulumi:"profileProtocolOptions"`
// Determine whether the firewall policy allows security profile groups or single profiles only. Valid values: `single`, `group`.
ProfileType pulumi.StringOutput `pulumi:"profileType"`
// Schedule name.
Schedule pulumi.StringOutput `pulumi:"schedule"`
// When enabled service specifies what the service must NOT be. Valid values: `enable`, `disable`.
ServiceNegate pulumi.StringOutput `pulumi:"serviceNegate"`
// Service and service group names. The structure of `service` block is documented below.
Services PolicyServiceArrayOutput `pulumi:"services"`
// TTL in seconds for sessions accepted by this policy (0 means use the system default session TTL).
SessionTtl pulumi.IntOutput `pulumi:"sessionTtl"`
// Name of an existing Spam filter profile.
SpamfilterProfile pulumi.StringOutput `pulumi:"spamfilterProfile"`
// Source IPv4 address name and address group names. The structure of `srcaddr4` block is documented below.
Srcaddr4s PolicySrcaddr4ArrayOutput `pulumi:"srcaddr4s"`
// Source IPv6 address name and address group names. The structure of `srcaddr6` block is documented below.
Srcaddr6s PolicySrcaddr6ArrayOutput `pulumi:"srcaddr6s"`
// When enabled srcaddr specifies what the source address must NOT be. Valid values: `enable`, `disable`.
SrcaddrNegate pulumi.StringOutput `pulumi:"srcaddrNegate"`
// Incoming (ingress) interface. The structure of `srcintf` block is documented below.
Srcintfs PolicySrcintfArrayOutput `pulumi:"srcintfs"`
// Name of an existing SSH filter profile.
SshFilterProfile pulumi.StringOutput `pulumi:"sshFilterProfile"`
// Redirect SSH traffic to matching transparent proxy policy. Valid values: `enable`, `disable`.
SshPolicyRedirect pulumi.StringOutput `pulumi:"sshPolicyRedirect"`
// Name of an existing SSL SSH profile.
SslSshProfile pulumi.StringOutput `pulumi:"sslSshProfile"`
// Enable or disable this policy. Valid values: `enable`, `disable`.
Status pulumi.StringOutput `pulumi:"status"`
// Receiver TCP maximum segment size (MSS).
TcpMssReceiver pulumi.IntOutput `pulumi:"tcpMssReceiver"`
// Sender TCP maximum segment size (MSS).
TcpMssSender pulumi.IntOutput `pulumi:"tcpMssSender"`
// Traffic shaper.
TrafficShaper pulumi.StringOutput `pulumi:"trafficShaper"`
// Reverse traffic shaper.
TrafficShaperReverse pulumi.StringOutput `pulumi:"trafficShaperReverse"`
// URL category ID list. The structure of `urlCategory` block is documented below.
UrlCategories PolicyUrlCategoryArrayOutput `pulumi:"urlCategories"`
// Names of individual users that can authenticate with this policy. The structure of `users` block is documented below.
Users PolicyUserArrayOutput `pulumi:"users"`
// Enable to add one or more security profiles (AV, IPS, etc.) to the firewall policy. Valid values: `enable`, `disable`.
UtmStatus pulumi.StringOutput `pulumi:"utmStatus"`
// Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
Uuid pulumi.StringOutput `pulumi:"uuid"`
// 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"`
// Name of an existing VoIP profile.
VoipProfile pulumi.StringOutput `pulumi:"voipProfile"`
// Policy-based IPsec VPN: name of the IPsec VPN Phase 1.
Vpntunnel pulumi.StringOutput `pulumi:"vpntunnel"`
// Name of an existing Web application firewall profile.
WafProfile pulumi.StringOutput `pulumi:"wafProfile"`
// Enable/disable WAN optimization. Valid values: `enable`, `disable`.
Wanopt pulumi.StringOutput `pulumi:"wanopt"`
// WAN optimization auto-detection mode. Valid values: `active`, `passive`, `off`.
WanoptDetection pulumi.StringOutput `pulumi:"wanoptDetection"`
// WAN optimization passive mode options. This option decides what IP address will be used to connect to server. Valid values: `default`, `transparent`, `non-transparent`.
WanoptPassiveOpt pulumi.StringOutput `pulumi:"wanoptPassiveOpt"`
// WAN optimization peer.
WanoptPeer pulumi.StringOutput `pulumi:"wanoptPeer"`
// WAN optimization profile.
WanoptProfile pulumi.StringOutput `pulumi:"wanoptProfile"`
// Enable/disable web cache. Valid values: `enable`, `disable`.
Webcache pulumi.StringOutput `pulumi:"webcache"`
// Enable/disable web cache for HTTPS. Valid values: `disable`, `enable`.
WebcacheHttps pulumi.StringOutput `pulumi:"webcacheHttps"`
// Name of an existing Web filter profile.
WebfilterProfile pulumi.StringOutput `pulumi:"webfilterProfile"`
// Webproxy forward server name.
WebproxyForwardServer pulumi.StringOutput `pulumi:"webproxyForwardServer"`
// Webproxy profile name.
WebproxyProfile pulumi.StringOutput `pulumi:"webproxyProfile"`
}
// NewPolicy registers a new resource with the given unique name, arguments, and options.
func NewPolicy(ctx *pulumi.Context,
name string, args *PolicyArgs, opts ...pulumi.ResourceOption) (*Policy, error) {
if args == nil {
args = &PolicyArgs{}
}
opts = internal.PkgResourceDefaultOpts(opts)
var resource Policy
err := ctx.RegisterResource("fortios:firewall/consolidated/policy:Policy", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetPolicy gets an existing Policy 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 GetPolicy(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *PolicyState, opts ...pulumi.ResourceOption) (*Policy, error) {
var resource Policy
err := ctx.ReadResource("fortios:firewall/consolidated/policy:Policy", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering Policy resources.
type policyState struct {
// Policy action (allow/deny/ipsec). Valid values: `accept`, `deny`, `ipsec`.
Action *string `pulumi:"action"`
// Application category ID list. The structure of `appCategory` block is documented below.
AppCategories []PolicyAppCategory `pulumi:"appCategories"`
// Application group names. The structure of `appGroup` block is documented below.
AppGroups []PolicyAppGroup `pulumi:"appGroups"`
// Name of an existing Application list.
ApplicationList *string `pulumi:"applicationList"`
// Application ID list. The structure of `application` block is documented below.
Applications []PolicyApplication `pulumi:"applications"`
// Enable/disable policy traffic ASIC offloading. Valid values: `enable`, `disable`.
AutoAsicOffload *string `pulumi:"autoAsicOffload"`
// Name of an existing Antivirus profile.
AvProfile *string `pulumi:"avProfile"`
// Enable exemption of some users from the captive portal. Valid values: `enable`, `disable`.
CaptivePortalExempt *string `pulumi:"captivePortalExempt"`
// Name of an existing CIFS profile.
CifsProfile *string `pulumi:"cifsProfile"`
// Comment.
Comments *string `pulumi:"comments"`
// Enable to change packet's DiffServ values to the specified diffservcode-forward value. Valid values: `enable`, `disable`.
DiffservForward *string `pulumi:"diffservForward"`
// Enable to change packet's reverse (reply) DiffServ values to the specified diffservcode-rev value. Valid values: `enable`, `disable`.
DiffservReverse *string `pulumi:"diffservReverse"`
// Change packet's DiffServ to this value.
DiffservcodeForward *string `pulumi:"diffservcodeForward"`
// Change packet's reverse (reply) DiffServ to this value.
DiffservcodeRev *string `pulumi:"diffservcodeRev"`
// Name of an existing DLP sensor.
DlpSensor *string `pulumi:"dlpSensor"`
// Name of an existing DNS filter profile.
DnsfilterProfile *string `pulumi:"dnsfilterProfile"`
// Destination IPv4 address name and address group names. The structure of `dstaddr4` block is documented below.
Dstaddr4s []PolicyDstaddr4 `pulumi:"dstaddr4s"`
// Destination IPv6 address name and address group names. The structure of `dstaddr6` block is documented below.
Dstaddr6s []PolicyDstaddr6 `pulumi:"dstaddr6s"`
// When enabled dstaddr specifies what the destination address must NOT be. Valid values: `enable`, `disable`.
DstaddrNegate *string `pulumi:"dstaddrNegate"`
// Outgoing (egress) interface. The structure of `dstintf` block is documented below.
Dstintfs []PolicyDstintf `pulumi:"dstintfs"`
// 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"`
// Name of an existing email filter profile.
EmailfilterProfile *string `pulumi:"emailfilterProfile"`
// Enable to prevent source NAT from changing a session's source port. Valid values: `enable`, `disable`.
Fixedport *string `pulumi:"fixedport"`
// Names of FSSO groups. The structure of `fssoGroups` block is documented below.
FssoGroups []PolicyFssoGroup `pulumi:"fssoGroups"`
// 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"`
// Names of user groups that can authenticate with this policy. The structure of `groups` block is documented below.
Groups []PolicyGroup `pulumi:"groups"`
// Redirect HTTP(S) traffic to matching transparent web proxy policy. Valid values: `enable`, `disable`.
HttpPolicyRedirect *string `pulumi:"httpPolicyRedirect"`
// Name of an existing ICAP profile.
IcapProfile *string `pulumi:"icapProfile"`
// Policy-based IPsec VPN: only traffic from the remote network can initiate a VPN. Valid values: `enable`, `disable`.
Inbound *string `pulumi:"inbound"`
// Policy inspection mode (Flow/proxy). Default is Flow mode. Valid values: `proxy`, `flow`.
InspectionMode *string `pulumi:"inspectionMode"`
// Enable/disable use of Internet Services for this policy. If enabled, destination address and service are not used. Valid values: `enable`, `disable`.
InternetService *string `pulumi:"internetService"`
// Custom Internet Service group name. The structure of `internetServiceCustomGroup` block is documented below.
InternetServiceCustomGroups []PolicyInternetServiceCustomGroup `pulumi:"internetServiceCustomGroups"`
// Custom Internet Service name. The structure of `internetServiceCustom` block is documented below.
InternetServiceCustoms []PolicyInternetServiceCustom `pulumi:"internetServiceCustoms"`
// Internet Service group name. The structure of `internetServiceGroup` block is documented below.
InternetServiceGroups []PolicyInternetServiceGroup `pulumi:"internetServiceGroups"`
// Internet Service ID. The structure of `internetServiceId` block is documented below.
InternetServiceIds []PolicyInternetServiceId `pulumi:"internetServiceIds"`
// Internet Service name. The structure of `internetServiceName` block is documented below.
InternetServiceNames []PolicyInternetServiceName `pulumi:"internetServiceNames"`
// When enabled internet-service specifies what the service must NOT be. Valid values: `enable`, `disable`.
InternetServiceNegate *string `pulumi:"internetServiceNegate"`
// Enable/disable use of Internet Services in source for this policy. If enabled, source address is not used. Valid values: `enable`, `disable`.
InternetServiceSrc *string `pulumi:"internetServiceSrc"`
// Custom Internet Service source group name. The structure of `internetServiceSrcCustomGroup` block is documented below.
InternetServiceSrcCustomGroups []PolicyInternetServiceSrcCustomGroup `pulumi:"internetServiceSrcCustomGroups"`
// Custom Internet Service source name. The structure of `internetServiceSrcCustom` block is documented below.
InternetServiceSrcCustoms []PolicyInternetServiceSrcCustom `pulumi:"internetServiceSrcCustoms"`
// Internet Service source group name. The structure of `internetServiceSrcGroup` block is documented below.
InternetServiceSrcGroups []PolicyInternetServiceSrcGroup `pulumi:"internetServiceSrcGroups"`
// Internet Service source ID. The structure of `internetServiceSrcId` block is documented below.
InternetServiceSrcIds []PolicyInternetServiceSrcId `pulumi:"internetServiceSrcIds"`
// Internet Service source name. The structure of `internetServiceSrcName` block is documented below.
InternetServiceSrcNames []PolicyInternetServiceSrcName `pulumi:"internetServiceSrcNames"`
// When enabled internet-service-src specifies what the service must NOT be. Valid values: `enable`, `disable`.
InternetServiceSrcNegate *string `pulumi:"internetServiceSrcNegate"`
// Enable to use IP Pools for source NAT. Valid values: `enable`, `disable`.
Ippool *string `pulumi:"ippool"`
// Name of an existing IPS sensor.
IpsSensor *string `pulumi:"ipsSensor"`
// Enable or disable logging. Log all sessions or security profile sessions. Valid values: `all`, `utm`, `disable`.
Logtraffic *string `pulumi:"logtraffic"`
// Record logs when a session starts. Valid values: `enable`, `disable`.
LogtrafficStart *string `pulumi:"logtrafficStart"`
// Policy name.
Name *string `pulumi:"name"`
// Enable/disable source NAT. Valid values: `enable`, `disable`.
Nat *string `pulumi:"nat"`
// Policy-based IPsec VPN: only traffic from the internal network can initiate a VPN. Valid values: `enable`, `disable`.
Outbound *string `pulumi:"outbound"`
// Per-IP traffic shaper.
PerIpShaper *string `pulumi:"perIpShaper"`
// Policy ID.
Policyid *int `pulumi:"policyid"`
// IPv4 pool names. The structure of `poolname4` block is documented below.
Poolname4s []PolicyPoolname4 `pulumi:"poolname4s"`
// IPv6 pool names. The structure of `poolname6` block is documented below.
Poolname6s []PolicyPoolname6 `pulumi:"poolname6s"`
// Name of profile group.
ProfileGroup *string `pulumi:"profileGroup"`
// Name of an existing Protocol options profile.
ProfileProtocolOptions *string `pulumi:"profileProtocolOptions"`
// Determine whether the firewall policy allows security profile groups or single profiles only. Valid values: `single`, `group`.
ProfileType *string `pulumi:"profileType"`
// Schedule name.
Schedule *string `pulumi:"schedule"`
// When enabled service specifies what the service must NOT be. Valid values: `enable`, `disable`.
ServiceNegate *string `pulumi:"serviceNegate"`
// Service and service group names. The structure of `service` block is documented below.
Services []PolicyService `pulumi:"services"`
// TTL in seconds for sessions accepted by this policy (0 means use the system default session TTL).
SessionTtl *int `pulumi:"sessionTtl"`
// Name of an existing Spam filter profile.
SpamfilterProfile *string `pulumi:"spamfilterProfile"`
// Source IPv4 address name and address group names. The structure of `srcaddr4` block is documented below.
Srcaddr4s []PolicySrcaddr4 `pulumi:"srcaddr4s"`
// Source IPv6 address name and address group names. The structure of `srcaddr6` block is documented below.
Srcaddr6s []PolicySrcaddr6 `pulumi:"srcaddr6s"`
// When enabled srcaddr specifies what the source address must NOT be. Valid values: `enable`, `disable`.
SrcaddrNegate *string `pulumi:"srcaddrNegate"`
// Incoming (ingress) interface. The structure of `srcintf` block is documented below.
Srcintfs []PolicySrcintf `pulumi:"srcintfs"`
// Name of an existing SSH filter profile.
SshFilterProfile *string `pulumi:"sshFilterProfile"`
// Redirect SSH traffic to matching transparent proxy policy. Valid values: `enable`, `disable`.
SshPolicyRedirect *string `pulumi:"sshPolicyRedirect"`
// Name of an existing SSL SSH profile.
SslSshProfile *string `pulumi:"sslSshProfile"`
// Enable or disable this policy. Valid values: `enable`, `disable`.
Status *string `pulumi:"status"`
// Receiver TCP maximum segment size (MSS).
TcpMssReceiver *int `pulumi:"tcpMssReceiver"`
// Sender TCP maximum segment size (MSS).
TcpMssSender *int `pulumi:"tcpMssSender"`
// Traffic shaper.
TrafficShaper *string `pulumi:"trafficShaper"`
// Reverse traffic shaper.
TrafficShaperReverse *string `pulumi:"trafficShaperReverse"`
// URL category ID list. The structure of `urlCategory` block is documented below.
UrlCategories []PolicyUrlCategory `pulumi:"urlCategories"`
// Names of individual users that can authenticate with this policy. The structure of `users` block is documented below.
Users []PolicyUser `pulumi:"users"`
// Enable to add one or more security profiles (AV, IPS, etc.) to the firewall policy. Valid values: `enable`, `disable`.
UtmStatus *string `pulumi:"utmStatus"`
// Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
Uuid *string `pulumi:"uuid"`
// 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"`
// Name of an existing VoIP profile.
VoipProfile *string `pulumi:"voipProfile"`
// Policy-based IPsec VPN: name of the IPsec VPN Phase 1.
Vpntunnel *string `pulumi:"vpntunnel"`
// Name of an existing Web application firewall profile.
WafProfile *string `pulumi:"wafProfile"`
// Enable/disable WAN optimization. Valid values: `enable`, `disable`.
Wanopt *string `pulumi:"wanopt"`
// WAN optimization auto-detection mode. Valid values: `active`, `passive`, `off`.
WanoptDetection *string `pulumi:"wanoptDetection"`
// WAN optimization passive mode options. This option decides what IP address will be used to connect to server. Valid values: `default`, `transparent`, `non-transparent`.
WanoptPassiveOpt *string `pulumi:"wanoptPassiveOpt"`
// WAN optimization peer.
WanoptPeer *string `pulumi:"wanoptPeer"`
// WAN optimization profile.
WanoptProfile *string `pulumi:"wanoptProfile"`
// Enable/disable web cache. Valid values: `enable`, `disable`.
Webcache *string `pulumi:"webcache"`
// Enable/disable web cache for HTTPS. Valid values: `disable`, `enable`.
WebcacheHttps *string `pulumi:"webcacheHttps"`
// Name of an existing Web filter profile.
WebfilterProfile *string `pulumi:"webfilterProfile"`
// Webproxy forward server name.
WebproxyForwardServer *string `pulumi:"webproxyForwardServer"`
// Webproxy profile name.
WebproxyProfile *string `pulumi:"webproxyProfile"`
}
type PolicyState struct {
// Policy action (allow/deny/ipsec). Valid values: `accept`, `deny`, `ipsec`.
Action pulumi.StringPtrInput
// Application category ID list. The structure of `appCategory` block is documented below.
AppCategories PolicyAppCategoryArrayInput
// Application group names. The structure of `appGroup` block is documented below.
AppGroups PolicyAppGroupArrayInput
// Name of an existing Application list.
ApplicationList pulumi.StringPtrInput
// Application ID list. The structure of `application` block is documented below.
Applications PolicyApplicationArrayInput
// Enable/disable policy traffic ASIC offloading. Valid values: `enable`, `disable`.
AutoAsicOffload pulumi.StringPtrInput
// Name of an existing Antivirus profile.
AvProfile pulumi.StringPtrInput
// Enable exemption of some users from the captive portal. Valid values: `enable`, `disable`.
CaptivePortalExempt pulumi.StringPtrInput
// Name of an existing CIFS profile.
CifsProfile pulumi.StringPtrInput
// Comment.
Comments pulumi.StringPtrInput
// Enable to change packet's DiffServ values to the specified diffservcode-forward value. Valid values: `enable`, `disable`.
DiffservForward pulumi.StringPtrInput
// Enable to change packet's reverse (reply) DiffServ values to the specified diffservcode-rev value. Valid values: `enable`, `disable`.
DiffservReverse pulumi.StringPtrInput
// Change packet's DiffServ to this value.
DiffservcodeForward pulumi.StringPtrInput
// Change packet's reverse (reply) DiffServ to this value.
DiffservcodeRev pulumi.StringPtrInput
// Name of an existing DLP sensor.
DlpSensor pulumi.StringPtrInput
// Name of an existing DNS filter profile.
DnsfilterProfile pulumi.StringPtrInput
// Destination IPv4 address name and address group names. The structure of `dstaddr4` block is documented below.
Dstaddr4s PolicyDstaddr4ArrayInput
// Destination IPv6 address name and address group names. The structure of `dstaddr6` block is documented below.
Dstaddr6s PolicyDstaddr6ArrayInput
// When enabled dstaddr specifies what the destination address must NOT be. Valid values: `enable`, `disable`.
DstaddrNegate pulumi.StringPtrInput
// Outgoing (egress) interface. The structure of `dstintf` block is documented below.
Dstintfs PolicyDstintfArrayInput
// 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
// Name of an existing email filter profile.
EmailfilterProfile pulumi.StringPtrInput
// Enable to prevent source NAT from changing a session's source port. Valid values: `enable`, `disable`.
Fixedport pulumi.StringPtrInput
// Names of FSSO groups. The structure of `fssoGroups` block is documented below.
FssoGroups PolicyFssoGroupArrayInput
// 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
// Names of user groups that can authenticate with this policy. The structure of `groups` block is documented below.
Groups PolicyGroupArrayInput
// Redirect HTTP(S) traffic to matching transparent web proxy policy. Valid values: `enable`, `disable`.
HttpPolicyRedirect pulumi.StringPtrInput
// Name of an existing ICAP profile.
IcapProfile pulumi.StringPtrInput
// Policy-based IPsec VPN: only traffic from the remote network can initiate a VPN. Valid values: `enable`, `disable`.
Inbound pulumi.StringPtrInput
// Policy inspection mode (Flow/proxy). Default is Flow mode. Valid values: `proxy`, `flow`.
InspectionMode pulumi.StringPtrInput
// Enable/disable use of Internet Services for this policy. If enabled, destination address and service are not used. Valid values: `enable`, `disable`.
InternetService pulumi.StringPtrInput
// Custom Internet Service group name. The structure of `internetServiceCustomGroup` block is documented below.
InternetServiceCustomGroups PolicyInternetServiceCustomGroupArrayInput
// Custom Internet Service name. The structure of `internetServiceCustom` block is documented below.
InternetServiceCustoms PolicyInternetServiceCustomArrayInput
// Internet Service group name. The structure of `internetServiceGroup` block is documented below.
InternetServiceGroups PolicyInternetServiceGroupArrayInput
// Internet Service ID. The structure of `internetServiceId` block is documented below.
InternetServiceIds PolicyInternetServiceIdArrayInput
// Internet Service name. The structure of `internetServiceName` block is documented below.
InternetServiceNames PolicyInternetServiceNameArrayInput
// When enabled internet-service specifies what the service must NOT be. Valid values: `enable`, `disable`.
InternetServiceNegate pulumi.StringPtrInput
// Enable/disable use of Internet Services in source for this policy. If enabled, source address is not used. Valid values: `enable`, `disable`.
InternetServiceSrc pulumi.StringPtrInput
// Custom Internet Service source group name. The structure of `internetServiceSrcCustomGroup` block is documented below.
InternetServiceSrcCustomGroups PolicyInternetServiceSrcCustomGroupArrayInput
// Custom Internet Service source name. The structure of `internetServiceSrcCustom` block is documented below.
InternetServiceSrcCustoms PolicyInternetServiceSrcCustomArrayInput
// Internet Service source group name. The structure of `internetServiceSrcGroup` block is documented below.
InternetServiceSrcGroups PolicyInternetServiceSrcGroupArrayInput
// Internet Service source ID. The structure of `internetServiceSrcId` block is documented below.
InternetServiceSrcIds PolicyInternetServiceSrcIdArrayInput
// Internet Service source name. The structure of `internetServiceSrcName` block is documented below.
InternetServiceSrcNames PolicyInternetServiceSrcNameArrayInput
// When enabled internet-service-src specifies what the service must NOT be. Valid values: `enable`, `disable`.
InternetServiceSrcNegate pulumi.StringPtrInput
// Enable to use IP Pools for source NAT. Valid values: `enable`, `disable`.
Ippool pulumi.StringPtrInput
// Name of an existing IPS sensor.
IpsSensor pulumi.StringPtrInput
// Enable or disable logging. Log all sessions or security profile sessions. Valid values: `all`, `utm`, `disable`.
Logtraffic pulumi.StringPtrInput
// Record logs when a session starts. Valid values: `enable`, `disable`.
LogtrafficStart pulumi.StringPtrInput
// Policy name.
Name pulumi.StringPtrInput
// Enable/disable source NAT. Valid values: `enable`, `disable`.
Nat pulumi.StringPtrInput
// Policy-based IPsec VPN: only traffic from the internal network can initiate a VPN. Valid values: `enable`, `disable`.
Outbound pulumi.StringPtrInput
// Per-IP traffic shaper.
PerIpShaper pulumi.StringPtrInput
// Policy ID.
Policyid pulumi.IntPtrInput
// IPv4 pool names. The structure of `poolname4` block is documented below.
Poolname4s PolicyPoolname4ArrayInput
// IPv6 pool names. The structure of `poolname6` block is documented below.
Poolname6s PolicyPoolname6ArrayInput
// Name of profile group.
ProfileGroup pulumi.StringPtrInput
// Name of an existing Protocol options profile.
ProfileProtocolOptions pulumi.StringPtrInput
// Determine whether the firewall policy allows security profile groups or single profiles only. Valid values: `single`, `group`.
ProfileType pulumi.StringPtrInput
// Schedule name.
Schedule pulumi.StringPtrInput
// When enabled service specifies what the service must NOT be. Valid values: `enable`, `disable`.
ServiceNegate pulumi.StringPtrInput
// Service and service group names. The structure of `service` block is documented below.
Services PolicyServiceArrayInput
// TTL in seconds for sessions accepted by this policy (0 means use the system default session TTL).
SessionTtl pulumi.IntPtrInput
// Name of an existing Spam filter profile.
SpamfilterProfile pulumi.StringPtrInput
// Source IPv4 address name and address group names. The structure of `srcaddr4` block is documented below.
Srcaddr4s PolicySrcaddr4ArrayInput
// Source IPv6 address name and address group names. The structure of `srcaddr6` block is documented below.
Srcaddr6s PolicySrcaddr6ArrayInput
// When enabled srcaddr specifies what the source address must NOT be. Valid values: `enable`, `disable`.
SrcaddrNegate pulumi.StringPtrInput
// Incoming (ingress) interface. The structure of `srcintf` block is documented below.
Srcintfs PolicySrcintfArrayInput
// Name of an existing SSH filter profile.
SshFilterProfile pulumi.StringPtrInput
// Redirect SSH traffic to matching transparent proxy policy. Valid values: `enable`, `disable`.
SshPolicyRedirect pulumi.StringPtrInput
// Name of an existing SSL SSH profile.
SslSshProfile pulumi.StringPtrInput
// Enable or disable this policy. Valid values: `enable`, `disable`.
Status pulumi.StringPtrInput
// Receiver TCP maximum segment size (MSS).
TcpMssReceiver pulumi.IntPtrInput
// Sender TCP maximum segment size (MSS).
TcpMssSender pulumi.IntPtrInput
// Traffic shaper.
TrafficShaper pulumi.StringPtrInput
// Reverse traffic shaper.
TrafficShaperReverse pulumi.StringPtrInput
// URL category ID list. The structure of `urlCategory` block is documented below.
UrlCategories PolicyUrlCategoryArrayInput
// Names of individual users that can authenticate with this policy. The structure of `users` block is documented below.
Users PolicyUserArrayInput
// Enable to add one or more security profiles (AV, IPS, etc.) to the firewall policy. Valid values: `enable`, `disable`.
UtmStatus pulumi.StringPtrInput
// Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
Uuid 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
// Name of an existing VoIP profile.
VoipProfile pulumi.StringPtrInput
// Policy-based IPsec VPN: name of the IPsec VPN Phase 1.
Vpntunnel pulumi.StringPtrInput
// Name of an existing Web application firewall profile.
WafProfile pulumi.StringPtrInput
// Enable/disable WAN optimization. Valid values: `enable`, `disable`.
Wanopt pulumi.StringPtrInput
// WAN optimization auto-detection mode. Valid values: `active`, `passive`, `off`.
WanoptDetection pulumi.StringPtrInput
// WAN optimization passive mode options. This option decides what IP address will be used to connect to server. Valid values: `default`, `transparent`, `non-transparent`.
WanoptPassiveOpt pulumi.StringPtrInput
// WAN optimization peer.
WanoptPeer pulumi.StringPtrInput
// WAN optimization profile.
WanoptProfile pulumi.StringPtrInput
// Enable/disable web cache. Valid values: `enable`, `disable`.
Webcache pulumi.StringPtrInput
// Enable/disable web cache for HTTPS. Valid values: `disable`, `enable`.
WebcacheHttps pulumi.StringPtrInput
// Name of an existing Web filter profile.
WebfilterProfile pulumi.StringPtrInput
// Webproxy forward server name.
WebproxyForwardServer pulumi.StringPtrInput
// Webproxy profile name.
WebproxyProfile pulumi.StringPtrInput
}
func (PolicyState) ElementType() reflect.Type {
return reflect.TypeOf((*policyState)(nil)).Elem()
}
type policyArgs struct {
// Policy action (allow/deny/ipsec). Valid values: `accept`, `deny`, `ipsec`.
Action *string `pulumi:"action"`
// Application category ID list. The structure of `appCategory` block is documented below.
AppCategories []PolicyAppCategory `pulumi:"appCategories"`
// Application group names. The structure of `appGroup` block is documented below.
AppGroups []PolicyAppGroup `pulumi:"appGroups"`
// Name of an existing Application list.
ApplicationList *string `pulumi:"applicationList"`
// Application ID list. The structure of `application` block is documented below.
Applications []PolicyApplication `pulumi:"applications"`
// Enable/disable policy traffic ASIC offloading. Valid values: `enable`, `disable`.
AutoAsicOffload *string `pulumi:"autoAsicOffload"`
// Name of an existing Antivirus profile.
AvProfile *string `pulumi:"avProfile"`
// Enable exemption of some users from the captive portal. Valid values: `enable`, `disable`.
CaptivePortalExempt *string `pulumi:"captivePortalExempt"`
// Name of an existing CIFS profile.
CifsProfile *string `pulumi:"cifsProfile"`
// Comment.
Comments *string `pulumi:"comments"`
// Enable to change packet's DiffServ values to the specified diffservcode-forward value. Valid values: `enable`, `disable`.
DiffservForward *string `pulumi:"diffservForward"`
// Enable to change packet's reverse (reply) DiffServ values to the specified diffservcode-rev value. Valid values: `enable`, `disable`.
DiffservReverse *string `pulumi:"diffservReverse"`
// Change packet's DiffServ to this value.
DiffservcodeForward *string `pulumi:"diffservcodeForward"`
// Change packet's reverse (reply) DiffServ to this value.
DiffservcodeRev *string `pulumi:"diffservcodeRev"`
// Name of an existing DLP sensor.
DlpSensor *string `pulumi:"dlpSensor"`
// Name of an existing DNS filter profile.
DnsfilterProfile *string `pulumi:"dnsfilterProfile"`
// Destination IPv4 address name and address group names. The structure of `dstaddr4` block is documented below.
Dstaddr4s []PolicyDstaddr4 `pulumi:"dstaddr4s"`
// Destination IPv6 address name and address group names. The structure of `dstaddr6` block is documented below.
Dstaddr6s []PolicyDstaddr6 `pulumi:"dstaddr6s"`
// When enabled dstaddr specifies what the destination address must NOT be. Valid values: `enable`, `disable`.
DstaddrNegate *string `pulumi:"dstaddrNegate"`
// Outgoing (egress) interface. The structure of `dstintf` block is documented below.
Dstintfs []PolicyDstintf `pulumi:"dstintfs"`
// 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"`
// Name of an existing email filter profile.
EmailfilterProfile *string `pulumi:"emailfilterProfile"`
// Enable to prevent source NAT from changing a session's source port. Valid values: `enable`, `disable`.
Fixedport *string `pulumi:"fixedport"`
// Names of FSSO groups. The structure of `fssoGroups` block is documented below.
FssoGroups []PolicyFssoGroup `pulumi:"fssoGroups"`
// 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"`
// Names of user groups that can authenticate with this policy. The structure of `groups` block is documented below.
Groups []PolicyGroup `pulumi:"groups"`
// Redirect HTTP(S) traffic to matching transparent web proxy policy. Valid values: `enable`, `disable`.
HttpPolicyRedirect *string `pulumi:"httpPolicyRedirect"`
// Name of an existing ICAP profile.
IcapProfile *string `pulumi:"icapProfile"`
// Policy-based IPsec VPN: only traffic from the remote network can initiate a VPN. Valid values: `enable`, `disable`.
Inbound *string `pulumi:"inbound"`
// Policy inspection mode (Flow/proxy). Default is Flow mode. Valid values: `proxy`, `flow`.
InspectionMode *string `pulumi:"inspectionMode"`
// Enable/disable use of Internet Services for this policy. If enabled, destination address and service are not used. Valid values: `enable`, `disable`.
InternetService *string `pulumi:"internetService"`
// Custom Internet Service group name. The structure of `internetServiceCustomGroup` block is documented below.
InternetServiceCustomGroups []PolicyInternetServiceCustomGroup `pulumi:"internetServiceCustomGroups"`
// Custom Internet Service name. The structure of `internetServiceCustom` block is documented below.
InternetServiceCustoms []PolicyInternetServiceCustom `pulumi:"internetServiceCustoms"`
// Internet Service group name. The structure of `internetServiceGroup` block is documented below.
InternetServiceGroups []PolicyInternetServiceGroup `pulumi:"internetServiceGroups"`
// Internet Service ID. The structure of `internetServiceId` block is documented below.
InternetServiceIds []PolicyInternetServiceId `pulumi:"internetServiceIds"`
// Internet Service name. The structure of `internetServiceName` block is documented below.
InternetServiceNames []PolicyInternetServiceName `pulumi:"internetServiceNames"`
// When enabled internet-service specifies what the service must NOT be. Valid values: `enable`, `disable`.
InternetServiceNegate *string `pulumi:"internetServiceNegate"`
// Enable/disable use of Internet Services in source for this policy. If enabled, source address is not used. Valid values: `enable`, `disable`.
InternetServiceSrc *string `pulumi:"internetServiceSrc"`
// Custom Internet Service source group name. The structure of `internetServiceSrcCustomGroup` block is documented below.
InternetServiceSrcCustomGroups []PolicyInternetServiceSrcCustomGroup `pulumi:"internetServiceSrcCustomGroups"`
// Custom Internet Service source name. The structure of `internetServiceSrcCustom` block is documented below.
InternetServiceSrcCustoms []PolicyInternetServiceSrcCustom `pulumi:"internetServiceSrcCustoms"`
// Internet Service source group name. The structure of `internetServiceSrcGroup` block is documented below.
InternetServiceSrcGroups []PolicyInternetServiceSrcGroup `pulumi:"internetServiceSrcGroups"`
// Internet Service source ID. The structure of `internetServiceSrcId` block is documented below.
InternetServiceSrcIds []PolicyInternetServiceSrcId `pulumi:"internetServiceSrcIds"`
// Internet Service source name. The structure of `internetServiceSrcName` block is documented below.
InternetServiceSrcNames []PolicyInternetServiceSrcName `pulumi:"internetServiceSrcNames"`
// When enabled internet-service-src specifies what the service must NOT be. Valid values: `enable`, `disable`.
InternetServiceSrcNegate *string `pulumi:"internetServiceSrcNegate"`
// Enable to use IP Pools for source NAT. Valid values: `enable`, `disable`.
Ippool *string `pulumi:"ippool"`
// Name of an existing IPS sensor.
IpsSensor *string `pulumi:"ipsSensor"`
// Enable or disable logging. Log all sessions or security profile sessions. Valid values: `all`, `utm`, `disable`.
Logtraffic *string `pulumi:"logtraffic"`
// Record logs when a session starts. Valid values: `enable`, `disable`.
LogtrafficStart *string `pulumi:"logtrafficStart"`
// Policy name.
Name *string `pulumi:"name"`
// Enable/disable source NAT. Valid values: `enable`, `disable`.
Nat *string `pulumi:"nat"`
// Policy-based IPsec VPN: only traffic from the internal network can initiate a VPN. Valid values: `enable`, `disable`.
Outbound *string `pulumi:"outbound"`
// Per-IP traffic shaper.
PerIpShaper *string `pulumi:"perIpShaper"`
// Policy ID.
Policyid *int `pulumi:"policyid"`
// IPv4 pool names. The structure of `poolname4` block is documented below.
Poolname4s []PolicyPoolname4 `pulumi:"poolname4s"`
// IPv6 pool names. The structure of `poolname6` block is documented below.
Poolname6s []PolicyPoolname6 `pulumi:"poolname6s"`
// Name of profile group.
ProfileGroup *string `pulumi:"profileGroup"`
// Name of an existing Protocol options profile.
ProfileProtocolOptions *string `pulumi:"profileProtocolOptions"`
// Determine whether the firewall policy allows security profile groups or single profiles only. Valid values: `single`, `group`.
ProfileType *string `pulumi:"profileType"`
// Schedule name.
Schedule *string `pulumi:"schedule"`
// When enabled service specifies what the service must NOT be. Valid values: `enable`, `disable`.
ServiceNegate *string `pulumi:"serviceNegate"`
// Service and service group names. The structure of `service` block is documented below.
Services []PolicyService `pulumi:"services"`
// TTL in seconds for sessions accepted by this policy (0 means use the system default session TTL).
SessionTtl *int `pulumi:"sessionTtl"`
// Name of an existing Spam filter profile.
SpamfilterProfile *string `pulumi:"spamfilterProfile"`
// Source IPv4 address name and address group names. The structure of `srcaddr4` block is documented below.
Srcaddr4s []PolicySrcaddr4 `pulumi:"srcaddr4s"`
// Source IPv6 address name and address group names. The structure of `srcaddr6` block is documented below.
Srcaddr6s []PolicySrcaddr6 `pulumi:"srcaddr6s"`
// When enabled srcaddr specifies what the source address must NOT be. Valid values: `enable`, `disable`.
SrcaddrNegate *string `pulumi:"srcaddrNegate"`
// Incoming (ingress) interface. The structure of `srcintf` block is documented below.
Srcintfs []PolicySrcintf `pulumi:"srcintfs"`
// Name of an existing SSH filter profile.
SshFilterProfile *string `pulumi:"sshFilterProfile"`
// Redirect SSH traffic to matching transparent proxy policy. Valid values: `enable`, `disable`.
SshPolicyRedirect *string `pulumi:"sshPolicyRedirect"`
// Name of an existing SSL SSH profile.
SslSshProfile *string `pulumi:"sslSshProfile"`
// Enable or disable this policy. Valid values: `enable`, `disable`.
Status *string `pulumi:"status"`
// Receiver TCP maximum segment size (MSS).
TcpMssReceiver *int `pulumi:"tcpMssReceiver"`
// Sender TCP maximum segment size (MSS).
TcpMssSender *int `pulumi:"tcpMssSender"`
// Traffic shaper.
TrafficShaper *string `pulumi:"trafficShaper"`
// Reverse traffic shaper.
TrafficShaperReverse *string `pulumi:"trafficShaperReverse"`
// URL category ID list. The structure of `urlCategory` block is documented below.
UrlCategories []PolicyUrlCategory `pulumi:"urlCategories"`
// Names of individual users that can authenticate with this policy. The structure of `users` block is documented below.
Users []PolicyUser `pulumi:"users"`
// Enable to add one or more security profiles (AV, IPS, etc.) to the firewall policy. Valid values: `enable`, `disable`.
UtmStatus *string `pulumi:"utmStatus"`
// Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
Uuid *string `pulumi:"uuid"`
// 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"`
// Name of an existing VoIP profile.
VoipProfile *string `pulumi:"voipProfile"`
// Policy-based IPsec VPN: name of the IPsec VPN Phase 1.
Vpntunnel *string `pulumi:"vpntunnel"`
// Name of an existing Web application firewall profile.
WafProfile *string `pulumi:"wafProfile"`
// Enable/disable WAN optimization. Valid values: `enable`, `disable`.
Wanopt *string `pulumi:"wanopt"`
// WAN optimization auto-detection mode. Valid values: `active`, `passive`, `off`.
WanoptDetection *string `pulumi:"wanoptDetection"`
// WAN optimization passive mode options. This option decides what IP address will be used to connect to server. Valid values: `default`, `transparent`, `non-transparent`.
WanoptPassiveOpt *string `pulumi:"wanoptPassiveOpt"`
// WAN optimization peer.
WanoptPeer *string `pulumi:"wanoptPeer"`
// WAN optimization profile.
WanoptProfile *string `pulumi:"wanoptProfile"`
// Enable/disable web cache. Valid values: `enable`, `disable`.
Webcache *string `pulumi:"webcache"`
// Enable/disable web cache for HTTPS. Valid values: `disable`, `enable`.
WebcacheHttps *string `pulumi:"webcacheHttps"`
// Name of an existing Web filter profile.
WebfilterProfile *string `pulumi:"webfilterProfile"`
// Webproxy forward server name.
WebproxyForwardServer *string `pulumi:"webproxyForwardServer"`
// Webproxy profile name.
WebproxyProfile *string `pulumi:"webproxyProfile"`
}
// The set of arguments for constructing a Policy resource.
type PolicyArgs struct {
// Policy action (allow/deny/ipsec). Valid values: `accept`, `deny`, `ipsec`.
Action pulumi.StringPtrInput
// Application category ID list. The structure of `appCategory` block is documented below.
AppCategories PolicyAppCategoryArrayInput
// Application group names. The structure of `appGroup` block is documented below.
AppGroups PolicyAppGroupArrayInput
// Name of an existing Application list.
ApplicationList pulumi.StringPtrInput
// Application ID list. The structure of `application` block is documented below.
Applications PolicyApplicationArrayInput
// Enable/disable policy traffic ASIC offloading. Valid values: `enable`, `disable`.
AutoAsicOffload pulumi.StringPtrInput
// Name of an existing Antivirus profile.
AvProfile pulumi.StringPtrInput
// Enable exemption of some users from the captive portal. Valid values: `enable`, `disable`.
CaptivePortalExempt pulumi.StringPtrInput
// Name of an existing CIFS profile.
CifsProfile pulumi.StringPtrInput
// Comment.
Comments pulumi.StringPtrInput
// Enable to change packet's DiffServ values to the specified diffservcode-forward value. Valid values: `enable`, `disable`.
DiffservForward pulumi.StringPtrInput
// Enable to change packet's reverse (reply) DiffServ values to the specified diffservcode-rev value. Valid values: `enable`, `disable`.
DiffservReverse pulumi.StringPtrInput
// Change packet's DiffServ to this value.
DiffservcodeForward pulumi.StringPtrInput
// Change packet's reverse (reply) DiffServ to this value.
DiffservcodeRev pulumi.StringPtrInput
// Name of an existing DLP sensor.
DlpSensor pulumi.StringPtrInput
// Name of an existing DNS filter profile.
DnsfilterProfile pulumi.StringPtrInput
// Destination IPv4 address name and address group names. The structure of `dstaddr4` block is documented below.
Dstaddr4s PolicyDstaddr4ArrayInput
// Destination IPv6 address name and address group names. The structure of `dstaddr6` block is documented below.
Dstaddr6s PolicyDstaddr6ArrayInput
// When enabled dstaddr specifies what the destination address must NOT be. Valid values: `enable`, `disable`.
DstaddrNegate pulumi.StringPtrInput
// Outgoing (egress) interface. The structure of `dstintf` block is documented below.
Dstintfs PolicyDstintfArrayInput
// 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
// Name of an existing email filter profile.
EmailfilterProfile pulumi.StringPtrInput
// Enable to prevent source NAT from changing a session's source port. Valid values: `enable`, `disable`.
Fixedport pulumi.StringPtrInput
// Names of FSSO groups. The structure of `fssoGroups` block is documented below.
FssoGroups PolicyFssoGroupArrayInput
// 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
// Names of user groups that can authenticate with this policy. The structure of `groups` block is documented below.
Groups PolicyGroupArrayInput
// Redirect HTTP(S) traffic to matching transparent web proxy policy. Valid values: `enable`, `disable`.
HttpPolicyRedirect pulumi.StringPtrInput
// Name of an existing ICAP profile.
IcapProfile pulumi.StringPtrInput
// Policy-based IPsec VPN: only traffic from the remote network can initiate a VPN. Valid values: `enable`, `disable`.
Inbound pulumi.StringPtrInput
// Policy inspection mode (Flow/proxy). Default is Flow mode. Valid values: `proxy`, `flow`.
InspectionMode pulumi.StringPtrInput
// Enable/disable use of Internet Services for this policy. If enabled, destination address and service are not used. Valid values: `enable`, `disable`.
InternetService pulumi.StringPtrInput
// Custom Internet Service group name. The structure of `internetServiceCustomGroup` block is documented below.
InternetServiceCustomGroups PolicyInternetServiceCustomGroupArrayInput
// Custom Internet Service name. The structure of `internetServiceCustom` block is documented below.
InternetServiceCustoms PolicyInternetServiceCustomArrayInput
// Internet Service group name. The structure of `internetServiceGroup` block is documented below.
InternetServiceGroups PolicyInternetServiceGroupArrayInput
// Internet Service ID. The structure of `internetServiceId` block is documented below.
InternetServiceIds PolicyInternetServiceIdArrayInput
// Internet Service name. The structure of `internetServiceName` block is documented below.
InternetServiceNames PolicyInternetServiceNameArrayInput
// When enabled internet-service specifies what the service must NOT be. Valid values: `enable`, `disable`.
InternetServiceNegate pulumi.StringPtrInput
// Enable/disable use of Internet Services in source for this policy. If enabled, source address is not used. Valid values: `enable`, `disable`.
InternetServiceSrc pulumi.StringPtrInput
// Custom Internet Service source group name. The structure of `internetServiceSrcCustomGroup` block is documented below.
InternetServiceSrcCustomGroups PolicyInternetServiceSrcCustomGroupArrayInput
// Custom Internet Service source name. The structure of `internetServiceSrcCustom` block is documented below.
InternetServiceSrcCustoms PolicyInternetServiceSrcCustomArrayInput
// Internet Service source group name. The structure of `internetServiceSrcGroup` block is documented below.
InternetServiceSrcGroups PolicyInternetServiceSrcGroupArrayInput
// Internet Service source ID. The structure of `internetServiceSrcId` block is documented below.
InternetServiceSrcIds PolicyInternetServiceSrcIdArrayInput
// Internet Service source name. The structure of `internetServiceSrcName` block is documented below.
InternetServiceSrcNames PolicyInternetServiceSrcNameArrayInput
// When enabled internet-service-src specifies what the service must NOT be. Valid values: `enable`, `disable`.
InternetServiceSrcNegate pulumi.StringPtrInput
// Enable to use IP Pools for source NAT. Valid values: `enable`, `disable`.
Ippool pulumi.StringPtrInput
// Name of an existing IPS sensor.
IpsSensor pulumi.StringPtrInput
// Enable or disable logging. Log all sessions or security profile sessions. Valid values: `all`, `utm`, `disable`.
Logtraffic pulumi.StringPtrInput
// Record logs when a session starts. Valid values: `enable`, `disable`.
LogtrafficStart pulumi.StringPtrInput
// Policy name.
Name pulumi.StringPtrInput
// Enable/disable source NAT. Valid values: `enable`, `disable`.
Nat pulumi.StringPtrInput
// Policy-based IPsec VPN: only traffic from the internal network can initiate a VPN. Valid values: `enable`, `disable`.
Outbound pulumi.StringPtrInput
// Per-IP traffic shaper.
PerIpShaper pulumi.StringPtrInput
// Policy ID.
Policyid pulumi.IntPtrInput
// IPv4 pool names. The structure of `poolname4` block is documented below.
Poolname4s PolicyPoolname4ArrayInput
// IPv6 pool names. The structure of `poolname6` block is documented below.
Poolname6s PolicyPoolname6ArrayInput
// Name of profile group.
ProfileGroup pulumi.StringPtrInput
// Name of an existing Protocol options profile.
ProfileProtocolOptions pulumi.StringPtrInput
// Determine whether the firewall policy allows security profile groups or single profiles only. Valid values: `single`, `group`.
ProfileType pulumi.StringPtrInput
// Schedule name.
Schedule pulumi.StringPtrInput
// When enabled service specifies what the service must NOT be. Valid values: `enable`, `disable`.
ServiceNegate pulumi.StringPtrInput
// Service and service group names. The structure of `service` block is documented below.
Services PolicyServiceArrayInput
// TTL in seconds for sessions accepted by this policy (0 means use the system default session TTL).
SessionTtl pulumi.IntPtrInput
// Name of an existing Spam filter profile.
SpamfilterProfile pulumi.StringPtrInput
// Source IPv4 address name and address group names. The structure of `srcaddr4` block is documented below.
Srcaddr4s PolicySrcaddr4ArrayInput
// Source IPv6 address name and address group names. The structure of `srcaddr6` block is documented below.
Srcaddr6s PolicySrcaddr6ArrayInput
// When enabled srcaddr specifies what the source address must NOT be. Valid values: `enable`, `disable`.
SrcaddrNegate pulumi.StringPtrInput
// Incoming (ingress) interface. The structure of `srcintf` block is documented below.
Srcintfs PolicySrcintfArrayInput
// Name of an existing SSH filter profile.
SshFilterProfile pulumi.StringPtrInput
// Redirect SSH traffic to matching transparent proxy policy. Valid values: `enable`, `disable`.
SshPolicyRedirect pulumi.StringPtrInput
// Name of an existing SSL SSH profile.
SslSshProfile pulumi.StringPtrInput
// Enable or disable this policy. Valid values: `enable`, `disable`.
Status pulumi.StringPtrInput
// Receiver TCP maximum segment size (MSS).
TcpMssReceiver pulumi.IntPtrInput
// Sender TCP maximum segment size (MSS).
TcpMssSender pulumi.IntPtrInput
// Traffic shaper.
TrafficShaper pulumi.StringPtrInput
// Reverse traffic shaper.
TrafficShaperReverse pulumi.StringPtrInput
// URL category ID list. The structure of `urlCategory` block is documented below.
UrlCategories PolicyUrlCategoryArrayInput
// Names of individual users that can authenticate with this policy. The structure of `users` block is documented below.
Users PolicyUserArrayInput
// Enable to add one or more security profiles (AV, IPS, etc.) to the firewall policy. Valid values: `enable`, `disable`.
UtmStatus pulumi.StringPtrInput
// Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
Uuid 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
// Name of an existing VoIP profile.
VoipProfile pulumi.StringPtrInput
// Policy-based IPsec VPN: name of the IPsec VPN Phase 1.
Vpntunnel pulumi.StringPtrInput
// Name of an existing Web application firewall profile.
WafProfile pulumi.StringPtrInput
// Enable/disable WAN optimization. Valid values: `enable`, `disable`.
Wanopt pulumi.StringPtrInput
// WAN optimization auto-detection mode. Valid values: `active`, `passive`, `off`.
WanoptDetection pulumi.StringPtrInput
// WAN optimization passive mode options. This option decides what IP address will be used to connect to server. Valid values: `default`, `transparent`, `non-transparent`.
WanoptPassiveOpt pulumi.StringPtrInput
// WAN optimization peer.
WanoptPeer pulumi.StringPtrInput
// WAN optimization profile.