@pulumiverse/grafana 2.15.0 → 2.16.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.
- package/alerting/alertRuleV0Alpha1.d.ts +9 -9
- package/alerting/alertRuleV0Alpha1.js +9 -9
- package/alerting/recordingRuleV0Alpha1.d.ts +5 -5
- package/alerting/recordingRuleV0Alpha1.js +5 -5
- package/assert/logConfig.d.ts +8 -8
- package/assert/logConfig.js +8 -8
- package/cloud/accessPolicyRotatingToken.d.ts +206 -0
- package/cloud/accessPolicyRotatingToken.js +143 -0
- package/cloud/accessPolicyRotatingToken.js.map +1 -0
- package/cloud/index.d.ts +3 -0
- package/cloud/index.js +6 -1
- package/cloud/index.js.map +1 -1
- package/k6/installation.d.ts +12 -0
- package/k6/installation.js +2 -0
- package/k6/installation.js.map +1 -1
- package/oss/getOrganizationPreferences.d.ts +2 -2
- package/oss/organizationPreferences.d.ts +6 -6
- package/package.json +2 -2
- package/slo/slo.d.ts +1 -1
- package/slo/slo.js +1 -1
- package/types/input.d.ts +9 -5
- package/types/output.d.ts +9 -5
|
@@ -23,7 +23,7 @@ import * as outputs from "../types/output";
|
|
|
23
23
|
* },
|
|
24
24
|
* paused: true,
|
|
25
25
|
* expressions: {
|
|
26
|
-
* A: {
|
|
26
|
+
* A: JSON.stringify({
|
|
27
27
|
* model: {
|
|
28
28
|
* datasource: {
|
|
29
29
|
* type: "prometheus",
|
|
@@ -38,15 +38,15 @@ import * as outputs from "../types/output";
|
|
|
38
38
|
* range: false,
|
|
39
39
|
* refId: "A",
|
|
40
40
|
* },
|
|
41
|
-
*
|
|
42
|
-
*
|
|
41
|
+
* datasource_uid: "ds_uid",
|
|
42
|
+
* relative_time_range: {
|
|
43
43
|
* from: "600s",
|
|
44
44
|
* to: "0s",
|
|
45
45
|
* },
|
|
46
|
-
*
|
|
46
|
+
* query_type: "",
|
|
47
47
|
* source: true,
|
|
48
|
-
* },
|
|
49
|
-
* B: {
|
|
48
|
+
* }),
|
|
49
|
+
* B: JSON.stringify({
|
|
50
50
|
* model: {
|
|
51
51
|
* conditions: [{
|
|
52
52
|
* evaluator: {
|
|
@@ -75,10 +75,10 @@ import * as outputs from "../types/output";
|
|
|
75
75
|
* refId: "C",
|
|
76
76
|
* type: "threshold",
|
|
77
77
|
* },
|
|
78
|
-
*
|
|
79
|
-
*
|
|
78
|
+
* datasource_uid: "__expr__",
|
|
79
|
+
* query_type: "",
|
|
80
80
|
* source: false,
|
|
81
|
-
* },
|
|
81
|
+
* }),
|
|
82
82
|
* },
|
|
83
83
|
* "for": "5m",
|
|
84
84
|
* labels: {
|
|
@@ -27,7 +27,7 @@ const utilities = require("../utilities");
|
|
|
27
27
|
* },
|
|
28
28
|
* paused: true,
|
|
29
29
|
* expressions: {
|
|
30
|
-
* A: {
|
|
30
|
+
* A: JSON.stringify({
|
|
31
31
|
* model: {
|
|
32
32
|
* datasource: {
|
|
33
33
|
* type: "prometheus",
|
|
@@ -42,15 +42,15 @@ const utilities = require("../utilities");
|
|
|
42
42
|
* range: false,
|
|
43
43
|
* refId: "A",
|
|
44
44
|
* },
|
|
45
|
-
*
|
|
46
|
-
*
|
|
45
|
+
* datasource_uid: "ds_uid",
|
|
46
|
+
* relative_time_range: {
|
|
47
47
|
* from: "600s",
|
|
48
48
|
* to: "0s",
|
|
49
49
|
* },
|
|
50
|
-
*
|
|
50
|
+
* query_type: "",
|
|
51
51
|
* source: true,
|
|
52
|
-
* },
|
|
53
|
-
* B: {
|
|
52
|
+
* }),
|
|
53
|
+
* B: JSON.stringify({
|
|
54
54
|
* model: {
|
|
55
55
|
* conditions: [{
|
|
56
56
|
* evaluator: {
|
|
@@ -79,10 +79,10 @@ const utilities = require("../utilities");
|
|
|
79
79
|
* refId: "C",
|
|
80
80
|
* type: "threshold",
|
|
81
81
|
* },
|
|
82
|
-
*
|
|
83
|
-
*
|
|
82
|
+
* datasource_uid: "__expr__",
|
|
83
|
+
* query_type: "",
|
|
84
84
|
* source: false,
|
|
85
|
-
* },
|
|
85
|
+
* }),
|
|
86
86
|
* },
|
|
87
87
|
* "for": "5m",
|
|
88
88
|
* labels: {
|
|
@@ -23,7 +23,7 @@ import * as outputs from "../types/output";
|
|
|
23
23
|
* },
|
|
24
24
|
* paused: true,
|
|
25
25
|
* expressions: {
|
|
26
|
-
* A: {
|
|
26
|
+
* A: JSON.stringify({
|
|
27
27
|
* model: {
|
|
28
28
|
* editorMode: "code",
|
|
29
29
|
* expr: "count(up{})",
|
|
@@ -34,14 +34,14 @@ import * as outputs from "../types/output";
|
|
|
34
34
|
* range: false,
|
|
35
35
|
* refId: "A",
|
|
36
36
|
* },
|
|
37
|
-
*
|
|
38
|
-
*
|
|
37
|
+
* datasource_uid: "ds_uid",
|
|
38
|
+
* relative_time_range: {
|
|
39
39
|
* from: "600s",
|
|
40
40
|
* to: "0s",
|
|
41
41
|
* },
|
|
42
|
-
*
|
|
42
|
+
* query_type: "",
|
|
43
43
|
* source: true,
|
|
44
|
-
* },
|
|
44
|
+
* }),
|
|
45
45
|
* },
|
|
46
46
|
* targetDatasourceUid: "target_ds_uid",
|
|
47
47
|
* metric: "tf-metric",
|
|
@@ -27,7 +27,7 @@ const utilities = require("../utilities");
|
|
|
27
27
|
* },
|
|
28
28
|
* paused: true,
|
|
29
29
|
* expressions: {
|
|
30
|
-
* A: {
|
|
30
|
+
* A: JSON.stringify({
|
|
31
31
|
* model: {
|
|
32
32
|
* editorMode: "code",
|
|
33
33
|
* expr: "count(up{})",
|
|
@@ -38,14 +38,14 @@ const utilities = require("../utilities");
|
|
|
38
38
|
* range: false,
|
|
39
39
|
* refId: "A",
|
|
40
40
|
* },
|
|
41
|
-
*
|
|
42
|
-
*
|
|
41
|
+
* datasource_uid: "ds_uid",
|
|
42
|
+
* relative_time_range: {
|
|
43
43
|
* from: "600s",
|
|
44
44
|
* to: "0s",
|
|
45
45
|
* },
|
|
46
|
-
*
|
|
46
|
+
* query_type: "",
|
|
47
47
|
* source: true,
|
|
48
|
-
* },
|
|
48
|
+
* }),
|
|
49
49
|
* },
|
|
50
50
|
* targetDatasourceUid: "target_ds_uid",
|
|
51
51
|
* metric: "tf-metric",
|
package/assert/logConfig.d.ts
CHANGED
|
@@ -19,12 +19,12 @@ import * as outputs from "../types/output";
|
|
|
19
19
|
* matches: [
|
|
20
20
|
* {
|
|
21
21
|
* property: "asserts_entity_type",
|
|
22
|
-
* op: "
|
|
22
|
+
* op: "=",
|
|
23
23
|
* values: ["Service"],
|
|
24
24
|
* },
|
|
25
25
|
* {
|
|
26
26
|
* property: "environment",
|
|
27
|
-
* op: "
|
|
27
|
+
* op: "=",
|
|
28
28
|
* values: [
|
|
29
29
|
* "production",
|
|
30
30
|
* "staging",
|
|
@@ -32,7 +32,7 @@ import * as outputs from "../types/output";
|
|
|
32
32
|
* },
|
|
33
33
|
* {
|
|
34
34
|
* property: "site",
|
|
35
|
-
* op: "
|
|
35
|
+
* op: "=",
|
|
36
36
|
* values: [
|
|
37
37
|
* "us-east-1",
|
|
38
38
|
* "us-west-2",
|
|
@@ -57,12 +57,12 @@ import * as outputs from "../types/output";
|
|
|
57
57
|
* matches: [
|
|
58
58
|
* {
|
|
59
59
|
* property: "asserts_entity_type",
|
|
60
|
-
* op: "
|
|
60
|
+
* op: "=",
|
|
61
61
|
* values: ["Service"],
|
|
62
62
|
* },
|
|
63
63
|
* {
|
|
64
64
|
* property: "environment",
|
|
65
|
-
* op: "
|
|
65
|
+
* op: "=",
|
|
66
66
|
* values: [
|
|
67
67
|
* "development",
|
|
68
68
|
* "testing",
|
|
@@ -70,12 +70,12 @@ import * as outputs from "../types/output";
|
|
|
70
70
|
* },
|
|
71
71
|
* {
|
|
72
72
|
* property: "site",
|
|
73
|
-
* op: "
|
|
73
|
+
* op: "=",
|
|
74
74
|
* values: ["us-east-1"],
|
|
75
75
|
* },
|
|
76
76
|
* {
|
|
77
77
|
* property: "service",
|
|
78
|
-
* op: "
|
|
78
|
+
* op: "=",
|
|
79
79
|
* values: ["api"],
|
|
80
80
|
* },
|
|
81
81
|
* ],
|
|
@@ -96,7 +96,7 @@ import * as outputs from "../types/output";
|
|
|
96
96
|
* dataSourceUid: "loki-minimal",
|
|
97
97
|
* matches: [{
|
|
98
98
|
* property: "asserts_entity_type",
|
|
99
|
-
* op: "
|
|
99
|
+
* op: "IS NOT NULL",
|
|
100
100
|
* values: [],
|
|
101
101
|
* }],
|
|
102
102
|
* });
|
package/assert/logConfig.js
CHANGED
|
@@ -23,12 +23,12 @@ const utilities = require("../utilities");
|
|
|
23
23
|
* matches: [
|
|
24
24
|
* {
|
|
25
25
|
* property: "asserts_entity_type",
|
|
26
|
-
* op: "
|
|
26
|
+
* op: "=",
|
|
27
27
|
* values: ["Service"],
|
|
28
28
|
* },
|
|
29
29
|
* {
|
|
30
30
|
* property: "environment",
|
|
31
|
-
* op: "
|
|
31
|
+
* op: "=",
|
|
32
32
|
* values: [
|
|
33
33
|
* "production",
|
|
34
34
|
* "staging",
|
|
@@ -36,7 +36,7 @@ const utilities = require("../utilities");
|
|
|
36
36
|
* },
|
|
37
37
|
* {
|
|
38
38
|
* property: "site",
|
|
39
|
-
* op: "
|
|
39
|
+
* op: "=",
|
|
40
40
|
* values: [
|
|
41
41
|
* "us-east-1",
|
|
42
42
|
* "us-west-2",
|
|
@@ -61,12 +61,12 @@ const utilities = require("../utilities");
|
|
|
61
61
|
* matches: [
|
|
62
62
|
* {
|
|
63
63
|
* property: "asserts_entity_type",
|
|
64
|
-
* op: "
|
|
64
|
+
* op: "=",
|
|
65
65
|
* values: ["Service"],
|
|
66
66
|
* },
|
|
67
67
|
* {
|
|
68
68
|
* property: "environment",
|
|
69
|
-
* op: "
|
|
69
|
+
* op: "=",
|
|
70
70
|
* values: [
|
|
71
71
|
* "development",
|
|
72
72
|
* "testing",
|
|
@@ -74,12 +74,12 @@ const utilities = require("../utilities");
|
|
|
74
74
|
* },
|
|
75
75
|
* {
|
|
76
76
|
* property: "site",
|
|
77
|
-
* op: "
|
|
77
|
+
* op: "=",
|
|
78
78
|
* values: ["us-east-1"],
|
|
79
79
|
* },
|
|
80
80
|
* {
|
|
81
81
|
* property: "service",
|
|
82
|
-
* op: "
|
|
82
|
+
* op: "=",
|
|
83
83
|
* values: ["api"],
|
|
84
84
|
* },
|
|
85
85
|
* ],
|
|
@@ -100,7 +100,7 @@ const utilities = require("../utilities");
|
|
|
100
100
|
* dataSourceUid: "loki-minimal",
|
|
101
101
|
* matches: [{
|
|
102
102
|
* property: "asserts_entity_type",
|
|
103
|
-
* op: "
|
|
103
|
+
* op: "IS NOT NULL",
|
|
104
104
|
* values: [],
|
|
105
105
|
* }],
|
|
106
106
|
* });
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* * [Official documentation](https://grafana.com/docs/grafana-cloud/security-and-account-management/authentication-and-permissions/access-policies/)
|
|
4
|
+
* * [API documentation](https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#create-a-token)
|
|
5
|
+
*
|
|
6
|
+
* Required access policy scopes:
|
|
7
|
+
*
|
|
8
|
+
* * accesspolicies:read
|
|
9
|
+
* * accesspolicies:write
|
|
10
|
+
* * accesspolicies:delete
|
|
11
|
+
*
|
|
12
|
+
* This is similar to the grafana.cloud.AccessPolicyToken resource, but it represents a token that will be rotated automatically over time.
|
|
13
|
+
*
|
|
14
|
+
* ## Example Usage
|
|
15
|
+
*
|
|
16
|
+
* ```typescript
|
|
17
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
18
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
19
|
+
*
|
|
20
|
+
* const current = grafana.cloud.getOrganization({
|
|
21
|
+
* slug: "<your org slug>",
|
|
22
|
+
* });
|
|
23
|
+
* const test = new grafana.cloud.AccessPolicy("test", {
|
|
24
|
+
* region: "prod-us-east-0",
|
|
25
|
+
* name: "my-policy",
|
|
26
|
+
* displayName: "My Policy",
|
|
27
|
+
* scopes: [
|
|
28
|
+
* "metrics:read",
|
|
29
|
+
* "logs:read",
|
|
30
|
+
* ],
|
|
31
|
+
* realms: [{
|
|
32
|
+
* type: "org",
|
|
33
|
+
* identifier: current.then(current => current.id),
|
|
34
|
+
* labelPolicies: [{
|
|
35
|
+
* selector: "{namespace=\"default\"}",
|
|
36
|
+
* }],
|
|
37
|
+
* }],
|
|
38
|
+
* });
|
|
39
|
+
* const testAccessPolicyRotatingToken = new grafana.cloud.AccessPolicyRotatingToken("test", {
|
|
40
|
+
* region: "prod-us-east-0",
|
|
41
|
+
* accessPolicyId: test.policyId,
|
|
42
|
+
* namePrefix: "my-policy-rotating-token",
|
|
43
|
+
* displayName: "My Policy Rotating Token",
|
|
44
|
+
* expireAfter: "30d",
|
|
45
|
+
* earlyRotationWindow: "24h",
|
|
46
|
+
* });
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
49
|
+
* ## Import
|
|
50
|
+
*
|
|
51
|
+
* ```sh
|
|
52
|
+
* $ pulumi import grafana:cloud/accessPolicyRotatingToken:AccessPolicyRotatingToken name "{{ region }}:{{ tokenId }}"
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
export declare class AccessPolicyRotatingToken extends pulumi.CustomResource {
|
|
56
|
+
/**
|
|
57
|
+
* Get an existing AccessPolicyRotatingToken resource's state with the given name, ID, and optional extra
|
|
58
|
+
* properties used to qualify the lookup.
|
|
59
|
+
*
|
|
60
|
+
* @param name The _unique_ name of the resulting resource.
|
|
61
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
62
|
+
* @param state Any extra arguments used during the lookup.
|
|
63
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
64
|
+
*/
|
|
65
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AccessPolicyRotatingTokenState, opts?: pulumi.CustomResourceOptions): AccessPolicyRotatingToken;
|
|
66
|
+
/**
|
|
67
|
+
* Returns true if the given object is an instance of AccessPolicyRotatingToken. This is designed to work even
|
|
68
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
69
|
+
*/
|
|
70
|
+
static isInstance(obj: any): obj is AccessPolicyRotatingToken;
|
|
71
|
+
/**
|
|
72
|
+
* ID of the access policy for which to create a token.
|
|
73
|
+
*/
|
|
74
|
+
readonly accessPolicyId: pulumi.Output<string>;
|
|
75
|
+
/**
|
|
76
|
+
* Creation date of the access policy token.
|
|
77
|
+
*/
|
|
78
|
+
readonly createdAt: pulumi.Output<string>;
|
|
79
|
+
readonly deleteOnDestroy: pulumi.Output<boolean | undefined>;
|
|
80
|
+
/**
|
|
81
|
+
* Display name of the access policy token. Defaults to the name.
|
|
82
|
+
*/
|
|
83
|
+
readonly displayName: pulumi.Output<string | undefined>;
|
|
84
|
+
/**
|
|
85
|
+
* Duration of the window before expiring where the token can be rotated (e.g. '24h', '30m', '1h30m').
|
|
86
|
+
*/
|
|
87
|
+
readonly earlyRotationWindow: pulumi.Output<string>;
|
|
88
|
+
/**
|
|
89
|
+
* Duration after which the token will expire (e.g. '24h', '30m', '1h30m').
|
|
90
|
+
*/
|
|
91
|
+
readonly expireAfter: pulumi.Output<string>;
|
|
92
|
+
/**
|
|
93
|
+
* Expiration date of the access policy token.
|
|
94
|
+
*/
|
|
95
|
+
readonly expiresAt: pulumi.Output<string>;
|
|
96
|
+
/**
|
|
97
|
+
* Name of the access policy token.
|
|
98
|
+
*/
|
|
99
|
+
readonly name: pulumi.Output<string>;
|
|
100
|
+
/**
|
|
101
|
+
* Prefix for the name of the access policy token. The actual name will be stored in the computed field `name`, which will be in the format '\n\n-\n\n'
|
|
102
|
+
*/
|
|
103
|
+
readonly namePrefix: pulumi.Output<string>;
|
|
104
|
+
/**
|
|
105
|
+
* Signals that the token is either expired or within the period to be early rotated.
|
|
106
|
+
*/
|
|
107
|
+
readonly readyForRotation: pulumi.Output<boolean>;
|
|
108
|
+
/**
|
|
109
|
+
* Region of the access policy. Should be set to the same region as the access policy. Use the region list API to get the list of available regions: https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#list-regions.
|
|
110
|
+
*/
|
|
111
|
+
readonly region: pulumi.Output<string>;
|
|
112
|
+
readonly token: pulumi.Output<string>;
|
|
113
|
+
/**
|
|
114
|
+
* Last update date of the access policy token.
|
|
115
|
+
*/
|
|
116
|
+
readonly updatedAt: pulumi.Output<string>;
|
|
117
|
+
/**
|
|
118
|
+
* Create a AccessPolicyRotatingToken resource with the given unique name, arguments, and options.
|
|
119
|
+
*
|
|
120
|
+
* @param name The _unique_ name of the resource.
|
|
121
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
122
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
123
|
+
*/
|
|
124
|
+
constructor(name: string, args: AccessPolicyRotatingTokenArgs, opts?: pulumi.CustomResourceOptions);
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Input properties used for looking up and filtering AccessPolicyRotatingToken resources.
|
|
128
|
+
*/
|
|
129
|
+
export interface AccessPolicyRotatingTokenState {
|
|
130
|
+
/**
|
|
131
|
+
* ID of the access policy for which to create a token.
|
|
132
|
+
*/
|
|
133
|
+
accessPolicyId?: pulumi.Input<string>;
|
|
134
|
+
/**
|
|
135
|
+
* Creation date of the access policy token.
|
|
136
|
+
*/
|
|
137
|
+
createdAt?: pulumi.Input<string>;
|
|
138
|
+
deleteOnDestroy?: pulumi.Input<boolean>;
|
|
139
|
+
/**
|
|
140
|
+
* Display name of the access policy token. Defaults to the name.
|
|
141
|
+
*/
|
|
142
|
+
displayName?: pulumi.Input<string>;
|
|
143
|
+
/**
|
|
144
|
+
* Duration of the window before expiring where the token can be rotated (e.g. '24h', '30m', '1h30m').
|
|
145
|
+
*/
|
|
146
|
+
earlyRotationWindow?: pulumi.Input<string>;
|
|
147
|
+
/**
|
|
148
|
+
* Duration after which the token will expire (e.g. '24h', '30m', '1h30m').
|
|
149
|
+
*/
|
|
150
|
+
expireAfter?: pulumi.Input<string>;
|
|
151
|
+
/**
|
|
152
|
+
* Expiration date of the access policy token.
|
|
153
|
+
*/
|
|
154
|
+
expiresAt?: pulumi.Input<string>;
|
|
155
|
+
/**
|
|
156
|
+
* Name of the access policy token.
|
|
157
|
+
*/
|
|
158
|
+
name?: pulumi.Input<string>;
|
|
159
|
+
/**
|
|
160
|
+
* Prefix for the name of the access policy token. The actual name will be stored in the computed field `name`, which will be in the format '\n\n-\n\n'
|
|
161
|
+
*/
|
|
162
|
+
namePrefix?: pulumi.Input<string>;
|
|
163
|
+
/**
|
|
164
|
+
* Signals that the token is either expired or within the period to be early rotated.
|
|
165
|
+
*/
|
|
166
|
+
readyForRotation?: pulumi.Input<boolean>;
|
|
167
|
+
/**
|
|
168
|
+
* Region of the access policy. Should be set to the same region as the access policy. Use the region list API to get the list of available regions: https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#list-regions.
|
|
169
|
+
*/
|
|
170
|
+
region?: pulumi.Input<string>;
|
|
171
|
+
token?: pulumi.Input<string>;
|
|
172
|
+
/**
|
|
173
|
+
* Last update date of the access policy token.
|
|
174
|
+
*/
|
|
175
|
+
updatedAt?: pulumi.Input<string>;
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* The set of arguments for constructing a AccessPolicyRotatingToken resource.
|
|
179
|
+
*/
|
|
180
|
+
export interface AccessPolicyRotatingTokenArgs {
|
|
181
|
+
/**
|
|
182
|
+
* ID of the access policy for which to create a token.
|
|
183
|
+
*/
|
|
184
|
+
accessPolicyId: pulumi.Input<string>;
|
|
185
|
+
deleteOnDestroy?: pulumi.Input<boolean>;
|
|
186
|
+
/**
|
|
187
|
+
* Display name of the access policy token. Defaults to the name.
|
|
188
|
+
*/
|
|
189
|
+
displayName?: pulumi.Input<string>;
|
|
190
|
+
/**
|
|
191
|
+
* Duration of the window before expiring where the token can be rotated (e.g. '24h', '30m', '1h30m').
|
|
192
|
+
*/
|
|
193
|
+
earlyRotationWindow: pulumi.Input<string>;
|
|
194
|
+
/**
|
|
195
|
+
* Duration after which the token will expire (e.g. '24h', '30m', '1h30m').
|
|
196
|
+
*/
|
|
197
|
+
expireAfter: pulumi.Input<string>;
|
|
198
|
+
/**
|
|
199
|
+
* Prefix for the name of the access policy token. The actual name will be stored in the computed field `name`, which will be in the format '\n\n-\n\n'
|
|
200
|
+
*/
|
|
201
|
+
namePrefix: pulumi.Input<string>;
|
|
202
|
+
/**
|
|
203
|
+
* Region of the access policy. Should be set to the same region as the access policy. Use the region list API to get the list of available regions: https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#list-regions.
|
|
204
|
+
*/
|
|
205
|
+
region: pulumi.Input<string>;
|
|
206
|
+
}
|
|
@@ -0,0 +1,143 @@
|
|
|
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.AccessPolicyRotatingToken = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* * [Official documentation](https://grafana.com/docs/grafana-cloud/security-and-account-management/authentication-and-permissions/access-policies/)
|
|
10
|
+
* * [API documentation](https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#create-a-token)
|
|
11
|
+
*
|
|
12
|
+
* Required access policy scopes:
|
|
13
|
+
*
|
|
14
|
+
* * accesspolicies:read
|
|
15
|
+
* * accesspolicies:write
|
|
16
|
+
* * accesspolicies:delete
|
|
17
|
+
*
|
|
18
|
+
* This is similar to the grafana.cloud.AccessPolicyToken resource, but it represents a token that will be rotated automatically over time.
|
|
19
|
+
*
|
|
20
|
+
* ## Example Usage
|
|
21
|
+
*
|
|
22
|
+
* ```typescript
|
|
23
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
24
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
25
|
+
*
|
|
26
|
+
* const current = grafana.cloud.getOrganization({
|
|
27
|
+
* slug: "<your org slug>",
|
|
28
|
+
* });
|
|
29
|
+
* const test = new grafana.cloud.AccessPolicy("test", {
|
|
30
|
+
* region: "prod-us-east-0",
|
|
31
|
+
* name: "my-policy",
|
|
32
|
+
* displayName: "My Policy",
|
|
33
|
+
* scopes: [
|
|
34
|
+
* "metrics:read",
|
|
35
|
+
* "logs:read",
|
|
36
|
+
* ],
|
|
37
|
+
* realms: [{
|
|
38
|
+
* type: "org",
|
|
39
|
+
* identifier: current.then(current => current.id),
|
|
40
|
+
* labelPolicies: [{
|
|
41
|
+
* selector: "{namespace=\"default\"}",
|
|
42
|
+
* }],
|
|
43
|
+
* }],
|
|
44
|
+
* });
|
|
45
|
+
* const testAccessPolicyRotatingToken = new grafana.cloud.AccessPolicyRotatingToken("test", {
|
|
46
|
+
* region: "prod-us-east-0",
|
|
47
|
+
* accessPolicyId: test.policyId,
|
|
48
|
+
* namePrefix: "my-policy-rotating-token",
|
|
49
|
+
* displayName: "My Policy Rotating Token",
|
|
50
|
+
* expireAfter: "30d",
|
|
51
|
+
* earlyRotationWindow: "24h",
|
|
52
|
+
* });
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
55
|
+
* ## Import
|
|
56
|
+
*
|
|
57
|
+
* ```sh
|
|
58
|
+
* $ pulumi import grafana:cloud/accessPolicyRotatingToken:AccessPolicyRotatingToken name "{{ region }}:{{ tokenId }}"
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
class AccessPolicyRotatingToken extends pulumi.CustomResource {
|
|
62
|
+
/**
|
|
63
|
+
* Get an existing AccessPolicyRotatingToken resource's state with the given name, ID, and optional extra
|
|
64
|
+
* properties used to qualify the lookup.
|
|
65
|
+
*
|
|
66
|
+
* @param name The _unique_ name of the resulting resource.
|
|
67
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
68
|
+
* @param state Any extra arguments used during the lookup.
|
|
69
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
70
|
+
*/
|
|
71
|
+
static get(name, id, state, opts) {
|
|
72
|
+
return new AccessPolicyRotatingToken(name, state, { ...opts, id: id });
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Returns true if the given object is an instance of AccessPolicyRotatingToken. This is designed to work even
|
|
76
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
77
|
+
*/
|
|
78
|
+
static isInstance(obj) {
|
|
79
|
+
if (obj === undefined || obj === null) {
|
|
80
|
+
return false;
|
|
81
|
+
}
|
|
82
|
+
return obj['__pulumiType'] === AccessPolicyRotatingToken.__pulumiType;
|
|
83
|
+
}
|
|
84
|
+
constructor(name, argsOrState, opts) {
|
|
85
|
+
let resourceInputs = {};
|
|
86
|
+
opts = opts || {};
|
|
87
|
+
if (opts.id) {
|
|
88
|
+
const state = argsOrState;
|
|
89
|
+
resourceInputs["accessPolicyId"] = state?.accessPolicyId;
|
|
90
|
+
resourceInputs["createdAt"] = state?.createdAt;
|
|
91
|
+
resourceInputs["deleteOnDestroy"] = state?.deleteOnDestroy;
|
|
92
|
+
resourceInputs["displayName"] = state?.displayName;
|
|
93
|
+
resourceInputs["earlyRotationWindow"] = state?.earlyRotationWindow;
|
|
94
|
+
resourceInputs["expireAfter"] = state?.expireAfter;
|
|
95
|
+
resourceInputs["expiresAt"] = state?.expiresAt;
|
|
96
|
+
resourceInputs["name"] = state?.name;
|
|
97
|
+
resourceInputs["namePrefix"] = state?.namePrefix;
|
|
98
|
+
resourceInputs["readyForRotation"] = state?.readyForRotation;
|
|
99
|
+
resourceInputs["region"] = state?.region;
|
|
100
|
+
resourceInputs["token"] = state?.token;
|
|
101
|
+
resourceInputs["updatedAt"] = state?.updatedAt;
|
|
102
|
+
}
|
|
103
|
+
else {
|
|
104
|
+
const args = argsOrState;
|
|
105
|
+
if (args?.accessPolicyId === undefined && !opts.urn) {
|
|
106
|
+
throw new Error("Missing required property 'accessPolicyId'");
|
|
107
|
+
}
|
|
108
|
+
if (args?.earlyRotationWindow === undefined && !opts.urn) {
|
|
109
|
+
throw new Error("Missing required property 'earlyRotationWindow'");
|
|
110
|
+
}
|
|
111
|
+
if (args?.expireAfter === undefined && !opts.urn) {
|
|
112
|
+
throw new Error("Missing required property 'expireAfter'");
|
|
113
|
+
}
|
|
114
|
+
if (args?.namePrefix === undefined && !opts.urn) {
|
|
115
|
+
throw new Error("Missing required property 'namePrefix'");
|
|
116
|
+
}
|
|
117
|
+
if (args?.region === undefined && !opts.urn) {
|
|
118
|
+
throw new Error("Missing required property 'region'");
|
|
119
|
+
}
|
|
120
|
+
resourceInputs["accessPolicyId"] = args?.accessPolicyId;
|
|
121
|
+
resourceInputs["deleteOnDestroy"] = args?.deleteOnDestroy;
|
|
122
|
+
resourceInputs["displayName"] = args?.displayName;
|
|
123
|
+
resourceInputs["earlyRotationWindow"] = args?.earlyRotationWindow;
|
|
124
|
+
resourceInputs["expireAfter"] = args?.expireAfter;
|
|
125
|
+
resourceInputs["namePrefix"] = args?.namePrefix;
|
|
126
|
+
resourceInputs["region"] = args?.region;
|
|
127
|
+
resourceInputs["createdAt"] = undefined /*out*/;
|
|
128
|
+
resourceInputs["expiresAt"] = undefined /*out*/;
|
|
129
|
+
resourceInputs["name"] = undefined /*out*/;
|
|
130
|
+
resourceInputs["readyForRotation"] = undefined /*out*/;
|
|
131
|
+
resourceInputs["token"] = undefined /*out*/;
|
|
132
|
+
resourceInputs["updatedAt"] = undefined /*out*/;
|
|
133
|
+
}
|
|
134
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
135
|
+
const secretOpts = { additionalSecretOutputs: ["token"] };
|
|
136
|
+
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
137
|
+
super(AccessPolicyRotatingToken.__pulumiType, name, resourceInputs, opts);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
exports.AccessPolicyRotatingToken = AccessPolicyRotatingToken;
|
|
141
|
+
/** @internal */
|
|
142
|
+
AccessPolicyRotatingToken.__pulumiType = 'grafana:cloud/accessPolicyRotatingToken:AccessPolicyRotatingToken';
|
|
143
|
+
//# sourceMappingURL=accessPolicyRotatingToken.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accessPolicyRotatingToken.js","sourceRoot":"","sources":["../../cloud/accessPolicyRotatingToken.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoDG;AACH,MAAa,yBAA0B,SAAQ,MAAM,CAAC,cAAc;IAChE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAsC,EAAE,IAAmC;QACpI,OAAO,IAAI,yBAAyB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAChF,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,yBAAyB,CAAC,YAAY,CAAC;IAC1E,CAAC;IAyDD,YAAY,IAAY,EAAE,WAA4E,EAAE,IAAmC;QACvI,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAyD,CAAC;YACxE,cAAc,CAAC,gBAAgB,CAAC,GAAG,KAAK,EAAE,cAAc,CAAC;YACzD,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,EAAE,SAAS,CAAC;YAC/C,cAAc,CAAC,iBAAiB,CAAC,GAAG,KAAK,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,cAAc,EAAE,IAAI,CAAC,CAAC;IAC9E,CAAC;;AAxIL,8DAyIC;AA3HG,gBAAgB;AACO,sCAAY,GAAG,mEAAmE,CAAC"}
|
package/cloud/index.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export { AccessPolicyArgs, AccessPolicyState } from "./accessPolicy";
|
|
2
2
|
export type AccessPolicy = import("./accessPolicy").AccessPolicy;
|
|
3
3
|
export declare const AccessPolicy: typeof import("./accessPolicy").AccessPolicy;
|
|
4
|
+
export { AccessPolicyRotatingTokenArgs, AccessPolicyRotatingTokenState } from "./accessPolicyRotatingToken";
|
|
5
|
+
export type AccessPolicyRotatingToken = import("./accessPolicyRotatingToken").AccessPolicyRotatingToken;
|
|
6
|
+
export declare const AccessPolicyRotatingToken: typeof import("./accessPolicyRotatingToken").AccessPolicyRotatingToken;
|
|
4
7
|
export { AccessPolicyTokenArgs, AccessPolicyTokenState } from "./accessPolicyToken";
|
|
5
8
|
export type AccessPolicyToken = import("./accessPolicyToken").AccessPolicyToken;
|
|
6
9
|
export declare const AccessPolicyToken: typeof import("./accessPolicyToken").AccessPolicyToken;
|
package/cloud/index.js
CHANGED
|
@@ -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.StackServiceAccountToken = exports.StackServiceAccount = exports.Stack = exports.ProductActivationK8sO11yConfigV1Alpha1 = exports.ProductActivationAppO11yConfigV1Alpha1 = exports.PrivateDataSourceConnectNetworkToken = exports.PrivateDataSourceConnectNetwork = exports.PluginInstallation = exports.OrgMember = exports.getStackOutput = exports.getStack = exports.getPrivateDataSourceConnectNetworksOutput = exports.getPrivateDataSourceConnectNetworks = exports.getOrganizationOutput = exports.getOrganization = exports.getIpsOutput = exports.getIps = exports.getAccessPoliciesOutput = exports.getAccessPolicies = exports.AccessPolicyToken = exports.AccessPolicy = void 0;
|
|
5
|
+
exports.StackServiceAccountToken = exports.StackServiceAccount = exports.Stack = exports.ProductActivationK8sO11yConfigV1Alpha1 = exports.ProductActivationAppO11yConfigV1Alpha1 = exports.PrivateDataSourceConnectNetworkToken = exports.PrivateDataSourceConnectNetwork = exports.PluginInstallation = exports.OrgMember = exports.getStackOutput = exports.getStack = exports.getPrivateDataSourceConnectNetworksOutput = exports.getPrivateDataSourceConnectNetworks = exports.getOrganizationOutput = exports.getOrganization = exports.getIpsOutput = exports.getIps = exports.getAccessPoliciesOutput = exports.getAccessPolicies = exports.AccessPolicyToken = exports.AccessPolicyRotatingToken = exports.AccessPolicy = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
8
|
exports.AccessPolicy = null;
|
|
9
9
|
utilities.lazyLoad(exports, ["AccessPolicy"], () => require("./accessPolicy"));
|
|
10
|
+
exports.AccessPolicyRotatingToken = null;
|
|
11
|
+
utilities.lazyLoad(exports, ["AccessPolicyRotatingToken"], () => require("./accessPolicyRotatingToken"));
|
|
10
12
|
exports.AccessPolicyToken = null;
|
|
11
13
|
utilities.lazyLoad(exports, ["AccessPolicyToken"], () => require("./accessPolicyToken"));
|
|
12
14
|
exports.getAccessPolicies = null;
|
|
@@ -48,6 +50,8 @@ const _module = {
|
|
|
48
50
|
switch (type) {
|
|
49
51
|
case "grafana:cloud/accessPolicy:AccessPolicy":
|
|
50
52
|
return new exports.AccessPolicy(name, undefined, { urn });
|
|
53
|
+
case "grafana:cloud/accessPolicyRotatingToken:AccessPolicyRotatingToken":
|
|
54
|
+
return new exports.AccessPolicyRotatingToken(name, undefined, { urn });
|
|
51
55
|
case "grafana:cloud/accessPolicyToken:AccessPolicyToken":
|
|
52
56
|
return new exports.AccessPolicyToken(name, undefined, { urn });
|
|
53
57
|
case "grafana:cloud/orgMember:OrgMember":
|
|
@@ -74,6 +78,7 @@ const _module = {
|
|
|
74
78
|
},
|
|
75
79
|
};
|
|
76
80
|
pulumi.runtime.registerResourceModule("grafana", "cloud/accessPolicy", _module);
|
|
81
|
+
pulumi.runtime.registerResourceModule("grafana", "cloud/accessPolicyRotatingToken", _module);
|
|
77
82
|
pulumi.runtime.registerResourceModule("grafana", "cloud/accessPolicyToken", _module);
|
|
78
83
|
pulumi.runtime.registerResourceModule("grafana", "cloud/orgMember", _module);
|
|
79
84
|
pulumi.runtime.registerResourceModule("grafana", "cloud/pluginInstallation", _module);
|
package/cloud/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../cloud/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAK7B,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;AAIlE,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;AAG5E,QAAA,iBAAiB,GAA2D,IAAW,CAAC;AACxF,QAAA,uBAAuB,GAAiE,IAAW,CAAC;AACjH,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,mBAAmB,EAAC,yBAAyB,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAC,CAAC;AAGtG,QAAA,MAAM,GAAqC,IAAW,CAAC;AACvD,QAAA,YAAY,GAA2C,IAAW,CAAC;AAChF,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAC,cAAc,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAA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AO,CAAC,sBAAsB,CAAC,SAAS,EAAE,uCAAuC,EAAE,OAAO,CAAC,CAAA;AAClG,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,SAAS,EAAE,4CAA4C,EAAE,OAAO,CAAC,CAAA;AACvG,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,SAAS,EAAE,8CAA8C,EAAE,OAAO,CAAC,CAAA;AACzG,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,SAAS,EAAE,8CAA8C,EAAE,OAAO,CAAC,CAAA;AACzG,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,SAAS,EAAE,aAAa,EAAE,OAAO,CAAC,CAAA;AACxE,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,SAAS,EAAE,2BAA2B,EAAE,OAAO,CAAC,CAAA;AACtF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,SAAS,EAAE,gCAAgC,EAAE,OAAO,CAAC,CAAA"}
|
package/k6/installation.d.ts
CHANGED
|
@@ -86,6 +86,10 @@ export declare class Installation extends pulumi.CustomResource {
|
|
|
86
86
|
* Generated token to access the k6 API.
|
|
87
87
|
*/
|
|
88
88
|
readonly k6AccessToken: pulumi.Output<string>;
|
|
89
|
+
/**
|
|
90
|
+
* The Grafana Cloud k6 API url.
|
|
91
|
+
*/
|
|
92
|
+
readonly k6ApiUrl: pulumi.Output<string>;
|
|
89
93
|
/**
|
|
90
94
|
* The identifier of the k6 organization.
|
|
91
95
|
*/
|
|
@@ -123,6 +127,10 @@ export interface InstallationState {
|
|
|
123
127
|
* Generated token to access the k6 API.
|
|
124
128
|
*/
|
|
125
129
|
k6AccessToken?: pulumi.Input<string>;
|
|
130
|
+
/**
|
|
131
|
+
* The Grafana Cloud k6 API url.
|
|
132
|
+
*/
|
|
133
|
+
k6ApiUrl?: pulumi.Input<string>;
|
|
126
134
|
/**
|
|
127
135
|
* The identifier of the k6 organization.
|
|
128
136
|
*/
|
|
@@ -148,6 +156,10 @@ export interface InstallationArgs {
|
|
|
148
156
|
* The user to use for the installation.
|
|
149
157
|
*/
|
|
150
158
|
grafanaUser: pulumi.Input<string>;
|
|
159
|
+
/**
|
|
160
|
+
* The Grafana Cloud k6 API url.
|
|
161
|
+
*/
|
|
162
|
+
k6ApiUrl?: pulumi.Input<string>;
|
|
151
163
|
/**
|
|
152
164
|
* The identifier of the stack to install k6 on.
|
|
153
165
|
*/
|
package/k6/installation.js
CHANGED
|
@@ -92,6 +92,7 @@ class Installation extends pulumi.CustomResource {
|
|
|
92
92
|
resourceInputs["grafanaSaToken"] = state?.grafanaSaToken;
|
|
93
93
|
resourceInputs["grafanaUser"] = state?.grafanaUser;
|
|
94
94
|
resourceInputs["k6AccessToken"] = state?.k6AccessToken;
|
|
95
|
+
resourceInputs["k6ApiUrl"] = state?.k6ApiUrl;
|
|
95
96
|
resourceInputs["k6Organization"] = state?.k6Organization;
|
|
96
97
|
resourceInputs["stackId"] = state?.stackId;
|
|
97
98
|
}
|
|
@@ -112,6 +113,7 @@ class Installation extends pulumi.CustomResource {
|
|
|
112
113
|
resourceInputs["cloudAccessPolicyToken"] = args?.cloudAccessPolicyToken ? pulumi.secret(args.cloudAccessPolicyToken) : undefined;
|
|
113
114
|
resourceInputs["grafanaSaToken"] = args?.grafanaSaToken ? pulumi.secret(args.grafanaSaToken) : undefined;
|
|
114
115
|
resourceInputs["grafanaUser"] = args?.grafanaUser;
|
|
116
|
+
resourceInputs["k6ApiUrl"] = args?.k6ApiUrl;
|
|
115
117
|
resourceInputs["stackId"] = args?.stackId;
|
|
116
118
|
resourceInputs["k6AccessToken"] = undefined /*out*/;
|
|
117
119
|
resourceInputs["k6Organization"] = undefined /*out*/;
|
package/k6/installation.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"installation.js","sourceRoot":"","sources":["../../k6/installation.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE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C,CAAC,CAAC;aAC1D;YACD,cAAc,CAAC,wBAAwB,CAAC,GAAG,IAAI,EAAE,sBAAsB,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;YACjI,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,EAAE,cAAc,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;YACzG,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;YAC5C,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,eAAe,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACpD,cAAc,CAAC,gBAAgB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACxD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,wBAAwB,EAAE,gBAAgB,EAAE,eAAe,CAAC,EAAE,CAAC;QAC9G,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,YAAY,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACjE,CAAC;;AAvGL,oCAwGC;AA1FG,gBAAgB;AACO,yBAAY,GAAG,sCAAsC,CAAC"}
|
|
@@ -39,11 +39,11 @@ export interface GetOrganizationPreferencesResult {
|
|
|
39
39
|
*/
|
|
40
40
|
readonly orgId?: string;
|
|
41
41
|
/**
|
|
42
|
-
* The Organization theme.
|
|
42
|
+
* The Organization theme. Any string value is supported, including custom themes. Common values are `light`, `dark`, `system`, or an empty string for the default.
|
|
43
43
|
*/
|
|
44
44
|
readonly theme: string;
|
|
45
45
|
/**
|
|
46
|
-
* The Organization timezone.
|
|
46
|
+
* The Organization timezone. Any string value is supported, including IANA timezone names. Common values are `utc`, `browser`, or an empty string for the default.
|
|
47
47
|
*/
|
|
48
48
|
readonly timezone: string;
|
|
49
49
|
/**
|
|
@@ -47,11 +47,11 @@ export declare class OrganizationPreferences extends pulumi.CustomResource {
|
|
|
47
47
|
*/
|
|
48
48
|
readonly orgId: pulumi.Output<string | undefined>;
|
|
49
49
|
/**
|
|
50
|
-
* The Organization theme.
|
|
50
|
+
* The Organization theme. Any string value is supported, including custom themes. Common values are `light`, `dark`, `system`, or an empty string for the default.
|
|
51
51
|
*/
|
|
52
52
|
readonly theme: pulumi.Output<string | undefined>;
|
|
53
53
|
/**
|
|
54
|
-
* The Organization timezone.
|
|
54
|
+
* The Organization timezone. Any string value is supported, including IANA timezone names. Common values are `utc`, `browser`, or an empty string for the default.
|
|
55
55
|
*/
|
|
56
56
|
readonly timezone: pulumi.Output<string | undefined>;
|
|
57
57
|
/**
|
|
@@ -80,11 +80,11 @@ export interface OrganizationPreferencesState {
|
|
|
80
80
|
*/
|
|
81
81
|
orgId?: pulumi.Input<string>;
|
|
82
82
|
/**
|
|
83
|
-
* The Organization theme.
|
|
83
|
+
* The Organization theme. Any string value is supported, including custom themes. Common values are `light`, `dark`, `system`, or an empty string for the default.
|
|
84
84
|
*/
|
|
85
85
|
theme?: pulumi.Input<string>;
|
|
86
86
|
/**
|
|
87
|
-
* The Organization timezone.
|
|
87
|
+
* The Organization timezone. Any string value is supported, including IANA timezone names. Common values are `utc`, `browser`, or an empty string for the default.
|
|
88
88
|
*/
|
|
89
89
|
timezone?: pulumi.Input<string>;
|
|
90
90
|
/**
|
|
@@ -105,11 +105,11 @@ export interface OrganizationPreferencesArgs {
|
|
|
105
105
|
*/
|
|
106
106
|
orgId?: pulumi.Input<string>;
|
|
107
107
|
/**
|
|
108
|
-
* The Organization theme.
|
|
108
|
+
* The Organization theme. Any string value is supported, including custom themes. Common values are `light`, `dark`, `system`, or an empty string for the default.
|
|
109
109
|
*/
|
|
110
110
|
theme?: pulumi.Input<string>;
|
|
111
111
|
/**
|
|
112
|
-
* The Organization timezone.
|
|
112
|
+
* The Organization timezone. Any string value is supported, including IANA timezone names. Common values are `utc`, `browser`, or an empty string for the default.
|
|
113
113
|
*/
|
|
114
114
|
timezone?: pulumi.Input<string>;
|
|
115
115
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumiverse/grafana",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.16.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.
|
|
27
|
+
"version": "2.16.0",
|
|
28
28
|
"server": "github://api.github.com/pulumiverse"
|
|
29
29
|
}
|
|
30
30
|
}
|
package/slo/slo.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
import * as inputs from "../types/input";
|
|
3
3
|
import * as outputs from "../types/output";
|
|
4
4
|
/**
|
|
5
|
-
* Resource manages Grafana SLOs.
|
|
5
|
+
* Resource manages Grafana SLOs (Service Level Objectives).
|
|
6
6
|
*
|
|
7
7
|
* * [Official documentation](https://grafana.com/docs/grafana-cloud/alerting-and-irm/slo/)
|
|
8
8
|
* * [API documentation](https://grafana.com/docs/grafana-cloud/alerting-and-irm/slo/api/)
|
package/slo/slo.js
CHANGED
|
@@ -6,7 +6,7 @@ exports.SLO = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
8
|
/**
|
|
9
|
-
* Resource manages Grafana SLOs.
|
|
9
|
+
* Resource manages Grafana SLOs (Service Level Objectives).
|
|
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/)
|
package/types/input.d.ts
CHANGED
|
@@ -546,9 +546,11 @@ export declare namespace alerting {
|
|
|
546
546
|
*/
|
|
547
547
|
execErrState: pulumi.Input<string>;
|
|
548
548
|
/**
|
|
549
|
-
* A sequence of stages that describe the contents of the rule.
|
|
549
|
+
* A sequence of stages that describe the contents of the rule. Each value is a JSON string representing an expression object.
|
|
550
550
|
*/
|
|
551
|
-
expressions:
|
|
551
|
+
expressions: pulumi.Input<{
|
|
552
|
+
[key: string]: pulumi.Input<string>;
|
|
553
|
+
}>;
|
|
552
554
|
/**
|
|
553
555
|
* The amount of time for which the rule must be breached for the rule to be considered to be Firing. Before this time has elapsed, the rule is only considered to be Pending.
|
|
554
556
|
*/
|
|
@@ -1960,9 +1962,11 @@ export declare namespace alerting {
|
|
|
1960
1962
|
}
|
|
1961
1963
|
interface RecordingRuleV0Alpha1Spec {
|
|
1962
1964
|
/**
|
|
1963
|
-
* A sequence of stages that describe the contents of the rule.
|
|
1965
|
+
* A sequence of stages that describe the contents of the rule. Each value is a JSON string representing an expression object.
|
|
1964
1966
|
*/
|
|
1965
|
-
expressions:
|
|
1967
|
+
expressions: pulumi.Input<{
|
|
1968
|
+
[key: string]: pulumi.Input<string>;
|
|
1969
|
+
}>;
|
|
1966
1970
|
/**
|
|
1967
1971
|
* Key-value pairs to attach to the recorded metric.
|
|
1968
1972
|
*/
|
|
@@ -2204,7 +2208,7 @@ export declare namespace assert {
|
|
|
2204
2208
|
}
|
|
2205
2209
|
interface LogConfigMatch {
|
|
2206
2210
|
/**
|
|
2207
|
-
* Operation to use for matching. One of:
|
|
2211
|
+
* Operation to use for matching. One of: =, <>, <, >, <=, >=, IS NULL, IS NOT NULL, STARTS WITH, CONTAINS.
|
|
2208
2212
|
*/
|
|
2209
2213
|
op: pulumi.Input<string>;
|
|
2210
2214
|
/**
|
package/types/output.d.ts
CHANGED
|
@@ -545,9 +545,11 @@ export declare namespace alerting {
|
|
|
545
545
|
*/
|
|
546
546
|
execErrState: string;
|
|
547
547
|
/**
|
|
548
|
-
* A sequence of stages that describe the contents of the rule.
|
|
548
|
+
* A sequence of stages that describe the contents of the rule. Each value is a JSON string representing an expression object.
|
|
549
549
|
*/
|
|
550
|
-
expressions:
|
|
550
|
+
expressions: {
|
|
551
|
+
[key: string]: string;
|
|
552
|
+
};
|
|
551
553
|
/**
|
|
552
554
|
* The amount of time for which the rule must be breached for the rule to be considered to be Firing. Before this time has elapsed, the rule is only considered to be Pending.
|
|
553
555
|
*/
|
|
@@ -1959,9 +1961,11 @@ export declare namespace alerting {
|
|
|
1959
1961
|
}
|
|
1960
1962
|
interface RecordingRuleV0Alpha1Spec {
|
|
1961
1963
|
/**
|
|
1962
|
-
* A sequence of stages that describe the contents of the rule.
|
|
1964
|
+
* A sequence of stages that describe the contents of the rule. Each value is a JSON string representing an expression object.
|
|
1963
1965
|
*/
|
|
1964
|
-
expressions:
|
|
1966
|
+
expressions: {
|
|
1967
|
+
[key: string]: string;
|
|
1968
|
+
};
|
|
1965
1969
|
/**
|
|
1966
1970
|
* Key-value pairs to attach to the recorded metric.
|
|
1967
1971
|
*/
|
|
@@ -2203,7 +2207,7 @@ export declare namespace assert {
|
|
|
2203
2207
|
}
|
|
2204
2208
|
interface LogConfigMatch {
|
|
2205
2209
|
/**
|
|
2206
|
-
* Operation to use for matching. One of:
|
|
2210
|
+
* Operation to use for matching. One of: =, <>, <, >, <=, >=, IS NULL, IS NOT NULL, STARTS WITH, CONTAINS.
|
|
2207
2211
|
*/
|
|
2208
2212
|
op: string;
|
|
2209
2213
|
/**
|