@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.
Files changed (172) hide show
  1. package/alerting/contactPoint.d.ts +1 -1
  2. package/alerting/contactPoint.js +1 -1
  3. package/alerting/messageTemplate.d.ts +2 -2
  4. package/alerting/messageTemplate.js +2 -2
  5. package/alerting/muteTiming.d.ts +2 -2
  6. package/alerting/muteTiming.js +2 -2
  7. package/alerting/notificationPolicy.d.ts +2 -2
  8. package/alerting/notificationPolicy.js +2 -2
  9. package/alerting/ruleGroup.d.ts +1 -1
  10. package/alerting/ruleGroup.js +1 -1
  11. package/cloud/getAccessPolicies.d.ts +50 -0
  12. package/cloud/getAccessPolicies.js +46 -0
  13. package/cloud/getAccessPolicies.js.map +1 -0
  14. package/cloud/getProviderAwsAccount.d.ts +92 -0
  15. package/cloud/getProviderAwsAccount.js +74 -0
  16. package/cloud/getProviderAwsAccount.js.map +1 -0
  17. package/cloud/getProviderAwsCloudwatchScrapeJob.d.ts +211 -0
  18. package/cloud/getProviderAwsCloudwatchScrapeJob.js +160 -0
  19. package/cloud/getProviderAwsCloudwatchScrapeJob.js.map +1 -0
  20. package/cloud/getProviderAwsCloudwatchScrapeJobs.d.ts +66 -0
  21. package/cloud/getProviderAwsCloudwatchScrapeJobs.js +54 -0
  22. package/cloud/getProviderAwsCloudwatchScrapeJobs.js.map +1 -0
  23. package/cloud/index.d.ts +18 -0
  24. package/cloud/index.js +23 -1
  25. package/cloud/index.js.map +1 -1
  26. package/cloud/providerAwsAccount.d.ts +103 -0
  27. package/cloud/providerAwsAccount.js +96 -0
  28. package/cloud/providerAwsAccount.js.map +1 -0
  29. package/cloud/providerAwsCloudwatchScrapeJob.d.ts +192 -0
  30. package/cloud/providerAwsCloudwatchScrapeJob.js +139 -0
  31. package/cloud/providerAwsCloudwatchScrapeJob.js.map +1 -0
  32. package/config/vars.d.ts +19 -0
  33. package/config/vars.js +24 -0
  34. package/config/vars.js.map +1 -1
  35. package/connectionsMetricsEndpointScrapeJob.d.ts +151 -0
  36. package/connectionsMetricsEndpointScrapeJob.js +101 -0
  37. package/connectionsMetricsEndpointScrapeJob.js.map +1 -0
  38. package/contactPoint.d.ts +1 -1
  39. package/contactPoint.js +1 -1
  40. package/dashboardPermissionItem.d.ts +3 -3
  41. package/dataSource.d.ts +9 -0
  42. package/dataSource.js +9 -0
  43. package/dataSource.js.map +1 -1
  44. package/dataSourcePermissionItem.d.ts +3 -3
  45. package/enterprise/dataSourcePermissionItem.d.ts +3 -3
  46. package/enterprise/roleAssignmentItem.d.ts +3 -3
  47. package/folderPermissionItem.d.ts +3 -3
  48. package/getConnectionsMetricsEndpointScrapeJob.d.ts +79 -0
  49. package/getConnectionsMetricsEndpointScrapeJob.js +50 -0
  50. package/getConnectionsMetricsEndpointScrapeJob.js.map +1 -0
  51. package/getLibraryPanels.d.ts +114 -0
  52. package/getLibraryPanels.js +102 -0
  53. package/getLibraryPanels.js.map +1 -0
  54. package/getOncallUser.d.ts +1 -1
  55. package/getTeam.d.ts +1 -0
  56. package/getTeam.js.map +1 -1
  57. package/getUser.d.ts +2 -0
  58. package/getUser.js +2 -0
  59. package/getUser.js.map +1 -1
  60. package/getUsers.d.ts +2 -0
  61. package/getUsers.js +2 -0
  62. package/getUsers.js.map +1 -1
  63. package/index.d.ts +9 -0
  64. package/index.js +14 -3
  65. package/index.js.map +1 -1
  66. package/machineLearningHoliday.d.ts +42 -0
  67. package/machineLearningHoliday.js +42 -0
  68. package/machineLearningHoliday.js.map +1 -1
  69. package/machineLearningJob.d.ts +137 -9
  70. package/machineLearningJob.js +125 -0
  71. package/machineLearningJob.js.map +1 -1
  72. package/machineLearningOutlierDetector.d.ts +64 -6
  73. package/machineLearningOutlierDetector.js +55 -0
  74. package/machineLearningOutlierDetector.js.map +1 -1
  75. package/machinelearning/alert.d.ts +236 -0
  76. package/machinelearning/alert.js +138 -0
  77. package/machinelearning/alert.js.map +1 -0
  78. package/machinelearning/holiday.d.ts +42 -0
  79. package/machinelearning/holiday.js +42 -0
  80. package/machinelearning/holiday.js.map +1 -1
  81. package/machinelearning/index.d.ts +3 -0
  82. package/machinelearning/index.js +6 -1
  83. package/machinelearning/index.js.map +1 -1
  84. package/machinelearning/job.d.ts +137 -9
  85. package/machinelearning/job.js +125 -0
  86. package/machinelearning/job.js.map +1 -1
  87. package/machinelearning/outlierDetector.d.ts +64 -6
  88. package/machinelearning/outlierDetector.js +55 -0
  89. package/machinelearning/outlierDetector.js.map +1 -1
  90. package/messageTemplate.d.ts +2 -2
  91. package/messageTemplate.js +2 -2
  92. package/muteTiming.d.ts +2 -2
  93. package/muteTiming.js +2 -2
  94. package/notificationPolicy.d.ts +2 -2
  95. package/notificationPolicy.js +2 -2
  96. package/oncall/escalation.d.ts +18 -6
  97. package/oncall/escalation.js +2 -0
  98. package/oncall/escalation.js.map +1 -1
  99. package/oncall/getUser.d.ts +1 -1
  100. package/oncall/getUsers.d.ts +20 -0
  101. package/oncall/getUsers.js +24 -0
  102. package/oncall/getUsers.js.map +1 -0
  103. package/oncall/index.d.ts +3 -0
  104. package/oncall/index.js +4 -1
  105. package/oncall/index.js.map +1 -1
  106. package/oncall/integration.d.ts +1 -1
  107. package/oncall/integration.js +1 -1
  108. package/oncall/onCallShift.d.ts +12 -0
  109. package/oncall/onCallShift.js +2 -0
  110. package/oncall/onCallShift.js.map +1 -1
  111. package/oncallEscalation.d.ts +18 -6
  112. package/oncallEscalation.js +2 -0
  113. package/oncallEscalation.js.map +1 -1
  114. package/oncallIntegration.d.ts +1 -1
  115. package/oncallIntegration.js +1 -1
  116. package/oncallOnCallShift.d.ts +12 -0
  117. package/oncallOnCallShift.js +2 -0
  118. package/oncallOnCallShift.js.map +1 -1
  119. package/organization.d.ts +1 -0
  120. package/organization.js +1 -0
  121. package/organization.js.map +1 -1
  122. package/oss/dashboardPermissionItem.d.ts +3 -3
  123. package/oss/dataSource.d.ts +9 -0
  124. package/oss/dataSource.js +9 -0
  125. package/oss/dataSource.js.map +1 -1
  126. package/oss/folderPermissionItem.d.ts +3 -3
  127. package/oss/getTeam.d.ts +1 -0
  128. package/oss/getTeam.js.map +1 -1
  129. package/oss/getUser.d.ts +2 -0
  130. package/oss/getUser.js +2 -0
  131. package/oss/getUser.js.map +1 -1
  132. package/oss/getUsers.d.ts +2 -0
  133. package/oss/getUsers.js +2 -0
  134. package/oss/getUsers.js.map +1 -1
  135. package/oss/organization.d.ts +1 -0
  136. package/oss/organization.js +1 -0
  137. package/oss/organization.js.map +1 -1
  138. package/oss/serviceAccountPermissionItem.d.ts +3 -3
  139. package/oss/ssoSettings.d.ts +56 -4
  140. package/oss/ssoSettings.js +43 -1
  141. package/oss/ssoSettings.js.map +1 -1
  142. package/oss/team.d.ts +8 -0
  143. package/oss/team.js +2 -0
  144. package/oss/team.js.map +1 -1
  145. package/oss/user.d.ts +1 -0
  146. package/oss/user.js +1 -0
  147. package/oss/user.js.map +1 -1
  148. package/package.json +2 -2
  149. package/provider.d.ts +38 -0
  150. package/provider.js +5 -1
  151. package/provider.js.map +1 -1
  152. package/roleAssignmentItem.d.ts +3 -3
  153. package/ruleGroup.d.ts +1 -1
  154. package/ruleGroup.js +1 -1
  155. package/serviceAccountPermissionItem.d.ts +3 -3
  156. package/slo/slo.d.ts +14 -2
  157. package/slo/slo.js +5 -0
  158. package/slo/slo.js.map +1 -1
  159. package/slo.d.ts +14 -2
  160. package/slo.js +5 -0
  161. package/slo.js.map +1 -1
  162. package/ssoSettings.d.ts +56 -4
  163. package/ssoSettings.js +43 -1
  164. package/ssoSettings.js.map +1 -1
  165. package/team.d.ts +8 -0
  166. package/team.js +2 -0
  167. package/team.js.map +1 -1
  168. package/types/input.d.ts +894 -10
  169. package/types/output.d.ts +837 -14
  170. package/user.d.ts +1 -0
  171. package/user.js +1 -0
  172. package/user.js.map +1 -1
@@ -0,0 +1,192 @@
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
+ * ```
65
+ *
66
+ * ## Import
67
+ *
68
+ * ```sh
69
+ * $ pulumi import grafana:cloud/providerAwsCloudwatchScrapeJob:ProviderAwsCloudwatchScrapeJob name "{{ stack_id }}:{{ name }}"
70
+ * ```
71
+ */
72
+ export declare class ProviderAwsCloudwatchScrapeJob extends pulumi.CustomResource {
73
+ /**
74
+ * Get an existing ProviderAwsCloudwatchScrapeJob resource's state with the given name, ID, and optional extra
75
+ * properties used to qualify the lookup.
76
+ *
77
+ * @param name The _unique_ name of the resulting resource.
78
+ * @param id The _unique_ provider ID of the resource to lookup.
79
+ * @param state Any extra arguments used during the lookup.
80
+ * @param opts Optional settings to control the behavior of the CustomResource.
81
+ */
82
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ProviderAwsCloudwatchScrapeJobState, opts?: pulumi.CustomResourceOptions): ProviderAwsCloudwatchScrapeJob;
83
+ /**
84
+ * Returns true if the given object is an instance of ProviderAwsCloudwatchScrapeJob. This is designed to work even
85
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
86
+ */
87
+ static isInstance(obj: any): obj is ProviderAwsCloudwatchScrapeJob;
88
+ /**
89
+ * 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.
90
+ */
91
+ readonly awsAccountResourceId: pulumi.Output<string>;
92
+ /**
93
+ * 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.
94
+ */
95
+ readonly customNamespaces: pulumi.Output<outputs.cloud.ProviderAwsCloudwatchScrapeJobCustomNamespace[] | undefined>;
96
+ /**
97
+ * When the CloudWatch Scrape Job is disabled, this will show the reason that it is in that state.
98
+ */
99
+ readonly disabledReason: pulumi.Output<string>;
100
+ /**
101
+ * Whether the CloudWatch Scrape Job is enabled or not.
102
+ */
103
+ readonly enabled: pulumi.Output<boolean>;
104
+ /**
105
+ * When enabled, AWS resource tags are exported as Prometheus labels to metrics formatted as `aws_<service_name>_info`.
106
+ */
107
+ readonly exportTags: pulumi.Output<boolean>;
108
+ readonly name: pulumi.Output<string>;
109
+ /**
110
+ * A subset of the regions that are configured in the associated AWS Account resource to apply to this scrape job. If not set or empty, all of the Account resource's regions are scraped.
111
+ */
112
+ readonly regionsSubsetOverrides: pulumi.Output<string[]>;
113
+ /**
114
+ * One or more configuration blocks to configure AWS services 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.
115
+ */
116
+ readonly services: pulumi.Output<outputs.cloud.ProviderAwsCloudwatchScrapeJobService[] | undefined>;
117
+ readonly stackId: pulumi.Output<string>;
118
+ /**
119
+ * Create a ProviderAwsCloudwatchScrapeJob resource with the given unique name, arguments, and options.
120
+ *
121
+ * @param name The _unique_ name of the resource.
122
+ * @param args The arguments to use to populate this resource's properties.
123
+ * @param opts A bag of options that control this resource's behavior.
124
+ */
125
+ constructor(name: string, args: ProviderAwsCloudwatchScrapeJobArgs, opts?: pulumi.CustomResourceOptions);
126
+ }
127
+ /**
128
+ * Input properties used for looking up and filtering ProviderAwsCloudwatchScrapeJob resources.
129
+ */
130
+ export interface ProviderAwsCloudwatchScrapeJobState {
131
+ /**
132
+ * 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.
133
+ */
134
+ awsAccountResourceId?: pulumi.Input<string>;
135
+ /**
136
+ * 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.
137
+ */
138
+ customNamespaces?: pulumi.Input<pulumi.Input<inputs.cloud.ProviderAwsCloudwatchScrapeJobCustomNamespace>[]>;
139
+ /**
140
+ * When the CloudWatch Scrape Job is disabled, this will show the reason that it is in that state.
141
+ */
142
+ disabledReason?: pulumi.Input<string>;
143
+ /**
144
+ * Whether the CloudWatch Scrape Job is enabled or not.
145
+ */
146
+ enabled?: pulumi.Input<boolean>;
147
+ /**
148
+ * When enabled, AWS resource tags are exported as Prometheus labels to metrics formatted as `aws_<service_name>_info`.
149
+ */
150
+ exportTags?: pulumi.Input<boolean>;
151
+ name?: pulumi.Input<string>;
152
+ /**
153
+ * A subset of the regions that are configured in the associated AWS Account resource to apply to this scrape job. If not set or empty, all of the Account resource's regions are scraped.
154
+ */
155
+ regionsSubsetOverrides?: pulumi.Input<pulumi.Input<string>[]>;
156
+ /**
157
+ * One or more configuration blocks to configure AWS services 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.
158
+ */
159
+ services?: pulumi.Input<pulumi.Input<inputs.cloud.ProviderAwsCloudwatchScrapeJobService>[]>;
160
+ stackId?: pulumi.Input<string>;
161
+ }
162
+ /**
163
+ * The set of arguments for constructing a ProviderAwsCloudwatchScrapeJob resource.
164
+ */
165
+ export interface ProviderAwsCloudwatchScrapeJobArgs {
166
+ /**
167
+ * 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.
168
+ */
169
+ awsAccountResourceId: pulumi.Input<string>;
170
+ /**
171
+ * 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.
172
+ */
173
+ customNamespaces?: pulumi.Input<pulumi.Input<inputs.cloud.ProviderAwsCloudwatchScrapeJobCustomNamespace>[]>;
174
+ /**
175
+ * Whether the CloudWatch Scrape Job is enabled or not.
176
+ */
177
+ enabled?: pulumi.Input<boolean>;
178
+ /**
179
+ * When enabled, AWS resource tags are exported as Prometheus labels to metrics formatted as `aws_<service_name>_info`.
180
+ */
181
+ exportTags?: pulumi.Input<boolean>;
182
+ name?: pulumi.Input<string>;
183
+ /**
184
+ * A subset of the regions that are configured in the associated AWS Account resource to apply to this scrape job. If not set or empty, all of the Account resource's regions are scraped.
185
+ */
186
+ regionsSubsetOverrides?: pulumi.Input<pulumi.Input<string>[]>;
187
+ /**
188
+ * One or more configuration blocks to configure AWS services 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.
189
+ */
190
+ services?: pulumi.Input<pulumi.Input<inputs.cloud.ProviderAwsCloudwatchScrapeJobService>[]>;
191
+ stackId: pulumi.Input<string>;
192
+ }
@@ -0,0 +1,139 @@
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.ProviderAwsCloudwatchScrapeJob = 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 aws from "@pulumi/aws";
14
+ * import * as grafana from "@pulumi/grafana";
15
+ * import * as grafana from "@pulumiverse/grafana";
16
+ *
17
+ * const test = grafana.cloud.getStack({
18
+ * slug: "gcloudstacktest",
19
+ * });
20
+ * const testGetRole = aws.iam.getRole({
21
+ * name: "my-role",
22
+ * });
23
+ * const testProviderAwsAccount = new grafana.cloud.ProviderAwsAccount("test", {
24
+ * stackId: test.then(test => test.id),
25
+ * roleArn: testGetRole.then(testGetRole => testGetRole.arn),
26
+ * regions: [
27
+ * "us-east-1",
28
+ * "us-east-2",
29
+ * "us-west-1",
30
+ * ],
31
+ * });
32
+ * const testProviderAwsCloudwatchScrapeJob = new grafana.cloud.ProviderAwsCloudwatchScrapeJob("test", {
33
+ * stackId: test.then(test => test.id),
34
+ * name: "my-cloudwatch-scrape-job",
35
+ * awsAccountResourceId: testProviderAwsAccount.resourceId,
36
+ * exportTags: true,
37
+ * services: [{
38
+ * name: "AWS/EC2",
39
+ * metrics: [
40
+ * {
41
+ * name: "CPUUtilization",
42
+ * statistics: ["Average"],
43
+ * },
44
+ * {
45
+ * name: "StatusCheckFailed",
46
+ * statistics: ["Maximum"],
47
+ * },
48
+ * ],
49
+ * scrapeIntervalSeconds: 300,
50
+ * resourceDiscoveryTagFilters: [{
51
+ * key: "k8s.io/cluster-autoscaler/enabled",
52
+ * value: "true",
53
+ * }],
54
+ * tagsToAddToMetrics: ["eks:cluster-name"],
55
+ * }],
56
+ * customNamespaces: [{
57
+ * name: "CoolApp",
58
+ * metrics: [{
59
+ * name: "CoolMetric",
60
+ * statistics: [
61
+ * "Maximum",
62
+ * "Sum",
63
+ * ],
64
+ * }],
65
+ * scrapeIntervalSeconds: 300,
66
+ * }],
67
+ * });
68
+ * ```
69
+ *
70
+ * ## Import
71
+ *
72
+ * ```sh
73
+ * $ pulumi import grafana:cloud/providerAwsCloudwatchScrapeJob:ProviderAwsCloudwatchScrapeJob name "{{ stack_id }}:{{ name }}"
74
+ * ```
75
+ */
76
+ class ProviderAwsCloudwatchScrapeJob extends pulumi.CustomResource {
77
+ /**
78
+ * Get an existing ProviderAwsCloudwatchScrapeJob resource's state with the given name, ID, and optional extra
79
+ * properties used to qualify the lookup.
80
+ *
81
+ * @param name The _unique_ name of the resulting resource.
82
+ * @param id The _unique_ provider ID of the resource to lookup.
83
+ * @param state Any extra arguments used during the lookup.
84
+ * @param opts Optional settings to control the behavior of the CustomResource.
85
+ */
86
+ static get(name, id, state, opts) {
87
+ return new ProviderAwsCloudwatchScrapeJob(name, state, Object.assign(Object.assign({}, opts), { id: id }));
88
+ }
89
+ /**
90
+ * Returns true if the given object is an instance of ProviderAwsCloudwatchScrapeJob. This is designed to work even
91
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
92
+ */
93
+ static isInstance(obj) {
94
+ if (obj === undefined || obj === null) {
95
+ return false;
96
+ }
97
+ return obj['__pulumiType'] === ProviderAwsCloudwatchScrapeJob.__pulumiType;
98
+ }
99
+ constructor(name, argsOrState, opts) {
100
+ let resourceInputs = {};
101
+ opts = opts || {};
102
+ if (opts.id) {
103
+ const state = argsOrState;
104
+ resourceInputs["awsAccountResourceId"] = state ? state.awsAccountResourceId : undefined;
105
+ resourceInputs["customNamespaces"] = state ? state.customNamespaces : undefined;
106
+ resourceInputs["disabledReason"] = state ? state.disabledReason : undefined;
107
+ resourceInputs["enabled"] = state ? state.enabled : undefined;
108
+ resourceInputs["exportTags"] = state ? state.exportTags : undefined;
109
+ resourceInputs["name"] = state ? state.name : undefined;
110
+ resourceInputs["regionsSubsetOverrides"] = state ? state.regionsSubsetOverrides : undefined;
111
+ resourceInputs["services"] = state ? state.services : undefined;
112
+ resourceInputs["stackId"] = state ? state.stackId : undefined;
113
+ }
114
+ else {
115
+ const args = argsOrState;
116
+ if ((!args || args.awsAccountResourceId === undefined) && !opts.urn) {
117
+ throw new Error("Missing required property 'awsAccountResourceId'");
118
+ }
119
+ if ((!args || args.stackId === undefined) && !opts.urn) {
120
+ throw new Error("Missing required property 'stackId'");
121
+ }
122
+ resourceInputs["awsAccountResourceId"] = args ? args.awsAccountResourceId : undefined;
123
+ resourceInputs["customNamespaces"] = args ? args.customNamespaces : undefined;
124
+ resourceInputs["enabled"] = args ? args.enabled : undefined;
125
+ resourceInputs["exportTags"] = args ? args.exportTags : undefined;
126
+ resourceInputs["name"] = args ? args.name : undefined;
127
+ resourceInputs["regionsSubsetOverrides"] = args ? args.regionsSubsetOverrides : undefined;
128
+ resourceInputs["services"] = args ? args.services : undefined;
129
+ resourceInputs["stackId"] = args ? args.stackId : undefined;
130
+ resourceInputs["disabledReason"] = undefined /*out*/;
131
+ }
132
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
133
+ super(ProviderAwsCloudwatchScrapeJob.__pulumiType, name, resourceInputs, opts);
134
+ }
135
+ }
136
+ exports.ProviderAwsCloudwatchScrapeJob = ProviderAwsCloudwatchScrapeJob;
137
+ /** @internal */
138
+ ProviderAwsCloudwatchScrapeJob.__pulumiType = 'grafana:cloud/providerAwsCloudwatchScrapeJob:ProviderAwsCloudwatchScrapeJob';
139
+ //# sourceMappingURL=providerAwsCloudwatchScrapeJob.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"providerAwsCloudwatchScrapeJob.js","sourceRoot":"","sources":["../../cloud/providerAwsCloudwatchScrapeJob.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmEG;AACH,MAAa,8BAA+B,SAAQ,MAAM,CAAC,cAAc;IACrE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA2C,EAAE,IAAmC;QACzI,OAAO,IAAI,8BAA8B,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACrF,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,8BAA8B,CAAC,YAAY,CAAC;IAC/E,CAAC;IAyCD,YAAY,IAAY,EAAE,WAAsF,EAAE,IAAmC;QACjJ,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA8D,CAAC;YAC7E,cAAc,CAAC,sBAAsB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC,CAAC,SAAS,CAAC;YACxF,cAAc,CAAC,kBAAkB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAA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PolicyToken: string | undefined;
17
17
  * Grafana Cloud's API URL. May alternatively be set via the `GRAFANA_CLOUD_API_URL` environment variable.
18
18
  */
19
19
  export declare const cloudApiUrl: string | undefined;
20
+ /**
21
+ * A Grafana Cloud Provider access token. May alternatively be set via the `GRAFANA_CLOUD_PROVIDER_ACCESS_TOKEN`
22
+ * environment variable.
23
+ */
24
+ export declare const cloudProviderAccessToken: string | undefined;
25
+ /**
26
+ * A Grafana Cloud Provider backend address. May alternatively be set via the `GRAFANA_CLOUD_PROVIDER_URL` environment
27
+ * variable.
28
+ */
29
+ export declare const cloudProviderUrl: string | undefined;
30
+ /**
31
+ * A Grafana Connections API access token. May alternatively be set via the `GRAFANA_CONNECTIONS_API_ACCESS_TOKEN`
32
+ * environment variable.
33
+ */
34
+ export declare const connectionsApiAccessToken: string | undefined;
35
+ /**
36
+ * A Grafana Connections API address. May alternatively be set via the `GRAFANA_CONNECTIONS_API_URL` environment variable.
37
+ */
38
+ export declare const connectionsApiUrl: string | undefined;
20
39
  /**
21
40
  * Skip TLS certificate verification. May alternatively be set via the `GRAFANA_INSECURE_SKIP_VERIFY` environment variable.
22
41
  */
package/config/vars.js CHANGED
@@ -33,6 +33,30 @@ Object.defineProperty(exports, "cloudApiUrl", {
33
33
  },
34
34
  enumerable: true,
35
35
  });
36
+ Object.defineProperty(exports, "cloudProviderAccessToken", {
37
+ get() {
38
+ return __config.get("cloudProviderAccessToken");
39
+ },
40
+ enumerable: true,
41
+ });
42
+ Object.defineProperty(exports, "cloudProviderUrl", {
43
+ get() {
44
+ return __config.get("cloudProviderUrl");
45
+ },
46
+ enumerable: true,
47
+ });
48
+ Object.defineProperty(exports, "connectionsApiAccessToken", {
49
+ get() {
50
+ return __config.get("connectionsApiAccessToken");
51
+ },
52
+ enumerable: true,
53
+ });
54
+ Object.defineProperty(exports, "connectionsApiUrl", {
55
+ get() {
56
+ return __config.get("connectionsApiUrl");
57
+ },
58
+ enumerable: true,
59
+ });
36
60
  Object.defineProperty(exports,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AgB,CAAC,CAAC;IACvE,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,sBAAsB,EAAE;IACnD,GAAG;;QACC,OAAO,MAAA,QAAQ,CAAC,SAAS,CAAU,sBAAsB,CAAC,mCAAI,SAAS,CAAC,aAAa,CAAC,gCAAgC,CAAC,CAAC;IAC5H,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAOH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,SAAS,EAAE;IACtC,GAAG;;QACC,OAAO,MAAA,QAAQ,CAAC,GAAG,CAAC,SAAS,CAAC,mCAAI,SAAS,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC;IAC3E,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAOH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,EAAE;IACrC,GAAG;;QACC,OAAO,MAAA,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,mCAAI,SAAS,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;IACzE,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,KAAK,EAAE;IAClC,GAAG;;QACC,OAAO,MAAA,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,mCAAI,SAAS,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;IAClE,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC"}
@@ -0,0 +1,151 @@
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 "@pulumiverse/grafana";
8
+ *
9
+ * const test = new grafana.ConnectionsMetricsEndpointScrapeJob("test", {
10
+ * stackId: "1",
11
+ * name: "my-scrape-job",
12
+ * enabled: true,
13
+ * authenticationMethod: "basic",
14
+ * authenticationBasicUsername: "my-username",
15
+ * authenticationBasicPassword: "my-password",
16
+ * url: "https://grafana.com/metrics",
17
+ * scrapeIntervalSeconds: 120,
18
+ * });
19
+ * ```
20
+ *
21
+ * ## Import
22
+ *
23
+ * ```sh
24
+ * $ pulumi import grafana:index/connectionsMetricsEndpointScrapeJob:ConnectionsMetricsEndpointScrapeJob name "{{ stack_id }}:{{ name }}"
25
+ * ```
26
+ */
27
+ export declare class ConnectionsMetricsEndpointScrapeJob extends pulumi.CustomResource {
28
+ /**
29
+ * Get an existing ConnectionsMetricsEndpointScrapeJob resource's state with the given name, ID, and optional extra
30
+ * properties used to qualify the lookup.
31
+ *
32
+ * @param name The _unique_ name of the resulting resource.
33
+ * @param id The _unique_ provider ID of the resource to lookup.
34
+ * @param state Any extra arguments used during the lookup.
35
+ * @param opts Optional settings to control the behavior of the CustomResource.
36
+ */
37
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ConnectionsMetricsEndpointScrapeJobState, opts?: pulumi.CustomResourceOptions): ConnectionsMetricsEndpointScrapeJob;
38
+ /**
39
+ * Returns true if the given object is an instance of ConnectionsMetricsEndpointScrapeJob. This is designed to work even
40
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
41
+ */
42
+ static isInstance(obj: any): obj is ConnectionsMetricsEndpointScrapeJob;
43
+ /**
44
+ * Password for basic authentication, use if scrape job is using basic authentication method
45
+ */
46
+ readonly authenticationBasicPassword: pulumi.Output<string | undefined>;
47
+ /**
48
+ * Username for basic authentication, use if scrape job is using basic authentication method
49
+ */
50
+ readonly authenticationBasicUsername: pulumi.Output<string | undefined>;
51
+ /**
52
+ * Bearer token used for authentication, use if scrape job is using bearer authentication method
53
+ */
54
+ readonly authenticationBearerToken: pulumi.Output<string | undefined>;
55
+ /**
56
+ * Method to pass authentication credentials: basic or bearer.
57
+ */
58
+ readonly authenticationMethod: pulumi.Output<string>;
59
+ /**
60
+ * Whether the metrics endpoint scrape job is enabled or not.
61
+ */
62
+ readonly enabled: pulumi.Output<boolean>;
63
+ readonly name: pulumi.Output<string>;
64
+ /**
65
+ * Frequency for scraping the metrics endpoint: 30, 60, or 120 seconds.
66
+ */
67
+ readonly scrapeIntervalSeconds: pulumi.Output<number>;
68
+ readonly stackId: pulumi.Output<string>;
69
+ /**
70
+ * The url to scrape metrics from; a valid HTTPs URL is required.
71
+ */
72
+ readonly url: pulumi.Output<string>;
73
+ /**
74
+ * Create a ConnectionsMetricsEndpointScrapeJob resource with the given unique name, arguments, and options.
75
+ *
76
+ * @param name The _unique_ name of the resource.
77
+ * @param args The arguments to use to populate this resource's properties.
78
+ * @param opts A bag of options that control this resource's behavior.
79
+ */
80
+ constructor(name: string, args: ConnectionsMetricsEndpointScrapeJobArgs, opts?: pulumi.CustomResourceOptions);
81
+ }
82
+ /**
83
+ * Input properties used for looking up and filtering ConnectionsMetricsEndpointScrapeJob resources.
84
+ */
85
+ export interface ConnectionsMetricsEndpointScrapeJobState {
86
+ /**
87
+ * Password for basic authentication, use if scrape job is using basic authentication method
88
+ */
89
+ authenticationBasicPassword?: pulumi.Input<string>;
90
+ /**
91
+ * Username for basic authentication, use if scrape job is using basic authentication method
92
+ */
93
+ authenticationBasicUsername?: pulumi.Input<string>;
94
+ /**
95
+ * Bearer token used for authentication, use if scrape job is using bearer authentication method
96
+ */
97
+ authenticationBearerToken?: pulumi.Input<string>;
98
+ /**
99
+ * Method to pass authentication credentials: basic or bearer.
100
+ */
101
+ authenticationMethod?: pulumi.Input<string>;
102
+ /**
103
+ * Whether the metrics endpoint scrape job is enabled or not.
104
+ */
105
+ enabled?: pulumi.Input<boolean>;
106
+ name?: pulumi.Input<string>;
107
+ /**
108
+ * Frequency for scraping the metrics endpoint: 30, 60, or 120 seconds.
109
+ */
110
+ scrapeIntervalSeconds?: pulumi.Input<number>;
111
+ stackId?: pulumi.Input<string>;
112
+ /**
113
+ * The url to scrape metrics from; a valid HTTPs URL is required.
114
+ */
115
+ url?: pulumi.Input<string>;
116
+ }
117
+ /**
118
+ * The set of arguments for constructing a ConnectionsMetricsEndpointScrapeJob resource.
119
+ */
120
+ export interface ConnectionsMetricsEndpointScrapeJobArgs {
121
+ /**
122
+ * Password for basic authentication, use if scrape job is using basic authentication method
123
+ */
124
+ authenticationBasicPassword?: pulumi.Input<string>;
125
+ /**
126
+ * Username for basic authentication, use if scrape job is using basic authentication method
127
+ */
128
+ authenticationBasicUsername?: pulumi.Input<string>;
129
+ /**
130
+ * Bearer token used for authentication, use if scrape job is using bearer authentication method
131
+ */
132
+ authenticationBearerToken?: pulumi.Input<string>;
133
+ /**
134
+ * Method to pass authentication credentials: basic or bearer.
135
+ */
136
+ authenticationMethod: pulumi.Input<string>;
137
+ /**
138
+ * Whether the metrics endpoint scrape job is enabled or not.
139
+ */
140
+ enabled?: pulumi.Input<boolean>;
141
+ name?: pulumi.Input<string>;
142
+ /**
143
+ * Frequency for scraping the metrics endpoint: 30, 60, or 120 seconds.
144
+ */
145
+ scrapeIntervalSeconds?: pulumi.Input<number>;
146
+ stackId: pulumi.Input<string>;
147
+ /**
148
+ * The url to scrape metrics from; a valid HTTPs URL is required.
149
+ */
150
+ url: pulumi.Input<string>;
151
+ }
@@ -0,0 +1,101 @@
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.ConnectionsMetricsEndpointScrapeJob = 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 "@pulumiverse/grafana";
14
+ *
15
+ * const test = new grafana.ConnectionsMetricsEndpointScrapeJob("test", {
16
+ * stackId: "1",
17
+ * name: "my-scrape-job",
18
+ * enabled: true,
19
+ * authenticationMethod: "basic",
20
+ * authenticationBasicUsername: "my-username",
21
+ * authenticationBasicPassword: "my-password",
22
+ * url: "https://grafana.com/metrics",
23
+ * scrapeIntervalSeconds: 120,
24
+ * });
25
+ * ```
26
+ *
27
+ * ## Import
28
+ *
29
+ * ```sh
30
+ * $ pulumi import grafana:index/connectionsMetricsEndpointScrapeJob:ConnectionsMetricsEndpointScrapeJob name "{{ stack_id }}:{{ name }}"
31
+ * ```
32
+ */
33
+ class ConnectionsMetricsEndpointScrapeJob extends pulumi.CustomResource {
34
+ /**
35
+ * Get an existing ConnectionsMetricsEndpointScrapeJob resource's state with the given name, ID, and optional extra
36
+ * properties used to qualify the lookup.
37
+ *
38
+ * @param name The _unique_ name of the resulting resource.
39
+ * @param id The _unique_ provider ID of the resource to lookup.
40
+ * @param state Any extra arguments used during the lookup.
41
+ * @param opts Optional settings to control the behavior of the CustomResource.
42
+ */
43
+ static get(name, id, state, opts) {
44
+ return new ConnectionsMetricsEndpointScrapeJob(name, state, Object.assign(Object.assign({}, opts), { id: id }));
45
+ }
46
+ /**
47
+ * Returns true if the given object is an instance of ConnectionsMetricsEndpointScrapeJob. This is designed to work even
48
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
49
+ */
50
+ static isInstance(obj) {
51
+ if (obj === undefined || obj === null) {
52
+ return false;
53
+ }
54
+ return obj['__pulumiType'] === ConnectionsMetricsEndpointScrapeJob.__pulumiType;
55
+ }
56
+ constructor(name, argsOrState, opts) {
57
+ let resourceInputs = {};
58
+ opts = opts || {};
59
+ if (opts.id) {
60
+ const state = argsOrState;
61
+ resourceInputs["authenticationBasicPassword"] = state ? state.authenticationBasicPassword : undefined;
62
+ resourceInputs["authenticationBasicUsername"] = state ? state.authenticationBasicUsername : undefined;
63
+ resourceInputs["authenticationBearerToken"] = state ? state.authenticationBearerToken : undefined;
64
+ resourceInputs["authenticationMethod"] = state ? state.authenticationMethod : undefined;
65
+ resourceInputs["enabled"] = state ? state.enabled : undefined;
66
+ resourceInputs["name"] = state ? state.name : undefined;
67
+ resourceInputs["scrapeIntervalSeconds"] = state ? state.scrapeIntervalSeconds : undefined;
68
+ resourceInputs["stackId"] = state ? state.stackId : undefined;
69
+ resourceInputs["url"] = state ? state.url : undefined;
70
+ }
71
+ else {
72
+ const args = argsOrState;
73
+ if ((!args || args.authenticationMethod === undefined) && !opts.urn) {
74
+ throw new Error("Missing required property 'authenticationMethod'");
75
+ }
76
+ if ((!args || args.stackId === undefined) && !opts.urn) {
77
+ throw new Error("Missing required property 'stackId'");
78
+ }
79
+ if ((!args || args.url === undefined) && !opts.urn) {
80
+ throw new Error("Missing required property 'url'");
81
+ }
82
+ resourceInputs["authenticationBasicPassword"] = (args === null || args === void 0 ? void 0 : args.authenticationBasicPassword) ? pulumi.secret(args.authenticationBasicPassword) : undefined;
83
+ resourceInputs["authenticationBasicUsername"] = args ? args.authenticationBasicUsername : undefined;
84
+ resourceInputs["authenticationBearerToken"] = (args === null || args === void 0 ? void 0 : args.authenticationBearerToken) ? pulumi.secret(args.authenticationBearerToken) : undefined;
85
+ resourceInputs["authenticationMethod"] = args ? args.authenticationMethod : undefined;
86
+ resourceInputs["enabled"] = args ? args.enabled : undefined;
87
+ resourceInputs["name"] = args ? args.name : undefined;
88
+ resourceInputs["scrapeIntervalSeconds"] = args ? args.scrapeIntervalSeconds : undefined;
89
+ resourceInputs["stackId"] = args ? args.stackId : undefined;
90
+ resourceInputs["url"] = args ? args.url : undefined;
91
+ }
92
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
93
+ const secretOpts = { additionalSecretOutputs: ["authenticationBasicPassword", "authenticationBearerToken"] };
94
+ opts = pulumi.mergeOptions(opts, secretOpts);
95
+ super(ConnectionsMetricsEndpointScrapeJob.__pulumiType, name, resourceInputs, opts);
96
+ }
97
+ }
98
+ exports.ConnectionsMetricsEndpointScrapeJob = ConnectionsMetricsEndpointScrapeJob;
99
+ /** @internal */
100
+ ConnectionsMetricsEndpointScrapeJob.__pulumiType = 'grafana:index/connectionsMetricsEndpointScrapeJob:ConnectionsMetricsEndpointScrapeJob';
101
+ //# sourceMappingURL=connectionsMetricsEndpointScrapeJob.js.map