@pulumiverse/buildkite 2.1.1 → 2.3.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 (45) hide show
  1. package/README.md +3 -3
  2. package/agent/agentToken.d.ts +0 -8
  3. package/agent/agentToken.js +2 -8
  4. package/agent/agentToken.js.map +1 -1
  5. package/cluster/cluster.d.ts +108 -0
  6. package/cluster/cluster.js +73 -0
  7. package/cluster/cluster.js.map +1 -0
  8. package/cluster/clusterAgentToken.d.ts +97 -0
  9. package/cluster/clusterAgentToken.js +84 -0
  10. package/cluster/clusterAgentToken.js.map +1 -0
  11. package/cluster/clusterQueue.d.ts +162 -0
  12. package/cluster/clusterQueue.js +137 -0
  13. package/cluster/clusterQueue.js.map +1 -0
  14. package/cluster/getCluster.d.ts +47 -0
  15. package/cluster/getCluster.js +19 -0
  16. package/cluster/getCluster.js.map +1 -0
  17. package/cluster/index.d.ts +12 -0
  18. package/cluster/index.js +35 -0
  19. package/cluster/index.js.map +1 -0
  20. package/index.d.ts +2 -1
  21. package/index.js +3 -1
  22. package/index.js.map +1 -1
  23. package/organization/getOrganization.d.ts +32 -0
  24. package/organization/getOrganization.js +32 -0
  25. package/organization/getOrganization.js.map +1 -1
  26. package/organization/settings.d.ts +2 -0
  27. package/organization/settings.js +2 -0
  28. package/organization/settings.js.map +1 -1
  29. package/package.json +2 -2
  30. package/pipeline/pipeline.d.ts +34 -8
  31. package/pipeline/pipeline.js +25 -0
  32. package/pipeline/pipeline.js.map +1 -1
  33. package/pipeline/schedule.d.ts +38 -0
  34. package/pipeline/schedule.js +38 -0
  35. package/pipeline/schedule.js.map +1 -1
  36. package/provider.d.ts +5 -5
  37. package/provider.js +4 -8
  38. package/provider.js.map +1 -1
  39. package/team/member.d.ts +4 -4
  40. package/team/member.js +4 -4
  41. package/team/team.d.ts +30 -0
  42. package/team/team.js +30 -0
  43. package/team/team.js.map +1 -1
  44. package/types/input.d.ts +4 -0
  45. package/types/output.d.ts +8 -4
@@ -0,0 +1,137 @@
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.ClusterQueue = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * ## # Resource: clusterQueue
10
+ *
11
+ * This resource allows you to create and manage cluster queues.
12
+ *
13
+ * Buildkite Documentation: https://buildkite.com/docs/clusters/manage-clusters#set-up-clusters-create-a-queue
14
+ *
15
+ * ## Example Usage
16
+ *
17
+ * ```typescript
18
+ * import * as pulumi from "@pulumi/pulumi";
19
+ * import * as buildkite from "@pulumiverse/buildkite";
20
+ *
21
+ * const queue1 = new buildkite.cluster.ClusterQueue("queue1", {
22
+ * clusterId: "Q2x1c3Rlci0tLTMzMDc0ZDhiLTM4MjctNDRkNC05YTQ3LTkwN2E2NWZjODViNg==",
23
+ * description: "Prod deployment cluster queue",
24
+ * key: "prod-deploy",
25
+ * });
26
+ * ```
27
+ *
28
+ * ## Import
29
+ *
30
+ * Cluster queues can be imported using its `GraphQL ID`, along with its respective cluster `UUID`, separated by a comma. e.g.
31
+ *
32
+ * ```sh
33
+ * $ pulumi import buildkite:Cluster/clusterQueue:ClusterQueue test Q2x1c3RlclF1ZXVlLS0tYjJiOGRhNTEtOWY5My00Y2MyLTkyMjktMGRiNzg3ZDQzOTAz,35498aaf-ad05-4fa5-9a07-91bf6cacd2bd
34
+ * ```
35
+ *
36
+ * To find the cluster's `UUID` to utilize, you can use the below GraphQL query below. Alternatively, you can use this [pre-saved query](https://buildkite.com/user/graphql/console/3adf0389-02bd-45ef-adcd-4e8e5ae57f25), where you will need fo fill in the organization slug (ORGANIZATION_SLUG) for obtaining the relevant cluster name/`UUID` that the cluster queue is in. graphql query getClusters {
37
+ *
38
+ * organization(slug"ORGANIZATION_SLUG") {
39
+ *
40
+ * clusters(first50) {
41
+ *
42
+ * edges{
43
+ *
44
+ * node{
45
+ *
46
+ * name
47
+ *
48
+ * uuid
49
+ *
50
+ * }
51
+ *
52
+ * }
53
+ *
54
+ * }
55
+ *
56
+ * } } After the cluster `UUID` has been found, you can use the below GraphQL query to find the cluster queue's `GraphQL ID`. Alternatively, this [pre-saved query](https://buildkite.com/user/graphql/console/1d913905-900e-40e7-8f46-651543487b5a) can be used, specifying the organization slug (ORGANIZATION_SLUG) and the cluster `UUID` from above (CLUSTER_UUID). graphql query getClusterQueues {
57
+ *
58
+ * organization(slug"ORGANIZATION_SLUG") {
59
+ *
60
+ * cluster(id"CLUSTER_UUID") {
61
+ *
62
+ * queues(first50) {
63
+ *
64
+ * edges {
65
+ *
66
+ * node {
67
+ *
68
+ * id
69
+ *
70
+ * key
71
+ *
72
+ * }
73
+ *
74
+ * }
75
+ *
76
+ * }
77
+ *
78
+ * }
79
+ *
80
+ * } }
81
+ */
82
+ class ClusterQueue extends pulumi.CustomResource {
83
+ /**
84
+ * Get an existing ClusterQueue resource's state with the given name, ID, and optional extra
85
+ * properties used to qualify the lookup.
86
+ *
87
+ * @param name The _unique_ name of the resulting resource.
88
+ * @param id The _unique_ provider ID of the resource to lookup.
89
+ * @param state Any extra arguments used during the lookup.
90
+ * @param opts Optional settings to control the behavior of the CustomResource.
91
+ */
92
+ static get(name, id, state, opts) {
93
+ return new ClusterQueue(name, state, Object.assign(Object.assign({}, opts), { id: id }));
94
+ }
95
+ /**
96
+ * Returns true if the given object is an instance of ClusterQueue. This is designed to work even
97
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
98
+ */
99
+ static isInstance(obj) {
100
+ if (obj === undefined || obj === null) {
101
+ return false;
102
+ }
103
+ return obj['__pulumiType'] === ClusterQueue.__pulumiType;
104
+ }
105
+ constructor(name, argsOrState, opts) {
106
+ let resourceInputs = {};
107
+ opts = opts || {};
108
+ if (opts.id) {
109
+ const state = argsOrState;
110
+ resourceInputs["clusterId"] = state ? state.clusterId : undefined;
111
+ resourceInputs["clusterUuid"] = state ? state.clusterUuid : undefined;
112
+ resourceInputs["description"] = state ? state.description : undefined;
113
+ resourceInputs["key"] = state ? state.key : undefined;
114
+ resourceInputs["uuid"] = state ? state.uuid : undefined;
115
+ }
116
+ else {
117
+ const args = argsOrState;
118
+ if ((!args || args.clusterId === undefined) && !opts.urn) {
119
+ throw new Error("Missing required property 'clusterId'");
120
+ }
121
+ if ((!args || args.key === undefined) && !opts.urn) {
122
+ throw new Error("Missing required property 'key'");
123
+ }
124
+ resourceInputs["clusterId"] = args ? args.clusterId : undefined;
125
+ resourceInputs["description"] = args ? args.description : undefined;
126
+ resourceInputs["key"] = args ? args.key : undefined;
127
+ resourceInputs["clusterUuid"] = undefined /*out*/;
128
+ resourceInputs["uuid"] = undefined /*out*/;
129
+ }
130
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
131
+ super(ClusterQueue.__pulumiType, name, resourceInputs, opts);
132
+ }
133
+ }
134
+ exports.ClusterQueue = ClusterQueue;
135
+ /** @internal */
136
+ ClusterQueue.__pulumiType = 'buildkite:Cluster/clusterQueue:ClusterQueue';
137
+ //# sourceMappingURL=clusterQueue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clusterQueue.js","sourceRoot":"","sources":["../../cluster/clusterQueue.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyEG;AACH,MAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;IACnD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAyB,EAAE,IAAmC;QACvH,OAAO,IAAI,YAAY,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,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AAI,CAAC,GAAG,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAChD,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;aACtD;YACD,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC;YACpD,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAClD,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,YAAY,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACjE,CAAC;;AAnFL,oCAoFC;AAtEG,gBAAgB;AACO,yBAAY,GAAG,6CAA6C,CAAC"}
@@ -0,0 +1,47 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ export declare function getCluster(args: GetClusterArgs, opts?: pulumi.InvokeOptions): Promise<GetClusterResult>;
3
+ /**
4
+ * A collection of arguments for invoking getCluster.
5
+ */
6
+ export interface GetClusterArgs {
7
+ /**
8
+ * The name of the cluster to lookup.
9
+ */
10
+ name: string;
11
+ }
12
+ /**
13
+ * A collection of values returned by getCluster.
14
+ */
15
+ export interface GetClusterResult {
16
+ /**
17
+ * The color given the cluster.
18
+ */
19
+ readonly color: string;
20
+ /**
21
+ * The description of the cluster.
22
+ */
23
+ readonly description: string;
24
+ /**
25
+ * The emoji given the cluster.
26
+ */
27
+ readonly emoji: string;
28
+ /**
29
+ * The GraphQL ID of the cluster.
30
+ */
31
+ readonly id: string;
32
+ readonly name: string;
33
+ /**
34
+ * The UUID of the cluster.
35
+ */
36
+ readonly uuid: string;
37
+ }
38
+ export declare function getClusterOutput(args: GetClusterOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetClusterResult>;
39
+ /**
40
+ * A collection of arguments for invoking getCluster.
41
+ */
42
+ export interface GetClusterOutputArgs {
43
+ /**
44
+ * The name of the cluster to lookup.
45
+ */
46
+ name: pulumi.Input<string>;
47
+ }
@@ -0,0 +1,19 @@
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.getClusterOutput = exports.getCluster = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ function getCluster(args, opts) {
9
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
10
+ return pulumi.runtime.invoke("buildkite:Cluster/getCluster:getCluster", {
11
+ "name": args.name,
12
+ }, opts);
13
+ }
14
+ exports.getCluster = getCluster;
15
+ function getClusterOutput(args, opts) {
16
+ return pulumi.output(args).apply((a) => getCluster(a, opts));
17
+ }
18
+ exports.getClusterOutput = getClusterOutput;
19
+ //# sourceMappingURL=getCluster.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getCluster.js","sourceRoot":"","sources":["../../cluster/getCluster.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C,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;AAsCD,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"}
@@ -0,0 +1,12 @@
1
+ export { ClusterArgs, ClusterState } from "./cluster";
2
+ export type Cluster = import("./cluster").Cluster;
3
+ export declare const Cluster: typeof import("./cluster").Cluster;
4
+ export { ClusterAgentTokenArgs, ClusterAgentTokenState } from "./clusterAgentToken";
5
+ export type ClusterAgentToken = import("./clusterAgentToken").ClusterAgentToken;
6
+ export declare const ClusterAgentToken: typeof import("./clusterAgentToken").ClusterAgentToken;
7
+ export { ClusterQueueArgs, ClusterQueueState } from "./clusterQueue";
8
+ export type ClusterQueue = import("./clusterQueue").ClusterQueue;
9
+ export declare const ClusterQueue: typeof import("./clusterQueue").ClusterQueue;
10
+ export { GetClusterArgs, GetClusterResult, GetClusterOutputArgs } from "./getCluster";
11
+ export declare const getCluster: typeof import("./getCluster").getCluster;
12
+ export declare const getClusterOutput: typeof import("./getCluster").getClusterOutput;
@@ -0,0 +1,35 @@
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.getClusterOutput = exports.getCluster = exports.ClusterQueue = exports.ClusterAgentToken = exports.Cluster = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ exports.Cluster = null;
9
+ utilities.lazyLoad(exports, ["Cluster"], () => require("./cluster"));
10
+ exports.ClusterAgentToken = null;
11
+ utilities.lazyLoad(exports, ["ClusterAgentToken"], () => require("./clusterAgentToken"));
12
+ exports.ClusterQueue = null;
13
+ utilities.lazyLoad(exports, ["ClusterQueue"], () => require("./clusterQueue"));
14
+ exports.getCluster = null;
15
+ exports.getClusterOutput = null;
16
+ utilities.lazyLoad(exports, ["getCluster", "getClusterOutput"], () => require("./getCluster"));
17
+ const _module = {
18
+ version: utilities.getVersion(),
19
+ construct: (name, type, urn) => {
20
+ switch (type) {
21
+ case "buildkite:Cluster/cluster:Cluster":
22
+ return new exports.Cluster(name, undefined, { urn });
23
+ case "buildkite:Cluster/clusterAgentToken:ClusterAgentToken":
24
+ return new exports.ClusterAgentToken(name, undefined, { urn });
25
+ case "buildkite:Cluster/clusterQueue:ClusterQueue":
26
+ return new exports.ClusterQueue(name, undefined, { urn });
27
+ default:
28
+ throw new Error(`unknown resource type ${type}`);
29
+ }
30
+ },
31
+ };
32
+ pulumi.runtime.registerResourceModule("buildkite", "Cluster/cluster", _module);
33
+ pulumi.runtime.registerResourceModule("buildkite", "Cluster/clusterAgentToken", _module);
34
+ pulumi.runtime.registerResourceModule("buildkite", "Cluster/clusterQueue", _module);
35
+ //# sourceMappingURL=index.js.map
@@ -0,0 +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,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,SAAS,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC;AAIxD,QAAA,iBAAiB,GAA2D,IAAW,CAAC;AACrG,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,mBAAmB,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,qBAAqB,CAAC,C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CAAA"}
package/index.d.ts CHANGED
@@ -4,9 +4,10 @@ export { ProviderArgs } from "./provider";
4
4
  export type Provider = import("./provider").Provider;
5
5
  export declare const Provider: typeof import("./provider").Provider;
6
6
  import * as agent from "./agent";
7
+ import * as cluster from "./cluster";
7
8
  import * as config from "./config";
8
9
  import * as organization from "./organization";
9
10
  import * as pipeline from "./pipeline";
10
11
  import * as team from "./team";
11
12
  import * as types from "./types";
12
- export { agent, config, organization, pipeline, team, types, };
13
+ export { agent, cluster, config, organization, pipeline, team, types, };
package/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
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.types = exports.team = exports.pipeline = exports.organization = exports.config = exports.agent = exports.Provider = exports.getMeta = void 0;
5
+ exports.types = exports.team = exports.pipeline = exports.organization = exports.config = exports.cluster = exports.agent = exports.Provider = exports.getMeta = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  exports.getMeta = null;
@@ -12,6 +12,8 @@ utilities.lazyLoad(exports, ["Provider"], () => require("./provider"));
12
12
  // Export sub-modules:
13
13
  const agent = require("./agent");
14
14
  exports.agent = agent;
15
+ const cluster = require("./cluster");
16
+ exports.cluster = cluster;
15
17
  const config = require("./config");
16
18
  exports.config = config;
17
19
  const organization = require("./organization");
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAI5B,QAAA,OAAO,GAAuC,IAAW,CAAC;AACvE,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,SAAS,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC;AAIxD,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K;AART,qCAAqC;AASjC,0BAAO;AARX,mCAAmC;AAS/B,wBAAM;AARV,+CAA+C;AAS3C,oCAAY;AARhB,uCAAuC;AASnC,4BAAQ;AARZ,+BAA+B;AAS3B,oBAAI;AARR,iCAAiC;AAS7B,sBAAK;AAET,MAAM,CAAC,OAAO,CAAC,uBAAuB,CAAC,WAAW,EAAE;IAChD,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,iBAAiB,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAA2B,EAAE;QACpF,IAAI,IAAI,KAAK,4BAA4B,EAAE;YACvC,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACpD;QACD,OAAO,IAAI,gBAAQ,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;IACvD,CAAC;CACJ,CAAC,CAAC"}
@@ -4,6 +4,22 @@ import * as pulumi from "@pulumi/pulumi";
4
4
  *
5
5
  * Use this data source to look up the organization settings. It currently supports
6
6
  * allowed_api_ip_addresses.
7
+ *
8
+ * ## Example Usage
9
+ *
10
+ * ```typescript
11
+ * import * as pulumi from "@pulumi/pulumi";
12
+ * import * as aws from "@pulumi/aws";
13
+ * import * as buildkite from "@pulumi/buildkite";
14
+ *
15
+ * const testkite = buildkite.Organization.getOrganization({});
16
+ * const fromBuildkite = new aws.ec2.SecurityGroup("fromBuildkite", {ingress: [{
17
+ * fromPort: "*",
18
+ * toPort: 443,
19
+ * protocol: "tcp",
20
+ * cidrBlocks: data.buildkite_organization.allowed_api_ip_addresses,
21
+ * }]});
22
+ * ```
7
23
  */
8
24
  export declare function getOrganization(args?: GetOrganizationArgs, opts?: pulumi.InvokeOptions): Promise<GetOrganizationResult>;
9
25
  /**
@@ -34,6 +50,22 @@ export interface GetOrganizationResult {
34
50
  *
35
51
  * Use this data source to look up the organization settings. It currently supports
36
52
  * allowed_api_ip_addresses.
53
+ *
54
+ * ## Example Usage
55
+ *
56
+ * ```typescript
57
+ * import * as pulumi from "@pulumi/pulumi";
58
+ * import * as aws from "@pulumi/aws";
59
+ * import * as buildkite from "@pulumi/buildkite";
60
+ *
61
+ * const testkite = buildkite.Organization.getOrganization({});
62
+ * const fromBuildkite = new aws.ec2.SecurityGroup("fromBuildkite", {ingress: [{
63
+ * fromPort: "*",
64
+ * toPort: 443,
65
+ * protocol: "tcp",
66
+ * cidrBlocks: data.buildkite_organization.allowed_api_ip_addresses,
67
+ * }]});
68
+ * ```
37
69
  */
38
70
  export declare function getOrganizationOutput(args?: GetOrganizationOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetOrganizationResult>;
39
71
  /**
@@ -10,6 +10,22 @@ const utilities = require("../utilities");
10
10
  *
11
11
  * Use this data source to look up the organization settings. It currently supports
12
12
  * allowed_api_ip_addresses.
13
+ *
14
+ * ## Example Usage
15
+ *
16
+ * ```typescript
17
+ * import * as pulumi from "@pulumi/pulumi";
18
+ * import * as aws from "@pulumi/aws";
19
+ * import * as buildkite from "@pulumi/buildkite";
20
+ *
21
+ * const testkite = buildkite.Organization.getOrganization({});
22
+ * const fromBuildkite = new aws.ec2.SecurityGroup("fromBuildkite", {ingress: [{
23
+ * fromPort: "*",
24
+ * toPort: 443,
25
+ * protocol: "tcp",
26
+ * cidrBlocks: data.buildkite_organization.allowed_api_ip_addresses,
27
+ * }]});
28
+ * ```
13
29
  */
14
30
  function getOrganization(args, opts) {
15
31
  args = args || {};
@@ -24,6 +40,22 @@ exports.getOrganization = getOrganization;
24
40
  *
25
41
  * Use this data source to look up the organization settings. It currently supports
26
42
  * allowed_api_ip_addresses.
43
+ *
44
+ * ## Example Usage
45
+ *
46
+ * ```typescript
47
+ * import * as pulumi from "@pulumi/pulumi";
48
+ * import * as aws from "@pulumi/aws";
49
+ * import * as buildkite from "@pulumi/buildkite";
50
+ *
51
+ * const testkite = buildkite.Organization.getOrganization({});
52
+ * const fromBuildkite = new aws.ec2.SecurityGroup("fromBuildkite", {ingress: [{
53
+ * fromPort: "*",
54
+ * toPort: 443,
55
+ * protocol: "tcp",
56
+ * cidrBlocks: data.buildkite_organization.allowed_api_ip_addresses,
57
+ * }]});
58
+ * ```
27
59
  */
28
60
  function getOrganizationOutput(args, opts) {
29
61
  return pulumi.output(args).apply((a) => getOrganization(a, opts));
@@ -1 +1 @@
1
- {"version":3,"file":"getOrganization.js","sourceRoot":"","sources":["../../organization/getOrganization.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;GAKG;AACH,SAAgB,eAAe,CAAC,IAA0B,EAAE,IAA2B;IACnF,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,wDAAwD,EAAE;QACnF,uBAAuB,EAAE,IAAI,CAAC,qBAAqB;KACtD,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,0CAOC;AA0BD;;;;;GAKG;AACH,SAAgB,qBAAqB,CAAC,IAAgC,EAAE,IAA2B;IAC/F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,eAAe,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC1E,CAAC;AAFD,sDAEC"}
1
+ {"version":3,"file":"getOrganization.js","sourceRoot":"","sources":["../../organization/getOrganization.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,SAAgB,eAAe,CAAC,IAA0B,EAAE,IAA2B;IACnF,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,wDAAwD,EAAE;QACnF,uBAAuB,EAAE,IAAI,CAAC,qBAAqB;KACtD,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,0CAOC;AA0BD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,SAAgB,qBAAqB,CAAC,IAAgC,EAAE,IAA2B;IAC/F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,eAAe,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC1E,CAAC;AAFD,sDAEC"}
@@ -24,6 +24,8 @@ import * as pulumi from "@pulumi/pulumi";
24
24
  * ```sh
25
25
  * $ pulumi import buildkite:Organization/settings:Settings test_settings test_org
26
26
  * ```
27
+ *
28
+ * Your organization's slug can be found in your organisation's [settings](https://buildkite.com/organizations/~/settings) page.
27
29
  */
28
30
  export declare class Settings extends pulumi.CustomResource {
29
31
  /**
@@ -30,6 +30,8 @@ const utilities = require("../utilities");
30
30
  * ```sh
31
31
  * $ pulumi import buildkite:Organization/settings:Settings test_settings test_org
32
32
  * ```
33
+ *
34
+ * Your organization's slug can be found in your organisation's [settings](https://buildkite.com/organizations/~/settings) page.
33
35
  */
34
36
  class Settings extends pulumi.CustomResource {
35
37
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"settings.js","sourceRoot":"","sources":["../../organization/settings.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAC/C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B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AAC,CAAC,CAAC,SAAS,CAAC;YACxF,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,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;;AAxDL,4BAyDC;AA3CG,gBAAgB;AACO,qBAAY,GAAG,0CAA0C,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumiverse/buildkite",
3
- "version": "v2.1.1",
3
+ "version": "v2.3.0",
4
4
  "description": "A Pulumi package for creating and managing Buildkite resources.",
5
5
  "keywords": [
6
6
  "pulumi",
@@ -11,7 +11,7 @@
11
11
  "license": "Apache-2.0",
12
12
  "scripts": {
13
13
  "build": "tsc",
14
- "install": "node scripts/install-pulumi-plugin.js resource buildkite v2.1.1"
14
+ "install": "node scripts/install-pulumi-plugin.js resource buildkite v2.3.0"
15
15
  },
16
16
  "dependencies": {
17
17
  "@pulumi/pulumi": "^3.0.0"
@@ -59,6 +59,21 @@ import * as outputs from "../types/output";
59
59
  * ```
60
60
  *
61
61
  * `deletionProtection` will block `destroy` actions on the **pipeline**. Attached resources, such as `schedules` will still be destroyed.
62
+ * ### With Archive On Delete
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
+ * const testNew = new buildkite.pipeline.Pipeline("testNew", {
70
+ * repository: "https://github.com/buildkite/terraform-provider-buildkite.git",
71
+ * steps: fs.readFileSync("./deploy-steps.yml"),
72
+ * archiveOnDelete: true,
73
+ * });
74
+ * ```
75
+ *
76
+ * `archiveOnDelete` will archive the **pipeline** when `destroy` is called. Attached resources, such as `schedules` will still be destroyed. In order to delete the pipeline, `archiveOnDelete` must be set to `false` in the configuration, then `destroy` must be called again.
62
77
  * ### With GitHub Provider Settings
63
78
  *
64
79
  * ```typescript
@@ -94,6 +109,14 @@ import * as outputs from "../types/output";
94
109
  * ```sh
95
110
  * $ pulumi import buildkite:Pipeline/pipeline:Pipeline fleet UGlwZWxpbmUtLS00MzVjYWQ1OC1lODFkLTQ1YWYtODYzNy1iMWNmODA3MDIzOGQ=
96
111
  * ```
112
+ *
113
+ * To find the ID to use, you can use the GraphQL query below. Alternatively, you could use this [pre-saved query](https://buildkite.com/user/graphql/console/04e6ac1d-222e-49f9-8167-4767ab0f5362). graphql query getPipelineId {
114
+ *
115
+ * pipeline(slug"ORGANIZATION_SLUG/PIPELINE_SLUG") {
116
+ *
117
+ * id
118
+ *
119
+ * } }
97
120
  */
98
121
  export declare class Pipeline extends pulumi.CustomResource {
99
122
  /**
@@ -115,6 +138,7 @@ export declare class Pipeline extends pulumi.CustomResource {
115
138
  * A boolean on whether or not to allow rebuilds for the pipeline.
116
139
  */
117
140
  readonly allowRebuilds: pulumi.Output<boolean | undefined>;
141
+ readonly archiveOnDelete: pulumi.Output<boolean | undefined>;
118
142
  /**
119
143
  * The pipeline's last build status so you can display build status badge.
120
144
  */
@@ -126,11 +150,11 @@ export declare class Pipeline extends pulumi.CustomResource {
126
150
  /**
127
151
  * A boolean to enable automatically cancelling any running builds on the same branch when a new build is created.
128
152
  */
129
- readonly cancelIntermediateBuilds: pulumi.Output<boolean | undefined>;
153
+ readonly cancelIntermediateBuilds: pulumi.Output<boolean>;
130
154
  /**
131
155
  * Limit which branches build cancelling applies to, for example !master will ensure that the master branch won't have its builds automatically cancelled.
132
156
  */
133
- readonly cancelIntermediateBuildsBranchFilter: pulumi.Output<string | undefined>;
157
+ readonly cancelIntermediateBuildsBranchFilter: pulumi.Output<string>;
134
158
  /**
135
159
  * The GraphQL ID of the cluster you want to use for the pipeline.
136
160
  */
@@ -138,11 +162,11 @@ export declare class Pipeline extends pulumi.CustomResource {
138
162
  /**
139
163
  * The default branch to prefill when new builds are created or triggered, usually main or master but can be anything.
140
164
  */
141
- readonly defaultBranch: pulumi.Output<string | undefined>;
165
+ readonly defaultBranch: pulumi.Output<string>;
142
166
  /**
143
167
  * The default timeout for commands in this pipeline, in minutes.
144
168
  */
145
- readonly defaultTimeoutInMinutes: pulumi.Output<number | undefined>;
169
+ readonly defaultTimeoutInMinutes: pulumi.Output<number>;
146
170
  /**
147
171
  * 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
172
  */
@@ -150,11 +174,11 @@ export declare class Pipeline extends pulumi.CustomResource {
150
174
  /**
151
175
  * A description of the pipeline.
152
176
  */
153
- readonly description: pulumi.Output<string | undefined>;
177
+ readonly description: pulumi.Output<string>;
154
178
  /**
155
179
  * The maximum timeout for commands in this pipeline, in minutes.
156
180
  */
157
- readonly maximumTimeoutInMinutes: pulumi.Output<number | undefined>;
181
+ readonly maximumTimeoutInMinutes: pulumi.Output<number>;
158
182
  /**
159
183
  * The name of the pipeline.
160
184
  */
@@ -170,11 +194,11 @@ export declare class Pipeline extends pulumi.CustomResource {
170
194
  /**
171
195
  * A boolean to enable automatically skipping any unstarted builds on the same branch when a new build is created.
172
196
  */
173
- readonly skipIntermediateBuilds: pulumi.Output<boolean | undefined>;
197
+ readonly skipIntermediateBuilds: pulumi.Output<boolean>;
174
198
  /**
175
199
  * Limit which branches build skipping applies to, for example `!master` will ensure that the master branch won't have its builds automatically skipped.
176
200
  */
177
- readonly skipIntermediateBuildsBranchFilter: pulumi.Output<string | undefined>;
201
+ readonly skipIntermediateBuildsBranchFilter: pulumi.Output<string>;
178
202
  /**
179
203
  * The buildkite slug of the team.
180
204
  */
@@ -209,6 +233,7 @@ export interface PipelineState {
209
233
  * A boolean on whether or not to allow rebuilds for the pipeline.
210
234
  */
211
235
  allowRebuilds?: pulumi.Input<boolean>;
236
+ archiveOnDelete?: pulumi.Input<boolean>;
212
237
  /**
213
238
  * The pipeline's last build status so you can display build status badge.
214
239
  */
@@ -295,6 +320,7 @@ export interface PipelineArgs {
295
320
  * A boolean on whether or not to allow rebuilds for the pipeline.
296
321
  */
297
322
  allowRebuilds?: pulumi.Input<boolean>;
323
+ archiveOnDelete?: pulumi.Input<boolean>;
298
324
  /**
299
325
  * Limit which branches and tags cause new builds to be created, either via a code push or via the Builds REST API.
300
326
  */
@@ -63,6 +63,21 @@ const utilities = require("../utilities");
63
63
  * ```
64
64
  *
65
65
  * `deletionProtection` will block `destroy` actions on the **pipeline**. Attached resources, such as `schedules` will still be destroyed.
66
+ * ### With Archive On Delete
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
+ * const testNew = new buildkite.pipeline.Pipeline("testNew", {
74
+ * repository: "https://github.com/buildkite/terraform-provider-buildkite.git",
75
+ * steps: fs.readFileSync("./deploy-steps.yml"),
76
+ * archiveOnDelete: true,
77
+ * });
78
+ * ```
79
+ *
80
+ * `archiveOnDelete` will archive the **pipeline** when `destroy` is called. Attached resources, such as `schedules` will still be destroyed. In order to delete the pipeline, `archiveOnDelete` must be set to `false` in the configuration, then `destroy` must be called again.
66
81
  * ### With GitHub Provider Settings
67
82
  *
68
83
  * ```typescript
@@ -98,6 +113,14 @@ const utilities = require("../utilities");
98
113
  * ```sh
99
114
  * $ pulumi import buildkite:Pipeline/pipeline:Pipeline fleet UGlwZWxpbmUtLS00MzVjYWQ1OC1lODFkLTQ1YWYtODYzNy1iMWNmODA3MDIzOGQ=
100
115
  * ```
116
+ *
117
+ * To find the ID to use, you can use the GraphQL query below. Alternatively, you could use this [pre-saved query](https://buildkite.com/user/graphql/console/04e6ac1d-222e-49f9-8167-4767ab0f5362). graphql query getPipelineId {
118
+ *
119
+ * pipeline(slug"ORGANIZATION_SLUG/PIPELINE_SLUG") {
120
+ *
121
+ * id
122
+ *
123
+ * } }
101
124
  */
102
125
  class Pipeline extends pulumi.CustomResource {
103
126
  /**
@@ -128,6 +151,7 @@ class Pipeline extends pulumi.CustomResource {
128
151
  if (opts.id) {
129
152
  const state = argsOrState;
130
153
  resourceInputs["allowRebuilds"] = state ? state.allowRebuilds : undefined;
154
+ resourceInputs["archiveOnDelete"] = state ? state.archiveOnDelete : undefined;
131
155
  resourceInputs["badgeUrl"] = state ? state.badgeUrl : undefined;
132
156
  resourceInputs["branchConfiguration"] = state ? state.branchConfiguration : undefined;
133
157
  resourceInputs["cancelIntermediateBuilds"] = state ? state.cancelIntermediateBuilds : undefined;
@@ -155,6 +179,7 @@ class Pipeline extends pulumi.CustomResource {
155
179
  throw new Error("Missing required property 'repository'");
156
180
  }
157
181
  resourceInputs["allowRebuilds"] = args ? args.allowRebuilds : undefined;
182
+ resourceInputs["archiveOnDelete"] = args ? args.archiveOnDelete : undefined;
158
183
  resourceInputs["branchConfiguration"] = args ? args.branchConfiguration : undefined;
159
184
  resourceInputs["cancelIntermediateBuilds"] = args ? args.cancelIntermediateBuilds : undefined;
160
185
  resourceInputs["cancelIntermediateBuildsBranchFilter"] = args ? args.cancelIntermediateBuildsBranchFilter : undefined;
@@ -1 +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,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