@pulumiverse/grafana 0.7.0 → 0.7.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.
- package/alerting/contactPoint.d.ts +1 -1
- package/alerting/contactPoint.js +1 -1
- package/alerting/messageTemplate.d.ts +2 -2
- package/alerting/messageTemplate.js +2 -2
- package/alerting/muteTiming.d.ts +2 -2
- package/alerting/muteTiming.js +2 -2
- package/alerting/notificationPolicy.d.ts +2 -2
- package/alerting/notificationPolicy.js +2 -2
- package/alerting/ruleGroup.d.ts +1 -1
- package/alerting/ruleGroup.js +1 -1
- package/cloud/getAccessPolicies.d.ts +50 -0
- package/cloud/getAccessPolicies.js +46 -0
- package/cloud/getAccessPolicies.js.map +1 -0
- package/cloud/getProviderAwsAccount.d.ts +92 -0
- package/cloud/getProviderAwsAccount.js +74 -0
- package/cloud/getProviderAwsAccount.js.map +1 -0
- package/cloud/getProviderAwsCloudwatchScrapeJob.d.ts +211 -0
- package/cloud/getProviderAwsCloudwatchScrapeJob.js +160 -0
- package/cloud/getProviderAwsCloudwatchScrapeJob.js.map +1 -0
- package/cloud/getProviderAwsCloudwatchScrapeJobs.d.ts +66 -0
- package/cloud/getProviderAwsCloudwatchScrapeJobs.js +54 -0
- package/cloud/getProviderAwsCloudwatchScrapeJobs.js.map +1 -0
- package/cloud/index.d.ts +18 -0
- package/cloud/index.js +23 -1
- package/cloud/index.js.map +1 -1
- package/cloud/providerAwsAccount.d.ts +103 -0
- package/cloud/providerAwsAccount.js +96 -0
- package/cloud/providerAwsAccount.js.map +1 -0
- package/cloud/providerAwsCloudwatchScrapeJob.d.ts +192 -0
- package/cloud/providerAwsCloudwatchScrapeJob.js +139 -0
- package/cloud/providerAwsCloudwatchScrapeJob.js.map +1 -0
- package/config/vars.d.ts +19 -0
- package/config/vars.js +24 -0
- package/config/vars.js.map +1 -1
- package/connectionsMetricsEndpointScrapeJob.d.ts +151 -0
- package/connectionsMetricsEndpointScrapeJob.js +101 -0
- package/connectionsMetricsEndpointScrapeJob.js.map +1 -0
- package/contactPoint.d.ts +1 -1
- package/contactPoint.js +1 -1
- package/dashboardPermissionItem.d.ts +3 -3
- package/dataSource.d.ts +9 -0
- package/dataSource.js +9 -0
- package/dataSource.js.map +1 -1
- package/dataSourcePermissionItem.d.ts +3 -3
- package/enterprise/dataSourcePermissionItem.d.ts +3 -3
- package/enterprise/roleAssignmentItem.d.ts +3 -3
- package/folderPermissionItem.d.ts +3 -3
- package/getConnectionsMetricsEndpointScrapeJob.d.ts +79 -0
- package/getConnectionsMetricsEndpointScrapeJob.js +50 -0
- package/getConnectionsMetricsEndpointScrapeJob.js.map +1 -0
- package/getLibraryPanels.d.ts +114 -0
- package/getLibraryPanels.js +102 -0
- package/getLibraryPanels.js.map +1 -0
- package/getOncallUser.d.ts +1 -1
- package/getTeam.d.ts +1 -0
- package/getTeam.js.map +1 -1
- package/getUser.d.ts +2 -0
- package/getUser.js +2 -0
- package/getUser.js.map +1 -1
- package/getUsers.d.ts +2 -0
- package/getUsers.js +2 -0
- package/getUsers.js.map +1 -1
- package/index.d.ts +9 -0
- package/index.js +14 -3
- package/index.js.map +1 -1
- package/machineLearningHoliday.d.ts +42 -0
- package/machineLearningHoliday.js +42 -0
- package/machineLearningHoliday.js.map +1 -1
- package/machineLearningJob.d.ts +137 -9
- package/machineLearningJob.js +125 -0
- package/machineLearningJob.js.map +1 -1
- package/machineLearningOutlierDetector.d.ts +64 -6
- package/machineLearningOutlierDetector.js +55 -0
- package/machineLearningOutlierDetector.js.map +1 -1
- package/machinelearning/alert.d.ts +236 -0
- package/machinelearning/alert.js +138 -0
- package/machinelearning/alert.js.map +1 -0
- package/machinelearning/holiday.d.ts +42 -0
- package/machinelearning/holiday.js +42 -0
- package/machinelearning/holiday.js.map +1 -1
- package/machinelearning/index.d.ts +3 -0
- package/machinelearning/index.js +6 -1
- package/machinelearning/index.js.map +1 -1
- package/machinelearning/job.d.ts +137 -9
- package/machinelearning/job.js +125 -0
- package/machinelearning/job.js.map +1 -1
- package/machinelearning/outlierDetector.d.ts +64 -6
- package/machinelearning/outlierDetector.js +55 -0
- package/machinelearning/outlierDetector.js.map +1 -1
- package/messageTemplate.d.ts +2 -2
- package/messageTemplate.js +2 -2
- package/muteTiming.d.ts +2 -2
- package/muteTiming.js +2 -2
- package/notificationPolicy.d.ts +2 -2
- package/notificationPolicy.js +2 -2
- package/oncall/escalation.d.ts +18 -6
- package/oncall/escalation.js +2 -0
- package/oncall/escalation.js.map +1 -1
- package/oncall/getUser.d.ts +1 -1
- package/oncall/getUsers.d.ts +20 -0
- package/oncall/getUsers.js +24 -0
- package/oncall/getUsers.js.map +1 -0
- package/oncall/index.d.ts +3 -0
- package/oncall/index.js +4 -1
- package/oncall/index.js.map +1 -1
- package/oncall/integration.d.ts +1 -1
- package/oncall/integration.js +1 -1
- package/oncall/onCallShift.d.ts +12 -0
- package/oncall/onCallShift.js +2 -0
- package/oncall/onCallShift.js.map +1 -1
- package/oncallEscalation.d.ts +18 -6
- package/oncallEscalation.js +2 -0
- package/oncallEscalation.js.map +1 -1
- package/oncallIntegration.d.ts +1 -1
- package/oncallIntegration.js +1 -1
- package/oncallOnCallShift.d.ts +12 -0
- package/oncallOnCallShift.js +2 -0
- package/oncallOnCallShift.js.map +1 -1
- package/organization.d.ts +1 -0
- package/organization.js +1 -0
- package/organization.js.map +1 -1
- package/oss/dashboardPermissionItem.d.ts +3 -3
- package/oss/dataSource.d.ts +9 -0
- package/oss/dataSource.js +9 -0
- package/oss/dataSource.js.map +1 -1
- package/oss/folderPermissionItem.d.ts +3 -3
- package/oss/getTeam.d.ts +1 -0
- package/oss/getTeam.js.map +1 -1
- package/oss/getUser.d.ts +2 -0
- package/oss/getUser.js +2 -0
- package/oss/getUser.js.map +1 -1
- package/oss/getUsers.d.ts +2 -0
- package/oss/getUsers.js +2 -0
- package/oss/getUsers.js.map +1 -1
- package/oss/organization.d.ts +1 -0
- package/oss/organization.js +1 -0
- package/oss/organization.js.map +1 -1
- package/oss/serviceAccountPermissionItem.d.ts +3 -3
- package/oss/ssoSettings.d.ts +56 -4
- package/oss/ssoSettings.js +43 -1
- package/oss/ssoSettings.js.map +1 -1
- package/oss/team.d.ts +8 -0
- package/oss/team.js +2 -0
- package/oss/team.js.map +1 -1
- package/oss/user.d.ts +1 -0
- package/oss/user.js +1 -0
- package/oss/user.js.map +1 -1
- package/package.json +2 -2
- package/provider.d.ts +38 -0
- package/provider.js +5 -1
- package/provider.js.map +1 -1
- package/roleAssignmentItem.d.ts +3 -3
- package/ruleGroup.d.ts +1 -1
- package/ruleGroup.js +1 -1
- package/serviceAccountPermissionItem.d.ts +3 -3
- package/slo/slo.d.ts +14 -2
- package/slo/slo.js +5 -0
- package/slo/slo.js.map +1 -1
- package/slo.d.ts +14 -2
- package/slo.js +5 -0
- package/slo.js.map +1 -1
- package/ssoSettings.d.ts +56 -4
- package/ssoSettings.js +43 -1
- package/ssoSettings.js.map +1 -1
- package/team.d.ts +8 -0
- package/team.js +2 -0
- package/team.js.map +1 -1
- package/types/input.d.ts +894 -10
- package/types/output.d.ts +837 -14
- package/user.d.ts +1 -0
- package/user.js +1 -0
- package/user.js.map +1 -1
|
@@ -4,7 +4,7 @@ import * as outputs from "../types/output";
|
|
|
4
4
|
/**
|
|
5
5
|
* Manages Grafana Alerting contact points.
|
|
6
6
|
*
|
|
7
|
-
* *
|
|
7
|
+
* * Official documentation
|
|
8
8
|
* * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/alerting_provisioning/#contact-points)
|
|
9
9
|
*
|
|
10
10
|
* This resource requires Grafana 9.1.0 or later.
|
package/alerting/contactPoint.js
CHANGED
|
@@ -8,7 +8,7 @@ const utilities = require("../utilities");
|
|
|
8
8
|
/**
|
|
9
9
|
* Manages Grafana Alerting contact points.
|
|
10
10
|
*
|
|
11
|
-
* *
|
|
11
|
+
* * Official documentation
|
|
12
12
|
* * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/alerting_provisioning/#contact-points)
|
|
13
13
|
*
|
|
14
14
|
* This resource requires Grafana 9.1.0 or later.
|
|
@@ -2,8 +2,8 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
/**
|
|
3
3
|
* Manages Grafana Alerting message templates.
|
|
4
4
|
*
|
|
5
|
-
* *
|
|
6
|
-
* * [HTTP API](https://grafana.com/docs/grafana/
|
|
5
|
+
* * Official documentation
|
|
6
|
+
* * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/alerting_provisioning/#templates)
|
|
7
7
|
*
|
|
8
8
|
* This resource requires Grafana 9.1.0 or later.
|
|
9
9
|
*
|
|
@@ -8,8 +8,8 @@ const utilities = require("../utilities");
|
|
|
8
8
|
/**
|
|
9
9
|
* Manages Grafana Alerting message templates.
|
|
10
10
|
*
|
|
11
|
-
* *
|
|
12
|
-
* * [HTTP API](https://grafana.com/docs/grafana/
|
|
11
|
+
* * Official documentation
|
|
12
|
+
* * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/alerting_provisioning/#templates)
|
|
13
13
|
*
|
|
14
14
|
* This resource requires Grafana 9.1.0 or later.
|
|
15
15
|
*
|
package/alerting/muteTiming.d.ts
CHANGED
|
@@ -4,8 +4,8 @@ import * as outputs from "../types/output";
|
|
|
4
4
|
/**
|
|
5
5
|
* Manages Grafana Alerting mute timings.
|
|
6
6
|
*
|
|
7
|
-
* *
|
|
8
|
-
* * [HTTP API](https://grafana.com/docs/grafana/
|
|
7
|
+
* * Official documentation
|
|
8
|
+
* * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/alerting_provisioning/#mute-timings)
|
|
9
9
|
*
|
|
10
10
|
* This resource requires Grafana 9.1.0 or later.
|
|
11
11
|
*
|
package/alerting/muteTiming.js
CHANGED
|
@@ -8,8 +8,8 @@ const utilities = require("../utilities");
|
|
|
8
8
|
/**
|
|
9
9
|
* Manages Grafana Alerting mute timings.
|
|
10
10
|
*
|
|
11
|
-
* *
|
|
12
|
-
* * [HTTP API](https://grafana.com/docs/grafana/
|
|
11
|
+
* * Official documentation
|
|
12
|
+
* * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/alerting_provisioning/#mute-timings)
|
|
13
13
|
*
|
|
14
14
|
* This resource requires Grafana 9.1.0 or later.
|
|
15
15
|
*
|
|
@@ -6,8 +6,8 @@ import * as outputs from "../types/output";
|
|
|
6
6
|
*
|
|
7
7
|
* !> This resource manages the entire notification policy tree, and will overwrite any existing policies.
|
|
8
8
|
*
|
|
9
|
-
* *
|
|
10
|
-
* * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/alerting_provisioning
|
|
9
|
+
* * Official documentation
|
|
10
|
+
* * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/alerting_provisioning/#notification-policies)
|
|
11
11
|
*
|
|
12
12
|
* This resource requires Grafana 9.1.0 or later.
|
|
13
13
|
*
|
|
@@ -10,8 +10,8 @@ const utilities = require("../utilities");
|
|
|
10
10
|
*
|
|
11
11
|
* !> This resource manages the entire notification policy tree, and will overwrite any existing policies.
|
|
12
12
|
*
|
|
13
|
-
* *
|
|
14
|
-
* * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/alerting_provisioning
|
|
13
|
+
* * Official documentation
|
|
14
|
+
* * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/alerting_provisioning/#notification-policies)
|
|
15
15
|
*
|
|
16
16
|
* This resource requires Grafana 9.1.0 or later.
|
|
17
17
|
*
|
package/alerting/ruleGroup.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import * as outputs from "../types/output";
|
|
|
4
4
|
/**
|
|
5
5
|
* Manages Grafana Alerting rule groups.
|
|
6
6
|
*
|
|
7
|
-
* *
|
|
7
|
+
* * Official documentation
|
|
8
8
|
* * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/alerting_provisioning/#alert-rules)
|
|
9
9
|
*
|
|
10
10
|
* This resource requires Grafana 9.1.0 or later.
|
package/alerting/ruleGroup.js
CHANGED
|
@@ -8,7 +8,7 @@ const utilities = require("../utilities");
|
|
|
8
8
|
/**
|
|
9
9
|
* Manages Grafana Alerting rule groups.
|
|
10
10
|
*
|
|
11
|
-
* *
|
|
11
|
+
* * Official documentation
|
|
12
12
|
* * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/alerting_provisioning/#alert-rules)
|
|
13
13
|
*
|
|
14
14
|
* This resource requires Grafana 9.1.0 or later.
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as outputs from "../types/output";
|
|
3
|
+
/**
|
|
4
|
+
* Fetches access policies from Grafana Cloud.
|
|
5
|
+
*
|
|
6
|
+
* * [Official documentation](https://grafana.com/docs/grafana-cloud/account-management/authentication-and-permissions/access-policies/)
|
|
7
|
+
* * [API documentation](https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#list-access-policies)
|
|
8
|
+
*
|
|
9
|
+
* Required access policy scopes:
|
|
10
|
+
*
|
|
11
|
+
* * accesspolicies:read
|
|
12
|
+
*/
|
|
13
|
+
export declare function getAccessPolicies(args?: GetAccessPoliciesArgs, opts?: pulumi.InvokeOptions): Promise<GetAccessPoliciesResult>;
|
|
14
|
+
/**
|
|
15
|
+
* A collection of arguments for invoking getAccessPolicies.
|
|
16
|
+
*/
|
|
17
|
+
export interface GetAccessPoliciesArgs {
|
|
18
|
+
nameFilter?: string;
|
|
19
|
+
regionFilter?: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* A collection of values returned by getAccessPolicies.
|
|
23
|
+
*/
|
|
24
|
+
export interface GetAccessPoliciesResult {
|
|
25
|
+
readonly accessPolicies: outputs.cloud.GetAccessPoliciesAccessPolicy[];
|
|
26
|
+
/**
|
|
27
|
+
* The ID of this datasource. This is an internal identifier used by the provider to track this datasource.
|
|
28
|
+
*/
|
|
29
|
+
readonly id: string;
|
|
30
|
+
readonly nameFilter?: string;
|
|
31
|
+
readonly regionFilter?: string;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Fetches access policies from Grafana Cloud.
|
|
35
|
+
*
|
|
36
|
+
* * [Official documentation](https://grafana.com/docs/grafana-cloud/account-management/authentication-and-permissions/access-policies/)
|
|
37
|
+
* * [API documentation](https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#list-access-policies)
|
|
38
|
+
*
|
|
39
|
+
* Required access policy scopes:
|
|
40
|
+
*
|
|
41
|
+
* * accesspolicies:read
|
|
42
|
+
*/
|
|
43
|
+
export declare function getAccessPoliciesOutput(args?: GetAccessPoliciesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetAccessPoliciesResult>;
|
|
44
|
+
/**
|
|
45
|
+
* A collection of arguments for invoking getAccessPolicies.
|
|
46
|
+
*/
|
|
47
|
+
export interface GetAccessPoliciesOutputArgs {
|
|
48
|
+
nameFilter?: pulumi.Input<string>;
|
|
49
|
+
regionFilter?: pulumi.Input<string>;
|
|
50
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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.getAccessPoliciesOutput = exports.getAccessPolicies = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Fetches access policies from Grafana Cloud.
|
|
10
|
+
*
|
|
11
|
+
* * [Official documentation](https://grafana.com/docs/grafana-cloud/account-management/authentication-and-permissions/access-policies/)
|
|
12
|
+
* * [API documentation](https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#list-access-policies)
|
|
13
|
+
*
|
|
14
|
+
* Required access policy scopes:
|
|
15
|
+
*
|
|
16
|
+
* * accesspolicies:read
|
|
17
|
+
*/
|
|
18
|
+
function getAccessPolicies(args, opts) {
|
|
19
|
+
args = args || {};
|
|
20
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
21
|
+
return pulumi.runtime.invoke("grafana:cloud/getAccessPolicies:getAccessPolicies", {
|
|
22
|
+
"nameFilter": args.nameFilter,
|
|
23
|
+
"regionFilter": args.regionFilter,
|
|
24
|
+
}, opts);
|
|
25
|
+
}
|
|
26
|
+
exports.getAccessPolicies = getAccessPolicies;
|
|
27
|
+
/**
|
|
28
|
+
* Fetches access policies from Grafana Cloud.
|
|
29
|
+
*
|
|
30
|
+
* * [Official documentation](https://grafana.com/docs/grafana-cloud/account-management/authentication-and-permissions/access-policies/)
|
|
31
|
+
* * [API documentation](https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#list-access-policies)
|
|
32
|
+
*
|
|
33
|
+
* Required access policy scopes:
|
|
34
|
+
*
|
|
35
|
+
* * accesspolicies:read
|
|
36
|
+
*/
|
|
37
|
+
function getAccessPoliciesOutput(args, opts) {
|
|
38
|
+
args = args || {};
|
|
39
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
40
|
+
return pulumi.runtime.invokeOutput("grafana:cloud/getAccessPolicies:getAccessPolicies", {
|
|
41
|
+
"nameFilter": args.nameFilter,
|
|
42
|
+
"regionFilter": args.regionFilter,
|
|
43
|
+
}, opts);
|
|
44
|
+
}
|
|
45
|
+
exports.getAccessPoliciesOutput = getAccessPoliciesOutput;
|
|
46
|
+
//# sourceMappingURL=getAccessPolicies.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAccessPolicies.js","sourceRoot":"","sources":["../../cloud/getAccessPolicies.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;GASG;AACH,SAAgB,iBAAiB,CAAC,IAA4B,EAAE,IAA2B;IACvF,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,mDAAmD,EAAE;QAC9E,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,cAAc,EAAE,IAAI,CAAC,YAAY;KACpC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,8CAOC;AAsBD;;;;;;;;;GASG;AACH,SAAgB,uBAAuB,CAAC,IAAkC,EAAE,IAA2B;IACnG,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,mDAAmD,EAAE;QACpF,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,cAAc,EAAE,IAAI,CAAC,YAAY;KACpC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,0DAOC"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* ## Example Usage
|
|
4
|
+
*
|
|
5
|
+
* ```typescript
|
|
6
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
7
|
+
* import * as grafana from "@pulumi/grafana";
|
|
8
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
9
|
+
*
|
|
10
|
+
* const test = grafana.cloud.getStack({
|
|
11
|
+
* slug: "gcloudstacktest",
|
|
12
|
+
* });
|
|
13
|
+
* const testProviderAwsAccount = new grafana.cloud.ProviderAwsAccount("test", {
|
|
14
|
+
* stackId: test.then(test => test.id),
|
|
15
|
+
* roleArn: testAwsIamRole.arn,
|
|
16
|
+
* regions: [
|
|
17
|
+
* "us-east-2",
|
|
18
|
+
* "eu-west-3",
|
|
19
|
+
* ],
|
|
20
|
+
* });
|
|
21
|
+
* const testGetProviderAwsAccount = pulumi.all([test, testProviderAwsAccount.resourceId]).apply(([test, resourceId]) => grafana.cloud.getProviderAwsAccountOutput({
|
|
22
|
+
* stackId: test.id,
|
|
23
|
+
* resourceId: resourceId,
|
|
24
|
+
* }));
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
export declare function getProviderAwsAccount(args: GetProviderAwsAccountArgs, opts?: pulumi.InvokeOptions): Promise<GetProviderAwsAccountResult>;
|
|
28
|
+
/**
|
|
29
|
+
* A collection of arguments for invoking getProviderAwsAccount.
|
|
30
|
+
*/
|
|
31
|
+
export interface GetProviderAwsAccountArgs {
|
|
32
|
+
/**
|
|
33
|
+
* The ID given by the Grafana Cloud Provider API to this AWS Account resource.
|
|
34
|
+
*/
|
|
35
|
+
resourceId: string;
|
|
36
|
+
stackId: string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* A collection of values returned by getProviderAwsAccount.
|
|
40
|
+
*/
|
|
41
|
+
export interface GetProviderAwsAccountResult {
|
|
42
|
+
readonly id: string;
|
|
43
|
+
/**
|
|
44
|
+
* A set of regions that this AWS Account resource applies to.
|
|
45
|
+
*/
|
|
46
|
+
readonly regions: string[];
|
|
47
|
+
/**
|
|
48
|
+
* The ID given by the Grafana Cloud Provider API to this AWS Account resource.
|
|
49
|
+
*/
|
|
50
|
+
readonly resourceId: string;
|
|
51
|
+
/**
|
|
52
|
+
* An IAM Role ARN string to represent with this AWS Account resource.
|
|
53
|
+
*/
|
|
54
|
+
readonly roleArn: string;
|
|
55
|
+
readonly stackId: string;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* ## Example Usage
|
|
59
|
+
*
|
|
60
|
+
* ```typescript
|
|
61
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
62
|
+
* import * as grafana from "@pulumi/grafana";
|
|
63
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
64
|
+
*
|
|
65
|
+
* const test = grafana.cloud.getStack({
|
|
66
|
+
* slug: "gcloudstacktest",
|
|
67
|
+
* });
|
|
68
|
+
* const testProviderAwsAccount = new grafana.cloud.ProviderAwsAccount("test", {
|
|
69
|
+
* stackId: test.then(test => test.id),
|
|
70
|
+
* roleArn: testAwsIamRole.arn,
|
|
71
|
+
* regions: [
|
|
72
|
+
* "us-east-2",
|
|
73
|
+
* "eu-west-3",
|
|
74
|
+
* ],
|
|
75
|
+
* });
|
|
76
|
+
* const testGetProviderAwsAccount = pulumi.all([test, testProviderAwsAccount.resourceId]).apply(([test, resourceId]) => grafana.cloud.getProviderAwsAccountOutput({
|
|
77
|
+
* stackId: test.id,
|
|
78
|
+
* resourceId: resourceId,
|
|
79
|
+
* }));
|
|
80
|
+
* ```
|
|
81
|
+
*/
|
|
82
|
+
export declare function getProviderAwsAccountOutput(args: GetProviderAwsAccountOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetProviderAwsAccountResult>;
|
|
83
|
+
/**
|
|
84
|
+
* A collection of arguments for invoking getProviderAwsAccount.
|
|
85
|
+
*/
|
|
86
|
+
export interface GetProviderAwsAccountOutputArgs {
|
|
87
|
+
/**
|
|
88
|
+
* The ID given by the Grafana Cloud Provider API to this AWS Account resource.
|
|
89
|
+
*/
|
|
90
|
+
resourceId: pulumi.Input<string>;
|
|
91
|
+
stackId: pulumi.Input<string>;
|
|
92
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
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.getProviderAwsAccountOutput = exports.getProviderAwsAccount = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## Example Usage
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as grafana from "@pulumi/grafana";
|
|
14
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
15
|
+
*
|
|
16
|
+
* const test = grafana.cloud.getStack({
|
|
17
|
+
* slug: "gcloudstacktest",
|
|
18
|
+
* });
|
|
19
|
+
* const testProviderAwsAccount = new grafana.cloud.ProviderAwsAccount("test", {
|
|
20
|
+
* stackId: test.then(test => test.id),
|
|
21
|
+
* roleArn: testAwsIamRole.arn,
|
|
22
|
+
* regions: [
|
|
23
|
+
* "us-east-2",
|
|
24
|
+
* "eu-west-3",
|
|
25
|
+
* ],
|
|
26
|
+
* });
|
|
27
|
+
* const testGetProviderAwsAccount = pulumi.all([test, testProviderAwsAccount.resourceId]).apply(([test, resourceId]) => grafana.cloud.getProviderAwsAccountOutput({
|
|
28
|
+
* stackId: test.id,
|
|
29
|
+
* resourceId: resourceId,
|
|
30
|
+
* }));
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
function getProviderAwsAccount(args, opts) {
|
|
34
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
35
|
+
return pulumi.runtime.invoke("grafana:cloud/getProviderAwsAccount:getProviderAwsAccount", {
|
|
36
|
+
"resourceId": args.resourceId,
|
|
37
|
+
"stackId": args.stackId,
|
|
38
|
+
}, opts);
|
|
39
|
+
}
|
|
40
|
+
exports.getProviderAwsAccount = getProviderAwsAccount;
|
|
41
|
+
/**
|
|
42
|
+
* ## Example Usage
|
|
43
|
+
*
|
|
44
|
+
* ```typescript
|
|
45
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
46
|
+
* import * as grafana from "@pulumi/grafana";
|
|
47
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
48
|
+
*
|
|
49
|
+
* const test = grafana.cloud.getStack({
|
|
50
|
+
* slug: "gcloudstacktest",
|
|
51
|
+
* });
|
|
52
|
+
* const testProviderAwsAccount = new grafana.cloud.ProviderAwsAccount("test", {
|
|
53
|
+
* stackId: test.then(test => test.id),
|
|
54
|
+
* roleArn: testAwsIamRole.arn,
|
|
55
|
+
* regions: [
|
|
56
|
+
* "us-east-2",
|
|
57
|
+
* "eu-west-3",
|
|
58
|
+
* ],
|
|
59
|
+
* });
|
|
60
|
+
* const testGetProviderAwsAccount = pulumi.all([test, testProviderAwsAccount.resourceId]).apply(([test, resourceId]) => grafana.cloud.getProviderAwsAccountOutput({
|
|
61
|
+
* stackId: test.id,
|
|
62
|
+
* resourceId: resourceId,
|
|
63
|
+
* }));
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
66
|
+
function getProviderAwsAccountOutput(args, opts) {
|
|
67
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
68
|
+
return pulumi.runtime.invokeOutput("grafana:cloud/getProviderAwsAccount:getProviderAwsAccount", {
|
|
69
|
+
"resourceId": args.resourceId,
|
|
70
|
+
"stackId": args.stackId,
|
|
71
|
+
}, opts);
|
|
72
|
+
}
|
|
73
|
+
exports.getProviderAwsAccountOutput = getProviderAwsAccountOutput;
|
|
74
|
+
//# sourceMappingURL=getProviderAwsAccount.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getProviderAwsAccount.js","sourceRoot":"","sources":["../../cloud/getProviderAwsAccount.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,SAAgB,qBAAqB,CAAC,IAA+B,EAAE,IAA2B;IAC9F,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,2DAA2D,EAAE;QACtF,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,SAAS,EAAE,IAAI,CAAC,OAAO;KAC1B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,sDAMC;AAgCD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,SAAgB,2BAA2B,CAAC,IAAqC,EAAE,IAA2B;IAC1G,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,2DAA2D,EAAE;QAC5F,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,SAAS,EAAE,IAAI,CAAC,OAAO;KAC1B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,kEAMC"}
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "../types/input";
|
|
3
|
+
import * as outputs from "../types/output";
|
|
4
|
+
/**
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as aws from "@pulumi/aws";
|
|
10
|
+
* import * as grafana from "@pulumi/grafana";
|
|
11
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
12
|
+
*
|
|
13
|
+
* const test = grafana.cloud.getStack({
|
|
14
|
+
* slug: "gcloudstacktest",
|
|
15
|
+
* });
|
|
16
|
+
* const testGetRole = aws.iam.getRole({
|
|
17
|
+
* name: "my-role",
|
|
18
|
+
* });
|
|
19
|
+
* const testProviderAwsAccount = new grafana.cloud.ProviderAwsAccount("test", {
|
|
20
|
+
* stackId: test.then(test => test.id),
|
|
21
|
+
* roleArn: testGetRole.then(testGetRole => testGetRole.arn),
|
|
22
|
+
* regions: [
|
|
23
|
+
* "us-east-1",
|
|
24
|
+
* "us-east-2",
|
|
25
|
+
* "us-west-1",
|
|
26
|
+
* ],
|
|
27
|
+
* });
|
|
28
|
+
* const testProviderAwsCloudwatchScrapeJob = new grafana.cloud.ProviderAwsCloudwatchScrapeJob("test", {
|
|
29
|
+
* stackId: test.then(test => test.id),
|
|
30
|
+
* name: "my-cloudwatch-scrape-job",
|
|
31
|
+
* awsAccountResourceId: testProviderAwsAccount.resourceId,
|
|
32
|
+
* exportTags: true,
|
|
33
|
+
* services: [{
|
|
34
|
+
* name: "AWS/EC2",
|
|
35
|
+
* metrics: [
|
|
36
|
+
* {
|
|
37
|
+
* name: "CPUUtilization",
|
|
38
|
+
* statistics: ["Average"],
|
|
39
|
+
* },
|
|
40
|
+
* {
|
|
41
|
+
* name: "StatusCheckFailed",
|
|
42
|
+
* statistics: ["Maximum"],
|
|
43
|
+
* },
|
|
44
|
+
* ],
|
|
45
|
+
* scrapeIntervalSeconds: 300,
|
|
46
|
+
* resourceDiscoveryTagFilters: [{
|
|
47
|
+
* key: "k8s.io/cluster-autoscaler/enabled",
|
|
48
|
+
* value: "true",
|
|
49
|
+
* }],
|
|
50
|
+
* tagsToAddToMetrics: ["eks:cluster-name"],
|
|
51
|
+
* }],
|
|
52
|
+
* customNamespaces: [{
|
|
53
|
+
* name: "CoolApp",
|
|
54
|
+
* metrics: [{
|
|
55
|
+
* name: "CoolMetric",
|
|
56
|
+
* statistics: [
|
|
57
|
+
* "Maximum",
|
|
58
|
+
* "Sum",
|
|
59
|
+
* ],
|
|
60
|
+
* }],
|
|
61
|
+
* scrapeIntervalSeconds: 300,
|
|
62
|
+
* }],
|
|
63
|
+
* });
|
|
64
|
+
* const testGetProviderAwsCloudwatchScrapeJob = pulumi.all([test, testProviderAwsCloudwatchScrapeJob.name]).apply(([test, name]) => grafana.cloud.getProviderAwsCloudwatchScrapeJobOutput({
|
|
65
|
+
* stackId: test.id,
|
|
66
|
+
* name: name,
|
|
67
|
+
* }));
|
|
68
|
+
* ```
|
|
69
|
+
*/
|
|
70
|
+
export declare function getProviderAwsCloudwatchScrapeJob(args: GetProviderAwsCloudwatchScrapeJobArgs, opts?: pulumi.InvokeOptions): Promise<GetProviderAwsCloudwatchScrapeJobResult>;
|
|
71
|
+
/**
|
|
72
|
+
* A collection of arguments for invoking getProviderAwsCloudwatchScrapeJob.
|
|
73
|
+
*/
|
|
74
|
+
export interface GetProviderAwsCloudwatchScrapeJobArgs {
|
|
75
|
+
/**
|
|
76
|
+
* Zero or more configuration blocks to configure custom namespaces for the CloudWatch Scrape Job to scrape. Each block must have a distinct `name` attribute. When accessing this as an attribute reference, it is a list of objects.
|
|
77
|
+
*/
|
|
78
|
+
customNamespaces?: inputs.cloud.GetProviderAwsCloudwatchScrapeJobCustomNamespace[];
|
|
79
|
+
name: string;
|
|
80
|
+
/**
|
|
81
|
+
* One or more configuration blocks to dictate what this CloudWatch Scrape Job should scrape. Each block must have a distinct `name` attribute. When accessing this as an attribute reference, it is a list of objects.
|
|
82
|
+
*/
|
|
83
|
+
services?: inputs.cloud.GetProviderAwsCloudwatchScrapeJobService[];
|
|
84
|
+
stackId: string;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* A collection of values returned by getProviderAwsCloudwatchScrapeJob.
|
|
88
|
+
*/
|
|
89
|
+
export interface GetProviderAwsCloudwatchScrapeJobResult {
|
|
90
|
+
/**
|
|
91
|
+
* The ID assigned by the Grafana Cloud Provider API to an AWS Account resource that should be associated with this CloudWatch Scrape Job. This can be provided by the `resourceId` attribute of the `grafana.cloud.ProviderAwsAccount` resource.
|
|
92
|
+
*/
|
|
93
|
+
readonly awsAccountResourceId: string;
|
|
94
|
+
/**
|
|
95
|
+
* Zero or more configuration blocks to configure custom namespaces for the CloudWatch Scrape Job to scrape. Each block must have a distinct `name` attribute. When accessing this as an attribute reference, it is a list of objects.
|
|
96
|
+
*/
|
|
97
|
+
readonly customNamespaces?: outputs.cloud.GetProviderAwsCloudwatchScrapeJobCustomNamespace[];
|
|
98
|
+
/**
|
|
99
|
+
* When the CloudWatch Scrape Job is disabled, this will show the reason that it is in that state.
|
|
100
|
+
*/
|
|
101
|
+
readonly disabledReason: string;
|
|
102
|
+
/**
|
|
103
|
+
* Whether the CloudWatch Scrape Job is enabled or not.
|
|
104
|
+
*/
|
|
105
|
+
readonly enabled: boolean;
|
|
106
|
+
/**
|
|
107
|
+
* When enabled, AWS resource tags are exported as Prometheus labels to metrics formatted as `aws_<service_name>_info`.
|
|
108
|
+
*/
|
|
109
|
+
readonly exportTags: boolean;
|
|
110
|
+
readonly id: string;
|
|
111
|
+
readonly name: string;
|
|
112
|
+
/**
|
|
113
|
+
* The set of AWS region names that this CloudWatch Scrape Job is configured to scrape.
|
|
114
|
+
*/
|
|
115
|
+
readonly regions: string[];
|
|
116
|
+
/**
|
|
117
|
+
* When true, the `regions` attribute will be the set of regions configured in the override. When false, the `regions` attribute will be the set of regions belonging to the AWS Account resource that is associated with this CloudWatch Scrape Job.
|
|
118
|
+
*/
|
|
119
|
+
readonly regionsSubsetOverrideUsed: boolean;
|
|
120
|
+
/**
|
|
121
|
+
* The AWS ARN of the IAM role associated with the AWS Account resource that is being used by this CloudWatch Scrape Job.
|
|
122
|
+
*/
|
|
123
|
+
readonly roleArn: string;
|
|
124
|
+
/**
|
|
125
|
+
* One or more configuration blocks to dictate what this CloudWatch Scrape Job should scrape. Each block must have a distinct `name` attribute. When accessing this as an attribute reference, it is a list of objects.
|
|
126
|
+
*/
|
|
127
|
+
readonly services?: outputs.cloud.GetProviderAwsCloudwatchScrapeJobService[];
|
|
128
|
+
readonly stackId: string;
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* ## Example Usage
|
|
132
|
+
*
|
|
133
|
+
* ```typescript
|
|
134
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
135
|
+
* import * as aws from "@pulumi/aws";
|
|
136
|
+
* import * as grafana from "@pulumi/grafana";
|
|
137
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
138
|
+
*
|
|
139
|
+
* const test = grafana.cloud.getStack({
|
|
140
|
+
* slug: "gcloudstacktest",
|
|
141
|
+
* });
|
|
142
|
+
* const testGetRole = aws.iam.getRole({
|
|
143
|
+
* name: "my-role",
|
|
144
|
+
* });
|
|
145
|
+
* const testProviderAwsAccount = new grafana.cloud.ProviderAwsAccount("test", {
|
|
146
|
+
* stackId: test.then(test => test.id),
|
|
147
|
+
* roleArn: testGetRole.then(testGetRole => testGetRole.arn),
|
|
148
|
+
* regions: [
|
|
149
|
+
* "us-east-1",
|
|
150
|
+
* "us-east-2",
|
|
151
|
+
* "us-west-1",
|
|
152
|
+
* ],
|
|
153
|
+
* });
|
|
154
|
+
* const testProviderAwsCloudwatchScrapeJob = new grafana.cloud.ProviderAwsCloudwatchScrapeJob("test", {
|
|
155
|
+
* stackId: test.then(test => test.id),
|
|
156
|
+
* name: "my-cloudwatch-scrape-job",
|
|
157
|
+
* awsAccountResourceId: testProviderAwsAccount.resourceId,
|
|
158
|
+
* exportTags: true,
|
|
159
|
+
* services: [{
|
|
160
|
+
* name: "AWS/EC2",
|
|
161
|
+
* metrics: [
|
|
162
|
+
* {
|
|
163
|
+
* name: "CPUUtilization",
|
|
164
|
+
* statistics: ["Average"],
|
|
165
|
+
* },
|
|
166
|
+
* {
|
|
167
|
+
* name: "StatusCheckFailed",
|
|
168
|
+
* statistics: ["Maximum"],
|
|
169
|
+
* },
|
|
170
|
+
* ],
|
|
171
|
+
* scrapeIntervalSeconds: 300,
|
|
172
|
+
* resourceDiscoveryTagFilters: [{
|
|
173
|
+
* key: "k8s.io/cluster-autoscaler/enabled",
|
|
174
|
+
* value: "true",
|
|
175
|
+
* }],
|
|
176
|
+
* tagsToAddToMetrics: ["eks:cluster-name"],
|
|
177
|
+
* }],
|
|
178
|
+
* customNamespaces: [{
|
|
179
|
+
* name: "CoolApp",
|
|
180
|
+
* metrics: [{
|
|
181
|
+
* name: "CoolMetric",
|
|
182
|
+
* statistics: [
|
|
183
|
+
* "Maximum",
|
|
184
|
+
* "Sum",
|
|
185
|
+
* ],
|
|
186
|
+
* }],
|
|
187
|
+
* scrapeIntervalSeconds: 300,
|
|
188
|
+
* }],
|
|
189
|
+
* });
|
|
190
|
+
* const testGetProviderAwsCloudwatchScrapeJob = pulumi.all([test, testProviderAwsCloudwatchScrapeJob.name]).apply(([test, name]) => grafana.cloud.getProviderAwsCloudwatchScrapeJobOutput({
|
|
191
|
+
* stackId: test.id,
|
|
192
|
+
* name: name,
|
|
193
|
+
* }));
|
|
194
|
+
* ```
|
|
195
|
+
*/
|
|
196
|
+
export declare function getProviderAwsCloudwatchScrapeJobOutput(args: GetProviderAwsCloudwatchScrapeJobOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetProviderAwsCloudwatchScrapeJobResult>;
|
|
197
|
+
/**
|
|
198
|
+
* A collection of arguments for invoking getProviderAwsCloudwatchScrapeJob.
|
|
199
|
+
*/
|
|
200
|
+
export interface GetProviderAwsCloudwatchScrapeJobOutputArgs {
|
|
201
|
+
/**
|
|
202
|
+
* Zero or more configuration blocks to configure custom namespaces for the CloudWatch Scrape Job to scrape. Each block must have a distinct `name` attribute. When accessing this as an attribute reference, it is a list of objects.
|
|
203
|
+
*/
|
|
204
|
+
customNamespaces?: pulumi.Input<pulumi.Input<inputs.cloud.GetProviderAwsCloudwatchScrapeJobCustomNamespaceArgs>[]>;
|
|
205
|
+
name: pulumi.Input<string>;
|
|
206
|
+
/**
|
|
207
|
+
* One or more configuration blocks to dictate what this CloudWatch Scrape Job should scrape. Each block must have a distinct `name` attribute. When accessing this as an attribute reference, it is a list of objects.
|
|
208
|
+
*/
|
|
209
|
+
services?: pulumi.Input<pulumi.Input<inputs.cloud.GetProviderAwsCloudwatchScrapeJobServiceArgs>[]>;
|
|
210
|
+
stackId: pulumi.Input<string>;
|
|
211
|
+
}
|