@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
package/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,110 @@
1
+ # Buildkite Resource Provider
2
+
3
+ [![](https://img.shields.io/github/license/pulumiverse/pulumi-buildkite?style=for-the-badge)](LICENSE)
4
+ [![](https://img.shields.io/github/actions/workflow/status/pulumiverse/pulumi-buildkite/verify.yml?style=for-the-badge)](https://github.com/pulumiverse/pulumi-buildkite/actions/workflows/verify.yml)
5
+ [![](https://img.shields.io/github/release-date/pulumiverse/pulumi-buildkite?style=for-the-badge)](https://github.com/pulumiverse/pulumi-buildkite/releases)
6
+ [![](https://img.shields.io/pypi/v/pulumiverse-buildkite?style=for-the-badge)](https://pypi.org/project/pulumiverse-buildkite/)
7
+ [![](https://img.shields.io/pypi/dm/pulumiverse-buildkite?style=for-the-badge)](https://pypi.org/project/pulumiverse-buildkite/)
8
+ [![](https://img.shields.io/nuget/v/Pulumiverse.Buildkite?style=for-the-badge)](https://www.nuget.org/packages/Pulumiverse.Buildkite/)
9
+ [![](https://img.shields.io/nuget/dt/Pulumiverse.Buildkite?style=for-the-badge)](https://www.nuget.org/packages/Pulumiverse.Buildkite/)
10
+ [![](https://img.shields.io/npm/v/@pulumiverse/pulumi-buildkite?style=for-the-badge)](https://www.npmjs.com/package/@pulumiverse/pulumi-buildkite)
11
+ [![](https://img.shields.io/npm/dm/@pulumiverse/pulumi-buildkite?style=for-the-badge)](https://www.npmjs.com/package/@pulumiverse/pulumi-buildkite)
12
+ [![](https://img.shields.io/github/all-contributors/pulumiverse/pulumi-buildkite?color=ee8449&style=for-the-badge)](#contributors)
13
+
14
+ The Buildkite Resource Provider lets you manage [Buildkite](http://buildkite.com) resources.
15
+
16
+ The provider is built on https://github.com/buildkite/terraform-provider-buildkite.
17
+
18
+ ## Installing
19
+
20
+ This package is available in many languages in the standard packaging formats.
21
+
22
+ ### Node.js (JavaScript/TypeScript)
23
+
24
+ To use from JavaScript or TypeScript in Node.js, install using either `npm`:
25
+
26
+ ```bash
27
+ npm install @pulumiverse/pulumi-buildkite
28
+ ```
29
+
30
+ or `yarn`:
31
+
32
+ ```bash
33
+ yarn add @pulumiverse/pulumi-buildkite
34
+ ```
35
+
36
+ ### Python
37
+
38
+ To use from Python, install using `pip`:
39
+
40
+ ```bash
41
+ pip install pulumiverse-buildkite
42
+ ```
43
+
44
+ ### Go
45
+
46
+ To use from Go, use `go get` to grab the latest version of the library:
47
+
48
+ ```bash
49
+ go get github.com/pulumiverse/pulumi-buildkite/sdk/go/...
50
+ ```
51
+
52
+ ### .NET
53
+
54
+ To use from .NET, install using `dotnet add package`:
55
+
56
+ ```bash
57
+ dotnet add package Pulumiverse.Buildkite
58
+ ```
59
+
60
+ ## Configuration
61
+
62
+ The following configuration points are available for the `buildkite` provider:
63
+
64
+ - `buildkite:api_token` (required, environment: `BUILDKITE_API_TOKEN`) - A Buildkite API Access Token. Must have GraphQL access, as well as the `write_pipelines` and `read_pipelines` scopes.
65
+ - `buildkite:organization` (required, environment: `BUILDKITE_ORGANIZATION`) - The Buildkite organization slug.
66
+ - `buildkite:graphql_url` (optional, environment: `BUILDKITE_GRAPHQL_URL`) - The Buildkite GraphQL URL.
67
+ - `buildkite:rest_url` (optional, environment: `BUILDKITE_REST_URL`) - The Buildkite REST URL.
68
+
69
+ ## Example
70
+
71
+ Example for *Typescript* to create a resource:
72
+
73
+ ```typescript
74
+ import * as buildkite from '@pulumiverse/pulumi-buildkite';
75
+
76
+ const args = {};
77
+ const vm = new buildkite.agent.AgentToken(
78
+ 'token',
79
+ args,
80
+ );
81
+ ```
82
+
83
+ ## Reference
84
+
85
+ For detailed reference documentation, please visit the upstream Terraform provider's documentation at: https://registry.terraform.io/providers/buildkite/buildkite/latest>
86
+
87
+ ## Contributors
88
+
89
+ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
90
+
91
+ <!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
92
+ <!-- prettier-ignore-start -->
93
+ <!-- markdownlint-disable -->
94
+ <table>
95
+ <tbody>
96
+ <tr>
97
+ <td align="center" valign="top" width="14.28%"><a href="https://github.com/muhlba91"><img src="https://avatars.githubusercontent.com/u/653739?v=4?s=100" width="100px;" alt="Daniel Mühlbachler-Pietrzykowski"/><br /><sub><b>Daniel Mühlbachler-Pietrzykowski</b></sub></a><br /><a href="#maintenance-muhlba91" title="Maintenance">🚧</a> <a href="https://github.com/pulumiverse/pulumi-buildkite/commits?author=muhlba91" title="Code">💻</a> <a href="https://github.com/pulumiverse/pulumi-buildkite/commits?author=muhlba91" title="Documentation">📖</a></td>
98
+ <td align="center" valign="top" width="14.28%"><a href="https://github.com/christophermaier"><img src="https://avatars.githubusercontent.com/u/207178?v=4?s=100" width="100px;" alt="Christopher Maier"/><br /><sub><b>Christopher Maier</b></sub></a><br /><a href="https://github.com/pulumiverse/pulumi-buildkite/commits?author=christophermaier" title="Code">💻</a> <a href="https://github.com/pulumiverse/pulumi-buildkite/commits?author=christophermaier" title="Documentation">📖</a></td>
99
+ <td align="center" valign="top" width="14.28%"><a href="https://github.com/susanev"><img src="https://avatars.githubusercontent.com/u/5489125?v=4?s=100" width="100px;" alt="Susan Evans"/><br /><sub><b>Susan Evans</b></sub></a><br /><a href="https://github.com/pulumiverse/pulumi-buildkite/commits?author=susanev" title="Documentation">📖</a></td>
100
+ <td align="center" valign="top" width="14.28%"><a href="https://github.com/stack72"><img src="https://avatars.githubusercontent.com/u/227823?v=4?s=100" width="100px;" alt="Paul Stack"/><br /><sub><b>Paul Stack</b></sub></a><br /><a href="https://github.com/pulumiverse/pulumi-buildkite/commits?author=stack72" title="Documentation">📖</a></td>
101
+ </tr>
102
+ </tbody>
103
+ </table>
104
+
105
+ <!-- markdownlint-restore -->
106
+ <!-- prettier-ignore-end -->
107
+
108
+ <!-- ALL-CONTRIBUTORS-LIST:END -->
109
+
110
+ This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
@@ -0,0 +1,94 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * ## # Resource: agentToken
4
+ *
5
+ * This resource allows you to create and manage agent tokens.
6
+ *
7
+ * Buildkite Documentation: https://buildkite.com/docs/agent/v3/tokens
8
+ *
9
+ * ## Example Usage
10
+ *
11
+ * ```typescript
12
+ * import * as pulumi from "@pulumi/pulumi";
13
+ * import * as buildkite from "@pulumiverse/buildkite";
14
+ *
15
+ * const fleet = new buildkite.agent.AgentToken("fleet", {description: "token used by build fleet"});
16
+ * ```
17
+ *
18
+ * ## Import
19
+ *
20
+ * Tokens can be imported using the `GraphQL ID` (not UUID), e.g.
21
+ *
22
+ * ```sh
23
+ * $ pulumi import buildkite:Agent/agentToken:AgentToken fleet QWdlbnRUb2tlbi0tLTQzNWNhZDU4LWU4MWQtNDVhZi04NjM3LWIxY2Y4MDcwMjM4ZA==
24
+ * ```
25
+ */
26
+ export declare class AgentToken extends pulumi.CustomResource {
27
+ /**
28
+ * Get an existing AgentToken resource's state with the given name, ID, and optional extra
29
+ * properties used to qualify the lookup.
30
+ *
31
+ * @param name The _unique_ name of the resulting resource.
32
+ * @param id The _unique_ provider ID of the resource to lookup.
33
+ * @param state Any extra arguments used during the lookup.
34
+ * @param opts Optional settings to control the behavior of the CustomResource.
35
+ */
36
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AgentTokenState, opts?: pulumi.CustomResourceOptions): AgentToken;
37
+ /**
38
+ * Returns true if the given object is an instance of AgentToken. This is designed to work even
39
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
40
+ */
41
+ static isInstance(obj: any): obj is AgentToken;
42
+ /**
43
+ * This is the description of the agent token.
44
+ *
45
+ * > Changing `description` will cause the resource to be destroyed and re-created.
46
+ */
47
+ readonly description: pulumi.Output<string | undefined>;
48
+ /**
49
+ * The value of the created agent token.
50
+ */
51
+ readonly token: pulumi.Output<string>;
52
+ /**
53
+ * The UUID of the token.
54
+ */
55
+ readonly uuid: pulumi.Output<string>;
56
+ /**
57
+ * Create a AgentToken resource with the given unique name, arguments, and options.
58
+ *
59
+ * @param name The _unique_ name of the resource.
60
+ * @param args The arguments to use to populate this resource's properties.
61
+ * @param opts A bag of options that control this resource's behavior.
62
+ */
63
+ constructor(name: string, args?: AgentTokenArgs, opts?: pulumi.CustomResourceOptions);
64
+ }
65
+ /**
66
+ * Input properties used for looking up and filtering AgentToken resources.
67
+ */
68
+ export interface AgentTokenState {
69
+ /**
70
+ * This is the description of the agent token.
71
+ *
72
+ * > Changing `description` will cause the resource to be destroyed and re-created.
73
+ */
74
+ description?: pulumi.Input<string>;
75
+ /**
76
+ * The value of the created agent token.
77
+ */
78
+ token?: pulumi.Input<string>;
79
+ /**
80
+ * The UUID of the token.
81
+ */
82
+ uuid?: pulumi.Input<string>;
83
+ }
84
+ /**
85
+ * The set of arguments for constructing a AgentToken resource.
86
+ */
87
+ export interface AgentTokenArgs {
88
+ /**
89
+ * This is the description of the agent token.
90
+ *
91
+ * > Changing `description` will cause the resource to be destroyed and re-created.
92
+ */
93
+ description?: pulumi.Input<string>;
94
+ }
@@ -0,0 +1,77 @@
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.AgentToken = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * ## # Resource: agentToken
10
+ *
11
+ * This resource allows you to create and manage agent tokens.
12
+ *
13
+ * Buildkite Documentation: https://buildkite.com/docs/agent/v3/tokens
14
+ *
15
+ * ## Example Usage
16
+ *
17
+ * ```typescript
18
+ * import * as pulumi from "@pulumi/pulumi";
19
+ * import * as buildkite from "@pulumiverse/buildkite";
20
+ *
21
+ * const fleet = new buildkite.agent.AgentToken("fleet", {description: "token used by build fleet"});
22
+ * ```
23
+ *
24
+ * ## Import
25
+ *
26
+ * Tokens can be imported using the `GraphQL ID` (not UUID), e.g.
27
+ *
28
+ * ```sh
29
+ * $ pulumi import buildkite:Agent/agentToken:AgentToken fleet QWdlbnRUb2tlbi0tLTQzNWNhZDU4LWU4MWQtNDVhZi04NjM3LWIxY2Y4MDcwMjM4ZA==
30
+ * ```
31
+ */
32
+ class AgentToken extends pulumi.CustomResource {
33
+ /**
34
+ * Get an existing AgentToken resource's state with the given name, ID, and optional extra
35
+ * properties used to qualify the lookup.
36
+ *
37
+ * @param name The _unique_ name of the resulting resource.
38
+ * @param id The _unique_ provider ID of the resource to lookup.
39
+ * @param state Any extra arguments used during the lookup.
40
+ * @param opts Optional settings to control the behavior of the CustomResource.
41
+ */
42
+ static get(name, id, state, opts) {
43
+ return new AgentToken(name, state, Object.assign(Object.assign({}, opts), { id: id }));
44
+ }
45
+ /**
46
+ * Returns true if the given object is an instance of AgentToken. This is designed to work even
47
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
48
+ */
49
+ static isInstance(obj) {
50
+ if (obj === undefined || obj === null) {
51
+ return false;
52
+ }
53
+ return obj['__pulumiType'] === AgentToken.__pulumiType;
54
+ }
55
+ constructor(name, argsOrState, opts) {
56
+ let resourceInputs = {};
57
+ opts = opts || {};
58
+ if (opts.id) {
59
+ const state = argsOrState;
60
+ resourceInputs["description"] = state ? state.description : undefined;
61
+ resourceInputs["token"] = state ? state.token : undefined;
62
+ resourceInputs["uuid"] = state ? state.uuid : undefined;
63
+ }
64
+ else {
65
+ const args = argsOrState;
66
+ resourceInputs["description"] = args ? args.description : undefined;
67
+ resourceInputs["token"] = undefined /*out*/;
68
+ resourceInputs["uuid"] = undefined /*out*/;
69
+ }
70
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
71
+ super(AgentToken.__pulumiType, name, resourceInputs, opts);
72
+ }
73
+ }
74
+ exports.AgentToken = AgentToken;
75
+ /** @internal */
76
+ AgentToken.__pulumiType = 'buildkite:Agent/agentToken:AgentToken';
77
+ //# sourceMappingURL=agentToken.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agentToken.js","sourceRoot":"","sources":["../../agent/agentToken.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuB,EAAE,IAAmC;QACrH,OAAO,IAAI,UAAU,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACjE,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,KAAK,UAAU,CAAC,YAAY,CAAC;IAC3D,CAAC;IAyBD,YAAY,IAAY,EAAE,WAA8C,EAAE,IAAmC;QACzG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA0C,CAAC;YACzD,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;SAC3D;aAAM;YACH,MAAM,IAAI,GAAG,WAAyC,CAAC;YACvD,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC5C,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC9C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,UAAU,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC/D,CAAC;;AAnEL,gCAoEC;AAtDG,gBAAgB;AACO,uBAAY,GAAG,uCAAuC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { AgentTokenArgs, AgentTokenState } from "./agentToken";
2
+ export type AgentToken = import("./agentToken").AgentToken;
3
+ export declare const AgentToken: typeof import("./agentToken").AgentToken;
package/agent/index.js ADDED
@@ -0,0 +1,22 @@
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.AgentToken = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ exports.AgentToken = null;
9
+ utilities.lazyLoad(exports, ["AgentToken"], () => require("./agentToken"));
10
+ const _module = {
11
+ version: utilities.getVersion(),
12
+ construct: (name, type, urn) => {
13
+ switch (type) {
14
+ case "buildkite:Agent/agentToken:AgentToken":
15
+ return new exports.AgentToken(name, undefined, { urn });
16
+ default:
17
+ throw new Error(`unknown resource type ${type}`);
18
+ }
19
+ },
20
+ };
21
+ pulumi.runtime.registerResourceModule("buildkite", "Agent/agentToken", _module);
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../agent/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAK7B,QAAA,UAAU,GAA6C,IAAW,CAAC;AAChF,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,YAAY,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC;AAG3E,MAAM,OAAO,GAAG;IACZ,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,SAAS,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAAmB,EAAE;QACpE,QAAQ,IAAI,EAAE;YACV,KAAK,uCAAuC;gBACxC,OAAO,IAAI,kBAAU,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACxD;gBACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACxD;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,WAAW,EAAE,kBAAkB,EAAE,OAAO,CAAC,CAAA"}
@@ -0,0 +1 @@
1
+ export * from "./vars";
@@ -0,0 +1,21 @@
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
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
17
+ };
18
+ Object.defineProperty(exports, "__esModule", { value: true });
19
+ // Export members:
20
+ __exportStar(require("./vars"), exports);
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../config/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;;;;;;;;;;;;;;AAEjF,kBAAkB;AAClB,yCAAuB"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * API token with GraphQL access and `write_pipelines, read_pipelines` scopes
3
+ */
4
+ export declare const apiToken: string | undefined;
5
+ /**
6
+ * Base URL for the GraphQL API to use
7
+ */
8
+ export declare const graphqlUrl: string | undefined;
9
+ /**
10
+ * The Buildkite organization slug
11
+ */
12
+ export declare const organization: string | undefined;
13
+ /**
14
+ * Base URL for the REST API to use
15
+ */
16
+ export declare const restUrl: string | undefined;
package/config/vars.js ADDED
@@ -0,0 +1,31 @@
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
+ const pulumi = require("@pulumi/pulumi");
6
+ const __config = new pulumi.Config("buildkite");
7
+ Object.defineProperty(exports, "apiToken", {
8
+ get() {
9
+ return __config.get("apiToken");
10
+ },
11
+ enumerable: true,
12
+ });
13
+ Object.defineProperty(exports, "graphqlUrl", {
14
+ get() {
15
+ return __config.get("graphqlUrl");
16
+ },
17
+ enumerable: true,
18
+ });
19
+ Object.defineProperty(exports, "organization", {
20
+ get() {
21
+ return __config.get("organization");
22
+ },
23
+ enumerable: true,
24
+ });
25
+ Object.defineProperty(exports, "restUrl", {
26
+ get() {
27
+ return __config.get("restUrl");
28
+ },
29
+ enumerable: true,
30
+ });
31
+ //# sourceMappingURL=vars.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vars.js","sourceRoot":"","sources":["../../config/vars.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAIzC,MAAM,QAAQ,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;AAMhD,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,UAAU,EAAE;IACvC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IACpC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE;IACzC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;IACtC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,cAAc,EAAE;IAC3C,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IACxC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,SAAS,EAAE;IACtC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IACnC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC"}
package/getMeta.d.ts ADDED
@@ -0,0 +1,15 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ export declare function getMeta(opts?: pulumi.InvokeOptions): Promise<GetMetaResult>;
3
+ /**
4
+ * A collection of values returned by getMeta.
5
+ */
6
+ export interface GetMetaResult {
7
+ /**
8
+ * The provider-assigned unique ID for this managed resource.
9
+ */
10
+ readonly id: string;
11
+ /**
12
+ * A list of strings, each one an IP address (x.x.x.x) or CIDR address (x.x.x.x/32) that Buildkite may use to send webhooks and other external requests.
13
+ */
14
+ readonly webhookIps: string[];
15
+ }
package/getMeta.js ADDED
@@ -0,0 +1,13 @@
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.getMeta = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ function getMeta(opts) {
9
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
10
+ return pulumi.runtime.invoke("buildkite:index/getMeta:getMeta", {}, opts);
11
+ }
12
+ exports.getMeta = getMeta;
13
+ //# sourceMappingURL=getMeta.js.map
package/getMeta.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getMeta.js","sourceRoot":"","sources":["../getMeta.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,SAAgB,OAAO,CAAC,IAA2B;IAE/C,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,iCAAiC,EAAE,EAC/D,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,0BAKC"}
package/index.d.ts ADDED
@@ -0,0 +1,12 @@
1
+ export { GetMetaResult } from "./getMeta";
2
+ export declare const getMeta: typeof import("./getMeta").getMeta;
3
+ export { ProviderArgs } from "./provider";
4
+ export type Provider = import("./provider").Provider;
5
+ export declare const Provider: typeof import("./provider").Provider;
6
+ import * as agent from "./agent";
7
+ import * as config from "./config";
8
+ import * as organization from "./organization";
9
+ import * as pipeline from "./pipeline";
10
+ import * as team from "./team";
11
+ import * as types from "./types";
12
+ export { agent, config, organization, pipeline, team, types, };