/
pulumiTypes.go
3645 lines (2987 loc) · 203 KB
/
pulumiTypes.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 SDK Generator DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package v2beta
import (
"context"
"reflect"
"github.com/pulumi/pulumi-google-native/sdk/go/google/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
var _ = internal.GetEnvOrDefault
// Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { "audit_configs": [ { "service": "allServices", "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" }, { "log_type": "ADMIN_READ" } ] }, { "service": "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type": "DATA_READ" }, { "log_type": "DATA_WRITE", "exempted_members": [ "user:aliya@example.com" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts `jose@example.com` from DATA_READ logging, and `aliya@example.com` from DATA_WRITE logging.
type AuditConfig struct {
// The configuration for logging of each type of permission.
AuditLogConfigs []AuditLogConfig `pulumi:"auditLogConfigs"`
// Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services.
Service *string `pulumi:"service"`
}
// AuditConfigInput is an input type that accepts AuditConfigArgs and AuditConfigOutput values.
// You can construct a concrete instance of `AuditConfigInput` via:
//
// AuditConfigArgs{...}
type AuditConfigInput interface {
pulumi.Input
ToAuditConfigOutput() AuditConfigOutput
ToAuditConfigOutputWithContext(context.Context) AuditConfigOutput
}
// Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { "audit_configs": [ { "service": "allServices", "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" }, { "log_type": "ADMIN_READ" } ] }, { "service": "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type": "DATA_READ" }, { "log_type": "DATA_WRITE", "exempted_members": [ "user:aliya@example.com" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts `jose@example.com` from DATA_READ logging, and `aliya@example.com` from DATA_WRITE logging.
type AuditConfigArgs struct {
// The configuration for logging of each type of permission.
AuditLogConfigs AuditLogConfigArrayInput `pulumi:"auditLogConfigs"`
// Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services.
Service pulumi.StringPtrInput `pulumi:"service"`
}
func (AuditConfigArgs) ElementType() reflect.Type {
return reflect.TypeOf((*AuditConfig)(nil)).Elem()
}
func (i AuditConfigArgs) ToAuditConfigOutput() AuditConfigOutput {
return i.ToAuditConfigOutputWithContext(context.Background())
}
func (i AuditConfigArgs) ToAuditConfigOutputWithContext(ctx context.Context) AuditConfigOutput {
return pulumi.ToOutputWithContext(ctx, i).(AuditConfigOutput)
}
// AuditConfigArrayInput is an input type that accepts AuditConfigArray and AuditConfigArrayOutput values.
// You can construct a concrete instance of `AuditConfigArrayInput` via:
//
// AuditConfigArray{ AuditConfigArgs{...} }
type AuditConfigArrayInput interface {
pulumi.Input
ToAuditConfigArrayOutput() AuditConfigArrayOutput
ToAuditConfigArrayOutputWithContext(context.Context) AuditConfigArrayOutput
}
type AuditConfigArray []AuditConfigInput
func (AuditConfigArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]AuditConfig)(nil)).Elem()
}
func (i AuditConfigArray) ToAuditConfigArrayOutput() AuditConfigArrayOutput {
return i.ToAuditConfigArrayOutputWithContext(context.Background())
}
func (i AuditConfigArray) ToAuditConfigArrayOutputWithContext(ctx context.Context) AuditConfigArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(AuditConfigArrayOutput)
}
// Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { "audit_configs": [ { "service": "allServices", "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" }, { "log_type": "ADMIN_READ" } ] }, { "service": "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type": "DATA_READ" }, { "log_type": "DATA_WRITE", "exempted_members": [ "user:aliya@example.com" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts `jose@example.com` from DATA_READ logging, and `aliya@example.com` from DATA_WRITE logging.
type AuditConfigOutput struct{ *pulumi.OutputState }
func (AuditConfigOutput) ElementType() reflect.Type {
return reflect.TypeOf((*AuditConfig)(nil)).Elem()
}
func (o AuditConfigOutput) ToAuditConfigOutput() AuditConfigOutput {
return o
}
func (o AuditConfigOutput) ToAuditConfigOutputWithContext(ctx context.Context) AuditConfigOutput {
return o
}
// The configuration for logging of each type of permission.
func (o AuditConfigOutput) AuditLogConfigs() AuditLogConfigArrayOutput {
return o.ApplyT(func(v AuditConfig) []AuditLogConfig { return v.AuditLogConfigs }).(AuditLogConfigArrayOutput)
}
// Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services.
func (o AuditConfigOutput) Service() pulumi.StringPtrOutput {
return o.ApplyT(func(v AuditConfig) *string { return v.Service }).(pulumi.StringPtrOutput)
}
type AuditConfigArrayOutput struct{ *pulumi.OutputState }
func (AuditConfigArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]AuditConfig)(nil)).Elem()
}
func (o AuditConfigArrayOutput) ToAuditConfigArrayOutput() AuditConfigArrayOutput {
return o
}
func (o AuditConfigArrayOutput) ToAuditConfigArrayOutputWithContext(ctx context.Context) AuditConfigArrayOutput {
return o
}
func (o AuditConfigArrayOutput) Index(i pulumi.IntInput) AuditConfigOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) AuditConfig {
return vs[0].([]AuditConfig)[vs[1].(int)]
}).(AuditConfigOutput)
}
// Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { "audit_configs": [ { "service": "allServices", "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" }, { "log_type": "ADMIN_READ" } ] }, { "service": "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type": "DATA_READ" }, { "log_type": "DATA_WRITE", "exempted_members": [ "user:aliya@example.com" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts `jose@example.com` from DATA_READ logging, and `aliya@example.com` from DATA_WRITE logging.
type AuditConfigResponse struct {
// The configuration for logging of each type of permission.
AuditLogConfigs []AuditLogConfigResponse `pulumi:"auditLogConfigs"`
// Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services.
Service string `pulumi:"service"`
}
// Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { "audit_configs": [ { "service": "allServices", "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" }, { "log_type": "ADMIN_READ" } ] }, { "service": "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type": "DATA_READ" }, { "log_type": "DATA_WRITE", "exempted_members": [ "user:aliya@example.com" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts `jose@example.com` from DATA_READ logging, and `aliya@example.com` from DATA_WRITE logging.
type AuditConfigResponseOutput struct{ *pulumi.OutputState }
func (AuditConfigResponseOutput) ElementType() reflect.Type {
return reflect.TypeOf((*AuditConfigResponse)(nil)).Elem()
}
func (o AuditConfigResponseOutput) ToAuditConfigResponseOutput() AuditConfigResponseOutput {
return o
}
func (o AuditConfigResponseOutput) ToAuditConfigResponseOutputWithContext(ctx context.Context) AuditConfigResponseOutput {
return o
}
// The configuration for logging of each type of permission.
func (o AuditConfigResponseOutput) AuditLogConfigs() AuditLogConfigResponseArrayOutput {
return o.ApplyT(func(v AuditConfigResponse) []AuditLogConfigResponse { return v.AuditLogConfigs }).(AuditLogConfigResponseArrayOutput)
}
// Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services.
func (o AuditConfigResponseOutput) Service() pulumi.StringOutput {
return o.ApplyT(func(v AuditConfigResponse) string { return v.Service }).(pulumi.StringOutput)
}
type AuditConfigResponseArrayOutput struct{ *pulumi.OutputState }
func (AuditConfigResponseArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]AuditConfigResponse)(nil)).Elem()
}
func (o AuditConfigResponseArrayOutput) ToAuditConfigResponseArrayOutput() AuditConfigResponseArrayOutput {
return o
}
func (o AuditConfigResponseArrayOutput) ToAuditConfigResponseArrayOutputWithContext(ctx context.Context) AuditConfigResponseArrayOutput {
return o
}
func (o AuditConfigResponseArrayOutput) Index(i pulumi.IntInput) AuditConfigResponseOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) AuditConfigResponse {
return vs[0].([]AuditConfigResponse)[vs[1].(int)]
}).(AuditConfigResponseOutput)
}
// Provides the configuration for logging a type of permissions. Example: { "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ logging.
type AuditLogConfig struct {
// Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.
ExemptedMembers []string `pulumi:"exemptedMembers"`
// The log type that this config enables.
LogType *AuditLogConfigLogType `pulumi:"logType"`
}
// AuditLogConfigInput is an input type that accepts AuditLogConfigArgs and AuditLogConfigOutput values.
// You can construct a concrete instance of `AuditLogConfigInput` via:
//
// AuditLogConfigArgs{...}
type AuditLogConfigInput interface {
pulumi.Input
ToAuditLogConfigOutput() AuditLogConfigOutput
ToAuditLogConfigOutputWithContext(context.Context) AuditLogConfigOutput
}
// Provides the configuration for logging a type of permissions. Example: { "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ logging.
type AuditLogConfigArgs struct {
// Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.
ExemptedMembers pulumi.StringArrayInput `pulumi:"exemptedMembers"`
// The log type that this config enables.
LogType AuditLogConfigLogTypePtrInput `pulumi:"logType"`
}
func (AuditLogConfigArgs) ElementType() reflect.Type {
return reflect.TypeOf((*AuditLogConfig)(nil)).Elem()
}
func (i AuditLogConfigArgs) ToAuditLogConfigOutput() AuditLogConfigOutput {
return i.ToAuditLogConfigOutputWithContext(context.Background())
}
func (i AuditLogConfigArgs) ToAuditLogConfigOutputWithContext(ctx context.Context) AuditLogConfigOutput {
return pulumi.ToOutputWithContext(ctx, i).(AuditLogConfigOutput)
}
// AuditLogConfigArrayInput is an input type that accepts AuditLogConfigArray and AuditLogConfigArrayOutput values.
// You can construct a concrete instance of `AuditLogConfigArrayInput` via:
//
// AuditLogConfigArray{ AuditLogConfigArgs{...} }
type AuditLogConfigArrayInput interface {
pulumi.Input
ToAuditLogConfigArrayOutput() AuditLogConfigArrayOutput
ToAuditLogConfigArrayOutputWithContext(context.Context) AuditLogConfigArrayOutput
}
type AuditLogConfigArray []AuditLogConfigInput
func (AuditLogConfigArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]AuditLogConfig)(nil)).Elem()
}
func (i AuditLogConfigArray) ToAuditLogConfigArrayOutput() AuditLogConfigArrayOutput {
return i.ToAuditLogConfigArrayOutputWithContext(context.Background())
}
func (i AuditLogConfigArray) ToAuditLogConfigArrayOutputWithContext(ctx context.Context) AuditLogConfigArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(AuditLogConfigArrayOutput)
}
// Provides the configuration for logging a type of permissions. Example: { "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ logging.
type AuditLogConfigOutput struct{ *pulumi.OutputState }
func (AuditLogConfigOutput) ElementType() reflect.Type {
return reflect.TypeOf((*AuditLogConfig)(nil)).Elem()
}
func (o AuditLogConfigOutput) ToAuditLogConfigOutput() AuditLogConfigOutput {
return o
}
func (o AuditLogConfigOutput) ToAuditLogConfigOutputWithContext(ctx context.Context) AuditLogConfigOutput {
return o
}
// Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.
func (o AuditLogConfigOutput) ExemptedMembers() pulumi.StringArrayOutput {
return o.ApplyT(func(v AuditLogConfig) []string { return v.ExemptedMembers }).(pulumi.StringArrayOutput)
}
// The log type that this config enables.
func (o AuditLogConfigOutput) LogType() AuditLogConfigLogTypePtrOutput {
return o.ApplyT(func(v AuditLogConfig) *AuditLogConfigLogType { return v.LogType }).(AuditLogConfigLogTypePtrOutput)
}
type AuditLogConfigArrayOutput struct{ *pulumi.OutputState }
func (AuditLogConfigArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]AuditLogConfig)(nil)).Elem()
}
func (o AuditLogConfigArrayOutput) ToAuditLogConfigArrayOutput() AuditLogConfigArrayOutput {
return o
}
func (o AuditLogConfigArrayOutput) ToAuditLogConfigArrayOutputWithContext(ctx context.Context) AuditLogConfigArrayOutput {
return o
}
func (o AuditLogConfigArrayOutput) Index(i pulumi.IntInput) AuditLogConfigOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) AuditLogConfig {
return vs[0].([]AuditLogConfig)[vs[1].(int)]
}).(AuditLogConfigOutput)
}
// Provides the configuration for logging a type of permissions. Example: { "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ logging.
type AuditLogConfigResponse struct {
// Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.
ExemptedMembers []string `pulumi:"exemptedMembers"`
// The log type that this config enables.
LogType string `pulumi:"logType"`
}
// Provides the configuration for logging a type of permissions. Example: { "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ logging.
type AuditLogConfigResponseOutput struct{ *pulumi.OutputState }
func (AuditLogConfigResponseOutput) ElementType() reflect.Type {
return reflect.TypeOf((*AuditLogConfigResponse)(nil)).Elem()
}
func (o AuditLogConfigResponseOutput) ToAuditLogConfigResponseOutput() AuditLogConfigResponseOutput {
return o
}
func (o AuditLogConfigResponseOutput) ToAuditLogConfigResponseOutputWithContext(ctx context.Context) AuditLogConfigResponseOutput {
return o
}
// Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.
func (o AuditLogConfigResponseOutput) ExemptedMembers() pulumi.StringArrayOutput {
return o.ApplyT(func(v AuditLogConfigResponse) []string { return v.ExemptedMembers }).(pulumi.StringArrayOutput)
}
// The log type that this config enables.
func (o AuditLogConfigResponseOutput) LogType() pulumi.StringOutput {
return o.ApplyT(func(v AuditLogConfigResponse) string { return v.LogType }).(pulumi.StringOutput)
}
type AuditLogConfigResponseArrayOutput struct{ *pulumi.OutputState }
func (AuditLogConfigResponseArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]AuditLogConfigResponse)(nil)).Elem()
}
func (o AuditLogConfigResponseArrayOutput) ToAuditLogConfigResponseArrayOutput() AuditLogConfigResponseArrayOutput {
return o
}
func (o AuditLogConfigResponseArrayOutput) ToAuditLogConfigResponseArrayOutputWithContext(ctx context.Context) AuditLogConfigResponseArrayOutput {
return o
}
func (o AuditLogConfigResponseArrayOutput) Index(i pulumi.IntInput) AuditLogConfigResponseOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) AuditLogConfigResponse {
return vs[0].([]AuditLogConfigResponse)[vs[1].(int)]
}).(AuditLogConfigResponseOutput)
}
// Associates `members`, or principals, with a `role`.
type Binding struct {
// The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Condition *Expr `pulumi:"condition"`
// Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.
Members []string `pulumi:"members"`
// Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Role *string `pulumi:"role"`
}
// BindingInput is an input type that accepts BindingArgs and BindingOutput values.
// You can construct a concrete instance of `BindingInput` via:
//
// BindingArgs{...}
type BindingInput interface {
pulumi.Input
ToBindingOutput() BindingOutput
ToBindingOutputWithContext(context.Context) BindingOutput
}
// Associates `members`, or principals, with a `role`.
type BindingArgs struct {
// The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Condition ExprPtrInput `pulumi:"condition"`
// Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.
Members pulumi.StringArrayInput `pulumi:"members"`
// Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Role pulumi.StringPtrInput `pulumi:"role"`
}
func (BindingArgs) ElementType() reflect.Type {
return reflect.TypeOf((*Binding)(nil)).Elem()
}
func (i BindingArgs) ToBindingOutput() BindingOutput {
return i.ToBindingOutputWithContext(context.Background())
}
func (i BindingArgs) ToBindingOutputWithContext(ctx context.Context) BindingOutput {
return pulumi.ToOutputWithContext(ctx, i).(BindingOutput)
}
// BindingArrayInput is an input type that accepts BindingArray and BindingArrayOutput values.
// You can construct a concrete instance of `BindingArrayInput` via:
//
// BindingArray{ BindingArgs{...} }
type BindingArrayInput interface {
pulumi.Input
ToBindingArrayOutput() BindingArrayOutput
ToBindingArrayOutputWithContext(context.Context) BindingArrayOutput
}
type BindingArray []BindingInput
func (BindingArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]Binding)(nil)).Elem()
}
func (i BindingArray) ToBindingArrayOutput() BindingArrayOutput {
return i.ToBindingArrayOutputWithContext(context.Background())
}
func (i BindingArray) ToBindingArrayOutputWithContext(ctx context.Context) BindingArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(BindingArrayOutput)
}
// Associates `members`, or principals, with a `role`.
type BindingOutput struct{ *pulumi.OutputState }
func (BindingOutput) ElementType() reflect.Type {
return reflect.TypeOf((*Binding)(nil)).Elem()
}
func (o BindingOutput) ToBindingOutput() BindingOutput {
return o
}
func (o BindingOutput) ToBindingOutputWithContext(ctx context.Context) BindingOutput {
return o
}
// The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
func (o BindingOutput) Condition() ExprPtrOutput {
return o.ApplyT(func(v Binding) *Expr { return v.Condition }).(ExprPtrOutput)
}
// Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.
func (o BindingOutput) Members() pulumi.StringArrayOutput {
return o.ApplyT(func(v Binding) []string { return v.Members }).(pulumi.StringArrayOutput)
}
// Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
func (o BindingOutput) Role() pulumi.StringPtrOutput {
return o.ApplyT(func(v Binding) *string { return v.Role }).(pulumi.StringPtrOutput)
}
type BindingArrayOutput struct{ *pulumi.OutputState }
func (BindingArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]Binding)(nil)).Elem()
}
func (o BindingArrayOutput) ToBindingArrayOutput() BindingArrayOutput {
return o
}
func (o BindingArrayOutput) ToBindingArrayOutputWithContext(ctx context.Context) BindingArrayOutput {
return o
}
func (o BindingArrayOutput) Index(i pulumi.IntInput) BindingOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) Binding {
return vs[0].([]Binding)[vs[1].(int)]
}).(BindingOutput)
}
// Associates `members`, or principals, with a `role`.
type BindingResponse struct {
// The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Condition ExprResponse `pulumi:"condition"`
// Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.
Members []string `pulumi:"members"`
// Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Role string `pulumi:"role"`
}
// Associates `members`, or principals, with a `role`.
type BindingResponseOutput struct{ *pulumi.OutputState }
func (BindingResponseOutput) ElementType() reflect.Type {
return reflect.TypeOf((*BindingResponse)(nil)).Elem()
}
func (o BindingResponseOutput) ToBindingResponseOutput() BindingResponseOutput {
return o
}
func (o BindingResponseOutput) ToBindingResponseOutputWithContext(ctx context.Context) BindingResponseOutput {
return o
}
// The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
func (o BindingResponseOutput) Condition() ExprResponseOutput {
return o.ApplyT(func(v BindingResponse) ExprResponse { return v.Condition }).(ExprResponseOutput)
}
// Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.
func (o BindingResponseOutput) Members() pulumi.StringArrayOutput {
return o.ApplyT(func(v BindingResponse) []string { return v.Members }).(pulumi.StringArrayOutput)
}
// Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
func (o BindingResponseOutput) Role() pulumi.StringOutput {
return o.ApplyT(func(v BindingResponse) string { return v.Role }).(pulumi.StringOutput)
}
type BindingResponseArrayOutput struct{ *pulumi.OutputState }
func (BindingResponseArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]BindingResponse)(nil)).Elem()
}
func (o BindingResponseArrayOutput) ToBindingResponseArrayOutput() BindingResponseArrayOutput {
return o
}
func (o BindingResponseArrayOutput) ToBindingResponseArrayOutputWithContext(ctx context.Context) BindingResponseArrayOutput {
return o
}
func (o BindingResponseArrayOutput) Index(i pulumi.IntInput) BindingResponseOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) BindingResponse {
return vs[0].([]BindingResponse)[vs[1].(int)]
}).(BindingResponseOutput)
}
// Describes the Build step of the function that builds a container from the given source.
type BuildConfig struct {
// Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. If `docker_repository` field is specified, this field will be automatically set as `ARTIFACT_REGISTRY`. If unspecified, it currently defaults to `CONTAINER_REGISTRY`. This field may be overridden by the backend for eligible deployments.
DockerRegistry *BuildConfigDockerRegistry `pulumi:"dockerRegistry"`
// User managed repository created in Artifact Registry optionally with a customer managed encryption key. This is the repository to which the function docker image will be pushed after it is built by Cloud Build. If unspecified, GCF will create and use a repository named 'gcf-artifacts' for every deployed region. It must match the pattern `projects/{project}/locations/{location}/repositories/{repository}`. Cross-project repositories are not supported. Cross-location repositories are not supported. Repository format must be 'DOCKER'.
DockerRepository *string `pulumi:"dockerRepository"`
// The name of the function (as defined in source code) that will be executed. Defaults to the resource name suffix, if not specified. For backward compatibility, if function with given name is not found, then the system will try to use function named "function". For Node.js this is name of a function exported by the module specified in `source_location`.
EntryPoint *string `pulumi:"entryPoint"`
// User-provided build-time environment variables for the function
EnvironmentVariables map[string]string `pulumi:"environmentVariables"`
// The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function. For a complete list of possible choices, see the [`gcloud` command reference](https://cloud.google.com/sdk/gcloud/reference/functions/deploy#--runtime).
Runtime *string `pulumi:"runtime"`
// The location of the function source code.
Source *Source `pulumi:"source"`
// An identifier for Firebase function sources. Disclaimer: This field is only supported for Firebase function deployments.
SourceToken *string `pulumi:"sourceToken"`
// Name of the Cloud Build Custom Worker Pool that should be used to build the function. The format of this field is `projects/{project}/locations/{region}/workerPools/{workerPool}` where {project} and {region} are the project id and region respectively where the worker pool is defined and {workerPool} is the short name of the worker pool. If the project id is not the same as the function, then the Cloud Functions Service Agent (service-@gcf-admin-robot.iam.gserviceaccount.com) must be granted the role Cloud Build Custom Workers Builder (roles/cloudbuild.customworkers.builder) in the project.
WorkerPool *string `pulumi:"workerPool"`
}
// BuildConfigInput is an input type that accepts BuildConfigArgs and BuildConfigOutput values.
// You can construct a concrete instance of `BuildConfigInput` via:
//
// BuildConfigArgs{...}
type BuildConfigInput interface {
pulumi.Input
ToBuildConfigOutput() BuildConfigOutput
ToBuildConfigOutputWithContext(context.Context) BuildConfigOutput
}
// Describes the Build step of the function that builds a container from the given source.
type BuildConfigArgs struct {
// Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. If `docker_repository` field is specified, this field will be automatically set as `ARTIFACT_REGISTRY`. If unspecified, it currently defaults to `CONTAINER_REGISTRY`. This field may be overridden by the backend for eligible deployments.
DockerRegistry BuildConfigDockerRegistryPtrInput `pulumi:"dockerRegistry"`
// User managed repository created in Artifact Registry optionally with a customer managed encryption key. This is the repository to which the function docker image will be pushed after it is built by Cloud Build. If unspecified, GCF will create and use a repository named 'gcf-artifacts' for every deployed region. It must match the pattern `projects/{project}/locations/{location}/repositories/{repository}`. Cross-project repositories are not supported. Cross-location repositories are not supported. Repository format must be 'DOCKER'.
DockerRepository pulumi.StringPtrInput `pulumi:"dockerRepository"`
// The name of the function (as defined in source code) that will be executed. Defaults to the resource name suffix, if not specified. For backward compatibility, if function with given name is not found, then the system will try to use function named "function". For Node.js this is name of a function exported by the module specified in `source_location`.
EntryPoint pulumi.StringPtrInput `pulumi:"entryPoint"`
// User-provided build-time environment variables for the function
EnvironmentVariables pulumi.StringMapInput `pulumi:"environmentVariables"`
// The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function. For a complete list of possible choices, see the [`gcloud` command reference](https://cloud.google.com/sdk/gcloud/reference/functions/deploy#--runtime).
Runtime pulumi.StringPtrInput `pulumi:"runtime"`
// The location of the function source code.
Source SourcePtrInput `pulumi:"source"`
// An identifier for Firebase function sources. Disclaimer: This field is only supported for Firebase function deployments.
SourceToken pulumi.StringPtrInput `pulumi:"sourceToken"`
// Name of the Cloud Build Custom Worker Pool that should be used to build the function. The format of this field is `projects/{project}/locations/{region}/workerPools/{workerPool}` where {project} and {region} are the project id and region respectively where the worker pool is defined and {workerPool} is the short name of the worker pool. If the project id is not the same as the function, then the Cloud Functions Service Agent (service-@gcf-admin-robot.iam.gserviceaccount.com) must be granted the role Cloud Build Custom Workers Builder (roles/cloudbuild.customworkers.builder) in the project.
WorkerPool pulumi.StringPtrInput `pulumi:"workerPool"`
}
func (BuildConfigArgs) ElementType() reflect.Type {
return reflect.TypeOf((*BuildConfig)(nil)).Elem()
}
func (i BuildConfigArgs) ToBuildConfigOutput() BuildConfigOutput {
return i.ToBuildConfigOutputWithContext(context.Background())
}
func (i BuildConfigArgs) ToBuildConfigOutputWithContext(ctx context.Context) BuildConfigOutput {
return pulumi.ToOutputWithContext(ctx, i).(BuildConfigOutput)
}
func (i BuildConfigArgs) ToBuildConfigPtrOutput() BuildConfigPtrOutput {
return i.ToBuildConfigPtrOutputWithContext(context.Background())
}
func (i BuildConfigArgs) ToBuildConfigPtrOutputWithContext(ctx context.Context) BuildConfigPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(BuildConfigOutput).ToBuildConfigPtrOutputWithContext(ctx)
}
// BuildConfigPtrInput is an input type that accepts BuildConfigArgs, BuildConfigPtr and BuildConfigPtrOutput values.
// You can construct a concrete instance of `BuildConfigPtrInput` via:
//
// BuildConfigArgs{...}
//
// or:
//
// nil
type BuildConfigPtrInput interface {
pulumi.Input
ToBuildConfigPtrOutput() BuildConfigPtrOutput
ToBuildConfigPtrOutputWithContext(context.Context) BuildConfigPtrOutput
}
type buildConfigPtrType BuildConfigArgs
func BuildConfigPtr(v *BuildConfigArgs) BuildConfigPtrInput {
return (*buildConfigPtrType)(v)
}
func (*buildConfigPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**BuildConfig)(nil)).Elem()
}
func (i *buildConfigPtrType) ToBuildConfigPtrOutput() BuildConfigPtrOutput {
return i.ToBuildConfigPtrOutputWithContext(context.Background())
}
func (i *buildConfigPtrType) ToBuildConfigPtrOutputWithContext(ctx context.Context) BuildConfigPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(BuildConfigPtrOutput)
}
// Describes the Build step of the function that builds a container from the given source.
type BuildConfigOutput struct{ *pulumi.OutputState }
func (BuildConfigOutput) ElementType() reflect.Type {
return reflect.TypeOf((*BuildConfig)(nil)).Elem()
}
func (o BuildConfigOutput) ToBuildConfigOutput() BuildConfigOutput {
return o
}
func (o BuildConfigOutput) ToBuildConfigOutputWithContext(ctx context.Context) BuildConfigOutput {
return o
}
func (o BuildConfigOutput) ToBuildConfigPtrOutput() BuildConfigPtrOutput {
return o.ToBuildConfigPtrOutputWithContext(context.Background())
}
func (o BuildConfigOutput) ToBuildConfigPtrOutputWithContext(ctx context.Context) BuildConfigPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v BuildConfig) *BuildConfig {
return &v
}).(BuildConfigPtrOutput)
}
// Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. If `docker_repository` field is specified, this field will be automatically set as `ARTIFACT_REGISTRY`. If unspecified, it currently defaults to `CONTAINER_REGISTRY`. This field may be overridden by the backend for eligible deployments.
func (o BuildConfigOutput) DockerRegistry() BuildConfigDockerRegistryPtrOutput {
return o.ApplyT(func(v BuildConfig) *BuildConfigDockerRegistry { return v.DockerRegistry }).(BuildConfigDockerRegistryPtrOutput)
}
// User managed repository created in Artifact Registry optionally with a customer managed encryption key. This is the repository to which the function docker image will be pushed after it is built by Cloud Build. If unspecified, GCF will create and use a repository named 'gcf-artifacts' for every deployed region. It must match the pattern `projects/{project}/locations/{location}/repositories/{repository}`. Cross-project repositories are not supported. Cross-location repositories are not supported. Repository format must be 'DOCKER'.
func (o BuildConfigOutput) DockerRepository() pulumi.StringPtrOutput {
return o.ApplyT(func(v BuildConfig) *string { return v.DockerRepository }).(pulumi.StringPtrOutput)
}
// The name of the function (as defined in source code) that will be executed. Defaults to the resource name suffix, if not specified. For backward compatibility, if function with given name is not found, then the system will try to use function named "function". For Node.js this is name of a function exported by the module specified in `source_location`.
func (o BuildConfigOutput) EntryPoint() pulumi.StringPtrOutput {
return o.ApplyT(func(v BuildConfig) *string { return v.EntryPoint }).(pulumi.StringPtrOutput)
}
// User-provided build-time environment variables for the function
func (o BuildConfigOutput) EnvironmentVariables() pulumi.StringMapOutput {
return o.ApplyT(func(v BuildConfig) map[string]string { return v.EnvironmentVariables }).(pulumi.StringMapOutput)
}
// The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function. For a complete list of possible choices, see the [`gcloud` command reference](https://cloud.google.com/sdk/gcloud/reference/functions/deploy#--runtime).
func (o BuildConfigOutput) Runtime() pulumi.StringPtrOutput {
return o.ApplyT(func(v BuildConfig) *string { return v.Runtime }).(pulumi.StringPtrOutput)
}
// The location of the function source code.
func (o BuildConfigOutput) Source() SourcePtrOutput {
return o.ApplyT(func(v BuildConfig) *Source { return v.Source }).(SourcePtrOutput)
}
// An identifier for Firebase function sources. Disclaimer: This field is only supported for Firebase function deployments.
func (o BuildConfigOutput) SourceToken() pulumi.StringPtrOutput {
return o.ApplyT(func(v BuildConfig) *string { return v.SourceToken }).(pulumi.StringPtrOutput)
}
// Name of the Cloud Build Custom Worker Pool that should be used to build the function. The format of this field is `projects/{project}/locations/{region}/workerPools/{workerPool}` where {project} and {region} are the project id and region respectively where the worker pool is defined and {workerPool} is the short name of the worker pool. If the project id is not the same as the function, then the Cloud Functions Service Agent (service-@gcf-admin-robot.iam.gserviceaccount.com) must be granted the role Cloud Build Custom Workers Builder (roles/cloudbuild.customworkers.builder) in the project.
func (o BuildConfigOutput) WorkerPool() pulumi.StringPtrOutput {
return o.ApplyT(func(v BuildConfig) *string { return v.WorkerPool }).(pulumi.StringPtrOutput)
}
type BuildConfigPtrOutput struct{ *pulumi.OutputState }
func (BuildConfigPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**BuildConfig)(nil)).Elem()
}
func (o BuildConfigPtrOutput) ToBuildConfigPtrOutput() BuildConfigPtrOutput {
return o
}
func (o BuildConfigPtrOutput) ToBuildConfigPtrOutputWithContext(ctx context.Context) BuildConfigPtrOutput {
return o
}
func (o BuildConfigPtrOutput) Elem() BuildConfigOutput {
return o.ApplyT(func(v *BuildConfig) BuildConfig {
if v != nil {
return *v
}
var ret BuildConfig
return ret
}).(BuildConfigOutput)
}
// Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. If `docker_repository` field is specified, this field will be automatically set as `ARTIFACT_REGISTRY`. If unspecified, it currently defaults to `CONTAINER_REGISTRY`. This field may be overridden by the backend for eligible deployments.
func (o BuildConfigPtrOutput) DockerRegistry() BuildConfigDockerRegistryPtrOutput {
return o.ApplyT(func(v *BuildConfig) *BuildConfigDockerRegistry {
if v == nil {
return nil
}
return v.DockerRegistry
}).(BuildConfigDockerRegistryPtrOutput)
}
// User managed repository created in Artifact Registry optionally with a customer managed encryption key. This is the repository to which the function docker image will be pushed after it is built by Cloud Build. If unspecified, GCF will create and use a repository named 'gcf-artifacts' for every deployed region. It must match the pattern `projects/{project}/locations/{location}/repositories/{repository}`. Cross-project repositories are not supported. Cross-location repositories are not supported. Repository format must be 'DOCKER'.
func (o BuildConfigPtrOutput) DockerRepository() pulumi.StringPtrOutput {
return o.ApplyT(func(v *BuildConfig) *string {
if v == nil {
return nil
}
return v.DockerRepository
}).(pulumi.StringPtrOutput)
}
// The name of the function (as defined in source code) that will be executed. Defaults to the resource name suffix, if not specified. For backward compatibility, if function with given name is not found, then the system will try to use function named "function". For Node.js this is name of a function exported by the module specified in `source_location`.
func (o BuildConfigPtrOutput) EntryPoint() pulumi.StringPtrOutput {
return o.ApplyT(func(v *BuildConfig) *string {
if v == nil {
return nil
}
return v.EntryPoint
}).(pulumi.StringPtrOutput)
}
// User-provided build-time environment variables for the function
func (o BuildConfigPtrOutput) EnvironmentVariables() pulumi.StringMapOutput {
return o.ApplyT(func(v *BuildConfig) map[string]string {
if v == nil {
return nil
}
return v.EnvironmentVariables
}).(pulumi.StringMapOutput)
}
// The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function. For a complete list of possible choices, see the [`gcloud` command reference](https://cloud.google.com/sdk/gcloud/reference/functions/deploy#--runtime).
func (o BuildConfigPtrOutput) Runtime() pulumi.StringPtrOutput {
return o.ApplyT(func(v *BuildConfig) *string {
if v == nil {
return nil
}
return v.Runtime
}).(pulumi.StringPtrOutput)
}
// The location of the function source code.
func (o BuildConfigPtrOutput) Source() SourcePtrOutput {
return o.ApplyT(func(v *BuildConfig) *Source {
if v == nil {
return nil
}
return v.Source
}).(SourcePtrOutput)
}
// An identifier for Firebase function sources. Disclaimer: This field is only supported for Firebase function deployments.
func (o BuildConfigPtrOutput) SourceToken() pulumi.StringPtrOutput {
return o.ApplyT(func(v *BuildConfig) *string {
if v == nil {
return nil
}
return v.SourceToken
}).(pulumi.StringPtrOutput)
}
// Name of the Cloud Build Custom Worker Pool that should be used to build the function. The format of this field is `projects/{project}/locations/{region}/workerPools/{workerPool}` where {project} and {region} are the project id and region respectively where the worker pool is defined and {workerPool} is the short name of the worker pool. If the project id is not the same as the function, then the Cloud Functions Service Agent (service-@gcf-admin-robot.iam.gserviceaccount.com) must be granted the role Cloud Build Custom Workers Builder (roles/cloudbuild.customworkers.builder) in the project.
func (o BuildConfigPtrOutput) WorkerPool() pulumi.StringPtrOutput {
return o.ApplyT(func(v *BuildConfig) *string {
if v == nil {
return nil
}
return v.WorkerPool
}).(pulumi.StringPtrOutput)
}
// Describes the Build step of the function that builds a container from the given source.
type BuildConfigResponse struct {
// The Cloud Build name of the latest successful deployment of the function.
Build string `pulumi:"build"`
// Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. If `docker_repository` field is specified, this field will be automatically set as `ARTIFACT_REGISTRY`. If unspecified, it currently defaults to `CONTAINER_REGISTRY`. This field may be overridden by the backend for eligible deployments.
DockerRegistry string `pulumi:"dockerRegistry"`
// User managed repository created in Artifact Registry optionally with a customer managed encryption key. This is the repository to which the function docker image will be pushed after it is built by Cloud Build. If unspecified, GCF will create and use a repository named 'gcf-artifacts' for every deployed region. It must match the pattern `projects/{project}/locations/{location}/repositories/{repository}`. Cross-project repositories are not supported. Cross-location repositories are not supported. Repository format must be 'DOCKER'.
DockerRepository string `pulumi:"dockerRepository"`
// The name of the function (as defined in source code) that will be executed. Defaults to the resource name suffix, if not specified. For backward compatibility, if function with given name is not found, then the system will try to use function named "function". For Node.js this is name of a function exported by the module specified in `source_location`.
EntryPoint string `pulumi:"entryPoint"`
// User-provided build-time environment variables for the function
EnvironmentVariables map[string]string `pulumi:"environmentVariables"`
// The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function. For a complete list of possible choices, see the [`gcloud` command reference](https://cloud.google.com/sdk/gcloud/reference/functions/deploy#--runtime).
Runtime string `pulumi:"runtime"`
// The location of the function source code.
Source SourceResponse `pulumi:"source"`
// A permanent fixed identifier for source.
SourceProvenance SourceProvenanceResponse `pulumi:"sourceProvenance"`
// An identifier for Firebase function sources. Disclaimer: This field is only supported for Firebase function deployments.
SourceToken string `pulumi:"sourceToken"`
// Name of the Cloud Build Custom Worker Pool that should be used to build the function. The format of this field is `projects/{project}/locations/{region}/workerPools/{workerPool}` where {project} and {region} are the project id and region respectively where the worker pool is defined and {workerPool} is the short name of the worker pool. If the project id is not the same as the function, then the Cloud Functions Service Agent (service-@gcf-admin-robot.iam.gserviceaccount.com) must be granted the role Cloud Build Custom Workers Builder (roles/cloudbuild.customworkers.builder) in the project.
WorkerPool string `pulumi:"workerPool"`
}
// Describes the Build step of the function that builds a container from the given source.
type BuildConfigResponseOutput struct{ *pulumi.OutputState }
func (BuildConfigResponseOutput) ElementType() reflect.Type {
return reflect.TypeOf((*BuildConfigResponse)(nil)).Elem()
}
func (o BuildConfigResponseOutput) ToBuildConfigResponseOutput() BuildConfigResponseOutput {
return o
}
func (o BuildConfigResponseOutput) ToBuildConfigResponseOutputWithContext(ctx context.Context) BuildConfigResponseOutput {
return o
}
// The Cloud Build name of the latest successful deployment of the function.
func (o BuildConfigResponseOutput) Build() pulumi.StringOutput {
return o.ApplyT(func(v BuildConfigResponse) string { return v.Build }).(pulumi.StringOutput)
}
// Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. If `docker_repository` field is specified, this field will be automatically set as `ARTIFACT_REGISTRY`. If unspecified, it currently defaults to `CONTAINER_REGISTRY`. This field may be overridden by the backend for eligible deployments.
func (o BuildConfigResponseOutput) DockerRegistry() pulumi.StringOutput {
return o.ApplyT(func(v BuildConfigResponse) string { return v.DockerRegistry }).(pulumi.StringOutput)
}
// User managed repository created in Artifact Registry optionally with a customer managed encryption key. This is the repository to which the function docker image will be pushed after it is built by Cloud Build. If unspecified, GCF will create and use a repository named 'gcf-artifacts' for every deployed region. It must match the pattern `projects/{project}/locations/{location}/repositories/{repository}`. Cross-project repositories are not supported. Cross-location repositories are not supported. Repository format must be 'DOCKER'.
func (o BuildConfigResponseOutput) DockerRepository() pulumi.StringOutput {
return o.ApplyT(func(v BuildConfigResponse) string { return v.DockerRepository }).(pulumi.StringOutput)
}
// The name of the function (as defined in source code) that will be executed. Defaults to the resource name suffix, if not specified. For backward compatibility, if function with given name is not found, then the system will try to use function named "function". For Node.js this is name of a function exported by the module specified in `source_location`.
func (o BuildConfigResponseOutput) EntryPoint() pulumi.StringOutput {
return o.ApplyT(func(v BuildConfigResponse) string { return v.EntryPoint }).(pulumi.StringOutput)
}
// User-provided build-time environment variables for the function
func (o BuildConfigResponseOutput) EnvironmentVariables() pulumi.StringMapOutput {
return o.ApplyT(func(v BuildConfigResponse) map[string]string { return v.EnvironmentVariables }).(pulumi.StringMapOutput)
}
// The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function. For a complete list of possible choices, see the [`gcloud` command reference](https://cloud.google.com/sdk/gcloud/reference/functions/deploy#--runtime).
func (o BuildConfigResponseOutput) Runtime() pulumi.StringOutput {
return o.ApplyT(func(v BuildConfigResponse) string { return v.Runtime }).(pulumi.StringOutput)
}
// The location of the function source code.
func (o BuildConfigResponseOutput) Source() SourceResponseOutput {
return o.ApplyT(func(v BuildConfigResponse) SourceResponse { return v.Source }).(SourceResponseOutput)
}
// A permanent fixed identifier for source.
func (o BuildConfigResponseOutput) SourceProvenance() SourceProvenanceResponseOutput {
return o.ApplyT(func(v BuildConfigResponse) SourceProvenanceResponse { return v.SourceProvenance }).(SourceProvenanceResponseOutput)
}
// An identifier for Firebase function sources. Disclaimer: This field is only supported for Firebase function deployments.
func (o BuildConfigResponseOutput) SourceToken() pulumi.StringOutput {
return o.ApplyT(func(v BuildConfigResponse) string { return v.SourceToken }).(pulumi.StringOutput)
}
// Name of the Cloud Build Custom Worker Pool that should be used to build the function. The format of this field is `projects/{project}/locations/{region}/workerPools/{workerPool}` where {project} and {region} are the project id and region respectively where the worker pool is defined and {workerPool} is the short name of the worker pool. If the project id is not the same as the function, then the Cloud Functions Service Agent (service-@gcf-admin-robot.iam.gserviceaccount.com) must be granted the role Cloud Build Custom Workers Builder (roles/cloudbuild.customworkers.builder) in the project.
func (o BuildConfigResponseOutput) WorkerPool() pulumi.StringOutput {
return o.ApplyT(func(v BuildConfigResponse) string { return v.WorkerPool }).(pulumi.StringOutput)
}
// Filters events based on exact matches on the CloudEvents attributes.
type EventFilter struct {
// The name of a CloudEvents attribute.
Attribute string `pulumi:"attribute"`
// Optional. The operator used for matching the events with the value of the filter. If not specified, only events that have an exact key-value pair specified in the filter are matched. The only allowed value is `match-path-pattern`.
Operator *string `pulumi:"operator"`
// The value for the attribute.
Value string `pulumi:"value"`
}
// EventFilterInput is an input type that accepts EventFilterArgs and EventFilterOutput values.
// You can construct a concrete instance of `EventFilterInput` via:
//
// EventFilterArgs{...}
type EventFilterInput interface {
pulumi.Input
ToEventFilterOutput() EventFilterOutput
ToEventFilterOutputWithContext(context.Context) EventFilterOutput
}
// Filters events based on exact matches on the CloudEvents attributes.
type EventFilterArgs struct {
// The name of a CloudEvents attribute.
Attribute pulumi.StringInput `pulumi:"attribute"`
// Optional. The operator used for matching the events with the value of the filter. If not specified, only events that have an exact key-value pair specified in the filter are matched. The only allowed value is `match-path-pattern`.
Operator pulumi.StringPtrInput `pulumi:"operator"`
// The value for the attribute.
Value pulumi.StringInput `pulumi:"value"`
}
func (EventFilterArgs) ElementType() reflect.Type {
return reflect.TypeOf((*EventFilter)(nil)).Elem()
}
func (i EventFilterArgs) ToEventFilterOutput() EventFilterOutput {
return i.ToEventFilterOutputWithContext(context.Background())
}
func (i EventFilterArgs) ToEventFilterOutputWithContext(ctx context.Context) EventFilterOutput {
return pulumi.ToOutputWithContext(ctx, i).(EventFilterOutput)
}
// EventFilterArrayInput is an input type that accepts EventFilterArray and EventFilterArrayOutput values.
// You can construct a concrete instance of `EventFilterArrayInput` via:
//
// EventFilterArray{ EventFilterArgs{...} }
type EventFilterArrayInput interface {
pulumi.Input
ToEventFilterArrayOutput() EventFilterArrayOutput
ToEventFilterArrayOutputWithContext(context.Context) EventFilterArrayOutput
}
type EventFilterArray []EventFilterInput
func (EventFilterArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]EventFilter)(nil)).Elem()
}
func (i EventFilterArray) ToEventFilterArrayOutput() EventFilterArrayOutput {
return i.ToEventFilterArrayOutputWithContext(context.Background())
}
func (i EventFilterArray) ToEventFilterArrayOutputWithContext(ctx context.Context) EventFilterArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(EventFilterArrayOutput)
}
// Filters events based on exact matches on the CloudEvents attributes.
type EventFilterOutput struct{ *pulumi.OutputState }
func (EventFilterOutput) ElementType() reflect.Type {
return reflect.TypeOf((*EventFilter)(nil)).Elem()
}
func (o EventFilterOutput) ToEventFilterOutput() EventFilterOutput {
return o
}
func (o EventFilterOutput) ToEventFilterOutputWithContext(ctx context.Context) EventFilterOutput {
return o
}
// The name of a CloudEvents attribute.
func (o EventFilterOutput) Attribute() pulumi.StringOutput {
return o.ApplyT(func(v EventFilter) string { return v.Attribute }).(pulumi.StringOutput)
}
// Optional. The operator used for matching the events with the value of the filter. If not specified, only events that have an exact key-value pair specified in the filter are matched. The only allowed value is `match-path-pattern`.
func (o EventFilterOutput) Operator() pulumi.StringPtrOutput {
return o.ApplyT(func(v EventFilter) *string { return v.Operator }).(pulumi.StringPtrOutput)
}
// The value for the attribute.
func (o EventFilterOutput) Value() pulumi.StringOutput {
return o.ApplyT(func(v EventFilter) string { return v.Value }).(pulumi.StringOutput)
}
type EventFilterArrayOutput struct{ *pulumi.OutputState }
func (EventFilterArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]EventFilter)(nil)).Elem()
}
func (o EventFilterArrayOutput) ToEventFilterArrayOutput() EventFilterArrayOutput {
return o
}
func (o EventFilterArrayOutput) ToEventFilterArrayOutputWithContext(ctx context.Context) EventFilterArrayOutput {
return o
}
func (o EventFilterArrayOutput) Index(i pulumi.IntInput) EventFilterOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) EventFilter {
return vs[0].([]EventFilter)[vs[1].(int)]
}).(EventFilterOutput)
}
// Filters events based on exact matches on the CloudEvents attributes.
type EventFilterResponse struct {
// The name of a CloudEvents attribute.