@pulumiverse/buildkite 3.1.6 → 3.2.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 (152) hide show
  1. package/agent/agentToken.d.ts +0 -2
  2. package/agent/agentToken.js +6 -8
  3. package/agent/agentToken.js.map +1 -1
  4. package/agent/index.js +1 -1
  5. package/agent/index.js.map +1 -1
  6. package/cluster/cluster.d.ts +4 -4
  7. package/cluster/cluster.js +15 -15
  8. package/cluster/cluster.js.map +1 -1
  9. package/cluster/clusterAgentToken.d.ts +5 -5
  10. package/cluster/clusterAgentToken.js +18 -18
  11. package/cluster/clusterAgentToken.js.map +1 -1
  12. package/cluster/clusterDefaultQueue.d.ts +15 -8
  13. package/cluster/clusterDefaultQueue.js +18 -17
  14. package/cluster/clusterDefaultQueue.js.map +1 -1
  15. package/cluster/clusterMaintainer.d.ts +159 -0
  16. package/cluster/clusterMaintainer.js +107 -0
  17. package/cluster/clusterMaintainer.js.map +1 -0
  18. package/cluster/clusterQueue.d.ts +64 -4
  19. package/cluster/clusterQueue.js +44 -16
  20. package/cluster/clusterQueue.js.map +1 -1
  21. package/cluster/clusterSecret.d.ts +148 -0
  22. package/cluster/clusterSecret.js +108 -0
  23. package/cluster/clusterSecret.js.map +1 -0
  24. package/cluster/getCluster.d.ts +12 -9
  25. package/cluster/getCluster.js +11 -10
  26. package/cluster/getCluster.js.map +1 -1
  27. package/cluster/getClusters.d.ts +22 -0
  28. package/cluster/getClusters.js +26 -0
  29. package/cluster/getClusters.js.map +1 -0
  30. package/cluster/index.d.ts +9 -0
  31. package/cluster/index.js +15 -2
  32. package/cluster/index.js.map +1 -1
  33. package/config/index.js +1 -1
  34. package/config/index.js.map +1 -1
  35. package/config/vars.d.ts +7 -6
  36. package/config/vars.js +7 -1
  37. package/config/vars.js.map +1 -1
  38. package/getMeta.d.ts +21 -19
  39. package/getMeta.js +23 -20
  40. package/getMeta.js.map +1 -1
  41. package/index.d.ts +1 -3
  42. package/index.js +19 -5
  43. package/index.js.map +1 -1
  44. package/organization/banner.d.ts +2 -4
  45. package/organization/banner.js +8 -10
  46. package/organization/banner.js.map +1 -1
  47. package/organization/getMember.d.ts +94 -0
  48. package/organization/getMember.js +74 -0
  49. package/organization/getMember.js.map +1 -0
  50. package/organization/getMembers.d.ts +40 -0
  51. package/organization/getMembers.js +44 -0
  52. package/organization/getMembers.js.map +1 -0
  53. package/organization/getOrganization.d.ts +1 -1
  54. package/organization/getOrganization.js +3 -2
  55. package/organization/getOrganization.js.map +1 -1
  56. package/organization/getPortal.d.ts +95 -0
  57. package/organization/getPortal.js +50 -0
  58. package/organization/getPortal.js.map +1 -0
  59. package/organization/getPortals.d.ts +40 -0
  60. package/organization/getPortals.js +44 -0
  61. package/organization/getPortals.js.map +1 -0
  62. package/organization/getRegistry.d.ts +78 -0
  63. package/organization/getRegistry.js +34 -0
  64. package/organization/getRegistry.js.map +1 -0
  65. package/organization/getRule.d.ts +124 -0
  66. package/organization/getRule.js +72 -0
  67. package/organization/getRule.js.map +1 -0
  68. package/organization/index.d.ts +27 -0
  69. package/organization/index.js +35 -2
  70. package/organization/index.js.map +1 -1
  71. package/organization/organization.d.ts +3 -3
  72. package/organization/organization.js +10 -10
  73. package/organization/organization.js.map +1 -1
  74. package/organization/portal.d.ts +217 -0
  75. package/organization/portal.js +150 -0
  76. package/organization/portal.js.map +1 -0
  77. package/organization/registry.d.ts +161 -0
  78. package/organization/registry.js +87 -0
  79. package/organization/registry.js.map +1 -0
  80. package/organization/rule.d.ts +267 -0
  81. package/organization/rule.js +212 -0
  82. package/organization/rule.js.map +1 -0
  83. package/package.json +2 -1
  84. package/pipeline/getPipeline.d.ts +11 -7
  85. package/pipeline/getPipeline.js +7 -8
  86. package/pipeline/getPipeline.js.map +1 -1
  87. package/pipeline/getSignedSteps.d.ts +8 -49
  88. package/pipeline/getSignedSteps.js +13 -50
  89. package/pipeline/getSignedSteps.js.map +1 -1
  90. package/pipeline/getTemplate.d.ts +9 -11
  91. package/pipeline/getTemplate.js +15 -12
  92. package/pipeline/getTemplate.js.map +1 -1
  93. package/pipeline/index.d.ts +3 -0
  94. package/pipeline/index.js +7 -2
  95. package/pipeline/index.js.map +1 -1
  96. package/pipeline/pipeline.d.ts +30 -14
  97. package/pipeline/pipeline.js +54 -48
  98. package/pipeline/pipeline.js.map +1 -1
  99. package/pipeline/schedule.d.ts +8 -7
  100. package/pipeline/schedule.js +31 -30
  101. package/pipeline/schedule.js.map +1 -1
  102. package/pipeline/team.d.ts +8 -6
  103. package/pipeline/team.js +20 -18
  104. package/pipeline/team.js.map +1 -1
  105. package/pipeline/template.d.ts +11 -11
  106. package/pipeline/template.js +23 -23
  107. package/pipeline/template.js.map +1 -1
  108. package/pipeline/webhook.d.ts +120 -0
  109. package/pipeline/webhook.js +111 -0
  110. package/pipeline/webhook.js.map +1 -0
  111. package/provider.d.ts +24 -24
  112. package/provider.js +16 -7
  113. package/provider.js.map +1 -1
  114. package/team/getTeam.d.ts +21 -9
  115. package/team/getTeam.js +11 -10
  116. package/team/getTeam.js.map +1 -1
  117. package/team/getTeams.d.ts +22 -0
  118. package/team/getTeams.js +26 -0
  119. package/team/getTeams.js.map +1 -0
  120. package/team/index.d.ts +3 -0
  121. package/team/index.js +5 -2
  122. package/team/index.js.map +1 -1
  123. package/team/member.d.ts +4 -5
  124. package/team/member.js +16 -17
  125. package/team/member.js.map +1 -1
  126. package/team/team.d.ts +54 -7
  127. package/team/team.js +32 -25
  128. package/team/team.js.map +1 -1
  129. package/testsuite/getTestSuite.d.ts +90 -0
  130. package/testsuite/getTestSuite.js +66 -0
  131. package/testsuite/getTestSuite.js.map +1 -0
  132. package/testsuite/index.d.ts +3 -0
  133. package/testsuite/index.js +5 -2
  134. package/testsuite/index.js.map +1 -1
  135. package/testsuite/team.d.ts +4 -5
  136. package/testsuite/team.js +16 -17
  137. package/testsuite/team.js.map +1 -1
  138. package/testsuite/testSuite.d.ts +50 -2
  139. package/testsuite/testSuite.js +53 -15
  140. package/testsuite/testSuite.js.map +1 -1
  141. package/types/index.js +1 -1
  142. package/types/index.js.map +1 -1
  143. package/types/input.d.ts +81 -5
  144. package/types/input.js +1 -1
  145. package/types/input.js.map +1 -1
  146. package/types/output.d.ts +323 -5
  147. package/types/output.js +1 -1
  148. package/types/output.js.map +1 -1
  149. package/utilities.d.ts +0 -4
  150. package/utilities.js +20 -30
  151. package/utilities.js.map +1 -1
  152. package/package.json.bak +0 -28
@@ -0,0 +1,148 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * ## Example Usage
4
+ *
5
+ * ```typescript
6
+ * import * as pulumi from "@pulumi/pulumi";
7
+ * import * as buildkite from "@pulumiverse/buildkite";
8
+ *
9
+ * const example = new buildkite.cluster.ClusterSecret("example", {
10
+ * clusterId: "01234567-89ab-cdef-0123-456789abcdef",
11
+ * key: "DATABASE_PASSWORD",
12
+ * value: "super-secret-password",
13
+ * description: "Production database password",
14
+ * policy: `- pipeline_slug: my-pipeline
15
+ * build_branch: main
16
+ * `,
17
+ * });
18
+ * ```
19
+ *
20
+ * ## Import
21
+ *
22
+ * Using `pulumi import`, import resources using the `id`. For example:
23
+ *
24
+ * Import a cluster secret using {cluster_id}/{secret_id}
25
+ *
26
+ * You can find the cluster_id under cluster settings in the UI
27
+ *
28
+ * and find the secret_id from the secrets list using the
29
+ *
30
+ * REST API response from:
31
+ *
32
+ * GET /v2/organizations/{org_slug}/clusters/{cluster_id}/secrets
33
+ *
34
+ * ```sh
35
+ * $ pulumi import buildkite:Cluster/clusterSecret:ClusterSecret example 01234567-89ab-cdef-0123-456789abcdef/fedcba98-7654-3210-fedc-ba9876543210
36
+ * ```
37
+ */
38
+ export declare class ClusterSecret extends pulumi.CustomResource {
39
+ /**
40
+ * Get an existing ClusterSecret resource's state with the given name, ID, and optional extra
41
+ * properties used to qualify the lookup.
42
+ *
43
+ * @param name The _unique_ name of the resulting resource.
44
+ * @param id The _unique_ provider ID of the resource to lookup.
45
+ * @param state Any extra arguments used during the lookup.
46
+ * @param opts Optional settings to control the behavior of the CustomResource.
47
+ */
48
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ClusterSecretState, opts?: pulumi.CustomResourceOptions): ClusterSecret;
49
+ /**
50
+ * Returns true if the given object is an instance of ClusterSecret. This is designed to work even
51
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
52
+ */
53
+ static isInstance(obj: any): obj is ClusterSecret;
54
+ /**
55
+ * The UUID of the cluster this secret belongs to.
56
+ */
57
+ readonly clusterId: pulumi.Output<string>;
58
+ /**
59
+ * The time when the secret was created.
60
+ */
61
+ readonly createdAt: pulumi.Output<string>;
62
+ /**
63
+ * A description of what this secret is for.
64
+ */
65
+ readonly description: pulumi.Output<string | undefined>;
66
+ /**
67
+ * The key name for the secret. Must start with a letter and only contain letters, numbers, and underscores. Maximum 255 characters.
68
+ */
69
+ readonly key: pulumi.Output<string>;
70
+ /**
71
+ * YAML access policy defining which pipelines and branches can access this secret.
72
+ */
73
+ readonly policy: pulumi.Output<string | undefined>;
74
+ /**
75
+ * The time when the secret was last updated.
76
+ */
77
+ readonly updatedAt: pulumi.Output<string>;
78
+ /**
79
+ * The secret value. Must be less than 8KB.
80
+ */
81
+ readonly value: pulumi.Output<string>;
82
+ /**
83
+ * Create a ClusterSecret resource with the given unique name, arguments, and options.
84
+ *
85
+ * @param name The _unique_ name of the resource.
86
+ * @param args The arguments to use to populate this resource's properties.
87
+ * @param opts A bag of options that control this resource's behavior.
88
+ */
89
+ constructor(name: string, args: ClusterSecretArgs, opts?: pulumi.CustomResourceOptions);
90
+ }
91
+ /**
92
+ * Input properties used for looking up and filtering ClusterSecret resources.
93
+ */
94
+ export interface ClusterSecretState {
95
+ /**
96
+ * The UUID of the cluster this secret belongs to.
97
+ */
98
+ clusterId?: pulumi.Input<string>;
99
+ /**
100
+ * The time when the secret was created.
101
+ */
102
+ createdAt?: pulumi.Input<string>;
103
+ /**
104
+ * A description of what this secret is for.
105
+ */
106
+ description?: pulumi.Input<string>;
107
+ /**
108
+ * The key name for the secret. Must start with a letter and only contain letters, numbers, and underscores. Maximum 255 characters.
109
+ */
110
+ key?: pulumi.Input<string>;
111
+ /**
112
+ * YAML access policy defining which pipelines and branches can access this secret.
113
+ */
114
+ policy?: pulumi.Input<string>;
115
+ /**
116
+ * The time when the secret was last updated.
117
+ */
118
+ updatedAt?: pulumi.Input<string>;
119
+ /**
120
+ * The secret value. Must be less than 8KB.
121
+ */
122
+ value?: pulumi.Input<string>;
123
+ }
124
+ /**
125
+ * The set of arguments for constructing a ClusterSecret resource.
126
+ */
127
+ export interface ClusterSecretArgs {
128
+ /**
129
+ * The UUID of the cluster this secret belongs to.
130
+ */
131
+ clusterId: pulumi.Input<string>;
132
+ /**
133
+ * A description of what this secret is for.
134
+ */
135
+ description?: pulumi.Input<string>;
136
+ /**
137
+ * The key name for the secret. Must start with a letter and only contain letters, numbers, and underscores. Maximum 255 characters.
138
+ */
139
+ key: pulumi.Input<string>;
140
+ /**
141
+ * YAML access policy defining which pipelines and branches can access this secret.
142
+ */
143
+ policy?: pulumi.Input<string>;
144
+ /**
145
+ * The secret value. Must be less than 8KB.
146
+ */
147
+ value: pulumi.Input<string>;
148
+ }
@@ -0,0 +1,108 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
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.ClusterSecret = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * ## Example Usage
10
+ *
11
+ * ```typescript
12
+ * import * as pulumi from "@pulumi/pulumi";
13
+ * import * as buildkite from "@pulumiverse/buildkite";
14
+ *
15
+ * const example = new buildkite.cluster.ClusterSecret("example", {
16
+ * clusterId: "01234567-89ab-cdef-0123-456789abcdef",
17
+ * key: "DATABASE_PASSWORD",
18
+ * value: "super-secret-password",
19
+ * description: "Production database password",
20
+ * policy: `- pipeline_slug: my-pipeline
21
+ * build_branch: main
22
+ * `,
23
+ * });
24
+ * ```
25
+ *
26
+ * ## Import
27
+ *
28
+ * Using `pulumi import`, import resources using the `id`. For example:
29
+ *
30
+ * Import a cluster secret using {cluster_id}/{secret_id}
31
+ *
32
+ * You can find the cluster_id under cluster settings in the UI
33
+ *
34
+ * and find the secret_id from the secrets list using the
35
+ *
36
+ * REST API response from:
37
+ *
38
+ * GET /v2/organizations/{org_slug}/clusters/{cluster_id}/secrets
39
+ *
40
+ * ```sh
41
+ * $ pulumi import buildkite:Cluster/clusterSecret:ClusterSecret example 01234567-89ab-cdef-0123-456789abcdef/fedcba98-7654-3210-fedc-ba9876543210
42
+ * ```
43
+ */
44
+ class ClusterSecret extends pulumi.CustomResource {
45
+ /**
46
+ * Get an existing ClusterSecret resource's state with the given name, ID, and optional extra
47
+ * properties used to qualify the lookup.
48
+ *
49
+ * @param name The _unique_ name of the resulting resource.
50
+ * @param id The _unique_ provider ID of the resource to lookup.
51
+ * @param state Any extra arguments used during the lookup.
52
+ * @param opts Optional settings to control the behavior of the CustomResource.
53
+ */
54
+ static get(name, id, state, opts) {
55
+ return new ClusterSecret(name, state, { ...opts, id: id });
56
+ }
57
+ /**
58
+ * Returns true if the given object is an instance of ClusterSecret. This is designed to work even
59
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
60
+ */
61
+ static isInstance(obj) {
62
+ if (obj === undefined || obj === null) {
63
+ return false;
64
+ }
65
+ return obj['__pulumiType'] === ClusterSecret.__pulumiType;
66
+ }
67
+ constructor(name, argsOrState, opts) {
68
+ let resourceInputs = {};
69
+ opts = opts || {};
70
+ if (opts.id) {
71
+ const state = argsOrState;
72
+ resourceInputs["clusterId"] = state?.clusterId;
73
+ resourceInputs["createdAt"] = state?.createdAt;
74
+ resourceInputs["description"] = state?.description;
75
+ resourceInputs["key"] = state?.key;
76
+ resourceInputs["policy"] = state?.policy;
77
+ resourceInputs["updatedAt"] = state?.updatedAt;
78
+ resourceInputs["value"] = state?.value;
79
+ }
80
+ else {
81
+ const args = argsOrState;
82
+ if (args?.clusterId === undefined && !opts.urn) {
83
+ throw new Error("Missing required property 'clusterId'");
84
+ }
85
+ if (args?.key === undefined && !opts.urn) {
86
+ throw new Error("Missing required property 'key'");
87
+ }
88
+ if (args?.value === undefined && !opts.urn) {
89
+ throw new Error("Missing required property 'value'");
90
+ }
91
+ resourceInputs["clusterId"] = args?.clusterId;
92
+ resourceInputs["description"] = args?.description;
93
+ resourceInputs["key"] = args?.key;
94
+ resourceInputs["policy"] = args?.policy;
95
+ resourceInputs["value"] = args?.value ? pulumi.secret(args.value) : undefined;
96
+ resourceInputs["createdAt"] = undefined /*out*/;
97
+ resourceInputs["updatedAt"] = undefined /*out*/;
98
+ }
99
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
100
+ const secretOpts = { additionalSecretOutputs: ["value"] };
101
+ opts = pulumi.mergeOptions(opts, secretOpts);
102
+ super(ClusterSecret.__pulumiType, name, resourceInputs, opts);
103
+ }
104
+ }
105
+ exports.ClusterSecret = ClusterSecret;
106
+ /** @internal */
107
+ ClusterSecret.__pulumiType = 'buildkite:Cluster/clusterSecret:ClusterSecret';
108
+ //# sourceMappingURL=clusterSecret.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clusterSecret.js","sourceRoot":"","sources":["../../cluster/clusterSecret.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,MAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;IACpD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA0B,EAAE,IAAmC;QACxH,OAAO,IAAI,aAAa,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE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AS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACxC,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC;aACxD;YACD,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;YAC9C,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,KAAK,CAAC,GAAG,IAAI,EAAE,GAAG,CAAC;YAClC,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9E,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACnD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;QAC1D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,aAAa,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAClE,CAAC;;AApGL,sCAqGC;AAvFG,gBAAgB;AACO,0BAAY,GAAG,+CAA+C,CAAC"}
@@ -1,25 +1,25 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
+ import * as outputs from "../types/output";
2
3
  /**
3
4
  * Use this data source to retrieve a cluster by name. You can find out more about clusters in the Buildkite [documentation](https://buildkite.com/docs/clusters/overview).
4
5
  *
5
6
  * ## Example Usage
6
7
  *
7
- * <!--Start PulumiCodeChooser -->
8
8
  * ```typescript
9
9
  * import * as pulumi from "@pulumi/pulumi";
10
- * import * as buildkite from "@pulumi/buildkite";
11
10
  * import * as buildkite from "@pulumiverse/buildkite";
12
11
  *
13
- * const default = buildkite.Cluster.getCluster({
12
+ * // Find the "default" cluster
13
+ * const _default = buildkite.Cluster.getCluster({
14
14
  * name: "default",
15
15
  * });
16
16
  * // Assign a pipeline to that cluster
17
17
  * const terraform_provider_buildkite = new buildkite.pipeline.Pipeline("terraform-provider-buildkite", {
18
+ * name: "terraform-provider-buildkite",
18
19
  * repository: "git@github.com:buildkite/terraform-provider-buildkite.git",
19
20
  * clusterId: _default.then(_default => _default.id),
20
21
  * });
21
22
  * ```
22
- * <!--End PulumiCodeChooser -->
23
23
  */
24
24
  export declare function getCluster(args: GetClusterArgs, opts?: pulumi.InvokeOptions): Promise<GetClusterResult>;
25
25
  /**
@@ -51,6 +51,10 @@ export interface GetClusterResult {
51
51
  * The GraphQL ID of the cluster.
52
52
  */
53
53
  readonly id: string;
54
+ /**
55
+ * List of maintainers (users and teams) for this cluster.
56
+ */
57
+ readonly maintainers: outputs.Cluster.GetClusterMaintainer[];
54
58
  /**
55
59
  * The name of the cluster to retrieve.
56
60
  */
@@ -65,24 +69,23 @@ export interface GetClusterResult {
65
69
  *
66
70
  * ## Example Usage
67
71
  *
68
- * <!--Start PulumiCodeChooser -->
69
72
  * ```typescript
70
73
  * import * as pulumi from "@pulumi/pulumi";
71
- * import * as buildkite from "@pulumi/buildkite";
72
74
  * import * as buildkite from "@pulumiverse/buildkite";
73
75
  *
74
- * const default = buildkite.Cluster.getCluster({
76
+ * // Find the "default" cluster
77
+ * const _default = buildkite.Cluster.getCluster({
75
78
  * name: "default",
76
79
  * });
77
80
  * // Assign a pipeline to that cluster
78
81
  * const terraform_provider_buildkite = new buildkite.pipeline.Pipeline("terraform-provider-buildkite", {
82
+ * name: "terraform-provider-buildkite",
79
83
  * repository: "git@github.com:buildkite/terraform-provider-buildkite.git",
80
84
  * clusterId: _default.then(_default => _default.id),
81
85
  * });
82
86
  * ```
83
- * <!--End PulumiCodeChooser -->
84
87
  */
85
- export declare function getClusterOutput(args: GetClusterOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetClusterResult>;
88
+ export declare function getClusterOutput(args: GetClusterOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetClusterResult>;
86
89
  /**
87
90
  * A collection of arguments for invoking getCluster.
88
91
  */
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
3
  // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.getClusterOutput = exports.getCluster = void 0;
@@ -10,22 +10,21 @@ const utilities = require("../utilities");
10
10
  *
11
11
  * ## Example Usage
12
12
  *
13
- * <!--Start PulumiCodeChooser -->
14
13
  * ```typescript
15
14
  * import * as pulumi from "@pulumi/pulumi";
16
- * import * as buildkite from "@pulumi/buildkite";
17
15
  * import * as buildkite from "@pulumiverse/buildkite";
18
16
  *
19
- * const default = buildkite.Cluster.getCluster({
17
+ * // Find the "default" cluster
18
+ * const _default = buildkite.Cluster.getCluster({
20
19
  * name: "default",
21
20
  * });
22
21
  * // Assign a pipeline to that cluster
23
22
  * const terraform_provider_buildkite = new buildkite.pipeline.Pipeline("terraform-provider-buildkite", {
23
+ * name: "terraform-provider-buildkite",
24
24
  * repository: "git@github.com:buildkite/terraform-provider-buildkite.git",
25
25
  * clusterId: _default.then(_default => _default.id),
26
26
  * });
27
27
  * ```
28
- * <!--End PulumiCodeChooser -->
29
28
  */
30
29
  function getCluster(args, opts) {
31
30
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
@@ -39,25 +38,27 @@ exports.getCluster = getCluster;
39
38
  *
40
39
  * ## Example Usage
41
40
  *
42
- * <!--Start PulumiCodeChooser -->
43
41
  * ```typescript
44
42
  * import * as pulumi from "@pulumi/pulumi";
45
- * import * as buildkite from "@pulumi/buildkite";
46
43
  * import * as buildkite from "@pulumiverse/buildkite";
47
44
  *
48
- * const default = buildkite.Cluster.getCluster({
45
+ * // Find the "default" cluster
46
+ * const _default = buildkite.Cluster.getCluster({
49
47
  * name: "default",
50
48
  * });
51
49
  * // Assign a pipeline to that cluster
52
50
  * const terraform_provider_buildkite = new buildkite.pipeline.Pipeline("terraform-provider-buildkite", {
51
+ * name: "terraform-provider-buildkite",
53
52
  * repository: "git@github.com:buildkite/terraform-provider-buildkite.git",
54
53
  * clusterId: _default.then(_default => _default.id),
55
54
  * });
56
55
  * ```
57
- * <!--End PulumiCodeChooser -->
58
56
  */
59
57
  function getClusterOutput(args, opts) {
60
- return pulumi.output(args).apply((a) => getCluster(a, opts));
58
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
59
+ return pulumi.runtime.invokeOutput("buildkite:Cluster/getCluster:getCluster", {
60
+ "name": args.name,
61
+ }, opts);
61
62
  }
62
63
  exports.getClusterOutput = getClusterOutput;
63
64
  //# sourceMappingURL=getCluster.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getCluster.js","sourceRoot":"","sources":["../../cluster/getCluster.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,SAAgB,UAAU,CAAC,IAAoB,EAAE,IAA2B;IAExE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,yCAAyC,EAAE;QACpE,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,gCAMC;AAyCD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,SAAgB,gBAAgB,CAAC,IAA0B,EAAE,IAA2B;IACpF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,UAAU,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACrE,CAAC;AAFD,4CAEC"}
1
+ {"version":3,"file":"getCluster.js","sourceRoot":"","sources":["../../cluster/getCluster.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,SAAgB,UAAU,CAAC,IAAoB,EAAE,IAA2B;IACxE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,yCAAyC,EAAE;QACpE,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,gCAKC;AA6CD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,SAAgB,gBAAgB,CAAC,IAA0B,EAAE,IAAiC;IAC1F,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,yCAAyC,EAAE;QAC1E,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,4CAKC"}
@@ -0,0 +1,22 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as outputs from "../types/output";
3
+ /**
4
+ * Use this data source to retrieve clusters of an organization. You can find out more about clusters in the Buildkite
5
+ * [documentation](https://buildkite.com/docs/agent/v3/clusters).
6
+ */
7
+ export declare function getClusters(opts?: pulumi.InvokeOptions): Promise<GetClustersResult>;
8
+ /**
9
+ * A collection of values returned by getClusters.
10
+ */
11
+ export interface GetClustersResult {
12
+ readonly clusters: outputs.Cluster.GetClustersCluster[];
13
+ /**
14
+ * The provider-assigned unique ID for this managed resource.
15
+ */
16
+ readonly id: string;
17
+ }
18
+ /**
19
+ * Use this data source to retrieve clusters of an organization. You can find out more about clusters in the Buildkite
20
+ * [documentation](https://buildkite.com/docs/agent/v3/clusters).
21
+ */
22
+ export declare function getClustersOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetClustersResult>;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
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.getClustersOutput = exports.getClusters = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Use this data source to retrieve clusters of an organization. You can find out more about clusters in the Buildkite
10
+ * [documentation](https://buildkite.com/docs/agent/v3/clusters).
11
+ */
12
+ function getClusters(opts) {
13
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
14
+ return pulumi.runtime.invoke("buildkite:Cluster/getClusters:getClusters", {}, opts);
15
+ }
16
+ exports.getClusters = getClusters;
17
+ /**
18
+ * Use this data source to retrieve clusters of an organization. You can find out more about clusters in the Buildkite
19
+ * [documentation](https://buildkite.com/docs/agent/v3/clusters).
20
+ */
21
+ function getClustersOutput(opts) {
22
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
23
+ return pulumi.runtime.invokeOutput("buildkite:Cluster/getClusters:getClusters", {}, opts);
24
+ }
25
+ exports.getClustersOutput = getClustersOutput;
26
+ //# sourceMappingURL=getClusters.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getClusters.js","sourceRoot":"","sources":["../../cluster/getClusters.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;GAGG;AACH,SAAgB,WAAW,CAAC,IAA2B;IACnD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,2CAA2C,EAAE,EACzE,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAJD,kCAIC;AAYD;;;GAGG;AACH,SAAgB,iBAAiB,CAAC,IAAiC;IAC/D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,2CAA2C,EAAE,EAC/E,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAJD,8CAIC"}
@@ -7,9 +7,18 @@ export declare const ClusterAgentToken: typeof import("./clusterAgentToken").Clu
7
7
  export { ClusterDefaultQueueArgs, ClusterDefaultQueueState } from "./clusterDefaultQueue";
8
8
  export type ClusterDefaultQueue = import("./clusterDefaultQueue").ClusterDefaultQueue;
9
9
  export declare const ClusterDefaultQueue: typeof import("./clusterDefaultQueue").ClusterDefaultQueue;
10
+ export { ClusterMaintainerArgs, ClusterMaintainerState } from "./clusterMaintainer";
11
+ export type ClusterMaintainer = import("./clusterMaintainer").ClusterMaintainer;
12
+ export declare const ClusterMaintainer: typeof import("./clusterMaintainer").ClusterMaintainer;
10
13
  export { ClusterQueueArgs, ClusterQueueState } from "./clusterQueue";
11
14
  export type ClusterQueue = import("./clusterQueue").ClusterQueue;
12
15
  export declare const ClusterQueue: typeof import("./clusterQueue").ClusterQueue;
16
+ export { ClusterSecretArgs, ClusterSecretState } from "./clusterSecret";
17
+ export type ClusterSecret = import("./clusterSecret").ClusterSecret;
18
+ export declare const ClusterSecret: typeof import("./clusterSecret").ClusterSecret;
13
19
  export { GetClusterArgs, GetClusterResult, GetClusterOutputArgs } from "./getCluster";
14
20
  export declare const getCluster: typeof import("./getCluster").getCluster;
15
21
  export declare const getClusterOutput: typeof import("./getCluster").getClusterOutput;
22
+ export { GetClustersResult } from "./getClusters";
23
+ export declare const getClusters: typeof import("./getClusters").getClusters;
24
+ export declare const getClustersOutput: typeof import("./getClusters").getClustersOutput;
package/cluster/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
- // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
3
  // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.getClusterOutput = exports.getCluster = exports.ClusterQueue = exports.ClusterDefaultQueue = exports.ClusterAgentToken = exports.Cluster = void 0;
5
+ exports.getClustersOutput = exports.getClusters = exports.getClusterOutput = exports.getCluster = exports.ClusterSecret = exports.ClusterQueue = exports.ClusterMaintainer = exports.ClusterDefaultQueue = exports.ClusterAgentToken = exports.Cluster = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("../utilities");
8
8
  exports.Cluster = null;
@@ -11,11 +11,18 @@ exports.ClusterAgentToken = null;
11
11
  utilities.lazyLoad(exports, ["ClusterAgentToken"], () => require("./clusterAgentToken"));
12
12
  exports.ClusterDefaultQueue = null;
13
13
  utilities.lazyLoad(exports, ["ClusterDefaultQueue"], () => require("./clusterDefaultQueue"));
14
+ exports.ClusterMaintainer = null;
15
+ utilities.lazyLoad(exports, ["ClusterMaintainer"], () => require("./clusterMaintainer"));
14
16
  exports.ClusterQueue = null;
15
17
  utilities.lazyLoad(exports, ["ClusterQueue"], () => require("./clusterQueue"));
18
+ exports.ClusterSecret = null;
19
+ utilities.lazyLoad(exports, ["ClusterSecret"], () => require("./clusterSecret"));
16
20
  exports.getCluster = null;
17
21
  exports.getClusterOutput = null;
18
22
  utilities.lazyLoad(exports, ["getCluster", "getClusterOutput"], () => require("./getCluster"));
23
+ exports.getClusters = null;
24
+ exports.getClustersOutput = null;
25
+ utilities.lazyLoad(exports, ["getClusters", "getClustersOutput"], () => require("./getClusters"));
19
26
  const _module = {
20
27
  version: utilities.getVersion(),
21
28
  construct: (name, type, urn) => {
@@ -26,8 +33,12 @@ const _module = {
26
33
  return new exports.ClusterAgentToken(name, undefined, { urn });
27
34
  case "buildkite:Cluster/clusterDefaultQueue:ClusterDefaultQueue":
28
35
  return new exports.ClusterDefaultQueue(name, undefined, { urn });
36
+ case "buildkite:Cluster/clusterMaintainer:ClusterMaintainer":
37
+ return new exports.ClusterMaintainer(name, undefined, { urn });
29
38
  case "buildkite:Cluster/clusterQueue:ClusterQueue":
30
39
  return new exports.ClusterQueue(name, undefined, { urn });
40
+ case "buildkite:Cluster/clusterSecret:ClusterSecret":
41
+ return new exports.ClusterSecret(name, undefined, { urn });
31
42
  default:
32
43
  throw new Error(`unknown resource type ${type}`);
33
44
  }
@@ -36,5 +47,7 @@ const _module = {
36
47
  pulumi.runtime.registerResourceModule("buildkite", "Cluster/cluster", _module);
37
48
  pulumi.runtime.registerResourceModule("buildkite", "Cluster/clusterAgentToken", _module);
38
49
  pulumi.runtime.registerResourceModule("buildkite", "Cluster/clusterDefaultQueue", _module);
50
+ pulumi.runtime.registerResourceModule("buildkite", "Cluster/clusterMaintainer", _module);
39
51
  pulumi.runtime.registerResourceModule("buildkite", "Cluster/clusterQueue", _module);
52
+ pulumi.runtime.registerResourceModule("buildkite", "Cluster/clusterSecret", _module);
40
53
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../cluster/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAK7B,QAAA,OAAO,GAAuC,IAAW,CAAC;AACvE,SAAS,CAA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generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
3
  // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
5
  if (k2 === undefined) k2 = k;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../config/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;;;;;;;;;;;;;;AAEjF,kBAAkB;AAClB,yCAAuB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../config/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;AAEjF,kBAAkB;AAClB,yCAAuB"}
package/config/vars.d.ts CHANGED
@@ -5,18 +5,19 @@ export declare const apiToken: string | undefined;
5
5
  */
6
6
  export declare const archivePipelineOnDelete: boolean | undefined;
7
7
  /**
8
- * Base URL for the GraphQL API to use. If not provided, the value is taken from the `BUILDKITE_GRAPHQL_URL` environment
9
- * variable.
8
+ * Base URL for the GraphQL API to use. If not provided, the value is taken from the `BUILDKITE_GRAPHQL_URL` environment variable.
10
9
  */
11
10
  export declare const graphqlUrl: string | undefined;
12
11
  /**
13
- * The Buildkite organization slug. This can be found on the [settings](https://buildkite.com/organizations/~/settings)
14
- * page. If not provided, the value is taken from the `BUILDKITE_ORGANIZATION_SLUG` environment variable.
12
+ * Maximum number of retry attempts for retryable HTTP requests. Defaults to 10.
13
+ */
14
+ export declare const maxRetries: number | undefined;
15
+ /**
16
+ * The Buildkite organization slug. This can be found on the [settings](https://buildkite.com/organizations/~/settings) page. If not provided, the value is taken from the `BUILDKITE_ORGANIZATION_SLUG` environment variable.
15
17
  */
16
18
  export declare const organization: string | undefined;
17
19
  /**
18
- * Base URL for the REST API to use. If not provided, the value is taken from the `BUILDKITE_REST_URL` environment
19
- * variable.
20
+ * Base URL for the REST API to use. If not provided, the value is taken from the `BUILDKITE_REST_URL` environment variable.
20
21
  */
21
22
  export declare const restUrl: string | undefined;
22
23
  export declare const timeouts: outputs.config.Timeouts | undefined;
package/config/vars.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
3
  // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
5
  const pulumi = require("@pulumi/pulumi");
@@ -22,6 +22,12 @@ Object.defineProperty(exports, "graphqlUrl", {
22
22
  },
23
23
  enumerable: true,
24
24
  });
25
+ Object.defineProperty(exports, "maxRetries", {
26
+ get() {
27
+ return __config.getObject("maxRetries");
28
+ },
29
+ enumerable: true,
30
+ });
25
31
  Object.defineProperty(exports, "organization", {
26
32
  get() {
27
33
  return __config.get("organization");
@@ -1 +1 @@
1
- {"version":3,"file":"vars.js","sourceRoot":"","sources":["../../config/vars.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAMzC,MAAM,QAAQ,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;AAGhD,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,yBAAyB,EAAE;IACtD,GAAG;QACC,OAAO,QAAQ,CAAC,SAAS,CAAU,yBAAyB,CAAC,CAAC;IAClE,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAOH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE;IACzC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,YAA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