@pulumi/newrelic 4.20.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.
Files changed (88) hide show
  1. package/README.md +2 -2
  2. package/alertPolicyChannel.d.ts +1 -1
  3. package/alertPolicyChannel.js +1 -1
  4. package/cloud/awsIntegrations.d.ts +24 -0
  5. package/cloud/awsIntegrations.js +4 -0
  6. package/cloud/awsIntegrations.js.map +1 -1
  7. package/getAlertChannel.d.ts +9 -0
  8. package/getAlertChannel.js +1 -0
  9. package/getAlertChannel.js.map +1 -1
  10. package/getAlertPolicy.d.ts +6 -0
  11. package/getAlertPolicy.js.map +1 -1
  12. package/index.d.ts +1 -1
  13. package/index.js +5 -5
  14. package/index.js.map +1 -1
  15. package/notificationChannel.d.ts +143 -28
  16. package/notificationChannel.js +112 -17
  17. package/notificationChannel.js.map +1 -1
  18. package/notificationDestination.d.ts +124 -50
  19. package/notificationDestination.js +67 -32
  20. package/notificationDestination.js.map +1 -1
  21. package/nrqlAlertCondition.d.ts +12 -15
  22. package/nrqlAlertCondition.js +0 -3
  23. package/nrqlAlertCondition.js.map +1 -1
  24. package/package.json +2 -2
  25. package/package.json.dev +2 -2
  26. package/plugins/index.d.ts +0 -3
  27. package/plugins/index.js +0 -7
  28. package/plugins/index.js.map +1 -1
  29. package/synthetics/alertCondition.d.ts +3 -19
  30. package/synthetics/alertCondition.js +0 -16
  31. package/synthetics/alertCondition.js.map +1 -1
  32. package/synthetics/brokenLinksMonitor.d.ts +198 -0
  33. package/synthetics/brokenLinksMonitor.js +131 -0
  34. package/synthetics/brokenLinksMonitor.js.map +1 -0
  35. package/synthetics/certCheckMonitor.d.ts +203 -0
  36. package/synthetics/certCheckMonitor.js +135 -0
  37. package/synthetics/certCheckMonitor.js.map +1 -0
  38. package/synthetics/getPrivateLocation.d.ts +34 -0
  39. package/synthetics/getPrivateLocation.js +25 -0
  40. package/synthetics/getPrivateLocation.js.map +1 -0
  41. package/synthetics/getSecureCredential.d.ts +0 -4
  42. package/synthetics/getSecureCredential.js.map +1 -1
  43. package/synthetics/index.d.ts +6 -3
  44. package/synthetics/index.js +26 -7
  45. package/synthetics/index.js.map +1 -1
  46. package/synthetics/monitor.d.ts +221 -77
  47. package/synthetics/monitor.js +114 -47
  48. package/synthetics/monitor.js.map +1 -1
  49. package/synthetics/multiLocationAlertCondition.d.ts +32 -3
  50. package/synthetics/multiLocationAlertCondition.js +29 -0
  51. package/synthetics/multiLocationAlertCondition.js.map +1 -1
  52. package/synthetics/privateLocation.d.ts +139 -0
  53. package/synthetics/privateLocation.js +89 -0
  54. package/synthetics/privateLocation.js.map +1 -0
  55. package/synthetics/scriptMonitor.d.ts +341 -0
  56. package/synthetics/scriptMonitor.js +224 -0
  57. package/synthetics/scriptMonitor.js.map +1 -0
  58. package/synthetics/secureCredential.d.ts +6 -6
  59. package/synthetics/secureCredential.js +2 -2
  60. package/synthetics/stepMonitor.d.ts +192 -0
  61. package/synthetics/stepMonitor.js +115 -0
  62. package/synthetics/stepMonitor.js.map +1 -0
  63. package/types/input.d.ts +213 -126
  64. package/types/output.d.ts +213 -126
  65. package/workflow.d.ts +291 -0
  66. package/workflow.js +208 -0
  67. package/workflow.js.map +1 -0
  68. package/dashboard.d.ts +0 -139
  69. package/dashboard.js +0 -73
  70. package/dashboard.js.map +0 -1
  71. package/plugins/alertCondition.d.ts +0 -167
  72. package/plugins/alertCondition.js +0 -100
  73. package/plugins/alertCondition.js.map +0 -1
  74. package/plugins/getPlugin.d.ts +0 -29
  75. package/plugins/getPlugin.js +0 -29
  76. package/plugins/getPlugin.js.map +0 -1
  77. package/plugins/getPluginComponent.d.ts +0 -33
  78. package/plugins/getPluginComponent.js +0 -30
  79. package/plugins/getPluginComponent.js.map +0 -1
  80. package/synthetics/getMonitor.d.ts +0 -54
  81. package/synthetics/getMonitor.js +0 -41
  82. package/synthetics/getMonitor.js.map +0 -1
  83. package/synthetics/getMonitorLocation.d.ts +0 -71
  84. package/synthetics/getMonitorLocation.js +0 -46
  85. package/synthetics/getMonitorLocation.js.map +0 -1
  86. package/synthetics/monitorScript.d.ts +0 -107
  87. package/synthetics/monitorScript.js +0 -93
  88. package/synthetics/monitorScript.js.map +0 -1
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  [![NPM version](https://badge.fury.io/js/%40pulumi%2Fnewrelic.svg)](https://www.npmjs.com/package/@pulumi/newrelic)
4
4
  [![Python version](https://badge.fury.io/py/pulumi-newrelic.svg)](https://pypi.org/project/pulumi-newrelic)
5
5
  [![NuGet version](https://badge.fury.io/nu/pulumi.newrelic.svg)](https://badge.fury.io/nu/pulumi.newrelic)
6
- [![PkgGoDev](https://pkg.go.dev/badge/github.com/pulumi/pulumi-newrelic/sdk/v4/go)](https://pkg.go.dev/github.com/pulumi/pulumi-newrelic/sdk/v4/go)
6
+ [![PkgGoDev](https://pkg.go.dev/badge/github.com/pulumi/pulumi-newrelic/sdk/v5/go)](https://pkg.go.dev/github.com/pulumi/pulumi-newrelic/sdk/v5/go)
7
7
  [![License](https://img.shields.io/npm/l/%40pulumi%2Fpulumi.svg)](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/v4
38
+ $ go get github.com/pulumi/pulumi-newrelic/sdk/v5
39
39
 
40
40
 
41
41
  ### .NET
@@ -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: newrelic_alert_policy.example_policy.id,
35
+ * policyId: examplePolicy.then(examplePolicy => examplePolicy.id),
36
36
  * channelIds: [
37
37
  * emailChannel.id,
38
38
  * slackChannel.id,
@@ -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: newrelic_alert_policy.example_policy.id,
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
  */
@@ -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;IAqEtD,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,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,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,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,iBAAiB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9E,cAAc,CAAC,gBAAgB,CAAC,GAAG,KAAK,CAAC,CAAC,C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,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,eAAe,CAAC,YAAY,EAAE,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"}
@@ -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
  */
@@ -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
  }
@@ -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;AATD,0CASC;AAmCD,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"}
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"}
@@ -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.
@@ -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;AAyCD,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"}
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,8CAA4B;AAC5B,+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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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;AAChF,MAAM,CAAC,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"}
@@ -1,24 +1,23 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  import { input as inputs, output as outputs } from "./types";
3
3
  /**
4
- * Use this resource to create and manage New Relic notification channels.
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
5
  *
6
6
  * ## Example Usage
7
7
  *
8
- * ##### Webhook
8
+ * ##### [Webhook](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#webhook)
9
9
  * ```typescript
10
10
  * import * as pulumi from "@pulumi/pulumi";
11
11
  * import * as newrelic from "@pulumi/newrelic";
12
12
  *
13
13
  * const foo = new newrelic.NotificationChannel("foo", {
14
- * destinationId: "1234",
14
+ * accountId: 12345678,
15
+ * destinationId: "00b6bd1d-ac06-4d3d-bd72-49551e70f7a8",
15
16
  * product: "IINT",
16
17
  * properties: [{
17
18
  * key: "payload",
18
19
  * label: "Payload Template",
19
- * value: `{
20
- * "name": "foo"
21
- * }`,
20
+ * value: "name: {{ foo }}",
22
21
  * }],
23
22
  * type: "WEBHOOK",
24
23
  * });
@@ -26,14 +25,15 @@ import { input as inputs, output as outputs } from "./types";
26
25
  * See additional examples.
27
26
  * ## Additional Examples
28
27
  *
29
- * ##### ServiceNow
28
+ * ##### [ServiceNow](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#servicenow)
30
29
  * ```typescript
31
30
  * import * as pulumi from "@pulumi/pulumi";
32
31
  * import * as newrelic from "@pulumi/newrelic";
33
32
  *
34
33
  * const foo = new newrelic.NotificationChannel("foo", {
35
- * destinationId: "1234",
36
- * product: "PD",
34
+ * accountId: 12345678,
35
+ * destinationId: "00b6bd1d-ac06-4d3d-bd72-49551e70f7a8",
36
+ * product: "IINT",
37
37
  * properties: [
38
38
  * {
39
39
  * key: "description",
@@ -48,25 +48,62 @@ import { input as inputs, output as outputs } from "./types";
48
48
  * });
49
49
  * ```
50
50
  *
51
- * ##### Email
51
+ * ##### [Email](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#email)
52
52
  * ```typescript
53
53
  * import * as pulumi from "@pulumi/pulumi";
54
54
  * import * as newrelic from "@pulumi/newrelic";
55
55
  *
56
56
  * const foo = new newrelic.NotificationChannel("foo", {
57
- * destinationId: "1234",
57
+ * accountId: 12345678,
58
+ * destinationId: "00b6bd1d-ac06-4d3d-bd72-49551e70f7a8",
58
59
  * product: "ERROR_TRACKING",
60
+ * properties: [{
61
+ * key: "subject",
62
+ * value: "New Subject Title",
63
+ * }],
59
64
  * type: "EMAIL",
60
65
  * });
61
66
  * ```
62
67
  *
63
- * ##### PagerDuty with account integration
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)
64
100
  * ```typescript
65
101
  * import * as pulumi from "@pulumi/pulumi";
66
102
  * import * as newrelic from "@pulumi/newrelic";
67
103
  *
68
104
  * const foo = new newrelic.NotificationChannel("foo", {
69
- * destinationId: "1234",
105
+ * accountId: 12345678,
106
+ * destinationId: "00b6bd1d-ac06-4d3d-bd72-49551e70f7a8",
70
107
  * product: "IINT",
71
108
  * properties: [
72
109
  * {
@@ -75,24 +112,25 @@ import { input as inputs, output as outputs } from "./types";
75
112
  * },
76
113
  * {
77
114
  * key: "service",
78
- * value: "1234",
115
+ * value: "PTQK3FM",
79
116
  * },
80
117
  * {
81
118
  * key: "email",
82
- * value: "test@test.com",
119
+ * value: "example@email.com",
83
120
  * },
84
121
  * ],
85
122
  * type: "PAGERDUTY_ACCOUNT_INTEGRATION",
86
123
  * });
87
124
  * ```
88
125
  *
89
- * ##### PagerDuty with service integration
126
+ * ##### [PagerDuty with service integration](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#pagerduty)
90
127
  * ```typescript
91
128
  * import * as pulumi from "@pulumi/pulumi";
92
129
  * import * as newrelic from "@pulumi/newrelic";
93
130
  *
94
131
  * const foo = new newrelic.NotificationChannel("foo", {
95
- * destinationId: "1234",
132
+ * accountId: 12345678,
133
+ * destinationId: "00b6bd1d-ac06-4d3d-bd72-49551e70f7a8",
96
134
  * product: "IINT",
97
135
  * properties: [{
98
136
  * key: "summary",
@@ -103,6 +141,51 @@ import { input as inputs, output as outputs } from "./types";
103
141
  * ```
104
142
  *
105
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).
106
189
  */
107
190
  export declare class NotificationChannel extends pulumi.CustomResource {
108
191
  /**
@@ -120,6 +203,14 @@ export declare class NotificationChannel extends pulumi.CustomResource {
120
203
  * when multiple copies of the Pulumi SDK have been loaded into the same process.
121
204
  */
122
205
  static isInstance(obj: any): obj is NotificationChannel;
206
+ /**
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>;
123
214
  /**
124
215
  * The id of the destination.
125
216
  */
@@ -129,15 +220,19 @@ export declare class NotificationChannel extends pulumi.CustomResource {
129
220
  */
130
221
  readonly name: pulumi.Output<string>;
131
222
  /**
132
- * The type of product. One of: `ALERTS`, `DISCUSSIONS`, `ERROR_TRACKING`, `IINT`, `NTFC`, `PD` or `SHARING`.
223
+ * The type of product. One of: `DISCUSSIONS`, `ERROR_TRACKING` or `IINT` (workflows).
133
224
  */
134
225
  readonly product: pulumi.Output<string>;
135
226
  /**
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.
227
+ * A nested block that describes a notification channel property. See Nested property blocks below for details.
137
228
  */
138
- readonly properties: pulumi.Output<outputs.NotificationChannelProperty[] | undefined>;
229
+ readonly properties: pulumi.Output<outputs.NotificationChannelProperty[]>;
139
230
  /**
140
- * The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `WEBHOOK`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`.
231
+ * The status of the channel.
232
+ */
233
+ readonly status: pulumi.Output<string>;
234
+ /**
235
+ * The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `WEBHOOK`, `JIRA_CLASSIC`, `JIRA_NEXTGEN`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`.
141
236
  */
142
237
  readonly type: pulumi.Output<string>;
143
238
  /**
@@ -153,6 +248,14 @@ export declare class NotificationChannel extends pulumi.CustomResource {
153
248
  * Input properties used for looking up and filtering NotificationChannel resources.
154
249
  */
155
250
  export interface NotificationChannelState {
251
+ /**
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>;
156
259
  /**
157
260
  * The id of the destination.
158
261
  */
@@ -162,15 +265,19 @@ export interface NotificationChannelState {
162
265
  */
163
266
  name?: pulumi.Input<string>;
164
267
  /**
165
- * The type of product. One of: `ALERTS`, `DISCUSSIONS`, `ERROR_TRACKING`, `IINT`, `NTFC`, `PD` or `SHARING`.
268
+ * The type of product. One of: `DISCUSSIONS`, `ERROR_TRACKING` or `IINT` (workflows).
166
269
  */
167
270
  product?: pulumi.Input<string>;
168
271
  /**
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.
272
+ * A nested block that describes a notification channel property. See Nested property blocks below for details.
170
273
  */
171
274
  properties?: pulumi.Input<pulumi.Input<inputs.NotificationChannelProperty>[]>;
172
275
  /**
173
- * The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `WEBHOOK`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`.
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`.
174
281
  */
175
282
  type?: pulumi.Input<string>;
176
283
  }
@@ -178,6 +285,14 @@ export interface NotificationChannelState {
178
285
  * The set of arguments for constructing a NotificationChannel resource.
179
286
  */
180
287
  export interface NotificationChannelArgs {
288
+ /**
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>;
181
296
  /**
182
297
  * The id of the destination.
183
298
  */
@@ -187,15 +302,15 @@ export interface NotificationChannelArgs {
187
302
  */
188
303
  name?: pulumi.Input<string>;
189
304
  /**
190
- * The type of product. One of: `ALERTS`, `DISCUSSIONS`, `ERROR_TRACKING`, `IINT`, `NTFC`, `PD` or `SHARING`.
305
+ * The type of product. One of: `DISCUSSIONS`, `ERROR_TRACKING` or `IINT` (workflows).
191
306
  */
192
307
  product: pulumi.Input<string>;
193
308
  /**
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.
309
+ * A nested block that describes a notification channel property. See Nested property blocks below for details.
195
310
  */
196
- properties?: pulumi.Input<pulumi.Input<inputs.NotificationChannelProperty>[]>;
311
+ properties: pulumi.Input<pulumi.Input<inputs.NotificationChannelProperty>[]>;
197
312
  /**
198
- * The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `WEBHOOK`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `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`.
199
314
  */
200
315
  type: pulumi.Input<string>;
201
316
  }