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