pulumi-newrelic 5.42.1__py3-none-any.whl → 5.58.0a1766556761__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 +19 -1
- pulumi_newrelic/_inputs.py +4314 -3779
- pulumi_newrelic/_utilities.py +1 -1
- pulumi_newrelic/account_management.py +37 -36
- pulumi_newrelic/alert_channel.py +63 -62
- pulumi_newrelic/alert_condition.py +219 -218
- pulumi_newrelic/alert_muting_rule.py +96 -95
- pulumi_newrelic/alert_policy.py +71 -70
- pulumi_newrelic/alert_policy_channel.py +54 -53
- pulumi_newrelic/api_access_key.py +186 -201
- pulumi_newrelic/browser_application.py +115 -114
- pulumi_newrelic/cloud/__init__.py +3 -1
- pulumi_newrelic/cloud/_inputs.py +2226 -2118
- pulumi_newrelic/cloud/aws_govcloud_integrations.py +101 -96
- pulumi_newrelic/cloud/aws_govcloud_link_account.py +71 -70
- pulumi_newrelic/cloud/aws_integrations.py +240 -192
- pulumi_newrelic/cloud/aws_link_account.py +71 -70
- pulumi_newrelic/cloud/azure_integrations.py +180 -132
- pulumi_newrelic/cloud/azure_link_account.py +105 -104
- pulumi_newrelic/cloud/gcp_integrations.py +115 -114
- pulumi_newrelic/cloud/gcp_link_account.py +56 -55
- pulumi_newrelic/cloud/oci_link_account.py +926 -0
- pulumi_newrelic/cloud/outputs.py +1512 -1410
- pulumi_newrelic/config/__init__.py +2 -1
- pulumi_newrelic/config/__init__.pyi +2 -2
- pulumi_newrelic/config/vars.py +15 -15
- pulumi_newrelic/data_partition_rule.py +114 -113
- pulumi_newrelic/entity_tags.py +79 -22
- pulumi_newrelic/events_to_metrics_rule.py +97 -96
- pulumi_newrelic/get_account.py +22 -22
- pulumi_newrelic/get_alert_channel.py +53 -21
- pulumi_newrelic/get_alert_policy.py +52 -26
- pulumi_newrelic/get_application.py +14 -14
- pulumi_newrelic/get_authentication_domain.py +10 -10
- pulumi_newrelic/get_cloud_account.py +22 -22
- pulumi_newrelic/get_entity.py +53 -53
- pulumi_newrelic/get_group.py +22 -22
- pulumi_newrelic/get_key_transaction.py +26 -26
- pulumi_newrelic/get_notification_destination.py +31 -31
- pulumi_newrelic/get_obfuscation_expression.py +16 -16
- pulumi_newrelic/get_service_level_alert_helper.py +54 -54
- pulumi_newrelic/get_test_grok_pattern.py +23 -23
- pulumi_newrelic/get_user.py +22 -22
- pulumi_newrelic/group.py +54 -53
- pulumi_newrelic/infra_alert_condition.py +257 -256
- pulumi_newrelic/insights/__init__.py +2 -1
- pulumi_newrelic/insights/_inputs.py +33 -33
- pulumi_newrelic/insights/event.py +6 -5
- pulumi_newrelic/insights/outputs.py +23 -23
- pulumi_newrelic/key_transaction.py +106 -105
- pulumi_newrelic/log_parsing_rule.py +148 -147
- pulumi_newrelic/monitor_downtime.py +148 -154
- pulumi_newrelic/notification_channel.py +218 -163
- pulumi_newrelic/notification_destination.py +123 -136
- pulumi_newrelic/nrql_alert_condition.py +513 -414
- pulumi_newrelic/nrql_drop_rule.py +108 -147
- pulumi_newrelic/obfuscation_expression.py +71 -70
- pulumi_newrelic/obfuscation_rule.py +91 -90
- pulumi_newrelic/one_dashboard.py +95 -94
- pulumi_newrelic/one_dashboard_json.py +64 -63
- pulumi_newrelic/one_dashboard_raw.py +116 -115
- pulumi_newrelic/outputs.py +3026 -2665
- pulumi_newrelic/pipeline_cloud_rule.py +335 -0
- pulumi_newrelic/plugins/__init__.py +2 -1
- pulumi_newrelic/plugins/_inputs.py +159 -159
- pulumi_newrelic/plugins/application_settings.py +186 -171
- pulumi_newrelic/plugins/outputs.py +109 -109
- pulumi_newrelic/plugins/workload.py +133 -132
- pulumi_newrelic/provider.py +136 -116
- pulumi_newrelic/pulumi-plugin.json +1 -1
- pulumi_newrelic/service_level.py +78 -77
- pulumi_newrelic/synthetics/__init__.py +2 -1
- pulumi_newrelic/synthetics/_inputs.py +128 -128
- pulumi_newrelic/synthetics/alert_condition.py +97 -96
- pulumi_newrelic/synthetics/broken_links_monitor.py +218 -189
- pulumi_newrelic/synthetics/cert_check_monitor.py +226 -197
- pulumi_newrelic/synthetics/get_private_location.py +22 -22
- pulumi_newrelic/synthetics/get_secure_credential.py +20 -20
- pulumi_newrelic/synthetics/monitor.py +399 -370
- pulumi_newrelic/synthetics/multi_location_alert_condition.py +120 -119
- pulumi_newrelic/synthetics/outputs.py +86 -86
- pulumi_newrelic/synthetics/private_location.py +107 -106
- pulumi_newrelic/synthetics/script_monitor.py +385 -294
- pulumi_newrelic/synthetics/secure_credential.py +88 -87
- pulumi_newrelic/synthetics/step_monitor.py +241 -212
- pulumi_newrelic/user.py +71 -70
- pulumi_newrelic/workflow.py +141 -140
- {pulumi_newrelic-5.42.1.dist-info → pulumi_newrelic-5.58.0a1766556761.dist-info}/METADATA +4 -4
- pulumi_newrelic-5.58.0a1766556761.dist-info/RECORD +92 -0
- {pulumi_newrelic-5.42.1.dist-info → pulumi_newrelic-5.58.0a1766556761.dist-info}/WHEEL +1 -1
- pulumi_newrelic-5.42.1.dist-info/RECORD +0 -90
- {pulumi_newrelic-5.42.1.dist-info → pulumi_newrelic-5.58.0a1766556761.dist-info}/top_level.txt +0 -0
pulumi_newrelic/alert_policy.py
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import builtins as _builtins
|
|
6
6
|
import warnings
|
|
7
7
|
import sys
|
|
8
8
|
import pulumi
|
|
@@ -19,16 +19,16 @@ __all__ = ['AlertPolicyArgs', 'AlertPolicy']
|
|
|
19
19
|
@pulumi.input_type
|
|
20
20
|
class AlertPolicyArgs:
|
|
21
21
|
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):
|
|
22
|
+
account_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
23
|
+
channel_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
24
|
+
incident_preference: Optional[pulumi.Input[_builtins.str]] = None,
|
|
25
|
+
name: Optional[pulumi.Input[_builtins.str]] = None):
|
|
26
26
|
"""
|
|
27
27
|
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.
|
|
28
|
+
: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`.
|
|
29
|
+
: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.
|
|
30
|
+
: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`.
|
|
31
|
+
:param pulumi.Input[_builtins.str] name: The name of the policy.
|
|
32
32
|
"""
|
|
33
33
|
if account_id is not None:
|
|
34
34
|
pulumi.set(__self__, "account_id", account_id)
|
|
@@ -42,69 +42,69 @@ class AlertPolicyArgs:
|
|
|
42
42
|
if name is not None:
|
|
43
43
|
pulumi.set(__self__, "name", name)
|
|
44
44
|
|
|
45
|
-
@property
|
|
45
|
+
@_builtins.property
|
|
46
46
|
@pulumi.getter(name="accountId")
|
|
47
|
-
def account_id(self) -> Optional[pulumi.Input[str]]:
|
|
47
|
+
def account_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
48
48
|
"""
|
|
49
49
|
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
50
|
"""
|
|
51
51
|
return pulumi.get(self, "account_id")
|
|
52
52
|
|
|
53
53
|
@account_id.setter
|
|
54
|
-
def account_id(self, value: Optional[pulumi.Input[str]]):
|
|
54
|
+
def account_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
55
55
|
pulumi.set(self, "account_id", value)
|
|
56
56
|
|
|
57
|
-
@property
|
|
57
|
+
@_builtins.property
|
|
58
58
|
@pulumi.getter(name="channelIds")
|
|
59
59
|
@_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]]]]:
|
|
60
|
+
def channel_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
|
61
61
|
"""
|
|
62
62
|
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
63
|
"""
|
|
64
64
|
return pulumi.get(self, "channel_ids")
|
|
65
65
|
|
|
66
66
|
@channel_ids.setter
|
|
67
|
-
def channel_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
67
|
+
def channel_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
|
68
68
|
pulumi.set(self, "channel_ids", value)
|
|
69
69
|
|
|
70
|
-
@property
|
|
70
|
+
@_builtins.property
|
|
71
71
|
@pulumi.getter(name="incidentPreference")
|
|
72
|
-
def incident_preference(self) -> Optional[pulumi.Input[str]]:
|
|
72
|
+
def incident_preference(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
73
73
|
"""
|
|
74
74
|
The rollup strategy for the policy. Options include: `PER_POLICY`, `PER_CONDITION`, or `PER_CONDITION_AND_TARGET`. The default is `PER_POLICY`.
|
|
75
75
|
"""
|
|
76
76
|
return pulumi.get(self, "incident_preference")
|
|
77
77
|
|
|
78
78
|
@incident_preference.setter
|
|
79
|
-
def incident_preference(self, value: Optional[pulumi.Input[str]]):
|
|
79
|
+
def incident_preference(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
80
80
|
pulumi.set(self, "incident_preference", value)
|
|
81
81
|
|
|
82
|
-
@property
|
|
82
|
+
@_builtins.property
|
|
83
83
|
@pulumi.getter
|
|
84
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
|
84
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
85
85
|
"""
|
|
86
86
|
The name of the policy.
|
|
87
87
|
"""
|
|
88
88
|
return pulumi.get(self, "name")
|
|
89
89
|
|
|
90
90
|
@name.setter
|
|
91
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
|
91
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
92
92
|
pulumi.set(self, "name", value)
|
|
93
93
|
|
|
94
94
|
|
|
95
95
|
@pulumi.input_type
|
|
96
96
|
class _AlertPolicyState:
|
|
97
97
|
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):
|
|
98
|
+
account_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
99
|
+
channel_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
100
|
+
incident_preference: Optional[pulumi.Input[_builtins.str]] = None,
|
|
101
|
+
name: Optional[pulumi.Input[_builtins.str]] = None):
|
|
102
102
|
"""
|
|
103
103
|
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.
|
|
104
|
+
: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`.
|
|
105
|
+
: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.
|
|
106
|
+
: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`.
|
|
107
|
+
:param pulumi.Input[_builtins.str] name: The name of the policy.
|
|
108
108
|
"""
|
|
109
109
|
if account_id is not None:
|
|
110
110
|
pulumi.set(__self__, "account_id", account_id)
|
|
@@ -118,65 +118,66 @@ class _AlertPolicyState:
|
|
|
118
118
|
if name is not None:
|
|
119
119
|
pulumi.set(__self__, "name", name)
|
|
120
120
|
|
|
121
|
-
@property
|
|
121
|
+
@_builtins.property
|
|
122
122
|
@pulumi.getter(name="accountId")
|
|
123
|
-
def account_id(self) -> Optional[pulumi.Input[str]]:
|
|
123
|
+
def account_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
124
124
|
"""
|
|
125
125
|
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
126
|
"""
|
|
127
127
|
return pulumi.get(self, "account_id")
|
|
128
128
|
|
|
129
129
|
@account_id.setter
|
|
130
|
-
def account_id(self, value: Optional[pulumi.Input[str]]):
|
|
130
|
+
def account_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
131
131
|
pulumi.set(self, "account_id", value)
|
|
132
132
|
|
|
133
|
-
@property
|
|
133
|
+
@_builtins.property
|
|
134
134
|
@pulumi.getter(name="channelIds")
|
|
135
135
|
@_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]]]]:
|
|
136
|
+
def channel_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
|
137
137
|
"""
|
|
138
138
|
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
139
|
"""
|
|
140
140
|
return pulumi.get(self, "channel_ids")
|
|
141
141
|
|
|
142
142
|
@channel_ids.setter
|
|
143
|
-
def channel_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
143
|
+
def channel_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
|
144
144
|
pulumi.set(self, "channel_ids", value)
|
|
145
145
|
|
|
146
|
-
@property
|
|
146
|
+
@_builtins.property
|
|
147
147
|
@pulumi.getter(name="incidentPreference")
|
|
148
|
-
def incident_preference(self) -> Optional[pulumi.Input[str]]:
|
|
148
|
+
def incident_preference(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
149
149
|
"""
|
|
150
150
|
The rollup strategy for the policy. Options include: `PER_POLICY`, `PER_CONDITION`, or `PER_CONDITION_AND_TARGET`. The default is `PER_POLICY`.
|
|
151
151
|
"""
|
|
152
152
|
return pulumi.get(self, "incident_preference")
|
|
153
153
|
|
|
154
154
|
@incident_preference.setter
|
|
155
|
-
def incident_preference(self, value: Optional[pulumi.Input[str]]):
|
|
155
|
+
def incident_preference(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
156
156
|
pulumi.set(self, "incident_preference", value)
|
|
157
157
|
|
|
158
|
-
@property
|
|
158
|
+
@_builtins.property
|
|
159
159
|
@pulumi.getter
|
|
160
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
|
160
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
161
161
|
"""
|
|
162
162
|
The name of the policy.
|
|
163
163
|
"""
|
|
164
164
|
return pulumi.get(self, "name")
|
|
165
165
|
|
|
166
166
|
@name.setter
|
|
167
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
|
167
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
168
168
|
pulumi.set(self, "name", value)
|
|
169
169
|
|
|
170
170
|
|
|
171
|
+
@pulumi.type_token("newrelic:index/alertPolicy:AlertPolicy")
|
|
171
172
|
class AlertPolicy(pulumi.CustomResource):
|
|
172
173
|
@overload
|
|
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
|
|
|
@@ -441,34 +442,34 @@ class AlertPolicy(pulumi.CustomResource):
|
|
|
441
442
|
__props__.__dict__["name"] = name
|
|
442
443
|
return AlertPolicy(resource_name, opts=opts, __props__=__props__)
|
|
443
444
|
|
|
444
|
-
@property
|
|
445
|
+
@_builtins.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
|
"""
|
|
450
451
|
return pulumi.get(self, "account_id")
|
|
451
452
|
|
|
452
|
-
@property
|
|
453
|
+
@_builtins.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
|
"""
|
|
459
460
|
return pulumi.get(self, "channel_ids")
|
|
460
461
|
|
|
461
|
-
@property
|
|
462
|
+
@_builtins.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
|
"""
|
|
467
468
|
return pulumi.get(self, "incident_preference")
|
|
468
469
|
|
|
469
|
-
@property
|
|
470
|
+
@_builtins.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
|
"""
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import builtins as _builtins
|
|
6
6
|
import warnings
|
|
7
7
|
import sys
|
|
8
8
|
import pulumi
|
|
@@ -19,68 +19,68 @@ __all__ = ['AlertPolicyChannelArgs', 'AlertPolicyChannel']
|
|
|
19
19
|
@pulumi.input_type
|
|
20
20
|
class AlertPolicyChannelArgs:
|
|
21
21
|
def __init__(__self__, *,
|
|
22
|
-
channel_ids: pulumi.Input[Sequence[pulumi.Input[str]]],
|
|
23
|
-
policy_id: pulumi.Input[str],
|
|
24
|
-
account_id: Optional[pulumi.Input[str]] = None):
|
|
22
|
+
channel_ids: pulumi.Input[Sequence[pulumi.Input[_builtins.str]]],
|
|
23
|
+
policy_id: pulumi.Input[_builtins.str],
|
|
24
|
+
account_id: Optional[pulumi.Input[_builtins.str]] = None):
|
|
25
25
|
"""
|
|
26
26
|
The set of arguments for constructing a AlertPolicyChannel resource.
|
|
27
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] channel_ids: Array of channel IDs to apply to the specified policy. We recommended sorting channel IDs in ascending order to avoid drift in your state.
|
|
28
|
-
:param pulumi.Input[str] policy_id: The ID of the policy.
|
|
29
|
-
:param pulumi.Input[str] account_id: Determines the New Relic account where the alert policy channel will be created. Defaults to the account associated with the API key used.
|
|
27
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] channel_ids: Array of channel IDs to apply to the specified policy. We recommended sorting channel IDs in ascending order to avoid drift in your state.
|
|
28
|
+
:param pulumi.Input[_builtins.str] policy_id: The ID of the policy.
|
|
29
|
+
:param pulumi.Input[_builtins.str] account_id: Determines the New Relic account where the alert policy channel will be created. Defaults to the account associated with the API key used.
|
|
30
30
|
"""
|
|
31
31
|
pulumi.set(__self__, "channel_ids", channel_ids)
|
|
32
32
|
pulumi.set(__self__, "policy_id", policy_id)
|
|
33
33
|
if account_id is not None:
|
|
34
34
|
pulumi.set(__self__, "account_id", account_id)
|
|
35
35
|
|
|
36
|
-
@property
|
|
36
|
+
@_builtins.property
|
|
37
37
|
@pulumi.getter(name="channelIds")
|
|
38
|
-
def channel_ids(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
|
|
38
|
+
def channel_ids(self) -> pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]:
|
|
39
39
|
"""
|
|
40
40
|
Array of channel IDs to apply to the specified policy. We recommended sorting channel IDs in ascending order to avoid drift in your state.
|
|
41
41
|
"""
|
|
42
42
|
return pulumi.get(self, "channel_ids")
|
|
43
43
|
|
|
44
44
|
@channel_ids.setter
|
|
45
|
-
def channel_ids(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
|
|
45
|
+
def channel_ids(self, value: pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]):
|
|
46
46
|
pulumi.set(self, "channel_ids", value)
|
|
47
47
|
|
|
48
|
-
@property
|
|
48
|
+
@_builtins.property
|
|
49
49
|
@pulumi.getter(name="policyId")
|
|
50
|
-
def policy_id(self) -> pulumi.Input[str]:
|
|
50
|
+
def policy_id(self) -> pulumi.Input[_builtins.str]:
|
|
51
51
|
"""
|
|
52
52
|
The ID of the policy.
|
|
53
53
|
"""
|
|
54
54
|
return pulumi.get(self, "policy_id")
|
|
55
55
|
|
|
56
56
|
@policy_id.setter
|
|
57
|
-
def policy_id(self, value: pulumi.Input[str]):
|
|
57
|
+
def policy_id(self, value: pulumi.Input[_builtins.str]):
|
|
58
58
|
pulumi.set(self, "policy_id", value)
|
|
59
59
|
|
|
60
|
-
@property
|
|
60
|
+
@_builtins.property
|
|
61
61
|
@pulumi.getter(name="accountId")
|
|
62
|
-
def account_id(self) -> Optional[pulumi.Input[str]]:
|
|
62
|
+
def account_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
63
63
|
"""
|
|
64
64
|
Determines the New Relic account where the alert policy channel will be created. Defaults to the account associated with the API key used.
|
|
65
65
|
"""
|
|
66
66
|
return pulumi.get(self, "account_id")
|
|
67
67
|
|
|
68
68
|
@account_id.setter
|
|
69
|
-
def account_id(self, value: Optional[pulumi.Input[str]]):
|
|
69
|
+
def account_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
70
70
|
pulumi.set(self, "account_id", value)
|
|
71
71
|
|
|
72
72
|
|
|
73
73
|
@pulumi.input_type
|
|
74
74
|
class _AlertPolicyChannelState:
|
|
75
75
|
def __init__(__self__, *,
|
|
76
|
-
account_id: Optional[pulumi.Input[str]] = None,
|
|
77
|
-
channel_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
78
|
-
policy_id: Optional[pulumi.Input[str]] = None):
|
|
76
|
+
account_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
77
|
+
channel_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
78
|
+
policy_id: Optional[pulumi.Input[_builtins.str]] = None):
|
|
79
79
|
"""
|
|
80
80
|
Input properties used for looking up and filtering AlertPolicyChannel resources.
|
|
81
|
-
:param pulumi.Input[str] account_id: Determines the New Relic account where the alert policy channel will be created. Defaults to the account associated with the API key used.
|
|
82
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] channel_ids: Array of channel IDs to apply to the specified policy. We recommended sorting channel IDs in ascending order to avoid drift in your state.
|
|
83
|
-
:param pulumi.Input[str] policy_id: The ID of the policy.
|
|
81
|
+
:param pulumi.Input[_builtins.str] account_id: Determines the New Relic account where the alert policy channel will be created. Defaults to the account associated with the API key used.
|
|
82
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] channel_ids: Array of channel IDs to apply to the specified policy. We recommended sorting channel IDs in ascending order to avoid drift in your state.
|
|
83
|
+
:param pulumi.Input[_builtins.str] policy_id: The ID of the policy.
|
|
84
84
|
"""
|
|
85
85
|
if account_id is not None:
|
|
86
86
|
pulumi.set(__self__, "account_id", account_id)
|
|
@@ -89,51 +89,52 @@ class _AlertPolicyChannelState:
|
|
|
89
89
|
if policy_id is not None:
|
|
90
90
|
pulumi.set(__self__, "policy_id", policy_id)
|
|
91
91
|
|
|
92
|
-
@property
|
|
92
|
+
@_builtins.property
|
|
93
93
|
@pulumi.getter(name="accountId")
|
|
94
|
-
def account_id(self) -> Optional[pulumi.Input[str]]:
|
|
94
|
+
def account_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
95
95
|
"""
|
|
96
96
|
Determines the New Relic account where the alert policy channel will be created. Defaults to the account associated with the API key used.
|
|
97
97
|
"""
|
|
98
98
|
return pulumi.get(self, "account_id")
|
|
99
99
|
|
|
100
100
|
@account_id.setter
|
|
101
|
-
def account_id(self, value: Optional[pulumi.Input[str]]):
|
|
101
|
+
def account_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
102
102
|
pulumi.set(self, "account_id", value)
|
|
103
103
|
|
|
104
|
-
@property
|
|
104
|
+
@_builtins.property
|
|
105
105
|
@pulumi.getter(name="channelIds")
|
|
106
|
-
def channel_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
106
|
+
def channel_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
|
107
107
|
"""
|
|
108
108
|
Array of channel IDs to apply to the specified policy. We recommended sorting channel IDs in ascending order to avoid drift in your state.
|
|
109
109
|
"""
|
|
110
110
|
return pulumi.get(self, "channel_ids")
|
|
111
111
|
|
|
112
112
|
@channel_ids.setter
|
|
113
|
-
def channel_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
113
|
+
def channel_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
|
114
114
|
pulumi.set(self, "channel_ids", value)
|
|
115
115
|
|
|
116
|
-
@property
|
|
116
|
+
@_builtins.property
|
|
117
117
|
@pulumi.getter(name="policyId")
|
|
118
|
-
def policy_id(self) -> Optional[pulumi.Input[str]]:
|
|
118
|
+
def policy_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
119
119
|
"""
|
|
120
120
|
The ID of the policy.
|
|
121
121
|
"""
|
|
122
122
|
return pulumi.get(self, "policy_id")
|
|
123
123
|
|
|
124
124
|
@policy_id.setter
|
|
125
|
-
def policy_id(self, value: Optional[pulumi.Input[str]]):
|
|
125
|
+
def policy_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
126
126
|
pulumi.set(self, "policy_id", value)
|
|
127
127
|
|
|
128
128
|
|
|
129
|
+
@pulumi.type_token("newrelic:index/alertPolicyChannel:AlertPolicyChannel")
|
|
129
130
|
class AlertPolicyChannel(pulumi.CustomResource):
|
|
130
131
|
@overload
|
|
131
132
|
def __init__(__self__,
|
|
132
133
|
resource_name: str,
|
|
133
134
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
134
|
-
account_id: Optional[pulumi.Input[str]] = None,
|
|
135
|
-
channel_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
136
|
-
policy_id: Optional[pulumi.Input[str]] = None,
|
|
135
|
+
account_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
136
|
+
channel_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
137
|
+
policy_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
137
138
|
__props__=None):
|
|
138
139
|
"""
|
|
139
140
|
Use this resource to map alert policies to alert channels in New Relic.
|
|
@@ -188,9 +189,9 @@ class AlertPolicyChannel(pulumi.CustomResource):
|
|
|
188
189
|
|
|
189
190
|
:param str resource_name: The name of the resource.
|
|
190
191
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
191
|
-
:param pulumi.Input[str] account_id: Determines the New Relic account where the alert policy channel will be created. Defaults to the account associated with the API key used.
|
|
192
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] channel_ids: Array of channel IDs to apply to the specified policy. We recommended sorting channel IDs in ascending order to avoid drift in your state.
|
|
193
|
-
:param pulumi.Input[str] policy_id: The ID of the policy.
|
|
192
|
+
:param pulumi.Input[_builtins.str] account_id: Determines the New Relic account where the alert policy channel will be created. Defaults to the account associated with the API key used.
|
|
193
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] channel_ids: Array of channel IDs to apply to the specified policy. We recommended sorting channel IDs in ascending order to avoid drift in your state.
|
|
194
|
+
:param pulumi.Input[_builtins.str] policy_id: The ID of the policy.
|
|
194
195
|
"""
|
|
195
196
|
...
|
|
196
197
|
@overload
|
|
@@ -264,9 +265,9 @@ class AlertPolicyChannel(pulumi.CustomResource):
|
|
|
264
265
|
def _internal_init(__self__,
|
|
265
266
|
resource_name: str,
|
|
266
267
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
267
|
-
account_id: Optional[pulumi.Input[str]] = None,
|
|
268
|
-
channel_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
269
|
-
policy_id: Optional[pulumi.Input[str]] = None,
|
|
268
|
+
account_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
269
|
+
channel_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
270
|
+
policy_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
270
271
|
__props__=None):
|
|
271
272
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
272
273
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -293,9 +294,9 @@ class AlertPolicyChannel(pulumi.CustomResource):
|
|
|
293
294
|
def get(resource_name: str,
|
|
294
295
|
id: pulumi.Input[str],
|
|
295
296
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
296
|
-
account_id: Optional[pulumi.Input[str]] = None,
|
|
297
|
-
channel_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
298
|
-
policy_id: Optional[pulumi.Input[str]] = None) -> 'AlertPolicyChannel':
|
|
297
|
+
account_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
298
|
+
channel_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
299
|
+
policy_id: Optional[pulumi.Input[_builtins.str]] = None) -> 'AlertPolicyChannel':
|
|
299
300
|
"""
|
|
300
301
|
Get an existing AlertPolicyChannel resource's state with the given name, id, and optional extra
|
|
301
302
|
properties used to qualify the lookup.
|
|
@@ -303,9 +304,9 @@ class AlertPolicyChannel(pulumi.CustomResource):
|
|
|
303
304
|
:param str resource_name: The unique name of the resulting resource.
|
|
304
305
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
305
306
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
306
|
-
:param pulumi.Input[str] account_id: Determines the New Relic account where the alert policy channel will be created. Defaults to the account associated with the API key used.
|
|
307
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] channel_ids: Array of channel IDs to apply to the specified policy. We recommended sorting channel IDs in ascending order to avoid drift in your state.
|
|
308
|
-
:param pulumi.Input[str] policy_id: The ID of the policy.
|
|
307
|
+
:param pulumi.Input[_builtins.str] account_id: Determines the New Relic account where the alert policy channel will be created. Defaults to the account associated with the API key used.
|
|
308
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] channel_ids: Array of channel IDs to apply to the specified policy. We recommended sorting channel IDs in ascending order to avoid drift in your state.
|
|
309
|
+
:param pulumi.Input[_builtins.str] policy_id: The ID of the policy.
|
|
309
310
|
"""
|
|
310
311
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
311
312
|
|
|
@@ -316,25 +317,25 @@ class AlertPolicyChannel(pulumi.CustomResource):
|
|
|
316
317
|
__props__.__dict__["policy_id"] = policy_id
|
|
317
318
|
return AlertPolicyChannel(resource_name, opts=opts, __props__=__props__)
|
|
318
319
|
|
|
319
|
-
@property
|
|
320
|
+
@_builtins.property
|
|
320
321
|
@pulumi.getter(name="accountId")
|
|
321
|
-
def account_id(self) -> pulumi.Output[str]:
|
|
322
|
+
def account_id(self) -> pulumi.Output[_builtins.str]:
|
|
322
323
|
"""
|
|
323
324
|
Determines the New Relic account where the alert policy channel will be created. Defaults to the account associated with the API key used.
|
|
324
325
|
"""
|
|
325
326
|
return pulumi.get(self, "account_id")
|
|
326
327
|
|
|
327
|
-
@property
|
|
328
|
+
@_builtins.property
|
|
328
329
|
@pulumi.getter(name="channelIds")
|
|
329
|
-
def channel_ids(self) -> pulumi.Output[Sequence[str]]:
|
|
330
|
+
def channel_ids(self) -> pulumi.Output[Sequence[_builtins.str]]:
|
|
330
331
|
"""
|
|
331
332
|
Array of channel IDs to apply to the specified policy. We recommended sorting channel IDs in ascending order to avoid drift in your state.
|
|
332
333
|
"""
|
|
333
334
|
return pulumi.get(self, "channel_ids")
|
|
334
335
|
|
|
335
|
-
@property
|
|
336
|
+
@_builtins.property
|
|
336
337
|
@pulumi.getter(name="policyId")
|
|
337
|
-
def policy_id(self) -> pulumi.Output[str]:
|
|
338
|
+
def policy_id(self) -> pulumi.Output[_builtins.str]:
|
|
338
339
|
"""
|
|
339
340
|
The ID of the policy.
|
|
340
341
|
"""
|