@pulumiverse/buildkite 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +110 -0
  3. package/agent/agentToken.d.ts +94 -0
  4. package/agent/agentToken.js +77 -0
  5. package/agent/agentToken.js.map +1 -0
  6. package/agent/index.d.ts +3 -0
  7. package/agent/index.js +22 -0
  8. package/agent/index.js.map +1 -0
  9. package/config/index.d.ts +1 -0
  10. package/config/index.js +21 -0
  11. package/config/index.js.map +1 -0
  12. package/config/vars.d.ts +16 -0
  13. package/config/vars.js +31 -0
  14. package/config/vars.js.map +1 -0
  15. package/getMeta.d.ts +15 -0
  16. package/getMeta.js +13 -0
  17. package/getMeta.js.map +1 -0
  18. package/index.d.ts +12 -0
  19. package/index.js +34 -0
  20. package/index.js.map +1 -0
  21. package/organization/getOrganization.d.ts +47 -0
  22. package/organization/getOrganization.js +32 -0
  23. package/organization/getOrganization.js.map +1 -0
  24. package/organization/index.d.ts +6 -0
  25. package/organization/index.js +25 -0
  26. package/organization/index.js.map +1 -0
  27. package/organization/settings.d.ts +76 -0
  28. package/organization/settings.js +77 -0
  29. package/organization/settings.js.map +1 -0
  30. package/package.json +29 -0
  31. package/package.json.bak +29 -0
  32. package/pipeline/getPipeline.d.ts +89 -0
  33. package/pipeline/getPipeline.js +57 -0
  34. package/pipeline/getPipeline.js.map +1 -0
  35. package/pipeline/index.d.ts +9 -0
  36. package/pipeline/index.js +30 -0
  37. package/pipeline/index.js.map +1 -0
  38. package/pipeline/pipeline.d.ts +363 -0
  39. package/pipeline/pipeline.js +186 -0
  40. package/pipeline/pipeline.js.map +1 -0
  41. package/pipeline/schedule.d.ts +166 -0
  42. package/pipeline/schedule.js +106 -0
  43. package/pipeline/schedule.js.map +1 -0
  44. package/provider.d.ts +59 -0
  45. package/provider.js +54 -0
  46. package/provider.js.map +1 -0
  47. package/scripts/install-pulumi-plugin.js +26 -0
  48. package/team/getTeam.d.ts +97 -0
  49. package/team/getTeam.js +57 -0
  50. package/team/getTeam.js.map +1 -0
  51. package/team/index.d.ts +9 -0
  52. package/team/index.js +30 -0
  53. package/team/index.js.map +1 -0
  54. package/team/member.d.ts +149 -0
  55. package/team/member.js +133 -0
  56. package/team/member.js.map +1 -0
  57. package/team/team.d.ts +146 -0
  58. package/team/team.js +94 -0
  59. package/team/team.js.map +1 -0
  60. package/types/index.d.ts +3 -0
  61. package/types/index.js +11 -0
  62. package/types/index.js.map +1 -0
  63. package/types/input.d.ts +88 -0
  64. package/types/input.js +5 -0
  65. package/types/input.js.map +1 -0
  66. package/types/output.d.ts +87 -0
  67. package/types/output.js +5 -0
  68. package/types/output.js.map +1 -0
  69. package/utilities.d.ts +4 -0
  70. package/utilities.js +69 -0
  71. package/utilities.js.map +1 -0
@@ -0,0 +1,149 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * ## # Resource: teamMember
4
+ *
5
+ * This resource allows manage team membership for existing organization users.
6
+ *
7
+ * The user must already be part of the organization to which you are managing team membership. This will not invite a new user to the organization.
8
+ *
9
+ * Buildkite Documentation: https://buildkite.com/docs/pipelines/permissions
10
+ *
11
+ * Note: You must first enable Teams on your organization.
12
+ *
13
+ * ## Example Usage
14
+ *
15
+ * ```typescript
16
+ * import * as pulumi from "@pulumi/pulumi";
17
+ * import * as buildkite from "@pulumiverse/buildkite";
18
+ *
19
+ * const team = new buildkite.team.Team("team", {
20
+ * privacy: "VISIBLE",
21
+ * defaultTeam: true,
22
+ * defaultMemberRole: "MEMBER",
23
+ * });
24
+ * const aSmith = new buildkite.team.Member("aSmith", {
25
+ * role: "MEMBER",
26
+ * teamId: team.id,
27
+ * userId: "VXNlci0tLWRlOTdmMjBiLWJkZmMtNGNjOC1hOTcwLTY1ODNiZTk2ZGEyYQ==",
28
+ * });
29
+ * ```
30
+ *
31
+ * ## Import
32
+ *
33
+ * Team members can be imported using the GraphQL ID of the membership. Note this is different to the ID of the user.
34
+ *
35
+ * ```sh
36
+ * $ pulumi import buildkite:Team/member:Member a_smith VGVhbU1lbWJlci0tLTVlZDEyMmY2LTM2NjQtNDI1MS04YzMwLTc4NjRiMDdiZDQ4Zg==
37
+ * ```
38
+ *
39
+ * To find the ID of a team member you are trying to import you can use the GraphQL snippet below. A link to this snippet can also be found at https://buildkite.com/user/graphql/console/c6a2cc65-dc59-49df-95c6-7167b68dbd5d. You will need fo fill in the organization slug and search terms for teams and members. Both search terms work on the name of the associated object. graphql query {
40
+ *
41
+ * organization(slug"") {
42
+ *
43
+ * teams(first2, search"") {
44
+ *
45
+ * edges {
46
+ *
47
+ * node {
48
+ *
49
+ * members(first2, search"") {
50
+ *
51
+ * edges {
52
+ *
53
+ * node {
54
+ *
55
+ * id
56
+ *
57
+ * }
58
+ *
59
+ * }
60
+ *
61
+ * }
62
+ *
63
+ * }
64
+ *
65
+ * }
66
+ *
67
+ * }
68
+ *
69
+ * } }
70
+ */
71
+ export declare class Member extends pulumi.CustomResource {
72
+ /**
73
+ * Get an existing Member resource's state with the given name, ID, and optional extra
74
+ * properties used to qualify the lookup.
75
+ *
76
+ * @param name The _unique_ name of the resulting resource.
77
+ * @param id The _unique_ provider ID of the resource to lookup.
78
+ * @param state Any extra arguments used during the lookup.
79
+ * @param opts Optional settings to control the behavior of the CustomResource.
80
+ */
81
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: MemberState, opts?: pulumi.CustomResourceOptions): Member;
82
+ /**
83
+ * Returns true if the given object is an instance of Member. This is designed to work even
84
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
85
+ */
86
+ static isInstance(obj: any): obj is Member;
87
+ /**
88
+ * Either MEMBER or MAINTAINER.
89
+ */
90
+ readonly role: pulumi.Output<string>;
91
+ /**
92
+ * The GraphQL ID of the team to add to/remove from.
93
+ */
94
+ readonly teamId: pulumi.Output<string>;
95
+ /**
96
+ * The GraphQL ID of the user to add/remove.
97
+ */
98
+ readonly userId: pulumi.Output<string>;
99
+ /**
100
+ * The UUID for the team membership.
101
+ */
102
+ readonly uuid: pulumi.Output<string>;
103
+ /**
104
+ * Create a Member resource with the given unique name, arguments, and options.
105
+ *
106
+ * @param name The _unique_ name of the resource.
107
+ * @param args The arguments to use to populate this resource's properties.
108
+ * @param opts A bag of options that control this resource's behavior.
109
+ */
110
+ constructor(name: string, args: MemberArgs, opts?: pulumi.CustomResourceOptions);
111
+ }
112
+ /**
113
+ * Input properties used for looking up and filtering Member resources.
114
+ */
115
+ export interface MemberState {
116
+ /**
117
+ * Either MEMBER or MAINTAINER.
118
+ */
119
+ role?: pulumi.Input<string>;
120
+ /**
121
+ * The GraphQL ID of the team to add to/remove from.
122
+ */
123
+ teamId?: pulumi.Input<string>;
124
+ /**
125
+ * The GraphQL ID of the user to add/remove.
126
+ */
127
+ userId?: pulumi.Input<string>;
128
+ /**
129
+ * The UUID for the team membership.
130
+ */
131
+ uuid?: pulumi.Input<string>;
132
+ }
133
+ /**
134
+ * The set of arguments for constructing a Member resource.
135
+ */
136
+ export interface MemberArgs {
137
+ /**
138
+ * Either MEMBER or MAINTAINER.
139
+ */
140
+ role: pulumi.Input<string>;
141
+ /**
142
+ * The GraphQL ID of the team to add to/remove from.
143
+ */
144
+ teamId: pulumi.Input<string>;
145
+ /**
146
+ * The GraphQL ID of the user to add/remove.
147
+ */
148
+ userId: pulumi.Input<string>;
149
+ }
package/team/member.js ADDED
@@ -0,0 +1,133 @@
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.Member = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * ## # Resource: teamMember
10
+ *
11
+ * This resource allows manage team membership for existing organization users.
12
+ *
13
+ * The user must already be part of the organization to which you are managing team membership. This will not invite a new user to the organization.
14
+ *
15
+ * Buildkite Documentation: https://buildkite.com/docs/pipelines/permissions
16
+ *
17
+ * Note: You must first enable Teams on your organization.
18
+ *
19
+ * ## Example Usage
20
+ *
21
+ * ```typescript
22
+ * import * as pulumi from "@pulumi/pulumi";
23
+ * import * as buildkite from "@pulumiverse/buildkite";
24
+ *
25
+ * const team = new buildkite.team.Team("team", {
26
+ * privacy: "VISIBLE",
27
+ * defaultTeam: true,
28
+ * defaultMemberRole: "MEMBER",
29
+ * });
30
+ * const aSmith = new buildkite.team.Member("aSmith", {
31
+ * role: "MEMBER",
32
+ * teamId: team.id,
33
+ * userId: "VXNlci0tLWRlOTdmMjBiLWJkZmMtNGNjOC1hOTcwLTY1ODNiZTk2ZGEyYQ==",
34
+ * });
35
+ * ```
36
+ *
37
+ * ## Import
38
+ *
39
+ * Team members can be imported using the GraphQL ID of the membership. Note this is different to the ID of the user.
40
+ *
41
+ * ```sh
42
+ * $ pulumi import buildkite:Team/member:Member a_smith VGVhbU1lbWJlci0tLTVlZDEyMmY2LTM2NjQtNDI1MS04YzMwLTc4NjRiMDdiZDQ4Zg==
43
+ * ```
44
+ *
45
+ * To find the ID of a team member you are trying to import you can use the GraphQL snippet below. A link to this snippet can also be found at https://buildkite.com/user/graphql/console/c6a2cc65-dc59-49df-95c6-7167b68dbd5d. You will need fo fill in the organization slug and search terms for teams and members. Both search terms work on the name of the associated object. graphql query {
46
+ *
47
+ * organization(slug"") {
48
+ *
49
+ * teams(first2, search"") {
50
+ *
51
+ * edges {
52
+ *
53
+ * node {
54
+ *
55
+ * members(first2, search"") {
56
+ *
57
+ * edges {
58
+ *
59
+ * node {
60
+ *
61
+ * id
62
+ *
63
+ * }
64
+ *
65
+ * }
66
+ *
67
+ * }
68
+ *
69
+ * }
70
+ *
71
+ * }
72
+ *
73
+ * }
74
+ *
75
+ * } }
76
+ */
77
+ class Member extends pulumi.CustomResource {
78
+ /**
79
+ * Get an existing Member resource's state with the given name, ID, and optional extra
80
+ * properties used to qualify the lookup.
81
+ *
82
+ * @param name The _unique_ name of the resulting resource.
83
+ * @param id The _unique_ provider ID of the resource to lookup.
84
+ * @param state Any extra arguments used during the lookup.
85
+ * @param opts Optional settings to control the behavior of the CustomResource.
86
+ */
87
+ static get(name, id, state, opts) {
88
+ return new Member(name, state, Object.assign(Object.assign({}, opts), { id: id }));
89
+ }
90
+ /**
91
+ * Returns true if the given object is an instance of Member. This is designed to work even
92
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
93
+ */
94
+ static isInstance(obj) {
95
+ if (obj === undefined || obj === null) {
96
+ return false;
97
+ }
98
+ return obj['__pulumiType'] === Member.__pulumiType;
99
+ }
100
+ constructor(name, argsOrState, opts) {
101
+ let resourceInputs = {};
102
+ opts = opts || {};
103
+ if (opts.id) {
104
+ const state = argsOrState;
105
+ resourceInputs["role"] = state ? state.role : undefined;
106
+ resourceInputs["teamId"] = state ? state.teamId : undefined;
107
+ resourceInputs["userId"] = state ? state.userId : undefined;
108
+ resourceInputs["uuid"] = state ? state.uuid : undefined;
109
+ }
110
+ else {
111
+ const args = argsOrState;
112
+ if ((!args || args.role === undefined) && !opts.urn) {
113
+ throw new Error("Missing required property 'role'");
114
+ }
115
+ if ((!args || args.teamId === undefined) && !opts.urn) {
116
+ throw new Error("Missing required property 'teamId'");
117
+ }
118
+ if ((!args || args.userId === undefined) && !opts.urn) {
119
+ throw new Error("Missing required property 'userId'");
120
+ }
121
+ resourceInputs["role"] = args ? args.role : undefined;
122
+ resourceInputs["teamId"] = args ? args.teamId : undefined;
123
+ resourceInputs["userId"] = args ? args.userId : undefined;
124
+ resourceInputs["uuid"] = undefined /*out*/;
125
+ }
126
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
127
+ super(Member.__pulumiType, name, resourceInputs, opts);
128
+ }
129
+ }
130
+ exports.Member = Member;
131
+ /** @internal */
132
+ Member.__pulumiType = 'buildkite:Team/member:Member';
133
+ //# sourceMappingURL=member.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":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AgB;AACO,mBAAY,GAAG,8BAA8B,CAAC"}
package/team/team.d.ts ADDED
@@ -0,0 +1,146 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * ## # Resource: team
4
+ *
5
+ * This resource allows you to create and manage teams.
6
+ *
7
+ * Buildkite Documentation: https://buildkite.com/docs/pipelines/permissions
8
+ *
9
+ * Note: You must first enable Teams on your organization.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as buildkite from "@pulumiverse/buildkite";
16
+ *
17
+ * const team = new buildkite.team.Team("team", {
18
+ * defaultMemberRole: "MEMBER",
19
+ * defaultTeam: true,
20
+ * privacy: "VISIBLE",
21
+ * });
22
+ * ```
23
+ */
24
+ export declare class Team extends pulumi.CustomResource {
25
+ /**
26
+ * Get an existing Team resource's state with the given name, ID, and optional extra
27
+ * properties used to qualify the lookup.
28
+ *
29
+ * @param name The _unique_ name of the resulting resource.
30
+ * @param id The _unique_ provider ID of the resource to lookup.
31
+ * @param state Any extra arguments used during the lookup.
32
+ * @param opts Optional settings to control the behavior of the CustomResource.
33
+ */
34
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: TeamState, opts?: pulumi.CustomResourceOptions): Team;
35
+ /**
36
+ * Returns true if the given object is an instance of Team. This is designed to work even
37
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
38
+ */
39
+ static isInstance(obj: any): obj is Team;
40
+ /**
41
+ * Default role to assign to a team member.
42
+ */
43
+ readonly defaultMemberRole: pulumi.Output<string>;
44
+ /**
45
+ * Whether to assign this team to a user by default.
46
+ */
47
+ readonly defaultTeam: pulumi.Output<boolean>;
48
+ /**
49
+ * The description to assign to the team.
50
+ */
51
+ readonly description: pulumi.Output<string | undefined>;
52
+ /**
53
+ * Whether team members can create.
54
+ */
55
+ readonly membersCanCreatePipelines: pulumi.Output<boolean | undefined>;
56
+ /**
57
+ * The name of the team.
58
+ */
59
+ readonly name: pulumi.Output<string>;
60
+ /**
61
+ * The privacy level to set the team too.
62
+ */
63
+ readonly privacy: pulumi.Output<string>;
64
+ /**
65
+ * The name of the team.
66
+ */
67
+ readonly slug: pulumi.Output<string>;
68
+ /**
69
+ * The UUID for the team.
70
+ */
71
+ readonly uuid: pulumi.Output<string>;
72
+ /**
73
+ * Create a Team resource with the given unique name, arguments, and options.
74
+ *
75
+ * @param name The _unique_ name of the resource.
76
+ * @param args The arguments to use to populate this resource's properties.
77
+ * @param opts A bag of options that control this resource's behavior.
78
+ */
79
+ constructor(name: string, args: TeamArgs, opts?: pulumi.CustomResourceOptions);
80
+ }
81
+ /**
82
+ * Input properties used for looking up and filtering Team resources.
83
+ */
84
+ export interface TeamState {
85
+ /**
86
+ * Default role to assign to a team member.
87
+ */
88
+ defaultMemberRole?: pulumi.Input<string>;
89
+ /**
90
+ * Whether to assign this team to a user by default.
91
+ */
92
+ defaultTeam?: pulumi.Input<boolean>;
93
+ /**
94
+ * The description to assign to the team.
95
+ */
96
+ description?: pulumi.Input<string>;
97
+ /**
98
+ * Whether team members can create.
99
+ */
100
+ membersCanCreatePipelines?: pulumi.Input<boolean>;
101
+ /**
102
+ * The name of the team.
103
+ */
104
+ name?: pulumi.Input<string>;
105
+ /**
106
+ * The privacy level to set the team too.
107
+ */
108
+ privacy?: pulumi.Input<string>;
109
+ /**
110
+ * The name of the team.
111
+ */
112
+ slug?: pulumi.Input<string>;
113
+ /**
114
+ * The UUID for the team.
115
+ */
116
+ uuid?: pulumi.Input<string>;
117
+ }
118
+ /**
119
+ * The set of arguments for constructing a Team resource.
120
+ */
121
+ export interface TeamArgs {
122
+ /**
123
+ * Default role to assign to a team member.
124
+ */
125
+ defaultMemberRole: pulumi.Input<string>;
126
+ /**
127
+ * Whether to assign this team to a user by default.
128
+ */
129
+ defaultTeam: pulumi.Input<boolean>;
130
+ /**
131
+ * The description to assign to the team.
132
+ */
133
+ description?: pulumi.Input<string>;
134
+ /**
135
+ * Whether team members can create.
136
+ */
137
+ membersCanCreatePipelines?: pulumi.Input<boolean>;
138
+ /**
139
+ * The name of the team.
140
+ */
141
+ name?: pulumi.Input<string>;
142
+ /**
143
+ * The privacy level to set the team too.
144
+ */
145
+ privacy: pulumi.Input<string>;
146
+ }
package/team/team.js ADDED
@@ -0,0 +1,94 @@
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.Team = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * ## # Resource: team
10
+ *
11
+ * This resource allows you to create and manage teams.
12
+ *
13
+ * Buildkite Documentation: https://buildkite.com/docs/pipelines/permissions
14
+ *
15
+ * Note: You must first enable Teams on your organization.
16
+ *
17
+ * ## Example Usage
18
+ *
19
+ * ```typescript
20
+ * import * as pulumi from "@pulumi/pulumi";
21
+ * import * as buildkite from "@pulumiverse/buildkite";
22
+ *
23
+ * const team = new buildkite.team.Team("team", {
24
+ * defaultMemberRole: "MEMBER",
25
+ * defaultTeam: true,
26
+ * privacy: "VISIBLE",
27
+ * });
28
+ * ```
29
+ */
30
+ class Team extends pulumi.CustomResource {
31
+ /**
32
+ * Get an existing Team resource's state with the given name, ID, and optional extra
33
+ * properties used to qualify the lookup.
34
+ *
35
+ * @param name The _unique_ name of the resulting resource.
36
+ * @param id The _unique_ provider ID of the resource to lookup.
37
+ * @param state Any extra arguments used during the lookup.
38
+ * @param opts Optional settings to control the behavior of the CustomResource.
39
+ */
40
+ static get(name, id, state, opts) {
41
+ return new Team(name, state, Object.assign(Object.assign({}, opts), { id: id }));
42
+ }
43
+ /**
44
+ * Returns true if the given object is an instance of Team. This is designed to work even
45
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
46
+ */
47
+ static isInstance(obj) {
48
+ if (obj === undefined || obj === null) {
49
+ return false;
50
+ }
51
+ return obj['__pulumiType'] === Team.__pulumiType;
52
+ }
53
+ constructor(name, argsOrState, opts) {
54
+ let resourceInputs = {};
55
+ opts = opts || {};
56
+ if (opts.id) {
57
+ const state = argsOrState;
58
+ resourceInputs["defaultMemberRole"] = state ? state.defaultMemberRole : undefined;
59
+ resourceInputs["defaultTeam"] = state ? state.defaultTeam : undefined;
60
+ resourceInputs["description"] = state ? state.description : undefined;
61
+ resourceInputs["membersCanCreatePipelines"] = state ? state.membersCanCreatePipelines : undefined;
62
+ resourceInputs["name"] = state ? state.name : undefined;
63
+ resourceInputs["privacy"] = state ? state.privacy : undefined;
64
+ resourceInputs["slug"] = state ? state.slug : undefined;
65
+ resourceInputs["uuid"] = state ? state.uuid : undefined;
66
+ }
67
+ else {
68
+ const args = argsOrState;
69
+ if ((!args || args.defaultMemberRole === undefined) && !opts.urn) {
70
+ throw new Error("Missing required property 'defaultMemberRole'");
71
+ }
72
+ if ((!args || args.defaultTeam === undefined) && !opts.urn) {
73
+ throw new Error("Missing required property 'defaultTeam'");
74
+ }
75
+ if ((!args || args.privacy === undefined) && !opts.urn) {
76
+ throw new Error("Missing required property 'privacy'");
77
+ }
78
+ resourceInputs["defaultMemberRole"] = args ? args.defaultMemberRole : undefined;
79
+ resourceInputs["defaultTeam"] = args ? args.defaultTeam : undefined;
80
+ resourceInputs["description"] = args ? args.description : undefined;
81
+ resourceInputs["membersCanCreatePipelines"] = args ? args.membersCanCreatePipelines : undefined;
82
+ resourceInputs["name"] = args ? args.name : undefined;
83
+ resourceInputs["privacy"] = args ? args.privacy : undefined;
84
+ resourceInputs["slug"] = undefined /*out*/;
85
+ resourceInputs["uuid"] = undefined /*out*/;
86
+ }
87
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
88
+ super(Team.__pulumiType, name, resourceInputs, opts);
89
+ }
90
+ }
91
+ exports.Team = Team;
92
+ /** @internal */
93
+ Team.__pulumiType = 'buildkite:Team/team:Team';
94
+ //# sourceMappingURL=team.js.map
@@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AC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,2BAA2B,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAAC,CAAC,SAAS,CAAC;YAChG,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC3C,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,IAAI,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACzD,CAAC;;AAxGL,oBAyGC;AA3FG,gBAAgB;AACO,iBAAY,GAAG,0BAA0B,CAAC"}
@@ -0,0 +1,3 @@
1
+ import * as input from "./input";
2
+ import * as output from "./output";
3
+ export { input, output, };
package/types/index.js ADDED
@@ -0,0 +1,11 @@
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.output = exports.input = void 0;
6
+ // Export sub-modules:
7
+ const input = require("./input");
8
+ exports.input = input;
9
+ const output = require("./output");
10
+ exports.output = output;
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAIjF,sBAAsB;AACtB,iCAAiC;AAI7B,sBAAK;AAHT,mCAAmC;AAI/B,wBAAM"}
@@ -0,0 +1,88 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ export declare namespace Pipeline {
3
+ interface PipelineProviderSettings {
4
+ /**
5
+ * Whether to create builds when branches are pushed.
6
+ */
7
+ buildBranches?: pulumi.Input<boolean>;
8
+ /**
9
+ * Whether to create builds for pull requests from third-party forks.
10
+ */
11
+ buildPullRequestForks?: pulumi.Input<boolean>;
12
+ /**
13
+ * Whether to create builds for pull requests when labels are added or removed.
14
+ */
15
+ buildPullRequestLabelsChanged?: pulumi.Input<boolean>;
16
+ buildPullRequestReadyForReview?: pulumi.Input<boolean>;
17
+ /**
18
+ * Whether to create builds for commits that are part of a Pull Request.
19
+ */
20
+ buildPullRequests?: pulumi.Input<boolean>;
21
+ /**
22
+ * Whether to create builds when tags are pushed.
23
+ *
24
+ * Properties available for Bitbucket Cloud, GitHub, and GitHub Enterprise:
25
+ */
26
+ buildTags?: pulumi.Input<boolean>;
27
+ /**
28
+ * A boolean to enable automatically cancelling any running builds for a branch if the branch is deleted.
29
+ *
30
+ * Additional properties available for GitHub:
31
+ */
32
+ cancelDeletedBranchBuilds?: pulumi.Input<boolean>;
33
+ /**
34
+ * The condition to evaluate when deciding if a build should run. More details available in [the documentation](https://buildkite.com/docs/pipelines/conditionals#conditionals-in-pipelines)
35
+ */
36
+ filterCondition?: pulumi.Input<string>;
37
+ /**
38
+ * [true/false] Whether to filter builds to only run when the condition in `filterCondition` is true
39
+ */
40
+ filterEnabled?: pulumi.Input<boolean>;
41
+ /**
42
+ * Prefix branch names for third-party fork builds to ensure they don't trigger branch conditions. For example, the `master` branch from `some-user` will become `some-user:master`.
43
+ */
44
+ prefixPullRequestForkBranchNames?: pulumi.Input<boolean>;
45
+ /**
46
+ * The status to use for blocked builds. Pending can be used with [required status checks](https://help.github.com/en/articles/enabling-required-status-checks) to prevent merging pull requests with blocked builds.
47
+ */
48
+ publishBlockedAsPending?: pulumi.Input<boolean>;
49
+ /**
50
+ * Whether to update the status of commits in Bitbucket or GitHub.
51
+ */
52
+ publishCommitStatus?: pulumi.Input<boolean>;
53
+ /**
54
+ * Whether to create a separate status for each job in a build, allowing you to see the status of each job directly in Bitbucket or GitHub.
55
+ */
56
+ publishCommitStatusPerStep?: pulumi.Input<boolean>;
57
+ /**
58
+ * The branch filtering pattern. Only pull requests on branches matching this pattern will cause builds to be created.
59
+ */
60
+ pullRequestBranchFilterConfiguration?: pulumi.Input<string>;
61
+ /**
62
+ * Whether to limit the creation of builds to specific branches or patterns.
63
+ */
64
+ pullRequestBranchFilterEnabled?: pulumi.Input<boolean>;
65
+ /**
66
+ * Whether to create a separate status for pull request builds, allowing you to require a passing pull request build in your [required status checks](https://help.github.com/en/articles/enabling-required-status-checks) in GitHub.
67
+ */
68
+ separatePullRequestStatuses?: pulumi.Input<boolean>;
69
+ /**
70
+ * Whether to skip creating a new build for a pull request if an existing build for the commit and branch already exists.
71
+ */
72
+ skipPullRequestBuildsForExistingCommits?: pulumi.Input<boolean>;
73
+ /**
74
+ * What type of event to trigger builds on. Must be one of:
75
+ */
76
+ triggerMode?: pulumi.Input<string>;
77
+ }
78
+ interface PipelineTeam {
79
+ /**
80
+ * The level of access to grant. Must be one of `READ_ONLY`, `BUILD_AND_READ` or `MANAGE_BUILD_AND_READ`.
81
+ */
82
+ accessLevel: pulumi.Input<string>;
83
+ /**
84
+ * The buildkite slug of the team.
85
+ */
86
+ slug: pulumi.Input<string>;
87
+ }
88
+ }
package/types/input.js ADDED
@@ -0,0 +1,5 @@
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
+ //# sourceMappingURL=input.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input.js","sourceRoot":"","sources":["../../types/input.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF"}