@pulumiverse/buildkite 2.3.0 → 3.0.1
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.
- package/README.md +5 -0
- package/agent/agentToken.d.ts +11 -19
- package/agent/agentToken.js +4 -6
- package/agent/agentToken.js.map +1 -1
- package/cluster/cluster.d.ts +74 -20
- package/cluster/cluster.js +54 -6
- package/cluster/cluster.js.map +1 -1
- package/cluster/clusterAgentToken.d.ts +49 -15
- package/cluster/clusterAgentToken.js +26 -8
- package/cluster/clusterAgentToken.js.map +1 -1
- package/cluster/clusterDefaultQueue.d.ts +130 -0
- package/cluster/clusterDefaultQueue.js +121 -0
- package/cluster/clusterDefaultQueue.js.map +1 -0
- package/cluster/clusterQueue.d.ts +36 -44
- package/cluster/clusterQueue.js +29 -37
- package/cluster/clusterQueue.js.map +1 -1
- package/cluster/getCluster.d.ts +48 -5
- package/cluster/getCluster.js +40 -0
- package/cluster/getCluster.js.map +1 -1
- package/cluster/index.d.ts +3 -0
- package/cluster/index.js +6 -1
- package/cluster/index.js.map +1 -1
- package/config/vars.d.ts +11 -5
- package/config/vars.js +12 -0
- package/config/vars.js.map +1 -1
- package/getMeta.d.ts +49 -2
- package/getMeta.js +51 -1
- package/getMeta.js.map +1 -1
- package/index.d.ts +3 -1
- package/index.js +5 -2
- package/index.js.map +1 -1
- package/organization/banner.d.ts +104 -0
- package/organization/banner.js +102 -0
- package/organization/banner.js.map +1 -0
- package/organization/getOrganization.d.ts +10 -63
- package/organization/getOrganization.js +6 -47
- package/organization/getOrganization.js.map +1 -1
- package/organization/index.d.ts +7 -4
- package/organization/index.js +11 -6
- package/organization/index.js.map +1 -1
- package/organization/organization.d.ts +94 -0
- package/organization/{settings.js → organization.js} +20 -20
- package/organization/organization.js.map +1 -0
- package/package.json +2 -3
- package/package.json.bak +1 -2
- package/pipeline/getPipeline.d.ts +21 -20
- package/pipeline/getPipeline.js +8 -14
- package/pipeline/getPipeline.js.map +1 -1
- package/pipeline/getSignedSteps.d.ts +139 -0
- package/pipeline/getSignedSteps.js +91 -0
- package/pipeline/getSignedSteps.js.map +1 -0
- package/pipeline/getTemplate.d.ts +116 -0
- package/pipeline/getTemplate.js +79 -0
- package/pipeline/getTemplate.js.map +1 -0
- package/pipeline/index.d.ts +12 -0
- package/pipeline/index.js +17 -1
- package/pipeline/index.js.map +1 -1
- package/pipeline/pipeline.d.ts +117 -181
- package/pipeline/pipeline.js +15 -113
- package/pipeline/pipeline.js.map +1 -1
- package/pipeline/schedule.d.ts +57 -45
- package/pipeline/schedule.js +22 -19
- package/pipeline/schedule.js.map +1 -1
- package/pipeline/team.d.ts +137 -0
- package/pipeline/team.js +121 -0
- package/pipeline/team.js.map +1 -0
- package/pipeline/template.d.ts +155 -0
- package/pipeline/template.js +123 -0
- package/pipeline/template.js.map +1 -0
- package/provider.d.ts +26 -8
- package/provider.js +2 -0
- package/provider.js.map +1 -1
- package/team/getTeam.d.ts +39 -30
- package/team/getTeam.js +16 -16
- package/team/getTeam.js.map +1 -1
- package/team/member.d.ts +31 -33
- package/team/member.js +20 -22
- package/team/member.js.map +1 -1
- package/team/team.d.ts +37 -37
- package/team/team.js +17 -17
- package/testsuite/index.d.ts +6 -0
- package/testsuite/index.js +27 -0
- package/testsuite/index.js.map +1 -0
- package/testsuite/team.d.ts +160 -0
- package/testsuite/team.js +144 -0
- package/testsuite/team.js.map +1 -0
- package/testsuite/testSuite.d.ts +112 -0
- package/testsuite/testSuite.js +83 -0
- package/testsuite/testSuite.js.map +1 -0
- package/types/input.d.ts +37 -22
- package/types/output.d.ts +37 -22
- package/utilities.d.ts +4 -0
- package/utilities.js +33 -1
- package/utilities.js.map +1 -1
- package/organization/settings.d.ts +0 -78
- package/organization/settings.js.map +0 -1
- package/scripts/install-pulumi-plugin.js +0 -26
package/cluster/index.d.ts
CHANGED
|
@@ -4,6 +4,9 @@ export declare const Cluster: typeof import("./cluster").Cluster;
|
|
|
4
4
|
export { ClusterAgentTokenArgs, ClusterAgentTokenState } from "./clusterAgentToken";
|
|
5
5
|
export type ClusterAgentToken = import("./clusterAgentToken").ClusterAgentToken;
|
|
6
6
|
export declare const ClusterAgentToken: typeof import("./clusterAgentToken").ClusterAgentToken;
|
|
7
|
+
export { ClusterDefaultQueueArgs, ClusterDefaultQueueState } from "./clusterDefaultQueue";
|
|
8
|
+
export type ClusterDefaultQueue = import("./clusterDefaultQueue").ClusterDefaultQueue;
|
|
9
|
+
export declare const ClusterDefaultQueue: typeof import("./clusterDefaultQueue").ClusterDefaultQueue;
|
|
7
10
|
export { ClusterQueueArgs, ClusterQueueState } from "./clusterQueue";
|
|
8
11
|
export type ClusterQueue = import("./clusterQueue").ClusterQueue;
|
|
9
12
|
export declare const ClusterQueue: typeof import("./clusterQueue").ClusterQueue;
|
package/cluster/index.js
CHANGED
|
@@ -2,13 +2,15 @@
|
|
|
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.getClusterOutput = exports.getCluster = exports.ClusterQueue = exports.ClusterAgentToken = exports.Cluster = void 0;
|
|
5
|
+
exports.getClusterOutput = exports.getCluster = exports.ClusterQueue = 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;
|
|
9
9
|
utilities.lazyLoad(exports, ["Cluster"], () => require("./cluster"));
|
|
10
10
|
exports.ClusterAgentToken = null;
|
|
11
11
|
utilities.lazyLoad(exports, ["ClusterAgentToken"], () => require("./clusterAgentToken"));
|
|
12
|
+
exports.ClusterDefaultQueue = null;
|
|
13
|
+
utilities.lazyLoad(exports, ["ClusterDefaultQueue"], () => require("./clusterDefaultQueue"));
|
|
12
14
|
exports.ClusterQueue = null;
|
|
13
15
|
utilities.lazyLoad(exports, ["ClusterQueue"], () => require("./clusterQueue"));
|
|
14
16
|
exports.getCluster = null;
|
|
@@ -22,6 +24,8 @@ const _module = {
|
|
|
22
24
|
return new exports.Cluster(name, undefined, { urn });
|
|
23
25
|
case "buildkite:Cluster/clusterAgentToken:ClusterAgentToken":
|
|
24
26
|
return new exports.ClusterAgentToken(name, undefined, { urn });
|
|
27
|
+
case "buildkite:Cluster/clusterDefaultQueue:ClusterDefaultQueue":
|
|
28
|
+
return new exports.ClusterDefaultQueue(name, undefined, { urn });
|
|
25
29
|
case "buildkite:Cluster/clusterQueue:ClusterQueue":
|
|
26
30
|
return new exports.ClusterQueue(name, undefined, { urn });
|
|
27
31
|
default:
|
|
@@ -31,5 +35,6 @@ const _module = {
|
|
|
31
35
|
};
|
|
32
36
|
pulumi.runtime.registerResourceModule("buildkite", "Cluster/cluster", _module);
|
|
33
37
|
pulumi.runtime.registerResourceModule("buildkite", "Cluster/clusterAgentToken", _module);
|
|
38
|
+
pulumi.runtime.registerResourceModule("buildkite", "Cluster/clusterDefaultQueue", _module);
|
|
34
39
|
pulumi.runtime.registerResourceModule("buildkite", "Cluster/clusterQueue", _module);
|
|
35
40
|
//# sourceMappingURL=index.js.map
|
package/cluster/index.js.map
CHANGED
|
@@ -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,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,CA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C,OAAO,IAAI,eAAO,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACrD,KAAK,uDAAuD;gBACxD,OAAO,IAAI,yBAAiB,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YAC/D,KAAK,2DAA2D;gBAC5D,OAAO,IAAI,2BAAmB,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACjE,KAAK,6CAA6C;gBAC9C,OAAO,IAAI,oBAAY,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YAC1D;gBACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACxD;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,WAAW,EAAE,iBAAiB,EAAE,OAAO,CAAC,CAAA;AAC9E,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,WAAW,EAAE,2BAA2B,EAAE,OAAO,CAAC,CAAA;AACxF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,WAAW,EAAE,6BAA6B,EAAE,OAAO,CAAC,CAAA;AAC1F,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,WAAW,EAAE,sBAAsB,EAAE,OAAO,CAAC,CAAA"}
|
package/config/vars.d.ts
CHANGED
|
@@ -1,16 +1,22 @@
|
|
|
1
|
+
import * as outputs from "../types/output";
|
|
2
|
+
export declare const apiToken: string | undefined;
|
|
1
3
|
/**
|
|
2
|
-
*
|
|
4
|
+
* Enable this to archive pipelines when destroying the resource. This is opposed to completely deleting pipelines.
|
|
3
5
|
*/
|
|
4
|
-
export declare const
|
|
6
|
+
export declare const archivePipelineOnDelete: boolean | undefined;
|
|
5
7
|
/**
|
|
6
|
-
* Base URL for the GraphQL API to use
|
|
8
|
+
* Base URL for the GraphQL API to use. If not provided, the value is taken from the `BUILDKITE_GRAPHQL_URL` environment
|
|
9
|
+
* variable.
|
|
7
10
|
*/
|
|
8
11
|
export declare const graphqlUrl: string | undefined;
|
|
9
12
|
/**
|
|
10
|
-
* The Buildkite organization slug
|
|
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.
|
|
11
15
|
*/
|
|
12
16
|
export declare const organization: string | undefined;
|
|
13
17
|
/**
|
|
14
|
-
* Base URL for the REST API to use
|
|
18
|
+
* Base URL for the REST API to use. If not provided, the value is taken from the `BUILDKITE_REST_URL` environment
|
|
19
|
+
* variable.
|
|
15
20
|
*/
|
|
16
21
|
export declare const restUrl: string | undefined;
|
|
22
|
+
export declare const timeouts: outputs.config.Timeouts | undefined;
|
package/config/vars.js
CHANGED
|
@@ -10,6 +10,12 @@ Object.defineProperty(exports, "apiToken", {
|
|
|
10
10
|
},
|
|
11
11
|
enumerable: true,
|
|
12
12
|
});
|
|
13
|
+
Object.defineProperty(exports, "archivePipelineOnDelete", {
|
|
14
|
+
get() {
|
|
15
|
+
return __config.getObject("archivePipelineOnDelete");
|
|
16
|
+
},
|
|
17
|
+
enumerable: true,
|
|
18
|
+
});
|
|
13
19
|
Object.defineProperty(exports, "graphqlUrl", {
|
|
14
20
|
get() {
|
|
15
21
|
return __config.get("graphqlUrl");
|
|
@@ -28,4 +34,10 @@ Object.defineProperty(exports, "restUrl", {
|
|
|
28
34
|
},
|
|
29
35
|
enumerable: true,
|
|
30
36
|
});
|
|
37
|
+
Object.defineProperty(exports, "timeouts", {
|
|
38
|
+
get() {
|
|
39
|
+
return __config.getObject("timeouts");
|
|
40
|
+
},
|
|
41
|
+
enumerable: true,
|
|
42
|
+
});
|
|
31
43
|
//# sourceMappingURL=vars.js.map
|
package/config/vars.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vars.js","sourceRoot":"","sources":["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AS,CAA0B,UAAU,CAAC,CAAC;IACnE,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC"}
|
package/getMeta.d.ts
CHANGED
|
@@ -1,15 +1,62 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Use this data source to look up the source IP addresses that Buildkite may use to send external requests,
|
|
4
|
+
* including webhooks and API calls to source control systems (like GitHub Enterprise Server and BitBucket Server).
|
|
5
|
+
*
|
|
6
|
+
* More info in the Buildkite [documentation](https://buildkite.com/docs/apis/rest-api/meta).
|
|
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 ips = buildkite.getMeta({});
|
|
16
|
+
* // Create an AWS security group allowing ingress from Buildkite
|
|
17
|
+
* const fromBuildkite = new aws.ec2.SecurityGroup("fromBuildkite", {ingress: [{
|
|
18
|
+
* fromPort: "*",
|
|
19
|
+
* toPort: 443,
|
|
20
|
+
* protocol: "tcp",
|
|
21
|
+
* cidrBlocks: ips.then(ips => ips.webhookIps),
|
|
22
|
+
* }]});
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
2
25
|
export declare function getMeta(opts?: pulumi.InvokeOptions): Promise<GetMetaResult>;
|
|
3
26
|
/**
|
|
4
27
|
* A collection of values returned by getMeta.
|
|
5
28
|
*/
|
|
6
29
|
export interface GetMetaResult {
|
|
7
30
|
/**
|
|
8
|
-
*
|
|
31
|
+
* Fixed value: `https://api.buildkite.com/v2/meta`.
|
|
9
32
|
*/
|
|
10
33
|
readonly id: string;
|
|
11
34
|
/**
|
|
12
|
-
*
|
|
35
|
+
* List of IPs in CIDR format.
|
|
13
36
|
*/
|
|
14
37
|
readonly webhookIps: string[];
|
|
15
38
|
}
|
|
39
|
+
/**
|
|
40
|
+
* Use this data source to look up the source IP addresses that Buildkite may use to send external requests,
|
|
41
|
+
* including webhooks and API calls to source control systems (like GitHub Enterprise Server and BitBucket Server).
|
|
42
|
+
*
|
|
43
|
+
* More info in the Buildkite [documentation](https://buildkite.com/docs/apis/rest-api/meta).
|
|
44
|
+
*
|
|
45
|
+
* ## Example Usage
|
|
46
|
+
*
|
|
47
|
+
* ```typescript
|
|
48
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
49
|
+
* import * as aws from "@pulumi/aws";
|
|
50
|
+
* import * as buildkite from "@pulumi/buildkite";
|
|
51
|
+
*
|
|
52
|
+
* const ips = buildkite.getMeta({});
|
|
53
|
+
* // Create an AWS security group allowing ingress from Buildkite
|
|
54
|
+
* const fromBuildkite = new aws.ec2.SecurityGroup("fromBuildkite", {ingress: [{
|
|
55
|
+
* fromPort: "*",
|
|
56
|
+
* toPort: 443,
|
|
57
|
+
* protocol: "tcp",
|
|
58
|
+
* cidrBlocks: ips.then(ips => ips.webhookIps),
|
|
59
|
+
* }]});
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
export declare function getMetaOutput(opts?: pulumi.InvokeOptions): pulumi.Output<GetMetaResult>;
|
package/getMeta.js
CHANGED
|
@@ -2,12 +2,62 @@
|
|
|
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.getMeta = void 0;
|
|
5
|
+
exports.getMetaOutput = exports.getMeta = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Use this data source to look up the source IP addresses that Buildkite may use to send external requests,
|
|
10
|
+
* including webhooks and API calls to source control systems (like GitHub Enterprise Server and BitBucket Server).
|
|
11
|
+
*
|
|
12
|
+
* More info in the Buildkite [documentation](https://buildkite.com/docs/apis/rest-api/meta).
|
|
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 ips = buildkite.getMeta({});
|
|
22
|
+
* // Create an AWS security group allowing ingress from Buildkite
|
|
23
|
+
* const fromBuildkite = new aws.ec2.SecurityGroup("fromBuildkite", {ingress: [{
|
|
24
|
+
* fromPort: "*",
|
|
25
|
+
* toPort: 443,
|
|
26
|
+
* protocol: "tcp",
|
|
27
|
+
* cidrBlocks: ips.then(ips => ips.webhookIps),
|
|
28
|
+
* }]});
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
8
31
|
function getMeta(opts) {
|
|
9
32
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
10
33
|
return pulumi.runtime.invoke("buildkite:index/getMeta:getMeta", {}, opts);
|
|
11
34
|
}
|
|
12
35
|
exports.getMeta = getMeta;
|
|
36
|
+
/**
|
|
37
|
+
* Use this data source to look up the source IP addresses that Buildkite may use to send external requests,
|
|
38
|
+
* including webhooks and API calls to source control systems (like GitHub Enterprise Server and BitBucket Server).
|
|
39
|
+
*
|
|
40
|
+
* More info in the Buildkite [documentation](https://buildkite.com/docs/apis/rest-api/meta).
|
|
41
|
+
*
|
|
42
|
+
* ## Example Usage
|
|
43
|
+
*
|
|
44
|
+
* ```typescript
|
|
45
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
46
|
+
* import * as aws from "@pulumi/aws";
|
|
47
|
+
* import * as buildkite from "@pulumi/buildkite";
|
|
48
|
+
*
|
|
49
|
+
* const ips = buildkite.getMeta({});
|
|
50
|
+
* // Create an AWS security group allowing ingress from Buildkite
|
|
51
|
+
* const fromBuildkite = new aws.ec2.SecurityGroup("fromBuildkite", {ingress: [{
|
|
52
|
+
* fromPort: "*",
|
|
53
|
+
* toPort: 443,
|
|
54
|
+
* protocol: "tcp",
|
|
55
|
+
* cidrBlocks: ips.then(ips => ips.webhookIps),
|
|
56
|
+
* }]});
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
59
|
+
function getMetaOutput(opts) {
|
|
60
|
+
return pulumi.output(getMeta(opts));
|
|
61
|
+
}
|
|
62
|
+
exports.getMetaOutput = getMetaOutput;
|
|
13
63
|
//# sourceMappingURL=getMeta.js.map
|
package/getMeta.js.map
CHANGED
|
@@ -1 +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"}
|
|
1
|
+
{"version":3,"file":"getMeta.js","sourceRoot":"","sources":["../getMeta.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,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;AAeD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,SAAgB,aAAa,CAAC,IAA2B;IACrD,OAAO,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAA;AACvC,CAAC;AAFD,sCAEC"}
|
package/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { GetMetaResult } from "./getMeta";
|
|
2
2
|
export declare const getMeta: typeof import("./getMeta").getMeta;
|
|
3
|
+
export declare const getMetaOutput: typeof import("./getMeta").getMetaOutput;
|
|
3
4
|
export { ProviderArgs } from "./provider";
|
|
4
5
|
export type Provider = import("./provider").Provider;
|
|
5
6
|
export declare const Provider: typeof import("./provider").Provider;
|
|
@@ -9,5 +10,6 @@ import * as config from "./config";
|
|
|
9
10
|
import * as organization from "./organization";
|
|
10
11
|
import * as pipeline from "./pipeline";
|
|
11
12
|
import * as team from "./team";
|
|
13
|
+
import * as testsuite from "./testsuite";
|
|
12
14
|
import * as types from "./types";
|
|
13
|
-
export { agent, cluster, config, organization, pipeline, team, types, };
|
|
15
|
+
export { agent, cluster, config, organization, pipeline, team, testsuite, types, };
|
package/index.js
CHANGED
|
@@ -2,11 +2,12 @@
|
|
|
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.cluster = exports.agent = exports.Provider = exports.getMeta = void 0;
|
|
5
|
+
exports.types = exports.testsuite = exports.team = exports.pipeline = exports.organization = exports.config = exports.cluster = exports.agent = exports.Provider = exports.getMetaOutput = exports.getMeta = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
exports.getMeta = null;
|
|
9
|
-
|
|
9
|
+
exports.getMetaOutput = null;
|
|
10
|
+
utilities.lazyLoad(exports, ["getMeta", "getMetaOutput"], () => require("./getMeta"));
|
|
10
11
|
exports.Provider = null;
|
|
11
12
|
utilities.lazyLoad(exports, ["Provider"], () => require("./provider"));
|
|
12
13
|
// Export sub-modules:
|
|
@@ -22,6 +23,8 @@ const pipeline = require("./pipeline");
|
|
|
22
23
|
exports.pipeline = pipeline;
|
|
23
24
|
const team = require("./team");
|
|
24
25
|
exports.team = team;
|
|
26
|
+
const testsuite = require("./testsuite");
|
|
27
|
+
exports.testsuite = testsuite;
|
|
25
28
|
const types = require("./types");
|
|
26
29
|
exports.types = types;
|
|
27
30
|
pulumi.runtime.registerResourcePackage("buildkite", {
|
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;
|
|
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;AAC1D,QAAA,aAAa,GAA6C,IAAW,CAAC;AACnF,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,SAAS,EAAC,eAAe,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC;AAIxE,QAAA,QAAQ,GAAyC,IAAW,CAAC;AAC1E,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,UAAU,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC;AAGvE,sBAAsB;AACtB,iCAAiC;AAU7B,sBAAK;AATT,qCAAqC;AAUjC,0BAAO;AATX,mCAAmC;AAU/B,wBAAM;AATV,+CAA+C;AAU3C,oCAAY;AAThB,uCAAuC;AAUnC,4BAAQ;AATZ,+BAA+B;AAU3B,oBAAI;AATR,yCAAyC;AAUrC,8BAAS;AATb,iCAAiC;AAU7B,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"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* This resource allows you to create and manage banners for specific organizations, displayed to all members at the top of each page in Buildkite's UI.
|
|
4
|
+
*
|
|
5
|
+
* More information on organization/system banners can be found in the [documentation](https://buildkite.com/docs/team-management/system-banners).
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as buildkite from "@pulumiverse/buildkite";
|
|
12
|
+
*
|
|
13
|
+
* const banner = new buildkite.organization.Banner("banner", {message: ":warning: Please be aware of the maintenance window this weekend!"});
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* ## Import
|
|
17
|
+
*
|
|
18
|
+
* import an organization banner resource using the banner's GraphQL ID
|
|
19
|
+
*
|
|
20
|
+
* #
|
|
21
|
+
*
|
|
22
|
+
* you can use this query to find the banner's ID:
|
|
23
|
+
*
|
|
24
|
+
* query getOrganizationBannerId {
|
|
25
|
+
*
|
|
26
|
+
* organization(slug: "ORGANIZATION_SLUG") {
|
|
27
|
+
*
|
|
28
|
+
* banners(first: 1) {
|
|
29
|
+
*
|
|
30
|
+
* edges {
|
|
31
|
+
*
|
|
32
|
+
* node {
|
|
33
|
+
*
|
|
34
|
+
* id
|
|
35
|
+
*
|
|
36
|
+
* }
|
|
37
|
+
*
|
|
38
|
+
* }
|
|
39
|
+
*
|
|
40
|
+
* }
|
|
41
|
+
*
|
|
42
|
+
* }
|
|
43
|
+
*
|
|
44
|
+
* }
|
|
45
|
+
*
|
|
46
|
+
* ```sh
|
|
47
|
+
* $ pulumi import buildkite:Organization/banner:Banner banner T3JnYW5pemF0aW9uQmFubmVyLS0tNjZlMmE5YzktM2IzMy00OGE5LTk1NjItMzY2YzMwNzYzN2Uz
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
export declare class Banner extends pulumi.CustomResource {
|
|
51
|
+
/**
|
|
52
|
+
* Get an existing Banner resource's state with the given name, ID, and optional extra
|
|
53
|
+
* properties used to qualify the lookup.
|
|
54
|
+
*
|
|
55
|
+
* @param name The _unique_ name of the resulting resource.
|
|
56
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
57
|
+
* @param state Any extra arguments used during the lookup.
|
|
58
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
59
|
+
*/
|
|
60
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: BannerState, opts?: pulumi.CustomResourceOptions): Banner;
|
|
61
|
+
/**
|
|
62
|
+
* Returns true if the given object is an instance of Banner. This is designed to work even
|
|
63
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
64
|
+
*/
|
|
65
|
+
static isInstance(obj: any): obj is Banner;
|
|
66
|
+
/**
|
|
67
|
+
* The organization banner's message.
|
|
68
|
+
*/
|
|
69
|
+
readonly message: pulumi.Output<string>;
|
|
70
|
+
/**
|
|
71
|
+
* The UUID of the organization banner.
|
|
72
|
+
*/
|
|
73
|
+
readonly uuid: pulumi.Output<string>;
|
|
74
|
+
/**
|
|
75
|
+
* Create a Banner resource with the given unique name, arguments, and options.
|
|
76
|
+
*
|
|
77
|
+
* @param name The _unique_ name of the resource.
|
|
78
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
79
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
80
|
+
*/
|
|
81
|
+
constructor(name: string, args: BannerArgs, opts?: pulumi.CustomResourceOptions);
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Input properties used for looking up and filtering Banner resources.
|
|
85
|
+
*/
|
|
86
|
+
export interface BannerState {
|
|
87
|
+
/**
|
|
88
|
+
* The organization banner's message.
|
|
89
|
+
*/
|
|
90
|
+
message?: pulumi.Input<string>;
|
|
91
|
+
/**
|
|
92
|
+
* The UUID of the organization banner.
|
|
93
|
+
*/
|
|
94
|
+
uuid?: pulumi.Input<string>;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* The set of arguments for constructing a Banner resource.
|
|
98
|
+
*/
|
|
99
|
+
export interface BannerArgs {
|
|
100
|
+
/**
|
|
101
|
+
* The organization banner's message.
|
|
102
|
+
*/
|
|
103
|
+
message: pulumi.Input<string>;
|
|
104
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
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.Banner = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* This resource allows you to create and manage banners for specific organizations, displayed to all members at the top of each page in Buildkite's UI.
|
|
10
|
+
*
|
|
11
|
+
* More information on organization/system banners can be found in the [documentation](https://buildkite.com/docs/team-management/system-banners).
|
|
12
|
+
*
|
|
13
|
+
* ## Example Usage
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as buildkite from "@pulumiverse/buildkite";
|
|
18
|
+
*
|
|
19
|
+
* const banner = new buildkite.organization.Banner("banner", {message: ":warning: Please be aware of the maintenance window this weekend!"});
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* ## Import
|
|
23
|
+
*
|
|
24
|
+
* import an organization banner resource using the banner's GraphQL ID
|
|
25
|
+
*
|
|
26
|
+
* #
|
|
27
|
+
*
|
|
28
|
+
* you can use this query to find the banner's ID:
|
|
29
|
+
*
|
|
30
|
+
* query getOrganizationBannerId {
|
|
31
|
+
*
|
|
32
|
+
* organization(slug: "ORGANIZATION_SLUG") {
|
|
33
|
+
*
|
|
34
|
+
* banners(first: 1) {
|
|
35
|
+
*
|
|
36
|
+
* edges {
|
|
37
|
+
*
|
|
38
|
+
* node {
|
|
39
|
+
*
|
|
40
|
+
* id
|
|
41
|
+
*
|
|
42
|
+
* }
|
|
43
|
+
*
|
|
44
|
+
* }
|
|
45
|
+
*
|
|
46
|
+
* }
|
|
47
|
+
*
|
|
48
|
+
* }
|
|
49
|
+
*
|
|
50
|
+
* }
|
|
51
|
+
*
|
|
52
|
+
* ```sh
|
|
53
|
+
* $ pulumi import buildkite:Organization/banner:Banner banner T3JnYW5pemF0aW9uQmFubmVyLS0tNjZlMmE5YzktM2IzMy00OGE5LTk1NjItMzY2YzMwNzYzN2Uz
|
|
54
|
+
* ```
|
|
55
|
+
*/
|
|
56
|
+
class Banner extends pulumi.CustomResource {
|
|
57
|
+
/**
|
|
58
|
+
* Get an existing Banner resource's state with the given name, ID, and optional extra
|
|
59
|
+
* properties used to qualify the lookup.
|
|
60
|
+
*
|
|
61
|
+
* @param name The _unique_ name of the resulting resource.
|
|
62
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
63
|
+
* @param state Any extra arguments used during the lookup.
|
|
64
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
65
|
+
*/
|
|
66
|
+
static get(name, id, state, opts) {
|
|
67
|
+
return new Banner(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Returns true if the given object is an instance of Banner. This is designed to work even
|
|
71
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
72
|
+
*/
|
|
73
|
+
static isInstance(obj) {
|
|
74
|
+
if (obj === undefined || obj === null) {
|
|
75
|
+
return false;
|
|
76
|
+
}
|
|
77
|
+
return obj['__pulumiType'] === Banner.__pulumiType;
|
|
78
|
+
}
|
|
79
|
+
constructor(name, argsOrState, opts) {
|
|
80
|
+
let resourceInputs = {};
|
|
81
|
+
opts = opts || {};
|
|
82
|
+
if (opts.id) {
|
|
83
|
+
const state = argsOrState;
|
|
84
|
+
resourceInputs["message"] = state ? state.message : undefined;
|
|
85
|
+
resourceInputs["uuid"] = state ? state.uuid : undefined;
|
|
86
|
+
}
|
|
87
|
+
else {
|
|
88
|
+
const args = argsOrState;
|
|
89
|
+
if ((!args || args.message === undefined) && !opts.urn) {
|
|
90
|
+
throw new Error("Missing required property 'message'");
|
|
91
|
+
}
|
|
92
|
+
resourceInputs["message"] = args ? args.message : undefined;
|
|
93
|
+
resourceInputs["uuid"] = undefined /*out*/;
|
|
94
|
+
}
|
|
95
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
96
|
+
super(Banner.__pulumiType, name, resourceInputs, opts);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
exports.Banner = Banner;
|
|
100
|
+
/** @internal */
|
|
101
|
+
Banner.__pulumiType = 'buildkite:Organization/banner:Banner';
|
|
102
|
+
//# sourceMappingURL=banner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"banner.js","sourceRoot":"","sources":["../../organization/banner.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0C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C,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,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,MAAM,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC3D,CAAC;;AA9DL,wBA+DC;AAjDG,gBAAgB;AACO,mBAAY,GAAG,sCAAsC,CAAC"}
|
|
@@ -1,79 +1,26 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* Use this data source to look up the organization settings. It currently supports
|
|
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
|
-
* ```
|
|
3
|
+
* Use this data source to look up the organization settings.
|
|
23
4
|
*/
|
|
24
|
-
export declare function getOrganization(
|
|
25
|
-
/**
|
|
26
|
-
* A collection of arguments for invoking getOrganization.
|
|
27
|
-
*/
|
|
28
|
-
export interface GetOrganizationArgs {
|
|
29
|
-
/**
|
|
30
|
-
* list of IP addresses in CIDR format that are allowed to access the Buildkite API.
|
|
31
|
-
*/
|
|
32
|
-
allowedApiIpAddresses?: string[];
|
|
33
|
-
}
|
|
5
|
+
export declare function getOrganization(opts?: pulumi.InvokeOptions): Promise<GetOrganizationResult>;
|
|
34
6
|
/**
|
|
35
7
|
* A collection of values returned by getOrganization.
|
|
36
8
|
*/
|
|
37
9
|
export interface GetOrganizationResult {
|
|
38
10
|
/**
|
|
39
|
-
*
|
|
11
|
+
* List of IP addresses in CIDR format that are allowed to access the Buildkite API for this organization.
|
|
40
12
|
*/
|
|
41
|
-
readonly allowedApiIpAddresses
|
|
13
|
+
readonly allowedApiIpAddresses: string[];
|
|
42
14
|
/**
|
|
43
|
-
* The
|
|
15
|
+
* The GraphQL ID of the organization.
|
|
44
16
|
*/
|
|
45
17
|
readonly id: string;
|
|
18
|
+
/**
|
|
19
|
+
* The UUID of the organization.
|
|
20
|
+
*/
|
|
46
21
|
readonly uuid: string;
|
|
47
22
|
}
|
|
48
23
|
/**
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
* Use this data source to look up the organization settings. It currently supports
|
|
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
|
-
* ```
|
|
69
|
-
*/
|
|
70
|
-
export declare function getOrganizationOutput(args?: GetOrganizationOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetOrganizationResult>;
|
|
71
|
-
/**
|
|
72
|
-
* A collection of arguments for invoking getOrganization.
|
|
24
|
+
* Use this data source to look up the organization settings.
|
|
73
25
|
*/
|
|
74
|
-
export
|
|
75
|
-
/**
|
|
76
|
-
* list of IP addresses in CIDR format that are allowed to access the Buildkite API.
|
|
77
|
-
*/
|
|
78
|
-
allowedApiIpAddresses?: pulumi.Input<pulumi.Input<string>[]>;
|
|
79
|
-
}
|
|
26
|
+
export declare function getOrganizationOutput(opts?: pulumi.InvokeOptions): pulumi.Output<GetOrganizationResult>;
|