@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.
- package/agent/agentToken.d.ts +0 -2
- package/agent/agentToken.js +6 -8
- package/agent/agentToken.js.map +1 -1
- package/agent/index.js +1 -1
- package/agent/index.js.map +1 -1
- package/cluster/cluster.d.ts +4 -4
- package/cluster/cluster.js +15 -15
- package/cluster/cluster.js.map +1 -1
- package/cluster/clusterAgentToken.d.ts +5 -5
- package/cluster/clusterAgentToken.js +18 -18
- package/cluster/clusterAgentToken.js.map +1 -1
- package/cluster/clusterDefaultQueue.d.ts +15 -8
- package/cluster/clusterDefaultQueue.js +18 -17
- package/cluster/clusterDefaultQueue.js.map +1 -1
- package/cluster/clusterMaintainer.d.ts +159 -0
- package/cluster/clusterMaintainer.js +107 -0
- package/cluster/clusterMaintainer.js.map +1 -0
- package/cluster/clusterQueue.d.ts +64 -4
- package/cluster/clusterQueue.js +44 -16
- package/cluster/clusterQueue.js.map +1 -1
- package/cluster/clusterSecret.d.ts +148 -0
- package/cluster/clusterSecret.js +108 -0
- package/cluster/clusterSecret.js.map +1 -0
- package/cluster/getCluster.d.ts +12 -9
- package/cluster/getCluster.js +11 -10
- package/cluster/getCluster.js.map +1 -1
- package/cluster/getClusters.d.ts +22 -0
- package/cluster/getClusters.js +26 -0
- package/cluster/getClusters.js.map +1 -0
- package/cluster/index.d.ts +9 -0
- package/cluster/index.js +15 -2
- package/cluster/index.js.map +1 -1
- package/config/index.js +1 -1
- package/config/index.js.map +1 -1
- package/config/vars.d.ts +7 -6
- package/config/vars.js +7 -1
- package/config/vars.js.map +1 -1
- package/getMeta.d.ts +21 -19
- package/getMeta.js +23 -20
- package/getMeta.js.map +1 -1
- package/index.d.ts +1 -3
- package/index.js +19 -5
- package/index.js.map +1 -1
- package/organization/banner.d.ts +2 -4
- package/organization/banner.js +8 -10
- package/organization/banner.js.map +1 -1
- package/organization/getMember.d.ts +94 -0
- package/organization/getMember.js +74 -0
- package/organization/getMember.js.map +1 -0
- package/organization/getMembers.d.ts +40 -0
- package/organization/getMembers.js +44 -0
- package/organization/getMembers.js.map +1 -0
- package/organization/getOrganization.d.ts +1 -1
- package/organization/getOrganization.js +3 -2
- package/organization/getOrganization.js.map +1 -1
- package/organization/getPortal.d.ts +95 -0
- package/organization/getPortal.js +50 -0
- package/organization/getPortal.js.map +1 -0
- package/organization/getPortals.d.ts +40 -0
- package/organization/getPortals.js +44 -0
- package/organization/getPortals.js.map +1 -0
- package/organization/getRegistry.d.ts +78 -0
- package/organization/getRegistry.js +34 -0
- package/organization/getRegistry.js.map +1 -0
- package/organization/getRule.d.ts +124 -0
- package/organization/getRule.js +72 -0
- package/organization/getRule.js.map +1 -0
- package/organization/index.d.ts +27 -0
- package/organization/index.js +35 -2
- package/organization/index.js.map +1 -1
- package/organization/organization.d.ts +3 -3
- package/organization/organization.js +10 -10
- package/organization/organization.js.map +1 -1
- package/organization/portal.d.ts +217 -0
- package/organization/portal.js +150 -0
- package/organization/portal.js.map +1 -0
- package/organization/registry.d.ts +161 -0
- package/organization/registry.js +87 -0
- package/organization/registry.js.map +1 -0
- package/organization/rule.d.ts +267 -0
- package/organization/rule.js +212 -0
- package/organization/rule.js.map +1 -0
- package/package.json +2 -1
- package/pipeline/getPipeline.d.ts +11 -7
- package/pipeline/getPipeline.js +7 -8
- package/pipeline/getPipeline.js.map +1 -1
- package/pipeline/getSignedSteps.d.ts +8 -49
- package/pipeline/getSignedSteps.js +13 -50
- package/pipeline/getSignedSteps.js.map +1 -1
- package/pipeline/getTemplate.d.ts +9 -11
- package/pipeline/getTemplate.js +15 -12
- package/pipeline/getTemplate.js.map +1 -1
- package/pipeline/index.d.ts +3 -0
- package/pipeline/index.js +7 -2
- package/pipeline/index.js.map +1 -1
- package/pipeline/pipeline.d.ts +30 -14
- package/pipeline/pipeline.js +54 -48
- package/pipeline/pipeline.js.map +1 -1
- package/pipeline/schedule.d.ts +8 -7
- package/pipeline/schedule.js +31 -30
- package/pipeline/schedule.js.map +1 -1
- package/pipeline/team.d.ts +8 -6
- package/pipeline/team.js +20 -18
- package/pipeline/team.js.map +1 -1
- package/pipeline/template.d.ts +11 -11
- package/pipeline/template.js +23 -23
- package/pipeline/template.js.map +1 -1
- package/pipeline/webhook.d.ts +120 -0
- package/pipeline/webhook.js +111 -0
- package/pipeline/webhook.js.map +1 -0
- package/provider.d.ts +24 -24
- package/provider.js +16 -7
- package/provider.js.map +1 -1
- package/team/getTeam.d.ts +21 -9
- package/team/getTeam.js +11 -10
- package/team/getTeam.js.map +1 -1
- package/team/getTeams.d.ts +22 -0
- package/team/getTeams.js +26 -0
- package/team/getTeams.js.map +1 -0
- package/team/index.d.ts +3 -0
- package/team/index.js +5 -2
- package/team/index.js.map +1 -1
- package/team/member.d.ts +4 -5
- package/team/member.js +16 -17
- package/team/member.js.map +1 -1
- package/team/team.d.ts +54 -7
- package/team/team.js +32 -25
- package/team/team.js.map +1 -1
- package/testsuite/getTestSuite.d.ts +90 -0
- package/testsuite/getTestSuite.js +66 -0
- package/testsuite/getTestSuite.js.map +1 -0
- package/testsuite/index.d.ts +3 -0
- package/testsuite/index.js +5 -2
- package/testsuite/index.js.map +1 -1
- package/testsuite/team.d.ts +4 -5
- package/testsuite/team.js +16 -17
- package/testsuite/team.js.map +1 -1
- package/testsuite/testSuite.d.ts +50 -2
- package/testsuite/testSuite.js +53 -15
- package/testsuite/testSuite.js.map +1 -1
- package/types/index.js +1 -1
- package/types/index.js.map +1 -1
- package/types/input.d.ts +81 -5
- package/types/input.js +1 -1
- package/types/input.js.map +1 -1
- package/types/output.d.ts +323 -5
- package/types/output.js +1 -1
- package/types/output.js.map +1 -1
- package/utilities.d.ts +0 -4
- package/utilities.js +20 -30
- package/utilities.js.map +1 -1
- package/package.json.bak +0 -28
|
@@ -0,0 +1,87 @@
|
|
|
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.Registry = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* This resource allows you to create and manage a Buildkite Registry.
|
|
10
|
+
* Find out more information in our [documentation](https://buildkite.com/docs/package-registries).
|
|
11
|
+
*
|
|
12
|
+
* ## Example Usage
|
|
13
|
+
*
|
|
14
|
+
* ```typescript
|
|
15
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
16
|
+
* import * as buildkite from "@pulumiverse/buildkite";
|
|
17
|
+
*
|
|
18
|
+
* const example = new buildkite.organization.Registry("example", {
|
|
19
|
+
* name: "example",
|
|
20
|
+
* description: "super cool ruby registry",
|
|
21
|
+
* ecosystem: "ruby",
|
|
22
|
+
* emoji: ":ruby:",
|
|
23
|
+
* color: "#ff0000",
|
|
24
|
+
* });
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
class Registry extends pulumi.CustomResource {
|
|
28
|
+
/**
|
|
29
|
+
* Get an existing Registry resource's state with the given name, ID, and optional extra
|
|
30
|
+
* properties used to qualify the lookup.
|
|
31
|
+
*
|
|
32
|
+
* @param name The _unique_ name of the resulting resource.
|
|
33
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
34
|
+
* @param state Any extra arguments used during the lookup.
|
|
35
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
36
|
+
*/
|
|
37
|
+
static get(name, id, state, opts) {
|
|
38
|
+
return new Registry(name, state, { ...opts, id: id });
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Returns true if the given object is an instance of Registry. This is designed to work even
|
|
42
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
43
|
+
*/
|
|
44
|
+
static isInstance(obj) {
|
|
45
|
+
if (obj === undefined || obj === null) {
|
|
46
|
+
return false;
|
|
47
|
+
}
|
|
48
|
+
return obj['__pulumiType'] === Registry.__pulumiType;
|
|
49
|
+
}
|
|
50
|
+
constructor(name, argsOrState, opts) {
|
|
51
|
+
let resourceInputs = {};
|
|
52
|
+
opts = opts || {};
|
|
53
|
+
if (opts.id) {
|
|
54
|
+
const state = argsOrState;
|
|
55
|
+
resourceInputs["color"] = state?.color;
|
|
56
|
+
resourceInputs["description"] = state?.description;
|
|
57
|
+
resourceInputs["ecosystem"] = state?.ecosystem;
|
|
58
|
+
resourceInputs["emoji"] = state?.emoji;
|
|
59
|
+
resourceInputs["name"] = state?.name;
|
|
60
|
+
resourceInputs["oidcPolicy"] = state?.oidcPolicy;
|
|
61
|
+
resourceInputs["slug"] = state?.slug;
|
|
62
|
+
resourceInputs["teamIds"] = state?.teamIds;
|
|
63
|
+
resourceInputs["uuid"] = state?.uuid;
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
const args = argsOrState;
|
|
67
|
+
if (args?.ecosystem === undefined && !opts.urn) {
|
|
68
|
+
throw new Error("Missing required property 'ecosystem'");
|
|
69
|
+
}
|
|
70
|
+
resourceInputs["color"] = args?.color;
|
|
71
|
+
resourceInputs["description"] = args?.description;
|
|
72
|
+
resourceInputs["ecosystem"] = args?.ecosystem;
|
|
73
|
+
resourceInputs["emoji"] = args?.emoji;
|
|
74
|
+
resourceInputs["name"] = args?.name;
|
|
75
|
+
resourceInputs["oidcPolicy"] = args?.oidcPolicy;
|
|
76
|
+
resourceInputs["teamIds"] = args?.teamIds;
|
|
77
|
+
resourceInputs["slug"] = undefined /*out*/;
|
|
78
|
+
resourceInputs["uuid"] = undefined /*out*/;
|
|
79
|
+
}
|
|
80
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
81
|
+
super(Registry.__pulumiType, name, resourceInputs, opts);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
exports.Registry = Registry;
|
|
85
|
+
/** @internal */
|
|
86
|
+
Registry.__pulumiType = 'buildkite:Organization/registry:Registry';
|
|
87
|
+
//# sourceMappingURL=registry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../organization/registry.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;GAkBG;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,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC/D,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;IAiDD,YAAY,IAAY,EAAE,WAA0C,EAAE,IAAmC;QACrG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAwC,CAAC;YACvD,cAAc,CAAC,OAAO,CAAC,GAAG,KAAK,EAAE,KAAK,CAAC;YACvC,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,EAAE,WAAW,CAAC;YACnD,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,EAAE,SAAS,CAAC;YAC/C,cAAc,CAAC,OAAO,CAAC,GAAG,KAAK,EAAE,KAAK,CAAC;YACvC,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK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,GAAG,0CAA0C,CAAC"}
|
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* > Rules is a feature that is currently in development and enabled on an opt-in basis for early access. To have this enabled for your organization for utilizing this data source, please reach out to Buildkite's Support Team.
|
|
4
|
+
*
|
|
5
|
+
* An Organization Rule allows specifying explicit rules between two Buildkite resources and the desired effect/action.
|
|
6
|
+
*
|
|
7
|
+
* More information on organization rules can be found in the [documentation](https://buildkite.com/docs/pipelines/rules).
|
|
8
|
+
*
|
|
9
|
+
* ## Example Usage
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as buildkite from "@pulumiverse/buildkite";
|
|
14
|
+
*
|
|
15
|
+
* // Creates a TRIGGER_BUILD organization rule with required attributes
|
|
16
|
+
* const triggerBuildTestDev = new buildkite.organization.Rule("trigger_build_test_dev", {
|
|
17
|
+
* type: "pipeline.trigger_build.pipeline",
|
|
18
|
+
* value: JSON.stringify({
|
|
19
|
+
* source_pipeline: appDevDeploy.uuid,
|
|
20
|
+
* target_pipeline: appTestCi.uuid,
|
|
21
|
+
* }),
|
|
22
|
+
* });
|
|
23
|
+
* // Creates a ARTIFACTS_READ organization rule with an optional description
|
|
24
|
+
* const artifactsReadTestDev = new buildkite.organization.Rule("artifacts_read_test_dev", {
|
|
25
|
+
* type: "pipeline.artifacts_read.pipeline",
|
|
26
|
+
* description: "A rule to allow artifact reads by app_test_ci to app_dev_deploy",
|
|
27
|
+
* value: JSON.stringify({
|
|
28
|
+
* source_pipeline: appTestCi.uuid,
|
|
29
|
+
* target_pipeline: appDevDeploy.uuid,
|
|
30
|
+
* }),
|
|
31
|
+
* });
|
|
32
|
+
* // Creates a TRIGGER_BUILD organization rule with an optional description and conditions
|
|
33
|
+
* const triggerBuildTestDevCond = new buildkite.organization.Rule("trigger_build_test_dev_cond", {
|
|
34
|
+
* type: "pipeline.trigger_build.pipeline",
|
|
35
|
+
* description: "A rule to allow app_dev_deploy to trigger app_test_ci builds with conditions",
|
|
36
|
+
* value: JSON.stringify({
|
|
37
|
+
* source_pipeline: appDevDeploy.uuid,
|
|
38
|
+
* target_pipeline: appTestCi.uuid,
|
|
39
|
+
* conditions: [
|
|
40
|
+
* "source.build.creator.teams includes 'deploy'",
|
|
41
|
+
* "source.build.branch == 'main'",
|
|
42
|
+
* ],
|
|
43
|
+
* }),
|
|
44
|
+
* });
|
|
45
|
+
* ```
|
|
46
|
+
*
|
|
47
|
+
* ## Import
|
|
48
|
+
*
|
|
49
|
+
* Using `pulumi import`, import resources using the `id`. For example:
|
|
50
|
+
*
|
|
51
|
+
* import an organization rule resource using the rules GraphQL ID
|
|
52
|
+
*
|
|
53
|
+
* You can use this query to find the first 50 organiation rules (adjust for less or more):
|
|
54
|
+
*
|
|
55
|
+
* query getOrganizationRules {
|
|
56
|
+
*
|
|
57
|
+
* organization(slug: "ORGANIZATION_SLUG") {
|
|
58
|
+
*
|
|
59
|
+
* rules(first: 50) {
|
|
60
|
+
*
|
|
61
|
+
* edges{
|
|
62
|
+
*
|
|
63
|
+
* node{
|
|
64
|
+
*
|
|
65
|
+
* id
|
|
66
|
+
*
|
|
67
|
+
* sourceType
|
|
68
|
+
*
|
|
69
|
+
* targetType
|
|
70
|
+
*
|
|
71
|
+
* action
|
|
72
|
+
*
|
|
73
|
+
* }
|
|
74
|
+
*
|
|
75
|
+
* }
|
|
76
|
+
*
|
|
77
|
+
* }
|
|
78
|
+
*
|
|
79
|
+
* }
|
|
80
|
+
*
|
|
81
|
+
* }
|
|
82
|
+
*
|
|
83
|
+
* Depending on the speciific source/target, you're also able to filter on the source/target information
|
|
84
|
+
*
|
|
85
|
+
* query getOrganizationRules {
|
|
86
|
+
*
|
|
87
|
+
* organization(slug: "ORGANIZATION_SLUG") {
|
|
88
|
+
*
|
|
89
|
+
* rules(first: 50) {
|
|
90
|
+
*
|
|
91
|
+
* edges{
|
|
92
|
+
*
|
|
93
|
+
* node{
|
|
94
|
+
*
|
|
95
|
+
* id
|
|
96
|
+
*
|
|
97
|
+
* sourceType
|
|
98
|
+
*
|
|
99
|
+
* source {
|
|
100
|
+
*
|
|
101
|
+
* ... on Pipeline{
|
|
102
|
+
*
|
|
103
|
+
* uuid
|
|
104
|
+
*
|
|
105
|
+
* name
|
|
106
|
+
*
|
|
107
|
+
* }
|
|
108
|
+
*
|
|
109
|
+
* }
|
|
110
|
+
*
|
|
111
|
+
* targetType
|
|
112
|
+
*
|
|
113
|
+
* target {
|
|
114
|
+
*
|
|
115
|
+
* ... on Pipeline{
|
|
116
|
+
*
|
|
117
|
+
* uuid
|
|
118
|
+
*
|
|
119
|
+
* name
|
|
120
|
+
*
|
|
121
|
+
* }
|
|
122
|
+
*
|
|
123
|
+
* }
|
|
124
|
+
*
|
|
125
|
+
* action
|
|
126
|
+
*
|
|
127
|
+
* }
|
|
128
|
+
*
|
|
129
|
+
* }
|
|
130
|
+
*
|
|
131
|
+
* }
|
|
132
|
+
*
|
|
133
|
+
* }
|
|
134
|
+
*
|
|
135
|
+
* }
|
|
136
|
+
*
|
|
137
|
+
* ```sh
|
|
138
|
+
* $ pulumi import buildkite:Organization/rule:Rule artifact_read UnVsZS0tLTAxOTE5NmU2LWNiNjctNzZiZi1iYzAyLTVhYzFiNzhhMWMyOA==
|
|
139
|
+
* ```
|
|
140
|
+
*/
|
|
141
|
+
export declare class Rule extends pulumi.CustomResource {
|
|
142
|
+
/**
|
|
143
|
+
* Get an existing Rule resource's state with the given name, ID, and optional extra
|
|
144
|
+
* properties used to qualify the lookup.
|
|
145
|
+
*
|
|
146
|
+
* @param name The _unique_ name of the resulting resource.
|
|
147
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
148
|
+
* @param state Any extra arguments used during the lookup.
|
|
149
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
150
|
+
*/
|
|
151
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: RuleState, opts?: pulumi.CustomResourceOptions): Rule;
|
|
152
|
+
/**
|
|
153
|
+
* Returns true if the given object is an instance of Rule. This is designed to work even
|
|
154
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
155
|
+
*/
|
|
156
|
+
static isInstance(obj: any): obj is Rule;
|
|
157
|
+
/**
|
|
158
|
+
* The action defined between source and target resources.
|
|
159
|
+
*/
|
|
160
|
+
readonly action: pulumi.Output<string>;
|
|
161
|
+
/**
|
|
162
|
+
* The description of the organization rule.
|
|
163
|
+
*/
|
|
164
|
+
readonly description: pulumi.Output<string | undefined>;
|
|
165
|
+
/**
|
|
166
|
+
* Whether this organization rule allows or denies the action to take place between source and target resources.
|
|
167
|
+
*/
|
|
168
|
+
readonly effect: pulumi.Output<string>;
|
|
169
|
+
/**
|
|
170
|
+
* The source resource type that this organization rule allows or denies to invoke its defined action.
|
|
171
|
+
*/
|
|
172
|
+
readonly sourceType: pulumi.Output<string>;
|
|
173
|
+
/**
|
|
174
|
+
* The UUID of the resource that this organization rule allows or denies invocating its defined action.
|
|
175
|
+
*/
|
|
176
|
+
readonly sourceUuid: pulumi.Output<string>;
|
|
177
|
+
/**
|
|
178
|
+
* The target resource type that this organization rule allows or denies the source to respective action.
|
|
179
|
+
*/
|
|
180
|
+
readonly targetType: pulumi.Output<string>;
|
|
181
|
+
/**
|
|
182
|
+
* The UUID of the target resource that this organization rule allows or denies invocation its respective action.
|
|
183
|
+
*/
|
|
184
|
+
readonly targetUuid: pulumi.Output<string>;
|
|
185
|
+
/**
|
|
186
|
+
* The type of organization rule.
|
|
187
|
+
*/
|
|
188
|
+
readonly type: pulumi.Output<string>;
|
|
189
|
+
/**
|
|
190
|
+
* The UUID of the organization rule.
|
|
191
|
+
*/
|
|
192
|
+
readonly uuid: pulumi.Output<string>;
|
|
193
|
+
/**
|
|
194
|
+
* The JSON document that this organization rule implements.
|
|
195
|
+
*/
|
|
196
|
+
readonly value: pulumi.Output<string>;
|
|
197
|
+
/**
|
|
198
|
+
* Create a Rule resource with the given unique name, arguments, and options.
|
|
199
|
+
*
|
|
200
|
+
* @param name The _unique_ name of the resource.
|
|
201
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
202
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
203
|
+
*/
|
|
204
|
+
constructor(name: string, args: RuleArgs, opts?: pulumi.CustomResourceOptions);
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* Input properties used for looking up and filtering Rule resources.
|
|
208
|
+
*/
|
|
209
|
+
export interface RuleState {
|
|
210
|
+
/**
|
|
211
|
+
* The action defined between source and target resources.
|
|
212
|
+
*/
|
|
213
|
+
action?: pulumi.Input<string>;
|
|
214
|
+
/**
|
|
215
|
+
* The description of the organization rule.
|
|
216
|
+
*/
|
|
217
|
+
description?: pulumi.Input<string>;
|
|
218
|
+
/**
|
|
219
|
+
* Whether this organization rule allows or denies the action to take place between source and target resources.
|
|
220
|
+
*/
|
|
221
|
+
effect?: pulumi.Input<string>;
|
|
222
|
+
/**
|
|
223
|
+
* The source resource type that this organization rule allows or denies to invoke its defined action.
|
|
224
|
+
*/
|
|
225
|
+
sourceType?: pulumi.Input<string>;
|
|
226
|
+
/**
|
|
227
|
+
* The UUID of the resource that this organization rule allows or denies invocating its defined action.
|
|
228
|
+
*/
|
|
229
|
+
sourceUuid?: pulumi.Input<string>;
|
|
230
|
+
/**
|
|
231
|
+
* The target resource type that this organization rule allows or denies the source to respective action.
|
|
232
|
+
*/
|
|
233
|
+
targetType?: pulumi.Input<string>;
|
|
234
|
+
/**
|
|
235
|
+
* The UUID of the target resource that this organization rule allows or denies invocation its respective action.
|
|
236
|
+
*/
|
|
237
|
+
targetUuid?: pulumi.Input<string>;
|
|
238
|
+
/**
|
|
239
|
+
* The type of organization rule.
|
|
240
|
+
*/
|
|
241
|
+
type?: pulumi.Input<string>;
|
|
242
|
+
/**
|
|
243
|
+
* The UUID of the organization rule.
|
|
244
|
+
*/
|
|
245
|
+
uuid?: pulumi.Input<string>;
|
|
246
|
+
/**
|
|
247
|
+
* The JSON document that this organization rule implements.
|
|
248
|
+
*/
|
|
249
|
+
value?: pulumi.Input<string>;
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* The set of arguments for constructing a Rule resource.
|
|
253
|
+
*/
|
|
254
|
+
export interface RuleArgs {
|
|
255
|
+
/**
|
|
256
|
+
* The description of the organization rule.
|
|
257
|
+
*/
|
|
258
|
+
description?: pulumi.Input<string>;
|
|
259
|
+
/**
|
|
260
|
+
* The type of organization rule.
|
|
261
|
+
*/
|
|
262
|
+
type: pulumi.Input<string>;
|
|
263
|
+
/**
|
|
264
|
+
* The JSON document that this organization rule implements.
|
|
265
|
+
*/
|
|
266
|
+
value: pulumi.Input<string>;
|
|
267
|
+
}
|
|
@@ -0,0 +1,212 @@
|
|
|
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.Rule = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* > Rules is a feature that is currently in development and enabled on an opt-in basis for early access. To have this enabled for your organization for utilizing this data source, please reach out to Buildkite's Support Team.
|
|
10
|
+
*
|
|
11
|
+
* An Organization Rule allows specifying explicit rules between two Buildkite resources and the desired effect/action.
|
|
12
|
+
*
|
|
13
|
+
* More information on organization rules can be found in the [documentation](https://buildkite.com/docs/pipelines/rules).
|
|
14
|
+
*
|
|
15
|
+
* ## Example Usage
|
|
16
|
+
*
|
|
17
|
+
* ```typescript
|
|
18
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
19
|
+
* import * as buildkite from "@pulumiverse/buildkite";
|
|
20
|
+
*
|
|
21
|
+
* // Creates a TRIGGER_BUILD organization rule with required attributes
|
|
22
|
+
* const triggerBuildTestDev = new buildkite.organization.Rule("trigger_build_test_dev", {
|
|
23
|
+
* type: "pipeline.trigger_build.pipeline",
|
|
24
|
+
* value: JSON.stringify({
|
|
25
|
+
* source_pipeline: appDevDeploy.uuid,
|
|
26
|
+
* target_pipeline: appTestCi.uuid,
|
|
27
|
+
* }),
|
|
28
|
+
* });
|
|
29
|
+
* // Creates a ARTIFACTS_READ organization rule with an optional description
|
|
30
|
+
* const artifactsReadTestDev = new buildkite.organization.Rule("artifacts_read_test_dev", {
|
|
31
|
+
* type: "pipeline.artifacts_read.pipeline",
|
|
32
|
+
* description: "A rule to allow artifact reads by app_test_ci to app_dev_deploy",
|
|
33
|
+
* value: JSON.stringify({
|
|
34
|
+
* source_pipeline: appTestCi.uuid,
|
|
35
|
+
* target_pipeline: appDevDeploy.uuid,
|
|
36
|
+
* }),
|
|
37
|
+
* });
|
|
38
|
+
* // Creates a TRIGGER_BUILD organization rule with an optional description and conditions
|
|
39
|
+
* const triggerBuildTestDevCond = new buildkite.organization.Rule("trigger_build_test_dev_cond", {
|
|
40
|
+
* type: "pipeline.trigger_build.pipeline",
|
|
41
|
+
* description: "A rule to allow app_dev_deploy to trigger app_test_ci builds with conditions",
|
|
42
|
+
* value: JSON.stringify({
|
|
43
|
+
* source_pipeline: appDevDeploy.uuid,
|
|
44
|
+
* target_pipeline: appTestCi.uuid,
|
|
45
|
+
* conditions: [
|
|
46
|
+
* "source.build.creator.teams includes 'deploy'",
|
|
47
|
+
* "source.build.branch == 'main'",
|
|
48
|
+
* ],
|
|
49
|
+
* }),
|
|
50
|
+
* });
|
|
51
|
+
* ```
|
|
52
|
+
*
|
|
53
|
+
* ## Import
|
|
54
|
+
*
|
|
55
|
+
* Using `pulumi import`, import resources using the `id`. For example:
|
|
56
|
+
*
|
|
57
|
+
* import an organization rule resource using the rules GraphQL ID
|
|
58
|
+
*
|
|
59
|
+
* You can use this query to find the first 50 organiation rules (adjust for less or more):
|
|
60
|
+
*
|
|
61
|
+
* query getOrganizationRules {
|
|
62
|
+
*
|
|
63
|
+
* organization(slug: "ORGANIZATION_SLUG") {
|
|
64
|
+
*
|
|
65
|
+
* rules(first: 50) {
|
|
66
|
+
*
|
|
67
|
+
* edges{
|
|
68
|
+
*
|
|
69
|
+
* node{
|
|
70
|
+
*
|
|
71
|
+
* id
|
|
72
|
+
*
|
|
73
|
+
* sourceType
|
|
74
|
+
*
|
|
75
|
+
* targetType
|
|
76
|
+
*
|
|
77
|
+
* action
|
|
78
|
+
*
|
|
79
|
+
* }
|
|
80
|
+
*
|
|
81
|
+
* }
|
|
82
|
+
*
|
|
83
|
+
* }
|
|
84
|
+
*
|
|
85
|
+
* }
|
|
86
|
+
*
|
|
87
|
+
* }
|
|
88
|
+
*
|
|
89
|
+
* Depending on the speciific source/target, you're also able to filter on the source/target information
|
|
90
|
+
*
|
|
91
|
+
* query getOrganizationRules {
|
|
92
|
+
*
|
|
93
|
+
* organization(slug: "ORGANIZATION_SLUG") {
|
|
94
|
+
*
|
|
95
|
+
* rules(first: 50) {
|
|
96
|
+
*
|
|
97
|
+
* edges{
|
|
98
|
+
*
|
|
99
|
+
* node{
|
|
100
|
+
*
|
|
101
|
+
* id
|
|
102
|
+
*
|
|
103
|
+
* sourceType
|
|
104
|
+
*
|
|
105
|
+
* source {
|
|
106
|
+
*
|
|
107
|
+
* ... on Pipeline{
|
|
108
|
+
*
|
|
109
|
+
* uuid
|
|
110
|
+
*
|
|
111
|
+
* name
|
|
112
|
+
*
|
|
113
|
+
* }
|
|
114
|
+
*
|
|
115
|
+
* }
|
|
116
|
+
*
|
|
117
|
+
* targetType
|
|
118
|
+
*
|
|
119
|
+
* target {
|
|
120
|
+
*
|
|
121
|
+
* ... on Pipeline{
|
|
122
|
+
*
|
|
123
|
+
* uuid
|
|
124
|
+
*
|
|
125
|
+
* name
|
|
126
|
+
*
|
|
127
|
+
* }
|
|
128
|
+
*
|
|
129
|
+
* }
|
|
130
|
+
*
|
|
131
|
+
* action
|
|
132
|
+
*
|
|
133
|
+
* }
|
|
134
|
+
*
|
|
135
|
+
* }
|
|
136
|
+
*
|
|
137
|
+
* }
|
|
138
|
+
*
|
|
139
|
+
* }
|
|
140
|
+
*
|
|
141
|
+
* }
|
|
142
|
+
*
|
|
143
|
+
* ```sh
|
|
144
|
+
* $ pulumi import buildkite:Organization/rule:Rule artifact_read UnVsZS0tLTAxOTE5NmU2LWNiNjctNzZiZi1iYzAyLTVhYzFiNzhhMWMyOA==
|
|
145
|
+
* ```
|
|
146
|
+
*/
|
|
147
|
+
class Rule extends pulumi.CustomResource {
|
|
148
|
+
/**
|
|
149
|
+
* Get an existing Rule resource's state with the given name, ID, and optional extra
|
|
150
|
+
* properties used to qualify the lookup.
|
|
151
|
+
*
|
|
152
|
+
* @param name The _unique_ name of the resulting resource.
|
|
153
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
154
|
+
* @param state Any extra arguments used during the lookup.
|
|
155
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
156
|
+
*/
|
|
157
|
+
static get(name, id, state, opts) {
|
|
158
|
+
return new Rule(name, state, { ...opts, id: id });
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Returns true if the given object is an instance of Rule. This is designed to work even
|
|
162
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
163
|
+
*/
|
|
164
|
+
static isInstance(obj) {
|
|
165
|
+
if (obj === undefined || obj === null) {
|
|
166
|
+
return false;
|
|
167
|
+
}
|
|
168
|
+
return obj['__pulumiType'] === Rule.__pulumiType;
|
|
169
|
+
}
|
|
170
|
+
constructor(name, argsOrState, opts) {
|
|
171
|
+
let resourceInputs = {};
|
|
172
|
+
opts = opts || {};
|
|
173
|
+
if (opts.id) {
|
|
174
|
+
const state = argsOrState;
|
|
175
|
+
resourceInputs["action"] = state?.action;
|
|
176
|
+
resourceInputs["description"] = state?.description;
|
|
177
|
+
resourceInputs["effect"] = state?.effect;
|
|
178
|
+
resourceInputs["sourceType"] = state?.sourceType;
|
|
179
|
+
resourceInputs["sourceUuid"] = state?.sourceUuid;
|
|
180
|
+
resourceInputs["targetType"] = state?.targetType;
|
|
181
|
+
resourceInputs["targetUuid"] = state?.targetUuid;
|
|
182
|
+
resourceInputs["type"] = state?.type;
|
|
183
|
+
resourceInputs["uuid"] = state?.uuid;
|
|
184
|
+
resourceInputs["value"] = state?.value;
|
|
185
|
+
}
|
|
186
|
+
else {
|
|
187
|
+
const args = argsOrState;
|
|
188
|
+
if (args?.type === undefined && !opts.urn) {
|
|
189
|
+
throw new Error("Missing required property 'type'");
|
|
190
|
+
}
|
|
191
|
+
if (args?.value === undefined && !opts.urn) {
|
|
192
|
+
throw new Error("Missing required property 'value'");
|
|
193
|
+
}
|
|
194
|
+
resourceInputs["description"] = args?.description;
|
|
195
|
+
resourceInputs["type"] = args?.type;
|
|
196
|
+
resourceInputs["value"] = args?.value;
|
|
197
|
+
resourceInputs["action"] = undefined /*out*/;
|
|
198
|
+
resourceInputs["effect"] = undefined /*out*/;
|
|
199
|
+
resourceInputs["sourceType"] = undefined /*out*/;
|
|
200
|
+
resourceInputs["sourceUuid"] = undefined /*out*/;
|
|
201
|
+
resourceInputs["targetType"] = undefined /*out*/;
|
|
202
|
+
resourceInputs["targetUuid"] = undefined /*out*/;
|
|
203
|
+
resourceInputs["uuid"] = undefined /*out*/;
|
|
204
|
+
}
|
|
205
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
206
|
+
super(Rule.__pulumiType, name, resourceInputs, opts);
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
exports.Rule = Rule;
|
|
210
|
+
/** @internal */
|
|
211
|
+
Rule.__pulumiType = 'buildkite:Organization/rule:Rule';
|
|
212
|
+
//# sourceMappingURL=rule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rule.js","sourceRoot":"","sources":["../../organization/rule.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAA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,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,IAAI,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACzD,CAAC;;AAjHL,oBAkHC;AApGG,gBAAgB;AACO,iBAAY,GAAG,kCAAkC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumiverse/buildkite",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"description": "A Pulumi package for creating and managing Buildkite resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
"pulumi": {
|
|
24
24
|
"resource": true,
|
|
25
25
|
"name": "buildkite",
|
|
26
|
+
"version": "3.2.0",
|
|
26
27
|
"server": "github://api.github.com/pulumiverse/pulumi-buildkite"
|
|
27
28
|
}
|
|
28
29
|
}
|
|
@@ -6,16 +6,14 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
6
6
|
*
|
|
7
7
|
* ## Example Usage
|
|
8
8
|
*
|
|
9
|
-
* <!--Start PulumiCodeChooser -->
|
|
10
9
|
* ```typescript
|
|
11
10
|
* import * as pulumi from "@pulumi/pulumi";
|
|
12
|
-
* import * as buildkite from "@
|
|
11
|
+
* import * as buildkite from "@pulumiverse/buildkite";
|
|
13
12
|
*
|
|
14
13
|
* const pipeline = buildkite.Pipeline.getPipeline({
|
|
15
14
|
* slug: "buildkite",
|
|
16
15
|
* });
|
|
17
16
|
* ```
|
|
18
|
-
* <!--End PulumiCodeChooser -->
|
|
19
17
|
*/
|
|
20
18
|
export declare function getPipeline(args: GetPipelineArgs, opts?: pulumi.InvokeOptions): Promise<GetPipelineResult>;
|
|
21
19
|
/**
|
|
@@ -31,6 +29,14 @@ export interface GetPipelineArgs {
|
|
|
31
29
|
* A collection of values returned by getPipeline.
|
|
32
30
|
*/
|
|
33
31
|
export interface GetPipelineResult {
|
|
32
|
+
/**
|
|
33
|
+
* The GraphQL ID of the cluster the pipeline is (optionally) attached to.
|
|
34
|
+
*/
|
|
35
|
+
readonly clusterId: string;
|
|
36
|
+
/**
|
|
37
|
+
* The name of the cluster the pipeline is (optionally) attached to.
|
|
38
|
+
*/
|
|
39
|
+
readonly clusterName: string;
|
|
34
40
|
/**
|
|
35
41
|
* The default branch to prefill when new builds are created or triggered.
|
|
36
42
|
*/
|
|
@@ -71,18 +77,16 @@ export interface GetPipelineResult {
|
|
|
71
77
|
*
|
|
72
78
|
* ## Example Usage
|
|
73
79
|
*
|
|
74
|
-
* <!--Start PulumiCodeChooser -->
|
|
75
80
|
* ```typescript
|
|
76
81
|
* import * as pulumi from "@pulumi/pulumi";
|
|
77
|
-
* import * as buildkite from "@
|
|
82
|
+
* import * as buildkite from "@pulumiverse/buildkite";
|
|
78
83
|
*
|
|
79
84
|
* const pipeline = buildkite.Pipeline.getPipeline({
|
|
80
85
|
* slug: "buildkite",
|
|
81
86
|
* });
|
|
82
87
|
* ```
|
|
83
|
-
* <!--End PulumiCodeChooser -->
|
|
84
88
|
*/
|
|
85
|
-
export declare function getPipelineOutput(args: GetPipelineOutputArgs, opts?: pulumi.
|
|
89
|
+
export declare function getPipelineOutput(args: GetPipelineOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetPipelineResult>;
|
|
86
90
|
/**
|
|
87
91
|
* A collection of arguments for invoking getPipeline.
|
|
88
92
|
*/
|