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

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

Potentially problematic release.


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

Files changed (92) hide show
  1. pulumi_newrelic/__init__.py +28 -1
  2. pulumi_newrelic/_inputs.py +10385 -2976
  3. pulumi_newrelic/_utilities.py +50 -10
  4. pulumi_newrelic/account_management.py +48 -42
  5. pulumi_newrelic/alert_channel.py +165 -175
  6. pulumi_newrelic/alert_condition.py +307 -319
  7. pulumi_newrelic/alert_muting_rule.py +193 -140
  8. pulumi_newrelic/alert_policy.py +121 -117
  9. pulumi_newrelic/alert_policy_channel.py +89 -79
  10. pulumi_newrelic/api_access_key.py +195 -193
  11. pulumi_newrelic/browser_application.py +120 -114
  12. pulumi_newrelic/cloud/__init__.py +3 -1
  13. pulumi_newrelic/cloud/_inputs.py +4267 -2714
  14. pulumi_newrelic/cloud/aws_govcloud_integrations.py +206 -196
  15. pulumi_newrelic/cloud/aws_govcloud_link_account.py +143 -228
  16. pulumi_newrelic/cloud/aws_integrations.py +510 -1490
  17. pulumi_newrelic/cloud/aws_link_account.py +80 -76
  18. pulumi_newrelic/cloud/azure_integrations.py +673 -587
  19. pulumi_newrelic/cloud/azure_link_account.py +121 -117
  20. pulumi_newrelic/cloud/gcp_integrations.py +428 -408
  21. pulumi_newrelic/cloud/gcp_link_account.py +65 -61
  22. pulumi_newrelic/cloud/oci_link_account.py +926 -0
  23. pulumi_newrelic/cloud/outputs.py +1678 -2321
  24. pulumi_newrelic/config/__init__.py +2 -1
  25. pulumi_newrelic/config/__init__.pyi +8 -3
  26. pulumi_newrelic/config/vars.py +22 -17
  27. pulumi_newrelic/data_partition_rule.py +119 -117
  28. pulumi_newrelic/entity_tags.py +111 -53
  29. pulumi_newrelic/events_to_metrics_rule.py +106 -102
  30. pulumi_newrelic/get_account.py +41 -33
  31. pulumi_newrelic/get_alert_channel.py +73 -28
  32. pulumi_newrelic/get_alert_policy.py +82 -33
  33. pulumi_newrelic/get_application.py +51 -43
  34. pulumi_newrelic/get_authentication_domain.py +27 -23
  35. pulumi_newrelic/get_cloud_account.py +43 -35
  36. pulumi_newrelic/get_entity.py +126 -183
  37. pulumi_newrelic/get_group.py +76 -31
  38. pulumi_newrelic/get_key_transaction.py +117 -42
  39. pulumi_newrelic/get_notification_destination.py +75 -38
  40. pulumi_newrelic/get_obfuscation_expression.py +47 -39
  41. pulumi_newrelic/get_service_level_alert_helper.py +189 -171
  42. pulumi_newrelic/get_test_grok_pattern.py +47 -36
  43. pulumi_newrelic/get_user.py +39 -31
  44. pulumi_newrelic/group.py +59 -199
  45. pulumi_newrelic/infra_alert_condition.py +399 -405
  46. pulumi_newrelic/insights/__init__.py +2 -1
  47. pulumi_newrelic/insights/_inputs.py +71 -28
  48. pulumi_newrelic/insights/event.py +54 -52
  49. pulumi_newrelic/insights/outputs.py +28 -23
  50. pulumi_newrelic/key_transaction.py +465 -0
  51. pulumi_newrelic/log_parsing_rule.py +159 -157
  52. pulumi_newrelic/monitor_downtime.py +311 -331
  53. pulumi_newrelic/notification_channel.py +534 -464
  54. pulumi_newrelic/notification_destination.py +238 -141
  55. pulumi_newrelic/nrql_alert_condition.py +820 -614
  56. pulumi_newrelic/nrql_drop_rule.py +113 -151
  57. pulumi_newrelic/obfuscation_expression.py +80 -76
  58. pulumi_newrelic/obfuscation_rule.py +115 -109
  59. pulumi_newrelic/one_dashboard.py +110 -104
  60. pulumi_newrelic/one_dashboard_json.py +69 -63
  61. pulumi_newrelic/one_dashboard_raw.py +212 -206
  62. pulumi_newrelic/outputs.py +4936 -2234
  63. pulumi_newrelic/pipeline_cloud_rule.py +335 -0
  64. pulumi_newrelic/plugins/__init__.py +2 -1
  65. pulumi_newrelic/plugins/_inputs.py +519 -89
  66. pulumi_newrelic/plugins/application_settings.py +463 -187
  67. pulumi_newrelic/plugins/outputs.py +336 -74
  68. pulumi_newrelic/plugins/workload.py +313 -189
  69. pulumi_newrelic/provider.py +156 -142
  70. pulumi_newrelic/pulumi-plugin.json +2 -1
  71. pulumi_newrelic/service_level.py +263 -263
  72. pulumi_newrelic/synthetics/__init__.py +2 -1
  73. pulumi_newrelic/synthetics/_inputs.py +265 -108
  74. pulumi_newrelic/synthetics/alert_condition.py +170 -180
  75. pulumi_newrelic/synthetics/broken_links_monitor.py +297 -249
  76. pulumi_newrelic/synthetics/cert_check_monitor.py +306 -258
  77. pulumi_newrelic/synthetics/get_private_location.py +51 -47
  78. pulumi_newrelic/synthetics/get_secure_credential.py +39 -31
  79. pulumi_newrelic/synthetics/monitor.py +658 -460
  80. pulumi_newrelic/synthetics/multi_location_alert_condition.py +211 -205
  81. pulumi_newrelic/synthetics/outputs.py +92 -87
  82. pulumi_newrelic/synthetics/private_location.py +118 -112
  83. pulumi_newrelic/synthetics/script_monitor.py +613 -373
  84. pulumi_newrelic/synthetics/secure_credential.py +97 -95
  85. pulumi_newrelic/synthetics/step_monitor.py +445 -275
  86. pulumi_newrelic/user.py +84 -80
  87. pulumi_newrelic/workflow.py +336 -322
  88. {pulumi_newrelic-5.22.0.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/METADATA +7 -6
  89. pulumi_newrelic-5.58.0a1763707205.dist-info/RECORD +92 -0
  90. {pulumi_newrelic-5.22.0.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/WHEEL +1 -1
  91. pulumi_newrelic-5.22.0.dist-info/RECORD +0 -89
  92. {pulumi_newrelic-5.22.0.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/top_level.txt +0 -0
@@ -1,12 +1,17 @@
1
1
  # coding=utf-8
2
- # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
2
+ # *** WARNING: this file was generated by pulumi-language-python. ***
3
3
  # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
 
5
- import copy
5
+ import builtins as _builtins
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
10
  from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
10
15
  from .. import _utilities
11
16
 
12
17
  __all__ = ['GcpLinkAccountArgs', 'GcpLinkAccount']
@@ -14,14 +19,14 @@ __all__ = ['GcpLinkAccountArgs', 'GcpLinkAccount']
14
19
  @pulumi.input_type
15
20
  class GcpLinkAccountArgs:
16
21
  def __init__(__self__, *,
17
- project_id: pulumi.Input[str],
18
- account_id: Optional[pulumi.Input[int]] = None,
19
- name: Optional[pulumi.Input[str]] = None):
22
+ project_id: pulumi.Input[_builtins.str],
23
+ account_id: Optional[pulumi.Input[_builtins.str]] = None,
24
+ name: Optional[pulumi.Input[_builtins.str]] = None):
20
25
  """
21
26
  The set of arguments for constructing a GcpLinkAccount resource.
22
- :param pulumi.Input[str] project_id: Project ID of the GCP account.
23
- :param pulumi.Input[int] account_id: Account ID of the New Relic account.
24
- :param pulumi.Input[str] name: name of the linked account
27
+ :param pulumi.Input[_builtins.str] project_id: Project ID of the GCP account.
28
+ :param pulumi.Input[_builtins.str] account_id: Account ID of the New Relic account.
29
+ :param pulumi.Input[_builtins.str] name: name of the linked account
25
30
  """
26
31
  pulumi.set(__self__, "project_id", project_id)
27
32
  if account_id is not None:
@@ -29,54 +34,54 @@ class GcpLinkAccountArgs:
29
34
  if name is not None:
30
35
  pulumi.set(__self__, "name", name)
31
36
 
32
- @property
37
+ @_builtins.property
33
38
  @pulumi.getter(name="projectId")
34
- def project_id(self) -> pulumi.Input[str]:
39
+ def project_id(self) -> pulumi.Input[_builtins.str]:
35
40
  """
36
41
  Project ID of the GCP account.
37
42
  """
38
43
  return pulumi.get(self, "project_id")
39
44
 
40
45
  @project_id.setter
41
- def project_id(self, value: pulumi.Input[str]):
46
+ def project_id(self, value: pulumi.Input[_builtins.str]):
42
47
  pulumi.set(self, "project_id", value)
43
48
 
44
- @property
49
+ @_builtins.property
45
50
  @pulumi.getter(name="accountId")
46
- def account_id(self) -> Optional[pulumi.Input[int]]:
51
+ def account_id(self) -> Optional[pulumi.Input[_builtins.str]]:
47
52
  """
48
53
  Account ID of the New Relic account.
49
54
  """
50
55
  return pulumi.get(self, "account_id")
51
56
 
52
57
  @account_id.setter
53
- def account_id(self, value: Optional[pulumi.Input[int]]):
58
+ def account_id(self, value: Optional[pulumi.Input[_builtins.str]]):
54
59
  pulumi.set(self, "account_id", value)
55
60
 
56
- @property
61
+ @_builtins.property
57
62
  @pulumi.getter
58
- def name(self) -> Optional[pulumi.Input[str]]:
63
+ def name(self) -> Optional[pulumi.Input[_builtins.str]]:
59
64
  """
60
65
  name of the linked account
61
66
  """
62
67
  return pulumi.get(self, "name")
63
68
 
64
69
  @name.setter
65
- def name(self, value: Optional[pulumi.Input[str]]):
70
+ def name(self, value: Optional[pulumi.Input[_builtins.str]]):
66
71
  pulumi.set(self, "name", value)
67
72
 
68
73
 
69
74
  @pulumi.input_type
70
75
  class _GcpLinkAccountState:
71
76
  def __init__(__self__, *,
72
- account_id: Optional[pulumi.Input[int]] = None,
73
- name: Optional[pulumi.Input[str]] = None,
74
- project_id: Optional[pulumi.Input[str]] = None):
77
+ account_id: Optional[pulumi.Input[_builtins.str]] = None,
78
+ name: Optional[pulumi.Input[_builtins.str]] = None,
79
+ project_id: Optional[pulumi.Input[_builtins.str]] = None):
75
80
  """
76
81
  Input properties used for looking up and filtering GcpLinkAccount resources.
77
- :param pulumi.Input[int] account_id: Account ID of the New Relic account.
78
- :param pulumi.Input[str] name: name of the linked account
79
- :param pulumi.Input[str] project_id: Project ID of the GCP account.
82
+ :param pulumi.Input[_builtins.str] account_id: Account ID of the New Relic account.
83
+ :param pulumi.Input[_builtins.str] name: name of the linked account
84
+ :param pulumi.Input[_builtins.str] project_id: Project ID of the GCP account.
80
85
  """
81
86
  if account_id is not None:
82
87
  pulumi.set(__self__, "account_id", account_id)
@@ -85,51 +90,52 @@ class _GcpLinkAccountState:
85
90
  if project_id is not None:
86
91
  pulumi.set(__self__, "project_id", project_id)
87
92
 
88
- @property
93
+ @_builtins.property
89
94
  @pulumi.getter(name="accountId")
90
- def account_id(self) -> Optional[pulumi.Input[int]]:
95
+ def account_id(self) -> Optional[pulumi.Input[_builtins.str]]:
91
96
  """
92
97
  Account ID of the New Relic account.
93
98
  """
94
99
  return pulumi.get(self, "account_id")
95
100
 
96
101
  @account_id.setter
97
- def account_id(self, value: Optional[pulumi.Input[int]]):
102
+ def account_id(self, value: Optional[pulumi.Input[_builtins.str]]):
98
103
  pulumi.set(self, "account_id", value)
99
104
 
100
- @property
105
+ @_builtins.property
101
106
  @pulumi.getter
102
- def name(self) -> Optional[pulumi.Input[str]]:
107
+ def name(self) -> Optional[pulumi.Input[_builtins.str]]:
103
108
  """
104
109
  name of the linked account
105
110
  """
106
111
  return pulumi.get(self, "name")
107
112
 
108
113
  @name.setter
109
- def name(self, value: Optional[pulumi.Input[str]]):
114
+ def name(self, value: Optional[pulumi.Input[_builtins.str]]):
110
115
  pulumi.set(self, "name", value)
111
116
 
112
- @property
117
+ @_builtins.property
113
118
  @pulumi.getter(name="projectId")
114
- def project_id(self) -> Optional[pulumi.Input[str]]:
119
+ def project_id(self) -> Optional[pulumi.Input[_builtins.str]]:
115
120
  """
116
121
  Project ID of the GCP account.
117
122
  """
118
123
  return pulumi.get(self, "project_id")
119
124
 
120
125
  @project_id.setter
121
- def project_id(self, value: Optional[pulumi.Input[str]]):
126
+ def project_id(self, value: Optional[pulumi.Input[_builtins.str]]):
122
127
  pulumi.set(self, "project_id", value)
123
128
 
124
129
 
130
+ @pulumi.type_token("newrelic:cloud/gcpLinkAccount:GcpLinkAccount")
125
131
  class GcpLinkAccount(pulumi.CustomResource):
126
132
  @overload
127
133
  def __init__(__self__,
128
134
  resource_name: str,
129
135
  opts: Optional[pulumi.ResourceOptions] = None,
130
- account_id: Optional[pulumi.Input[int]] = None,
131
- name: Optional[pulumi.Input[str]] = None,
132
- project_id: Optional[pulumi.Input[str]] = None,
136
+ account_id: Optional[pulumi.Input[_builtins.str]] = None,
137
+ name: Optional[pulumi.Input[_builtins.str]] = None,
138
+ project_id: Optional[pulumi.Input[_builtins.str]] = None,
133
139
  __props__=None):
134
140
  """
135
141
  Use this resource to link a GCP account to New Relic.
@@ -150,16 +156,15 @@ class GcpLinkAccount(pulumi.CustomResource):
150
156
 
151
157
  You can also use the full example, including the GCP set up, found in our guides.
152
158
 
153
- <!--Start PulumiCodeChooser -->
154
159
  ```python
155
160
  import pulumi
156
161
  import pulumi_newrelic as newrelic
157
162
 
158
163
  foo = newrelic.cloud.GcpLinkAccount("foo",
159
164
  account_id="account id of newrelic account",
160
- project_id="id of the Project")
165
+ project_id="id of the Project",
166
+ name="account name")
161
167
  ```
162
- <!--End PulumiCodeChooser -->
163
168
 
164
169
  ## Import
165
170
 
@@ -168,14 +173,14 @@ class GcpLinkAccount(pulumi.CustomResource):
168
173
  bash
169
174
 
170
175
  ```sh
171
- $ pulumi import newrelic:cloud/gcpLinkAccount:GcpLinkAccount newrelic_cloud_gcp_link_account.foo <id>
176
+ $ pulumi import newrelic:cloud/gcpLinkAccount:GcpLinkAccount newrelic_cloud_gcp_link_account.foo <id>
172
177
  ```
173
178
 
174
179
  :param str resource_name: The name of the resource.
175
180
  :param pulumi.ResourceOptions opts: Options for the resource.
176
- :param pulumi.Input[int] account_id: Account ID of the New Relic account.
177
- :param pulumi.Input[str] name: name of the linked account
178
- :param pulumi.Input[str] project_id: Project ID of the GCP account.
181
+ :param pulumi.Input[_builtins.str] account_id: Account ID of the New Relic account.
182
+ :param pulumi.Input[_builtins.str] name: name of the linked account
183
+ :param pulumi.Input[_builtins.str] project_id: Project ID of the GCP account.
179
184
  """
180
185
  ...
181
186
  @overload
@@ -202,16 +207,15 @@ class GcpLinkAccount(pulumi.CustomResource):
202
207
 
203
208
  You can also use the full example, including the GCP set up, found in our guides.
204
209
 
205
- <!--Start PulumiCodeChooser -->
206
210
  ```python
207
211
  import pulumi
208
212
  import pulumi_newrelic as newrelic
209
213
 
210
214
  foo = newrelic.cloud.GcpLinkAccount("foo",
211
215
  account_id="account id of newrelic account",
212
- project_id="id of the Project")
216
+ project_id="id of the Project",
217
+ name="account name")
213
218
  ```
214
- <!--End PulumiCodeChooser -->
215
219
 
216
220
  ## Import
217
221
 
@@ -220,7 +224,7 @@ class GcpLinkAccount(pulumi.CustomResource):
220
224
  bash
221
225
 
222
226
  ```sh
223
- $ pulumi import newrelic:cloud/gcpLinkAccount:GcpLinkAccount newrelic_cloud_gcp_link_account.foo <id>
227
+ $ pulumi import newrelic:cloud/gcpLinkAccount:GcpLinkAccount newrelic_cloud_gcp_link_account.foo <id>
224
228
  ```
225
229
 
226
230
  :param str resource_name: The name of the resource.
@@ -238,9 +242,9 @@ class GcpLinkAccount(pulumi.CustomResource):
238
242
  def _internal_init(__self__,
239
243
  resource_name: str,
240
244
  opts: Optional[pulumi.ResourceOptions] = None,
241
- account_id: Optional[pulumi.Input[int]] = None,
242
- name: Optional[pulumi.Input[str]] = None,
243
- project_id: Optional[pulumi.Input[str]] = None,
245
+ account_id: Optional[pulumi.Input[_builtins.str]] = None,
246
+ name: Optional[pulumi.Input[_builtins.str]] = None,
247
+ project_id: Optional[pulumi.Input[_builtins.str]] = None,
244
248
  __props__=None):
245
249
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
246
250
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -265,9 +269,9 @@ class GcpLinkAccount(pulumi.CustomResource):
265
269
  def get(resource_name: str,
266
270
  id: pulumi.Input[str],
267
271
  opts: Optional[pulumi.ResourceOptions] = None,
268
- account_id: Optional[pulumi.Input[int]] = None,
269
- name: Optional[pulumi.Input[str]] = None,
270
- project_id: Optional[pulumi.Input[str]] = None) -> 'GcpLinkAccount':
272
+ account_id: Optional[pulumi.Input[_builtins.str]] = None,
273
+ name: Optional[pulumi.Input[_builtins.str]] = None,
274
+ project_id: Optional[pulumi.Input[_builtins.str]] = None) -> 'GcpLinkAccount':
271
275
  """
272
276
  Get an existing GcpLinkAccount resource's state with the given name, id, and optional extra
273
277
  properties used to qualify the lookup.
@@ -275,9 +279,9 @@ class GcpLinkAccount(pulumi.CustomResource):
275
279
  :param str resource_name: The unique name of the resulting resource.
276
280
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
277
281
  :param pulumi.ResourceOptions opts: Options for the resource.
278
- :param pulumi.Input[int] account_id: Account ID of the New Relic account.
279
- :param pulumi.Input[str] name: name of the linked account
280
- :param pulumi.Input[str] project_id: Project ID of the GCP account.
282
+ :param pulumi.Input[_builtins.str] account_id: Account ID of the New Relic account.
283
+ :param pulumi.Input[_builtins.str] name: name of the linked account
284
+ :param pulumi.Input[_builtins.str] project_id: Project ID of the GCP account.
281
285
  """
282
286
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
283
287
 
@@ -288,25 +292,25 @@ class GcpLinkAccount(pulumi.CustomResource):
288
292
  __props__.__dict__["project_id"] = project_id
289
293
  return GcpLinkAccount(resource_name, opts=opts, __props__=__props__)
290
294
 
291
- @property
295
+ @_builtins.property
292
296
  @pulumi.getter(name="accountId")
293
- def account_id(self) -> pulumi.Output[int]:
297
+ def account_id(self) -> pulumi.Output[_builtins.str]:
294
298
  """
295
299
  Account ID of the New Relic account.
296
300
  """
297
301
  return pulumi.get(self, "account_id")
298
302
 
299
- @property
303
+ @_builtins.property
300
304
  @pulumi.getter
301
- def name(self) -> pulumi.Output[str]:
305
+ def name(self) -> pulumi.Output[_builtins.str]:
302
306
  """
303
307
  name of the linked account
304
308
  """
305
309
  return pulumi.get(self, "name")
306
310
 
307
- @property
311
+ @_builtins.property
308
312
  @pulumi.getter(name="projectId")
309
- def project_id(self) -> pulumi.Output[str]:
313
+ def project_id(self) -> pulumi.Output[_builtins.str]:
310
314
  """
311
315
  Project ID of the GCP account.
312
316
  """