pulumi-newrelic 5.16.0a1698964311__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 +58 -1
  2. pulumi_newrelic/_inputs.py +10772 -2775
  3. pulumi_newrelic/_utilities.py +92 -11
  4. pulumi_newrelic/account_management.py +56 -42
  5. pulumi_newrelic/alert_channel.py +177 -151
  6. pulumi_newrelic/alert_condition.py +313 -301
  7. pulumi_newrelic/alert_muting_rule.py +195 -138
  8. pulumi_newrelic/alert_policy.py +157 -109
  9. pulumi_newrelic/alert_policy_channel.py +95 -81
  10. pulumi_newrelic/api_access_key.py +191 -209
  11. pulumi_newrelic/browser_application.py +161 -153
  12. pulumi_newrelic/cloud/__init__.py +3 -1
  13. pulumi_newrelic/cloud/_inputs.py +4267 -2710
  14. pulumi_newrelic/cloud/aws_govcloud_integrations.py +238 -200
  15. pulumi_newrelic/cloud/aws_govcloud_link_account.py +159 -212
  16. pulumi_newrelic/cloud/aws_integrations.py +518 -1490
  17. pulumi_newrelic/cloud/aws_link_account.py +88 -76
  18. pulumi_newrelic/cloud/azure_integrations.py +681 -587
  19. pulumi_newrelic/cloud/azure_link_account.py +129 -117
  20. pulumi_newrelic/cloud/gcp_integrations.py +436 -408
  21. pulumi_newrelic/cloud/gcp_link_account.py +71 -59
  22. pulumi_newrelic/cloud/oci_link_account.py +926 -0
  23. pulumi_newrelic/cloud/outputs.py +1678 -2317
  24. pulumi_newrelic/config/__init__.py +2 -1
  25. pulumi_newrelic/config/__init__.pyi +45 -0
  26. pulumi_newrelic/config/vars.py +22 -17
  27. pulumi_newrelic/data_partition_rule.py +129 -117
  28. pulumi_newrelic/entity_tags.py +153 -31
  29. pulumi_newrelic/events_to_metrics_rule.py +114 -102
  30. pulumi_newrelic/get_account.py +41 -29
  31. pulumi_newrelic/get_alert_channel.py +73 -28
  32. pulumi_newrelic/get_alert_policy.py +83 -34
  33. pulumi_newrelic/get_application.py +51 -39
  34. pulumi_newrelic/get_authentication_domain.py +111 -0
  35. pulumi_newrelic/get_cloud_account.py +43 -31
  36. pulumi_newrelic/get_entity.py +126 -121
  37. pulumi_newrelic/get_group.py +190 -0
  38. pulumi_newrelic/get_key_transaction.py +117 -38
  39. pulumi_newrelic/get_notification_destination.py +86 -36
  40. pulumi_newrelic/get_obfuscation_expression.py +47 -35
  41. pulumi_newrelic/get_service_level_alert_helper.py +237 -137
  42. pulumi_newrelic/get_test_grok_pattern.py +47 -32
  43. pulumi_newrelic/get_user.py +165 -0
  44. pulumi_newrelic/group.py +286 -0
  45. pulumi_newrelic/infra_alert_condition.py +400 -382
  46. pulumi_newrelic/insights/__init__.py +2 -1
  47. pulumi_newrelic/insights/_inputs.py +94 -23
  48. pulumi_newrelic/insights/event.py +56 -48
  49. pulumi_newrelic/insights/outputs.py +51 -18
  50. pulumi_newrelic/key_transaction.py +465 -0
  51. pulumi_newrelic/log_parsing_rule.py +169 -153
  52. pulumi_newrelic/monitor_downtime.py +914 -0
  53. pulumi_newrelic/notification_channel.py +560 -418
  54. pulumi_newrelic/notification_destination.py +379 -124
  55. pulumi_newrelic/nrql_alert_condition.py +945 -513
  56. pulumi_newrelic/nrql_drop_rule.py +121 -129
  57. pulumi_newrelic/obfuscation_expression.py +88 -76
  58. pulumi_newrelic/obfuscation_rule.py +123 -109
  59. pulumi_newrelic/one_dashboard.py +118 -108
  60. pulumi_newrelic/one_dashboard_json.py +77 -67
  61. pulumi_newrelic/one_dashboard_raw.py +214 -202
  62. pulumi_newrelic/outputs.py +5491 -2141
  63. pulumi_newrelic/pipeline_cloud_rule.py +335 -0
  64. pulumi_newrelic/plugins/__init__.py +2 -1
  65. pulumi_newrelic/plugins/_inputs.py +520 -90
  66. pulumi_newrelic/plugins/application_settings.py +463 -167
  67. pulumi_newrelic/plugins/outputs.py +337 -75
  68. pulumi_newrelic/plugins/workload.py +387 -151
  69. pulumi_newrelic/provider.py +156 -142
  70. pulumi_newrelic/pulumi-plugin.json +2 -1
  71. pulumi_newrelic/service_level.py +277 -255
  72. pulumi_newrelic/synthetics/__init__.py +2 -1
  73. pulumi_newrelic/synthetics/_inputs.py +275 -106
  74. pulumi_newrelic/synthetics/alert_condition.py +174 -160
  75. pulumi_newrelic/synthetics/broken_links_monitor.py +367 -207
  76. pulumi_newrelic/synthetics/cert_check_monitor.py +380 -218
  77. pulumi_newrelic/synthetics/get_private_location.py +51 -39
  78. pulumi_newrelic/synthetics/get_secure_credential.py +39 -27
  79. pulumi_newrelic/synthetics/monitor.py +668 -462
  80. pulumi_newrelic/synthetics/multi_location_alert_condition.py +219 -201
  81. pulumi_newrelic/synthetics/outputs.py +102 -85
  82. pulumi_newrelic/synthetics/private_location.py +120 -110
  83. pulumi_newrelic/synthetics/script_monitor.py +623 -375
  84. pulumi_newrelic/synthetics/secure_credential.py +99 -93
  85. pulumi_newrelic/synthetics/step_monitor.py +545 -201
  86. pulumi_newrelic/user.py +366 -0
  87. pulumi_newrelic/workflow.py +348 -312
  88. {pulumi_newrelic-5.16.0a1698964311.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/METADATA +8 -7
  89. pulumi_newrelic-5.58.0a1763707205.dist-info/RECORD +92 -0
  90. {pulumi_newrelic-5.16.0a1698964311.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/WHEEL +1 -1
  91. pulumi_newrelic-5.16.0a1698964311.dist-info/RECORD +0 -82
  92. {pulumi_newrelic-5.16.0a1698964311.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.
@@ -156,22 +162,25 @@ class GcpLinkAccount(pulumi.CustomResource):
156
162
 
157
163
  foo = newrelic.cloud.GcpLinkAccount("foo",
158
164
  account_id="account id of newrelic account",
159
- project_id="id of the Project")
165
+ project_id="id of the Project",
166
+ name="account name")
160
167
  ```
161
168
 
162
169
  ## Import
163
170
 
164
- Linked GCP accounts can be imported using `id`, you can find the `id` of an existing GCP linked accounts in GCP dashboard under Infrastructure in Newrelic Console. bash
171
+ Linked GCP accounts can be imported using `id`, you can find the `id` of an existing GCP linked accounts in GCP dashboard under Infrastructure in Newrelic Console.
172
+
173
+ bash
165
174
 
166
175
  ```sh
167
- $ 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>
168
177
  ```
169
178
 
170
179
  :param str resource_name: The name of the resource.
171
180
  :param pulumi.ResourceOptions opts: Options for the resource.
172
- :param pulumi.Input[int] account_id: Account ID of the New Relic account.
173
- :param pulumi.Input[str] name: name of the linked account
174
- :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.
175
184
  """
176
185
  ...
177
186
  @overload
@@ -204,15 +213,18 @@ class GcpLinkAccount(pulumi.CustomResource):
204
213
 
205
214
  foo = newrelic.cloud.GcpLinkAccount("foo",
206
215
  account_id="account id of newrelic account",
207
- project_id="id of the Project")
216
+ project_id="id of the Project",
217
+ name="account name")
208
218
  ```
209
219
 
210
220
  ## Import
211
221
 
212
- Linked GCP accounts can be imported using `id`, you can find the `id` of an existing GCP linked accounts in GCP dashboard under Infrastructure in Newrelic Console. bash
222
+ Linked GCP accounts can be imported using `id`, you can find the `id` of an existing GCP linked accounts in GCP dashboard under Infrastructure in Newrelic Console.
223
+
224
+ bash
213
225
 
214
226
  ```sh
215
- $ 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>
216
228
  ```
217
229
 
218
230
  :param str resource_name: The name of the resource.
@@ -230,9 +242,9 @@ class GcpLinkAccount(pulumi.CustomResource):
230
242
  def _internal_init(__self__,
231
243
  resource_name: str,
232
244
  opts: Optional[pulumi.ResourceOptions] = None,
233
- account_id: Optional[pulumi.Input[int]] = None,
234
- name: Optional[pulumi.Input[str]] = None,
235
- 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,
236
248
  __props__=None):
237
249
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
238
250
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -257,9 +269,9 @@ class GcpLinkAccount(pulumi.CustomResource):
257
269
  def get(resource_name: str,
258
270
  id: pulumi.Input[str],
259
271
  opts: Optional[pulumi.ResourceOptions] = None,
260
- account_id: Optional[pulumi.Input[int]] = None,
261
- name: Optional[pulumi.Input[str]] = None,
262
- 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':
263
275
  """
264
276
  Get an existing GcpLinkAccount resource's state with the given name, id, and optional extra
265
277
  properties used to qualify the lookup.
@@ -267,9 +279,9 @@ class GcpLinkAccount(pulumi.CustomResource):
267
279
  :param str resource_name: The unique name of the resulting resource.
268
280
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
269
281
  :param pulumi.ResourceOptions opts: Options for the resource.
270
- :param pulumi.Input[int] account_id: Account ID of the New Relic account.
271
- :param pulumi.Input[str] name: name of the linked account
272
- :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.
273
285
  """
274
286
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
275
287
 
@@ -280,25 +292,25 @@ class GcpLinkAccount(pulumi.CustomResource):
280
292
  __props__.__dict__["project_id"] = project_id
281
293
  return GcpLinkAccount(resource_name, opts=opts, __props__=__props__)
282
294
 
283
- @property
295
+ @_builtins.property
284
296
  @pulumi.getter(name="accountId")
285
- def account_id(self) -> pulumi.Output[int]:
297
+ def account_id(self) -> pulumi.Output[_builtins.str]:
286
298
  """
287
299
  Account ID of the New Relic account.
288
300
  """
289
301
  return pulumi.get(self, "account_id")
290
302
 
291
- @property
303
+ @_builtins.property
292
304
  @pulumi.getter
293
- def name(self) -> pulumi.Output[str]:
305
+ def name(self) -> pulumi.Output[_builtins.str]:
294
306
  """
295
307
  name of the linked account
296
308
  """
297
309
  return pulumi.get(self, "name")
298
310
 
299
- @property
311
+ @_builtins.property
300
312
  @pulumi.getter(name="projectId")
301
- def project_id(self) -> pulumi.Output[str]:
313
+ def project_id(self) -> pulumi.Output[_builtins.str]:
302
314
  """
303
315
  Project ID of the GCP account.
304
316
  """