/
pulumiTypes.go
631 lines (535 loc) · 29.2 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
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package pipeline
import (
"context"
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-buildkite/sdk/v2/go/buildkite/internal"
)
var _ = internal.GetEnvOrDefault
type PipelineProviderSettings struct {
// Whether to create builds when branches are pushed.
BuildBranches *bool `pulumi:"buildBranches"`
// Whether to create builds for pull requests from third-party forks.
BuildPullRequestForks *bool `pulumi:"buildPullRequestForks"`
// Whether to create builds for pull requests when labels are added or removed.
BuildPullRequestLabelsChanged *bool `pulumi:"buildPullRequestLabelsChanged"`
BuildPullRequestReadyForReview *bool `pulumi:"buildPullRequestReadyForReview"`
// Whether to create builds for commits that are part of a Pull Request.
BuildPullRequests *bool `pulumi:"buildPullRequests"`
// Whether to create builds when tags are pushed.
//
// Properties available for Bitbucket Cloud, GitHub, and GitHub Enterprise:
BuildTags *bool `pulumi:"buildTags"`
// A boolean to enable automatically cancelling any running builds for a branch if the branch is deleted.
//
// Additional properties available for GitHub:
CancelDeletedBranchBuilds *bool `pulumi:"cancelDeletedBranchBuilds"`
// The condition to evaluate when deciding if a build should run. More details available in [the documentation](https://buildkite.com/docs/pipelines/conditionals#conditionals-in-pipelines)
FilterCondition *string `pulumi:"filterCondition"`
// [true/false] Whether to filter builds to only run when the condition in `filterCondition` is true
FilterEnabled *bool `pulumi:"filterEnabled"`
// Prefix branch names for third-party fork builds to ensure they don't trigger branch conditions. For example, the `master` branch from `some-user` will become `some-user:master`.
PrefixPullRequestForkBranchNames *bool `pulumi:"prefixPullRequestForkBranchNames"`
// The status to use for blocked builds. Pending can be used with [required status checks](https://help.github.com/en/articles/enabling-required-status-checks) to prevent merging pull requests with blocked builds.
PublishBlockedAsPending *bool `pulumi:"publishBlockedAsPending"`
// Whether to update the status of commits in Bitbucket or GitHub.
PublishCommitStatus *bool `pulumi:"publishCommitStatus"`
// Whether to create a separate status for each job in a build, allowing you to see the status of each job directly in Bitbucket or GitHub.
PublishCommitStatusPerStep *bool `pulumi:"publishCommitStatusPerStep"`
// The branch filtering pattern. Only pull requests on branches matching this pattern will cause builds to be created.
PullRequestBranchFilterConfiguration *string `pulumi:"pullRequestBranchFilterConfiguration"`
// Whether to limit the creation of builds to specific branches or patterns.
PullRequestBranchFilterEnabled *bool `pulumi:"pullRequestBranchFilterEnabled"`
// Whether to create a separate status for pull request builds, allowing you to require a passing pull request build in your [required status checks](https://help.github.com/en/articles/enabling-required-status-checks) in GitHub.
SeparatePullRequestStatuses *bool `pulumi:"separatePullRequestStatuses"`
// Whether to skip creating a new build if an existing build for the commit and branch already exists.
SkipBuildsForExistingCommits *bool `pulumi:"skipBuildsForExistingCommits"`
// Whether to skip creating a new build for a pull request if an existing build for the commit and branch already exists.
SkipPullRequestBuildsForExistingCommits *bool `pulumi:"skipPullRequestBuildsForExistingCommits"`
// What type of event to trigger builds on. Must be one of:
TriggerMode *string `pulumi:"triggerMode"`
}
// PipelineProviderSettingsInput is an input type that accepts PipelineProviderSettingsArgs and PipelineProviderSettingsOutput values.
// You can construct a concrete instance of `PipelineProviderSettingsInput` via:
//
// PipelineProviderSettingsArgs{...}
type PipelineProviderSettingsInput interface {
pulumi.Input
ToPipelineProviderSettingsOutput() PipelineProviderSettingsOutput
ToPipelineProviderSettingsOutputWithContext(context.Context) PipelineProviderSettingsOutput
}
type PipelineProviderSettingsArgs struct {
// Whether to create builds when branches are pushed.
BuildBranches pulumi.BoolPtrInput `pulumi:"buildBranches"`
// Whether to create builds for pull requests from third-party forks.
BuildPullRequestForks pulumi.BoolPtrInput `pulumi:"buildPullRequestForks"`
// Whether to create builds for pull requests when labels are added or removed.
BuildPullRequestLabelsChanged pulumi.BoolPtrInput `pulumi:"buildPullRequestLabelsChanged"`
BuildPullRequestReadyForReview pulumi.BoolPtrInput `pulumi:"buildPullRequestReadyForReview"`
// Whether to create builds for commits that are part of a Pull Request.
BuildPullRequests pulumi.BoolPtrInput `pulumi:"buildPullRequests"`
// Whether to create builds when tags are pushed.
//
// Properties available for Bitbucket Cloud, GitHub, and GitHub Enterprise:
BuildTags pulumi.BoolPtrInput `pulumi:"buildTags"`
// A boolean to enable automatically cancelling any running builds for a branch if the branch is deleted.
//
// Additional properties available for GitHub:
CancelDeletedBranchBuilds pulumi.BoolPtrInput `pulumi:"cancelDeletedBranchBuilds"`
// The condition to evaluate when deciding if a build should run. More details available in [the documentation](https://buildkite.com/docs/pipelines/conditionals#conditionals-in-pipelines)
FilterCondition pulumi.StringPtrInput `pulumi:"filterCondition"`
// [true/false] Whether to filter builds to only run when the condition in `filterCondition` is true
FilterEnabled pulumi.BoolPtrInput `pulumi:"filterEnabled"`
// Prefix branch names for third-party fork builds to ensure they don't trigger branch conditions. For example, the `master` branch from `some-user` will become `some-user:master`.
PrefixPullRequestForkBranchNames pulumi.BoolPtrInput `pulumi:"prefixPullRequestForkBranchNames"`
// The status to use for blocked builds. Pending can be used with [required status checks](https://help.github.com/en/articles/enabling-required-status-checks) to prevent merging pull requests with blocked builds.
PublishBlockedAsPending pulumi.BoolPtrInput `pulumi:"publishBlockedAsPending"`
// Whether to update the status of commits in Bitbucket or GitHub.
PublishCommitStatus pulumi.BoolPtrInput `pulumi:"publishCommitStatus"`
// Whether to create a separate status for each job in a build, allowing you to see the status of each job directly in Bitbucket or GitHub.
PublishCommitStatusPerStep pulumi.BoolPtrInput `pulumi:"publishCommitStatusPerStep"`
// The branch filtering pattern. Only pull requests on branches matching this pattern will cause builds to be created.
PullRequestBranchFilterConfiguration pulumi.StringPtrInput `pulumi:"pullRequestBranchFilterConfiguration"`
// Whether to limit the creation of builds to specific branches or patterns.
PullRequestBranchFilterEnabled pulumi.BoolPtrInput `pulumi:"pullRequestBranchFilterEnabled"`
// Whether to create a separate status for pull request builds, allowing you to require a passing pull request build in your [required status checks](https://help.github.com/en/articles/enabling-required-status-checks) in GitHub.
SeparatePullRequestStatuses pulumi.BoolPtrInput `pulumi:"separatePullRequestStatuses"`
// Whether to skip creating a new build if an existing build for the commit and branch already exists.
SkipBuildsForExistingCommits pulumi.BoolPtrInput `pulumi:"skipBuildsForExistingCommits"`
// Whether to skip creating a new build for a pull request if an existing build for the commit and branch already exists.
SkipPullRequestBuildsForExistingCommits pulumi.BoolPtrInput `pulumi:"skipPullRequestBuildsForExistingCommits"`
// What type of event to trigger builds on. Must be one of:
TriggerMode pulumi.StringPtrInput `pulumi:"triggerMode"`
}
func (PipelineProviderSettingsArgs) ElementType() reflect.Type {
return reflect.TypeOf((*PipelineProviderSettings)(nil)).Elem()
}
func (i PipelineProviderSettingsArgs) ToPipelineProviderSettingsOutput() PipelineProviderSettingsOutput {
return i.ToPipelineProviderSettingsOutputWithContext(context.Background())
}
func (i PipelineProviderSettingsArgs) ToPipelineProviderSettingsOutputWithContext(ctx context.Context) PipelineProviderSettingsOutput {
return pulumi.ToOutputWithContext(ctx, i).(PipelineProviderSettingsOutput)
}
func (i PipelineProviderSettingsArgs) ToPipelineProviderSettingsPtrOutput() PipelineProviderSettingsPtrOutput {
return i.ToPipelineProviderSettingsPtrOutputWithContext(context.Background())
}
func (i PipelineProviderSettingsArgs) ToPipelineProviderSettingsPtrOutputWithContext(ctx context.Context) PipelineProviderSettingsPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(PipelineProviderSettingsOutput).ToPipelineProviderSettingsPtrOutputWithContext(ctx)
}
// PipelineProviderSettingsPtrInput is an input type that accepts PipelineProviderSettingsArgs, PipelineProviderSettingsPtr and PipelineProviderSettingsPtrOutput values.
// You can construct a concrete instance of `PipelineProviderSettingsPtrInput` via:
//
// PipelineProviderSettingsArgs{...}
//
// or:
//
// nil
type PipelineProviderSettingsPtrInput interface {
pulumi.Input
ToPipelineProviderSettingsPtrOutput() PipelineProviderSettingsPtrOutput
ToPipelineProviderSettingsPtrOutputWithContext(context.Context) PipelineProviderSettingsPtrOutput
}
type pipelineProviderSettingsPtrType PipelineProviderSettingsArgs
func PipelineProviderSettingsPtr(v *PipelineProviderSettingsArgs) PipelineProviderSettingsPtrInput {
return (*pipelineProviderSettingsPtrType)(v)
}
func (*pipelineProviderSettingsPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**PipelineProviderSettings)(nil)).Elem()
}
func (i *pipelineProviderSettingsPtrType) ToPipelineProviderSettingsPtrOutput() PipelineProviderSettingsPtrOutput {
return i.ToPipelineProviderSettingsPtrOutputWithContext(context.Background())
}
func (i *pipelineProviderSettingsPtrType) ToPipelineProviderSettingsPtrOutputWithContext(ctx context.Context) PipelineProviderSettingsPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(PipelineProviderSettingsPtrOutput)
}
type PipelineProviderSettingsOutput struct{ *pulumi.OutputState }
func (PipelineProviderSettingsOutput) ElementType() reflect.Type {
return reflect.TypeOf((*PipelineProviderSettings)(nil)).Elem()
}
func (o PipelineProviderSettingsOutput) ToPipelineProviderSettingsOutput() PipelineProviderSettingsOutput {
return o
}
func (o PipelineProviderSettingsOutput) ToPipelineProviderSettingsOutputWithContext(ctx context.Context) PipelineProviderSettingsOutput {
return o
}
func (o PipelineProviderSettingsOutput) ToPipelineProviderSettingsPtrOutput() PipelineProviderSettingsPtrOutput {
return o.ToPipelineProviderSettingsPtrOutputWithContext(context.Background())
}
func (o PipelineProviderSettingsOutput) ToPipelineProviderSettingsPtrOutputWithContext(ctx context.Context) PipelineProviderSettingsPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v PipelineProviderSettings) *PipelineProviderSettings {
return &v
}).(PipelineProviderSettingsPtrOutput)
}
// Whether to create builds when branches are pushed.
func (o PipelineProviderSettingsOutput) BuildBranches() pulumi.BoolPtrOutput {
return o.ApplyT(func(v PipelineProviderSettings) *bool { return v.BuildBranches }).(pulumi.BoolPtrOutput)
}
// Whether to create builds for pull requests from third-party forks.
func (o PipelineProviderSettingsOutput) BuildPullRequestForks() pulumi.BoolPtrOutput {
return o.ApplyT(func(v PipelineProviderSettings) *bool { return v.BuildPullRequestForks }).(pulumi.BoolPtrOutput)
}
// Whether to create builds for pull requests when labels are added or removed.
func (o PipelineProviderSettingsOutput) BuildPullRequestLabelsChanged() pulumi.BoolPtrOutput {
return o.ApplyT(func(v PipelineProviderSettings) *bool { return v.BuildPullRequestLabelsChanged }).(pulumi.BoolPtrOutput)
}
func (o PipelineProviderSettingsOutput) BuildPullRequestReadyForReview() pulumi.BoolPtrOutput {
return o.ApplyT(func(v PipelineProviderSettings) *bool { return v.BuildPullRequestReadyForReview }).(pulumi.BoolPtrOutput)
}
// Whether to create builds for commits that are part of a Pull Request.
func (o PipelineProviderSettingsOutput) BuildPullRequests() pulumi.BoolPtrOutput {
return o.ApplyT(func(v PipelineProviderSettings) *bool { return v.BuildPullRequests }).(pulumi.BoolPtrOutput)
}
// Whether to create builds when tags are pushed.
//
// Properties available for Bitbucket Cloud, GitHub, and GitHub Enterprise:
func (o PipelineProviderSettingsOutput) BuildTags() pulumi.BoolPtrOutput {
return o.ApplyT(func(v PipelineProviderSettings) *bool { return v.BuildTags }).(pulumi.BoolPtrOutput)
}
// A boolean to enable automatically cancelling any running builds for a branch if the branch is deleted.
//
// Additional properties available for GitHub:
func (o PipelineProviderSettingsOutput) CancelDeletedBranchBuilds() pulumi.BoolPtrOutput {
return o.ApplyT(func(v PipelineProviderSettings) *bool { return v.CancelDeletedBranchBuilds }).(pulumi.BoolPtrOutput)
}
// The condition to evaluate when deciding if a build should run. More details available in [the documentation](https://buildkite.com/docs/pipelines/conditionals#conditionals-in-pipelines)
func (o PipelineProviderSettingsOutput) FilterCondition() pulumi.StringPtrOutput {
return o.ApplyT(func(v PipelineProviderSettings) *string { return v.FilterCondition }).(pulumi.StringPtrOutput)
}
// [true/false] Whether to filter builds to only run when the condition in `filterCondition` is true
func (o PipelineProviderSettingsOutput) FilterEnabled() pulumi.BoolPtrOutput {
return o.ApplyT(func(v PipelineProviderSettings) *bool { return v.FilterEnabled }).(pulumi.BoolPtrOutput)
}
// Prefix branch names for third-party fork builds to ensure they don't trigger branch conditions. For example, the `master` branch from `some-user` will become `some-user:master`.
func (o PipelineProviderSettingsOutput) PrefixPullRequestForkBranchNames() pulumi.BoolPtrOutput {
return o.ApplyT(func(v PipelineProviderSettings) *bool { return v.PrefixPullRequestForkBranchNames }).(pulumi.BoolPtrOutput)
}
// The status to use for blocked builds. Pending can be used with [required status checks](https://help.github.com/en/articles/enabling-required-status-checks) to prevent merging pull requests with blocked builds.
func (o PipelineProviderSettingsOutput) PublishBlockedAsPending() pulumi.BoolPtrOutput {
return o.ApplyT(func(v PipelineProviderSettings) *bool { return v.PublishBlockedAsPending }).(pulumi.BoolPtrOutput)
}
// Whether to update the status of commits in Bitbucket or GitHub.
func (o PipelineProviderSettingsOutput) PublishCommitStatus() pulumi.BoolPtrOutput {
return o.ApplyT(func(v PipelineProviderSettings) *bool { return v.PublishCommitStatus }).(pulumi.BoolPtrOutput)
}
// Whether to create a separate status for each job in a build, allowing you to see the status of each job directly in Bitbucket or GitHub.
func (o PipelineProviderSettingsOutput) PublishCommitStatusPerStep() pulumi.BoolPtrOutput {
return o.ApplyT(func(v PipelineProviderSettings) *bool { return v.PublishCommitStatusPerStep }).(pulumi.BoolPtrOutput)
}
// The branch filtering pattern. Only pull requests on branches matching this pattern will cause builds to be created.
func (o PipelineProviderSettingsOutput) PullRequestBranchFilterConfiguration() pulumi.StringPtrOutput {
return o.ApplyT(func(v PipelineProviderSettings) *string { return v.PullRequestBranchFilterConfiguration }).(pulumi.StringPtrOutput)
}
// Whether to limit the creation of builds to specific branches or patterns.
func (o PipelineProviderSettingsOutput) PullRequestBranchFilterEnabled() pulumi.BoolPtrOutput {
return o.ApplyT(func(v PipelineProviderSettings) *bool { return v.PullRequestBranchFilterEnabled }).(pulumi.BoolPtrOutput)
}
// Whether to create a separate status for pull request builds, allowing you to require a passing pull request build in your [required status checks](https://help.github.com/en/articles/enabling-required-status-checks) in GitHub.
func (o PipelineProviderSettingsOutput) SeparatePullRequestStatuses() pulumi.BoolPtrOutput {
return o.ApplyT(func(v PipelineProviderSettings) *bool { return v.SeparatePullRequestStatuses }).(pulumi.BoolPtrOutput)
}
// Whether to skip creating a new build if an existing build for the commit and branch already exists.
func (o PipelineProviderSettingsOutput) SkipBuildsForExistingCommits() pulumi.BoolPtrOutput {
return o.ApplyT(func(v PipelineProviderSettings) *bool { return v.SkipBuildsForExistingCommits }).(pulumi.BoolPtrOutput)
}
// Whether to skip creating a new build for a pull request if an existing build for the commit and branch already exists.
func (o PipelineProviderSettingsOutput) SkipPullRequestBuildsForExistingCommits() pulumi.BoolPtrOutput {
return o.ApplyT(func(v PipelineProviderSettings) *bool { return v.SkipPullRequestBuildsForExistingCommits }).(pulumi.BoolPtrOutput)
}
// What type of event to trigger builds on. Must be one of:
func (o PipelineProviderSettingsOutput) TriggerMode() pulumi.StringPtrOutput {
return o.ApplyT(func(v PipelineProviderSettings) *string { return v.TriggerMode }).(pulumi.StringPtrOutput)
}
type PipelineProviderSettingsPtrOutput struct{ *pulumi.OutputState }
func (PipelineProviderSettingsPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**PipelineProviderSettings)(nil)).Elem()
}
func (o PipelineProviderSettingsPtrOutput) ToPipelineProviderSettingsPtrOutput() PipelineProviderSettingsPtrOutput {
return o
}
func (o PipelineProviderSettingsPtrOutput) ToPipelineProviderSettingsPtrOutputWithContext(ctx context.Context) PipelineProviderSettingsPtrOutput {
return o
}
func (o PipelineProviderSettingsPtrOutput) Elem() PipelineProviderSettingsOutput {
return o.ApplyT(func(v *PipelineProviderSettings) PipelineProviderSettings {
if v != nil {
return *v
}
var ret PipelineProviderSettings
return ret
}).(PipelineProviderSettingsOutput)
}
// Whether to create builds when branches are pushed.
func (o PipelineProviderSettingsPtrOutput) BuildBranches() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *PipelineProviderSettings) *bool {
if v == nil {
return nil
}
return v.BuildBranches
}).(pulumi.BoolPtrOutput)
}
// Whether to create builds for pull requests from third-party forks.
func (o PipelineProviderSettingsPtrOutput) BuildPullRequestForks() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *PipelineProviderSettings) *bool {
if v == nil {
return nil
}
return v.BuildPullRequestForks
}).(pulumi.BoolPtrOutput)
}
// Whether to create builds for pull requests when labels are added or removed.
func (o PipelineProviderSettingsPtrOutput) BuildPullRequestLabelsChanged() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *PipelineProviderSettings) *bool {
if v == nil {
return nil
}
return v.BuildPullRequestLabelsChanged
}).(pulumi.BoolPtrOutput)
}
func (o PipelineProviderSettingsPtrOutput) BuildPullRequestReadyForReview() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *PipelineProviderSettings) *bool {
if v == nil {
return nil
}
return v.BuildPullRequestReadyForReview
}).(pulumi.BoolPtrOutput)
}
// Whether to create builds for commits that are part of a Pull Request.
func (o PipelineProviderSettingsPtrOutput) BuildPullRequests() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *PipelineProviderSettings) *bool {
if v == nil {
return nil
}
return v.BuildPullRequests
}).(pulumi.BoolPtrOutput)
}
// Whether to create builds when tags are pushed.
//
// Properties available for Bitbucket Cloud, GitHub, and GitHub Enterprise:
func (o PipelineProviderSettingsPtrOutput) BuildTags() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *PipelineProviderSettings) *bool {
if v == nil {
return nil
}
return v.BuildTags
}).(pulumi.BoolPtrOutput)
}
// A boolean to enable automatically cancelling any running builds for a branch if the branch is deleted.
//
// Additional properties available for GitHub:
func (o PipelineProviderSettingsPtrOutput) CancelDeletedBranchBuilds() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *PipelineProviderSettings) *bool {
if v == nil {
return nil
}
return v.CancelDeletedBranchBuilds
}).(pulumi.BoolPtrOutput)
}
// The condition to evaluate when deciding if a build should run. More details available in [the documentation](https://buildkite.com/docs/pipelines/conditionals#conditionals-in-pipelines)
func (o PipelineProviderSettingsPtrOutput) FilterCondition() pulumi.StringPtrOutput {
return o.ApplyT(func(v *PipelineProviderSettings) *string {
if v == nil {
return nil
}
return v.FilterCondition
}).(pulumi.StringPtrOutput)
}
// [true/false] Whether to filter builds to only run when the condition in `filterCondition` is true
func (o PipelineProviderSettingsPtrOutput) FilterEnabled() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *PipelineProviderSettings) *bool {
if v == nil {
return nil
}
return v.FilterEnabled
}).(pulumi.BoolPtrOutput)
}
// Prefix branch names for third-party fork builds to ensure they don't trigger branch conditions. For example, the `master` branch from `some-user` will become `some-user:master`.
func (o PipelineProviderSettingsPtrOutput) PrefixPullRequestForkBranchNames() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *PipelineProviderSettings) *bool {
if v == nil {
return nil
}
return v.PrefixPullRequestForkBranchNames
}).(pulumi.BoolPtrOutput)
}
// The status to use for blocked builds. Pending can be used with [required status checks](https://help.github.com/en/articles/enabling-required-status-checks) to prevent merging pull requests with blocked builds.
func (o PipelineProviderSettingsPtrOutput) PublishBlockedAsPending() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *PipelineProviderSettings) *bool {
if v == nil {
return nil
}
return v.PublishBlockedAsPending
}).(pulumi.BoolPtrOutput)
}
// Whether to update the status of commits in Bitbucket or GitHub.
func (o PipelineProviderSettingsPtrOutput) PublishCommitStatus() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *PipelineProviderSettings) *bool {
if v == nil {
return nil
}
return v.PublishCommitStatus
}).(pulumi.BoolPtrOutput)
}
// Whether to create a separate status for each job in a build, allowing you to see the status of each job directly in Bitbucket or GitHub.
func (o PipelineProviderSettingsPtrOutput) PublishCommitStatusPerStep() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *PipelineProviderSettings) *bool {
if v == nil {
return nil
}
return v.PublishCommitStatusPerStep
}).(pulumi.BoolPtrOutput)
}
// The branch filtering pattern. Only pull requests on branches matching this pattern will cause builds to be created.
func (o PipelineProviderSettingsPtrOutput) PullRequestBranchFilterConfiguration() pulumi.StringPtrOutput {
return o.ApplyT(func(v *PipelineProviderSettings) *string {
if v == nil {
return nil
}
return v.PullRequestBranchFilterConfiguration
}).(pulumi.StringPtrOutput)
}
// Whether to limit the creation of builds to specific branches or patterns.
func (o PipelineProviderSettingsPtrOutput) PullRequestBranchFilterEnabled() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *PipelineProviderSettings) *bool {
if v == nil {
return nil
}
return v.PullRequestBranchFilterEnabled
}).(pulumi.BoolPtrOutput)
}
// Whether to create a separate status for pull request builds, allowing you to require a passing pull request build in your [required status checks](https://help.github.com/en/articles/enabling-required-status-checks) in GitHub.
func (o PipelineProviderSettingsPtrOutput) SeparatePullRequestStatuses() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *PipelineProviderSettings) *bool {
if v == nil {
return nil
}
return v.SeparatePullRequestStatuses
}).(pulumi.BoolPtrOutput)
}
// Whether to skip creating a new build if an existing build for the commit and branch already exists.
func (o PipelineProviderSettingsPtrOutput) SkipBuildsForExistingCommits() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *PipelineProviderSettings) *bool {
if v == nil {
return nil
}
return v.SkipBuildsForExistingCommits
}).(pulumi.BoolPtrOutput)
}
// Whether to skip creating a new build for a pull request if an existing build for the commit and branch already exists.
func (o PipelineProviderSettingsPtrOutput) SkipPullRequestBuildsForExistingCommits() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *PipelineProviderSettings) *bool {
if v == nil {
return nil
}
return v.SkipPullRequestBuildsForExistingCommits
}).(pulumi.BoolPtrOutput)
}
// What type of event to trigger builds on. Must be one of:
func (o PipelineProviderSettingsPtrOutput) TriggerMode() pulumi.StringPtrOutput {
return o.ApplyT(func(v *PipelineProviderSettings) *string {
if v == nil {
return nil
}
return v.TriggerMode
}).(pulumi.StringPtrOutput)
}
type PipelineTeam struct {
AccessLevel string `pulumi:"accessLevel"`
PipelineTeamId *string `pulumi:"pipelineTeamId"`
// The slug of the created pipeline.
Slug string `pulumi:"slug"`
TeamId *string `pulumi:"teamId"`
}
// PipelineTeamInput is an input type that accepts PipelineTeamArgs and PipelineTeamOutput values.
// You can construct a concrete instance of `PipelineTeamInput` via:
//
// PipelineTeamArgs{...}
type PipelineTeamInput interface {
pulumi.Input
ToPipelineTeamOutput() PipelineTeamOutput
ToPipelineTeamOutputWithContext(context.Context) PipelineTeamOutput
}
type PipelineTeamArgs struct {
AccessLevel pulumi.StringInput `pulumi:"accessLevel"`
PipelineTeamId pulumi.StringPtrInput `pulumi:"pipelineTeamId"`
// The slug of the created pipeline.
Slug pulumi.StringInput `pulumi:"slug"`
TeamId pulumi.StringPtrInput `pulumi:"teamId"`
}
func (PipelineTeamArgs) ElementType() reflect.Type {
return reflect.TypeOf((*PipelineTeam)(nil)).Elem()
}
func (i PipelineTeamArgs) ToPipelineTeamOutput() PipelineTeamOutput {
return i.ToPipelineTeamOutputWithContext(context.Background())
}
func (i PipelineTeamArgs) ToPipelineTeamOutputWithContext(ctx context.Context) PipelineTeamOutput {
return pulumi.ToOutputWithContext(ctx, i).(PipelineTeamOutput)
}
// PipelineTeamArrayInput is an input type that accepts PipelineTeamArray and PipelineTeamArrayOutput values.
// You can construct a concrete instance of `PipelineTeamArrayInput` via:
//
// PipelineTeamArray{ PipelineTeamArgs{...} }
type PipelineTeamArrayInput interface {
pulumi.Input
ToPipelineTeamArrayOutput() PipelineTeamArrayOutput
ToPipelineTeamArrayOutputWithContext(context.Context) PipelineTeamArrayOutput
}
type PipelineTeamArray []PipelineTeamInput
func (PipelineTeamArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]PipelineTeam)(nil)).Elem()
}
func (i PipelineTeamArray) ToPipelineTeamArrayOutput() PipelineTeamArrayOutput {
return i.ToPipelineTeamArrayOutputWithContext(context.Background())
}
func (i PipelineTeamArray) ToPipelineTeamArrayOutputWithContext(ctx context.Context) PipelineTeamArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(PipelineTeamArrayOutput)
}
type PipelineTeamOutput struct{ *pulumi.OutputState }
func (PipelineTeamOutput) ElementType() reflect.Type {
return reflect.TypeOf((*PipelineTeam)(nil)).Elem()
}
func (o PipelineTeamOutput) ToPipelineTeamOutput() PipelineTeamOutput {
return o
}
func (o PipelineTeamOutput) ToPipelineTeamOutputWithContext(ctx context.Context) PipelineTeamOutput {
return o
}
func (o PipelineTeamOutput) AccessLevel() pulumi.StringOutput {
return o.ApplyT(func(v PipelineTeam) string { return v.AccessLevel }).(pulumi.StringOutput)
}
func (o PipelineTeamOutput) PipelineTeamId() pulumi.StringPtrOutput {
return o.ApplyT(func(v PipelineTeam) *string { return v.PipelineTeamId }).(pulumi.StringPtrOutput)
}
// The slug of the created pipeline.
func (o PipelineTeamOutput) Slug() pulumi.StringOutput {
return o.ApplyT(func(v PipelineTeam) string { return v.Slug }).(pulumi.StringOutput)
}
func (o PipelineTeamOutput) TeamId() pulumi.StringPtrOutput {
return o.ApplyT(func(v PipelineTeam) *string { return v.TeamId }).(pulumi.StringPtrOutput)
}
type PipelineTeamArrayOutput struct{ *pulumi.OutputState }
func (PipelineTeamArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]PipelineTeam)(nil)).Elem()
}
func (o PipelineTeamArrayOutput) ToPipelineTeamArrayOutput() PipelineTeamArrayOutput {
return o
}
func (o PipelineTeamArrayOutput) ToPipelineTeamArrayOutputWithContext(ctx context.Context) PipelineTeamArrayOutput {
return o
}
func (o PipelineTeamArrayOutput) Index(i pulumi.IntInput) PipelineTeamOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) PipelineTeam {
return vs[0].([]PipelineTeam)[vs[1].(int)]
}).(PipelineTeamOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*PipelineProviderSettingsInput)(nil)).Elem(), PipelineProviderSettingsArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*PipelineProviderSettingsPtrInput)(nil)).Elem(), PipelineProviderSettingsArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*PipelineTeamInput)(nil)).Elem(), PipelineTeamArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*PipelineTeamArrayInput)(nil)).Elem(), PipelineTeamArray{})
pulumi.RegisterOutputType(PipelineProviderSettingsOutput{})
pulumi.RegisterOutputType(PipelineProviderSettingsPtrOutput{})
pulumi.RegisterOutputType(PipelineTeamOutput{})
pulumi.RegisterOutputType(PipelineTeamArrayOutput{})
}