pulumi-newrelic 5.25.2__tar.gz → 5.25.3__tar.gz

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.
Files changed (94) hide show
  1. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/PKG-INFO +1 -1
  2. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/_inputs.py +8 -24
  3. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/_utilities.py +35 -0
  4. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/alert_channel.py +2 -2
  5. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/alert_policy.py +3 -9
  6. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/alert_policy_channel.py +2 -2
  7. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/notification_channel.py +10 -2
  8. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/nrql_alert_condition.py +6 -18
  9. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/outputs.py +8 -24
  10. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/provider.py +8 -24
  11. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/pulumi-plugin.json +1 -1
  12. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/synthetics/broken_links_monitor.py +9 -9
  13. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/synthetics/cert_check_monitor.py +9 -9
  14. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/synthetics/monitor.py +2 -2
  15. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/synthetics/script_monitor.py +2 -2
  16. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/synthetics/step_monitor.py +9 -9
  17. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/workflow.py +21 -9
  18. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic.egg-info/PKG-INFO +1 -1
  19. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pyproject.toml +1 -1
  20. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/README.md +0 -0
  21. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/__init__.py +0 -0
  22. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/account_management.py +0 -0
  23. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/alert_condition.py +0 -0
  24. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/alert_muting_rule.py +0 -0
  25. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/api_access_key.py +0 -0
  26. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/browser_application.py +0 -0
  27. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/cloud/__init__.py +0 -0
  28. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/cloud/_inputs.py +0 -0
  29. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/cloud/aws_govcloud_integrations.py +0 -0
  30. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/cloud/aws_govcloud_link_account.py +0 -0
  31. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/cloud/aws_integrations.py +0 -0
  32. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/cloud/aws_link_account.py +0 -0
  33. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/cloud/azure_integrations.py +0 -0
  34. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/cloud/azure_link_account.py +0 -0
  35. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/cloud/gcp_integrations.py +0 -0
  36. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/cloud/gcp_link_account.py +0 -0
  37. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/cloud/outputs.py +0 -0
  38. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/config/__init__.py +0 -0
  39. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/config/__init__.pyi +0 -0
  40. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/config/vars.py +0 -0
  41. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/data_partition_rule.py +0 -0
  42. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/entity_tags.py +0 -0
  43. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/events_to_metrics_rule.py +0 -0
  44. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/get_account.py +0 -0
  45. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/get_alert_channel.py +0 -0
  46. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/get_alert_policy.py +0 -0
  47. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/get_application.py +0 -0
  48. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/get_authentication_domain.py +0 -0
  49. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/get_cloud_account.py +0 -0
  50. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/get_entity.py +0 -0
  51. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/get_group.py +0 -0
  52. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/get_key_transaction.py +0 -0
  53. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/get_notification_destination.py +0 -0
  54. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/get_obfuscation_expression.py +0 -0
  55. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/get_service_level_alert_helper.py +0 -0
  56. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/get_test_grok_pattern.py +0 -0
  57. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/get_user.py +0 -0
  58. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/group.py +0 -0
  59. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/infra_alert_condition.py +0 -0
  60. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/insights/__init__.py +0 -0
  61. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/insights/_inputs.py +0 -0
  62. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/insights/event.py +0 -0
  63. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/insights/outputs.py +0 -0
  64. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/log_parsing_rule.py +0 -0
  65. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/monitor_downtime.py +0 -0
  66. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/notification_destination.py +0 -0
  67. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/nrql_drop_rule.py +0 -0
  68. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/obfuscation_expression.py +0 -0
  69. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/obfuscation_rule.py +0 -0
  70. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/one_dashboard.py +0 -0
  71. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/one_dashboard_json.py +0 -0
  72. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/one_dashboard_raw.py +0 -0
  73. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/plugins/__init__.py +0 -0
  74. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/plugins/_inputs.py +0 -0
  75. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/plugins/application_settings.py +0 -0
  76. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/plugins/outputs.py +0 -0
  77. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/plugins/workload.py +0 -0
  78. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/py.typed +0 -0
  79. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/service_level.py +0 -0
  80. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/synthetics/__init__.py +0 -0
  81. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/synthetics/_inputs.py +0 -0
  82. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/synthetics/alert_condition.py +0 -0
  83. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/synthetics/get_private_location.py +0 -0
  84. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/synthetics/get_secure_credential.py +0 -0
  85. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/synthetics/multi_location_alert_condition.py +0 -0
  86. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/synthetics/outputs.py +0 -0
  87. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/synthetics/private_location.py +0 -0
  88. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/synthetics/secure_credential.py +0 -0
  89. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic/user.py +0 -0
  90. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic.egg-info/SOURCES.txt +0 -0
  91. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic.egg-info/dependency_links.txt +0 -0
  92. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic.egg-info/requires.txt +0 -0
  93. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/pulumi_newrelic.egg-info/top_level.txt +0 -0
  94. {pulumi_newrelic-5.25.2 → pulumi_newrelic-5.25.3}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pulumi_newrelic
3
- Version: 5.25.2
3
+ Version: 5.25.3
4
4
  Summary: A Pulumi package for creating and managing New Relic resources.
5
5
  License: Apache-2.0
6
6
  Project-URL: Homepage, https://pulumi.io
@@ -1337,13 +1337,11 @@ class NrqlAlertConditionCriticalArgs:
1337
1337
 
1338
1338
  @property
1339
1339
  @pulumi.getter
1340
+ @_utilities.deprecated("""use `threshold_duration` attribute instead""")
1340
1341
  def duration(self) -> Optional[pulumi.Input[int]]:
1341
1342
  """
1342
1343
  In minutes, must be in the range of 1 to 120 (inclusive).
1343
1344
  """
1344
- warnings.warn("""use `threshold_duration` attribute instead""", DeprecationWarning)
1345
- pulumi.log.warn("""duration is deprecated: use `threshold_duration` attribute instead""")
1346
-
1347
1345
  return pulumi.get(self, "duration")
1348
1346
 
1349
1347
  @duration.setter
@@ -1388,13 +1386,11 @@ class NrqlAlertConditionCriticalArgs:
1388
1386
 
1389
1387
  @property
1390
1388
  @pulumi.getter(name="timeFunction")
1389
+ @_utilities.deprecated("""use `threshold_occurrences` attribute instead""")
1391
1390
  def time_function(self) -> Optional[pulumi.Input[str]]:
1392
1391
  """
1393
1392
  Valid values are: 'all' or 'any'
1394
1393
  """
1395
- warnings.warn("""use `threshold_occurrences` attribute instead""", DeprecationWarning)
1396
- pulumi.log.warn("""time_function is deprecated: use `threshold_occurrences` attribute instead""")
1397
-
1398
1394
  return pulumi.get(self, "time_function")
1399
1395
 
1400
1396
  @time_function.setter
@@ -1435,13 +1431,11 @@ class NrqlAlertConditionNrqlArgs:
1435
1431
 
1436
1432
  @property
1437
1433
  @pulumi.getter(name="evaluationOffset")
1434
+ @_utilities.deprecated("""use `aggregation_method` attribute instead""")
1438
1435
  def evaluation_offset(self) -> Optional[pulumi.Input[int]]:
1439
1436
  """
1440
1437
  NRQL queries are evaluated in one-minute time windows. The start time depends on the value you provide in the NRQL condition's `evaluation_offset`.
1441
1438
  """
1442
- warnings.warn("""use `aggregation_method` attribute instead""", DeprecationWarning)
1443
- pulumi.log.warn("""evaluation_offset is deprecated: use `aggregation_method` attribute instead""")
1444
-
1445
1439
  return pulumi.get(self, "evaluation_offset")
1446
1440
 
1447
1441
  @evaluation_offset.setter
@@ -1450,13 +1444,11 @@ class NrqlAlertConditionNrqlArgs:
1450
1444
 
1451
1445
  @property
1452
1446
  @pulumi.getter(name="sinceValue")
1447
+ @_utilities.deprecated("""use `aggregation_method` attribute instead""")
1453
1448
  def since_value(self) -> Optional[pulumi.Input[str]]:
1454
1449
  """
1455
1450
  NRQL queries are evaluated in one-minute time windows. The start time depends on the value you provide in the NRQL condition's `since_value`.
1456
1451
  """
1457
- warnings.warn("""use `aggregation_method` attribute instead""", DeprecationWarning)
1458
- pulumi.log.warn("""since_value is deprecated: use `aggregation_method` attribute instead""")
1459
-
1460
1452
  return pulumi.get(self, "since_value")
1461
1453
 
1462
1454
  @since_value.setter
@@ -1517,13 +1509,11 @@ class NrqlAlertConditionTermArgs:
1517
1509
 
1518
1510
  @property
1519
1511
  @pulumi.getter
1512
+ @_utilities.deprecated("""use `threshold_duration` attribute instead""")
1520
1513
  def duration(self) -> Optional[pulumi.Input[int]]:
1521
1514
  """
1522
1515
  In minutes, must be in the range of 1 to 120 (inclusive).
1523
1516
  """
1524
- warnings.warn("""use `threshold_duration` attribute instead""", DeprecationWarning)
1525
- pulumi.log.warn("""duration is deprecated: use `threshold_duration` attribute instead""")
1526
-
1527
1517
  return pulumi.get(self, "duration")
1528
1518
 
1529
1519
  @duration.setter
@@ -1580,13 +1570,11 @@ class NrqlAlertConditionTermArgs:
1580
1570
 
1581
1571
  @property
1582
1572
  @pulumi.getter(name="timeFunction")
1573
+ @_utilities.deprecated("""use `threshold_occurrences` attribute instead""")
1583
1574
  def time_function(self) -> Optional[pulumi.Input[str]]:
1584
1575
  """
1585
1576
  Valid values are: 'all' or 'any'
1586
1577
  """
1587
- warnings.warn("""use `threshold_occurrences` attribute instead""", DeprecationWarning)
1588
- pulumi.log.warn("""time_function is deprecated: use `threshold_occurrences` attribute instead""")
1589
-
1590
1578
  return pulumi.get(self, "time_function")
1591
1579
 
1592
1580
  @time_function.setter
@@ -1643,13 +1631,11 @@ class NrqlAlertConditionWarningArgs:
1643
1631
 
1644
1632
  @property
1645
1633
  @pulumi.getter
1634
+ @_utilities.deprecated("""use `threshold_duration` attribute instead""")
1646
1635
  def duration(self) -> Optional[pulumi.Input[int]]:
1647
1636
  """
1648
1637
  In minutes, must be in the range of 1 to 120 (inclusive).
1649
1638
  """
1650
- warnings.warn("""use `threshold_duration` attribute instead""", DeprecationWarning)
1651
- pulumi.log.warn("""duration is deprecated: use `threshold_duration` attribute instead""")
1652
-
1653
1639
  return pulumi.get(self, "duration")
1654
1640
 
1655
1641
  @duration.setter
@@ -1694,13 +1680,11 @@ class NrqlAlertConditionWarningArgs:
1694
1680
 
1695
1681
  @property
1696
1682
  @pulumi.getter(name="timeFunction")
1683
+ @_utilities.deprecated("""use `threshold_occurrences` attribute instead""")
1697
1684
  def time_function(self) -> Optional[pulumi.Input[str]]:
1698
1685
  """
1699
1686
  Valid values are: 'all' or 'any'
1700
1687
  """
1701
- warnings.warn("""use `threshold_occurrences` attribute instead""", DeprecationWarning)
1702
- pulumi.log.warn("""time_function is deprecated: use `threshold_occurrences` attribute instead""")
1703
-
1704
1688
  return pulumi.get(self, "time_function")
1705
1689
 
1706
1690
  @time_function.setter
@@ -4,6 +4,7 @@
4
4
 
5
5
 
6
6
  import asyncio
7
+ import functools
7
8
  import importlib.metadata
8
9
  import importlib.util
9
10
  import inspect
@@ -11,6 +12,7 @@ import json
11
12
  import os
12
13
  import sys
13
14
  import typing
15
+ import warnings
14
16
 
15
17
  import pulumi
16
18
  import pulumi.runtime
@@ -19,6 +21,8 @@ from pulumi.runtime.sync_await import _sync_await
19
21
  from semver import VersionInfo as SemverVersion
20
22
  from parver import Version as PEP440Version
21
23
 
24
+ C = typing.TypeVar("C", bound=typing.Callable)
25
+
22
26
 
23
27
  def get_env(*args):
24
28
  for v in args:
@@ -287,5 +291,36 @@ async def _await_output(o: pulumi.Output[typing.Any]) -> typing.Tuple[object, bo
287
291
  await o._resources,
288
292
  )
289
293
 
294
+
295
+ # This is included to provide an upgrade path for users who are using a version
296
+ # of the Pulumi SDK (<3.121.0) that does not include the `deprecated` decorator.
297
+ def deprecated(message: str) -> typing.Callable[[C], C]:
298
+ """
299
+ Decorator to indicate a function is deprecated.
300
+
301
+ As well as inserting appropriate statements to indicate that the function is
302
+ deprecated, this decorator also tags the function with a special attribute
303
+ so that Pulumi code can detect that it is deprecated and react appropriately
304
+ in certain situations.
305
+
306
+ message is the deprecation message that should be printed if the function is called.
307
+ """
308
+
309
+ def decorator(fn: C) -> C:
310
+ if not callable(fn):
311
+ raise TypeError("Expected fn to be callable")
312
+
313
+ @functools.wraps(fn)
314
+ def deprecated_fn(*args, **kwargs):
315
+ warnings.warn(message)
316
+ pulumi.warn(f"{fn.__name__} is deprecated: {message}")
317
+
318
+ return fn(*args, **kwargs)
319
+
320
+ deprecated_fn.__dict__["_pulumi_deprecated_callable"] = fn
321
+ return typing.cast(C, deprecated_fn)
322
+
323
+ return decorator
324
+
290
325
  def get_plugin_download_url():
291
326
  return None
@@ -169,7 +169,7 @@ class AlertChannel(pulumi.CustomResource):
169
169
  """
170
170
  Use this resource to create and manage New Relic alert channels.
171
171
 
172
- > **WARNING:** The `AlertChannel` resource is deprecated and will be removed in the next major release. For managing channel resources in Workflows, use `NotificationChannel`.
172
+ > **WARNING:** The `AlertChannel` resource is **deprecated** and will be **removed in a future major release**. As an alternative, you can set up channels using a combination of the newer resources `NotificationDestination` for a detailed illustration on setting up channels with these resources.
173
173
 
174
174
  ## Example Usage
175
175
 
@@ -317,7 +317,7 @@ class AlertChannel(pulumi.CustomResource):
317
317
  """
318
318
  Use this resource to create and manage New Relic alert channels.
319
319
 
320
- > **WARNING:** The `AlertChannel` resource is deprecated and will be removed in the next major release. For managing channel resources in Workflows, use `NotificationChannel`.
320
+ > **WARNING:** The `AlertChannel` resource is **deprecated** and will be **removed in a future major release**. As an alternative, you can set up channels using a combination of the newer resources `NotificationDestination` for a detailed illustration on setting up channels with these resources.
321
321
 
322
322
  ## Example Usage
323
323
 
@@ -51,13 +51,11 @@ class AlertPolicyArgs:
51
51
 
52
52
  @property
53
53
  @pulumi.getter(name="channelIds")
54
+ @_utilities.deprecated("""The `channel_ids` attribute is deprecated and will be removed in the next major release of the provider.""")
54
55
  def channel_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
55
56
  """
56
57
  An array of channel IDs (integers) to assign to the policy. Adding or removing channel IDs from this array will result in a new alert policy resource being created and the old one being destroyed. Also note that channel IDs _cannot_ be imported.
57
58
  """
58
- warnings.warn("""The `channel_ids` attribute is deprecated and will be removed in the next major release of the provider.""", DeprecationWarning)
59
- pulumi.log.warn("""channel_ids is deprecated: The `channel_ids` attribute is deprecated and will be removed in the next major release of the provider.""")
60
-
61
59
  return pulumi.get(self, "channel_ids")
62
60
 
63
61
  @channel_ids.setter
@@ -129,13 +127,11 @@ class _AlertPolicyState:
129
127
 
130
128
  @property
131
129
  @pulumi.getter(name="channelIds")
130
+ @_utilities.deprecated("""The `channel_ids` attribute is deprecated and will be removed in the next major release of the provider.""")
132
131
  def channel_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
133
132
  """
134
133
  An array of channel IDs (integers) to assign to the policy. Adding or removing channel IDs from this array will result in a new alert policy resource being created and the old one being destroyed. Also note that channel IDs _cannot_ be imported.
135
134
  """
136
- warnings.warn("""The `channel_ids` attribute is deprecated and will be removed in the next major release of the provider.""", DeprecationWarning)
137
- pulumi.log.warn("""channel_ids is deprecated: The `channel_ids` attribute is deprecated and will be removed in the next major release of the provider.""")
138
-
139
135
  return pulumi.get(self, "channel_ids")
140
136
 
141
137
  @channel_ids.setter
@@ -450,13 +446,11 @@ class AlertPolicy(pulumi.CustomResource):
450
446
 
451
447
  @property
452
448
  @pulumi.getter(name="channelIds")
449
+ @_utilities.deprecated("""The `channel_ids` attribute is deprecated and will be removed in the next major release of the provider.""")
453
450
  def channel_ids(self) -> pulumi.Output[Optional[Sequence[str]]]:
454
451
  """
455
452
  An array of channel IDs (integers) to assign to the policy. Adding or removing channel IDs from this array will result in a new alert policy resource being created and the old one being destroyed. Also note that channel IDs _cannot_ be imported.
456
453
  """
457
- warnings.warn("""The `channel_ids` attribute is deprecated and will be removed in the next major release of the provider.""", DeprecationWarning)
458
- pulumi.log.warn("""channel_ids is deprecated: The `channel_ids` attribute is deprecated and will be removed in the next major release of the provider.""")
459
-
460
454
  return pulumi.get(self, "channel_ids")
461
455
 
462
456
  @property
@@ -133,7 +133,7 @@ class AlertPolicyChannel(pulumi.CustomResource):
133
133
  """
134
134
  Use this resource to map alert policies to alert channels in New Relic.
135
135
 
136
- > **WARNING:** The `AlertPolicyChannel` resource is deprecated and will be removed in the next major release. For managing channel resources in Workflows, use `NotificationChannel`.
136
+ > **WARNING:** The `AlertPolicyChannel` resource is **deprecated** and will be **removed in a future major release**. As an alternative, you can map channels to policies using the resource `Workflow` for a detailed illustration on setting up channels and workflows with these resources.
137
137
 
138
138
  ## Example Usage
139
139
 
@@ -196,7 +196,7 @@ class AlertPolicyChannel(pulumi.CustomResource):
196
196
  """
197
197
  Use this resource to map alert policies to alert channels in New Relic.
198
198
 
199
- > **WARNING:** The `AlertPolicyChannel` resource is deprecated and will be removed in the next major release. For managing channel resources in Workflows, use `NotificationChannel`.
199
+ > **WARNING:** The `AlertPolicyChannel` resource is **deprecated** and will be **removed in a future major release**. As an alternative, you can map channels to policies using the resource `Workflow` for a detailed illustration on setting up channels and workflows with these resources.
200
200
 
201
201
  ## Example Usage
202
202
 
@@ -573,8 +573,12 @@ class NotificationChannel(pulumi.CustomResource):
573
573
  ## Additional Information
574
574
 
575
575
  More details about the channels API can be found [here](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels).
576
+ ### Moving from Legacy Alert Channels to Notification Channels
577
+ As described in the documentation of this resource, channels can be created and managed using `NotificationDestination`, which is **deprecated** and will be **removed in a future major release**, as stated in the documentation of the resource.
576
578
 
577
- > **NOTE:** `AlertChannel` are legacy resources.
579
+ If you're currently using `AlertChannel` to manage channels, we **strongly recommend** migrating to these notifications-based resources at the earliest.
580
+
581
+ Please refer to the examples in this page, or this example for illustrations on setting up channels with these resources.
578
582
 
579
583
  ## Import
580
584
 
@@ -899,8 +903,12 @@ class NotificationChannel(pulumi.CustomResource):
899
903
  ## Additional Information
900
904
 
901
905
  More details about the channels API can be found [here](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels).
906
+ ### Moving from Legacy Alert Channels to Notification Channels
907
+ As described in the documentation of this resource, channels can be created and managed using `NotificationDestination`, which is **deprecated** and will be **removed in a future major release**, as stated in the documentation of the resource.
908
+
909
+ If you're currently using `AlertChannel` to manage channels, we **strongly recommend** migrating to these notifications-based resources at the earliest.
902
910
 
903
- > **NOTE:** `AlertChannel` are legacy resources.
911
+ Please refer to the examples in this page, or this example for illustrations on setting up channels with these resources.
904
912
 
905
913
  ## Import
906
914
 
@@ -368,13 +368,11 @@ class NrqlAlertConditionArgs:
368
368
 
369
369
  @property
370
370
  @pulumi.getter
371
+ @_utilities.deprecated("""use `critical` and `warning` attributes instead""")
371
372
  def terms(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['NrqlAlertConditionTermArgs']]]]:
372
373
  """
373
374
  **DEPRECATED** Use `critical`, and `warning` instead. A list of terms for this condition. See Terms below for details.
374
375
  """
375
- warnings.warn("""use `critical` and `warning` attributes instead""", DeprecationWarning)
376
- pulumi.log.warn("""terms is deprecated: use `critical` and `warning` attributes instead""")
377
-
378
376
  return pulumi.get(self, "terms")
379
377
 
380
378
  @terms.setter
@@ -395,14 +393,12 @@ class NrqlAlertConditionArgs:
395
393
 
396
394
  @property
397
395
  @pulumi.getter(name="violationTimeLimit")
396
+ @_utilities.deprecated("""use `violation_time_limit_seconds` attribute instead""")
398
397
  def violation_time_limit(self) -> Optional[pulumi.Input[str]]:
399
398
  """
400
399
  **DEPRECATED:** Use `violation_time_limit_seconds` instead. Sets a time limit, in hours, that will automatically force-close a long-lasting incident after the time limit you select. Possible values are `ONE_HOUR`, `TWO_HOURS`, `FOUR_HOURS`, `EIGHT_HOURS`, `TWELVE_HOURS`, `TWENTY_FOUR_HOURS`, `THIRTY_DAYS` (case insensitive).<br>
401
400
  <small>\\***Note**: One of `violation_time_limit` _or_ `violation_time_limit_seconds` must be set, but not both.</small>
402
401
  """
403
- warnings.warn("""use `violation_time_limit_seconds` attribute instead""", DeprecationWarning)
404
- pulumi.log.warn("""violation_time_limit is deprecated: use `violation_time_limit_seconds` attribute instead""")
405
-
406
402
  return pulumi.get(self, "violation_time_limit")
407
403
 
408
404
  @violation_time_limit.setter
@@ -808,13 +804,11 @@ class _NrqlAlertConditionState:
808
804
 
809
805
  @property
810
806
  @pulumi.getter
807
+ @_utilities.deprecated("""use `critical` and `warning` attributes instead""")
811
808
  def terms(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['NrqlAlertConditionTermArgs']]]]:
812
809
  """
813
810
  **DEPRECATED** Use `critical`, and `warning` instead. A list of terms for this condition. See Terms below for details.
814
811
  """
815
- warnings.warn("""use `critical` and `warning` attributes instead""", DeprecationWarning)
816
- pulumi.log.warn("""terms is deprecated: use `critical` and `warning` attributes instead""")
817
-
818
812
  return pulumi.get(self, "terms")
819
813
 
820
814
  @terms.setter
@@ -835,14 +829,12 @@ class _NrqlAlertConditionState:
835
829
 
836
830
  @property
837
831
  @pulumi.getter(name="violationTimeLimit")
832
+ @_utilities.deprecated("""use `violation_time_limit_seconds` attribute instead""")
838
833
  def violation_time_limit(self) -> Optional[pulumi.Input[str]]:
839
834
  """
840
835
  **DEPRECATED:** Use `violation_time_limit_seconds` instead. Sets a time limit, in hours, that will automatically force-close a long-lasting incident after the time limit you select. Possible values are `ONE_HOUR`, `TWO_HOURS`, `FOUR_HOURS`, `EIGHT_HOURS`, `TWELVE_HOURS`, `TWENTY_FOUR_HOURS`, `THIRTY_DAYS` (case insensitive).<br>
841
836
  <small>\\***Note**: One of `violation_time_limit` _or_ `violation_time_limit_seconds` must be set, but not both.</small>
842
837
  """
843
- warnings.warn("""use `violation_time_limit_seconds` attribute instead""", DeprecationWarning)
844
- pulumi.log.warn("""violation_time_limit is deprecated: use `violation_time_limit_seconds` attribute instead""")
845
-
846
838
  return pulumi.get(self, "violation_time_limit")
847
839
 
848
840
  @violation_time_limit.setter
@@ -1811,13 +1803,11 @@ class NrqlAlertCondition(pulumi.CustomResource):
1811
1803
 
1812
1804
  @property
1813
1805
  @pulumi.getter
1806
+ @_utilities.deprecated("""use `critical` and `warning` attributes instead""")
1814
1807
  def terms(self) -> pulumi.Output[Optional[Sequence['outputs.NrqlAlertConditionTerm']]]:
1815
1808
  """
1816
1809
  **DEPRECATED** Use `critical`, and `warning` instead. A list of terms for this condition. See Terms below for details.
1817
1810
  """
1818
- warnings.warn("""use `critical` and `warning` attributes instead""", DeprecationWarning)
1819
- pulumi.log.warn("""terms is deprecated: use `critical` and `warning` attributes instead""")
1820
-
1821
1811
  return pulumi.get(self, "terms")
1822
1812
 
1823
1813
  @property
@@ -1830,14 +1820,12 @@ class NrqlAlertCondition(pulumi.CustomResource):
1830
1820
 
1831
1821
  @property
1832
1822
  @pulumi.getter(name="violationTimeLimit")
1823
+ @_utilities.deprecated("""use `violation_time_limit_seconds` attribute instead""")
1833
1824
  def violation_time_limit(self) -> pulumi.Output[str]:
1834
1825
  """
1835
1826
  **DEPRECATED:** Use `violation_time_limit_seconds` instead. Sets a time limit, in hours, that will automatically force-close a long-lasting incident after the time limit you select. Possible values are `ONE_HOUR`, `TWO_HOURS`, `FOUR_HOURS`, `EIGHT_HOURS`, `TWELVE_HOURS`, `TWENTY_FOUR_HOURS`, `THIRTY_DAYS` (case insensitive).<br>
1836
1827
  <small>\\***Note**: One of `violation_time_limit` _or_ `violation_time_limit_seconds` must be set, but not both.</small>
1837
1828
  """
1838
- warnings.warn("""use `violation_time_limit_seconds` attribute instead""", DeprecationWarning)
1839
- pulumi.log.warn("""violation_time_limit is deprecated: use `violation_time_limit_seconds` attribute instead""")
1840
-
1841
1829
  return pulumi.get(self, "violation_time_limit")
1842
1830
 
1843
1831
  @property
@@ -1306,13 +1306,11 @@ class NrqlAlertConditionCritical(dict):
1306
1306
 
1307
1307
  @property
1308
1308
  @pulumi.getter
1309
+ @_utilities.deprecated("""use `threshold_duration` attribute instead""")
1309
1310
  def duration(self) -> Optional[int]:
1310
1311
  """
1311
1312
  In minutes, must be in the range of 1 to 120 (inclusive).
1312
1313
  """
1313
- warnings.warn("""use `threshold_duration` attribute instead""", DeprecationWarning)
1314
- pulumi.log.warn("""duration is deprecated: use `threshold_duration` attribute instead""")
1315
-
1316
1314
  return pulumi.get(self, "duration")
1317
1315
 
1318
1316
  @property
@@ -1341,13 +1339,11 @@ class NrqlAlertConditionCritical(dict):
1341
1339
 
1342
1340
  @property
1343
1341
  @pulumi.getter(name="timeFunction")
1342
+ @_utilities.deprecated("""use `threshold_occurrences` attribute instead""")
1344
1343
  def time_function(self) -> Optional[str]:
1345
1344
  """
1346
1345
  Valid values are: 'all' or 'any'
1347
1346
  """
1348
- warnings.warn("""use `threshold_occurrences` attribute instead""", DeprecationWarning)
1349
- pulumi.log.warn("""time_function is deprecated: use `threshold_occurrences` attribute instead""")
1350
-
1351
1347
  return pulumi.get(self, "time_function")
1352
1348
 
1353
1349
 
@@ -1393,24 +1389,20 @@ class NrqlAlertConditionNrql(dict):
1393
1389
 
1394
1390
  @property
1395
1391
  @pulumi.getter(name="evaluationOffset")
1392
+ @_utilities.deprecated("""use `aggregation_method` attribute instead""")
1396
1393
  def evaluation_offset(self) -> Optional[int]:
1397
1394
  """
1398
1395
  NRQL queries are evaluated in one-minute time windows. The start time depends on the value you provide in the NRQL condition's `evaluation_offset`.
1399
1396
  """
1400
- warnings.warn("""use `aggregation_method` attribute instead""", DeprecationWarning)
1401
- pulumi.log.warn("""evaluation_offset is deprecated: use `aggregation_method` attribute instead""")
1402
-
1403
1397
  return pulumi.get(self, "evaluation_offset")
1404
1398
 
1405
1399
  @property
1406
1400
  @pulumi.getter(name="sinceValue")
1401
+ @_utilities.deprecated("""use `aggregation_method` attribute instead""")
1407
1402
  def since_value(self) -> Optional[str]:
1408
1403
  """
1409
1404
  NRQL queries are evaluated in one-minute time windows. The start time depends on the value you provide in the NRQL condition's `since_value`.
1410
1405
  """
1411
- warnings.warn("""use `aggregation_method` attribute instead""", DeprecationWarning)
1412
- pulumi.log.warn("""since_value is deprecated: use `aggregation_method` attribute instead""")
1413
-
1414
1406
  return pulumi.get(self, "since_value")
1415
1407
 
1416
1408
 
@@ -1478,13 +1470,11 @@ class NrqlAlertConditionTerm(dict):
1478
1470
 
1479
1471
  @property
1480
1472
  @pulumi.getter
1473
+ @_utilities.deprecated("""use `threshold_duration` attribute instead""")
1481
1474
  def duration(self) -> Optional[int]:
1482
1475
  """
1483
1476
  In minutes, must be in the range of 1 to 120 (inclusive).
1484
1477
  """
1485
- warnings.warn("""use `threshold_duration` attribute instead""", DeprecationWarning)
1486
- pulumi.log.warn("""duration is deprecated: use `threshold_duration` attribute instead""")
1487
-
1488
1478
  return pulumi.get(self, "duration")
1489
1479
 
1490
1480
  @property
@@ -1521,13 +1511,11 @@ class NrqlAlertConditionTerm(dict):
1521
1511
 
1522
1512
  @property
1523
1513
  @pulumi.getter(name="timeFunction")
1514
+ @_utilities.deprecated("""use `threshold_occurrences` attribute instead""")
1524
1515
  def time_function(self) -> Optional[str]:
1525
1516
  """
1526
1517
  Valid values are: 'all' or 'any'
1527
1518
  """
1528
- warnings.warn("""use `threshold_occurrences` attribute instead""", DeprecationWarning)
1529
- pulumi.log.warn("""time_function is deprecated: use `threshold_occurrences` attribute instead""")
1530
-
1531
1519
  return pulumi.get(self, "time_function")
1532
1520
 
1533
1521
 
@@ -1591,13 +1579,11 @@ class NrqlAlertConditionWarning(dict):
1591
1579
 
1592
1580
  @property
1593
1581
  @pulumi.getter
1582
+ @_utilities.deprecated("""use `threshold_duration` attribute instead""")
1594
1583
  def duration(self) -> Optional[int]:
1595
1584
  """
1596
1585
  In minutes, must be in the range of 1 to 120 (inclusive).
1597
1586
  """
1598
- warnings.warn("""use `threshold_duration` attribute instead""", DeprecationWarning)
1599
- pulumi.log.warn("""duration is deprecated: use `threshold_duration` attribute instead""")
1600
-
1601
1587
  return pulumi.get(self, "duration")
1602
1588
 
1603
1589
  @property
@@ -1626,13 +1612,11 @@ class NrqlAlertConditionWarning(dict):
1626
1612
 
1627
1613
  @property
1628
1614
  @pulumi.getter(name="timeFunction")
1615
+ @_utilities.deprecated("""use `threshold_occurrences` attribute instead""")
1629
1616
  def time_function(self) -> Optional[str]:
1630
1617
  """
1631
1618
  Valid values are: 'all' or 'any'
1632
1619
  """
1633
- warnings.warn("""use `threshold_occurrences` attribute instead""", DeprecationWarning)
1634
- pulumi.log.warn("""time_function is deprecated: use `threshold_occurrences` attribute instead""")
1635
-
1636
1620
  return pulumi.get(self, "time_function")
1637
1621
 
1638
1622
 
@@ -102,10 +102,8 @@ class ProviderArgs:
102
102
 
103
103
  @property
104
104
  @pulumi.getter(name="apiUrl")
105
+ @_utilities.deprecated("""New Relic internal use only. API URLs are now configured based on the configured region.""")
105
106
  def api_url(self) -> Optional[pulumi.Input[str]]:
106
- warnings.warn("""New Relic internal use only. API URLs are now configured based on the configured region.""", DeprecationWarning)
107
- pulumi.log.warn("""api_url is deprecated: New Relic internal use only. API URLs are now configured based on the configured region.""")
108
-
109
107
  return pulumi.get(self, "api_url")
110
108
 
111
109
  @api_url.setter
@@ -123,10 +121,8 @@ class ProviderArgs:
123
121
 
124
122
  @property
125
123
  @pulumi.getter(name="infrastructureApiUrl")
124
+ @_utilities.deprecated("""New Relic internal use only. API URLs are now configured based on the configured region.""")
126
125
  def infrastructure_api_url(self) -> Optional[pulumi.Input[str]]:
127
- warnings.warn("""New Relic internal use only. API URLs are now configured based on the configured region.""", DeprecationWarning)
128
- pulumi.log.warn("""infrastructure_api_url is deprecated: New Relic internal use only. API URLs are now configured based on the configured region.""")
129
-
130
126
  return pulumi.get(self, "infrastructure_api_url")
131
127
 
132
128
  @infrastructure_api_url.setter
@@ -171,10 +167,8 @@ class ProviderArgs:
171
167
 
172
168
  @property
173
169
  @pulumi.getter(name="nerdgraphApiUrl")
170
+ @_utilities.deprecated("""New Relic internal use only. API URLs are now configured based on the configured region.""")
174
171
  def nerdgraph_api_url(self) -> Optional[pulumi.Input[str]]:
175
- warnings.warn("""New Relic internal use only. API URLs are now configured based on the configured region.""", DeprecationWarning)
176
- pulumi.log.warn("""nerdgraph_api_url is deprecated: New Relic internal use only. API URLs are now configured based on the configured region.""")
177
-
178
172
  return pulumi.get(self, "nerdgraph_api_url")
179
173
 
180
174
  @nerdgraph_api_url.setter
@@ -195,10 +189,8 @@ class ProviderArgs:
195
189
 
196
190
  @property
197
191
  @pulumi.getter(name="syntheticsApiUrl")
192
+ @_utilities.deprecated("""New Relic internal use only. API URLs are now configured based on the configured region.""")
198
193
  def synthetics_api_url(self) -> Optional[pulumi.Input[str]]:
199
- warnings.warn("""New Relic internal use only. API URLs are now configured based on the configured region.""", DeprecationWarning)
200
- pulumi.log.warn("""synthetics_api_url is deprecated: New Relic internal use only. API URLs are now configured based on the configured region.""")
201
-
202
194
  return pulumi.get(self, "synthetics_api_url")
203
195
 
204
196
  @synthetics_api_url.setter
@@ -328,10 +320,8 @@ class Provider(pulumi.ProviderResource):
328
320
 
329
321
  @property
330
322
  @pulumi.getter(name="apiUrl")
323
+ @_utilities.deprecated("""New Relic internal use only. API URLs are now configured based on the configured region.""")
331
324
  def api_url(self) -> pulumi.Output[Optional[str]]:
332
- warnings.warn("""New Relic internal use only. API URLs are now configured based on the configured region.""", DeprecationWarning)
333
- pulumi.log.warn("""api_url is deprecated: New Relic internal use only. API URLs are now configured based on the configured region.""")
334
-
335
325
  return pulumi.get(self, "api_url")
336
326
 
337
327
  @property
@@ -341,10 +331,8 @@ class Provider(pulumi.ProviderResource):
341
331
 
342
332
  @property
343
333
  @pulumi.getter(name="infrastructureApiUrl")
334
+ @_utilities.deprecated("""New Relic internal use only. API URLs are now configured based on the configured region.""")
344
335
  def infrastructure_api_url(self) -> pulumi.Output[Optional[str]]:
345
- warnings.warn("""New Relic internal use only. API URLs are now configured based on the configured region.""", DeprecationWarning)
346
- pulumi.log.warn("""infrastructure_api_url is deprecated: New Relic internal use only. API URLs are now configured based on the configured region.""")
347
-
348
336
  return pulumi.get(self, "infrastructure_api_url")
349
337
 
350
338
  @property
@@ -364,10 +352,8 @@ class Provider(pulumi.ProviderResource):
364
352
 
365
353
  @property
366
354
  @pulumi.getter(name="nerdgraphApiUrl")
355
+ @_utilities.deprecated("""New Relic internal use only. API URLs are now configured based on the configured region.""")
367
356
  def nerdgraph_api_url(self) -> pulumi.Output[Optional[str]]:
368
- warnings.warn("""New Relic internal use only. API URLs are now configured based on the configured region.""", DeprecationWarning)
369
- pulumi.log.warn("""nerdgraph_api_url is deprecated: New Relic internal use only. API URLs are now configured based on the configured region.""")
370
-
371
357
  return pulumi.get(self, "nerdgraph_api_url")
372
358
 
373
359
  @property
@@ -380,9 +366,7 @@ class Provider(pulumi.ProviderResource):
380
366
 
381
367
  @property
382
368
  @pulumi.getter(name="syntheticsApiUrl")
369
+ @_utilities.deprecated("""New Relic internal use only. API URLs are now configured based on the configured region.""")
383
370
  def synthetics_api_url(self) -> pulumi.Output[Optional[str]]:
384
- warnings.warn("""New Relic internal use only. API URLs are now configured based on the configured region.""", DeprecationWarning)
385
- pulumi.log.warn("""synthetics_api_url is deprecated: New Relic internal use only. API URLs are now configured based on the configured region.""")
386
-
387
371
  return pulumi.get(self, "synthetics_api_url")
388
372
 
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "resource": true,
3
3
  "name": "newrelic",
4
- "version": "5.25.2"
4
+ "version": "5.25.3"
5
5
  }