@pulumi/newrelic 4.18.0 → 4.20.0-alpha.1661884582
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cloud/azureIntegrations.d.ts +3 -3
- package/index.d.ts +2 -0
- package/index.js +10 -0
- package/index.js.map +1 -1
- package/notificationChannel.d.ts +201 -0
- package/notificationChannel.js +170 -0
- package/notificationChannel.js.map +1 -0
- package/notificationDestination.d.ts +198 -0
- package/notificationDestination.js +165 -0
- package/notificationDestination.js.map +1 -0
- package/oneDashboard.d.ts +2 -0
- package/oneDashboard.js +2 -0
- package/oneDashboard.js.map +1 -1
- package/package.json +4 -3
- package/package.json.bak +2 -1
- package/package.json.dev +4 -3
- package/synthetics/monitorScript.d.ts +1 -1
- package/synthetics/monitorScript.js +1 -1
- package/types/input.d.ts +17 -5
- package/types/output.d.ts +13 -1
|
@@ -138,7 +138,7 @@ export declare class AzureIntegrations extends pulumi.CustomResource {
|
|
|
138
138
|
*/
|
|
139
139
|
readonly virtualMachine: pulumi.Output<outputs.cloud.AzureIntegrationsVirtualMachine | undefined>;
|
|
140
140
|
/**
|
|
141
|
-
*
|
|
141
|
+
* for Azure Virtual networks. See Integration blocks below for details.
|
|
142
142
|
*/
|
|
143
143
|
readonly virtualNetworks: pulumi.Output<outputs.cloud.AzureIntegrationsVirtualNetworks | undefined>;
|
|
144
144
|
/**
|
|
@@ -275,7 +275,7 @@ export interface AzureIntegrationsState {
|
|
|
275
275
|
*/
|
|
276
276
|
virtualMachine?: pulumi.Input<inputs.cloud.AzureIntegrationsVirtualMachine>;
|
|
277
277
|
/**
|
|
278
|
-
*
|
|
278
|
+
* for Azure Virtual networks. See Integration blocks below for details.
|
|
279
279
|
*/
|
|
280
280
|
virtualNetworks?: pulumi.Input<inputs.cloud.AzureIntegrationsVirtualNetworks>;
|
|
281
281
|
/**
|
|
@@ -404,7 +404,7 @@ export interface AzureIntegrationsArgs {
|
|
|
404
404
|
*/
|
|
405
405
|
virtualMachine?: pulumi.Input<inputs.cloud.AzureIntegrationsVirtualMachine>;
|
|
406
406
|
/**
|
|
407
|
-
*
|
|
407
|
+
* for Azure Virtual networks. See Integration blocks below for details.
|
|
408
408
|
*/
|
|
409
409
|
virtualNetworks?: pulumi.Input<inputs.cloud.AzureIntegrationsVirtualNetworks>;
|
|
410
410
|
/**
|
package/index.d.ts
CHANGED
|
@@ -15,6 +15,8 @@ export * from "./getCloudAccount";
|
|
|
15
15
|
export * from "./getEntity";
|
|
16
16
|
export * from "./getKeyTransaction";
|
|
17
17
|
export * from "./infraAlertCondition";
|
|
18
|
+
export * from "./notificationChannel";
|
|
19
|
+
export * from "./notificationDestination";
|
|
18
20
|
export * from "./nrqlAlertCondition";
|
|
19
21
|
export * from "./nrqlDropRule";
|
|
20
22
|
export * from "./oneDashboard";
|
package/index.js
CHANGED
|
@@ -37,6 +37,8 @@ __exportStar(require("./getCloudAccount"), exports);
|
|
|
37
37
|
__exportStar(require("./getEntity"), exports);
|
|
38
38
|
__exportStar(require("./getKeyTransaction"), exports);
|
|
39
39
|
__exportStar(require("./infraAlertCondition"), exports);
|
|
40
|
+
__exportStar(require("./notificationChannel"), exports);
|
|
41
|
+
__exportStar(require("./notificationDestination"), exports);
|
|
40
42
|
__exportStar(require("./nrqlAlertCondition"), exports);
|
|
41
43
|
__exportStar(require("./nrqlDropRule"), exports);
|
|
42
44
|
__exportStar(require("./oneDashboard"), exports);
|
|
@@ -67,6 +69,8 @@ const dashboard_1 = require("./dashboard");
|
|
|
67
69
|
const entityTags_1 = require("./entityTags");
|
|
68
70
|
const eventsToMetricsRule_1 = require("./eventsToMetricsRule");
|
|
69
71
|
const infraAlertCondition_1 = require("./infraAlertCondition");
|
|
72
|
+
const notificationChannel_1 = require("./notificationChannel");
|
|
73
|
+
const notificationDestination_1 = require("./notificationDestination");
|
|
70
74
|
const nrqlAlertCondition_1 = require("./nrqlAlertCondition");
|
|
71
75
|
const nrqlDropRule_1 = require("./nrqlDropRule");
|
|
72
76
|
const oneDashboard_1 = require("./oneDashboard");
|
|
@@ -96,6 +100,10 @@ const _module = {
|
|
|
96
100
|
return new eventsToMetricsRule_1.EventsToMetricsRule(name, undefined, { urn });
|
|
97
101
|
case "newrelic:index/infraAlertCondition:InfraAlertCondition":
|
|
98
102
|
return new infraAlertCondition_1.InfraAlertCondition(name, undefined, { urn });
|
|
103
|
+
case "newrelic:index/notificationChannel:NotificationChannel":
|
|
104
|
+
return new notificationChannel_1.NotificationChannel(name, undefined, { urn });
|
|
105
|
+
case "newrelic:index/notificationDestination:NotificationDestination":
|
|
106
|
+
return new notificationDestination_1.NotificationDestination(name, undefined, { urn });
|
|
99
107
|
case "newrelic:index/nrqlAlertCondition:NrqlAlertCondition":
|
|
100
108
|
return new nrqlAlertCondition_1.NrqlAlertCondition(name, undefined, { urn });
|
|
101
109
|
case "newrelic:index/nrqlDropRule:NrqlDropRule":
|
|
@@ -121,6 +129,8 @@ pulumi.runtime.registerResourceModule("newrelic", "index/dashboard", _module);
|
|
|
121
129
|
pulumi.runtime.registerResourceModule("newrelic", "index/entityTags", _module);
|
|
122
130
|
pulumi.runtime.registerResourceModule("newrelic", "index/eventsToMetricsRule", _module);
|
|
123
131
|
pulumi.runtime.registerResourceModule("newrelic", "index/infraAlertCondition", _module);
|
|
132
|
+
pulumi.runtime.registerResourceModule("newrelic", "index/notificationChannel", _module);
|
|
133
|
+
pulumi.runtime.registerResourceModule("newrelic", "index/notificationDestination", _module);
|
|
124
134
|
pulumi.runtime.registerResourceModule("newrelic", "index/nrqlAlertCondition", _module);
|
|
125
135
|
pulumi.runtime.registerResourceModule("newrelic", "index/nrqlDropRule", _module);
|
|
126
136
|
pulumi.runtime.registerResourceModule("newrelic", "index/oneDashboard", _module);
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;;;;;;;;;;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E,OAAO,CAAC,CAAA;AAC3F,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,UAAU,EAAE,0BAA0B,EAAE,OAAO,CAAC,CAAA;AACtF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,UAAU,EAAE,oBAAoB,EAAE,OAAO,CAAC,CAAA;AAChF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,UAAU,EAAE,oBAAoB,EAAE,OAAO,CAAC,CAAA;AAChF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,UAAU,EAAE,uBAAuB,EAAE,OAAO,CAAC,CAAA;AACnF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,UAAU,EAAE,oBAAoB,EAAE,OAAO,CAAC,CAAA;AAEhF,yCAAsC;AAEtC,MAAM,CAAC,OAAO,CAAC,uBAAuB,CAAC,UAAU,EAAE;IAC/C,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,iBAAiB,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAA2B,EAAE;QACpF,IAAI,IAAI,KAAK,2BAA2B,EAAE;YACtC,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACpD;QACD,OAAO,IAAI,mBAAQ,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;IACvD,CAAC;CACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,201 @@
|
|
|
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 notification channels.
|
|
5
|
+
*
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* ##### Webhook
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as newrelic from "@pulumi/newrelic";
|
|
12
|
+
*
|
|
13
|
+
* const foo = new newrelic.NotificationChannel("foo", {
|
|
14
|
+
* destinationId: "1234",
|
|
15
|
+
* product: "IINT",
|
|
16
|
+
* properties: [{
|
|
17
|
+
* key: "payload",
|
|
18
|
+
* label: "Payload Template",
|
|
19
|
+
* value: `{
|
|
20
|
+
* "name": "foo"
|
|
21
|
+
* }`,
|
|
22
|
+
* }],
|
|
23
|
+
* type: "WEBHOOK",
|
|
24
|
+
* });
|
|
25
|
+
* ```
|
|
26
|
+
* See additional examples.
|
|
27
|
+
* ## Additional Examples
|
|
28
|
+
*
|
|
29
|
+
* ##### ServiceNow
|
|
30
|
+
* ```typescript
|
|
31
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
32
|
+
* import * as newrelic from "@pulumi/newrelic";
|
|
33
|
+
*
|
|
34
|
+
* const foo = new newrelic.NotificationChannel("foo", {
|
|
35
|
+
* destinationId: "1234",
|
|
36
|
+
* product: "PD",
|
|
37
|
+
* properties: [
|
|
38
|
+
* {
|
|
39
|
+
* key: "description",
|
|
40
|
+
* value: "General description",
|
|
41
|
+
* },
|
|
42
|
+
* {
|
|
43
|
+
* key: "short_description",
|
|
44
|
+
* value: "Short description",
|
|
45
|
+
* },
|
|
46
|
+
* ],
|
|
47
|
+
* type: "SERVICENOW_INCIDENTS",
|
|
48
|
+
* });
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* ##### Email
|
|
52
|
+
* ```typescript
|
|
53
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
54
|
+
* import * as newrelic from "@pulumi/newrelic";
|
|
55
|
+
*
|
|
56
|
+
* const foo = new newrelic.NotificationChannel("foo", {
|
|
57
|
+
* destinationId: "1234",
|
|
58
|
+
* product: "ERROR_TRACKING",
|
|
59
|
+
* type: "EMAIL",
|
|
60
|
+
* });
|
|
61
|
+
* ```
|
|
62
|
+
*
|
|
63
|
+
* ##### PagerDuty with account integration
|
|
64
|
+
* ```typescript
|
|
65
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
66
|
+
* import * as newrelic from "@pulumi/newrelic";
|
|
67
|
+
*
|
|
68
|
+
* const foo = new newrelic.NotificationChannel("foo", {
|
|
69
|
+
* destinationId: "1234",
|
|
70
|
+
* product: "IINT",
|
|
71
|
+
* properties: [
|
|
72
|
+
* {
|
|
73
|
+
* key: "summary",
|
|
74
|
+
* value: "General summary",
|
|
75
|
+
* },
|
|
76
|
+
* {
|
|
77
|
+
* key: "service",
|
|
78
|
+
* value: "1234",
|
|
79
|
+
* },
|
|
80
|
+
* {
|
|
81
|
+
* key: "email",
|
|
82
|
+
* value: "test@test.com",
|
|
83
|
+
* },
|
|
84
|
+
* ],
|
|
85
|
+
* type: "PAGERDUTY_ACCOUNT_INTEGRATION",
|
|
86
|
+
* });
|
|
87
|
+
* ```
|
|
88
|
+
*
|
|
89
|
+
* ##### PagerDuty with service integration
|
|
90
|
+
* ```typescript
|
|
91
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
92
|
+
* import * as newrelic from "@pulumi/newrelic";
|
|
93
|
+
*
|
|
94
|
+
* const foo = new newrelic.NotificationChannel("foo", {
|
|
95
|
+
* destinationId: "1234",
|
|
96
|
+
* product: "IINT",
|
|
97
|
+
* properties: [{
|
|
98
|
+
* key: "summary",
|
|
99
|
+
* value: "General summary",
|
|
100
|
+
* }],
|
|
101
|
+
* type: "PAGERDUTY_SERVICE_INTEGRATION",
|
|
102
|
+
* });
|
|
103
|
+
* ```
|
|
104
|
+
*
|
|
105
|
+
* > **NOTE:** Sensitive data such as channel API keys, service keys, etc are not returned from the underlying API for security reasons and may not be set in state when importing.
|
|
106
|
+
*/
|
|
107
|
+
export declare class NotificationChannel extends pulumi.CustomResource {
|
|
108
|
+
/**
|
|
109
|
+
* Get an existing NotificationChannel resource's state with the given name, ID, and optional extra
|
|
110
|
+
* properties used to qualify the lookup.
|
|
111
|
+
*
|
|
112
|
+
* @param name The _unique_ name of the resulting resource.
|
|
113
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
114
|
+
* @param state Any extra arguments used during the lookup.
|
|
115
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
116
|
+
*/
|
|
117
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: NotificationChannelState, opts?: pulumi.CustomResourceOptions): NotificationChannel;
|
|
118
|
+
/**
|
|
119
|
+
* Returns true if the given object is an instance of NotificationChannel. This is designed to work even
|
|
120
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
121
|
+
*/
|
|
122
|
+
static isInstance(obj: any): obj is NotificationChannel;
|
|
123
|
+
/**
|
|
124
|
+
* The id of the destination.
|
|
125
|
+
*/
|
|
126
|
+
readonly destinationId: pulumi.Output<string>;
|
|
127
|
+
/**
|
|
128
|
+
* The name of the channel.
|
|
129
|
+
*/
|
|
130
|
+
readonly name: pulumi.Output<string>;
|
|
131
|
+
/**
|
|
132
|
+
* The type of product. One of: `ALERTS`, `DISCUSSIONS`, `ERROR_TRACKING`, `IINT`, `NTFC`, `PD` or `SHARING`.
|
|
133
|
+
*/
|
|
134
|
+
readonly product: pulumi.Output<string>;
|
|
135
|
+
/**
|
|
136
|
+
* A nested block that describes a notification channel properties. Only one properties block is permitted per notification channel definition. See Nested properties blocks below for details.
|
|
137
|
+
*/
|
|
138
|
+
readonly properties: pulumi.Output<outputs.NotificationChannelProperty[] | undefined>;
|
|
139
|
+
/**
|
|
140
|
+
* The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `WEBHOOK`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`.
|
|
141
|
+
*/
|
|
142
|
+
readonly type: pulumi.Output<string>;
|
|
143
|
+
/**
|
|
144
|
+
* Create a NotificationChannel resource with the given unique name, arguments, and options.
|
|
145
|
+
*
|
|
146
|
+
* @param name The _unique_ name of the resource.
|
|
147
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
148
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
149
|
+
*/
|
|
150
|
+
constructor(name: string, args: NotificationChannelArgs, opts?: pulumi.CustomResourceOptions);
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Input properties used for looking up and filtering NotificationChannel resources.
|
|
154
|
+
*/
|
|
155
|
+
export interface NotificationChannelState {
|
|
156
|
+
/**
|
|
157
|
+
* The id of the destination.
|
|
158
|
+
*/
|
|
159
|
+
destinationId?: pulumi.Input<string>;
|
|
160
|
+
/**
|
|
161
|
+
* The name of the channel.
|
|
162
|
+
*/
|
|
163
|
+
name?: pulumi.Input<string>;
|
|
164
|
+
/**
|
|
165
|
+
* The type of product. One of: `ALERTS`, `DISCUSSIONS`, `ERROR_TRACKING`, `IINT`, `NTFC`, `PD` or `SHARING`.
|
|
166
|
+
*/
|
|
167
|
+
product?: pulumi.Input<string>;
|
|
168
|
+
/**
|
|
169
|
+
* A nested block that describes a notification channel properties. Only one properties block is permitted per notification channel definition. See Nested properties blocks below for details.
|
|
170
|
+
*/
|
|
171
|
+
properties?: pulumi.Input<pulumi.Input<inputs.NotificationChannelProperty>[]>;
|
|
172
|
+
/**
|
|
173
|
+
* The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `WEBHOOK`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`.
|
|
174
|
+
*/
|
|
175
|
+
type?: pulumi.Input<string>;
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* The set of arguments for constructing a NotificationChannel resource.
|
|
179
|
+
*/
|
|
180
|
+
export interface NotificationChannelArgs {
|
|
181
|
+
/**
|
|
182
|
+
* The id of the destination.
|
|
183
|
+
*/
|
|
184
|
+
destinationId: pulumi.Input<string>;
|
|
185
|
+
/**
|
|
186
|
+
* The name of the channel.
|
|
187
|
+
*/
|
|
188
|
+
name?: pulumi.Input<string>;
|
|
189
|
+
/**
|
|
190
|
+
* The type of product. One of: `ALERTS`, `DISCUSSIONS`, `ERROR_TRACKING`, `IINT`, `NTFC`, `PD` or `SHARING`.
|
|
191
|
+
*/
|
|
192
|
+
product: pulumi.Input<string>;
|
|
193
|
+
/**
|
|
194
|
+
* A nested block that describes a notification channel properties. Only one properties block is permitted per notification channel definition. See Nested properties blocks below for details.
|
|
195
|
+
*/
|
|
196
|
+
properties?: pulumi.Input<pulumi.Input<inputs.NotificationChannelProperty>[]>;
|
|
197
|
+
/**
|
|
198
|
+
* The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `WEBHOOK`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`.
|
|
199
|
+
*/
|
|
200
|
+
type: pulumi.Input<string>;
|
|
201
|
+
}
|
|
@@ -0,0 +1,170 @@
|
|
|
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.NotificationChannel = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Use this resource to create and manage New Relic notification channels.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ##### Webhook
|
|
14
|
+
* ```typescript
|
|
15
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
16
|
+
* import * as newrelic from "@pulumi/newrelic";
|
|
17
|
+
*
|
|
18
|
+
* const foo = new newrelic.NotificationChannel("foo", {
|
|
19
|
+
* destinationId: "1234",
|
|
20
|
+
* product: "IINT",
|
|
21
|
+
* properties: [{
|
|
22
|
+
* key: "payload",
|
|
23
|
+
* label: "Payload Template",
|
|
24
|
+
* value: `{
|
|
25
|
+
* "name": "foo"
|
|
26
|
+
* }`,
|
|
27
|
+
* }],
|
|
28
|
+
* type: "WEBHOOK",
|
|
29
|
+
* });
|
|
30
|
+
* ```
|
|
31
|
+
* See additional examples.
|
|
32
|
+
* ## Additional Examples
|
|
33
|
+
*
|
|
34
|
+
* ##### ServiceNow
|
|
35
|
+
* ```typescript
|
|
36
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
37
|
+
* import * as newrelic from "@pulumi/newrelic";
|
|
38
|
+
*
|
|
39
|
+
* const foo = new newrelic.NotificationChannel("foo", {
|
|
40
|
+
* destinationId: "1234",
|
|
41
|
+
* product: "PD",
|
|
42
|
+
* properties: [
|
|
43
|
+
* {
|
|
44
|
+
* key: "description",
|
|
45
|
+
* value: "General description",
|
|
46
|
+
* },
|
|
47
|
+
* {
|
|
48
|
+
* key: "short_description",
|
|
49
|
+
* value: "Short description",
|
|
50
|
+
* },
|
|
51
|
+
* ],
|
|
52
|
+
* type: "SERVICENOW_INCIDENTS",
|
|
53
|
+
* });
|
|
54
|
+
* ```
|
|
55
|
+
*
|
|
56
|
+
* ##### Email
|
|
57
|
+
* ```typescript
|
|
58
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
59
|
+
* import * as newrelic from "@pulumi/newrelic";
|
|
60
|
+
*
|
|
61
|
+
* const foo = new newrelic.NotificationChannel("foo", {
|
|
62
|
+
* destinationId: "1234",
|
|
63
|
+
* product: "ERROR_TRACKING",
|
|
64
|
+
* type: "EMAIL",
|
|
65
|
+
* });
|
|
66
|
+
* ```
|
|
67
|
+
*
|
|
68
|
+
* ##### PagerDuty with account integration
|
|
69
|
+
* ```typescript
|
|
70
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
71
|
+
* import * as newrelic from "@pulumi/newrelic";
|
|
72
|
+
*
|
|
73
|
+
* const foo = new newrelic.NotificationChannel("foo", {
|
|
74
|
+
* destinationId: "1234",
|
|
75
|
+
* product: "IINT",
|
|
76
|
+
* properties: [
|
|
77
|
+
* {
|
|
78
|
+
* key: "summary",
|
|
79
|
+
* value: "General summary",
|
|
80
|
+
* },
|
|
81
|
+
* {
|
|
82
|
+
* key: "service",
|
|
83
|
+
* value: "1234",
|
|
84
|
+
* },
|
|
85
|
+
* {
|
|
86
|
+
* key: "email",
|
|
87
|
+
* value: "test@test.com",
|
|
88
|
+
* },
|
|
89
|
+
* ],
|
|
90
|
+
* type: "PAGERDUTY_ACCOUNT_INTEGRATION",
|
|
91
|
+
* });
|
|
92
|
+
* ```
|
|
93
|
+
*
|
|
94
|
+
* ##### PagerDuty with service integration
|
|
95
|
+
* ```typescript
|
|
96
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
97
|
+
* import * as newrelic from "@pulumi/newrelic";
|
|
98
|
+
*
|
|
99
|
+
* const foo = new newrelic.NotificationChannel("foo", {
|
|
100
|
+
* destinationId: "1234",
|
|
101
|
+
* product: "IINT",
|
|
102
|
+
* properties: [{
|
|
103
|
+
* key: "summary",
|
|
104
|
+
* value: "General summary",
|
|
105
|
+
* }],
|
|
106
|
+
* type: "PAGERDUTY_SERVICE_INTEGRATION",
|
|
107
|
+
* });
|
|
108
|
+
* ```
|
|
109
|
+
*
|
|
110
|
+
* > **NOTE:** Sensitive data such as channel API keys, service keys, etc are not returned from the underlying API for security reasons and may not be set in state when importing.
|
|
111
|
+
*/
|
|
112
|
+
class NotificationChannel extends pulumi.CustomResource {
|
|
113
|
+
constructor(name, argsOrState, opts) {
|
|
114
|
+
let resourceInputs = {};
|
|
115
|
+
opts = opts || {};
|
|
116
|
+
if (opts.id) {
|
|
117
|
+
const state = argsOrState;
|
|
118
|
+
resourceInputs["destinationId"] = state ? state.destinationId : undefined;
|
|
119
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
120
|
+
resourceInputs["product"] = state ? state.product : undefined;
|
|
121
|
+
resourceInputs["properties"] = state ? state.properties : undefined;
|
|
122
|
+
resourceInputs["type"] = state ? state.type : undefined;
|
|
123
|
+
}
|
|
124
|
+
else {
|
|
125
|
+
const args = argsOrState;
|
|
126
|
+
if ((!args || args.destinationId === undefined) && !opts.urn) {
|
|
127
|
+
throw new Error("Missing required property 'destinationId'");
|
|
128
|
+
}
|
|
129
|
+
if ((!args || args.product === undefined) && !opts.urn) {
|
|
130
|
+
throw new Error("Missing required property 'product'");
|
|
131
|
+
}
|
|
132
|
+
if ((!args || args.type === undefined) && !opts.urn) {
|
|
133
|
+
throw new Error("Missing required property 'type'");
|
|
134
|
+
}
|
|
135
|
+
resourceInputs["destinationId"] = args ? args.destinationId : undefined;
|
|
136
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
137
|
+
resourceInputs["product"] = args ? args.product : undefined;
|
|
138
|
+
resourceInputs["properties"] = args ? args.properties : undefined;
|
|
139
|
+
resourceInputs["type"] = args ? args.type : undefined;
|
|
140
|
+
}
|
|
141
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
142
|
+
super(NotificationChannel.__pulumiType, name, resourceInputs, opts);
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Get an existing NotificationChannel resource's state with the given name, ID, and optional extra
|
|
146
|
+
* properties used to qualify the lookup.
|
|
147
|
+
*
|
|
148
|
+
* @param name The _unique_ name of the resulting resource.
|
|
149
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
150
|
+
* @param state Any extra arguments used during the lookup.
|
|
151
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
152
|
+
*/
|
|
153
|
+
static get(name, id, state, opts) {
|
|
154
|
+
return new NotificationChannel(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Returns true if the given object is an instance of NotificationChannel. This is designed to work even
|
|
158
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
159
|
+
*/
|
|
160
|
+
static isInstance(obj) {
|
|
161
|
+
if (obj === undefined || obj === null) {
|
|
162
|
+
return false;
|
|
163
|
+
}
|
|
164
|
+
return obj['__pulumiType'] === NotificationChannel.__pulumiType;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
exports.NotificationChannel = NotificationChannel;
|
|
168
|
+
/** @internal */
|
|
169
|
+
NotificationChannel.__pulumiType = 'newrelic:index/notificationChannel:NotificationChannel';
|
|
170
|
+
//# sourceMappingURL=notificationChannel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notificationChannel.js","sourceRoot":"","sources":["../notificationChannel.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuGG;AACH,MAAa,mBAAoB,SAAQ,MAAM,CAAC,cAAc;IAyD1D,YAAY,IAAY,EAAE,WAAgE,EAAE,IAAmC;QAC3H,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAmD,CAAC;YAClE,cAAc,CAAC,eAAe,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1E,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;SAC3D;aAAM;Y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c,EAAE,IAAI,CAAC,CAAC;IACxE,CAAC;IArFD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAgC,EAAE,IAAmC;QAC9H,OAAO,IAAI,mBAAmB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC1E,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,mBAAmB,CAAC,YAAY,CAAC;IACpE,CAAC;;AA1BL,kDAuFC;AAzEG,gBAAgB;AACO,gCAAY,GAAG,wDAAwD,CAAC"}
|
|
@@ -0,0 +1,198 @@
|
|
|
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 notification destinations.
|
|
5
|
+
*
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* ##### Webhook
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as newrelic from "@pulumi/newrelic";
|
|
12
|
+
*
|
|
13
|
+
* const foo = new newrelic.NotificationDestination("foo", {
|
|
14
|
+
* auth: {
|
|
15
|
+
* password: "1234",
|
|
16
|
+
* type: "BASIC",
|
|
17
|
+
* user: "user",
|
|
18
|
+
* },
|
|
19
|
+
* properties: [{
|
|
20
|
+
* key: "url",
|
|
21
|
+
* value: "https://webhook.site/",
|
|
22
|
+
* }],
|
|
23
|
+
* type: "WEBHOOK",
|
|
24
|
+
* });
|
|
25
|
+
* ```
|
|
26
|
+
* See additional examples.
|
|
27
|
+
* ## Additional Examples
|
|
28
|
+
*
|
|
29
|
+
* ##### ServiceNow
|
|
30
|
+
*
|
|
31
|
+
* ```typescript
|
|
32
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
33
|
+
* import * as newrelic from "@pulumi/newrelic";
|
|
34
|
+
*
|
|
35
|
+
* const foo = new newrelic.NotificationDestination("foo", {
|
|
36
|
+
* auth: {
|
|
37
|
+
* password: "pass",
|
|
38
|
+
* type: "BASIC",
|
|
39
|
+
* user: "user",
|
|
40
|
+
* },
|
|
41
|
+
* properties: [
|
|
42
|
+
* {
|
|
43
|
+
* key: "url",
|
|
44
|
+
* value: "https://service-now.com/",
|
|
45
|
+
* },
|
|
46
|
+
* {
|
|
47
|
+
* key: "two_way_integration",
|
|
48
|
+
* value: "true",
|
|
49
|
+
* },
|
|
50
|
+
* ],
|
|
51
|
+
* type: "SERVICE_NOW",
|
|
52
|
+
* });
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
55
|
+
* ##### Email
|
|
56
|
+
* ```typescript
|
|
57
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
58
|
+
* import * as newrelic from "@pulumi/newrelic";
|
|
59
|
+
*
|
|
60
|
+
* const foo = new newrelic.NotificationDestination("foo", {
|
|
61
|
+
* auth: {
|
|
62
|
+
* prefix: "prefix",
|
|
63
|
+
* token: "bearer",
|
|
64
|
+
* type: "TOKEN",
|
|
65
|
+
* },
|
|
66
|
+
* properties: [{
|
|
67
|
+
* key: "email",
|
|
68
|
+
* value: "email@email.com,email2@email.com",
|
|
69
|
+
* }],
|
|
70
|
+
* type: "EMAIL",
|
|
71
|
+
* });
|
|
72
|
+
* ```
|
|
73
|
+
*
|
|
74
|
+
* ##### PagerDuty with service integration
|
|
75
|
+
* ```typescript
|
|
76
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
77
|
+
* import * as newrelic from "@pulumi/newrelic";
|
|
78
|
+
*
|
|
79
|
+
* const foo = new newrelic.NotificationDestination("foo", {
|
|
80
|
+
* auth: {
|
|
81
|
+
* prefix: "prefix",
|
|
82
|
+
* token: "bearer",
|
|
83
|
+
* type: "TOKEN",
|
|
84
|
+
* },
|
|
85
|
+
* properties: [{
|
|
86
|
+
* key: "two_way_integration",
|
|
87
|
+
* value: "true",
|
|
88
|
+
* }],
|
|
89
|
+
* type: "PAGERDUTY_SERVICE_INTEGRATION",
|
|
90
|
+
* });
|
|
91
|
+
* ```
|
|
92
|
+
*
|
|
93
|
+
* ##### PagerDuty with account integration
|
|
94
|
+
* ```typescript
|
|
95
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
96
|
+
* import * as newrelic from "@pulumi/newrelic";
|
|
97
|
+
*
|
|
98
|
+
* const foo = new newrelic.NotificationDestination("foo", {
|
|
99
|
+
* auth: {
|
|
100
|
+
* prefix: "prefix",
|
|
101
|
+
* token: "bearer",
|
|
102
|
+
* type: "TOKEN",
|
|
103
|
+
* },
|
|
104
|
+
* type: "PAGERDUTY_ACCOUNT_INTEGRATION",
|
|
105
|
+
* });
|
|
106
|
+
* ```
|
|
107
|
+
*
|
|
108
|
+
* > **NOTE:** Sensitive data such as destination API keys, service keys, etc are not returned from the underlying API for security reasons and may not be set in state when importing.
|
|
109
|
+
*/
|
|
110
|
+
export declare class NotificationDestination extends pulumi.CustomResource {
|
|
111
|
+
/**
|
|
112
|
+
* Get an existing NotificationDestination resource's state with the given name, ID, and optional extra
|
|
113
|
+
* properties used to qualify the lookup.
|
|
114
|
+
*
|
|
115
|
+
* @param name The _unique_ name of the resulting resource.
|
|
116
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
117
|
+
* @param state Any extra arguments used during the lookup.
|
|
118
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
119
|
+
*/
|
|
120
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: NotificationDestinationState, opts?: pulumi.CustomResourceOptions): NotificationDestination;
|
|
121
|
+
/**
|
|
122
|
+
* Returns true if the given object is an instance of NotificationDestination. This is designed to work even
|
|
123
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
124
|
+
*/
|
|
125
|
+
static isInstance(obj: any): obj is NotificationDestination;
|
|
126
|
+
/**
|
|
127
|
+
* A nested block that describes a notification destination authentication. Only one auth block is permitted per notification destination definition. See Nested auth blocks below for details.
|
|
128
|
+
*/
|
|
129
|
+
readonly auth: pulumi.Output<{
|
|
130
|
+
[key: string]: string;
|
|
131
|
+
} | undefined>;
|
|
132
|
+
/**
|
|
133
|
+
* The name of the destination.
|
|
134
|
+
*/
|
|
135
|
+
readonly name: pulumi.Output<string>;
|
|
136
|
+
/**
|
|
137
|
+
* A nested block that describes a notification destination properties. Only one properties block is permitted per notification destination definition. See Nested properties blocks below for details.
|
|
138
|
+
*/
|
|
139
|
+
readonly properties: pulumi.Output<outputs.NotificationDestinationProperty[] | undefined>;
|
|
140
|
+
/**
|
|
141
|
+
* The type of the auth. One of: `TOKEN` or `BASIC`.
|
|
142
|
+
*/
|
|
143
|
+
readonly type: pulumi.Output<string>;
|
|
144
|
+
/**
|
|
145
|
+
* Create a NotificationDestination resource with the given unique name, arguments, and options.
|
|
146
|
+
*
|
|
147
|
+
* @param name The _unique_ name of the resource.
|
|
148
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
149
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
150
|
+
*/
|
|
151
|
+
constructor(name: string, args: NotificationDestinationArgs, opts?: pulumi.CustomResourceOptions);
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Input properties used for looking up and filtering NotificationDestination resources.
|
|
155
|
+
*/
|
|
156
|
+
export interface NotificationDestinationState {
|
|
157
|
+
/**
|
|
158
|
+
* A nested block that describes a notification destination authentication. Only one auth block is permitted per notification destination definition. See Nested auth blocks below for details.
|
|
159
|
+
*/
|
|
160
|
+
auth?: pulumi.Input<{
|
|
161
|
+
[key: string]: pulumi.Input<string>;
|
|
162
|
+
}>;
|
|
163
|
+
/**
|
|
164
|
+
* The name of the destination.
|
|
165
|
+
*/
|
|
166
|
+
name?: pulumi.Input<string>;
|
|
167
|
+
/**
|
|
168
|
+
* A nested block that describes a notification destination properties. Only one properties block is permitted per notification destination definition. See Nested properties blocks below for details.
|
|
169
|
+
*/
|
|
170
|
+
properties?: pulumi.Input<pulumi.Input<inputs.NotificationDestinationProperty>[]>;
|
|
171
|
+
/**
|
|
172
|
+
* The type of the auth. One of: `TOKEN` or `BASIC`.
|
|
173
|
+
*/
|
|
174
|
+
type?: pulumi.Input<string>;
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* The set of arguments for constructing a NotificationDestination resource.
|
|
178
|
+
*/
|
|
179
|
+
export interface NotificationDestinationArgs {
|
|
180
|
+
/**
|
|
181
|
+
* A nested block that describes a notification destination authentication. Only one auth block is permitted per notification destination definition. See Nested auth blocks below for details.
|
|
182
|
+
*/
|
|
183
|
+
auth?: pulumi.Input<{
|
|
184
|
+
[key: string]: pulumi.Input<string>;
|
|
185
|
+
}>;
|
|
186
|
+
/**
|
|
187
|
+
* The name of the destination.
|
|
188
|
+
*/
|
|
189
|
+
name?: pulumi.Input<string>;
|
|
190
|
+
/**
|
|
191
|
+
* A nested block that describes a notification destination properties. Only one properties block is permitted per notification destination definition. See Nested properties blocks below for details.
|
|
192
|
+
*/
|
|
193
|
+
properties?: pulumi.Input<pulumi.Input<inputs.NotificationDestinationProperty>[]>;
|
|
194
|
+
/**
|
|
195
|
+
* The type of the auth. One of: `TOKEN` or `BASIC`.
|
|
196
|
+
*/
|
|
197
|
+
type: pulumi.Input<string>;
|
|
198
|
+
}
|
|
@@ -0,0 +1,165 @@
|
|
|
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.NotificationDestination = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Use this resource to create and manage New Relic notification destinations.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ##### Webhook
|
|
14
|
+
* ```typescript
|
|
15
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
16
|
+
* import * as newrelic from "@pulumi/newrelic";
|
|
17
|
+
*
|
|
18
|
+
* const foo = new newrelic.NotificationDestination("foo", {
|
|
19
|
+
* auth: {
|
|
20
|
+
* password: "1234",
|
|
21
|
+
* type: "BASIC",
|
|
22
|
+
* user: "user",
|
|
23
|
+
* },
|
|
24
|
+
* properties: [{
|
|
25
|
+
* key: "url",
|
|
26
|
+
* value: "https://webhook.site/",
|
|
27
|
+
* }],
|
|
28
|
+
* type: "WEBHOOK",
|
|
29
|
+
* });
|
|
30
|
+
* ```
|
|
31
|
+
* See additional examples.
|
|
32
|
+
* ## Additional Examples
|
|
33
|
+
*
|
|
34
|
+
* ##### ServiceNow
|
|
35
|
+
*
|
|
36
|
+
* ```typescript
|
|
37
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
38
|
+
* import * as newrelic from "@pulumi/newrelic";
|
|
39
|
+
*
|
|
40
|
+
* const foo = new newrelic.NotificationDestination("foo", {
|
|
41
|
+
* auth: {
|
|
42
|
+
* password: "pass",
|
|
43
|
+
* type: "BASIC",
|
|
44
|
+
* user: "user",
|
|
45
|
+
* },
|
|
46
|
+
* properties: [
|
|
47
|
+
* {
|
|
48
|
+
* key: "url",
|
|
49
|
+
* value: "https://service-now.com/",
|
|
50
|
+
* },
|
|
51
|
+
* {
|
|
52
|
+
* key: "two_way_integration",
|
|
53
|
+
* value: "true",
|
|
54
|
+
* },
|
|
55
|
+
* ],
|
|
56
|
+
* type: "SERVICE_NOW",
|
|
57
|
+
* });
|
|
58
|
+
* ```
|
|
59
|
+
*
|
|
60
|
+
* ##### Email
|
|
61
|
+
* ```typescript
|
|
62
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
63
|
+
* import * as newrelic from "@pulumi/newrelic";
|
|
64
|
+
*
|
|
65
|
+
* const foo = new newrelic.NotificationDestination("foo", {
|
|
66
|
+
* auth: {
|
|
67
|
+
* prefix: "prefix",
|
|
68
|
+
* token: "bearer",
|
|
69
|
+
* type: "TOKEN",
|
|
70
|
+
* },
|
|
71
|
+
* properties: [{
|
|
72
|
+
* key: "email",
|
|
73
|
+
* value: "email@email.com,email2@email.com",
|
|
74
|
+
* }],
|
|
75
|
+
* type: "EMAIL",
|
|
76
|
+
* });
|
|
77
|
+
* ```
|
|
78
|
+
*
|
|
79
|
+
* ##### PagerDuty with service integration
|
|
80
|
+
* ```typescript
|
|
81
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
82
|
+
* import * as newrelic from "@pulumi/newrelic";
|
|
83
|
+
*
|
|
84
|
+
* const foo = new newrelic.NotificationDestination("foo", {
|
|
85
|
+
* auth: {
|
|
86
|
+
* prefix: "prefix",
|
|
87
|
+
* token: "bearer",
|
|
88
|
+
* type: "TOKEN",
|
|
89
|
+
* },
|
|
90
|
+
* properties: [{
|
|
91
|
+
* key: "two_way_integration",
|
|
92
|
+
* value: "true",
|
|
93
|
+
* }],
|
|
94
|
+
* type: "PAGERDUTY_SERVICE_INTEGRATION",
|
|
95
|
+
* });
|
|
96
|
+
* ```
|
|
97
|
+
*
|
|
98
|
+
* ##### PagerDuty with account integration
|
|
99
|
+
* ```typescript
|
|
100
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
101
|
+
* import * as newrelic from "@pulumi/newrelic";
|
|
102
|
+
*
|
|
103
|
+
* const foo = new newrelic.NotificationDestination("foo", {
|
|
104
|
+
* auth: {
|
|
105
|
+
* prefix: "prefix",
|
|
106
|
+
* token: "bearer",
|
|
107
|
+
* type: "TOKEN",
|
|
108
|
+
* },
|
|
109
|
+
* type: "PAGERDUTY_ACCOUNT_INTEGRATION",
|
|
110
|
+
* });
|
|
111
|
+
* ```
|
|
112
|
+
*
|
|
113
|
+
* > **NOTE:** Sensitive data such as destination API keys, service keys, etc are not returned from the underlying API for security reasons and may not be set in state when importing.
|
|
114
|
+
*/
|
|
115
|
+
class NotificationDestination extends pulumi.CustomResource {
|
|
116
|
+
constructor(name, argsOrState, opts) {
|
|
117
|
+
let resourceInputs = {};
|
|
118
|
+
opts = opts || {};
|
|
119
|
+
if (opts.id) {
|
|
120
|
+
const state = argsOrState;
|
|
121
|
+
resourceInputs["auth"] = state ? state.auth : undefined;
|
|
122
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
123
|
+
resourceInputs["properties"] = state ? state.properties : undefined;
|
|
124
|
+
resourceInputs["type"] = state ? state.type : undefined;
|
|
125
|
+
}
|
|
126
|
+
else {
|
|
127
|
+
const args = argsOrState;
|
|
128
|
+
if ((!args || args.type === undefined) && !opts.urn) {
|
|
129
|
+
throw new Error("Missing required property 'type'");
|
|
130
|
+
}
|
|
131
|
+
resourceInputs["auth"] = args ? args.auth : undefined;
|
|
132
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
133
|
+
resourceInputs["properties"] = args ? args.properties : undefined;
|
|
134
|
+
resourceInputs["type"] = args ? args.type : undefined;
|
|
135
|
+
}
|
|
136
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
137
|
+
super(NotificationDestination.__pulumiType, name, resourceInputs, opts);
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Get an existing NotificationDestination resource's state with the given name, ID, and optional extra
|
|
141
|
+
* properties used to qualify the lookup.
|
|
142
|
+
*
|
|
143
|
+
* @param name The _unique_ name of the resulting resource.
|
|
144
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
145
|
+
* @param state Any extra arguments used during the lookup.
|
|
146
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
147
|
+
*/
|
|
148
|
+
static get(name, id, state, opts) {
|
|
149
|
+
return new NotificationDestination(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Returns true if the given object is an instance of NotificationDestination. This is designed to work even
|
|
153
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
154
|
+
*/
|
|
155
|
+
static isInstance(obj) {
|
|
156
|
+
if (obj === undefined || obj === null) {
|
|
157
|
+
return false;
|
|
158
|
+
}
|
|
159
|
+
return obj['__pulumiType'] === NotificationDestination.__pulumiType;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
exports.NotificationDestination = NotificationDestination;
|
|
163
|
+
/** @internal */
|
|
164
|
+
NotificationDestination.__pulumiType = 'newrelic:index/notificationDestination:NotificationDestination';
|
|
165
|
+
//# sourceMappingURL=notificationDestination.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notificationDestination.js","sourceRoot":"","sources":["../notificationDestination.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0GG;AACH,MAAa,uBAAwB,SAAQ,MAAM,CAAC,cAAc;IAqD9D,YAAY,IAAY,EAAE,WAAwE,EAAE,IAAmC;QACnI,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAuD,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,YAAY,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IAC9E,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,uBAAuB,CAAC,YAAY,CAAC;IACxE,CAAC;;AA1BL,0DA2EC;AA7DG,gBAAgB;AACO,oCAAY,GAAG,gEAAgE,CAAC"}
|
package/oneDashboard.d.ts
CHANGED
|
@@ -11,6 +11,8 @@ import { input as inputs, output as outputs } from "./types";
|
|
|
11
11
|
* ```sh
|
|
12
12
|
* $ pulumi import newrelic:index/oneDashboard:OneDashboard my_dashboard <Dashboard GUID>
|
|
13
13
|
* ```
|
|
14
|
+
*
|
|
15
|
+
* 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`.
|
|
14
16
|
*/
|
|
15
17
|
export declare class OneDashboard extends pulumi.CustomResource {
|
|
16
18
|
/**
|
package/oneDashboard.js
CHANGED
|
@@ -16,6 +16,8 @@ const utilities = require("./utilities");
|
|
|
16
16
|
* ```sh
|
|
17
17
|
* $ pulumi import newrelic:index/oneDashboard:OneDashboard my_dashboard <Dashboard GUID>
|
|
18
18
|
* ```
|
|
19
|
+
*
|
|
20
|
+
* 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`.
|
|
19
21
|
*/
|
|
20
22
|
class OneDashboard extends pulumi.CustomResource {
|
|
21
23
|
constructor(name, argsOrState, opts) {
|
package/oneDashboard.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oneDashboard.js","sourceRoot":"","sources":["../oneDashboard.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC
|
|
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,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,WA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AE,IAAI,CAAC,CAAC;IACjE,CAAC;IA3FD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAyB,EAAE,IAAmC;QACvH,OAAO,IAAI,YAAY,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACnE,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,YAAY,CAAC,YAAY,CAAC;IAC7D,CAAC;;AA1BL,oCA6FC;AA/EG,gBAAgB;AACO,yBAAY,GAAG,0CAA0C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/newrelic",
|
|
3
|
-
"version": "v4.
|
|
3
|
+
"version": "v4.20.0-alpha.1661884582+853a0ea8",
|
|
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 v4.
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource newrelic v4.20.0-alpha.1661884582+853a0ea8"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@pulumi/pulumi": "^3.0.0"
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"typescript": "^4.3.5"
|
|
23
23
|
},
|
|
24
24
|
"pulumi": {
|
|
25
|
-
"resource": true
|
|
25
|
+
"resource": true,
|
|
26
|
+
"name": "newrelic"
|
|
26
27
|
}
|
|
27
28
|
}
|
package/package.json.bak
CHANGED
package/package.json.dev
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/newrelic",
|
|
3
|
-
"version": "v4.
|
|
3
|
+
"version": "v4.20.0-alpha.1661884582+853a0ea8",
|
|
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 v4.
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource newrelic v4.20.0-alpha.1661884582+853a0ea8"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@pulumi/pulumi": "^3.0.0"
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"typescript": "^4.3.5"
|
|
23
23
|
},
|
|
24
24
|
"pulumi": {
|
|
25
|
-
"resource": true
|
|
25
|
+
"resource": true,
|
|
26
|
+
"name": "newrelic"
|
|
26
27
|
}
|
|
27
28
|
}
|
|
@@ -7,8 +7,8 @@ import { input as inputs, output as outputs } from "../types";
|
|
|
7
7
|
*
|
|
8
8
|
* ```typescript
|
|
9
9
|
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
+
* import * as fs from "fs";
|
|
10
11
|
* import * as newrelic from "@pulumi/newrelic";
|
|
11
|
-
* import * from "fs";
|
|
12
12
|
*
|
|
13
13
|
* const foo = new newrelic.synthetics.Monitor("foo", {
|
|
14
14
|
* type: "SCRIPT_BROWSER",
|
|
@@ -12,8 +12,8 @@ const utilities = require("../utilities");
|
|
|
12
12
|
*
|
|
13
13
|
* ```typescript
|
|
14
14
|
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as fs from "fs";
|
|
15
16
|
* import * as newrelic from "@pulumi/newrelic";
|
|
16
|
-
* import * from "fs";
|
|
17
17
|
*
|
|
18
18
|
* const foo = new newrelic.synthetics.Monitor("foo", {
|
|
19
19
|
* type: "SCRIPT_BROWSER",
|
package/types/input.d.ts
CHANGED
|
@@ -203,14 +203,14 @@ export interface EntityTagsTag {
|
|
|
203
203
|
*/
|
|
204
204
|
values: pulumi.Input<pulumi.Input<string>[]>;
|
|
205
205
|
}
|
|
206
|
-
export interface GetEntityTagArgs {
|
|
207
|
-
key: pulumi.Input<string>;
|
|
208
|
-
value: pulumi.Input<string>;
|
|
209
|
-
}
|
|
210
206
|
export interface GetEntityTag {
|
|
211
207
|
key: string;
|
|
212
208
|
value: string;
|
|
213
209
|
}
|
|
210
|
+
export interface GetEntityTagArgs {
|
|
211
|
+
key: pulumi.Input<string>;
|
|
212
|
+
value: pulumi.Input<string>;
|
|
213
|
+
}
|
|
214
214
|
export interface InfraAlertConditionCritical {
|
|
215
215
|
duration: pulumi.Input<number>;
|
|
216
216
|
timeFunction?: pulumi.Input<string>;
|
|
@@ -221,6 +221,18 @@ export interface InfraAlertConditionWarning {
|
|
|
221
221
|
timeFunction?: pulumi.Input<string>;
|
|
222
222
|
value?: pulumi.Input<number>;
|
|
223
223
|
}
|
|
224
|
+
export interface NotificationChannelProperty {
|
|
225
|
+
displayValue?: pulumi.Input<string>;
|
|
226
|
+
key: pulumi.Input<string>;
|
|
227
|
+
label?: pulumi.Input<string>;
|
|
228
|
+
value: pulumi.Input<string>;
|
|
229
|
+
}
|
|
230
|
+
export interface NotificationDestinationProperty {
|
|
231
|
+
displayValue?: pulumi.Input<string>;
|
|
232
|
+
key: pulumi.Input<string>;
|
|
233
|
+
label?: pulumi.Input<string>;
|
|
234
|
+
value: pulumi.Input<string>;
|
|
235
|
+
}
|
|
224
236
|
export interface NrqlAlertConditionCritical {
|
|
225
237
|
/**
|
|
226
238
|
* **DEPRECATED:** Use `thresholdDuration` instead. The duration of time, in _minutes_, that the threshold must violate for in order to create a violation. Must be within 1-120 (inclusive).
|
|
@@ -1081,7 +1093,7 @@ export interface OneDashboardRawPageWidget {
|
|
|
1081
1093
|
export interface ServiceLevelEvents {
|
|
1082
1094
|
/**
|
|
1083
1095
|
* The ID of the account where the entity (e.g, APM Service, Browser application, Workload, etc.) belongs to,
|
|
1084
|
-
* and that contains the NRDB data for the SLI/SLO calculations.
|
|
1096
|
+
* and that contains the NRDB data for the SLI/SLO calculations. Note that changing the account ID will force a new resource.
|
|
1085
1097
|
*/
|
|
1086
1098
|
accountId: pulumi.Input<number>;
|
|
1087
1099
|
/**
|
package/types/output.d.ts
CHANGED
|
@@ -242,6 +242,18 @@ export interface InfraAlertConditionWarning {
|
|
|
242
242
|
timeFunction?: string;
|
|
243
243
|
value?: number;
|
|
244
244
|
}
|
|
245
|
+
export interface NotificationChannelProperty {
|
|
246
|
+
displayValue?: string;
|
|
247
|
+
key: string;
|
|
248
|
+
label?: string;
|
|
249
|
+
value: string;
|
|
250
|
+
}
|
|
251
|
+
export interface NotificationDestinationProperty {
|
|
252
|
+
displayValue?: string;
|
|
253
|
+
key: string;
|
|
254
|
+
label?: string;
|
|
255
|
+
value: string;
|
|
256
|
+
}
|
|
245
257
|
export interface NrqlAlertConditionCritical {
|
|
246
258
|
/**
|
|
247
259
|
* **DEPRECATED:** Use `thresholdDuration` instead. The duration of time, in _minutes_, that the threshold must violate for in order to create a violation. Must be within 1-120 (inclusive).
|
|
@@ -1102,7 +1114,7 @@ export interface OneDashboardRawPageWidget {
|
|
|
1102
1114
|
export interface ServiceLevelEvents {
|
|
1103
1115
|
/**
|
|
1104
1116
|
* The ID of the account where the entity (e.g, APM Service, Browser application, Workload, etc.) belongs to,
|
|
1105
|
-
* and that contains the NRDB data for the SLI/SLO calculations.
|
|
1117
|
+
* and that contains the NRDB data for the SLI/SLO calculations. Note that changing the account ID will force a new resource.
|
|
1106
1118
|
*/
|
|
1107
1119
|
accountId: number;
|
|
1108
1120
|
/**
|