pulumi-newrelic 5.49.0a1753337775__py3-none-any.whl → 5.49.0a1753398082__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 (89) hide show
  1. pulumi_newrelic/__init__.py +1 -1
  2. pulumi_newrelic/_inputs.py +3759 -3760
  3. pulumi_newrelic/account_management.py +35 -36
  4. pulumi_newrelic/alert_channel.py +55 -56
  5. pulumi_newrelic/alert_condition.py +217 -218
  6. pulumi_newrelic/alert_muting_rule.py +92 -93
  7. pulumi_newrelic/alert_policy.py +69 -70
  8. pulumi_newrelic/alert_policy_channel.py +52 -53
  9. pulumi_newrelic/api_access_key.py +112 -113
  10. pulumi_newrelic/browser_application.py +113 -114
  11. pulumi_newrelic/cloud/__init__.py +1 -1
  12. pulumi_newrelic/cloud/_inputs.py +2129 -2130
  13. pulumi_newrelic/cloud/aws_govcloud_integrations.py +95 -96
  14. pulumi_newrelic/cloud/aws_govcloud_link_account.py +69 -70
  15. pulumi_newrelic/cloud/aws_integrations.py +194 -195
  16. pulumi_newrelic/cloud/aws_link_account.py +69 -70
  17. pulumi_newrelic/cloud/azure_integrations.py +131 -132
  18. pulumi_newrelic/cloud/azure_link_account.py +103 -104
  19. pulumi_newrelic/cloud/gcp_integrations.py +113 -114
  20. pulumi_newrelic/cloud/gcp_link_account.py +52 -53
  21. pulumi_newrelic/cloud/outputs.py +1417 -1418
  22. pulumi_newrelic/config/__init__.py +1 -1
  23. pulumi_newrelic/config/__init__.pyi +1 -2
  24. pulumi_newrelic/config/vars.py +14 -15
  25. pulumi_newrelic/data_partition_rule.py +112 -113
  26. pulumi_newrelic/entity_tags.py +21 -22
  27. pulumi_newrelic/events_to_metrics_rule.py +95 -96
  28. pulumi_newrelic/get_account.py +21 -22
  29. pulumi_newrelic/get_alert_channel.py +20 -21
  30. pulumi_newrelic/get_alert_policy.py +25 -26
  31. pulumi_newrelic/get_application.py +13 -14
  32. pulumi_newrelic/get_authentication_domain.py +9 -10
  33. pulumi_newrelic/get_cloud_account.py +21 -22
  34. pulumi_newrelic/get_entity.py +52 -53
  35. pulumi_newrelic/get_group.py +17 -18
  36. pulumi_newrelic/get_key_transaction.py +25 -26
  37. pulumi_newrelic/get_notification_destination.py +29 -30
  38. pulumi_newrelic/get_obfuscation_expression.py +15 -16
  39. pulumi_newrelic/get_service_level_alert_helper.py +53 -54
  40. pulumi_newrelic/get_test_grok_pattern.py +22 -23
  41. pulumi_newrelic/get_user.py +21 -22
  42. pulumi_newrelic/group.py +52 -53
  43. pulumi_newrelic/infra_alert_condition.py +255 -256
  44. pulumi_newrelic/insights/__init__.py +1 -1
  45. pulumi_newrelic/insights/_inputs.py +32 -33
  46. pulumi_newrelic/insights/event.py +4 -5
  47. pulumi_newrelic/insights/outputs.py +22 -23
  48. pulumi_newrelic/key_transaction.py +104 -105
  49. pulumi_newrelic/log_parsing_rule.py +146 -147
  50. pulumi_newrelic/monitor_downtime.py +143 -144
  51. pulumi_newrelic/notification_channel.py +115 -116
  52. pulumi_newrelic/notification_destination.py +111 -112
  53. pulumi_newrelic/nrql_alert_condition.py +430 -431
  54. pulumi_newrelic/nrql_drop_rule.py +78 -79
  55. pulumi_newrelic/obfuscation_expression.py +69 -70
  56. pulumi_newrelic/obfuscation_rule.py +89 -90
  57. pulumi_newrelic/one_dashboard.py +93 -94
  58. pulumi_newrelic/one_dashboard_json.py +62 -63
  59. pulumi_newrelic/one_dashboard_raw.py +90 -91
  60. pulumi_newrelic/outputs.py +2646 -2647
  61. pulumi_newrelic/plugins/__init__.py +1 -1
  62. pulumi_newrelic/plugins/_inputs.py +158 -159
  63. pulumi_newrelic/plugins/application_settings.py +167 -168
  64. pulumi_newrelic/plugins/outputs.py +108 -109
  65. pulumi_newrelic/plugins/workload.py +131 -132
  66. pulumi_newrelic/provider.py +106 -107
  67. pulumi_newrelic/pulumi-plugin.json +1 -1
  68. pulumi_newrelic/service_level.py +76 -77
  69. pulumi_newrelic/synthetics/__init__.py +1 -1
  70. pulumi_newrelic/synthetics/_inputs.py +127 -128
  71. pulumi_newrelic/synthetics/alert_condition.py +95 -96
  72. pulumi_newrelic/synthetics/broken_links_monitor.py +197 -198
  73. pulumi_newrelic/synthetics/cert_check_monitor.py +205 -206
  74. pulumi_newrelic/synthetics/get_private_location.py +21 -22
  75. pulumi_newrelic/synthetics/get_secure_credential.py +19 -20
  76. pulumi_newrelic/synthetics/monitor.py +378 -379
  77. pulumi_newrelic/synthetics/multi_location_alert_condition.py +118 -119
  78. pulumi_newrelic/synthetics/outputs.py +85 -86
  79. pulumi_newrelic/synthetics/private_location.py +105 -106
  80. pulumi_newrelic/synthetics/script_monitor.py +302 -303
  81. pulumi_newrelic/synthetics/secure_credential.py +86 -87
  82. pulumi_newrelic/synthetics/step_monitor.py +220 -221
  83. pulumi_newrelic/user.py +69 -70
  84. pulumi_newrelic/workflow.py +139 -140
  85. {pulumi_newrelic-5.49.0a1753337775.dist-info → pulumi_newrelic-5.49.0a1753398082.dist-info}/METADATA +1 -1
  86. pulumi_newrelic-5.49.0a1753398082.dist-info/RECORD +90 -0
  87. pulumi_newrelic-5.49.0a1753337775.dist-info/RECORD +0 -90
  88. {pulumi_newrelic-5.49.0a1753337775.dist-info → pulumi_newrelic-5.49.0a1753398082.dist-info}/WHEEL +0 -0
  89. {pulumi_newrelic-5.49.0a1753337775.dist-info → pulumi_newrelic-5.49.0a1753398082.dist-info}/top_level.txt +0 -0
@@ -2,8 +2,7 @@
2
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 builtins
6
- import copy
5
+ import builtins as _builtins
7
6
  import warnings
8
7
  import sys
9
8
  import pulumi
@@ -20,16 +19,16 @@ __all__ = ['AlertPolicyArgs', 'AlertPolicy']
20
19
  @pulumi.input_type
21
20
  class AlertPolicyArgs:
22
21
  def __init__(__self__, *,
23
- account_id: Optional[pulumi.Input[builtins.str]] = None,
24
- channel_ids: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
25
- incident_preference: Optional[pulumi.Input[builtins.str]] = None,
26
- name: Optional[pulumi.Input[builtins.str]] = None):
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):
27
26
  """
28
27
  The set of arguments for constructing a AlertPolicy resource.
29
- :param pulumi.Input[builtins.str] account_id: The New Relic account ID to operate on. This allows the user to override the `account_id` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`.
30
- :param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] channel_ids: An array of channel IDs (integers) to assign to the policy. Adding or removing channel IDs from this array will result in a new alert policy resource being created and the old one being destroyed. Also note that channel IDs _cannot_ be imported.
31
- :param pulumi.Input[builtins.str] incident_preference: The rollup strategy for the policy. Options include: `PER_POLICY`, `PER_CONDITION`, or `PER_CONDITION_AND_TARGET`. The default is `PER_POLICY`.
32
- :param pulumi.Input[builtins.str] name: The name of the policy.
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.
33
32
  """
34
33
  if account_id is not None:
35
34
  pulumi.set(__self__, "account_id", account_id)
@@ -43,69 +42,69 @@ class AlertPolicyArgs:
43
42
  if name is not None:
44
43
  pulumi.set(__self__, "name", name)
45
44
 
46
- @property
45
+ @_builtins.property
47
46
  @pulumi.getter(name="accountId")
48
- def account_id(self) -> Optional[pulumi.Input[builtins.str]]:
47
+ def account_id(self) -> Optional[pulumi.Input[_builtins.str]]:
49
48
  """
50
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`.
51
50
  """
52
51
  return pulumi.get(self, "account_id")
53
52
 
54
53
  @account_id.setter
55
- def account_id(self, value: Optional[pulumi.Input[builtins.str]]):
54
+ def account_id(self, value: Optional[pulumi.Input[_builtins.str]]):
56
55
  pulumi.set(self, "account_id", value)
57
56
 
58
- @property
57
+ @_builtins.property
59
58
  @pulumi.getter(name="channelIds")
60
59
  @_utilities.deprecated("""The `channel_ids` attribute is deprecated and will be removed in the next major release of the provider.""")
61
- def channel_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]:
60
+ def channel_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
62
61
  """
63
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.
64
63
  """
65
64
  return pulumi.get(self, "channel_ids")
66
65
 
67
66
  @channel_ids.setter
68
- def channel_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]):
67
+ def channel_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
69
68
  pulumi.set(self, "channel_ids", value)
70
69
 
71
- @property
70
+ @_builtins.property
72
71
  @pulumi.getter(name="incidentPreference")
73
- def incident_preference(self) -> Optional[pulumi.Input[builtins.str]]:
72
+ def incident_preference(self) -> Optional[pulumi.Input[_builtins.str]]:
74
73
  """
75
74
  The rollup strategy for the policy. Options include: `PER_POLICY`, `PER_CONDITION`, or `PER_CONDITION_AND_TARGET`. The default is `PER_POLICY`.
76
75
  """
77
76
  return pulumi.get(self, "incident_preference")
78
77
 
79
78
  @incident_preference.setter
80
- def incident_preference(self, value: Optional[pulumi.Input[builtins.str]]):
79
+ def incident_preference(self, value: Optional[pulumi.Input[_builtins.str]]):
81
80
  pulumi.set(self, "incident_preference", value)
82
81
 
83
- @property
82
+ @_builtins.property
84
83
  @pulumi.getter
85
- def name(self) -> Optional[pulumi.Input[builtins.str]]:
84
+ def name(self) -> Optional[pulumi.Input[_builtins.str]]:
86
85
  """
87
86
  The name of the policy.
88
87
  """
89
88
  return pulumi.get(self, "name")
90
89
 
91
90
  @name.setter
92
- def name(self, value: Optional[pulumi.Input[builtins.str]]):
91
+ def name(self, value: Optional[pulumi.Input[_builtins.str]]):
93
92
  pulumi.set(self, "name", value)
94
93
 
95
94
 
96
95
  @pulumi.input_type
97
96
  class _AlertPolicyState:
98
97
  def __init__(__self__, *,
99
- account_id: Optional[pulumi.Input[builtins.str]] = None,
100
- channel_ids: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
101
- incident_preference: Optional[pulumi.Input[builtins.str]] = None,
102
- name: Optional[pulumi.Input[builtins.str]] = None):
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):
103
102
  """
104
103
  Input properties used for looking up and filtering AlertPolicy resources.
105
- :param pulumi.Input[builtins.str] account_id: The New Relic account ID to operate on. This allows the user to override the `account_id` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`.
106
- :param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] channel_ids: An array of channel IDs (integers) to assign to the policy. Adding or removing channel IDs from this array will result in a new alert policy resource being created and the old one being destroyed. Also note that channel IDs _cannot_ be imported.
107
- :param pulumi.Input[builtins.str] incident_preference: The rollup strategy for the policy. Options include: `PER_POLICY`, `PER_CONDITION`, or `PER_CONDITION_AND_TARGET`. The default is `PER_POLICY`.
108
- :param pulumi.Input[builtins.str] name: The name of the policy.
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.
109
108
  """
110
109
  if account_id is not None:
111
110
  pulumi.set(__self__, "account_id", account_id)
@@ -119,53 +118,53 @@ class _AlertPolicyState:
119
118
  if name is not None:
120
119
  pulumi.set(__self__, "name", name)
121
120
 
122
- @property
121
+ @_builtins.property
123
122
  @pulumi.getter(name="accountId")
124
- def account_id(self) -> Optional[pulumi.Input[builtins.str]]:
123
+ def account_id(self) -> Optional[pulumi.Input[_builtins.str]]:
125
124
  """
126
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`.
127
126
  """
128
127
  return pulumi.get(self, "account_id")
129
128
 
130
129
  @account_id.setter
131
- def account_id(self, value: Optional[pulumi.Input[builtins.str]]):
130
+ def account_id(self, value: Optional[pulumi.Input[_builtins.str]]):
132
131
  pulumi.set(self, "account_id", value)
133
132
 
134
- @property
133
+ @_builtins.property
135
134
  @pulumi.getter(name="channelIds")
136
135
  @_utilities.deprecated("""The `channel_ids` attribute is deprecated and will be removed in the next major release of the provider.""")
137
- def channel_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]:
136
+ def channel_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
138
137
  """
139
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.
140
139
  """
141
140
  return pulumi.get(self, "channel_ids")
142
141
 
143
142
  @channel_ids.setter
144
- def channel_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]):
143
+ def channel_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
145
144
  pulumi.set(self, "channel_ids", value)
146
145
 
147
- @property
146
+ @_builtins.property
148
147
  @pulumi.getter(name="incidentPreference")
149
- def incident_preference(self) -> Optional[pulumi.Input[builtins.str]]:
148
+ def incident_preference(self) -> Optional[pulumi.Input[_builtins.str]]:
150
149
  """
151
150
  The rollup strategy for the policy. Options include: `PER_POLICY`, `PER_CONDITION`, or `PER_CONDITION_AND_TARGET`. The default is `PER_POLICY`.
152
151
  """
153
152
  return pulumi.get(self, "incident_preference")
154
153
 
155
154
  @incident_preference.setter
156
- def incident_preference(self, value: Optional[pulumi.Input[builtins.str]]):
155
+ def incident_preference(self, value: Optional[pulumi.Input[_builtins.str]]):
157
156
  pulumi.set(self, "incident_preference", value)
158
157
 
159
- @property
158
+ @_builtins.property
160
159
  @pulumi.getter
161
- def name(self) -> Optional[pulumi.Input[builtins.str]]:
160
+ def name(self) -> Optional[pulumi.Input[_builtins.str]]:
162
161
  """
163
162
  The name of the policy.
164
163
  """
165
164
  return pulumi.get(self, "name")
166
165
 
167
166
  @name.setter
168
- def name(self, value: Optional[pulumi.Input[builtins.str]]):
167
+ def name(self, value: Optional[pulumi.Input[_builtins.str]]):
169
168
  pulumi.set(self, "name", value)
170
169
 
171
170
 
@@ -175,10 +174,10 @@ class AlertPolicy(pulumi.CustomResource):
175
174
  def __init__(__self__,
176
175
  resource_name: str,
177
176
  opts: Optional[pulumi.ResourceOptions] = None,
178
- account_id: Optional[pulumi.Input[builtins.str]] = None,
179
- channel_ids: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
180
- incident_preference: Optional[pulumi.Input[builtins.str]] = None,
181
- name: Optional[pulumi.Input[builtins.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,
182
181
  __props__=None):
183
182
  """
184
183
  Use this resource to create and manage New Relic alert policies.
@@ -273,10 +272,10 @@ class AlertPolicy(pulumi.CustomResource):
273
272
 
274
273
  :param str resource_name: The name of the resource.
275
274
  :param pulumi.ResourceOptions opts: Options for the resource.
276
- :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`.
277
- :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.
278
- :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`.
279
- :param pulumi.Input[builtins.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.
280
279
  """
281
280
  ...
282
281
  @overload
@@ -390,10 +389,10 @@ class AlertPolicy(pulumi.CustomResource):
390
389
  def _internal_init(__self__,
391
390
  resource_name: str,
392
391
  opts: Optional[pulumi.ResourceOptions] = None,
393
- account_id: Optional[pulumi.Input[builtins.str]] = None,
394
- channel_ids: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
395
- incident_preference: Optional[pulumi.Input[builtins.str]] = None,
396
- name: Optional[pulumi.Input[builtins.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,
397
396
  __props__=None):
398
397
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
399
398
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -417,10 +416,10 @@ class AlertPolicy(pulumi.CustomResource):
417
416
  def get(resource_name: str,
418
417
  id: pulumi.Input[str],
419
418
  opts: Optional[pulumi.ResourceOptions] = None,
420
- account_id: Optional[pulumi.Input[builtins.str]] = None,
421
- channel_ids: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
422
- incident_preference: Optional[pulumi.Input[builtins.str]] = None,
423
- name: Optional[pulumi.Input[builtins.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':
424
423
  """
425
424
  Get an existing AlertPolicy resource's state with the given name, id, and optional extra
426
425
  properties used to qualify the lookup.
@@ -428,10 +427,10 @@ class AlertPolicy(pulumi.CustomResource):
428
427
  :param str resource_name: The unique name of the resulting resource.
429
428
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
430
429
  :param pulumi.ResourceOptions opts: Options for the resource.
431
- :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`.
432
- :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.
433
- :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`.
434
- :param pulumi.Input[builtins.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.
435
434
  """
436
435
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
437
436
 
@@ -443,34 +442,34 @@ class AlertPolicy(pulumi.CustomResource):
443
442
  __props__.__dict__["name"] = name
444
443
  return AlertPolicy(resource_name, opts=opts, __props__=__props__)
445
444
 
446
- @property
445
+ @_builtins.property
447
446
  @pulumi.getter(name="accountId")
448
- def account_id(self) -> pulumi.Output[builtins.str]:
447
+ def account_id(self) -> pulumi.Output[_builtins.str]:
449
448
  """
450
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`.
451
450
  """
452
451
  return pulumi.get(self, "account_id")
453
452
 
454
- @property
453
+ @_builtins.property
455
454
  @pulumi.getter(name="channelIds")
456
455
  @_utilities.deprecated("""The `channel_ids` attribute is deprecated and will be removed in the next major release of the provider.""")
457
- def channel_ids(self) -> pulumi.Output[Optional[Sequence[builtins.str]]]:
456
+ def channel_ids(self) -> pulumi.Output[Optional[Sequence[_builtins.str]]]:
458
457
  """
459
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.
460
459
  """
461
460
  return pulumi.get(self, "channel_ids")
462
461
 
463
- @property
462
+ @_builtins.property
464
463
  @pulumi.getter(name="incidentPreference")
465
- def incident_preference(self) -> pulumi.Output[Optional[builtins.str]]:
464
+ def incident_preference(self) -> pulumi.Output[Optional[_builtins.str]]:
466
465
  """
467
466
  The rollup strategy for the policy. Options include: `PER_POLICY`, `PER_CONDITION`, or `PER_CONDITION_AND_TARGET`. The default is `PER_POLICY`.
468
467
  """
469
468
  return pulumi.get(self, "incident_preference")
470
469
 
471
- @property
470
+ @_builtins.property
472
471
  @pulumi.getter
473
- def name(self) -> pulumi.Output[builtins.str]:
472
+ def name(self) -> pulumi.Output[_builtins.str]:
474
473
  """
475
474
  The name of the policy.
476
475
  """
@@ -2,8 +2,7 @@
2
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 builtins
6
- import copy
5
+ import builtins as _builtins
7
6
  import warnings
8
7
  import sys
9
8
  import pulumi
@@ -20,68 +19,68 @@ __all__ = ['AlertPolicyChannelArgs', 'AlertPolicyChannel']
20
19
  @pulumi.input_type
21
20
  class AlertPolicyChannelArgs:
22
21
  def __init__(__self__, *,
23
- channel_ids: pulumi.Input[Sequence[pulumi.Input[builtins.str]]],
24
- policy_id: pulumi.Input[builtins.str],
25
- account_id: Optional[pulumi.Input[builtins.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):
26
25
  """
27
26
  The set of arguments for constructing a AlertPolicyChannel resource.
28
- :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.
29
- :param pulumi.Input[builtins.str] policy_id: The ID of the policy.
30
- :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.
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.
31
30
  """
32
31
  pulumi.set(__self__, "channel_ids", channel_ids)
33
32
  pulumi.set(__self__, "policy_id", policy_id)
34
33
  if account_id is not None:
35
34
  pulumi.set(__self__, "account_id", account_id)
36
35
 
37
- @property
36
+ @_builtins.property
38
37
  @pulumi.getter(name="channelIds")
39
- def channel_ids(self) -> pulumi.Input[Sequence[pulumi.Input[builtins.str]]]:
38
+ def channel_ids(self) -> pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]:
40
39
  """
41
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.
42
41
  """
43
42
  return pulumi.get(self, "channel_ids")
44
43
 
45
44
  @channel_ids.setter
46
- def channel_ids(self, value: pulumi.Input[Sequence[pulumi.Input[builtins.str]]]):
45
+ def channel_ids(self, value: pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]):
47
46
  pulumi.set(self, "channel_ids", value)
48
47
 
49
- @property
48
+ @_builtins.property
50
49
  @pulumi.getter(name="policyId")
51
- def policy_id(self) -> pulumi.Input[builtins.str]:
50
+ def policy_id(self) -> pulumi.Input[_builtins.str]:
52
51
  """
53
52
  The ID of the policy.
54
53
  """
55
54
  return pulumi.get(self, "policy_id")
56
55
 
57
56
  @policy_id.setter
58
- def policy_id(self, value: pulumi.Input[builtins.str]):
57
+ def policy_id(self, value: pulumi.Input[_builtins.str]):
59
58
  pulumi.set(self, "policy_id", value)
60
59
 
61
- @property
60
+ @_builtins.property
62
61
  @pulumi.getter(name="accountId")
63
- def account_id(self) -> Optional[pulumi.Input[builtins.str]]:
62
+ def account_id(self) -> Optional[pulumi.Input[_builtins.str]]:
64
63
  """
65
64
  Determines the New Relic account where the alert policy channel will be created. Defaults to the account associated with the API key used.
66
65
  """
67
66
  return pulumi.get(self, "account_id")
68
67
 
69
68
  @account_id.setter
70
- def account_id(self, value: Optional[pulumi.Input[builtins.str]]):
69
+ def account_id(self, value: Optional[pulumi.Input[_builtins.str]]):
71
70
  pulumi.set(self, "account_id", value)
72
71
 
73
72
 
74
73
  @pulumi.input_type
75
74
  class _AlertPolicyChannelState:
76
75
  def __init__(__self__, *,
77
- account_id: Optional[pulumi.Input[builtins.str]] = None,
78
- channel_ids: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
79
- policy_id: Optional[pulumi.Input[builtins.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):
80
79
  """
81
80
  Input properties used for looking up and filtering AlertPolicyChannel resources.
82
- :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.
83
- :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.
84
- :param pulumi.Input[builtins.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.
85
84
  """
86
85
  if account_id is not None:
87
86
  pulumi.set(__self__, "account_id", account_id)
@@ -90,40 +89,40 @@ class _AlertPolicyChannelState:
90
89
  if policy_id is not None:
91
90
  pulumi.set(__self__, "policy_id", policy_id)
92
91
 
93
- @property
92
+ @_builtins.property
94
93
  @pulumi.getter(name="accountId")
95
- def account_id(self) -> Optional[pulumi.Input[builtins.str]]:
94
+ def account_id(self) -> Optional[pulumi.Input[_builtins.str]]:
96
95
  """
97
96
  Determines the New Relic account where the alert policy channel will be created. Defaults to the account associated with the API key used.
98
97
  """
99
98
  return pulumi.get(self, "account_id")
100
99
 
101
100
  @account_id.setter
102
- def account_id(self, value: Optional[pulumi.Input[builtins.str]]):
101
+ def account_id(self, value: Optional[pulumi.Input[_builtins.str]]):
103
102
  pulumi.set(self, "account_id", value)
104
103
 
105
- @property
104
+ @_builtins.property
106
105
  @pulumi.getter(name="channelIds")
107
- def channel_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]:
106
+ def channel_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
108
107
  """
109
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.
110
109
  """
111
110
  return pulumi.get(self, "channel_ids")
112
111
 
113
112
  @channel_ids.setter
114
- def channel_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]):
113
+ def channel_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
115
114
  pulumi.set(self, "channel_ids", value)
116
115
 
117
- @property
116
+ @_builtins.property
118
117
  @pulumi.getter(name="policyId")
119
- def policy_id(self) -> Optional[pulumi.Input[builtins.str]]:
118
+ def policy_id(self) -> Optional[pulumi.Input[_builtins.str]]:
120
119
  """
121
120
  The ID of the policy.
122
121
  """
123
122
  return pulumi.get(self, "policy_id")
124
123
 
125
124
  @policy_id.setter
126
- def policy_id(self, value: Optional[pulumi.Input[builtins.str]]):
125
+ def policy_id(self, value: Optional[pulumi.Input[_builtins.str]]):
127
126
  pulumi.set(self, "policy_id", value)
128
127
 
129
128
 
@@ -133,9 +132,9 @@ class AlertPolicyChannel(pulumi.CustomResource):
133
132
  def __init__(__self__,
134
133
  resource_name: str,
135
134
  opts: Optional[pulumi.ResourceOptions] = None,
136
- account_id: Optional[pulumi.Input[builtins.str]] = None,
137
- channel_ids: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
138
- policy_id: Optional[pulumi.Input[builtins.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,
139
138
  __props__=None):
140
139
  """
141
140
  Use this resource to map alert policies to alert channels in New Relic.
@@ -190,9 +189,9 @@ class AlertPolicyChannel(pulumi.CustomResource):
190
189
 
191
190
  :param str resource_name: The name of the resource.
192
191
  :param pulumi.ResourceOptions opts: Options for the resource.
193
- :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.
194
- :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.
195
- :param pulumi.Input[builtins.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.
196
195
  """
197
196
  ...
198
197
  @overload
@@ -266,9 +265,9 @@ class AlertPolicyChannel(pulumi.CustomResource):
266
265
  def _internal_init(__self__,
267
266
  resource_name: str,
268
267
  opts: Optional[pulumi.ResourceOptions] = None,
269
- account_id: Optional[pulumi.Input[builtins.str]] = None,
270
- channel_ids: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
271
- policy_id: Optional[pulumi.Input[builtins.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,
272
271
  __props__=None):
273
272
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
274
273
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -295,9 +294,9 @@ class AlertPolicyChannel(pulumi.CustomResource):
295
294
  def get(resource_name: str,
296
295
  id: pulumi.Input[str],
297
296
  opts: Optional[pulumi.ResourceOptions] = None,
298
- account_id: Optional[pulumi.Input[builtins.str]] = None,
299
- channel_ids: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
300
- policy_id: Optional[pulumi.Input[builtins.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':
301
300
  """
302
301
  Get an existing AlertPolicyChannel resource's state with the given name, id, and optional extra
303
302
  properties used to qualify the lookup.
@@ -305,9 +304,9 @@ class AlertPolicyChannel(pulumi.CustomResource):
305
304
  :param str resource_name: The unique name of the resulting resource.
306
305
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
307
306
  :param pulumi.ResourceOptions opts: Options for the resource.
308
- :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.
309
- :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.
310
- :param pulumi.Input[builtins.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.
311
310
  """
312
311
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
313
312
 
@@ -318,25 +317,25 @@ class AlertPolicyChannel(pulumi.CustomResource):
318
317
  __props__.__dict__["policy_id"] = policy_id
319
318
  return AlertPolicyChannel(resource_name, opts=opts, __props__=__props__)
320
319
 
321
- @property
320
+ @_builtins.property
322
321
  @pulumi.getter(name="accountId")
323
- def account_id(self) -> pulumi.Output[builtins.str]:
322
+ def account_id(self) -> pulumi.Output[_builtins.str]:
324
323
  """
325
324
  Determines the New Relic account where the alert policy channel will be created. Defaults to the account associated with the API key used.
326
325
  """
327
326
  return pulumi.get(self, "account_id")
328
327
 
329
- @property
328
+ @_builtins.property
330
329
  @pulumi.getter(name="channelIds")
331
- def channel_ids(self) -> pulumi.Output[Sequence[builtins.str]]:
330
+ def channel_ids(self) -> pulumi.Output[Sequence[_builtins.str]]:
332
331
  """
333
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.
334
333
  """
335
334
  return pulumi.get(self, "channel_ids")
336
335
 
337
- @property
336
+ @_builtins.property
338
337
  @pulumi.getter(name="policyId")
339
- def policy_id(self) -> pulumi.Output[builtins.str]:
338
+ def policy_id(self) -> pulumi.Output[_builtins.str]:
340
339
  """
341
340
  The ID of the policy.
342
341
  """