@pulumi/newrelic 4.20.0 → 5.1.0-alpha.1663018157

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 (88) hide show
  1. package/README.md +2 -2
  2. package/alertPolicyChannel.d.ts +1 -1
  3. package/alertPolicyChannel.js +1 -1
  4. package/cloud/awsIntegrations.d.ts +24 -0
  5. package/cloud/awsIntegrations.js +4 -0
  6. package/cloud/awsIntegrations.js.map +1 -1
  7. package/getAlertChannel.d.ts +9 -0
  8. package/getAlertChannel.js +1 -0
  9. package/getAlertChannel.js.map +1 -1
  10. package/getAlertPolicy.d.ts +6 -0
  11. package/getAlertPolicy.js.map +1 -1
  12. package/index.d.ts +1 -1
  13. package/index.js +5 -5
  14. package/index.js.map +1 -1
  15. package/notificationChannel.d.ts +143 -28
  16. package/notificationChannel.js +112 -17
  17. package/notificationChannel.js.map +1 -1
  18. package/notificationDestination.d.ts +124 -50
  19. package/notificationDestination.js +67 -32
  20. package/notificationDestination.js.map +1 -1
  21. package/nrqlAlertCondition.d.ts +12 -15
  22. package/nrqlAlertCondition.js +0 -3
  23. package/nrqlAlertCondition.js.map +1 -1
  24. package/package.json +2 -2
  25. package/package.json.dev +2 -2
  26. package/plugins/index.d.ts +0 -3
  27. package/plugins/index.js +0 -7
  28. package/plugins/index.js.map +1 -1
  29. package/synthetics/alertCondition.d.ts +3 -19
  30. package/synthetics/alertCondition.js +0 -16
  31. package/synthetics/alertCondition.js.map +1 -1
  32. package/synthetics/brokenLinksMonitor.d.ts +198 -0
  33. package/synthetics/brokenLinksMonitor.js +131 -0
  34. package/synthetics/brokenLinksMonitor.js.map +1 -0
  35. package/synthetics/certCheckMonitor.d.ts +203 -0
  36. package/synthetics/certCheckMonitor.js +135 -0
  37. package/synthetics/certCheckMonitor.js.map +1 -0
  38. package/synthetics/getPrivateLocation.d.ts +34 -0
  39. package/synthetics/getPrivateLocation.js +25 -0
  40. package/synthetics/getPrivateLocation.js.map +1 -0
  41. package/synthetics/getSecureCredential.d.ts +0 -4
  42. package/synthetics/getSecureCredential.js.map +1 -1
  43. package/synthetics/index.d.ts +6 -3
  44. package/synthetics/index.js +26 -7
  45. package/synthetics/index.js.map +1 -1
  46. package/synthetics/monitor.d.ts +221 -77
  47. package/synthetics/monitor.js +114 -47
  48. package/synthetics/monitor.js.map +1 -1
  49. package/synthetics/multiLocationAlertCondition.d.ts +32 -3
  50. package/synthetics/multiLocationAlertCondition.js +29 -0
  51. package/synthetics/multiLocationAlertCondition.js.map +1 -1
  52. package/synthetics/privateLocation.d.ts +139 -0
  53. package/synthetics/privateLocation.js +89 -0
  54. package/synthetics/privateLocation.js.map +1 -0
  55. package/synthetics/scriptMonitor.d.ts +341 -0
  56. package/synthetics/scriptMonitor.js +224 -0
  57. package/synthetics/scriptMonitor.js.map +1 -0
  58. package/synthetics/secureCredential.d.ts +6 -6
  59. package/synthetics/secureCredential.js +2 -2
  60. package/synthetics/stepMonitor.d.ts +192 -0
  61. package/synthetics/stepMonitor.js +115 -0
  62. package/synthetics/stepMonitor.js.map +1 -0
  63. package/types/input.d.ts +213 -126
  64. package/types/output.d.ts +213 -126
  65. package/workflow.d.ts +291 -0
  66. package/workflow.js +208 -0
  67. package/workflow.js.map +1 -0
  68. package/dashboard.d.ts +0 -139
  69. package/dashboard.js +0 -73
  70. package/dashboard.js.map +0 -1
  71. package/plugins/alertCondition.d.ts +0 -167
  72. package/plugins/alertCondition.js +0 -100
  73. package/plugins/alertCondition.js.map +0 -1
  74. package/plugins/getPlugin.d.ts +0 -29
  75. package/plugins/getPlugin.js +0 -29
  76. package/plugins/getPlugin.js.map +0 -1
  77. package/plugins/getPluginComponent.d.ts +0 -33
  78. package/plugins/getPluginComponent.js +0 -30
  79. package/plugins/getPluginComponent.js.map +0 -1
  80. package/synthetics/getMonitor.d.ts +0 -54
  81. package/synthetics/getMonitor.js +0 -41
  82. package/synthetics/getMonitor.js.map +0 -1
  83. package/synthetics/getMonitorLocation.d.ts +0 -71
  84. package/synthetics/getMonitorLocation.js +0 -46
  85. package/synthetics/getMonitorLocation.js.map +0 -1
  86. package/synthetics/monitorScript.d.ts +0 -107
  87. package/synthetics/monitorScript.js +0 -93
  88. package/synthetics/monitorScript.js.map +0 -1
package/workflow.d.ts ADDED
@@ -0,0 +1,291 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import { input as inputs, output as outputs } from "./types";
3
+ /**
4
+ * Use this resource to create and manage New Relic workflow.
5
+ *
6
+ * ## Example Usage
7
+ *
8
+ * ##### Workflow
9
+ * ```typescript
10
+ * import * as pulumi from "@pulumi/pulumi";
11
+ * import * as newrelic from "@pulumi/newrelic";
12
+ *
13
+ * const foo = new newrelic.Workflow("foo", {
14
+ * accountId: 12345678,
15
+ * destinationConfigurations: [
16
+ * {
17
+ * channelId: "20d86999-169c-461a-9c16-3cf330f4b3aa",
18
+ * },
19
+ * {
20
+ * channelId: "e6af0870-cabb-453f-bf0d-fb2b6a14e05c",
21
+ * },
22
+ * ],
23
+ * destinationsEnabled: true,
24
+ * enrichments: {
25
+ * nrqls: [
26
+ * {
27
+ * configurations: [{
28
+ * query: "SELECT * FROM Log",
29
+ * }],
30
+ * name: "Log",
31
+ * },
32
+ * {
33
+ * configurations: [{
34
+ * query: "SELECT * FROM Metric",
35
+ * }],
36
+ * name: "Metric",
37
+ * },
38
+ * ],
39
+ * },
40
+ * enrichmentsEnabled: false,
41
+ * issuesFilter: {
42
+ * name: "filter-name",
43
+ * predicates: [{
44
+ * attribute: "accumulations.sources",
45
+ * operator: "EXACTLY_MATCHES",
46
+ * values: [
47
+ * "newrelic",
48
+ * "pagerduty",
49
+ * ],
50
+ * }],
51
+ * type: "FILTER",
52
+ * },
53
+ * mutingRulesHandling: "NOTIFY_ALL_ISSUES",
54
+ * workflowEnabled: true,
55
+ * });
56
+ * ```
57
+ * ## Full Scenario Example
58
+ *
59
+ * Create a destination resource and reference that destination to the channel resource. Then create a workflow and reference the channel resource to it.
60
+ *
61
+ * ### Create a destination
62
+ * ```typescript
63
+ * import * as pulumi from "@pulumi/pulumi";
64
+ * import * as newrelic from "@pulumi/newrelic";
65
+ *
66
+ * const webhook_destination = new newrelic.NotificationDestination("webhook-destination", {
67
+ * accountId: 12345678,
68
+ * authBasic: {
69
+ * password: "password",
70
+ * user: "username",
71
+ * },
72
+ * properties: [{
73
+ * key: "url",
74
+ * value: "https://webhook.site/94193c01-4a81-4782-8f1b-554d5230395b",
75
+ * }],
76
+ * type: "WEBHOOK",
77
+ * });
78
+ * ```
79
+ *
80
+ * ### Create a channel
81
+ * ```typescript
82
+ * import * as pulumi from "@pulumi/pulumi";
83
+ * import * as newrelic from "@pulumi/newrelic";
84
+ *
85
+ * const webhook_channel = new newrelic.NotificationChannel("webhook-channel", {
86
+ * accountId: 12345678,
87
+ * type: "WEBHOOK",
88
+ * destinationId: newrelic_notification_destination["webhook-destination"].id,
89
+ * product: "IINT",
90
+ * properties: [{
91
+ * key: "payload",
92
+ * value: "{name: foo}",
93
+ * label: "Payload Template",
94
+ * }],
95
+ * });
96
+ * ```
97
+ *
98
+ * ### Create a workflow
99
+ * ```typescript
100
+ * import * as pulumi from "@pulumi/pulumi";
101
+ * import * as newrelic from "@pulumi/newrelic";
102
+ *
103
+ * const workflow_example = new newrelic.Workflow("workflow-example", {
104
+ * accountId: 12345678,
105
+ * mutingRulesHandling: "NOTIFY_ALL_ISSUES",
106
+ * enrichments: {
107
+ * nrqls: [{
108
+ * name: "Log count",
109
+ * configurations: [{
110
+ * query: "SELECT count(*) FROM Log",
111
+ * }],
112
+ * }],
113
+ * },
114
+ * issuesFilter: {
115
+ * name: "Filter-name",
116
+ * type: "FILTER",
117
+ * predicates: [{
118
+ * attribute: "accumulations.sources",
119
+ * operator: "EXACTLY_MATCHES",
120
+ * values: ["newrelic"],
121
+ * }],
122
+ * },
123
+ * destinationConfigurations: [{
124
+ * channelId: newrelic_notification_channel["webhook-channel"].id,
125
+ * }],
126
+ * });
127
+ * ```
128
+ *
129
+ * ## Additional Information
130
+ *
131
+ * More details about the workflows can be found [here](https://docs.newrelic.com/docs/alerts-applied-intelligence/applied-intelligence/incident-workflows/incident-workflows/).
132
+ */
133
+ export declare class Workflow extends pulumi.CustomResource {
134
+ /**
135
+ * Get an existing Workflow resource's state with the given name, ID, and optional extra
136
+ * properties used to qualify the lookup.
137
+ *
138
+ * @param name The _unique_ name of the resulting resource.
139
+ * @param id The _unique_ provider ID of the resource to lookup.
140
+ * @param state Any extra arguments used during the lookup.
141
+ * @param opts Optional settings to control the behavior of the CustomResource.
142
+ */
143
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: WorkflowState, opts?: pulumi.CustomResourceOptions): Workflow;
144
+ /**
145
+ * Returns true if the given object is an instance of Workflow. This is designed to work even
146
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
147
+ */
148
+ static isInstance(obj: any): obj is Workflow;
149
+ /**
150
+ * Determines the New Relic account where the workflow will be created. Defaults to the account associated with the API key used.
151
+ */
152
+ readonly accountId: pulumi.Output<number | undefined>;
153
+ /**
154
+ * A nested block that contains a channel id.
155
+ */
156
+ readonly destinationConfigurations: pulumi.Output<outputs.WorkflowDestinationConfiguration[]>;
157
+ /**
158
+ * Whether destinations are enabled..
159
+ */
160
+ readonly destinationsEnabled: pulumi.Output<boolean | undefined>;
161
+ /**
162
+ * A nested block that describes a workflow's enrichments. See Nested enrichments blocks below for details.
163
+ */
164
+ readonly enrichments: pulumi.Output<outputs.WorkflowEnrichments | undefined>;
165
+ /**
166
+ * Whether enrichments are enabled..
167
+ */
168
+ readonly enrichmentsEnabled: pulumi.Output<boolean | undefined>;
169
+ /**
170
+ * The issues filter. See Nested issuesFilter blocks below for details.
171
+ */
172
+ readonly issuesFilter: pulumi.Output<outputs.WorkflowIssuesFilter>;
173
+ /**
174
+ * The last time notification was sent for this workflow.
175
+ */
176
+ readonly lastRun: pulumi.Output<string>;
177
+ /**
178
+ * Which muting rule handling this workflow has.
179
+ */
180
+ readonly mutingRulesHandling: pulumi.Output<string>;
181
+ /**
182
+ * A nrql enrichment name.
183
+ */
184
+ readonly name: pulumi.Output<string>;
185
+ /**
186
+ * Whether workflow is enabled.
187
+ */
188
+ readonly workflowEnabled: pulumi.Output<boolean | undefined>;
189
+ /**
190
+ * The id of the workflow.
191
+ */
192
+ readonly workflowId: pulumi.Output<string>;
193
+ /**
194
+ * Create a Workflow resource with the given unique name, arguments, and options.
195
+ *
196
+ * @param name The _unique_ name of the resource.
197
+ * @param args The arguments to use to populate this resource's properties.
198
+ * @param opts A bag of options that control this resource's behavior.
199
+ */
200
+ constructor(name: string, args: WorkflowArgs, opts?: pulumi.CustomResourceOptions);
201
+ }
202
+ /**
203
+ * Input properties used for looking up and filtering Workflow resources.
204
+ */
205
+ export interface WorkflowState {
206
+ /**
207
+ * Determines the New Relic account where the workflow will be created. Defaults to the account associated with the API key used.
208
+ */
209
+ accountId?: pulumi.Input<number>;
210
+ /**
211
+ * A nested block that contains a channel id.
212
+ */
213
+ destinationConfigurations?: pulumi.Input<pulumi.Input<inputs.WorkflowDestinationConfiguration>[]>;
214
+ /**
215
+ * Whether destinations are enabled..
216
+ */
217
+ destinationsEnabled?: pulumi.Input<boolean>;
218
+ /**
219
+ * A nested block that describes a workflow's enrichments. See Nested enrichments blocks below for details.
220
+ */
221
+ enrichments?: pulumi.Input<inputs.WorkflowEnrichments>;
222
+ /**
223
+ * Whether enrichments are enabled..
224
+ */
225
+ enrichmentsEnabled?: pulumi.Input<boolean>;
226
+ /**
227
+ * The issues filter. See Nested issuesFilter blocks below for details.
228
+ */
229
+ issuesFilter?: pulumi.Input<inputs.WorkflowIssuesFilter>;
230
+ /**
231
+ * The last time notification was sent for this workflow.
232
+ */
233
+ lastRun?: pulumi.Input<string>;
234
+ /**
235
+ * Which muting rule handling this workflow has.
236
+ */
237
+ mutingRulesHandling?: pulumi.Input<string>;
238
+ /**
239
+ * A nrql enrichment name.
240
+ */
241
+ name?: pulumi.Input<string>;
242
+ /**
243
+ * Whether workflow is enabled.
244
+ */
245
+ workflowEnabled?: pulumi.Input<boolean>;
246
+ /**
247
+ * The id of the workflow.
248
+ */
249
+ workflowId?: pulumi.Input<string>;
250
+ }
251
+ /**
252
+ * The set of arguments for constructing a Workflow resource.
253
+ */
254
+ export interface WorkflowArgs {
255
+ /**
256
+ * Determines the New Relic account where the workflow will be created. Defaults to the account associated with the API key used.
257
+ */
258
+ accountId?: pulumi.Input<number>;
259
+ /**
260
+ * A nested block that contains a channel id.
261
+ */
262
+ destinationConfigurations: pulumi.Input<pulumi.Input<inputs.WorkflowDestinationConfiguration>[]>;
263
+ /**
264
+ * Whether destinations are enabled..
265
+ */
266
+ destinationsEnabled?: pulumi.Input<boolean>;
267
+ /**
268
+ * A nested block that describes a workflow's enrichments. See Nested enrichments blocks below for details.
269
+ */
270
+ enrichments?: pulumi.Input<inputs.WorkflowEnrichments>;
271
+ /**
272
+ * Whether enrichments are enabled..
273
+ */
274
+ enrichmentsEnabled?: pulumi.Input<boolean>;
275
+ /**
276
+ * The issues filter. See Nested issuesFilter blocks below for details.
277
+ */
278
+ issuesFilter: pulumi.Input<inputs.WorkflowIssuesFilter>;
279
+ /**
280
+ * Which muting rule handling this workflow has.
281
+ */
282
+ mutingRulesHandling: pulumi.Input<string>;
283
+ /**
284
+ * A nrql enrichment name.
285
+ */
286
+ name?: pulumi.Input<string>;
287
+ /**
288
+ * Whether workflow is enabled.
289
+ */
290
+ workflowEnabled?: pulumi.Input<boolean>;
291
+ }
package/workflow.js ADDED
@@ -0,0 +1,208 @@
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.Workflow = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Use this resource to create and manage New Relic workflow.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ##### Workflow
14
+ * ```typescript
15
+ * import * as pulumi from "@pulumi/pulumi";
16
+ * import * as newrelic from "@pulumi/newrelic";
17
+ *
18
+ * const foo = new newrelic.Workflow("foo", {
19
+ * accountId: 12345678,
20
+ * destinationConfigurations: [
21
+ * {
22
+ * channelId: "20d86999-169c-461a-9c16-3cf330f4b3aa",
23
+ * },
24
+ * {
25
+ * channelId: "e6af0870-cabb-453f-bf0d-fb2b6a14e05c",
26
+ * },
27
+ * ],
28
+ * destinationsEnabled: true,
29
+ * enrichments: {
30
+ * nrqls: [
31
+ * {
32
+ * configurations: [{
33
+ * query: "SELECT * FROM Log",
34
+ * }],
35
+ * name: "Log",
36
+ * },
37
+ * {
38
+ * configurations: [{
39
+ * query: "SELECT * FROM Metric",
40
+ * }],
41
+ * name: "Metric",
42
+ * },
43
+ * ],
44
+ * },
45
+ * enrichmentsEnabled: false,
46
+ * issuesFilter: {
47
+ * name: "filter-name",
48
+ * predicates: [{
49
+ * attribute: "accumulations.sources",
50
+ * operator: "EXACTLY_MATCHES",
51
+ * values: [
52
+ * "newrelic",
53
+ * "pagerduty",
54
+ * ],
55
+ * }],
56
+ * type: "FILTER",
57
+ * },
58
+ * mutingRulesHandling: "NOTIFY_ALL_ISSUES",
59
+ * workflowEnabled: true,
60
+ * });
61
+ * ```
62
+ * ## Full Scenario Example
63
+ *
64
+ * Create a destination resource and reference that destination to the channel resource. Then create a workflow and reference the channel resource to it.
65
+ *
66
+ * ### Create a destination
67
+ * ```typescript
68
+ * import * as pulumi from "@pulumi/pulumi";
69
+ * import * as newrelic from "@pulumi/newrelic";
70
+ *
71
+ * const webhook_destination = new newrelic.NotificationDestination("webhook-destination", {
72
+ * accountId: 12345678,
73
+ * authBasic: {
74
+ * password: "password",
75
+ * user: "username",
76
+ * },
77
+ * properties: [{
78
+ * key: "url",
79
+ * value: "https://webhook.site/94193c01-4a81-4782-8f1b-554d5230395b",
80
+ * }],
81
+ * type: "WEBHOOK",
82
+ * });
83
+ * ```
84
+ *
85
+ * ### Create a channel
86
+ * ```typescript
87
+ * import * as pulumi from "@pulumi/pulumi";
88
+ * import * as newrelic from "@pulumi/newrelic";
89
+ *
90
+ * const webhook_channel = new newrelic.NotificationChannel("webhook-channel", {
91
+ * accountId: 12345678,
92
+ * type: "WEBHOOK",
93
+ * destinationId: newrelic_notification_destination["webhook-destination"].id,
94
+ * product: "IINT",
95
+ * properties: [{
96
+ * key: "payload",
97
+ * value: "{name: foo}",
98
+ * label: "Payload Template",
99
+ * }],
100
+ * });
101
+ * ```
102
+ *
103
+ * ### Create a workflow
104
+ * ```typescript
105
+ * import * as pulumi from "@pulumi/pulumi";
106
+ * import * as newrelic from "@pulumi/newrelic";
107
+ *
108
+ * const workflow_example = new newrelic.Workflow("workflow-example", {
109
+ * accountId: 12345678,
110
+ * mutingRulesHandling: "NOTIFY_ALL_ISSUES",
111
+ * enrichments: {
112
+ * nrqls: [{
113
+ * name: "Log count",
114
+ * configurations: [{
115
+ * query: "SELECT count(*) FROM Log",
116
+ * }],
117
+ * }],
118
+ * },
119
+ * issuesFilter: {
120
+ * name: "Filter-name",
121
+ * type: "FILTER",
122
+ * predicates: [{
123
+ * attribute: "accumulations.sources",
124
+ * operator: "EXACTLY_MATCHES",
125
+ * values: ["newrelic"],
126
+ * }],
127
+ * },
128
+ * destinationConfigurations: [{
129
+ * channelId: newrelic_notification_channel["webhook-channel"].id,
130
+ * }],
131
+ * });
132
+ * ```
133
+ *
134
+ * ## Additional Information
135
+ *
136
+ * More details about the workflows can be found [here](https://docs.newrelic.com/docs/alerts-applied-intelligence/applied-intelligence/incident-workflows/incident-workflows/).
137
+ */
138
+ class Workflow extends pulumi.CustomResource {
139
+ constructor(name, argsOrState, opts) {
140
+ let resourceInputs = {};
141
+ opts = opts || {};
142
+ if (opts.id) {
143
+ const state = argsOrState;
144
+ resourceInputs["accountId"] = state ? state.accountId : undefined;
145
+ resourceInputs["destinationConfigurations"] = state ? state.destinationConfigurations : undefined;
146
+ resourceInputs["destinationsEnabled"] = state ? state.destinationsEnabled : undefined;
147
+ resourceInputs["enrichments"] = state ? state.enrichments : undefined;
148
+ resourceInputs["enrichmentsEnabled"] = state ? state.enrichmentsEnabled : undefined;
149
+ resourceInputs["issuesFilter"] = state ? state.issuesFilter : undefined;
150
+ resourceInputs["lastRun"] = state ? state.lastRun : undefined;
151
+ resourceInputs["mutingRulesHandling"] = state ? state.mutingRulesHandling : undefined;
152
+ resourceInputs["name"] = state ? state.name : undefined;
153
+ resourceInputs["workflowEnabled"] = state ? state.workflowEnabled : undefined;
154
+ resourceInputs["workflowId"] = state ? state.workflowId : undefined;
155
+ }
156
+ else {
157
+ const args = argsOrState;
158
+ if ((!args || args.destinationConfigurations === undefined) && !opts.urn) {
159
+ throw new Error("Missing required property 'destinationConfigurations'");
160
+ }
161
+ if ((!args || args.issuesFilter === undefined) && !opts.urn) {
162
+ throw new Error("Missing required property 'issuesFilter'");
163
+ }
164
+ if ((!args || args.mutingRulesHandling === undefined) && !opts.urn) {
165
+ throw new Error("Missing required property 'mutingRulesHandling'");
166
+ }
167
+ resourceInputs["accountId"] = args ? args.accountId : undefined;
168
+ resourceInputs["destinationConfigurations"] = args ? args.destinationConfigurations : undefined;
169
+ resourceInputs["destinationsEnabled"] = args ? args.destinationsEnabled : undefined;
170
+ resourceInputs["enrichments"] = args ? args.enrichments : undefined;
171
+ resourceInputs["enrichmentsEnabled"] = args ? args.enrichmentsEnabled : undefined;
172
+ resourceInputs["issuesFilter"] = args ? args.issuesFilter : undefined;
173
+ resourceInputs["mutingRulesHandling"] = args ? args.mutingRulesHandling : undefined;
174
+ resourceInputs["name"] = args ? args.name : undefined;
175
+ resourceInputs["workflowEnabled"] = args ? args.workflowEnabled : undefined;
176
+ resourceInputs["lastRun"] = undefined /*out*/;
177
+ resourceInputs["workflowId"] = undefined /*out*/;
178
+ }
179
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
180
+ super(Workflow.__pulumiType, name, resourceInputs, opts);
181
+ }
182
+ /**
183
+ * Get an existing Workflow resource's state with the given name, ID, and optional extra
184
+ * properties used to qualify the lookup.
185
+ *
186
+ * @param name The _unique_ name of the resulting resource.
187
+ * @param id The _unique_ provider ID of the resource to lookup.
188
+ * @param state Any extra arguments used during the lookup.
189
+ * @param opts Optional settings to control the behavior of the CustomResource.
190
+ */
191
+ static get(name, id, state, opts) {
192
+ return new Workflow(name, state, Object.assign(Object.assign({}, opts), { id: id }));
193
+ }
194
+ /**
195
+ * Returns true if the given object is an instance of Workflow. This is designed to work even
196
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
197
+ */
198
+ static isInstance(obj) {
199
+ if (obj === undefined || obj === null) {
200
+ return false;
201
+ }
202
+ return obj['__pulumiType'] === Workflow.__pulumiType;
203
+ }
204
+ }
205
+ exports.Workflow = Workflow;
206
+ /** @internal */
207
+ Workflow.__pulumiType = 'newrelic:index/workflow:Workflow';
208
+ //# sourceMappingURL=workflow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow.js","sourceRoot":"","sources":["../workflow.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiIG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAiF/C,YAAY,IAAY,EAAE,WAA0C,EAAE,IAAmC;QACrG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAwC,CAAC;YACvD,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,C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AAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5E,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC9C,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACpD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;IAzHD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqB,EAAE,IAAmC;QACnH,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC/D,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,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;;AA1BL,4BA2HC;AA7GG,gBAAgB;AACO,qBAAY,GAAG,kCAAkC,CAAC"}
package/dashboard.d.ts DELETED
@@ -1,139 +0,0 @@
1
- import * as pulumi from "@pulumi/pulumi";
2
- import { input as inputs, output as outputs } from "./types";
3
- /**
4
- * New Relic legacy Dashboards reached end of life Wednesday July 28, 2021.
5
- *
6
- * **This resource has been removed.**
7
- *
8
- * For more information, [click here](https://discuss.newrelic.com/t/important-insights-dashboard-api-end-of-life/149357)
9
- */
10
- export declare class Dashboard extends pulumi.CustomResource {
11
- /**
12
- * Get an existing Dashboard resource's state with the given name, ID, and optional extra
13
- * properties used to qualify the lookup.
14
- *
15
- * @param name The _unique_ name of the resulting resource.
16
- * @param id The _unique_ provider ID of the resource to lookup.
17
- * @param state Any extra arguments used during the lookup.
18
- * @param opts Optional settings to control the behavior of the CustomResource.
19
- */
20
- static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DashboardState, opts?: pulumi.CustomResourceOptions): Dashboard;
21
- /**
22
- * Returns true if the given object is an instance of Dashboard. 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: any): obj is Dashboard;
26
- /**
27
- * The URL for viewing the dashboard.
28
- */
29
- readonly dashboardUrl: pulumi.Output<string>;
30
- /**
31
- * Determines who can edit the dashboard in an account. Valid values are all, editable_by_all, editable_by_owner, or
32
- * read_only. Defaults to editable_by_all.
33
- */
34
- readonly editable: pulumi.Output<string | undefined>;
35
- /**
36
- * A nested block that describes a dashboard filter. Exactly one nested filter block is allowed.
37
- */
38
- readonly filter: pulumi.Output<outputs.DashboardFilter | undefined>;
39
- /**
40
- * New Relic One supports a 3 column grid or a 12 column grid. New Relic Insights supports a 3 column grid.
41
- */
42
- readonly gridColumnCount: pulumi.Output<number | undefined>;
43
- /**
44
- * The icon for the dashboard.
45
- */
46
- readonly icon: pulumi.Output<string | undefined>;
47
- /**
48
- * The title of the dashboard.
49
- */
50
- readonly title: pulumi.Output<string>;
51
- /**
52
- * Determines who can see the dashboard in an account. Valid values are all or owner. Defaults to all.
53
- */
54
- readonly visibility: pulumi.Output<string | undefined>;
55
- /**
56
- * A nested block that describes a visualization. Up to 300 widget blocks are allowed in a dashboard definition.
57
- */
58
- readonly widgets: pulumi.Output<outputs.DashboardWidget[] | undefined>;
59
- /**
60
- * Create a Dashboard resource with the given unique name, arguments, and options.
61
- *
62
- * @param name The _unique_ name of the resource.
63
- * @param args The arguments to use to populate this resource's properties.
64
- * @param opts A bag of options that control this resource's behavior.
65
- */
66
- constructor(name: string, args: DashboardArgs, opts?: pulumi.CustomResourceOptions);
67
- }
68
- /**
69
- * Input properties used for looking up and filtering Dashboard resources.
70
- */
71
- export interface DashboardState {
72
- /**
73
- * The URL for viewing the dashboard.
74
- */
75
- dashboardUrl?: pulumi.Input<string>;
76
- /**
77
- * Determines who can edit the dashboard in an account. Valid values are all, editable_by_all, editable_by_owner, or
78
- * read_only. Defaults to editable_by_all.
79
- */
80
- editable?: pulumi.Input<string>;
81
- /**
82
- * A nested block that describes a dashboard filter. Exactly one nested filter block is allowed.
83
- */
84
- filter?: pulumi.Input<inputs.DashboardFilter>;
85
- /**
86
- * New Relic One supports a 3 column grid or a 12 column grid. New Relic Insights supports a 3 column grid.
87
- */
88
- gridColumnCount?: pulumi.Input<number>;
89
- /**
90
- * The icon for the dashboard.
91
- */
92
- icon?: pulumi.Input<string>;
93
- /**
94
- * The title of the dashboard.
95
- */
96
- title?: pulumi.Input<string>;
97
- /**
98
- * Determines who can see the dashboard in an account. Valid values are all or owner. Defaults to all.
99
- */
100
- visibility?: pulumi.Input<string>;
101
- /**
102
- * A nested block that describes a visualization. Up to 300 widget blocks are allowed in a dashboard definition.
103
- */
104
- widgets?: pulumi.Input<pulumi.Input<inputs.DashboardWidget>[]>;
105
- }
106
- /**
107
- * The set of arguments for constructing a Dashboard resource.
108
- */
109
- export interface DashboardArgs {
110
- /**
111
- * Determines who can edit the dashboard in an account. Valid values are all, editable_by_all, editable_by_owner, or
112
- * read_only. Defaults to editable_by_all.
113
- */
114
- editable?: pulumi.Input<string>;
115
- /**
116
- * A nested block that describes a dashboard filter. Exactly one nested filter block is allowed.
117
- */
118
- filter?: pulumi.Input<inputs.DashboardFilter>;
119
- /**
120
- * New Relic One supports a 3 column grid or a 12 column grid. New Relic Insights supports a 3 column grid.
121
- */
122
- gridColumnCount?: pulumi.Input<number>;
123
- /**
124
- * The icon for the dashboard.
125
- */
126
- icon?: pulumi.Input<string>;
127
- /**
128
- * The title of the dashboard.
129
- */
130
- title: pulumi.Input<string>;
131
- /**
132
- * Determines who can see the dashboard in an account. Valid values are all or owner. Defaults to all.
133
- */
134
- visibility?: pulumi.Input<string>;
135
- /**
136
- * A nested block that describes a visualization. Up to 300 widget blocks are allowed in a dashboard definition.
137
- */
138
- widgets?: pulumi.Input<pulumi.Input<inputs.DashboardWidget>[]>;
139
- }