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,9 +1,10 @@
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
5
 
6
6
  import asyncio
7
+ import functools
7
8
  import importlib.metadata
8
9
  import importlib.util
9
10
  import inspect
@@ -11,14 +12,19 @@ import json
11
12
  import os
12
13
  import sys
13
14
  import typing
15
+ import warnings
16
+ import base64
14
17
 
15
18
  import pulumi
16
19
  import pulumi.runtime
17
20
  from pulumi.runtime.sync_await import _sync_await
21
+ from pulumi.runtime.proto import resource_pb2
18
22
 
19
23
  from semver import VersionInfo as SemverVersion
20
24
  from parver import Version as PEP440Version
21
25
 
26
+ C = typing.TypeVar("C", bound=typing.Callable)
27
+
22
28
 
23
29
  def get_env(*args):
24
30
  for v in args:
@@ -83,12 +89,16 @@ def _get_semver_version():
83
89
  elif pep440_version.pre_tag == 'rc':
84
90
  prerelease = f"rc.{pep440_version.pre}"
85
91
  elif pep440_version.dev is not None:
92
+ # PEP440 has explicit support for dev builds, while semver encodes them as "prerelease" versions. To bridge
93
+ # between the two, we convert our dev build version into a prerelease tag. This matches what all of our other
94
+ # packages do when constructing their own semver string.
86
95
  prerelease = f"dev.{pep440_version.dev}"
96
+ elif pep440_version.local is not None:
97
+ # PEP440 only allows a small set of prerelease tags, so when converting an arbitrary prerelease,
98
+ # PypiVersion in /pkg/codegen/python/utilities.go converts it to a local version. Therefore, we need to
99
+ # do the reverse conversion here and set the local version as the prerelease tag.
100
+ prerelease = pep440_version.local
87
101
 
88
- # The only significant difference between PEP440 and semver as it pertains to us is that PEP440 has explicit support
89
- # for dev builds, while semver encodes them as "prerelease" versions. In order to bridge between the two, we convert
90
- # our dev build version into a prerelease tag. This matches what all of our other packages do when constructing
91
- # their own semver string.
92
102
  return SemverVersion(major=major, minor=minor, patch=patch, prerelease=prerelease)
93
103
 
94
104
 
@@ -96,10 +106,6 @@ def _get_semver_version():
96
106
  _version = _get_semver_version()
97
107
  _version_str = str(_version)
98
108
 
99
-
100
- def get_version():
101
- return _version_str
102
-
103
109
  def get_resource_opts_defaults() -> pulumi.ResourceOptions:
104
110
  return pulumi.ResourceOptions(
105
111
  version=get_version(),
@@ -262,7 +268,7 @@ def call_plain(
262
268
  output = pulumi.runtime.call(tok, props, res, typ)
263
269
 
264
270
  # Ingoring deps silently. They are typically non-empty, r.f() calls include r as a dependency.
265
- result, known, secret, _ = _sync_await(asyncio.ensure_future(_await_output(output)))
271
+ result, known, secret, _ = _sync_await(asyncio.create_task(_await_output(output)))
266
272
 
267
273
  problem = None
268
274
  if not known:
@@ -287,5 +293,39 @@ async def _await_output(o: pulumi.Output[typing.Any]) -> typing.Tuple[object, bo
287
293
  await o._resources,
288
294
  )
289
295
 
296
+
297
+ # This is included to provide an upgrade path for users who are using a version
298
+ # of the Pulumi SDK (<3.121.0) that does not include the `deprecated` decorator.
299
+ def deprecated(message: str) -> typing.Callable[[C], C]:
300
+ """
301
+ Decorator to indicate a function is deprecated.
302
+
303
+ As well as inserting appropriate statements to indicate that the function is
304
+ deprecated, this decorator also tags the function with a special attribute
305
+ so that Pulumi code can detect that it is deprecated and react appropriately
306
+ in certain situations.
307
+
308
+ message is the deprecation message that should be printed if the function is called.
309
+ """
310
+
311
+ def decorator(fn: C) -> C:
312
+ if not callable(fn):
313
+ raise TypeError("Expected fn to be callable")
314
+
315
+ @functools.wraps(fn)
316
+ def deprecated_fn(*args, **kwargs):
317
+ warnings.warn(message)
318
+ pulumi.warn(f"{fn.__name__} is deprecated: {message}")
319
+
320
+ return fn(*args, **kwargs)
321
+
322
+ deprecated_fn.__dict__["_pulumi_deprecated_callable"] = fn
323
+ return typing.cast(C, deprecated_fn)
324
+
325
+ return decorator
326
+
290
327
  def get_plugin_download_url():
291
328
  return None
329
+
330
+ def get_version():
331
+ return _version_str
@@ -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__ = ['AccountManagementArgs', 'AccountManagement']
@@ -14,89 +19,90 @@ __all__ = ['AccountManagementArgs', 'AccountManagement']
14
19
  @pulumi.input_type
15
20
  class AccountManagementArgs:
16
21
  def __init__(__self__, *,
17
- region: pulumi.Input[str],
18
- name: Optional[pulumi.Input[str]] = None):
22
+ region: pulumi.Input[_builtins.str],
23
+ name: Optional[pulumi.Input[_builtins.str]] = None):
19
24
  """
20
25
  The set of arguments for constructing a AccountManagement resource.
21
- :param pulumi.Input[str] region: The region code of the account. One of: `us01`, `eu01`.
22
- :param pulumi.Input[str] name: The name of the Account.
26
+ :param pulumi.Input[_builtins.str] region: The region code of the account. One of: `us01`, `eu01`.
27
+ :param pulumi.Input[_builtins.str] name: The name of the Account.
23
28
  """
24
29
  pulumi.set(__self__, "region", region)
25
30
  if name is not None:
26
31
  pulumi.set(__self__, "name", name)
27
32
 
28
- @property
33
+ @_builtins.property
29
34
  @pulumi.getter
30
- def region(self) -> pulumi.Input[str]:
35
+ def region(self) -> pulumi.Input[_builtins.str]:
31
36
  """
32
37
  The region code of the account. One of: `us01`, `eu01`.
33
38
  """
34
39
  return pulumi.get(self, "region")
35
40
 
36
41
  @region.setter
37
- def region(self, value: pulumi.Input[str]):
42
+ def region(self, value: pulumi.Input[_builtins.str]):
38
43
  pulumi.set(self, "region", value)
39
44
 
40
- @property
45
+ @_builtins.property
41
46
  @pulumi.getter
42
- def name(self) -> Optional[pulumi.Input[str]]:
47
+ def name(self) -> Optional[pulumi.Input[_builtins.str]]:
43
48
  """
44
49
  The name of the Account.
45
50
  """
46
51
  return pulumi.get(self, "name")
47
52
 
48
53
  @name.setter
49
- def name(self, value: Optional[pulumi.Input[str]]):
54
+ def name(self, value: Optional[pulumi.Input[_builtins.str]]):
50
55
  pulumi.set(self, "name", value)
51
56
 
52
57
 
53
58
  @pulumi.input_type
54
59
  class _AccountManagementState:
55
60
  def __init__(__self__, *,
56
- name: Optional[pulumi.Input[str]] = None,
57
- region: Optional[pulumi.Input[str]] = None):
61
+ name: Optional[pulumi.Input[_builtins.str]] = None,
62
+ region: Optional[pulumi.Input[_builtins.str]] = None):
58
63
  """
59
64
  Input properties used for looking up and filtering AccountManagement resources.
60
- :param pulumi.Input[str] name: The name of the Account.
61
- :param pulumi.Input[str] region: The region code of the account. One of: `us01`, `eu01`.
65
+ :param pulumi.Input[_builtins.str] name: The name of the Account.
66
+ :param pulumi.Input[_builtins.str] region: The region code of the account. One of: `us01`, `eu01`.
62
67
  """
63
68
  if name is not None:
64
69
  pulumi.set(__self__, "name", name)
65
70
  if region is not None:
66
71
  pulumi.set(__self__, "region", region)
67
72
 
68
- @property
73
+ @_builtins.property
69
74
  @pulumi.getter
70
- def name(self) -> Optional[pulumi.Input[str]]:
75
+ def name(self) -> Optional[pulumi.Input[_builtins.str]]:
71
76
  """
72
77
  The name of the Account.
73
78
  """
74
79
  return pulumi.get(self, "name")
75
80
 
76
81
  @name.setter
77
- def name(self, value: Optional[pulumi.Input[str]]):
82
+ def name(self, value: Optional[pulumi.Input[_builtins.str]]):
78
83
  pulumi.set(self, "name", value)
79
84
 
80
- @property
85
+ @_builtins.property
81
86
  @pulumi.getter
82
- def region(self) -> Optional[pulumi.Input[str]]:
87
+ def region(self) -> Optional[pulumi.Input[_builtins.str]]:
83
88
  """
84
89
  The region code of the account. One of: `us01`, `eu01`.
85
90
  """
86
91
  return pulumi.get(self, "region")
87
92
 
88
93
  @region.setter
89
- def region(self, value: Optional[pulumi.Input[str]]):
94
+ def region(self, value: Optional[pulumi.Input[_builtins.str]]):
90
95
  pulumi.set(self, "region", value)
91
96
 
92
97
 
98
+ @pulumi.type_token("newrelic:index/accountManagement:AccountManagement")
93
99
  class AccountManagement(pulumi.CustomResource):
94
100
  @overload
95
101
  def __init__(__self__,
96
102
  resource_name: str,
97
103
  opts: Optional[pulumi.ResourceOptions] = None,
98
- name: Optional[pulumi.Input[str]] = None,
99
- region: Optional[pulumi.Input[str]] = None,
104
+ name: Optional[pulumi.Input[_builtins.str]] = None,
105
+ region: Optional[pulumi.Input[_builtins.str]] = None,
100
106
  __props__=None):
101
107
  """
102
108
  Use this resource to create and manage New Relic sub accounts.
@@ -106,14 +112,14 @@ class AccountManagement(pulumi.CustomResource):
106
112
  ## Example Usage
107
113
 
108
114
  ##### Create Account
109
- <!--Start PulumiCodeChooser -->
110
115
  ```python
111
116
  import pulumi
112
117
  import pulumi_newrelic as newrelic
113
118
 
114
- foo = newrelic.AccountManagement("foo", region="us01")
119
+ foo = newrelic.AccountManagement("foo",
120
+ name="Test Account Name",
121
+ region="us01")
115
122
  ```
116
- <!--End PulumiCodeChooser -->
117
123
 
118
124
  ## Import
119
125
 
@@ -127,8 +133,8 @@ class AccountManagement(pulumi.CustomResource):
127
133
 
128
134
  :param str resource_name: The name of the resource.
129
135
  :param pulumi.ResourceOptions opts: Options for the resource.
130
- :param pulumi.Input[str] name: The name of the Account.
131
- :param pulumi.Input[str] region: The region code of the account. One of: `us01`, `eu01`.
136
+ :param pulumi.Input[_builtins.str] name: The name of the Account.
137
+ :param pulumi.Input[_builtins.str] region: The region code of the account. One of: `us01`, `eu01`.
132
138
  """
133
139
  ...
134
140
  @overload
@@ -144,14 +150,14 @@ class AccountManagement(pulumi.CustomResource):
144
150
  ## Example Usage
145
151
 
146
152
  ##### Create Account
147
- <!--Start PulumiCodeChooser -->
148
153
  ```python
149
154
  import pulumi
150
155
  import pulumi_newrelic as newrelic
151
156
 
152
- foo = newrelic.AccountManagement("foo", region="us01")
157
+ foo = newrelic.AccountManagement("foo",
158
+ name="Test Account Name",
159
+ region="us01")
153
160
  ```
154
- <!--End PulumiCodeChooser -->
155
161
 
156
162
  ## Import
157
163
 
@@ -178,8 +184,8 @@ class AccountManagement(pulumi.CustomResource):
178
184
  def _internal_init(__self__,
179
185
  resource_name: str,
180
186
  opts: Optional[pulumi.ResourceOptions] = None,
181
- name: Optional[pulumi.Input[str]] = None,
182
- region: Optional[pulumi.Input[str]] = None,
187
+ name: Optional[pulumi.Input[_builtins.str]] = None,
188
+ region: Optional[pulumi.Input[_builtins.str]] = None,
183
189
  __props__=None):
184
190
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
185
191
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -203,8 +209,8 @@ class AccountManagement(pulumi.CustomResource):
203
209
  def get(resource_name: str,
204
210
  id: pulumi.Input[str],
205
211
  opts: Optional[pulumi.ResourceOptions] = None,
206
- name: Optional[pulumi.Input[str]] = None,
207
- region: Optional[pulumi.Input[str]] = None) -> 'AccountManagement':
212
+ name: Optional[pulumi.Input[_builtins.str]] = None,
213
+ region: Optional[pulumi.Input[_builtins.str]] = None) -> 'AccountManagement':
208
214
  """
209
215
  Get an existing AccountManagement resource's state with the given name, id, and optional extra
210
216
  properties used to qualify the lookup.
@@ -212,8 +218,8 @@ class AccountManagement(pulumi.CustomResource):
212
218
  :param str resource_name: The unique name of the resulting resource.
213
219
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
214
220
  :param pulumi.ResourceOptions opts: Options for the resource.
215
- :param pulumi.Input[str] name: The name of the Account.
216
- :param pulumi.Input[str] region: The region code of the account. One of: `us01`, `eu01`.
221
+ :param pulumi.Input[_builtins.str] name: The name of the Account.
222
+ :param pulumi.Input[_builtins.str] region: The region code of the account. One of: `us01`, `eu01`.
217
223
  """
218
224
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
219
225
 
@@ -223,17 +229,17 @@ class AccountManagement(pulumi.CustomResource):
223
229
  __props__.__dict__["region"] = region
224
230
  return AccountManagement(resource_name, opts=opts, __props__=__props__)
225
231
 
226
- @property
232
+ @_builtins.property
227
233
  @pulumi.getter
228
- def name(self) -> pulumi.Output[str]:
234
+ def name(self) -> pulumi.Output[_builtins.str]:
229
235
  """
230
236
  The name of the Account.
231
237
  """
232
238
  return pulumi.get(self, "name")
233
239
 
234
- @property
240
+ @_builtins.property
235
241
  @pulumi.getter
236
- def region(self) -> pulumi.Output[str]:
242
+ def region(self) -> pulumi.Output[_builtins.str]:
237
243
  """
238
244
  The region code of the account. One of: `us01`, `eu01`.
239
245
  """