pulumi-newrelic 5.16.0a1698964311__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.

Files changed (92) hide show
  1. pulumi_newrelic/__init__.py +58 -1
  2. pulumi_newrelic/_inputs.py +10772 -2775
  3. pulumi_newrelic/_utilities.py +92 -11
  4. pulumi_newrelic/account_management.py +56 -42
  5. pulumi_newrelic/alert_channel.py +177 -151
  6. pulumi_newrelic/alert_condition.py +313 -301
  7. pulumi_newrelic/alert_muting_rule.py +195 -138
  8. pulumi_newrelic/alert_policy.py +157 -109
  9. pulumi_newrelic/alert_policy_channel.py +95 -81
  10. pulumi_newrelic/api_access_key.py +191 -209
  11. pulumi_newrelic/browser_application.py +161 -153
  12. pulumi_newrelic/cloud/__init__.py +3 -1
  13. pulumi_newrelic/cloud/_inputs.py +4267 -2710
  14. pulumi_newrelic/cloud/aws_govcloud_integrations.py +238 -200
  15. pulumi_newrelic/cloud/aws_govcloud_link_account.py +159 -212
  16. pulumi_newrelic/cloud/aws_integrations.py +518 -1490
  17. pulumi_newrelic/cloud/aws_link_account.py +88 -76
  18. pulumi_newrelic/cloud/azure_integrations.py +681 -587
  19. pulumi_newrelic/cloud/azure_link_account.py +129 -117
  20. pulumi_newrelic/cloud/gcp_integrations.py +436 -408
  21. pulumi_newrelic/cloud/gcp_link_account.py +71 -59
  22. pulumi_newrelic/cloud/oci_link_account.py +926 -0
  23. pulumi_newrelic/cloud/outputs.py +1678 -2317
  24. pulumi_newrelic/config/__init__.py +2 -1
  25. pulumi_newrelic/config/__init__.pyi +45 -0
  26. pulumi_newrelic/config/vars.py +22 -17
  27. pulumi_newrelic/data_partition_rule.py +129 -117
  28. pulumi_newrelic/entity_tags.py +153 -31
  29. pulumi_newrelic/events_to_metrics_rule.py +114 -102
  30. pulumi_newrelic/get_account.py +41 -29
  31. pulumi_newrelic/get_alert_channel.py +73 -28
  32. pulumi_newrelic/get_alert_policy.py +83 -34
  33. pulumi_newrelic/get_application.py +51 -39
  34. pulumi_newrelic/get_authentication_domain.py +111 -0
  35. pulumi_newrelic/get_cloud_account.py +43 -31
  36. pulumi_newrelic/get_entity.py +126 -121
  37. pulumi_newrelic/get_group.py +190 -0
  38. pulumi_newrelic/get_key_transaction.py +117 -38
  39. pulumi_newrelic/get_notification_destination.py +86 -36
  40. pulumi_newrelic/get_obfuscation_expression.py +47 -35
  41. pulumi_newrelic/get_service_level_alert_helper.py +237 -137
  42. pulumi_newrelic/get_test_grok_pattern.py +47 -32
  43. pulumi_newrelic/get_user.py +165 -0
  44. pulumi_newrelic/group.py +286 -0
  45. pulumi_newrelic/infra_alert_condition.py +400 -382
  46. pulumi_newrelic/insights/__init__.py +2 -1
  47. pulumi_newrelic/insights/_inputs.py +94 -23
  48. pulumi_newrelic/insights/event.py +56 -48
  49. pulumi_newrelic/insights/outputs.py +51 -18
  50. pulumi_newrelic/key_transaction.py +465 -0
  51. pulumi_newrelic/log_parsing_rule.py +169 -153
  52. pulumi_newrelic/monitor_downtime.py +914 -0
  53. pulumi_newrelic/notification_channel.py +560 -418
  54. pulumi_newrelic/notification_destination.py +379 -124
  55. pulumi_newrelic/nrql_alert_condition.py +945 -513
  56. pulumi_newrelic/nrql_drop_rule.py +121 -129
  57. pulumi_newrelic/obfuscation_expression.py +88 -76
  58. pulumi_newrelic/obfuscation_rule.py +123 -109
  59. pulumi_newrelic/one_dashboard.py +118 -108
  60. pulumi_newrelic/one_dashboard_json.py +77 -67
  61. pulumi_newrelic/one_dashboard_raw.py +214 -202
  62. pulumi_newrelic/outputs.py +5491 -2141
  63. pulumi_newrelic/pipeline_cloud_rule.py +335 -0
  64. pulumi_newrelic/plugins/__init__.py +2 -1
  65. pulumi_newrelic/plugins/_inputs.py +520 -90
  66. pulumi_newrelic/plugins/application_settings.py +463 -167
  67. pulumi_newrelic/plugins/outputs.py +337 -75
  68. pulumi_newrelic/plugins/workload.py +387 -151
  69. pulumi_newrelic/provider.py +156 -142
  70. pulumi_newrelic/pulumi-plugin.json +2 -1
  71. pulumi_newrelic/service_level.py +277 -255
  72. pulumi_newrelic/synthetics/__init__.py +2 -1
  73. pulumi_newrelic/synthetics/_inputs.py +275 -106
  74. pulumi_newrelic/synthetics/alert_condition.py +174 -160
  75. pulumi_newrelic/synthetics/broken_links_monitor.py +367 -207
  76. pulumi_newrelic/synthetics/cert_check_monitor.py +380 -218
  77. pulumi_newrelic/synthetics/get_private_location.py +51 -39
  78. pulumi_newrelic/synthetics/get_secure_credential.py +39 -27
  79. pulumi_newrelic/synthetics/monitor.py +668 -462
  80. pulumi_newrelic/synthetics/multi_location_alert_condition.py +219 -201
  81. pulumi_newrelic/synthetics/outputs.py +102 -85
  82. pulumi_newrelic/synthetics/private_location.py +120 -110
  83. pulumi_newrelic/synthetics/script_monitor.py +623 -375
  84. pulumi_newrelic/synthetics/secure_credential.py +99 -93
  85. pulumi_newrelic/synthetics/step_monitor.py +545 -201
  86. pulumi_newrelic/user.py +366 -0
  87. pulumi_newrelic/workflow.py +348 -312
  88. {pulumi_newrelic-5.16.0a1698964311.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/METADATA +8 -7
  89. pulumi_newrelic-5.58.0a1763707205.dist-info/RECORD +92 -0
  90. {pulumi_newrelic-5.16.0a1698964311.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/WHEEL +1 -1
  91. pulumi_newrelic-5.16.0a1698964311.dist-info/RECORD +0 -82
  92. {pulumi_newrelic-5.16.0a1698964311.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 the Pulumi Terraform Bridge (tfgen) Tool. ***
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 copy
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[int]]],
18
- policy_id: pulumi.Input[int],
19
- account_id: Optional[pulumi.Input[int]] = 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):
20
25
  """
21
26
  The set of arguments for constructing a AlertPolicyChannel resource.
22
- :param pulumi.Input[Sequence[pulumi.Input[int]]] 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.
23
- :param pulumi.Input[int] policy_id: The ID of the policy.
24
- :param pulumi.Input[int] 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.
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[int]]]:
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[int]]]):
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[int]:
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[int]):
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[int]]:
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[int]]):
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[int]] = None,
72
- channel_ids: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
73
- policy_id: Optional[pulumi.Input[int]] = 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):
74
79
  """
75
80
  Input properties used for looking up and filtering AlertPolicyChannel resources.
76
- :param pulumi.Input[int] 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.
77
- :param pulumi.Input[Sequence[pulumi.Input[int]]] 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.
78
- :param pulumi.Input[int] 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.
79
84
  """
80
85
  if account_id is not None:
81
86
  pulumi.set(__self__, "account_id", account_id)
@@ -84,56 +89,57 @@ 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[int]]:
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[int]]):
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[int]]]]:
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[int]]]]):
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[int]]:
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[int]]):
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[int]] = None,
130
- channel_ids: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
131
- policy_id: Optional[pulumi.Input[int]] = 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,
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 the next major release. For managing channel resources in Workflows, use `NotificationChannel`.
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
 
@@ -143,21 +149,25 @@ class AlertPolicyChannel(pulumi.CustomResource):
143
149
  import pulumi
144
150
  import pulumi_newrelic as newrelic
145
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.
146
154
  example_policy = newrelic.get_alert_policy(name="my-alert-policy")
147
155
  # Creates an email alert channel.
148
- email_channel = newrelic.AlertChannel("emailChannel",
156
+ email_channel = newrelic.AlertChannel("email_channel",
157
+ name="bar",
149
158
  type="email",
150
- config=newrelic.AlertChannelConfigArgs(
151
- recipients="foo@example.com",
152
- include_json_attachment="1",
153
- ))
159
+ config={
160
+ "recipients": "foo@example.com",
161
+ "include_json_attachment": "1",
162
+ })
154
163
  # Creates a Slack alert channel.
155
- slack_channel = newrelic.AlertChannel("slackChannel",
164
+ slack_channel = newrelic.AlertChannel("slack_channel",
165
+ name="slack-channel-example",
156
166
  type="slack",
157
- config=newrelic.AlertChannelConfigArgs(
158
- channel="#example-channel",
159
- url="http://example-org.slack.com",
160
- ))
167
+ config={
168
+ "channel": "#example-channel",
169
+ "url": "http://example-org.slack.com",
170
+ })
161
171
  # Applies the created channels above to the alert policy
162
172
  # referenced at the top of the config.
163
173
  foo = newrelic.AlertPolicyChannel("foo",
@@ -170,18 +180,18 @@ class AlertPolicyChannel(pulumi.CustomResource):
170
180
 
171
181
  ## Import
172
182
 
173
- Alert policy channels can be imported using the following notation`<policyID>:<channelID>:<channelID>`, e.g.
183
+ Alert policy channels can be imported using the following notation: `<policyID>:<channelID>:<channelID>`, e.g.
174
184
 
175
185
  ```sh
176
- $ pulumi import newrelic:index/alertPolicyChannel:AlertPolicyChannel foo 123456:3462754:2938324
186
+ $ pulumi import newrelic:index/alertPolicyChannel:AlertPolicyChannel foo 123456:3462754:2938324
177
187
  ```
178
- When importing `newrelic_alert_policy_channel` resource, the attribute `channel_ids`* will be set in your Terraform state. You can import multiple channels as long as those channel IDs are included as part of the import ID hash.
188
+ When importing `newrelic_alert_policy_channel` resource, the attribute `channel_ids`* will be set in your Terraform state. You can import multiple channels as long as those channel IDs are included as part of the import ID hash.
179
189
 
180
190
  :param str resource_name: The name of the resource.
181
191
  :param pulumi.ResourceOptions opts: Options for the resource.
182
- :param pulumi.Input[int] 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.
183
- :param pulumi.Input[Sequence[pulumi.Input[int]]] 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.
184
- :param pulumi.Input[int] 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.
185
195
  """
186
196
  ...
187
197
  @overload
@@ -192,7 +202,7 @@ class AlertPolicyChannel(pulumi.CustomResource):
192
202
  """
193
203
  Use this resource to map alert policies to alert channels in New Relic.
194
204
 
195
- > **WARNING:** The `AlertPolicyChannel` resource is deprecated and will be removed in the next major release. For managing channel resources in Workflows, use `NotificationChannel`.
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.
196
206
 
197
207
  ## Example Usage
198
208
 
@@ -202,21 +212,25 @@ class AlertPolicyChannel(pulumi.CustomResource):
202
212
  import pulumi
203
213
  import pulumi_newrelic as newrelic
204
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.
205
217
  example_policy = newrelic.get_alert_policy(name="my-alert-policy")
206
218
  # Creates an email alert channel.
207
- email_channel = newrelic.AlertChannel("emailChannel",
219
+ email_channel = newrelic.AlertChannel("email_channel",
220
+ name="bar",
208
221
  type="email",
209
- config=newrelic.AlertChannelConfigArgs(
210
- recipients="foo@example.com",
211
- include_json_attachment="1",
212
- ))
222
+ config={
223
+ "recipients": "foo@example.com",
224
+ "include_json_attachment": "1",
225
+ })
213
226
  # Creates a Slack alert channel.
214
- slack_channel = newrelic.AlertChannel("slackChannel",
227
+ slack_channel = newrelic.AlertChannel("slack_channel",
228
+ name="slack-channel-example",
215
229
  type="slack",
216
- config=newrelic.AlertChannelConfigArgs(
217
- channel="#example-channel",
218
- url="http://example-org.slack.com",
219
- ))
230
+ config={
231
+ "channel": "#example-channel",
232
+ "url": "http://example-org.slack.com",
233
+ })
220
234
  # Applies the created channels above to the alert policy
221
235
  # referenced at the top of the config.
222
236
  foo = newrelic.AlertPolicyChannel("foo",
@@ -229,12 +243,12 @@ class AlertPolicyChannel(pulumi.CustomResource):
229
243
 
230
244
  ## Import
231
245
 
232
- Alert policy channels can be imported using the following notation`<policyID>:<channelID>:<channelID>`, e.g.
246
+ Alert policy channels can be imported using the following notation: `<policyID>:<channelID>:<channelID>`, e.g.
233
247
 
234
248
  ```sh
235
- $ pulumi import newrelic:index/alertPolicyChannel:AlertPolicyChannel foo 123456:3462754:2938324
249
+ $ pulumi import newrelic:index/alertPolicyChannel:AlertPolicyChannel foo 123456:3462754:2938324
236
250
  ```
237
- When importing `newrelic_alert_policy_channel` resource, the attribute `channel_ids`* will be set in your Terraform state. You can import multiple channels as long as those channel IDs are included as part of the import ID hash.
251
+ When importing `newrelic_alert_policy_channel` resource, the attribute `channel_ids`* will be set in your Terraform state. You can import multiple channels as long as those channel IDs are included as part of the import ID hash.
238
252
 
239
253
  :param str resource_name: The name of the resource.
240
254
  :param AlertPolicyChannelArgs args: The arguments to use to populate this resource's properties.
@@ -251,9 +265,9 @@ class AlertPolicyChannel(pulumi.CustomResource):
251
265
  def _internal_init(__self__,
252
266
  resource_name: str,
253
267
  opts: Optional[pulumi.ResourceOptions] = None,
254
- account_id: Optional[pulumi.Input[int]] = None,
255
- channel_ids: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
256
- policy_id: Optional[pulumi.Input[int]] = 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,
257
271
  __props__=None):
258
272
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
259
273
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -280,9 +294,9 @@ class AlertPolicyChannel(pulumi.CustomResource):
280
294
  def get(resource_name: str,
281
295
  id: pulumi.Input[str],
282
296
  opts: Optional[pulumi.ResourceOptions] = None,
283
- account_id: Optional[pulumi.Input[int]] = None,
284
- channel_ids: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
285
- policy_id: Optional[pulumi.Input[int]] = 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':
286
300
  """
287
301
  Get an existing AlertPolicyChannel resource's state with the given name, id, and optional extra
288
302
  properties used to qualify the lookup.
@@ -290,9 +304,9 @@ class AlertPolicyChannel(pulumi.CustomResource):
290
304
  :param str resource_name: The unique name of the resulting resource.
291
305
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
292
306
  :param pulumi.ResourceOptions opts: Options for the resource.
293
- :param pulumi.Input[int] 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.
294
- :param pulumi.Input[Sequence[pulumi.Input[int]]] 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.
295
- :param pulumi.Input[int] 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.
296
310
  """
297
311
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
298
312
 
@@ -303,25 +317,25 @@ class AlertPolicyChannel(pulumi.CustomResource):
303
317
  __props__.__dict__["policy_id"] = policy_id
304
318
  return AlertPolicyChannel(resource_name, opts=opts, __props__=__props__)
305
319
 
306
- @property
320
+ @_builtins.property
307
321
  @pulumi.getter(name="accountId")
308
- def account_id(self) -> pulumi.Output[int]:
322
+ def account_id(self) -> pulumi.Output[_builtins.str]:
309
323
  """
310
324
  Determines the New Relic account where the alert policy channel will be created. Defaults to the account associated with the API key used.
311
325
  """
312
326
  return pulumi.get(self, "account_id")
313
327
 
314
- @property
328
+ @_builtins.property
315
329
  @pulumi.getter(name="channelIds")
316
- def channel_ids(self) -> pulumi.Output[Sequence[int]]:
330
+ def channel_ids(self) -> pulumi.Output[Sequence[_builtins.str]]:
317
331
  """
318
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.
319
333
  """
320
334
  return pulumi.get(self, "channel_ids")
321
335
 
322
- @property
336
+ @_builtins.property
323
337
  @pulumi.getter(name="policyId")
324
- def policy_id(self) -> pulumi.Output[int]:
338
+ def policy_id(self) -> pulumi.Output[_builtins.str]:
325
339
  """
326
340
  The ID of the policy.
327
341
  """