/
pulumiTypes.go
677 lines (538 loc) · 30.9 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
// *** 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 eventarc
import (
"context"
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
type TriggerDestination struct {
// The Cloud Function resource name. Only Cloud Functions V2 is supported. Format: projects/{project}/locations/{location}/functions/{function}
CloudFunction *string `pulumi:"cloudFunction"`
// Cloud Run fully-managed service that receives the events. The service should be running in the same project of the trigger.
CloudRunService *TriggerDestinationCloudRunService `pulumi:"cloudRunService"`
}
// TriggerDestinationInput is an input type that accepts TriggerDestinationArgs and TriggerDestinationOutput values.
// You can construct a concrete instance of `TriggerDestinationInput` via:
//
// TriggerDestinationArgs{...}
type TriggerDestinationInput interface {
pulumi.Input
ToTriggerDestinationOutput() TriggerDestinationOutput
ToTriggerDestinationOutputWithContext(context.Context) TriggerDestinationOutput
}
type TriggerDestinationArgs struct {
// The Cloud Function resource name. Only Cloud Functions V2 is supported. Format: projects/{project}/locations/{location}/functions/{function}
CloudFunction pulumi.StringPtrInput `pulumi:"cloudFunction"`
// Cloud Run fully-managed service that receives the events. The service should be running in the same project of the trigger.
CloudRunService TriggerDestinationCloudRunServicePtrInput `pulumi:"cloudRunService"`
}
func (TriggerDestinationArgs) ElementType() reflect.Type {
return reflect.TypeOf((*TriggerDestination)(nil)).Elem()
}
func (i TriggerDestinationArgs) ToTriggerDestinationOutput() TriggerDestinationOutput {
return i.ToTriggerDestinationOutputWithContext(context.Background())
}
func (i TriggerDestinationArgs) ToTriggerDestinationOutputWithContext(ctx context.Context) TriggerDestinationOutput {
return pulumi.ToOutputWithContext(ctx, i).(TriggerDestinationOutput)
}
func (i TriggerDestinationArgs) ToTriggerDestinationPtrOutput() TriggerDestinationPtrOutput {
return i.ToTriggerDestinationPtrOutputWithContext(context.Background())
}
func (i TriggerDestinationArgs) ToTriggerDestinationPtrOutputWithContext(ctx context.Context) TriggerDestinationPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(TriggerDestinationOutput).ToTriggerDestinationPtrOutputWithContext(ctx)
}
// TriggerDestinationPtrInput is an input type that accepts TriggerDestinationArgs, TriggerDestinationPtr and TriggerDestinationPtrOutput values.
// You can construct a concrete instance of `TriggerDestinationPtrInput` via:
//
// TriggerDestinationArgs{...}
//
// or:
//
// nil
type TriggerDestinationPtrInput interface {
pulumi.Input
ToTriggerDestinationPtrOutput() TriggerDestinationPtrOutput
ToTriggerDestinationPtrOutputWithContext(context.Context) TriggerDestinationPtrOutput
}
type triggerDestinationPtrType TriggerDestinationArgs
func TriggerDestinationPtr(v *TriggerDestinationArgs) TriggerDestinationPtrInput {
return (*triggerDestinationPtrType)(v)
}
func (*triggerDestinationPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**TriggerDestination)(nil)).Elem()
}
func (i *triggerDestinationPtrType) ToTriggerDestinationPtrOutput() TriggerDestinationPtrOutput {
return i.ToTriggerDestinationPtrOutputWithContext(context.Background())
}
func (i *triggerDestinationPtrType) ToTriggerDestinationPtrOutputWithContext(ctx context.Context) TriggerDestinationPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(TriggerDestinationPtrOutput)
}
type TriggerDestinationOutput struct{ *pulumi.OutputState }
func (TriggerDestinationOutput) ElementType() reflect.Type {
return reflect.TypeOf((*TriggerDestination)(nil)).Elem()
}
func (o TriggerDestinationOutput) ToTriggerDestinationOutput() TriggerDestinationOutput {
return o
}
func (o TriggerDestinationOutput) ToTriggerDestinationOutputWithContext(ctx context.Context) TriggerDestinationOutput {
return o
}
func (o TriggerDestinationOutput) ToTriggerDestinationPtrOutput() TriggerDestinationPtrOutput {
return o.ToTriggerDestinationPtrOutputWithContext(context.Background())
}
func (o TriggerDestinationOutput) ToTriggerDestinationPtrOutputWithContext(ctx context.Context) TriggerDestinationPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v TriggerDestination) *TriggerDestination {
return &v
}).(TriggerDestinationPtrOutput)
}
// The Cloud Function resource name. Only Cloud Functions V2 is supported. Format: projects/{project}/locations/{location}/functions/{function}
func (o TriggerDestinationOutput) CloudFunction() pulumi.StringPtrOutput {
return o.ApplyT(func(v TriggerDestination) *string { return v.CloudFunction }).(pulumi.StringPtrOutput)
}
// Cloud Run fully-managed service that receives the events. The service should be running in the same project of the trigger.
func (o TriggerDestinationOutput) CloudRunService() TriggerDestinationCloudRunServicePtrOutput {
return o.ApplyT(func(v TriggerDestination) *TriggerDestinationCloudRunService { return v.CloudRunService }).(TriggerDestinationCloudRunServicePtrOutput)
}
type TriggerDestinationPtrOutput struct{ *pulumi.OutputState }
func (TriggerDestinationPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**TriggerDestination)(nil)).Elem()
}
func (o TriggerDestinationPtrOutput) ToTriggerDestinationPtrOutput() TriggerDestinationPtrOutput {
return o
}
func (o TriggerDestinationPtrOutput) ToTriggerDestinationPtrOutputWithContext(ctx context.Context) TriggerDestinationPtrOutput {
return o
}
func (o TriggerDestinationPtrOutput) Elem() TriggerDestinationOutput {
return o.ApplyT(func(v *TriggerDestination) TriggerDestination {
if v != nil {
return *v
}
var ret TriggerDestination
return ret
}).(TriggerDestinationOutput)
}
// The Cloud Function resource name. Only Cloud Functions V2 is supported. Format: projects/{project}/locations/{location}/functions/{function}
func (o TriggerDestinationPtrOutput) CloudFunction() pulumi.StringPtrOutput {
return o.ApplyT(func(v *TriggerDestination) *string {
if v == nil {
return nil
}
return v.CloudFunction
}).(pulumi.StringPtrOutput)
}
// Cloud Run fully-managed service that receives the events. The service should be running in the same project of the trigger.
func (o TriggerDestinationPtrOutput) CloudRunService() TriggerDestinationCloudRunServicePtrOutput {
return o.ApplyT(func(v *TriggerDestination) *TriggerDestinationCloudRunService {
if v == nil {
return nil
}
return v.CloudRunService
}).(TriggerDestinationCloudRunServicePtrOutput)
}
type TriggerDestinationCloudRunService struct {
// Optional. The relative path on the Cloud Run service the events should be sent to. The value must conform to the definition of URI path segment (section 3.3 of RFC2396). Examples: "/route", "route", "route/subroute".
Path *string `pulumi:"path"`
// Required. The region the Cloud Run service is deployed in.
Region *string `pulumi:"region"`
// Required. The name of the Cloud Run service being addressed. See https://cloud.google.com/run/docs/reference/rest/v1/namespaces.services. Only services located in the same project of the trigger object can be addressed.
Service string `pulumi:"service"`
}
// TriggerDestinationCloudRunServiceInput is an input type that accepts TriggerDestinationCloudRunServiceArgs and TriggerDestinationCloudRunServiceOutput values.
// You can construct a concrete instance of `TriggerDestinationCloudRunServiceInput` via:
//
// TriggerDestinationCloudRunServiceArgs{...}
type TriggerDestinationCloudRunServiceInput interface {
pulumi.Input
ToTriggerDestinationCloudRunServiceOutput() TriggerDestinationCloudRunServiceOutput
ToTriggerDestinationCloudRunServiceOutputWithContext(context.Context) TriggerDestinationCloudRunServiceOutput
}
type TriggerDestinationCloudRunServiceArgs struct {
// Optional. The relative path on the Cloud Run service the events should be sent to. The value must conform to the definition of URI path segment (section 3.3 of RFC2396). Examples: "/route", "route", "route/subroute".
Path pulumi.StringPtrInput `pulumi:"path"`
// Required. The region the Cloud Run service is deployed in.
Region pulumi.StringPtrInput `pulumi:"region"`
// Required. The name of the Cloud Run service being addressed. See https://cloud.google.com/run/docs/reference/rest/v1/namespaces.services. Only services located in the same project of the trigger object can be addressed.
Service pulumi.StringInput `pulumi:"service"`
}
func (TriggerDestinationCloudRunServiceArgs) ElementType() reflect.Type {
return reflect.TypeOf((*TriggerDestinationCloudRunService)(nil)).Elem()
}
func (i TriggerDestinationCloudRunServiceArgs) ToTriggerDestinationCloudRunServiceOutput() TriggerDestinationCloudRunServiceOutput {
return i.ToTriggerDestinationCloudRunServiceOutputWithContext(context.Background())
}
func (i TriggerDestinationCloudRunServiceArgs) ToTriggerDestinationCloudRunServiceOutputWithContext(ctx context.Context) TriggerDestinationCloudRunServiceOutput {
return pulumi.ToOutputWithContext(ctx, i).(TriggerDestinationCloudRunServiceOutput)
}
func (i TriggerDestinationCloudRunServiceArgs) ToTriggerDestinationCloudRunServicePtrOutput() TriggerDestinationCloudRunServicePtrOutput {
return i.ToTriggerDestinationCloudRunServicePtrOutputWithContext(context.Background())
}
func (i TriggerDestinationCloudRunServiceArgs) ToTriggerDestinationCloudRunServicePtrOutputWithContext(ctx context.Context) TriggerDestinationCloudRunServicePtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(TriggerDestinationCloudRunServiceOutput).ToTriggerDestinationCloudRunServicePtrOutputWithContext(ctx)
}
// TriggerDestinationCloudRunServicePtrInput is an input type that accepts TriggerDestinationCloudRunServiceArgs, TriggerDestinationCloudRunServicePtr and TriggerDestinationCloudRunServicePtrOutput values.
// You can construct a concrete instance of `TriggerDestinationCloudRunServicePtrInput` via:
//
// TriggerDestinationCloudRunServiceArgs{...}
//
// or:
//
// nil
type TriggerDestinationCloudRunServicePtrInput interface {
pulumi.Input
ToTriggerDestinationCloudRunServicePtrOutput() TriggerDestinationCloudRunServicePtrOutput
ToTriggerDestinationCloudRunServicePtrOutputWithContext(context.Context) TriggerDestinationCloudRunServicePtrOutput
}
type triggerDestinationCloudRunServicePtrType TriggerDestinationCloudRunServiceArgs
func TriggerDestinationCloudRunServicePtr(v *TriggerDestinationCloudRunServiceArgs) TriggerDestinationCloudRunServicePtrInput {
return (*triggerDestinationCloudRunServicePtrType)(v)
}
func (*triggerDestinationCloudRunServicePtrType) ElementType() reflect.Type {
return reflect.TypeOf((**TriggerDestinationCloudRunService)(nil)).Elem()
}
func (i *triggerDestinationCloudRunServicePtrType) ToTriggerDestinationCloudRunServicePtrOutput() TriggerDestinationCloudRunServicePtrOutput {
return i.ToTriggerDestinationCloudRunServicePtrOutputWithContext(context.Background())
}
func (i *triggerDestinationCloudRunServicePtrType) ToTriggerDestinationCloudRunServicePtrOutputWithContext(ctx context.Context) TriggerDestinationCloudRunServicePtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(TriggerDestinationCloudRunServicePtrOutput)
}
type TriggerDestinationCloudRunServiceOutput struct{ *pulumi.OutputState }
func (TriggerDestinationCloudRunServiceOutput) ElementType() reflect.Type {
return reflect.TypeOf((*TriggerDestinationCloudRunService)(nil)).Elem()
}
func (o TriggerDestinationCloudRunServiceOutput) ToTriggerDestinationCloudRunServiceOutput() TriggerDestinationCloudRunServiceOutput {
return o
}
func (o TriggerDestinationCloudRunServiceOutput) ToTriggerDestinationCloudRunServiceOutputWithContext(ctx context.Context) TriggerDestinationCloudRunServiceOutput {
return o
}
func (o TriggerDestinationCloudRunServiceOutput) ToTriggerDestinationCloudRunServicePtrOutput() TriggerDestinationCloudRunServicePtrOutput {
return o.ToTriggerDestinationCloudRunServicePtrOutputWithContext(context.Background())
}
func (o TriggerDestinationCloudRunServiceOutput) ToTriggerDestinationCloudRunServicePtrOutputWithContext(ctx context.Context) TriggerDestinationCloudRunServicePtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v TriggerDestinationCloudRunService) *TriggerDestinationCloudRunService {
return &v
}).(TriggerDestinationCloudRunServicePtrOutput)
}
// Optional. The relative path on the Cloud Run service the events should be sent to. The value must conform to the definition of URI path segment (section 3.3 of RFC2396). Examples: "/route", "route", "route/subroute".
func (o TriggerDestinationCloudRunServiceOutput) Path() pulumi.StringPtrOutput {
return o.ApplyT(func(v TriggerDestinationCloudRunService) *string { return v.Path }).(pulumi.StringPtrOutput)
}
// Required. The region the Cloud Run service is deployed in.
func (o TriggerDestinationCloudRunServiceOutput) Region() pulumi.StringPtrOutput {
return o.ApplyT(func(v TriggerDestinationCloudRunService) *string { return v.Region }).(pulumi.StringPtrOutput)
}
// Required. The name of the Cloud Run service being addressed. See https://cloud.google.com/run/docs/reference/rest/v1/namespaces.services. Only services located in the same project of the trigger object can be addressed.
func (o TriggerDestinationCloudRunServiceOutput) Service() pulumi.StringOutput {
return o.ApplyT(func(v TriggerDestinationCloudRunService) string { return v.Service }).(pulumi.StringOutput)
}
type TriggerDestinationCloudRunServicePtrOutput struct{ *pulumi.OutputState }
func (TriggerDestinationCloudRunServicePtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**TriggerDestinationCloudRunService)(nil)).Elem()
}
func (o TriggerDestinationCloudRunServicePtrOutput) ToTriggerDestinationCloudRunServicePtrOutput() TriggerDestinationCloudRunServicePtrOutput {
return o
}
func (o TriggerDestinationCloudRunServicePtrOutput) ToTriggerDestinationCloudRunServicePtrOutputWithContext(ctx context.Context) TriggerDestinationCloudRunServicePtrOutput {
return o
}
func (o TriggerDestinationCloudRunServicePtrOutput) Elem() TriggerDestinationCloudRunServiceOutput {
return o.ApplyT(func(v *TriggerDestinationCloudRunService) TriggerDestinationCloudRunService {
if v != nil {
return *v
}
var ret TriggerDestinationCloudRunService
return ret
}).(TriggerDestinationCloudRunServiceOutput)
}
// Optional. The relative path on the Cloud Run service the events should be sent to. The value must conform to the definition of URI path segment (section 3.3 of RFC2396). Examples: "/route", "route", "route/subroute".
func (o TriggerDestinationCloudRunServicePtrOutput) Path() pulumi.StringPtrOutput {
return o.ApplyT(func(v *TriggerDestinationCloudRunService) *string {
if v == nil {
return nil
}
return v.Path
}).(pulumi.StringPtrOutput)
}
// Required. The region the Cloud Run service is deployed in.
func (o TriggerDestinationCloudRunServicePtrOutput) Region() pulumi.StringPtrOutput {
return o.ApplyT(func(v *TriggerDestinationCloudRunService) *string {
if v == nil {
return nil
}
return v.Region
}).(pulumi.StringPtrOutput)
}
// Required. The name of the Cloud Run service being addressed. See https://cloud.google.com/run/docs/reference/rest/v1/namespaces.services. Only services located in the same project of the trigger object can be addressed.
func (o TriggerDestinationCloudRunServicePtrOutput) Service() pulumi.StringPtrOutput {
return o.ApplyT(func(v *TriggerDestinationCloudRunService) *string {
if v == nil {
return nil
}
return &v.Service
}).(pulumi.StringPtrOutput)
}
type TriggerMatchingCriteria struct {
// Required. The name of a CloudEvents attribute. Currently, only a subset of attributes are supported for filtering. All triggers MUST provide a filter for the 'type' attribute.
Attribute string `pulumi:"attribute"`
// Required. The value for the attribute.
Value string `pulumi:"value"`
}
// TriggerMatchingCriteriaInput is an input type that accepts TriggerMatchingCriteriaArgs and TriggerMatchingCriteriaOutput values.
// You can construct a concrete instance of `TriggerMatchingCriteriaInput` via:
//
// TriggerMatchingCriteriaArgs{...}
type TriggerMatchingCriteriaInput interface {
pulumi.Input
ToTriggerMatchingCriteriaOutput() TriggerMatchingCriteriaOutput
ToTriggerMatchingCriteriaOutputWithContext(context.Context) TriggerMatchingCriteriaOutput
}
type TriggerMatchingCriteriaArgs struct {
// Required. The name of a CloudEvents attribute. Currently, only a subset of attributes are supported for filtering. All triggers MUST provide a filter for the 'type' attribute.
Attribute pulumi.StringInput `pulumi:"attribute"`
// Required. The value for the attribute.
Value pulumi.StringInput `pulumi:"value"`
}
func (TriggerMatchingCriteriaArgs) ElementType() reflect.Type {
return reflect.TypeOf((*TriggerMatchingCriteria)(nil)).Elem()
}
func (i TriggerMatchingCriteriaArgs) ToTriggerMatchingCriteriaOutput() TriggerMatchingCriteriaOutput {
return i.ToTriggerMatchingCriteriaOutputWithContext(context.Background())
}
func (i TriggerMatchingCriteriaArgs) ToTriggerMatchingCriteriaOutputWithContext(ctx context.Context) TriggerMatchingCriteriaOutput {
return pulumi.ToOutputWithContext(ctx, i).(TriggerMatchingCriteriaOutput)
}
// TriggerMatchingCriteriaArrayInput is an input type that accepts TriggerMatchingCriteriaArray and TriggerMatchingCriteriaArrayOutput values.
// You can construct a concrete instance of `TriggerMatchingCriteriaArrayInput` via:
//
// TriggerMatchingCriteriaArray{ TriggerMatchingCriteriaArgs{...} }
type TriggerMatchingCriteriaArrayInput interface {
pulumi.Input
ToTriggerMatchingCriteriaArrayOutput() TriggerMatchingCriteriaArrayOutput
ToTriggerMatchingCriteriaArrayOutputWithContext(context.Context) TriggerMatchingCriteriaArrayOutput
}
type TriggerMatchingCriteriaArray []TriggerMatchingCriteriaInput
func (TriggerMatchingCriteriaArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]TriggerMatchingCriteria)(nil)).Elem()
}
func (i TriggerMatchingCriteriaArray) ToTriggerMatchingCriteriaArrayOutput() TriggerMatchingCriteriaArrayOutput {
return i.ToTriggerMatchingCriteriaArrayOutputWithContext(context.Background())
}
func (i TriggerMatchingCriteriaArray) ToTriggerMatchingCriteriaArrayOutputWithContext(ctx context.Context) TriggerMatchingCriteriaArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(TriggerMatchingCriteriaArrayOutput)
}
type TriggerMatchingCriteriaOutput struct{ *pulumi.OutputState }
func (TriggerMatchingCriteriaOutput) ElementType() reflect.Type {
return reflect.TypeOf((*TriggerMatchingCriteria)(nil)).Elem()
}
func (o TriggerMatchingCriteriaOutput) ToTriggerMatchingCriteriaOutput() TriggerMatchingCriteriaOutput {
return o
}
func (o TriggerMatchingCriteriaOutput) ToTriggerMatchingCriteriaOutputWithContext(ctx context.Context) TriggerMatchingCriteriaOutput {
return o
}
// Required. The name of a CloudEvents attribute. Currently, only a subset of attributes are supported for filtering. All triggers MUST provide a filter for the 'type' attribute.
func (o TriggerMatchingCriteriaOutput) Attribute() pulumi.StringOutput {
return o.ApplyT(func(v TriggerMatchingCriteria) string { return v.Attribute }).(pulumi.StringOutput)
}
// Required. The value for the attribute.
func (o TriggerMatchingCriteriaOutput) Value() pulumi.StringOutput {
return o.ApplyT(func(v TriggerMatchingCriteria) string { return v.Value }).(pulumi.StringOutput)
}
type TriggerMatchingCriteriaArrayOutput struct{ *pulumi.OutputState }
func (TriggerMatchingCriteriaArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]TriggerMatchingCriteria)(nil)).Elem()
}
func (o TriggerMatchingCriteriaArrayOutput) ToTriggerMatchingCriteriaArrayOutput() TriggerMatchingCriteriaArrayOutput {
return o
}
func (o TriggerMatchingCriteriaArrayOutput) ToTriggerMatchingCriteriaArrayOutputWithContext(ctx context.Context) TriggerMatchingCriteriaArrayOutput {
return o
}
func (o TriggerMatchingCriteriaArrayOutput) Index(i pulumi.IntInput) TriggerMatchingCriteriaOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) TriggerMatchingCriteria {
return vs[0].([]TriggerMatchingCriteria)[vs[1].(int)]
}).(TriggerMatchingCriteriaOutput)
}
type TriggerTransport struct {
// The Pub/Sub topic and subscription used by Eventarc as delivery intermediary.
Pubsubs []TriggerTransportPubsub `pulumi:"pubsubs"`
}
// TriggerTransportInput is an input type that accepts TriggerTransportArgs and TriggerTransportOutput values.
// You can construct a concrete instance of `TriggerTransportInput` via:
//
// TriggerTransportArgs{...}
type TriggerTransportInput interface {
pulumi.Input
ToTriggerTransportOutput() TriggerTransportOutput
ToTriggerTransportOutputWithContext(context.Context) TriggerTransportOutput
}
type TriggerTransportArgs struct {
// The Pub/Sub topic and subscription used by Eventarc as delivery intermediary.
Pubsubs TriggerTransportPubsubArrayInput `pulumi:"pubsubs"`
}
func (TriggerTransportArgs) ElementType() reflect.Type {
return reflect.TypeOf((*TriggerTransport)(nil)).Elem()
}
func (i TriggerTransportArgs) ToTriggerTransportOutput() TriggerTransportOutput {
return i.ToTriggerTransportOutputWithContext(context.Background())
}
func (i TriggerTransportArgs) ToTriggerTransportOutputWithContext(ctx context.Context) TriggerTransportOutput {
return pulumi.ToOutputWithContext(ctx, i).(TriggerTransportOutput)
}
// TriggerTransportArrayInput is an input type that accepts TriggerTransportArray and TriggerTransportArrayOutput values.
// You can construct a concrete instance of `TriggerTransportArrayInput` via:
//
// TriggerTransportArray{ TriggerTransportArgs{...} }
type TriggerTransportArrayInput interface {
pulumi.Input
ToTriggerTransportArrayOutput() TriggerTransportArrayOutput
ToTriggerTransportArrayOutputWithContext(context.Context) TriggerTransportArrayOutput
}
type TriggerTransportArray []TriggerTransportInput
func (TriggerTransportArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]TriggerTransport)(nil)).Elem()
}
func (i TriggerTransportArray) ToTriggerTransportArrayOutput() TriggerTransportArrayOutput {
return i.ToTriggerTransportArrayOutputWithContext(context.Background())
}
func (i TriggerTransportArray) ToTriggerTransportArrayOutputWithContext(ctx context.Context) TriggerTransportArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(TriggerTransportArrayOutput)
}
type TriggerTransportOutput struct{ *pulumi.OutputState }
func (TriggerTransportOutput) ElementType() reflect.Type {
return reflect.TypeOf((*TriggerTransport)(nil)).Elem()
}
func (o TriggerTransportOutput) ToTriggerTransportOutput() TriggerTransportOutput {
return o
}
func (o TriggerTransportOutput) ToTriggerTransportOutputWithContext(ctx context.Context) TriggerTransportOutput {
return o
}
// The Pub/Sub topic and subscription used by Eventarc as delivery intermediary.
func (o TriggerTransportOutput) Pubsubs() TriggerTransportPubsubArrayOutput {
return o.ApplyT(func(v TriggerTransport) []TriggerTransportPubsub { return v.Pubsubs }).(TriggerTransportPubsubArrayOutput)
}
type TriggerTransportArrayOutput struct{ *pulumi.OutputState }
func (TriggerTransportArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]TriggerTransport)(nil)).Elem()
}
func (o TriggerTransportArrayOutput) ToTriggerTransportArrayOutput() TriggerTransportArrayOutput {
return o
}
func (o TriggerTransportArrayOutput) ToTriggerTransportArrayOutputWithContext(ctx context.Context) TriggerTransportArrayOutput {
return o
}
func (o TriggerTransportArrayOutput) Index(i pulumi.IntInput) TriggerTransportOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) TriggerTransport {
return vs[0].([]TriggerTransport)[vs[1].(int)]
}).(TriggerTransportOutput)
}
type TriggerTransportPubsub struct {
// -
// Output only. The name of the Pub/Sub subscription created and managed by Eventarc system as a transport for the event delivery. Format: `projects/{PROJECT_ID}/subscriptions/{SUBSCRIPTION_NAME}`.
Subscription *string `pulumi:"subscription"`
// Optional. The name of the Pub/Sub topic created and managed by Eventarc system as a transport for the event delivery. Format: `projects/{PROJECT_ID}/topics/{TOPIC_NAME You may set an existing topic for triggers of the type google.cloud.pubsub.topic.v1.messagePublished` only. The topic you provide here will not be deleted by Eventarc at trigger deletion.
Topic *string `pulumi:"topic"`
}
// TriggerTransportPubsubInput is an input type that accepts TriggerTransportPubsubArgs and TriggerTransportPubsubOutput values.
// You can construct a concrete instance of `TriggerTransportPubsubInput` via:
//
// TriggerTransportPubsubArgs{...}
type TriggerTransportPubsubInput interface {
pulumi.Input
ToTriggerTransportPubsubOutput() TriggerTransportPubsubOutput
ToTriggerTransportPubsubOutputWithContext(context.Context) TriggerTransportPubsubOutput
}
type TriggerTransportPubsubArgs struct {
// -
// Output only. The name of the Pub/Sub subscription created and managed by Eventarc system as a transport for the event delivery. Format: `projects/{PROJECT_ID}/subscriptions/{SUBSCRIPTION_NAME}`.
Subscription pulumi.StringPtrInput `pulumi:"subscription"`
// Optional. The name of the Pub/Sub topic created and managed by Eventarc system as a transport for the event delivery. Format: `projects/{PROJECT_ID}/topics/{TOPIC_NAME You may set an existing topic for triggers of the type google.cloud.pubsub.topic.v1.messagePublished` only. The topic you provide here will not be deleted by Eventarc at trigger deletion.
Topic pulumi.StringPtrInput `pulumi:"topic"`
}
func (TriggerTransportPubsubArgs) ElementType() reflect.Type {
return reflect.TypeOf((*TriggerTransportPubsub)(nil)).Elem()
}
func (i TriggerTransportPubsubArgs) ToTriggerTransportPubsubOutput() TriggerTransportPubsubOutput {
return i.ToTriggerTransportPubsubOutputWithContext(context.Background())
}
func (i TriggerTransportPubsubArgs) ToTriggerTransportPubsubOutputWithContext(ctx context.Context) TriggerTransportPubsubOutput {
return pulumi.ToOutputWithContext(ctx, i).(TriggerTransportPubsubOutput)
}
// TriggerTransportPubsubArrayInput is an input type that accepts TriggerTransportPubsubArray and TriggerTransportPubsubArrayOutput values.
// You can construct a concrete instance of `TriggerTransportPubsubArrayInput` via:
//
// TriggerTransportPubsubArray{ TriggerTransportPubsubArgs{...} }
type TriggerTransportPubsubArrayInput interface {
pulumi.Input
ToTriggerTransportPubsubArrayOutput() TriggerTransportPubsubArrayOutput
ToTriggerTransportPubsubArrayOutputWithContext(context.Context) TriggerTransportPubsubArrayOutput
}
type TriggerTransportPubsubArray []TriggerTransportPubsubInput
func (TriggerTransportPubsubArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]TriggerTransportPubsub)(nil)).Elem()
}
func (i TriggerTransportPubsubArray) ToTriggerTransportPubsubArrayOutput() TriggerTransportPubsubArrayOutput {
return i.ToTriggerTransportPubsubArrayOutputWithContext(context.Background())
}
func (i TriggerTransportPubsubArray) ToTriggerTransportPubsubArrayOutputWithContext(ctx context.Context) TriggerTransportPubsubArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(TriggerTransportPubsubArrayOutput)
}
type TriggerTransportPubsubOutput struct{ *pulumi.OutputState }
func (TriggerTransportPubsubOutput) ElementType() reflect.Type {
return reflect.TypeOf((*TriggerTransportPubsub)(nil)).Elem()
}
func (o TriggerTransportPubsubOutput) ToTriggerTransportPubsubOutput() TriggerTransportPubsubOutput {
return o
}
func (o TriggerTransportPubsubOutput) ToTriggerTransportPubsubOutputWithContext(ctx context.Context) TriggerTransportPubsubOutput {
return o
}
// -
// Output only. The name of the Pub/Sub subscription created and managed by Eventarc system as a transport for the event delivery. Format: `projects/{PROJECT_ID}/subscriptions/{SUBSCRIPTION_NAME}`.
func (o TriggerTransportPubsubOutput) Subscription() pulumi.StringPtrOutput {
return o.ApplyT(func(v TriggerTransportPubsub) *string { return v.Subscription }).(pulumi.StringPtrOutput)
}
// Optional. The name of the Pub/Sub topic created and managed by Eventarc system as a transport for the event delivery. Format: `projects/{PROJECT_ID}/topics/{TOPIC_NAME You may set an existing topic for triggers of the type google.cloud.pubsub.topic.v1.messagePublished` only. The topic you provide here will not be deleted by Eventarc at trigger deletion.
func (o TriggerTransportPubsubOutput) Topic() pulumi.StringPtrOutput {
return o.ApplyT(func(v TriggerTransportPubsub) *string { return v.Topic }).(pulumi.StringPtrOutput)
}
type TriggerTransportPubsubArrayOutput struct{ *pulumi.OutputState }
func (TriggerTransportPubsubArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]TriggerTransportPubsub)(nil)).Elem()
}
func (o TriggerTransportPubsubArrayOutput) ToTriggerTransportPubsubArrayOutput() TriggerTransportPubsubArrayOutput {
return o
}
func (o TriggerTransportPubsubArrayOutput) ToTriggerTransportPubsubArrayOutputWithContext(ctx context.Context) TriggerTransportPubsubArrayOutput {
return o
}
func (o TriggerTransportPubsubArrayOutput) Index(i pulumi.IntInput) TriggerTransportPubsubOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) TriggerTransportPubsub {
return vs[0].([]TriggerTransportPubsub)[vs[1].(int)]
}).(TriggerTransportPubsubOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*TriggerDestinationInput)(nil)).Elem(), TriggerDestinationArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*TriggerDestinationPtrInput)(nil)).Elem(), TriggerDestinationArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*TriggerDestinationCloudRunServiceInput)(nil)).Elem(), TriggerDestinationCloudRunServiceArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*TriggerDestinationCloudRunServicePtrInput)(nil)).Elem(), TriggerDestinationCloudRunServiceArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*TriggerMatchingCriteriaInput)(nil)).Elem(), TriggerMatchingCriteriaArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*TriggerMatchingCriteriaArrayInput)(nil)).Elem(), TriggerMatchingCriteriaArray{})
pulumi.RegisterInputType(reflect.TypeOf((*TriggerTransportInput)(nil)).Elem(), TriggerTransportArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*TriggerTransportArrayInput)(nil)).Elem(), TriggerTransportArray{})
pulumi.RegisterInputType(reflect.TypeOf((*TriggerTransportPubsubInput)(nil)).Elem(), TriggerTransportPubsubArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*TriggerTransportPubsubArrayInput)(nil)).Elem(), TriggerTransportPubsubArray{})
pulumi.RegisterOutputType(TriggerDestinationOutput{})
pulumi.RegisterOutputType(TriggerDestinationPtrOutput{})
pulumi.RegisterOutputType(TriggerDestinationCloudRunServiceOutput{})
pulumi.RegisterOutputType(TriggerDestinationCloudRunServicePtrOutput{})
pulumi.RegisterOutputType(TriggerMatchingCriteriaOutput{})
pulumi.RegisterOutputType(TriggerMatchingCriteriaArrayOutput{})
pulumi.RegisterOutputType(TriggerTransportOutput{})
pulumi.RegisterOutputType(TriggerTransportArrayOutput{})
pulumi.RegisterOutputType(TriggerTransportPubsubOutput{})
pulumi.RegisterOutputType(TriggerTransportPubsubArrayOutput{})
}