@pulumiverse/buildkite 2.2.0 → 2.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/README.md +3 -3
  2. package/agent/agentToken.js +2 -0
  3. package/agent/agentToken.js.map +1 -1
  4. package/cluster/cluster.d.ts +108 -0
  5. package/cluster/cluster.js +73 -0
  6. package/cluster/cluster.js.map +1 -0
  7. package/cluster/clusterAgentToken.d.ts +97 -0
  8. package/cluster/clusterAgentToken.js +84 -0
  9. package/cluster/clusterAgentToken.js.map +1 -0
  10. package/cluster/clusterQueue.d.ts +162 -0
  11. package/cluster/clusterQueue.js +137 -0
  12. package/cluster/clusterQueue.js.map +1 -0
  13. package/cluster/getCluster.d.ts +47 -0
  14. package/cluster/getCluster.js +19 -0
  15. package/cluster/getCluster.js.map +1 -0
  16. package/cluster/index.d.ts +12 -0
  17. package/cluster/index.js +35 -0
  18. package/cluster/index.js.map +1 -0
  19. package/config/vars.d.ts +5 -1
  20. package/config/vars.js +6 -0
  21. package/config/vars.js.map +1 -1
  22. package/getMeta.d.ts +0 -3
  23. package/index.d.ts +3 -1
  24. package/index.js +5 -1
  25. package/index.js.map +1 -1
  26. package/organization/getOrganization.d.ts +2 -46
  27. package/organization/getOrganization.js +3 -32
  28. package/organization/getOrganization.js.map +1 -1
  29. package/organization/index.d.ts +4 -2
  30. package/organization/index.js +7 -3
  31. package/organization/index.js.map +1 -1
  32. package/organization/organization.d.ts +78 -0
  33. package/organization/organization.js +79 -0
  34. package/organization/organization.js.map +1 -0
  35. package/organization/settings.d.ts +4 -0
  36. package/organization/settings.js +4 -0
  37. package/organization/settings.js.map +1 -1
  38. package/package.json +2 -2
  39. package/pipeline/getPipeline.d.ts +1 -4
  40. package/pipeline/getPipeline.js.map +1 -1
  41. package/pipeline/index.d.ts +3 -0
  42. package/pipeline/index.js +6 -1
  43. package/pipeline/index.js.map +1 -1
  44. package/pipeline/pipeline.d.ts +45 -98
  45. package/pipeline/pipeline.js +10 -85
  46. package/pipeline/pipeline.js.map +1 -1
  47. package/pipeline/schedule.d.ts +46 -5
  48. package/pipeline/schedule.js +34 -2
  49. package/pipeline/schedule.js.map +1 -1
  50. package/pipeline/team.d.ts +128 -0
  51. package/pipeline/team.js +112 -0
  52. package/pipeline/team.js.map +1 -0
  53. package/provider.d.ts +11 -7
  54. package/provider.js +5 -8
  55. package/provider.js.map +1 -1
  56. package/team/getTeam.d.ts +24 -10
  57. package/team/getTeam.js +6 -4
  58. package/team/getTeam.js.map +1 -1
  59. package/team/member.d.ts +4 -4
  60. package/team/member.js +4 -4
  61. package/team/team.d.ts +31 -1
  62. package/team/team.js +30 -0
  63. package/team/team.js.map +1 -1
  64. package/testsuite/index.d.ts +6 -0
  65. package/testsuite/index.js +27 -0
  66. package/testsuite/index.js.map +1 -0
  67. package/testsuite/team.d.ts +166 -0
  68. package/testsuite/team.js +150 -0
  69. package/testsuite/team.js.map +1 -0
  70. package/testsuite/testSuite.d.ts +120 -0
  71. package/testsuite/testSuite.js +91 -0
  72. package/testsuite/testSuite.js.map +1 -0
  73. package/types/input.d.ts +3 -4
  74. package/types/output.d.ts +8 -9
@@ -0,0 +1,137 @@
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.ClusterQueue = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * ## # Resource: clusterQueue
10
+ *
11
+ * This resource allows you to create and manage cluster queues.
12
+ *
13
+ * Buildkite Documentation: https://buildkite.com/docs/clusters/manage-clusters#set-up-clusters-create-a-queue
14
+ *
15
+ * ## Example Usage
16
+ *
17
+ * ```typescript
18
+ * import * as pulumi from "@pulumi/pulumi";
19
+ * import * as buildkite from "@pulumiverse/buildkite";
20
+ *
21
+ * const queue1 = new buildkite.cluster.ClusterQueue("queue1", {
22
+ * clusterId: "Q2x1c3Rlci0tLTMzMDc0ZDhiLTM4MjctNDRkNC05YTQ3LTkwN2E2NWZjODViNg==",
23
+ * description: "Prod deployment cluster queue",
24
+ * key: "prod-deploy",
25
+ * });
26
+ * ```
27
+ *
28
+ * ## Import
29
+ *
30
+ * Cluster queues can be imported using its `GraphQL ID`, along with its respective cluster `UUID`, separated by a comma. e.g.
31
+ *
32
+ * ```sh
33
+ * $ pulumi import buildkite:Cluster/clusterQueue:ClusterQueue test Q2x1c3RlclF1ZXVlLS0tYjJiOGRhNTEtOWY5My00Y2MyLTkyMjktMGRiNzg3ZDQzOTAz,35498aaf-ad05-4fa5-9a07-91bf6cacd2bd
34
+ * ```
35
+ *
36
+ * To find the cluster's `UUID` to utilize, you can use the below GraphQL query below. Alternatively, you can use this [pre-saved query](https://buildkite.com/user/graphql/console/3adf0389-02bd-45ef-adcd-4e8e5ae57f25), where you will need fo fill in the organization slug (ORGANIZATION_SLUG) for obtaining the relevant cluster name/`UUID` that the cluster queue is in. graphql query getClusters {
37
+ *
38
+ * organization(slug"ORGANIZATION_SLUG") {
39
+ *
40
+ * clusters(first50) {
41
+ *
42
+ * edges{
43
+ *
44
+ * node{
45
+ *
46
+ * name
47
+ *
48
+ * uuid
49
+ *
50
+ * }
51
+ *
52
+ * }
53
+ *
54
+ * }
55
+ *
56
+ * } } After the cluster `UUID` has been found, you can use the below GraphQL query to find the cluster queue's `GraphQL ID`. Alternatively, this [pre-saved query](https://buildkite.com/user/graphql/console/1d913905-900e-40e7-8f46-651543487b5a) can be used, specifying the organization slug (ORGANIZATION_SLUG) and the cluster `UUID` from above (CLUSTER_UUID). graphql query getClusterQueues {
57
+ *
58
+ * organization(slug"ORGANIZATION_SLUG") {
59
+ *
60
+ * cluster(id"CLUSTER_UUID") {
61
+ *
62
+ * queues(first50) {
63
+ *
64
+ * edges {
65
+ *
66
+ * node {
67
+ *
68
+ * id
69
+ *
70
+ * key
71
+ *
72
+ * }
73
+ *
74
+ * }
75
+ *
76
+ * }
77
+ *
78
+ * }
79
+ *
80
+ * } }
81
+ */
82
+ class ClusterQueue extends pulumi.CustomResource {
83
+ /**
84
+ * Get an existing ClusterQueue resource's state with the given name, ID, and optional extra
85
+ * properties used to qualify the lookup.
86
+ *
87
+ * @param name The _unique_ name of the resulting resource.
88
+ * @param id The _unique_ provider ID of the resource to lookup.
89
+ * @param state Any extra arguments used during the lookup.
90
+ * @param opts Optional settings to control the behavior of the CustomResource.
91
+ */
92
+ static get(name, id, state, opts) {
93
+ return new ClusterQueue(name, state, Object.assign(Object.assign({}, opts), { id: id }));
94
+ }
95
+ /**
96
+ * Returns true if the given object is an instance of ClusterQueue. This is designed to work even
97
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
98
+ */
99
+ static isInstance(obj) {
100
+ if (obj === undefined || obj === null) {
101
+ return false;
102
+ }
103
+ return obj['__pulumiType'] === ClusterQueue.__pulumiType;
104
+ }
105
+ constructor(name, argsOrState, opts) {
106
+ let resourceInputs = {};
107
+ opts = opts || {};
108
+ if (opts.id) {
109
+ const state = argsOrState;
110
+ resourceInputs["clusterId"] = state ? state.clusterId : undefined;
111
+ resourceInputs["clusterUuid"] = state ? state.clusterUuid : undefined;
112
+ resourceInputs["description"] = state ? state.description : undefined;
113
+ resourceInputs["key"] = state ? state.key : undefined;
114
+ resourceInputs["uuid"] = state ? state.uuid : undefined;
115
+ }
116
+ else {
117
+ const args = argsOrState;
118
+ if ((!args || args.clusterId === undefined) && !opts.urn) {
119
+ throw new Error("Missing required property 'clusterId'");
120
+ }
121
+ if ((!args || args.key === undefined) && !opts.urn) {
122
+ throw new Error("Missing required property 'key'");
123
+ }
124
+ resourceInputs["clusterId"] = args ? args.clusterId : undefined;
125
+ resourceInputs["description"] = args ? args.description : undefined;
126
+ resourceInputs["key"] = args ? args.key : undefined;
127
+ resourceInputs["clusterUuid"] = undefined /*out*/;
128
+ resourceInputs["uuid"] = undefined /*out*/;
129
+ }
130
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
131
+ super(ClusterQueue.__pulumiType, name, resourceInputs, opts);
132
+ }
133
+ }
134
+ exports.ClusterQueue = ClusterQueue;
135
+ /** @internal */
136
+ ClusterQueue.__pulumiType = 'buildkite:Cluster/clusterQueue:ClusterQueue';
137
+ //# sourceMappingURL=clusterQueue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clusterQueue.js","sourceRoot":"","sources":["../../cluster/clusterQueue.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyEG;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;IA+BD,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,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,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C;YAClD,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;;AAnFL,oCAoFC;AAtEG,gBAAgB;AACO,yBAAY,GAAG,6CAA6C,CAAC"}
@@ -0,0 +1,47 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ export declare function getCluster(args: GetClusterArgs, opts?: pulumi.InvokeOptions): Promise<GetClusterResult>;
3
+ /**
4
+ * A collection of arguments for invoking getCluster.
5
+ */
6
+ export interface GetClusterArgs {
7
+ /**
8
+ * The name of the cluster to lookup.
9
+ */
10
+ name: string;
11
+ }
12
+ /**
13
+ * A collection of values returned by getCluster.
14
+ */
15
+ export interface GetClusterResult {
16
+ /**
17
+ * The color given the cluster.
18
+ */
19
+ readonly color: string;
20
+ /**
21
+ * The description of the cluster.
22
+ */
23
+ readonly description: string;
24
+ /**
25
+ * The emoji given the cluster.
26
+ */
27
+ readonly emoji: string;
28
+ /**
29
+ * The GraphQL ID of the cluster.
30
+ */
31
+ readonly id: string;
32
+ readonly name: string;
33
+ /**
34
+ * The UUID of the cluster.
35
+ */
36
+ readonly uuid: string;
37
+ }
38
+ export declare function getClusterOutput(args: GetClusterOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetClusterResult>;
39
+ /**
40
+ * A collection of arguments for invoking getCluster.
41
+ */
42
+ export interface GetClusterOutputArgs {
43
+ /**
44
+ * The name of the cluster to lookup.
45
+ */
46
+ name: pulumi.Input<string>;
47
+ }
@@ -0,0 +1,19 @@
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.getClusterOutput = exports.getCluster = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ function getCluster(args, opts) {
9
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
10
+ return pulumi.runtime.invoke("buildkite:Cluster/getCluster:getCluster", {
11
+ "name": args.name,
12
+ }, opts);
13
+ }
14
+ exports.getCluster = getCluster;
15
+ function getClusterOutput(args, opts) {
16
+ return pulumi.output(args).apply((a) => getCluster(a, opts));
17
+ }
18
+ exports.getClusterOutput = getClusterOutput;
19
+ //# sourceMappingURL=getCluster.js.map
@@ -0,0 +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"}
@@ -0,0 +1,12 @@
1
+ export { ClusterArgs, ClusterState } from "./cluster";
2
+ export type Cluster = import("./cluster").Cluster;
3
+ export declare const Cluster: typeof import("./cluster").Cluster;
4
+ export { ClusterAgentTokenArgs, ClusterAgentTokenState } from "./clusterAgentToken";
5
+ export type ClusterAgentToken = import("./clusterAgentToken").ClusterAgentToken;
6
+ export declare const ClusterAgentToken: typeof import("./clusterAgentToken").ClusterAgentToken;
7
+ export { ClusterQueueArgs, ClusterQueueState } from "./clusterQueue";
8
+ export type ClusterQueue = import("./clusterQueue").ClusterQueue;
9
+ export declare const ClusterQueue: typeof import("./clusterQueue").ClusterQueue;
10
+ export { GetClusterArgs, GetClusterResult, GetClusterOutputArgs } from "./getCluster";
11
+ export declare const getCluster: typeof import("./getCluster").getCluster;
12
+ export declare const getClusterOutput: typeof import("./getCluster").getClusterOutput;
@@ -0,0 +1,35 @@
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.getClusterOutput = exports.getCluster = exports.ClusterQueue = exports.ClusterAgentToken = exports.Cluster = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ exports.Cluster = null;
9
+ utilities.lazyLoad(exports, ["Cluster"], () => require("./cluster"));
10
+ exports.ClusterAgentToken = null;
11
+ utilities.lazyLoad(exports, ["ClusterAgentToken"], () => require("./clusterAgentToken"));
12
+ exports.ClusterQueue = null;
13
+ utilities.lazyLoad(exports, ["ClusterQueue"], () => require("./clusterQueue"));
14
+ exports.getCluster = null;
15
+ exports.getClusterOutput = null;
16
+ utilities.lazyLoad(exports, ["getCluster", "getClusterOutput"], () => require("./getCluster"));
17
+ const _module = {
18
+ version: utilities.getVersion(),
19
+ construct: (name, type, urn) => {
20
+ switch (type) {
21
+ case "buildkite:Cluster/cluster:Cluster":
22
+ return new exports.Cluster(name, undefined, { urn });
23
+ case "buildkite:Cluster/clusterAgentToken:ClusterAgentToken":
24
+ return new exports.ClusterAgentToken(name, undefined, { urn });
25
+ case "buildkite:Cluster/clusterQueue:ClusterQueue":
26
+ return new exports.ClusterQueue(name, undefined, { urn });
27
+ default:
28
+ throw new Error(`unknown resource type ${type}`);
29
+ }
30
+ },
31
+ };
32
+ pulumi.runtime.registerResourceModule("buildkite", "Cluster/cluster", _module);
33
+ pulumi.runtime.registerResourceModule("buildkite", "Cluster/clusterAgentToken", _module);
34
+ pulumi.runtime.registerResourceModule("buildkite", "Cluster/clusterQueue", _module);
35
+ //# sourceMappingURL=index.js.map
@@ -0,0 +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,QAAQ,CAAC,OAAO,EAAE,CAAC,SAAS,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC;AAIxD,QAAA,iBAAiB,GAA2D,IAAW,CAAC;AACrG,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,mBAAmB,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAC,CAAC;AAI5E,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;AAGlE,QAAA,UAAU,GAA6C,IAAW,CAAC;AACnE,QAAA,gBAAgB,GAAmD,IAAW,CAAC;AAC5F,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,YAAY,EAAC,kBAAkB,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,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,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,sBAAsB,EAAE,OAAO,CAAC,CAAA"}
package/config/vars.d.ts CHANGED
@@ -1,7 +1,11 @@
1
1
  /**
2
- * API token with GraphQL access and `write_pipelines, read_pipelines` scopes
2
+ * API token with GraphQL access and `write_pipelines, read_pipelines` and `write_suites` REST API scopes
3
3
  */
4
4
  export declare const apiToken: string | undefined;
5
+ /**
6
+ * Archive pipelines when destroying instead of completely deleting.
7
+ */
8
+ export declare const archivePipelineOnDelete: boolean | undefined;
5
9
  /**
6
10
  * Base URL for the GraphQL API to use
7
11
  */
package/config/vars.js CHANGED
@@ -10,6 +10,12 @@ Object.defineProperty(exports, "apiToken", {
10
10
  },
11
11
  enumerable: true,
12
12
  });
13
+ Object.defineProperty(exports, "archivePipelineOnDelete", {
14
+ get() {
15
+ return __config.getObject("archivePipelineOnDelete");
16
+ },
17
+ enumerable: true,
18
+ });
13
19
  Object.defineProperty(exports, "graphqlUrl", {
14
20
  get() {
15
21
  return __config.get("graphqlUrl");
@@ -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,OAAO,EAAE,YAAY,EAAE;IACzC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;IACtC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,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;AAMH,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"}
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,OAAO,EAAE,yBAAyB,EAAE;IACtD,GAAG;QACC,OAAO,QAAQ,CAAC,SAAS,CAAU,yBAAyB,CAAC,CAAC;IAClE,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,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;AAMH,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;AAMH,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"}
package/getMeta.d.ts CHANGED
@@ -4,9 +4,6 @@ export declare function getMeta(opts?: pulumi.InvokeOptions): Promise<GetMetaRes
4
4
  * A collection of values returned by getMeta.
5
5
  */
6
6
  export interface GetMetaResult {
7
- /**
8
- * The provider-assigned unique ID for this managed resource.
9
- */
10
7
  readonly id: string;
11
8
  /**
12
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.
package/index.d.ts CHANGED
@@ -4,9 +4,11 @@ export { ProviderArgs } from "./provider";
4
4
  export type Provider = import("./provider").Provider;
5
5
  export declare const Provider: typeof import("./provider").Provider;
6
6
  import * as agent from "./agent";
7
+ import * as cluster from "./cluster";
7
8
  import * as config from "./config";
8
9
  import * as organization from "./organization";
9
10
  import * as pipeline from "./pipeline";
10
11
  import * as team from "./team";
12
+ import * as testsuite from "./testsuite";
11
13
  import * as types from "./types";
12
- export { agent, config, organization, pipeline, team, types, };
14
+ export { agent, cluster, config, organization, pipeline, team, testsuite, types, };
package/index.js CHANGED
@@ -2,7 +2,7 @@
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.team = exports.pipeline = exports.organization = exports.config = 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.getMeta = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  exports.getMeta = null;
@@ -12,6 +12,8 @@ utilities.lazyLoad(exports, ["Provider"], () => require("./provider"));
12
12
  // Export sub-modules:
13
13
  const agent = require("./agent");
14
14
  exports.agent = agent;
15
+ const cluster = require("./cluster");
16
+ exports.cluster = cluster;
15
17
  const config = require("./config");
16
18
  exports.config = config;
17
19
  const organization = require("./organization");
@@ -20,6 +22,8 @@ const pipeline = require("./pipeline");
20
22
  exports.pipeline = pipeline;
21
23
  const team = require("./team");
22
24
  exports.team = team;
25
+ const testsuite = require("./testsuite");
26
+ exports.testsuite = testsuite;
23
27
  const types = require("./types");
24
28
  exports.types = types;
25
29
  pulumi.runtime.registerResourcePackage("buildkite", {
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,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,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"}
@@ -21,16 +21,7 @@ import * as pulumi from "@pulumi/pulumi";
21
21
  * }]});
22
22
  * ```
23
23
  */
24
- export declare function getOrganization(args?: GetOrganizationArgs, opts?: pulumi.InvokeOptions): Promise<GetOrganizationResult>;
25
- /**
26
- * A collection of arguments for invoking getOrganization.
27
- */
28
- export interface GetOrganizationArgs {
29
- /**
30
- * list of IP addresses in CIDR format that are allowed to access the Buildkite API.
31
- */
32
- allowedApiIpAddresses?: string[];
33
- }
24
+ export declare function getOrganization(opts?: pulumi.InvokeOptions): Promise<GetOrganizationResult>;
34
25
  /**
35
26
  * A collection of values returned by getOrganization.
36
27
  */
@@ -38,42 +29,7 @@ export interface GetOrganizationResult {
38
29
  /**
39
30
  * list of IP addresses in CIDR format that are allowed to access the Buildkite API.
40
31
  */
41
- readonly allowedApiIpAddresses?: string[];
42
- /**
43
- * The provider-assigned unique ID for this managed resource.
44
- */
32
+ readonly allowedApiIpAddresses: string[];
45
33
  readonly id: string;
46
34
  readonly uuid: string;
47
35
  }
48
- /**
49
- * ## # Data Source: organization
50
- *
51
- * Use this data source to look up the organization settings. It currently supports
52
- * allowed_api_ip_addresses.
53
- *
54
- * ## Example Usage
55
- *
56
- * ```typescript
57
- * import * as pulumi from "@pulumi/pulumi";
58
- * import * as aws from "@pulumi/aws";
59
- * import * as buildkite from "@pulumi/buildkite";
60
- *
61
- * const testkite = buildkite.Organization.getOrganization({});
62
- * const fromBuildkite = new aws.ec2.SecurityGroup("fromBuildkite", {ingress: [{
63
- * fromPort: "*",
64
- * toPort: 443,
65
- * protocol: "tcp",
66
- * cidrBlocks: data.buildkite_organization.allowed_api_ip_addresses,
67
- * }]});
68
- * ```
69
- */
70
- export declare function getOrganizationOutput(args?: GetOrganizationOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetOrganizationResult>;
71
- /**
72
- * A collection of arguments for invoking getOrganization.
73
- */
74
- export interface GetOrganizationOutputArgs {
75
- /**
76
- * list of IP addresses in CIDR format that are allowed to access the Buildkite API.
77
- */
78
- allowedApiIpAddresses?: pulumi.Input<pulumi.Input<string>[]>;
79
- }
@@ -2,7 +2,7 @@
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.getOrganizationOutput = exports.getOrganization = void 0;
5
+ exports.getOrganization = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("../utilities");
8
8
  /**
@@ -27,38 +27,9 @@ const utilities = require("../utilities");
27
27
  * }]});
28
28
  * ```
29
29
  */
30
- function getOrganization(args, opts) {
31
- args = args || {};
30
+ function getOrganization(opts) {
32
31
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
33
- return pulumi.runtime.invoke("buildkite:Organization/getOrganization:getOrganization", {
34
- "allowedApiIpAddresses": args.allowedApiIpAddresses,
35
- }, opts);
32
+ return pulumi.runtime.invoke("buildkite:Organization/getOrganization:getOrganization", {}, opts);
36
33
  }
37
34
  exports.getOrganization = getOrganization;
38
- /**
39
- * ## # Data Source: organization
40
- *
41
- * Use this data source to look up the organization settings. It currently supports
42
- * allowed_api_ip_addresses.
43
- *
44
- * ## Example Usage
45
- *
46
- * ```typescript
47
- * import * as pulumi from "@pulumi/pulumi";
48
- * import * as aws from "@pulumi/aws";
49
- * import * as buildkite from "@pulumi/buildkite";
50
- *
51
- * const testkite = buildkite.Organization.getOrganization({});
52
- * const fromBuildkite = new aws.ec2.SecurityGroup("fromBuildkite", {ingress: [{
53
- * fromPort: "*",
54
- * toPort: 443,
55
- * protocol: "tcp",
56
- * cidrBlocks: data.buildkite_organization.allowed_api_ip_addresses,
57
- * }]});
58
- * ```
59
- */
60
- function getOrganizationOutput(args, opts) {
61
- return pulumi.output(args).apply((a) => getOrganization(a, opts));
62
- }
63
- exports.getOrganizationOutput = getOrganizationOutput;
64
35
  //# 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,IAA0B,EAAE,IAA2B;IACnF,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,wDAAwD,EAAE;QACnF,uBAAuB,EAAE,IAAI,CAAC,qBAAqB;KACtD,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,0CAOC;AA0BD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,SAAgB,qBAAqB,CAAC,IAAgC,EAAE,IAA2B;IAC/F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,eAAe,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC1E,CAAC;AAFD,sDAEC"}
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,6 +1,8 @@
1
- export { GetOrganizationArgs, GetOrganizationResult, GetOrganizationOutputArgs } from "./getOrganization";
1
+ export { GetOrganizationResult } from "./getOrganization";
2
2
  export declare const getOrganization: typeof import("./getOrganization").getOrganization;
3
- export declare const getOrganizationOutput: typeof import("./getOrganization").getOrganizationOutput;
3
+ export { OrganizationArgs, OrganizationState } from "./organization";
4
+ export type Organization = import("./organization").Organization;
5
+ export declare const Organization: typeof import("./organization").Organization;
4
6
  export { SettingsArgs, SettingsState } from "./settings";
5
7
  export type Settings = import("./settings").Settings;
6
8
  export declare const Settings: typeof import("./settings").Settings;
@@ -2,18 +2,21 @@
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.Settings = exports.getOrganizationOutput = exports.getOrganization = void 0;
5
+ exports.Settings = exports.Organization = exports.getOrganization = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("../utilities");
8
8
  exports.getOrganization = null;
9
- exports.getOrganizationOutput = null;
10
- utilities.lazyLoad(exports, ["getOrganization", "getOrganizationOutput"], () => require("./getOrganization"));
9
+ utilities.lazyLoad(exports, ["getOrganization"], () => require("./getOrganization"));
10
+ exports.Organization = null;
11
+ utilities.lazyLoad(exports, ["Organization"], () => require("./organization"));
11
12
  exports.Settings = null;
12
13
  utilities.lazyLoad(exports, ["Settings"], () => require("./settings"));
13
14
  const _module = {
14
15
  version: utilities.getVersion(),
15
16
  construct: (name, type, urn) => {
16
17
  switch (type) {
18
+ case "buildkite:Organization/organization:Organization":
19
+ return new exports.Organization(name, undefined, { urn });
17
20
  case "buildkite:Organization/settings:Settings":
18
21
  return new exports.Settings(name, undefined, { urn });
19
22
  default:
@@ -21,5 +24,6 @@ const _module = {
21
24
  }
22
25
  },
23
26
  };
27
+ pulumi.runtime.registerResourceModule("buildkite", "Organization/organization", _module);
24
28
  pulumi.runtime.registerResourceModule("buildkite", "Organization/settings", _module);
25
29
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../organization/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAI7B,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,QAAQ,GAAyC,IAAW,CAAC;AAC1E,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,UAAU,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC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E;QACpE,QAAQ,IAAI,EAAE;YACV,KAAK,kDAAkD;gBACnD,OAAO,IAAI,oBAAY,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YAC1D,KAAK,0CAA0C;gBAC3C,OAAO,IAAI,gBAAQ,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACtD;gBACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACxD;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,WAAW,EAAE,2BAA2B,EAAE,OAAO,CAAC,CAAA;AACxF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,WAAW,EAAE,uBAAuB,EAAE,OAAO,CAAC,CAAA"}
@@ -0,0 +1,78 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * ## # Resource: organization
4
+ *
5
+ * This resource allows you to manage the settings for an organization.
6
+ *
7
+ * You must be an organization administrator to manage organization settings.
8
+ *
9
+ * Note: The "Allowed API IP Addresses" feature must be enabled on your organization in order to manage the `allowedApiIpAddresses` attribute.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as buildkite from "@pulumiverse/buildkite";
16
+ *
17
+ * const testSettings = new buildkite.organization.Organization("testSettings", {allowedApiIpAddresses: ["1.1.1.1/32"]});
18
+ * ```
19
+ *
20
+ * ## Import
21
+ *
22
+ * Organization settings can be imported by passing the organization slug to the import command, along with the identifier of the resource.
23
+ *
24
+ * ```sh
25
+ * $ pulumi import buildkite:Organization/organization:Organization test_settings test_org
26
+ * ```
27
+ *
28
+ * Your organization's slug can be found in your organisation's [settings](https://buildkite.com/organizations/~/settings) page.
29
+ */
30
+ export declare class Organization extends pulumi.CustomResource {
31
+ /**
32
+ * Get an existing Organization resource's state with the given name, ID, and optional extra
33
+ * properties used to qualify the lookup.
34
+ *
35
+ * @param name The _unique_ name of the resulting resource.
36
+ * @param id The _unique_ provider ID of the resource to lookup.
37
+ * @param state Any extra arguments used during the lookup.
38
+ * @param opts Optional settings to control the behavior of the CustomResource.
39
+ */
40
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: OrganizationState, opts?: pulumi.CustomResourceOptions): Organization;
41
+ /**
42
+ * Returns true if the given object is an instance of Organization. This is designed to work even
43
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
44
+ */
45
+ static isInstance(obj: any): obj is Organization;
46
+ /**
47
+ * A list of IP addresses in CIDR format that are allowed to access the Buildkite API. If not set, all IP addresses are allowed (the same as setting 0.0.0.0/0).
48
+ */
49
+ readonly allowedApiIpAddresses: pulumi.Output<string[] | undefined>;
50
+ readonly uuid: pulumi.Output<string>;
51
+ /**
52
+ * Create a Organization resource with the given unique name, arguments, and options.
53
+ *
54
+ * @param name The _unique_ name of the resource.
55
+ * @param args The arguments to use to populate this resource's properties.
56
+ * @param opts A bag of options that control this resource's behavior.
57
+ */
58
+ constructor(name: string, args?: OrganizationArgs, opts?: pulumi.CustomResourceOptions);
59
+ }
60
+ /**
61
+ * Input properties used for looking up and filtering Organization resources.
62
+ */
63
+ export interface OrganizationState {
64
+ /**
65
+ * A list of IP addresses in CIDR format that are allowed to access the Buildkite API. If not set, all IP addresses are allowed (the same as setting 0.0.0.0/0).
66
+ */
67
+ allowedApiIpAddresses?: pulumi.Input<pulumi.Input<string>[]>;
68
+ uuid?: pulumi.Input<string>;
69
+ }
70
+ /**
71
+ * The set of arguments for constructing a Organization resource.
72
+ */
73
+ export interface OrganizationArgs {
74
+ /**
75
+ * A list of IP addresses in CIDR format that are allowed to access the Buildkite API. If not set, all IP addresses are allowed (the same as setting 0.0.0.0/0).
76
+ */
77
+ allowedApiIpAddresses?: pulumi.Input<pulumi.Input<string>[]>;
78
+ }