@pulumi/newrelic 4.19.0 → 5.0.0-alpha.1663005924
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/README.md +2 -2
- package/alertPolicyChannel.d.ts +1 -1
- package/alertPolicyChannel.js +1 -1
- package/cloud/awsIntegrations.d.ts +24 -0
- package/cloud/awsIntegrations.js +4 -0
- package/cloud/awsIntegrations.js.map +1 -1
- package/getAlertChannel.d.ts +9 -0
- package/getAlertChannel.js +1 -0
- package/getAlertChannel.js.map +1 -1
- package/getAlertPolicy.d.ts +6 -0
- package/getAlertPolicy.js.map +1 -1
- package/index.d.ts +1 -1
- package/index.js +5 -5
- package/index.js.map +1 -1
- package/notificationChannel.d.ts +236 -20
- package/notificationChannel.js +199 -0
- package/notificationChannel.js.map +1 -1
- package/notificationDestination.d.ts +204 -26
- package/notificationDestination.js +144 -2
- package/notificationDestination.js.map +1 -1
- package/nrqlAlertCondition.d.ts +12 -15
- package/nrqlAlertCondition.js +0 -3
- package/nrqlAlertCondition.js.map +1 -1
- package/package.json +4 -3
- package/package.json.bak +2 -1
- package/package.json.dev +4 -3
- package/plugins/index.d.ts +0 -3
- package/plugins/index.js +0 -7
- package/plugins/index.js.map +1 -1
- package/synthetics/alertCondition.d.ts +3 -19
- package/synthetics/alertCondition.js +0 -16
- package/synthetics/alertCondition.js.map +1 -1
- package/synthetics/brokenLinksMonitor.d.ts +198 -0
- package/synthetics/brokenLinksMonitor.js +131 -0
- package/synthetics/brokenLinksMonitor.js.map +1 -0
- package/synthetics/certCheckMonitor.d.ts +203 -0
- package/synthetics/certCheckMonitor.js +135 -0
- package/synthetics/certCheckMonitor.js.map +1 -0
- package/synthetics/getPrivateLocation.d.ts +34 -0
- package/synthetics/getPrivateLocation.js +25 -0
- package/synthetics/getPrivateLocation.js.map +1 -0
- package/synthetics/getSecureCredential.d.ts +0 -4
- package/synthetics/getSecureCredential.js.map +1 -1
- package/synthetics/index.d.ts +6 -3
- package/synthetics/index.js +26 -7
- package/synthetics/index.js.map +1 -1
- package/synthetics/monitor.d.ts +221 -77
- package/synthetics/monitor.js +114 -47
- package/synthetics/monitor.js.map +1 -1
- package/synthetics/multiLocationAlertCondition.d.ts +32 -3
- package/synthetics/multiLocationAlertCondition.js +29 -0
- package/synthetics/multiLocationAlertCondition.js.map +1 -1
- package/synthetics/privateLocation.d.ts +139 -0
- package/synthetics/privateLocation.js +89 -0
- package/synthetics/privateLocation.js.map +1 -0
- package/synthetics/scriptMonitor.d.ts +341 -0
- package/synthetics/scriptMonitor.js +224 -0
- package/synthetics/scriptMonitor.js.map +1 -0
- package/synthetics/secureCredential.d.ts +6 -6
- package/synthetics/secureCredential.js +2 -2
- package/synthetics/stepMonitor.d.ts +192 -0
- package/synthetics/stepMonitor.js +115 -0
- package/synthetics/stepMonitor.js.map +1 -0
- package/types/input.d.ts +217 -130
- package/types/output.d.ts +213 -126
- package/workflow.d.ts +291 -0
- package/workflow.js +208 -0
- package/workflow.js.map +1 -0
- package/dashboard.d.ts +0 -139
- package/dashboard.js +0 -73
- package/dashboard.js.map +0 -1
- package/plugins/alertCondition.d.ts +0 -167
- package/plugins/alertCondition.js +0 -100
- package/plugins/alertCondition.js.map +0 -1
- package/plugins/getPlugin.d.ts +0 -29
- package/plugins/getPlugin.js +0 -29
- package/plugins/getPlugin.js.map +0 -1
- package/plugins/getPluginComponent.d.ts +0 -33
- package/plugins/getPluginComponent.js +0 -30
- package/plugins/getPluginComponent.js.map +0 -1
- package/synthetics/getMonitor.d.ts +0 -54
- package/synthetics/getMonitor.js +0 -41
- package/synthetics/getMonitor.js.map +0 -1
- package/synthetics/getMonitorLocation.d.ts +0 -71
- package/synthetics/getMonitorLocation.js +0 -46
- package/synthetics/getMonitorLocation.js.map +0 -1
- package/synthetics/monitorScript.d.ts +0 -107
- package/synthetics/monitorScript.js +0 -93
- package/synthetics/monitorScript.js.map +0 -1
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
[](https://www.npmjs.com/package/@pulumi/newrelic)
|
|
4
4
|
[](https://pypi.org/project/pulumi-newrelic)
|
|
5
5
|
[](https://badge.fury.io/nu/pulumi.newrelic)
|
|
6
|
-
[](https://pkg.go.dev/github.com/pulumi/pulumi-newrelic/sdk/v5/go)
|
|
7
7
|
[](https://github.com/pulumi/pulumi-newrelic/blob/master/LICENSE)
|
|
8
8
|
|
|
9
9
|
# New Relic Provider
|
|
@@ -35,7 +35,7 @@ To use from Python, install using `pip`:
|
|
|
35
35
|
|
|
36
36
|
To use from Go, use `go get` to grab the latest version of the library
|
|
37
37
|
|
|
38
|
-
$ go get github.com/pulumi/pulumi-newrelic/sdk/
|
|
38
|
+
$ go get github.com/pulumi/pulumi-newrelic/sdk/v5
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
### .NET
|
package/alertPolicyChannel.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
32
32
|
* // Applies the created channels above to the alert policy
|
|
33
33
|
* // referenced at the top of the config.
|
|
34
34
|
* const foo = new newrelic.AlertPolicyChannel("foo", {
|
|
35
|
-
* policyId:
|
|
35
|
+
* policyId: examplePolicy.then(examplePolicy => examplePolicy.id),
|
|
36
36
|
* channelIds: [
|
|
37
37
|
* emailChannel.id,
|
|
38
38
|
* slackChannel.id,
|
package/alertPolicyChannel.js
CHANGED
|
@@ -38,7 +38,7 @@ const utilities = require("./utilities");
|
|
|
38
38
|
* // Applies the created channels above to the alert policy
|
|
39
39
|
* // referenced at the top of the config.
|
|
40
40
|
* const foo = new newrelic.AlertPolicyChannel("foo", {
|
|
41
|
-
* policyId:
|
|
41
|
+
* policyId: examplePolicy.then(examplePolicy => examplePolicy.id),
|
|
42
42
|
* channelIds: [
|
|
43
43
|
* emailChannel.id,
|
|
44
44
|
* slackChannel.id,
|
|
@@ -37,6 +37,10 @@ export declare class AwsIntegrations extends pulumi.CustomResource {
|
|
|
37
37
|
* Cloudtrail integration. See Integration blocks below for details.
|
|
38
38
|
*/
|
|
39
39
|
readonly cloudtrail: pulumi.Output<outputs.cloud.AwsIntegrationsCloudtrail | undefined>;
|
|
40
|
+
/**
|
|
41
|
+
* Billing integration
|
|
42
|
+
*/
|
|
43
|
+
readonly docDb: pulumi.Output<outputs.cloud.AwsIntegrationsDocDb | undefined>;
|
|
40
44
|
/**
|
|
41
45
|
* Health integration. See Integration blocks below for details.
|
|
42
46
|
*/
|
|
@@ -45,6 +49,10 @@ export declare class AwsIntegrations extends pulumi.CustomResource {
|
|
|
45
49
|
* The ID of the linked AWS account in New Relic.
|
|
46
50
|
*/
|
|
47
51
|
readonly linkedAccountId: pulumi.Output<number>;
|
|
52
|
+
/**
|
|
53
|
+
* S3 integration
|
|
54
|
+
*/
|
|
55
|
+
readonly s3: pulumi.Output<outputs.cloud.AwsIntegrationsS3 | undefined>;
|
|
48
56
|
/**
|
|
49
57
|
* Trusted Advisor integration. See Integration blocks below for details.
|
|
50
58
|
*/
|
|
@@ -82,6 +90,10 @@ export interface AwsIntegrationsState {
|
|
|
82
90
|
* Cloudtrail integration. See Integration blocks below for details.
|
|
83
91
|
*/
|
|
84
92
|
cloudtrail?: pulumi.Input<inputs.cloud.AwsIntegrationsCloudtrail>;
|
|
93
|
+
/**
|
|
94
|
+
* Billing integration
|
|
95
|
+
*/
|
|
96
|
+
docDb?: pulumi.Input<inputs.cloud.AwsIntegrationsDocDb>;
|
|
85
97
|
/**
|
|
86
98
|
* Health integration. See Integration blocks below for details.
|
|
87
99
|
*/
|
|
@@ -90,6 +102,10 @@ export interface AwsIntegrationsState {
|
|
|
90
102
|
* The ID of the linked AWS account in New Relic.
|
|
91
103
|
*/
|
|
92
104
|
linkedAccountId?: pulumi.Input<number>;
|
|
105
|
+
/**
|
|
106
|
+
* S3 integration
|
|
107
|
+
*/
|
|
108
|
+
s3?: pulumi.Input<inputs.cloud.AwsIntegrationsS3>;
|
|
93
109
|
/**
|
|
94
110
|
* Trusted Advisor integration. See Integration blocks below for details.
|
|
95
111
|
*/
|
|
@@ -119,6 +135,10 @@ export interface AwsIntegrationsArgs {
|
|
|
119
135
|
* Cloudtrail integration. See Integration blocks below for details.
|
|
120
136
|
*/
|
|
121
137
|
cloudtrail?: pulumi.Input<inputs.cloud.AwsIntegrationsCloudtrail>;
|
|
138
|
+
/**
|
|
139
|
+
* Billing integration
|
|
140
|
+
*/
|
|
141
|
+
docDb?: pulumi.Input<inputs.cloud.AwsIntegrationsDocDb>;
|
|
122
142
|
/**
|
|
123
143
|
* Health integration. See Integration blocks below for details.
|
|
124
144
|
*/
|
|
@@ -127,6 +147,10 @@ export interface AwsIntegrationsArgs {
|
|
|
127
147
|
* The ID of the linked AWS account in New Relic.
|
|
128
148
|
*/
|
|
129
149
|
linkedAccountId: pulumi.Input<number>;
|
|
150
|
+
/**
|
|
151
|
+
* S3 integration
|
|
152
|
+
*/
|
|
153
|
+
s3?: pulumi.Input<inputs.cloud.AwsIntegrationsS3>;
|
|
130
154
|
/**
|
|
131
155
|
* Trusted Advisor integration. See Integration blocks below for details.
|
|
132
156
|
*/
|
package/cloud/awsIntegrations.js
CHANGED
|
@@ -23,8 +23,10 @@ class AwsIntegrations extends pulumi.CustomResource {
|
|
|
23
23
|
resourceInputs["accountId"] = state ? state.accountId : undefined;
|
|
24
24
|
resourceInputs["billing"] = state ? state.billing : undefined;
|
|
25
25
|
resourceInputs["cloudtrail"] = state ? state.cloudtrail : undefined;
|
|
26
|
+
resourceInputs["docDb"] = state ? state.docDb : undefined;
|
|
26
27
|
resourceInputs["health"] = state ? state.health : undefined;
|
|
27
28
|
resourceInputs["linkedAccountId"] = state ? state.linkedAccountId : undefined;
|
|
29
|
+
resourceInputs["s3"] = state ? state.s3 : undefined;
|
|
28
30
|
resourceInputs["trustedAdvisor"] = state ? state.trustedAdvisor : undefined;
|
|
29
31
|
resourceInputs["vpc"] = state ? state.vpc : undefined;
|
|
30
32
|
resourceInputs["xRay"] = state ? state.xRay : undefined;
|
|
@@ -37,8 +39,10 @@ class AwsIntegrations extends pulumi.CustomResource {
|
|
|
37
39
|
resourceInputs["accountId"] = args ? args.accountId : undefined;
|
|
38
40
|
resourceInputs["billing"] = args ? args.billing : undefined;
|
|
39
41
|
resourceInputs["cloudtrail"] = args ? args.cloudtrail : undefined;
|
|
42
|
+
resourceInputs["docDb"] = args ? args.docDb : undefined;
|
|
40
43
|
resourceInputs["health"] = args ? args.health : undefined;
|
|
41
44
|
resourceInputs["linkedAccountId"] = args ? args.linkedAccountId : undefined;
|
|
45
|
+
resourceInputs["s3"] = args ? args.s3 : undefined;
|
|
42
46
|
resourceInputs["trustedAdvisor"] = args ? args.trustedAdvisor : undefined;
|
|
43
47
|
resourceInputs["vpc"] = args ? args.vpc : undefined;
|
|
44
48
|
resourceInputs["xRay"] = args ? args.xRay : undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"awsIntegrations.js","sourceRoot":"","sources":["../../cloud/awsIntegrations.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,0CAA0C;AAE1C;;;;;;;;GAQG;AACH,MAAa,eAAgB,SAAQ,MAAM,CAAC,cAAc;
|
|
1
|
+
{"version":3,"file":"awsIntegrations.js","sourceRoot":"","sources":["../../cloud/awsIntegrations.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,0CAA0C;AAE1C;;;;;;;;GAQG;AACH,MAAa,eAAgB,SAAQ,MAAM,CAAC,cAAc;IA6EtD,YAAY,IAAY,EAAE,WAAwD,EAAE,IAAmC;QACnH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA+C,CAAC;YAC9D,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAA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AAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACpE,CAAC;IA7GD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA4B,EAAE,IAAmC;QAC1H,OAAO,IAAI,eAAe,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACtE,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,eAAe,CAAC,YAAY,CAAC;IAChE,CAAC;;AA1BL,0CA+GC;AAjGG,gBAAgB;AACO,4BAAY,GAAG,gDAAgD,CAAC"}
|
package/getAlertChannel.d.ts
CHANGED
|
@@ -8,6 +8,10 @@ export declare function getAlertChannel(args: GetAlertChannelArgs, opts?: pulumi
|
|
|
8
8
|
* A collection of arguments for invoking getAlertChannel.
|
|
9
9
|
*/
|
|
10
10
|
export interface GetAlertChannelArgs {
|
|
11
|
+
/**
|
|
12
|
+
* The New Relic account ID to operate on. This allows you to override the `accountId` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`.
|
|
13
|
+
*/
|
|
14
|
+
accountId?: number;
|
|
11
15
|
/**
|
|
12
16
|
* The name of the alert channel in New Relic.
|
|
13
17
|
*/
|
|
@@ -17,6 +21,7 @@ export interface GetAlertChannelArgs {
|
|
|
17
21
|
* A collection of values returned by getAlertChannel.
|
|
18
22
|
*/
|
|
19
23
|
export interface GetAlertChannelResult {
|
|
24
|
+
readonly accountId: number;
|
|
20
25
|
/**
|
|
21
26
|
* Alert channel configuration.
|
|
22
27
|
*/
|
|
@@ -40,6 +45,10 @@ export declare function getAlertChannelOutput(args: GetAlertChannelOutputArgs, o
|
|
|
40
45
|
* A collection of arguments for invoking getAlertChannel.
|
|
41
46
|
*/
|
|
42
47
|
export interface GetAlertChannelOutputArgs {
|
|
48
|
+
/**
|
|
49
|
+
* The New Relic account ID to operate on. This allows you to override the `accountId` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`.
|
|
50
|
+
*/
|
|
51
|
+
accountId?: pulumi.Input<number>;
|
|
43
52
|
/**
|
|
44
53
|
* The name of the alert channel in New Relic.
|
|
45
54
|
*/
|
package/getAlertChannel.js
CHANGED
|
@@ -14,6 +14,7 @@ function getAlertChannel(args, opts) {
|
|
|
14
14
|
}
|
|
15
15
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
16
16
|
return pulumi.runtime.invoke("newrelic:index/getAlertChannel:getAlertChannel", {
|
|
17
|
+
"accountId": args.accountId,
|
|
17
18
|
"name": args.name,
|
|
18
19
|
}, opts);
|
|
19
20
|
}
|
package/getAlertChannel.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAlertChannel.js","sourceRoot":"","sources":["../getAlertChannel.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;GAEG;AACH,SAAgB,eAAe,CAAC,IAAyB,EAAE,IAA2B;IAClF,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,gDAAgD,EAAE;QAC3E,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;
|
|
1
|
+
{"version":3,"file":"getAlertChannel.js","sourceRoot":"","sources":["../getAlertChannel.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;GAEG;AACH,SAAgB,eAAe,CAAC,IAAyB,EAAE,IAA2B;IAClF,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,gDAAgD,EAAE;QAC3E,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAVD,0CAUC;AAwCD,SAAgB,qBAAqB,CAAC,IAA+B,EAAE,IAA2B;IAC9F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,eAAe,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACnE,CAAC;AAFD,sDAEC"}
|
package/getAlertPolicy.d.ts
CHANGED
|
@@ -7,6 +7,9 @@ export declare function getAlertPolicy(args: GetAlertPolicyArgs, opts?: pulumi.I
|
|
|
7
7
|
* A collection of arguments for invoking getAlertPolicy.
|
|
8
8
|
*/
|
|
9
9
|
export interface GetAlertPolicyArgs {
|
|
10
|
+
/**
|
|
11
|
+
* The New Relic account ID to operate on. This allows you to override the `accountId` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`.
|
|
12
|
+
*/
|
|
10
13
|
accountId?: number;
|
|
11
14
|
/**
|
|
12
15
|
* The rollup strategy for the policy. Options include: PER_POLICY, PER_CONDITION, or PER_CONDITION_AND_TARGET. The default is PER_POLICY.
|
|
@@ -45,6 +48,9 @@ export declare function getAlertPolicyOutput(args: GetAlertPolicyOutputArgs, opt
|
|
|
45
48
|
* A collection of arguments for invoking getAlertPolicy.
|
|
46
49
|
*/
|
|
47
50
|
export interface GetAlertPolicyOutputArgs {
|
|
51
|
+
/**
|
|
52
|
+
* The New Relic account ID to operate on. This allows you to override the `accountId` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`.
|
|
53
|
+
*/
|
|
48
54
|
accountId?: pulumi.Input<number>;
|
|
49
55
|
/**
|
|
50
56
|
* The rollup strategy for the policy. Options include: PER_POLICY, PER_CONDITION, or PER_CONDITION_AND_TARGET. The default is PER_POLICY.
|
package/getAlertPolicy.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAlertPolicy.js","sourceRoot":"","sources":["../getAlertPolicy.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;GAEG;AACH,SAAgB,cAAc,CAAC,IAAwB,EAAE,IAA2B;IAChF,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,8CAA8C,EAAE;QACzE,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,oBAAoB,EAAE,IAAI,CAAC,kBAAkB;QAC7C,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAXD,wCAWC;
|
|
1
|
+
{"version":3,"file":"getAlertPolicy.js","sourceRoot":"","sources":["../getAlertPolicy.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;GAEG;AACH,SAAgB,cAAc,CAAC,IAAwB,EAAE,IAA2B;IAChF,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,8CAA8C,EAAE;QACzE,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,oBAAoB,EAAE,IAAI,CAAC,kBAAkB;QAC7C,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAXD,wCAWC;AA4CD,SAAgB,oBAAoB,CAAC,IAA8B,EAAE,IAA2B;IAC5F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,cAAc,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAClE,CAAC;AAFD,oDAEC"}
|
package/index.d.ts
CHANGED
|
@@ -4,7 +4,6 @@ export * from "./alertMutingRule";
|
|
|
4
4
|
export * from "./alertPolicy";
|
|
5
5
|
export * from "./alertPolicyChannel";
|
|
6
6
|
export * from "./apiAccessKey";
|
|
7
|
-
export * from "./dashboard";
|
|
8
7
|
export * from "./entityTags";
|
|
9
8
|
export * from "./eventsToMetricsRule";
|
|
10
9
|
export * from "./getAccount";
|
|
@@ -23,6 +22,7 @@ export * from "./oneDashboard";
|
|
|
23
22
|
export * from "./oneDashboardRaw";
|
|
24
23
|
export * from "./provider";
|
|
25
24
|
export * from "./serviceLevel";
|
|
25
|
+
export * from "./workflow";
|
|
26
26
|
import * as cloud from "./cloud";
|
|
27
27
|
import * as config from "./config";
|
|
28
28
|
import * as insights from "./insights";
|
package/index.js
CHANGED
|
@@ -26,7 +26,6 @@ __exportStar(require("./alertMutingRule"), exports);
|
|
|
26
26
|
__exportStar(require("./alertPolicy"), exports);
|
|
27
27
|
__exportStar(require("./alertPolicyChannel"), exports);
|
|
28
28
|
__exportStar(require("./apiAccessKey"), exports);
|
|
29
|
-
__exportStar(require("./dashboard"), exports);
|
|
30
29
|
__exportStar(require("./entityTags"), exports);
|
|
31
30
|
__exportStar(require("./eventsToMetricsRule"), exports);
|
|
32
31
|
__exportStar(require("./getAccount"), exports);
|
|
@@ -45,6 +44,7 @@ __exportStar(require("./oneDashboard"), exports);
|
|
|
45
44
|
__exportStar(require("./oneDashboardRaw"), exports);
|
|
46
45
|
__exportStar(require("./provider"), exports);
|
|
47
46
|
__exportStar(require("./serviceLevel"), exports);
|
|
47
|
+
__exportStar(require("./workflow"), exports);
|
|
48
48
|
// Export sub-modules:
|
|
49
49
|
const cloud = require("./cloud");
|
|
50
50
|
exports.cloud = cloud;
|
|
@@ -65,7 +65,6 @@ const alertMutingRule_1 = require("./alertMutingRule");
|
|
|
65
65
|
const alertPolicy_1 = require("./alertPolicy");
|
|
66
66
|
const alertPolicyChannel_1 = require("./alertPolicyChannel");
|
|
67
67
|
const apiAccessKey_1 = require("./apiAccessKey");
|
|
68
|
-
const dashboard_1 = require("./dashboard");
|
|
69
68
|
const entityTags_1 = require("./entityTags");
|
|
70
69
|
const eventsToMetricsRule_1 = require("./eventsToMetricsRule");
|
|
71
70
|
const infraAlertCondition_1 = require("./infraAlertCondition");
|
|
@@ -76,6 +75,7 @@ const nrqlDropRule_1 = require("./nrqlDropRule");
|
|
|
76
75
|
const oneDashboard_1 = require("./oneDashboard");
|
|
77
76
|
const oneDashboardRaw_1 = require("./oneDashboardRaw");
|
|
78
77
|
const serviceLevel_1 = require("./serviceLevel");
|
|
78
|
+
const workflow_1 = require("./workflow");
|
|
79
79
|
const _module = {
|
|
80
80
|
version: utilities.getVersion(),
|
|
81
81
|
construct: (name, type, urn) => {
|
|
@@ -92,8 +92,6 @@ const _module = {
|
|
|
92
92
|
return new alertPolicyChannel_1.AlertPolicyChannel(name, undefined, { urn });
|
|
93
93
|
case "newrelic:index/apiAccessKey:ApiAccessKey":
|
|
94
94
|
return new apiAccessKey_1.ApiAccessKey(name, undefined, { urn });
|
|
95
|
-
case "newrelic:index/dashboard:Dashboard":
|
|
96
|
-
return new dashboard_1.Dashboard(name, undefined, { urn });
|
|
97
95
|
case "newrelic:index/entityTags:EntityTags":
|
|
98
96
|
return new entityTags_1.EntityTags(name, undefined, { urn });
|
|
99
97
|
case "newrelic:index/eventsToMetricsRule:EventsToMetricsRule":
|
|
@@ -114,6 +112,8 @@ const _module = {
|
|
|
114
112
|
return new oneDashboardRaw_1.OneDashboardRaw(name, undefined, { urn });
|
|
115
113
|
case "newrelic:index/serviceLevel:ServiceLevel":
|
|
116
114
|
return new serviceLevel_1.ServiceLevel(name, undefined, { urn });
|
|
115
|
+
case "newrelic:index/workflow:Workflow":
|
|
116
|
+
return new workflow_1.Workflow(name, undefined, { urn });
|
|
117
117
|
default:
|
|
118
118
|
throw new Error(`unknown resource type ${type}`);
|
|
119
119
|
}
|
|
@@ -125,7 +125,6 @@ pulumi.runtime.registerResourceModule("newrelic", "index/alertMutingRule", _modu
|
|
|
125
125
|
pulumi.runtime.registerResourceModule("newrelic", "index/alertPolicy", _module);
|
|
126
126
|
pulumi.runtime.registerResourceModule("newrelic", "index/alertPolicyChannel", _module);
|
|
127
127
|
pulumi.runtime.registerResourceModule("newrelic", "index/apiAccessKey", _module);
|
|
128
|
-
pulumi.runtime.registerResourceModule("newrelic", "index/dashboard", _module);
|
|
129
128
|
pulumi.runtime.registerResourceModule("newrelic", "index/entityTags", _module);
|
|
130
129
|
pulumi.runtime.registerResourceModule("newrelic", "index/eventsToMetricsRule", _module);
|
|
131
130
|
pulumi.runtime.registerResourceModule("newrelic", "index/infraAlertCondition", _module);
|
|
@@ -136,6 +135,7 @@ pulumi.runtime.registerResourceModule("newrelic", "index/nrqlDropRule", _module)
|
|
|
136
135
|
pulumi.runtime.registerResourceModule("newrelic", "index/oneDashboard", _module);
|
|
137
136
|
pulumi.runtime.registerResourceModule("newrelic", "index/oneDashboardRaw", _module);
|
|
138
137
|
pulumi.runtime.registerResourceModule("newrelic", "index/serviceLevel", _module);
|
|
138
|
+
pulumi.runtime.registerResourceModule("newrelic", "index/workflow", _module);
|
|
139
139
|
const provider_1 = require("./provider");
|
|
140
140
|
pulumi.runtime.registerResourcePackage("newrelic", {
|
|
141
141
|
version: utilities.getVersion(),
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;;;;;;;;;;;;;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,kBAAkB;AAClB,iDAA+B;AAC/B,mDAAiC;AACjC,oDAAkC;AAClC,gDAA8B;AAC9B,uDAAqC;AACrC,iDAA+B;AAC/B
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;;;;;;;;;;;;;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,kBAAkB;AAClB,iDAA+B;AAC/B,mDAAiC;AACjC,oDAAkC;AAClC,gDAA8B;AAC9B,uDAAqC;AACrC,iDAA+B;AAC/B,+CAA6B;AAC7B,wDAAsC;AACtC,+CAA6B;AAC7B,oDAAkC;AAClC,mDAAiC;AACjC,mDAAiC;AACjC,oDAAkC;AAClC,8CAA4B;AAC5B,sDAAoC;AACpC,wDAAsC;AACtC,wDAAsC;AACtC,4DAA0C;AAC1C,uDAAqC;AACrC,iDAA+B;AAC/B,iDAA+B;AAC/B,oDAAkC;AAClC,6CAA2B;AAC3B,iDAA+B;AAC/B,6CAA2B;AAE3B,sBAAsB;AACtB,iCAAiC;AAQ7B,sBAAK;AAPT,mCAAmC;AAQ/B,wBAAM;AAPV,uCAAuC;AAQnC,4BAAQ;AAPZ,qCAAqC;AAQjC,0BAAO;AAPX,2CAA2C;AAQvC,gCAAU;AAPd,iCAAiC;AAQ7B,sBAAK;AAGT,gCAAgC;AAChC,iDAA8C;AAC9C,qDAAkD;AAClD,uDAAoD;AACpD,+CAA4C;AAC5C,6DAA0D;AAC1D,iDAA8C;AAC9C,6CAA0C;A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AAC,OAAO,CAAC,sBAAsB,CAAC,UAAU,EAAE,gBAAgB,EAAE,OAAO,CAAC,CAAA;AAE5E,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"}
|
package/notificationChannel.d.ts
CHANGED
|
@@ -1,5 +1,192 @@
|
|
|
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. Details regarding supported products and permissions can be found [here](https://docs.newrelic.com/docs/alerts-applied-intelligence/notifications/destinations).
|
|
5
|
+
*
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* ##### [Webhook](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#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
|
+
* accountId: 12345678,
|
|
15
|
+
* destinationId: "00b6bd1d-ac06-4d3d-bd72-49551e70f7a8",
|
|
16
|
+
* product: "IINT",
|
|
17
|
+
* properties: [{
|
|
18
|
+
* key: "payload",
|
|
19
|
+
* label: "Payload Template",
|
|
20
|
+
* value: "name: {{ foo }}",
|
|
21
|
+
* }],
|
|
22
|
+
* type: "WEBHOOK",
|
|
23
|
+
* });
|
|
24
|
+
* ```
|
|
25
|
+
* See additional examples.
|
|
26
|
+
* ## Additional Examples
|
|
27
|
+
*
|
|
28
|
+
* ##### [ServiceNow](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#servicenow)
|
|
29
|
+
* ```typescript
|
|
30
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
31
|
+
* import * as newrelic from "@pulumi/newrelic";
|
|
32
|
+
*
|
|
33
|
+
* const foo = new newrelic.NotificationChannel("foo", {
|
|
34
|
+
* accountId: 12345678,
|
|
35
|
+
* destinationId: "00b6bd1d-ac06-4d3d-bd72-49551e70f7a8",
|
|
36
|
+
* product: "IINT",
|
|
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](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#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
|
+
* accountId: 12345678,
|
|
58
|
+
* destinationId: "00b6bd1d-ac06-4d3d-bd72-49551e70f7a8",
|
|
59
|
+
* product: "ERROR_TRACKING",
|
|
60
|
+
* properties: [{
|
|
61
|
+
* key: "subject",
|
|
62
|
+
* value: "New Subject Title",
|
|
63
|
+
* }],
|
|
64
|
+
* type: "EMAIL",
|
|
65
|
+
* });
|
|
66
|
+
* ```
|
|
67
|
+
*
|
|
68
|
+
* ##### [Jira Classic](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#jira)
|
|
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
|
+
* accountId: 12345678,
|
|
75
|
+
* destinationId: "00b6bd1d-ac06-4d3d-bd72-49551e70f7a8",
|
|
76
|
+
* product: "ERROR_TRACKING",
|
|
77
|
+
* properties: [
|
|
78
|
+
* {
|
|
79
|
+
* key: "project",
|
|
80
|
+
* value: "10000",
|
|
81
|
+
* },
|
|
82
|
+
* {
|
|
83
|
+
* key: "issuetype",
|
|
84
|
+
* value: "10004",
|
|
85
|
+
* },
|
|
86
|
+
* {
|
|
87
|
+
* key: "description",
|
|
88
|
+
* value: "Issue ID: {{ issueId }}",
|
|
89
|
+
* },
|
|
90
|
+
* {
|
|
91
|
+
* key: "summary",
|
|
92
|
+
* value: "{{ annotations.title.[0] }}",
|
|
93
|
+
* },
|
|
94
|
+
* ],
|
|
95
|
+
* type: "JIRA_CLASSIC",
|
|
96
|
+
* });
|
|
97
|
+
* ```
|
|
98
|
+
*
|
|
99
|
+
* ##### [PagerDuty with account integration](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#pagerduty)
|
|
100
|
+
* ```typescript
|
|
101
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
102
|
+
* import * as newrelic from "@pulumi/newrelic";
|
|
103
|
+
*
|
|
104
|
+
* const foo = new newrelic.NotificationChannel("foo", {
|
|
105
|
+
* accountId: 12345678,
|
|
106
|
+
* destinationId: "00b6bd1d-ac06-4d3d-bd72-49551e70f7a8",
|
|
107
|
+
* product: "IINT",
|
|
108
|
+
* properties: [
|
|
109
|
+
* {
|
|
110
|
+
* key: "summary",
|
|
111
|
+
* value: "General summary",
|
|
112
|
+
* },
|
|
113
|
+
* {
|
|
114
|
+
* key: "service",
|
|
115
|
+
* value: "PTQK3FM",
|
|
116
|
+
* },
|
|
117
|
+
* {
|
|
118
|
+
* key: "email",
|
|
119
|
+
* value: "example@email.com",
|
|
120
|
+
* },
|
|
121
|
+
* ],
|
|
122
|
+
* type: "PAGERDUTY_ACCOUNT_INTEGRATION",
|
|
123
|
+
* });
|
|
124
|
+
* ```
|
|
125
|
+
*
|
|
126
|
+
* ##### [PagerDuty with service integration](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#pagerduty)
|
|
127
|
+
* ```typescript
|
|
128
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
129
|
+
* import * as newrelic from "@pulumi/newrelic";
|
|
130
|
+
*
|
|
131
|
+
* const foo = new newrelic.NotificationChannel("foo", {
|
|
132
|
+
* accountId: 12345678,
|
|
133
|
+
* destinationId: "00b6bd1d-ac06-4d3d-bd72-49551e70f7a8",
|
|
134
|
+
* product: "IINT",
|
|
135
|
+
* properties: [{
|
|
136
|
+
* key: "summary",
|
|
137
|
+
* value: "General summary",
|
|
138
|
+
* }],
|
|
139
|
+
* type: "PAGERDUTY_SERVICE_INTEGRATION",
|
|
140
|
+
* });
|
|
141
|
+
* ```
|
|
142
|
+
*
|
|
143
|
+
* > **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.
|
|
144
|
+
*
|
|
145
|
+
* ## Full Scenario Example
|
|
146
|
+
*
|
|
147
|
+
* Create a destination resource and reference that destination to the channel resource:
|
|
148
|
+
*
|
|
149
|
+
* ### Create a destination
|
|
150
|
+
* ```typescript
|
|
151
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
152
|
+
* import * as newrelic from "@pulumi/newrelic";
|
|
153
|
+
*
|
|
154
|
+
* const webhook_destination = new newrelic.NotificationDestination("webhook-destination", {
|
|
155
|
+
* accountId: 12345678,
|
|
156
|
+
* authBasic: {
|
|
157
|
+
* password: "password",
|
|
158
|
+
* user: "username",
|
|
159
|
+
* },
|
|
160
|
+
* properties: [{
|
|
161
|
+
* key: "url",
|
|
162
|
+
* value: "https://webhook.site/94193c01-4a81-4782-8f1b-554d5230395b",
|
|
163
|
+
* }],
|
|
164
|
+
* type: "WEBHOOK",
|
|
165
|
+
* });
|
|
166
|
+
* ```
|
|
167
|
+
*
|
|
168
|
+
* ### Create a channel
|
|
169
|
+
* ```typescript
|
|
170
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
171
|
+
* import * as newrelic from "@pulumi/newrelic";
|
|
172
|
+
*
|
|
173
|
+
* const webhook_channel = new newrelic.NotificationChannel("webhook-channel", {
|
|
174
|
+
* accountId: 12345678,
|
|
175
|
+
* type: "WEBHOOK",
|
|
176
|
+
* destinationId: newrelic_notification_destination["webhook-destination"].id,
|
|
177
|
+
* product: "IINT",
|
|
178
|
+
* properties: [{
|
|
179
|
+
* key: "payload",
|
|
180
|
+
* value: "{name: foo}",
|
|
181
|
+
* label: "Payload Template",
|
|
182
|
+
* }],
|
|
183
|
+
* });
|
|
184
|
+
* ```
|
|
185
|
+
*
|
|
186
|
+
* ## Additional Information
|
|
187
|
+
*
|
|
188
|
+
* More details about the channels API can be found [here](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels).
|
|
189
|
+
*/
|
|
3
190
|
export declare class NotificationChannel extends pulumi.CustomResource {
|
|
4
191
|
/**
|
|
5
192
|
* Get an existing NotificationChannel resource's state with the given name, ID, and optional extra
|
|
@@ -17,24 +204,35 @@ export declare class NotificationChannel extends pulumi.CustomResource {
|
|
|
17
204
|
*/
|
|
18
205
|
static isInstance(obj: any): obj is NotificationChannel;
|
|
19
206
|
/**
|
|
20
|
-
*
|
|
207
|
+
* Determines the New Relic account where the notification channel will be created. Defaults to the account associated with the API key used.
|
|
208
|
+
*/
|
|
209
|
+
readonly accountId: pulumi.Output<number>;
|
|
210
|
+
/**
|
|
211
|
+
* Indicates whether the channel is active.
|
|
212
|
+
*/
|
|
213
|
+
readonly active: pulumi.Output<boolean | undefined>;
|
|
214
|
+
/**
|
|
215
|
+
* The id of the destination.
|
|
21
216
|
*/
|
|
22
217
|
readonly destinationId: pulumi.Output<string>;
|
|
23
218
|
/**
|
|
24
|
-
*
|
|
219
|
+
* The name of the channel.
|
|
25
220
|
*/
|
|
26
221
|
readonly name: pulumi.Output<string>;
|
|
27
222
|
/**
|
|
28
|
-
*
|
|
223
|
+
* The type of product. One of: `DISCUSSIONS`, `ERROR_TRACKING` or `IINT` (workflows).
|
|
29
224
|
*/
|
|
30
225
|
readonly product: pulumi.Output<string>;
|
|
31
226
|
/**
|
|
32
|
-
*
|
|
227
|
+
* A nested block that describes a notification channel property. See Nested property blocks below for details.
|
|
228
|
+
*/
|
|
229
|
+
readonly properties: pulumi.Output<outputs.NotificationChannelProperty[]>;
|
|
230
|
+
/**
|
|
231
|
+
* The status of the channel.
|
|
33
232
|
*/
|
|
34
|
-
readonly
|
|
233
|
+
readonly status: pulumi.Output<string>;
|
|
35
234
|
/**
|
|
36
|
-
*
|
|
37
|
-
* PAGERDUTY_SERVICE_INTEGRATION).
|
|
235
|
+
* The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `WEBHOOK`, `JIRA_CLASSIC`, `JIRA_NEXTGEN`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`.
|
|
38
236
|
*/
|
|
39
237
|
readonly type: pulumi.Output<string>;
|
|
40
238
|
/**
|
|
@@ -51,24 +249,35 @@ export declare class NotificationChannel extends pulumi.CustomResource {
|
|
|
51
249
|
*/
|
|
52
250
|
export interface NotificationChannelState {
|
|
53
251
|
/**
|
|
54
|
-
*
|
|
252
|
+
* Determines the New Relic account where the notification channel will be created. Defaults to the account associated with the API key used.
|
|
253
|
+
*/
|
|
254
|
+
accountId?: pulumi.Input<number>;
|
|
255
|
+
/**
|
|
256
|
+
* Indicates whether the channel is active.
|
|
257
|
+
*/
|
|
258
|
+
active?: pulumi.Input<boolean>;
|
|
259
|
+
/**
|
|
260
|
+
* The id of the destination.
|
|
55
261
|
*/
|
|
56
262
|
destinationId?: pulumi.Input<string>;
|
|
57
263
|
/**
|
|
58
|
-
*
|
|
264
|
+
* The name of the channel.
|
|
59
265
|
*/
|
|
60
266
|
name?: pulumi.Input<string>;
|
|
61
267
|
/**
|
|
62
|
-
*
|
|
268
|
+
* The type of product. One of: `DISCUSSIONS`, `ERROR_TRACKING` or `IINT` (workflows).
|
|
63
269
|
*/
|
|
64
270
|
product?: pulumi.Input<string>;
|
|
65
271
|
/**
|
|
66
|
-
*
|
|
272
|
+
* A nested block that describes a notification channel property. See Nested property blocks below for details.
|
|
67
273
|
*/
|
|
68
274
|
properties?: pulumi.Input<pulumi.Input<inputs.NotificationChannelProperty>[]>;
|
|
69
275
|
/**
|
|
70
|
-
*
|
|
71
|
-
|
|
276
|
+
* The status of the channel.
|
|
277
|
+
*/
|
|
278
|
+
status?: pulumi.Input<string>;
|
|
279
|
+
/**
|
|
280
|
+
* The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `WEBHOOK`, `JIRA_CLASSIC`, `JIRA_NEXTGEN`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`.
|
|
72
281
|
*/
|
|
73
282
|
type?: pulumi.Input<string>;
|
|
74
283
|
}
|
|
@@ -77,24 +286,31 @@ export interface NotificationChannelState {
|
|
|
77
286
|
*/
|
|
78
287
|
export interface NotificationChannelArgs {
|
|
79
288
|
/**
|
|
80
|
-
*
|
|
289
|
+
* Determines the New Relic account where the notification channel will be created. Defaults to the account associated with the API key used.
|
|
290
|
+
*/
|
|
291
|
+
accountId: pulumi.Input<number>;
|
|
292
|
+
/**
|
|
293
|
+
* Indicates whether the channel is active.
|
|
294
|
+
*/
|
|
295
|
+
active?: pulumi.Input<boolean>;
|
|
296
|
+
/**
|
|
297
|
+
* The id of the destination.
|
|
81
298
|
*/
|
|
82
299
|
destinationId: pulumi.Input<string>;
|
|
83
300
|
/**
|
|
84
|
-
*
|
|
301
|
+
* The name of the channel.
|
|
85
302
|
*/
|
|
86
303
|
name?: pulumi.Input<string>;
|
|
87
304
|
/**
|
|
88
|
-
*
|
|
305
|
+
* The type of product. One of: `DISCUSSIONS`, `ERROR_TRACKING` or `IINT` (workflows).
|
|
89
306
|
*/
|
|
90
307
|
product: pulumi.Input<string>;
|
|
91
308
|
/**
|
|
92
|
-
*
|
|
309
|
+
* A nested block that describes a notification channel property. See Nested property blocks below for details.
|
|
93
310
|
*/
|
|
94
|
-
properties
|
|
311
|
+
properties: pulumi.Input<pulumi.Input<inputs.NotificationChannelProperty>[]>;
|
|
95
312
|
/**
|
|
96
|
-
*
|
|
97
|
-
* PAGERDUTY_SERVICE_INTEGRATION).
|
|
313
|
+
* The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `WEBHOOK`, `JIRA_CLASSIC`, `JIRA_NEXTGEN`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`.
|
|
98
314
|
*/
|
|
99
315
|
type: pulumi.Input<string>;
|
|
100
316
|
}
|