/
secretBackendRole.go
695 lines (634 loc) · 28.3 KB
/
secretBackendRole.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
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package pkisecret
import (
"context"
"reflect"
"github.com/pkg/errors"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Creates a role on an PKI Secret Backend for Vault.
//
// ## Example Usage
//
// ```go
// package main
//
// import (
// "github.com/pulumi/pulumi-vault/sdk/v4/go/vault/pkiSecret"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// pki, err := pkiSecret.NewSecretBackend(ctx, "pki", &pkiSecret.SecretBackendArgs{
// Path: pulumi.String("pki"),
// DefaultLeaseTtlSeconds: pulumi.Int(3600),
// MaxLeaseTtlSeconds: pulumi.Int(86400),
// })
// if err != nil {
// return err
// }
// _, err = pkiSecret.NewSecretBackendRole(ctx, "role", &pkiSecret.SecretBackendRoleArgs{
// Backend: pki.Path,
// Ttl: pulumi.String("3600"),
// AllowIpSans: pulumi.Bool(true),
// KeyType: pulumi.String("rsa"),
// KeyBits: pulumi.Int(4096),
// AllowedDomains: pulumi.StringArray{
// pulumi.String("example.com"),
// pulumi.String("my.domain"),
// },
// AllowSubdomains: pulumi.Bool(true),
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
// ```
//
// ## Import
//
// PKI secret backend roles can be imported using the `path`, e.g.
//
// ```sh
// $ pulumi import vault:pkiSecret/secretBackendRole:SecretBackendRole role pki/roles/my_role
// ```
type SecretBackendRole struct {
pulumi.CustomResourceState
// Flag to allow any name
AllowAnyName pulumi.BoolPtrOutput `pulumi:"allowAnyName"`
// Flag to allow certificates matching the actual domain
AllowBareDomains pulumi.BoolPtrOutput `pulumi:"allowBareDomains"`
// Flag to allow names containing glob patterns.
AllowGlobDomains pulumi.BoolPtrOutput `pulumi:"allowGlobDomains"`
// Flag to allow IP SANs
AllowIpSans pulumi.BoolPtrOutput `pulumi:"allowIpSans"`
// Flag to allow certificates for localhost
AllowLocalhost pulumi.BoolPtrOutput `pulumi:"allowLocalhost"`
// Flag to allow certificates matching subdomains
AllowSubdomains pulumi.BoolPtrOutput `pulumi:"allowSubdomains"`
// List of allowed domains for certificates
AllowedDomains pulumi.StringArrayOutput `pulumi:"allowedDomains"`
// Flag, if set, `allowedDomains` can be specified using identity template expressions such as `{{identity.entity.aliases.<mount accessor>.name}}`.
AllowedDomainsTemplate pulumi.BoolPtrOutput `pulumi:"allowedDomainsTemplate"`
// Defines allowed custom SANs
AllowedOtherSans pulumi.StringArrayOutput `pulumi:"allowedOtherSans"`
// Defines allowed URI SANs
AllowedUriSans pulumi.StringArrayOutput `pulumi:"allowedUriSans"`
// The path the PKI secret backend is mounted at, with no leading or trailing `/`s.
Backend pulumi.StringOutput `pulumi:"backend"`
// Flag to mark basic constraints valid when issuing non-CA certificates
BasicConstraintsValidForNonCa pulumi.BoolPtrOutput `pulumi:"basicConstraintsValidForNonCa"`
// Flag to specify certificates for client use
ClientFlag pulumi.BoolPtrOutput `pulumi:"clientFlag"`
// Flag to specify certificates for code signing use
CodeSigningFlag pulumi.BoolPtrOutput `pulumi:"codeSigningFlag"`
// The country of generated certificates
Countries pulumi.StringArrayOutput `pulumi:"countries"`
// Flag to specify certificates for email protection use
EmailProtectionFlag pulumi.BoolPtrOutput `pulumi:"emailProtectionFlag"`
// Flag to allow only valid host names
EnforceHostnames pulumi.BoolPtrOutput `pulumi:"enforceHostnames"`
// Specify the allowed extended key usage constraint on issued certificates
ExtKeyUsages pulumi.StringArrayOutput `pulumi:"extKeyUsages"`
// Flag to generate leases with certificates
GenerateLease pulumi.BoolPtrOutput `pulumi:"generateLease"`
// The number of bits of generated keys
KeyBits pulumi.IntPtrOutput `pulumi:"keyBits"`
// The type of generated keys
KeyType pulumi.StringPtrOutput `pulumi:"keyType"`
// Specify the allowed key usage constraint on issued certificates
KeyUsages pulumi.StringArrayOutput `pulumi:"keyUsages"`
// The locality of generated certificates
Localities pulumi.StringArrayOutput `pulumi:"localities"`
// The maximum TTL
MaxTtl pulumi.StringPtrOutput `pulumi:"maxTtl"`
// The name to identify this role within the backend. Must be unique within the backend.
Name pulumi.StringOutput `pulumi:"name"`
// Flag to not store certificates in the storage backend
NoStore pulumi.BoolPtrOutput `pulumi:"noStore"`
// Specifies the duration by which to backdate the NotBefore property.
NotBeforeDuration pulumi.StringOutput `pulumi:"notBeforeDuration"`
// The organization unit of generated certificates
OrganizationUnit pulumi.StringArrayOutput `pulumi:"organizationUnit"`
// The organization of generated certificates
Organizations pulumi.StringArrayOutput `pulumi:"organizations"`
// Specify the list of allowed policies IODs
PolicyIdentifiers pulumi.StringArrayOutput `pulumi:"policyIdentifiers"`
// The postal code of generated certificates
PostalCodes pulumi.StringArrayOutput `pulumi:"postalCodes"`
// The province of generated certificates
Provinces pulumi.StringArrayOutput `pulumi:"provinces"`
// Flag to force CN usage
RequireCn pulumi.BoolPtrOutput `pulumi:"requireCn"`
// Flag to specify certificates for server use
ServerFlag pulumi.BoolPtrOutput `pulumi:"serverFlag"`
// The street address of generated certificates
StreetAddresses pulumi.StringArrayOutput `pulumi:"streetAddresses"`
// The TTL
Ttl pulumi.StringPtrOutput `pulumi:"ttl"`
// Flag to use the CN in the CSR
UseCsrCommonName pulumi.BoolPtrOutput `pulumi:"useCsrCommonName"`
// Flag to use the SANs in the CSR
UseCsrSans pulumi.BoolPtrOutput `pulumi:"useCsrSans"`
}
// NewSecretBackendRole registers a new resource with the given unique name, arguments, and options.
func NewSecretBackendRole(ctx *pulumi.Context,
name string, args *SecretBackendRoleArgs, opts ...pulumi.ResourceOption) (*SecretBackendRole, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.Backend == nil {
return nil, errors.New("invalid value for required argument 'Backend'")
}
var resource SecretBackendRole
err := ctx.RegisterResource("vault:pkiSecret/secretBackendRole:SecretBackendRole", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetSecretBackendRole gets an existing SecretBackendRole 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 GetSecretBackendRole(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *SecretBackendRoleState, opts ...pulumi.ResourceOption) (*SecretBackendRole, error) {
var resource SecretBackendRole
err := ctx.ReadResource("vault:pkiSecret/secretBackendRole:SecretBackendRole", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering SecretBackendRole resources.
type secretBackendRoleState struct {
// Flag to allow any name
AllowAnyName *bool `pulumi:"allowAnyName"`
// Flag to allow certificates matching the actual domain
AllowBareDomains *bool `pulumi:"allowBareDomains"`
// Flag to allow names containing glob patterns.
AllowGlobDomains *bool `pulumi:"allowGlobDomains"`
// Flag to allow IP SANs
AllowIpSans *bool `pulumi:"allowIpSans"`
// Flag to allow certificates for localhost
AllowLocalhost *bool `pulumi:"allowLocalhost"`
// Flag to allow certificates matching subdomains
AllowSubdomains *bool `pulumi:"allowSubdomains"`
// List of allowed domains for certificates
AllowedDomains []string `pulumi:"allowedDomains"`
// Flag, if set, `allowedDomains` can be specified using identity template expressions such as `{{identity.entity.aliases.<mount accessor>.name}}`.
AllowedDomainsTemplate *bool `pulumi:"allowedDomainsTemplate"`
// Defines allowed custom SANs
AllowedOtherSans []string `pulumi:"allowedOtherSans"`
// Defines allowed URI SANs
AllowedUriSans []string `pulumi:"allowedUriSans"`
// The path the PKI secret backend is mounted at, with no leading or trailing `/`s.
Backend *string `pulumi:"backend"`
// Flag to mark basic constraints valid when issuing non-CA certificates
BasicConstraintsValidForNonCa *bool `pulumi:"basicConstraintsValidForNonCa"`
// Flag to specify certificates for client use
ClientFlag *bool `pulumi:"clientFlag"`
// Flag to specify certificates for code signing use
CodeSigningFlag *bool `pulumi:"codeSigningFlag"`
// The country of generated certificates
Countries []string `pulumi:"countries"`
// Flag to specify certificates for email protection use
EmailProtectionFlag *bool `pulumi:"emailProtectionFlag"`
// Flag to allow only valid host names
EnforceHostnames *bool `pulumi:"enforceHostnames"`
// Specify the allowed extended key usage constraint on issued certificates
ExtKeyUsages []string `pulumi:"extKeyUsages"`
// Flag to generate leases with certificates
GenerateLease *bool `pulumi:"generateLease"`
// The number of bits of generated keys
KeyBits *int `pulumi:"keyBits"`
// The type of generated keys
KeyType *string `pulumi:"keyType"`
// Specify the allowed key usage constraint on issued certificates
KeyUsages []string `pulumi:"keyUsages"`
// The locality of generated certificates
Localities []string `pulumi:"localities"`
// The maximum TTL
MaxTtl *string `pulumi:"maxTtl"`
// The name to identify this role within the backend. Must be unique within the backend.
Name *string `pulumi:"name"`
// Flag to not store certificates in the storage backend
NoStore *bool `pulumi:"noStore"`
// Specifies the duration by which to backdate the NotBefore property.
NotBeforeDuration *string `pulumi:"notBeforeDuration"`
// The organization unit of generated certificates
OrganizationUnit []string `pulumi:"organizationUnit"`
// The organization of generated certificates
Organizations []string `pulumi:"organizations"`
// Specify the list of allowed policies IODs
PolicyIdentifiers []string `pulumi:"policyIdentifiers"`
// The postal code of generated certificates
PostalCodes []string `pulumi:"postalCodes"`
// The province of generated certificates
Provinces []string `pulumi:"provinces"`
// Flag to force CN usage
RequireCn *bool `pulumi:"requireCn"`
// Flag to specify certificates for server use
ServerFlag *bool `pulumi:"serverFlag"`
// The street address of generated certificates
StreetAddresses []string `pulumi:"streetAddresses"`
// The TTL
Ttl *string `pulumi:"ttl"`
// Flag to use the CN in the CSR
UseCsrCommonName *bool `pulumi:"useCsrCommonName"`
// Flag to use the SANs in the CSR
UseCsrSans *bool `pulumi:"useCsrSans"`
}
type SecretBackendRoleState struct {
// Flag to allow any name
AllowAnyName pulumi.BoolPtrInput
// Flag to allow certificates matching the actual domain
AllowBareDomains pulumi.BoolPtrInput
// Flag to allow names containing glob patterns.
AllowGlobDomains pulumi.BoolPtrInput
// Flag to allow IP SANs
AllowIpSans pulumi.BoolPtrInput
// Flag to allow certificates for localhost
AllowLocalhost pulumi.BoolPtrInput
// Flag to allow certificates matching subdomains
AllowSubdomains pulumi.BoolPtrInput
// List of allowed domains for certificates
AllowedDomains pulumi.StringArrayInput
// Flag, if set, `allowedDomains` can be specified using identity template expressions such as `{{identity.entity.aliases.<mount accessor>.name}}`.
AllowedDomainsTemplate pulumi.BoolPtrInput
// Defines allowed custom SANs
AllowedOtherSans pulumi.StringArrayInput
// Defines allowed URI SANs
AllowedUriSans pulumi.StringArrayInput
// The path the PKI secret backend is mounted at, with no leading or trailing `/`s.
Backend pulumi.StringPtrInput
// Flag to mark basic constraints valid when issuing non-CA certificates
BasicConstraintsValidForNonCa pulumi.BoolPtrInput
// Flag to specify certificates for client use
ClientFlag pulumi.BoolPtrInput
// Flag to specify certificates for code signing use
CodeSigningFlag pulumi.BoolPtrInput
// The country of generated certificates
Countries pulumi.StringArrayInput
// Flag to specify certificates for email protection use
EmailProtectionFlag pulumi.BoolPtrInput
// Flag to allow only valid host names
EnforceHostnames pulumi.BoolPtrInput
// Specify the allowed extended key usage constraint on issued certificates
ExtKeyUsages pulumi.StringArrayInput
// Flag to generate leases with certificates
GenerateLease pulumi.BoolPtrInput
// The number of bits of generated keys
KeyBits pulumi.IntPtrInput
// The type of generated keys
KeyType pulumi.StringPtrInput
// Specify the allowed key usage constraint on issued certificates
KeyUsages pulumi.StringArrayInput
// The locality of generated certificates
Localities pulumi.StringArrayInput
// The maximum TTL
MaxTtl pulumi.StringPtrInput
// The name to identify this role within the backend. Must be unique within the backend.
Name pulumi.StringPtrInput
// Flag to not store certificates in the storage backend
NoStore pulumi.BoolPtrInput
// Specifies the duration by which to backdate the NotBefore property.
NotBeforeDuration pulumi.StringPtrInput
// The organization unit of generated certificates
OrganizationUnit pulumi.StringArrayInput
// The organization of generated certificates
Organizations pulumi.StringArrayInput
// Specify the list of allowed policies IODs
PolicyIdentifiers pulumi.StringArrayInput
// The postal code of generated certificates
PostalCodes pulumi.StringArrayInput
// The province of generated certificates
Provinces pulumi.StringArrayInput
// Flag to force CN usage
RequireCn pulumi.BoolPtrInput
// Flag to specify certificates for server use
ServerFlag pulumi.BoolPtrInput
// The street address of generated certificates
StreetAddresses pulumi.StringArrayInput
// The TTL
Ttl pulumi.StringPtrInput
// Flag to use the CN in the CSR
UseCsrCommonName pulumi.BoolPtrInput
// Flag to use the SANs in the CSR
UseCsrSans pulumi.BoolPtrInput
}
func (SecretBackendRoleState) ElementType() reflect.Type {
return reflect.TypeOf((*secretBackendRoleState)(nil)).Elem()
}
type secretBackendRoleArgs struct {
// Flag to allow any name
AllowAnyName *bool `pulumi:"allowAnyName"`
// Flag to allow certificates matching the actual domain
AllowBareDomains *bool `pulumi:"allowBareDomains"`
// Flag to allow names containing glob patterns.
AllowGlobDomains *bool `pulumi:"allowGlobDomains"`
// Flag to allow IP SANs
AllowIpSans *bool `pulumi:"allowIpSans"`
// Flag to allow certificates for localhost
AllowLocalhost *bool `pulumi:"allowLocalhost"`
// Flag to allow certificates matching subdomains
AllowSubdomains *bool `pulumi:"allowSubdomains"`
// List of allowed domains for certificates
AllowedDomains []string `pulumi:"allowedDomains"`
// Flag, if set, `allowedDomains` can be specified using identity template expressions such as `{{identity.entity.aliases.<mount accessor>.name}}`.
AllowedDomainsTemplate *bool `pulumi:"allowedDomainsTemplate"`
// Defines allowed custom SANs
AllowedOtherSans []string `pulumi:"allowedOtherSans"`
// Defines allowed URI SANs
AllowedUriSans []string `pulumi:"allowedUriSans"`
// The path the PKI secret backend is mounted at, with no leading or trailing `/`s.
Backend string `pulumi:"backend"`
// Flag to mark basic constraints valid when issuing non-CA certificates
BasicConstraintsValidForNonCa *bool `pulumi:"basicConstraintsValidForNonCa"`
// Flag to specify certificates for client use
ClientFlag *bool `pulumi:"clientFlag"`
// Flag to specify certificates for code signing use
CodeSigningFlag *bool `pulumi:"codeSigningFlag"`
// The country of generated certificates
Countries []string `pulumi:"countries"`
// Flag to specify certificates for email protection use
EmailProtectionFlag *bool `pulumi:"emailProtectionFlag"`
// Flag to allow only valid host names
EnforceHostnames *bool `pulumi:"enforceHostnames"`
// Specify the allowed extended key usage constraint on issued certificates
ExtKeyUsages []string `pulumi:"extKeyUsages"`
// Flag to generate leases with certificates
GenerateLease *bool `pulumi:"generateLease"`
// The number of bits of generated keys
KeyBits *int `pulumi:"keyBits"`
// The type of generated keys
KeyType *string `pulumi:"keyType"`
// Specify the allowed key usage constraint on issued certificates
KeyUsages []string `pulumi:"keyUsages"`
// The locality of generated certificates
Localities []string `pulumi:"localities"`
// The maximum TTL
MaxTtl *string `pulumi:"maxTtl"`
// The name to identify this role within the backend. Must be unique within the backend.
Name *string `pulumi:"name"`
// Flag to not store certificates in the storage backend
NoStore *bool `pulumi:"noStore"`
// Specifies the duration by which to backdate the NotBefore property.
NotBeforeDuration *string `pulumi:"notBeforeDuration"`
// The organization unit of generated certificates
OrganizationUnit []string `pulumi:"organizationUnit"`
// The organization of generated certificates
Organizations []string `pulumi:"organizations"`
// Specify the list of allowed policies IODs
PolicyIdentifiers []string `pulumi:"policyIdentifiers"`
// The postal code of generated certificates
PostalCodes []string `pulumi:"postalCodes"`
// The province of generated certificates
Provinces []string `pulumi:"provinces"`
// Flag to force CN usage
RequireCn *bool `pulumi:"requireCn"`
// Flag to specify certificates for server use
ServerFlag *bool `pulumi:"serverFlag"`
// The street address of generated certificates
StreetAddresses []string `pulumi:"streetAddresses"`
// The TTL
Ttl *string `pulumi:"ttl"`
// Flag to use the CN in the CSR
UseCsrCommonName *bool `pulumi:"useCsrCommonName"`
// Flag to use the SANs in the CSR
UseCsrSans *bool `pulumi:"useCsrSans"`
}
// The set of arguments for constructing a SecretBackendRole resource.
type SecretBackendRoleArgs struct {
// Flag to allow any name
AllowAnyName pulumi.BoolPtrInput
// Flag to allow certificates matching the actual domain
AllowBareDomains pulumi.BoolPtrInput
// Flag to allow names containing glob patterns.
AllowGlobDomains pulumi.BoolPtrInput
// Flag to allow IP SANs
AllowIpSans pulumi.BoolPtrInput
// Flag to allow certificates for localhost
AllowLocalhost pulumi.BoolPtrInput
// Flag to allow certificates matching subdomains
AllowSubdomains pulumi.BoolPtrInput
// List of allowed domains for certificates
AllowedDomains pulumi.StringArrayInput
// Flag, if set, `allowedDomains` can be specified using identity template expressions such as `{{identity.entity.aliases.<mount accessor>.name}}`.
AllowedDomainsTemplate pulumi.BoolPtrInput
// Defines allowed custom SANs
AllowedOtherSans pulumi.StringArrayInput
// Defines allowed URI SANs
AllowedUriSans pulumi.StringArrayInput
// The path the PKI secret backend is mounted at, with no leading or trailing `/`s.
Backend pulumi.StringInput
// Flag to mark basic constraints valid when issuing non-CA certificates
BasicConstraintsValidForNonCa pulumi.BoolPtrInput
// Flag to specify certificates for client use
ClientFlag pulumi.BoolPtrInput
// Flag to specify certificates for code signing use
CodeSigningFlag pulumi.BoolPtrInput
// The country of generated certificates
Countries pulumi.StringArrayInput
// Flag to specify certificates for email protection use
EmailProtectionFlag pulumi.BoolPtrInput
// Flag to allow only valid host names
EnforceHostnames pulumi.BoolPtrInput
// Specify the allowed extended key usage constraint on issued certificates
ExtKeyUsages pulumi.StringArrayInput
// Flag to generate leases with certificates
GenerateLease pulumi.BoolPtrInput
// The number of bits of generated keys
KeyBits pulumi.IntPtrInput
// The type of generated keys
KeyType pulumi.StringPtrInput
// Specify the allowed key usage constraint on issued certificates
KeyUsages pulumi.StringArrayInput
// The locality of generated certificates
Localities pulumi.StringArrayInput
// The maximum TTL
MaxTtl pulumi.StringPtrInput
// The name to identify this role within the backend. Must be unique within the backend.
Name pulumi.StringPtrInput
// Flag to not store certificates in the storage backend
NoStore pulumi.BoolPtrInput
// Specifies the duration by which to backdate the NotBefore property.
NotBeforeDuration pulumi.StringPtrInput
// The organization unit of generated certificates
OrganizationUnit pulumi.StringArrayInput
// The organization of generated certificates
Organizations pulumi.StringArrayInput
// Specify the list of allowed policies IODs
PolicyIdentifiers pulumi.StringArrayInput
// The postal code of generated certificates
PostalCodes pulumi.StringArrayInput
// The province of generated certificates
Provinces pulumi.StringArrayInput
// Flag to force CN usage
RequireCn pulumi.BoolPtrInput
// Flag to specify certificates for server use
ServerFlag pulumi.BoolPtrInput
// The street address of generated certificates
StreetAddresses pulumi.StringArrayInput
// The TTL
Ttl pulumi.StringPtrInput
// Flag to use the CN in the CSR
UseCsrCommonName pulumi.BoolPtrInput
// Flag to use the SANs in the CSR
UseCsrSans pulumi.BoolPtrInput
}
func (SecretBackendRoleArgs) ElementType() reflect.Type {
return reflect.TypeOf((*secretBackendRoleArgs)(nil)).Elem()
}
type SecretBackendRoleInput interface {
pulumi.Input
ToSecretBackendRoleOutput() SecretBackendRoleOutput
ToSecretBackendRoleOutputWithContext(ctx context.Context) SecretBackendRoleOutput
}
func (*SecretBackendRole) ElementType() reflect.Type {
return reflect.TypeOf((*SecretBackendRole)(nil))
}
func (i *SecretBackendRole) ToSecretBackendRoleOutput() SecretBackendRoleOutput {
return i.ToSecretBackendRoleOutputWithContext(context.Background())
}
func (i *SecretBackendRole) ToSecretBackendRoleOutputWithContext(ctx context.Context) SecretBackendRoleOutput {
return pulumi.ToOutputWithContext(ctx, i).(SecretBackendRoleOutput)
}
func (i *SecretBackendRole) ToSecretBackendRolePtrOutput() SecretBackendRolePtrOutput {
return i.ToSecretBackendRolePtrOutputWithContext(context.Background())
}
func (i *SecretBackendRole) ToSecretBackendRolePtrOutputWithContext(ctx context.Context) SecretBackendRolePtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(SecretBackendRolePtrOutput)
}
type SecretBackendRolePtrInput interface {
pulumi.Input
ToSecretBackendRolePtrOutput() SecretBackendRolePtrOutput
ToSecretBackendRolePtrOutputWithContext(ctx context.Context) SecretBackendRolePtrOutput
}
type secretBackendRolePtrType SecretBackendRoleArgs
func (*secretBackendRolePtrType) ElementType() reflect.Type {
return reflect.TypeOf((**SecretBackendRole)(nil))
}
func (i *secretBackendRolePtrType) ToSecretBackendRolePtrOutput() SecretBackendRolePtrOutput {
return i.ToSecretBackendRolePtrOutputWithContext(context.Background())
}
func (i *secretBackendRolePtrType) ToSecretBackendRolePtrOutputWithContext(ctx context.Context) SecretBackendRolePtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(SecretBackendRolePtrOutput)
}
// SecretBackendRoleArrayInput is an input type that accepts SecretBackendRoleArray and SecretBackendRoleArrayOutput values.
// You can construct a concrete instance of `SecretBackendRoleArrayInput` via:
//
// SecretBackendRoleArray{ SecretBackendRoleArgs{...} }
type SecretBackendRoleArrayInput interface {
pulumi.Input
ToSecretBackendRoleArrayOutput() SecretBackendRoleArrayOutput
ToSecretBackendRoleArrayOutputWithContext(context.Context) SecretBackendRoleArrayOutput
}
type SecretBackendRoleArray []SecretBackendRoleInput
func (SecretBackendRoleArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*SecretBackendRole)(nil)).Elem()
}
func (i SecretBackendRoleArray) ToSecretBackendRoleArrayOutput() SecretBackendRoleArrayOutput {
return i.ToSecretBackendRoleArrayOutputWithContext(context.Background())
}
func (i SecretBackendRoleArray) ToSecretBackendRoleArrayOutputWithContext(ctx context.Context) SecretBackendRoleArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(SecretBackendRoleArrayOutput)
}
// SecretBackendRoleMapInput is an input type that accepts SecretBackendRoleMap and SecretBackendRoleMapOutput values.
// You can construct a concrete instance of `SecretBackendRoleMapInput` via:
//
// SecretBackendRoleMap{ "key": SecretBackendRoleArgs{...} }
type SecretBackendRoleMapInput interface {
pulumi.Input
ToSecretBackendRoleMapOutput() SecretBackendRoleMapOutput
ToSecretBackendRoleMapOutputWithContext(context.Context) SecretBackendRoleMapOutput
}
type SecretBackendRoleMap map[string]SecretBackendRoleInput
func (SecretBackendRoleMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*SecretBackendRole)(nil)).Elem()
}
func (i SecretBackendRoleMap) ToSecretBackendRoleMapOutput() SecretBackendRoleMapOutput {
return i.ToSecretBackendRoleMapOutputWithContext(context.Background())
}
func (i SecretBackendRoleMap) ToSecretBackendRoleMapOutputWithContext(ctx context.Context) SecretBackendRoleMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(SecretBackendRoleMapOutput)
}
type SecretBackendRoleOutput struct{ *pulumi.OutputState }
func (SecretBackendRoleOutput) ElementType() reflect.Type {
return reflect.TypeOf((*SecretBackendRole)(nil))
}
func (o SecretBackendRoleOutput) ToSecretBackendRoleOutput() SecretBackendRoleOutput {
return o
}
func (o SecretBackendRoleOutput) ToSecretBackendRoleOutputWithContext(ctx context.Context) SecretBackendRoleOutput {
return o
}
func (o SecretBackendRoleOutput) ToSecretBackendRolePtrOutput() SecretBackendRolePtrOutput {
return o.ToSecretBackendRolePtrOutputWithContext(context.Background())
}
func (o SecretBackendRoleOutput) ToSecretBackendRolePtrOutputWithContext(ctx context.Context) SecretBackendRolePtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v SecretBackendRole) *SecretBackendRole {
return &v
}).(SecretBackendRolePtrOutput)
}
type SecretBackendRolePtrOutput struct{ *pulumi.OutputState }
func (SecretBackendRolePtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**SecretBackendRole)(nil))
}
func (o SecretBackendRolePtrOutput) ToSecretBackendRolePtrOutput() SecretBackendRolePtrOutput {
return o
}
func (o SecretBackendRolePtrOutput) ToSecretBackendRolePtrOutputWithContext(ctx context.Context) SecretBackendRolePtrOutput {
return o
}
func (o SecretBackendRolePtrOutput) Elem() SecretBackendRoleOutput {
return o.ApplyT(func(v *SecretBackendRole) SecretBackendRole {
if v != nil {
return *v
}
var ret SecretBackendRole
return ret
}).(SecretBackendRoleOutput)
}
type SecretBackendRoleArrayOutput struct{ *pulumi.OutputState }
func (SecretBackendRoleArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]SecretBackendRole)(nil))
}
func (o SecretBackendRoleArrayOutput) ToSecretBackendRoleArrayOutput() SecretBackendRoleArrayOutput {
return o
}
func (o SecretBackendRoleArrayOutput) ToSecretBackendRoleArrayOutputWithContext(ctx context.Context) SecretBackendRoleArrayOutput {
return o
}
func (o SecretBackendRoleArrayOutput) Index(i pulumi.IntInput) SecretBackendRoleOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) SecretBackendRole {
return vs[0].([]SecretBackendRole)[vs[1].(int)]
}).(SecretBackendRoleOutput)
}
type SecretBackendRoleMapOutput struct{ *pulumi.OutputState }
func (SecretBackendRoleMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]SecretBackendRole)(nil))
}
func (o SecretBackendRoleMapOutput) ToSecretBackendRoleMapOutput() SecretBackendRoleMapOutput {
return o
}
func (o SecretBackendRoleMapOutput) ToSecretBackendRoleMapOutputWithContext(ctx context.Context) SecretBackendRoleMapOutput {
return o
}
func (o SecretBackendRoleMapOutput) MapIndex(k pulumi.StringInput) SecretBackendRoleOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) SecretBackendRole {
return vs[0].(map[string]SecretBackendRole)[vs[1].(string)]
}).(SecretBackendRoleOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*SecretBackendRoleInput)(nil)).Elem(), &SecretBackendRole{})
pulumi.RegisterInputType(reflect.TypeOf((*SecretBackendRolePtrInput)(nil)).Elem(), &SecretBackendRole{})
pulumi.RegisterInputType(reflect.TypeOf((*SecretBackendRoleArrayInput)(nil)).Elem(), SecretBackendRoleArray{})
pulumi.RegisterInputType(reflect.TypeOf((*SecretBackendRoleMapInput)(nil)).Elem(), SecretBackendRoleMap{})
pulumi.RegisterOutputType(SecretBackendRoleOutput{})
pulumi.RegisterOutputType(SecretBackendRolePtrOutput{})
pulumi.RegisterOutputType(SecretBackendRoleArrayOutput{})
pulumi.RegisterOutputType(SecretBackendRoleMapOutput{})
}