pulumi-newrelic 5.20.0a1709643785__py3-none-any.whl → 5.39.0a1736834464__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. pulumi_newrelic/__init__.py +9 -0
  2. pulumi_newrelic/_inputs.py +7153 -461
  3. pulumi_newrelic/_utilities.py +41 -5
  4. pulumi_newrelic/account_management.py +13 -4
  5. pulumi_newrelic/alert_channel.py +122 -101
  6. pulumi_newrelic/alert_condition.py +120 -109
  7. pulumi_newrelic/alert_muting_rule.py +130 -74
  8. pulumi_newrelic/alert_policy.py +88 -67
  9. pulumi_newrelic/alert_policy_channel.py +81 -68
  10. pulumi_newrelic/api_access_key.py +49 -52
  11. pulumi_newrelic/browser_application.py +79 -76
  12. pulumi_newrelic/cloud/_inputs.py +2527 -1082
  13. pulumi_newrelic/cloud/aws_govcloud_integrations.py +135 -130
  14. pulumi_newrelic/cloud/aws_govcloud_link_account.py +25 -18
  15. pulumi_newrelic/cloud/aws_integrations.py +300 -1324
  16. pulumi_newrelic/cloud/aws_link_account.py +25 -18
  17. pulumi_newrelic/cloud/azure_integrations.py +523 -481
  18. pulumi_newrelic/cloud/azure_link_account.py +36 -29
  19. pulumi_newrelic/cloud/gcp_integrations.py +343 -320
  20. pulumi_newrelic/cloud/gcp_link_account.py +25 -18
  21. pulumi_newrelic/cloud/outputs.py +327 -1072
  22. pulumi_newrelic/config/__init__.pyi +6 -1
  23. pulumi_newrelic/config/vars.py +7 -2
  24. pulumi_newrelic/data_partition_rule.py +23 -16
  25. pulumi_newrelic/entity_tags.py +36 -31
  26. pulumi_newrelic/events_to_metrics_rule.py +27 -20
  27. pulumi_newrelic/get_account.py +24 -12
  28. pulumi_newrelic/get_alert_channel.py +26 -13
  29. pulumi_newrelic/get_alert_policy.py +35 -12
  30. pulumi_newrelic/get_application.py +39 -27
  31. pulumi_newrelic/get_authentication_domain.py +17 -9
  32. pulumi_newrelic/get_cloud_account.py +26 -14
  33. pulumi_newrelic/get_entity.py +90 -85
  34. pulumi_newrelic/get_group.py +58 -9
  35. pulumi_newrelic/get_key_transaction.py +109 -30
  36. pulumi_newrelic/get_notification_destination.py +64 -14
  37. pulumi_newrelic/get_obfuscation_expression.py +36 -24
  38. pulumi_newrelic/get_service_level_alert_helper.py +135 -105
  39. pulumi_newrelic/get_test_grok_pattern.py +29 -14
  40. pulumi_newrelic/get_user.py +17 -5
  41. pulumi_newrelic/group.py +5 -132
  42. pulumi_newrelic/infra_alert_condition.py +157 -140
  43. pulumi_newrelic/insights/_inputs.py +43 -0
  44. pulumi_newrelic/insights/event.py +50 -43
  45. pulumi_newrelic/insights/outputs.py +5 -0
  46. pulumi_newrelic/key_transaction.py +464 -0
  47. pulumi_newrelic/log_parsing_rule.py +29 -18
  48. pulumi_newrelic/monitor_downtime.py +215 -203
  49. pulumi_newrelic/notification_channel.py +387 -326
  50. pulumi_newrelic/notification_destination.py +248 -118
  51. pulumi_newrelic/nrql_alert_condition.py +353 -246
  52. pulumi_newrelic/nrql_drop_rule.py +57 -30
  53. pulumi_newrelic/obfuscation_expression.py +25 -18
  54. pulumi_newrelic/obfuscation_rule.py +40 -31
  55. pulumi_newrelic/one_dashboard.py +31 -26
  56. pulumi_newrelic/one_dashboard_json.py +21 -16
  57. pulumi_newrelic/one_dashboard_raw.py +112 -101
  58. pulumi_newrelic/outputs.py +2446 -245
  59. pulumi_newrelic/plugins/_inputs.py +145 -10
  60. pulumi_newrelic/plugins/application_settings.py +29 -20
  61. pulumi_newrelic/plugins/outputs.py +15 -10
  62. pulumi_newrelic/plugins/workload.py +285 -54
  63. pulumi_newrelic/provider.py +27 -33
  64. pulumi_newrelic/pulumi-plugin.json +2 -1
  65. pulumi_newrelic/service_level.py +193 -180
  66. pulumi_newrelic/synthetics/_inputs.py +159 -2
  67. pulumi_newrelic/synthetics/alert_condition.py +91 -78
  68. pulumi_newrelic/synthetics/broken_links_monitor.py +220 -93
  69. pulumi_newrelic/synthetics/cert_check_monitor.py +223 -94
  70. pulumi_newrelic/synthetics/get_private_location.py +34 -22
  71. pulumi_newrelic/synthetics/get_secure_credential.py +24 -12
  72. pulumi_newrelic/synthetics/monitor.py +352 -179
  73. pulumi_newrelic/synthetics/multi_location_alert_condition.py +109 -96
  74. pulumi_newrelic/synthetics/outputs.py +7 -2
  75. pulumi_newrelic/synthetics/private_location.py +27 -18
  76. pulumi_newrelic/synthetics/script_monitor.py +321 -168
  77. pulumi_newrelic/synthetics/secure_credential.py +25 -20
  78. pulumi_newrelic/synthetics/step_monitor.py +409 -98
  79. pulumi_newrelic/user.py +13 -6
  80. pulumi_newrelic/workflow.py +215 -184
  81. {pulumi_newrelic-5.20.0a1709643785.dist-info → pulumi_newrelic-5.39.0a1736834464.dist-info}/METADATA +7 -6
  82. pulumi_newrelic-5.39.0a1736834464.dist-info/RECORD +90 -0
  83. {pulumi_newrelic-5.20.0a1709643785.dist-info → pulumi_newrelic-5.39.0a1736834464.dist-info}/WHEEL +1 -1
  84. pulumi_newrelic-5.20.0a1709643785.dist-info/RECORD +0 -89
  85. {pulumi_newrelic-5.20.0a1709643785.dist-info → pulumi_newrelic-5.39.0a1736834464.dist-info}/top_level.txt +0 -0
@@ -4,9 +4,14 @@
4
4
 
5
5
  import copy
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__ = ['NrqlDropRuleArgs', 'NrqlDropRule']
@@ -16,13 +21,13 @@ class NrqlDropRuleArgs:
16
21
  def __init__(__self__, *,
17
22
  action: pulumi.Input[str],
18
23
  nrql: pulumi.Input[str],
19
- account_id: Optional[pulumi.Input[int]] = None,
24
+ account_id: Optional[pulumi.Input[str]] = None,
20
25
  description: Optional[pulumi.Input[str]] = None):
21
26
  """
22
27
  The set of arguments for constructing a NrqlDropRule resource.
23
28
  :param pulumi.Input[str] action: An action type specifying how to apply the NRQL string (either `drop_data`, `drop_attributes`, or ` drop_attributes_from_metric_aggregates`).
24
29
  :param pulumi.Input[str] nrql: A NRQL string that specifies what data types to drop.
25
- :param pulumi.Input[int] account_id: Account where the drop rule will be put. Defaults to the account associated with the API key used.
30
+ :param pulumi.Input[str] account_id: Account where the drop rule will be put. Defaults to the account associated with the API key used.
26
31
  :param pulumi.Input[str] description: The description of the drop rule.
27
32
  """
28
33
  pulumi.set(__self__, "action", action)
@@ -58,14 +63,14 @@ class NrqlDropRuleArgs:
58
63
 
59
64
  @property
60
65
  @pulumi.getter(name="accountId")
61
- def account_id(self) -> Optional[pulumi.Input[int]]:
66
+ def account_id(self) -> Optional[pulumi.Input[str]]:
62
67
  """
63
68
  Account where the drop rule will be put. Defaults to the account associated with the API key used.
64
69
  """
65
70
  return pulumi.get(self, "account_id")
66
71
 
67
72
  @account_id.setter
68
- def account_id(self, value: Optional[pulumi.Input[int]]):
73
+ def account_id(self, value: Optional[pulumi.Input[str]]):
69
74
  pulumi.set(self, "account_id", value)
70
75
 
71
76
  @property
@@ -84,14 +89,14 @@ class NrqlDropRuleArgs:
84
89
  @pulumi.input_type
85
90
  class _NrqlDropRuleState:
86
91
  def __init__(__self__, *,
87
- account_id: Optional[pulumi.Input[int]] = None,
92
+ account_id: Optional[pulumi.Input[str]] = None,
88
93
  action: Optional[pulumi.Input[str]] = None,
89
94
  description: Optional[pulumi.Input[str]] = None,
90
95
  nrql: Optional[pulumi.Input[str]] = None,
91
96
  rule_id: Optional[pulumi.Input[str]] = None):
92
97
  """
93
98
  Input properties used for looking up and filtering NrqlDropRule resources.
94
- :param pulumi.Input[int] account_id: Account where the drop rule will be put. Defaults to the account associated with the API key used.
99
+ :param pulumi.Input[str] account_id: Account where the drop rule will be put. Defaults to the account associated with the API key used.
95
100
  :param pulumi.Input[str] action: An action type specifying how to apply the NRQL string (either `drop_data`, `drop_attributes`, or ` drop_attributes_from_metric_aggregates`).
96
101
  :param pulumi.Input[str] description: The description of the drop rule.
97
102
  :param pulumi.Input[str] nrql: A NRQL string that specifies what data types to drop.
@@ -110,14 +115,14 @@ class _NrqlDropRuleState:
110
115
 
111
116
  @property
112
117
  @pulumi.getter(name="accountId")
113
- def account_id(self) -> Optional[pulumi.Input[int]]:
118
+ def account_id(self) -> Optional[pulumi.Input[str]]:
114
119
  """
115
120
  Account where the drop rule will be put. Defaults to the account associated with the API key used.
116
121
  """
117
122
  return pulumi.get(self, "account_id")
118
123
 
119
124
  @account_id.setter
120
- def account_id(self, value: Optional[pulumi.Input[int]]):
125
+ def account_id(self, value: Optional[pulumi.Input[str]]):
121
126
  pulumi.set(self, "account_id", value)
122
127
 
123
128
  @property
@@ -174,7 +179,7 @@ class NrqlDropRule(pulumi.CustomResource):
174
179
  def __init__(__self__,
175
180
  resource_name: str,
176
181
  opts: Optional[pulumi.ResourceOptions] = None,
177
- account_id: Optional[pulumi.Input[int]] = None,
182
+ account_id: Optional[pulumi.Input[str]] = None,
178
183
  action: Optional[pulumi.Input[str]] = None,
179
184
  description: Optional[pulumi.Input[str]] = None,
180
185
  nrql: Optional[pulumi.Input[str]] = None,
@@ -187,29 +192,40 @@ class NrqlDropRule(pulumi.CustomResource):
187
192
  import pulumi_newrelic as newrelic
188
193
 
189
194
  foo = newrelic.NrqlDropRule("foo",
190
- account_id=12345,
191
- action="drop_data",
195
+ account_id="12345",
192
196
  description="Drops all data for MyCustomEvent that comes from the LoadGeneratingApp in the dev environment, because there is too much and we don’t look at it.",
197
+ action="drop_data",
193
198
  nrql="SELECT * FROM MyCustomEvent WHERE appName='LoadGeneratingApp' AND environment='development'")
194
199
  bar = newrelic.NrqlDropRule("bar",
195
- account_id=12345,
196
- action="drop_attributes",
200
+ account_id="12345",
197
201
  description="Removes the user name and email fields from MyCustomEvent",
202
+ action="drop_attributes",
198
203
  nrql="SELECT userEmail, userName FROM MyCustomEvent")
199
204
  baz = newrelic.NrqlDropRule("baz",
200
- account_id=12345,
201
- action="drop_attributes_from_metric_aggregates",
205
+ account_id="12345",
202
206
  description="Removes containerId from metric aggregates to reduce metric cardinality.",
207
+ action="drop_attributes_from_metric_aggregates",
203
208
  nrql="SELECT containerId FROM Metric")
204
209
  ```
205
210
 
211
+ ## Using `newrelic-cli` to List Out Drop Rules
212
+
213
+ All NRQL Drop Rules associated with a New Relic account may be listed out using the following newrelic-cli command:
214
+
215
+ This would print all drop rules associated with your New Relic account to the terminal.
216
+ The number of rules to be printed can be customized using the `limit` argument of this command.
217
+ For instance, the following command limits the number of drop rules printed to two.
218
+
219
+ More details on the command and its arguments (for instance, the format in which the droprules are to be listed in the terminal, which is JSON by default) can be found in the output of the `newrelic nrql droprules --help` command.
220
+ If you do not have **newrelic-cli** installed on your device already, head over to [this page](https://github.com/newrelic/newrelic-cli#installation--upgrades) for instructions.
221
+
206
222
  ## Import
207
223
 
208
224
  New Relic NRQL drop rules can be imported using a concatenated string of the format
209
225
 
210
- `<account_id>:<rule_id>`, e.g.
226
+ `<account_id>:<rule_id>`, e.g.
211
227
 
212
- bash
228
+ bash
213
229
 
214
230
  ```sh
215
231
  $ pulumi import newrelic:index/nrqlDropRule:NrqlDropRule foo 12345:34567
@@ -217,7 +233,7 @@ class NrqlDropRule(pulumi.CustomResource):
217
233
 
218
234
  :param str resource_name: The name of the resource.
219
235
  :param pulumi.ResourceOptions opts: Options for the resource.
220
- :param pulumi.Input[int] account_id: Account where the drop rule will be put. Defaults to the account associated with the API key used.
236
+ :param pulumi.Input[str] account_id: Account where the drop rule will be put. Defaults to the account associated with the API key used.
221
237
  :param pulumi.Input[str] action: An action type specifying how to apply the NRQL string (either `drop_data`, `drop_attributes`, or ` drop_attributes_from_metric_aggregates`).
222
238
  :param pulumi.Input[str] description: The description of the drop rule.
223
239
  :param pulumi.Input[str] nrql: A NRQL string that specifies what data types to drop.
@@ -236,29 +252,40 @@ class NrqlDropRule(pulumi.CustomResource):
236
252
  import pulumi_newrelic as newrelic
237
253
 
238
254
  foo = newrelic.NrqlDropRule("foo",
239
- account_id=12345,
240
- action="drop_data",
255
+ account_id="12345",
241
256
  description="Drops all data for MyCustomEvent that comes from the LoadGeneratingApp in the dev environment, because there is too much and we don’t look at it.",
257
+ action="drop_data",
242
258
  nrql="SELECT * FROM MyCustomEvent WHERE appName='LoadGeneratingApp' AND environment='development'")
243
259
  bar = newrelic.NrqlDropRule("bar",
244
- account_id=12345,
245
- action="drop_attributes",
260
+ account_id="12345",
246
261
  description="Removes the user name and email fields from MyCustomEvent",
262
+ action="drop_attributes",
247
263
  nrql="SELECT userEmail, userName FROM MyCustomEvent")
248
264
  baz = newrelic.NrqlDropRule("baz",
249
- account_id=12345,
250
- action="drop_attributes_from_metric_aggregates",
265
+ account_id="12345",
251
266
  description="Removes containerId from metric aggregates to reduce metric cardinality.",
267
+ action="drop_attributes_from_metric_aggregates",
252
268
  nrql="SELECT containerId FROM Metric")
253
269
  ```
254
270
 
271
+ ## Using `newrelic-cli` to List Out Drop Rules
272
+
273
+ All NRQL Drop Rules associated with a New Relic account may be listed out using the following newrelic-cli command:
274
+
275
+ This would print all drop rules associated with your New Relic account to the terminal.
276
+ The number of rules to be printed can be customized using the `limit` argument of this command.
277
+ For instance, the following command limits the number of drop rules printed to two.
278
+
279
+ More details on the command and its arguments (for instance, the format in which the droprules are to be listed in the terminal, which is JSON by default) can be found in the output of the `newrelic nrql droprules --help` command.
280
+ If you do not have **newrelic-cli** installed on your device already, head over to [this page](https://github.com/newrelic/newrelic-cli#installation--upgrades) for instructions.
281
+
255
282
  ## Import
256
283
 
257
284
  New Relic NRQL drop rules can be imported using a concatenated string of the format
258
285
 
259
- `<account_id>:<rule_id>`, e.g.
286
+ `<account_id>:<rule_id>`, e.g.
260
287
 
261
- bash
288
+ bash
262
289
 
263
290
  ```sh
264
291
  $ pulumi import newrelic:index/nrqlDropRule:NrqlDropRule foo 12345:34567
@@ -279,7 +306,7 @@ class NrqlDropRule(pulumi.CustomResource):
279
306
  def _internal_init(__self__,
280
307
  resource_name: str,
281
308
  opts: Optional[pulumi.ResourceOptions] = None,
282
- account_id: Optional[pulumi.Input[int]] = None,
309
+ account_id: Optional[pulumi.Input[str]] = None,
283
310
  action: Optional[pulumi.Input[str]] = None,
284
311
  description: Optional[pulumi.Input[str]] = None,
285
312
  nrql: Optional[pulumi.Input[str]] = None,
@@ -311,7 +338,7 @@ class NrqlDropRule(pulumi.CustomResource):
311
338
  def get(resource_name: str,
312
339
  id: pulumi.Input[str],
313
340
  opts: Optional[pulumi.ResourceOptions] = None,
314
- account_id: Optional[pulumi.Input[int]] = None,
341
+ account_id: Optional[pulumi.Input[str]] = None,
315
342
  action: Optional[pulumi.Input[str]] = None,
316
343
  description: Optional[pulumi.Input[str]] = None,
317
344
  nrql: Optional[pulumi.Input[str]] = None,
@@ -323,7 +350,7 @@ class NrqlDropRule(pulumi.CustomResource):
323
350
  :param str resource_name: The unique name of the resulting resource.
324
351
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
325
352
  :param pulumi.ResourceOptions opts: Options for the resource.
326
- :param pulumi.Input[int] account_id: Account where the drop rule will be put. Defaults to the account associated with the API key used.
353
+ :param pulumi.Input[str] account_id: Account where the drop rule will be put. Defaults to the account associated with the API key used.
327
354
  :param pulumi.Input[str] action: An action type specifying how to apply the NRQL string (either `drop_data`, `drop_attributes`, or ` drop_attributes_from_metric_aggregates`).
328
355
  :param pulumi.Input[str] description: The description of the drop rule.
329
356
  :param pulumi.Input[str] nrql: A NRQL string that specifies what data types to drop.
@@ -342,7 +369,7 @@ class NrqlDropRule(pulumi.CustomResource):
342
369
 
343
370
  @property
344
371
  @pulumi.getter(name="accountId")
345
- def account_id(self) -> pulumi.Output[int]:
372
+ def account_id(self) -> pulumi.Output[str]:
346
373
  """
347
374
  Account where the drop rule will be put. Defaults to the account associated with the API key used.
348
375
  """
@@ -4,9 +4,14 @@
4
4
 
5
5
  import copy
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__ = ['ObfuscationExpressionArgs', 'ObfuscationExpression']
@@ -15,13 +20,13 @@ __all__ = ['ObfuscationExpressionArgs', 'ObfuscationExpression']
15
20
  class ObfuscationExpressionArgs:
16
21
  def __init__(__self__, *,
17
22
  regex: pulumi.Input[str],
18
- account_id: Optional[pulumi.Input[int]] = None,
23
+ account_id: Optional[pulumi.Input[str]] = None,
19
24
  description: Optional[pulumi.Input[str]] = None,
20
25
  name: Optional[pulumi.Input[str]] = None):
21
26
  """
22
27
  The set of arguments for constructing a ObfuscationExpression resource.
23
28
  :param pulumi.Input[str] regex: Regex of expression. Must be wrapped in parentheses, e.g. (regex.*).
24
- :param pulumi.Input[int] account_id: The account id associated with the obfuscation expression.
29
+ :param pulumi.Input[str] account_id: The account id associated with the obfuscation expression.
25
30
  :param pulumi.Input[str] description: Description of expression.
26
31
  :param pulumi.Input[str] name: Name of expression.
27
32
  """
@@ -47,14 +52,14 @@ class ObfuscationExpressionArgs:
47
52
 
48
53
  @property
49
54
  @pulumi.getter(name="accountId")
50
- def account_id(self) -> Optional[pulumi.Input[int]]:
55
+ def account_id(self) -> Optional[pulumi.Input[str]]:
51
56
  """
52
57
  The account id associated with the obfuscation expression.
53
58
  """
54
59
  return pulumi.get(self, "account_id")
55
60
 
56
61
  @account_id.setter
57
- def account_id(self, value: Optional[pulumi.Input[int]]):
62
+ def account_id(self, value: Optional[pulumi.Input[str]]):
58
63
  pulumi.set(self, "account_id", value)
59
64
 
60
65
  @property
@@ -85,13 +90,13 @@ class ObfuscationExpressionArgs:
85
90
  @pulumi.input_type
86
91
  class _ObfuscationExpressionState:
87
92
  def __init__(__self__, *,
88
- account_id: Optional[pulumi.Input[int]] = None,
93
+ account_id: Optional[pulumi.Input[str]] = None,
89
94
  description: Optional[pulumi.Input[str]] = None,
90
95
  name: Optional[pulumi.Input[str]] = None,
91
96
  regex: Optional[pulumi.Input[str]] = None):
92
97
  """
93
98
  Input properties used for looking up and filtering ObfuscationExpression resources.
94
- :param pulumi.Input[int] account_id: The account id associated with the obfuscation expression.
99
+ :param pulumi.Input[str] account_id: The account id associated with the obfuscation expression.
95
100
  :param pulumi.Input[str] description: Description of expression.
96
101
  :param pulumi.Input[str] name: Name of expression.
97
102
  :param pulumi.Input[str] regex: Regex of expression. Must be wrapped in parentheses, e.g. (regex.*).
@@ -107,14 +112,14 @@ class _ObfuscationExpressionState:
107
112
 
108
113
  @property
109
114
  @pulumi.getter(name="accountId")
110
- def account_id(self) -> Optional[pulumi.Input[int]]:
115
+ def account_id(self) -> Optional[pulumi.Input[str]]:
111
116
  """
112
117
  The account id associated with the obfuscation expression.
113
118
  """
114
119
  return pulumi.get(self, "account_id")
115
120
 
116
121
  @account_id.setter
117
- def account_id(self, value: Optional[pulumi.Input[int]]):
122
+ def account_id(self, value: Optional[pulumi.Input[str]]):
118
123
  pulumi.set(self, "account_id", value)
119
124
 
120
125
  @property
@@ -159,7 +164,7 @@ class ObfuscationExpression(pulumi.CustomResource):
159
164
  def __init__(__self__,
160
165
  resource_name: str,
161
166
  opts: Optional[pulumi.ResourceOptions] = None,
162
- account_id: Optional[pulumi.Input[int]] = None,
167
+ account_id: Optional[pulumi.Input[str]] = None,
163
168
  description: Optional[pulumi.Input[str]] = None,
164
169
  name: Optional[pulumi.Input[str]] = None,
165
170
  regex: Optional[pulumi.Input[str]] = None,
@@ -174,7 +179,8 @@ class ObfuscationExpression(pulumi.CustomResource):
174
179
  import pulumi_newrelic as newrelic
175
180
 
176
181
  foo = newrelic.ObfuscationExpression("foo",
177
- account_id=12345,
182
+ account_id="12345",
183
+ name="OExp",
178
184
  description="The description",
179
185
  regex="(regex.*)")
180
186
  ```
@@ -183,7 +189,7 @@ class ObfuscationExpression(pulumi.CustomResource):
183
189
 
184
190
  New Relic obfuscation expression can be imported using the expression ID, e.g.
185
191
 
186
- bash
192
+ bash
187
193
 
188
194
  ```sh
189
195
  $ pulumi import newrelic:index/obfuscationExpression:ObfuscationExpression foo 34567
@@ -191,7 +197,7 @@ class ObfuscationExpression(pulumi.CustomResource):
191
197
 
192
198
  :param str resource_name: The name of the resource.
193
199
  :param pulumi.ResourceOptions opts: Options for the resource.
194
- :param pulumi.Input[int] account_id: The account id associated with the obfuscation expression.
200
+ :param pulumi.Input[str] account_id: The account id associated with the obfuscation expression.
195
201
  :param pulumi.Input[str] description: Description of expression.
196
202
  :param pulumi.Input[str] name: Name of expression.
197
203
  :param pulumi.Input[str] regex: Regex of expression. Must be wrapped in parentheses, e.g. (regex.*).
@@ -212,7 +218,8 @@ class ObfuscationExpression(pulumi.CustomResource):
212
218
  import pulumi_newrelic as newrelic
213
219
 
214
220
  foo = newrelic.ObfuscationExpression("foo",
215
- account_id=12345,
221
+ account_id="12345",
222
+ name="OExp",
216
223
  description="The description",
217
224
  regex="(regex.*)")
218
225
  ```
@@ -221,7 +228,7 @@ class ObfuscationExpression(pulumi.CustomResource):
221
228
 
222
229
  New Relic obfuscation expression can be imported using the expression ID, e.g.
223
230
 
224
- bash
231
+ bash
225
232
 
226
233
  ```sh
227
234
  $ pulumi import newrelic:index/obfuscationExpression:ObfuscationExpression foo 34567
@@ -242,7 +249,7 @@ class ObfuscationExpression(pulumi.CustomResource):
242
249
  def _internal_init(__self__,
243
250
  resource_name: str,
244
251
  opts: Optional[pulumi.ResourceOptions] = None,
245
- account_id: Optional[pulumi.Input[int]] = None,
252
+ account_id: Optional[pulumi.Input[str]] = None,
246
253
  description: Optional[pulumi.Input[str]] = None,
247
254
  name: Optional[pulumi.Input[str]] = None,
248
255
  regex: Optional[pulumi.Input[str]] = None,
@@ -271,7 +278,7 @@ class ObfuscationExpression(pulumi.CustomResource):
271
278
  def get(resource_name: str,
272
279
  id: pulumi.Input[str],
273
280
  opts: Optional[pulumi.ResourceOptions] = None,
274
- account_id: Optional[pulumi.Input[int]] = None,
281
+ account_id: Optional[pulumi.Input[str]] = None,
275
282
  description: Optional[pulumi.Input[str]] = None,
276
283
  name: Optional[pulumi.Input[str]] = None,
277
284
  regex: Optional[pulumi.Input[str]] = None) -> 'ObfuscationExpression':
@@ -282,7 +289,7 @@ class ObfuscationExpression(pulumi.CustomResource):
282
289
  :param str resource_name: The unique name of the resulting resource.
283
290
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
284
291
  :param pulumi.ResourceOptions opts: Options for the resource.
285
- :param pulumi.Input[int] account_id: The account id associated with the obfuscation expression.
292
+ :param pulumi.Input[str] account_id: The account id associated with the obfuscation expression.
286
293
  :param pulumi.Input[str] description: Description of expression.
287
294
  :param pulumi.Input[str] name: Name of expression.
288
295
  :param pulumi.Input[str] regex: Regex of expression. Must be wrapped in parentheses, e.g. (regex.*).
@@ -299,7 +306,7 @@ class ObfuscationExpression(pulumi.CustomResource):
299
306
 
300
307
  @property
301
308
  @pulumi.getter(name="accountId")
302
- def account_id(self) -> pulumi.Output[int]:
309
+ def account_id(self) -> pulumi.Output[str]:
303
310
  """
304
311
  The account id associated with the obfuscation expression.
305
312
  """
@@ -4,9 +4,14 @@
4
4
 
5
5
  import copy
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
  from . import outputs
12
17
  from ._inputs import *
@@ -19,7 +24,7 @@ class ObfuscationRuleArgs:
19
24
  actions: pulumi.Input[Sequence[pulumi.Input['ObfuscationRuleActionArgs']]],
20
25
  enabled: pulumi.Input[bool],
21
26
  filter: pulumi.Input[str],
22
- account_id: Optional[pulumi.Input[int]] = None,
27
+ account_id: Optional[pulumi.Input[str]] = None,
23
28
  description: Optional[pulumi.Input[str]] = None,
24
29
  name: Optional[pulumi.Input[str]] = None):
25
30
  """
@@ -27,7 +32,7 @@ class ObfuscationRuleArgs:
27
32
  :param pulumi.Input[Sequence[pulumi.Input['ObfuscationRuleActionArgs']]] actions: Actions for the rule. The actions will be applied in the order specified by this list.
28
33
  :param pulumi.Input[bool] enabled: Whether the rule should be applied or not to incoming data.
29
34
  :param pulumi.Input[str] filter: NRQL for determining whether a given log record should have obfuscation actions applied.
30
- :param pulumi.Input[int] account_id: The account id associated with the obfuscation rule.
35
+ :param pulumi.Input[str] account_id: The account id associated with the obfuscation rule.
31
36
  :param pulumi.Input[str] description: Description of rule.
32
37
  :param pulumi.Input[str] name: Name of rule.
33
38
  """
@@ -79,14 +84,14 @@ class ObfuscationRuleArgs:
79
84
 
80
85
  @property
81
86
  @pulumi.getter(name="accountId")
82
- def account_id(self) -> Optional[pulumi.Input[int]]:
87
+ def account_id(self) -> Optional[pulumi.Input[str]]:
83
88
  """
84
89
  The account id associated with the obfuscation rule.
85
90
  """
86
91
  return pulumi.get(self, "account_id")
87
92
 
88
93
  @account_id.setter
89
- def account_id(self, value: Optional[pulumi.Input[int]]):
94
+ def account_id(self, value: Optional[pulumi.Input[str]]):
90
95
  pulumi.set(self, "account_id", value)
91
96
 
92
97
  @property
@@ -117,7 +122,7 @@ class ObfuscationRuleArgs:
117
122
  @pulumi.input_type
118
123
  class _ObfuscationRuleState:
119
124
  def __init__(__self__, *,
120
- account_id: Optional[pulumi.Input[int]] = None,
125
+ account_id: Optional[pulumi.Input[str]] = None,
121
126
  actions: Optional[pulumi.Input[Sequence[pulumi.Input['ObfuscationRuleActionArgs']]]] = None,
122
127
  description: Optional[pulumi.Input[str]] = None,
123
128
  enabled: Optional[pulumi.Input[bool]] = None,
@@ -125,7 +130,7 @@ class _ObfuscationRuleState:
125
130
  name: Optional[pulumi.Input[str]] = None):
126
131
  """
127
132
  Input properties used for looking up and filtering ObfuscationRule resources.
128
- :param pulumi.Input[int] account_id: The account id associated with the obfuscation rule.
133
+ :param pulumi.Input[str] account_id: The account id associated with the obfuscation rule.
129
134
  :param pulumi.Input[Sequence[pulumi.Input['ObfuscationRuleActionArgs']]] actions: Actions for the rule. The actions will be applied in the order specified by this list.
130
135
  :param pulumi.Input[str] description: Description of rule.
131
136
  :param pulumi.Input[bool] enabled: Whether the rule should be applied or not to incoming data.
@@ -147,14 +152,14 @@ class _ObfuscationRuleState:
147
152
 
148
153
  @property
149
154
  @pulumi.getter(name="accountId")
150
- def account_id(self) -> Optional[pulumi.Input[int]]:
155
+ def account_id(self) -> Optional[pulumi.Input[str]]:
151
156
  """
152
157
  The account id associated with the obfuscation rule.
153
158
  """
154
159
  return pulumi.get(self, "account_id")
155
160
 
156
161
  @account_id.setter
157
- def account_id(self, value: Optional[pulumi.Input[int]]):
162
+ def account_id(self, value: Optional[pulumi.Input[str]]):
158
163
  pulumi.set(self, "account_id", value)
159
164
 
160
165
  @property
@@ -223,8 +228,8 @@ class ObfuscationRule(pulumi.CustomResource):
223
228
  def __init__(__self__,
224
229
  resource_name: str,
225
230
  opts: Optional[pulumi.ResourceOptions] = None,
226
- account_id: Optional[pulumi.Input[int]] = None,
227
- actions: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ObfuscationRuleActionArgs']]]]] = None,
231
+ account_id: Optional[pulumi.Input[str]] = None,
232
+ actions: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ObfuscationRuleActionArgs', 'ObfuscationRuleActionArgsDict']]]]] = None,
228
233
  description: Optional[pulumi.Input[str]] = None,
229
234
  enabled: Optional[pulumi.Input[bool]] = None,
230
235
  filter: Optional[pulumi.Input[str]] = None,
@@ -240,24 +245,26 @@ class ObfuscationRule(pulumi.CustomResource):
240
245
  import pulumi_newrelic as newrelic
241
246
 
242
247
  bar = newrelic.ObfuscationExpression("bar",
248
+ name="expressionName",
243
249
  description="description of the expression",
244
250
  regex="(^http)")
245
251
  foo = newrelic.ObfuscationRule("foo",
252
+ name="ruleName",
246
253
  description="description of the rule",
247
254
  filter="hostStatus=running",
248
255
  enabled=True,
249
- actions=[newrelic.ObfuscationRuleActionArgs(
250
- attributes=["message"],
251
- expression_id=bar.id,
252
- method="MASK",
253
- )])
256
+ actions=[{
257
+ "attributes": ["message"],
258
+ "expression_id": bar.id,
259
+ "method": "MASK",
260
+ }])
254
261
  ```
255
262
 
256
263
  ## Import
257
264
 
258
265
  New Relic obfuscation rule can be imported using the rule ID, e.g.
259
266
 
260
- bash
267
+ bash
261
268
 
262
269
  ```sh
263
270
  $ pulumi import newrelic:index/obfuscationRule:ObfuscationRule foo 34567
@@ -265,8 +272,8 @@ class ObfuscationRule(pulumi.CustomResource):
265
272
 
266
273
  :param str resource_name: The name of the resource.
267
274
  :param pulumi.ResourceOptions opts: Options for the resource.
268
- :param pulumi.Input[int] account_id: The account id associated with the obfuscation rule.
269
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ObfuscationRuleActionArgs']]]] actions: Actions for the rule. The actions will be applied in the order specified by this list.
275
+ :param pulumi.Input[str] account_id: The account id associated with the obfuscation rule.
276
+ :param pulumi.Input[Sequence[pulumi.Input[Union['ObfuscationRuleActionArgs', 'ObfuscationRuleActionArgsDict']]]] actions: Actions for the rule. The actions will be applied in the order specified by this list.
270
277
  :param pulumi.Input[str] description: Description of rule.
271
278
  :param pulumi.Input[bool] enabled: Whether the rule should be applied or not to incoming data.
272
279
  :param pulumi.Input[str] filter: NRQL for determining whether a given log record should have obfuscation actions applied.
@@ -288,24 +295,26 @@ class ObfuscationRule(pulumi.CustomResource):
288
295
  import pulumi_newrelic as newrelic
289
296
 
290
297
  bar = newrelic.ObfuscationExpression("bar",
298
+ name="expressionName",
291
299
  description="description of the expression",
292
300
  regex="(^http)")
293
301
  foo = newrelic.ObfuscationRule("foo",
302
+ name="ruleName",
294
303
  description="description of the rule",
295
304
  filter="hostStatus=running",
296
305
  enabled=True,
297
- actions=[newrelic.ObfuscationRuleActionArgs(
298
- attributes=["message"],
299
- expression_id=bar.id,
300
- method="MASK",
301
- )])
306
+ actions=[{
307
+ "attributes": ["message"],
308
+ "expression_id": bar.id,
309
+ "method": "MASK",
310
+ }])
302
311
  ```
303
312
 
304
313
  ## Import
305
314
 
306
315
  New Relic obfuscation rule can be imported using the rule ID, e.g.
307
316
 
308
- bash
317
+ bash
309
318
 
310
319
  ```sh
311
320
  $ pulumi import newrelic:index/obfuscationRule:ObfuscationRule foo 34567
@@ -326,8 +335,8 @@ class ObfuscationRule(pulumi.CustomResource):
326
335
  def _internal_init(__self__,
327
336
  resource_name: str,
328
337
  opts: Optional[pulumi.ResourceOptions] = None,
329
- account_id: Optional[pulumi.Input[int]] = None,
330
- actions: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ObfuscationRuleActionArgs']]]]] = None,
338
+ account_id: Optional[pulumi.Input[str]] = None,
339
+ actions: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ObfuscationRuleActionArgs', 'ObfuscationRuleActionArgsDict']]]]] = None,
331
340
  description: Optional[pulumi.Input[str]] = None,
332
341
  enabled: Optional[pulumi.Input[bool]] = None,
333
342
  filter: Optional[pulumi.Input[str]] = None,
@@ -363,8 +372,8 @@ class ObfuscationRule(pulumi.CustomResource):
363
372
  def get(resource_name: str,
364
373
  id: pulumi.Input[str],
365
374
  opts: Optional[pulumi.ResourceOptions] = None,
366
- account_id: Optional[pulumi.Input[int]] = None,
367
- actions: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ObfuscationRuleActionArgs']]]]] = None,
375
+ account_id: Optional[pulumi.Input[str]] = None,
376
+ actions: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ObfuscationRuleActionArgs', 'ObfuscationRuleActionArgsDict']]]]] = None,
368
377
  description: Optional[pulumi.Input[str]] = None,
369
378
  enabled: Optional[pulumi.Input[bool]] = None,
370
379
  filter: Optional[pulumi.Input[str]] = None,
@@ -376,8 +385,8 @@ class ObfuscationRule(pulumi.CustomResource):
376
385
  :param str resource_name: The unique name of the resulting resource.
377
386
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
378
387
  :param pulumi.ResourceOptions opts: Options for the resource.
379
- :param pulumi.Input[int] account_id: The account id associated with the obfuscation rule.
380
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ObfuscationRuleActionArgs']]]] actions: Actions for the rule. The actions will be applied in the order specified by this list.
388
+ :param pulumi.Input[str] account_id: The account id associated with the obfuscation rule.
389
+ :param pulumi.Input[Sequence[pulumi.Input[Union['ObfuscationRuleActionArgs', 'ObfuscationRuleActionArgsDict']]]] actions: Actions for the rule. The actions will be applied in the order specified by this list.
381
390
  :param pulumi.Input[str] description: Description of rule.
382
391
  :param pulumi.Input[bool] enabled: Whether the rule should be applied or not to incoming data.
383
392
  :param pulumi.Input[str] filter: NRQL for determining whether a given log record should have obfuscation actions applied.
@@ -397,7 +406,7 @@ class ObfuscationRule(pulumi.CustomResource):
397
406
 
398
407
  @property
399
408
  @pulumi.getter(name="accountId")
400
- def account_id(self) -> pulumi.Output[int]:
409
+ def account_id(self) -> pulumi.Output[str]:
401
410
  """
402
411
  The account id associated with the obfuscation rule.
403
412
  """