/
settings.go
1450 lines (1324 loc) · 85.6 KB
/
settings.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 ssl
import (
"context"
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-fortios/sdk/go/fortios/internal"
)
// Configure SSL VPN.
//
// ## Example Usage
//
// <!--Start PulumiCodeChooser -->
// ```go
// package main
//
// import (
//
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
// "github.com/pulumiverse/pulumi-fortios/sdk/go/fortios/vpn"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// _, err := vpn.NewSettings(ctx, "trname", &vpn.SettingsArgs{
// LoginAttemptLimit: pulumi.Int(2),
// LoginBlockTime: pulumi.Int(60),
// LoginTimeout: pulumi.Int(30),
// Port: pulumi.Int(443),
// Servercert: pulumi.String("self-sign"),
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
// <!--End PulumiCodeChooser -->
//
// ## Import
//
// VpnSsl Settings can be imported using any of these accepted formats:
//
// ```sh
// $ pulumi import fortios:vpn/ssl/settings:Settings labelname VpnSslSettings
// ```
//
// If you do not want to import arguments of block:
//
// $ export "FORTIOS_IMPORT_TABLE"="false"
//
// ```sh
// $ pulumi import fortios:vpn/ssl/settings:Settings labelname VpnSslSettings
// ```
//
// $ unset "FORTIOS_IMPORT_TABLE"
type Settings struct {
pulumi.CustomResourceState
// Force the SSL-VPN security level. High allows only high. Medium allows medium and high. Low allows any. Valid values: `high`, `medium`, `default`, `low`.
Algorithm pulumi.StringOutput `pulumi:"algorithm"`
// Enable/disable checking of source IP for authentication session. Valid values: `enable`, `disable`.
AuthSessionCheckSourceIp pulumi.StringOutput `pulumi:"authSessionCheckSourceIp"`
// SSL-VPN authentication timeout (1 - 259200 sec (3 days), 0 for no timeout).
AuthTimeout pulumi.IntOutput `pulumi:"authTimeout"`
// Authentication rule for SSL VPN. The structure of `authenticationRule` block is documented below.
AuthenticationRules SettingsAuthenticationRuleArrayOutput `pulumi:"authenticationRules"`
// Enable to auto-create static routes for the SSL-VPN tunnel IP addresses. Valid values: `enable`, `disable`.
AutoTunnelStaticRoute pulumi.StringOutput `pulumi:"autoTunnelStaticRoute"`
// Select one or more cipher technologies that cannot be used in SSL-VPN negotiations.
BannedCipher pulumi.StringOutput `pulumi:"bannedCipher"`
// Enable/disable overriding the configured system language based on the preferred language of the browser. Valid values: `enable`, `disable`.
BrowserLanguageDetection pulumi.StringOutput `pulumi:"browserLanguageDetection"`
// Enable/disable verification of referer field in HTTP request header. Valid values: `enable`, `disable`.
CheckReferer pulumi.StringOutput `pulumi:"checkReferer"`
// Select one or more TLS 1.3 ciphersuites to enable. Does not affect ciphers in TLS 1.2 and below. At least one must be enabled. To disable all, set ssl-max-proto-ver to tls1-2 or below. Valid values: `TLS-AES-128-GCM-SHA256`, `TLS-AES-256-GCM-SHA384`, `TLS-CHACHA20-POLY1305-SHA256`, `TLS-AES-128-CCM-SHA256`, `TLS-AES-128-CCM-8-SHA256`.
Ciphersuite pulumi.StringOutput `pulumi:"ciphersuite"`
// Set signature algorithms related to client authentication. Affects TLS version <= 1.2 only. Valid values: `no-rsa-pss`, `all`.
ClientSigalgs pulumi.StringOutput `pulumi:"clientSigalgs"`
// Default SSL VPN portal.
DefaultPortal pulumi.StringOutput `pulumi:"defaultPortal"`
// Compression level (0~9).
DeflateCompressionLevel pulumi.IntOutput `pulumi:"deflateCompressionLevel"`
// Minimum amount of data that triggers compression (200 - 65535 bytes).
DeflateMinDataSize pulumi.IntOutput `pulumi:"deflateMinDataSize"`
// DNS server 1.
DnsServer1 pulumi.StringOutput `pulumi:"dnsServer1"`
// DNS server 2.
DnsServer2 pulumi.StringOutput `pulumi:"dnsServer2"`
// DNS suffix used for SSL-VPN clients.
DnsSuffix pulumi.StringPtrOutput `pulumi:"dnsSuffix"`
// Number of missing heartbeats before the connection is considered dropped.
DtlsHeartbeatFailCount pulumi.IntOutput `pulumi:"dtlsHeartbeatFailCount"`
// Idle timeout before DTLS heartbeat is sent.
DtlsHeartbeatIdleTimeout pulumi.IntOutput `pulumi:"dtlsHeartbeatIdleTimeout"`
// Interval between DTLS heartbeat.
DtlsHeartbeatInterval pulumi.IntOutput `pulumi:"dtlsHeartbeatInterval"`
// SSLVPN maximum DTLS hello timeout (10 - 60 sec, default = 10).
DtlsHelloTimeout pulumi.IntOutput `pulumi:"dtlsHelloTimeout"`
// DTLS maximum protocol version. Valid values: `dtls1-0`, `dtls1-2`.
DtlsMaxProtoVer pulumi.StringOutput `pulumi:"dtlsMaxProtoVer"`
// DTLS minimum protocol version. Valid values: `dtls1-0`, `dtls1-2`.
DtlsMinProtoVer pulumi.StringOutput `pulumi:"dtlsMinProtoVer"`
// Enable DTLS to prevent eavesdropping, tampering, or message forgery. Valid values: `enable`, `disable`.
DtlsTunnel pulumi.StringOutput `pulumi:"dtlsTunnel"`
// Tunnel mode: enable parallel IPv4 and IPv6 tunnel. Web mode: support IPv4 and IPv6 bookmarks in the portal. Valid values: `enable`, `disable`.
DualStackMode pulumi.StringOutput `pulumi:"dualStackMode"`
// 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"`
// Encode \2F sequence to forward slash in URLs. Valid values: `enable`, `disable`.
Encode2fSequence pulumi.StringOutput `pulumi:"encode2fSequence"`
// Encrypt and store user passwords for SSL-VPN web sessions. Valid values: `enable`, `disable`.
EncryptAndStorePassword pulumi.StringOutput `pulumi:"encryptAndStorePassword"`
// Enable to force two-factor authentication for all SSL-VPNs. Valid values: `enable`, `disable`.
ForceTwoFactorAuth pulumi.StringOutput `pulumi:"forceTwoFactorAuth"`
// 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"`
// Forward the same, add, or remove HTTP header. Valid values: `pass`, `add`, `remove`.
HeaderXForwardedFor pulumi.StringOutput `pulumi:"headerXForwardedFor"`
// Add HSTS includeSubDomains response header. Valid values: `enable`, `disable`.
HstsIncludeSubdomains pulumi.StringOutput `pulumi:"hstsIncludeSubdomains"`
// Enable to allow HTTP compression over SSL-VPN tunnels. Valid values: `enable`, `disable`.
HttpCompression pulumi.StringOutput `pulumi:"httpCompression"`
// Enable/disable SSL-VPN support for HttpOnly cookies. Valid values: `enable`, `disable`.
HttpOnlyCookie pulumi.StringOutput `pulumi:"httpOnlyCookie"`
// SSL-VPN session is disconnected if an HTTP request body is not received within this time (1 - 60 sec, default = 20).
HttpRequestBodyTimeout pulumi.IntOutput `pulumi:"httpRequestBodyTimeout"`
// SSL-VPN session is disconnected if an HTTP request header is not received within this time (1 - 60 sec, default = 20).
HttpRequestHeaderTimeout pulumi.IntOutput `pulumi:"httpRequestHeaderTimeout"`
// Enable/disable redirect of port 80 to SSL-VPN port. Valid values: `enable`, `disable`.
HttpsRedirect pulumi.StringOutput `pulumi:"httpsRedirect"`
// SSL VPN disconnects if idle for specified time in seconds.
IdleTimeout pulumi.IntOutput `pulumi:"idleTimeout"`
// IPv6 DNS server 1.
Ipv6DnsServer1 pulumi.StringOutput `pulumi:"ipv6DnsServer1"`
// IPv6 DNS server 2.
Ipv6DnsServer2 pulumi.StringOutput `pulumi:"ipv6DnsServer2"`
// IPv6 WINS server 1.
Ipv6WinsServer1 pulumi.StringOutput `pulumi:"ipv6WinsServer1"`
// IPv6 WINS server 2.
Ipv6WinsServer2 pulumi.StringOutput `pulumi:"ipv6WinsServer2"`
// SSL VPN maximum login attempt times before block (0 - 10, default = 2, 0 = no limit).
LoginAttemptLimit pulumi.IntOutput `pulumi:"loginAttemptLimit"`
// Time for which a user is blocked from logging in after too many failed login attempts (0 - 86400 sec, default = 60).
LoginBlockTime pulumi.IntOutput `pulumi:"loginBlockTime"`
// SSLVPN maximum login timeout (10 - 180 sec, default = 30).
LoginTimeout pulumi.IntOutput `pulumi:"loginTimeout"`
// SSL-VPN access port (1 - 65535).
Port pulumi.IntOutput `pulumi:"port"`
// Enable means that if SSL-VPN connections are allowed on an interface admin GUI connections are blocked on that interface. Valid values: `enable`, `disable`.
PortPrecedence pulumi.StringOutput `pulumi:"portPrecedence"`
// Enable to require client certificates for all SSL-VPN users. Valid values: `enable`, `disable`.
Reqclientcert pulumi.StringOutput `pulumi:"reqclientcert"`
// Enable to allow SSL-VPN sessions to bypass routing and bind to the incoming interface. Valid values: `enable`, `disable`.
RouteSourceInterface pulumi.StringOutput `pulumi:"routeSourceInterface"`
// SAML local redirect port in the machine running FCT (0 - 65535). 0 is to disable redirection on FGT side.
SamlRedirectPort pulumi.IntOutput `pulumi:"samlRedirectPort"`
// Server hostname for HTTPS. When set, will be used for SSL VPN web proxy host header for any redirection.
ServerHostname pulumi.StringOutput `pulumi:"serverHostname"`
// Name of the server certificate to be used for SSL-VPNs.
Servercert pulumi.StringOutput `pulumi:"servercert"`
// Enable/disable negated source IPv6 address match. Valid values: `enable`, `disable`.
SourceAddress6Negate pulumi.StringOutput `pulumi:"sourceAddress6Negate"`
// IPv6 source address of incoming traffic. The structure of `sourceAddress6` block is documented below.
SourceAddress6s SettingsSourceAddress6ArrayOutput `pulumi:"sourceAddress6s"`
// Enable/disable negated source address match. Valid values: `enable`, `disable`.
SourceAddressNegate pulumi.StringOutput `pulumi:"sourceAddressNegate"`
// Source address of incoming traffic. The structure of `sourceAddress` block is documented below.
SourceAddresses SettingsSourceAddressArrayOutput `pulumi:"sourceAddresses"`
// SSL VPN source interface of incoming traffic. The structure of `sourceInterface` block is documented below.
SourceInterfaces SettingsSourceInterfaceArrayOutput `pulumi:"sourceInterfaces"`
// Enable to allow client renegotiation by the server if the tunnel goes down. Valid values: `disable`, `enable`.
SslClientRenegotiation pulumi.StringOutput `pulumi:"sslClientRenegotiation"`
// Enable/disable insertion of empty fragment. Valid values: `enable`, `disable`.
SslInsertEmptyFragment pulumi.StringOutput `pulumi:"sslInsertEmptyFragment"`
// SSL maximum protocol version. Valid values: `tls1-0`, `tls1-1`, `tls1-2`, `tls1-3`.
SslMaxProtoVer pulumi.StringOutput `pulumi:"sslMaxProtoVer"`
// SSL minimum protocol version. Valid values: `tls1-0`, `tls1-1`, `tls1-2`, `tls1-3`.
SslMinProtoVer pulumi.StringOutput `pulumi:"sslMinProtoVer"`
// Enable/disable SSL-VPN. Valid values: `enable`, `disable`.
Status pulumi.StringOutput `pulumi:"status"`
// Enable/disable TLSv1.0. Valid values: `enable`, `disable`.
Tlsv10 pulumi.StringOutput `pulumi:"tlsv10"`
// Enable/disable TLSv1.1. Valid values: `enable`, `disable`.
Tlsv11 pulumi.StringOutput `pulumi:"tlsv11"`
// Enable/disable TLSv1.2. Valid values: `enable`, `disable`.
Tlsv12 pulumi.StringOutput `pulumi:"tlsv12"`
// Enable/disable TLSv1.3. Valid values: `enable`, `disable`.
Tlsv13 pulumi.StringOutput `pulumi:"tlsv13"`
// Transform backward slashes to forward slashes in URLs. Valid values: `enable`, `disable`.
TransformBackwardSlashes pulumi.StringOutput `pulumi:"transformBackwardSlashes"`
// Method used for assigning address for tunnel. Valid values: `first-available`, `round-robin`.
TunnelAddrAssignedMethod pulumi.StringOutput `pulumi:"tunnelAddrAssignedMethod"`
// Enable/disable tunnel connection without re-authorization if previous connection dropped. Valid values: `enable`, `disable`.
TunnelConnectWithoutReauth pulumi.StringOutput `pulumi:"tunnelConnectWithoutReauth"`
// Names of the IPv4 IP Pool firewall objects that define the IP addresses reserved for remote clients. The structure of `tunnelIpPools` block is documented below.
TunnelIpPools SettingsTunnelIpPoolArrayOutput `pulumi:"tunnelIpPools"`
// Names of the IPv6 IP Pool firewall objects that define the IP addresses reserved for remote clients. The structure of `tunnelIpv6Pools` block is documented below.
TunnelIpv6Pools SettingsTunnelIpv6PoolArrayOutput `pulumi:"tunnelIpv6Pools"`
// Time out value to clean up user session after tunnel connection is dropped (1 - 255 sec, default=30).
TunnelUserSessionTimeout pulumi.IntOutput `pulumi:"tunnelUserSessionTimeout"`
// Enable/disable unsafe legacy re-negotiation. Valid values: `enable`, `disable`.
UnsafeLegacyRenegotiation pulumi.StringOutput `pulumi:"unsafeLegacyRenegotiation"`
// Enable to obscure the host name of the URL of the web browser display. Valid values: `enable`, `disable`.
UrlObscuration pulumi.StringOutput `pulumi:"urlObscuration"`
// Name of user peer.
UserPeer pulumi.StringOutput `pulumi:"userPeer"`
// Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
Vdomparam pulumi.StringPtrOutput `pulumi:"vdomparam"`
// Enable/disable use of IP pools defined in firewall policy while using web-mode. Valid values: `enable`, `disable`.
WebModeSnat pulumi.StringOutput `pulumi:"webModeSnat"`
// WINS server 1.
WinsServer1 pulumi.StringOutput `pulumi:"winsServer1"`
// WINS server 2.
WinsServer2 pulumi.StringOutput `pulumi:"winsServer2"`
// Add HTTP X-Content-Type-Options header. Valid values: `enable`, `disable`.
XContentTypeOptions pulumi.StringOutput `pulumi:"xContentTypeOptions"`
// Enable/disable verification of device certificate for SSLVPN ZTNA session. Valid values: `enable`, `disable`.
ZtnaTrustedClient pulumi.StringOutput `pulumi:"ztnaTrustedClient"`
}
// NewSettings registers a new resource with the given unique name, arguments, and options.
func NewSettings(ctx *pulumi.Context,
name string, args *SettingsArgs, opts ...pulumi.ResourceOption) (*Settings, error) {
if args == nil {
args = &SettingsArgs{}
}
opts = internal.PkgResourceDefaultOpts(opts)
var resource Settings
err := ctx.RegisterResource("fortios:vpn/ssl/settings:Settings", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetSettings gets an existing Settings 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 GetSettings(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *SettingsState, opts ...pulumi.ResourceOption) (*Settings, error) {
var resource Settings
err := ctx.ReadResource("fortios:vpn/ssl/settings:Settings", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering Settings resources.
type settingsState struct {
// Force the SSL-VPN security level. High allows only high. Medium allows medium and high. Low allows any. Valid values: `high`, `medium`, `default`, `low`.
Algorithm *string `pulumi:"algorithm"`
// Enable/disable checking of source IP for authentication session. Valid values: `enable`, `disable`.
AuthSessionCheckSourceIp *string `pulumi:"authSessionCheckSourceIp"`
// SSL-VPN authentication timeout (1 - 259200 sec (3 days), 0 for no timeout).
AuthTimeout *int `pulumi:"authTimeout"`
// Authentication rule for SSL VPN. The structure of `authenticationRule` block is documented below.
AuthenticationRules []SettingsAuthenticationRule `pulumi:"authenticationRules"`
// Enable to auto-create static routes for the SSL-VPN tunnel IP addresses. Valid values: `enable`, `disable`.
AutoTunnelStaticRoute *string `pulumi:"autoTunnelStaticRoute"`
// Select one or more cipher technologies that cannot be used in SSL-VPN negotiations.
BannedCipher *string `pulumi:"bannedCipher"`
// Enable/disable overriding the configured system language based on the preferred language of the browser. Valid values: `enable`, `disable`.
BrowserLanguageDetection *string `pulumi:"browserLanguageDetection"`
// Enable/disable verification of referer field in HTTP request header. Valid values: `enable`, `disable`.
CheckReferer *string `pulumi:"checkReferer"`
// Select one or more TLS 1.3 ciphersuites to enable. Does not affect ciphers in TLS 1.2 and below. At least one must be enabled. To disable all, set ssl-max-proto-ver to tls1-2 or below. Valid values: `TLS-AES-128-GCM-SHA256`, `TLS-AES-256-GCM-SHA384`, `TLS-CHACHA20-POLY1305-SHA256`, `TLS-AES-128-CCM-SHA256`, `TLS-AES-128-CCM-8-SHA256`.
Ciphersuite *string `pulumi:"ciphersuite"`
// Set signature algorithms related to client authentication. Affects TLS version <= 1.2 only. Valid values: `no-rsa-pss`, `all`.
ClientSigalgs *string `pulumi:"clientSigalgs"`
// Default SSL VPN portal.
DefaultPortal *string `pulumi:"defaultPortal"`
// Compression level (0~9).
DeflateCompressionLevel *int `pulumi:"deflateCompressionLevel"`
// Minimum amount of data that triggers compression (200 - 65535 bytes).
DeflateMinDataSize *int `pulumi:"deflateMinDataSize"`
// DNS server 1.
DnsServer1 *string `pulumi:"dnsServer1"`
// DNS server 2.
DnsServer2 *string `pulumi:"dnsServer2"`
// DNS suffix used for SSL-VPN clients.
DnsSuffix *string `pulumi:"dnsSuffix"`
// Number of missing heartbeats before the connection is considered dropped.
DtlsHeartbeatFailCount *int `pulumi:"dtlsHeartbeatFailCount"`
// Idle timeout before DTLS heartbeat is sent.
DtlsHeartbeatIdleTimeout *int `pulumi:"dtlsHeartbeatIdleTimeout"`
// Interval between DTLS heartbeat.
DtlsHeartbeatInterval *int `pulumi:"dtlsHeartbeatInterval"`
// SSLVPN maximum DTLS hello timeout (10 - 60 sec, default = 10).
DtlsHelloTimeout *int `pulumi:"dtlsHelloTimeout"`
// DTLS maximum protocol version. Valid values: `dtls1-0`, `dtls1-2`.
DtlsMaxProtoVer *string `pulumi:"dtlsMaxProtoVer"`
// DTLS minimum protocol version. Valid values: `dtls1-0`, `dtls1-2`.
DtlsMinProtoVer *string `pulumi:"dtlsMinProtoVer"`
// Enable DTLS to prevent eavesdropping, tampering, or message forgery. Valid values: `enable`, `disable`.
DtlsTunnel *string `pulumi:"dtlsTunnel"`
// Tunnel mode: enable parallel IPv4 and IPv6 tunnel. Web mode: support IPv4 and IPv6 bookmarks in the portal. Valid values: `enable`, `disable`.
DualStackMode *string `pulumi:"dualStackMode"`
// 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"`
// Encode \2F sequence to forward slash in URLs. Valid values: `enable`, `disable`.
Encode2fSequence *string `pulumi:"encode2fSequence"`
// Encrypt and store user passwords for SSL-VPN web sessions. Valid values: `enable`, `disable`.
EncryptAndStorePassword *string `pulumi:"encryptAndStorePassword"`
// Enable to force two-factor authentication for all SSL-VPNs. Valid values: `enable`, `disable`.
ForceTwoFactorAuth *string `pulumi:"forceTwoFactorAuth"`
// 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"`
// Forward the same, add, or remove HTTP header. Valid values: `pass`, `add`, `remove`.
HeaderXForwardedFor *string `pulumi:"headerXForwardedFor"`
// Add HSTS includeSubDomains response header. Valid values: `enable`, `disable`.
HstsIncludeSubdomains *string `pulumi:"hstsIncludeSubdomains"`
// Enable to allow HTTP compression over SSL-VPN tunnels. Valid values: `enable`, `disable`.
HttpCompression *string `pulumi:"httpCompression"`
// Enable/disable SSL-VPN support for HttpOnly cookies. Valid values: `enable`, `disable`.
HttpOnlyCookie *string `pulumi:"httpOnlyCookie"`
// SSL-VPN session is disconnected if an HTTP request body is not received within this time (1 - 60 sec, default = 20).
HttpRequestBodyTimeout *int `pulumi:"httpRequestBodyTimeout"`
// SSL-VPN session is disconnected if an HTTP request header is not received within this time (1 - 60 sec, default = 20).
HttpRequestHeaderTimeout *int `pulumi:"httpRequestHeaderTimeout"`
// Enable/disable redirect of port 80 to SSL-VPN port. Valid values: `enable`, `disable`.
HttpsRedirect *string `pulumi:"httpsRedirect"`
// SSL VPN disconnects if idle for specified time in seconds.
IdleTimeout *int `pulumi:"idleTimeout"`
// IPv6 DNS server 1.
Ipv6DnsServer1 *string `pulumi:"ipv6DnsServer1"`
// IPv6 DNS server 2.
Ipv6DnsServer2 *string `pulumi:"ipv6DnsServer2"`
// IPv6 WINS server 1.
Ipv6WinsServer1 *string `pulumi:"ipv6WinsServer1"`
// IPv6 WINS server 2.
Ipv6WinsServer2 *string `pulumi:"ipv6WinsServer2"`
// SSL VPN maximum login attempt times before block (0 - 10, default = 2, 0 = no limit).
LoginAttemptLimit *int `pulumi:"loginAttemptLimit"`
// Time for which a user is blocked from logging in after too many failed login attempts (0 - 86400 sec, default = 60).
LoginBlockTime *int `pulumi:"loginBlockTime"`
// SSLVPN maximum login timeout (10 - 180 sec, default = 30).
LoginTimeout *int `pulumi:"loginTimeout"`
// SSL-VPN access port (1 - 65535).
Port *int `pulumi:"port"`
// Enable means that if SSL-VPN connections are allowed on an interface admin GUI connections are blocked on that interface. Valid values: `enable`, `disable`.
PortPrecedence *string `pulumi:"portPrecedence"`
// Enable to require client certificates for all SSL-VPN users. Valid values: `enable`, `disable`.
Reqclientcert *string `pulumi:"reqclientcert"`
// Enable to allow SSL-VPN sessions to bypass routing and bind to the incoming interface. Valid values: `enable`, `disable`.
RouteSourceInterface *string `pulumi:"routeSourceInterface"`
// SAML local redirect port in the machine running FCT (0 - 65535). 0 is to disable redirection on FGT side.
SamlRedirectPort *int `pulumi:"samlRedirectPort"`
// Server hostname for HTTPS. When set, will be used for SSL VPN web proxy host header for any redirection.
ServerHostname *string `pulumi:"serverHostname"`
// Name of the server certificate to be used for SSL-VPNs.
Servercert *string `pulumi:"servercert"`
// Enable/disable negated source IPv6 address match. Valid values: `enable`, `disable`.
SourceAddress6Negate *string `pulumi:"sourceAddress6Negate"`
// IPv6 source address of incoming traffic. The structure of `sourceAddress6` block is documented below.
SourceAddress6s []SettingsSourceAddress6 `pulumi:"sourceAddress6s"`
// Enable/disable negated source address match. Valid values: `enable`, `disable`.
SourceAddressNegate *string `pulumi:"sourceAddressNegate"`
// Source address of incoming traffic. The structure of `sourceAddress` block is documented below.
SourceAddresses []SettingsSourceAddress `pulumi:"sourceAddresses"`
// SSL VPN source interface of incoming traffic. The structure of `sourceInterface` block is documented below.
SourceInterfaces []SettingsSourceInterface `pulumi:"sourceInterfaces"`
// Enable to allow client renegotiation by the server if the tunnel goes down. Valid values: `disable`, `enable`.
SslClientRenegotiation *string `pulumi:"sslClientRenegotiation"`
// Enable/disable insertion of empty fragment. Valid values: `enable`, `disable`.
SslInsertEmptyFragment *string `pulumi:"sslInsertEmptyFragment"`
// SSL maximum protocol version. Valid values: `tls1-0`, `tls1-1`, `tls1-2`, `tls1-3`.
SslMaxProtoVer *string `pulumi:"sslMaxProtoVer"`
// SSL minimum protocol version. Valid values: `tls1-0`, `tls1-1`, `tls1-2`, `tls1-3`.
SslMinProtoVer *string `pulumi:"sslMinProtoVer"`
// Enable/disable SSL-VPN. Valid values: `enable`, `disable`.
Status *string `pulumi:"status"`
// Enable/disable TLSv1.0. Valid values: `enable`, `disable`.
Tlsv10 *string `pulumi:"tlsv10"`
// Enable/disable TLSv1.1. Valid values: `enable`, `disable`.
Tlsv11 *string `pulumi:"tlsv11"`
// Enable/disable TLSv1.2. Valid values: `enable`, `disable`.
Tlsv12 *string `pulumi:"tlsv12"`
// Enable/disable TLSv1.3. Valid values: `enable`, `disable`.
Tlsv13 *string `pulumi:"tlsv13"`
// Transform backward slashes to forward slashes in URLs. Valid values: `enable`, `disable`.
TransformBackwardSlashes *string `pulumi:"transformBackwardSlashes"`
// Method used for assigning address for tunnel. Valid values: `first-available`, `round-robin`.
TunnelAddrAssignedMethod *string `pulumi:"tunnelAddrAssignedMethod"`
// Enable/disable tunnel connection without re-authorization if previous connection dropped. Valid values: `enable`, `disable`.
TunnelConnectWithoutReauth *string `pulumi:"tunnelConnectWithoutReauth"`
// Names of the IPv4 IP Pool firewall objects that define the IP addresses reserved for remote clients. The structure of `tunnelIpPools` block is documented below.
TunnelIpPools []SettingsTunnelIpPool `pulumi:"tunnelIpPools"`
// Names of the IPv6 IP Pool firewall objects that define the IP addresses reserved for remote clients. The structure of `tunnelIpv6Pools` block is documented below.
TunnelIpv6Pools []SettingsTunnelIpv6Pool `pulumi:"tunnelIpv6Pools"`
// Time out value to clean up user session after tunnel connection is dropped (1 - 255 sec, default=30).
TunnelUserSessionTimeout *int `pulumi:"tunnelUserSessionTimeout"`
// Enable/disable unsafe legacy re-negotiation. Valid values: `enable`, `disable`.
UnsafeLegacyRenegotiation *string `pulumi:"unsafeLegacyRenegotiation"`
// Enable to obscure the host name of the URL of the web browser display. Valid values: `enable`, `disable`.
UrlObscuration *string `pulumi:"urlObscuration"`
// Name of user peer.
UserPeer *string `pulumi:"userPeer"`
// Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
Vdomparam *string `pulumi:"vdomparam"`
// Enable/disable use of IP pools defined in firewall policy while using web-mode. Valid values: `enable`, `disable`.
WebModeSnat *string `pulumi:"webModeSnat"`
// WINS server 1.
WinsServer1 *string `pulumi:"winsServer1"`
// WINS server 2.
WinsServer2 *string `pulumi:"winsServer2"`
// Add HTTP X-Content-Type-Options header. Valid values: `enable`, `disable`.
XContentTypeOptions *string `pulumi:"xContentTypeOptions"`
// Enable/disable verification of device certificate for SSLVPN ZTNA session. Valid values: `enable`, `disable`.
ZtnaTrustedClient *string `pulumi:"ztnaTrustedClient"`
}
type SettingsState struct {
// Force the SSL-VPN security level. High allows only high. Medium allows medium and high. Low allows any. Valid values: `high`, `medium`, `default`, `low`.
Algorithm pulumi.StringPtrInput
// Enable/disable checking of source IP for authentication session. Valid values: `enable`, `disable`.
AuthSessionCheckSourceIp pulumi.StringPtrInput
// SSL-VPN authentication timeout (1 - 259200 sec (3 days), 0 for no timeout).
AuthTimeout pulumi.IntPtrInput
// Authentication rule for SSL VPN. The structure of `authenticationRule` block is documented below.
AuthenticationRules SettingsAuthenticationRuleArrayInput
// Enable to auto-create static routes for the SSL-VPN tunnel IP addresses. Valid values: `enable`, `disable`.
AutoTunnelStaticRoute pulumi.StringPtrInput
// Select one or more cipher technologies that cannot be used in SSL-VPN negotiations.
BannedCipher pulumi.StringPtrInput
// Enable/disable overriding the configured system language based on the preferred language of the browser. Valid values: `enable`, `disable`.
BrowserLanguageDetection pulumi.StringPtrInput
// Enable/disable verification of referer field in HTTP request header. Valid values: `enable`, `disable`.
CheckReferer pulumi.StringPtrInput
// Select one or more TLS 1.3 ciphersuites to enable. Does not affect ciphers in TLS 1.2 and below. At least one must be enabled. To disable all, set ssl-max-proto-ver to tls1-2 or below. Valid values: `TLS-AES-128-GCM-SHA256`, `TLS-AES-256-GCM-SHA384`, `TLS-CHACHA20-POLY1305-SHA256`, `TLS-AES-128-CCM-SHA256`, `TLS-AES-128-CCM-8-SHA256`.
Ciphersuite pulumi.StringPtrInput
// Set signature algorithms related to client authentication. Affects TLS version <= 1.2 only. Valid values: `no-rsa-pss`, `all`.
ClientSigalgs pulumi.StringPtrInput
// Default SSL VPN portal.
DefaultPortal pulumi.StringPtrInput
// Compression level (0~9).
DeflateCompressionLevel pulumi.IntPtrInput
// Minimum amount of data that triggers compression (200 - 65535 bytes).
DeflateMinDataSize pulumi.IntPtrInput
// DNS server 1.
DnsServer1 pulumi.StringPtrInput
// DNS server 2.
DnsServer2 pulumi.StringPtrInput
// DNS suffix used for SSL-VPN clients.
DnsSuffix pulumi.StringPtrInput
// Number of missing heartbeats before the connection is considered dropped.
DtlsHeartbeatFailCount pulumi.IntPtrInput
// Idle timeout before DTLS heartbeat is sent.
DtlsHeartbeatIdleTimeout pulumi.IntPtrInput
// Interval between DTLS heartbeat.
DtlsHeartbeatInterval pulumi.IntPtrInput
// SSLVPN maximum DTLS hello timeout (10 - 60 sec, default = 10).
DtlsHelloTimeout pulumi.IntPtrInput
// DTLS maximum protocol version. Valid values: `dtls1-0`, `dtls1-2`.
DtlsMaxProtoVer pulumi.StringPtrInput
// DTLS minimum protocol version. Valid values: `dtls1-0`, `dtls1-2`.
DtlsMinProtoVer pulumi.StringPtrInput
// Enable DTLS to prevent eavesdropping, tampering, or message forgery. Valid values: `enable`, `disable`.
DtlsTunnel pulumi.StringPtrInput
// Tunnel mode: enable parallel IPv4 and IPv6 tunnel. Web mode: support IPv4 and IPv6 bookmarks in the portal. Valid values: `enable`, `disable`.
DualStackMode pulumi.StringPtrInput
// Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
DynamicSortSubtable pulumi.StringPtrInput
// Encode \2F sequence to forward slash in URLs. Valid values: `enable`, `disable`.
Encode2fSequence pulumi.StringPtrInput
// Encrypt and store user passwords for SSL-VPN web sessions. Valid values: `enable`, `disable`.
EncryptAndStorePassword pulumi.StringPtrInput
// Enable to force two-factor authentication for all SSL-VPNs. Valid values: `enable`, `disable`.
ForceTwoFactorAuth pulumi.StringPtrInput
// 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
// Forward the same, add, or remove HTTP header. Valid values: `pass`, `add`, `remove`.
HeaderXForwardedFor pulumi.StringPtrInput
// Add HSTS includeSubDomains response header. Valid values: `enable`, `disable`.
HstsIncludeSubdomains pulumi.StringPtrInput
// Enable to allow HTTP compression over SSL-VPN tunnels. Valid values: `enable`, `disable`.
HttpCompression pulumi.StringPtrInput
// Enable/disable SSL-VPN support for HttpOnly cookies. Valid values: `enable`, `disable`.
HttpOnlyCookie pulumi.StringPtrInput
// SSL-VPN session is disconnected if an HTTP request body is not received within this time (1 - 60 sec, default = 20).
HttpRequestBodyTimeout pulumi.IntPtrInput
// SSL-VPN session is disconnected if an HTTP request header is not received within this time (1 - 60 sec, default = 20).
HttpRequestHeaderTimeout pulumi.IntPtrInput
// Enable/disable redirect of port 80 to SSL-VPN port. Valid values: `enable`, `disable`.
HttpsRedirect pulumi.StringPtrInput
// SSL VPN disconnects if idle for specified time in seconds.
IdleTimeout pulumi.IntPtrInput
// IPv6 DNS server 1.
Ipv6DnsServer1 pulumi.StringPtrInput
// IPv6 DNS server 2.
Ipv6DnsServer2 pulumi.StringPtrInput
// IPv6 WINS server 1.
Ipv6WinsServer1 pulumi.StringPtrInput
// IPv6 WINS server 2.
Ipv6WinsServer2 pulumi.StringPtrInput
// SSL VPN maximum login attempt times before block (0 - 10, default = 2, 0 = no limit).
LoginAttemptLimit pulumi.IntPtrInput
// Time for which a user is blocked from logging in after too many failed login attempts (0 - 86400 sec, default = 60).
LoginBlockTime pulumi.IntPtrInput
// SSLVPN maximum login timeout (10 - 180 sec, default = 30).
LoginTimeout pulumi.IntPtrInput
// SSL-VPN access port (1 - 65535).
Port pulumi.IntPtrInput
// Enable means that if SSL-VPN connections are allowed on an interface admin GUI connections are blocked on that interface. Valid values: `enable`, `disable`.
PortPrecedence pulumi.StringPtrInput
// Enable to require client certificates for all SSL-VPN users. Valid values: `enable`, `disable`.
Reqclientcert pulumi.StringPtrInput
// Enable to allow SSL-VPN sessions to bypass routing and bind to the incoming interface. Valid values: `enable`, `disable`.
RouteSourceInterface pulumi.StringPtrInput
// SAML local redirect port in the machine running FCT (0 - 65535). 0 is to disable redirection on FGT side.
SamlRedirectPort pulumi.IntPtrInput
// Server hostname for HTTPS. When set, will be used for SSL VPN web proxy host header for any redirection.
ServerHostname pulumi.StringPtrInput
// Name of the server certificate to be used for SSL-VPNs.
Servercert pulumi.StringPtrInput
// Enable/disable negated source IPv6 address match. Valid values: `enable`, `disable`.
SourceAddress6Negate pulumi.StringPtrInput
// IPv6 source address of incoming traffic. The structure of `sourceAddress6` block is documented below.
SourceAddress6s SettingsSourceAddress6ArrayInput
// Enable/disable negated source address match. Valid values: `enable`, `disable`.
SourceAddressNegate pulumi.StringPtrInput
// Source address of incoming traffic. The structure of `sourceAddress` block is documented below.
SourceAddresses SettingsSourceAddressArrayInput
// SSL VPN source interface of incoming traffic. The structure of `sourceInterface` block is documented below.
SourceInterfaces SettingsSourceInterfaceArrayInput
// Enable to allow client renegotiation by the server if the tunnel goes down. Valid values: `disable`, `enable`.
SslClientRenegotiation pulumi.StringPtrInput
// Enable/disable insertion of empty fragment. Valid values: `enable`, `disable`.
SslInsertEmptyFragment pulumi.StringPtrInput
// SSL maximum protocol version. Valid values: `tls1-0`, `tls1-1`, `tls1-2`, `tls1-3`.
SslMaxProtoVer pulumi.StringPtrInput
// SSL minimum protocol version. Valid values: `tls1-0`, `tls1-1`, `tls1-2`, `tls1-3`.
SslMinProtoVer pulumi.StringPtrInput
// Enable/disable SSL-VPN. Valid values: `enable`, `disable`.
Status pulumi.StringPtrInput
// Enable/disable TLSv1.0. Valid values: `enable`, `disable`.
Tlsv10 pulumi.StringPtrInput
// Enable/disable TLSv1.1. Valid values: `enable`, `disable`.
Tlsv11 pulumi.StringPtrInput
// Enable/disable TLSv1.2. Valid values: `enable`, `disable`.
Tlsv12 pulumi.StringPtrInput
// Enable/disable TLSv1.3. Valid values: `enable`, `disable`.
Tlsv13 pulumi.StringPtrInput
// Transform backward slashes to forward slashes in URLs. Valid values: `enable`, `disable`.
TransformBackwardSlashes pulumi.StringPtrInput
// Method used for assigning address for tunnel. Valid values: `first-available`, `round-robin`.
TunnelAddrAssignedMethod pulumi.StringPtrInput
// Enable/disable tunnel connection without re-authorization if previous connection dropped. Valid values: `enable`, `disable`.
TunnelConnectWithoutReauth pulumi.StringPtrInput
// Names of the IPv4 IP Pool firewall objects that define the IP addresses reserved for remote clients. The structure of `tunnelIpPools` block is documented below.
TunnelIpPools SettingsTunnelIpPoolArrayInput
// Names of the IPv6 IP Pool firewall objects that define the IP addresses reserved for remote clients. The structure of `tunnelIpv6Pools` block is documented below.
TunnelIpv6Pools SettingsTunnelIpv6PoolArrayInput
// Time out value to clean up user session after tunnel connection is dropped (1 - 255 sec, default=30).
TunnelUserSessionTimeout pulumi.IntPtrInput
// Enable/disable unsafe legacy re-negotiation. Valid values: `enable`, `disable`.
UnsafeLegacyRenegotiation pulumi.StringPtrInput
// Enable to obscure the host name of the URL of the web browser display. Valid values: `enable`, `disable`.
UrlObscuration pulumi.StringPtrInput
// Name of user peer.
UserPeer pulumi.StringPtrInput
// Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
Vdomparam pulumi.StringPtrInput
// Enable/disable use of IP pools defined in firewall policy while using web-mode. Valid values: `enable`, `disable`.
WebModeSnat pulumi.StringPtrInput
// WINS server 1.
WinsServer1 pulumi.StringPtrInput
// WINS server 2.
WinsServer2 pulumi.StringPtrInput
// Add HTTP X-Content-Type-Options header. Valid values: `enable`, `disable`.
XContentTypeOptions pulumi.StringPtrInput
// Enable/disable verification of device certificate for SSLVPN ZTNA session. Valid values: `enable`, `disable`.
ZtnaTrustedClient pulumi.StringPtrInput
}
func (SettingsState) ElementType() reflect.Type {
return reflect.TypeOf((*settingsState)(nil)).Elem()
}
type settingsArgs struct {
// Force the SSL-VPN security level. High allows only high. Medium allows medium and high. Low allows any. Valid values: `high`, `medium`, `default`, `low`.
Algorithm *string `pulumi:"algorithm"`
// Enable/disable checking of source IP for authentication session. Valid values: `enable`, `disable`.
AuthSessionCheckSourceIp *string `pulumi:"authSessionCheckSourceIp"`
// SSL-VPN authentication timeout (1 - 259200 sec (3 days), 0 for no timeout).
AuthTimeout *int `pulumi:"authTimeout"`
// Authentication rule for SSL VPN. The structure of `authenticationRule` block is documented below.
AuthenticationRules []SettingsAuthenticationRule `pulumi:"authenticationRules"`
// Enable to auto-create static routes for the SSL-VPN tunnel IP addresses. Valid values: `enable`, `disable`.
AutoTunnelStaticRoute *string `pulumi:"autoTunnelStaticRoute"`
// Select one or more cipher technologies that cannot be used in SSL-VPN negotiations.
BannedCipher *string `pulumi:"bannedCipher"`
// Enable/disable overriding the configured system language based on the preferred language of the browser. Valid values: `enable`, `disable`.
BrowserLanguageDetection *string `pulumi:"browserLanguageDetection"`
// Enable/disable verification of referer field in HTTP request header. Valid values: `enable`, `disable`.
CheckReferer *string `pulumi:"checkReferer"`
// Select one or more TLS 1.3 ciphersuites to enable. Does not affect ciphers in TLS 1.2 and below. At least one must be enabled. To disable all, set ssl-max-proto-ver to tls1-2 or below. Valid values: `TLS-AES-128-GCM-SHA256`, `TLS-AES-256-GCM-SHA384`, `TLS-CHACHA20-POLY1305-SHA256`, `TLS-AES-128-CCM-SHA256`, `TLS-AES-128-CCM-8-SHA256`.
Ciphersuite *string `pulumi:"ciphersuite"`
// Set signature algorithms related to client authentication. Affects TLS version <= 1.2 only. Valid values: `no-rsa-pss`, `all`.
ClientSigalgs *string `pulumi:"clientSigalgs"`
// Default SSL VPN portal.
DefaultPortal *string `pulumi:"defaultPortal"`
// Compression level (0~9).
DeflateCompressionLevel *int `pulumi:"deflateCompressionLevel"`
// Minimum amount of data that triggers compression (200 - 65535 bytes).
DeflateMinDataSize *int `pulumi:"deflateMinDataSize"`
// DNS server 1.
DnsServer1 *string `pulumi:"dnsServer1"`
// DNS server 2.
DnsServer2 *string `pulumi:"dnsServer2"`
// DNS suffix used for SSL-VPN clients.
DnsSuffix *string `pulumi:"dnsSuffix"`
// Number of missing heartbeats before the connection is considered dropped.
DtlsHeartbeatFailCount *int `pulumi:"dtlsHeartbeatFailCount"`
// Idle timeout before DTLS heartbeat is sent.
DtlsHeartbeatIdleTimeout *int `pulumi:"dtlsHeartbeatIdleTimeout"`
// Interval between DTLS heartbeat.
DtlsHeartbeatInterval *int `pulumi:"dtlsHeartbeatInterval"`
// SSLVPN maximum DTLS hello timeout (10 - 60 sec, default = 10).
DtlsHelloTimeout *int `pulumi:"dtlsHelloTimeout"`
// DTLS maximum protocol version. Valid values: `dtls1-0`, `dtls1-2`.
DtlsMaxProtoVer *string `pulumi:"dtlsMaxProtoVer"`
// DTLS minimum protocol version. Valid values: `dtls1-0`, `dtls1-2`.
DtlsMinProtoVer *string `pulumi:"dtlsMinProtoVer"`
// Enable DTLS to prevent eavesdropping, tampering, or message forgery. Valid values: `enable`, `disable`.
DtlsTunnel *string `pulumi:"dtlsTunnel"`
// Tunnel mode: enable parallel IPv4 and IPv6 tunnel. Web mode: support IPv4 and IPv6 bookmarks in the portal. Valid values: `enable`, `disable`.
DualStackMode *string `pulumi:"dualStackMode"`
// 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"`
// Encode \2F sequence to forward slash in URLs. Valid values: `enable`, `disable`.
Encode2fSequence *string `pulumi:"encode2fSequence"`
// Encrypt and store user passwords for SSL-VPN web sessions. Valid values: `enable`, `disable`.
EncryptAndStorePassword *string `pulumi:"encryptAndStorePassword"`
// Enable to force two-factor authentication for all SSL-VPNs. Valid values: `enable`, `disable`.
ForceTwoFactorAuth *string `pulumi:"forceTwoFactorAuth"`
// 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"`
// Forward the same, add, or remove HTTP header. Valid values: `pass`, `add`, `remove`.
HeaderXForwardedFor *string `pulumi:"headerXForwardedFor"`
// Add HSTS includeSubDomains response header. Valid values: `enable`, `disable`.
HstsIncludeSubdomains *string `pulumi:"hstsIncludeSubdomains"`
// Enable to allow HTTP compression over SSL-VPN tunnels. Valid values: `enable`, `disable`.
HttpCompression *string `pulumi:"httpCompression"`
// Enable/disable SSL-VPN support for HttpOnly cookies. Valid values: `enable`, `disable`.
HttpOnlyCookie *string `pulumi:"httpOnlyCookie"`
// SSL-VPN session is disconnected if an HTTP request body is not received within this time (1 - 60 sec, default = 20).
HttpRequestBodyTimeout *int `pulumi:"httpRequestBodyTimeout"`
// SSL-VPN session is disconnected if an HTTP request header is not received within this time (1 - 60 sec, default = 20).
HttpRequestHeaderTimeout *int `pulumi:"httpRequestHeaderTimeout"`
// Enable/disable redirect of port 80 to SSL-VPN port. Valid values: `enable`, `disable`.
HttpsRedirect *string `pulumi:"httpsRedirect"`
// SSL VPN disconnects if idle for specified time in seconds.
IdleTimeout *int `pulumi:"idleTimeout"`
// IPv6 DNS server 1.
Ipv6DnsServer1 *string `pulumi:"ipv6DnsServer1"`
// IPv6 DNS server 2.
Ipv6DnsServer2 *string `pulumi:"ipv6DnsServer2"`
// IPv6 WINS server 1.
Ipv6WinsServer1 *string `pulumi:"ipv6WinsServer1"`
// IPv6 WINS server 2.
Ipv6WinsServer2 *string `pulumi:"ipv6WinsServer2"`
// SSL VPN maximum login attempt times before block (0 - 10, default = 2, 0 = no limit).
LoginAttemptLimit *int `pulumi:"loginAttemptLimit"`
// Time for which a user is blocked from logging in after too many failed login attempts (0 - 86400 sec, default = 60).
LoginBlockTime *int `pulumi:"loginBlockTime"`
// SSLVPN maximum login timeout (10 - 180 sec, default = 30).
LoginTimeout *int `pulumi:"loginTimeout"`
// SSL-VPN access port (1 - 65535).
Port *int `pulumi:"port"`
// Enable means that if SSL-VPN connections are allowed on an interface admin GUI connections are blocked on that interface. Valid values: `enable`, `disable`.
PortPrecedence *string `pulumi:"portPrecedence"`
// Enable to require client certificates for all SSL-VPN users. Valid values: `enable`, `disable`.
Reqclientcert *string `pulumi:"reqclientcert"`
// Enable to allow SSL-VPN sessions to bypass routing and bind to the incoming interface. Valid values: `enable`, `disable`.
RouteSourceInterface *string `pulumi:"routeSourceInterface"`
// SAML local redirect port in the machine running FCT (0 - 65535). 0 is to disable redirection on FGT side.
SamlRedirectPort *int `pulumi:"samlRedirectPort"`
// Server hostname for HTTPS. When set, will be used for SSL VPN web proxy host header for any redirection.
ServerHostname *string `pulumi:"serverHostname"`
// Name of the server certificate to be used for SSL-VPNs.
Servercert *string `pulumi:"servercert"`
// Enable/disable negated source IPv6 address match. Valid values: `enable`, `disable`.
SourceAddress6Negate *string `pulumi:"sourceAddress6Negate"`
// IPv6 source address of incoming traffic. The structure of `sourceAddress6` block is documented below.
SourceAddress6s []SettingsSourceAddress6 `pulumi:"sourceAddress6s"`
// Enable/disable negated source address match. Valid values: `enable`, `disable`.
SourceAddressNegate *string `pulumi:"sourceAddressNegate"`
// Source address of incoming traffic. The structure of `sourceAddress` block is documented below.
SourceAddresses []SettingsSourceAddress `pulumi:"sourceAddresses"`
// SSL VPN source interface of incoming traffic. The structure of `sourceInterface` block is documented below.
SourceInterfaces []SettingsSourceInterface `pulumi:"sourceInterfaces"`
// Enable to allow client renegotiation by the server if the tunnel goes down. Valid values: `disable`, `enable`.
SslClientRenegotiation *string `pulumi:"sslClientRenegotiation"`
// Enable/disable insertion of empty fragment. Valid values: `enable`, `disable`.
SslInsertEmptyFragment *string `pulumi:"sslInsertEmptyFragment"`
// SSL maximum protocol version. Valid values: `tls1-0`, `tls1-1`, `tls1-2`, `tls1-3`.
SslMaxProtoVer *string `pulumi:"sslMaxProtoVer"`
// SSL minimum protocol version. Valid values: `tls1-0`, `tls1-1`, `tls1-2`, `tls1-3`.
SslMinProtoVer *string `pulumi:"sslMinProtoVer"`
// Enable/disable SSL-VPN. Valid values: `enable`, `disable`.
Status *string `pulumi:"status"`
// Enable/disable TLSv1.0. Valid values: `enable`, `disable`.
Tlsv10 *string `pulumi:"tlsv10"`
// Enable/disable TLSv1.1. Valid values: `enable`, `disable`.
Tlsv11 *string `pulumi:"tlsv11"`
// Enable/disable TLSv1.2. Valid values: `enable`, `disable`.
Tlsv12 *string `pulumi:"tlsv12"`
// Enable/disable TLSv1.3. Valid values: `enable`, `disable`.
Tlsv13 *string `pulumi:"tlsv13"`
// Transform backward slashes to forward slashes in URLs. Valid values: `enable`, `disable`.
TransformBackwardSlashes *string `pulumi:"transformBackwardSlashes"`
// Method used for assigning address for tunnel. Valid values: `first-available`, `round-robin`.
TunnelAddrAssignedMethod *string `pulumi:"tunnelAddrAssignedMethod"`
// Enable/disable tunnel connection without re-authorization if previous connection dropped. Valid values: `enable`, `disable`.
TunnelConnectWithoutReauth *string `pulumi:"tunnelConnectWithoutReauth"`
// Names of the IPv4 IP Pool firewall objects that define the IP addresses reserved for remote clients. The structure of `tunnelIpPools` block is documented below.
TunnelIpPools []SettingsTunnelIpPool `pulumi:"tunnelIpPools"`
// Names of the IPv6 IP Pool firewall objects that define the IP addresses reserved for remote clients. The structure of `tunnelIpv6Pools` block is documented below.
TunnelIpv6Pools []SettingsTunnelIpv6Pool `pulumi:"tunnelIpv6Pools"`
// Time out value to clean up user session after tunnel connection is dropped (1 - 255 sec, default=30).
TunnelUserSessionTimeout *int `pulumi:"tunnelUserSessionTimeout"`
// Enable/disable unsafe legacy re-negotiation. Valid values: `enable`, `disable`.
UnsafeLegacyRenegotiation *string `pulumi:"unsafeLegacyRenegotiation"`
// Enable to obscure the host name of the URL of the web browser display. Valid values: `enable`, `disable`.
UrlObscuration *string `pulumi:"urlObscuration"`
// Name of user peer.
UserPeer *string `pulumi:"userPeer"`
// Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
Vdomparam *string `pulumi:"vdomparam"`
// Enable/disable use of IP pools defined in firewall policy while using web-mode. Valid values: `enable`, `disable`.
WebModeSnat *string `pulumi:"webModeSnat"`
// WINS server 1.
WinsServer1 *string `pulumi:"winsServer1"`
// WINS server 2.
WinsServer2 *string `pulumi:"winsServer2"`
// Add HTTP X-Content-Type-Options header. Valid values: `enable`, `disable`.
XContentTypeOptions *string `pulumi:"xContentTypeOptions"`
// Enable/disable verification of device certificate for SSLVPN ZTNA session. Valid values: `enable`, `disable`.
ZtnaTrustedClient *string `pulumi:"ztnaTrustedClient"`
}
// The set of arguments for constructing a Settings resource.
type SettingsArgs struct {
// Force the SSL-VPN security level. High allows only high. Medium allows medium and high. Low allows any. Valid values: `high`, `medium`, `default`, `low`.
Algorithm pulumi.StringPtrInput
// Enable/disable checking of source IP for authentication session. Valid values: `enable`, `disable`.
AuthSessionCheckSourceIp pulumi.StringPtrInput
// SSL-VPN authentication timeout (1 - 259200 sec (3 days), 0 for no timeout).
AuthTimeout pulumi.IntPtrInput
// Authentication rule for SSL VPN. The structure of `authenticationRule` block is documented below.
AuthenticationRules SettingsAuthenticationRuleArrayInput
// Enable to auto-create static routes for the SSL-VPN tunnel IP addresses. Valid values: `enable`, `disable`.
AutoTunnelStaticRoute pulumi.StringPtrInput
// Select one or more cipher technologies that cannot be used in SSL-VPN negotiations.
BannedCipher pulumi.StringPtrInput
// Enable/disable overriding the configured system language based on the preferred language of the browser. Valid values: `enable`, `disable`.
BrowserLanguageDetection pulumi.StringPtrInput
// Enable/disable verification of referer field in HTTP request header. Valid values: `enable`, `disable`.
CheckReferer pulumi.StringPtrInput
// Select one or more TLS 1.3 ciphersuites to enable. Does not affect ciphers in TLS 1.2 and below. At least one must be enabled. To disable all, set ssl-max-proto-ver to tls1-2 or below. Valid values: `TLS-AES-128-GCM-SHA256`, `TLS-AES-256-GCM-SHA384`, `TLS-CHACHA20-POLY1305-SHA256`, `TLS-AES-128-CCM-SHA256`, `TLS-AES-128-CCM-8-SHA256`.
Ciphersuite pulumi.StringPtrInput
// Set signature algorithms related to client authentication. Affects TLS version <= 1.2 only. Valid values: `no-rsa-pss`, `all`.
ClientSigalgs pulumi.StringPtrInput
// Default SSL VPN portal.
DefaultPortal pulumi.StringPtrInput
// Compression level (0~9).
DeflateCompressionLevel pulumi.IntPtrInput
// Minimum amount of data that triggers compression (200 - 65535 bytes).
DeflateMinDataSize pulumi.IntPtrInput
// DNS server 1.
DnsServer1 pulumi.StringPtrInput
// DNS server 2.
DnsServer2 pulumi.StringPtrInput
// DNS suffix used for SSL-VPN clients.
DnsSuffix pulumi.StringPtrInput
// Number of missing heartbeats before the connection is considered dropped.
DtlsHeartbeatFailCount pulumi.IntPtrInput
// Idle timeout before DTLS heartbeat is sent.
DtlsHeartbeatIdleTimeout pulumi.IntPtrInput
// Interval between DTLS heartbeat.
DtlsHeartbeatInterval pulumi.IntPtrInput
// SSLVPN maximum DTLS hello timeout (10 - 60 sec, default = 10).
DtlsHelloTimeout pulumi.IntPtrInput
// DTLS maximum protocol version. Valid values: `dtls1-0`, `dtls1-2`.
DtlsMaxProtoVer pulumi.StringPtrInput
// DTLS minimum protocol version. Valid values: `dtls1-0`, `dtls1-2`.
DtlsMinProtoVer pulumi.StringPtrInput
// Enable DTLS to prevent eavesdropping, tampering, or message forgery. Valid values: `enable`, `disable`.
DtlsTunnel pulumi.StringPtrInput
// Tunnel mode: enable parallel IPv4 and IPv6 tunnel. Web mode: support IPv4 and IPv6 bookmarks in the portal. Valid values: `enable`, `disable`.
DualStackMode pulumi.StringPtrInput
// Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
DynamicSortSubtable pulumi.StringPtrInput
// Encode \2F sequence to forward slash in URLs. Valid values: `enable`, `disable`.
Encode2fSequence pulumi.StringPtrInput
// Encrypt and store user passwords for SSL-VPN web sessions. Valid values: `enable`, `disable`.
EncryptAndStorePassword pulumi.StringPtrInput
// Enable to force two-factor authentication for all SSL-VPNs. Valid values: `enable`, `disable`.
ForceTwoFactorAuth pulumi.StringPtrInput
// 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
// Forward the same, add, or remove HTTP header. Valid values: `pass`, `add`, `remove`.
HeaderXForwardedFor pulumi.StringPtrInput
// Add HSTS includeSubDomains response header. Valid values: `enable`, `disable`.
HstsIncludeSubdomains pulumi.StringPtrInput
// Enable to allow HTTP compression over SSL-VPN tunnels. Valid values: `enable`, `disable`.
HttpCompression pulumi.StringPtrInput
// Enable/disable SSL-VPN support for HttpOnly cookies. Valid values: `enable`, `disable`.
HttpOnlyCookie pulumi.StringPtrInput
// SSL-VPN session is disconnected if an HTTP request body is not received within this time (1 - 60 sec, default = 20).
HttpRequestBodyTimeout pulumi.IntPtrInput
// SSL-VPN session is disconnected if an HTTP request header is not received within this time (1 - 60 sec, default = 20).
HttpRequestHeaderTimeout pulumi.IntPtrInput
// Enable/disable redirect of port 80 to SSL-VPN port. Valid values: `enable`, `disable`.
HttpsRedirect pulumi.StringPtrInput
// SSL VPN disconnects if idle for specified time in seconds.
IdleTimeout pulumi.IntPtrInput
// IPv6 DNS server 1.
Ipv6DnsServer1 pulumi.StringPtrInput
// IPv6 DNS server 2.
Ipv6DnsServer2 pulumi.StringPtrInput
// IPv6 WINS server 1.
Ipv6WinsServer1 pulumi.StringPtrInput
// IPv6 WINS server 2.
Ipv6WinsServer2 pulumi.StringPtrInput
// SSL VPN maximum login attempt times before block (0 - 10, default = 2, 0 = no limit).
LoginAttemptLimit pulumi.IntPtrInput
// Time for which a user is blocked from logging in after too many failed login attempts (0 - 86400 sec, default = 60).
LoginBlockTime pulumi.IntPtrInput
// SSLVPN maximum login timeout (10 - 180 sec, default = 30).
LoginTimeout pulumi.IntPtrInput
// SSL-VPN access port (1 - 65535).
Port pulumi.IntPtrInput
// Enable means that if SSL-VPN connections are allowed on an interface admin GUI connections are blocked on that interface. Valid values: `enable`, `disable`.
PortPrecedence pulumi.StringPtrInput
// Enable to require client certificates for all SSL-VPN users. Valid values: `enable`, `disable`.
Reqclientcert pulumi.StringPtrInput
// Enable to allow SSL-VPN sessions to bypass routing and bind to the incoming interface. Valid values: `enable`, `disable`.
RouteSourceInterface pulumi.StringPtrInput
// SAML local redirect port in the machine running FCT (0 - 65535). 0 is to disable redirection on FGT side.
SamlRedirectPort pulumi.IntPtrInput
// Server hostname for HTTPS. When set, will be used for SSL VPN web proxy host header for any redirection.
ServerHostname pulumi.StringPtrInput
// Name of the server certificate to be used for SSL-VPNs.
Servercert pulumi.StringPtrInput
// Enable/disable negated source IPv6 address match. Valid values: `enable`, `disable`.
SourceAddress6Negate pulumi.StringPtrInput
// IPv6 source address of incoming traffic. The structure of `sourceAddress6` block is documented below.
SourceAddress6s SettingsSourceAddress6ArrayInput
// Enable/disable negated source address match. Valid values: `enable`, `disable`.
SourceAddressNegate pulumi.StringPtrInput
// Source address of incoming traffic. The structure of `sourceAddress` block is documented below.
SourceAddresses SettingsSourceAddressArrayInput
// SSL VPN source interface of incoming traffic. The structure of `sourceInterface` block is documented below.
SourceInterfaces SettingsSourceInterfaceArrayInput
// Enable to allow client renegotiation by the server if the tunnel goes down. Valid values: `disable`, `enable`.
SslClientRenegotiation pulumi.StringPtrInput
// Enable/disable insertion of empty fragment. Valid values: `enable`, `disable`.
SslInsertEmptyFragment pulumi.StringPtrInput
// SSL maximum protocol version. Valid values: `tls1-0`, `tls1-1`, `tls1-2`, `tls1-3`.
SslMaxProtoVer pulumi.StringPtrInput
// SSL minimum protocol version. Valid values: `tls1-0`, `tls1-1`, `tls1-2`, `tls1-3`.
SslMinProtoVer pulumi.StringPtrInput
// Enable/disable SSL-VPN. Valid values: `enable`, `disable`.
Status pulumi.StringPtrInput
// Enable/disable TLSv1.0. Valid values: `enable`, `disable`.
Tlsv10 pulumi.StringPtrInput
// Enable/disable TLSv1.1. Valid values: `enable`, `disable`.
Tlsv11 pulumi.StringPtrInput
// Enable/disable TLSv1.2. Valid values: `enable`, `disable`.
Tlsv12 pulumi.StringPtrInput
// Enable/disable TLSv1.3. Valid values: `enable`, `disable`.
Tlsv13 pulumi.StringPtrInput
// Transform backward slashes to forward slashes in URLs. Valid values: `enable`, `disable`.
TransformBackwardSlashes pulumi.StringPtrInput
// Method used for assigning address for tunnel. Valid values: `first-available`, `round-robin`.
TunnelAddrAssignedMethod pulumi.StringPtrInput
// Enable/disable tunnel connection without re-authorization if previous connection dropped. Valid values: `enable`, `disable`.
TunnelConnectWithoutReauth pulumi.StringPtrInput
// Names of the IPv4 IP Pool firewall objects that define the IP addresses reserved for remote clients. The structure of `tunnelIpPools` block is documented below.
TunnelIpPools SettingsTunnelIpPoolArrayInput
// Names of the IPv6 IP Pool firewall objects that define the IP addresses reserved for remote clients. The structure of `tunnelIpv6Pools` block is documented below.
TunnelIpv6Pools SettingsTunnelIpv6PoolArrayInput
// Time out value to clean up user session after tunnel connection is dropped (1 - 255 sec, default=30).
TunnelUserSessionTimeout pulumi.IntPtrInput
// Enable/disable unsafe legacy re-negotiation. Valid values: `enable`, `disable`.
UnsafeLegacyRenegotiation pulumi.StringPtrInput
// Enable to obscure the host name of the URL of the web browser display. Valid values: `enable`, `disable`.
UrlObscuration pulumi.StringPtrInput
// Name of user peer.
UserPeer pulumi.StringPtrInput
// Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
Vdomparam pulumi.StringPtrInput
// Enable/disable use of IP pools defined in firewall policy while using web-mode. Valid values: `enable`, `disable`.
WebModeSnat pulumi.StringPtrInput
// WINS server 1.
WinsServer1 pulumi.StringPtrInput
// WINS server 2.
WinsServer2 pulumi.StringPtrInput
// Add HTTP X-Content-Type-Options header. Valid values: `enable`, `disable`.
XContentTypeOptions pulumi.StringPtrInput
// Enable/disable verification of device certificate for SSLVPN ZTNA session. Valid values: `enable`, `disable`.
ZtnaTrustedClient pulumi.StringPtrInput
}
func (SettingsArgs) ElementType() reflect.Type {
return reflect.TypeOf((*settingsArgs)(nil)).Elem()
}
type SettingsInput interface {
pulumi.Input
ToSettingsOutput() SettingsOutput
ToSettingsOutputWithContext(ctx context.Context) SettingsOutput
}
func (*Settings) ElementType() reflect.Type {
return reflect.TypeOf((**Settings)(nil)).Elem()
}
func (i *Settings) ToSettingsOutput() SettingsOutput {
return i.ToSettingsOutputWithContext(context.Background())
}
func (i *Settings) ToSettingsOutputWithContext(ctx context.Context) SettingsOutput {
return pulumi.ToOutputWithContext(ctx, i).(SettingsOutput)
}
// SettingsArrayInput is an input type that accepts SettingsArray and SettingsArrayOutput values.
// You can construct a concrete instance of `SettingsArrayInput` via:
//
// SettingsArray{ SettingsArgs{...} }
type SettingsArrayInput interface {
pulumi.Input
ToSettingsArrayOutput() SettingsArrayOutput
ToSettingsArrayOutputWithContext(context.Context) SettingsArrayOutput
}
type SettingsArray []SettingsInput
func (SettingsArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*Settings)(nil)).Elem()
}
func (i SettingsArray) ToSettingsArrayOutput() SettingsArrayOutput {
return i.ToSettingsArrayOutputWithContext(context.Background())
}
func (i SettingsArray) ToSettingsArrayOutputWithContext(ctx context.Context) SettingsArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(SettingsArrayOutput)
}
// SettingsMapInput is an input type that accepts SettingsMap and SettingsMapOutput values.
// You can construct a concrete instance of `SettingsMapInput` via:
//
// SettingsMap{ "key": SettingsArgs{...} }
type SettingsMapInput interface {
pulumi.Input
ToSettingsMapOutput() SettingsMapOutput
ToSettingsMapOutputWithContext(context.Context) SettingsMapOutput
}
type SettingsMap map[string]SettingsInput
func (SettingsMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*Settings)(nil)).Elem()
}
func (i SettingsMap) ToSettingsMapOutput() SettingsMapOutput {
return i.ToSettingsMapOutputWithContext(context.Background())
}
func (i SettingsMap) ToSettingsMapOutputWithContext(ctx context.Context) SettingsMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(SettingsMapOutput)
}
type SettingsOutput struct{ *pulumi.OutputState }
func (SettingsOutput) ElementType() reflect.Type {
return reflect.TypeOf((**Settings)(nil)).Elem()
}
func (o SettingsOutput) ToSettingsOutput() SettingsOutput {
return o
}
func (o SettingsOutput) ToSettingsOutputWithContext(ctx context.Context) SettingsOutput {
return o