pulumi-newrelic 5.21.0a1710157101__py3-none-any.whl → 5.39.0a1736849617__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 +11 -6
  5. pulumi_newrelic/alert_channel.py +116 -127
  6. pulumi_newrelic/alert_condition.py +116 -129
  7. pulumi_newrelic/alert_muting_rule.py +128 -76
  8. pulumi_newrelic/alert_policy.py +78 -75
  9. pulumi_newrelic/alert_policy_channel.py +77 -68
  10. pulumi_newrelic/api_access_key.py +45 -28
  11. pulumi_newrelic/browser_application.py +77 -78
  12. pulumi_newrelic/cloud/_inputs.py +2527 -1082
  13. pulumi_newrelic/cloud/aws_govcloud_integrations.py +133 -128
  14. pulumi_newrelic/cloud/aws_govcloud_link_account.py +23 -20
  15. pulumi_newrelic/cloud/aws_integrations.py +298 -1326
  16. pulumi_newrelic/cloud/aws_link_account.py +23 -20
  17. pulumi_newrelic/cloud/azure_integrations.py +521 -483
  18. pulumi_newrelic/cloud/azure_link_account.py +34 -31
  19. pulumi_newrelic/cloud/gcp_integrations.py +341 -322
  20. pulumi_newrelic/cloud/gcp_link_account.py +23 -20
  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 +19 -18
  25. pulumi_newrelic/entity_tags.py +32 -31
  26. pulumi_newrelic/events_to_metrics_rule.py +23 -20
  27. pulumi_newrelic/get_account.py +24 -16
  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 -31
  31. pulumi_newrelic/get_authentication_domain.py +17 -13
  32. pulumi_newrelic/get_cloud_account.py +26 -18
  33. pulumi_newrelic/get_entity.py +90 -147
  34. pulumi_newrelic/get_group.py +58 -13
  35. pulumi_newrelic/get_key_transaction.py +109 -34
  36. pulumi_newrelic/get_notification_destination.py +64 -14
  37. pulumi_newrelic/get_obfuscation_expression.py +36 -28
  38. pulumi_newrelic/get_service_level_alert_helper.py +135 -117
  39. pulumi_newrelic/get_test_grok_pattern.py +29 -18
  40. pulumi_newrelic/get_user.py +17 -9
  41. pulumi_newrelic/group.py +5 -146
  42. pulumi_newrelic/infra_alert_condition.py +160 -167
  43. pulumi_newrelic/insights/_inputs.py +43 -0
  44. pulumi_newrelic/insights/event.py +48 -47
  45. pulumi_newrelic/insights/outputs.py +5 -0
  46. pulumi_newrelic/key_transaction.py +464 -0
  47. pulumi_newrelic/log_parsing_rule.py +25 -24
  48. pulumi_newrelic/monitor_downtime.py +211 -225
  49. pulumi_newrelic/notification_channel.py +381 -366
  50. pulumi_newrelic/notification_destination.py +192 -54
  51. pulumi_newrelic/nrql_alert_condition.py +345 -262
  52. pulumi_newrelic/nrql_drop_rule.py +31 -30
  53. pulumi_newrelic/obfuscation_expression.py +23 -20
  54. pulumi_newrelic/obfuscation_rule.py +38 -33
  55. pulumi_newrelic/one_dashboard.py +29 -24
  56. pulumi_newrelic/one_dashboard_json.py +19 -14
  57. pulumi_newrelic/one_dashboard_raw.py +110 -105
  58. pulumi_newrelic/outputs.py +2446 -245
  59. pulumi_newrelic/plugins/_inputs.py +145 -10
  60. pulumi_newrelic/plugins/application_settings.py +25 -36
  61. pulumi_newrelic/plugins/outputs.py +15 -10
  62. pulumi_newrelic/plugins/workload.py +215 -92
  63. pulumi_newrelic/provider.py +27 -33
  64. pulumi_newrelic/pulumi-plugin.json +2 -1
  65. pulumi_newrelic/service_level.py +185 -186
  66. pulumi_newrelic/synthetics/_inputs.py +159 -2
  67. pulumi_newrelic/synthetics/alert_condition.py +87 -98
  68. pulumi_newrelic/synthetics/broken_links_monitor.py +216 -99
  69. pulumi_newrelic/synthetics/cert_check_monitor.py +219 -100
  70. pulumi_newrelic/synthetics/get_private_location.py +34 -30
  71. pulumi_newrelic/synthetics/get_secure_credential.py +24 -16
  72. pulumi_newrelic/synthetics/monitor.py +348 -193
  73. pulumi_newrelic/synthetics/multi_location_alert_condition.py +105 -100
  74. pulumi_newrelic/synthetics/outputs.py +7 -2
  75. pulumi_newrelic/synthetics/private_location.py +25 -20
  76. pulumi_newrelic/synthetics/script_monitor.py +317 -182
  77. pulumi_newrelic/synthetics/secure_credential.py +23 -22
  78. pulumi_newrelic/synthetics/step_monitor.py +405 -100
  79. pulumi_newrelic/user.py +13 -10
  80. pulumi_newrelic/workflow.py +209 -196
  81. {pulumi_newrelic-5.21.0a1710157101.dist-info → pulumi_newrelic-5.39.0a1736849617.dist-info}/METADATA +7 -6
  82. pulumi_newrelic-5.39.0a1736849617.dist-info/RECORD +90 -0
  83. {pulumi_newrelic-5.21.0a1710157101.dist-info → pulumi_newrelic-5.39.0a1736849617.dist-info}/WHEEL +1 -1
  84. pulumi_newrelic-5.21.0a1710157101.dist-info/RECORD +0 -89
  85. {pulumi_newrelic-5.21.0a1710157101.dist-info → pulumi_newrelic-5.39.0a1736849617.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,
@@ -182,28 +187,26 @@ class NrqlDropRule(pulumi.CustomResource):
182
187
  """
183
188
  ## Example Usage
184
189
 
185
- <!--Start PulumiCodeChooser -->
186
190
  ```python
187
191
  import pulumi
188
192
  import pulumi_newrelic as newrelic
189
193
 
190
194
  foo = newrelic.NrqlDropRule("foo",
191
- account_id=12345,
192
- action="drop_data",
195
+ account_id="12345",
193
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",
194
198
  nrql="SELECT * FROM MyCustomEvent WHERE appName='LoadGeneratingApp' AND environment='development'")
195
199
  bar = newrelic.NrqlDropRule("bar",
196
- account_id=12345,
197
- action="drop_attributes",
200
+ account_id="12345",
198
201
  description="Removes the user name and email fields from MyCustomEvent",
202
+ action="drop_attributes",
199
203
  nrql="SELECT userEmail, userName FROM MyCustomEvent")
200
204
  baz = newrelic.NrqlDropRule("baz",
201
- account_id=12345,
202
- action="drop_attributes_from_metric_aggregates",
205
+ account_id="12345",
203
206
  description="Removes containerId from metric aggregates to reduce metric cardinality.",
207
+ action="drop_attributes_from_metric_aggregates",
204
208
  nrql="SELECT containerId FROM Metric")
205
209
  ```
206
- <!--End PulumiCodeChooser -->
207
210
 
208
211
  ## Using `newrelic-cli` to List Out Drop Rules
209
212
 
@@ -230,7 +233,7 @@ class NrqlDropRule(pulumi.CustomResource):
230
233
 
231
234
  :param str resource_name: The name of the resource.
232
235
  :param pulumi.ResourceOptions opts: Options for the resource.
233
- :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.
234
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`).
235
238
  :param pulumi.Input[str] description: The description of the drop rule.
236
239
  :param pulumi.Input[str] nrql: A NRQL string that specifies what data types to drop.
@@ -244,28 +247,26 @@ class NrqlDropRule(pulumi.CustomResource):
244
247
  """
245
248
  ## Example Usage
246
249
 
247
- <!--Start PulumiCodeChooser -->
248
250
  ```python
249
251
  import pulumi
250
252
  import pulumi_newrelic as newrelic
251
253
 
252
254
  foo = newrelic.NrqlDropRule("foo",
253
- account_id=12345,
254
- action="drop_data",
255
+ account_id="12345",
255
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",
256
258
  nrql="SELECT * FROM MyCustomEvent WHERE appName='LoadGeneratingApp' AND environment='development'")
257
259
  bar = newrelic.NrqlDropRule("bar",
258
- account_id=12345,
259
- action="drop_attributes",
260
+ account_id="12345",
260
261
  description="Removes the user name and email fields from MyCustomEvent",
262
+ action="drop_attributes",
261
263
  nrql="SELECT userEmail, userName FROM MyCustomEvent")
262
264
  baz = newrelic.NrqlDropRule("baz",
263
- account_id=12345,
264
- action="drop_attributes_from_metric_aggregates",
265
+ account_id="12345",
265
266
  description="Removes containerId from metric aggregates to reduce metric cardinality.",
267
+ action="drop_attributes_from_metric_aggregates",
266
268
  nrql="SELECT containerId FROM Metric")
267
269
  ```
268
- <!--End PulumiCodeChooser -->
269
270
 
270
271
  ## Using `newrelic-cli` to List Out Drop Rules
271
272
 
@@ -305,7 +306,7 @@ class NrqlDropRule(pulumi.CustomResource):
305
306
  def _internal_init(__self__,
306
307
  resource_name: str,
307
308
  opts: Optional[pulumi.ResourceOptions] = None,
308
- account_id: Optional[pulumi.Input[int]] = None,
309
+ account_id: Optional[pulumi.Input[str]] = None,
309
310
  action: Optional[pulumi.Input[str]] = None,
310
311
  description: Optional[pulumi.Input[str]] = None,
311
312
  nrql: Optional[pulumi.Input[str]] = None,
@@ -337,7 +338,7 @@ class NrqlDropRule(pulumi.CustomResource):
337
338
  def get(resource_name: str,
338
339
  id: pulumi.Input[str],
339
340
  opts: Optional[pulumi.ResourceOptions] = None,
340
- account_id: Optional[pulumi.Input[int]] = None,
341
+ account_id: Optional[pulumi.Input[str]] = None,
341
342
  action: Optional[pulumi.Input[str]] = None,
342
343
  description: Optional[pulumi.Input[str]] = None,
343
344
  nrql: Optional[pulumi.Input[str]] = None,
@@ -349,7 +350,7 @@ class NrqlDropRule(pulumi.CustomResource):
349
350
  :param str resource_name: The unique name of the resulting resource.
350
351
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
351
352
  :param pulumi.ResourceOptions opts: Options for the resource.
352
- :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.
353
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`).
354
355
  :param pulumi.Input[str] description: The description of the drop rule.
355
356
  :param pulumi.Input[str] nrql: A NRQL string that specifies what data types to drop.
@@ -368,7 +369,7 @@ class NrqlDropRule(pulumi.CustomResource):
368
369
 
369
370
  @property
370
371
  @pulumi.getter(name="accountId")
371
- def account_id(self) -> pulumi.Output[int]:
372
+ def account_id(self) -> pulumi.Output[str]:
372
373
  """
373
374
  Account where the drop rule will be put. Defaults to the account associated with the API key used.
374
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,
@@ -169,17 +174,16 @@ class ObfuscationExpression(pulumi.CustomResource):
169
174
 
170
175
  ## Example Usage
171
176
 
172
- <!--Start PulumiCodeChooser -->
173
177
  ```python
174
178
  import pulumi
175
179
  import pulumi_newrelic as newrelic
176
180
 
177
181
  foo = newrelic.ObfuscationExpression("foo",
178
- account_id=12345,
182
+ account_id="12345",
183
+ name="OExp",
179
184
  description="The description",
180
185
  regex="(regex.*)")
181
186
  ```
182
- <!--End PulumiCodeChooser -->
183
187
 
184
188
  ## Import
185
189
 
@@ -193,7 +197,7 @@ class ObfuscationExpression(pulumi.CustomResource):
193
197
 
194
198
  :param str resource_name: The name of the resource.
195
199
  :param pulumi.ResourceOptions opts: Options for the resource.
196
- :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.
197
201
  :param pulumi.Input[str] description: Description of expression.
198
202
  :param pulumi.Input[str] name: Name of expression.
199
203
  :param pulumi.Input[str] regex: Regex of expression. Must be wrapped in parentheses, e.g. (regex.*).
@@ -209,17 +213,16 @@ class ObfuscationExpression(pulumi.CustomResource):
209
213
 
210
214
  ## Example Usage
211
215
 
212
- <!--Start PulumiCodeChooser -->
213
216
  ```python
214
217
  import pulumi
215
218
  import pulumi_newrelic as newrelic
216
219
 
217
220
  foo = newrelic.ObfuscationExpression("foo",
218
- account_id=12345,
221
+ account_id="12345",
222
+ name="OExp",
219
223
  description="The description",
220
224
  regex="(regex.*)")
221
225
  ```
222
- <!--End PulumiCodeChooser -->
223
226
 
224
227
  ## Import
225
228
 
@@ -246,7 +249,7 @@ class ObfuscationExpression(pulumi.CustomResource):
246
249
  def _internal_init(__self__,
247
250
  resource_name: str,
248
251
  opts: Optional[pulumi.ResourceOptions] = None,
249
- account_id: Optional[pulumi.Input[int]] = None,
252
+ account_id: Optional[pulumi.Input[str]] = None,
250
253
  description: Optional[pulumi.Input[str]] = None,
251
254
  name: Optional[pulumi.Input[str]] = None,
252
255
  regex: Optional[pulumi.Input[str]] = None,
@@ -275,7 +278,7 @@ class ObfuscationExpression(pulumi.CustomResource):
275
278
  def get(resource_name: str,
276
279
  id: pulumi.Input[str],
277
280
  opts: Optional[pulumi.ResourceOptions] = None,
278
- account_id: Optional[pulumi.Input[int]] = None,
281
+ account_id: Optional[pulumi.Input[str]] = None,
279
282
  description: Optional[pulumi.Input[str]] = None,
280
283
  name: Optional[pulumi.Input[str]] = None,
281
284
  regex: Optional[pulumi.Input[str]] = None) -> 'ObfuscationExpression':
@@ -286,7 +289,7 @@ class ObfuscationExpression(pulumi.CustomResource):
286
289
  :param str resource_name: The unique name of the resulting resource.
287
290
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
288
291
  :param pulumi.ResourceOptions opts: Options for the resource.
289
- :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.
290
293
  :param pulumi.Input[str] description: Description of expression.
291
294
  :param pulumi.Input[str] name: Name of expression.
292
295
  :param pulumi.Input[str] regex: Regex of expression. Must be wrapped in parentheses, e.g. (regex.*).
@@ -303,7 +306,7 @@ class ObfuscationExpression(pulumi.CustomResource):
303
306
 
304
307
  @property
305
308
  @pulumi.getter(name="accountId")
306
- def account_id(self) -> pulumi.Output[int]:
309
+ def account_id(self) -> pulumi.Output[str]:
307
310
  """
308
311
  The account id associated with the obfuscation expression.
309
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,
@@ -235,25 +240,25 @@ class ObfuscationRule(pulumi.CustomResource):
235
240
 
236
241
  ## Example Usage
237
242
 
238
- <!--Start PulumiCodeChooser -->
239
243
  ```python
240
244
  import pulumi
241
245
  import pulumi_newrelic as newrelic
242
246
 
243
247
  bar = newrelic.ObfuscationExpression("bar",
248
+ name="expressionName",
244
249
  description="description of the expression",
245
250
  regex="(^http)")
246
251
  foo = newrelic.ObfuscationRule("foo",
252
+ name="ruleName",
247
253
  description="description of the rule",
248
254
  filter="hostStatus=running",
249
255
  enabled=True,
250
- actions=[newrelic.ObfuscationRuleActionArgs(
251
- attributes=["message"],
252
- expression_id=bar.id,
253
- method="MASK",
254
- )])
256
+ actions=[{
257
+ "attributes": ["message"],
258
+ "expression_id": bar.id,
259
+ "method": "MASK",
260
+ }])
255
261
  ```
256
- <!--End PulumiCodeChooser -->
257
262
 
258
263
  ## Import
259
264
 
@@ -267,8 +272,8 @@ class ObfuscationRule(pulumi.CustomResource):
267
272
 
268
273
  :param str resource_name: The name of the resource.
269
274
  :param pulumi.ResourceOptions opts: Options for the resource.
270
- :param pulumi.Input[int] account_id: The account id associated with the obfuscation rule.
271
- :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.
272
277
  :param pulumi.Input[str] description: Description of rule.
273
278
  :param pulumi.Input[bool] enabled: Whether the rule should be applied or not to incoming data.
274
279
  :param pulumi.Input[str] filter: NRQL for determining whether a given log record should have obfuscation actions applied.
@@ -285,25 +290,25 @@ class ObfuscationRule(pulumi.CustomResource):
285
290
 
286
291
  ## Example Usage
287
292
 
288
- <!--Start PulumiCodeChooser -->
289
293
  ```python
290
294
  import pulumi
291
295
  import pulumi_newrelic as newrelic
292
296
 
293
297
  bar = newrelic.ObfuscationExpression("bar",
298
+ name="expressionName",
294
299
  description="description of the expression",
295
300
  regex="(^http)")
296
301
  foo = newrelic.ObfuscationRule("foo",
302
+ name="ruleName",
297
303
  description="description of the rule",
298
304
  filter="hostStatus=running",
299
305
  enabled=True,
300
- actions=[newrelic.ObfuscationRuleActionArgs(
301
- attributes=["message"],
302
- expression_id=bar.id,
303
- method="MASK",
304
- )])
306
+ actions=[{
307
+ "attributes": ["message"],
308
+ "expression_id": bar.id,
309
+ "method": "MASK",
310
+ }])
305
311
  ```
306
- <!--End PulumiCodeChooser -->
307
312
 
308
313
  ## Import
309
314
 
@@ -330,8 +335,8 @@ class ObfuscationRule(pulumi.CustomResource):
330
335
  def _internal_init(__self__,
331
336
  resource_name: str,
332
337
  opts: Optional[pulumi.ResourceOptions] = None,
333
- account_id: Optional[pulumi.Input[int]] = None,
334
- 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,
335
340
  description: Optional[pulumi.Input[str]] = None,
336
341
  enabled: Optional[pulumi.Input[bool]] = None,
337
342
  filter: Optional[pulumi.Input[str]] = None,
@@ -367,8 +372,8 @@ class ObfuscationRule(pulumi.CustomResource):
367
372
  def get(resource_name: str,
368
373
  id: pulumi.Input[str],
369
374
  opts: Optional[pulumi.ResourceOptions] = None,
370
- account_id: Optional[pulumi.Input[int]] = None,
371
- 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,
372
377
  description: Optional[pulumi.Input[str]] = None,
373
378
  enabled: Optional[pulumi.Input[bool]] = None,
374
379
  filter: Optional[pulumi.Input[str]] = None,
@@ -380,8 +385,8 @@ class ObfuscationRule(pulumi.CustomResource):
380
385
  :param str resource_name: The unique name of the resulting resource.
381
386
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
382
387
  :param pulumi.ResourceOptions opts: Options for the resource.
383
- :param pulumi.Input[int] account_id: The account id associated with the obfuscation rule.
384
- :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.
385
390
  :param pulumi.Input[str] description: Description of rule.
386
391
  :param pulumi.Input[bool] enabled: Whether the rule should be applied or not to incoming data.
387
392
  :param pulumi.Input[str] filter: NRQL for determining whether a given log record should have obfuscation actions applied.
@@ -401,7 +406,7 @@ class ObfuscationRule(pulumi.CustomResource):
401
406
 
402
407
  @property
403
408
  @pulumi.getter(name="accountId")
404
- def account_id(self) -> pulumi.Output[int]:
409
+ def account_id(self) -> pulumi.Output[str]:
405
410
  """
406
411
  The account id associated with the obfuscation rule.
407
412
  """