@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.
Files changed (97) hide show
  1. package/README.md +5 -0
  2. package/agent/agentToken.d.ts +11 -19
  3. package/agent/agentToken.js +4 -6
  4. package/agent/agentToken.js.map +1 -1
  5. package/cluster/cluster.d.ts +74 -20
  6. package/cluster/cluster.js +54 -6
  7. package/cluster/cluster.js.map +1 -1
  8. package/cluster/clusterAgentToken.d.ts +49 -15
  9. package/cluster/clusterAgentToken.js +26 -8
  10. package/cluster/clusterAgentToken.js.map +1 -1
  11. package/cluster/clusterDefaultQueue.d.ts +130 -0
  12. package/cluster/clusterDefaultQueue.js +121 -0
  13. package/cluster/clusterDefaultQueue.js.map +1 -0
  14. package/cluster/clusterQueue.d.ts +36 -44
  15. package/cluster/clusterQueue.js +29 -37
  16. package/cluster/clusterQueue.js.map +1 -1
  17. package/cluster/getCluster.d.ts +48 -5
  18. package/cluster/getCluster.js +40 -0
  19. package/cluster/getCluster.js.map +1 -1
  20. package/cluster/index.d.ts +3 -0
  21. package/cluster/index.js +6 -1
  22. package/cluster/index.js.map +1 -1
  23. package/config/vars.d.ts +11 -5
  24. package/config/vars.js +12 -0
  25. package/config/vars.js.map +1 -1
  26. package/getMeta.d.ts +49 -2
  27. package/getMeta.js +51 -1
  28. package/getMeta.js.map +1 -1
  29. package/index.d.ts +3 -1
  30. package/index.js +5 -2
  31. package/index.js.map +1 -1
  32. package/organization/banner.d.ts +104 -0
  33. package/organization/banner.js +102 -0
  34. package/organization/banner.js.map +1 -0
  35. package/organization/getOrganization.d.ts +10 -63
  36. package/organization/getOrganization.js +6 -47
  37. package/organization/getOrganization.js.map +1 -1
  38. package/organization/index.d.ts +7 -4
  39. package/organization/index.js +11 -6
  40. package/organization/index.js.map +1 -1
  41. package/organization/organization.d.ts +94 -0
  42. package/organization/{settings.js → organization.js} +20 -20
  43. package/organization/organization.js.map +1 -0
  44. package/package.json +2 -3
  45. package/package.json.bak +1 -2
  46. package/pipeline/getPipeline.d.ts +21 -20
  47. package/pipeline/getPipeline.js +8 -14
  48. package/pipeline/getPipeline.js.map +1 -1
  49. package/pipeline/getSignedSteps.d.ts +139 -0
  50. package/pipeline/getSignedSteps.js +91 -0
  51. package/pipeline/getSignedSteps.js.map +1 -0
  52. package/pipeline/getTemplate.d.ts +116 -0
  53. package/pipeline/getTemplate.js +79 -0
  54. package/pipeline/getTemplate.js.map +1 -0
  55. package/pipeline/index.d.ts +12 -0
  56. package/pipeline/index.js +17 -1
  57. package/pipeline/index.js.map +1 -1
  58. package/pipeline/pipeline.d.ts +117 -181
  59. package/pipeline/pipeline.js +15 -113
  60. package/pipeline/pipeline.js.map +1 -1
  61. package/pipeline/schedule.d.ts +57 -45
  62. package/pipeline/schedule.js +22 -19
  63. package/pipeline/schedule.js.map +1 -1
  64. package/pipeline/team.d.ts +137 -0
  65. package/pipeline/team.js +121 -0
  66. package/pipeline/team.js.map +1 -0
  67. package/pipeline/template.d.ts +155 -0
  68. package/pipeline/template.js +123 -0
  69. package/pipeline/template.js.map +1 -0
  70. package/provider.d.ts +26 -8
  71. package/provider.js +2 -0
  72. package/provider.js.map +1 -1
  73. package/team/getTeam.d.ts +39 -30
  74. package/team/getTeam.js +16 -16
  75. package/team/getTeam.js.map +1 -1
  76. package/team/member.d.ts +31 -33
  77. package/team/member.js +20 -22
  78. package/team/member.js.map +1 -1
  79. package/team/team.d.ts +37 -37
  80. package/team/team.js +17 -17
  81. package/testsuite/index.d.ts +6 -0
  82. package/testsuite/index.js +27 -0
  83. package/testsuite/index.js.map +1 -0
  84. package/testsuite/team.d.ts +160 -0
  85. package/testsuite/team.js +144 -0
  86. package/testsuite/team.js.map +1 -0
  87. package/testsuite/testSuite.d.ts +112 -0
  88. package/testsuite/testSuite.js +83 -0
  89. package/testsuite/testSuite.js.map +1 -0
  90. package/types/input.d.ts +37 -22
  91. package/types/output.d.ts +37 -22
  92. package/utilities.d.ts +4 -0
  93. package/utilities.js +33 -1
  94. package/utilities.js.map +1 -1
  95. package/organization/settings.d.ts +0 -78
  96. package/organization/settings.js.map +0 -1
  97. package/scripts/install-pulumi-plugin.js +0 -26
package/team/getTeam.d.ts CHANGED
@@ -1,11 +1,7 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  /**
3
- * ## # Data Source: team
4
- *
5
- * Use this data source to look up properties of a team. This can be used to
6
- * validate that a team exists before setting the team slug on a pipeline.
7
- *
8
- * Buildkite documentation: https://buildkite.com/docs/pipelines/permissions
3
+ * Use this data source to retrieve a team by slug or id. You can find out more about teams in the Buildkite
4
+ * [documentation](https://buildkite.com/docs/pipelines/permissions).
9
5
  *
10
6
  * ## Example Usage
11
7
  *
@@ -13,66 +9,72 @@ import * as pulumi from "@pulumi/pulumi";
13
9
  * import * as pulumi from "@pulumi/pulumi";
14
10
  * import * as buildkite from "@pulumi/buildkite";
15
11
  *
16
- * const myTeam = buildkite.Team.getTeam({
17
- * slug: "my_team",
12
+ * const teamDev = buildkite.Team.getTeam({
13
+ * id: buildkite_team.team_dev.id,
14
+ * });
15
+ * const team = buildkite.Team.getTeam({
16
+ * slug: "Everyone",
18
17
  * });
19
18
  * ```
20
19
  */
21
- export declare function getTeam(args: GetTeamArgs, opts?: pulumi.InvokeOptions): Promise<GetTeamResult>;
20
+ export declare function getTeam(args?: GetTeamArgs, opts?: pulumi.InvokeOptions): Promise<GetTeamResult>;
22
21
  /**
23
22
  * A collection of arguments for invoking getTeam.
24
23
  */
25
24
  export interface GetTeamArgs {
26
25
  /**
27
- * The slug of the team, available in the URL of the team on buildkite.com
26
+ * The GraphQL ID of the team to find.
28
27
  */
29
- slug: string;
28
+ id?: string;
29
+ /**
30
+ * The slug of the team to find.
31
+ */
32
+ slug?: string;
30
33
  }
31
34
  /**
32
35
  * A collection of values returned by getTeam.
33
36
  */
34
37
  export interface GetTeamResult {
35
38
  /**
36
- * Default role to assign to a team member
39
+ * The default member role of the team.
37
40
  */
38
41
  readonly defaultMemberRole: string;
39
42
  /**
40
- * Whether new org members will be automatically added to this team
43
+ * Whether the team is the default team.
41
44
  */
42
45
  readonly defaultTeam: boolean;
43
46
  /**
44
- * A description of the team
47
+ * The description of the team.
45
48
  */
46
49
  readonly description: string;
47
50
  /**
48
- * The GraphQL ID of the team
51
+ * The GraphQL ID of the team to find.
49
52
  */
50
53
  readonly id: string;
51
54
  /**
52
- * Whether team members can create new pipelines and add them to the team
55
+ * Whether members can create pipelines.
53
56
  */
54
57
  readonly membersCanCreatePipelines: boolean;
55
58
  /**
56
- * The name of the team
59
+ * The name of the team.
57
60
  */
58
61
  readonly name: string;
59
62
  /**
60
- * Whether the team is visible to org members outside this team
63
+ * The privacy setting of the team.
61
64
  */
62
65
  readonly privacy: string;
66
+ /**
67
+ * The slug of the team to find.
68
+ */
63
69
  readonly slug: string;
64
70
  /**
65
- * The UUID of the team
71
+ * The UUID of the team.
66
72
  */
67
73
  readonly uuid: string;
68
74
  }
69
75
  /**
70
- * ## # Data Source: team
71
- *
72
- * Use this data source to look up properties of a team. This can be used to
73
- * validate that a team exists before setting the team slug on a pipeline.
74
- *
75
- * Buildkite documentation: https://buildkite.com/docs/pipelines/permissions
76
+ * Use this data source to retrieve a team by slug or id. You can find out more about teams in the Buildkite
77
+ * [documentation](https://buildkite.com/docs/pipelines/permissions).
76
78
  *
77
79
  * ## Example Usage
78
80
  *
@@ -80,18 +82,25 @@ export interface GetTeamResult {
80
82
  * import * as pulumi from "@pulumi/pulumi";
81
83
  * import * as buildkite from "@pulumi/buildkite";
82
84
  *
83
- * const myTeam = buildkite.Team.getTeam({
84
- * slug: "my_team",
85
+ * const teamDev = buildkite.Team.getTeam({
86
+ * id: buildkite_team.team_dev.id,
87
+ * });
88
+ * const team = buildkite.Team.getTeam({
89
+ * slug: "Everyone",
85
90
  * });
86
91
  * ```
87
92
  */
88
- export declare function getTeamOutput(args: GetTeamOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetTeamResult>;
93
+ export declare function getTeamOutput(args?: GetTeamOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetTeamResult>;
89
94
  /**
90
95
  * A collection of arguments for invoking getTeam.
91
96
  */
92
97
  export interface GetTeamOutputArgs {
93
98
  /**
94
- * The slug of the team, available in the URL of the team on buildkite.com
99
+ * The GraphQL ID of the team to find.
100
+ */
101
+ id?: pulumi.Input<string>;
102
+ /**
103
+ * The slug of the team to find.
95
104
  */
96
- slug: pulumi.Input<string>;
105
+ slug?: pulumi.Input<string>;
97
106
  }
package/team/getTeam.js CHANGED
@@ -6,12 +6,8 @@ exports.getTeamOutput = exports.getTeam = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("../utilities");
8
8
  /**
9
- * ## # Data Source: team
10
- *
11
- * Use this data source to look up properties of a team. This can be used to
12
- * validate that a team exists before setting the team slug on a pipeline.
13
- *
14
- * Buildkite documentation: https://buildkite.com/docs/pipelines/permissions
9
+ * Use this data source to retrieve a team by slug or id. You can find out more about teams in the Buildkite
10
+ * [documentation](https://buildkite.com/docs/pipelines/permissions).
15
11
  *
16
12
  * ## Example Usage
17
13
  *
@@ -19,25 +15,26 @@ const utilities = require("../utilities");
19
15
  * import * as pulumi from "@pulumi/pulumi";
20
16
  * import * as buildkite from "@pulumi/buildkite";
21
17
  *
22
- * const myTeam = buildkite.Team.getTeam({
23
- * slug: "my_team",
18
+ * const teamDev = buildkite.Team.getTeam({
19
+ * id: buildkite_team.team_dev.id,
20
+ * });
21
+ * const team = buildkite.Team.getTeam({
22
+ * slug: "Everyone",
24
23
  * });
25
24
  * ```
26
25
  */
27
26
  function getTeam(args, opts) {
27
+ args = args || {};
28
28
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
29
29
  return pulumi.runtime.invoke("buildkite:Team/getTeam:getTeam", {
30
+ "id": args.id,
30
31
  "slug": args.slug,
31
32
  }, opts);
32
33
  }
33
34
  exports.getTeam = getTeam;
34
35
  /**
35
- * ## # Data Source: team
36
- *
37
- * Use this data source to look up properties of a team. This can be used to
38
- * validate that a team exists before setting the team slug on a pipeline.
39
- *
40
- * Buildkite documentation: https://buildkite.com/docs/pipelines/permissions
36
+ * Use this data source to retrieve a team by slug or id. You can find out more about teams in the Buildkite
37
+ * [documentation](https://buildkite.com/docs/pipelines/permissions).
41
38
  *
42
39
  * ## Example Usage
43
40
  *
@@ -45,8 +42,11 @@ exports.getTeam = getTeam;
45
42
  * import * as pulumi from "@pulumi/pulumi";
46
43
  * import * as buildkite from "@pulumi/buildkite";
47
44
  *
48
- * const myTeam = buildkite.Team.getTeam({
49
- * slug: "my_team",
45
+ * const teamDev = buildkite.Team.getTeam({
46
+ * id: buildkite_team.team_dev.id,
47
+ * });
48
+ * const team = buildkite.Team.getTeam({
49
+ * slug: "Everyone",
50
50
  * });
51
51
  * ```
52
52
  */
@@ -1 +1 @@
1
- {"version":3,"file":"getTeam.js","sourceRoot":"","sources":["../../team/getTeam.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;GAkBG;AACH,SAAgB,OAAO,CAAC,IAAiB,EAAE,IAA2B;IAElE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,gCAAgC,EAAE;QAC3D,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,0BAMC;AAkDD;;;;;;;;;;;;;;;;;;GAkBG;AACH,SAAgB,aAAa,CAAC,IAAuB,EAAE,IAA2B;IAC9E,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAClE,CAAC;AAFD,sCAEC"}
1
+ {"version":3,"file":"getTeam.js","sourceRoot":"","sources":["../../team/getTeam.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,OAAO,CAAC,IAAkB,EAAE,IAA2B;IACnE,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,gCAAgC,EAAE;QAC3D,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,0BAQC;AAyDD;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,aAAa,CAAC,IAAwB,EAAE,IAA2B;IAC/E,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAClE,CAAC;AAFD,sCAEC"}
package/team/member.d.ts CHANGED
@@ -1,14 +1,6 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
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.
3
+ * A team member resource allows for the management of team membership for existing organization users.
12
4
  *
13
5
  * ## Example Usage
14
6
  *
@@ -16,37 +8,37 @@ import * as pulumi from "@pulumi/pulumi";
16
8
  * import * as pulumi from "@pulumi/pulumi";
17
9
  * import * as buildkite from "@pulumiverse/buildkite";
18
10
  *
19
- * const team = new buildkite.team.Team("team", {
11
+ * const everyone = new buildkite.team.Team("everyone", {
20
12
  * privacy: "VISIBLE",
21
- * defaultTeam: true,
13
+ * defaultTeam: false,
22
14
  * defaultMemberRole: "MEMBER",
23
15
  * });
24
16
  * const aSmith = new buildkite.team.Member("aSmith", {
17
+ * teamId: everyone.id,
18
+ * userId: "VGVhbU1lbWJlci0tLTVlZDEyMmY2LTM2NjQtNDI1MS04YzMwLTc4NjRiMDdiZDQ4Zg==",
25
19
  * role: "MEMBER",
26
- * teamId: team.id,
27
- * userId: "VXNlci0tLWRlOTdmMjBiLWJkZmMtNGNjOC1hOTcwLTY1ODNiZTk2ZGEyYQ==",
28
20
  * });
29
21
  * ```
30
22
  *
31
23
  * ## Import
32
24
  *
33
- * Team members can be imported using the GraphQL ID of the membership. Note this is different to the ID of the user.
25
+ * import a team member resource using the GraphQL ID
34
26
  *
35
- * ```sh
36
- * $ pulumi import buildkite:Team/member:Member a_smith VGVhbU1lbWJlci0tLTVlZDEyMmY2LTM2NjQtNDI1MS04YzMwLTc4NjRiMDdiZDQ4Zg==
37
- * ```
27
+ * #
28
+ *
29
+ * you can use this query to find the ID:
38
30
  *
39
- * To find the ID to use, you can use the GraphQL query below. Alternatively, you could use this [pre-saved query](https://buildkite.com/user/graphql/console/ce4540dd-4f60-4e79-8e8f-9f4c3bc8784e), where you will need fo fill in the organization slug and search terms for teams and members. Both search terms (TEAM_SEARCH_TERM and TEAM_MEMBER_SEARCH_TERM) work on the name of the associated object. graphql query getTeamMemberId {
31
+ * query getTeamMemberId {
40
32
  *
41
- * organization(slug"ORGANIZATION_SLUG") {
33
+ * organization(slug: "ORGANIZATION_SLUG") {
42
34
  *
43
- * teams(first2, search"TEAM_SEARCH_TERM") {
35
+ * teams(first: 2, search: "TEAM_SEARCH_TERM") {
44
36
  *
45
37
  * edges {
46
38
  *
47
39
  * node {
48
40
  *
49
- * members(first2, search"TEAM_MEMBER_SEARCH_TERM") {
41
+ * members(first: 2, search: "TEAM_MEMBER_SEARCH_TERM") {
50
42
  *
51
43
  * edges {
52
44
  *
@@ -66,7 +58,13 @@ import * as pulumi from "@pulumi/pulumi";
66
58
  *
67
59
  * }
68
60
  *
69
- * } }
61
+ * }
62
+ *
63
+ * }
64
+ *
65
+ * ```sh
66
+ * $ pulumi import buildkite:Team/member:Member a_smith VGVhbU1lbWJlci0tLTVlZDEyMmY2LTM2NjQtNDI1MS04YzMwLTc4NjRiMDdiZDQ4Zg==
67
+ * ```
70
68
  */
71
69
  export declare class Member extends pulumi.CustomResource {
72
70
  /**
@@ -85,19 +83,19 @@ export declare class Member extends pulumi.CustomResource {
85
83
  */
86
84
  static isInstance(obj: any): obj is Member;
87
85
  /**
88
- * Either MEMBER or MAINTAINER.
86
+ * The role for the user. Either `MEMBER` or `MAINTAINER`.
89
87
  */
90
88
  readonly role: pulumi.Output<string>;
91
89
  /**
92
- * The GraphQL ID of the team to add to/remove from.
90
+ * The GraphQL ID of the team.
93
91
  */
94
92
  readonly teamId: pulumi.Output<string>;
95
93
  /**
96
- * The GraphQL ID of the user to add/remove.
94
+ * The GraphQL ID of the user.
97
95
  */
98
96
  readonly userId: pulumi.Output<string>;
99
97
  /**
100
- * The UUID for the team membership.
98
+ * The UUID of the team membership.
101
99
  */
102
100
  readonly uuid: pulumi.Output<string>;
103
101
  /**
@@ -114,19 +112,19 @@ export declare class Member extends pulumi.CustomResource {
114
112
  */
115
113
  export interface MemberState {
116
114
  /**
117
- * Either MEMBER or MAINTAINER.
115
+ * The role for the user. Either `MEMBER` or `MAINTAINER`.
118
116
  */
119
117
  role?: pulumi.Input<string>;
120
118
  /**
121
- * The GraphQL ID of the team to add to/remove from.
119
+ * The GraphQL ID of the team.
122
120
  */
123
121
  teamId?: pulumi.Input<string>;
124
122
  /**
125
- * The GraphQL ID of the user to add/remove.
123
+ * The GraphQL ID of the user.
126
124
  */
127
125
  userId?: pulumi.Input<string>;
128
126
  /**
129
- * The UUID for the team membership.
127
+ * The UUID of the team membership.
130
128
  */
131
129
  uuid?: pulumi.Input<string>;
132
130
  }
@@ -135,15 +133,15 @@ export interface MemberState {
135
133
  */
136
134
  export interface MemberArgs {
137
135
  /**
138
- * Either MEMBER or MAINTAINER.
136
+ * The role for the user. Either `MEMBER` or `MAINTAINER`.
139
137
  */
140
138
  role: pulumi.Input<string>;
141
139
  /**
142
- * The GraphQL ID of the team to add to/remove from.
140
+ * The GraphQL ID of the team.
143
141
  */
144
142
  teamId: pulumi.Input<string>;
145
143
  /**
146
- * The GraphQL ID of the user to add/remove.
144
+ * The GraphQL ID of the user.
147
145
  */
148
146
  userId: pulumi.Input<string>;
149
147
  }
package/team/member.js CHANGED
@@ -6,15 +6,7 @@ exports.Member = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("../utilities");
8
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.
9
+ * A team member resource allows for the management of team membership for existing organization users.
18
10
  *
19
11
  * ## Example Usage
20
12
  *
@@ -22,37 +14,37 @@ const utilities = require("../utilities");
22
14
  * import * as pulumi from "@pulumi/pulumi";
23
15
  * import * as buildkite from "@pulumiverse/buildkite";
24
16
  *
25
- * const team = new buildkite.team.Team("team", {
17
+ * const everyone = new buildkite.team.Team("everyone", {
26
18
  * privacy: "VISIBLE",
27
- * defaultTeam: true,
19
+ * defaultTeam: false,
28
20
  * defaultMemberRole: "MEMBER",
29
21
  * });
30
22
  * const aSmith = new buildkite.team.Member("aSmith", {
23
+ * teamId: everyone.id,
24
+ * userId: "VGVhbU1lbWJlci0tLTVlZDEyMmY2LTM2NjQtNDI1MS04YzMwLTc4NjRiMDdiZDQ4Zg==",
31
25
  * role: "MEMBER",
32
- * teamId: team.id,
33
- * userId: "VXNlci0tLWRlOTdmMjBiLWJkZmMtNGNjOC1hOTcwLTY1ODNiZTk2ZGEyYQ==",
34
26
  * });
35
27
  * ```
36
28
  *
37
29
  * ## Import
38
30
  *
39
- * Team members can be imported using the GraphQL ID of the membership. Note this is different to the ID of the user.
31
+ * import a team member resource using the GraphQL ID
40
32
  *
41
- * ```sh
42
- * $ pulumi import buildkite:Team/member:Member a_smith VGVhbU1lbWJlci0tLTVlZDEyMmY2LTM2NjQtNDI1MS04YzMwLTc4NjRiMDdiZDQ4Zg==
43
- * ```
33
+ * #
34
+ *
35
+ * you can use this query to find the ID:
44
36
  *
45
- * To find the ID to use, you can use the GraphQL query below. Alternatively, you could use this [pre-saved query](https://buildkite.com/user/graphql/console/ce4540dd-4f60-4e79-8e8f-9f4c3bc8784e), where you will need fo fill in the organization slug and search terms for teams and members. Both search terms (TEAM_SEARCH_TERM and TEAM_MEMBER_SEARCH_TERM) work on the name of the associated object. graphql query getTeamMemberId {
37
+ * query getTeamMemberId {
46
38
  *
47
- * organization(slug"ORGANIZATION_SLUG") {
39
+ * organization(slug: "ORGANIZATION_SLUG") {
48
40
  *
49
- * teams(first2, search"TEAM_SEARCH_TERM") {
41
+ * teams(first: 2, search: "TEAM_SEARCH_TERM") {
50
42
  *
51
43
  * edges {
52
44
  *
53
45
  * node {
54
46
  *
55
- * members(first2, search"TEAM_MEMBER_SEARCH_TERM") {
47
+ * members(first: 2, search: "TEAM_MEMBER_SEARCH_TERM") {
56
48
  *
57
49
  * edges {
58
50
  *
@@ -72,7 +64,13 @@ const utilities = require("../utilities");
72
64
  *
73
65
  * }
74
66
  *
75
- * } }
67
+ * }
68
+ *
69
+ * }
70
+ *
71
+ * ```sh
72
+ * $ pulumi import buildkite:Team/member:Member a_smith VGVhbU1lbWJlci0tLTVlZDEyMmY2LTM2NjQtNDI1MS04YzMwLTc4NjRiMDdiZDQ4Zg==
73
+ * ```
76
74
  */
77
75
  class Member extends pulumi.CustomResource {
78
76
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"member.js","sourceRoot":"","sources":["../../team/member.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoEG;AACH,MAAa,MAAO,SAAQ,MAAM,CAAC,cAAc;IAC7C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAmB,EAAE,IAAmC;QACjH,OAAO,IAAI,MAAM,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC7D,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,MAAM,CAAC,YAAY,CAAC;IACvD,CAAC;IA2BD,YAAY,IAAY,EAAE,WAAsC,EAAE,IAAmC;QACjG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAsC,CAAC;YACrD,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC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CAAC,MAAM,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC3D,CAAC;;AAhFL,wBAiFC;AAnEG,gBAAgB;AACO,mBAAY,GAAG,8BAA8B,CAAC"}
package/team/team.d.ts CHANGED
@@ -1,12 +1,6 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
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.
3
+ * A Team is a group of users that can be given permissions for using Pipelines.This feature is only available to Business and Enterprise customers. You can find out more about Teams in the Buildkite [documentation](https://buildkite.com/docs/team-management/permissions).
10
4
  *
11
5
  * ## Example Usage
12
6
  *
@@ -14,26 +8,26 @@ import * as pulumi from "@pulumi/pulumi";
14
8
  * import * as pulumi from "@pulumi/pulumi";
15
9
  * import * as buildkite from "@pulumiverse/buildkite";
16
10
  *
17
- * const team = new buildkite.team.Team("team", {
11
+ * const everyone = new buildkite.team.Team("everyone", {
18
12
  * defaultMemberRole: "MEMBER",
19
- * defaultTeam: true,
13
+ * defaultTeam: false,
20
14
  * privacy: "VISIBLE",
21
15
  * });
22
16
  * ```
23
17
  *
24
18
  * ## Import
25
19
  *
26
- * Teams can be imported using the `GraphQL ID` (not UUID), e.g.
20
+ * import a team resource using the GraphQL ID
27
21
  *
28
- * ```sh
29
- * $ pulumi import buildkite:Team/team:Team fleet UGlwZWxpbmUtLS00MzVjYWQ1OC1lODFkLTQ1YWYtODYzNy1iMWNmODA3MDIzOGQ=
30
- * ```
22
+ * #
23
+ *
24
+ * you can use this query to find the ID:
31
25
  *
32
- * To find the ID to use, you can use the GraphQL query below. Alternatively, you could use this [pre-saved query](https://buildkite.com/user/graphql/console/6e74c89c-4e91-4d1d-92ca-4fb19d0ea453), where you will need fo fill in the organization slug and search term (TEAM_SEARCH_TERM) for the team. graphql query getTeamId {
26
+ * query getTeamId {
33
27
  *
34
- * organization(slug"ORGANIZATION_SLUG") {
28
+ * organization(slug: "ORGANIZATION_SLUG") {
35
29
  *
36
- * teams(first1, search"TEAM_SEARCH_TERM") {
30
+ * teams(first: 1, search: "TEAM_SEARCH_TERM") {
37
31
  *
38
32
  * edges {
39
33
  *
@@ -49,7 +43,13 @@ import * as pulumi from "@pulumi/pulumi";
49
43
  *
50
44
  * }
51
45
  *
52
- * } }
46
+ * }
47
+ *
48
+ * }
49
+ *
50
+ * ```sh
51
+ * $ pulumi import buildkite:Team/team:Team everyone UGlwZWxpbmUtLS00MzVjYWQ1OC1lODFkLTQ1YWYtODYzNy1iMWNmODA3MDIzOGQ=
52
+ * ```
53
53
  */
54
54
  export declare class Team extends pulumi.CustomResource {
55
55
  /**
@@ -68,35 +68,35 @@ export declare class Team extends pulumi.CustomResource {
68
68
  */
69
69
  static isInstance(obj: any): obj is Team;
70
70
  /**
71
- * Default role to assign to a team member.
71
+ * The default role for new members of the team. This can be either `MEMBER` or `MAINTAINER`.
72
72
  */
73
73
  readonly defaultMemberRole: pulumi.Output<string>;
74
74
  /**
75
- * Whether to assign this team to a user by default.
75
+ * Whether this is the default team for the organization.
76
76
  */
77
77
  readonly defaultTeam: pulumi.Output<boolean>;
78
78
  /**
79
- * The description to assign to the team.
79
+ * A description for the team. This is displayed in the Buildkite UI.
80
80
  */
81
81
  readonly description: pulumi.Output<string | undefined>;
82
82
  /**
83
- * Whether team members can create.
83
+ * Whether members of the team can create Pipelines.
84
84
  */
85
- readonly membersCanCreatePipelines: pulumi.Output<boolean | undefined>;
85
+ readonly membersCanCreatePipelines: pulumi.Output<boolean>;
86
86
  /**
87
87
  * The name of the team.
88
88
  */
89
89
  readonly name: pulumi.Output<string>;
90
90
  /**
91
- * The privacy level to set the team too.
91
+ * The privacy setting for the team. This can be either `VISIBLE` or `SECRET`.
92
92
  */
93
93
  readonly privacy: pulumi.Output<string>;
94
94
  /**
95
- * The name of the team.
95
+ * The generated slug for the team.
96
96
  */
97
97
  readonly slug: pulumi.Output<string>;
98
98
  /**
99
- * The UUID for the team.
99
+ * The UUID of the team.
100
100
  */
101
101
  readonly uuid: pulumi.Output<string>;
102
102
  /**
@@ -113,19 +113,19 @@ export declare class Team extends pulumi.CustomResource {
113
113
  */
114
114
  export interface TeamState {
115
115
  /**
116
- * Default role to assign to a team member.
116
+ * The default role for new members of the team. This can be either `MEMBER` or `MAINTAINER`.
117
117
  */
118
118
  defaultMemberRole?: pulumi.Input<string>;
119
119
  /**
120
- * Whether to assign this team to a user by default.
120
+ * Whether this is the default team for the organization.
121
121
  */
122
122
  defaultTeam?: pulumi.Input<boolean>;
123
123
  /**
124
- * The description to assign to the team.
124
+ * A description for the team. This is displayed in the Buildkite UI.
125
125
  */
126
126
  description?: pulumi.Input<string>;
127
127
  /**
128
- * Whether team members can create.
128
+ * Whether members of the team can create Pipelines.
129
129
  */
130
130
  membersCanCreatePipelines?: pulumi.Input<boolean>;
131
131
  /**
@@ -133,15 +133,15 @@ export interface TeamState {
133
133
  */
134
134
  name?: pulumi.Input<string>;
135
135
  /**
136
- * The privacy level to set the team too.
136
+ * The privacy setting for the team. This can be either `VISIBLE` or `SECRET`.
137
137
  */
138
138
  privacy?: pulumi.Input<string>;
139
139
  /**
140
- * The name of the team.
140
+ * The generated slug for the team.
141
141
  */
142
142
  slug?: pulumi.Input<string>;
143
143
  /**
144
- * The UUID for the team.
144
+ * The UUID of the team.
145
145
  */
146
146
  uuid?: pulumi.Input<string>;
147
147
  }
@@ -150,19 +150,19 @@ export interface TeamState {
150
150
  */
151
151
  export interface TeamArgs {
152
152
  /**
153
- * Default role to assign to a team member.
153
+ * The default role for new members of the team. This can be either `MEMBER` or `MAINTAINER`.
154
154
  */
155
155
  defaultMemberRole: pulumi.Input<string>;
156
156
  /**
157
- * Whether to assign this team to a user by default.
157
+ * Whether this is the default team for the organization.
158
158
  */
159
159
  defaultTeam: pulumi.Input<boolean>;
160
160
  /**
161
- * The description to assign to the team.
161
+ * A description for the team. This is displayed in the Buildkite UI.
162
162
  */
163
163
  description?: pulumi.Input<string>;
164
164
  /**
165
- * Whether team members can create.
165
+ * Whether members of the team can create Pipelines.
166
166
  */
167
167
  membersCanCreatePipelines?: pulumi.Input<boolean>;
168
168
  /**
@@ -170,7 +170,7 @@ export interface TeamArgs {
170
170
  */
171
171
  name?: pulumi.Input<string>;
172
172
  /**
173
- * The privacy level to set the team too.
173
+ * The privacy setting for the team. This can be either `VISIBLE` or `SECRET`.
174
174
  */
175
175
  privacy: pulumi.Input<string>;
176
176
  }