pulumi-newrelic 5.45.0a1743488085__py3-none-any.whl → 5.45.0a1744183332__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/__init__.py +1 -0
- pulumi_newrelic/_inputs.py +2961 -2960
- pulumi_newrelic/account_management.py +29 -28
- pulumi_newrelic/alert_channel.py +43 -42
- pulumi_newrelic/alert_condition.py +176 -175
- pulumi_newrelic/alert_muting_rule.py +71 -70
- pulumi_newrelic/alert_policy.py +57 -56
- pulumi_newrelic/alert_policy_channel.py +43 -42
- pulumi_newrelic/api_access_key.py +92 -91
- pulumi_newrelic/browser_application.py +92 -91
- pulumi_newrelic/cloud/__init__.py +1 -0
- pulumi_newrelic/cloud/_inputs.py +1765 -1764
- pulumi_newrelic/cloud/aws_govcloud_integrations.py +29 -28
- pulumi_newrelic/cloud/aws_govcloud_link_account.py +57 -56
- pulumi_newrelic/cloud/aws_integrations.py +29 -28
- pulumi_newrelic/cloud/aws_link_account.py +57 -56
- pulumi_newrelic/cloud/azure_integrations.py +29 -28
- pulumi_newrelic/cloud/azure_link_account.py +85 -84
- pulumi_newrelic/cloud/gcp_integrations.py +29 -28
- pulumi_newrelic/cloud/gcp_link_account.py +45 -44
- pulumi_newrelic/cloud/outputs.py +1057 -1056
- pulumi_newrelic/config/__init__.py +1 -0
- pulumi_newrelic/config/__init__.pyi +1 -0
- pulumi_newrelic/config/vars.py +1 -0
- pulumi_newrelic/data_partition_rule.py +92 -91
- pulumi_newrelic/entity_tags.py +15 -14
- pulumi_newrelic/events_to_metrics_rule.py +78 -77
- pulumi_newrelic/get_account.py +17 -16
- pulumi_newrelic/get_alert_channel.py +14 -13
- pulumi_newrelic/get_alert_policy.py +19 -18
- pulumi_newrelic/get_application.py +9 -8
- pulumi_newrelic/get_authentication_domain.py +7 -6
- pulumi_newrelic/get_cloud_account.py +17 -16
- pulumi_newrelic/get_entity.py +40 -39
- pulumi_newrelic/get_group.py +13 -12
- pulumi_newrelic/get_key_transaction.py +19 -18
- pulumi_newrelic/get_notification_destination.py +20 -19
- pulumi_newrelic/get_obfuscation_expression.py +12 -11
- pulumi_newrelic/get_service_level_alert_helper.py +41 -40
- pulumi_newrelic/get_test_grok_pattern.py +17 -16
- pulumi_newrelic/get_user.py +17 -16
- pulumi_newrelic/group.py +43 -42
- pulumi_newrelic/infra_alert_condition.py +204 -203
- pulumi_newrelic/insights/__init__.py +1 -0
- pulumi_newrelic/insights/_inputs.py +26 -25
- pulumi_newrelic/insights/event.py +1 -0
- pulumi_newrelic/insights/outputs.py +16 -15
- pulumi_newrelic/key_transaction.py +85 -84
- pulumi_newrelic/log_parsing_rule.py +120 -119
- pulumi_newrelic/monitor_downtime.py +113 -112
- pulumi_newrelic/notification_channel.py +92 -91
- pulumi_newrelic/notification_destination.py +78 -77
- pulumi_newrelic/nrql_alert_condition.py +330 -329
- pulumi_newrelic/nrql_drop_rule.py +64 -63
- pulumi_newrelic/obfuscation_expression.py +57 -56
- pulumi_newrelic/obfuscation_rule.py +71 -70
- pulumi_newrelic/one_dashboard.py +71 -70
- pulumi_newrelic/one_dashboard_json.py +50 -49
- pulumi_newrelic/one_dashboard_raw.py +71 -70
- pulumi_newrelic/outputs.py +1831 -1830
- pulumi_newrelic/plugins/__init__.py +1 -0
- pulumi_newrelic/plugins/_inputs.py +126 -125
- pulumi_newrelic/plugins/application_settings.py +132 -131
- pulumi_newrelic/plugins/outputs.py +76 -75
- pulumi_newrelic/plugins/workload.py +99 -98
- pulumi_newrelic/provider.py +80 -79
- pulumi_newrelic/pulumi-plugin.json +1 -1
- pulumi_newrelic/service_level.py +57 -56
- pulumi_newrelic/synthetics/__init__.py +1 -0
- pulumi_newrelic/synthetics/_inputs.py +106 -105
- pulumi_newrelic/synthetics/alert_condition.py +78 -77
- pulumi_newrelic/synthetics/broken_links_monitor.py +151 -150
- pulumi_newrelic/synthetics/cert_check_monitor.py +158 -157
- pulumi_newrelic/synthetics/get_private_location.py +17 -16
- pulumi_newrelic/synthetics/get_secure_credential.py +14 -13
- pulumi_newrelic/synthetics/monitor.py +298 -297
- pulumi_newrelic/synthetics/multi_location_alert_condition.py +92 -91
- pulumi_newrelic/synthetics/outputs.py +64 -63
- pulumi_newrelic/synthetics/private_location.py +85 -84
- pulumi_newrelic/synthetics/script_monitor.py +235 -234
- pulumi_newrelic/synthetics/secure_credential.py +71 -70
- pulumi_newrelic/synthetics/step_monitor.py +165 -164
- pulumi_newrelic/user.py +57 -56
- pulumi_newrelic/workflow.py +106 -105
- {pulumi_newrelic-5.45.0a1743488085.dist-info → pulumi_newrelic-5.45.0a1744183332.dist-info}/METADATA +1 -1
- pulumi_newrelic-5.45.0a1744183332.dist-info/RECORD +90 -0
- pulumi_newrelic-5.45.0a1743488085.dist-info/RECORD +0 -90
- {pulumi_newrelic-5.45.0a1743488085.dist-info → pulumi_newrelic-5.45.0a1744183332.dist-info}/WHEEL +0 -0
- {pulumi_newrelic-5.45.0a1743488085.dist-info → pulumi_newrelic-5.45.0a1744183332.dist-info}/top_level.txt +0 -0
@@ -2,6 +2,7 @@
|
|
2
2
|
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
4
|
|
5
|
+
import builtins
|
5
6
|
import copy
|
6
7
|
import warnings
|
7
8
|
import sys
|
@@ -22,20 +23,20 @@ __all__ = ['AlertMutingRuleArgs', 'AlertMutingRule']
|
|
22
23
|
class AlertMutingRuleArgs:
|
23
24
|
def __init__(__self__, *,
|
24
25
|
condition: pulumi.Input['AlertMutingRuleConditionArgs'],
|
25
|
-
enabled: pulumi.Input[bool],
|
26
|
-
account_id: Optional[pulumi.Input[str]] = None,
|
27
|
-
action_on_muting_rule_window_ended: Optional[pulumi.Input[str]] = None,
|
28
|
-
description: Optional[pulumi.Input[str]] = None,
|
29
|
-
name: Optional[pulumi.Input[str]] = None,
|
26
|
+
enabled: pulumi.Input[builtins.bool],
|
27
|
+
account_id: Optional[pulumi.Input[builtins.str]] = None,
|
28
|
+
action_on_muting_rule_window_ended: Optional[pulumi.Input[builtins.str]] = None,
|
29
|
+
description: Optional[pulumi.Input[builtins.str]] = None,
|
30
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
30
31
|
schedule: Optional[pulumi.Input['AlertMutingRuleScheduleArgs']] = None):
|
31
32
|
"""
|
32
33
|
The set of arguments for constructing a AlertMutingRule resource.
|
33
34
|
:param pulumi.Input['AlertMutingRuleConditionArgs'] condition: The condition that defines which incidents to target. See Nested condition blocks below for details.
|
34
|
-
:param pulumi.Input[bool] enabled: Whether the MutingRule is enabled.
|
35
|
-
:param pulumi.Input[str] account_id: The account id of the MutingRule.
|
36
|
-
:param pulumi.Input[str] action_on_muting_rule_window_ended: The action when the muting rule window is ended or disabled. Valid values are `CLOSE_ISSUES_ON_INACTIVE`, `DO_NOTHING`.
|
37
|
-
:param pulumi.Input[str] description: The description of the MutingRule.
|
38
|
-
:param pulumi.Input[str] name: The name of the MutingRule.
|
35
|
+
:param pulumi.Input[builtins.bool] enabled: Whether the MutingRule is enabled.
|
36
|
+
:param pulumi.Input[builtins.str] account_id: The account id of the MutingRule.
|
37
|
+
:param pulumi.Input[builtins.str] action_on_muting_rule_window_ended: The action when the muting rule window is ended or disabled. Valid values are `CLOSE_ISSUES_ON_INACTIVE`, `DO_NOTHING`.
|
38
|
+
:param pulumi.Input[builtins.str] description: The description of the MutingRule.
|
39
|
+
:param pulumi.Input[builtins.str] name: The name of the MutingRule.
|
39
40
|
:param pulumi.Input['AlertMutingRuleScheduleArgs'] schedule: Specify a schedule for enabling the MutingRule. See Schedule below for details
|
40
41
|
"""
|
41
42
|
pulumi.set(__self__, "condition", condition)
|
@@ -65,62 +66,62 @@ class AlertMutingRuleArgs:
|
|
65
66
|
|
66
67
|
@property
|
67
68
|
@pulumi.getter
|
68
|
-
def enabled(self) -> pulumi.Input[bool]:
|
69
|
+
def enabled(self) -> pulumi.Input[builtins.bool]:
|
69
70
|
"""
|
70
71
|
Whether the MutingRule is enabled.
|
71
72
|
"""
|
72
73
|
return pulumi.get(self, "enabled")
|
73
74
|
|
74
75
|
@enabled.setter
|
75
|
-
def enabled(self, value: pulumi.Input[bool]):
|
76
|
+
def enabled(self, value: pulumi.Input[builtins.bool]):
|
76
77
|
pulumi.set(self, "enabled", value)
|
77
78
|
|
78
79
|
@property
|
79
80
|
@pulumi.getter(name="accountId")
|
80
|
-
def account_id(self) -> Optional[pulumi.Input[str]]:
|
81
|
+
def account_id(self) -> Optional[pulumi.Input[builtins.str]]:
|
81
82
|
"""
|
82
83
|
The account id of the MutingRule.
|
83
84
|
"""
|
84
85
|
return pulumi.get(self, "account_id")
|
85
86
|
|
86
87
|
@account_id.setter
|
87
|
-
def account_id(self, value: Optional[pulumi.Input[str]]):
|
88
|
+
def account_id(self, value: Optional[pulumi.Input[builtins.str]]):
|
88
89
|
pulumi.set(self, "account_id", value)
|
89
90
|
|
90
91
|
@property
|
91
92
|
@pulumi.getter(name="actionOnMutingRuleWindowEnded")
|
92
|
-
def action_on_muting_rule_window_ended(self) -> Optional[pulumi.Input[str]]:
|
93
|
+
def action_on_muting_rule_window_ended(self) -> Optional[pulumi.Input[builtins.str]]:
|
93
94
|
"""
|
94
95
|
The action when the muting rule window is ended or disabled. Valid values are `CLOSE_ISSUES_ON_INACTIVE`, `DO_NOTHING`.
|
95
96
|
"""
|
96
97
|
return pulumi.get(self, "action_on_muting_rule_window_ended")
|
97
98
|
|
98
99
|
@action_on_muting_rule_window_ended.setter
|
99
|
-
def action_on_muting_rule_window_ended(self, value: Optional[pulumi.Input[str]]):
|
100
|
+
def action_on_muting_rule_window_ended(self, value: Optional[pulumi.Input[builtins.str]]):
|
100
101
|
pulumi.set(self, "action_on_muting_rule_window_ended", value)
|
101
102
|
|
102
103
|
@property
|
103
104
|
@pulumi.getter
|
104
|
-
def description(self) -> Optional[pulumi.Input[str]]:
|
105
|
+
def description(self) -> Optional[pulumi.Input[builtins.str]]:
|
105
106
|
"""
|
106
107
|
The description of the MutingRule.
|
107
108
|
"""
|
108
109
|
return pulumi.get(self, "description")
|
109
110
|
|
110
111
|
@description.setter
|
111
|
-
def description(self, value: Optional[pulumi.Input[str]]):
|
112
|
+
def description(self, value: Optional[pulumi.Input[builtins.str]]):
|
112
113
|
pulumi.set(self, "description", value)
|
113
114
|
|
114
115
|
@property
|
115
116
|
@pulumi.getter
|
116
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
117
|
+
def name(self) -> Optional[pulumi.Input[builtins.str]]:
|
117
118
|
"""
|
118
119
|
The name of the MutingRule.
|
119
120
|
"""
|
120
121
|
return pulumi.get(self, "name")
|
121
122
|
|
122
123
|
@name.setter
|
123
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
124
|
+
def name(self, value: Optional[pulumi.Input[builtins.str]]):
|
124
125
|
pulumi.set(self, "name", value)
|
125
126
|
|
126
127
|
@property
|
@@ -139,21 +140,21 @@ class AlertMutingRuleArgs:
|
|
139
140
|
@pulumi.input_type
|
140
141
|
class _AlertMutingRuleState:
|
141
142
|
def __init__(__self__, *,
|
142
|
-
account_id: Optional[pulumi.Input[str]] = None,
|
143
|
-
action_on_muting_rule_window_ended: Optional[pulumi.Input[str]] = None,
|
143
|
+
account_id: Optional[pulumi.Input[builtins.str]] = None,
|
144
|
+
action_on_muting_rule_window_ended: Optional[pulumi.Input[builtins.str]] = None,
|
144
145
|
condition: Optional[pulumi.Input['AlertMutingRuleConditionArgs']] = None,
|
145
|
-
description: Optional[pulumi.Input[str]] = None,
|
146
|
-
enabled: Optional[pulumi.Input[bool]] = None,
|
147
|
-
name: Optional[pulumi.Input[str]] = None,
|
146
|
+
description: Optional[pulumi.Input[builtins.str]] = None,
|
147
|
+
enabled: Optional[pulumi.Input[builtins.bool]] = None,
|
148
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
148
149
|
schedule: Optional[pulumi.Input['AlertMutingRuleScheduleArgs']] = None):
|
149
150
|
"""
|
150
151
|
Input properties used for looking up and filtering AlertMutingRule resources.
|
151
|
-
:param pulumi.Input[str] account_id: The account id of the MutingRule.
|
152
|
-
:param pulumi.Input[str] action_on_muting_rule_window_ended: The action when the muting rule window is ended or disabled. Valid values are `CLOSE_ISSUES_ON_INACTIVE`, `DO_NOTHING`.
|
152
|
+
:param pulumi.Input[builtins.str] account_id: The account id of the MutingRule.
|
153
|
+
:param pulumi.Input[builtins.str] action_on_muting_rule_window_ended: The action when the muting rule window is ended or disabled. Valid values are `CLOSE_ISSUES_ON_INACTIVE`, `DO_NOTHING`.
|
153
154
|
:param pulumi.Input['AlertMutingRuleConditionArgs'] condition: The condition that defines which incidents to target. See Nested condition blocks below for details.
|
154
|
-
:param pulumi.Input[str] description: The description of the MutingRule.
|
155
|
-
:param pulumi.Input[bool] enabled: Whether the MutingRule is enabled.
|
156
|
-
:param pulumi.Input[str] name: The name of the MutingRule.
|
155
|
+
:param pulumi.Input[builtins.str] description: The description of the MutingRule.
|
156
|
+
:param pulumi.Input[builtins.bool] enabled: Whether the MutingRule is enabled.
|
157
|
+
:param pulumi.Input[builtins.str] name: The name of the MutingRule.
|
157
158
|
:param pulumi.Input['AlertMutingRuleScheduleArgs'] schedule: Specify a schedule for enabling the MutingRule. See Schedule below for details
|
158
159
|
"""
|
159
160
|
if account_id is not None:
|
@@ -173,26 +174,26 @@ class _AlertMutingRuleState:
|
|
173
174
|
|
174
175
|
@property
|
175
176
|
@pulumi.getter(name="accountId")
|
176
|
-
def account_id(self) -> Optional[pulumi.Input[str]]:
|
177
|
+
def account_id(self) -> Optional[pulumi.Input[builtins.str]]:
|
177
178
|
"""
|
178
179
|
The account id of the MutingRule.
|
179
180
|
"""
|
180
181
|
return pulumi.get(self, "account_id")
|
181
182
|
|
182
183
|
@account_id.setter
|
183
|
-
def account_id(self, value: Optional[pulumi.Input[str]]):
|
184
|
+
def account_id(self, value: Optional[pulumi.Input[builtins.str]]):
|
184
185
|
pulumi.set(self, "account_id", value)
|
185
186
|
|
186
187
|
@property
|
187
188
|
@pulumi.getter(name="actionOnMutingRuleWindowEnded")
|
188
|
-
def action_on_muting_rule_window_ended(self) -> Optional[pulumi.Input[str]]:
|
189
|
+
def action_on_muting_rule_window_ended(self) -> Optional[pulumi.Input[builtins.str]]:
|
189
190
|
"""
|
190
191
|
The action when the muting rule window is ended or disabled. Valid values are `CLOSE_ISSUES_ON_INACTIVE`, `DO_NOTHING`.
|
191
192
|
"""
|
192
193
|
return pulumi.get(self, "action_on_muting_rule_window_ended")
|
193
194
|
|
194
195
|
@action_on_muting_rule_window_ended.setter
|
195
|
-
def action_on_muting_rule_window_ended(self, value: Optional[pulumi.Input[str]]):
|
196
|
+
def action_on_muting_rule_window_ended(self, value: Optional[pulumi.Input[builtins.str]]):
|
196
197
|
pulumi.set(self, "action_on_muting_rule_window_ended", value)
|
197
198
|
|
198
199
|
@property
|
@@ -209,38 +210,38 @@ class _AlertMutingRuleState:
|
|
209
210
|
|
210
211
|
@property
|
211
212
|
@pulumi.getter
|
212
|
-
def description(self) -> Optional[pulumi.Input[str]]:
|
213
|
+
def description(self) -> Optional[pulumi.Input[builtins.str]]:
|
213
214
|
"""
|
214
215
|
The description of the MutingRule.
|
215
216
|
"""
|
216
217
|
return pulumi.get(self, "description")
|
217
218
|
|
218
219
|
@description.setter
|
219
|
-
def description(self, value: Optional[pulumi.Input[str]]):
|
220
|
+
def description(self, value: Optional[pulumi.Input[builtins.str]]):
|
220
221
|
pulumi.set(self, "description", value)
|
221
222
|
|
222
223
|
@property
|
223
224
|
@pulumi.getter
|
224
|
-
def enabled(self) -> Optional[pulumi.Input[bool]]:
|
225
|
+
def enabled(self) -> Optional[pulumi.Input[builtins.bool]]:
|
225
226
|
"""
|
226
227
|
Whether the MutingRule is enabled.
|
227
228
|
"""
|
228
229
|
return pulumi.get(self, "enabled")
|
229
230
|
|
230
231
|
@enabled.setter
|
231
|
-
def enabled(self, value: Optional[pulumi.Input[bool]]):
|
232
|
+
def enabled(self, value: Optional[pulumi.Input[builtins.bool]]):
|
232
233
|
pulumi.set(self, "enabled", value)
|
233
234
|
|
234
235
|
@property
|
235
236
|
@pulumi.getter
|
236
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
237
|
+
def name(self) -> Optional[pulumi.Input[builtins.str]]:
|
237
238
|
"""
|
238
239
|
The name of the MutingRule.
|
239
240
|
"""
|
240
241
|
return pulumi.get(self, "name")
|
241
242
|
|
242
243
|
@name.setter
|
243
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
244
|
+
def name(self, value: Optional[pulumi.Input[builtins.str]]):
|
244
245
|
pulumi.set(self, "name", value)
|
245
246
|
|
246
247
|
@property
|
@@ -261,12 +262,12 @@ class AlertMutingRule(pulumi.CustomResource):
|
|
261
262
|
def __init__(__self__,
|
262
263
|
resource_name: str,
|
263
264
|
opts: Optional[pulumi.ResourceOptions] = None,
|
264
|
-
account_id: Optional[pulumi.Input[str]] = None,
|
265
|
-
action_on_muting_rule_window_ended: Optional[pulumi.Input[str]] = None,
|
265
|
+
account_id: Optional[pulumi.Input[builtins.str]] = None,
|
266
|
+
action_on_muting_rule_window_ended: Optional[pulumi.Input[builtins.str]] = None,
|
266
267
|
condition: Optional[pulumi.Input[Union['AlertMutingRuleConditionArgs', 'AlertMutingRuleConditionArgsDict']]] = None,
|
267
|
-
description: Optional[pulumi.Input[str]] = None,
|
268
|
-
enabled: Optional[pulumi.Input[bool]] = None,
|
269
|
-
name: Optional[pulumi.Input[str]] = None,
|
268
|
+
description: Optional[pulumi.Input[builtins.str]] = None,
|
269
|
+
enabled: Optional[pulumi.Input[builtins.bool]] = None,
|
270
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
270
271
|
schedule: Optional[pulumi.Input[Union['AlertMutingRuleScheduleArgs', 'AlertMutingRuleScheduleArgsDict']]] = None,
|
271
272
|
__props__=None):
|
272
273
|
"""
|
@@ -320,12 +321,12 @@ class AlertMutingRule(pulumi.CustomResource):
|
|
320
321
|
|
321
322
|
:param str resource_name: The name of the resource.
|
322
323
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
323
|
-
:param pulumi.Input[str] account_id: The account id of the MutingRule.
|
324
|
-
:param pulumi.Input[str] action_on_muting_rule_window_ended: The action when the muting rule window is ended or disabled. Valid values are `CLOSE_ISSUES_ON_INACTIVE`, `DO_NOTHING`.
|
324
|
+
:param pulumi.Input[builtins.str] account_id: The account id of the MutingRule.
|
325
|
+
:param pulumi.Input[builtins.str] action_on_muting_rule_window_ended: The action when the muting rule window is ended or disabled. Valid values are `CLOSE_ISSUES_ON_INACTIVE`, `DO_NOTHING`.
|
325
326
|
:param pulumi.Input[Union['AlertMutingRuleConditionArgs', 'AlertMutingRuleConditionArgsDict']] condition: The condition that defines which incidents to target. See Nested condition blocks below for details.
|
326
|
-
:param pulumi.Input[str] description: The description of the MutingRule.
|
327
|
-
:param pulumi.Input[bool] enabled: Whether the MutingRule is enabled.
|
328
|
-
:param pulumi.Input[str] name: The name of the MutingRule.
|
327
|
+
:param pulumi.Input[builtins.str] description: The description of the MutingRule.
|
328
|
+
:param pulumi.Input[builtins.bool] enabled: Whether the MutingRule is enabled.
|
329
|
+
:param pulumi.Input[builtins.str] name: The name of the MutingRule.
|
329
330
|
:param pulumi.Input[Union['AlertMutingRuleScheduleArgs', 'AlertMutingRuleScheduleArgsDict']] schedule: Specify a schedule for enabling the MutingRule. See Schedule below for details
|
330
331
|
"""
|
331
332
|
...
|
@@ -398,12 +399,12 @@ class AlertMutingRule(pulumi.CustomResource):
|
|
398
399
|
def _internal_init(__self__,
|
399
400
|
resource_name: str,
|
400
401
|
opts: Optional[pulumi.ResourceOptions] = None,
|
401
|
-
account_id: Optional[pulumi.Input[str]] = None,
|
402
|
-
action_on_muting_rule_window_ended: Optional[pulumi.Input[str]] = None,
|
402
|
+
account_id: Optional[pulumi.Input[builtins.str]] = None,
|
403
|
+
action_on_muting_rule_window_ended: Optional[pulumi.Input[builtins.str]] = None,
|
403
404
|
condition: Optional[pulumi.Input[Union['AlertMutingRuleConditionArgs', 'AlertMutingRuleConditionArgsDict']]] = None,
|
404
|
-
description: Optional[pulumi.Input[str]] = None,
|
405
|
-
enabled: Optional[pulumi.Input[bool]] = None,
|
406
|
-
name: Optional[pulumi.Input[str]] = None,
|
405
|
+
description: Optional[pulumi.Input[builtins.str]] = None,
|
406
|
+
enabled: Optional[pulumi.Input[builtins.bool]] = None,
|
407
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
407
408
|
schedule: Optional[pulumi.Input[Union['AlertMutingRuleScheduleArgs', 'AlertMutingRuleScheduleArgsDict']]] = None,
|
408
409
|
__props__=None):
|
409
410
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
@@ -435,12 +436,12 @@ class AlertMutingRule(pulumi.CustomResource):
|
|
435
436
|
def get(resource_name: str,
|
436
437
|
id: pulumi.Input[str],
|
437
438
|
opts: Optional[pulumi.ResourceOptions] = None,
|
438
|
-
account_id: Optional[pulumi.Input[str]] = None,
|
439
|
-
action_on_muting_rule_window_ended: Optional[pulumi.Input[str]] = None,
|
439
|
+
account_id: Optional[pulumi.Input[builtins.str]] = None,
|
440
|
+
action_on_muting_rule_window_ended: Optional[pulumi.Input[builtins.str]] = None,
|
440
441
|
condition: Optional[pulumi.Input[Union['AlertMutingRuleConditionArgs', 'AlertMutingRuleConditionArgsDict']]] = None,
|
441
|
-
description: Optional[pulumi.Input[str]] = None,
|
442
|
-
enabled: Optional[pulumi.Input[bool]] = None,
|
443
|
-
name: Optional[pulumi.Input[str]] = None,
|
442
|
+
description: Optional[pulumi.Input[builtins.str]] = None,
|
443
|
+
enabled: Optional[pulumi.Input[builtins.bool]] = None,
|
444
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
444
445
|
schedule: Optional[pulumi.Input[Union['AlertMutingRuleScheduleArgs', 'AlertMutingRuleScheduleArgsDict']]] = None) -> 'AlertMutingRule':
|
445
446
|
"""
|
446
447
|
Get an existing AlertMutingRule resource's state with the given name, id, and optional extra
|
@@ -449,12 +450,12 @@ class AlertMutingRule(pulumi.CustomResource):
|
|
449
450
|
:param str resource_name: The unique name of the resulting resource.
|
450
451
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
451
452
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
452
|
-
:param pulumi.Input[str] account_id: The account id of the MutingRule.
|
453
|
-
:param pulumi.Input[str] action_on_muting_rule_window_ended: The action when the muting rule window is ended or disabled. Valid values are `CLOSE_ISSUES_ON_INACTIVE`, `DO_NOTHING`.
|
453
|
+
:param pulumi.Input[builtins.str] account_id: The account id of the MutingRule.
|
454
|
+
:param pulumi.Input[builtins.str] action_on_muting_rule_window_ended: The action when the muting rule window is ended or disabled. Valid values are `CLOSE_ISSUES_ON_INACTIVE`, `DO_NOTHING`.
|
454
455
|
:param pulumi.Input[Union['AlertMutingRuleConditionArgs', 'AlertMutingRuleConditionArgsDict']] condition: The condition that defines which incidents to target. See Nested condition blocks below for details.
|
455
|
-
:param pulumi.Input[str] description: The description of the MutingRule.
|
456
|
-
:param pulumi.Input[bool] enabled: Whether the MutingRule is enabled.
|
457
|
-
:param pulumi.Input[str] name: The name of the MutingRule.
|
456
|
+
:param pulumi.Input[builtins.str] description: The description of the MutingRule.
|
457
|
+
:param pulumi.Input[builtins.bool] enabled: Whether the MutingRule is enabled.
|
458
|
+
:param pulumi.Input[builtins.str] name: The name of the MutingRule.
|
458
459
|
:param pulumi.Input[Union['AlertMutingRuleScheduleArgs', 'AlertMutingRuleScheduleArgsDict']] schedule: Specify a schedule for enabling the MutingRule. See Schedule below for details
|
459
460
|
"""
|
460
461
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
@@ -472,7 +473,7 @@ class AlertMutingRule(pulumi.CustomResource):
|
|
472
473
|
|
473
474
|
@property
|
474
475
|
@pulumi.getter(name="accountId")
|
475
|
-
def account_id(self) -> pulumi.Output[str]:
|
476
|
+
def account_id(self) -> pulumi.Output[builtins.str]:
|
476
477
|
"""
|
477
478
|
The account id of the MutingRule.
|
478
479
|
"""
|
@@ -480,7 +481,7 @@ class AlertMutingRule(pulumi.CustomResource):
|
|
480
481
|
|
481
482
|
@property
|
482
483
|
@pulumi.getter(name="actionOnMutingRuleWindowEnded")
|
483
|
-
def action_on_muting_rule_window_ended(self) -> pulumi.Output[str]:
|
484
|
+
def action_on_muting_rule_window_ended(self) -> pulumi.Output[builtins.str]:
|
484
485
|
"""
|
485
486
|
The action when the muting rule window is ended or disabled. Valid values are `CLOSE_ISSUES_ON_INACTIVE`, `DO_NOTHING`.
|
486
487
|
"""
|
@@ -496,7 +497,7 @@ class AlertMutingRule(pulumi.CustomResource):
|
|
496
497
|
|
497
498
|
@property
|
498
499
|
@pulumi.getter
|
499
|
-
def description(self) -> pulumi.Output[Optional[str]]:
|
500
|
+
def description(self) -> pulumi.Output[Optional[builtins.str]]:
|
500
501
|
"""
|
501
502
|
The description of the MutingRule.
|
502
503
|
"""
|
@@ -504,7 +505,7 @@ class AlertMutingRule(pulumi.CustomResource):
|
|
504
505
|
|
505
506
|
@property
|
506
507
|
@pulumi.getter
|
507
|
-
def enabled(self) -> pulumi.Output[bool]:
|
508
|
+
def enabled(self) -> pulumi.Output[builtins.bool]:
|
508
509
|
"""
|
509
510
|
Whether the MutingRule is enabled.
|
510
511
|
"""
|
@@ -512,7 +513,7 @@ class AlertMutingRule(pulumi.CustomResource):
|
|
512
513
|
|
513
514
|
@property
|
514
515
|
@pulumi.getter
|
515
|
-
def name(self) -> pulumi.Output[str]:
|
516
|
+
def name(self) -> pulumi.Output[builtins.str]:
|
516
517
|
"""
|
517
518
|
The name of the MutingRule.
|
518
519
|
"""
|
pulumi_newrelic/alert_policy.py
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
4
|
|
5
|
+
import builtins
|
5
6
|
import copy
|
6
7
|
import warnings
|
7
8
|
import sys
|
@@ -19,16 +20,16 @@ __all__ = ['AlertPolicyArgs', 'AlertPolicy']
|
|
19
20
|
@pulumi.input_type
|
20
21
|
class AlertPolicyArgs:
|
21
22
|
def __init__(__self__, *,
|
22
|
-
account_id: Optional[pulumi.Input[str]] = None,
|
23
|
-
channel_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
24
|
-
incident_preference: Optional[pulumi.Input[str]] = None,
|
25
|
-
name: Optional[pulumi.Input[str]] = None):
|
23
|
+
account_id: Optional[pulumi.Input[builtins.str]] = None,
|
24
|
+
channel_ids: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
25
|
+
incident_preference: Optional[pulumi.Input[builtins.str]] = None,
|
26
|
+
name: Optional[pulumi.Input[builtins.str]] = None):
|
26
27
|
"""
|
27
28
|
The set of arguments for constructing a AlertPolicy resource.
|
28
|
-
: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`.
|
29
|
-
: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.
|
30
|
-
: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`.
|
31
|
-
:param pulumi.Input[str] name: The name of the policy.
|
29
|
+
:param pulumi.Input[builtins.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`.
|
30
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.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.
|
31
|
+
:param pulumi.Input[builtins.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`.
|
32
|
+
:param pulumi.Input[builtins.str] name: The name of the policy.
|
32
33
|
"""
|
33
34
|
if account_id is not None:
|
34
35
|
pulumi.set(__self__, "account_id", account_id)
|
@@ -44,67 +45,67 @@ class AlertPolicyArgs:
|
|
44
45
|
|
45
46
|
@property
|
46
47
|
@pulumi.getter(name="accountId")
|
47
|
-
def account_id(self) -> Optional[pulumi.Input[str]]:
|
48
|
+
def account_id(self) -> Optional[pulumi.Input[builtins.str]]:
|
48
49
|
"""
|
49
50
|
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`.
|
50
51
|
"""
|
51
52
|
return pulumi.get(self, "account_id")
|
52
53
|
|
53
54
|
@account_id.setter
|
54
|
-
def account_id(self, value: Optional[pulumi.Input[str]]):
|
55
|
+
def account_id(self, value: Optional[pulumi.Input[builtins.str]]):
|
55
56
|
pulumi.set(self, "account_id", value)
|
56
57
|
|
57
58
|
@property
|
58
59
|
@pulumi.getter(name="channelIds")
|
59
60
|
@_utilities.deprecated("""The `channel_ids` attribute is deprecated and will be removed in the next major release of the provider.""")
|
60
|
-
def channel_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
61
|
+
def channel_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]:
|
61
62
|
"""
|
62
63
|
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.
|
63
64
|
"""
|
64
65
|
return pulumi.get(self, "channel_ids")
|
65
66
|
|
66
67
|
@channel_ids.setter
|
67
|
-
def channel_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
68
|
+
def channel_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]):
|
68
69
|
pulumi.set(self, "channel_ids", value)
|
69
70
|
|
70
71
|
@property
|
71
72
|
@pulumi.getter(name="incidentPreference")
|
72
|
-
def incident_preference(self) -> Optional[pulumi.Input[str]]:
|
73
|
+
def incident_preference(self) -> Optional[pulumi.Input[builtins.str]]:
|
73
74
|
"""
|
74
75
|
The rollup strategy for the policy. Options include: `PER_POLICY`, `PER_CONDITION`, or `PER_CONDITION_AND_TARGET`. The default is `PER_POLICY`.
|
75
76
|
"""
|
76
77
|
return pulumi.get(self, "incident_preference")
|
77
78
|
|
78
79
|
@incident_preference.setter
|
79
|
-
def incident_preference(self, value: Optional[pulumi.Input[str]]):
|
80
|
+
def incident_preference(self, value: Optional[pulumi.Input[builtins.str]]):
|
80
81
|
pulumi.set(self, "incident_preference", value)
|
81
82
|
|
82
83
|
@property
|
83
84
|
@pulumi.getter
|
84
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
85
|
+
def name(self) -> Optional[pulumi.Input[builtins.str]]:
|
85
86
|
"""
|
86
87
|
The name of the policy.
|
87
88
|
"""
|
88
89
|
return pulumi.get(self, "name")
|
89
90
|
|
90
91
|
@name.setter
|
91
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
92
|
+
def name(self, value: Optional[pulumi.Input[builtins.str]]):
|
92
93
|
pulumi.set(self, "name", value)
|
93
94
|
|
94
95
|
|
95
96
|
@pulumi.input_type
|
96
97
|
class _AlertPolicyState:
|
97
98
|
def __init__(__self__, *,
|
98
|
-
account_id: Optional[pulumi.Input[str]] = None,
|
99
|
-
channel_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
100
|
-
incident_preference: Optional[pulumi.Input[str]] = None,
|
101
|
-
name: Optional[pulumi.Input[str]] = None):
|
99
|
+
account_id: Optional[pulumi.Input[builtins.str]] = None,
|
100
|
+
channel_ids: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
101
|
+
incident_preference: Optional[pulumi.Input[builtins.str]] = None,
|
102
|
+
name: Optional[pulumi.Input[builtins.str]] = None):
|
102
103
|
"""
|
103
104
|
Input properties used for looking up and filtering AlertPolicy resources.
|
104
|
-
: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`.
|
105
|
-
: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.
|
106
|
-
: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`.
|
107
|
-
:param pulumi.Input[str] name: The name of the policy.
|
105
|
+
:param pulumi.Input[builtins.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`.
|
106
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.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.
|
107
|
+
:param pulumi.Input[builtins.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`.
|
108
|
+
:param pulumi.Input[builtins.str] name: The name of the policy.
|
108
109
|
"""
|
109
110
|
if account_id is not None:
|
110
111
|
pulumi.set(__self__, "account_id", account_id)
|
@@ -120,51 +121,51 @@ class _AlertPolicyState:
|
|
120
121
|
|
121
122
|
@property
|
122
123
|
@pulumi.getter(name="accountId")
|
123
|
-
def account_id(self) -> Optional[pulumi.Input[str]]:
|
124
|
+
def account_id(self) -> Optional[pulumi.Input[builtins.str]]:
|
124
125
|
"""
|
125
126
|
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`.
|
126
127
|
"""
|
127
128
|
return pulumi.get(self, "account_id")
|
128
129
|
|
129
130
|
@account_id.setter
|
130
|
-
def account_id(self, value: Optional[pulumi.Input[str]]):
|
131
|
+
def account_id(self, value: Optional[pulumi.Input[builtins.str]]):
|
131
132
|
pulumi.set(self, "account_id", value)
|
132
133
|
|
133
134
|
@property
|
134
135
|
@pulumi.getter(name="channelIds")
|
135
136
|
@_utilities.deprecated("""The `channel_ids` attribute is deprecated and will be removed in the next major release of the provider.""")
|
136
|
-
def channel_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
137
|
+
def channel_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]:
|
137
138
|
"""
|
138
139
|
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.
|
139
140
|
"""
|
140
141
|
return pulumi.get(self, "channel_ids")
|
141
142
|
|
142
143
|
@channel_ids.setter
|
143
|
-
def channel_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
144
|
+
def channel_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]):
|
144
145
|
pulumi.set(self, "channel_ids", value)
|
145
146
|
|
146
147
|
@property
|
147
148
|
@pulumi.getter(name="incidentPreference")
|
148
|
-
def incident_preference(self) -> Optional[pulumi.Input[str]]:
|
149
|
+
def incident_preference(self) -> Optional[pulumi.Input[builtins.str]]:
|
149
150
|
"""
|
150
151
|
The rollup strategy for the policy. Options include: `PER_POLICY`, `PER_CONDITION`, or `PER_CONDITION_AND_TARGET`. The default is `PER_POLICY`.
|
151
152
|
"""
|
152
153
|
return pulumi.get(self, "incident_preference")
|
153
154
|
|
154
155
|
@incident_preference.setter
|
155
|
-
def incident_preference(self, value: Optional[pulumi.Input[str]]):
|
156
|
+
def incident_preference(self, value: Optional[pulumi.Input[builtins.str]]):
|
156
157
|
pulumi.set(self, "incident_preference", value)
|
157
158
|
|
158
159
|
@property
|
159
160
|
@pulumi.getter
|
160
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
161
|
+
def name(self) -> Optional[pulumi.Input[builtins.str]]:
|
161
162
|
"""
|
162
163
|
The name of the policy.
|
163
164
|
"""
|
164
165
|
return pulumi.get(self, "name")
|
165
166
|
|
166
167
|
@name.setter
|
167
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
168
|
+
def name(self, value: Optional[pulumi.Input[builtins.str]]):
|
168
169
|
pulumi.set(self, "name", value)
|
169
170
|
|
170
171
|
|
@@ -173,10 +174,10 @@ class AlertPolicy(pulumi.CustomResource):
|
|
173
174
|
def __init__(__self__,
|
174
175
|
resource_name: str,
|
175
176
|
opts: Optional[pulumi.ResourceOptions] = None,
|
176
|
-
account_id: Optional[pulumi.Input[str]] = None,
|
177
|
-
channel_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
178
|
-
incident_preference: Optional[pulumi.Input[str]] = None,
|
179
|
-
name: Optional[pulumi.Input[str]] = None,
|
177
|
+
account_id: Optional[pulumi.Input[builtins.str]] = None,
|
178
|
+
channel_ids: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
179
|
+
incident_preference: Optional[pulumi.Input[builtins.str]] = None,
|
180
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
180
181
|
__props__=None):
|
181
182
|
"""
|
182
183
|
Use this resource to create and manage New Relic alert policies.
|
@@ -271,10 +272,10 @@ class AlertPolicy(pulumi.CustomResource):
|
|
271
272
|
|
272
273
|
:param str resource_name: The name of the resource.
|
273
274
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
274
|
-
: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`.
|
275
|
-
: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.
|
276
|
-
: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`.
|
277
|
-
:param pulumi.Input[str] name: The name of the policy.
|
275
|
+
:param pulumi.Input[builtins.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`.
|
276
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.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.
|
277
|
+
:param pulumi.Input[builtins.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`.
|
278
|
+
:param pulumi.Input[builtins.str] name: The name of the policy.
|
278
279
|
"""
|
279
280
|
...
|
280
281
|
@overload
|
@@ -388,10 +389,10 @@ class AlertPolicy(pulumi.CustomResource):
|
|
388
389
|
def _internal_init(__self__,
|
389
390
|
resource_name: str,
|
390
391
|
opts: Optional[pulumi.ResourceOptions] = None,
|
391
|
-
account_id: Optional[pulumi.Input[str]] = None,
|
392
|
-
channel_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
393
|
-
incident_preference: Optional[pulumi.Input[str]] = None,
|
394
|
-
name: Optional[pulumi.Input[str]] = None,
|
392
|
+
account_id: Optional[pulumi.Input[builtins.str]] = None,
|
393
|
+
channel_ids: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
394
|
+
incident_preference: Optional[pulumi.Input[builtins.str]] = None,
|
395
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
395
396
|
__props__=None):
|
396
397
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
397
398
|
if not isinstance(opts, pulumi.ResourceOptions):
|
@@ -415,10 +416,10 @@ class AlertPolicy(pulumi.CustomResource):
|
|
415
416
|
def get(resource_name: str,
|
416
417
|
id: pulumi.Input[str],
|
417
418
|
opts: Optional[pulumi.ResourceOptions] = None,
|
418
|
-
account_id: Optional[pulumi.Input[str]] = None,
|
419
|
-
channel_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
420
|
-
incident_preference: Optional[pulumi.Input[str]] = None,
|
421
|
-
name: Optional[pulumi.Input[str]] = None) -> 'AlertPolicy':
|
419
|
+
account_id: Optional[pulumi.Input[builtins.str]] = None,
|
420
|
+
channel_ids: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
421
|
+
incident_preference: Optional[pulumi.Input[builtins.str]] = None,
|
422
|
+
name: Optional[pulumi.Input[builtins.str]] = None) -> 'AlertPolicy':
|
422
423
|
"""
|
423
424
|
Get an existing AlertPolicy resource's state with the given name, id, and optional extra
|
424
425
|
properties used to qualify the lookup.
|
@@ -426,10 +427,10 @@ class AlertPolicy(pulumi.CustomResource):
|
|
426
427
|
:param str resource_name: The unique name of the resulting resource.
|
427
428
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
428
429
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
429
|
-
: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`.
|
430
|
-
: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.
|
431
|
-
: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`.
|
432
|
-
:param pulumi.Input[str] name: The name of the policy.
|
430
|
+
:param pulumi.Input[builtins.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`.
|
431
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.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.
|
432
|
+
:param pulumi.Input[builtins.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`.
|
433
|
+
:param pulumi.Input[builtins.str] name: The name of the policy.
|
433
434
|
"""
|
434
435
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
435
436
|
|
@@ -443,7 +444,7 @@ class AlertPolicy(pulumi.CustomResource):
|
|
443
444
|
|
444
445
|
@property
|
445
446
|
@pulumi.getter(name="accountId")
|
446
|
-
def account_id(self) -> pulumi.Output[str]:
|
447
|
+
def account_id(self) -> pulumi.Output[builtins.str]:
|
447
448
|
"""
|
448
449
|
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`.
|
449
450
|
"""
|
@@ -452,7 +453,7 @@ class AlertPolicy(pulumi.CustomResource):
|
|
452
453
|
@property
|
453
454
|
@pulumi.getter(name="channelIds")
|
454
455
|
@_utilities.deprecated("""The `channel_ids` attribute is deprecated and will be removed in the next major release of the provider.""")
|
455
|
-
def channel_ids(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
456
|
+
def channel_ids(self) -> pulumi.Output[Optional[Sequence[builtins.str]]]:
|
456
457
|
"""
|
457
458
|
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.
|
458
459
|
"""
|
@@ -460,7 +461,7 @@ class AlertPolicy(pulumi.CustomResource):
|
|
460
461
|
|
461
462
|
@property
|
462
463
|
@pulumi.getter(name="incidentPreference")
|
463
|
-
def incident_preference(self) -> pulumi.Output[Optional[str]]:
|
464
|
+
def incident_preference(self) -> pulumi.Output[Optional[builtins.str]]:
|
464
465
|
"""
|
465
466
|
The rollup strategy for the policy. Options include: `PER_POLICY`, `PER_CONDITION`, or `PER_CONDITION_AND_TARGET`. The default is `PER_POLICY`.
|
466
467
|
"""
|
@@ -468,7 +469,7 @@ class AlertPolicy(pulumi.CustomResource):
|
|
468
469
|
|
469
470
|
@property
|
470
471
|
@pulumi.getter
|
471
|
-
def name(self) -> pulumi.Output[str]:
|
472
|
+
def name(self) -> pulumi.Output[builtins.str]:
|
472
473
|
"""
|
473
474
|
The name of the policy.
|
474
475
|
"""
|