pulumi-newrelic 5.22.0__py3-none-any.whl → 5.58.0a1763707205__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of pulumi-newrelic might be problematic. Click here for more details.

Files changed (92) hide show
  1. pulumi_newrelic/__init__.py +28 -1
  2. pulumi_newrelic/_inputs.py +10385 -2976
  3. pulumi_newrelic/_utilities.py +50 -10
  4. pulumi_newrelic/account_management.py +48 -42
  5. pulumi_newrelic/alert_channel.py +165 -175
  6. pulumi_newrelic/alert_condition.py +307 -319
  7. pulumi_newrelic/alert_muting_rule.py +193 -140
  8. pulumi_newrelic/alert_policy.py +121 -117
  9. pulumi_newrelic/alert_policy_channel.py +89 -79
  10. pulumi_newrelic/api_access_key.py +195 -193
  11. pulumi_newrelic/browser_application.py +120 -114
  12. pulumi_newrelic/cloud/__init__.py +3 -1
  13. pulumi_newrelic/cloud/_inputs.py +4267 -2714
  14. pulumi_newrelic/cloud/aws_govcloud_integrations.py +206 -196
  15. pulumi_newrelic/cloud/aws_govcloud_link_account.py +143 -228
  16. pulumi_newrelic/cloud/aws_integrations.py +510 -1490
  17. pulumi_newrelic/cloud/aws_link_account.py +80 -76
  18. pulumi_newrelic/cloud/azure_integrations.py +673 -587
  19. pulumi_newrelic/cloud/azure_link_account.py +121 -117
  20. pulumi_newrelic/cloud/gcp_integrations.py +428 -408
  21. pulumi_newrelic/cloud/gcp_link_account.py +65 -61
  22. pulumi_newrelic/cloud/oci_link_account.py +926 -0
  23. pulumi_newrelic/cloud/outputs.py +1678 -2321
  24. pulumi_newrelic/config/__init__.py +2 -1
  25. pulumi_newrelic/config/__init__.pyi +8 -3
  26. pulumi_newrelic/config/vars.py +22 -17
  27. pulumi_newrelic/data_partition_rule.py +119 -117
  28. pulumi_newrelic/entity_tags.py +111 -53
  29. pulumi_newrelic/events_to_metrics_rule.py +106 -102
  30. pulumi_newrelic/get_account.py +41 -33
  31. pulumi_newrelic/get_alert_channel.py +73 -28
  32. pulumi_newrelic/get_alert_policy.py +82 -33
  33. pulumi_newrelic/get_application.py +51 -43
  34. pulumi_newrelic/get_authentication_domain.py +27 -23
  35. pulumi_newrelic/get_cloud_account.py +43 -35
  36. pulumi_newrelic/get_entity.py +126 -183
  37. pulumi_newrelic/get_group.py +76 -31
  38. pulumi_newrelic/get_key_transaction.py +117 -42
  39. pulumi_newrelic/get_notification_destination.py +75 -38
  40. pulumi_newrelic/get_obfuscation_expression.py +47 -39
  41. pulumi_newrelic/get_service_level_alert_helper.py +189 -171
  42. pulumi_newrelic/get_test_grok_pattern.py +47 -36
  43. pulumi_newrelic/get_user.py +39 -31
  44. pulumi_newrelic/group.py +59 -199
  45. pulumi_newrelic/infra_alert_condition.py +399 -405
  46. pulumi_newrelic/insights/__init__.py +2 -1
  47. pulumi_newrelic/insights/_inputs.py +71 -28
  48. pulumi_newrelic/insights/event.py +54 -52
  49. pulumi_newrelic/insights/outputs.py +28 -23
  50. pulumi_newrelic/key_transaction.py +465 -0
  51. pulumi_newrelic/log_parsing_rule.py +159 -157
  52. pulumi_newrelic/monitor_downtime.py +311 -331
  53. pulumi_newrelic/notification_channel.py +534 -464
  54. pulumi_newrelic/notification_destination.py +238 -141
  55. pulumi_newrelic/nrql_alert_condition.py +820 -614
  56. pulumi_newrelic/nrql_drop_rule.py +113 -151
  57. pulumi_newrelic/obfuscation_expression.py +80 -76
  58. pulumi_newrelic/obfuscation_rule.py +115 -109
  59. pulumi_newrelic/one_dashboard.py +110 -104
  60. pulumi_newrelic/one_dashboard_json.py +69 -63
  61. pulumi_newrelic/one_dashboard_raw.py +212 -206
  62. pulumi_newrelic/outputs.py +4936 -2234
  63. pulumi_newrelic/pipeline_cloud_rule.py +335 -0
  64. pulumi_newrelic/plugins/__init__.py +2 -1
  65. pulumi_newrelic/plugins/_inputs.py +519 -89
  66. pulumi_newrelic/plugins/application_settings.py +463 -187
  67. pulumi_newrelic/plugins/outputs.py +336 -74
  68. pulumi_newrelic/plugins/workload.py +313 -189
  69. pulumi_newrelic/provider.py +156 -142
  70. pulumi_newrelic/pulumi-plugin.json +2 -1
  71. pulumi_newrelic/service_level.py +263 -263
  72. pulumi_newrelic/synthetics/__init__.py +2 -1
  73. pulumi_newrelic/synthetics/_inputs.py +265 -108
  74. pulumi_newrelic/synthetics/alert_condition.py +170 -180
  75. pulumi_newrelic/synthetics/broken_links_monitor.py +297 -249
  76. pulumi_newrelic/synthetics/cert_check_monitor.py +306 -258
  77. pulumi_newrelic/synthetics/get_private_location.py +51 -47
  78. pulumi_newrelic/synthetics/get_secure_credential.py +39 -31
  79. pulumi_newrelic/synthetics/monitor.py +658 -460
  80. pulumi_newrelic/synthetics/multi_location_alert_condition.py +211 -205
  81. pulumi_newrelic/synthetics/outputs.py +92 -87
  82. pulumi_newrelic/synthetics/private_location.py +118 -112
  83. pulumi_newrelic/synthetics/script_monitor.py +613 -373
  84. pulumi_newrelic/synthetics/secure_credential.py +97 -95
  85. pulumi_newrelic/synthetics/step_monitor.py +445 -275
  86. pulumi_newrelic/user.py +84 -80
  87. pulumi_newrelic/workflow.py +336 -322
  88. {pulumi_newrelic-5.22.0.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/METADATA +7 -6
  89. pulumi_newrelic-5.58.0a1763707205.dist-info/RECORD +92 -0
  90. {pulumi_newrelic-5.22.0.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/WHEEL +1 -1
  91. pulumi_newrelic-5.22.0.dist-info/RECORD +0 -89
  92. {pulumi_newrelic-5.22.0.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/top_level.txt +0 -0
@@ -1,12 +1,17 @@
1
1
  # coding=utf-8
2
- # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
2
+ # *** WARNING: this file was generated by pulumi-language-python. ***
3
3
  # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
 
5
- import copy
5
+ import builtins as _builtins
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
10
  from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
10
15
  from . import _utilities
11
16
 
12
17
  __all__ = ['NrqlDropRuleArgs', 'NrqlDropRule']
@@ -14,16 +19,16 @@ __all__ = ['NrqlDropRuleArgs', 'NrqlDropRule']
14
19
  @pulumi.input_type
15
20
  class NrqlDropRuleArgs:
16
21
  def __init__(__self__, *,
17
- action: pulumi.Input[str],
18
- nrql: pulumi.Input[str],
19
- account_id: Optional[pulumi.Input[int]] = None,
20
- description: Optional[pulumi.Input[str]] = None):
22
+ action: pulumi.Input[_builtins.str],
23
+ nrql: pulumi.Input[_builtins.str],
24
+ account_id: Optional[pulumi.Input[_builtins.str]] = None,
25
+ description: Optional[pulumi.Input[_builtins.str]] = None):
21
26
  """
22
27
  The set of arguments for constructing a NrqlDropRule resource.
23
- :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
- :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.
26
- :param pulumi.Input[str] description: The description of the drop rule.
28
+ :param pulumi.Input[_builtins.str] action: An action type specifying how to apply the NRQL string (either `drop_data`, `drop_attributes`, or ` drop_attributes_from_metric_aggregates`).
29
+ :param pulumi.Input[_builtins.str] nrql: A NRQL string that specifies what data types to drop.
30
+ :param pulumi.Input[_builtins.str] account_id: Account where the drop rule will be put. Defaults to the account associated with the API key used.
31
+ :param pulumi.Input[_builtins.str] description: The description of the drop rule.
27
32
  """
28
33
  pulumi.set(__self__, "action", action)
29
34
  pulumi.set(__self__, "nrql", nrql)
@@ -32,70 +37,72 @@ class NrqlDropRuleArgs:
32
37
  if description is not None:
33
38
  pulumi.set(__self__, "description", description)
34
39
 
35
- @property
40
+ @_builtins.property
36
41
  @pulumi.getter
37
- def action(self) -> pulumi.Input[str]:
42
+ def action(self) -> pulumi.Input[_builtins.str]:
38
43
  """
39
44
  An action type specifying how to apply the NRQL string (either `drop_data`, `drop_attributes`, or ` drop_attributes_from_metric_aggregates`).
40
45
  """
41
46
  return pulumi.get(self, "action")
42
47
 
43
48
  @action.setter
44
- def action(self, value: pulumi.Input[str]):
49
+ def action(self, value: pulumi.Input[_builtins.str]):
45
50
  pulumi.set(self, "action", value)
46
51
 
47
- @property
52
+ @_builtins.property
48
53
  @pulumi.getter
49
- def nrql(self) -> pulumi.Input[str]:
54
+ def nrql(self) -> pulumi.Input[_builtins.str]:
50
55
  """
51
56
  A NRQL string that specifies what data types to drop.
52
57
  """
53
58
  return pulumi.get(self, "nrql")
54
59
 
55
60
  @nrql.setter
56
- def nrql(self, value: pulumi.Input[str]):
61
+ def nrql(self, value: pulumi.Input[_builtins.str]):
57
62
  pulumi.set(self, "nrql", value)
58
63
 
59
- @property
64
+ @_builtins.property
60
65
  @pulumi.getter(name="accountId")
61
- def account_id(self) -> Optional[pulumi.Input[int]]:
66
+ def account_id(self) -> Optional[pulumi.Input[_builtins.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[_builtins.str]]):
69
74
  pulumi.set(self, "account_id", value)
70
75
 
71
- @property
76
+ @_builtins.property
72
77
  @pulumi.getter
73
- def description(self) -> Optional[pulumi.Input[str]]:
78
+ def description(self) -> Optional[pulumi.Input[_builtins.str]]:
74
79
  """
75
80
  The description of the drop rule.
76
81
  """
77
82
  return pulumi.get(self, "description")
78
83
 
79
84
  @description.setter
80
- def description(self, value: Optional[pulumi.Input[str]]):
85
+ def description(self, value: Optional[pulumi.Input[_builtins.str]]):
81
86
  pulumi.set(self, "description", value)
82
87
 
83
88
 
84
89
  @pulumi.input_type
85
90
  class _NrqlDropRuleState:
86
91
  def __init__(__self__, *,
87
- account_id: Optional[pulumi.Input[int]] = None,
88
- action: Optional[pulumi.Input[str]] = None,
89
- description: Optional[pulumi.Input[str]] = None,
90
- nrql: Optional[pulumi.Input[str]] = None,
91
- rule_id: Optional[pulumi.Input[str]] = None):
92
+ account_id: Optional[pulumi.Input[_builtins.str]] = None,
93
+ action: Optional[pulumi.Input[_builtins.str]] = None,
94
+ description: Optional[pulumi.Input[_builtins.str]] = None,
95
+ nrql: Optional[pulumi.Input[_builtins.str]] = None,
96
+ pipeline_cloud_rule_entity_id: Optional[pulumi.Input[_builtins.str]] = None,
97
+ rule_id: Optional[pulumi.Input[_builtins.str]] = None):
92
98
  """
93
99
  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.
95
- :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
- :param pulumi.Input[str] description: The description of the drop rule.
97
- :param pulumi.Input[str] nrql: A NRQL string that specifies what data types to drop.
98
- :param pulumi.Input[str] rule_id: The id, uniquely identifying the rule.
100
+ :param pulumi.Input[_builtins.str] account_id: Account where the drop rule will be put. Defaults to the account associated with the API key used.
101
+ :param pulumi.Input[_builtins.str] action: An action type specifying how to apply the NRQL string (either `drop_data`, `drop_attributes`, or ` drop_attributes_from_metric_aggregates`).
102
+ :param pulumi.Input[_builtins.str] description: The description of the drop rule.
103
+ :param pulumi.Input[_builtins.str] nrql: A NRQL string that specifies what data types to drop.
104
+ :param pulumi.Input[_builtins.str] pipeline_cloud_rule_entity_id: The ID (GUID) of the corresponding Pipeline Cloud Rule, (migrated upstream by New Relic, in light of the upcoming EOL, as stated in the Deprecation Warning above). This can be used to import the corresponding Pipeline Cloud Rule as a [`PipelineCloudRule`](https://www.terraform.io/providers/newrelic/newrelic/latest/docs/resources/pipeline_cloud_rule) resource, as explained in our Drop Rules EOL Migration Guide.
105
+ :param pulumi.Input[_builtins.str] rule_id: The id, uniquely identifying the rule.
99
106
  """
100
107
  if account_id is not None:
101
108
  pulumi.set(__self__, "account_id", account_id)
@@ -105,117 +112,96 @@ class _NrqlDropRuleState:
105
112
  pulumi.set(__self__, "description", description)
106
113
  if nrql is not None:
107
114
  pulumi.set(__self__, "nrql", nrql)
115
+ if pipeline_cloud_rule_entity_id is not None:
116
+ pulumi.set(__self__, "pipeline_cloud_rule_entity_id", pipeline_cloud_rule_entity_id)
108
117
  if rule_id is not None:
109
118
  pulumi.set(__self__, "rule_id", rule_id)
110
119
 
111
- @property
120
+ @_builtins.property
112
121
  @pulumi.getter(name="accountId")
113
- def account_id(self) -> Optional[pulumi.Input[int]]:
122
+ def account_id(self) -> Optional[pulumi.Input[_builtins.str]]:
114
123
  """
115
124
  Account where the drop rule will be put. Defaults to the account associated with the API key used.
116
125
  """
117
126
  return pulumi.get(self, "account_id")
118
127
 
119
128
  @account_id.setter
120
- def account_id(self, value: Optional[pulumi.Input[int]]):
129
+ def account_id(self, value: Optional[pulumi.Input[_builtins.str]]):
121
130
  pulumi.set(self, "account_id", value)
122
131
 
123
- @property
132
+ @_builtins.property
124
133
  @pulumi.getter
125
- def action(self) -> Optional[pulumi.Input[str]]:
134
+ def action(self) -> Optional[pulumi.Input[_builtins.str]]:
126
135
  """
127
136
  An action type specifying how to apply the NRQL string (either `drop_data`, `drop_attributes`, or ` drop_attributes_from_metric_aggregates`).
128
137
  """
129
138
  return pulumi.get(self, "action")
130
139
 
131
140
  @action.setter
132
- def action(self, value: Optional[pulumi.Input[str]]):
141
+ def action(self, value: Optional[pulumi.Input[_builtins.str]]):
133
142
  pulumi.set(self, "action", value)
134
143
 
135
- @property
144
+ @_builtins.property
136
145
  @pulumi.getter
137
- def description(self) -> Optional[pulumi.Input[str]]:
146
+ def description(self) -> Optional[pulumi.Input[_builtins.str]]:
138
147
  """
139
148
  The description of the drop rule.
140
149
  """
141
150
  return pulumi.get(self, "description")
142
151
 
143
152
  @description.setter
144
- def description(self, value: Optional[pulumi.Input[str]]):
153
+ def description(self, value: Optional[pulumi.Input[_builtins.str]]):
145
154
  pulumi.set(self, "description", value)
146
155
 
147
- @property
156
+ @_builtins.property
148
157
  @pulumi.getter
149
- def nrql(self) -> Optional[pulumi.Input[str]]:
158
+ def nrql(self) -> Optional[pulumi.Input[_builtins.str]]:
150
159
  """
151
160
  A NRQL string that specifies what data types to drop.
152
161
  """
153
162
  return pulumi.get(self, "nrql")
154
163
 
155
164
  @nrql.setter
156
- def nrql(self, value: Optional[pulumi.Input[str]]):
165
+ def nrql(self, value: Optional[pulumi.Input[_builtins.str]]):
157
166
  pulumi.set(self, "nrql", value)
158
167
 
159
- @property
168
+ @_builtins.property
169
+ @pulumi.getter(name="pipelineCloudRuleEntityId")
170
+ def pipeline_cloud_rule_entity_id(self) -> Optional[pulumi.Input[_builtins.str]]:
171
+ """
172
+ The ID (GUID) of the corresponding Pipeline Cloud Rule, (migrated upstream by New Relic, in light of the upcoming EOL, as stated in the Deprecation Warning above). This can be used to import the corresponding Pipeline Cloud Rule as a [`PipelineCloudRule`](https://www.terraform.io/providers/newrelic/newrelic/latest/docs/resources/pipeline_cloud_rule) resource, as explained in our Drop Rules EOL Migration Guide.
173
+ """
174
+ return pulumi.get(self, "pipeline_cloud_rule_entity_id")
175
+
176
+ @pipeline_cloud_rule_entity_id.setter
177
+ def pipeline_cloud_rule_entity_id(self, value: Optional[pulumi.Input[_builtins.str]]):
178
+ pulumi.set(self, "pipeline_cloud_rule_entity_id", value)
179
+
180
+ @_builtins.property
160
181
  @pulumi.getter(name="ruleId")
161
- def rule_id(self) -> Optional[pulumi.Input[str]]:
182
+ def rule_id(self) -> Optional[pulumi.Input[_builtins.str]]:
162
183
  """
163
184
  The id, uniquely identifying the rule.
164
185
  """
165
186
  return pulumi.get(self, "rule_id")
166
187
 
167
188
  @rule_id.setter
168
- def rule_id(self, value: Optional[pulumi.Input[str]]):
189
+ def rule_id(self, value: Optional[pulumi.Input[_builtins.str]]):
169
190
  pulumi.set(self, "rule_id", value)
170
191
 
171
192
 
193
+ @pulumi.type_token("newrelic:index/nrqlDropRule:NrqlDropRule")
172
194
  class NrqlDropRule(pulumi.CustomResource):
173
195
  @overload
174
196
  def __init__(__self__,
175
197
  resource_name: str,
176
198
  opts: Optional[pulumi.ResourceOptions] = None,
177
- account_id: Optional[pulumi.Input[int]] = None,
178
- action: Optional[pulumi.Input[str]] = None,
179
- description: Optional[pulumi.Input[str]] = None,
180
- nrql: Optional[pulumi.Input[str]] = None,
199
+ account_id: Optional[pulumi.Input[_builtins.str]] = None,
200
+ action: Optional[pulumi.Input[_builtins.str]] = None,
201
+ description: Optional[pulumi.Input[_builtins.str]] = None,
202
+ nrql: Optional[pulumi.Input[_builtins.str]] = None,
181
203
  __props__=None):
182
204
  """
183
- ## Example Usage
184
-
185
- <!--Start PulumiCodeChooser -->
186
- ```python
187
- import pulumi
188
- import pulumi_newrelic as newrelic
189
-
190
- foo = newrelic.NrqlDropRule("foo",
191
- account_id=12345,
192
- action="drop_data",
193
- 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.",
194
- nrql="SELECT * FROM MyCustomEvent WHERE appName='LoadGeneratingApp' AND environment='development'")
195
- bar = newrelic.NrqlDropRule("bar",
196
- account_id=12345,
197
- action="drop_attributes",
198
- description="Removes the user name and email fields from MyCustomEvent",
199
- nrql="SELECT userEmail, userName FROM MyCustomEvent")
200
- baz = newrelic.NrqlDropRule("baz",
201
- account_id=12345,
202
- action="drop_attributes_from_metric_aggregates",
203
- description="Removes containerId from metric aggregates to reduce metric cardinality.",
204
- nrql="SELECT containerId FROM Metric")
205
- ```
206
- <!--End PulumiCodeChooser -->
207
-
208
- ## Using `newrelic-cli` to List Out Drop Rules
209
-
210
- All NRQL Drop Rules associated with a New Relic account may be listed out using the following newrelic-cli command:
211
-
212
- This would print all drop rules associated with your New Relic account to the terminal.
213
- The number of rules to be printed can be customized using the `limit` argument of this command.
214
- For instance, the following command limits the number of drop rules printed to two.
215
-
216
- 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.
217
- 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.
218
-
219
205
  ## Import
220
206
 
221
207
  New Relic NRQL drop rules can be imported using a concatenated string of the format
@@ -230,10 +216,10 @@ class NrqlDropRule(pulumi.CustomResource):
230
216
 
231
217
  :param str resource_name: The name of the resource.
232
218
  :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.
234
- :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
- :param pulumi.Input[str] description: The description of the drop rule.
236
- :param pulumi.Input[str] nrql: A NRQL string that specifies what data types to drop.
219
+ :param pulumi.Input[_builtins.str] account_id: Account where the drop rule will be put. Defaults to the account associated with the API key used.
220
+ :param pulumi.Input[_builtins.str] action: An action type specifying how to apply the NRQL string (either `drop_data`, `drop_attributes`, or ` drop_attributes_from_metric_aggregates`).
221
+ :param pulumi.Input[_builtins.str] description: The description of the drop rule.
222
+ :param pulumi.Input[_builtins.str] nrql: A NRQL string that specifies what data types to drop.
237
223
  """
238
224
  ...
239
225
  @overload
@@ -242,42 +228,6 @@ class NrqlDropRule(pulumi.CustomResource):
242
228
  args: NrqlDropRuleArgs,
243
229
  opts: Optional[pulumi.ResourceOptions] = None):
244
230
  """
245
- ## Example Usage
246
-
247
- <!--Start PulumiCodeChooser -->
248
- ```python
249
- import pulumi
250
- import pulumi_newrelic as newrelic
251
-
252
- foo = newrelic.NrqlDropRule("foo",
253
- account_id=12345,
254
- action="drop_data",
255
- 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.",
256
- nrql="SELECT * FROM MyCustomEvent WHERE appName='LoadGeneratingApp' AND environment='development'")
257
- bar = newrelic.NrqlDropRule("bar",
258
- account_id=12345,
259
- action="drop_attributes",
260
- description="Removes the user name and email fields from MyCustomEvent",
261
- nrql="SELECT userEmail, userName FROM MyCustomEvent")
262
- baz = newrelic.NrqlDropRule("baz",
263
- account_id=12345,
264
- action="drop_attributes_from_metric_aggregates",
265
- description="Removes containerId from metric aggregates to reduce metric cardinality.",
266
- nrql="SELECT containerId FROM Metric")
267
- ```
268
- <!--End PulumiCodeChooser -->
269
-
270
- ## Using `newrelic-cli` to List Out Drop Rules
271
-
272
- All NRQL Drop Rules associated with a New Relic account may be listed out using the following newrelic-cli command:
273
-
274
- This would print all drop rules associated with your New Relic account to the terminal.
275
- The number of rules to be printed can be customized using the `limit` argument of this command.
276
- For instance, the following command limits the number of drop rules printed to two.
277
-
278
- 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.
279
- 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.
280
-
281
231
  ## Import
282
232
 
283
233
  New Relic NRQL drop rules can be imported using a concatenated string of the format
@@ -305,10 +255,10 @@ class NrqlDropRule(pulumi.CustomResource):
305
255
  def _internal_init(__self__,
306
256
  resource_name: str,
307
257
  opts: Optional[pulumi.ResourceOptions] = None,
308
- account_id: Optional[pulumi.Input[int]] = None,
309
- action: Optional[pulumi.Input[str]] = None,
310
- description: Optional[pulumi.Input[str]] = None,
311
- nrql: Optional[pulumi.Input[str]] = None,
258
+ account_id: Optional[pulumi.Input[_builtins.str]] = None,
259
+ action: Optional[pulumi.Input[_builtins.str]] = None,
260
+ description: Optional[pulumi.Input[_builtins.str]] = None,
261
+ nrql: Optional[pulumi.Input[_builtins.str]] = None,
312
262
  __props__=None):
313
263
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
314
264
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -326,6 +276,7 @@ class NrqlDropRule(pulumi.CustomResource):
326
276
  if nrql is None and not opts.urn:
327
277
  raise TypeError("Missing required property 'nrql'")
328
278
  __props__.__dict__["nrql"] = nrql
279
+ __props__.__dict__["pipeline_cloud_rule_entity_id"] = None
329
280
  __props__.__dict__["rule_id"] = None
330
281
  super(NrqlDropRule, __self__).__init__(
331
282
  'newrelic:index/nrqlDropRule:NrqlDropRule',
@@ -337,11 +288,12 @@ class NrqlDropRule(pulumi.CustomResource):
337
288
  def get(resource_name: str,
338
289
  id: pulumi.Input[str],
339
290
  opts: Optional[pulumi.ResourceOptions] = None,
340
- account_id: Optional[pulumi.Input[int]] = None,
341
- action: Optional[pulumi.Input[str]] = None,
342
- description: Optional[pulumi.Input[str]] = None,
343
- nrql: Optional[pulumi.Input[str]] = None,
344
- rule_id: Optional[pulumi.Input[str]] = None) -> 'NrqlDropRule':
291
+ account_id: Optional[pulumi.Input[_builtins.str]] = None,
292
+ action: Optional[pulumi.Input[_builtins.str]] = None,
293
+ description: Optional[pulumi.Input[_builtins.str]] = None,
294
+ nrql: Optional[pulumi.Input[_builtins.str]] = None,
295
+ pipeline_cloud_rule_entity_id: Optional[pulumi.Input[_builtins.str]] = None,
296
+ rule_id: Optional[pulumi.Input[_builtins.str]] = None) -> 'NrqlDropRule':
345
297
  """
346
298
  Get an existing NrqlDropRule resource's state with the given name, id, and optional extra
347
299
  properties used to qualify the lookup.
@@ -349,11 +301,12 @@ class NrqlDropRule(pulumi.CustomResource):
349
301
  :param str resource_name: The unique name of the resulting resource.
350
302
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
351
303
  :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] action: An action type specifying how to apply the NRQL string (either `drop_data`, `drop_attributes`, or ` drop_attributes_from_metric_aggregates`).
354
- :param pulumi.Input[str] description: The description of the drop rule.
355
- :param pulumi.Input[str] nrql: A NRQL string that specifies what data types to drop.
356
- :param pulumi.Input[str] rule_id: The id, uniquely identifying the rule.
304
+ :param pulumi.Input[_builtins.str] account_id: Account where the drop rule will be put. Defaults to the account associated with the API key used.
305
+ :param pulumi.Input[_builtins.str] action: An action type specifying how to apply the NRQL string (either `drop_data`, `drop_attributes`, or ` drop_attributes_from_metric_aggregates`).
306
+ :param pulumi.Input[_builtins.str] description: The description of the drop rule.
307
+ :param pulumi.Input[_builtins.str] nrql: A NRQL string that specifies what data types to drop.
308
+ :param pulumi.Input[_builtins.str] pipeline_cloud_rule_entity_id: The ID (GUID) of the corresponding Pipeline Cloud Rule, (migrated upstream by New Relic, in light of the upcoming EOL, as stated in the Deprecation Warning above). This can be used to import the corresponding Pipeline Cloud Rule as a [`PipelineCloudRule`](https://www.terraform.io/providers/newrelic/newrelic/latest/docs/resources/pipeline_cloud_rule) resource, as explained in our Drop Rules EOL Migration Guide.
309
+ :param pulumi.Input[_builtins.str] rule_id: The id, uniquely identifying the rule.
357
310
  """
358
311
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
359
312
 
@@ -363,44 +316,53 @@ class NrqlDropRule(pulumi.CustomResource):
363
316
  __props__.__dict__["action"] = action
364
317
  __props__.__dict__["description"] = description
365
318
  __props__.__dict__["nrql"] = nrql
319
+ __props__.__dict__["pipeline_cloud_rule_entity_id"] = pipeline_cloud_rule_entity_id
366
320
  __props__.__dict__["rule_id"] = rule_id
367
321
  return NrqlDropRule(resource_name, opts=opts, __props__=__props__)
368
322
 
369
- @property
323
+ @_builtins.property
370
324
  @pulumi.getter(name="accountId")
371
- def account_id(self) -> pulumi.Output[int]:
325
+ def account_id(self) -> pulumi.Output[_builtins.str]:
372
326
  """
373
327
  Account where the drop rule will be put. Defaults to the account associated with the API key used.
374
328
  """
375
329
  return pulumi.get(self, "account_id")
376
330
 
377
- @property
331
+ @_builtins.property
378
332
  @pulumi.getter
379
- def action(self) -> pulumi.Output[str]:
333
+ def action(self) -> pulumi.Output[_builtins.str]:
380
334
  """
381
335
  An action type specifying how to apply the NRQL string (either `drop_data`, `drop_attributes`, or ` drop_attributes_from_metric_aggregates`).
382
336
  """
383
337
  return pulumi.get(self, "action")
384
338
 
385
- @property
339
+ @_builtins.property
386
340
  @pulumi.getter
387
- def description(self) -> pulumi.Output[Optional[str]]:
341
+ def description(self) -> pulumi.Output[Optional[_builtins.str]]:
388
342
  """
389
343
  The description of the drop rule.
390
344
  """
391
345
  return pulumi.get(self, "description")
392
346
 
393
- @property
347
+ @_builtins.property
394
348
  @pulumi.getter
395
- def nrql(self) -> pulumi.Output[str]:
349
+ def nrql(self) -> pulumi.Output[_builtins.str]:
396
350
  """
397
351
  A NRQL string that specifies what data types to drop.
398
352
  """
399
353
  return pulumi.get(self, "nrql")
400
354
 
401
- @property
355
+ @_builtins.property
356
+ @pulumi.getter(name="pipelineCloudRuleEntityId")
357
+ def pipeline_cloud_rule_entity_id(self) -> pulumi.Output[_builtins.str]:
358
+ """
359
+ The ID (GUID) of the corresponding Pipeline Cloud Rule, (migrated upstream by New Relic, in light of the upcoming EOL, as stated in the Deprecation Warning above). This can be used to import the corresponding Pipeline Cloud Rule as a [`PipelineCloudRule`](https://www.terraform.io/providers/newrelic/newrelic/latest/docs/resources/pipeline_cloud_rule) resource, as explained in our Drop Rules EOL Migration Guide.
360
+ """
361
+ return pulumi.get(self, "pipeline_cloud_rule_entity_id")
362
+
363
+ @_builtins.property
402
364
  @pulumi.getter(name="ruleId")
403
- def rule_id(self) -> pulumi.Output[str]:
365
+ def rule_id(self) -> pulumi.Output[_builtins.str]:
404
366
  """
405
367
  The id, uniquely identifying the rule.
406
368
  """