pulumi-newrelic 5.22.0__py3-none-any.whl → 5.58.0a1763707205__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.
Potentially problematic release.
This version of pulumi-newrelic might be problematic. Click here for more details.
- pulumi_newrelic/__init__.py +28 -1
- pulumi_newrelic/_inputs.py +10385 -2976
- pulumi_newrelic/_utilities.py +50 -10
- pulumi_newrelic/account_management.py +48 -42
- pulumi_newrelic/alert_channel.py +165 -175
- pulumi_newrelic/alert_condition.py +307 -319
- pulumi_newrelic/alert_muting_rule.py +193 -140
- pulumi_newrelic/alert_policy.py +121 -117
- pulumi_newrelic/alert_policy_channel.py +89 -79
- pulumi_newrelic/api_access_key.py +195 -193
- pulumi_newrelic/browser_application.py +120 -114
- pulumi_newrelic/cloud/__init__.py +3 -1
- pulumi_newrelic/cloud/_inputs.py +4267 -2714
- pulumi_newrelic/cloud/aws_govcloud_integrations.py +206 -196
- pulumi_newrelic/cloud/aws_govcloud_link_account.py +143 -228
- pulumi_newrelic/cloud/aws_integrations.py +510 -1490
- pulumi_newrelic/cloud/aws_link_account.py +80 -76
- pulumi_newrelic/cloud/azure_integrations.py +673 -587
- pulumi_newrelic/cloud/azure_link_account.py +121 -117
- pulumi_newrelic/cloud/gcp_integrations.py +428 -408
- pulumi_newrelic/cloud/gcp_link_account.py +65 -61
- pulumi_newrelic/cloud/oci_link_account.py +926 -0
- pulumi_newrelic/cloud/outputs.py +1678 -2321
- pulumi_newrelic/config/__init__.py +2 -1
- pulumi_newrelic/config/__init__.pyi +8 -3
- pulumi_newrelic/config/vars.py +22 -17
- pulumi_newrelic/data_partition_rule.py +119 -117
- pulumi_newrelic/entity_tags.py +111 -53
- pulumi_newrelic/events_to_metrics_rule.py +106 -102
- pulumi_newrelic/get_account.py +41 -33
- pulumi_newrelic/get_alert_channel.py +73 -28
- pulumi_newrelic/get_alert_policy.py +82 -33
- pulumi_newrelic/get_application.py +51 -43
- pulumi_newrelic/get_authentication_domain.py +27 -23
- pulumi_newrelic/get_cloud_account.py +43 -35
- pulumi_newrelic/get_entity.py +126 -183
- pulumi_newrelic/get_group.py +76 -31
- pulumi_newrelic/get_key_transaction.py +117 -42
- pulumi_newrelic/get_notification_destination.py +75 -38
- pulumi_newrelic/get_obfuscation_expression.py +47 -39
- pulumi_newrelic/get_service_level_alert_helper.py +189 -171
- pulumi_newrelic/get_test_grok_pattern.py +47 -36
- pulumi_newrelic/get_user.py +39 -31
- pulumi_newrelic/group.py +59 -199
- pulumi_newrelic/infra_alert_condition.py +399 -405
- pulumi_newrelic/insights/__init__.py +2 -1
- pulumi_newrelic/insights/_inputs.py +71 -28
- pulumi_newrelic/insights/event.py +54 -52
- pulumi_newrelic/insights/outputs.py +28 -23
- pulumi_newrelic/key_transaction.py +465 -0
- pulumi_newrelic/log_parsing_rule.py +159 -157
- pulumi_newrelic/monitor_downtime.py +311 -331
- pulumi_newrelic/notification_channel.py +534 -464
- pulumi_newrelic/notification_destination.py +238 -141
- pulumi_newrelic/nrql_alert_condition.py +820 -614
- pulumi_newrelic/nrql_drop_rule.py +113 -151
- pulumi_newrelic/obfuscation_expression.py +80 -76
- pulumi_newrelic/obfuscation_rule.py +115 -109
- pulumi_newrelic/one_dashboard.py +110 -104
- pulumi_newrelic/one_dashboard_json.py +69 -63
- pulumi_newrelic/one_dashboard_raw.py +212 -206
- pulumi_newrelic/outputs.py +4936 -2234
- pulumi_newrelic/pipeline_cloud_rule.py +335 -0
- pulumi_newrelic/plugins/__init__.py +2 -1
- pulumi_newrelic/plugins/_inputs.py +519 -89
- pulumi_newrelic/plugins/application_settings.py +463 -187
- pulumi_newrelic/plugins/outputs.py +336 -74
- pulumi_newrelic/plugins/workload.py +313 -189
- pulumi_newrelic/provider.py +156 -142
- pulumi_newrelic/pulumi-plugin.json +2 -1
- pulumi_newrelic/service_level.py +263 -263
- pulumi_newrelic/synthetics/__init__.py +2 -1
- pulumi_newrelic/synthetics/_inputs.py +265 -108
- pulumi_newrelic/synthetics/alert_condition.py +170 -180
- pulumi_newrelic/synthetics/broken_links_monitor.py +297 -249
- pulumi_newrelic/synthetics/cert_check_monitor.py +306 -258
- pulumi_newrelic/synthetics/get_private_location.py +51 -47
- pulumi_newrelic/synthetics/get_secure_credential.py +39 -31
- pulumi_newrelic/synthetics/monitor.py +658 -460
- pulumi_newrelic/synthetics/multi_location_alert_condition.py +211 -205
- pulumi_newrelic/synthetics/outputs.py +92 -87
- pulumi_newrelic/synthetics/private_location.py +118 -112
- pulumi_newrelic/synthetics/script_monitor.py +613 -373
- pulumi_newrelic/synthetics/secure_credential.py +97 -95
- pulumi_newrelic/synthetics/step_monitor.py +445 -275
- pulumi_newrelic/user.py +84 -80
- pulumi_newrelic/workflow.py +336 -322
- {pulumi_newrelic-5.22.0.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/METADATA +7 -6
- pulumi_newrelic-5.58.0a1763707205.dist-info/RECORD +92 -0
- {pulumi_newrelic-5.22.0.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/WHEEL +1 -1
- pulumi_newrelic-5.22.0.dist-info/RECORD +0 -89
- {pulumi_newrelic-5.22.0.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/top_level.txt +0 -0
|
@@ -1,12 +1,17 @@
|
|
|
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
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
10
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
10
15
|
from . import _utilities
|
|
11
16
|
|
|
12
17
|
__all__ = ['AlertPolicyChannelArgs', 'AlertPolicyChannel']
|
|
@@ -14,68 +19,68 @@ __all__ = ['AlertPolicyChannelArgs', 'AlertPolicyChannel']
|
|
|
14
19
|
@pulumi.input_type
|
|
15
20
|
class AlertPolicyChannelArgs:
|
|
16
21
|
def __init__(__self__, *,
|
|
17
|
-
channel_ids: pulumi.Input[Sequence[pulumi.Input[
|
|
18
|
-
policy_id: pulumi.Input[
|
|
19
|
-
account_id: Optional[pulumi.Input[
|
|
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):
|
|
20
25
|
"""
|
|
21
26
|
The set of arguments for constructing a AlertPolicyChannel resource.
|
|
22
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
23
|
-
:param pulumi.Input[
|
|
24
|
-
:param pulumi.Input[
|
|
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.
|
|
25
30
|
"""
|
|
26
31
|
pulumi.set(__self__, "channel_ids", channel_ids)
|
|
27
32
|
pulumi.set(__self__, "policy_id", policy_id)
|
|
28
33
|
if account_id is not None:
|
|
29
34
|
pulumi.set(__self__, "account_id", account_id)
|
|
30
35
|
|
|
31
|
-
@property
|
|
36
|
+
@_builtins.property
|
|
32
37
|
@pulumi.getter(name="channelIds")
|
|
33
|
-
def channel_ids(self) -> pulumi.Input[Sequence[pulumi.Input[
|
|
38
|
+
def channel_ids(self) -> pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]:
|
|
34
39
|
"""
|
|
35
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.
|
|
36
41
|
"""
|
|
37
42
|
return pulumi.get(self, "channel_ids")
|
|
38
43
|
|
|
39
44
|
@channel_ids.setter
|
|
40
|
-
def channel_ids(self, value: pulumi.Input[Sequence[pulumi.Input[
|
|
45
|
+
def channel_ids(self, value: pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]):
|
|
41
46
|
pulumi.set(self, "channel_ids", value)
|
|
42
47
|
|
|
43
|
-
@property
|
|
48
|
+
@_builtins.property
|
|
44
49
|
@pulumi.getter(name="policyId")
|
|
45
|
-
def policy_id(self) -> pulumi.Input[
|
|
50
|
+
def policy_id(self) -> pulumi.Input[_builtins.str]:
|
|
46
51
|
"""
|
|
47
52
|
The ID of the policy.
|
|
48
53
|
"""
|
|
49
54
|
return pulumi.get(self, "policy_id")
|
|
50
55
|
|
|
51
56
|
@policy_id.setter
|
|
52
|
-
def policy_id(self, value: pulumi.Input[
|
|
57
|
+
def policy_id(self, value: pulumi.Input[_builtins.str]):
|
|
53
58
|
pulumi.set(self, "policy_id", value)
|
|
54
59
|
|
|
55
|
-
@property
|
|
60
|
+
@_builtins.property
|
|
56
61
|
@pulumi.getter(name="accountId")
|
|
57
|
-
def account_id(self) -> Optional[pulumi.Input[
|
|
62
|
+
def account_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
58
63
|
"""
|
|
59
64
|
Determines the New Relic account where the alert policy channel will be created. Defaults to the account associated with the API key used.
|
|
60
65
|
"""
|
|
61
66
|
return pulumi.get(self, "account_id")
|
|
62
67
|
|
|
63
68
|
@account_id.setter
|
|
64
|
-
def account_id(self, value: Optional[pulumi.Input[
|
|
69
|
+
def account_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
65
70
|
pulumi.set(self, "account_id", value)
|
|
66
71
|
|
|
67
72
|
|
|
68
73
|
@pulumi.input_type
|
|
69
74
|
class _AlertPolicyChannelState:
|
|
70
75
|
def __init__(__self__, *,
|
|
71
|
-
account_id: Optional[pulumi.Input[
|
|
72
|
-
channel_ids: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
73
|
-
policy_id: Optional[pulumi.Input[
|
|
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):
|
|
74
79
|
"""
|
|
75
80
|
Input properties used for looking up and filtering AlertPolicyChannel resources.
|
|
76
|
-
:param pulumi.Input[
|
|
77
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
78
|
-
:param pulumi.Input[
|
|
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.
|
|
79
84
|
"""
|
|
80
85
|
if account_id is not None:
|
|
81
86
|
pulumi.set(__self__, "account_id", account_id)
|
|
@@ -84,81 +89,85 @@ class _AlertPolicyChannelState:
|
|
|
84
89
|
if policy_id is not None:
|
|
85
90
|
pulumi.set(__self__, "policy_id", policy_id)
|
|
86
91
|
|
|
87
|
-
@property
|
|
92
|
+
@_builtins.property
|
|
88
93
|
@pulumi.getter(name="accountId")
|
|
89
|
-
def account_id(self) -> Optional[pulumi.Input[
|
|
94
|
+
def account_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
90
95
|
"""
|
|
91
96
|
Determines the New Relic account where the alert policy channel will be created. Defaults to the account associated with the API key used.
|
|
92
97
|
"""
|
|
93
98
|
return pulumi.get(self, "account_id")
|
|
94
99
|
|
|
95
100
|
@account_id.setter
|
|
96
|
-
def account_id(self, value: Optional[pulumi.Input[
|
|
101
|
+
def account_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
97
102
|
pulumi.set(self, "account_id", value)
|
|
98
103
|
|
|
99
|
-
@property
|
|
104
|
+
@_builtins.property
|
|
100
105
|
@pulumi.getter(name="channelIds")
|
|
101
|
-
def channel_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
106
|
+
def channel_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
|
102
107
|
"""
|
|
103
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.
|
|
104
109
|
"""
|
|
105
110
|
return pulumi.get(self, "channel_ids")
|
|
106
111
|
|
|
107
112
|
@channel_ids.setter
|
|
108
|
-
def channel_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
113
|
+
def channel_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
|
109
114
|
pulumi.set(self, "channel_ids", value)
|
|
110
115
|
|
|
111
|
-
@property
|
|
116
|
+
@_builtins.property
|
|
112
117
|
@pulumi.getter(name="policyId")
|
|
113
|
-
def policy_id(self) -> Optional[pulumi.Input[
|
|
118
|
+
def policy_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
114
119
|
"""
|
|
115
120
|
The ID of the policy.
|
|
116
121
|
"""
|
|
117
122
|
return pulumi.get(self, "policy_id")
|
|
118
123
|
|
|
119
124
|
@policy_id.setter
|
|
120
|
-
def policy_id(self, value: Optional[pulumi.Input[
|
|
125
|
+
def policy_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
121
126
|
pulumi.set(self, "policy_id", value)
|
|
122
127
|
|
|
123
128
|
|
|
129
|
+
@pulumi.type_token("newrelic:index/alertPolicyChannel:AlertPolicyChannel")
|
|
124
130
|
class AlertPolicyChannel(pulumi.CustomResource):
|
|
125
131
|
@overload
|
|
126
132
|
def __init__(__self__,
|
|
127
133
|
resource_name: str,
|
|
128
134
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
129
|
-
account_id: Optional[pulumi.Input[
|
|
130
|
-
channel_ids: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
131
|
-
policy_id: Optional[pulumi.Input[
|
|
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,
|
|
132
138
|
__props__=None):
|
|
133
139
|
"""
|
|
134
140
|
Use this resource to map alert policies to alert channels in New Relic.
|
|
135
141
|
|
|
136
|
-
> **WARNING:** The `AlertPolicyChannel` resource is deprecated and will be removed in
|
|
142
|
+
> **WARNING:** The `AlertPolicyChannel` resource is **deprecated** and will be **removed in a future major release**. As an alternative, you can map channels to policies using the resource `Workflow`, with the channels to be mapped created using a combination of the newer resources `NotificationDestination` and `NotificationChannel`. We **strongly recommend** migrating to these new resources at the earliest. Please refer to this example for a detailed illustration on setting up channels and workflows with these resources.
|
|
137
143
|
|
|
138
144
|
## Example Usage
|
|
139
145
|
|
|
140
146
|
The example below will apply multiple alert channels to an existing New Relic alert policy.
|
|
141
147
|
|
|
142
|
-
<!--Start PulumiCodeChooser -->
|
|
143
148
|
```python
|
|
144
149
|
import pulumi
|
|
145
150
|
import pulumi_newrelic as newrelic
|
|
146
151
|
|
|
152
|
+
# Fetches the data for this policy from your New Relic account
|
|
153
|
+
# and is referenced in the newrelic_alert_policy_channel block below.
|
|
147
154
|
example_policy = newrelic.get_alert_policy(name="my-alert-policy")
|
|
148
155
|
# Creates an email alert channel.
|
|
149
|
-
email_channel = newrelic.AlertChannel("
|
|
156
|
+
email_channel = newrelic.AlertChannel("email_channel",
|
|
157
|
+
name="bar",
|
|
150
158
|
type="email",
|
|
151
|
-
config=
|
|
152
|
-
recipients
|
|
153
|
-
include_json_attachment
|
|
154
|
-
)
|
|
159
|
+
config={
|
|
160
|
+
"recipients": "foo@example.com",
|
|
161
|
+
"include_json_attachment": "1",
|
|
162
|
+
})
|
|
155
163
|
# Creates a Slack alert channel.
|
|
156
|
-
slack_channel = newrelic.AlertChannel("
|
|
164
|
+
slack_channel = newrelic.AlertChannel("slack_channel",
|
|
165
|
+
name="slack-channel-example",
|
|
157
166
|
type="slack",
|
|
158
|
-
config=
|
|
159
|
-
channel
|
|
160
|
-
url
|
|
161
|
-
)
|
|
167
|
+
config={
|
|
168
|
+
"channel": "#example-channel",
|
|
169
|
+
"url": "http://example-org.slack.com",
|
|
170
|
+
})
|
|
162
171
|
# Applies the created channels above to the alert policy
|
|
163
172
|
# referenced at the top of the config.
|
|
164
173
|
foo = newrelic.AlertPolicyChannel("foo",
|
|
@@ -168,7 +177,6 @@ class AlertPolicyChannel(pulumi.CustomResource):
|
|
|
168
177
|
slack_channel.id,
|
|
169
178
|
])
|
|
170
179
|
```
|
|
171
|
-
<!--End PulumiCodeChooser -->
|
|
172
180
|
|
|
173
181
|
## Import
|
|
174
182
|
|
|
@@ -181,9 +189,9 @@ class AlertPolicyChannel(pulumi.CustomResource):
|
|
|
181
189
|
|
|
182
190
|
:param str resource_name: The name of the resource.
|
|
183
191
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
184
|
-
:param pulumi.Input[
|
|
185
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
186
|
-
:param pulumi.Input[
|
|
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.
|
|
187
195
|
"""
|
|
188
196
|
...
|
|
189
197
|
@overload
|
|
@@ -194,32 +202,35 @@ class AlertPolicyChannel(pulumi.CustomResource):
|
|
|
194
202
|
"""
|
|
195
203
|
Use this resource to map alert policies to alert channels in New Relic.
|
|
196
204
|
|
|
197
|
-
> **WARNING:** The `AlertPolicyChannel` resource is deprecated and will be removed in
|
|
205
|
+
> **WARNING:** The `AlertPolicyChannel` resource is **deprecated** and will be **removed in a future major release**. As an alternative, you can map channels to policies using the resource `Workflow`, with the channels to be mapped created using a combination of the newer resources `NotificationDestination` and `NotificationChannel`. We **strongly recommend** migrating to these new resources at the earliest. Please refer to this example for a detailed illustration on setting up channels and workflows with these resources.
|
|
198
206
|
|
|
199
207
|
## Example Usage
|
|
200
208
|
|
|
201
209
|
The example below will apply multiple alert channels to an existing New Relic alert policy.
|
|
202
210
|
|
|
203
|
-
<!--Start PulumiCodeChooser -->
|
|
204
211
|
```python
|
|
205
212
|
import pulumi
|
|
206
213
|
import pulumi_newrelic as newrelic
|
|
207
214
|
|
|
215
|
+
# Fetches the data for this policy from your New Relic account
|
|
216
|
+
# and is referenced in the newrelic_alert_policy_channel block below.
|
|
208
217
|
example_policy = newrelic.get_alert_policy(name="my-alert-policy")
|
|
209
218
|
# Creates an email alert channel.
|
|
210
|
-
email_channel = newrelic.AlertChannel("
|
|
219
|
+
email_channel = newrelic.AlertChannel("email_channel",
|
|
220
|
+
name="bar",
|
|
211
221
|
type="email",
|
|
212
|
-
config=
|
|
213
|
-
recipients
|
|
214
|
-
include_json_attachment
|
|
215
|
-
)
|
|
222
|
+
config={
|
|
223
|
+
"recipients": "foo@example.com",
|
|
224
|
+
"include_json_attachment": "1",
|
|
225
|
+
})
|
|
216
226
|
# Creates a Slack alert channel.
|
|
217
|
-
slack_channel = newrelic.AlertChannel("
|
|
227
|
+
slack_channel = newrelic.AlertChannel("slack_channel",
|
|
228
|
+
name="slack-channel-example",
|
|
218
229
|
type="slack",
|
|
219
|
-
config=
|
|
220
|
-
channel
|
|
221
|
-
url
|
|
222
|
-
)
|
|
230
|
+
config={
|
|
231
|
+
"channel": "#example-channel",
|
|
232
|
+
"url": "http://example-org.slack.com",
|
|
233
|
+
})
|
|
223
234
|
# Applies the created channels above to the alert policy
|
|
224
235
|
# referenced at the top of the config.
|
|
225
236
|
foo = newrelic.AlertPolicyChannel("foo",
|
|
@@ -229,7 +240,6 @@ class AlertPolicyChannel(pulumi.CustomResource):
|
|
|
229
240
|
slack_channel.id,
|
|
230
241
|
])
|
|
231
242
|
```
|
|
232
|
-
<!--End PulumiCodeChooser -->
|
|
233
243
|
|
|
234
244
|
## Import
|
|
235
245
|
|
|
@@ -255,9 +265,9 @@ class AlertPolicyChannel(pulumi.CustomResource):
|
|
|
255
265
|
def _internal_init(__self__,
|
|
256
266
|
resource_name: str,
|
|
257
267
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
258
|
-
account_id: Optional[pulumi.Input[
|
|
259
|
-
channel_ids: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
260
|
-
policy_id: Optional[pulumi.Input[
|
|
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,
|
|
261
271
|
__props__=None):
|
|
262
272
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
263
273
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -284,9 +294,9 @@ class AlertPolicyChannel(pulumi.CustomResource):
|
|
|
284
294
|
def get(resource_name: str,
|
|
285
295
|
id: pulumi.Input[str],
|
|
286
296
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
287
|
-
account_id: Optional[pulumi.Input[
|
|
288
|
-
channel_ids: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
289
|
-
policy_id: Optional[pulumi.Input[
|
|
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':
|
|
290
300
|
"""
|
|
291
301
|
Get an existing AlertPolicyChannel resource's state with the given name, id, and optional extra
|
|
292
302
|
properties used to qualify the lookup.
|
|
@@ -294,9 +304,9 @@ class AlertPolicyChannel(pulumi.CustomResource):
|
|
|
294
304
|
:param str resource_name: The unique name of the resulting resource.
|
|
295
305
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
296
306
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
297
|
-
:param pulumi.Input[
|
|
298
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
299
|
-
:param pulumi.Input[
|
|
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.
|
|
300
310
|
"""
|
|
301
311
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
302
312
|
|
|
@@ -307,25 +317,25 @@ class AlertPolicyChannel(pulumi.CustomResource):
|
|
|
307
317
|
__props__.__dict__["policy_id"] = policy_id
|
|
308
318
|
return AlertPolicyChannel(resource_name, opts=opts, __props__=__props__)
|
|
309
319
|
|
|
310
|
-
@property
|
|
320
|
+
@_builtins.property
|
|
311
321
|
@pulumi.getter(name="accountId")
|
|
312
|
-
def account_id(self) -> pulumi.Output[
|
|
322
|
+
def account_id(self) -> pulumi.Output[_builtins.str]:
|
|
313
323
|
"""
|
|
314
324
|
Determines the New Relic account where the alert policy channel will be created. Defaults to the account associated with the API key used.
|
|
315
325
|
"""
|
|
316
326
|
return pulumi.get(self, "account_id")
|
|
317
327
|
|
|
318
|
-
@property
|
|
328
|
+
@_builtins.property
|
|
319
329
|
@pulumi.getter(name="channelIds")
|
|
320
|
-
def channel_ids(self) -> pulumi.Output[Sequence[
|
|
330
|
+
def channel_ids(self) -> pulumi.Output[Sequence[_builtins.str]]:
|
|
321
331
|
"""
|
|
322
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.
|
|
323
333
|
"""
|
|
324
334
|
return pulumi.get(self, "channel_ids")
|
|
325
335
|
|
|
326
|
-
@property
|
|
336
|
+
@_builtins.property
|
|
327
337
|
@pulumi.getter(name="policyId")
|
|
328
|
-
def policy_id(self) -> pulumi.Output[
|
|
338
|
+
def policy_id(self) -> pulumi.Output[_builtins.str]:
|
|
329
339
|
"""
|
|
330
340
|
The ID of the policy.
|
|
331
341
|
"""
|