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
@@ -24,12 +24,12 @@ class AlertMutingRuleArgs:
|
|
24
24
|
schedule: Optional[pulumi.Input['AlertMutingRuleScheduleArgs']] = None):
|
25
25
|
"""
|
26
26
|
The set of arguments for constructing a AlertMutingRule resource.
|
27
|
-
:param pulumi.Input['AlertMutingRuleConditionArgs'] condition: The condition that defines which incidents to target.
|
27
|
+
:param pulumi.Input['AlertMutingRuleConditionArgs'] condition: The condition that defines which incidents to target.
|
28
28
|
:param pulumi.Input[bool] enabled: Whether the MutingRule is enabled.
|
29
|
-
:param pulumi.Input[int] account_id: The account id of the MutingRule
|
29
|
+
:param pulumi.Input[int] account_id: The account id of the MutingRule..
|
30
30
|
:param pulumi.Input[str] description: The description of the MutingRule.
|
31
31
|
:param pulumi.Input[str] name: The name of the MutingRule.
|
32
|
-
:param pulumi.Input['AlertMutingRuleScheduleArgs'] schedule:
|
32
|
+
:param pulumi.Input['AlertMutingRuleScheduleArgs'] schedule: The time window when the MutingRule should actively mute incidents.
|
33
33
|
"""
|
34
34
|
pulumi.set(__self__, "condition", condition)
|
35
35
|
pulumi.set(__self__, "enabled", enabled)
|
@@ -46,7 +46,7 @@ class AlertMutingRuleArgs:
|
|
46
46
|
@pulumi.getter
|
47
47
|
def condition(self) -> pulumi.Input['AlertMutingRuleConditionArgs']:
|
48
48
|
"""
|
49
|
-
The condition that defines which incidents to target.
|
49
|
+
The condition that defines which incidents to target.
|
50
50
|
"""
|
51
51
|
return pulumi.get(self, "condition")
|
52
52
|
|
@@ -70,7 +70,7 @@ class AlertMutingRuleArgs:
|
|
70
70
|
@pulumi.getter(name="accountId")
|
71
71
|
def account_id(self) -> Optional[pulumi.Input[int]]:
|
72
72
|
"""
|
73
|
-
The account id of the MutingRule
|
73
|
+
The account id of the MutingRule..
|
74
74
|
"""
|
75
75
|
return pulumi.get(self, "account_id")
|
76
76
|
|
@@ -106,7 +106,7 @@ class AlertMutingRuleArgs:
|
|
106
106
|
@pulumi.getter
|
107
107
|
def schedule(self) -> Optional[pulumi.Input['AlertMutingRuleScheduleArgs']]:
|
108
108
|
"""
|
109
|
-
|
109
|
+
The time window when the MutingRule should actively mute incidents.
|
110
110
|
"""
|
111
111
|
return pulumi.get(self, "schedule")
|
112
112
|
|
@@ -126,12 +126,12 @@ class _AlertMutingRuleState:
|
|
126
126
|
schedule: Optional[pulumi.Input['AlertMutingRuleScheduleArgs']] = None):
|
127
127
|
"""
|
128
128
|
Input properties used for looking up and filtering AlertMutingRule resources.
|
129
|
-
:param pulumi.Input[int] account_id: The account id of the MutingRule
|
130
|
-
:param pulumi.Input['AlertMutingRuleConditionArgs'] condition: The condition that defines which incidents to target.
|
129
|
+
:param pulumi.Input[int] account_id: The account id of the MutingRule..
|
130
|
+
:param pulumi.Input['AlertMutingRuleConditionArgs'] condition: The condition that defines which incidents to target.
|
131
131
|
:param pulumi.Input[str] description: The description of the MutingRule.
|
132
132
|
:param pulumi.Input[bool] enabled: Whether the MutingRule is enabled.
|
133
133
|
:param pulumi.Input[str] name: The name of the MutingRule.
|
134
|
-
:param pulumi.Input['AlertMutingRuleScheduleArgs'] schedule:
|
134
|
+
:param pulumi.Input['AlertMutingRuleScheduleArgs'] schedule: The time window when the MutingRule should actively mute incidents.
|
135
135
|
"""
|
136
136
|
if account_id is not None:
|
137
137
|
pulumi.set(__self__, "account_id", account_id)
|
@@ -150,7 +150,7 @@ class _AlertMutingRuleState:
|
|
150
150
|
@pulumi.getter(name="accountId")
|
151
151
|
def account_id(self) -> Optional[pulumi.Input[int]]:
|
152
152
|
"""
|
153
|
-
The account id of the MutingRule
|
153
|
+
The account id of the MutingRule..
|
154
154
|
"""
|
155
155
|
return pulumi.get(self, "account_id")
|
156
156
|
|
@@ -162,7 +162,7 @@ class _AlertMutingRuleState:
|
|
162
162
|
@pulumi.getter
|
163
163
|
def condition(self) -> Optional[pulumi.Input['AlertMutingRuleConditionArgs']]:
|
164
164
|
"""
|
165
|
-
The condition that defines which incidents to target.
|
165
|
+
The condition that defines which incidents to target.
|
166
166
|
"""
|
167
167
|
return pulumi.get(self, "condition")
|
168
168
|
|
@@ -210,7 +210,7 @@ class _AlertMutingRuleState:
|
|
210
210
|
@pulumi.getter
|
211
211
|
def schedule(self) -> Optional[pulumi.Input['AlertMutingRuleScheduleArgs']]:
|
212
212
|
"""
|
213
|
-
|
213
|
+
The time window when the MutingRule should actively mute incidents.
|
214
214
|
"""
|
215
215
|
return pulumi.get(self, "schedule")
|
216
216
|
|
@@ -234,7 +234,6 @@ class AlertMutingRule(pulumi.CustomResource):
|
|
234
234
|
"""
|
235
235
|
## Example Usage
|
236
236
|
|
237
|
-
<!--Start PulumiCodeChooser -->
|
238
237
|
```python
|
239
238
|
import pulumi
|
240
239
|
import pulumi_newrelic as newrelic
|
@@ -271,7 +270,6 @@ class AlertMutingRule(pulumi.CustomResource):
|
|
271
270
|
repeat_count=42,
|
272
271
|
))
|
273
272
|
```
|
274
|
-
<!--End PulumiCodeChooser -->
|
275
273
|
|
276
274
|
## Import
|
277
275
|
|
@@ -283,12 +281,12 @@ class AlertMutingRule(pulumi.CustomResource):
|
|
283
281
|
|
284
282
|
:param str resource_name: The name of the resource.
|
285
283
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
286
|
-
:param pulumi.Input[int] account_id: The account id of the MutingRule
|
287
|
-
:param pulumi.Input[pulumi.InputType['AlertMutingRuleConditionArgs']] condition: The condition that defines which incidents to target.
|
284
|
+
:param pulumi.Input[int] account_id: The account id of the MutingRule..
|
285
|
+
:param pulumi.Input[pulumi.InputType['AlertMutingRuleConditionArgs']] condition: The condition that defines which incidents to target.
|
288
286
|
:param pulumi.Input[str] description: The description of the MutingRule.
|
289
287
|
:param pulumi.Input[bool] enabled: Whether the MutingRule is enabled.
|
290
288
|
:param pulumi.Input[str] name: The name of the MutingRule.
|
291
|
-
:param pulumi.Input[pulumi.InputType['AlertMutingRuleScheduleArgs']] schedule:
|
289
|
+
:param pulumi.Input[pulumi.InputType['AlertMutingRuleScheduleArgs']] schedule: The time window when the MutingRule should actively mute incidents.
|
292
290
|
"""
|
293
291
|
...
|
294
292
|
@overload
|
@@ -299,7 +297,6 @@ class AlertMutingRule(pulumi.CustomResource):
|
|
299
297
|
"""
|
300
298
|
## Example Usage
|
301
299
|
|
302
|
-
<!--Start PulumiCodeChooser -->
|
303
300
|
```python
|
304
301
|
import pulumi
|
305
302
|
import pulumi_newrelic as newrelic
|
@@ -336,7 +333,6 @@ class AlertMutingRule(pulumi.CustomResource):
|
|
336
333
|
repeat_count=42,
|
337
334
|
))
|
338
335
|
```
|
339
|
-
<!--End PulumiCodeChooser -->
|
340
336
|
|
341
337
|
## Import
|
342
338
|
|
@@ -409,12 +405,12 @@ class AlertMutingRule(pulumi.CustomResource):
|
|
409
405
|
:param str resource_name: The unique name of the resulting resource.
|
410
406
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
411
407
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
412
|
-
:param pulumi.Input[int] account_id: The account id of the MutingRule
|
413
|
-
:param pulumi.Input[pulumi.InputType['AlertMutingRuleConditionArgs']] condition: The condition that defines which incidents to target.
|
408
|
+
:param pulumi.Input[int] account_id: The account id of the MutingRule..
|
409
|
+
:param pulumi.Input[pulumi.InputType['AlertMutingRuleConditionArgs']] condition: The condition that defines which incidents to target.
|
414
410
|
:param pulumi.Input[str] description: The description of the MutingRule.
|
415
411
|
:param pulumi.Input[bool] enabled: Whether the MutingRule is enabled.
|
416
412
|
:param pulumi.Input[str] name: The name of the MutingRule.
|
417
|
-
:param pulumi.Input[pulumi.InputType['AlertMutingRuleScheduleArgs']] schedule:
|
413
|
+
:param pulumi.Input[pulumi.InputType['AlertMutingRuleScheduleArgs']] schedule: The time window when the MutingRule should actively mute incidents.
|
418
414
|
"""
|
419
415
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
420
416
|
|
@@ -432,7 +428,7 @@ class AlertMutingRule(pulumi.CustomResource):
|
|
432
428
|
@pulumi.getter(name="accountId")
|
433
429
|
def account_id(self) -> pulumi.Output[int]:
|
434
430
|
"""
|
435
|
-
The account id of the MutingRule
|
431
|
+
The account id of the MutingRule..
|
436
432
|
"""
|
437
433
|
return pulumi.get(self, "account_id")
|
438
434
|
|
@@ -440,7 +436,7 @@ class AlertMutingRule(pulumi.CustomResource):
|
|
440
436
|
@pulumi.getter
|
441
437
|
def condition(self) -> pulumi.Output['outputs.AlertMutingRuleCondition']:
|
442
438
|
"""
|
443
|
-
The condition that defines which incidents to target.
|
439
|
+
The condition that defines which incidents to target.
|
444
440
|
"""
|
445
441
|
return pulumi.get(self, "condition")
|
446
442
|
|
@@ -472,7 +468,7 @@ class AlertMutingRule(pulumi.CustomResource):
|
|
472
468
|
@pulumi.getter
|
473
469
|
def schedule(self) -> pulumi.Output[Optional['outputs.AlertMutingRuleSchedule']]:
|
474
470
|
"""
|
475
|
-
|
471
|
+
The time window when the MutingRule should actively mute incidents.
|
476
472
|
"""
|
477
473
|
return pulumi.get(self, "schedule")
|
478
474
|
|
pulumi_newrelic/alert_policy.py
CHANGED
@@ -20,9 +20,12 @@ class AlertPolicyArgs:
|
|
20
20
|
name: Optional[pulumi.Input[str]] = None):
|
21
21
|
"""
|
22
22
|
The set of arguments for constructing a AlertPolicy resource.
|
23
|
-
:param pulumi.Input[int] account_id: The New Relic account ID to operate on.
|
24
|
-
:param pulumi.Input[Sequence[pulumi.Input[int]]] channel_ids: An array of channel IDs (integers) to assign to the policy. Adding or removing channel IDs from this array will result
|
25
|
-
|
23
|
+
:param pulumi.Input[int] account_id: The New Relic account ID to operate on.
|
24
|
+
:param pulumi.Input[Sequence[pulumi.Input[int]]] channel_ids: An array of channel IDs (integers) to assign to the policy. Adding or removing channel IDs from this array will result
|
25
|
+
in a new alert policy resource being created and the old one being destroyed. Also note that channel IDs cannot be
|
26
|
+
imported via terraform import.
|
27
|
+
:param pulumi.Input[str] incident_preference: The rollup strategy for the policy. Options include: PER_POLICY, PER_CONDITION, or PER_CONDITION_AND_TARGET. The default
|
28
|
+
is PER_POLICY.
|
26
29
|
:param pulumi.Input[str] name: The name of the policy.
|
27
30
|
"""
|
28
31
|
if account_id is not None:
|
@@ -41,7 +44,7 @@ class AlertPolicyArgs:
|
|
41
44
|
@pulumi.getter(name="accountId")
|
42
45
|
def account_id(self) -> Optional[pulumi.Input[int]]:
|
43
46
|
"""
|
44
|
-
The New Relic account ID to operate on.
|
47
|
+
The New Relic account ID to operate on.
|
45
48
|
"""
|
46
49
|
return pulumi.get(self, "account_id")
|
47
50
|
|
@@ -53,7 +56,9 @@ class AlertPolicyArgs:
|
|
53
56
|
@pulumi.getter(name="channelIds")
|
54
57
|
def channel_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[int]]]]:
|
55
58
|
"""
|
56
|
-
An array of channel IDs (integers) to assign to the policy. Adding or removing channel IDs from this array will result
|
59
|
+
An array of channel IDs (integers) to assign to the policy. Adding or removing channel IDs from this array will result
|
60
|
+
in a new alert policy resource being created and the old one being destroyed. Also note that channel IDs cannot be
|
61
|
+
imported via terraform import.
|
57
62
|
"""
|
58
63
|
warnings.warn("""The `channel_ids` attribute is deprecated and will be removed in the next major release of the provider.""", DeprecationWarning)
|
59
64
|
pulumi.log.warn("""channel_ids is deprecated: The `channel_ids` attribute is deprecated and will be removed in the next major release of the provider.""")
|
@@ -68,7 +73,8 @@ class AlertPolicyArgs:
|
|
68
73
|
@pulumi.getter(name="incidentPreference")
|
69
74
|
def incident_preference(self) -> Optional[pulumi.Input[str]]:
|
70
75
|
"""
|
71
|
-
The rollup strategy for the policy.
|
76
|
+
The rollup strategy for the policy. Options include: PER_POLICY, PER_CONDITION, or PER_CONDITION_AND_TARGET. The default
|
77
|
+
is PER_POLICY.
|
72
78
|
"""
|
73
79
|
return pulumi.get(self, "incident_preference")
|
74
80
|
|
@@ -98,9 +104,12 @@ class _AlertPolicyState:
|
|
98
104
|
name: Optional[pulumi.Input[str]] = None):
|
99
105
|
"""
|
100
106
|
Input properties used for looking up and filtering AlertPolicy resources.
|
101
|
-
:param pulumi.Input[int] account_id: The New Relic account ID to operate on.
|
102
|
-
:param pulumi.Input[Sequence[pulumi.Input[int]]] channel_ids: An array of channel IDs (integers) to assign to the policy. Adding or removing channel IDs from this array will result
|
103
|
-
|
107
|
+
:param pulumi.Input[int] account_id: The New Relic account ID to operate on.
|
108
|
+
:param pulumi.Input[Sequence[pulumi.Input[int]]] channel_ids: An array of channel IDs (integers) to assign to the policy. Adding or removing channel IDs from this array will result
|
109
|
+
in a new alert policy resource being created and the old one being destroyed. Also note that channel IDs cannot be
|
110
|
+
imported via terraform import.
|
111
|
+
:param pulumi.Input[str] incident_preference: The rollup strategy for the policy. Options include: PER_POLICY, PER_CONDITION, or PER_CONDITION_AND_TARGET. The default
|
112
|
+
is PER_POLICY.
|
104
113
|
:param pulumi.Input[str] name: The name of the policy.
|
105
114
|
"""
|
106
115
|
if account_id is not None:
|
@@ -119,7 +128,7 @@ class _AlertPolicyState:
|
|
119
128
|
@pulumi.getter(name="accountId")
|
120
129
|
def account_id(self) -> Optional[pulumi.Input[int]]:
|
121
130
|
"""
|
122
|
-
The New Relic account ID to operate on.
|
131
|
+
The New Relic account ID to operate on.
|
123
132
|
"""
|
124
133
|
return pulumi.get(self, "account_id")
|
125
134
|
|
@@ -131,7 +140,9 @@ class _AlertPolicyState:
|
|
131
140
|
@pulumi.getter(name="channelIds")
|
132
141
|
def channel_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[int]]]]:
|
133
142
|
"""
|
134
|
-
An array of channel IDs (integers) to assign to the policy. Adding or removing channel IDs from this array will result
|
143
|
+
An array of channel IDs (integers) to assign to the policy. Adding or removing channel IDs from this array will result
|
144
|
+
in a new alert policy resource being created and the old one being destroyed. Also note that channel IDs cannot be
|
145
|
+
imported via terraform import.
|
135
146
|
"""
|
136
147
|
warnings.warn("""The `channel_ids` attribute is deprecated and will be removed in the next major release of the provider.""", DeprecationWarning)
|
137
148
|
pulumi.log.warn("""channel_ids is deprecated: The `channel_ids` attribute is deprecated and will be removed in the next major release of the provider.""")
|
@@ -146,7 +157,8 @@ class _AlertPolicyState:
|
|
146
157
|
@pulumi.getter(name="incidentPreference")
|
147
158
|
def incident_preference(self) -> Optional[pulumi.Input[str]]:
|
148
159
|
"""
|
149
|
-
The rollup strategy for the policy.
|
160
|
+
The rollup strategy for the policy. Options include: PER_POLICY, PER_CONDITION, or PER_CONDITION_AND_TARGET. The default
|
161
|
+
is PER_POLICY.
|
150
162
|
"""
|
151
163
|
return pulumi.get(self, "incident_preference")
|
152
164
|
|
@@ -184,7 +196,6 @@ class AlertPolicy(pulumi.CustomResource):
|
|
184
196
|
|
185
197
|
### Basic Usage
|
186
198
|
|
187
|
-
<!--Start PulumiCodeChooser -->
|
188
199
|
```python
|
189
200
|
import pulumi
|
190
201
|
import pulumi_newrelic as newrelic
|
@@ -193,7 +204,6 @@ class AlertPolicy(pulumi.CustomResource):
|
|
193
204
|
name="example",
|
194
205
|
incident_preference="PER_POLICY")
|
195
206
|
```
|
196
|
-
<!--End PulumiCodeChooser -->
|
197
207
|
|
198
208
|
### Provision multiple notification channels and add those channels to a policy
|
199
209
|
|
@@ -210,7 +220,6 @@ class AlertPolicy(pulumi.CustomResource):
|
|
210
220
|
## Additional Examples
|
211
221
|
|
212
222
|
##### Provision multiple notification channels and add those channels to a policy
|
213
|
-
<!--Start PulumiCodeChooser -->
|
214
223
|
```python
|
215
224
|
import pulumi
|
216
225
|
import pulumi_newrelic as newrelic
|
@@ -240,10 +249,8 @@ class AlertPolicy(pulumi.CustomResource):
|
|
240
249
|
email_channel.id,
|
241
250
|
])
|
242
251
|
```
|
243
|
-
<!--End PulumiCodeChooser -->
|
244
252
|
|
245
253
|
### Reference existing notification channels and add those channel to a policy
|
246
|
-
<!--Start PulumiCodeChooser -->
|
247
254
|
```python
|
248
255
|
import pulumi
|
249
256
|
import pulumi_newrelic as newrelic
|
@@ -261,7 +268,6 @@ class AlertPolicy(pulumi.CustomResource):
|
|
261
268
|
email_channel.id,
|
262
269
|
])
|
263
270
|
```
|
264
|
-
<!--End PulumiCodeChooser -->
|
265
271
|
|
266
272
|
## Import
|
267
273
|
|
@@ -276,9 +282,12 @@ class AlertPolicy(pulumi.CustomResource):
|
|
276
282
|
|
277
283
|
:param str resource_name: The name of the resource.
|
278
284
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
279
|
-
:param pulumi.Input[int] account_id: The New Relic account ID to operate on.
|
280
|
-
:param pulumi.Input[Sequence[pulumi.Input[int]]] channel_ids: An array of channel IDs (integers) to assign to the policy. Adding or removing channel IDs from this array will result
|
281
|
-
|
285
|
+
:param pulumi.Input[int] account_id: The New Relic account ID to operate on.
|
286
|
+
:param pulumi.Input[Sequence[pulumi.Input[int]]] channel_ids: An array of channel IDs (integers) to assign to the policy. Adding or removing channel IDs from this array will result
|
287
|
+
in a new alert policy resource being created and the old one being destroyed. Also note that channel IDs cannot be
|
288
|
+
imported via terraform import.
|
289
|
+
:param pulumi.Input[str] incident_preference: The rollup strategy for the policy. Options include: PER_POLICY, PER_CONDITION, or PER_CONDITION_AND_TARGET. The default
|
290
|
+
is PER_POLICY.
|
282
291
|
:param pulumi.Input[str] name: The name of the policy.
|
283
292
|
"""
|
284
293
|
...
|
@@ -294,7 +303,6 @@ class AlertPolicy(pulumi.CustomResource):
|
|
294
303
|
|
295
304
|
### Basic Usage
|
296
305
|
|
297
|
-
<!--Start PulumiCodeChooser -->
|
298
306
|
```python
|
299
307
|
import pulumi
|
300
308
|
import pulumi_newrelic as newrelic
|
@@ -303,7 +311,6 @@ class AlertPolicy(pulumi.CustomResource):
|
|
303
311
|
name="example",
|
304
312
|
incident_preference="PER_POLICY")
|
305
313
|
```
|
306
|
-
<!--End PulumiCodeChooser -->
|
307
314
|
|
308
315
|
### Provision multiple notification channels and add those channels to a policy
|
309
316
|
|
@@ -320,7 +327,6 @@ class AlertPolicy(pulumi.CustomResource):
|
|
320
327
|
## Additional Examples
|
321
328
|
|
322
329
|
##### Provision multiple notification channels and add those channels to a policy
|
323
|
-
<!--Start PulumiCodeChooser -->
|
324
330
|
```python
|
325
331
|
import pulumi
|
326
332
|
import pulumi_newrelic as newrelic
|
@@ -350,10 +356,8 @@ class AlertPolicy(pulumi.CustomResource):
|
|
350
356
|
email_channel.id,
|
351
357
|
])
|
352
358
|
```
|
353
|
-
<!--End PulumiCodeChooser -->
|
354
359
|
|
355
360
|
### Reference existing notification channels and add those channel to a policy
|
356
|
-
<!--Start PulumiCodeChooser -->
|
357
361
|
```python
|
358
362
|
import pulumi
|
359
363
|
import pulumi_newrelic as newrelic
|
@@ -371,7 +375,6 @@ class AlertPolicy(pulumi.CustomResource):
|
|
371
375
|
email_channel.id,
|
372
376
|
])
|
373
377
|
```
|
374
|
-
<!--End PulumiCodeChooser -->
|
375
378
|
|
376
379
|
## Import
|
377
380
|
|
@@ -437,9 +440,12 @@ class AlertPolicy(pulumi.CustomResource):
|
|
437
440
|
:param str resource_name: The unique name of the resulting resource.
|
438
441
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
439
442
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
440
|
-
:param pulumi.Input[int] account_id: The New Relic account ID to operate on.
|
441
|
-
:param pulumi.Input[Sequence[pulumi.Input[int]]] channel_ids: An array of channel IDs (integers) to assign to the policy. Adding or removing channel IDs from this array will result
|
442
|
-
|
443
|
+
:param pulumi.Input[int] account_id: The New Relic account ID to operate on.
|
444
|
+
:param pulumi.Input[Sequence[pulumi.Input[int]]] channel_ids: An array of channel IDs (integers) to assign to the policy. Adding or removing channel IDs from this array will result
|
445
|
+
in a new alert policy resource being created and the old one being destroyed. Also note that channel IDs cannot be
|
446
|
+
imported via terraform import.
|
447
|
+
:param pulumi.Input[str] incident_preference: The rollup strategy for the policy. Options include: PER_POLICY, PER_CONDITION, or PER_CONDITION_AND_TARGET. The default
|
448
|
+
is PER_POLICY.
|
443
449
|
:param pulumi.Input[str] name: The name of the policy.
|
444
450
|
"""
|
445
451
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
@@ -456,7 +462,7 @@ class AlertPolicy(pulumi.CustomResource):
|
|
456
462
|
@pulumi.getter(name="accountId")
|
457
463
|
def account_id(self) -> pulumi.Output[int]:
|
458
464
|
"""
|
459
|
-
The New Relic account ID to operate on.
|
465
|
+
The New Relic account ID to operate on.
|
460
466
|
"""
|
461
467
|
return pulumi.get(self, "account_id")
|
462
468
|
|
@@ -464,7 +470,9 @@ class AlertPolicy(pulumi.CustomResource):
|
|
464
470
|
@pulumi.getter(name="channelIds")
|
465
471
|
def channel_ids(self) -> pulumi.Output[Optional[Sequence[int]]]:
|
466
472
|
"""
|
467
|
-
An array of channel IDs (integers) to assign to the policy. Adding or removing channel IDs from this array will result
|
473
|
+
An array of channel IDs (integers) to assign to the policy. Adding or removing channel IDs from this array will result
|
474
|
+
in a new alert policy resource being created and the old one being destroyed. Also note that channel IDs cannot be
|
475
|
+
imported via terraform import.
|
468
476
|
"""
|
469
477
|
warnings.warn("""The `channel_ids` attribute is deprecated and will be removed in the next major release of the provider.""", DeprecationWarning)
|
470
478
|
pulumi.log.warn("""channel_ids is deprecated: The `channel_ids` attribute is deprecated and will be removed in the next major release of the provider.""")
|
@@ -475,7 +483,8 @@ class AlertPolicy(pulumi.CustomResource):
|
|
475
483
|
@pulumi.getter(name="incidentPreference")
|
476
484
|
def incident_preference(self) -> pulumi.Output[Optional[str]]:
|
477
485
|
"""
|
478
|
-
The rollup strategy for the policy.
|
486
|
+
The rollup strategy for the policy. Options include: PER_POLICY, PER_CONDITION, or PER_CONDITION_AND_TARGET. The default
|
487
|
+
is PER_POLICY.
|
479
488
|
"""
|
480
489
|
return pulumi.get(self, "incident_preference")
|
481
490
|
|
@@ -139,7 +139,6 @@ class AlertPolicyChannel(pulumi.CustomResource):
|
|
139
139
|
|
140
140
|
The example below will apply multiple alert channels to an existing New Relic alert policy.
|
141
141
|
|
142
|
-
<!--Start PulumiCodeChooser -->
|
143
142
|
```python
|
144
143
|
import pulumi
|
145
144
|
import pulumi_newrelic as newrelic
|
@@ -172,7 +171,6 @@ class AlertPolicyChannel(pulumi.CustomResource):
|
|
172
171
|
slack_channel.id,
|
173
172
|
])
|
174
173
|
```
|
175
|
-
<!--End PulumiCodeChooser -->
|
176
174
|
|
177
175
|
## Import
|
178
176
|
|
@@ -204,7 +202,6 @@ class AlertPolicyChannel(pulumi.CustomResource):
|
|
204
202
|
|
205
203
|
The example below will apply multiple alert channels to an existing New Relic alert policy.
|
206
204
|
|
207
|
-
<!--Start PulumiCodeChooser -->
|
208
205
|
```python
|
209
206
|
import pulumi
|
210
207
|
import pulumi_newrelic as newrelic
|
@@ -237,7 +234,6 @@ class AlertPolicyChannel(pulumi.CustomResource):
|
|
237
234
|
slack_channel.id,
|
238
235
|
])
|
239
236
|
```
|
240
|
-
<!--End PulumiCodeChooser -->
|
241
237
|
|
242
238
|
## Import
|
243
239
|
|