@pulumiverse/buildkite 3.1.6 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (152) hide show
  1. package/agent/agentToken.d.ts +0 -2
  2. package/agent/agentToken.js +6 -8
  3. package/agent/agentToken.js.map +1 -1
  4. package/agent/index.js +1 -1
  5. package/agent/index.js.map +1 -1
  6. package/cluster/cluster.d.ts +4 -4
  7. package/cluster/cluster.js +15 -15
  8. package/cluster/cluster.js.map +1 -1
  9. package/cluster/clusterAgentToken.d.ts +5 -5
  10. package/cluster/clusterAgentToken.js +18 -18
  11. package/cluster/clusterAgentToken.js.map +1 -1
  12. package/cluster/clusterDefaultQueue.d.ts +15 -8
  13. package/cluster/clusterDefaultQueue.js +18 -17
  14. package/cluster/clusterDefaultQueue.js.map +1 -1
  15. package/cluster/clusterMaintainer.d.ts +159 -0
  16. package/cluster/clusterMaintainer.js +107 -0
  17. package/cluster/clusterMaintainer.js.map +1 -0
  18. package/cluster/clusterQueue.d.ts +64 -4
  19. package/cluster/clusterQueue.js +44 -16
  20. package/cluster/clusterQueue.js.map +1 -1
  21. package/cluster/clusterSecret.d.ts +148 -0
  22. package/cluster/clusterSecret.js +108 -0
  23. package/cluster/clusterSecret.js.map +1 -0
  24. package/cluster/getCluster.d.ts +12 -9
  25. package/cluster/getCluster.js +11 -10
  26. package/cluster/getCluster.js.map +1 -1
  27. package/cluster/getClusters.d.ts +22 -0
  28. package/cluster/getClusters.js +26 -0
  29. package/cluster/getClusters.js.map +1 -0
  30. package/cluster/index.d.ts +9 -0
  31. package/cluster/index.js +15 -2
  32. package/cluster/index.js.map +1 -1
  33. package/config/index.js +1 -1
  34. package/config/index.js.map +1 -1
  35. package/config/vars.d.ts +7 -6
  36. package/config/vars.js +7 -1
  37. package/config/vars.js.map +1 -1
  38. package/getMeta.d.ts +21 -19
  39. package/getMeta.js +23 -20
  40. package/getMeta.js.map +1 -1
  41. package/index.d.ts +1 -3
  42. package/index.js +19 -5
  43. package/index.js.map +1 -1
  44. package/organization/banner.d.ts +2 -4
  45. package/organization/banner.js +8 -10
  46. package/organization/banner.js.map +1 -1
  47. package/organization/getMember.d.ts +94 -0
  48. package/organization/getMember.js +74 -0
  49. package/organization/getMember.js.map +1 -0
  50. package/organization/getMembers.d.ts +40 -0
  51. package/organization/getMembers.js +44 -0
  52. package/organization/getMembers.js.map +1 -0
  53. package/organization/getOrganization.d.ts +1 -1
  54. package/organization/getOrganization.js +3 -2
  55. package/organization/getOrganization.js.map +1 -1
  56. package/organization/getPortal.d.ts +95 -0
  57. package/organization/getPortal.js +50 -0
  58. package/organization/getPortal.js.map +1 -0
  59. package/organization/getPortals.d.ts +40 -0
  60. package/organization/getPortals.js +44 -0
  61. package/organization/getPortals.js.map +1 -0
  62. package/organization/getRegistry.d.ts +78 -0
  63. package/organization/getRegistry.js +34 -0
  64. package/organization/getRegistry.js.map +1 -0
  65. package/organization/getRule.d.ts +124 -0
  66. package/organization/getRule.js +72 -0
  67. package/organization/getRule.js.map +1 -0
  68. package/organization/index.d.ts +27 -0
  69. package/organization/index.js +35 -2
  70. package/organization/index.js.map +1 -1
  71. package/organization/organization.d.ts +3 -3
  72. package/organization/organization.js +10 -10
  73. package/organization/organization.js.map +1 -1
  74. package/organization/portal.d.ts +217 -0
  75. package/organization/portal.js +150 -0
  76. package/organization/portal.js.map +1 -0
  77. package/organization/registry.d.ts +161 -0
  78. package/organization/registry.js +87 -0
  79. package/organization/registry.js.map +1 -0
  80. package/organization/rule.d.ts +267 -0
  81. package/organization/rule.js +212 -0
  82. package/organization/rule.js.map +1 -0
  83. package/package.json +2 -1
  84. package/pipeline/getPipeline.d.ts +11 -7
  85. package/pipeline/getPipeline.js +7 -8
  86. package/pipeline/getPipeline.js.map +1 -1
  87. package/pipeline/getSignedSteps.d.ts +8 -49
  88. package/pipeline/getSignedSteps.js +13 -50
  89. package/pipeline/getSignedSteps.js.map +1 -1
  90. package/pipeline/getTemplate.d.ts +9 -11
  91. package/pipeline/getTemplate.js +15 -12
  92. package/pipeline/getTemplate.js.map +1 -1
  93. package/pipeline/index.d.ts +3 -0
  94. package/pipeline/index.js +7 -2
  95. package/pipeline/index.js.map +1 -1
  96. package/pipeline/pipeline.d.ts +30 -14
  97. package/pipeline/pipeline.js +54 -48
  98. package/pipeline/pipeline.js.map +1 -1
  99. package/pipeline/schedule.d.ts +8 -7
  100. package/pipeline/schedule.js +31 -30
  101. package/pipeline/schedule.js.map +1 -1
  102. package/pipeline/team.d.ts +8 -6
  103. package/pipeline/team.js +20 -18
  104. package/pipeline/team.js.map +1 -1
  105. package/pipeline/template.d.ts +11 -11
  106. package/pipeline/template.js +23 -23
  107. package/pipeline/template.js.map +1 -1
  108. package/pipeline/webhook.d.ts +120 -0
  109. package/pipeline/webhook.js +111 -0
  110. package/pipeline/webhook.js.map +1 -0
  111. package/provider.d.ts +24 -24
  112. package/provider.js +16 -7
  113. package/provider.js.map +1 -1
  114. package/team/getTeam.d.ts +21 -9
  115. package/team/getTeam.js +11 -10
  116. package/team/getTeam.js.map +1 -1
  117. package/team/getTeams.d.ts +22 -0
  118. package/team/getTeams.js +26 -0
  119. package/team/getTeams.js.map +1 -0
  120. package/team/index.d.ts +3 -0
  121. package/team/index.js +5 -2
  122. package/team/index.js.map +1 -1
  123. package/team/member.d.ts +4 -5
  124. package/team/member.js +16 -17
  125. package/team/member.js.map +1 -1
  126. package/team/team.d.ts +54 -7
  127. package/team/team.js +32 -25
  128. package/team/team.js.map +1 -1
  129. package/testsuite/getTestSuite.d.ts +90 -0
  130. package/testsuite/getTestSuite.js +66 -0
  131. package/testsuite/getTestSuite.js.map +1 -0
  132. package/testsuite/index.d.ts +3 -0
  133. package/testsuite/index.js +5 -2
  134. package/testsuite/index.js.map +1 -1
  135. package/testsuite/team.d.ts +4 -5
  136. package/testsuite/team.js +16 -17
  137. package/testsuite/team.js.map +1 -1
  138. package/testsuite/testSuite.d.ts +50 -2
  139. package/testsuite/testSuite.js +53 -15
  140. package/testsuite/testSuite.js.map +1 -1
  141. package/types/index.js +1 -1
  142. package/types/index.js.map +1 -1
  143. package/types/input.d.ts +81 -5
  144. package/types/input.js +1 -1
  145. package/types/input.js.map +1 -1
  146. package/types/output.d.ts +323 -5
  147. package/types/output.js +1 -1
  148. package/types/output.js.map +1 -1
  149. package/utilities.d.ts +0 -4
  150. package/utilities.js +20 -30
  151. package/utilities.js.map +1 -1
  152. package/package.json.bak +0 -28
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
3
  // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.getPipelineOutput = exports.getPipeline = void 0;
@@ -12,16 +12,14 @@ const utilities = require("../utilities");
12
12
  *
13
13
  * ## Example Usage
14
14
  *
15
- * <!--Start PulumiCodeChooser -->
16
15
  * ```typescript
17
16
  * import * as pulumi from "@pulumi/pulumi";
18
- * import * as buildkite from "@pulumi/buildkite";
17
+ * import * as buildkite from "@pulumiverse/buildkite";
19
18
  *
20
19
  * const pipeline = buildkite.Pipeline.getPipeline({
21
20
  * slug: "buildkite",
22
21
  * });
23
22
  * ```
24
- * <!--End PulumiCodeChooser -->
25
23
  */
26
24
  function getPipeline(args, opts) {
27
25
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
@@ -37,19 +35,20 @@ exports.getPipeline = getPipeline;
37
35
  *
38
36
  * ## Example Usage
39
37
  *
40
- * <!--Start PulumiCodeChooser -->
41
38
  * ```typescript
42
39
  * import * as pulumi from "@pulumi/pulumi";
43
- * import * as buildkite from "@pulumi/buildkite";
40
+ * import * as buildkite from "@pulumiverse/buildkite";
44
41
  *
45
42
  * const pipeline = buildkite.Pipeline.getPipeline({
46
43
  * slug: "buildkite",
47
44
  * });
48
45
  * ```
49
- * <!--End PulumiCodeChooser -->
50
46
  */
51
47
  function getPipelineOutput(args, opts) {
52
- return pulumi.output(args).apply((a) => getPipeline(a, opts));
48
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
49
+ return pulumi.runtime.invokeOutput("buildkite:Pipeline/getPipeline:getPipeline", {
50
+ "slug": args.slug,
51
+ }, opts);
53
52
  }
54
53
  exports.getPipelineOutput = getPipelineOutput;
55
54
  //# sourceMappingURL=getPipeline.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getPipeline.js","sourceRoot":"","sources":["../../pipeline/getPipeline.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,WAAW,CAAC,IAAqB,EAAE,IAA2B;IAE1E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,4CAA4C,EAAE;QACvE,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,kCAMC;AAiDD;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,iBAAiB,CAAC,IAA2B,EAAE,IAA2B;IACtF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,WAAW,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACtE,CAAC;AAFD,8CAEC"}
1
+ {"version":3,"file":"getPipeline.js","sourceRoot":"","sources":["../../pipeline/getPipeline.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,WAAW,CAAC,IAAqB,EAAE,IAA2B;IAC1E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,4CAA4C,EAAE;QACvE,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,kCAKC;AAyDD;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,iBAAiB,CAAC,IAA2B,EAAE,IAAiC;IAC5F,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,4CAA4C,EAAE;QAC7E,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,8CAKC"}
@@ -10,30 +10,8 @@ import * as pulumi from "@pulumi/pulumi";
10
10
  * See the Buildkite [documentation](https://buildkite.com/docs/agent/v3/signed_pipelines)
11
11
  * for more info about signed pipelines.
12
12
  *
13
- * ## Example Usage
14
- *
15
- * <!--Start PulumiCodeChooser -->
16
- * ```typescript
17
- * import * as pulumi from "@pulumi/pulumi";
18
- * import * as buildkite from "@pulumi/buildkite";
19
- * import * as buildkite from "@pulumiverse/buildkite";
20
- *
21
- * const repository = "git@github.com:my-org/my-repo.git";
22
- * const my-steps = buildkite.Pipeline.getSignedSteps({
23
- * repository: repository,
24
- * jwksFile: "/path/to/my/jwks.json",
25
- * jwksKeyId: "my-key",
26
- * unsignedSteps: `steps:
27
- * - label: ":pipeline:"
28
- * command: buildkite-agent pipeline upload
29
- * `,
30
- * });
31
- * const my_pipeline = new buildkite.pipeline.Pipeline("my-pipeline", {
32
- * repository: repository,
33
- * steps: my_steps.then(my_steps => my_steps.steps),
34
- * });
35
- * ```
36
- * <!--End PulumiCodeChooser -->
13
+ * Note that the PS512 and ES512 signature algorithms are nondeterministic and
14
+ * will result in the signature changing on each run. Use EdDSA to avoid drift.
37
15
  */
38
16
  export declare function getSignedSteps(args: GetSignedStepsArgs, opts?: pulumi.InvokeOptions): Promise<GetSignedStepsResult>;
39
17
  /**
@@ -42,6 +20,7 @@ export declare function getSignedSteps(args: GetSignedStepsArgs, opts?: pulumi.I
42
20
  export interface GetSignedStepsArgs {
43
21
  /**
44
22
  * The JSON Web Key Set (JWKS) to use for signing.
23
+ * All double-quotes in the JSON object must be escaped `\"`.
45
24
  * If `jwksKeyId` is not specified, and the set contains exactly one key, that key will
46
25
  * be used.
47
26
  */
@@ -67,6 +46,7 @@ export interface GetSignedStepsResult {
67
46
  readonly id: string;
68
47
  /**
69
48
  * The JSON Web Key Set (JWKS) to use for signing.
49
+ * All double-quotes in the JSON object must be escaped `\"`.
70
50
  * If `jwksKeyId` is not specified, and the set contains exactly one key, that key will
71
51
  * be used.
72
52
  */
@@ -94,38 +74,17 @@ export interface GetSignedStepsResult {
94
74
  * See the Buildkite [documentation](https://buildkite.com/docs/agent/v3/signed_pipelines)
95
75
  * for more info about signed pipelines.
96
76
  *
97
- * ## Example Usage
98
- *
99
- * <!--Start PulumiCodeChooser -->
100
- * ```typescript
101
- * import * as pulumi from "@pulumi/pulumi";
102
- * import * as buildkite from "@pulumi/buildkite";
103
- * import * as buildkite from "@pulumiverse/buildkite";
104
- *
105
- * const repository = "git@github.com:my-org/my-repo.git";
106
- * const my-steps = buildkite.Pipeline.getSignedSteps({
107
- * repository: repository,
108
- * jwksFile: "/path/to/my/jwks.json",
109
- * jwksKeyId: "my-key",
110
- * unsignedSteps: `steps:
111
- * - label: ":pipeline:"
112
- * command: buildkite-agent pipeline upload
113
- * `,
114
- * });
115
- * const my_pipeline = new buildkite.pipeline.Pipeline("my-pipeline", {
116
- * repository: repository,
117
- * steps: my_steps.then(my_steps => my_steps.steps),
118
- * });
119
- * ```
120
- * <!--End PulumiCodeChooser -->
77
+ * Note that the PS512 and ES512 signature algorithms are nondeterministic and
78
+ * will result in the signature changing on each run. Use EdDSA to avoid drift.
121
79
  */
122
- export declare function getSignedStepsOutput(args: GetSignedStepsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetSignedStepsResult>;
80
+ export declare function getSignedStepsOutput(args: GetSignedStepsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetSignedStepsResult>;
123
81
  /**
124
82
  * A collection of arguments for invoking getSignedSteps.
125
83
  */
126
84
  export interface GetSignedStepsOutputArgs {
127
85
  /**
128
86
  * The JSON Web Key Set (JWKS) to use for signing.
87
+ * All double-quotes in the JSON object must be escaped `\"`.
129
88
  * If `jwksKeyId` is not specified, and the set contains exactly one key, that key will
130
89
  * be used.
131
90
  */
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
3
  // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.getSignedStepsOutput = exports.getSignedSteps = void 0;
@@ -16,30 +16,8 @@ const utilities = require("../utilities");
16
16
  * See the Buildkite [documentation](https://buildkite.com/docs/agent/v3/signed_pipelines)
17
17
  * for more info about signed pipelines.
18
18
  *
19
- * ## Example Usage
20
- *
21
- * <!--Start PulumiCodeChooser -->
22
- * ```typescript
23
- * import * as pulumi from "@pulumi/pulumi";
24
- * import * as buildkite from "@pulumi/buildkite";
25
- * import * as buildkite from "@pulumiverse/buildkite";
26
- *
27
- * const repository = "git@github.com:my-org/my-repo.git";
28
- * const my-steps = buildkite.Pipeline.getSignedSteps({
29
- * repository: repository,
30
- * jwksFile: "/path/to/my/jwks.json",
31
- * jwksKeyId: "my-key",
32
- * unsignedSteps: `steps:
33
- * - label: ":pipeline:"
34
- * command: buildkite-agent pipeline upload
35
- * `,
36
- * });
37
- * const my_pipeline = new buildkite.pipeline.Pipeline("my-pipeline", {
38
- * repository: repository,
39
- * steps: my_steps.then(my_steps => my_steps.steps),
40
- * });
41
- * ```
42
- * <!--End PulumiCodeChooser -->
19
+ * Note that the PS512 and ES512 signature algorithms are nondeterministic and
20
+ * will result in the signature changing on each run. Use EdDSA to avoid drift.
43
21
  */
44
22
  function getSignedSteps(args, opts) {
45
23
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
@@ -63,33 +41,18 @@ exports.getSignedSteps = getSignedSteps;
63
41
  * See the Buildkite [documentation](https://buildkite.com/docs/agent/v3/signed_pipelines)
64
42
  * for more info about signed pipelines.
65
43
  *
66
- * ## Example Usage
67
- *
68
- * <!--Start PulumiCodeChooser -->
69
- * ```typescript
70
- * import * as pulumi from "@pulumi/pulumi";
71
- * import * as buildkite from "@pulumi/buildkite";
72
- * import * as buildkite from "@pulumiverse/buildkite";
73
- *
74
- * const repository = "git@github.com:my-org/my-repo.git";
75
- * const my-steps = buildkite.Pipeline.getSignedSteps({
76
- * repository: repository,
77
- * jwksFile: "/path/to/my/jwks.json",
78
- * jwksKeyId: "my-key",
79
- * unsignedSteps: `steps:
80
- * - label: ":pipeline:"
81
- * command: buildkite-agent pipeline upload
82
- * `,
83
- * });
84
- * const my_pipeline = new buildkite.pipeline.Pipeline("my-pipeline", {
85
- * repository: repository,
86
- * steps: my_steps.then(my_steps => my_steps.steps),
87
- * });
88
- * ```
89
- * <!--End PulumiCodeChooser -->
44
+ * Note that the PS512 and ES512 signature algorithms are nondeterministic and
45
+ * will result in the signature changing on each run. Use EdDSA to avoid drift.
90
46
  */
91
47
  function getSignedStepsOutput(args, opts) {
92
- return pulumi.output(args).apply((a) => getSignedSteps(a, opts));
48
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
49
+ return pulumi.runtime.invokeOutput("buildkite:Pipeline/getSignedSteps:getSignedSteps", {
50
+ "jwks": args.jwks,
51
+ "jwksFile": args.jwksFile,
52
+ "jwksKeyId": args.jwksKeyId,
53
+ "repository": args.repository,
54
+ "unsignedSteps": args.unsignedSteps,
55
+ }, opts);
93
56
  }
94
57
  exports.getSignedStepsOutput = getSignedStepsOutput;
95
58
  //# sourceMappingURL=getSignedSteps.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getSignedSteps.js","sourceRoot":"","sources":["../../pipeline/getSignedSteps.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,SAAgB,cAAc,CAAC,IAAwB,EAAE,IAA2B;IAEhF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,kDAAkD,EAAE;QAC7E,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,eAAe,EAAE,IAAI,CAAC,aAAa;KACtC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAVD,wCAUC;AAkDD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,SAAgB,oBAAoB,CAAC,IAA8B,EAAE,IAA2B;IAC5F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,cAAc,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACzE,CAAC;AAFD,oDAEC"}
1
+ {"version":3,"file":"getSignedSteps.js","sourceRoot":"","sources":["../../pipeline/getSignedSteps.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;GAaG;AACH,SAAgB,cAAc,CAAC,IAAwB,EAAE,IAA2B;IAChF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,kDAAkD,EAAE;QAC7E,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,eAAe,EAAE,IAAI,CAAC,aAAa;KACtC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AATD,wCASC;AAoDD;;;;;;;;;;;;;GAaG;AACH,SAAgB,oBAAoB,CAAC,IAA8B,EAAE,IAAiC;IAClG,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,kDAAkD,EAAE;QACnF,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,eAAe,EAAE,IAAI,CAAC,aAAa;KACtC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AATD,oDASC"}
@@ -6,29 +6,28 @@ import * as pulumi from "@pulumi/pulumi";
6
6
  *
7
7
  * ## Example Usage
8
8
  *
9
- * <!--Start PulumiCodeChooser -->
10
9
  * ```typescript
11
10
  * import * as pulumi from "@pulumi/pulumi";
12
- * import * as buildkite from "@pulumi/buildkite";
13
11
  * import * as buildkite from "@pulumiverse/buildkite";
14
12
  *
15
13
  * const repository = "git@github.com:my-org/my-repo.git";
16
14
  * const devTemplate = buildkite.Pipeline.getTemplate({
17
- * id: buildkite_pipeline_template.template_dev.id,
15
+ * id: templateDev.id,
18
16
  * });
19
17
  * const frontendTemplate = buildkite.Pipeline.getTemplate({
20
18
  * name: "Frontend app template",
21
19
  * });
22
- * const apiv2Dev = new buildkite.pipeline.Pipeline("apiv2Dev", {
20
+ * const apiv2Dev = new buildkite.pipeline.Pipeline("apiv2_dev", {
21
+ * name: "API v2",
23
22
  * repository: repository,
24
23
  * pipelineTemplateId: devTemplate.then(devTemplate => devTemplate.id),
25
24
  * });
26
25
  * const frontend = new buildkite.pipeline.Pipeline("frontend", {
26
+ * name: "Frontend",
27
27
  * repository: repository,
28
28
  * pipelineTemplateId: frontendTemplate.then(frontendTemplate => frontendTemplate.id),
29
29
  * });
30
30
  * ```
31
- * <!--End PulumiCodeChooser -->
32
31
  */
33
32
  export declare function getTemplate(args?: GetTemplateArgs, opts?: pulumi.InvokeOptions): Promise<GetTemplateResult>;
34
33
  /**
@@ -80,31 +79,30 @@ export interface GetTemplateResult {
80
79
  *
81
80
  * ## Example Usage
82
81
  *
83
- * <!--Start PulumiCodeChooser -->
84
82
  * ```typescript
85
83
  * import * as pulumi from "@pulumi/pulumi";
86
- * import * as buildkite from "@pulumi/buildkite";
87
84
  * import * as buildkite from "@pulumiverse/buildkite";
88
85
  *
89
86
  * const repository = "git@github.com:my-org/my-repo.git";
90
87
  * const devTemplate = buildkite.Pipeline.getTemplate({
91
- * id: buildkite_pipeline_template.template_dev.id,
88
+ * id: templateDev.id,
92
89
  * });
93
90
  * const frontendTemplate = buildkite.Pipeline.getTemplate({
94
91
  * name: "Frontend app template",
95
92
  * });
96
- * const apiv2Dev = new buildkite.pipeline.Pipeline("apiv2Dev", {
93
+ * const apiv2Dev = new buildkite.pipeline.Pipeline("apiv2_dev", {
94
+ * name: "API v2",
97
95
  * repository: repository,
98
96
  * pipelineTemplateId: devTemplate.then(devTemplate => devTemplate.id),
99
97
  * });
100
98
  * const frontend = new buildkite.pipeline.Pipeline("frontend", {
99
+ * name: "Frontend",
101
100
  * repository: repository,
102
101
  * pipelineTemplateId: frontendTemplate.then(frontendTemplate => frontendTemplate.id),
103
102
  * });
104
103
  * ```
105
- * <!--End PulumiCodeChooser -->
106
104
  */
107
- export declare function getTemplateOutput(args?: GetTemplateOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetTemplateResult>;
105
+ export declare function getTemplateOutput(args?: GetTemplateOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetTemplateResult>;
108
106
  /**
109
107
  * A collection of arguments for invoking getTemplate.
110
108
  */
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
3
  // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.getTemplateOutput = exports.getTemplate = void 0;
@@ -12,29 +12,28 @@ const utilities = require("../utilities");
12
12
  *
13
13
  * ## Example Usage
14
14
  *
15
- * <!--Start PulumiCodeChooser -->
16
15
  * ```typescript
17
16
  * import * as pulumi from "@pulumi/pulumi";
18
- * import * as buildkite from "@pulumi/buildkite";
19
17
  * import * as buildkite from "@pulumiverse/buildkite";
20
18
  *
21
19
  * const repository = "git@github.com:my-org/my-repo.git";
22
20
  * const devTemplate = buildkite.Pipeline.getTemplate({
23
- * id: buildkite_pipeline_template.template_dev.id,
21
+ * id: templateDev.id,
24
22
  * });
25
23
  * const frontendTemplate = buildkite.Pipeline.getTemplate({
26
24
  * name: "Frontend app template",
27
25
  * });
28
- * const apiv2Dev = new buildkite.pipeline.Pipeline("apiv2Dev", {
26
+ * const apiv2Dev = new buildkite.pipeline.Pipeline("apiv2_dev", {
27
+ * name: "API v2",
29
28
  * repository: repository,
30
29
  * pipelineTemplateId: devTemplate.then(devTemplate => devTemplate.id),
31
30
  * });
32
31
  * const frontend = new buildkite.pipeline.Pipeline("frontend", {
32
+ * name: "Frontend",
33
33
  * repository: repository,
34
34
  * pipelineTemplateId: frontendTemplate.then(frontendTemplate => frontendTemplate.id),
35
35
  * });
36
36
  * ```
37
- * <!--End PulumiCodeChooser -->
38
37
  */
39
38
  function getTemplate(args, opts) {
40
39
  args = args || {};
@@ -52,32 +51,36 @@ exports.getTemplate = getTemplate;
52
51
  *
53
52
  * ## Example Usage
54
53
  *
55
- * <!--Start PulumiCodeChooser -->
56
54
  * ```typescript
57
55
  * import * as pulumi from "@pulumi/pulumi";
58
- * import * as buildkite from "@pulumi/buildkite";
59
56
  * import * as buildkite from "@pulumiverse/buildkite";
60
57
  *
61
58
  * const repository = "git@github.com:my-org/my-repo.git";
62
59
  * const devTemplate = buildkite.Pipeline.getTemplate({
63
- * id: buildkite_pipeline_template.template_dev.id,
60
+ * id: templateDev.id,
64
61
  * });
65
62
  * const frontendTemplate = buildkite.Pipeline.getTemplate({
66
63
  * name: "Frontend app template",
67
64
  * });
68
- * const apiv2Dev = new buildkite.pipeline.Pipeline("apiv2Dev", {
65
+ * const apiv2Dev = new buildkite.pipeline.Pipeline("apiv2_dev", {
66
+ * name: "API v2",
69
67
  * repository: repository,
70
68
  * pipelineTemplateId: devTemplate.then(devTemplate => devTemplate.id),
71
69
  * });
72
70
  * const frontend = new buildkite.pipeline.Pipeline("frontend", {
71
+ * name: "Frontend",
73
72
  * repository: repository,
74
73
  * pipelineTemplateId: frontendTemplate.then(frontendTemplate => frontendTemplate.id),
75
74
  * });
76
75
  * ```
77
- * <!--End PulumiCodeChooser -->
78
76
  */
79
77
  function getTemplateOutput(args, opts) {
80
- return pulumi.output(args).apply((a) => getTemplate(a, opts));
78
+ args = args || {};
79
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
80
+ return pulumi.runtime.invokeOutput("buildkite:Pipeline/getTemplate:getTemplate", {
81
+ "id": args.id,
82
+ "name": args.name,
83
+ }, opts);
81
84
  }
82
85
  exports.getTemplateOutput = getTemplateOutput;
83
86
  //# sourceMappingURL=getTemplate.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getTemplate.js","sourceRoot":"","sources":["../../pipeline/getTemplate.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,SAAgB,WAAW,CAAC,IAAsB,EAAE,IAA2B;IAC3E,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,4CAA4C,EAAE;QACvE,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,kCAQC;AA6CD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,SAAgB,iBAAiB,CAAC,IAA4B,EAAE,IAA2B;IACvF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,WAAW,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACtE,CAAC;AAFD,8CAEC"}
1
+ {"version":3,"file":"getTemplate.js","sourceRoot":"","sources":["../../pipeline/getTemplate.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,SAAgB,WAAW,CAAC,IAAsB,EAAE,IAA2B;IAC3E,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,4CAA4C,EAAE;QACvE,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,kCAOC;AA6CD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,SAAgB,iBAAiB,CAAC,IAA4B,EAAE,IAAiC;IAC7F,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,4CAA4C,EAAE;QAC7E,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,8CAOC"}
@@ -19,3 +19,6 @@ export declare const Team: typeof import("./team").Team;
19
19
  export { TemplateArgs, TemplateState } from "./template";
20
20
  export type Template = import("./template").Template;
21
21
  export declare const Template: typeof import("./template").Template;
22
+ export { WebhookArgs, WebhookState } from "./webhook";
23
+ export type Webhook = import("./webhook").Webhook;
24
+ export declare const Webhook: typeof import("./webhook").Webhook;
package/pipeline/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
- // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
3
  // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.Template = exports.Team = exports.Schedule = exports.Pipeline = exports.getTemplateOutput = exports.getTemplate = exports.getSignedStepsOutput = exports.getSignedSteps = exports.getPipelineOutput = exports.getPipeline = void 0;
5
+ exports.Webhook = exports.Template = exports.Team = exports.Schedule = exports.Pipeline = exports.getTemplateOutput = exports.getTemplate = exports.getSignedStepsOutput = exports.getSignedSteps = exports.getPipelineOutput = exports.getPipeline = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("../utilities");
8
8
  exports.getPipeline = null;
@@ -22,6 +22,8 @@ exports.Team = null;
22
22
  utilities.lazyLoad(exports, ["Team"], () => require("./team"));
23
23
  exports.Template = null;
24
24
  utilities.lazyLoad(exports, ["Template"], () => require("./template"));
25
+ exports.Webhook = null;
26
+ utilities.lazyLoad(exports, ["Webhook"], () => require("./webhook"));
25
27
  const _module = {
26
28
  version: utilities.getVersion(),
27
29
  construct: (name, type, urn) => {
@@ -34,6 +36,8 @@ const _module = {
34
36
  return new exports.Team(name, undefined, { urn });
35
37
  case "buildkite:Pipeline/template:Template":
36
38
  return new exports.Template(name, undefined, { urn });
39
+ case "buildkite:Pipeline/webhook:Webhook":
40
+ return new exports.Webhook(name, undefined, { urn });
37
41
  default:
38
42
  throw new Error(`unknown resource type ${type}`);
39
43
  }
@@ -43,4 +47,5 @@ pulumi.runtime.registerResourceModule("buildkite", "Pipeline/pipeline", _module)
43
47
  pulumi.runtime.registerResourceModule("buildkite", "Pipeline/schedule", _module);
44
48
  pulumi.runtime.registerResourceModule("buildkite", "Pipeline/team", _module);
45
49
  pulumi.runtime.registerResourceModule("buildkite", "Pipeline/template", _module);
50
+ pulumi.runtime.registerResourceModule("buildkite", "Pipeline/webhook", _module);
46
51
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../pipeline/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAI7B,QAAA,WAAW,GAA+C,IAAW,CAAC;AACtE,QAAA,iBAAiB,GAAqD,IAAW,CAAC;AAC/F,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,aA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EAAE,OAAO,CAAC,CAAA;AAChF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,WAAW,EAAE,kBAAkB,EAAE,OAAO,CAAC,CAAA"}
@@ -6,8 +6,12 @@ import * as outputs from "../types/output";
6
6
  *
7
7
  * More information on pipelines can be found in the [documentation](https://buildkite.com/docs/pipelines).
8
8
  *
9
+ * > **Note:** When creating a new pipeline, the Buildkite API requires at least one team to be associated with it. You must use the 'default_team_id' attribute to specify this initial team. The 'buildkite_pipeline_team' resource can then be used to manage team access for existing pipelines.
10
+ *
9
11
  * ## Import
10
12
  *
13
+ * Using `pulumi import`, import resources using the `id`. For example:
14
+ *
11
15
  * import a pipeline resource using the pipelines GraphQL ID
12
16
  *
13
17
  * GraphQL ID for a pipeline can be found on its settings page
@@ -49,13 +53,17 @@ export declare class Pipeline extends pulumi.CustomResource {
49
53
  */
50
54
  readonly cancelIntermediateBuilds: pulumi.Output<boolean>;
51
55
  /**
52
- * Filter the `cancel_intermediate_builds` setting based on this branch condition.
56
+ * Filter the `cancelIntermediateBuilds` setting based on this branch condition.
53
57
  */
54
58
  readonly cancelIntermediateBuildsBranchFilter: pulumi.Output<string>;
55
59
  /**
56
60
  * Attach this pipeline to the given cluster GraphQL ID.
57
61
  */
58
62
  readonly clusterId: pulumi.Output<string | undefined>;
63
+ /**
64
+ * The name of the cluster the pipeline is (optionally) attached to.
65
+ */
66
+ readonly clusterName: pulumi.Output<string>;
59
67
  /**
60
68
  * A color hex code to represent this pipeline.
61
69
  */
@@ -65,7 +73,7 @@ export declare class Pipeline extends pulumi.CustomResource {
65
73
  */
66
74
  readonly defaultBranch: pulumi.Output<string>;
67
75
  /**
68
- * The GraphQL ID of the team to use as the default owner of the pipeline.
76
+ * The GraphQL ID of a team to initially assign to the pipeline. This is required by the Buildkite API when creating a new pipeline. The team assigned here will be given 'Manage Build and Read' access. Further team associations can be managed with the `buildkite.Pipeline.Team` resource after the pipeline is created.
69
77
  */
70
78
  readonly defaultTeamId: pulumi.Output<string | undefined>;
71
79
  /**
@@ -105,15 +113,15 @@ export declare class Pipeline extends pulumi.CustomResource {
105
113
  */
106
114
  readonly skipIntermediateBuilds: pulumi.Output<boolean>;
107
115
  /**
108
- * Filter the `skip_intermediate_builds` setting based on this branch condition.
116
+ * Filter the `skipIntermediateBuilds` setting based on this branch condition.
109
117
  */
110
118
  readonly skipIntermediateBuildsBranchFilter: pulumi.Output<string>;
111
119
  /**
112
- * The slug generated for the pipeline.
120
+ * A custom identifier for the pipeline. If provided, this slug will be used as the pipeline's URL path instead of automatically converting the pipeline name. If not provided, the slug will be [derived](https://buildkite.com/docs/apis/graphql/cookbooks/pipelines#create-a-pipeline-deriving-a-pipeline-slug-from-the-pipelines-name) from the pipeline `name`.
113
121
  */
114
122
  readonly slug: pulumi.Output<string>;
115
123
  /**
116
- * The YAML steps to configure for the pipeline. Defaults to `buildkite-agent pipeline upload`.
124
+ * The YAML steps to configure for the pipeline. Can also accept the `steps` attribute from the [`buildkite.Pipeline.getSignedSteps`](https://www.terraform.io/docs/data-sources/signed_pipeline_steps) data source to enable a signed pipeline. Defaults to `buildkite-agent pipeline upload`.
117
125
  */
118
126
  readonly steps: pulumi.Output<string>;
119
127
  /**
@@ -158,13 +166,17 @@ export interface PipelineState {
158
166
  */
159
167
  cancelIntermediateBuilds?: pulumi.Input<boolean>;
160
168
  /**
161
- * Filter the `cancel_intermediate_builds` setting based on this branch condition.
169
+ * Filter the `cancelIntermediateBuilds` setting based on this branch condition.
162
170
  */
163
171
  cancelIntermediateBuildsBranchFilter?: pulumi.Input<string>;
164
172
  /**
165
173
  * Attach this pipeline to the given cluster GraphQL ID.
166
174
  */
167
175
  clusterId?: pulumi.Input<string>;
176
+ /**
177
+ * The name of the cluster the pipeline is (optionally) attached to.
178
+ */
179
+ clusterName?: pulumi.Input<string>;
168
180
  /**
169
181
  * A color hex code to represent this pipeline.
170
182
  */
@@ -174,7 +186,7 @@ export interface PipelineState {
174
186
  */
175
187
  defaultBranch?: pulumi.Input<string>;
176
188
  /**
177
- * The GraphQL ID of the team to use as the default owner of the pipeline.
189
+ * The GraphQL ID of a team to initially assign to the pipeline. This is required by the Buildkite API when creating a new pipeline. The team assigned here will be given 'Manage Build and Read' access. Further team associations can be managed with the `buildkite.Pipeline.Team` resource after the pipeline is created.
178
190
  */
179
191
  defaultTeamId?: pulumi.Input<string>;
180
192
  /**
@@ -214,15 +226,15 @@ export interface PipelineState {
214
226
  */
215
227
  skipIntermediateBuilds?: pulumi.Input<boolean>;
216
228
  /**
217
- * Filter the `skip_intermediate_builds` setting based on this branch condition.
229
+ * Filter the `skipIntermediateBuilds` setting based on this branch condition.
218
230
  */
219
231
  skipIntermediateBuildsBranchFilter?: pulumi.Input<string>;
220
232
  /**
221
- * The slug generated for the pipeline.
233
+ * A custom identifier for the pipeline. If provided, this slug will be used as the pipeline's URL path instead of automatically converting the pipeline name. If not provided, the slug will be [derived](https://buildkite.com/docs/apis/graphql/cookbooks/pipelines#create-a-pipeline-deriving-a-pipeline-slug-from-the-pipelines-name) from the pipeline `name`.
222
234
  */
223
235
  slug?: pulumi.Input<string>;
224
236
  /**
225
- * The YAML steps to configure for the pipeline. Defaults to `buildkite-agent pipeline upload`.
237
+ * The YAML steps to configure for the pipeline. Can also accept the `steps` attribute from the [`buildkite.Pipeline.getSignedSteps`](https://www.terraform.io/docs/data-sources/signed_pipeline_steps) data source to enable a signed pipeline. Defaults to `buildkite-agent pipeline upload`.
226
238
  */
227
239
  steps?: pulumi.Input<string>;
228
240
  /**
@@ -255,7 +267,7 @@ export interface PipelineArgs {
255
267
  */
256
268
  cancelIntermediateBuilds?: pulumi.Input<boolean>;
257
269
  /**
258
- * Filter the `cancel_intermediate_builds` setting based on this branch condition.
270
+ * Filter the `cancelIntermediateBuilds` setting based on this branch condition.
259
271
  */
260
272
  cancelIntermediateBuildsBranchFilter?: pulumi.Input<string>;
261
273
  /**
@@ -271,7 +283,7 @@ export interface PipelineArgs {
271
283
  */
272
284
  defaultBranch?: pulumi.Input<string>;
273
285
  /**
274
- * The GraphQL ID of the team to use as the default owner of the pipeline.
286
+ * The GraphQL ID of a team to initially assign to the pipeline. This is required by the Buildkite API when creating a new pipeline. The team assigned here will be given 'Manage Build and Read' access. Further team associations can be managed with the `buildkite.Pipeline.Team` resource after the pipeline is created.
275
287
  */
276
288
  defaultTeamId?: pulumi.Input<string>;
277
289
  /**
@@ -311,11 +323,15 @@ export interface PipelineArgs {
311
323
  */
312
324
  skipIntermediateBuilds?: pulumi.Input<boolean>;
313
325
  /**
314
- * Filter the `skip_intermediate_builds` setting based on this branch condition.
326
+ * Filter the `skipIntermediateBuilds` setting based on this branch condition.
315
327
  */
316
328
  skipIntermediateBuildsBranchFilter?: pulumi.Input<string>;
317
329
  /**
318
- * The YAML steps to configure for the pipeline. Defaults to `buildkite-agent pipeline upload`.
330
+ * A custom identifier for the pipeline. If provided, this slug will be used as the pipeline's URL path instead of automatically converting the pipeline name. If not provided, the slug will be [derived](https://buildkite.com/docs/apis/graphql/cookbooks/pipelines#create-a-pipeline-deriving-a-pipeline-slug-from-the-pipelines-name) from the pipeline `name`.
331
+ */
332
+ slug?: pulumi.Input<string>;
333
+ /**
334
+ * The YAML steps to configure for the pipeline. Can also accept the `steps` attribute from the [`buildkite.Pipeline.getSignedSteps`](https://www.terraform.io/docs/data-sources/signed_pipeline_steps) data source to enable a signed pipeline. Defaults to `buildkite-agent pipeline upload`.
319
335
  */
320
336
  steps?: pulumi.Input<string>;
321
337
  /**