/
local.go
822 lines (737 loc) · 34.5 KB
/
local.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
// 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 certificate
import (
"context"
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-fortios/sdk/go/fortios/internal"
)
// Local keys and certificates.
//
// ## Import
//
// VpnCertificate Local can be imported using any of these accepted formats:
//
// ```sh
// $ pulumi import fortios:vpn/certificate/local:Local labelname {{name}}
// ```
//
// If you do not want to import arguments of block:
//
// $ export "FORTIOS_IMPORT_TABLE"="false"
//
// ```sh
// $ pulumi import fortios:vpn/certificate/local:Local labelname {{name}}
// ```
//
// $ unset "FORTIOS_IMPORT_TABLE"
type Local struct {
pulumi.CustomResourceState
// The URL for the ACME CA server (Let's Encrypt is the default provider).
AcmeCaUrl pulumi.StringOutput `pulumi:"acmeCaUrl"`
// A valid domain that resolves to this Fortigate.
AcmeDomain pulumi.StringOutput `pulumi:"acmeDomain"`
// Contact email address that is required by some CAs like LetsEncrypt.
AcmeEmail pulumi.StringOutput `pulumi:"acmeEmail"`
// Beginning of the renewal window (in days before certificate expiration, 30 by default).
AcmeRenewWindow pulumi.IntOutput `pulumi:"acmeRenewWindow"`
// Length of the RSA private key of the generated cert (Minimum 2048 bits).
AcmeRsaKeySize pulumi.IntOutput `pulumi:"acmeRsaKeySize"`
// Number of days to wait before expiry of an updated local certificate is requested (0 = disabled).
AutoRegenerateDays pulumi.IntOutput `pulumi:"autoRegenerateDays"`
// Number of days to wait before an expiry warning message is generated (0 = disabled).
AutoRegenerateDaysWarning pulumi.IntOutput `pulumi:"autoRegenerateDaysWarning"`
// CA identifier of the CA server for signing via SCEP.
CaIdentifier pulumi.StringOutput `pulumi:"caIdentifier"`
// PEM format certificate.
Certificate pulumi.StringOutput `pulumi:"certificate"`
// Path location inside CMP server.
CmpPath pulumi.StringOutput `pulumi:"cmpPath"`
// CMP auto-regeneration method. Valid values: `keyupate`, `renewal`.
CmpRegenerationMethod pulumi.StringOutput `pulumi:"cmpRegenerationMethod"`
// 'ADDRESS:PORT' for CMP server.
CmpServer pulumi.StringOutput `pulumi:"cmpServer"`
// CMP server certificate.
CmpServerCert pulumi.StringOutput `pulumi:"cmpServerCert"`
// Comment.
Comments pulumi.StringOutput `pulumi:"comments"`
// Certificate Signing Request.
Csr pulumi.StringOutput `pulumi:"csr"`
// Certificate enrollment protocol.
EnrollProtocol pulumi.StringOutput `pulumi:"enrollProtocol"`
// CA identifier of the CA server for signing via EST.
EstCaId pulumi.StringOutput `pulumi:"estCaId"`
// Certificate used to authenticate this FortiGate to EST server.
EstClientCert pulumi.StringOutput `pulumi:"estClientCert"`
// HTTP Authentication password for signing via EST.
EstHttpPassword pulumi.StringOutput `pulumi:"estHttpPassword"`
// HTTP Authentication username for signing via EST.
EstHttpUsername pulumi.StringOutput `pulumi:"estHttpUsername"`
// Address and port for EST server (e.g. https://example.com:1234).
EstServer pulumi.StringOutput `pulumi:"estServer"`
// EST server's certificate must be verifiable by this certificate to be authenticated.
EstServerCert pulumi.StringOutput `pulumi:"estServerCert"`
// EST SRP authentication password.
EstSrpPassword pulumi.StringOutput `pulumi:"estSrpPassword"`
// EST SRP authentication username.
EstSrpUsername pulumi.StringOutput `pulumi:"estSrpUsername"`
// Local ID the FortiGate uses for authentication as a VPN client.
IkeLocalid pulumi.StringOutput `pulumi:"ikeLocalid"`
// IKE local ID type. Valid values: `asn1dn`, `fqdn`.
IkeLocalidType pulumi.StringOutput `pulumi:"ikeLocalidType"`
// Time at which certificate was last updated.
LastUpdated pulumi.IntOutput `pulumi:"lastUpdated"`
// Name.
Name pulumi.StringOutput `pulumi:"name"`
// Name encoding method for auto-regeneration. Valid values: `printable`, `utf8`.
NameEncoding pulumi.StringOutput `pulumi:"nameEncoding"`
// Password as a PEM file.
Password pulumi.StringPtrOutput `pulumi:"password"`
// PEM format key, encrypted with a password.
PrivateKey pulumi.StringOutput `pulumi:"privateKey"`
// Enable/disable retention of private key during SCEP renewal (default = disable). Valid values: `enable`, `disable`.
PrivateKeyRetain pulumi.StringOutput `pulumi:"privateKeyRetain"`
// Either a global or VDOM IP address range for the certificate. Valid values: `global`, `vdom`.
Range pulumi.StringOutput `pulumi:"range"`
// SCEP server challenge password for auto-regeneration.
ScepPassword pulumi.StringPtrOutput `pulumi:"scepPassword"`
// SCEP server URL.
ScepUrl pulumi.StringOutput `pulumi:"scepUrl"`
// Certificate source type.
Source pulumi.StringOutput `pulumi:"source"`
// Source IP address for communications to the SCEP server.
SourceIp pulumi.StringOutput `pulumi:"sourceIp"`
// Certificate Signing Request State.
State pulumi.StringOutput `pulumi:"state"`
// 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"`
}
// NewLocal registers a new resource with the given unique name, arguments, and options.
func NewLocal(ctx *pulumi.Context,
name string, args *LocalArgs, opts ...pulumi.ResourceOption) (*Local, error) {
if args == nil {
args = &LocalArgs{}
}
if args.Certificate != nil {
args.Certificate = pulumi.ToSecret(args.Certificate).(pulumi.StringPtrInput)
}
if args.Password != nil {
args.Password = pulumi.ToSecret(args.Password).(pulumi.StringPtrInput)
}
if args.PrivateKey != nil {
args.PrivateKey = pulumi.ToSecret(args.PrivateKey).(pulumi.StringPtrInput)
}
if args.ScepPassword != nil {
args.ScepPassword = pulumi.ToSecret(args.ScepPassword).(pulumi.StringPtrInput)
}
secrets := pulumi.AdditionalSecretOutputs([]string{
"certificate",
"password",
"privateKey",
"scepPassword",
})
opts = append(opts, secrets)
opts = internal.PkgResourceDefaultOpts(opts)
var resource Local
err := ctx.RegisterResource("fortios:vpn/certificate/local:Local", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetLocal gets an existing Local 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 GetLocal(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *LocalState, opts ...pulumi.ResourceOption) (*Local, error) {
var resource Local
err := ctx.ReadResource("fortios:vpn/certificate/local:Local", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering Local resources.
type localState struct {
// The URL for the ACME CA server (Let's Encrypt is the default provider).
AcmeCaUrl *string `pulumi:"acmeCaUrl"`
// A valid domain that resolves to this Fortigate.
AcmeDomain *string `pulumi:"acmeDomain"`
// Contact email address that is required by some CAs like LetsEncrypt.
AcmeEmail *string `pulumi:"acmeEmail"`
// Beginning of the renewal window (in days before certificate expiration, 30 by default).
AcmeRenewWindow *int `pulumi:"acmeRenewWindow"`
// Length of the RSA private key of the generated cert (Minimum 2048 bits).
AcmeRsaKeySize *int `pulumi:"acmeRsaKeySize"`
// Number of days to wait before expiry of an updated local certificate is requested (0 = disabled).
AutoRegenerateDays *int `pulumi:"autoRegenerateDays"`
// Number of days to wait before an expiry warning message is generated (0 = disabled).
AutoRegenerateDaysWarning *int `pulumi:"autoRegenerateDaysWarning"`
// CA identifier of the CA server for signing via SCEP.
CaIdentifier *string `pulumi:"caIdentifier"`
// PEM format certificate.
Certificate *string `pulumi:"certificate"`
// Path location inside CMP server.
CmpPath *string `pulumi:"cmpPath"`
// CMP auto-regeneration method. Valid values: `keyupate`, `renewal`.
CmpRegenerationMethod *string `pulumi:"cmpRegenerationMethod"`
// 'ADDRESS:PORT' for CMP server.
CmpServer *string `pulumi:"cmpServer"`
// CMP server certificate.
CmpServerCert *string `pulumi:"cmpServerCert"`
// Comment.
Comments *string `pulumi:"comments"`
// Certificate Signing Request.
Csr *string `pulumi:"csr"`
// Certificate enrollment protocol.
EnrollProtocol *string `pulumi:"enrollProtocol"`
// CA identifier of the CA server for signing via EST.
EstCaId *string `pulumi:"estCaId"`
// Certificate used to authenticate this FortiGate to EST server.
EstClientCert *string `pulumi:"estClientCert"`
// HTTP Authentication password for signing via EST.
EstHttpPassword *string `pulumi:"estHttpPassword"`
// HTTP Authentication username for signing via EST.
EstHttpUsername *string `pulumi:"estHttpUsername"`
// Address and port for EST server (e.g. https://example.com:1234).
EstServer *string `pulumi:"estServer"`
// EST server's certificate must be verifiable by this certificate to be authenticated.
EstServerCert *string `pulumi:"estServerCert"`
// EST SRP authentication password.
EstSrpPassword *string `pulumi:"estSrpPassword"`
// EST SRP authentication username.
EstSrpUsername *string `pulumi:"estSrpUsername"`
// Local ID the FortiGate uses for authentication as a VPN client.
IkeLocalid *string `pulumi:"ikeLocalid"`
// IKE local ID type. Valid values: `asn1dn`, `fqdn`.
IkeLocalidType *string `pulumi:"ikeLocalidType"`
// Time at which certificate was last updated.
LastUpdated *int `pulumi:"lastUpdated"`
// Name.
Name *string `pulumi:"name"`
// Name encoding method for auto-regeneration. Valid values: `printable`, `utf8`.
NameEncoding *string `pulumi:"nameEncoding"`
// Password as a PEM file.
Password *string `pulumi:"password"`
// PEM format key, encrypted with a password.
PrivateKey *string `pulumi:"privateKey"`
// Enable/disable retention of private key during SCEP renewal (default = disable). Valid values: `enable`, `disable`.
PrivateKeyRetain *string `pulumi:"privateKeyRetain"`
// Either a global or VDOM IP address range for the certificate. Valid values: `global`, `vdom`.
Range *string `pulumi:"range"`
// SCEP server challenge password for auto-regeneration.
ScepPassword *string `pulumi:"scepPassword"`
// SCEP server URL.
ScepUrl *string `pulumi:"scepUrl"`
// Certificate source type.
Source *string `pulumi:"source"`
// Source IP address for communications to the SCEP server.
SourceIp *string `pulumi:"sourceIp"`
// Certificate Signing Request State.
State *string `pulumi:"state"`
// Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
Vdomparam *string `pulumi:"vdomparam"`
}
type LocalState struct {
// The URL for the ACME CA server (Let's Encrypt is the default provider).
AcmeCaUrl pulumi.StringPtrInput
// A valid domain that resolves to this Fortigate.
AcmeDomain pulumi.StringPtrInput
// Contact email address that is required by some CAs like LetsEncrypt.
AcmeEmail pulumi.StringPtrInput
// Beginning of the renewal window (in days before certificate expiration, 30 by default).
AcmeRenewWindow pulumi.IntPtrInput
// Length of the RSA private key of the generated cert (Minimum 2048 bits).
AcmeRsaKeySize pulumi.IntPtrInput
// Number of days to wait before expiry of an updated local certificate is requested (0 = disabled).
AutoRegenerateDays pulumi.IntPtrInput
// Number of days to wait before an expiry warning message is generated (0 = disabled).
AutoRegenerateDaysWarning pulumi.IntPtrInput
// CA identifier of the CA server for signing via SCEP.
CaIdentifier pulumi.StringPtrInput
// PEM format certificate.
Certificate pulumi.StringPtrInput
// Path location inside CMP server.
CmpPath pulumi.StringPtrInput
// CMP auto-regeneration method. Valid values: `keyupate`, `renewal`.
CmpRegenerationMethod pulumi.StringPtrInput
// 'ADDRESS:PORT' for CMP server.
CmpServer pulumi.StringPtrInput
// CMP server certificate.
CmpServerCert pulumi.StringPtrInput
// Comment.
Comments pulumi.StringPtrInput
// Certificate Signing Request.
Csr pulumi.StringPtrInput
// Certificate enrollment protocol.
EnrollProtocol pulumi.StringPtrInput
// CA identifier of the CA server for signing via EST.
EstCaId pulumi.StringPtrInput
// Certificate used to authenticate this FortiGate to EST server.
EstClientCert pulumi.StringPtrInput
// HTTP Authentication password for signing via EST.
EstHttpPassword pulumi.StringPtrInput
// HTTP Authentication username for signing via EST.
EstHttpUsername pulumi.StringPtrInput
// Address and port for EST server (e.g. https://example.com:1234).
EstServer pulumi.StringPtrInput
// EST server's certificate must be verifiable by this certificate to be authenticated.
EstServerCert pulumi.StringPtrInput
// EST SRP authentication password.
EstSrpPassword pulumi.StringPtrInput
// EST SRP authentication username.
EstSrpUsername pulumi.StringPtrInput
// Local ID the FortiGate uses for authentication as a VPN client.
IkeLocalid pulumi.StringPtrInput
// IKE local ID type. Valid values: `asn1dn`, `fqdn`.
IkeLocalidType pulumi.StringPtrInput
// Time at which certificate was last updated.
LastUpdated pulumi.IntPtrInput
// Name.
Name pulumi.StringPtrInput
// Name encoding method for auto-regeneration. Valid values: `printable`, `utf8`.
NameEncoding pulumi.StringPtrInput
// Password as a PEM file.
Password pulumi.StringPtrInput
// PEM format key, encrypted with a password.
PrivateKey pulumi.StringPtrInput
// Enable/disable retention of private key during SCEP renewal (default = disable). Valid values: `enable`, `disable`.
PrivateKeyRetain pulumi.StringPtrInput
// Either a global or VDOM IP address range for the certificate. Valid values: `global`, `vdom`.
Range pulumi.StringPtrInput
// SCEP server challenge password for auto-regeneration.
ScepPassword pulumi.StringPtrInput
// SCEP server URL.
ScepUrl pulumi.StringPtrInput
// Certificate source type.
Source pulumi.StringPtrInput
// Source IP address for communications to the SCEP server.
SourceIp pulumi.StringPtrInput
// Certificate Signing Request State.
State 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
}
func (LocalState) ElementType() reflect.Type {
return reflect.TypeOf((*localState)(nil)).Elem()
}
type localArgs struct {
// The URL for the ACME CA server (Let's Encrypt is the default provider).
AcmeCaUrl *string `pulumi:"acmeCaUrl"`
// A valid domain that resolves to this Fortigate.
AcmeDomain *string `pulumi:"acmeDomain"`
// Contact email address that is required by some CAs like LetsEncrypt.
AcmeEmail *string `pulumi:"acmeEmail"`
// Beginning of the renewal window (in days before certificate expiration, 30 by default).
AcmeRenewWindow *int `pulumi:"acmeRenewWindow"`
// Length of the RSA private key of the generated cert (Minimum 2048 bits).
AcmeRsaKeySize *int `pulumi:"acmeRsaKeySize"`
// Number of days to wait before expiry of an updated local certificate is requested (0 = disabled).
AutoRegenerateDays *int `pulumi:"autoRegenerateDays"`
// Number of days to wait before an expiry warning message is generated (0 = disabled).
AutoRegenerateDaysWarning *int `pulumi:"autoRegenerateDaysWarning"`
// CA identifier of the CA server for signing via SCEP.
CaIdentifier *string `pulumi:"caIdentifier"`
// PEM format certificate.
Certificate *string `pulumi:"certificate"`
// Path location inside CMP server.
CmpPath *string `pulumi:"cmpPath"`
// CMP auto-regeneration method. Valid values: `keyupate`, `renewal`.
CmpRegenerationMethod *string `pulumi:"cmpRegenerationMethod"`
// 'ADDRESS:PORT' for CMP server.
CmpServer *string `pulumi:"cmpServer"`
// CMP server certificate.
CmpServerCert *string `pulumi:"cmpServerCert"`
// Comment.
Comments *string `pulumi:"comments"`
// Certificate Signing Request.
Csr *string `pulumi:"csr"`
// Certificate enrollment protocol.
EnrollProtocol *string `pulumi:"enrollProtocol"`
// CA identifier of the CA server for signing via EST.
EstCaId *string `pulumi:"estCaId"`
// Certificate used to authenticate this FortiGate to EST server.
EstClientCert *string `pulumi:"estClientCert"`
// HTTP Authentication password for signing via EST.
EstHttpPassword *string `pulumi:"estHttpPassword"`
// HTTP Authentication username for signing via EST.
EstHttpUsername *string `pulumi:"estHttpUsername"`
// Address and port for EST server (e.g. https://example.com:1234).
EstServer *string `pulumi:"estServer"`
// EST server's certificate must be verifiable by this certificate to be authenticated.
EstServerCert *string `pulumi:"estServerCert"`
// EST SRP authentication password.
EstSrpPassword *string `pulumi:"estSrpPassword"`
// EST SRP authentication username.
EstSrpUsername *string `pulumi:"estSrpUsername"`
// Local ID the FortiGate uses for authentication as a VPN client.
IkeLocalid *string `pulumi:"ikeLocalid"`
// IKE local ID type. Valid values: `asn1dn`, `fqdn`.
IkeLocalidType *string `pulumi:"ikeLocalidType"`
// Time at which certificate was last updated.
LastUpdated *int `pulumi:"lastUpdated"`
// Name.
Name *string `pulumi:"name"`
// Name encoding method for auto-regeneration. Valid values: `printable`, `utf8`.
NameEncoding *string `pulumi:"nameEncoding"`
// Password as a PEM file.
Password *string `pulumi:"password"`
// PEM format key, encrypted with a password.
PrivateKey *string `pulumi:"privateKey"`
// Enable/disable retention of private key during SCEP renewal (default = disable). Valid values: `enable`, `disable`.
PrivateKeyRetain *string `pulumi:"privateKeyRetain"`
// Either a global or VDOM IP address range for the certificate. Valid values: `global`, `vdom`.
Range *string `pulumi:"range"`
// SCEP server challenge password for auto-regeneration.
ScepPassword *string `pulumi:"scepPassword"`
// SCEP server URL.
ScepUrl *string `pulumi:"scepUrl"`
// Certificate source type.
Source *string `pulumi:"source"`
// Source IP address for communications to the SCEP server.
SourceIp *string `pulumi:"sourceIp"`
// Certificate Signing Request State.
State *string `pulumi:"state"`
// Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
Vdomparam *string `pulumi:"vdomparam"`
}
// The set of arguments for constructing a Local resource.
type LocalArgs struct {
// The URL for the ACME CA server (Let's Encrypt is the default provider).
AcmeCaUrl pulumi.StringPtrInput
// A valid domain that resolves to this Fortigate.
AcmeDomain pulumi.StringPtrInput
// Contact email address that is required by some CAs like LetsEncrypt.
AcmeEmail pulumi.StringPtrInput
// Beginning of the renewal window (in days before certificate expiration, 30 by default).
AcmeRenewWindow pulumi.IntPtrInput
// Length of the RSA private key of the generated cert (Minimum 2048 bits).
AcmeRsaKeySize pulumi.IntPtrInput
// Number of days to wait before expiry of an updated local certificate is requested (0 = disabled).
AutoRegenerateDays pulumi.IntPtrInput
// Number of days to wait before an expiry warning message is generated (0 = disabled).
AutoRegenerateDaysWarning pulumi.IntPtrInput
// CA identifier of the CA server for signing via SCEP.
CaIdentifier pulumi.StringPtrInput
// PEM format certificate.
Certificate pulumi.StringPtrInput
// Path location inside CMP server.
CmpPath pulumi.StringPtrInput
// CMP auto-regeneration method. Valid values: `keyupate`, `renewal`.
CmpRegenerationMethod pulumi.StringPtrInput
// 'ADDRESS:PORT' for CMP server.
CmpServer pulumi.StringPtrInput
// CMP server certificate.
CmpServerCert pulumi.StringPtrInput
// Comment.
Comments pulumi.StringPtrInput
// Certificate Signing Request.
Csr pulumi.StringPtrInput
// Certificate enrollment protocol.
EnrollProtocol pulumi.StringPtrInput
// CA identifier of the CA server for signing via EST.
EstCaId pulumi.StringPtrInput
// Certificate used to authenticate this FortiGate to EST server.
EstClientCert pulumi.StringPtrInput
// HTTP Authentication password for signing via EST.
EstHttpPassword pulumi.StringPtrInput
// HTTP Authentication username for signing via EST.
EstHttpUsername pulumi.StringPtrInput
// Address and port for EST server (e.g. https://example.com:1234).
EstServer pulumi.StringPtrInput
// EST server's certificate must be verifiable by this certificate to be authenticated.
EstServerCert pulumi.StringPtrInput
// EST SRP authentication password.
EstSrpPassword pulumi.StringPtrInput
// EST SRP authentication username.
EstSrpUsername pulumi.StringPtrInput
// Local ID the FortiGate uses for authentication as a VPN client.
IkeLocalid pulumi.StringPtrInput
// IKE local ID type. Valid values: `asn1dn`, `fqdn`.
IkeLocalidType pulumi.StringPtrInput
// Time at which certificate was last updated.
LastUpdated pulumi.IntPtrInput
// Name.
Name pulumi.StringPtrInput
// Name encoding method for auto-regeneration. Valid values: `printable`, `utf8`.
NameEncoding pulumi.StringPtrInput
// Password as a PEM file.
Password pulumi.StringPtrInput
// PEM format key, encrypted with a password.
PrivateKey pulumi.StringPtrInput
// Enable/disable retention of private key during SCEP renewal (default = disable). Valid values: `enable`, `disable`.
PrivateKeyRetain pulumi.StringPtrInput
// Either a global or VDOM IP address range for the certificate. Valid values: `global`, `vdom`.
Range pulumi.StringPtrInput
// SCEP server challenge password for auto-regeneration.
ScepPassword pulumi.StringPtrInput
// SCEP server URL.
ScepUrl pulumi.StringPtrInput
// Certificate source type.
Source pulumi.StringPtrInput
// Source IP address for communications to the SCEP server.
SourceIp pulumi.StringPtrInput
// Certificate Signing Request State.
State 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
}
func (LocalArgs) ElementType() reflect.Type {
return reflect.TypeOf((*localArgs)(nil)).Elem()
}
type LocalInput interface {
pulumi.Input
ToLocalOutput() LocalOutput
ToLocalOutputWithContext(ctx context.Context) LocalOutput
}
func (*Local) ElementType() reflect.Type {
return reflect.TypeOf((**Local)(nil)).Elem()
}
func (i *Local) ToLocalOutput() LocalOutput {
return i.ToLocalOutputWithContext(context.Background())
}
func (i *Local) ToLocalOutputWithContext(ctx context.Context) LocalOutput {
return pulumi.ToOutputWithContext(ctx, i).(LocalOutput)
}
// LocalArrayInput is an input type that accepts LocalArray and LocalArrayOutput values.
// You can construct a concrete instance of `LocalArrayInput` via:
//
// LocalArray{ LocalArgs{...} }
type LocalArrayInput interface {
pulumi.Input
ToLocalArrayOutput() LocalArrayOutput
ToLocalArrayOutputWithContext(context.Context) LocalArrayOutput
}
type LocalArray []LocalInput
func (LocalArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*Local)(nil)).Elem()
}
func (i LocalArray) ToLocalArrayOutput() LocalArrayOutput {
return i.ToLocalArrayOutputWithContext(context.Background())
}
func (i LocalArray) ToLocalArrayOutputWithContext(ctx context.Context) LocalArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(LocalArrayOutput)
}
// LocalMapInput is an input type that accepts LocalMap and LocalMapOutput values.
// You can construct a concrete instance of `LocalMapInput` via:
//
// LocalMap{ "key": LocalArgs{...} }
type LocalMapInput interface {
pulumi.Input
ToLocalMapOutput() LocalMapOutput
ToLocalMapOutputWithContext(context.Context) LocalMapOutput
}
type LocalMap map[string]LocalInput
func (LocalMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*Local)(nil)).Elem()
}
func (i LocalMap) ToLocalMapOutput() LocalMapOutput {
return i.ToLocalMapOutputWithContext(context.Background())
}
func (i LocalMap) ToLocalMapOutputWithContext(ctx context.Context) LocalMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(LocalMapOutput)
}
type LocalOutput struct{ *pulumi.OutputState }
func (LocalOutput) ElementType() reflect.Type {
return reflect.TypeOf((**Local)(nil)).Elem()
}
func (o LocalOutput) ToLocalOutput() LocalOutput {
return o
}
func (o LocalOutput) ToLocalOutputWithContext(ctx context.Context) LocalOutput {
return o
}
// The URL for the ACME CA server (Let's Encrypt is the default provider).
func (o LocalOutput) AcmeCaUrl() pulumi.StringOutput {
return o.ApplyT(func(v *Local) pulumi.StringOutput { return v.AcmeCaUrl }).(pulumi.StringOutput)
}
// A valid domain that resolves to this Fortigate.
func (o LocalOutput) AcmeDomain() pulumi.StringOutput {
return o.ApplyT(func(v *Local) pulumi.StringOutput { return v.AcmeDomain }).(pulumi.StringOutput)
}
// Contact email address that is required by some CAs like LetsEncrypt.
func (o LocalOutput) AcmeEmail() pulumi.StringOutput {
return o.ApplyT(func(v *Local) pulumi.StringOutput { return v.AcmeEmail }).(pulumi.StringOutput)
}
// Beginning of the renewal window (in days before certificate expiration, 30 by default).
func (o LocalOutput) AcmeRenewWindow() pulumi.IntOutput {
return o.ApplyT(func(v *Local) pulumi.IntOutput { return v.AcmeRenewWindow }).(pulumi.IntOutput)
}
// Length of the RSA private key of the generated cert (Minimum 2048 bits).
func (o LocalOutput) AcmeRsaKeySize() pulumi.IntOutput {
return o.ApplyT(func(v *Local) pulumi.IntOutput { return v.AcmeRsaKeySize }).(pulumi.IntOutput)
}
// Number of days to wait before expiry of an updated local certificate is requested (0 = disabled).
func (o LocalOutput) AutoRegenerateDays() pulumi.IntOutput {
return o.ApplyT(func(v *Local) pulumi.IntOutput { return v.AutoRegenerateDays }).(pulumi.IntOutput)
}
// Number of days to wait before an expiry warning message is generated (0 = disabled).
func (o LocalOutput) AutoRegenerateDaysWarning() pulumi.IntOutput {
return o.ApplyT(func(v *Local) pulumi.IntOutput { return v.AutoRegenerateDaysWarning }).(pulumi.IntOutput)
}
// CA identifier of the CA server for signing via SCEP.
func (o LocalOutput) CaIdentifier() pulumi.StringOutput {
return o.ApplyT(func(v *Local) pulumi.StringOutput { return v.CaIdentifier }).(pulumi.StringOutput)
}
// PEM format certificate.
func (o LocalOutput) Certificate() pulumi.StringOutput {
return o.ApplyT(func(v *Local) pulumi.StringOutput { return v.Certificate }).(pulumi.StringOutput)
}
// Path location inside CMP server.
func (o LocalOutput) CmpPath() pulumi.StringOutput {
return o.ApplyT(func(v *Local) pulumi.StringOutput { return v.CmpPath }).(pulumi.StringOutput)
}
// CMP auto-regeneration method. Valid values: `keyupate`, `renewal`.
func (o LocalOutput) CmpRegenerationMethod() pulumi.StringOutput {
return o.ApplyT(func(v *Local) pulumi.StringOutput { return v.CmpRegenerationMethod }).(pulumi.StringOutput)
}
// 'ADDRESS:PORT' for CMP server.
func (o LocalOutput) CmpServer() pulumi.StringOutput {
return o.ApplyT(func(v *Local) pulumi.StringOutput { return v.CmpServer }).(pulumi.StringOutput)
}
// CMP server certificate.
func (o LocalOutput) CmpServerCert() pulumi.StringOutput {
return o.ApplyT(func(v *Local) pulumi.StringOutput { return v.CmpServerCert }).(pulumi.StringOutput)
}
// Comment.
func (o LocalOutput) Comments() pulumi.StringOutput {
return o.ApplyT(func(v *Local) pulumi.StringOutput { return v.Comments }).(pulumi.StringOutput)
}
// Certificate Signing Request.
func (o LocalOutput) Csr() pulumi.StringOutput {
return o.ApplyT(func(v *Local) pulumi.StringOutput { return v.Csr }).(pulumi.StringOutput)
}
// Certificate enrollment protocol.
func (o LocalOutput) EnrollProtocol() pulumi.StringOutput {
return o.ApplyT(func(v *Local) pulumi.StringOutput { return v.EnrollProtocol }).(pulumi.StringOutput)
}
// CA identifier of the CA server for signing via EST.
func (o LocalOutput) EstCaId() pulumi.StringOutput {
return o.ApplyT(func(v *Local) pulumi.StringOutput { return v.EstCaId }).(pulumi.StringOutput)
}
// Certificate used to authenticate this FortiGate to EST server.
func (o LocalOutput) EstClientCert() pulumi.StringOutput {
return o.ApplyT(func(v *Local) pulumi.StringOutput { return v.EstClientCert }).(pulumi.StringOutput)
}
// HTTP Authentication password for signing via EST.
func (o LocalOutput) EstHttpPassword() pulumi.StringOutput {
return o.ApplyT(func(v *Local) pulumi.StringOutput { return v.EstHttpPassword }).(pulumi.StringOutput)
}
// HTTP Authentication username for signing via EST.
func (o LocalOutput) EstHttpUsername() pulumi.StringOutput {
return o.ApplyT(func(v *Local) pulumi.StringOutput { return v.EstHttpUsername }).(pulumi.StringOutput)
}
// Address and port for EST server (e.g. https://example.com:1234).
func (o LocalOutput) EstServer() pulumi.StringOutput {
return o.ApplyT(func(v *Local) pulumi.StringOutput { return v.EstServer }).(pulumi.StringOutput)
}
// EST server's certificate must be verifiable by this certificate to be authenticated.
func (o LocalOutput) EstServerCert() pulumi.StringOutput {
return o.ApplyT(func(v *Local) pulumi.StringOutput { return v.EstServerCert }).(pulumi.StringOutput)
}
// EST SRP authentication password.
func (o LocalOutput) EstSrpPassword() pulumi.StringOutput {
return o.ApplyT(func(v *Local) pulumi.StringOutput { return v.EstSrpPassword }).(pulumi.StringOutput)
}
// EST SRP authentication username.
func (o LocalOutput) EstSrpUsername() pulumi.StringOutput {
return o.ApplyT(func(v *Local) pulumi.StringOutput { return v.EstSrpUsername }).(pulumi.StringOutput)
}
// Local ID the FortiGate uses for authentication as a VPN client.
func (o LocalOutput) IkeLocalid() pulumi.StringOutput {
return o.ApplyT(func(v *Local) pulumi.StringOutput { return v.IkeLocalid }).(pulumi.StringOutput)
}
// IKE local ID type. Valid values: `asn1dn`, `fqdn`.
func (o LocalOutput) IkeLocalidType() pulumi.StringOutput {
return o.ApplyT(func(v *Local) pulumi.StringOutput { return v.IkeLocalidType }).(pulumi.StringOutput)
}
// Time at which certificate was last updated.
func (o LocalOutput) LastUpdated() pulumi.IntOutput {
return o.ApplyT(func(v *Local) pulumi.IntOutput { return v.LastUpdated }).(pulumi.IntOutput)
}
// Name.
func (o LocalOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v *Local) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)
}
// Name encoding method for auto-regeneration. Valid values: `printable`, `utf8`.
func (o LocalOutput) NameEncoding() pulumi.StringOutput {
return o.ApplyT(func(v *Local) pulumi.StringOutput { return v.NameEncoding }).(pulumi.StringOutput)
}
// Password as a PEM file.
func (o LocalOutput) Password() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Local) pulumi.StringPtrOutput { return v.Password }).(pulumi.StringPtrOutput)
}
// PEM format key, encrypted with a password.
func (o LocalOutput) PrivateKey() pulumi.StringOutput {
return o.ApplyT(func(v *Local) pulumi.StringOutput { return v.PrivateKey }).(pulumi.StringOutput)
}
// Enable/disable retention of private key during SCEP renewal (default = disable). Valid values: `enable`, `disable`.
func (o LocalOutput) PrivateKeyRetain() pulumi.StringOutput {
return o.ApplyT(func(v *Local) pulumi.StringOutput { return v.PrivateKeyRetain }).(pulumi.StringOutput)
}
// Either a global or VDOM IP address range for the certificate. Valid values: `global`, `vdom`.
func (o LocalOutput) Range() pulumi.StringOutput {
return o.ApplyT(func(v *Local) pulumi.StringOutput { return v.Range }).(pulumi.StringOutput)
}
// SCEP server challenge password for auto-regeneration.
func (o LocalOutput) ScepPassword() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Local) pulumi.StringPtrOutput { return v.ScepPassword }).(pulumi.StringPtrOutput)
}
// SCEP server URL.
func (o LocalOutput) ScepUrl() pulumi.StringOutput {
return o.ApplyT(func(v *Local) pulumi.StringOutput { return v.ScepUrl }).(pulumi.StringOutput)
}
// Certificate source type.
func (o LocalOutput) Source() pulumi.StringOutput {
return o.ApplyT(func(v *Local) pulumi.StringOutput { return v.Source }).(pulumi.StringOutput)
}
// Source IP address for communications to the SCEP server.
func (o LocalOutput) SourceIp() pulumi.StringOutput {
return o.ApplyT(func(v *Local) pulumi.StringOutput { return v.SourceIp }).(pulumi.StringOutput)
}
// Certificate Signing Request State.
func (o LocalOutput) State() pulumi.StringOutput {
return o.ApplyT(func(v *Local) pulumi.StringOutput { return v.State }).(pulumi.StringOutput)
}
// Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
func (o LocalOutput) Vdomparam() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Local) pulumi.StringPtrOutput { return v.Vdomparam }).(pulumi.StringPtrOutput)
}
type LocalArrayOutput struct{ *pulumi.OutputState }
func (LocalArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*Local)(nil)).Elem()
}
func (o LocalArrayOutput) ToLocalArrayOutput() LocalArrayOutput {
return o
}
func (o LocalArrayOutput) ToLocalArrayOutputWithContext(ctx context.Context) LocalArrayOutput {
return o
}
func (o LocalArrayOutput) Index(i pulumi.IntInput) LocalOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *Local {
return vs[0].([]*Local)[vs[1].(int)]
}).(LocalOutput)
}
type LocalMapOutput struct{ *pulumi.OutputState }
func (LocalMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*Local)(nil)).Elem()
}
func (o LocalMapOutput) ToLocalMapOutput() LocalMapOutput {
return o
}
func (o LocalMapOutput) ToLocalMapOutputWithContext(ctx context.Context) LocalMapOutput {
return o
}
func (o LocalMapOutput) MapIndex(k pulumi.StringInput) LocalOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *Local {
return vs[0].(map[string]*Local)[vs[1].(string)]
}).(LocalOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*LocalInput)(nil)).Elem(), &Local{})
pulumi.RegisterInputType(reflect.TypeOf((*LocalArrayInput)(nil)).Elem(), LocalArray{})
pulumi.RegisterInputType(reflect.TypeOf((*LocalMapInput)(nil)).Elem(), LocalMap{})
pulumi.RegisterOutputType(LocalOutput{})
pulumi.RegisterOutputType(LocalArrayOutput{})
pulumi.RegisterOutputType(LocalMapOutput{})
}