@pulumiverse/buildkite 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +110 -0
  3. package/agent/agentToken.d.ts +94 -0
  4. package/agent/agentToken.js +77 -0
  5. package/agent/agentToken.js.map +1 -0
  6. package/agent/index.d.ts +3 -0
  7. package/agent/index.js +22 -0
  8. package/agent/index.js.map +1 -0
  9. package/config/index.d.ts +1 -0
  10. package/config/index.js +21 -0
  11. package/config/index.js.map +1 -0
  12. package/config/vars.d.ts +16 -0
  13. package/config/vars.js +31 -0
  14. package/config/vars.js.map +1 -0
  15. package/getMeta.d.ts +15 -0
  16. package/getMeta.js +13 -0
  17. package/getMeta.js.map +1 -0
  18. package/index.d.ts +12 -0
  19. package/index.js +34 -0
  20. package/index.js.map +1 -0
  21. package/organization/getOrganization.d.ts +47 -0
  22. package/organization/getOrganization.js +32 -0
  23. package/organization/getOrganization.js.map +1 -0
  24. package/organization/index.d.ts +6 -0
  25. package/organization/index.js +25 -0
  26. package/organization/index.js.map +1 -0
  27. package/organization/settings.d.ts +76 -0
  28. package/organization/settings.js +77 -0
  29. package/organization/settings.js.map +1 -0
  30. package/package.json +29 -0
  31. package/package.json.bak +29 -0
  32. package/pipeline/getPipeline.d.ts +89 -0
  33. package/pipeline/getPipeline.js +57 -0
  34. package/pipeline/getPipeline.js.map +1 -0
  35. package/pipeline/index.d.ts +9 -0
  36. package/pipeline/index.js +30 -0
  37. package/pipeline/index.js.map +1 -0
  38. package/pipeline/pipeline.d.ts +363 -0
  39. package/pipeline/pipeline.js +186 -0
  40. package/pipeline/pipeline.js.map +1 -0
  41. package/pipeline/schedule.d.ts +166 -0
  42. package/pipeline/schedule.js +106 -0
  43. package/pipeline/schedule.js.map +1 -0
  44. package/provider.d.ts +59 -0
  45. package/provider.js +54 -0
  46. package/provider.js.map +1 -0
  47. package/scripts/install-pulumi-plugin.js +26 -0
  48. package/team/getTeam.d.ts +97 -0
  49. package/team/getTeam.js +57 -0
  50. package/team/getTeam.js.map +1 -0
  51. package/team/index.d.ts +9 -0
  52. package/team/index.js +30 -0
  53. package/team/index.js.map +1 -0
  54. package/team/member.d.ts +149 -0
  55. package/team/member.js +133 -0
  56. package/team/member.js.map +1 -0
  57. package/team/team.d.ts +146 -0
  58. package/team/team.js +94 -0
  59. package/team/team.js.map +1 -0
  60. package/types/index.d.ts +3 -0
  61. package/types/index.js +11 -0
  62. package/types/index.js.map +1 -0
  63. package/types/input.d.ts +88 -0
  64. package/types/input.js +5 -0
  65. package/types/input.js.map +1 -0
  66. package/types/output.d.ts +87 -0
  67. package/types/output.js +5 -0
  68. package/types/output.js.map +1 -0
  69. package/utilities.d.ts +4 -0
  70. package/utilities.js +69 -0
  71. package/utilities.js.map +1 -0
@@ -0,0 +1,363 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "../types/input";
3
+ import * as outputs from "../types/output";
4
+ /**
5
+ * ## # Resource: pipeline
6
+ *
7
+ * This resource allows you to create and manage pipelines for repositories.
8
+ *
9
+ * Buildkite Documentation: https://buildkite.com/docs/pipelines
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as buildkite from "@pulumiverse/buildkite";
16
+ * import * as fs from "fs";
17
+ *
18
+ * // in ./steps.yml:
19
+ * // steps:
20
+ * // - label: ':pipeline:'
21
+ * // command: buildkite-agent pipeline upload
22
+ * const repo2 = new buildkite.pipeline.Pipeline("repo2", {
23
+ * repository: "git@github.com:org/repo2",
24
+ * steps: fs.readFileSync("./steps.yml"),
25
+ * teams: [{
26
+ * slug: "everyone",
27
+ * accessLevel: "READ_ONLY",
28
+ * }],
29
+ * });
30
+ * ```
31
+ * ### With Command Timeouts
32
+ *
33
+ * ```typescript
34
+ * import * as pulumi from "@pulumi/pulumi";
35
+ * import * as buildkite from "@pulumiverse/buildkite";
36
+ * import * as fs from "fs";
37
+ *
38
+ * const testNew = new buildkite.pipeline.Pipeline("testNew", {
39
+ * repository: "https://github.com/buildkite/terraform-provider-buildkite.git",
40
+ * steps: fs.readFileSync("./deploy-steps.yml"),
41
+ * defaultTimeoutInMinutes: 60,
42
+ * maximumTimeoutInMinutes: 120,
43
+ * });
44
+ * ```
45
+ *
46
+ * Currently, the `defaultTimeoutInMinutes` and `maximumTimeoutInMinutes` will be retained in state even if removed from the configuration. In order to remove them, you must set them to `0` in either the configuration or the web UI.
47
+ * ### With Deletion Protection
48
+ *
49
+ * ```typescript
50
+ * import * as pulumi from "@pulumi/pulumi";
51
+ * import * as buildkite from "@pulumiverse/buildkite";
52
+ * import * as fs from "fs";
53
+ *
54
+ * const testNew = new buildkite.pipeline.Pipeline("testNew", {
55
+ * repository: "https://github.com/buildkite/terraform-provider-buildkite.git",
56
+ * steps: fs.readFileSync("./deploy-steps.yml"),
57
+ * deletionProtection: true,
58
+ * });
59
+ * ```
60
+ *
61
+ * `deletionProtection` will block `destroy` actions on the **pipeline**. Attached resources, such as `schedules` will still be destroyed.
62
+ * ### With GitHub Provider Settings
63
+ *
64
+ * ```typescript
65
+ * import * as pulumi from "@pulumi/pulumi";
66
+ * import * as buildkite from "@pulumiverse/buildkite";
67
+ * import * as fs from "fs";
68
+ *
69
+ * // Pipeline that should not be triggered from a GitHub webhook
70
+ * const repo2_deploy = new buildkite.pipeline.Pipeline("repo2-deploy", {
71
+ * repository: "git@github.com:org/repo2",
72
+ * steps: fs.readFileSync("./deploy-steps.yml"),
73
+ * providerSettings: {
74
+ * triggerMode: "none",
75
+ * },
76
+ * });
77
+ * // Release pipeline (triggered only when tags are pushed)
78
+ * const repo2_release = new buildkite.pipeline.Pipeline("repo2-release", {
79
+ * repository: "git@github.com:org/repo2",
80
+ * steps: fs.readFileSync("./release-steps.yml"),
81
+ * providerSettings: {
82
+ * buildBranches: false,
83
+ * buildTags: true,
84
+ * buildPullRequests: false,
85
+ * triggerMode: "code",
86
+ * },
87
+ * });
88
+ * ```
89
+ *
90
+ * ## Import
91
+ *
92
+ * Pipelines can be imported using the `GraphQL ID` (not UUID), e.g.
93
+ *
94
+ * ```sh
95
+ * $ pulumi import buildkite:Pipeline/pipeline:Pipeline fleet UGlwZWxpbmUtLS00MzVjYWQ1OC1lODFkLTQ1YWYtODYzNy1iMWNmODA3MDIzOGQ=
96
+ * ```
97
+ */
98
+ export declare class Pipeline extends pulumi.CustomResource {
99
+ /**
100
+ * Get an existing Pipeline resource's state with the given name, ID, and optional extra
101
+ * properties used to qualify the lookup.
102
+ *
103
+ * @param name The _unique_ name of the resulting resource.
104
+ * @param id The _unique_ provider ID of the resource to lookup.
105
+ * @param state Any extra arguments used during the lookup.
106
+ * @param opts Optional settings to control the behavior of the CustomResource.
107
+ */
108
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: PipelineState, opts?: pulumi.CustomResourceOptions): Pipeline;
109
+ /**
110
+ * Returns true if the given object is an instance of Pipeline. This is designed to work even
111
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
112
+ */
113
+ static isInstance(obj: any): obj is Pipeline;
114
+ /**
115
+ * A boolean on whether or not to allow rebuilds for the pipeline.
116
+ */
117
+ readonly allowRebuilds: pulumi.Output<boolean | undefined>;
118
+ /**
119
+ * The pipeline's last build status so you can display build status badge.
120
+ */
121
+ readonly badgeUrl: pulumi.Output<string>;
122
+ /**
123
+ * Limit which branches and tags cause new builds to be created, either via a code push or via the Builds REST API.
124
+ */
125
+ readonly branchConfiguration: pulumi.Output<string | undefined>;
126
+ /**
127
+ * A boolean to enable automatically cancelling any running builds on the same branch when a new build is created.
128
+ */
129
+ readonly cancelIntermediateBuilds: pulumi.Output<boolean | undefined>;
130
+ /**
131
+ * Limit which branches build cancelling applies to, for example !master will ensure that the master branch won't have its builds automatically cancelled.
132
+ */
133
+ readonly cancelIntermediateBuildsBranchFilter: pulumi.Output<string | undefined>;
134
+ /**
135
+ * The GraphQL ID of the cluster you want to use for the pipeline.
136
+ */
137
+ readonly clusterId: pulumi.Output<string | undefined>;
138
+ /**
139
+ * The default branch to prefill when new builds are created or triggered, usually main or master but can be anything.
140
+ */
141
+ readonly defaultBranch: pulumi.Output<string | undefined>;
142
+ /**
143
+ * The default timeout for commands in this pipeline, in minutes.
144
+ */
145
+ readonly defaultTimeoutInMinutes: pulumi.Output<number | undefined>;
146
+ /**
147
+ * Set to either `true` or `false`. When set to `true`, `destroy` actions on a pipeline will be blocked and fail with a message "Deletion protection is enabled for pipeline: <pipeline name>"
148
+ */
149
+ readonly deletionProtection: pulumi.Output<boolean | undefined>;
150
+ /**
151
+ * A description of the pipeline.
152
+ */
153
+ readonly description: pulumi.Output<string | undefined>;
154
+ /**
155
+ * The maximum timeout for commands in this pipeline, in minutes.
156
+ */
157
+ readonly maximumTimeoutInMinutes: pulumi.Output<number | undefined>;
158
+ /**
159
+ * The name of the pipeline.
160
+ */
161
+ readonly name: pulumi.Output<string>;
162
+ /**
163
+ * Source control provider settings for the pipeline. See Provider Settings Configuration below for details.
164
+ */
165
+ readonly providerSettings: pulumi.Output<outputs.Pipeline.PipelineProviderSettings>;
166
+ /**
167
+ * The git URL of the repository.
168
+ */
169
+ readonly repository: pulumi.Output<string>;
170
+ /**
171
+ * A boolean to enable automatically skipping any unstarted builds on the same branch when a new build is created.
172
+ */
173
+ readonly skipIntermediateBuilds: pulumi.Output<boolean | undefined>;
174
+ /**
175
+ * Limit which branches build skipping applies to, for example `!master` will ensure that the master branch won't have its builds automatically skipped.
176
+ */
177
+ readonly skipIntermediateBuildsBranchFilter: pulumi.Output<string | undefined>;
178
+ /**
179
+ * The buildkite slug of the team.
180
+ */
181
+ readonly slug: pulumi.Output<string>;
182
+ /**
183
+ * The string YAML steps to run the pipeline. Defaults to `buildkite-agent pipeline upload` if not specified.
184
+ */
185
+ readonly steps: pulumi.Output<string | undefined>;
186
+ readonly tags: pulumi.Output<string[] | undefined>;
187
+ /**
188
+ * Set team access for the pipeline. Can be specified multiple times for each team. See Teams Configuration below for details.
189
+ */
190
+ readonly teams: pulumi.Output<outputs.Pipeline.PipelineTeam[] | undefined>;
191
+ /**
192
+ * The Buildkite webhook URL to configure on the repository to trigger builds on this pipeline.
193
+ */
194
+ readonly webhookUrl: pulumi.Output<string>;
195
+ /**
196
+ * Create a Pipeline resource with the given unique name, arguments, and options.
197
+ *
198
+ * @param name The _unique_ name of the resource.
199
+ * @param args The arguments to use to populate this resource's properties.
200
+ * @param opts A bag of options that control this resource's behavior.
201
+ */
202
+ constructor(name: string, args: PipelineArgs, opts?: pulumi.CustomResourceOptions);
203
+ }
204
+ /**
205
+ * Input properties used for looking up and filtering Pipeline resources.
206
+ */
207
+ export interface PipelineState {
208
+ /**
209
+ * A boolean on whether or not to allow rebuilds for the pipeline.
210
+ */
211
+ allowRebuilds?: pulumi.Input<boolean>;
212
+ /**
213
+ * The pipeline's last build status so you can display build status badge.
214
+ */
215
+ badgeUrl?: pulumi.Input<string>;
216
+ /**
217
+ * Limit which branches and tags cause new builds to be created, either via a code push or via the Builds REST API.
218
+ */
219
+ branchConfiguration?: pulumi.Input<string>;
220
+ /**
221
+ * A boolean to enable automatically cancelling any running builds on the same branch when a new build is created.
222
+ */
223
+ cancelIntermediateBuilds?: pulumi.Input<boolean>;
224
+ /**
225
+ * Limit which branches build cancelling applies to, for example !master will ensure that the master branch won't have its builds automatically cancelled.
226
+ */
227
+ cancelIntermediateBuildsBranchFilter?: pulumi.Input<string>;
228
+ /**
229
+ * The GraphQL ID of the cluster you want to use for the pipeline.
230
+ */
231
+ clusterId?: pulumi.Input<string>;
232
+ /**
233
+ * The default branch to prefill when new builds are created or triggered, usually main or master but can be anything.
234
+ */
235
+ defaultBranch?: pulumi.Input<string>;
236
+ /**
237
+ * The default timeout for commands in this pipeline, in minutes.
238
+ */
239
+ defaultTimeoutInMinutes?: pulumi.Input<number>;
240
+ /**
241
+ * Set to either `true` or `false`. When set to `true`, `destroy` actions on a pipeline will be blocked and fail with a message "Deletion protection is enabled for pipeline: <pipeline name>"
242
+ */
243
+ deletionProtection?: pulumi.Input<boolean>;
244
+ /**
245
+ * A description of the pipeline.
246
+ */
247
+ description?: pulumi.Input<string>;
248
+ /**
249
+ * The maximum timeout for commands in this pipeline, in minutes.
250
+ */
251
+ maximumTimeoutInMinutes?: pulumi.Input<number>;
252
+ /**
253
+ * The name of the pipeline.
254
+ */
255
+ name?: pulumi.Input<string>;
256
+ /**
257
+ * Source control provider settings for the pipeline. See Provider Settings Configuration below for details.
258
+ */
259
+ providerSettings?: pulumi.Input<inputs.Pipeline.PipelineProviderSettings>;
260
+ /**
261
+ * The git URL of the repository.
262
+ */
263
+ repository?: pulumi.Input<string>;
264
+ /**
265
+ * A boolean to enable automatically skipping any unstarted builds on the same branch when a new build is created.
266
+ */
267
+ skipIntermediateBuilds?: pulumi.Input<boolean>;
268
+ /**
269
+ * Limit which branches build skipping applies to, for example `!master` will ensure that the master branch won't have its builds automatically skipped.
270
+ */
271
+ skipIntermediateBuildsBranchFilter?: pulumi.Input<string>;
272
+ /**
273
+ * The buildkite slug of the team.
274
+ */
275
+ slug?: pulumi.Input<string>;
276
+ /**
277
+ * The string YAML steps to run the pipeline. Defaults to `buildkite-agent pipeline upload` if not specified.
278
+ */
279
+ steps?: pulumi.Input<string>;
280
+ tags?: pulumi.Input<pulumi.Input<string>[]>;
281
+ /**
282
+ * Set team access for the pipeline. Can be specified multiple times for each team. See Teams Configuration below for details.
283
+ */
284
+ teams?: pulumi.Input<pulumi.Input<inputs.Pipeline.PipelineTeam>[]>;
285
+ /**
286
+ * The Buildkite webhook URL to configure on the repository to trigger builds on this pipeline.
287
+ */
288
+ webhookUrl?: pulumi.Input<string>;
289
+ }
290
+ /**
291
+ * The set of arguments for constructing a Pipeline resource.
292
+ */
293
+ export interface PipelineArgs {
294
+ /**
295
+ * A boolean on whether or not to allow rebuilds for the pipeline.
296
+ */
297
+ allowRebuilds?: pulumi.Input<boolean>;
298
+ /**
299
+ * Limit which branches and tags cause new builds to be created, either via a code push or via the Builds REST API.
300
+ */
301
+ branchConfiguration?: pulumi.Input<string>;
302
+ /**
303
+ * A boolean to enable automatically cancelling any running builds on the same branch when a new build is created.
304
+ */
305
+ cancelIntermediateBuilds?: pulumi.Input<boolean>;
306
+ /**
307
+ * Limit which branches build cancelling applies to, for example !master will ensure that the master branch won't have its builds automatically cancelled.
308
+ */
309
+ cancelIntermediateBuildsBranchFilter?: pulumi.Input<string>;
310
+ /**
311
+ * The GraphQL ID of the cluster you want to use for the pipeline.
312
+ */
313
+ clusterId?: pulumi.Input<string>;
314
+ /**
315
+ * The default branch to prefill when new builds are created or triggered, usually main or master but can be anything.
316
+ */
317
+ defaultBranch?: pulumi.Input<string>;
318
+ /**
319
+ * The default timeout for commands in this pipeline, in minutes.
320
+ */
321
+ defaultTimeoutInMinutes?: pulumi.Input<number>;
322
+ /**
323
+ * Set to either `true` or `false`. When set to `true`, `destroy` actions on a pipeline will be blocked and fail with a message "Deletion protection is enabled for pipeline: <pipeline name>"
324
+ */
325
+ deletionProtection?: pulumi.Input<boolean>;
326
+ /**
327
+ * A description of the pipeline.
328
+ */
329
+ description?: pulumi.Input<string>;
330
+ /**
331
+ * The maximum timeout for commands in this pipeline, in minutes.
332
+ */
333
+ maximumTimeoutInMinutes?: pulumi.Input<number>;
334
+ /**
335
+ * The name of the pipeline.
336
+ */
337
+ name?: pulumi.Input<string>;
338
+ /**
339
+ * Source control provider settings for the pipeline. See Provider Settings Configuration below for details.
340
+ */
341
+ providerSettings?: pulumi.Input<inputs.Pipeline.PipelineProviderSettings>;
342
+ /**
343
+ * The git URL of the repository.
344
+ */
345
+ repository: pulumi.Input<string>;
346
+ /**
347
+ * A boolean to enable automatically skipping any unstarted builds on the same branch when a new build is created.
348
+ */
349
+ skipIntermediateBuilds?: pulumi.Input<boolean>;
350
+ /**
351
+ * Limit which branches build skipping applies to, for example `!master` will ensure that the master branch won't have its builds automatically skipped.
352
+ */
353
+ skipIntermediateBuildsBranchFilter?: pulumi.Input<string>;
354
+ /**
355
+ * The string YAML steps to run the pipeline. Defaults to `buildkite-agent pipeline upload` if not specified.
356
+ */
357
+ steps?: pulumi.Input<string>;
358
+ tags?: pulumi.Input<pulumi.Input<string>[]>;
359
+ /**
360
+ * Set team access for the pipeline. Can be specified multiple times for each team. See Teams Configuration below for details.
361
+ */
362
+ teams?: pulumi.Input<pulumi.Input<inputs.Pipeline.PipelineTeam>[]>;
363
+ }
@@ -0,0 +1,186 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.Pipeline = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * ## # Resource: pipeline
10
+ *
11
+ * This resource allows you to create and manage pipelines for repositories.
12
+ *
13
+ * Buildkite Documentation: https://buildkite.com/docs/pipelines
14
+ *
15
+ * ## Example Usage
16
+ *
17
+ * ```typescript
18
+ * import * as pulumi from "@pulumi/pulumi";
19
+ * import * as buildkite from "@pulumiverse/buildkite";
20
+ * import * as fs from "fs";
21
+ *
22
+ * // in ./steps.yml:
23
+ * // steps:
24
+ * // - label: ':pipeline:'
25
+ * // command: buildkite-agent pipeline upload
26
+ * const repo2 = new buildkite.pipeline.Pipeline("repo2", {
27
+ * repository: "git@github.com:org/repo2",
28
+ * steps: fs.readFileSync("./steps.yml"),
29
+ * teams: [{
30
+ * slug: "everyone",
31
+ * accessLevel: "READ_ONLY",
32
+ * }],
33
+ * });
34
+ * ```
35
+ * ### With Command Timeouts
36
+ *
37
+ * ```typescript
38
+ * import * as pulumi from "@pulumi/pulumi";
39
+ * import * as buildkite from "@pulumiverse/buildkite";
40
+ * import * as fs from "fs";
41
+ *
42
+ * const testNew = new buildkite.pipeline.Pipeline("testNew", {
43
+ * repository: "https://github.com/buildkite/terraform-provider-buildkite.git",
44
+ * steps: fs.readFileSync("./deploy-steps.yml"),
45
+ * defaultTimeoutInMinutes: 60,
46
+ * maximumTimeoutInMinutes: 120,
47
+ * });
48
+ * ```
49
+ *
50
+ * Currently, the `defaultTimeoutInMinutes` and `maximumTimeoutInMinutes` will be retained in state even if removed from the configuration. In order to remove them, you must set them to `0` in either the configuration or the web UI.
51
+ * ### With Deletion Protection
52
+ *
53
+ * ```typescript
54
+ * import * as pulumi from "@pulumi/pulumi";
55
+ * import * as buildkite from "@pulumiverse/buildkite";
56
+ * import * as fs from "fs";
57
+ *
58
+ * const testNew = new buildkite.pipeline.Pipeline("testNew", {
59
+ * repository: "https://github.com/buildkite/terraform-provider-buildkite.git",
60
+ * steps: fs.readFileSync("./deploy-steps.yml"),
61
+ * deletionProtection: true,
62
+ * });
63
+ * ```
64
+ *
65
+ * `deletionProtection` will block `destroy` actions on the **pipeline**. Attached resources, such as `schedules` will still be destroyed.
66
+ * ### With GitHub Provider Settings
67
+ *
68
+ * ```typescript
69
+ * import * as pulumi from "@pulumi/pulumi";
70
+ * import * as buildkite from "@pulumiverse/buildkite";
71
+ * import * as fs from "fs";
72
+ *
73
+ * // Pipeline that should not be triggered from a GitHub webhook
74
+ * const repo2_deploy = new buildkite.pipeline.Pipeline("repo2-deploy", {
75
+ * repository: "git@github.com:org/repo2",
76
+ * steps: fs.readFileSync("./deploy-steps.yml"),
77
+ * providerSettings: {
78
+ * triggerMode: "none",
79
+ * },
80
+ * });
81
+ * // Release pipeline (triggered only when tags are pushed)
82
+ * const repo2_release = new buildkite.pipeline.Pipeline("repo2-release", {
83
+ * repository: "git@github.com:org/repo2",
84
+ * steps: fs.readFileSync("./release-steps.yml"),
85
+ * providerSettings: {
86
+ * buildBranches: false,
87
+ * buildTags: true,
88
+ * buildPullRequests: false,
89
+ * triggerMode: "code",
90
+ * },
91
+ * });
92
+ * ```
93
+ *
94
+ * ## Import
95
+ *
96
+ * Pipelines can be imported using the `GraphQL ID` (not UUID), e.g.
97
+ *
98
+ * ```sh
99
+ * $ pulumi import buildkite:Pipeline/pipeline:Pipeline fleet UGlwZWxpbmUtLS00MzVjYWQ1OC1lODFkLTQ1YWYtODYzNy1iMWNmODA3MDIzOGQ=
100
+ * ```
101
+ */
102
+ class Pipeline extends pulumi.CustomResource {
103
+ /**
104
+ * Get an existing Pipeline resource's state with the given name, ID, and optional extra
105
+ * properties used to qualify the lookup.
106
+ *
107
+ * @param name The _unique_ name of the resulting resource.
108
+ * @param id The _unique_ provider ID of the resource to lookup.
109
+ * @param state Any extra arguments used during the lookup.
110
+ * @param opts Optional settings to control the behavior of the CustomResource.
111
+ */
112
+ static get(name, id, state, opts) {
113
+ return new Pipeline(name, state, Object.assign(Object.assign({}, opts), { id: id }));
114
+ }
115
+ /**
116
+ * Returns true if the given object is an instance of Pipeline. This is designed to work even
117
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
118
+ */
119
+ static isInstance(obj) {
120
+ if (obj === undefined || obj === null) {
121
+ return false;
122
+ }
123
+ return obj['__pulumiType'] === Pipeline.__pulumiType;
124
+ }
125
+ constructor(name, argsOrState, opts) {
126
+ let resourceInputs = {};
127
+ opts = opts || {};
128
+ if (opts.id) {
129
+ const state = argsOrState;
130
+ resourceInputs["allowRebuilds"] = state ? state.allowRebuilds : undefined;
131
+ resourceInputs["badgeUrl"] = state ? state.badgeUrl : undefined;
132
+ resourceInputs["branchConfiguration"] = state ? state.branchConfiguration : undefined;
133
+ resourceInputs["cancelIntermediateBuilds"] = state ? state.cancelIntermediateBuilds : undefined;
134
+ resourceInputs["cancelIntermediateBuildsBranchFilter"] = state ? state.cancelIntermediateBuildsBranchFilter : undefined;
135
+ resourceInputs["clusterId"] = state ? state.clusterId : undefined;
136
+ resourceInputs["defaultBranch"] = state ? state.defaultBranch : undefined;
137
+ resourceInputs["defaultTimeoutInMinutes"] = state ? state.defaultTimeoutInMinutes : undefined;
138
+ resourceInputs["deletionProtection"] = state ? state.deletionProtection : undefined;
139
+ resourceInputs["description"] = state ? state.description : undefined;
140
+ resourceInputs["maximumTimeoutInMinutes"] = state ? state.maximumTimeoutInMinutes : undefined;
141
+ resourceInputs["name"] = state ? state.name : undefined;
142
+ resourceInputs["providerSettings"] = state ? state.providerSettings : undefined;
143
+ resourceInputs["repository"] = state ? state.repository : undefined;
144
+ resourceInputs["skipIntermediateBuilds"] = state ? state.skipIntermediateBuilds : undefined;
145
+ resourceInputs["skipIntermediateBuildsBranchFilter"] = state ? state.skipIntermediateBuildsBranchFilter : undefined;
146
+ resourceInputs["slug"] = state ? state.slug : undefined;
147
+ resourceInputs["steps"] = state ? state.steps : undefined;
148
+ resourceInputs["tags"] = state ? state.tags : undefined;
149
+ resourceInputs["teams"] = state ? state.teams : undefined;
150
+ resourceInputs["webhookUrl"] = state ? state.webhookUrl : undefined;
151
+ }
152
+ else {
153
+ const args = argsOrState;
154
+ if ((!args || args.repository === undefined) && !opts.urn) {
155
+ throw new Error("Missing required property 'repository'");
156
+ }
157
+ resourceInputs["allowRebuilds"] = args ? args.allowRebuilds : undefined;
158
+ resourceInputs["branchConfiguration"] = args ? args.branchConfiguration : undefined;
159
+ resourceInputs["cancelIntermediateBuilds"] = args ? args.cancelIntermediateBuilds : undefined;
160
+ resourceInputs["cancelIntermediateBuildsBranchFilter"] = args ? args.cancelIntermediateBuildsBranchFilter : undefined;
161
+ resourceInputs["clusterId"] = args ? args.clusterId : undefined;
162
+ resourceInputs["defaultBranch"] = args ? args.defaultBranch : undefined;
163
+ resourceInputs["defaultTimeoutInMinutes"] = args ? args.defaultTimeoutInMinutes : undefined;
164
+ resourceInputs["deletionProtection"] = args ? args.deletionProtection : undefined;
165
+ resourceInputs["description"] = args ? args.description : undefined;
166
+ resourceInputs["maximumTimeoutInMinutes"] = args ? args.maximumTimeoutInMinutes : undefined;
167
+ resourceInputs["name"] = args ? args.name : undefined;
168
+ resourceInputs["providerSettings"] = args ? args.providerSettings : undefined;
169
+ resourceInputs["repository"] = args ? args.repository : undefined;
170
+ resourceInputs["skipIntermediateBuilds"] = args ? args.skipIntermediateBuilds : undefined;
171
+ resourceInputs["skipIntermediateBuildsBranchFilter"] = args ? args.skipIntermediateBuildsBranchFilter : undefined;
172
+ resourceInputs["steps"] = args ? args.steps : undefined;
173
+ resourceInputs["tags"] = args ? args.tags : undefined;
174
+ resourceInputs["teams"] = args ? args.teams : undefined;
175
+ resourceInputs["badgeUrl"] = undefined /*out*/;
176
+ resourceInputs["slug"] = undefined /*out*/;
177
+ resourceInputs["webhookUrl"] = undefined /*out*/;
178
+ }
179
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
180
+ super(Pipeline.__pulumiType, name, resourceInputs, opts);
181
+ }
182
+ }
183
+ exports.Pipeline = Pipeline;
184
+ /** @internal */
185
+ Pipeline.__pulumiType = 'buildkite:Pipeline/pipeline:Pipeline';
186
+ //# sourceMappingURL=pipeline.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pipeline.js","sourceRoot":"","sources":["../../pipeline/pipeline.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6FG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAC/C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqB,EAAE,IAAmC;QACnH,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC/D,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC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