@pulumiverse/buildkite 2.2.0 → 2.3.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 (74) hide show
  1. package/README.md +3 -3
  2. package/agent/agentToken.js +2 -0
  3. package/agent/agentToken.js.map +1 -1
  4. package/cluster/cluster.d.ts +108 -0
  5. package/cluster/cluster.js +73 -0
  6. package/cluster/cluster.js.map +1 -0
  7. package/cluster/clusterAgentToken.d.ts +97 -0
  8. package/cluster/clusterAgentToken.js +84 -0
  9. package/cluster/clusterAgentToken.js.map +1 -0
  10. package/cluster/clusterQueue.d.ts +162 -0
  11. package/cluster/clusterQueue.js +137 -0
  12. package/cluster/clusterQueue.js.map +1 -0
  13. package/cluster/getCluster.d.ts +47 -0
  14. package/cluster/getCluster.js +19 -0
  15. package/cluster/getCluster.js.map +1 -0
  16. package/cluster/index.d.ts +12 -0
  17. package/cluster/index.js +35 -0
  18. package/cluster/index.js.map +1 -0
  19. package/config/vars.d.ts +5 -1
  20. package/config/vars.js +6 -0
  21. package/config/vars.js.map +1 -1
  22. package/getMeta.d.ts +0 -3
  23. package/index.d.ts +3 -1
  24. package/index.js +5 -1
  25. package/index.js.map +1 -1
  26. package/organization/getOrganization.d.ts +2 -46
  27. package/organization/getOrganization.js +3 -32
  28. package/organization/getOrganization.js.map +1 -1
  29. package/organization/index.d.ts +4 -2
  30. package/organization/index.js +7 -3
  31. package/organization/index.js.map +1 -1
  32. package/organization/organization.d.ts +78 -0
  33. package/organization/organization.js +79 -0
  34. package/organization/organization.js.map +1 -0
  35. package/organization/settings.d.ts +4 -0
  36. package/organization/settings.js +4 -0
  37. package/organization/settings.js.map +1 -1
  38. package/package.json +2 -2
  39. package/pipeline/getPipeline.d.ts +1 -4
  40. package/pipeline/getPipeline.js.map +1 -1
  41. package/pipeline/index.d.ts +3 -0
  42. package/pipeline/index.js +6 -1
  43. package/pipeline/index.js.map +1 -1
  44. package/pipeline/pipeline.d.ts +45 -98
  45. package/pipeline/pipeline.js +10 -85
  46. package/pipeline/pipeline.js.map +1 -1
  47. package/pipeline/schedule.d.ts +46 -5
  48. package/pipeline/schedule.js +34 -2
  49. package/pipeline/schedule.js.map +1 -1
  50. package/pipeline/team.d.ts +128 -0
  51. package/pipeline/team.js +112 -0
  52. package/pipeline/team.js.map +1 -0
  53. package/provider.d.ts +11 -7
  54. package/provider.js +5 -8
  55. package/provider.js.map +1 -1
  56. package/team/getTeam.d.ts +24 -10
  57. package/team/getTeam.js +6 -4
  58. package/team/getTeam.js.map +1 -1
  59. package/team/member.d.ts +4 -4
  60. package/team/member.js +4 -4
  61. package/team/team.d.ts +31 -1
  62. package/team/team.js +30 -0
  63. package/team/team.js.map +1 -1
  64. package/testsuite/index.d.ts +6 -0
  65. package/testsuite/index.js +27 -0
  66. package/testsuite/index.js.map +1 -0
  67. package/testsuite/team.d.ts +166 -0
  68. package/testsuite/team.js +150 -0
  69. package/testsuite/team.js.map +1 -0
  70. package/testsuite/testSuite.d.ts +120 -0
  71. package/testsuite/testSuite.js +91 -0
  72. package/testsuite/testSuite.js.map +1 -0
  73. package/types/input.d.ts +3 -4
  74. package/types/output.d.ts +8 -9
@@ -22,11 +22,43 @@ import * as pulumi from "@pulumi/pulumi";
22
22
  *
23
23
  * ## Import
24
24
  *
25
- * Pipeline schedules can be imported using a slug (which consists of `$BUILDKITE_ORGANIZATION_SLUG/$BUILDKITE_PIPELINE_SLUG/$PIPELINE_SCHEDULE_UUID`), e.g.
25
+ * Pipeline schedules can be imported using their `GraphQL ID`, e.g.
26
26
  *
27
27
  * ```sh
28
- * $ pulumi import buildkite:Pipeline/schedule:Schedule test myorg/test/1be3e7c7-1e03-4011-accf-b2d8eec90222
28
+ * $ pulumi import buildkite:Pipeline/schedule:Schedule test UGlwZWxpgm5Tf2hhZHVsZ35tLWRk4DdmN7c4LTA5M2ItNDM9YS0gMWE0LTAwZDUgYTAxYvRf49==
29
29
  * ```
30
+ *
31
+ * Your pipeline schedules' GraphQL ID can be found with the below GraphQL query below. Alternatively, you could use this [pre-saved query](https://buildkite.com/user/graphql/console/45687b7c-2565-4acb-8a74-750a3647875f), specifying the organisation slug (when known) and the pipeline search term (PIPELINE_SEARCH_TERM). graphql query getPipelineScheduleId {
32
+ *
33
+ * organization(slug"ORGANIZATION_SLUG") { pipelines(first5, search"PIPELINE_SEARCH_TERM") {
34
+ *
35
+ * edges{
36
+ *
37
+ * node{
38
+ *
39
+ * name
40
+ *
41
+ * schedules{
42
+ *
43
+ * edges{
44
+ *
45
+ * node{
46
+ *
47
+ * id
48
+ *
49
+ * }
50
+ *
51
+ * }
52
+ *
53
+ * }
54
+ *
55
+ * }
56
+ *
57
+ * }
58
+ *
59
+ * }
60
+ *
61
+ * } }
30
62
  */
31
63
  export declare class Schedule extends pulumi.CustomResource {
32
64
  /**
@@ -51,7 +83,7 @@ export declare class Schedule extends pulumi.CustomResource {
51
83
  /**
52
84
  * The commit ref to use for the build.
53
85
  */
54
- readonly commit: pulumi.Output<string | undefined>;
86
+ readonly commit: pulumi.Output<string>;
55
87
  /**
56
88
  * Schedule interval (see [docs](https://buildkite.com/docs/pipelines/scheduled-builds#schedule-intervals)).
57
89
  */
@@ -59,7 +91,7 @@ export declare class Schedule extends pulumi.CustomResource {
59
91
  /**
60
92
  * Whether the schedule should run.
61
93
  */
62
- readonly enabled: pulumi.Output<boolean | undefined>;
94
+ readonly enabled: pulumi.Output<boolean>;
63
95
  /**
64
96
  * A map of environment variables to use for the build.
65
97
  */
@@ -73,7 +105,10 @@ export declare class Schedule extends pulumi.CustomResource {
73
105
  /**
74
106
  * The message to use for the build.
75
107
  */
76
- readonly message: pulumi.Output<string>;
108
+ readonly message: pulumi.Output<string | undefined>;
109
+ /**
110
+ * The ID of the pipeline that this schedule belongs to.
111
+ */
77
112
  readonly pipelineId: pulumi.Output<string>;
78
113
  /**
79
114
  * The UUID of the pipeline schedule
@@ -122,6 +157,9 @@ export interface ScheduleState {
122
157
  * The message to use for the build.
123
158
  */
124
159
  message?: pulumi.Input<string>;
160
+ /**
161
+ * The ID of the pipeline that this schedule belongs to.
162
+ */
125
163
  pipelineId?: pulumi.Input<string>;
126
164
  /**
127
165
  * The UUID of the pipeline schedule
@@ -162,5 +200,8 @@ export interface ScheduleArgs {
162
200
  * The message to use for the build.
163
201
  */
164
202
  message?: pulumi.Input<string>;
203
+ /**
204
+ * The ID of the pipeline that this schedule belongs to.
205
+ */
165
206
  pipelineId: pulumi.Input<string>;
166
207
  }
@@ -28,11 +28,43 @@ const utilities = require("../utilities");
28
28
  *
29
29
  * ## Import
30
30
  *
31
- * Pipeline schedules can be imported using a slug (which consists of `$BUILDKITE_ORGANIZATION_SLUG/$BUILDKITE_PIPELINE_SLUG/$PIPELINE_SCHEDULE_UUID`), e.g.
31
+ * Pipeline schedules can be imported using their `GraphQL ID`, e.g.
32
32
  *
33
33
  * ```sh
34
- * $ pulumi import buildkite:Pipeline/schedule:Schedule test myorg/test/1be3e7c7-1e03-4011-accf-b2d8eec90222
34
+ * $ pulumi import buildkite:Pipeline/schedule:Schedule test UGlwZWxpgm5Tf2hhZHVsZ35tLWRk4DdmN7c4LTA5M2ItNDM9YS0gMWE0LTAwZDUgYTAxYvRf49==
35
35
  * ```
36
+ *
37
+ * Your pipeline schedules' GraphQL ID can be found with the below GraphQL query below. Alternatively, you could use this [pre-saved query](https://buildkite.com/user/graphql/console/45687b7c-2565-4acb-8a74-750a3647875f), specifying the organisation slug (when known) and the pipeline search term (PIPELINE_SEARCH_TERM). graphql query getPipelineScheduleId {
38
+ *
39
+ * organization(slug"ORGANIZATION_SLUG") { pipelines(first5, search"PIPELINE_SEARCH_TERM") {
40
+ *
41
+ * edges{
42
+ *
43
+ * node{
44
+ *
45
+ * name
46
+ *
47
+ * schedules{
48
+ *
49
+ * edges{
50
+ *
51
+ * node{
52
+ *
53
+ * id
54
+ *
55
+ * }
56
+ *
57
+ * }
58
+ *
59
+ * }
60
+ *
61
+ * }
62
+ *
63
+ * }
64
+ *
65
+ * }
66
+ *
67
+ * } }
36
68
  */
37
69
  class Schedule extends pulumi.CustomResource {
38
70
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"schedule.js","sourceRoot":"","sources":["../../pipeline/schedule.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;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,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,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;IA4CD,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,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,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,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C,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;;AAjHL,4BAkHC;AApGG,gBAAgB;AACO,qBAAY,GAAG,sCAAsC,CAAC"}
@@ -0,0 +1,128 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * ## # Resource: pipelineTeam
4
+ *
5
+ * This resource allows you to create and manage team configuration in a pipeline.
6
+ *
7
+ * Buildkite Documentation: https://buildkite.com/docs/pipelines/permissions#permissions-with-teams-pipeline-level-permissions
8
+ *
9
+ * ## Example Usage
10
+ *
11
+ * ```typescript
12
+ * import * as pulumi from "@pulumi/pulumi";
13
+ * import * as buildkite from "@pulumiverse/buildkite";
14
+ *
15
+ * const developers = new buildkite.pipeline.Team("developers", {
16
+ * pipelineId: buildkite_pipeline.repo2,
17
+ * teamId: buildkite_team.test.id,
18
+ * accessLevel: "MANAGE_BUILD_AND_READ",
19
+ * });
20
+ * ```
21
+ *
22
+ * ## Import
23
+ *
24
+ * Pipeline teams can be imported using their `GraphQL ID`, e.g.
25
+ *
26
+ * ```sh
27
+ * $ pulumi import buildkite:Pipeline/team:Team guests VGVhbS0tLWU1YjQyMDQyLTUzN2QtNDZjNi04MjY0LTliZjFkMzkyYjZkNQ==
28
+ * ```
29
+ *
30
+ * Your pipeline team's GraphQL ID can be found with the below GraphQL query below.
31
+ *
32
+ * graphql query getPipelineTeamId {
33
+ *
34
+ * pipeline(slug"ORGANIZATION_SLUG/PIPELINE_SLUG") { teams(first5, search"PIPELINE_SEARCH_TERM") {
35
+ *
36
+ * edges{
37
+ *
38
+ * node{
39
+ *
40
+ * id
41
+ *
42
+ * }
43
+ *
44
+ * }
45
+ *
46
+ * }
47
+ *
48
+ * } }
49
+ */
50
+ export declare class Team extends pulumi.CustomResource {
51
+ /**
52
+ * Get an existing Team resource's state with the given name, ID, and optional extra
53
+ * properties used to qualify the lookup.
54
+ *
55
+ * @param name The _unique_ name of the resulting resource.
56
+ * @param id The _unique_ provider ID of the resource to lookup.
57
+ * @param state Any extra arguments used during the lookup.
58
+ * @param opts Optional settings to control the behavior of the CustomResource.
59
+ */
60
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: TeamState, opts?: pulumi.CustomResourceOptions): Team;
61
+ /**
62
+ * Returns true if the given object is an instance of Team. This is designed to work even
63
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
64
+ */
65
+ static isInstance(obj: any): obj is Team;
66
+ /**
67
+ * The level of access to grant. Must be one of `READ_ONLY`, `BUILD_AND_READ` or `MANAGE_BUILD_AND_READ`.
68
+ */
69
+ readonly accessLevel: pulumi.Output<string>;
70
+ /**
71
+ * The GraphQL ID of the pipeline.
72
+ */
73
+ readonly pipelineId: pulumi.Output<string>;
74
+ /**
75
+ * The GraphQL ID of the team to add to/remove from.
76
+ */
77
+ readonly teamId: pulumi.Output<string>;
78
+ /**
79
+ * The UUID of the pipeline schedule
80
+ */
81
+ readonly uuid: pulumi.Output<string>;
82
+ /**
83
+ * Create a Team resource with the given unique name, arguments, and options.
84
+ *
85
+ * @param name The _unique_ name of the resource.
86
+ * @param args The arguments to use to populate this resource's properties.
87
+ * @param opts A bag of options that control this resource's behavior.
88
+ */
89
+ constructor(name: string, args: TeamArgs, opts?: pulumi.CustomResourceOptions);
90
+ }
91
+ /**
92
+ * Input properties used for looking up and filtering Team resources.
93
+ */
94
+ export interface TeamState {
95
+ /**
96
+ * The level of access to grant. Must be one of `READ_ONLY`, `BUILD_AND_READ` or `MANAGE_BUILD_AND_READ`.
97
+ */
98
+ accessLevel?: pulumi.Input<string>;
99
+ /**
100
+ * The GraphQL ID of the pipeline.
101
+ */
102
+ pipelineId?: pulumi.Input<string>;
103
+ /**
104
+ * The GraphQL ID of the team to add to/remove from.
105
+ */
106
+ teamId?: pulumi.Input<string>;
107
+ /**
108
+ * The UUID of the pipeline schedule
109
+ */
110
+ uuid?: pulumi.Input<string>;
111
+ }
112
+ /**
113
+ * The set of arguments for constructing a Team resource.
114
+ */
115
+ export interface TeamArgs {
116
+ /**
117
+ * The level of access to grant. Must be one of `READ_ONLY`, `BUILD_AND_READ` or `MANAGE_BUILD_AND_READ`.
118
+ */
119
+ accessLevel: pulumi.Input<string>;
120
+ /**
121
+ * The GraphQL ID of the pipeline.
122
+ */
123
+ pipelineId: pulumi.Input<string>;
124
+ /**
125
+ * The GraphQL ID of the team to add to/remove from.
126
+ */
127
+ teamId: pulumi.Input<string>;
128
+ }
@@ -0,0 +1,112 @@
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: pipelineTeam
10
+ *
11
+ * This resource allows you to create and manage team configuration in a pipeline.
12
+ *
13
+ * Buildkite Documentation: https://buildkite.com/docs/pipelines/permissions#permissions-with-teams-pipeline-level-permissions
14
+ *
15
+ * ## Example Usage
16
+ *
17
+ * ```typescript
18
+ * import * as pulumi from "@pulumi/pulumi";
19
+ * import * as buildkite from "@pulumiverse/buildkite";
20
+ *
21
+ * const developers = new buildkite.pipeline.Team("developers", {
22
+ * pipelineId: buildkite_pipeline.repo2,
23
+ * teamId: buildkite_team.test.id,
24
+ * accessLevel: "MANAGE_BUILD_AND_READ",
25
+ * });
26
+ * ```
27
+ *
28
+ * ## Import
29
+ *
30
+ * Pipeline teams can be imported using their `GraphQL ID`, e.g.
31
+ *
32
+ * ```sh
33
+ * $ pulumi import buildkite:Pipeline/team:Team guests VGVhbS0tLWU1YjQyMDQyLTUzN2QtNDZjNi04MjY0LTliZjFkMzkyYjZkNQ==
34
+ * ```
35
+ *
36
+ * Your pipeline team's GraphQL ID can be found with the below GraphQL query below.
37
+ *
38
+ * graphql query getPipelineTeamId {
39
+ *
40
+ * pipeline(slug"ORGANIZATION_SLUG/PIPELINE_SLUG") { teams(first5, search"PIPELINE_SEARCH_TERM") {
41
+ *
42
+ * edges{
43
+ *
44
+ * node{
45
+ *
46
+ * id
47
+ *
48
+ * }
49
+ *
50
+ * }
51
+ *
52
+ * }
53
+ *
54
+ * } }
55
+ */
56
+ class Team extends pulumi.CustomResource {
57
+ /**
58
+ * Get an existing Team resource's state with the given name, ID, and optional extra
59
+ * properties used to qualify the lookup.
60
+ *
61
+ * @param name The _unique_ name of the resulting resource.
62
+ * @param id The _unique_ provider ID of the resource to lookup.
63
+ * @param state Any extra arguments used during the lookup.
64
+ * @param opts Optional settings to control the behavior of the CustomResource.
65
+ */
66
+ static get(name, id, state, opts) {
67
+ return new Team(name, state, Object.assign(Object.assign({}, opts), { id: id }));
68
+ }
69
+ /**
70
+ * Returns true if the given object is an instance of Team. This is designed to work even
71
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
72
+ */
73
+ static isInstance(obj) {
74
+ if (obj === undefined || obj === null) {
75
+ return false;
76
+ }
77
+ return obj['__pulumiType'] === Team.__pulumiType;
78
+ }
79
+ constructor(name, argsOrState, opts) {
80
+ let resourceInputs = {};
81
+ opts = opts || {};
82
+ if (opts.id) {
83
+ const state = argsOrState;
84
+ resourceInputs["accessLevel"] = state ? state.accessLevel : undefined;
85
+ resourceInputs["pipelineId"] = state ? state.pipelineId : undefined;
86
+ resourceInputs["teamId"] = state ? state.teamId : undefined;
87
+ resourceInputs["uuid"] = state ? state.uuid : undefined;
88
+ }
89
+ else {
90
+ const args = argsOrState;
91
+ if ((!args || args.accessLevel === undefined) && !opts.urn) {
92
+ throw new Error("Missing required property 'accessLevel'");
93
+ }
94
+ if ((!args || args.pipelineId === undefined) && !opts.urn) {
95
+ throw new Error("Missing required property 'pipelineId'");
96
+ }
97
+ if ((!args || args.teamId === undefined) && !opts.urn) {
98
+ throw new Error("Missing required property 'teamId'");
99
+ }
100
+ resourceInputs["accessLevel"] = args ? args.accessLevel : undefined;
101
+ resourceInputs["pipelineId"] = args ? args.pipelineId : undefined;
102
+ resourceInputs["teamId"] = args ? args.teamId : undefined;
103
+ resourceInputs["uuid"] = undefined /*out*/;
104
+ }
105
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
106
+ super(Team.__pulumiType, name, resourceInputs, opts);
107
+ }
108
+ }
109
+ exports.Team = Team;
110
+ /** @internal */
111
+ Team.__pulumiType = 'buildkite:Pipeline/team:Team';
112
+ //# sourceMappingURL=team.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"team.js","sourceRoot":"","sources":["../../pipeline/team.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;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;IA2BD,YAAY,IAAY,EAAE,WAAkC,EAAE,IAAmC;QAC7F,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK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AAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,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;;AAhFL,oBAiFC;AAnEG,gBAAgB;AACO,iBAAY,GAAG,8BAA8B,CAAC"}
package/provider.d.ts CHANGED
@@ -12,9 +12,9 @@ export declare class Provider extends pulumi.ProviderResource {
12
12
  */
13
13
  static isInstance(obj: any): obj is Provider;
14
14
  /**
15
- * API token with GraphQL access and `write_pipelines, read_pipelines` scopes
15
+ * API token with GraphQL access and `write_pipelines, read_pipelines` and `write_suites` REST API scopes
16
16
  */
17
- readonly apiToken: pulumi.Output<string>;
17
+ readonly apiToken: pulumi.Output<string | undefined>;
18
18
  /**
19
19
  * Base URL for the GraphQL API to use
20
20
  */
@@ -22,7 +22,7 @@ export declare class Provider extends pulumi.ProviderResource {
22
22
  /**
23
23
  * The Buildkite organization slug
24
24
  */
25
- readonly organization: pulumi.Output<string>;
25
+ readonly organization: pulumi.Output<string | undefined>;
26
26
  /**
27
27
  * Base URL for the REST API to use
28
28
  */
@@ -34,16 +34,20 @@ export declare class Provider extends pulumi.ProviderResource {
34
34
  * @param args The arguments to use to populate this resource's properties.
35
35
  * @param opts A bag of options that control this resource's behavior.
36
36
  */
37
- constructor(name: string, args: ProviderArgs, opts?: pulumi.ResourceOptions);
37
+ constructor(name: string, args?: ProviderArgs, opts?: pulumi.ResourceOptions);
38
38
  }
39
39
  /**
40
40
  * The set of arguments for constructing a Provider resource.
41
41
  */
42
42
  export interface ProviderArgs {
43
43
  /**
44
- * API token with GraphQL access and `write_pipelines, read_pipelines` scopes
44
+ * API token with GraphQL access and `write_pipelines, read_pipelines` and `write_suites` REST API scopes
45
45
  */
46
- apiToken: pulumi.Input<string>;
46
+ apiToken?: pulumi.Input<string>;
47
+ /**
48
+ * Archive pipelines when destroying instead of completely deleting.
49
+ */
50
+ archivePipelineOnDelete?: pulumi.Input<boolean>;
47
51
  /**
48
52
  * Base URL for the GraphQL API to use
49
53
  */
@@ -51,7 +55,7 @@ export interface ProviderArgs {
51
55
  /**
52
56
  * The Buildkite organization slug
53
57
  */
54
- organization: pulumi.Input<string>;
58
+ organization?: pulumi.Input<string>;
55
59
  /**
56
60
  * Base URL for the REST API to use
57
61
  */
package/provider.js CHANGED
@@ -20,7 +20,7 @@ class Provider extends pulumi.ProviderResource {
20
20
  if (obj === undefined || obj === null) {
21
21
  return false;
22
22
  }
23
- return obj['__pulumiType'] === Provider.__pulumiType;
23
+ return obj['__pulumiType'] === "pulumi:providers:" + Provider.__pulumiType;
24
24
  }
25
25
  /**
26
26
  * Create a Provider resource with the given unique name, arguments, and options.
@@ -33,18 +33,15 @@ class Provider extends pulumi.ProviderResource {
33
33
  let resourceInputs = {};
34
34
  opts = opts || {};
35
35
  {
36
- if ((!args || args.apiToken === undefined) && !opts.urn) {
37
- throw new Error("Missing required property 'apiToken'");
38
- }
39
- if ((!args || args.organization === undefined) && !opts.urn) {
40
- throw new Error("Missing required property 'organization'");
41
- }
42
- resourceInputs["apiToken"] = args ? args.apiToken : undefined;
36
+ resourceInputs["apiToken"] = (args === null || args === void 0 ? void 0 : args.apiToken) ? pulumi.secret(args.apiToken) : undefined;
37
+ resourceInputs["archivePipelineOnDelete"] = pulumi.output(args ? args.archivePipelineOnDelete : undefined).apply(JSON.stringify);
43
38
  resourceInputs["graphqlUrl"] = args ? args.graphqlUrl : undefined;
44
39
  resourceInputs["organization"] = args ? args.organization : undefined;
45
40
  resourceInputs["restUrl"] = args ? args.restUrl : undefined;
46
41
  }
47
42
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
43
+ const secretOpts = { additionalSecretOutputs: ["apiToken"] };
44
+ opts = pulumi.mergeOptions(opts, secretOpts);
48
45
  super(Provider.__pulumiType, name, resourceInputs, opts);
49
46
  }
50
47
  }
package/provider.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;GAKG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;IAIjD;;;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;IAmBD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAkB,EAAE,IAA6B;QACvE,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB;YACI,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,QAAQ,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACrD,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;aAC3D;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,YAAY,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACzD,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAC;aAC/D;YACD,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC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C,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;YACvF,cAAc,CAAC,yBAAyB,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YACjI,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;SAC/D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC;QAC7D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;;AArDL,4BAsDC;AArDG,gBAAgB;AACO,qBAAY,GAAG,WAAW,CAAC"}
package/team/getTeam.d.ts CHANGED
@@ -13,20 +13,27 @@ import * as pulumi from "@pulumi/pulumi";
13
13
  * import * as pulumi from "@pulumi/pulumi";
14
14
  * import * as buildkite from "@pulumi/buildkite";
15
15
  *
16
- * const myTeam = buildkite.Team.getTeam({
17
- * slug: "my_team",
16
+ * const myTeamData = buildkite.Team.getTeam({
17
+ * id: "<team id>",
18
18
  * });
19
19
  * ```
20
20
  */
21
- export declare function getTeam(args: GetTeamArgs, opts?: pulumi.InvokeOptions): Promise<GetTeamResult>;
21
+ export declare function getTeam(args?: GetTeamArgs, opts?: pulumi.InvokeOptions): Promise<GetTeamResult>;
22
22
  /**
23
23
  * A collection of arguments for invoking getTeam.
24
24
  */
25
25
  export interface GetTeamArgs {
26
26
  /**
27
- * The slug of the team, available in the URL of the team on buildkite.com
27
+ * The GraphQL ID of the team, available in the Settings page for the team.
28
28
  */
29
- slug: string;
29
+ id?: string;
30
+ /**
31
+ * The slug of the team. Available in the URL of the team on buildkite.com; in the format
32
+ * "<organizaton/team-name>"
33
+ *
34
+ * The `team` data-source supports **either** the use of `id` or `slug` for lookup of a team.
35
+ */
36
+ slug?: string;
30
37
  }
31
38
  /**
32
39
  * A collection of values returned by getTeam.
@@ -80,18 +87,25 @@ export interface GetTeamResult {
80
87
  * import * as pulumi from "@pulumi/pulumi";
81
88
  * import * as buildkite from "@pulumi/buildkite";
82
89
  *
83
- * const myTeam = buildkite.Team.getTeam({
84
- * slug: "my_team",
90
+ * const myTeamData = buildkite.Team.getTeam({
91
+ * id: "<team id>",
85
92
  * });
86
93
  * ```
87
94
  */
88
- export declare function getTeamOutput(args: GetTeamOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetTeamResult>;
95
+ export declare function getTeamOutput(args?: GetTeamOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetTeamResult>;
89
96
  /**
90
97
  * A collection of arguments for invoking getTeam.
91
98
  */
92
99
  export interface GetTeamOutputArgs {
93
100
  /**
94
- * The slug of the team, available in the URL of the team on buildkite.com
101
+ * The GraphQL ID of the team, available in the Settings page for the team.
102
+ */
103
+ id?: pulumi.Input<string>;
104
+ /**
105
+ * The slug of the team. Available in the URL of the team on buildkite.com; in the format
106
+ * "<organizaton/team-name>"
107
+ *
108
+ * The `team` data-source supports **either** the use of `id` or `slug` for lookup of a team.
95
109
  */
96
- slug: pulumi.Input<string>;
110
+ slug?: pulumi.Input<string>;
97
111
  }
package/team/getTeam.js CHANGED
@@ -19,14 +19,16 @@ const utilities = require("../utilities");
19
19
  * import * as pulumi from "@pulumi/pulumi";
20
20
  * import * as buildkite from "@pulumi/buildkite";
21
21
  *
22
- * const myTeam = buildkite.Team.getTeam({
23
- * slug: "my_team",
22
+ * const myTeamData = buildkite.Team.getTeam({
23
+ * id: "<team id>",
24
24
  * });
25
25
  * ```
26
26
  */
27
27
  function getTeam(args, opts) {
28
+ args = args || {};
28
29
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
29
30
  return pulumi.runtime.invoke("buildkite:Team/getTeam:getTeam", {
31
+ "id": args.id,
30
32
  "slug": args.slug,
31
33
  }, opts);
32
34
  }
@@ -45,8 +47,8 @@ exports.getTeam = getTeam;
45
47
  * import * as pulumi from "@pulumi/pulumi";
46
48
  * import * as buildkite from "@pulumi/buildkite";
47
49
  *
48
- * const myTeam = buildkite.Team.getTeam({
49
- * slug: "my_team",
50
+ * const myTeamData = buildkite.Team.getTeam({
51
+ * id: "<team id>",
50
52
  * });
51
53
  * ```
52
54
  */
@@ -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;;;;;;;;;;;;;;;;;;GAkBG;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;;;;;;;;;;;;;;;;;;GAkBG;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
@@ -36,17 +36,17 @@ import * as pulumi from "@pulumi/pulumi";
36
36
  * $ pulumi import buildkite:Team/member:Member a_smith VGVhbU1lbWJlci0tLTVlZDEyMmY2LTM2NjQtNDI1MS04YzMwLTc4NjRiMDdiZDQ4Zg==
37
37
  * ```
38
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 {
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 {
40
40
  *
41
- * organization(slug"") {
41
+ * organization(slug"ORGANIZATION_SLUG") {
42
42
  *
43
- * teams(first2, search"") {
43
+ * teams(first2, search"TEAM_SEARCH_TERM") {
44
44
  *
45
45
  * edges {
46
46
  *
47
47
  * node {
48
48
  *
49
- * members(first2, search"") {
49
+ * members(first2, search"TEAM_MEMBER_SEARCH_TERM") {
50
50
  *
51
51
  * edges {
52
52
  *
package/team/member.js CHANGED
@@ -42,17 +42,17 @@ const utilities = require("../utilities");
42
42
  * $ pulumi import buildkite:Team/member:Member a_smith VGVhbU1lbWJlci0tLTVlZDEyMmY2LTM2NjQtNDI1MS04YzMwLTc4NjRiMDdiZDQ4Zg==
43
43
  * ```
44
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 {
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 {
46
46
  *
47
- * organization(slug"") {
47
+ * organization(slug"ORGANIZATION_SLUG") {
48
48
  *
49
- * teams(first2, search"") {
49
+ * teams(first2, search"TEAM_SEARCH_TERM") {
50
50
  *
51
51
  * edges {
52
52
  *
53
53
  * node {
54
54
  *
55
- * members(first2, search"") {
55
+ * members(first2, search"TEAM_MEMBER_SEARCH_TERM") {
56
56
  *
57
57
  * edges {
58
58
  *