@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
@@ -5,6 +5,28 @@ Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.getClusterOutput = exports.getCluster = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("../utilities");
8
+ /**
9
+ * Use this data source to retrieve a cluster by name. You can find out more about clusters in the Buildkite [documentation](https://buildkite.com/docs/clusters/overview).
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * <!--Start PulumiCodeChooser -->
14
+ * ```typescript
15
+ * import * as pulumi from "@pulumi/pulumi";
16
+ * import * as buildkite from "@pulumi/buildkite";
17
+ * import * as buildkite from "@pulumiverse/buildkite";
18
+ *
19
+ * const default = buildkite.Cluster.getCluster({
20
+ * name: "default",
21
+ * });
22
+ * // Assign a pipeline to that cluster
23
+ * const terraform_provider_buildkite = new buildkite.pipeline.Pipeline("terraform-provider-buildkite", {
24
+ * repository: "git@github.com:buildkite/terraform-provider-buildkite.git",
25
+ * clusterId: _default.then(_default => _default.id),
26
+ * });
27
+ * ```
28
+ * <!--End PulumiCodeChooser -->
29
+ */
8
30
  function getCluster(args, opts) {
9
31
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
10
32
  return pulumi.runtime.invoke("buildkite:Cluster/getCluster:getCluster", {
@@ -12,6 +34,28 @@ function getCluster(args, opts) {
12
34
  }, opts);
13
35
  }
14
36
  exports.getCluster = getCluster;
37
+ /**
38
+ * Use this data source to retrieve a cluster by name. You can find out more about clusters in the Buildkite [documentation](https://buildkite.com/docs/clusters/overview).
39
+ *
40
+ * ## Example Usage
41
+ *
42
+ * <!--Start PulumiCodeChooser -->
43
+ * ```typescript
44
+ * import * as pulumi from "@pulumi/pulumi";
45
+ * import * as buildkite from "@pulumi/buildkite";
46
+ * import * as buildkite from "@pulumiverse/buildkite";
47
+ *
48
+ * const default = buildkite.Cluster.getCluster({
49
+ * name: "default",
50
+ * });
51
+ * // Assign a pipeline to that cluster
52
+ * const terraform_provider_buildkite = new buildkite.pipeline.Pipeline("terraform-provider-buildkite", {
53
+ * repository: "git@github.com:buildkite/terraform-provider-buildkite.git",
54
+ * clusterId: _default.then(_default => _default.id),
55
+ * });
56
+ * ```
57
+ * <!--End PulumiCodeChooser -->
58
+ */
15
59
  function getClusterOutput(args, opts) {
16
60
  return pulumi.output(args).apply((a) => getCluster(a, opts));
17
61
  }
@@ -1 +1 @@
1
- {"version":3,"file":"getCluster.js","sourceRoot":"","sources":["../../cluster/getCluster.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C,SAAgB,UAAU,CAAC,IAAoB,EAAE,IAA2B;IAExE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,yCAAyC,EAAE;QACpE,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,gCAMC;AAsCD,SAAgB,gBAAgB,CAAC,IAA0B,EAAE,IAA2B;IACpF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,UAAU,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACrE,CAAC;AAFD,4CAEC"}
1
+ {"version":3,"file":"getCluster.js","sourceRoot":"","sources":["../../cluster/getCluster.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,SAAgB,UAAU,CAAC,IAAoB,EAAE,IAA2B;IAExE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,yCAAyC,EAAE;QACpE,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,gCAMC;AAyCD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,SAAgB,gBAAgB,CAAC,IAA0B,EAAE,IAA2B;IACpF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,UAAU,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACrE,CAAC;AAFD,4CAEC"}
@@ -4,6 +4,9 @@ export declare const Cluster: typeof import("./cluster").Cluster;
4
4
  export { ClusterAgentTokenArgs, ClusterAgentTokenState } from "./clusterAgentToken";
5
5
  export type ClusterAgentToken = import("./clusterAgentToken").ClusterAgentToken;
6
6
  export declare const ClusterAgentToken: typeof import("./clusterAgentToken").ClusterAgentToken;
7
+ export { ClusterDefaultQueueArgs, ClusterDefaultQueueState } from "./clusterDefaultQueue";
8
+ export type ClusterDefaultQueue = import("./clusterDefaultQueue").ClusterDefaultQueue;
9
+ export declare const ClusterDefaultQueue: typeof import("./clusterDefaultQueue").ClusterDefaultQueue;
7
10
  export { ClusterQueueArgs, ClusterQueueState } from "./clusterQueue";
8
11
  export type ClusterQueue = import("./clusterQueue").ClusterQueue;
9
12
  export declare const ClusterQueue: typeof import("./clusterQueue").ClusterQueue;
package/cluster/index.js CHANGED
@@ -2,13 +2,15 @@
2
2
  // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
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.getClusterOutput = exports.getCluster = exports.ClusterQueue = exports.ClusterAgentToken = exports.Cluster = void 0;
5
+ exports.getClusterOutput = exports.getCluster = exports.ClusterQueue = exports.ClusterDefaultQueue = exports.ClusterAgentToken = exports.Cluster = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("../utilities");
8
8
  exports.Cluster = null;
9
9
  utilities.lazyLoad(exports, ["Cluster"], () => require("./cluster"));
10
10
  exports.ClusterAgentToken = null;
11
11
  utilities.lazyLoad(exports, ["ClusterAgentToken"], () => require("./clusterAgentToken"));
12
+ exports.ClusterDefaultQueue = null;
13
+ utilities.lazyLoad(exports, ["ClusterDefaultQueue"], () => require("./clusterDefaultQueue"));
12
14
  exports.ClusterQueue = null;
13
15
  utilities.lazyLoad(exports, ["ClusterQueue"], () => require("./clusterQueue"));
14
16
  exports.getCluster = null;
@@ -22,6 +24,8 @@ const _module = {
22
24
  return new exports.Cluster(name, undefined, { urn });
23
25
  case "buildkite:Cluster/clusterAgentToken:ClusterAgentToken":
24
26
  return new exports.ClusterAgentToken(name, undefined, { urn });
27
+ case "buildkite:Cluster/clusterDefaultQueue:ClusterDefaultQueue":
28
+ return new exports.ClusterDefaultQueue(name, undefined, { urn });
25
29
  case "buildkite:Cluster/clusterQueue:ClusterQueue":
26
30
  return new exports.ClusterQueue(name, undefined, { urn });
27
31
  default:
@@ -31,5 +35,6 @@ const _module = {
31
35
  };
32
36
  pulumi.runtime.registerResourceModule("buildkite", "Cluster/cluster", _module);
33
37
  pulumi.runtime.registerResourceModule("buildkite", "Cluster/clusterAgentToken", _module);
38
+ pulumi.runtime.registerResourceModule("buildkite", "Cluster/clusterDefaultQueue", _module);
34
39
  pulumi.runtime.registerResourceModule("buildkite", "Cluster/clusterQueue", _module);
35
40
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../cluster/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAK7B,QAAA,OAAO,GAAuC,IAAW,CAAC;AACvE,SAAS,CAAC,QAA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O,CAAC,cAAc,CAAC,CAAC,CAAC;AAG9F,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,mCAAmC;gBACpC,OAAO,IAAI,eAAO,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACrD,KAAK,uDAAuD;gBACxD,OAAO,IAAI,yBAAiB,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YAC/D,KAAK,2DAA2D;gBAC5D,OAAO,IAAI,2BAAmB,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACjE,KAAK,6CAA6C;gBAC9C,OAAO,IAAI,oBAAY,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YAC1D;gBACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACxD;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,WAAW,EAAE,iBAAiB,EAAE,OAAO,CAAC,CAAA;AAC9E,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,WAAW,EAAE,2BAA2B,EAAE,OAAO,CAAC,CAAA;AACxF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,WAAW,EAAE,6BAA6B,EAAE,OAAO,CAAC,CAAA;AAC1F,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,WAAW,EAAE,sBAAsB,EAAE,OAAO,CAAC,CAAA"}
package/config/vars.d.ts CHANGED
@@ -1,20 +1,22 @@
1
- /**
2
- * API token with GraphQL access and `write_pipelines, read_pipelines` and `write_suites` REST API scopes
3
- */
1
+ import * as outputs from "../types/output";
4
2
  export declare const apiToken: string | undefined;
5
3
  /**
6
- * Archive pipelines when destroying instead of completely deleting.
4
+ * Enable this to archive pipelines when destroying the resource. This is opposed to completely deleting pipelines.
7
5
  */
8
6
  export declare const archivePipelineOnDelete: boolean | undefined;
9
7
  /**
10
- * Base URL for the GraphQL API to use
8
+ * Base URL for the GraphQL API to use. If not provided, the value is taken from the `BUILDKITE_GRAPHQL_URL` environment
9
+ * variable.
11
10
  */
12
11
  export declare const graphqlUrl: string | undefined;
13
12
  /**
14
- * The Buildkite organization slug
13
+ * The Buildkite organization slug. This can be found on the [settings](https://buildkite.com/organizations/~/settings)
14
+ * page. If not provided, the value is taken from the `BUILDKITE_ORGANIZATION_SLUG` environment variable.
15
15
  */
16
16
  export declare const organization: string | undefined;
17
17
  /**
18
- * Base URL for the REST API to use
18
+ * Base URL for the REST API to use. If not provided, the value is taken from the `BUILDKITE_REST_URL` environment
19
+ * variable.
19
20
  */
20
21
  export declare const restUrl: string | undefined;
22
+ export declare const timeouts: outputs.config.Timeouts | undefined;
package/config/vars.js CHANGED
@@ -34,4 +34,10 @@ Object.defineProperty(exports, "restUrl", {
34
34
  },
35
35
  enumerable: true,
36
36
  });
37
+ Object.defineProperty(exports, "timeouts", {
38
+ get() {
39
+ return __config.getObject("timeouts");
40
+ },
41
+ enumerable: true,
42
+ });
37
43
  //# sourceMappingURL=vars.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"vars.js","sourceRoot":"","sources":["../../config/vars.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAIzC,MAAM,QAAQ,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;AAMhD,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,UAAU,EAAE;IACvC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IACpC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC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c,CAAC,OAAO,EAAE,YAAY,EAAE;IACzC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;IACtC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAOH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,cAAc,EAAE;IAC3C,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IACxC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAOH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,SAAS,EAAE;IACtC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IACnC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAGH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,UAAU,EAAE;IACvC,GAAG;QACC,OAAO,QAAQ,CAAC,SAAS,CAA0B,UAAU,CAAC,CAAC;IACnE,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC"}
package/getMeta.d.ts CHANGED
@@ -1,12 +1,66 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Use this data source to look up the source IP addresses that Buildkite may use to send external requests,
4
+ * including webhooks and API calls to source control systems (like GitHub Enterprise Server and BitBucket Server).
5
+ *
6
+ * More info in the Buildkite [documentation](https://buildkite.com/docs/apis/rest-api/meta).
7
+ *
8
+ * ## Example Usage
9
+ *
10
+ * <!--Start PulumiCodeChooser -->
11
+ * ```typescript
12
+ * import * as pulumi from "@pulumi/pulumi";
13
+ * import * as aws from "@pulumi/aws";
14
+ * import * as buildkite from "@pulumi/buildkite";
15
+ *
16
+ * const ips = buildkite.getMeta({});
17
+ * // Create an AWS security group allowing ingress from Buildkite
18
+ * const fromBuildkite = new aws.ec2.SecurityGroup("fromBuildkite", {ingress: [{
19
+ * fromPort: "*",
20
+ * toPort: 443,
21
+ * protocol: "tcp",
22
+ * cidrBlocks: ips.then(ips => ips.webhookIps),
23
+ * }]});
24
+ * ```
25
+ * <!--End PulumiCodeChooser -->
26
+ */
2
27
  export declare function getMeta(opts?: pulumi.InvokeOptions): Promise<GetMetaResult>;
3
28
  /**
4
29
  * A collection of values returned by getMeta.
5
30
  */
6
31
  export interface GetMetaResult {
32
+ /**
33
+ * Fixed value: `https://api.buildkite.com/v2/meta`.
34
+ */
7
35
  readonly id: string;
8
36
  /**
9
- * A list of strings, each one an IP address (x.x.x.x) or CIDR address (x.x.x.x/32) that Buildkite may use to send webhooks and other external requests.
37
+ * List of IPs in CIDR format.
10
38
  */
11
39
  readonly webhookIps: string[];
12
40
  }
41
+ /**
42
+ * Use this data source to look up the source IP addresses that Buildkite may use to send external requests,
43
+ * including webhooks and API calls to source control systems (like GitHub Enterprise Server and BitBucket Server).
44
+ *
45
+ * More info in the Buildkite [documentation](https://buildkite.com/docs/apis/rest-api/meta).
46
+ *
47
+ * ## Example Usage
48
+ *
49
+ * <!--Start PulumiCodeChooser -->
50
+ * ```typescript
51
+ * import * as pulumi from "@pulumi/pulumi";
52
+ * import * as aws from "@pulumi/aws";
53
+ * import * as buildkite from "@pulumi/buildkite";
54
+ *
55
+ * const ips = buildkite.getMeta({});
56
+ * // Create an AWS security group allowing ingress from Buildkite
57
+ * const fromBuildkite = new aws.ec2.SecurityGroup("fromBuildkite", {ingress: [{
58
+ * fromPort: "*",
59
+ * toPort: 443,
60
+ * protocol: "tcp",
61
+ * cidrBlocks: ips.then(ips => ips.webhookIps),
62
+ * }]});
63
+ * ```
64
+ * <!--End PulumiCodeChooser -->
65
+ */
66
+ export declare function getMetaOutput(opts?: pulumi.InvokeOptions): pulumi.Output<GetMetaResult>;
package/getMeta.js CHANGED
@@ -2,12 +2,66 @@
2
2
  // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
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.getMeta = void 0;
5
+ exports.getMetaOutput = exports.getMeta = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
+ /**
9
+ * Use this data source to look up the source IP addresses that Buildkite may use to send external requests,
10
+ * including webhooks and API calls to source control systems (like GitHub Enterprise Server and BitBucket Server).
11
+ *
12
+ * More info in the Buildkite [documentation](https://buildkite.com/docs/apis/rest-api/meta).
13
+ *
14
+ * ## Example Usage
15
+ *
16
+ * <!--Start PulumiCodeChooser -->
17
+ * ```typescript
18
+ * import * as pulumi from "@pulumi/pulumi";
19
+ * import * as aws from "@pulumi/aws";
20
+ * import * as buildkite from "@pulumi/buildkite";
21
+ *
22
+ * const ips = buildkite.getMeta({});
23
+ * // Create an AWS security group allowing ingress from Buildkite
24
+ * const fromBuildkite = new aws.ec2.SecurityGroup("fromBuildkite", {ingress: [{
25
+ * fromPort: "*",
26
+ * toPort: 443,
27
+ * protocol: "tcp",
28
+ * cidrBlocks: ips.then(ips => ips.webhookIps),
29
+ * }]});
30
+ * ```
31
+ * <!--End PulumiCodeChooser -->
32
+ */
8
33
  function getMeta(opts) {
9
34
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
10
35
  return pulumi.runtime.invoke("buildkite:index/getMeta:getMeta", {}, opts);
11
36
  }
12
37
  exports.getMeta = getMeta;
38
+ /**
39
+ * Use this data source to look up the source IP addresses that Buildkite may use to send external requests,
40
+ * including webhooks and API calls to source control systems (like GitHub Enterprise Server and BitBucket Server).
41
+ *
42
+ * More info in the Buildkite [documentation](https://buildkite.com/docs/apis/rest-api/meta).
43
+ *
44
+ * ## Example Usage
45
+ *
46
+ * <!--Start PulumiCodeChooser -->
47
+ * ```typescript
48
+ * import * as pulumi from "@pulumi/pulumi";
49
+ * import * as aws from "@pulumi/aws";
50
+ * import * as buildkite from "@pulumi/buildkite";
51
+ *
52
+ * const ips = buildkite.getMeta({});
53
+ * // Create an AWS security group allowing ingress from Buildkite
54
+ * const fromBuildkite = new aws.ec2.SecurityGroup("fromBuildkite", {ingress: [{
55
+ * fromPort: "*",
56
+ * toPort: 443,
57
+ * protocol: "tcp",
58
+ * cidrBlocks: ips.then(ips => ips.webhookIps),
59
+ * }]});
60
+ * ```
61
+ * <!--End PulumiCodeChooser -->
62
+ */
63
+ function getMetaOutput(opts) {
64
+ return pulumi.output(getMeta(opts));
65
+ }
66
+ exports.getMetaOutput = getMetaOutput;
13
67
  //# sourceMappingURL=getMeta.js.map
package/getMeta.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"getMeta.js","sourceRoot":"","sources":["../getMeta.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,SAAgB,OAAO,CAAC,IAA2B;IAE/C,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,iCAAiC,EAAE,EAC/D,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,0BAKC"}
1
+ {"version":3,"file":"getMeta.js","sourceRoot":"","sources":["../getMeta.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,SAAgB,OAAO,CAAC,IAA2B;IAE/C,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,iCAAiC,EAAE,EAC/D,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,0BAKC;AAeD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,SAAgB,aAAa,CAAC,IAA2B;IACrD,OAAO,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAA;AACvC,CAAC;AAFD,sCAEC"}
package/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export { GetMetaResult } from "./getMeta";
2
2
  export declare const getMeta: typeof import("./getMeta").getMeta;
3
+ export declare const getMetaOutput: typeof import("./getMeta").getMetaOutput;
3
4
  export { ProviderArgs } from "./provider";
4
5
  export type Provider = import("./provider").Provider;
5
6
  export declare const Provider: typeof import("./provider").Provider;
package/index.js CHANGED
@@ -2,11 +2,12 @@
2
2
  // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
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.types = exports.testsuite = exports.team = exports.pipeline = exports.organization = exports.config = exports.cluster = exports.agent = exports.Provider = exports.getMeta = void 0;
5
+ exports.types = exports.testsuite = exports.team = exports.pipeline = exports.organization = exports.config = exports.cluster = exports.agent = exports.Provider = exports.getMetaOutput = exports.getMeta = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  exports.getMeta = null;
9
- utilities.lazyLoad(exports, ["getMeta"], () => require("./getMeta"));
9
+ exports.getMetaOutput = null;
10
+ utilities.lazyLoad(exports, ["getMeta", "getMetaOutput"], () => require("./getMeta"));
10
11
  exports.Provider = null;
11
12
  utilities.lazyLoad(exports, ["Provider"], () => require("./provider"));
12
13
  // Export sub-modules:
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAI5B,QAAA,OAAO,GAAuC,IAAW,CAAC;AACvE,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,SAAS,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC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EAAE,CAAC,UAAU,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC;AAGvE,sBAAsB;AACtB,iCAAiC;AAU7B,sBAAK;AATT,qCAAqC;AAUjC,0BAAO;AATX,mCAAmC;AAU/B,wBAAM;AATV,+CAA+C;AAU3C,oCAAY;AAThB,uCAAuC;AAUnC,4BAAQ;AATZ,+BAA+B;AAU3B,oBAAI;AATR,yCAAyC;AAUrC,8BAAS;AATb,iCAAiC;AAU7B,sBAAK;AAET,MAAM,CAAC,OAAO,CAAC,uBAAuB,CAAC,WAAW,EAAE;IAChD,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,iBAAiB,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAA2B,EAAE;QACpF,IAAI,IAAI,KAAK,4BAA4B,EAAE;YACvC,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACpD;QACD,OAAO,IAAI,gBAAQ,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;IACvD,CAAC;CACJ,CAAC,CAAC"}
@@ -0,0 +1,106 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * This resource allows you to create and manage banners for specific organizations, displayed to all members at the top of each page in Buildkite's UI.
4
+ *
5
+ * More information on organization/system banners can be found in the [documentation](https://buildkite.com/docs/team-management/system-banners).
6
+ *
7
+ * ## Example Usage
8
+ *
9
+ * <!--Start PulumiCodeChooser -->
10
+ * ```typescript
11
+ * import * as pulumi from "@pulumi/pulumi";
12
+ * import * as buildkite from "@pulumiverse/buildkite";
13
+ *
14
+ * const banner = new buildkite.organization.Banner("banner", {message: ":warning: Please be aware of the maintenance window this weekend!"});
15
+ * ```
16
+ * <!--End PulumiCodeChooser -->
17
+ *
18
+ * ## Import
19
+ *
20
+ * import an organization banner resource using the banner's GraphQL ID
21
+ *
22
+ * #
23
+ *
24
+ * you can use this query to find the banner's ID:
25
+ *
26
+ * query getOrganizationBannerId {
27
+ *
28
+ * organization(slug: "ORGANIZATION_SLUG") {
29
+ *
30
+ * banners(first: 1) {
31
+ *
32
+ * edges {
33
+ *
34
+ * node {
35
+ *
36
+ * id
37
+ *
38
+ * }
39
+ *
40
+ * }
41
+ *
42
+ * }
43
+ *
44
+ * }
45
+ *
46
+ * }
47
+ *
48
+ * ```sh
49
+ * $ pulumi import buildkite:Organization/banner:Banner banner T3JnYW5pemF0aW9uQmFubmVyLS0tNjZlMmE5YzktM2IzMy00OGE5LTk1NjItMzY2YzMwNzYzN2Uz
50
+ * ```
51
+ */
52
+ export declare class Banner extends pulumi.CustomResource {
53
+ /**
54
+ * Get an existing Banner resource's state with the given name, ID, and optional extra
55
+ * properties used to qualify the lookup.
56
+ *
57
+ * @param name The _unique_ name of the resulting resource.
58
+ * @param id The _unique_ provider ID of the resource to lookup.
59
+ * @param state Any extra arguments used during the lookup.
60
+ * @param opts Optional settings to control the behavior of the CustomResource.
61
+ */
62
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: BannerState, opts?: pulumi.CustomResourceOptions): Banner;
63
+ /**
64
+ * Returns true if the given object is an instance of Banner. This is designed to work even
65
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
66
+ */
67
+ static isInstance(obj: any): obj is Banner;
68
+ /**
69
+ * The organization banner's message.
70
+ */
71
+ readonly message: pulumi.Output<string>;
72
+ /**
73
+ * The UUID of the organization banner.
74
+ */
75
+ readonly uuid: pulumi.Output<string>;
76
+ /**
77
+ * Create a Banner resource with the given unique name, arguments, and options.
78
+ *
79
+ * @param name The _unique_ name of the resource.
80
+ * @param args The arguments to use to populate this resource's properties.
81
+ * @param opts A bag of options that control this resource's behavior.
82
+ */
83
+ constructor(name: string, args: BannerArgs, opts?: pulumi.CustomResourceOptions);
84
+ }
85
+ /**
86
+ * Input properties used for looking up and filtering Banner resources.
87
+ */
88
+ export interface BannerState {
89
+ /**
90
+ * The organization banner's message.
91
+ */
92
+ message?: pulumi.Input<string>;
93
+ /**
94
+ * The UUID of the organization banner.
95
+ */
96
+ uuid?: pulumi.Input<string>;
97
+ }
98
+ /**
99
+ * The set of arguments for constructing a Banner resource.
100
+ */
101
+ export interface BannerArgs {
102
+ /**
103
+ * The organization banner's message.
104
+ */
105
+ message: pulumi.Input<string>;
106
+ }
@@ -0,0 +1,104 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.Banner = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * This resource allows you to create and manage banners for specific organizations, displayed to all members at the top of each page in Buildkite's UI.
10
+ *
11
+ * More information on organization/system banners can be found in the [documentation](https://buildkite.com/docs/team-management/system-banners).
12
+ *
13
+ * ## Example Usage
14
+ *
15
+ * <!--Start PulumiCodeChooser -->
16
+ * ```typescript
17
+ * import * as pulumi from "@pulumi/pulumi";
18
+ * import * as buildkite from "@pulumiverse/buildkite";
19
+ *
20
+ * const banner = new buildkite.organization.Banner("banner", {message: ":warning: Please be aware of the maintenance window this weekend!"});
21
+ * ```
22
+ * <!--End PulumiCodeChooser -->
23
+ *
24
+ * ## Import
25
+ *
26
+ * import an organization banner resource using the banner's GraphQL ID
27
+ *
28
+ * #
29
+ *
30
+ * you can use this query to find the banner's ID:
31
+ *
32
+ * query getOrganizationBannerId {
33
+ *
34
+ * organization(slug: "ORGANIZATION_SLUG") {
35
+ *
36
+ * banners(first: 1) {
37
+ *
38
+ * edges {
39
+ *
40
+ * node {
41
+ *
42
+ * id
43
+ *
44
+ * }
45
+ *
46
+ * }
47
+ *
48
+ * }
49
+ *
50
+ * }
51
+ *
52
+ * }
53
+ *
54
+ * ```sh
55
+ * $ pulumi import buildkite:Organization/banner:Banner banner T3JnYW5pemF0aW9uQmFubmVyLS0tNjZlMmE5YzktM2IzMy00OGE5LTk1NjItMzY2YzMwNzYzN2Uz
56
+ * ```
57
+ */
58
+ class Banner extends pulumi.CustomResource {
59
+ /**
60
+ * Get an existing Banner resource's state with the given name, ID, and optional extra
61
+ * properties used to qualify the lookup.
62
+ *
63
+ * @param name The _unique_ name of the resulting resource.
64
+ * @param id The _unique_ provider ID of the resource to lookup.
65
+ * @param state Any extra arguments used during the lookup.
66
+ * @param opts Optional settings to control the behavior of the CustomResource.
67
+ */
68
+ static get(name, id, state, opts) {
69
+ return new Banner(name, state, Object.assign(Object.assign({}, opts), { id: id }));
70
+ }
71
+ /**
72
+ * Returns true if the given object is an instance of Banner. This is designed to work even
73
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
74
+ */
75
+ static isInstance(obj) {
76
+ if (obj === undefined || obj === null) {
77
+ return false;
78
+ }
79
+ return obj['__pulumiType'] === Banner.__pulumiType;
80
+ }
81
+ constructor(name, argsOrState, opts) {
82
+ let resourceInputs = {};
83
+ opts = opts || {};
84
+ if (opts.id) {
85
+ const state = argsOrState;
86
+ resourceInputs["message"] = state ? state.message : undefined;
87
+ resourceInputs["uuid"] = state ? state.uuid : undefined;
88
+ }
89
+ else {
90
+ const args = argsOrState;
91
+ if ((!args || args.message === undefined) && !opts.urn) {
92
+ throw new Error("Missing required property 'message'");
93
+ }
94
+ resourceInputs["message"] = args ? args.message : undefined;
95
+ resourceInputs["uuid"] = undefined /*out*/;
96
+ }
97
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
98
+ super(Banner.__pulumiType, name, resourceInputs, opts);
99
+ }
100
+ }
101
+ exports.Banner = Banner;
102
+ /** @internal */
103
+ Banner.__pulumiType = 'buildkite:Organization/banner:Banner';
104
+ //# sourceMappingURL=banner.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"banner.js","sourceRoot":"","sources":["../../organization/banner.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC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C,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,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,MAAM,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC3D,CAAC;;AA9DL,wBA+DC;AAjDG,gBAAgB;AACO,mBAAY,GAAG,sCAAsC,CAAC"}
@@ -1,25 +1,6 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  /**
3
- * ## # Data Source: organization
4
- *
5
- * Use this data source to look up the organization settings. It currently supports
6
- * allowed_api_ip_addresses.
7
- *
8
- * ## Example Usage
9
- *
10
- * ```typescript
11
- * import * as pulumi from "@pulumi/pulumi";
12
- * import * as aws from "@pulumi/aws";
13
- * import * as buildkite from "@pulumi/buildkite";
14
- *
15
- * const testkite = buildkite.Organization.getOrganization({});
16
- * const fromBuildkite = new aws.ec2.SecurityGroup("fromBuildkite", {ingress: [{
17
- * fromPort: "*",
18
- * toPort: 443,
19
- * protocol: "tcp",
20
- * cidrBlocks: data.buildkite_organization.allowed_api_ip_addresses,
21
- * }]});
22
- * ```
3
+ * Use this data source to look up the organization settings.
23
4
  */
24
5
  export declare function getOrganization(opts?: pulumi.InvokeOptions): Promise<GetOrganizationResult>;
25
6
  /**
@@ -27,9 +8,19 @@ export declare function getOrganization(opts?: pulumi.InvokeOptions): Promise<Ge
27
8
  */
28
9
  export interface GetOrganizationResult {
29
10
  /**
30
- * list of IP addresses in CIDR format that are allowed to access the Buildkite API.
11
+ * List of IP addresses in CIDR format that are allowed to access the Buildkite API for this organization.
31
12
  */
32
13
  readonly allowedApiIpAddresses: string[];
14
+ /**
15
+ * The GraphQL ID of the organization.
16
+ */
33
17
  readonly id: string;
18
+ /**
19
+ * The UUID of the organization.
20
+ */
34
21
  readonly uuid: string;
35
22
  }
23
+ /**
24
+ * Use this data source to look up the organization settings.
25
+ */
26
+ export declare function getOrganizationOutput(opts?: pulumi.InvokeOptions): pulumi.Output<GetOrganizationResult>;
@@ -2,34 +2,22 @@
2
2
  // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
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.getOrganization = void 0;
5
+ exports.getOrganizationOutput = exports.getOrganization = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("../utilities");
8
8
  /**
9
- * ## # Data Source: organization
10
- *
11
- * Use this data source to look up the organization settings. It currently supports
12
- * allowed_api_ip_addresses.
13
- *
14
- * ## Example Usage
15
- *
16
- * ```typescript
17
- * import * as pulumi from "@pulumi/pulumi";
18
- * import * as aws from "@pulumi/aws";
19
- * import * as buildkite from "@pulumi/buildkite";
20
- *
21
- * const testkite = buildkite.Organization.getOrganization({});
22
- * const fromBuildkite = new aws.ec2.SecurityGroup("fromBuildkite", {ingress: [{
23
- * fromPort: "*",
24
- * toPort: 443,
25
- * protocol: "tcp",
26
- * cidrBlocks: data.buildkite_organization.allowed_api_ip_addresses,
27
- * }]});
28
- * ```
9
+ * Use this data source to look up the organization settings.
29
10
  */
30
11
  function getOrganization(opts) {
31
12
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
32
13
  return pulumi.runtime.invoke("buildkite:Organization/getOrganization:getOrganization", {}, opts);
33
14
  }
34
15
  exports.getOrganization = getOrganization;
16
+ /**
17
+ * Use this data source to look up the organization settings.
18
+ */
19
+ function getOrganizationOutput(opts) {
20
+ return pulumi.output(getOrganization(opts));
21
+ }
22
+ exports.getOrganizationOutput = getOrganizationOutput;
35
23
  //# sourceMappingURL=getOrganization.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getOrganization.js","sourceRoot":"","sources":["../../organization/getOrganization.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,SAAgB,eAAe,CAAC,IAA2B;IAEvD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,wDAAwD,EAAE,EACtF,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,0CAKC"}
1
+ {"version":3,"file":"getOrganization.js","sourceRoot":"","sources":["../../organization/getOrganization.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;GAEG;AACH,SAAgB,eAAe,CAAC,IAA2B;IAEvD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,wDAAwD,EAAE,EACtF,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,0CAKC;AAmBD;;GAEG;AACH,SAAgB,qBAAqB,CAAC,IAA2B;IAC7D,OAAO,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC,CAAA;AAC/C,CAAC;AAFD,sDAEC"}