@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/README.md CHANGED
@@ -17,6 +17,11 @@ The provider is built on https://github.com/buildkite/terraform-provider-buildki
17
17
 
18
18
  ## Installing
19
19
 
20
+ > [!IMPORTANT]
21
+ > The provider version `v2.3.1` was built on the Terraform provider `v0.25.1` which was a pre-release version.
22
+ > From `v3.0.0` onwards this provider is compatible with the Terraform provider `v1.x.x`.
23
+ > Please note that backwards compatibility might not be given.
24
+
20
25
  This package is available in many languages in the standard packaging formats.
21
26
 
22
27
  ### Node.js (JavaScript/TypeScript)
@@ -1,19 +1,19 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  /**
3
- * ## # Resource: agentToken
4
- *
5
- * This resource allows you to create and manage agent tokens.
6
- *
7
- * Buildkite Documentation: https://buildkite.com/docs/agent/v3/tokens
3
+ * This resource allows you to create and manage non-clustered agent tokens.
4
+ * You can find out more about clusters in the Buildkite [documentation](https://buildkite.com/docs/agent/v3/tokens).
8
5
  *
9
6
  * ## Example Usage
10
7
  *
8
+ * <!--Start PulumiCodeChooser -->
11
9
  * ```typescript
12
10
  * import * as pulumi from "@pulumi/pulumi";
13
11
  * import * as buildkite from "@pulumiverse/buildkite";
14
12
  *
15
- * const fleet = new buildkite.agent.AgentToken("fleet", {description: "token used by build fleet"});
13
+ * // create a default token
14
+ * const _default = new buildkite.agent.AgentToken("default", {description: "Default token"});
16
15
  * ```
16
+ * <!--End PulumiCodeChooser -->
17
17
  */
18
18
  export declare class AgentToken extends pulumi.CustomResource {
19
19
  /**
@@ -32,17 +32,15 @@ export declare class AgentToken extends pulumi.CustomResource {
32
32
  */
33
33
  static isInstance(obj: any): obj is AgentToken;
34
34
  /**
35
- * This is the description of the agent token.
36
- *
37
- * > Changing `description` will cause the resource to be destroyed and re-created.
35
+ * The description of the agent token. Used to help identify its use.
38
36
  */
39
37
  readonly description: pulumi.Output<string | undefined>;
40
38
  /**
41
- * The value of the created agent token.
39
+ * The token value used by an agent to register with the API.
42
40
  */
43
41
  readonly token: pulumi.Output<string>;
44
42
  /**
45
- * The UUID of the token.
43
+ * The UUID of the agent token.
46
44
  */
47
45
  readonly uuid: pulumi.Output<string>;
48
46
  /**
@@ -59,17 +57,15 @@ export declare class AgentToken extends pulumi.CustomResource {
59
57
  */
60
58
  export interface AgentTokenState {
61
59
  /**
62
- * This is the description of the agent token.
63
- *
64
- * > Changing `description` will cause the resource to be destroyed and re-created.
60
+ * The description of the agent token. Used to help identify its use.
65
61
  */
66
62
  description?: pulumi.Input<string>;
67
63
  /**
68
- * The value of the created agent token.
64
+ * The token value used by an agent to register with the API.
69
65
  */
70
66
  token?: pulumi.Input<string>;
71
67
  /**
72
- * The UUID of the token.
68
+ * The UUID of the agent token.
73
69
  */
74
70
  uuid?: pulumi.Input<string>;
75
71
  }
@@ -78,9 +74,7 @@ export interface AgentTokenState {
78
74
  */
79
75
  export interface AgentTokenArgs {
80
76
  /**
81
- * This is the description of the agent token.
82
- *
83
- * > Changing `description` will cause the resource to be destroyed and re-created.
77
+ * The description of the agent token. Used to help identify its use.
84
78
  */
85
79
  description?: pulumi.Input<string>;
86
80
  }
@@ -6,20 +6,20 @@ exports.AgentToken = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("../utilities");
8
8
  /**
9
- * ## # Resource: agentToken
10
- *
11
- * This resource allows you to create and manage agent tokens.
12
- *
13
- * Buildkite Documentation: https://buildkite.com/docs/agent/v3/tokens
9
+ * This resource allows you to create and manage non-clustered agent tokens.
10
+ * You can find out more about clusters in the Buildkite [documentation](https://buildkite.com/docs/agent/v3/tokens).
14
11
  *
15
12
  * ## Example Usage
16
13
  *
14
+ * <!--Start PulumiCodeChooser -->
17
15
  * ```typescript
18
16
  * import * as pulumi from "@pulumi/pulumi";
19
17
  * import * as buildkite from "@pulumiverse/buildkite";
20
18
  *
21
- * const fleet = new buildkite.agent.AgentToken("fleet", {description: "token used by build fleet"});
19
+ * // create a default token
20
+ * const _default = new buildkite.agent.AgentToken("default", {description: "Default token"});
22
21
  * ```
22
+ * <!--End PulumiCodeChooser -->
23
23
  */
24
24
  class AgentToken extends pulumi.CustomResource {
25
25
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"agentToken.js","sourceRoot":"","sources":["../../agent/agentToken.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;GAeG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuB,EAAE,IAAmC;QACrH,OAAO,IAAI,UAAU,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACjE,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,UAAU,CAAC,YAAY,CAAC;IAC3D,CAAC;IAyBD,YAAY,IAAY,EAAE,WAA8C,EAAE,IAAmC;QACzG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA0C,CAAC;YACzD,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,MAAM,CAAC,G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,UAAU,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC/D,CAAC;;AAnEL,gCAoEC;AAtDG,gBAAgB;AACO,uBAAY,GAAG,uCAAuC,CAAC"}
@@ -1,18 +1,68 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  /**
3
- * ## # Resource: cluster
4
- *
5
- * This resource allows you to create, manage and import Clusters.
6
- *
7
- * Buildkite documentation: https://buildkite.com/docs/clusters/overview
3
+ * This resource allows you to create and manage a Buildkite Cluster to run your builds in.
4
+ * Clusters are useful for grouping agents by there capabilities or permissions.
5
+ * Find out more information in our [documentation](https://buildkite.com/docs/clusters/overview).
8
6
  *
9
7
  * ## Example Usage
10
8
  *
9
+ * <!--Start PulumiCodeChooser -->
11
10
  * ```typescript
12
11
  * import * as pulumi from "@pulumi/pulumi";
13
12
  * import * as buildkite from "@pulumiverse/buildkite";
14
13
  *
15
- * const linux = new buildkite.cluster.Cluster("linux", {});
14
+ * // create a cluster
15
+ * const primary = new buildkite.cluster.Cluster("primary", {
16
+ * description: "Runs the monolith build and deploy",
17
+ * emoji: "🚀",
18
+ * color: "#bada55",
19
+ * });
20
+ * // add a pipeline to the cluster
21
+ * const monolith = new buildkite.pipeline.Pipeline("monolith", {
22
+ * repository: "https://github.com/...",
23
+ * clusterId: primary.id,
24
+ * });
25
+ * const _default = new buildkite.cluster.ClusterQueue("default", {
26
+ * clusterId: primary.id,
27
+ * key: "default",
28
+ * });
29
+ * ```
30
+ * <!--End PulumiCodeChooser -->
31
+ *
32
+ * ## Import
33
+ *
34
+ * import a cluster resource using the GraphQL ID
35
+ *
36
+ * #
37
+ *
38
+ * you can use this query to find the ID:
39
+ *
40
+ * query getClusters {
41
+ *
42
+ * organization(slug: "ORGANIZATION"){
43
+ *
44
+ * clusters(first: 5, order:NAME) {
45
+ *
46
+ * edges{
47
+ *
48
+ * node {
49
+ *
50
+ * id
51
+ *
52
+ * name
53
+ *
54
+ * }
55
+ *
56
+ * }
57
+ *
58
+ * }
59
+ *
60
+ * }
61
+ *
62
+ * }
63
+ *
64
+ * ```sh
65
+ * $ pulumi import buildkite:Cluster/cluster:Cluster primary Q2x1c3Rlci0tLTI3ZmFmZjA4LTA3OWEtNDk5ZC1hMmIwLTIzNmY3NWFkMWZjYg==
16
66
  * ```
17
67
  */
18
68
  export declare class Cluster extends pulumi.CustomResource {
@@ -32,23 +82,25 @@ export declare class Cluster extends pulumi.CustomResource {
32
82
  */
33
83
  static isInstance(obj: any): obj is Cluster;
34
84
  /**
35
- * A color to associate with the Cluster. Perhaps a team related color, or one related to an environment. This is set using hex value, such as `#BADA55`.
85
+ * A color representation of the Cluster. Accepts hex codes, eg #BADA55.
36
86
  */
37
87
  readonly color: pulumi.Output<string | undefined>;
38
88
  /**
39
- * This is a description for the cluster, this may describe the usage for it, the region, or something else which would help identify the Cluster's purpose.
89
+ * This is a description for the cluster, this may describe the usage for it, the region, or something else
90
+ * which would help identify the Cluster's purpose.
40
91
  */
41
92
  readonly description: pulumi.Output<string | undefined>;
42
93
  /**
43
- * An emoji to use with the Cluster, this can either be set using `:buildkite:` notation, or with the emoji itself, such as 😎.
94
+ * An emoji to use with the Cluster, this can either be set using :buildkite: notation, or with the
95
+ * emoji itself, such as 🚀.
44
96
  */
45
97
  readonly emoji: pulumi.Output<string | undefined>;
46
98
  /**
47
- * This is the name of the cluster.
99
+ * The name of the Cluster. Can only contain numbers and letters, no spaces or special characters.
48
100
  */
49
101
  readonly name: pulumi.Output<string>;
50
102
  /**
51
- * The UUID created with the Cluster.
103
+ * The UUID of the cluster.
52
104
  */
53
105
  readonly uuid: pulumi.Output<string>;
54
106
  /**
@@ -65,23 +117,25 @@ export declare class Cluster extends pulumi.CustomResource {
65
117
  */
66
118
  export interface ClusterState {
67
119
  /**
68
- * A color to associate with the Cluster. Perhaps a team related color, or one related to an environment. This is set using hex value, such as `#BADA55`.
120
+ * A color representation of the Cluster. Accepts hex codes, eg #BADA55.
69
121
  */
70
122
  color?: pulumi.Input<string>;
71
123
  /**
72
- * This is a description for the cluster, this may describe the usage for it, the region, or something else which would help identify the Cluster's purpose.
124
+ * This is a description for the cluster, this may describe the usage for it, the region, or something else
125
+ * which would help identify the Cluster's purpose.
73
126
  */
74
127
  description?: pulumi.Input<string>;
75
128
  /**
76
- * An emoji to use with the Cluster, this can either be set using `:buildkite:` notation, or with the emoji itself, such as 😎.
129
+ * An emoji to use with the Cluster, this can either be set using :buildkite: notation, or with the
130
+ * emoji itself, such as 🚀.
77
131
  */
78
132
  emoji?: pulumi.Input<string>;
79
133
  /**
80
- * This is the name of the cluster.
134
+ * The name of the Cluster. Can only contain numbers and letters, no spaces or special characters.
81
135
  */
82
136
  name?: pulumi.Input<string>;
83
137
  /**
84
- * The UUID created with the Cluster.
138
+ * The UUID of the cluster.
85
139
  */
86
140
  uuid?: pulumi.Input<string>;
87
141
  }
@@ -90,19 +144,21 @@ export interface ClusterState {
90
144
  */
91
145
  export interface ClusterArgs {
92
146
  /**
93
- * A color to associate with the Cluster. Perhaps a team related color, or one related to an environment. This is set using hex value, such as `#BADA55`.
147
+ * A color representation of the Cluster. Accepts hex codes, eg #BADA55.
94
148
  */
95
149
  color?: pulumi.Input<string>;
96
150
  /**
97
- * This is a description for the cluster, this may describe the usage for it, the region, or something else which would help identify the Cluster's purpose.
151
+ * This is a description for the cluster, this may describe the usage for it, the region, or something else
152
+ * which would help identify the Cluster's purpose.
98
153
  */
99
154
  description?: pulumi.Input<string>;
100
155
  /**
101
- * An emoji to use with the Cluster, this can either be set using `:buildkite:` notation, or with the emoji itself, such as 😎.
156
+ * An emoji to use with the Cluster, this can either be set using :buildkite: notation, or with the
157
+ * emoji itself, such as 🚀.
102
158
  */
103
159
  emoji?: pulumi.Input<string>;
104
160
  /**
105
- * This is the name of the cluster.
161
+ * The name of the Cluster. Can only contain numbers and letters, no spaces or special characters.
106
162
  */
107
163
  name?: pulumi.Input<string>;
108
164
  }
@@ -6,19 +6,69 @@ exports.Cluster = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("../utilities");
8
8
  /**
9
- * ## # Resource: cluster
10
- *
11
- * This resource allows you to create, manage and import Clusters.
12
- *
13
- * Buildkite documentation: https://buildkite.com/docs/clusters/overview
9
+ * This resource allows you to create and manage a Buildkite Cluster to run your builds in.
10
+ * Clusters are useful for grouping agents by there capabilities or permissions.
11
+ * Find out more information in our [documentation](https://buildkite.com/docs/clusters/overview).
14
12
  *
15
13
  * ## Example Usage
16
14
  *
15
+ * <!--Start PulumiCodeChooser -->
17
16
  * ```typescript
18
17
  * import * as pulumi from "@pulumi/pulumi";
19
18
  * import * as buildkite from "@pulumiverse/buildkite";
20
19
  *
21
- * const linux = new buildkite.cluster.Cluster("linux", {});
20
+ * // create a cluster
21
+ * const primary = new buildkite.cluster.Cluster("primary", {
22
+ * description: "Runs the monolith build and deploy",
23
+ * emoji: "🚀",
24
+ * color: "#bada55",
25
+ * });
26
+ * // add a pipeline to the cluster
27
+ * const monolith = new buildkite.pipeline.Pipeline("monolith", {
28
+ * repository: "https://github.com/...",
29
+ * clusterId: primary.id,
30
+ * });
31
+ * const _default = new buildkite.cluster.ClusterQueue("default", {
32
+ * clusterId: primary.id,
33
+ * key: "default",
34
+ * });
35
+ * ```
36
+ * <!--End PulumiCodeChooser -->
37
+ *
38
+ * ## Import
39
+ *
40
+ * import a cluster resource using the GraphQL ID
41
+ *
42
+ * #
43
+ *
44
+ * you can use this query to find the ID:
45
+ *
46
+ * query getClusters {
47
+ *
48
+ * organization(slug: "ORGANIZATION"){
49
+ *
50
+ * clusters(first: 5, order:NAME) {
51
+ *
52
+ * edges{
53
+ *
54
+ * node {
55
+ *
56
+ * id
57
+ *
58
+ * name
59
+ *
60
+ * }
61
+ *
62
+ * }
63
+ *
64
+ * }
65
+ *
66
+ * }
67
+ *
68
+ * }
69
+ *
70
+ * ```sh
71
+ * $ pulumi import buildkite:Cluster/cluster:Cluster primary Q2x1c3Rlci0tLTI3ZmFmZjA4LTA3OWEtNDk5ZC1hMmIwLTIzNmY3NWFkMWZjYg==
22
72
  * ```
23
73
  */
24
74
  class Cluster extends pulumi.CustomResource {
@@ -1 +1 @@
1
- {"version":3,"file":"cluster.js","sourceRoot":"","sources":["../../cluster/cluster.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;GAeG;AACH,MAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IAC9C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAoB,EAAE,IAAmC;QAClH,OAAO,IAAI,OAAO,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC9D,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,OAAO,CAAC,YAAY,CAAC;IACxD,CAAC;IA+BD,YAAY,IAAY,EAAE,WAAwC,EAAE,IAAmC;QACnG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAuC,CAAC;YACtD,cAAc,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,K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AC,CAAC,CAAC,SAAS,CAAC;SAC3D;aAAM;YACH,MAAM,IAAI,GAAG,WAAsC,CAAC;YACpD,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,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,OAAO,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC5D,CAAC;;AA/EL,0BAgFC;AAlEG,gBAAgB;AACO,oBAAY,GAAG,mCAAmC,CAAC"}
@@ -1,22 +1,40 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  /**
3
- * ## # Resource: clusterAgentToken
4
- *
5
- * This resource allows you to create and manage cluster agent tokens.
6
- *
7
- * Buildkite Documentation: https://buildkite.com/docs/clusters/manage-clusters#set-up-clusters-connect-agents-to-a-cluster
3
+ * A Cluster Agent Token is a token used to connect an agent to a cluster in Buildkite.
8
4
  *
9
5
  * ## Example Usage
10
6
  *
7
+ * <!--Start PulumiCodeChooser -->
11
8
  * ```typescript
12
9
  * import * as pulumi from "@pulumi/pulumi";
13
10
  * import * as buildkite from "@pulumiverse/buildkite";
14
11
  *
15
- * const cluster_token_1 = new buildkite.cluster.ClusterAgentToken("cluster-token-1", {
16
- * clusterId: "Q2x1c3Rlci0tLTkyMmVjOTA4LWRmNWItNDhhYS1hMThjLTczMzE0YjQ1ZGYyMA==",
17
- * description: "agent token for cluster-1",
12
+ * // create a cluster
13
+ * const primary = new buildkite.cluster.Cluster("primary", {
14
+ * description: "Runs the monolith build and deploy",
15
+ * emoji: "🚀",
16
+ * color: "#bada55",
17
+ * });
18
+ * // create an agent token for the cluster
19
+ * const defaultClusterAgentToken = new buildkite.cluster.ClusterAgentToken("defaultClusterAgentToken", {
20
+ * description: "Default cluster token",
21
+ * clusterId: primary.id,
22
+ * });
23
+ * const ipLimitedToken = new buildkite.cluster.ClusterAgentToken("ipLimitedToken", {
24
+ * description: "Token with allowed IP range",
25
+ * clusterId: primary.id,
26
+ * allowedIpAddresses: ["10.100.1.0/28"],
27
+ * });
28
+ * const monolith = new buildkite.pipeline.Pipeline("monolith", {
29
+ * repository: "https://github.com/...",
30
+ * clusterId: primary.id,
31
+ * });
32
+ * const defaultClusterQueue = new buildkite.cluster.ClusterQueue("defaultClusterQueue", {
33
+ * clusterId: primary.id,
34
+ * key: "default",
18
35
  * });
19
36
  * ```
37
+ * <!--End PulumiCodeChooser -->
20
38
  */
21
39
  export declare class ClusterAgentToken extends pulumi.CustomResource {
22
40
  /**
@@ -35,20 +53,27 @@ export declare class ClusterAgentToken extends pulumi.CustomResource {
35
53
  */
36
54
  static isInstance(obj: any): obj is ClusterAgentToken;
37
55
  /**
38
- * The ID of the cluster that this cluster queue belongs to.
56
+ * A list of CIDR-notation IPv4 addresses from which agents can use this Cluster Agent Token.If not set, all IP addresses are allowed (the same as setting 0.0.0.0/0).
57
+ */
58
+ readonly allowedIpAddresses: pulumi.Output<string[] | undefined>;
59
+ /**
60
+ * The GraphQL ID of the Cluster that this Cluster Agent Token belongs to.
39
61
  */
40
62
  readonly clusterId: pulumi.Output<string>;
41
63
  /**
42
- * The UUID of the cluster that this cluster queue belongs to.
64
+ * The UUID of the Cluster that this token belongs to.
43
65
  */
44
66
  readonly clusterUuid: pulumi.Output<string>;
45
67
  /**
46
68
  * A description about what this cluster agent token is used for.
47
69
  */
48
70
  readonly description: pulumi.Output<string>;
71
+ /**
72
+ * The token value used by an agent to register with the API.
73
+ */
49
74
  readonly token: pulumi.Output<string>;
50
75
  /**
51
- * The UUID of the created cluster queue.
76
+ * The UUID of the token.
52
77
  */
53
78
  readonly uuid: pulumi.Output<string>;
54
79
  /**
@@ -65,20 +90,27 @@ export declare class ClusterAgentToken extends pulumi.CustomResource {
65
90
  */
66
91
  export interface ClusterAgentTokenState {
67
92
  /**
68
- * The ID of the cluster that this cluster queue belongs to.
93
+ * A list of CIDR-notation IPv4 addresses from which agents can use this Cluster Agent Token.If not set, all IP addresses are allowed (the same as setting 0.0.0.0/0).
94
+ */
95
+ allowedIpAddresses?: pulumi.Input<pulumi.Input<string>[]>;
96
+ /**
97
+ * The GraphQL ID of the Cluster that this Cluster Agent Token belongs to.
69
98
  */
70
99
  clusterId?: pulumi.Input<string>;
71
100
  /**
72
- * The UUID of the cluster that this cluster queue belongs to.
101
+ * The UUID of the Cluster that this token belongs to.
73
102
  */
74
103
  clusterUuid?: pulumi.Input<string>;
75
104
  /**
76
105
  * A description about what this cluster agent token is used for.
77
106
  */
78
107
  description?: pulumi.Input<string>;
108
+ /**
109
+ * The token value used by an agent to register with the API.
110
+ */
79
111
  token?: pulumi.Input<string>;
80
112
  /**
81
- * The UUID of the created cluster queue.
113
+ * The UUID of the token.
82
114
  */
83
115
  uuid?: pulumi.Input<string>;
84
116
  }
@@ -87,7 +119,11 @@ export interface ClusterAgentTokenState {
87
119
  */
88
120
  export interface ClusterAgentTokenArgs {
89
121
  /**
90
- * The ID of the cluster that this cluster queue belongs to.
122
+ * A list of CIDR-notation IPv4 addresses from which agents can use this Cluster Agent Token.If not set, all IP addresses are allowed (the same as setting 0.0.0.0/0).
123
+ */
124
+ allowedIpAddresses?: pulumi.Input<pulumi.Input<string>[]>;
125
+ /**
126
+ * The GraphQL ID of the Cluster that this Cluster Agent Token belongs to.
91
127
  */
92
128
  clusterId: pulumi.Input<string>;
93
129
  /**
@@ -6,23 +6,41 @@ exports.ClusterAgentToken = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("../utilities");
8
8
  /**
9
- * ## # Resource: clusterAgentToken
10
- *
11
- * This resource allows you to create and manage cluster agent tokens.
12
- *
13
- * Buildkite Documentation: https://buildkite.com/docs/clusters/manage-clusters#set-up-clusters-connect-agents-to-a-cluster
9
+ * A Cluster Agent Token is a token used to connect an agent to a cluster in Buildkite.
14
10
  *
15
11
  * ## Example Usage
16
12
  *
13
+ * <!--Start PulumiCodeChooser -->
17
14
  * ```typescript
18
15
  * import * as pulumi from "@pulumi/pulumi";
19
16
  * import * as buildkite from "@pulumiverse/buildkite";
20
17
  *
21
- * const cluster_token_1 = new buildkite.cluster.ClusterAgentToken("cluster-token-1", {
22
- * clusterId: "Q2x1c3Rlci0tLTkyMmVjOTA4LWRmNWItNDhhYS1hMThjLTczMzE0YjQ1ZGYyMA==",
23
- * description: "agent token for cluster-1",
18
+ * // create a cluster
19
+ * const primary = new buildkite.cluster.Cluster("primary", {
20
+ * description: "Runs the monolith build and deploy",
21
+ * emoji: "🚀",
22
+ * color: "#bada55",
23
+ * });
24
+ * // create an agent token for the cluster
25
+ * const defaultClusterAgentToken = new buildkite.cluster.ClusterAgentToken("defaultClusterAgentToken", {
26
+ * description: "Default cluster token",
27
+ * clusterId: primary.id,
28
+ * });
29
+ * const ipLimitedToken = new buildkite.cluster.ClusterAgentToken("ipLimitedToken", {
30
+ * description: "Token with allowed IP range",
31
+ * clusterId: primary.id,
32
+ * allowedIpAddresses: ["10.100.1.0/28"],
33
+ * });
34
+ * const monolith = new buildkite.pipeline.Pipeline("monolith", {
35
+ * repository: "https://github.com/...",
36
+ * clusterId: primary.id,
37
+ * });
38
+ * const defaultClusterQueue = new buildkite.cluster.ClusterQueue("defaultClusterQueue", {
39
+ * clusterId: primary.id,
40
+ * key: "default",
24
41
  * });
25
42
  * ```
43
+ * <!--End PulumiCodeChooser -->
26
44
  */
27
45
  class ClusterAgentToken extends pulumi.CustomResource {
28
46
  /**
@@ -52,6 +70,7 @@ class ClusterAgentToken extends pulumi.CustomResource {
52
70
  opts = opts || {};
53
71
  if (opts.id) {
54
72
  const state = argsOrState;
73
+ resourceInputs["allowedIpAddresses"] = state ? state.allowedIpAddresses : undefined;
55
74
  resourceInputs["clusterId"] = state ? state.clusterId : undefined;
56
75
  resourceInputs["clusterUuid"] = state ? state.clusterUuid : undefined;
57
76
  resourceInputs["description"] = state ? state.description : undefined;
@@ -66,6 +85,7 @@ class ClusterAgentToken extends pulumi.CustomResource {
66
85
  if ((!args || args.description === undefined) && !opts.urn) {
67
86
  throw new Error("Missing required property 'description'");
68
87
  }
88
+ resourceInputs["allowedIpAddresses"] = args ? args.allowedIpAddresses : undefined;
69
89
  resourceInputs["clusterId"] = args ? args.clusterId : undefined;
70
90
  resourceInputs["description"] = args ? args.description : undefined;
71
91
  resourceInputs["clusterUuid"] = undefined /*out*/;
@@ -1 +1 @@
1
- {"version":3,"file":"clusterAgentToken.js","sourceRoot":"","sources":["../../cluster/clusterAgentToken.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAa,iBAAkB,SAAQ,MAAM,CAAC,cAAc;IACxD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA8B,EAAE,IAAmC;QAC5H,OAAO,IAAI,iBAAiB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACxE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAA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