@pulumi/newrelic 5.1.0 → 5.2.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.
Files changed (146) hide show
  1. package/alertChannel.d.ts +2 -1
  2. package/alertChannel.js +22 -22
  3. package/alertChannel.js.map +1 -1
  4. package/alertCondition.d.ts +8 -7
  5. package/alertCondition.js +22 -22
  6. package/alertCondition.js.map +1 -1
  7. package/alertMutingRule.d.ts +5 -4
  8. package/alertMutingRule.js +22 -22
  9. package/alertMutingRule.js.map +1 -1
  10. package/alertPolicy.js +20 -20
  11. package/alertPolicy.js.map +1 -1
  12. package/alertPolicyChannel.js +22 -22
  13. package/alertPolicyChannel.js.map +1 -1
  14. package/apiAccessKey.js +24 -22
  15. package/apiAccessKey.js.map +1 -1
  16. package/cloud/awsGovcloudIntegrations.d.ts +2 -1
  17. package/cloud/awsGovcloudIntegrations.js +22 -22
  18. package/cloud/awsGovcloudIntegrations.js.map +1 -1
  19. package/cloud/awsGovcloudLinkAccount.js +26 -24
  20. package/cloud/awsGovcloudLinkAccount.js.map +1 -1
  21. package/cloud/awsIntegrations.d.ts +2 -1
  22. package/cloud/awsIntegrations.js +22 -22
  23. package/cloud/awsIntegrations.js.map +1 -1
  24. package/cloud/awsLinkAccount.js +22 -22
  25. package/cloud/awsLinkAccount.js.map +1 -1
  26. package/cloud/azureIntegrations.d.ts +89 -64
  27. package/cloud/azureIntegrations.js +26 -22
  28. package/cloud/azureIntegrations.js.map +1 -1
  29. package/cloud/azureLinkAccount.js +25 -23
  30. package/cloud/azureLinkAccount.js.map +1 -1
  31. package/cloud/gcpIntegrations.d.ts +14 -1
  32. package/cloud/gcpIntegrations.js +24 -22
  33. package/cloud/gcpIntegrations.js.map +1 -1
  34. package/cloud/gcpLinkAccount.js +21 -21
  35. package/cloud/gcpLinkAccount.js.map +1 -1
  36. package/cloud/index.d.ts +24 -8
  37. package/cloud/index.js +25 -40
  38. package/cloud/index.js.map +1 -1
  39. package/entityTags.d.ts +2 -32
  40. package/entityTags.js +22 -53
  41. package/entityTags.js.map +1 -1
  42. package/eventsToMetricsRule.js +22 -22
  43. package/eventsToMetricsRule.js.map +1 -1
  44. package/getAlertChannel.d.ts +1 -1
  45. package/getAlertChannel.js.map +1 -1
  46. package/getEntity.d.ts +14 -4
  47. package/getEntity.js +1 -1
  48. package/getEntity.js.map +1 -1
  49. package/getObfuscationExpression.d.ts +65 -0
  50. package/getObfuscationExpression.js +48 -0
  51. package/getObfuscationExpression.js.map +1 -0
  52. package/index.d.ts +87 -26
  53. package/index.js +92 -81
  54. package/index.js.map +1 -1
  55. package/infraAlertCondition.d.ts +11 -10
  56. package/infraAlertCondition.js +22 -22
  57. package/infraAlertCondition.js.map +1 -1
  58. package/insights/event.d.ts +2 -1
  59. package/insights/event.js +17 -17
  60. package/insights/event.js.map +1 -1
  61. package/insights/index.d.ts +3 -1
  62. package/insights/index.js +4 -19
  63. package/insights/index.js.map +1 -1
  64. package/notificationChannel.d.ts +68 -13
  65. package/notificationChannel.js +88 -34
  66. package/notificationChannel.js.map +1 -1
  67. package/notificationDestination.d.ts +2 -1
  68. package/notificationDestination.js +22 -22
  69. package/notificationDestination.js.map +1 -1
  70. package/nrqlAlertCondition.d.ts +22 -21
  71. package/nrqlAlertCondition.js +27 -27
  72. package/nrqlAlertCondition.js.map +1 -1
  73. package/nrqlDropRule.js +22 -22
  74. package/nrqlDropRule.js.map +1 -1
  75. package/obfuscationExpression.d.ts +108 -0
  76. package/obfuscationExpression.js +82 -0
  77. package/obfuscationExpression.js.map +1 -0
  78. package/obfuscationRule.d.ts +143 -0
  79. package/obfuscationRule.js +101 -0
  80. package/obfuscationRule.js.map +1 -0
  81. package/oneDashboard.d.ts +113 -3
  82. package/oneDashboard.js +123 -24
  83. package/oneDashboard.js.map +1 -1
  84. package/oneDashboardJson.d.ts +3 -15
  85. package/oneDashboardJson.js +22 -34
  86. package/oneDashboardJson.js.map +1 -1
  87. package/oneDashboardRaw.d.ts +4 -1
  88. package/oneDashboardRaw.js +24 -22
  89. package/oneDashboardRaw.js.map +1 -1
  90. package/package.json +2 -2
  91. package/package.json.dev +2 -2
  92. package/plugins/applicationSettings.js +22 -22
  93. package/plugins/applicationSettings.js.map +1 -1
  94. package/plugins/index.d.ts +6 -2
  95. package/plugins/index.js +7 -22
  96. package/plugins/index.js.map +1 -1
  97. package/plugins/workload.d.ts +120 -2
  98. package/plugins/workload.js +110 -23
  99. package/plugins/workload.js.map +1 -1
  100. package/provider.d.ts +3 -3
  101. package/provider.js +19 -14
  102. package/provider.js.map +1 -1
  103. package/serviceLevel.d.ts +2 -1
  104. package/serviceLevel.js +22 -22
  105. package/serviceLevel.js.map +1 -1
  106. package/synthetics/alertCondition.js +22 -22
  107. package/synthetics/alertCondition.js.map +1 -1
  108. package/synthetics/brokenLinksMonitor.d.ts +9 -8
  109. package/synthetics/brokenLinksMonitor.js +26 -26
  110. package/synthetics/brokenLinksMonitor.js.map +1 -1
  111. package/synthetics/certCheckMonitor.d.ts +6 -5
  112. package/synthetics/certCheckMonitor.js +26 -26
  113. package/synthetics/certCheckMonitor.js.map +1 -1
  114. package/synthetics/getPrivateLocation.d.ts +35 -0
  115. package/synthetics/getPrivateLocation.js +27 -0
  116. package/synthetics/getPrivateLocation.js.map +1 -1
  117. package/synthetics/getSecureCredential.d.ts +1 -0
  118. package/synthetics/getSecureCredential.js.map +1 -1
  119. package/synthetics/index.d.ts +33 -11
  120. package/synthetics/index.js +34 -45
  121. package/synthetics/index.js.map +1 -1
  122. package/synthetics/monitor.d.ts +29 -33
  123. package/synthetics/monitor.js +40 -45
  124. package/synthetics/monitor.js.map +1 -1
  125. package/synthetics/multiLocationAlertCondition.d.ts +2 -1
  126. package/synthetics/multiLocationAlertCondition.js +22 -22
  127. package/synthetics/multiLocationAlertCondition.js.map +1 -1
  128. package/synthetics/privateLocation.d.ts +7 -8
  129. package/synthetics/privateLocation.js +24 -25
  130. package/synthetics/privateLocation.js.map +1 -1
  131. package/synthetics/scriptMonitor.d.ts +15 -21
  132. package/synthetics/scriptMonitor.js +32 -39
  133. package/synthetics/scriptMonitor.js.map +1 -1
  134. package/synthetics/secureCredential.js +25 -23
  135. package/synthetics/secureCredential.js.map +1 -1
  136. package/synthetics/stepMonitor.d.ts +6 -5
  137. package/synthetics/stepMonitor.js +26 -26
  138. package/synthetics/stepMonitor.js.map +1 -1
  139. package/types/index.js.map +1 -1
  140. package/types/input.d.ts +288 -72
  141. package/types/output.d.ts +282 -72
  142. package/utilities.js +13 -1
  143. package/utilities.js.map +1 -1
  144. package/workflow.d.ts +99 -112
  145. package/workflow.js +82 -105
  146. package/workflow.js.map +1 -1
package/oneDashboard.d.ts CHANGED
@@ -1,15 +1,113 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
- import { input as inputs, output as outputs } from "./types";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
3
4
  /**
5
+ * > **NOTE:** The newrelic.OneDashboardJson resource is preferred for configuring dashboards in New Relic. This resource does not support the latest dashboard features and will be deprecated in the future.
6
+ *
4
7
  * ## Example Usage
8
+ * ### Create A New Relic One Dashboard
9
+ *
10
+ * ```typescript
11
+ * import * as pulumi from "@pulumi/pulumi";
12
+ * import * as newrelic from "@pulumi/newrelic";
13
+ *
14
+ * const exampledash = new newrelic.OneDashboard("exampledash", {
15
+ * pages: [{
16
+ * name: "New Relic Terraform Example",
17
+ * variable: [{
18
+ * defaultValues: ["value"],
19
+ * isMultiSelection: true,
20
+ * item: [{
21
+ * title: "item",
22
+ * value: "ITEM",
23
+ * }],
24
+ * name: "variable",
25
+ * nrqlQuery: [{
26
+ * accountIds: [12345],
27
+ * query: "FROM Transaction SELECT average(duration) FACET appName",
28
+ * }],
29
+ * replacementStrategy: "default",
30
+ * title: "title",
31
+ * type: "nrql",
32
+ * }],
33
+ * widgetBars: [
34
+ * {
35
+ * column: 7,
36
+ * height: 3,
37
+ * // Must be another dashboard GUID
38
+ * linkedEntityGuids: ["abc123"],
39
+ * nrqlQueries: [{
40
+ * accountId: 12345,
41
+ * query: "FROM Transaction SELECT average(duration) FACET appName",
42
+ * }],
43
+ * row: 1,
44
+ * title: "Average transaction duration, by application",
45
+ * width: 6,
46
+ * },
47
+ * {
48
+ * column: 1,
49
+ * // Must be another dashboard GUID
50
+ * filterCurrentDashboard: true,
51
+ * height: 3,
52
+ * nrqlQueries: [{
53
+ * accountId: 12345,
54
+ * query: "FROM Transaction SELECT average(duration) FACET appName",
55
+ * }],
56
+ * row: 4,
57
+ * title: "Average transaction duration, by application",
58
+ * width: 6,
59
+ * },
60
+ * ],
61
+ * widgetBillboards: [{
62
+ * column: 1,
63
+ * height: 3,
64
+ * nrqlQueries: [{
65
+ * query: "FROM Transaction SELECT rate(count(*), 1 minute)",
66
+ * }],
67
+ * row: 1,
68
+ * title: "Requests per minute",
69
+ * width: 6,
70
+ * }],
71
+ * widgetLines: [{
72
+ * column: 7,
73
+ * height: 3,
74
+ * nrqlQueries: [
75
+ * {
76
+ * accountId: 12345,
77
+ * query: "FROM Transaction SELECT average(duration) FACET appName",
78
+ * },
79
+ * {
80
+ * query: "FROM Transaction SELECT rate(count(*), 1 minute)",
81
+ * },
82
+ * ],
83
+ * row: 4,
84
+ * title: "Average transaction duration and the request per minute, by application",
85
+ * width: 6,
86
+ * }],
87
+ * widgetMarkdowns: [{
88
+ * column: 1,
89
+ * height: 3,
90
+ * row: 7,
91
+ * text: `### Helpful Links
92
+ *
93
+ * * [New Relic One](https://one.newrelic.com)
94
+ * * [Developer Portal](https://developer.newrelic.com)`,
95
+ * title: "Dashboard Note",
96
+ * width: 12,
97
+ * }],
98
+ * }],
99
+ * permissions: "public_read_only",
100
+ * });
101
+ * ```
102
+ * See additional examples.
5
103
  * ## Additional Examples
6
104
  *
7
105
  * ## Import
8
106
  *
9
- * New Relic dashboards can be imported using their GUID, e.g.
107
+ * New Relic dashboards can be imported using their GUID, e.g. bash
10
108
  *
11
109
  * ```sh
12
- * $ pulumi import newrelic:index/oneDashboard:OneDashboard my_dashboard <Dashboard GUID>
110
+ * $ pulumi import newrelic:index/oneDashboard:OneDashboard my_dashboard <dashboard GUID>
13
111
  * ```
14
112
  *
15
113
  * In addition you can use the [New Relic CLI](https://github.com/newrelic/newrelic-cli#readme) to convert existing dashboards to HCL. [Copy your dashboards as JSON using the UI](https://docs.newrelic.com/docs/query-your-data/explore-query-data/dashboards/dashboards-charts-import-export-data/), save it as a file (for example `terraform.json`), and use the following command to convert it to HCL`cat terraform.json | newrelic utils terraform dashboard --label my_dashboard_resource`.
@@ -58,6 +156,10 @@ export declare class OneDashboard extends pulumi.CustomResource {
58
156
  * Determines who can see the dashboard in an account. Valid values are `private`, `publicReadOnly`, or `publicReadWrite`. Defaults to `publicReadOnly`.
59
157
  */
60
158
  readonly permissions: pulumi.Output<string | undefined>;
159
+ /**
160
+ * A nested block that describes a dashboard-local variable. See Nested variable blocks below for details.
161
+ */
162
+ readonly variables: pulumi.Output<outputs.OneDashboardVariable[] | undefined>;
61
163
  /**
62
164
  * Create a OneDashboard resource with the given unique name, arguments, and options.
63
165
  *
@@ -99,6 +201,10 @@ export interface OneDashboardState {
99
201
  * Determines who can see the dashboard in an account. Valid values are `private`, `publicReadOnly`, or `publicReadWrite`. Defaults to `publicReadOnly`.
100
202
  */
101
203
  permissions?: pulumi.Input<string>;
204
+ /**
205
+ * A nested block that describes a dashboard-local variable. See Nested variable blocks below for details.
206
+ */
207
+ variables?: pulumi.Input<pulumi.Input<inputs.OneDashboardVariable>[]>;
102
208
  }
103
209
  /**
104
210
  * The set of arguments for constructing a OneDashboard resource.
@@ -124,4 +230,8 @@ export interface OneDashboardArgs {
124
230
  * Determines who can see the dashboard in an account. Valid values are `private`, `publicReadOnly`, or `publicReadWrite`. Defaults to `publicReadOnly`.
125
231
  */
126
232
  permissions?: pulumi.Input<string>;
233
+ /**
234
+ * A nested block that describes a dashboard-local variable. See Nested variable blocks below for details.
235
+ */
236
+ variables?: pulumi.Input<pulumi.Input<inputs.OneDashboardVariable>[]>;
127
237
  }
package/oneDashboard.js CHANGED
@@ -6,20 +6,139 @@ exports.OneDashboard = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
+ * > **NOTE:** The newrelic.OneDashboardJson resource is preferred for configuring dashboards in New Relic. This resource does not support the latest dashboard features and will be deprecated in the future.
10
+ *
9
11
  * ## Example Usage
12
+ * ### Create A New Relic One Dashboard
13
+ *
14
+ * ```typescript
15
+ * import * as pulumi from "@pulumi/pulumi";
16
+ * import * as newrelic from "@pulumi/newrelic";
17
+ *
18
+ * const exampledash = new newrelic.OneDashboard("exampledash", {
19
+ * pages: [{
20
+ * name: "New Relic Terraform Example",
21
+ * variable: [{
22
+ * defaultValues: ["value"],
23
+ * isMultiSelection: true,
24
+ * item: [{
25
+ * title: "item",
26
+ * value: "ITEM",
27
+ * }],
28
+ * name: "variable",
29
+ * nrqlQuery: [{
30
+ * accountIds: [12345],
31
+ * query: "FROM Transaction SELECT average(duration) FACET appName",
32
+ * }],
33
+ * replacementStrategy: "default",
34
+ * title: "title",
35
+ * type: "nrql",
36
+ * }],
37
+ * widgetBars: [
38
+ * {
39
+ * column: 7,
40
+ * height: 3,
41
+ * // Must be another dashboard GUID
42
+ * linkedEntityGuids: ["abc123"],
43
+ * nrqlQueries: [{
44
+ * accountId: 12345,
45
+ * query: "FROM Transaction SELECT average(duration) FACET appName",
46
+ * }],
47
+ * row: 1,
48
+ * title: "Average transaction duration, by application",
49
+ * width: 6,
50
+ * },
51
+ * {
52
+ * column: 1,
53
+ * // Must be another dashboard GUID
54
+ * filterCurrentDashboard: true,
55
+ * height: 3,
56
+ * nrqlQueries: [{
57
+ * accountId: 12345,
58
+ * query: "FROM Transaction SELECT average(duration) FACET appName",
59
+ * }],
60
+ * row: 4,
61
+ * title: "Average transaction duration, by application",
62
+ * width: 6,
63
+ * },
64
+ * ],
65
+ * widgetBillboards: [{
66
+ * column: 1,
67
+ * height: 3,
68
+ * nrqlQueries: [{
69
+ * query: "FROM Transaction SELECT rate(count(*), 1 minute)",
70
+ * }],
71
+ * row: 1,
72
+ * title: "Requests per minute",
73
+ * width: 6,
74
+ * }],
75
+ * widgetLines: [{
76
+ * column: 7,
77
+ * height: 3,
78
+ * nrqlQueries: [
79
+ * {
80
+ * accountId: 12345,
81
+ * query: "FROM Transaction SELECT average(duration) FACET appName",
82
+ * },
83
+ * {
84
+ * query: "FROM Transaction SELECT rate(count(*), 1 minute)",
85
+ * },
86
+ * ],
87
+ * row: 4,
88
+ * title: "Average transaction duration and the request per minute, by application",
89
+ * width: 6,
90
+ * }],
91
+ * widgetMarkdowns: [{
92
+ * column: 1,
93
+ * height: 3,
94
+ * row: 7,
95
+ * text: `### Helpful Links
96
+ *
97
+ * * [New Relic One](https://one.newrelic.com)
98
+ * * [Developer Portal](https://developer.newrelic.com)`,
99
+ * title: "Dashboard Note",
100
+ * width: 12,
101
+ * }],
102
+ * }],
103
+ * permissions: "public_read_only",
104
+ * });
105
+ * ```
106
+ * See additional examples.
10
107
  * ## Additional Examples
11
108
  *
12
109
  * ## Import
13
110
  *
14
- * New Relic dashboards can be imported using their GUID, e.g.
111
+ * New Relic dashboards can be imported using their GUID, e.g. bash
15
112
  *
16
113
  * ```sh
17
- * $ pulumi import newrelic:index/oneDashboard:OneDashboard my_dashboard <Dashboard GUID>
114
+ * $ pulumi import newrelic:index/oneDashboard:OneDashboard my_dashboard <dashboard GUID>
18
115
  * ```
19
116
  *
20
117
  * In addition you can use the [New Relic CLI](https://github.com/newrelic/newrelic-cli#readme) to convert existing dashboards to HCL. [Copy your dashboards as JSON using the UI](https://docs.newrelic.com/docs/query-your-data/explore-query-data/dashboards/dashboards-charts-import-export-data/), save it as a file (for example `terraform.json`), and use the following command to convert it to HCL`cat terraform.json | newrelic utils terraform dashboard --label my_dashboard_resource`.
21
118
  */
22
119
  class OneDashboard extends pulumi.CustomResource {
120
+ /**
121
+ * Get an existing OneDashboard resource's state with the given name, ID, and optional extra
122
+ * properties used to qualify the lookup.
123
+ *
124
+ * @param name The _unique_ name of the resulting resource.
125
+ * @param id The _unique_ provider ID of the resource to lookup.
126
+ * @param state Any extra arguments used during the lookup.
127
+ * @param opts Optional settings to control the behavior of the CustomResource.
128
+ */
129
+ static get(name, id, state, opts) {
130
+ return new OneDashboard(name, state, Object.assign(Object.assign({}, opts), { id: id }));
131
+ }
132
+ /**
133
+ * Returns true if the given object is an instance of OneDashboard. This is designed to work even
134
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
135
+ */
136
+ static isInstance(obj) {
137
+ if (obj === undefined || obj === null) {
138
+ return false;
139
+ }
140
+ return obj['__pulumiType'] === OneDashboard.__pulumiType;
141
+ }
23
142
  constructor(name, argsOrState, opts) {
24
143
  let resourceInputs = {};
25
144
  opts = opts || {};
@@ -32,6 +151,7 @@ class OneDashboard extends pulumi.CustomResource {
32
151
  resourceInputs["pages"] = state ? state.pages : undefined;
33
152
  resourceInputs["permalink"] = state ? state.permalink : undefined;
34
153
  resourceInputs["permissions"] = state ? state.permissions : undefined;
154
+ resourceInputs["variables"] = state ? state.variables : undefined;
35
155
  }
36
156
  else {
37
157
  const args = argsOrState;
@@ -43,34 +163,13 @@ class OneDashboard extends pulumi.CustomResource {
43
163
  resourceInputs["name"] = args ? args.name : undefined;
44
164
  resourceInputs["pages"] = args ? args.pages : undefined;
45
165
  resourceInputs["permissions"] = args ? args.permissions : undefined;
166
+ resourceInputs["variables"] = args ? args.variables : undefined;
46
167
  resourceInputs["guid"] = undefined /*out*/;
47
168
  resourceInputs["permalink"] = undefined /*out*/;
48
169
  }
49
170
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
50
171
  super(OneDashboard.__pulumiType, name, resourceInputs, opts);
51
172
  }
52
- /**
53
- * Get an existing OneDashboard resource's state with the given name, ID, and optional extra
54
- * properties used to qualify the lookup.
55
- *
56
- * @param name The _unique_ name of the resulting resource.
57
- * @param id The _unique_ provider ID of the resource to lookup.
58
- * @param state Any extra arguments used during the lookup.
59
- * @param opts Optional settings to control the behavior of the CustomResource.
60
- */
61
- static get(name, id, state, opts) {
62
- return new OneDashboard(name, state, Object.assign(Object.assign({}, opts), { id: id }));
63
- }
64
- /**
65
- * Returns true if the given object is an instance of OneDashboard. This is designed to work even
66
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
67
- */
68
- static isInstance(obj) {
69
- if (obj === undefined || obj === null) {
70
- return false;
71
- }
72
- return obj['__pulumiType'] === OneDashboard.__pulumiType;
73
- }
74
173
  }
75
174
  exports.OneDashboard = OneDashboard;
76
175
  /** @internal */
@@ -1 +1 @@
1
- {"version":3,"file":"oneDashboard.js","sourceRoot":"","sources":["../oneDashboard.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,MAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;IAiEnD,YAAY,IAAY,EAAE,WAAkD,EAAE,IAAmC;QAC7G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA4C,CAAC;YAC3D,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC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
@@ -1,16 +1,4 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
- /**
3
- * ## Example Usage
4
- * ### Create A New Relic One Dashboard From A JSON File
5
- *
6
- * ```typescript
7
- * import * as pulumi from "@pulumi/pulumi";
8
- * import * as fs from "fs";
9
- * import * as newrelic from "@pulumi/newrelic";
10
- *
11
- * const foo = new newrelic.OneDashboardJson("foo", {json: fs.readFileSync("dashboard.json")});
12
- * ```
13
- */
14
2
  export declare class OneDashboardJson extends pulumi.CustomResource {
15
3
  /**
16
4
  * Get an existing OneDashboardJson resource's state with the given name, ID, and optional extra
@@ -36,7 +24,7 @@ export declare class OneDashboardJson extends pulumi.CustomResource {
36
24
  */
37
25
  readonly guid: pulumi.Output<string>;
38
26
  /**
39
- * The JSON exporet of a dashboard. [The JSON can be exported from the UI](https://docs.newrelic.com/docs/query-your-data/explore-query-data/dashboards/dashboards-charts-import-export-data/#dashboards)
27
+ * The JSON export of a dashboard. [The JSON can be exported from the UI](https://docs.newrelic.com/docs/query-your-data/explore-query-data/dashboards/dashboards-charts-import-export-data/#dashboards)
40
28
  */
41
29
  readonly json: pulumi.Output<string>;
42
30
  /**
@@ -69,7 +57,7 @@ export interface OneDashboardJsonState {
69
57
  */
70
58
  guid?: pulumi.Input<string>;
71
59
  /**
72
- * The JSON exporet of a dashboard. [The JSON can be exported from the UI](https://docs.newrelic.com/docs/query-your-data/explore-query-data/dashboards/dashboards-charts-import-export-data/#dashboards)
60
+ * The JSON export of a dashboard. [The JSON can be exported from the UI](https://docs.newrelic.com/docs/query-your-data/explore-query-data/dashboards/dashboards-charts-import-export-data/#dashboards)
73
61
  */
74
62
  json?: pulumi.Input<string>;
75
63
  /**
@@ -90,7 +78,7 @@ export interface OneDashboardJsonArgs {
90
78
  */
91
79
  accountId?: pulumi.Input<number>;
92
80
  /**
93
- * The JSON exporet of a dashboard. [The JSON can be exported from the UI](https://docs.newrelic.com/docs/query-your-data/explore-query-data/dashboards/dashboards-charts-import-export-data/#dashboards)
81
+ * The JSON export of a dashboard. [The JSON can be exported from the UI](https://docs.newrelic.com/docs/query-your-data/explore-query-data/dashboards/dashboards-charts-import-export-data/#dashboards)
94
82
  */
95
83
  json: pulumi.Input<string>;
96
84
  }
@@ -5,19 +5,29 @@ Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.OneDashboardJson = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
- /**
9
- * ## Example Usage
10
- * ### Create A New Relic One Dashboard From A JSON File
11
- *
12
- * ```typescript
13
- * import * as pulumi from "@pulumi/pulumi";
14
- * import * as fs from "fs";
15
- * import * as newrelic from "@pulumi/newrelic";
16
- *
17
- * const foo = new newrelic.OneDashboardJson("foo", {json: fs.readFileSync("dashboard.json")});
18
- * ```
19
- */
20
8
  class OneDashboardJson extends pulumi.CustomResource {
9
+ /**
10
+ * Get an existing OneDashboardJson resource's state with the given name, ID, and optional extra
11
+ * properties used to qualify the lookup.
12
+ *
13
+ * @param name The _unique_ name of the resulting resource.
14
+ * @param id The _unique_ provider ID of the resource to lookup.
15
+ * @param state Any extra arguments used during the lookup.
16
+ * @param opts Optional settings to control the behavior of the CustomResource.
17
+ */
18
+ static get(name, id, state, opts) {
19
+ return new OneDashboardJson(name, state, Object.assign(Object.assign({}, opts), { id: id }));
20
+ }
21
+ /**
22
+ * Returns true if the given object is an instance of OneDashboardJson. This is designed to work even
23
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
24
+ */
25
+ static isInstance(obj) {
26
+ if (obj === undefined || obj === null) {
27
+ return false;
28
+ }
29
+ return obj['__pulumiType'] === OneDashboardJson.__pulumiType;
30
+ }
21
31
  constructor(name, argsOrState, opts) {
22
32
  let resourceInputs = {};
23
33
  opts = opts || {};
@@ -43,28 +53,6 @@ class OneDashboardJson extends pulumi.CustomResource {
43
53
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
44
54
  super(OneDashboardJson.__pulumiType, name, resourceInputs, opts);
45
55
  }
46
- /**
47
- * Get an existing OneDashboardJson resource's state with the given name, ID, and optional extra
48
- * properties used to qualify the lookup.
49
- *
50
- * @param name The _unique_ name of the resulting resource.
51
- * @param id The _unique_ provider ID of the resource to lookup.
52
- * @param state Any extra arguments used during the lookup.
53
- * @param opts Optional settings to control the behavior of the CustomResource.
54
- */
55
- static get(name, id, state, opts) {
56
- return new OneDashboardJson(name, state, Object.assign(Object.assign({}, opts), { id: id }));
57
- }
58
- /**
59
- * Returns true if the given object is an instance of OneDashboardJson. This is designed to work even
60
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
61
- */
62
- static isInstance(obj) {
63
- if (obj === undefined || obj === null) {
64
- return false;
65
- }
66
- return obj['__pulumiType'] === OneDashboardJson.__pulumiType;
67
- }
68
56
  }
69
57
  exports.OneDashboardJson = OneDashboardJson;
70
58
  /** @internal */
@@ -1 +1 @@
1
- {"version":3,"file":"oneDashboardJson.js","sourceRoot":"","sources":["../oneDashboardJson.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;GAWG;AACH,MAAa,gBAAiB,SAAQ,MAAM,CAAC,cAAc;IAyDvD,YAAY,IAAY,EAAE,WAA0D,EAAE,IAAmC;QACrH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAgD,CAAC;YAC/D,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,C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IAAI,CAAC,CAAC;IACrE,CAAC;;AAhFL,4CAiFC;AAnEG,gBAAgB;AACO,6BAAY,GAAG,kDAAkD,CAAC"}
@@ -1,6 +1,9 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
- import { input as inputs, output as outputs } from "./types";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
3
4
  /**
5
+ * > **NOTE:** The newrelic.OneDashboardJson resource is preferred for configuring dashboards in New Relic. This resource does not support the latest dashboard features and will be deprecated in the future.
6
+ *
4
7
  * ## Example Usage
5
8
  * ### Create A New Relic One Dashboard With RawConfiguration
6
9
  *
@@ -6,6 +6,8 @@ exports.OneDashboardRaw = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
+ * > **NOTE:** The newrelic.OneDashboardJson resource is preferred for configuring dashboards in New Relic. This resource does not support the latest dashboard features and will be deprecated in the future.
10
+ *
9
11
  * ## Example Usage
10
12
  * ### Create A New Relic One Dashboard With RawConfiguration
11
13
  *
@@ -81,6 +83,28 @@ const utilities = require("./utilities");
81
83
  * ```
82
84
  */
83
85
  class OneDashboardRaw extends pulumi.CustomResource {
86
+ /**
87
+ * Get an existing OneDashboardRaw resource's state with the given name, ID, and optional extra
88
+ * properties used to qualify the lookup.
89
+ *
90
+ * @param name The _unique_ name of the resulting resource.
91
+ * @param id The _unique_ provider ID of the resource to lookup.
92
+ * @param state Any extra arguments used during the lookup.
93
+ * @param opts Optional settings to control the behavior of the CustomResource.
94
+ */
95
+ static get(name, id, state, opts) {
96
+ return new OneDashboardRaw(name, state, Object.assign(Object.assign({}, opts), { id: id }));
97
+ }
98
+ /**
99
+ * Returns true if the given object is an instance of OneDashboardRaw. This is designed to work even
100
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
101
+ */
102
+ static isInstance(obj) {
103
+ if (obj === undefined || obj === null) {
104
+ return false;
105
+ }
106
+ return obj['__pulumiType'] === OneDashboardRaw.__pulumiType;
107
+ }
84
108
  constructor(name, argsOrState, opts) {
85
109
  let resourceInputs = {};
86
110
  opts = opts || {};
@@ -110,28 +134,6 @@ class OneDashboardRaw extends pulumi.CustomResource {
110
134
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
111
135
  super(OneDashboardRaw.__pulumiType, name, resourceInputs, opts);
112
136
  }
113
- /**
114
- * Get an existing OneDashboardRaw resource's state with the given name, ID, and optional extra
115
- * properties used to qualify the lookup.
116
- *
117
- * @param name The _unique_ name of the resulting resource.
118
- * @param id The _unique_ provider ID of the resource to lookup.
119
- * @param state Any extra arguments used during the lookup.
120
- * @param opts Optional settings to control the behavior of the CustomResource.
121
- */
122
- static get(name, id, state, opts) {
123
- return new OneDashboardRaw(name, state, Object.assign(Object.assign({}, opts), { id: id }));
124
- }
125
- /**
126
- * Returns true if the given object is an instance of OneDashboardRaw. This is designed to work even
127
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
128
- */
129
- static isInstance(obj) {
130
- if (obj === undefined || obj === null) {
131
- return false;
132
- }
133
- return obj['__pulumiType'] === OneDashboardRaw.__pulumiType;
134
- }
135
137
  }
136
138
  exports.OneDashboardRaw = OneDashboardRaw;
137
139
  /** @internal */
@@ -1 +1 @@
1
- {"version":3,"file":"oneDashboardRaw.js","sourceRoot":"","sources":["../oneDashboardRaw.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0EG;AACH,MAAa,eAAgB,SAAQ,MAAM,CAAC,cAAc;IAiEtD,YAAY,IAAY,EAAE,WAAwD,EAAE,IAAmC;QACnH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,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AAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,eAAe,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACpE,CAAC;;AA5FL,0CA6FC;AA/EG,gBAAgB;AACO,4BAAY,GAAG,gDAAgD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumi/newrelic",
3
- "version": "v5.1.0",
3
+ "version": "v5.2.0",
4
4
  "description": "A Pulumi package for creating and managing New Relic resources.",
5
5
  "keywords": [
6
6
  "pulumi",
@@ -11,7 +11,7 @@
11
11
  "license": "Apache-2.0",
12
12
  "scripts": {
13
13
  "build": "tsc",
14
- "install": "node scripts/install-pulumi-plugin.js resource newrelic v5.1.0"
14
+ "install": "node scripts/install-pulumi-plugin.js resource newrelic v5.2.0"
15
15
  },
16
16
  "dependencies": {
17
17
  "@pulumi/pulumi": "^3.0.0"
package/package.json.dev CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumi/newrelic",
3
- "version": "v5.1.0",
3
+ "version": "v5.2.0",
4
4
  "description": "A Pulumi package for creating and managing New Relic resources.",
5
5
  "keywords": [
6
6
  "pulumi",
@@ -11,7 +11,7 @@
11
11
  "license": "Apache-2.0",
12
12
  "scripts": {
13
13
  "build": "tsc",
14
- "install": "node scripts/install-pulumi-plugin.js resource newrelic v5.1.0"
14
+ "install": "node scripts/install-pulumi-plugin.js resource newrelic v5.2.0"
15
15
  },
16
16
  "dependencies": {
17
17
  "@pulumi/pulumi": "^3.0.0"
@@ -38,6 +38,28 @@ const utilities = require("../utilities");
38
38
  * ```
39
39
  */
40
40
  class ApplicationSettings extends pulumi.CustomResource {
41
+ /**
42
+ * Get an existing ApplicationSettings resource's state with the given name, ID, and optional extra
43
+ * properties used to qualify the lookup.
44
+ *
45
+ * @param name The _unique_ name of the resulting resource.
46
+ * @param id The _unique_ provider ID of the resource to lookup.
47
+ * @param state Any extra arguments used during the lookup.
48
+ * @param opts Optional settings to control the behavior of the CustomResource.
49
+ */
50
+ static get(name, id, state, opts) {
51
+ return new ApplicationSettings(name, state, Object.assign(Object.assign({}, opts), { id: id }));
52
+ }
53
+ /**
54
+ * Returns true if the given object is an instance of ApplicationSettings. This is designed to work even
55
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
56
+ */
57
+ static isInstance(obj) {
58
+ if (obj === undefined || obj === null) {
59
+ return false;
60
+ }
61
+ return obj['__pulumiType'] === ApplicationSettings.__pulumiType;
62
+ }
41
63
  constructor(name, argsOrState, opts) {
42
64
  let resourceInputs = {};
43
65
  opts = opts || {};
@@ -67,28 +89,6 @@ class ApplicationSettings extends pulumi.CustomResource {
67
89
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
68
90
  super(ApplicationSettings.__pulumiType, name, resourceInputs, opts);
69
91
  }
70
- /**
71
- * Get an existing ApplicationSettings resource's state with the given name, ID, and optional extra
72
- * properties used to qualify the lookup.
73
- *
74
- * @param name The _unique_ name of the resulting resource.
75
- * @param id The _unique_ provider ID of the resource to lookup.
76
- * @param state Any extra arguments used during the lookup.
77
- * @param opts Optional settings to control the behavior of the CustomResource.
78
- */
79
- static get(name, id, state, opts) {
80
- return new ApplicationSettings(name, state, Object.assign(Object.assign({}, opts), { id: id }));
81
- }
82
- /**
83
- * Returns true if the given object is an instance of ApplicationSettings. This is designed to work even
84
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
85
- */
86
- static isInstance(obj) {
87
- if (obj === undefined || obj === null) {
88
- return false;
89
- }
90
- return obj['__pulumiType'] === ApplicationSettings.__pulumiType;
91
- }
92
92
  }
93
93
  exports.ApplicationSettings = ApplicationSettings;
94
94
  /** @internal */