pulumi-newrelic 5.23.0a1713561620__py3-none-any.whl → 5.23.0a1713984329__py3-none-any.whl
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.
- pulumi_newrelic/_inputs.py +183 -270
- pulumi_newrelic/account_management.py +14 -18
- pulumi_newrelic/alert_channel.py +28 -56
- pulumi_newrelic/alert_condition.py +84 -133
- pulumi_newrelic/alert_muting_rule.py +21 -25
- pulumi_newrelic/alert_policy.py +42 -33
- pulumi_newrelic/alert_policy_channel.py +0 -4
- pulumi_newrelic/cloud/_inputs.py +322 -1072
- pulumi_newrelic/cloud/aws_govcloud_link_account.py +0 -4
- pulumi_newrelic/cloud/aws_integrations.py +7 -11
- pulumi_newrelic/cloud/aws_link_account.py +0 -4
- pulumi_newrelic/cloud/azure_integrations.py +0 -4
- pulumi_newrelic/cloud/azure_link_account.py +0 -4
- pulumi_newrelic/cloud/gcp_integrations.py +0 -4
- pulumi_newrelic/cloud/gcp_link_account.py +0 -4
- pulumi_newrelic/cloud/outputs.py +322 -1072
- pulumi_newrelic/data_partition_rule.py +0 -4
- pulumi_newrelic/entity_tags.py +7 -11
- pulumi_newrelic/events_to_metrics_rule.py +0 -4
- pulumi_newrelic/get_account.py +0 -4
- pulumi_newrelic/get_application.py +0 -4
- pulumi_newrelic/get_authentication_domain.py +0 -4
- pulumi_newrelic/get_cloud_account.py +0 -4
- pulumi_newrelic/get_entity.py +0 -16
- pulumi_newrelic/get_group.py +0 -8
- pulumi_newrelic/get_key_transaction.py +0 -4
- pulumi_newrelic/get_notification_destination.py +20 -1
- pulumi_newrelic/get_obfuscation_expression.py +0 -4
- pulumi_newrelic/get_service_level_alert_helper.py +0 -30
- pulumi_newrelic/get_test_grok_pattern.py +0 -4
- pulumi_newrelic/get_user.py +0 -4
- pulumi_newrelic/group.py +0 -12
- pulumi_newrelic/infra_alert_condition.py +126 -113
- pulumi_newrelic/insights/event.py +0 -17
- pulumi_newrelic/log_parsing_rule.py +0 -8
- pulumi_newrelic/monitor_downtime.py +70 -101
- pulumi_newrelic/notification_channel.py +0 -44
- pulumi_newrelic/notification_destination.py +95 -1
- pulumi_newrelic/nrql_alert_condition.py +0 -20
- pulumi_newrelic/nrql_drop_rule.py +28 -32
- pulumi_newrelic/obfuscation_expression.py +0 -4
- pulumi_newrelic/obfuscation_rule.py +0 -4
- pulumi_newrelic/one_dashboard.py +42 -48
- pulumi_newrelic/one_dashboard_raw.py +0 -4
- pulumi_newrelic/outputs.py +180 -270
- pulumi_newrelic/plugins/_inputs.py +16 -16
- pulumi_newrelic/plugins/application_settings.py +0 -4
- pulumi_newrelic/plugins/outputs.py +16 -16
- pulumi_newrelic/plugins/workload.py +28 -48
- pulumi_newrelic/service_level.py +0 -91
- pulumi_newrelic/synthetics/alert_condition.py +14 -50
- pulumi_newrelic/synthetics/broken_links_monitor.py +0 -8
- pulumi_newrelic/synthetics/cert_check_monitor.py +0 -8
- pulumi_newrelic/synthetics/get_private_location.py +0 -8
- pulumi_newrelic/synthetics/get_secure_credential.py +0 -12
- pulumi_newrelic/synthetics/monitor.py +0 -16
- pulumi_newrelic/synthetics/multi_location_alert_condition.py +49 -71
- pulumi_newrelic/synthetics/private_location.py +0 -4
- pulumi_newrelic/synthetics/script_monitor.py +4 -20
- pulumi_newrelic/synthetics/secure_credential.py +21 -18
- pulumi_newrelic/synthetics/step_monitor.py +4 -12
- pulumi_newrelic/user.py +0 -4
- pulumi_newrelic/workflow.py +0 -16
- {pulumi_newrelic-5.23.0a1713561620.dist-info → pulumi_newrelic-5.23.0a1713984329.dist-info}/METADATA +1 -1
- pulumi_newrelic-5.23.0a1713984329.dist-info/RECORD +89 -0
- pulumi_newrelic-5.23.0a1713561620.dist-info/RECORD +0 -89
- {pulumi_newrelic-5.23.0a1713561620.dist-info → pulumi_newrelic-5.23.0a1713984329.dist-info}/WHEEL +0 -0
- {pulumi_newrelic-5.23.0a1713561620.dist-info → pulumi_newrelic-5.23.0a1713984329.dist-info}/top_level.txt +0 -0
@@ -18,8 +18,8 @@ class AccountManagementArgs:
|
|
18
18
|
name: Optional[pulumi.Input[str]] = None):
|
19
19
|
"""
|
20
20
|
The set of arguments for constructing a AccountManagement resource.
|
21
|
-
:param pulumi.Input[str] region:
|
22
|
-
:param pulumi.Input[str] name:
|
21
|
+
:param pulumi.Input[str] region: A description of what this parsing rule represents.
|
22
|
+
:param pulumi.Input[str] name: Name of the account to be created
|
23
23
|
"""
|
24
24
|
pulumi.set(__self__, "region", region)
|
25
25
|
if name is not None:
|
@@ -29,7 +29,7 @@ class AccountManagementArgs:
|
|
29
29
|
@pulumi.getter
|
30
30
|
def region(self) -> pulumi.Input[str]:
|
31
31
|
"""
|
32
|
-
|
32
|
+
A description of what this parsing rule represents.
|
33
33
|
"""
|
34
34
|
return pulumi.get(self, "region")
|
35
35
|
|
@@ -41,7 +41,7 @@ class AccountManagementArgs:
|
|
41
41
|
@pulumi.getter
|
42
42
|
def name(self) -> Optional[pulumi.Input[str]]:
|
43
43
|
"""
|
44
|
-
|
44
|
+
Name of the account to be created
|
45
45
|
"""
|
46
46
|
return pulumi.get(self, "name")
|
47
47
|
|
@@ -57,8 +57,8 @@ class _AccountManagementState:
|
|
57
57
|
region: Optional[pulumi.Input[str]] = None):
|
58
58
|
"""
|
59
59
|
Input properties used for looking up and filtering AccountManagement resources.
|
60
|
-
:param pulumi.Input[str] name:
|
61
|
-
:param pulumi.Input[str] region:
|
60
|
+
:param pulumi.Input[str] name: Name of the account to be created
|
61
|
+
:param pulumi.Input[str] region: A description of what this parsing rule represents.
|
62
62
|
"""
|
63
63
|
if name is not None:
|
64
64
|
pulumi.set(__self__, "name", name)
|
@@ -69,7 +69,7 @@ class _AccountManagementState:
|
|
69
69
|
@pulumi.getter
|
70
70
|
def name(self) -> Optional[pulumi.Input[str]]:
|
71
71
|
"""
|
72
|
-
|
72
|
+
Name of the account to be created
|
73
73
|
"""
|
74
74
|
return pulumi.get(self, "name")
|
75
75
|
|
@@ -81,7 +81,7 @@ class _AccountManagementState:
|
|
81
81
|
@pulumi.getter
|
82
82
|
def region(self) -> Optional[pulumi.Input[str]]:
|
83
83
|
"""
|
84
|
-
|
84
|
+
A description of what this parsing rule represents.
|
85
85
|
"""
|
86
86
|
return pulumi.get(self, "region")
|
87
87
|
|
@@ -106,7 +106,6 @@ class AccountManagement(pulumi.CustomResource):
|
|
106
106
|
## Example Usage
|
107
107
|
|
108
108
|
##### Create Account
|
109
|
-
<!--Start PulumiCodeChooser -->
|
110
109
|
```python
|
111
110
|
import pulumi
|
112
111
|
import pulumi_newrelic as newrelic
|
@@ -115,7 +114,6 @@ class AccountManagement(pulumi.CustomResource):
|
|
115
114
|
name="Test Account Name",
|
116
115
|
region="us01")
|
117
116
|
```
|
118
|
-
<!--End PulumiCodeChooser -->
|
119
117
|
|
120
118
|
## Import
|
121
119
|
|
@@ -129,8 +127,8 @@ class AccountManagement(pulumi.CustomResource):
|
|
129
127
|
|
130
128
|
:param str resource_name: The name of the resource.
|
131
129
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
132
|
-
:param pulumi.Input[str] name:
|
133
|
-
:param pulumi.Input[str] region:
|
130
|
+
:param pulumi.Input[str] name: Name of the account to be created
|
131
|
+
:param pulumi.Input[str] region: A description of what this parsing rule represents.
|
134
132
|
"""
|
135
133
|
...
|
136
134
|
@overload
|
@@ -146,7 +144,6 @@ class AccountManagement(pulumi.CustomResource):
|
|
146
144
|
## Example Usage
|
147
145
|
|
148
146
|
##### Create Account
|
149
|
-
<!--Start PulumiCodeChooser -->
|
150
147
|
```python
|
151
148
|
import pulumi
|
152
149
|
import pulumi_newrelic as newrelic
|
@@ -155,7 +152,6 @@ class AccountManagement(pulumi.CustomResource):
|
|
155
152
|
name="Test Account Name",
|
156
153
|
region="us01")
|
157
154
|
```
|
158
|
-
<!--End PulumiCodeChooser -->
|
159
155
|
|
160
156
|
## Import
|
161
157
|
|
@@ -216,8 +212,8 @@ class AccountManagement(pulumi.CustomResource):
|
|
216
212
|
:param str resource_name: The unique name of the resulting resource.
|
217
213
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
218
214
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
219
|
-
:param pulumi.Input[str] name:
|
220
|
-
:param pulumi.Input[str] region:
|
215
|
+
:param pulumi.Input[str] name: Name of the account to be created
|
216
|
+
:param pulumi.Input[str] region: A description of what this parsing rule represents.
|
221
217
|
"""
|
222
218
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
223
219
|
|
@@ -231,7 +227,7 @@ class AccountManagement(pulumi.CustomResource):
|
|
231
227
|
@pulumi.getter
|
232
228
|
def name(self) -> pulumi.Output[str]:
|
233
229
|
"""
|
234
|
-
|
230
|
+
Name of the account to be created
|
235
231
|
"""
|
236
232
|
return pulumi.get(self, "name")
|
237
233
|
|
@@ -239,7 +235,7 @@ class AccountManagement(pulumi.CustomResource):
|
|
239
235
|
@pulumi.getter
|
240
236
|
def region(self) -> pulumi.Output[str]:
|
241
237
|
"""
|
242
|
-
|
238
|
+
A description of what this parsing rule represents.
|
243
239
|
"""
|
244
240
|
return pulumi.get(self, "region")
|
245
241
|
|
pulumi_newrelic/alert_channel.py
CHANGED
@@ -22,10 +22,10 @@ class AlertChannelArgs:
|
|
22
22
|
name: Optional[pulumi.Input[str]] = None):
|
23
23
|
"""
|
24
24
|
The set of arguments for constructing a AlertChannel resource.
|
25
|
-
:param pulumi.Input[str] type: The type of channel.
|
26
|
-
:param pulumi.Input[int] account_id:
|
27
|
-
:param pulumi.Input['AlertChannelConfigArgs'] config:
|
28
|
-
:param pulumi.Input[str] name: The name of the channel.
|
25
|
+
:param pulumi.Input[str] type: (Required) The type of channel. One of: (email, opsgenie, pagerduty, slack, user, victorops, webhook).
|
26
|
+
:param pulumi.Input[int] account_id: The New Relic account ID where you want to create alert channels.
|
27
|
+
:param pulumi.Input['AlertChannelConfigArgs'] config: The configuration block for the alert channel.
|
28
|
+
:param pulumi.Input[str] name: (Required) The name of the channel.
|
29
29
|
"""
|
30
30
|
pulumi.set(__self__, "type", type)
|
31
31
|
if account_id is not None:
|
@@ -39,7 +39,7 @@ class AlertChannelArgs:
|
|
39
39
|
@pulumi.getter
|
40
40
|
def type(self) -> pulumi.Input[str]:
|
41
41
|
"""
|
42
|
-
The type of channel.
|
42
|
+
(Required) The type of channel. One of: (email, opsgenie, pagerduty, slack, user, victorops, webhook).
|
43
43
|
"""
|
44
44
|
return pulumi.get(self, "type")
|
45
45
|
|
@@ -51,7 +51,7 @@ class AlertChannelArgs:
|
|
51
51
|
@pulumi.getter(name="accountId")
|
52
52
|
def account_id(self) -> Optional[pulumi.Input[int]]:
|
53
53
|
"""
|
54
|
-
|
54
|
+
The New Relic account ID where you want to create alert channels.
|
55
55
|
"""
|
56
56
|
return pulumi.get(self, "account_id")
|
57
57
|
|
@@ -63,7 +63,7 @@ class AlertChannelArgs:
|
|
63
63
|
@pulumi.getter
|
64
64
|
def config(self) -> Optional[pulumi.Input['AlertChannelConfigArgs']]:
|
65
65
|
"""
|
66
|
-
|
66
|
+
The configuration block for the alert channel.
|
67
67
|
"""
|
68
68
|
return pulumi.get(self, "config")
|
69
69
|
|
@@ -75,7 +75,7 @@ class AlertChannelArgs:
|
|
75
75
|
@pulumi.getter
|
76
76
|
def name(self) -> Optional[pulumi.Input[str]]:
|
77
77
|
"""
|
78
|
-
The name of the channel.
|
78
|
+
(Required) The name of the channel.
|
79
79
|
"""
|
80
80
|
return pulumi.get(self, "name")
|
81
81
|
|
@@ -93,10 +93,10 @@ class _AlertChannelState:
|
|
93
93
|
type: Optional[pulumi.Input[str]] = None):
|
94
94
|
"""
|
95
95
|
Input properties used for looking up and filtering AlertChannel resources.
|
96
|
-
:param pulumi.Input[int] account_id:
|
97
|
-
:param pulumi.Input['AlertChannelConfigArgs'] config:
|
98
|
-
:param pulumi.Input[str] name: The name of the channel.
|
99
|
-
:param pulumi.Input[str] type: The type of channel.
|
96
|
+
:param pulumi.Input[int] account_id: The New Relic account ID where you want to create alert channels.
|
97
|
+
:param pulumi.Input['AlertChannelConfigArgs'] config: The configuration block for the alert channel.
|
98
|
+
:param pulumi.Input[str] name: (Required) The name of the channel.
|
99
|
+
:param pulumi.Input[str] type: (Required) The type of channel. One of: (email, opsgenie, pagerduty, slack, user, victorops, webhook).
|
100
100
|
"""
|
101
101
|
if account_id is not None:
|
102
102
|
pulumi.set(__self__, "account_id", account_id)
|
@@ -111,7 +111,7 @@ class _AlertChannelState:
|
|
111
111
|
@pulumi.getter(name="accountId")
|
112
112
|
def account_id(self) -> Optional[pulumi.Input[int]]:
|
113
113
|
"""
|
114
|
-
|
114
|
+
The New Relic account ID where you want to create alert channels.
|
115
115
|
"""
|
116
116
|
return pulumi.get(self, "account_id")
|
117
117
|
|
@@ -123,7 +123,7 @@ class _AlertChannelState:
|
|
123
123
|
@pulumi.getter
|
124
124
|
def config(self) -> Optional[pulumi.Input['AlertChannelConfigArgs']]:
|
125
125
|
"""
|
126
|
-
|
126
|
+
The configuration block for the alert channel.
|
127
127
|
"""
|
128
128
|
return pulumi.get(self, "config")
|
129
129
|
|
@@ -135,7 +135,7 @@ class _AlertChannelState:
|
|
135
135
|
@pulumi.getter
|
136
136
|
def name(self) -> Optional[pulumi.Input[str]]:
|
137
137
|
"""
|
138
|
-
The name of the channel.
|
138
|
+
(Required) The name of the channel.
|
139
139
|
"""
|
140
140
|
return pulumi.get(self, "name")
|
141
141
|
|
@@ -147,7 +147,7 @@ class _AlertChannelState:
|
|
147
147
|
@pulumi.getter
|
148
148
|
def type(self) -> Optional[pulumi.Input[str]]:
|
149
149
|
"""
|
150
|
-
The type of channel.
|
150
|
+
(Required) The type of channel. One of: (email, opsgenie, pagerduty, slack, user, victorops, webhook).
|
151
151
|
"""
|
152
152
|
return pulumi.get(self, "type")
|
153
153
|
|
@@ -174,7 +174,6 @@ class AlertChannel(pulumi.CustomResource):
|
|
174
174
|
## Example Usage
|
175
175
|
|
176
176
|
### Email
|
177
|
-
<!--Start PulumiCodeChooser -->
|
178
177
|
```python
|
179
178
|
import pulumi
|
180
179
|
import pulumi_newrelic as newrelic
|
@@ -187,12 +186,10 @@ class AlertChannel(pulumi.CustomResource):
|
|
187
186
|
include_json_attachment="true",
|
188
187
|
))
|
189
188
|
```
|
190
|
-
<!--End PulumiCodeChooser -->
|
191
189
|
|
192
190
|
## Additional Examples
|
193
191
|
|
194
192
|
##### Slack
|
195
|
-
<!--Start PulumiCodeChooser -->
|
196
193
|
```python
|
197
194
|
import pulumi
|
198
195
|
import pulumi_newrelic as newrelic
|
@@ -205,12 +202,10 @@ class AlertChannel(pulumi.CustomResource):
|
|
205
202
|
channel="example-alerts-channel",
|
206
203
|
))
|
207
204
|
```
|
208
|
-
<!--End PulumiCodeChooser -->
|
209
205
|
|
210
206
|
> **NOTE:** For instructions on setting up Webhooks with Slack, please visit the article linked under the argument `slack` in the aforementioned configuration, or [this article](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/alert-notifications/notification-channels-control-where-send-alerts/#slack) in New Relic's docs for additional details on setting up the `New Relic Alerts` Slack application, and subsequently using the generated Webhook URL.
|
211
207
|
|
212
208
|
### OpsGenie
|
213
|
-
<!--Start PulumiCodeChooser -->
|
214
209
|
```python
|
215
210
|
import pulumi
|
216
211
|
import pulumi_newrelic as newrelic
|
@@ -225,10 +220,8 @@ class AlertChannel(pulumi.CustomResource):
|
|
225
220
|
recipients="user1@domain.com, user2@domain.com",
|
226
221
|
))
|
227
222
|
```
|
228
|
-
<!--End PulumiCodeChooser -->
|
229
223
|
|
230
224
|
### PagerDuty
|
231
|
-
<!--Start PulumiCodeChooser -->
|
232
225
|
```python
|
233
226
|
import pulumi
|
234
227
|
import pulumi_newrelic as newrelic
|
@@ -240,10 +233,8 @@ class AlertChannel(pulumi.CustomResource):
|
|
240
233
|
service_key="abc123",
|
241
234
|
))
|
242
235
|
```
|
243
|
-
<!--End PulumiCodeChooser -->
|
244
236
|
|
245
237
|
### VictorOps
|
246
|
-
<!--Start PulumiCodeChooser -->
|
247
238
|
```python
|
248
239
|
import pulumi
|
249
240
|
import pulumi_newrelic as newrelic
|
@@ -256,10 +247,8 @@ class AlertChannel(pulumi.CustomResource):
|
|
256
247
|
route_key="/example",
|
257
248
|
))
|
258
249
|
```
|
259
|
-
<!--End PulumiCodeChooser -->
|
260
250
|
|
261
251
|
### Webhook
|
262
|
-
<!--Start PulumiCodeChooser -->
|
263
252
|
```python
|
264
253
|
import pulumi
|
265
254
|
import pulumi_newrelic as newrelic
|
@@ -280,10 +269,8 @@ class AlertChannel(pulumi.CustomResource):
|
|
280
269
|
},
|
281
270
|
))
|
282
271
|
```
|
283
|
-
<!--End PulumiCodeChooser -->
|
284
272
|
|
285
273
|
### Webhook with complex payload
|
286
|
-
<!--Start PulumiCodeChooser -->
|
287
274
|
```python
|
288
275
|
import pulumi
|
289
276
|
import pulumi_newrelic as newrelic
|
@@ -303,7 +290,6 @@ class AlertChannel(pulumi.CustomResource):
|
|
303
290
|
\"\"\",
|
304
291
|
))
|
305
292
|
```
|
306
|
-
<!--End PulumiCodeChooser -->
|
307
293
|
|
308
294
|
## Import
|
309
295
|
|
@@ -317,10 +303,10 @@ class AlertChannel(pulumi.CustomResource):
|
|
317
303
|
|
318
304
|
:param str resource_name: The name of the resource.
|
319
305
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
320
|
-
:param pulumi.Input[int] account_id:
|
321
|
-
:param pulumi.Input[pulumi.InputType['AlertChannelConfigArgs']] config:
|
322
|
-
:param pulumi.Input[str] name: The name of the channel.
|
323
|
-
:param pulumi.Input[str] type: The type of channel.
|
306
|
+
:param pulumi.Input[int] account_id: The New Relic account ID where you want to create alert channels.
|
307
|
+
:param pulumi.Input[pulumi.InputType['AlertChannelConfigArgs']] config: The configuration block for the alert channel.
|
308
|
+
:param pulumi.Input[str] name: (Required) The name of the channel.
|
309
|
+
:param pulumi.Input[str] type: (Required) The type of channel. One of: (email, opsgenie, pagerduty, slack, user, victorops, webhook).
|
324
310
|
"""
|
325
311
|
...
|
326
312
|
@overload
|
@@ -336,7 +322,6 @@ class AlertChannel(pulumi.CustomResource):
|
|
336
322
|
## Example Usage
|
337
323
|
|
338
324
|
### Email
|
339
|
-
<!--Start PulumiCodeChooser -->
|
340
325
|
```python
|
341
326
|
import pulumi
|
342
327
|
import pulumi_newrelic as newrelic
|
@@ -349,12 +334,10 @@ class AlertChannel(pulumi.CustomResource):
|
|
349
334
|
include_json_attachment="true",
|
350
335
|
))
|
351
336
|
```
|
352
|
-
<!--End PulumiCodeChooser -->
|
353
337
|
|
354
338
|
## Additional Examples
|
355
339
|
|
356
340
|
##### Slack
|
357
|
-
<!--Start PulumiCodeChooser -->
|
358
341
|
```python
|
359
342
|
import pulumi
|
360
343
|
import pulumi_newrelic as newrelic
|
@@ -367,12 +350,10 @@ class AlertChannel(pulumi.CustomResource):
|
|
367
350
|
channel="example-alerts-channel",
|
368
351
|
))
|
369
352
|
```
|
370
|
-
<!--End PulumiCodeChooser -->
|
371
353
|
|
372
354
|
> **NOTE:** For instructions on setting up Webhooks with Slack, please visit the article linked under the argument `slack` in the aforementioned configuration, or [this article](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/alert-notifications/notification-channels-control-where-send-alerts/#slack) in New Relic's docs for additional details on setting up the `New Relic Alerts` Slack application, and subsequently using the generated Webhook URL.
|
373
355
|
|
374
356
|
### OpsGenie
|
375
|
-
<!--Start PulumiCodeChooser -->
|
376
357
|
```python
|
377
358
|
import pulumi
|
378
359
|
import pulumi_newrelic as newrelic
|
@@ -387,10 +368,8 @@ class AlertChannel(pulumi.CustomResource):
|
|
387
368
|
recipients="user1@domain.com, user2@domain.com",
|
388
369
|
))
|
389
370
|
```
|
390
|
-
<!--End PulumiCodeChooser -->
|
391
371
|
|
392
372
|
### PagerDuty
|
393
|
-
<!--Start PulumiCodeChooser -->
|
394
373
|
```python
|
395
374
|
import pulumi
|
396
375
|
import pulumi_newrelic as newrelic
|
@@ -402,10 +381,8 @@ class AlertChannel(pulumi.CustomResource):
|
|
402
381
|
service_key="abc123",
|
403
382
|
))
|
404
383
|
```
|
405
|
-
<!--End PulumiCodeChooser -->
|
406
384
|
|
407
385
|
### VictorOps
|
408
|
-
<!--Start PulumiCodeChooser -->
|
409
386
|
```python
|
410
387
|
import pulumi
|
411
388
|
import pulumi_newrelic as newrelic
|
@@ -418,10 +395,8 @@ class AlertChannel(pulumi.CustomResource):
|
|
418
395
|
route_key="/example",
|
419
396
|
))
|
420
397
|
```
|
421
|
-
<!--End PulumiCodeChooser -->
|
422
398
|
|
423
399
|
### Webhook
|
424
|
-
<!--Start PulumiCodeChooser -->
|
425
400
|
```python
|
426
401
|
import pulumi
|
427
402
|
import pulumi_newrelic as newrelic
|
@@ -442,10 +417,8 @@ class AlertChannel(pulumi.CustomResource):
|
|
442
417
|
},
|
443
418
|
))
|
444
419
|
```
|
445
|
-
<!--End PulumiCodeChooser -->
|
446
420
|
|
447
421
|
### Webhook with complex payload
|
448
|
-
<!--Start PulumiCodeChooser -->
|
449
422
|
```python
|
450
423
|
import pulumi
|
451
424
|
import pulumi_newrelic as newrelic
|
@@ -465,7 +438,6 @@ class AlertChannel(pulumi.CustomResource):
|
|
465
438
|
\"\"\",
|
466
439
|
))
|
467
440
|
```
|
468
|
-
<!--End PulumiCodeChooser -->
|
469
441
|
|
470
442
|
## Import
|
471
443
|
|
@@ -532,10 +504,10 @@ class AlertChannel(pulumi.CustomResource):
|
|
532
504
|
:param str resource_name: The unique name of the resulting resource.
|
533
505
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
534
506
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
535
|
-
:param pulumi.Input[int] account_id:
|
536
|
-
:param pulumi.Input[pulumi.InputType['AlertChannelConfigArgs']] config:
|
537
|
-
:param pulumi.Input[str] name: The name of the channel.
|
538
|
-
:param pulumi.Input[str] type: The type of channel.
|
507
|
+
:param pulumi.Input[int] account_id: The New Relic account ID where you want to create alert channels.
|
508
|
+
:param pulumi.Input[pulumi.InputType['AlertChannelConfigArgs']] config: The configuration block for the alert channel.
|
509
|
+
:param pulumi.Input[str] name: (Required) The name of the channel.
|
510
|
+
:param pulumi.Input[str] type: (Required) The type of channel. One of: (email, opsgenie, pagerduty, slack, user, victorops, webhook).
|
539
511
|
"""
|
540
512
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
541
513
|
|
@@ -551,7 +523,7 @@ class AlertChannel(pulumi.CustomResource):
|
|
551
523
|
@pulumi.getter(name="accountId")
|
552
524
|
def account_id(self) -> pulumi.Output[int]:
|
553
525
|
"""
|
554
|
-
|
526
|
+
The New Relic account ID where you want to create alert channels.
|
555
527
|
"""
|
556
528
|
return pulumi.get(self, "account_id")
|
557
529
|
|
@@ -559,7 +531,7 @@ class AlertChannel(pulumi.CustomResource):
|
|
559
531
|
@pulumi.getter
|
560
532
|
def config(self) -> pulumi.Output[Optional['outputs.AlertChannelConfig']]:
|
561
533
|
"""
|
562
|
-
|
534
|
+
The configuration block for the alert channel.
|
563
535
|
"""
|
564
536
|
return pulumi.get(self, "config")
|
565
537
|
|
@@ -567,7 +539,7 @@ class AlertChannel(pulumi.CustomResource):
|
|
567
539
|
@pulumi.getter
|
568
540
|
def name(self) -> pulumi.Output[str]:
|
569
541
|
"""
|
570
|
-
The name of the channel.
|
542
|
+
(Required) The name of the channel.
|
571
543
|
"""
|
572
544
|
return pulumi.get(self, "name")
|
573
545
|
|
@@ -575,7 +547,7 @@ class AlertChannel(pulumi.CustomResource):
|
|
575
547
|
@pulumi.getter
|
576
548
|
def type(self) -> pulumi.Output[str]:
|
577
549
|
"""
|
578
|
-
The type of channel.
|
550
|
+
(Required) The type of channel. One of: (email, opsgenie, pagerduty, slack, user, victorops, webhook).
|
579
551
|
"""
|
580
552
|
return pulumi.get(self, "type")
|
581
553
|
|