@pulumi/newrelic 4.19.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/notificationChannel.d.ts +119 -18
- package/notificationChannel.js +104 -0
- package/notificationChannel.js.map +1 -1
- package/notificationDestination.d.ts +119 -15
- package/notificationDestination.js +107 -0
- package/notificationDestination.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 +4 -4
package/notificationChannel.d.ts
CHANGED
|
@@ -1,5 +1,109 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
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
|
+
*/
|
|
3
107
|
export declare class NotificationChannel extends pulumi.CustomResource {
|
|
4
108
|
/**
|
|
5
109
|
* Get an existing NotificationChannel resource's state with the given name, ID, and optional extra
|
|
@@ -17,24 +121,23 @@ export declare class NotificationChannel extends pulumi.CustomResource {
|
|
|
17
121
|
*/
|
|
18
122
|
static isInstance(obj: any): obj is NotificationChannel;
|
|
19
123
|
/**
|
|
20
|
-
*
|
|
124
|
+
* The id of the destination.
|
|
21
125
|
*/
|
|
22
126
|
readonly destinationId: pulumi.Output<string>;
|
|
23
127
|
/**
|
|
24
|
-
*
|
|
128
|
+
* The name of the channel.
|
|
25
129
|
*/
|
|
26
130
|
readonly name: pulumi.Output<string>;
|
|
27
131
|
/**
|
|
28
|
-
*
|
|
132
|
+
* The type of product. One of: `ALERTS`, `DISCUSSIONS`, `ERROR_TRACKING`, `IINT`, `NTFC`, `PD` or `SHARING`.
|
|
29
133
|
*/
|
|
30
134
|
readonly product: pulumi.Output<string>;
|
|
31
135
|
/**
|
|
32
|
-
*
|
|
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.
|
|
33
137
|
*/
|
|
34
138
|
readonly properties: pulumi.Output<outputs.NotificationChannelProperty[] | undefined>;
|
|
35
139
|
/**
|
|
36
|
-
*
|
|
37
|
-
* PAGERDUTY_SERVICE_INTEGRATION).
|
|
140
|
+
* The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `WEBHOOK`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`.
|
|
38
141
|
*/
|
|
39
142
|
readonly type: pulumi.Output<string>;
|
|
40
143
|
/**
|
|
@@ -51,24 +154,23 @@ export declare class NotificationChannel extends pulumi.CustomResource {
|
|
|
51
154
|
*/
|
|
52
155
|
export interface NotificationChannelState {
|
|
53
156
|
/**
|
|
54
|
-
*
|
|
157
|
+
* The id of the destination.
|
|
55
158
|
*/
|
|
56
159
|
destinationId?: pulumi.Input<string>;
|
|
57
160
|
/**
|
|
58
|
-
*
|
|
161
|
+
* The name of the channel.
|
|
59
162
|
*/
|
|
60
163
|
name?: pulumi.Input<string>;
|
|
61
164
|
/**
|
|
62
|
-
*
|
|
165
|
+
* The type of product. One of: `ALERTS`, `DISCUSSIONS`, `ERROR_TRACKING`, `IINT`, `NTFC`, `PD` or `SHARING`.
|
|
63
166
|
*/
|
|
64
167
|
product?: pulumi.Input<string>;
|
|
65
168
|
/**
|
|
66
|
-
*
|
|
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.
|
|
67
170
|
*/
|
|
68
171
|
properties?: pulumi.Input<pulumi.Input<inputs.NotificationChannelProperty>[]>;
|
|
69
172
|
/**
|
|
70
|
-
*
|
|
71
|
-
* PAGERDUTY_SERVICE_INTEGRATION).
|
|
173
|
+
* The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `WEBHOOK`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`.
|
|
72
174
|
*/
|
|
73
175
|
type?: pulumi.Input<string>;
|
|
74
176
|
}
|
|
@@ -77,24 +179,23 @@ export interface NotificationChannelState {
|
|
|
77
179
|
*/
|
|
78
180
|
export interface NotificationChannelArgs {
|
|
79
181
|
/**
|
|
80
|
-
*
|
|
182
|
+
* The id of the destination.
|
|
81
183
|
*/
|
|
82
184
|
destinationId: pulumi.Input<string>;
|
|
83
185
|
/**
|
|
84
|
-
*
|
|
186
|
+
* The name of the channel.
|
|
85
187
|
*/
|
|
86
188
|
name?: pulumi.Input<string>;
|
|
87
189
|
/**
|
|
88
|
-
*
|
|
190
|
+
* The type of product. One of: `ALERTS`, `DISCUSSIONS`, `ERROR_TRACKING`, `IINT`, `NTFC`, `PD` or `SHARING`.
|
|
89
191
|
*/
|
|
90
192
|
product: pulumi.Input<string>;
|
|
91
193
|
/**
|
|
92
|
-
*
|
|
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.
|
|
93
195
|
*/
|
|
94
196
|
properties?: pulumi.Input<pulumi.Input<inputs.NotificationChannelProperty>[]>;
|
|
95
197
|
/**
|
|
96
|
-
*
|
|
97
|
-
* PAGERDUTY_SERVICE_INTEGRATION).
|
|
198
|
+
* The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `WEBHOOK`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`.
|
|
98
199
|
*/
|
|
99
200
|
type: pulumi.Input<string>;
|
|
100
201
|
}
|
package/notificationChannel.js
CHANGED
|
@@ -5,6 +5,110 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.NotificationChannel = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
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
|
+
*/
|
|
8
112
|
class NotificationChannel extends pulumi.CustomResource {
|
|
9
113
|
constructor(name, argsOrState, opts) {
|
|
10
114
|
let resourceInputs = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notificationChannel.js","sourceRoot":"","sources":["../notificationChannel.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC,MAAa,mBAAoB,SAAQ,MAAM,CAAC,cAAc;
|
|
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;a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E,cAAc,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"}
|
|
@@ -1,5 +1,112 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
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
|
+
*/
|
|
3
110
|
export declare class NotificationDestination extends pulumi.CustomResource {
|
|
4
111
|
/**
|
|
5
112
|
* Get an existing NotificationDestination resource's state with the given name, ID, and optional extra
|
|
@@ -17,22 +124,21 @@ export declare class NotificationDestination extends pulumi.CustomResource {
|
|
|
17
124
|
*/
|
|
18
125
|
static isInstance(obj: any): obj is NotificationDestination;
|
|
19
126
|
/**
|
|
20
|
-
* A
|
|
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.
|
|
21
128
|
*/
|
|
22
129
|
readonly auth: pulumi.Output<{
|
|
23
130
|
[key: string]: string;
|
|
24
131
|
} | undefined>;
|
|
25
132
|
/**
|
|
26
|
-
*
|
|
133
|
+
* The name of the destination.
|
|
27
134
|
*/
|
|
28
135
|
readonly name: pulumi.Output<string>;
|
|
29
136
|
/**
|
|
30
|
-
*
|
|
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.
|
|
31
138
|
*/
|
|
32
139
|
readonly properties: pulumi.Output<outputs.NotificationDestinationProperty[] | undefined>;
|
|
33
140
|
/**
|
|
34
|
-
*
|
|
35
|
-
* PAGERDUTY_SERVICE_INTEGRATION).
|
|
141
|
+
* The type of the auth. One of: `TOKEN` or `BASIC`.
|
|
36
142
|
*/
|
|
37
143
|
readonly type: pulumi.Output<string>;
|
|
38
144
|
/**
|
|
@@ -49,22 +155,21 @@ export declare class NotificationDestination extends pulumi.CustomResource {
|
|
|
49
155
|
*/
|
|
50
156
|
export interface NotificationDestinationState {
|
|
51
157
|
/**
|
|
52
|
-
* A
|
|
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.
|
|
53
159
|
*/
|
|
54
160
|
auth?: pulumi.Input<{
|
|
55
161
|
[key: string]: pulumi.Input<string>;
|
|
56
162
|
}>;
|
|
57
163
|
/**
|
|
58
|
-
*
|
|
164
|
+
* The name of the destination.
|
|
59
165
|
*/
|
|
60
166
|
name?: pulumi.Input<string>;
|
|
61
167
|
/**
|
|
62
|
-
*
|
|
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.
|
|
63
169
|
*/
|
|
64
170
|
properties?: pulumi.Input<pulumi.Input<inputs.NotificationDestinationProperty>[]>;
|
|
65
171
|
/**
|
|
66
|
-
*
|
|
67
|
-
* PAGERDUTY_SERVICE_INTEGRATION).
|
|
172
|
+
* The type of the auth. One of: `TOKEN` or `BASIC`.
|
|
68
173
|
*/
|
|
69
174
|
type?: pulumi.Input<string>;
|
|
70
175
|
}
|
|
@@ -73,22 +178,21 @@ export interface NotificationDestinationState {
|
|
|
73
178
|
*/
|
|
74
179
|
export interface NotificationDestinationArgs {
|
|
75
180
|
/**
|
|
76
|
-
* A
|
|
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.
|
|
77
182
|
*/
|
|
78
183
|
auth?: pulumi.Input<{
|
|
79
184
|
[key: string]: pulumi.Input<string>;
|
|
80
185
|
}>;
|
|
81
186
|
/**
|
|
82
|
-
*
|
|
187
|
+
* The name of the destination.
|
|
83
188
|
*/
|
|
84
189
|
name?: pulumi.Input<string>;
|
|
85
190
|
/**
|
|
86
|
-
*
|
|
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.
|
|
87
192
|
*/
|
|
88
193
|
properties?: pulumi.Input<pulumi.Input<inputs.NotificationDestinationProperty>[]>;
|
|
89
194
|
/**
|
|
90
|
-
*
|
|
91
|
-
* PAGERDUTY_SERVICE_INTEGRATION).
|
|
195
|
+
* The type of the auth. One of: `TOKEN` or `BASIC`.
|
|
92
196
|
*/
|
|
93
197
|
type: pulumi.Input<string>;
|
|
94
198
|
}
|
|
@@ -5,6 +5,113 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.NotificationDestination = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
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
|
+
*/
|
|
8
115
|
class NotificationDestination extends pulumi.CustomResource {
|
|
9
116
|
constructor(name, argsOrState, opts) {
|
|
10
117
|
let resourceInputs = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notificationDestination.js","sourceRoot":"","sources":["../notificationDestination.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC,MAAa,uBAAwB,SAAQ,MAAM,CAAC,cAAc;
|
|
1
|
+
{"version":3,"file":"notificationDestination.js","sourceRoot":"","sources":["../notificationDestination.ts"],"names":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AM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;SACzD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,uBAAuB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC5E,CAAC;IAzED;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAoC,EAAE,IAAmC;QAClI,OAAO,IAAI,uBAAuB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;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/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>;
|