@pulumiverse/buildkite 2.3.1 → 3.0.2

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 (95) hide show
  1. package/README.md +5 -0
  2. package/agent/agentToken.d.ts +13 -19
  3. package/agent/agentToken.js +6 -6
  4. package/agent/agentToken.js.map +1 -1
  5. package/cluster/cluster.d.ts +76 -20
  6. package/cluster/cluster.js +56 -6
  7. package/cluster/cluster.js.map +1 -1
  8. package/cluster/clusterAgentToken.d.ts +51 -15
  9. package/cluster/clusterAgentToken.js +28 -8
  10. package/cluster/clusterAgentToken.js.map +1 -1
  11. package/cluster/clusterDefaultQueue.d.ts +132 -0
  12. package/cluster/clusterDefaultQueue.js +123 -0
  13. package/cluster/clusterDefaultQueue.js.map +1 -0
  14. package/cluster/clusterQueue.d.ts +44 -50
  15. package/cluster/clusterQueue.js +37 -43
  16. package/cluster/clusterQueue.js.map +1 -1
  17. package/cluster/getCluster.d.ts +52 -5
  18. package/cluster/getCluster.js +44 -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 +9 -7
  24. package/config/vars.js +6 -0
  25. package/config/vars.js.map +1 -1
  26. package/getMeta.d.ts +55 -1
  27. package/getMeta.js +55 -1
  28. package/getMeta.js.map +1 -1
  29. package/index.d.ts +1 -0
  30. package/index.js +3 -2
  31. package/index.js.map +1 -1
  32. package/organization/banner.d.ts +106 -0
  33. package/organization/banner.js +104 -0
  34. package/organization/banner.js.map +1 -0
  35. package/organization/getOrganization.d.ts +12 -21
  36. package/organization/getOrganization.js +9 -21
  37. package/organization/getOrganization.js.map +1 -1
  38. package/organization/index.d.ts +4 -3
  39. package/organization/index.js +8 -7
  40. package/organization/index.js.map +1 -1
  41. package/organization/organization.d.ts +31 -13
  42. package/organization/organization.js +12 -10
  43. package/organization/organization.js.map +1 -1
  44. package/package.json +2 -3
  45. package/package.json.bak +1 -2
  46. package/pipeline/getPipeline.d.ts +26 -18
  47. package/pipeline/getPipeline.js +12 -14
  48. package/pipeline/getPipeline.js.map +1 -1
  49. package/pipeline/getSignedSteps.d.ts +143 -0
  50. package/pipeline/getSignedSteps.js +95 -0
  51. package/pipeline/getSignedSteps.js.map +1 -0
  52. package/pipeline/getTemplate.d.ts +120 -0
  53. package/pipeline/getTemplate.js +83 -0
  54. package/pipeline/getTemplate.js.map +1 -0
  55. package/pipeline/index.d.ts +9 -0
  56. package/pipeline/index.js +12 -1
  57. package/pipeline/index.js.map +1 -1
  58. package/pipeline/pipeline.d.ts +116 -101
  59. package/pipeline/pipeline.js +18 -16
  60. package/pipeline/pipeline.js.map +1 -1
  61. package/pipeline/schedule.d.ts +64 -53
  62. package/pipeline/schedule.js +38 -27
  63. package/pipeline/schedule.js.map +1 -1
  64. package/pipeline/team.d.ts +42 -31
  65. package/pipeline/team.js +34 -23
  66. package/pipeline/team.js.map +1 -1
  67. package/pipeline/template.d.ts +157 -0
  68. package/pipeline/template.js +125 -0
  69. package/pipeline/template.js.map +1 -0
  70. package/provider.d.ts +23 -9
  71. package/provider.js +1 -0
  72. package/provider.js.map +1 -1
  73. package/team/getTeam.d.ts +33 -34
  74. package/team/getTeam.js +18 -16
  75. package/team/getTeam.js.map +1 -1
  76. package/team/member.d.ts +44 -44
  77. package/team/member.js +33 -33
  78. package/team/team.d.ts +45 -43
  79. package/team/team.js +26 -24
  80. package/team/team.js.map +1 -1
  81. package/testsuite/team.d.ts +48 -52
  82. package/testsuite/team.js +43 -47
  83. package/testsuite/team.js.map +1 -1
  84. package/testsuite/testSuite.d.ts +21 -27
  85. package/testsuite/testSuite.js +6 -12
  86. package/testsuite/testSuite.js.map +1 -1
  87. package/types/input.d.ts +37 -21
  88. package/types/output.d.ts +34 -18
  89. package/utilities.d.ts +4 -0
  90. package/utilities.js +33 -1
  91. package/utilities.js.map +1 -1
  92. package/organization/settings.d.ts +0 -80
  93. package/organization/settings.js +0 -81
  94. package/organization/settings.js.map +0 -1
  95. package/scripts/install-pulumi-plugin.js +0 -26
package/team/member.d.ts CHANGED
@@ -1,72 +1,72 @@
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
  *
7
+ * <!--Start PulumiCodeChooser -->
15
8
  * ```typescript
16
9
  * import * as pulumi from "@pulumi/pulumi";
17
10
  * import * as buildkite from "@pulumiverse/buildkite";
18
11
  *
19
- * const team = new buildkite.team.Team("team", {
12
+ * const everyone = new buildkite.team.Team("everyone", {
20
13
  * privacy: "VISIBLE",
21
- * defaultTeam: true,
14
+ * defaultTeam: false,
22
15
  * defaultMemberRole: "MEMBER",
23
16
  * });
24
17
  * const aSmith = new buildkite.team.Member("aSmith", {
18
+ * teamId: everyone.id,
19
+ * userId: "VGVhbU1lbWJlci0tLTVlZDEyMmY2LTM2NjQtNDI1MS04YzMwLTc4NjRiMDdiZDQ4Zg==",
25
20
  * role: "MEMBER",
26
- * teamId: team.id,
27
- * userId: "VXNlci0tLWRlOTdmMjBiLWJkZmMtNGNjOC1hOTcwLTY1ODNiZTk2ZGEyYQ==",
28
21
  * });
29
22
  * ```
23
+ * <!--End PulumiCodeChooser -->
30
24
  *
31
25
  * ## Import
32
26
  *
33
- * Team members can be imported using the GraphQL ID of the membership. Note this is different to the ID of the user.
27
+ * import a team member resource using the GraphQL ID
34
28
  *
35
- * ```sh
36
- * $ pulumi import buildkite:Team/member:Member a_smith VGVhbU1lbWJlci0tLTVlZDEyMmY2LTM2NjQtNDI1MS04YzMwLTc4NjRiMDdiZDQ4Zg==
37
- * ```
29
+ * #
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
+ * you can use this query to find the ID:
40
32
  *
41
- * organization(slug"ORGANIZATION_SLUG") {
33
+ * query getTeamMemberId {
42
34
  *
43
- * teams(first2, search"TEAM_SEARCH_TERM") {
35
+ * organization(slug: "ORGANIZATION_SLUG") {
44
36
  *
45
- * edges {
37
+ * teams(first: 2, search: "TEAM_SEARCH_TERM") {
46
38
  *
47
- * node {
39
+ * edges {
48
40
  *
49
- * members(first2, search"TEAM_MEMBER_SEARCH_TERM") {
41
+ * node {
50
42
  *
51
- * edges {
43
+ * members(first: 2, search: "TEAM_MEMBER_SEARCH_TERM") {
52
44
  *
53
- * node {
45
+ * edges {
54
46
  *
55
- * id
47
+ * node {
56
48
  *
57
- * }
49
+ * id
58
50
  *
59
- * }
51
+ * }
60
52
  *
61
- * }
53
+ * }
62
54
  *
63
- * }
55
+ * }
64
56
  *
65
- * }
57
+ * }
66
58
  *
67
- * }
59
+ * }
68
60
  *
69
- * } }
61
+ * }
62
+ *
63
+ * }
64
+ *
65
+ * }
66
+ *
67
+ * ```sh
68
+ * $ pulumi import buildkite:Team/member:Member a_smith VGVhbU1lbWJlci0tLTVlZDEyMmY2LTM2NjQtNDI1MS04YzMwLTc4NjRiMDdiZDQ4Zg==
69
+ * ```
70
70
  */
71
71
  export declare class Member extends pulumi.CustomResource {
72
72
  /**
@@ -85,19 +85,19 @@ export declare class Member extends pulumi.CustomResource {
85
85
  */
86
86
  static isInstance(obj: any): obj is Member;
87
87
  /**
88
- * Either MEMBER or MAINTAINER.
88
+ * The role for the user. Either `MEMBER` or `MAINTAINER`.
89
89
  */
90
90
  readonly role: pulumi.Output<string>;
91
91
  /**
92
- * The GraphQL ID of the team to add to/remove from.
92
+ * The GraphQL ID of the team.
93
93
  */
94
94
  readonly teamId: pulumi.Output<string>;
95
95
  /**
96
- * The GraphQL ID of the user to add/remove.
96
+ * The GraphQL ID of the user.
97
97
  */
98
98
  readonly userId: pulumi.Output<string>;
99
99
  /**
100
- * The UUID for the team membership.
100
+ * The UUID of the team membership.
101
101
  */
102
102
  readonly uuid: pulumi.Output<string>;
103
103
  /**
@@ -114,19 +114,19 @@ export declare class Member extends pulumi.CustomResource {
114
114
  */
115
115
  export interface MemberState {
116
116
  /**
117
- * Either MEMBER or MAINTAINER.
117
+ * The role for the user. Either `MEMBER` or `MAINTAINER`.
118
118
  */
119
119
  role?: pulumi.Input<string>;
120
120
  /**
121
- * The GraphQL ID of the team to add to/remove from.
121
+ * The GraphQL ID of the team.
122
122
  */
123
123
  teamId?: pulumi.Input<string>;
124
124
  /**
125
- * The GraphQL ID of the user to add/remove.
125
+ * The GraphQL ID of the user.
126
126
  */
127
127
  userId?: pulumi.Input<string>;
128
128
  /**
129
- * The UUID for the team membership.
129
+ * The UUID of the team membership.
130
130
  */
131
131
  uuid?: pulumi.Input<string>;
132
132
  }
@@ -135,15 +135,15 @@ export interface MemberState {
135
135
  */
136
136
  export interface MemberArgs {
137
137
  /**
138
- * Either MEMBER or MAINTAINER.
138
+ * The role for the user. Either `MEMBER` or `MAINTAINER`.
139
139
  */
140
140
  role: pulumi.Input<string>;
141
141
  /**
142
- * The GraphQL ID of the team to add to/remove from.
142
+ * The GraphQL ID of the team.
143
143
  */
144
144
  teamId: pulumi.Input<string>;
145
145
  /**
146
- * The GraphQL ID of the user to add/remove.
146
+ * The GraphQL ID of the user.
147
147
  */
148
148
  userId: pulumi.Input<string>;
149
149
  }
package/team/member.js CHANGED
@@ -6,73 +6,73 @@ 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
  *
13
+ * <!--Start PulumiCodeChooser -->
21
14
  * ```typescript
22
15
  * import * as pulumi from "@pulumi/pulumi";
23
16
  * import * as buildkite from "@pulumiverse/buildkite";
24
17
  *
25
- * const team = new buildkite.team.Team("team", {
18
+ * const everyone = new buildkite.team.Team("everyone", {
26
19
  * privacy: "VISIBLE",
27
- * defaultTeam: true,
20
+ * defaultTeam: false,
28
21
  * defaultMemberRole: "MEMBER",
29
22
  * });
30
23
  * const aSmith = new buildkite.team.Member("aSmith", {
24
+ * teamId: everyone.id,
25
+ * userId: "VGVhbU1lbWJlci0tLTVlZDEyMmY2LTM2NjQtNDI1MS04YzMwLTc4NjRiMDdiZDQ4Zg==",
31
26
  * role: "MEMBER",
32
- * teamId: team.id,
33
- * userId: "VXNlci0tLWRlOTdmMjBiLWJkZmMtNGNjOC1hOTcwLTY1ODNiZTk2ZGEyYQ==",
34
27
  * });
35
28
  * ```
29
+ * <!--End PulumiCodeChooser -->
36
30
  *
37
31
  * ## Import
38
32
  *
39
- * Team members can be imported using the GraphQL ID of the membership. Note this is different to the ID of the user.
33
+ * import a team member resource using the GraphQL ID
40
34
  *
41
- * ```sh
42
- * $ pulumi import buildkite:Team/member:Member a_smith VGVhbU1lbWJlci0tLTVlZDEyMmY2LTM2NjQtNDI1MS04YzMwLTc4NjRiMDdiZDQ4Zg==
43
- * ```
35
+ * #
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
+ * you can use this query to find the ID:
46
38
  *
47
- * organization(slug"ORGANIZATION_SLUG") {
39
+ * query getTeamMemberId {
48
40
  *
49
- * teams(first2, search"TEAM_SEARCH_TERM") {
41
+ * organization(slug: "ORGANIZATION_SLUG") {
50
42
  *
51
- * edges {
43
+ * teams(first: 2, search: "TEAM_SEARCH_TERM") {
52
44
  *
53
- * node {
45
+ * edges {
54
46
  *
55
- * members(first2, search"TEAM_MEMBER_SEARCH_TERM") {
47
+ * node {
56
48
  *
57
- * edges {
49
+ * members(first: 2, search: "TEAM_MEMBER_SEARCH_TERM") {
58
50
  *
59
- * node {
51
+ * edges {
60
52
  *
61
- * id
53
+ * node {
62
54
  *
63
- * }
55
+ * id
64
56
  *
65
- * }
57
+ * }
66
58
  *
67
- * }
59
+ * }
68
60
  *
69
- * }
61
+ * }
70
62
  *
71
- * }
63
+ * }
72
64
  *
73
- * }
65
+ * }
74
66
  *
75
- * } }
67
+ * }
68
+ *
69
+ * }
70
+ *
71
+ * }
72
+ *
73
+ * ```sh
74
+ * $ pulumi import buildkite:Team/member:Member a_smith VGVhbU1lbWJlci0tLTVlZDEyMmY2LTM2NjQtNDI1MS04YzMwLTc4NjRiMDdiZDQ4Zg==
75
+ * ```
76
76
  */
77
77
  class Member extends pulumi.CustomResource {
78
78
  /**
package/team/team.d.ts CHANGED
@@ -1,55 +1,57 @@
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
  *
7
+ * <!--Start PulumiCodeChooser -->
13
8
  * ```typescript
14
9
  * import * as pulumi from "@pulumi/pulumi";
15
10
  * import * as buildkite from "@pulumiverse/buildkite";
16
11
  *
17
- * const team = new buildkite.team.Team("team", {
12
+ * const everyone = new buildkite.team.Team("everyone", {
18
13
  * defaultMemberRole: "MEMBER",
19
- * defaultTeam: true,
14
+ * defaultTeam: false,
20
15
  * privacy: "VISIBLE",
21
16
  * });
22
17
  * ```
18
+ * <!--End PulumiCodeChooser -->
23
19
  *
24
20
  * ## Import
25
21
  *
26
- * Teams can be imported using the `GraphQL ID` (not UUID), e.g.
22
+ * import a team resource using the GraphQL ID
27
23
  *
28
- * ```sh
29
- * $ pulumi import buildkite:Team/team:Team fleet UGlwZWxpbmUtLS00MzVjYWQ1OC1lODFkLTQ1YWYtODYzNy1iMWNmODA3MDIzOGQ=
30
- * ```
24
+ * #
25
+ *
26
+ * you can use this query to find the ID:
31
27
  *
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 {
28
+ * query getTeamId {
33
29
  *
34
- * organization(slug"ORGANIZATION_SLUG") {
30
+ * organization(slug: "ORGANIZATION_SLUG") {
35
31
  *
36
- * teams(first1, search"TEAM_SEARCH_TERM") {
32
+ * teams(first: 1, search: "TEAM_SEARCH_TERM") {
37
33
  *
38
- * edges {
34
+ * edges {
39
35
  *
40
- * node {
36
+ * node {
41
37
  *
42
- * id
38
+ * id
43
39
  *
44
- * name
40
+ * name
45
41
  *
46
- * }
42
+ * }
47
43
  *
48
- * }
44
+ * }
49
45
  *
50
- * }
46
+ * }
51
47
  *
52
- * } }
48
+ * }
49
+ *
50
+ * }
51
+ *
52
+ * ```sh
53
+ * $ pulumi import buildkite:Team/team:Team everyone UGlwZWxpbmUtLS00MzVjYWQ1OC1lODFkLTQ1YWYtODYzNy1iMWNmODA3MDIzOGQ=
54
+ * ```
53
55
  */
54
56
  export declare class Team extends pulumi.CustomResource {
55
57
  /**
@@ -68,19 +70,19 @@ export declare class Team extends pulumi.CustomResource {
68
70
  */
69
71
  static isInstance(obj: any): obj is Team;
70
72
  /**
71
- * Default role to assign to a team member.
73
+ * The default role for new members of the team. This can be either `MEMBER` or `MAINTAINER`.
72
74
  */
73
75
  readonly defaultMemberRole: pulumi.Output<string>;
74
76
  /**
75
- * Whether to assign this team to a user by default.
77
+ * Whether this is the default team for the organization.
76
78
  */
77
79
  readonly defaultTeam: pulumi.Output<boolean>;
78
80
  /**
79
- * The description to assign to the team.
81
+ * A description for the team. This is displayed in the Buildkite UI.
80
82
  */
81
83
  readonly description: pulumi.Output<string | undefined>;
82
84
  /**
83
- * Whether team members can create.
85
+ * Whether members of the team can create Pipelines.
84
86
  */
85
87
  readonly membersCanCreatePipelines: pulumi.Output<boolean>;
86
88
  /**
@@ -88,15 +90,15 @@ export declare class Team extends pulumi.CustomResource {
88
90
  */
89
91
  readonly name: pulumi.Output<string>;
90
92
  /**
91
- * The privacy level to set the team too.
93
+ * The privacy setting for the team. This can be either `VISIBLE` or `SECRET`.
92
94
  */
93
95
  readonly privacy: pulumi.Output<string>;
94
96
  /**
95
- * The name of the team.
97
+ * The generated slug for the team.
96
98
  */
97
99
  readonly slug: pulumi.Output<string>;
98
100
  /**
99
- * The UUID for the team.
101
+ * The UUID of the team.
100
102
  */
101
103
  readonly uuid: pulumi.Output<string>;
102
104
  /**
@@ -113,19 +115,19 @@ export declare class Team extends pulumi.CustomResource {
113
115
  */
114
116
  export interface TeamState {
115
117
  /**
116
- * Default role to assign to a team member.
118
+ * The default role for new members of the team. This can be either `MEMBER` or `MAINTAINER`.
117
119
  */
118
120
  defaultMemberRole?: pulumi.Input<string>;
119
121
  /**
120
- * Whether to assign this team to a user by default.
122
+ * Whether this is the default team for the organization.
121
123
  */
122
124
  defaultTeam?: pulumi.Input<boolean>;
123
125
  /**
124
- * The description to assign to the team.
126
+ * A description for the team. This is displayed in the Buildkite UI.
125
127
  */
126
128
  description?: pulumi.Input<string>;
127
129
  /**
128
- * Whether team members can create.
130
+ * Whether members of the team can create Pipelines.
129
131
  */
130
132
  membersCanCreatePipelines?: pulumi.Input<boolean>;
131
133
  /**
@@ -133,15 +135,15 @@ export interface TeamState {
133
135
  */
134
136
  name?: pulumi.Input<string>;
135
137
  /**
136
- * The privacy level to set the team too.
138
+ * The privacy setting for the team. This can be either `VISIBLE` or `SECRET`.
137
139
  */
138
140
  privacy?: pulumi.Input<string>;
139
141
  /**
140
- * The name of the team.
142
+ * The generated slug for the team.
141
143
  */
142
144
  slug?: pulumi.Input<string>;
143
145
  /**
144
- * The UUID for the team.
146
+ * The UUID of the team.
145
147
  */
146
148
  uuid?: pulumi.Input<string>;
147
149
  }
@@ -150,19 +152,19 @@ export interface TeamState {
150
152
  */
151
153
  export interface TeamArgs {
152
154
  /**
153
- * Default role to assign to a team member.
155
+ * The default role for new members of the team. This can be either `MEMBER` or `MAINTAINER`.
154
156
  */
155
157
  defaultMemberRole: pulumi.Input<string>;
156
158
  /**
157
- * Whether to assign this team to a user by default.
159
+ * Whether this is the default team for the organization.
158
160
  */
159
161
  defaultTeam: pulumi.Input<boolean>;
160
162
  /**
161
- * The description to assign to the team.
163
+ * A description for the team. This is displayed in the Buildkite UI.
162
164
  */
163
165
  description?: pulumi.Input<string>;
164
166
  /**
165
- * Whether team members can create.
167
+ * Whether members of the team can create Pipelines.
166
168
  */
167
169
  membersCanCreatePipelines?: pulumi.Input<boolean>;
168
170
  /**
@@ -170,7 +172,7 @@ export interface TeamArgs {
170
172
  */
171
173
  name?: pulumi.Input<string>;
172
174
  /**
173
- * The privacy level to set the team too.
175
+ * The privacy setting for the team. This can be either `VISIBLE` or `SECRET`.
174
176
  */
175
177
  privacy: pulumi.Input<string>;
176
178
  }
package/team/team.js CHANGED
@@ -6,56 +6,58 @@ exports.Team = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("../utilities");
8
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.
9
+ * 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).
16
10
  *
17
11
  * ## Example Usage
18
12
  *
13
+ * <!--Start PulumiCodeChooser -->
19
14
  * ```typescript
20
15
  * import * as pulumi from "@pulumi/pulumi";
21
16
  * import * as buildkite from "@pulumiverse/buildkite";
22
17
  *
23
- * const team = new buildkite.team.Team("team", {
18
+ * const everyone = new buildkite.team.Team("everyone", {
24
19
  * defaultMemberRole: "MEMBER",
25
- * defaultTeam: true,
20
+ * defaultTeam: false,
26
21
  * privacy: "VISIBLE",
27
22
  * });
28
23
  * ```
24
+ * <!--End PulumiCodeChooser -->
29
25
  *
30
26
  * ## Import
31
27
  *
32
- * Teams can be imported using the `GraphQL ID` (not UUID), e.g.
28
+ * import a team resource using the GraphQL ID
33
29
  *
34
- * ```sh
35
- * $ pulumi import buildkite:Team/team:Team fleet UGlwZWxpbmUtLS00MzVjYWQ1OC1lODFkLTQ1YWYtODYzNy1iMWNmODA3MDIzOGQ=
36
- * ```
30
+ * #
37
31
  *
38
- * 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 {
32
+ * you can use this query to find the ID:
39
33
  *
40
- * organization(slug"ORGANIZATION_SLUG") {
34
+ * query getTeamId {
41
35
  *
42
- * teams(first1, search"TEAM_SEARCH_TERM") {
36
+ * organization(slug: "ORGANIZATION_SLUG") {
43
37
  *
44
- * edges {
38
+ * teams(first: 1, search: "TEAM_SEARCH_TERM") {
45
39
  *
46
- * node {
40
+ * edges {
47
41
  *
48
- * id
42
+ * node {
49
43
  *
50
- * name
44
+ * id
51
45
  *
52
- * }
46
+ * name
53
47
  *
54
- * }
48
+ * }
55
49
  *
56
- * }
50
+ * }
57
51
  *
58
- * } }
52
+ * }
53
+ *
54
+ * }
55
+ *
56
+ * }
57
+ *
58
+ * ```sh
59
+ * $ pulumi import buildkite:Team/team:Team everyone UGlwZWxpbmUtLS00MzVjYWQ1OC1lODFkLTQ1YWYtODYzNy1iMWNmODA3MDIzOGQ=
60
+ * ```
59
61
  */
60
62
  class Team extends pulumi.CustomResource {
61
63
  /**
package/team/team.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"team.js","sourceRoot":"","sources":["../../team/team.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AACH,MAAa,IAAK,SAAQ,MAAM,CAAC,cAAc;IAC3C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAiB,EAAE,IAAmC;QAC/G,OAAO,IAAI,IAAI,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC3D,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,IAAI,CAAC,YAAY,CAAC;IACrD,CAAC;IA2CD,YAAY,IAAY,EAAE,WAAkC,EAAE,IAAmC;QAC7F,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EA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