@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 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../organization/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAK7B,QAAA,MAAM,GAAqC,IAAW,CAAC;AACpE,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC;AAGtD,QAAA,eAAe,GAAuD,IAAW,CAAC;AAClF,QAAA,qBAAqB,GAA6D,IAAW,CAAC;AAC3G,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,iBAAiB,EAAC,uBAAuB,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC,CAAC;AAIhG,QAAA,YAAY,GAAiD,IAAW,CAAC;AACtF,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,cAAc,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC;AAG/E,MAAM,OAAO,GAAG;IACZ,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,SAAS,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAAmB,EAAE;QACpE,QAAQ,IAAI,EAAE;YACV,KAAK,sCAAsC;gBACvC,OAAO,IAAI,cAAM,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CA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,CAAA;AAClF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,WAAW,EAAE,2BAA2B,EAAE,OAAO,CAAC,CAAA;AACxF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,WAAW,EAAE,qBAAqB,EAAE,OAAO,CAAC,CAAA;AAClF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,WAAW,EAAE,uBAAuB,EAAE,OAAO,CAAC,CAAA;AACpF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,WAAW,EAAE,mBAAmB,EAAE,OAAO,CAAC,CAAA"}
@@ -6,7 +6,6 @@ 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
11
  * import * as buildkite from "@pulumiverse/buildkite";
@@ -17,14 +16,15 @@ import * as pulumi from "@pulumi/pulumi";
17
16
  * enforce2fa: true,
18
17
  * });
19
18
  * ```
20
- * <!--End PulumiCodeChooser -->
21
19
  *
22
20
  * ## Import
23
21
  *
22
+ * Using `pulumi import`, import resources using the `organization-slug`. For example:
23
+ *
24
24
  * import the organization settings via the organization slug
25
25
  *
26
26
  * ```sh
27
- * $ pulumi import buildkite:Organization/organization:Organization settings <organization slug>
27
+ * $ pulumi import buildkite:Organization/organization:Organization settings my-buildkite-organization
28
28
  * ```
29
29
  */
30
30
  export declare class Organization extends pulumi.CustomResource {
@@ -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.Organization = void 0;
@@ -12,7 +12,6 @@ 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
17
  * import * as buildkite from "@pulumiverse/buildkite";
@@ -23,14 +22,15 @@ const utilities = require("../utilities");
23
22
  * enforce2fa: true,
24
23
  * });
25
24
  * ```
26
- * <!--End PulumiCodeChooser -->
27
25
  *
28
26
  * ## Import
29
27
  *
28
+ * Using `pulumi import`, import resources using the `organization-slug`. For example:
29
+ *
30
30
  * import the organization settings via the organization slug
31
31
  *
32
32
  * ```sh
33
- * $ pulumi import buildkite:Organization/organization:Organization settings <organization slug>
33
+ * $ pulumi import buildkite:Organization/organization:Organization settings my-buildkite-organization
34
34
  * ```
35
35
  */
36
36
  class Organization extends pulumi.CustomResource {
@@ -44,7 +44,7 @@ class Organization extends pulumi.CustomResource {
44
44
  * @param opts Optional settings to control the behavior of the CustomResource.
45
45
  */
46
46
  static get(name, id, state, opts) {
47
- return new Organization(name, state, Object.assign(Object.assign({}, opts), { id: id }));
47
+ return new Organization(name, state, { ...opts, id: id });
48
48
  }
49
49
  /**
50
50
  * Returns true if the given object is an instance of Organization. This is designed to work even
@@ -61,14 +61,14 @@ class Organization extends pulumi.CustomResource {
61
61
  opts = opts || {};
62
62
  if (opts.id) {
63
63
  const state = argsOrState;
64
- resourceInputs["allowedApiIpAddresses"] = state ? state.allowedApiIpAddresses : undefined;
65
- resourceInputs["enforce2fa"] = state ? state.enforce2fa : undefined;
66
- resourceInputs["uuid"] = state ? state.uuid : undefined;
64
+ resourceInputs["allowedApiIpAddresses"] = state?.allowedApiIpAddresses;
65
+ resourceInputs["enforce2fa"] = state?.enforce2fa;
66
+ resourceInputs["uuid"] = state?.uuid;
67
67
  }
68
68
  else {
69
69
  const args = argsOrState;
70
- resourceInputs["allowedApiIpAddresses"] = args ? args.allowedApiIpAddresses : undefined;
71
- resourceInputs["enforce2fa"] = args ? args.enforce2fa : undefined;
70
+ resourceInputs["allowedApiIpAddresses"] = args?.allowedApiIpAddresses;
71
+ resourceInputs["enforce2fa"] = args?.enforce2fa;
72
72
  resourceInputs["uuid"] = undefined /*out*/;
73
73
  }
74
74
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
@@ -1 +1 @@
1
- {"version":3,"file":"organization.js","sourceRoot":"","sources":["../../organization/organization.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;IACnD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAyB,EAAE,IAAmC;QACvH,OAAO,IAAI,YAAY,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACnE,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,YAAY,CAAC,YAAY,CAAC;IAC7D,CAAC;IAuBD,YAAY,IAAY,EAAE,WAAkD,EAAE,IAAmC;QAC7G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA4C,CAAC;YAC3D,cAAc,CAAC,uBAAuB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1F,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAA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OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,YAAY,CAAC,YAAY,CAAC;IAC7D,CAAC;IAuBD,YAAY,IAAY,EAAE,WAAkD,EAAE,IAAmC;QAC7G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA4C,CAAC;YAC3D,cAAc,CAAC,uBAAuB,CAAC,GAAG,KAAK,EAAE,qBAAqB,CAAC;YACvE,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,EAAE,UAAU,CAAC;YACjD,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,EAAE,IAAI,CAAC;SACxC;aAAM;YACH,MAAM,IAAI,GAAG,WAA2C,CAAC;YACzD,cAAc,CAAC,uBAAuB,CAAC,GAAG,IAAI,EAAE,qBAAqB,CAAC;YACtE,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,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,YAAY,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACjE,CAAC;;AAjEL,oCAkEC;AApDG,gBAAgB;AACO,yBAAY,GAAG,kDAAkD,CAAC"}
@@ -0,0 +1,217 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "../types/input";
3
+ import * as outputs from "../types/output";
4
+ /**
5
+ * This resource allows you to manage portals in Buildkite. Portals allow you to expose GraphQL queries
6
+ * that can be invoked via a REST API endpoint. Find out more information in our
7
+ * [documentation](https://buildkite.com/docs/apis/portals).
8
+ *
9
+ * ## Example Usage
10
+ *
11
+ * ```typescript
12
+ * import * as pulumi from "@pulumi/pulumi";
13
+ * import * as buildkite from "@pulumiverse/buildkite";
14
+ *
15
+ * // minimal portal
16
+ * const viewer = new buildkite.organization.Portal("viewer", {
17
+ * slug: "viewer-info",
18
+ * name: "Viewer Information",
19
+ * query: "{ viewer { user { name email } } }",
20
+ * });
21
+ * // portal with all optional fields
22
+ * const restricted = new buildkite.organization.Portal("restricted", {
23
+ * slug: "restricted-portal",
24
+ * name: "Restricted Portal",
25
+ * description: "Portal with IP restrictions and custom settings",
26
+ * query: "{ viewer { user { name email avatar { url } } } }",
27
+ * userInvokable: true,
28
+ * allowedIpAddresses: "192.168.1.0/24 10.0.0.0/8",
29
+ * });
30
+ * // portal with complex GraphQL query
31
+ * const pipelineStats = new buildkite.organization.Portal("pipeline_stats", {
32
+ * slug: "pipeline-statistics",
33
+ * name: "Pipeline Statistics",
34
+ * description: "Returns statistics for organization pipelines",
35
+ * query: `{
36
+ * organization(slug: \\"my-org\\") {
37
+ * pipelines(first: 10) {
38
+ * edges {
39
+ * node {
40
+ * name
41
+ * slug
42
+ * builds(first: 5) {
43
+ * edges {
44
+ * node {
45
+ * number
46
+ * state
47
+ * createdAt
48
+ * }
49
+ * }
50
+ * }
51
+ * }
52
+ * }
53
+ * }
54
+ * }
55
+ * }
56
+ * `,
57
+ * userInvokable: false,
58
+ * });
59
+ * ```
60
+ *
61
+ * ## Import
62
+ *
63
+ * Using `pulumi import`, import resources using the `id`. For example:
64
+ *
65
+ * import a portal resource using the portal slug
66
+ *
67
+ * you can find the slug from the Buildkite web UI in the portal's URL:
68
+ *
69
+ * https://buildkite.com/organizations/{org}/portals/{slug}
70
+ *
71
+ * or by listing all portals via the REST API:
72
+ *
73
+ * GET https://api.buildkite.com/v2/organizations/{org}/portals
74
+ *
75
+ * ```sh
76
+ * $ pulumi import buildkite:Organization/portal:Portal viewer viewer-info
77
+ * ```
78
+ */
79
+ export declare class Portal extends pulumi.CustomResource {
80
+ /**
81
+ * Get an existing Portal resource's state with the given name, ID, and optional extra
82
+ * properties used to qualify the lookup.
83
+ *
84
+ * @param name The _unique_ name of the resulting resource.
85
+ * @param id The _unique_ provider ID of the resource to lookup.
86
+ * @param state Any extra arguments used during the lookup.
87
+ * @param opts Optional settings to control the behavior of the CustomResource.
88
+ */
89
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: PortalState, opts?: pulumi.CustomResourceOptions): Portal;
90
+ /**
91
+ * Returns true if the given object is an instance of Portal. This is designed to work even
92
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
93
+ */
94
+ static isInstance(obj: any): obj is Portal;
95
+ /**
96
+ * Space-delimited list of IP addresses (in CIDR notation) allowed to invoke this portal. If not specified, all IP addresses are allowed.
97
+ */
98
+ readonly allowedIpAddresses: pulumi.Output<string | undefined>;
99
+ /**
100
+ * The time when the portal was created.
101
+ */
102
+ readonly createdAt: pulumi.Output<string>;
103
+ /**
104
+ * Information about the user who created the portal.
105
+ */
106
+ readonly createdBy: pulumi.Output<outputs.Organization.PortalCreatedBy>;
107
+ /**
108
+ * A description of the portal.
109
+ */
110
+ readonly description: pulumi.Output<string | undefined>;
111
+ /**
112
+ * The name of the portal.
113
+ */
114
+ readonly name: pulumi.Output<string>;
115
+ /**
116
+ * The GraphQL query that the portal executes.
117
+ */
118
+ readonly query: pulumi.Output<string>;
119
+ /**
120
+ * The slug of the portal. Used in the portal's URL path.
121
+ */
122
+ readonly slug: pulumi.Output<string>;
123
+ /**
124
+ * The token used to invoke the portal. Only returned on creation.
125
+ */
126
+ readonly token: pulumi.Output<string>;
127
+ /**
128
+ * Whether users can invoke the portal. Defaults to false.
129
+ */
130
+ readonly userInvokable: pulumi.Output<boolean>;
131
+ /**
132
+ * The UUID of the portal.
133
+ */
134
+ readonly uuid: pulumi.Output<string>;
135
+ /**
136
+ * Create a Portal resource with the given unique name, arguments, and options.
137
+ *
138
+ * @param name The _unique_ name of the resource.
139
+ * @param args The arguments to use to populate this resource's properties.
140
+ * @param opts A bag of options that control this resource's behavior.
141
+ */
142
+ constructor(name: string, args: PortalArgs, opts?: pulumi.CustomResourceOptions);
143
+ }
144
+ /**
145
+ * Input properties used for looking up and filtering Portal resources.
146
+ */
147
+ export interface PortalState {
148
+ /**
149
+ * Space-delimited list of IP addresses (in CIDR notation) allowed to invoke this portal. If not specified, all IP addresses are allowed.
150
+ */
151
+ allowedIpAddresses?: pulumi.Input<string>;
152
+ /**
153
+ * The time when the portal was created.
154
+ */
155
+ createdAt?: pulumi.Input<string>;
156
+ /**
157
+ * Information about the user who created the portal.
158
+ */
159
+ createdBy?: pulumi.Input<inputs.Organization.PortalCreatedBy>;
160
+ /**
161
+ * A description of the portal.
162
+ */
163
+ description?: pulumi.Input<string>;
164
+ /**
165
+ * The name of the portal.
166
+ */
167
+ name?: pulumi.Input<string>;
168
+ /**
169
+ * The GraphQL query that the portal executes.
170
+ */
171
+ query?: pulumi.Input<string>;
172
+ /**
173
+ * The slug of the portal. Used in the portal's URL path.
174
+ */
175
+ slug?: pulumi.Input<string>;
176
+ /**
177
+ * The token used to invoke the portal. Only returned on creation.
178
+ */
179
+ token?: pulumi.Input<string>;
180
+ /**
181
+ * Whether users can invoke the portal. Defaults to false.
182
+ */
183
+ userInvokable?: pulumi.Input<boolean>;
184
+ /**
185
+ * The UUID of the portal.
186
+ */
187
+ uuid?: pulumi.Input<string>;
188
+ }
189
+ /**
190
+ * The set of arguments for constructing a Portal resource.
191
+ */
192
+ export interface PortalArgs {
193
+ /**
194
+ * Space-delimited list of IP addresses (in CIDR notation) allowed to invoke this portal. If not specified, all IP addresses are allowed.
195
+ */
196
+ allowedIpAddresses?: pulumi.Input<string>;
197
+ /**
198
+ * A description of the portal.
199
+ */
200
+ description?: pulumi.Input<string>;
201
+ /**
202
+ * The name of the portal.
203
+ */
204
+ name?: pulumi.Input<string>;
205
+ /**
206
+ * The GraphQL query that the portal executes.
207
+ */
208
+ query: pulumi.Input<string>;
209
+ /**
210
+ * The slug of the portal. Used in the portal's URL path.
211
+ */
212
+ slug: pulumi.Input<string>;
213
+ /**
214
+ * Whether users can invoke the portal. Defaults to false.
215
+ */
216
+ userInvokable?: pulumi.Input<boolean>;
217
+ }
@@ -0,0 +1,150 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
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.Portal = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * This resource allows you to manage portals in Buildkite. Portals allow you to expose GraphQL queries
10
+ * that can be invoked via a REST API endpoint. Find out more information in our
11
+ * [documentation](https://buildkite.com/docs/apis/portals).
12
+ *
13
+ * ## Example Usage
14
+ *
15
+ * ```typescript
16
+ * import * as pulumi from "@pulumi/pulumi";
17
+ * import * as buildkite from "@pulumiverse/buildkite";
18
+ *
19
+ * // minimal portal
20
+ * const viewer = new buildkite.organization.Portal("viewer", {
21
+ * slug: "viewer-info",
22
+ * name: "Viewer Information",
23
+ * query: "{ viewer { user { name email } } }",
24
+ * });
25
+ * // portal with all optional fields
26
+ * const restricted = new buildkite.organization.Portal("restricted", {
27
+ * slug: "restricted-portal",
28
+ * name: "Restricted Portal",
29
+ * description: "Portal with IP restrictions and custom settings",
30
+ * query: "{ viewer { user { name email avatar { url } } } }",
31
+ * userInvokable: true,
32
+ * allowedIpAddresses: "192.168.1.0/24 10.0.0.0/8",
33
+ * });
34
+ * // portal with complex GraphQL query
35
+ * const pipelineStats = new buildkite.organization.Portal("pipeline_stats", {
36
+ * slug: "pipeline-statistics",
37
+ * name: "Pipeline Statistics",
38
+ * description: "Returns statistics for organization pipelines",
39
+ * query: `{
40
+ * organization(slug: \\"my-org\\") {
41
+ * pipelines(first: 10) {
42
+ * edges {
43
+ * node {
44
+ * name
45
+ * slug
46
+ * builds(first: 5) {
47
+ * edges {
48
+ * node {
49
+ * number
50
+ * state
51
+ * createdAt
52
+ * }
53
+ * }
54
+ * }
55
+ * }
56
+ * }
57
+ * }
58
+ * }
59
+ * }
60
+ * `,
61
+ * userInvokable: false,
62
+ * });
63
+ * ```
64
+ *
65
+ * ## Import
66
+ *
67
+ * Using `pulumi import`, import resources using the `id`. For example:
68
+ *
69
+ * import a portal resource using the portal slug
70
+ *
71
+ * you can find the slug from the Buildkite web UI in the portal's URL:
72
+ *
73
+ * https://buildkite.com/organizations/{org}/portals/{slug}
74
+ *
75
+ * or by listing all portals via the REST API:
76
+ *
77
+ * GET https://api.buildkite.com/v2/organizations/{org}/portals
78
+ *
79
+ * ```sh
80
+ * $ pulumi import buildkite:Organization/portal:Portal viewer viewer-info
81
+ * ```
82
+ */
83
+ class Portal extends pulumi.CustomResource {
84
+ /**
85
+ * Get an existing Portal resource's state with the given name, ID, and optional extra
86
+ * properties used to qualify the lookup.
87
+ *
88
+ * @param name The _unique_ name of the resulting resource.
89
+ * @param id The _unique_ provider ID of the resource to lookup.
90
+ * @param state Any extra arguments used during the lookup.
91
+ * @param opts Optional settings to control the behavior of the CustomResource.
92
+ */
93
+ static get(name, id, state, opts) {
94
+ return new Portal(name, state, { ...opts, id: id });
95
+ }
96
+ /**
97
+ * Returns true if the given object is an instance of Portal. This is designed to work even
98
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
99
+ */
100
+ static isInstance(obj) {
101
+ if (obj === undefined || obj === null) {
102
+ return false;
103
+ }
104
+ return obj['__pulumiType'] === Portal.__pulumiType;
105
+ }
106
+ constructor(name, argsOrState, opts) {
107
+ let resourceInputs = {};
108
+ opts = opts || {};
109
+ if (opts.id) {
110
+ const state = argsOrState;
111
+ resourceInputs["allowedIpAddresses"] = state?.allowedIpAddresses;
112
+ resourceInputs["createdAt"] = state?.createdAt;
113
+ resourceInputs["createdBy"] = state?.createdBy;
114
+ resourceInputs["description"] = state?.description;
115
+ resourceInputs["name"] = state?.name;
116
+ resourceInputs["query"] = state?.query;
117
+ resourceInputs["slug"] = state?.slug;
118
+ resourceInputs["token"] = state?.token;
119
+ resourceInputs["userInvokable"] = state?.userInvokable;
120
+ resourceInputs["uuid"] = state?.uuid;
121
+ }
122
+ else {
123
+ const args = argsOrState;
124
+ if (args?.query === undefined && !opts.urn) {
125
+ throw new Error("Missing required property 'query'");
126
+ }
127
+ if (args?.slug === undefined && !opts.urn) {
128
+ throw new Error("Missing required property 'slug'");
129
+ }
130
+ resourceInputs["allowedIpAddresses"] = args?.allowedIpAddresses;
131
+ resourceInputs["description"] = args?.description;
132
+ resourceInputs["name"] = args?.name;
133
+ resourceInputs["query"] = args?.query;
134
+ resourceInputs["slug"] = args?.slug;
135
+ resourceInputs["userInvokable"] = args?.userInvokable;
136
+ resourceInputs["createdAt"] = undefined /*out*/;
137
+ resourceInputs["createdBy"] = undefined /*out*/;
138
+ resourceInputs["token"] = undefined /*out*/;
139
+ resourceInputs["uuid"] = undefined /*out*/;
140
+ }
141
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
142
+ const secretOpts = { additionalSecretOutputs: ["token"] };
143
+ opts = pulumi.mergeOptions(opts, secretOpts);
144
+ super(Portal.__pulumiType, name, resourceInputs, opts);
145
+ }
146
+ }
147
+ exports.Portal = Portal;
148
+ /** @internal */
149
+ Portal.__pulumiType = 'buildkite:Organization/portal:Portal';
150
+ //# sourceMappingURL=portal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"portal.js","sourceRoot":"","sources":["../../organization/portal.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0EG;AACH,MAAa,MAAO,SAAQ,MAAM,CAAC,cAAc;IAC7C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAmB,EAAE,IAAmC;QACjH,OAAO,IAAI,MAAM,CAAC,IAAI,EAAO,KAAK,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+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * This resource allows you to create and manage a Buildkite Registry.
4
+ * Find out more information in our [documentation](https://buildkite.com/docs/package-registries).
5
+ *
6
+ * ## Example Usage
7
+ *
8
+ * ```typescript
9
+ * import * as pulumi from "@pulumi/pulumi";
10
+ * import * as buildkite from "@pulumiverse/buildkite";
11
+ *
12
+ * const example = new buildkite.organization.Registry("example", {
13
+ * name: "example",
14
+ * description: "super cool ruby registry",
15
+ * ecosystem: "ruby",
16
+ * emoji: ":ruby:",
17
+ * color: "#ff0000",
18
+ * });
19
+ * ```
20
+ */
21
+ export declare class Registry extends pulumi.CustomResource {
22
+ /**
23
+ * Get an existing Registry resource's state with the given name, ID, and optional extra
24
+ * properties used to qualify the lookup.
25
+ *
26
+ * @param name The _unique_ name of the resulting resource.
27
+ * @param id The _unique_ provider ID of the resource to lookup.
28
+ * @param state Any extra arguments used during the lookup.
29
+ * @param opts Optional settings to control the behavior of the CustomResource.
30
+ */
31
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: RegistryState, opts?: pulumi.CustomResourceOptions): Registry;
32
+ /**
33
+ * Returns true if the given object is an instance of Registry. This is designed to work even
34
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
35
+ */
36
+ static isInstance(obj: any): obj is Registry;
37
+ /**
38
+ * A color representation of the registry. Accepts hex codes, eg #BADA55.
39
+ */
40
+ readonly color: pulumi.Output<string | undefined>;
41
+ /**
42
+ * This is a description for the registry, this may describe the usage for it, the region, or something else
43
+ * which would help identify the registry's purpose.
44
+ */
45
+ readonly description: pulumi.Output<string | undefined>;
46
+ /**
47
+ * The ecosystem of the registry. **Warning:** This value cannot be changed after creation. Any attempts to update this field will result in API errors.
48
+ */
49
+ readonly ecosystem: pulumi.Output<string>;
50
+ /**
51
+ * An emoji to use with the registry, this can either be set using :buildkite: notation, or with the
52
+ * emoji itself, such as 🚀.
53
+ */
54
+ readonly emoji: pulumi.Output<string | undefined>;
55
+ /**
56
+ * The name of the registry. Can only contain numbers and letters, no spaces or special characters.
57
+ */
58
+ readonly name: pulumi.Output<string>;
59
+ /**
60
+ * The registry's OIDC policy.
61
+ */
62
+ readonly oidcPolicy: pulumi.Output<string | undefined>;
63
+ /**
64
+ * The slug of the registry.
65
+ */
66
+ readonly slug: pulumi.Output<string>;
67
+ /**
68
+ * The team IDs that have access to the registry.
69
+ */
70
+ readonly teamIds: pulumi.Output<string[] | undefined>;
71
+ /**
72
+ * The UUID of the registry.
73
+ */
74
+ readonly uuid: pulumi.Output<string>;
75
+ /**
76
+ * Create a Registry resource with the given unique name, arguments, and options.
77
+ *
78
+ * @param name The _unique_ name of the resource.
79
+ * @param args The arguments to use to populate this resource's properties.
80
+ * @param opts A bag of options that control this resource's behavior.
81
+ */
82
+ constructor(name: string, args: RegistryArgs, opts?: pulumi.CustomResourceOptions);
83
+ }
84
+ /**
85
+ * Input properties used for looking up and filtering Registry resources.
86
+ */
87
+ export interface RegistryState {
88
+ /**
89
+ * A color representation of the registry. Accepts hex codes, eg #BADA55.
90
+ */
91
+ color?: pulumi.Input<string>;
92
+ /**
93
+ * This is a description for the registry, this may describe the usage for it, the region, or something else
94
+ * which would help identify the registry's purpose.
95
+ */
96
+ description?: pulumi.Input<string>;
97
+ /**
98
+ * The ecosystem of the registry. **Warning:** This value cannot be changed after creation. Any attempts to update this field will result in API errors.
99
+ */
100
+ ecosystem?: pulumi.Input<string>;
101
+ /**
102
+ * An emoji to use with the registry, this can either be set using :buildkite: notation, or with the
103
+ * emoji itself, such as 🚀.
104
+ */
105
+ emoji?: pulumi.Input<string>;
106
+ /**
107
+ * The name of the registry. Can only contain numbers and letters, no spaces or special characters.
108
+ */
109
+ name?: pulumi.Input<string>;
110
+ /**
111
+ * The registry's OIDC policy.
112
+ */
113
+ oidcPolicy?: pulumi.Input<string>;
114
+ /**
115
+ * The slug of the registry.
116
+ */
117
+ slug?: pulumi.Input<string>;
118
+ /**
119
+ * The team IDs that have access to the registry.
120
+ */
121
+ teamIds?: pulumi.Input<pulumi.Input<string>[]>;
122
+ /**
123
+ * The UUID of the registry.
124
+ */
125
+ uuid?: pulumi.Input<string>;
126
+ }
127
+ /**
128
+ * The set of arguments for constructing a Registry resource.
129
+ */
130
+ export interface RegistryArgs {
131
+ /**
132
+ * A color representation of the registry. Accepts hex codes, eg #BADA55.
133
+ */
134
+ color?: pulumi.Input<string>;
135
+ /**
136
+ * This is a description for the registry, this may describe the usage for it, the region, or something else
137
+ * which would help identify the registry's purpose.
138
+ */
139
+ description?: pulumi.Input<string>;
140
+ /**
141
+ * The ecosystem of the registry. **Warning:** This value cannot be changed after creation. Any attempts to update this field will result in API errors.
142
+ */
143
+ ecosystem: pulumi.Input<string>;
144
+ /**
145
+ * An emoji to use with the registry, this can either be set using :buildkite: notation, or with the
146
+ * emoji itself, such as 🚀.
147
+ */
148
+ emoji?: pulumi.Input<string>;
149
+ /**
150
+ * The name of the registry. Can only contain numbers and letters, no spaces or special characters.
151
+ */
152
+ name?: pulumi.Input<string>;
153
+ /**
154
+ * The registry's OIDC policy.
155
+ */
156
+ oidcPolicy?: pulumi.Input<string>;
157
+ /**
158
+ * The team IDs that have access to the registry.
159
+ */
160
+ teamIds?: pulumi.Input<pulumi.Input<string>[]>;
161
+ }