pulumi-newrelic 5.24.0a1715356536__py3-none-any.whl → 5.25.0__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 +499 -93
- pulumi_newrelic/account_management.py +14 -14
- pulumi_newrelic/alert_channel.py +38 -38
- pulumi_newrelic/alert_condition.py +153 -112
- pulumi_newrelic/alert_muting_rule.py +31 -31
- pulumi_newrelic/alert_policy.py +47 -41
- pulumi_newrelic/alert_policy_channel.py +42 -42
- pulumi_newrelic/api_access_key.py +28 -28
- pulumi_newrelic/browser_application.py +14 -14
- pulumi_newrelic/cloud/aws_govcloud_integrations.py +28 -28
- pulumi_newrelic/cloud/aws_govcloud_link_account.py +14 -14
- pulumi_newrelic/cloud/aws_integrations.py +28 -28
- pulumi_newrelic/cloud/aws_link_account.py +14 -14
- pulumi_newrelic/cloud/azure_integrations.py +28 -28
- pulumi_newrelic/cloud/azure_link_account.py +14 -14
- pulumi_newrelic/cloud/gcp_integrations.py +28 -28
- pulumi_newrelic/cloud/gcp_link_account.py +14 -14
- pulumi_newrelic/config/__init__.pyi +1 -1
- pulumi_newrelic/config/vars.py +2 -2
- pulumi_newrelic/data_partition_rule.py +14 -14
- pulumi_newrelic/entity_tags.py +7 -7
- pulumi_newrelic/events_to_metrics_rule.py +16 -16
- pulumi_newrelic/get_account.py +7 -7
- pulumi_newrelic/get_alert_channel.py +8 -8
- pulumi_newrelic/get_alert_policy.py +16 -7
- pulumi_newrelic/get_application.py +2 -2
- pulumi_newrelic/get_cloud_account.py +9 -9
- pulumi_newrelic/get_entity.py +15 -15
- pulumi_newrelic/get_notification_destination.py +7 -7
- pulumi_newrelic/get_obfuscation_expression.py +9 -9
- pulumi_newrelic/get_service_level_alert_helper.py +28 -10
- pulumi_newrelic/get_test_grok_pattern.py +7 -7
- pulumi_newrelic/infra_alert_condition.py +119 -140
- pulumi_newrelic/insights/event.py +13 -0
- pulumi_newrelic/log_parsing_rule.py +14 -14
- pulumi_newrelic/monitor_downtime.py +14 -14
- pulumi_newrelic/notification_channel.py +36 -36
- pulumi_newrelic/notification_destination.py +28 -24
- pulumi_newrelic/nrql_alert_condition.py +32 -32
- pulumi_newrelic/nrql_drop_rule.py +44 -44
- pulumi_newrelic/obfuscation_expression.py +16 -16
- pulumi_newrelic/obfuscation_rule.py +14 -14
- pulumi_newrelic/one_dashboard.py +58 -52
- pulumi_newrelic/one_dashboard_json.py +14 -14
- pulumi_newrelic/one_dashboard_raw.py +14 -14
- pulumi_newrelic/outputs.py +482 -77
- pulumi_newrelic/plugins/_inputs.py +8 -8
- pulumi_newrelic/plugins/outputs.py +8 -8
- pulumi_newrelic/plugins/workload.py +83 -83
- pulumi_newrelic/provider.py +14 -9
- pulumi_newrelic/pulumi-plugin.json +2 -1
- pulumi_newrelic/service_level.py +85 -6
- pulumi_newrelic/synthetics/alert_condition.py +56 -28
- pulumi_newrelic/synthetics/broken_links_monitor.py +32 -14
- pulumi_newrelic/synthetics/cert_check_monitor.py +32 -14
- pulumi_newrelic/synthetics/get_private_location.py +11 -11
- pulumi_newrelic/synthetics/get_secure_credential.py +13 -5
- pulumi_newrelic/synthetics/monitor.py +18 -14
- pulumi_newrelic/synthetics/multi_location_alert_condition.py +77 -63
- pulumi_newrelic/synthetics/private_location.py +14 -14
- pulumi_newrelic/synthetics/script_monitor.py +18 -14
- pulumi_newrelic/synthetics/secure_credential.py +24 -31
- pulumi_newrelic/synthetics/step_monitor.py +32 -14
- pulumi_newrelic/workflow.py +14 -14
- {pulumi_newrelic-5.24.0a1715356536.dist-info → pulumi_newrelic-5.25.0.dist-info}/METADATA +1 -1
- pulumi_newrelic-5.25.0.dist-info/RECORD +89 -0
- pulumi_newrelic-5.24.0a1715356536.dist-info/RECORD +0 -89
- {pulumi_newrelic-5.24.0a1715356536.dist-info → pulumi_newrelic-5.25.0.dist-info}/WHEEL +0 -0
- {pulumi_newrelic-5.24.0a1715356536.dist-info → pulumi_newrelic-5.25.0.dist-info}/top_level.txt +0 -0
@@ -18,18 +18,18 @@ class AlertMutingRuleArgs:
|
|
18
18
|
def __init__(__self__, *,
|
19
19
|
condition: pulumi.Input['AlertMutingRuleConditionArgs'],
|
20
20
|
enabled: pulumi.Input[bool],
|
21
|
-
account_id: Optional[pulumi.Input[
|
21
|
+
account_id: Optional[pulumi.Input[str]] = None,
|
22
22
|
description: Optional[pulumi.Input[str]] = None,
|
23
23
|
name: Optional[pulumi.Input[str]] = None,
|
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. See Nested condition blocks below for details.
|
28
28
|
:param pulumi.Input[bool] enabled: Whether the MutingRule is enabled.
|
29
|
-
:param pulumi.Input[
|
29
|
+
:param pulumi.Input[str] 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: Specify a schedule for enabling the MutingRule. See Schedule below for details
|
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. See Nested condition blocks below for details.
|
50
50
|
"""
|
51
51
|
return pulumi.get(self, "condition")
|
52
52
|
|
@@ -68,14 +68,14 @@ class AlertMutingRuleArgs:
|
|
68
68
|
|
69
69
|
@property
|
70
70
|
@pulumi.getter(name="accountId")
|
71
|
-
def account_id(self) -> Optional[pulumi.Input[
|
71
|
+
def account_id(self) -> Optional[pulumi.Input[str]]:
|
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
|
|
77
77
|
@account_id.setter
|
78
|
-
def account_id(self, value: Optional[pulumi.Input[
|
78
|
+
def account_id(self, value: Optional[pulumi.Input[str]]):
|
79
79
|
pulumi.set(self, "account_id", value)
|
80
80
|
|
81
81
|
@property
|
@@ -106,7 +106,7 @@ class AlertMutingRuleArgs:
|
|
106
106
|
@pulumi.getter
|
107
107
|
def schedule(self) -> Optional[pulumi.Input['AlertMutingRuleScheduleArgs']]:
|
108
108
|
"""
|
109
|
-
|
109
|
+
Specify a schedule for enabling the MutingRule. See Schedule below for details
|
110
110
|
"""
|
111
111
|
return pulumi.get(self, "schedule")
|
112
112
|
|
@@ -118,7 +118,7 @@ class AlertMutingRuleArgs:
|
|
118
118
|
@pulumi.input_type
|
119
119
|
class _AlertMutingRuleState:
|
120
120
|
def __init__(__self__, *,
|
121
|
-
account_id: Optional[pulumi.Input[
|
121
|
+
account_id: Optional[pulumi.Input[str]] = None,
|
122
122
|
condition: Optional[pulumi.Input['AlertMutingRuleConditionArgs']] = None,
|
123
123
|
description: Optional[pulumi.Input[str]] = None,
|
124
124
|
enabled: Optional[pulumi.Input[bool]] = None,
|
@@ -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[
|
130
|
-
:param pulumi.Input['AlertMutingRuleConditionArgs'] condition: The condition that defines which incidents to target.
|
129
|
+
:param pulumi.Input[str] account_id: The account id of the MutingRule.
|
130
|
+
:param pulumi.Input['AlertMutingRuleConditionArgs'] condition: The condition that defines which incidents to target. See Nested condition blocks below for details.
|
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: Specify a schedule for enabling the MutingRule. See Schedule below for details
|
135
135
|
"""
|
136
136
|
if account_id is not None:
|
137
137
|
pulumi.set(__self__, "account_id", account_id)
|
@@ -148,21 +148,21 @@ class _AlertMutingRuleState:
|
|
148
148
|
|
149
149
|
@property
|
150
150
|
@pulumi.getter(name="accountId")
|
151
|
-
def account_id(self) -> Optional[pulumi.Input[
|
151
|
+
def account_id(self) -> Optional[pulumi.Input[str]]:
|
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
|
|
157
157
|
@account_id.setter
|
158
|
-
def account_id(self, value: Optional[pulumi.Input[
|
158
|
+
def account_id(self, value: Optional[pulumi.Input[str]]):
|
159
159
|
pulumi.set(self, "account_id", value)
|
160
160
|
|
161
161
|
@property
|
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. See Nested condition blocks below for details.
|
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
|
+
Specify a schedule for enabling the MutingRule. See Schedule below for details
|
214
214
|
"""
|
215
215
|
return pulumi.get(self, "schedule")
|
216
216
|
|
@@ -224,7 +224,7 @@ class AlertMutingRule(pulumi.CustomResource):
|
|
224
224
|
def __init__(__self__,
|
225
225
|
resource_name: str,
|
226
226
|
opts: Optional[pulumi.ResourceOptions] = None,
|
227
|
-
account_id: Optional[pulumi.Input[
|
227
|
+
account_id: Optional[pulumi.Input[str]] = None,
|
228
228
|
condition: Optional[pulumi.Input[pulumi.InputType['AlertMutingRuleConditionArgs']]] = None,
|
229
229
|
description: Optional[pulumi.Input[str]] = None,
|
230
230
|
enabled: Optional[pulumi.Input[bool]] = None,
|
@@ -281,12 +281,12 @@ class AlertMutingRule(pulumi.CustomResource):
|
|
281
281
|
|
282
282
|
:param str resource_name: The name of the resource.
|
283
283
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
284
|
-
:param pulumi.Input[
|
285
|
-
:param pulumi.Input[pulumi.InputType['AlertMutingRuleConditionArgs']] condition: The condition that defines which incidents to target.
|
284
|
+
:param pulumi.Input[str] account_id: The account id of the MutingRule.
|
285
|
+
:param pulumi.Input[pulumi.InputType['AlertMutingRuleConditionArgs']] condition: The condition that defines which incidents to target. See Nested condition blocks below for details.
|
286
286
|
:param pulumi.Input[str] description: The description of the MutingRule.
|
287
287
|
:param pulumi.Input[bool] enabled: Whether the MutingRule is enabled.
|
288
288
|
:param pulumi.Input[str] name: The name of the MutingRule.
|
289
|
-
:param pulumi.Input[pulumi.InputType['AlertMutingRuleScheduleArgs']] schedule:
|
289
|
+
:param pulumi.Input[pulumi.InputType['AlertMutingRuleScheduleArgs']] schedule: Specify a schedule for enabling the MutingRule. See Schedule below for details
|
290
290
|
"""
|
291
291
|
...
|
292
292
|
@overload
|
@@ -357,7 +357,7 @@ class AlertMutingRule(pulumi.CustomResource):
|
|
357
357
|
def _internal_init(__self__,
|
358
358
|
resource_name: str,
|
359
359
|
opts: Optional[pulumi.ResourceOptions] = None,
|
360
|
-
account_id: Optional[pulumi.Input[
|
360
|
+
account_id: Optional[pulumi.Input[str]] = None,
|
361
361
|
condition: Optional[pulumi.Input[pulumi.InputType['AlertMutingRuleConditionArgs']]] = None,
|
362
362
|
description: Optional[pulumi.Input[str]] = None,
|
363
363
|
enabled: Optional[pulumi.Input[bool]] = None,
|
@@ -392,7 +392,7 @@ class AlertMutingRule(pulumi.CustomResource):
|
|
392
392
|
def get(resource_name: str,
|
393
393
|
id: pulumi.Input[str],
|
394
394
|
opts: Optional[pulumi.ResourceOptions] = None,
|
395
|
-
account_id: Optional[pulumi.Input[
|
395
|
+
account_id: Optional[pulumi.Input[str]] = None,
|
396
396
|
condition: Optional[pulumi.Input[pulumi.InputType['AlertMutingRuleConditionArgs']]] = None,
|
397
397
|
description: Optional[pulumi.Input[str]] = None,
|
398
398
|
enabled: Optional[pulumi.Input[bool]] = None,
|
@@ -405,12 +405,12 @@ class AlertMutingRule(pulumi.CustomResource):
|
|
405
405
|
:param str resource_name: The unique name of the resulting resource.
|
406
406
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
407
407
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
408
|
-
:param pulumi.Input[
|
409
|
-
:param pulumi.Input[pulumi.InputType['AlertMutingRuleConditionArgs']] condition: The condition that defines which incidents to target.
|
408
|
+
:param pulumi.Input[str] account_id: The account id of the MutingRule.
|
409
|
+
:param pulumi.Input[pulumi.InputType['AlertMutingRuleConditionArgs']] condition: The condition that defines which incidents to target. See Nested condition blocks below for details.
|
410
410
|
:param pulumi.Input[str] description: The description of the MutingRule.
|
411
411
|
:param pulumi.Input[bool] enabled: Whether the MutingRule is enabled.
|
412
412
|
:param pulumi.Input[str] name: The name of the MutingRule.
|
413
|
-
:param pulumi.Input[pulumi.InputType['AlertMutingRuleScheduleArgs']] schedule:
|
413
|
+
:param pulumi.Input[pulumi.InputType['AlertMutingRuleScheduleArgs']] schedule: Specify a schedule for enabling the MutingRule. See Schedule below for details
|
414
414
|
"""
|
415
415
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
416
416
|
|
@@ -426,9 +426,9 @@ class AlertMutingRule(pulumi.CustomResource):
|
|
426
426
|
|
427
427
|
@property
|
428
428
|
@pulumi.getter(name="accountId")
|
429
|
-
def account_id(self) -> pulumi.Output[
|
429
|
+
def account_id(self) -> pulumi.Output[str]:
|
430
430
|
"""
|
431
|
-
The account id of the MutingRule
|
431
|
+
The account id of the MutingRule.
|
432
432
|
"""
|
433
433
|
return pulumi.get(self, "account_id")
|
434
434
|
|
@@ -436,7 +436,7 @@ class AlertMutingRule(pulumi.CustomResource):
|
|
436
436
|
@pulumi.getter
|
437
437
|
def condition(self) -> pulumi.Output['outputs.AlertMutingRuleCondition']:
|
438
438
|
"""
|
439
|
-
The condition that defines which incidents to target.
|
439
|
+
The condition that defines which incidents to target. See Nested condition blocks below for details.
|
440
440
|
"""
|
441
441
|
return pulumi.get(self, "condition")
|
442
442
|
|
@@ -468,7 +468,7 @@ class AlertMutingRule(pulumi.CustomResource):
|
|
468
468
|
@pulumi.getter
|
469
469
|
def schedule(self) -> pulumi.Output[Optional['outputs.AlertMutingRuleSchedule']]:
|
470
470
|
"""
|
471
|
-
|
471
|
+
Specify a schedule for enabling the MutingRule. See Schedule below for details
|
472
472
|
"""
|
473
473
|
return pulumi.get(self, "schedule")
|
474
474
|
|
pulumi_newrelic/alert_policy.py
CHANGED
@@ -14,15 +14,15 @@ __all__ = ['AlertPolicyArgs', 'AlertPolicy']
|
|
14
14
|
@pulumi.input_type
|
15
15
|
class AlertPolicyArgs:
|
16
16
|
def __init__(__self__, *,
|
17
|
-
account_id: Optional[pulumi.Input[
|
18
|
-
channel_ids: Optional[pulumi.Input[Sequence[pulumi.Input[
|
17
|
+
account_id: Optional[pulumi.Input[str]] = None,
|
18
|
+
channel_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
19
19
|
incident_preference: Optional[pulumi.Input[str]] = None,
|
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[
|
24
|
-
:param pulumi.Input[str]
|
25
|
-
|
23
|
+
:param pulumi.Input[str] account_id: The New Relic account ID to operate on. This allows the user to override the `account_id` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`.
|
24
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] channel_ids: An array of channel IDs (integers) to assign to the policy. Adding or removing channel IDs from this array will result in a new alert policy resource being created and the old one being destroyed. Also note that channel IDs _cannot_ be imported.
|
25
|
+
: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 is `PER_POLICY`.
|
26
26
|
:param pulumi.Input[str] name: The name of the policy.
|
27
27
|
"""
|
28
28
|
if account_id is not None:
|
@@ -39,34 +39,36 @@ class AlertPolicyArgs:
|
|
39
39
|
|
40
40
|
@property
|
41
41
|
@pulumi.getter(name="accountId")
|
42
|
-
def account_id(self) -> Optional[pulumi.Input[
|
42
|
+
def account_id(self) -> Optional[pulumi.Input[str]]:
|
43
43
|
"""
|
44
|
-
The New Relic account ID to operate on.
|
44
|
+
The New Relic account ID to operate on. This allows the user to override the `account_id` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`.
|
45
45
|
"""
|
46
46
|
return pulumi.get(self, "account_id")
|
47
47
|
|
48
48
|
@account_id.setter
|
49
|
-
def account_id(self, value: Optional[pulumi.Input[
|
49
|
+
def account_id(self, value: Optional[pulumi.Input[str]]):
|
50
50
|
pulumi.set(self, "account_id", value)
|
51
51
|
|
52
52
|
@property
|
53
53
|
@pulumi.getter(name="channelIds")
|
54
|
-
def channel_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[
|
54
|
+
def channel_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
55
|
+
"""
|
56
|
+
An array of channel IDs (integers) to assign to the policy. Adding or removing channel IDs from this array will result in a new alert policy resource being created and the old one being destroyed. Also note that channel IDs _cannot_ be imported.
|
57
|
+
"""
|
55
58
|
warnings.warn("""The `channel_ids` attribute is deprecated and will be removed in the next major release of the provider.""", DeprecationWarning)
|
56
59
|
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.""")
|
57
60
|
|
58
61
|
return pulumi.get(self, "channel_ids")
|
59
62
|
|
60
63
|
@channel_ids.setter
|
61
|
-
def channel_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[
|
64
|
+
def channel_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
62
65
|
pulumi.set(self, "channel_ids", value)
|
63
66
|
|
64
67
|
@property
|
65
68
|
@pulumi.getter(name="incidentPreference")
|
66
69
|
def incident_preference(self) -> Optional[pulumi.Input[str]]:
|
67
70
|
"""
|
68
|
-
The rollup strategy for the policy.
|
69
|
-
is PER_POLICY.
|
71
|
+
The rollup strategy for the policy. Options include: `PER_POLICY`, `PER_CONDITION`, or `PER_CONDITION_AND_TARGET`. The default is `PER_POLICY`.
|
70
72
|
"""
|
71
73
|
return pulumi.get(self, "incident_preference")
|
72
74
|
|
@@ -90,15 +92,15 @@ class AlertPolicyArgs:
|
|
90
92
|
@pulumi.input_type
|
91
93
|
class _AlertPolicyState:
|
92
94
|
def __init__(__self__, *,
|
93
|
-
account_id: Optional[pulumi.Input[
|
94
|
-
channel_ids: Optional[pulumi.Input[Sequence[pulumi.Input[
|
95
|
+
account_id: Optional[pulumi.Input[str]] = None,
|
96
|
+
channel_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
95
97
|
incident_preference: Optional[pulumi.Input[str]] = None,
|
96
98
|
name: Optional[pulumi.Input[str]] = None):
|
97
99
|
"""
|
98
100
|
Input properties used for looking up and filtering AlertPolicy resources.
|
99
|
-
:param pulumi.Input[
|
100
|
-
:param pulumi.Input[str]
|
101
|
-
|
101
|
+
:param pulumi.Input[str] account_id: The New Relic account ID to operate on. This allows the user to override the `account_id` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`.
|
102
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] channel_ids: An array of channel IDs (integers) to assign to the policy. Adding or removing channel IDs from this array will result in a new alert policy resource being created and the old one being destroyed. Also note that channel IDs _cannot_ be imported.
|
103
|
+
: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 is `PER_POLICY`.
|
102
104
|
:param pulumi.Input[str] name: The name of the policy.
|
103
105
|
"""
|
104
106
|
if account_id is not None:
|
@@ -115,34 +117,36 @@ class _AlertPolicyState:
|
|
115
117
|
|
116
118
|
@property
|
117
119
|
@pulumi.getter(name="accountId")
|
118
|
-
def account_id(self) -> Optional[pulumi.Input[
|
120
|
+
def account_id(self) -> Optional[pulumi.Input[str]]:
|
119
121
|
"""
|
120
|
-
The New Relic account ID to operate on.
|
122
|
+
The New Relic account ID to operate on. This allows the user to override the `account_id` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`.
|
121
123
|
"""
|
122
124
|
return pulumi.get(self, "account_id")
|
123
125
|
|
124
126
|
@account_id.setter
|
125
|
-
def account_id(self, value: Optional[pulumi.Input[
|
127
|
+
def account_id(self, value: Optional[pulumi.Input[str]]):
|
126
128
|
pulumi.set(self, "account_id", value)
|
127
129
|
|
128
130
|
@property
|
129
131
|
@pulumi.getter(name="channelIds")
|
130
|
-
def channel_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[
|
132
|
+
def channel_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
133
|
+
"""
|
134
|
+
An array of channel IDs (integers) to assign to the policy. Adding or removing channel IDs from this array will result in a new alert policy resource being created and the old one being destroyed. Also note that channel IDs _cannot_ be imported.
|
135
|
+
"""
|
131
136
|
warnings.warn("""The `channel_ids` attribute is deprecated and will be removed in the next major release of the provider.""", DeprecationWarning)
|
132
137
|
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.""")
|
133
138
|
|
134
139
|
return pulumi.get(self, "channel_ids")
|
135
140
|
|
136
141
|
@channel_ids.setter
|
137
|
-
def channel_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[
|
142
|
+
def channel_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
138
143
|
pulumi.set(self, "channel_ids", value)
|
139
144
|
|
140
145
|
@property
|
141
146
|
@pulumi.getter(name="incidentPreference")
|
142
147
|
def incident_preference(self) -> Optional[pulumi.Input[str]]:
|
143
148
|
"""
|
144
|
-
The rollup strategy for the policy.
|
145
|
-
is PER_POLICY.
|
149
|
+
The rollup strategy for the policy. Options include: `PER_POLICY`, `PER_CONDITION`, or `PER_CONDITION_AND_TARGET`. The default is `PER_POLICY`.
|
146
150
|
"""
|
147
151
|
return pulumi.get(self, "incident_preference")
|
148
152
|
|
@@ -168,8 +172,8 @@ class AlertPolicy(pulumi.CustomResource):
|
|
168
172
|
def __init__(__self__,
|
169
173
|
resource_name: str,
|
170
174
|
opts: Optional[pulumi.ResourceOptions] = None,
|
171
|
-
account_id: Optional[pulumi.Input[
|
172
|
-
channel_ids: Optional[pulumi.Input[Sequence[pulumi.Input[
|
175
|
+
account_id: Optional[pulumi.Input[str]] = None,
|
176
|
+
channel_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
173
177
|
incident_preference: Optional[pulumi.Input[str]] = None,
|
174
178
|
name: Optional[pulumi.Input[str]] = None,
|
175
179
|
__props__=None):
|
@@ -266,9 +270,9 @@ class AlertPolicy(pulumi.CustomResource):
|
|
266
270
|
|
267
271
|
:param str resource_name: The name of the resource.
|
268
272
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
269
|
-
:param pulumi.Input[
|
270
|
-
:param pulumi.Input[str]
|
271
|
-
|
273
|
+
:param pulumi.Input[str] account_id: The New Relic account ID to operate on. This allows the user to override the `account_id` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`.
|
274
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] channel_ids: An array of channel IDs (integers) to assign to the policy. Adding or removing channel IDs from this array will result in a new alert policy resource being created and the old one being destroyed. Also note that channel IDs _cannot_ be imported.
|
275
|
+
: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 is `PER_POLICY`.
|
272
276
|
:param pulumi.Input[str] name: The name of the policy.
|
273
277
|
"""
|
274
278
|
...
|
@@ -383,8 +387,8 @@ class AlertPolicy(pulumi.CustomResource):
|
|
383
387
|
def _internal_init(__self__,
|
384
388
|
resource_name: str,
|
385
389
|
opts: Optional[pulumi.ResourceOptions] = None,
|
386
|
-
account_id: Optional[pulumi.Input[
|
387
|
-
channel_ids: Optional[pulumi.Input[Sequence[pulumi.Input[
|
390
|
+
account_id: Optional[pulumi.Input[str]] = None,
|
391
|
+
channel_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
388
392
|
incident_preference: Optional[pulumi.Input[str]] = None,
|
389
393
|
name: Optional[pulumi.Input[str]] = None,
|
390
394
|
__props__=None):
|
@@ -410,8 +414,8 @@ class AlertPolicy(pulumi.CustomResource):
|
|
410
414
|
def get(resource_name: str,
|
411
415
|
id: pulumi.Input[str],
|
412
416
|
opts: Optional[pulumi.ResourceOptions] = None,
|
413
|
-
account_id: Optional[pulumi.Input[
|
414
|
-
channel_ids: Optional[pulumi.Input[Sequence[pulumi.Input[
|
417
|
+
account_id: Optional[pulumi.Input[str]] = None,
|
418
|
+
channel_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
415
419
|
incident_preference: Optional[pulumi.Input[str]] = None,
|
416
420
|
name: Optional[pulumi.Input[str]] = None) -> 'AlertPolicy':
|
417
421
|
"""
|
@@ -421,9 +425,9 @@ class AlertPolicy(pulumi.CustomResource):
|
|
421
425
|
:param str resource_name: The unique name of the resulting resource.
|
422
426
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
423
427
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
424
|
-
:param pulumi.Input[
|
425
|
-
:param pulumi.Input[str]
|
426
|
-
|
428
|
+
:param pulumi.Input[str] account_id: The New Relic account ID to operate on. This allows the user to override the `account_id` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`.
|
429
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] channel_ids: An array of channel IDs (integers) to assign to the policy. Adding or removing channel IDs from this array will result in a new alert policy resource being created and the old one being destroyed. Also note that channel IDs _cannot_ be imported.
|
430
|
+
: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 is `PER_POLICY`.
|
427
431
|
:param pulumi.Input[str] name: The name of the policy.
|
428
432
|
"""
|
429
433
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
@@ -438,15 +442,18 @@ class AlertPolicy(pulumi.CustomResource):
|
|
438
442
|
|
439
443
|
@property
|
440
444
|
@pulumi.getter(name="accountId")
|
441
|
-
def account_id(self) -> pulumi.Output[
|
445
|
+
def account_id(self) -> pulumi.Output[str]:
|
442
446
|
"""
|
443
|
-
The New Relic account ID to operate on.
|
447
|
+
The New Relic account ID to operate on. This allows the user to override the `account_id` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`.
|
444
448
|
"""
|
445
449
|
return pulumi.get(self, "account_id")
|
446
450
|
|
447
451
|
@property
|
448
452
|
@pulumi.getter(name="channelIds")
|
449
|
-
def channel_ids(self) -> pulumi.Output[Optional[Sequence[
|
453
|
+
def channel_ids(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
454
|
+
"""
|
455
|
+
An array of channel IDs (integers) to assign to the policy. Adding or removing channel IDs from this array will result in a new alert policy resource being created and the old one being destroyed. Also note that channel IDs _cannot_ be imported.
|
456
|
+
"""
|
450
457
|
warnings.warn("""The `channel_ids` attribute is deprecated and will be removed in the next major release of the provider.""", DeprecationWarning)
|
451
458
|
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.""")
|
452
459
|
|
@@ -456,8 +463,7 @@ class AlertPolicy(pulumi.CustomResource):
|
|
456
463
|
@pulumi.getter(name="incidentPreference")
|
457
464
|
def incident_preference(self) -> pulumi.Output[Optional[str]]:
|
458
465
|
"""
|
459
|
-
The rollup strategy for the policy.
|
460
|
-
is PER_POLICY.
|
466
|
+
The rollup strategy for the policy. Options include: `PER_POLICY`, `PER_CONDITION`, or `PER_CONDITION_AND_TARGET`. The default is `PER_POLICY`.
|
461
467
|
"""
|
462
468
|
return pulumi.get(self, "incident_preference")
|
463
469
|
|