@pulumiverse/grafana 2.25.2 → 2.26.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.
@@ -1,6 +1,9 @@
1
1
  export { ProductActivationAppO11yConfigArgs, ProductActivationAppO11yConfigState } from "./productActivationAppO11yConfig";
2
2
  export type ProductActivationAppO11yConfig = import("./productActivationAppO11yConfig").ProductActivationAppO11yConfig;
3
3
  export declare const ProductActivationAppO11yConfig: typeof import("./productActivationAppO11yConfig").ProductActivationAppO11yConfig;
4
+ export { ProductActivationDbO11yConfigArgs, ProductActivationDbO11yConfigState } from "./productActivationDbO11yConfig";
5
+ export type ProductActivationDbO11yConfig = import("./productActivationDbO11yConfig").ProductActivationDbO11yConfig;
6
+ export declare const ProductActivationDbO11yConfig: typeof import("./productActivationDbO11yConfig").ProductActivationDbO11yConfig;
4
7
  export { ProductActivationK8sO11yConfigArgs, ProductActivationK8sO11yConfigState } from "./productActivationK8sO11yConfig";
5
8
  export type ProductActivationK8sO11yConfig = import("./productActivationK8sO11yConfig").ProductActivationK8sO11yConfig;
6
9
  export declare const ProductActivationK8sO11yConfig: typeof import("./productActivationK8sO11yConfig").ProductActivationK8sO11yConfig;
@@ -2,11 +2,13 @@
2
2
  // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
3
  // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.ProductActivationK8sO11yConfig = exports.ProductActivationAppO11yConfig = void 0;
5
+ exports.ProductActivationK8sO11yConfig = exports.ProductActivationDbO11yConfig = exports.ProductActivationAppO11yConfig = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("../../utilities");
8
8
  exports.ProductActivationAppO11yConfig = null;
9
9
  utilities.lazyLoad(exports, ["ProductActivationAppO11yConfig"], () => require("./productActivationAppO11yConfig"));
10
+ exports.ProductActivationDbO11yConfig = null;
11
+ utilities.lazyLoad(exports, ["ProductActivationDbO11yConfig"], () => require("./productActivationDbO11yConfig"));
10
12
  exports.ProductActivationK8sO11yConfig = null;
11
13
  utilities.lazyLoad(exports, ["ProductActivationK8sO11yConfig"], () => require("./productActivationK8sO11yConfig"));
12
14
  const _module = {
@@ -15,6 +17,8 @@ const _module = {
15
17
  switch (type) {
16
18
  case "grafana:cloud/v1alpha1/productActivationAppO11yConfig:ProductActivationAppO11yConfig":
17
19
  return new exports.ProductActivationAppO11yConfig(name, undefined, { urn });
20
+ case "grafana:cloud/v1alpha1/productActivationDbO11yConfig:ProductActivationDbO11yConfig":
21
+ return new exports.ProductActivationDbO11yConfig(name, undefined, { urn });
18
22
  case "grafana:cloud/v1alpha1/productActivationK8sO11yConfig:ProductActivationK8sO11yConfig":
19
23
  return new exports.ProductActivationK8sO11yConfig(name, undefined, { urn });
20
24
  default:
@@ -23,5 +27,6 @@ const _module = {
23
27
  },
24
28
  };
25
29
  pulumi.runtime.registerResourceModule("grafana", "cloud/v1alpha1/productActivationAppO11yConfig", _module);
30
+ pulumi.runtime.registerResourceModule("grafana", "cloud/v1alpha1/productActivationDbO11yConfig", _module);
26
31
  pulumi.runtime.registerResourceModule("grafana", "cloud/v1alpha1/productActivationK8sO11yConfig", _module);
27
32
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../cloud/v1alpha1/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,6CAA6C;AAKhC,QAAA,8BAA8B,GAAqF,IAAW,CAAC;AAC5I,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,gCAAgC,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,kCAAkC,CAAC,CAAC,CAAC;AAItG,QAAA,8BAA8B,GAAqF,IAAW,CAAC;AAC5I,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,gCAAgC,CAAC,EAAE,GAAG,EAAE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,QAAQ,CAAC,OAAO,EAAE,CAAC,gCAAgC,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,kCAAkC,CAAC,CAAC,CAAC;AAGnH,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,sFAAsF;gBACvF,OAAO,IAAI,sCAA8B,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YAC5E,KAAK,oFAAoF;gBACrF,OAAO,IAAI,qCAA6B,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YAC3E,KAAK,sFAAsF;gBACvF,OAAO,IAAI,sCAA8B,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YAC5E;gBACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACxD;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,SAAS,EAAE,+CAA+C,EAAE,OAAO,CAAC,CAAA;AAC1G,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,SAAS,EAAE,8CAA8C,EAAE,OAAO,CAAC,CAAA;AACzG,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,SAAS,EAAE,+CAA+C,EAAE,OAAO,CAAC,CAAA"}
@@ -0,0 +1,106 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "../../types/input";
3
+ import * as outputs from "../../types/output";
4
+ /**
5
+ * Manages Grafana Database Observability configurations using the Grafana APIs.
6
+ *
7
+ * This resource allows you to enable or disable database observability features.
8
+ *
9
+ * **Note**: This is a singleton resource. The UID is automatically set to "global" and there can only be one per namespace.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as grafana from "@pulumiverse/grafana";
16
+ *
17
+ * const example = new grafana.cloud.v1alpha1.ProductActivationDbO11yConfig("example", {
18
+ * metadata: {
19
+ * uid: "global",
20
+ * },
21
+ * spec: {
22
+ * enabled: true,
23
+ * },
24
+ * });
25
+ * ```
26
+ *
27
+ * ## Import
28
+ *
29
+ * !/bin/bash
30
+ * Import an existing database observability config by its UID
31
+ *
32
+ * ```sh
33
+ * $ pulumi import grafana:cloud/v1alpha1/productActivationDbO11yConfig:ProductActivationDbO11yConfig example my-db-o11y-config
34
+ * ```
35
+ */
36
+ export declare class ProductActivationDbO11yConfig extends pulumi.CustomResource {
37
+ /**
38
+ * Get an existing ProductActivationDbO11yConfig resource's state with the given name, ID, and optional extra
39
+ * properties used to qualify the lookup.
40
+ *
41
+ * @param name The _unique_ name of the resulting resource.
42
+ * @param id The _unique_ provider ID of the resource to lookup.
43
+ * @param state Any extra arguments used during the lookup.
44
+ * @param opts Optional settings to control the behavior of the CustomResource.
45
+ */
46
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ProductActivationDbO11yConfigState, opts?: pulumi.CustomResourceOptions): ProductActivationDbO11yConfig;
47
+ /**
48
+ * Returns true if the given object is an instance of ProductActivationDbO11yConfig. This is designed to work even
49
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
50
+ */
51
+ static isInstance(obj: any): obj is ProductActivationDbO11yConfig;
52
+ /**
53
+ * The metadata of the resource.
54
+ */
55
+ readonly metadata: pulumi.Output<outputs.cloud.v1alpha1.ProductActivationDbO11yConfigMetadata | undefined>;
56
+ /**
57
+ * Options for applying the resource.
58
+ */
59
+ readonly options: pulumi.Output<outputs.cloud.v1alpha1.ProductActivationDbO11yConfigOptions | undefined>;
60
+ /**
61
+ * The spec of the resource.
62
+ */
63
+ readonly spec: pulumi.Output<outputs.cloud.v1alpha1.ProductActivationDbO11yConfigSpec | undefined>;
64
+ /**
65
+ * Create a ProductActivationDbO11yConfig resource with the given unique name, arguments, and options.
66
+ *
67
+ * @param name The _unique_ name of the resource.
68
+ * @param args The arguments to use to populate this resource's properties.
69
+ * @param opts A bag of options that control this resource's behavior.
70
+ */
71
+ constructor(name: string, args?: ProductActivationDbO11yConfigArgs, opts?: pulumi.CustomResourceOptions);
72
+ }
73
+ /**
74
+ * Input properties used for looking up and filtering ProductActivationDbO11yConfig resources.
75
+ */
76
+ export interface ProductActivationDbO11yConfigState {
77
+ /**
78
+ * The metadata of the resource.
79
+ */
80
+ metadata?: pulumi.Input<inputs.cloud.v1alpha1.ProductActivationDbO11yConfigMetadata>;
81
+ /**
82
+ * Options for applying the resource.
83
+ */
84
+ options?: pulumi.Input<inputs.cloud.v1alpha1.ProductActivationDbO11yConfigOptions>;
85
+ /**
86
+ * The spec of the resource.
87
+ */
88
+ spec?: pulumi.Input<inputs.cloud.v1alpha1.ProductActivationDbO11yConfigSpec>;
89
+ }
90
+ /**
91
+ * The set of arguments for constructing a ProductActivationDbO11yConfig resource.
92
+ */
93
+ export interface ProductActivationDbO11yConfigArgs {
94
+ /**
95
+ * The metadata of the resource.
96
+ */
97
+ metadata?: pulumi.Input<inputs.cloud.v1alpha1.ProductActivationDbO11yConfigMetadata>;
98
+ /**
99
+ * Options for applying the resource.
100
+ */
101
+ options?: pulumi.Input<inputs.cloud.v1alpha1.ProductActivationDbO11yConfigOptions>;
102
+ /**
103
+ * The spec of the resource.
104
+ */
105
+ spec?: pulumi.Input<inputs.cloud.v1alpha1.ProductActivationDbO11yConfigSpec>;
106
+ }
@@ -0,0 +1,85 @@
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.ProductActivationDbO11yConfig = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../../utilities");
8
+ /**
9
+ * Manages Grafana Database Observability configurations using the Grafana APIs.
10
+ *
11
+ * This resource allows you to enable or disable database observability features.
12
+ *
13
+ * **Note**: This is a singleton resource. The UID is automatically set to "global" and there can only be one per namespace.
14
+ *
15
+ * ## Example Usage
16
+ *
17
+ * ```typescript
18
+ * import * as pulumi from "@pulumi/pulumi";
19
+ * import * as grafana from "@pulumiverse/grafana";
20
+ *
21
+ * const example = new grafana.cloud.v1alpha1.ProductActivationDbO11yConfig("example", {
22
+ * metadata: {
23
+ * uid: "global",
24
+ * },
25
+ * spec: {
26
+ * enabled: true,
27
+ * },
28
+ * });
29
+ * ```
30
+ *
31
+ * ## Import
32
+ *
33
+ * !/bin/bash
34
+ * Import an existing database observability config by its UID
35
+ *
36
+ * ```sh
37
+ * $ pulumi import grafana:cloud/v1alpha1/productActivationDbO11yConfig:ProductActivationDbO11yConfig example my-db-o11y-config
38
+ * ```
39
+ */
40
+ class ProductActivationDbO11yConfig extends pulumi.CustomResource {
41
+ /**
42
+ * Get an existing ProductActivationDbO11yConfig resource's state with the given name, ID, and optional extra
43
+ * properties used to qualify the lookup.
44
+ *
45
+ * @param name The _unique_ name of the resulting resource.
46
+ * @param id The _unique_ provider ID of the resource to lookup.
47
+ * @param state Any extra arguments used during the lookup.
48
+ * @param opts Optional settings to control the behavior of the CustomResource.
49
+ */
50
+ static get(name, id, state, opts) {
51
+ return new ProductActivationDbO11yConfig(name, state, { ...opts, id: id });
52
+ }
53
+ /**
54
+ * Returns true if the given object is an instance of ProductActivationDbO11yConfig. This is designed to work even
55
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
56
+ */
57
+ static isInstance(obj) {
58
+ if (obj === undefined || obj === null) {
59
+ return false;
60
+ }
61
+ return obj['__pulumiType'] === ProductActivationDbO11yConfig.__pulumiType;
62
+ }
63
+ constructor(name, argsOrState, opts) {
64
+ let resourceInputs = {};
65
+ opts = opts || {};
66
+ if (opts.id) {
67
+ const state = argsOrState;
68
+ resourceInputs["metadata"] = state?.metadata;
69
+ resourceInputs["options"] = state?.options;
70
+ resourceInputs["spec"] = state?.spec;
71
+ }
72
+ else {
73
+ const args = argsOrState;
74
+ resourceInputs["metadata"] = args?.metadata;
75
+ resourceInputs["options"] = args?.options;
76
+ resourceInputs["spec"] = args?.spec;
77
+ }
78
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
79
+ super(ProductActivationDbO11yConfig.__pulumiType, name, resourceInputs, opts);
80
+ }
81
+ }
82
+ exports.ProductActivationDbO11yConfig = ProductActivationDbO11yConfig;
83
+ /** @internal */
84
+ ProductActivationDbO11yConfig.__pulumiType = 'grafana:cloud/v1alpha1/productActivationDbO11yConfig:ProductActivationDbO11yConfig';
85
+ //# sourceMappingURL=productActivationDbO11yConfig.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"productActivationDbO11yConfig.js","sourceRoot":"","sources":["../../../cloud/v1alpha1/productActivationDbO11yConfig.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,6CAA6C;AAE7C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,MAAa,6BAA8B,SAAQ,MAAM,CAAC,cAAc;IACpE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA0C,EAAE,IAAmC;QACxI,OAAO,IAAI,6BAA6B,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACpF,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,6BAA6B,CAAC,YAAY,CAAC;IAC9E,CAAC;IAuBD,YAAY,IAAY,EAAE,WAAoF,EAAE,IAAmC;QAC/I,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA6D,CAAC;YAC5E,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,EAAE,QAAQ,CAAC;YAC7C,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,EAAE,OAAO,CAAC;YAC3C,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,EAAE,IAAI,CAAC;SACxC;aAAM;YACH,MAAM,IAAI,GAAG,WAA4D,CAAC;YAC1E,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;YAC5C,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;SACvC;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,6BAA6B,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAClF,CAAC;;AAjEL,sEAkEC;AApDG,gBAAgB;AACO,0CAAY,GAAG,oFAAoF,CAAC"}
@@ -1,11 +1,13 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  /**
3
- * **Note:** This resource is available only with Grafana Enterprise.
3
+ * **Note:** Available in [Grafana Enterprise](https://grafana.com/docs/grafana/latest/introduction/grafana-enterprise/) and [Grafana Cloud](https://grafana.com/docs/grafana-cloud/).
4
4
  *
5
- * * [Official documentation](https://grafana.com/docs/grafana/latest/setup-grafana/configure-security/configure-scim-provisioning/)
5
+ * * [Official documentation](https://grafana.com/docs/grafana/latest/setup-grafana/configure-access/configure-scim-provisioning/)
6
6
  *
7
7
  * ## Example Usage
8
8
  *
9
+ * ### Grafana Enterprise
10
+ *
9
11
  * ```typescript
10
12
  * import * as pulumi from "@pulumi/pulumi";
11
13
  * import * as grafana from "@pulumiverse/grafana";
@@ -17,6 +19,35 @@ import * as pulumi from "@pulumi/pulumi";
17
19
  * });
18
20
  * ```
19
21
  *
22
+ * ### Grafana Cloud
23
+ *
24
+ * When using this resource against a Grafana Cloud stack authenticated with a stack service account token, the `stackId` attribute must be set on the provider block so the request is routed to the correct stack namespace. Without it, the API returns `403 authn.invalid-namespace`.
25
+ *
26
+ * ```typescript
27
+ * import * as pulumi from "@pulumi/pulumi";
28
+ * import * as grafana from "@pulumiverse/grafana";
29
+ *
30
+ * const myStack = new grafana.cloud.Stack("my_stack", {
31
+ * name: "my-stack",
32
+ * slug: "my-stack",
33
+ * });
34
+ * const cloudSa = new grafana.cloud.StackServiceAccount("cloud_sa", {
35
+ * stackSlug: myStack.slug,
36
+ * name: "scim-terraform",
37
+ * role: "Admin",
38
+ * });
39
+ * const cloudSaStackServiceAccountToken = new grafana.cloud.StackServiceAccountToken("cloud_sa", {
40
+ * stackSlug: myStack.slug,
41
+ * serviceAccountId: cloudSa.id,
42
+ * name: "scim-terraform",
43
+ * });
44
+ * const _default = new grafana.enterprise.ScimConfig("default", {
45
+ * enableUserSync: true,
46
+ * enableGroupSync: false,
47
+ * rejectNonProvisionedUsers: false,
48
+ * });
49
+ * ```
50
+ *
20
51
  * ## Import
21
52
  *
22
53
  * ```sh
@@ -6,12 +6,14 @@ exports.ScimConfig = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("../utilities");
8
8
  /**
9
- * **Note:** This resource is available only with Grafana Enterprise.
9
+ * **Note:** Available in [Grafana Enterprise](https://grafana.com/docs/grafana/latest/introduction/grafana-enterprise/) and [Grafana Cloud](https://grafana.com/docs/grafana-cloud/).
10
10
  *
11
- * * [Official documentation](https://grafana.com/docs/grafana/latest/setup-grafana/configure-security/configure-scim-provisioning/)
11
+ * * [Official documentation](https://grafana.com/docs/grafana/latest/setup-grafana/configure-access/configure-scim-provisioning/)
12
12
  *
13
13
  * ## Example Usage
14
14
  *
15
+ * ### Grafana Enterprise
16
+ *
15
17
  * ```typescript
16
18
  * import * as pulumi from "@pulumi/pulumi";
17
19
  * import * as grafana from "@pulumiverse/grafana";
@@ -23,6 +25,35 @@ const utilities = require("../utilities");
23
25
  * });
24
26
  * ```
25
27
  *
28
+ * ### Grafana Cloud
29
+ *
30
+ * When using this resource against a Grafana Cloud stack authenticated with a stack service account token, the `stackId` attribute must be set on the provider block so the request is routed to the correct stack namespace. Without it, the API returns `403 authn.invalid-namespace`.
31
+ *
32
+ * ```typescript
33
+ * import * as pulumi from "@pulumi/pulumi";
34
+ * import * as grafana from "@pulumiverse/grafana";
35
+ *
36
+ * const myStack = new grafana.cloud.Stack("my_stack", {
37
+ * name: "my-stack",
38
+ * slug: "my-stack",
39
+ * });
40
+ * const cloudSa = new grafana.cloud.StackServiceAccount("cloud_sa", {
41
+ * stackSlug: myStack.slug,
42
+ * name: "scim-terraform",
43
+ * role: "Admin",
44
+ * });
45
+ * const cloudSaStackServiceAccountToken = new grafana.cloud.StackServiceAccountToken("cloud_sa", {
46
+ * stackSlug: myStack.slug,
47
+ * serviceAccountId: cloudSa.id,
48
+ * name: "scim-terraform",
49
+ * });
50
+ * const _default = new grafana.enterprise.ScimConfig("default", {
51
+ * enableUserSync: true,
52
+ * enableGroupSync: false,
53
+ * rejectNonProvisionedUsers: false,
54
+ * });
55
+ * ```
56
+ *
26
57
  * ## Import
27
58
  *
28
59
  * ```sh
@@ -1 +1 @@
1
- {"version":3,"file":"scimConfig.js","sourceRoot":"","sources":["../../enterprise/scimConfig.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAA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AS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,UAAU,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC/D,CAAC;;AAhFL,gCAiFC;AAnEG,gBAAgB;AACO,uBAAY,GAAG,0CAA0C,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumiverse/grafana",
3
- "version": "2.25.2",
3
+ "version": "2.26.0",
4
4
  "description": "A Pulumi package for creating and managing grafana.",
5
5
  "keywords": [
6
6
  "pulumi",
@@ -24,7 +24,7 @@
24
24
  "pulumi": {
25
25
  "resource": true,
26
26
  "name": "grafana",
27
- "version": "2.25.2",
27
+ "version": "2.26.0",
28
28
  "server": "github://api.github.com/pulumiverse"
29
29
  }
30
30
  }
package/slo/getSlos.d.ts CHANGED
@@ -1,7 +1,8 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "../types/input";
2
3
  import * as outputs from "../types/output";
3
4
  /**
4
- * Datasource for retrieving all SLOs.
5
+ * Data source for retrieving all SLOs.
5
6
  *
6
7
  * * [Official documentation](https://grafana.com/docs/grafana-cloud/alerting-and-irm/slo/)
7
8
  * * [API documentation](https://grafana.com/docs/grafana-cloud/alerting-and-irm/slo/api/)
@@ -59,22 +60,31 @@ import * as outputs from "../types/output";
59
60
  * const slos = grafana.slo.getSlos({});
60
61
  * ```
61
62
  */
62
- export declare function getSlos(opts?: pulumi.InvokeOptions): Promise<GetSlosResult>;
63
+ export declare function getSlos(args?: GetSlosArgs, opts?: pulumi.InvokeOptions): Promise<GetSlosResult>;
64
+ /**
65
+ * A collection of arguments for invoking getSlos.
66
+ */
67
+ export interface GetSlosArgs {
68
+ /**
69
+ * List of all SLOs.
70
+ */
71
+ slos?: inputs.slo.GetSlosSlo[];
72
+ }
63
73
  /**
64
74
  * A collection of values returned by getSlos.
65
75
  */
66
76
  export interface GetSlosResult {
67
77
  /**
68
- * The provider-assigned unique ID for this managed resource.
78
+ * The ID of this datasource. This is a constant value.
69
79
  */
70
80
  readonly id: string;
71
81
  /**
72
- * Returns a list of all SLOs"
82
+ * List of all SLOs.
73
83
  */
74
- readonly slos: outputs.slo.GetSlosSlo[];
84
+ readonly slos?: outputs.slo.GetSlosSlo[];
75
85
  }
76
86
  /**
77
- * Datasource for retrieving all SLOs.
87
+ * Data source for retrieving all SLOs.
78
88
  *
79
89
  * * [Official documentation](https://grafana.com/docs/grafana-cloud/alerting-and-irm/slo/)
80
90
  * * [API documentation](https://grafana.com/docs/grafana-cloud/alerting-and-irm/slo/api/)
@@ -132,4 +142,13 @@ export interface GetSlosResult {
132
142
  * const slos = grafana.slo.getSlos({});
133
143
  * ```
134
144
  */
135
- export declare function getSlosOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetSlosResult>;
145
+ export declare function getSlosOutput(args?: GetSlosOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetSlosResult>;
146
+ /**
147
+ * A collection of arguments for invoking getSlos.
148
+ */
149
+ export interface GetSlosOutputArgs {
150
+ /**
151
+ * List of all SLOs.
152
+ */
153
+ slos?: pulumi.Input<pulumi.Input<inputs.slo.GetSlosSloArgs>[]>;
154
+ }
package/slo/getSlos.js CHANGED
@@ -6,7 +6,7 @@ exports.getSlosOutput = exports.getSlos = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("../utilities");
8
8
  /**
9
- * Datasource for retrieving all SLOs.
9
+ * Data source for retrieving all SLOs.
10
10
  *
11
11
  * * [Official documentation](https://grafana.com/docs/grafana-cloud/alerting-and-irm/slo/)
12
12
  * * [API documentation](https://grafana.com/docs/grafana-cloud/alerting-and-irm/slo/api/)
@@ -64,13 +64,16 @@ const utilities = require("../utilities");
64
64
  * const slos = grafana.slo.getSlos({});
65
65
  * ```
66
66
  */
67
- function getSlos(opts) {
67
+ function getSlos(args, opts) {
68
+ args = args || {};
68
69
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
69
- return pulumi.runtime.invoke("grafana:slo/getSlos:getSlos", {}, opts);
70
+ return pulumi.runtime.invoke("grafana:slo/getSlos:getSlos", {
71
+ "slos": args.slos,
72
+ }, opts);
70
73
  }
71
74
  exports.getSlos = getSlos;
72
75
  /**
73
- * Datasource for retrieving all SLOs.
76
+ * Data source for retrieving all SLOs.
74
77
  *
75
78
  * * [Official documentation](https://grafana.com/docs/grafana-cloud/alerting-and-irm/slo/)
76
79
  * * [API documentation](https://grafana.com/docs/grafana-cloud/alerting-and-irm/slo/api/)
@@ -128,9 +131,12 @@ exports.getSlos = getSlos;
128
131
  * const slos = grafana.slo.getSlos({});
129
132
  * ```
130
133
  */
131
- function getSlosOutput(opts) {
134
+ function getSlosOutput(args, opts) {
135
+ args = args || {};
132
136
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
133
- return pulumi.runtime.invokeOutput("grafana:slo/getSlos:getSlos", {}, opts);
137
+ return pulumi.runtime.invokeOutput("grafana:slo/getSlos:getSlos", {
138
+ "slos": args.slos,
139
+ }, opts);
134
140
  }
135
141
  exports.getSlosOutput = getSlosOutput;
136
142
  //# sourceMappingURL=getSlos.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getSlos.js","sourceRoot":"","sources":["../../slo/getSlos.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DG;AACH,SAAgB,OAAO,CAAC,IAA2B;IAC/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,6BAA6B,EAAE,EAC3D,EAAE,IAAI,CAAC,CAAC;AACb,CAAC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C,6BAA6B,EAAE;QAC9D,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,sCAMC"}
package/slo/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { GetSlosResult } from "./getSlos";
1
+ export { GetSlosArgs, GetSlosResult, GetSlosOutputArgs } from "./getSlos";
2
2
  export declare const getSlos: typeof import("./getSlos").getSlos;
3
3
  export declare const getSlosOutput: typeof import("./getSlos").getSlosOutput;
4
4
  export { SLOArgs, SLOState } from "./slo";
package/slo/slo.d.ts CHANGED
@@ -253,9 +253,9 @@ export declare class SLO extends pulumi.CustomResource {
253
253
  */
254
254
  readonly description: pulumi.Output<string>;
255
255
  /**
256
- * Destination Datasource sets the datasource defined for an SLO
256
+ * **Required.** Destination Datasource sets the datasource defined for an SLO.
257
257
  */
258
- readonly destinationDatasource: pulumi.Output<outputs.slo.SLODestinationDatasource>;
258
+ readonly destinationDatasource: pulumi.Output<outputs.slo.SLODestinationDatasource | undefined>;
259
259
  /**
260
260
  * UID for the SLO folder
261
261
  */
@@ -269,13 +269,13 @@ export declare class SLO extends pulumi.CustomResource {
269
269
  */
270
270
  readonly name: pulumi.Output<string>;
271
271
  /**
272
- * Over each rolling time window, the remaining error budget will be calculated, and separate alerts can be generated for each time window based on the SLO burn rate or remaining error budget.
272
+ * **Required.** Over each rolling time window, the remaining error budget will be calculated, and separate alerts can be generated for each time window based on the SLO burn rate or remaining error budget.
273
273
  */
274
- readonly objectives: pulumi.Output<outputs.slo.SLOObjective[]>;
274
+ readonly objectives: pulumi.Output<outputs.slo.SLOObjective[] | undefined>;
275
275
  /**
276
- * Query describes the indicator that will be measured against the objective. Freeform Query types are currently supported.
276
+ * **Required.** Query describes the indicator that will be measured against the objective. Freeform Query types are currently supported.
277
277
  */
278
- readonly queries: pulumi.Output<outputs.slo.SLOQuery[]>;
278
+ readonly queries: pulumi.Output<outputs.slo.SLOQuery[] | undefined>;
279
279
  /**
280
280
  * The name of a search expression in Grafana Asserts. This is used in the SLO UI to open the Asserts RCA workbench and in alerts to link to the RCA workbench.
281
281
  */
@@ -310,7 +310,7 @@ export interface SLOState {
310
310
  */
311
311
  description?: pulumi.Input<string>;
312
312
  /**
313
- * Destination Datasource sets the datasource defined for an SLO
313
+ * **Required.** Destination Datasource sets the datasource defined for an SLO.
314
314
  */
315
315
  destinationDatasource?: pulumi.Input<inputs.slo.SLODestinationDatasource>;
316
316
  /**
@@ -326,11 +326,11 @@ export interface SLOState {
326
326
  */
327
327
  name?: pulumi.Input<string>;
328
328
  /**
329
- * Over each rolling time window, the remaining error budget will be calculated, and separate alerts can be generated for each time window based on the SLO burn rate or remaining error budget.
329
+ * **Required.** Over each rolling time window, the remaining error budget will be calculated, and separate alerts can be generated for each time window based on the SLO burn rate or remaining error budget.
330
330
  */
331
331
  objectives?: pulumi.Input<pulumi.Input<inputs.slo.SLOObjective>[]>;
332
332
  /**
333
- * Query describes the indicator that will be measured against the objective. Freeform Query types are currently supported.
333
+ * **Required.** Query describes the indicator that will be measured against the objective. Freeform Query types are currently supported.
334
334
  */
335
335
  queries?: pulumi.Input<pulumi.Input<inputs.slo.SLOQuery>[]>;
336
336
  /**
@@ -359,9 +359,9 @@ export interface SLOArgs {
359
359
  */
360
360
  description: pulumi.Input<string>;
361
361
  /**
362
- * Destination Datasource sets the datasource defined for an SLO
362
+ * **Required.** Destination Datasource sets the datasource defined for an SLO.
363
363
  */
364
- destinationDatasource: pulumi.Input<inputs.slo.SLODestinationDatasource>;
364
+ destinationDatasource?: pulumi.Input<inputs.slo.SLODestinationDatasource>;
365
365
  /**
366
366
  * UID for the SLO folder
367
367
  */
@@ -375,13 +375,13 @@ export interface SLOArgs {
375
375
  */
376
376
  name?: pulumi.Input<string>;
377
377
  /**
378
- * Over each rolling time window, the remaining error budget will be calculated, and separate alerts can be generated for each time window based on the SLO burn rate or remaining error budget.
378
+ * **Required.** Over each rolling time window, the remaining error budget will be calculated, and separate alerts can be generated for each time window based on the SLO burn rate or remaining error budget.
379
379
  */
380
- objectives: pulumi.Input<pulumi.Input<inputs.slo.SLOObjective>[]>;
380
+ objectives?: pulumi.Input<pulumi.Input<inputs.slo.SLOObjective>[]>;
381
381
  /**
382
- * Query describes the indicator that will be measured against the objective. Freeform Query types are currently supported.
382
+ * **Required.** Query describes the indicator that will be measured against the objective. Freeform Query types are currently supported.
383
383
  */
384
- queries: pulumi.Input<pulumi.Input<inputs.slo.SLOQuery>[]>;
384
+ queries?: pulumi.Input<pulumi.Input<inputs.slo.SLOQuery>[]>;
385
385
  /**
386
386
  * The name of a search expression in Grafana Asserts. This is used in the SLO UI to open the Asserts RCA workbench and in alerts to link to the RCA workbench.
387
387
  */
package/slo/slo.js CHANGED
@@ -272,15 +272,6 @@ class SLO extends pulumi.CustomResource {
272
272
  if (args?.description === undefined && !opts.urn) {
273
273
  throw new Error("Missing required property 'description'");
274
274
  }
275
- if (args?.destinationDatasource === undefined && !opts.urn) {
276
- throw new Error("Missing required property 'destinationDatasource'");
277
- }
278
- if (args?.objectives === undefined && !opts.urn) {
279
- throw new Error("Missing required property 'objectives'");
280
- }
281
- if (args?.queries === undefined && !opts.urn) {
282
- throw new Error("Missing required property 'queries'");
283
- }
284
275
  resourceInputs["alerting"] = args?.alerting;
285
276
  resourceInputs["description"] = args?.description;
286
277
  resourceInputs["destinationDatasource"] = args?.destinationDatasource;
package/slo/slo.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"slo.js","sourceRoot":"","sources":["../../slo/slo.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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