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
  from . import outputs
12
17
  from ._inputs import *
@@ -16,29 +21,29 @@ __all__ = ['EntityTagsArgs', 'EntityTags']
16
21
  @pulumi.input_type
17
22
  class EntityTagsArgs:
18
23
  def __init__(__self__, *,
19
- guid: pulumi.Input[str],
24
+ guid: pulumi.Input[_builtins.str],
20
25
  tags: pulumi.Input[Sequence[pulumi.Input['EntityTagsTagArgs']]]):
21
26
  """
22
27
  The set of arguments for constructing a EntityTags resource.
23
- :param pulumi.Input[str] guid: The guid of the entity to tag.
28
+ :param pulumi.Input[_builtins.str] guid: The guid of the entity to tag.
24
29
  :param pulumi.Input[Sequence[pulumi.Input['EntityTagsTagArgs']]] tags: A nested block that describes an entity tag. See Nested tag blocks below for details.
25
30
  """
26
31
  pulumi.set(__self__, "guid", guid)
27
32
  pulumi.set(__self__, "tags", tags)
28
33
 
29
- @property
34
+ @_builtins.property
30
35
  @pulumi.getter
31
- def guid(self) -> pulumi.Input[str]:
36
+ def guid(self) -> pulumi.Input[_builtins.str]:
32
37
  """
33
38
  The guid of the entity to tag.
34
39
  """
35
40
  return pulumi.get(self, "guid")
36
41
 
37
42
  @guid.setter
38
- def guid(self, value: pulumi.Input[str]):
43
+ def guid(self, value: pulumi.Input[_builtins.str]):
39
44
  pulumi.set(self, "guid", value)
40
45
 
41
- @property
46
+ @_builtins.property
42
47
  @pulumi.getter
43
48
  def tags(self) -> pulumi.Input[Sequence[pulumi.Input['EntityTagsTagArgs']]]:
44
49
  """
@@ -54,11 +59,11 @@ class EntityTagsArgs:
54
59
  @pulumi.input_type
55
60
  class _EntityTagsState:
56
61
  def __init__(__self__, *,
57
- guid: Optional[pulumi.Input[str]] = None,
62
+ guid: Optional[pulumi.Input[_builtins.str]] = None,
58
63
  tags: Optional[pulumi.Input[Sequence[pulumi.Input['EntityTagsTagArgs']]]] = None):
59
64
  """
60
65
  Input properties used for looking up and filtering EntityTags resources.
61
- :param pulumi.Input[str] guid: The guid of the entity to tag.
66
+ :param pulumi.Input[_builtins.str] guid: The guid of the entity to tag.
62
67
  :param pulumi.Input[Sequence[pulumi.Input['EntityTagsTagArgs']]] tags: A nested block that describes an entity tag. See Nested tag blocks below for details.
63
68
  """
64
69
  if guid is not None:
@@ -66,19 +71,19 @@ class _EntityTagsState:
66
71
  if tags is not None:
67
72
  pulumi.set(__self__, "tags", tags)
68
73
 
69
- @property
74
+ @_builtins.property
70
75
  @pulumi.getter
71
- def guid(self) -> Optional[pulumi.Input[str]]:
76
+ def guid(self) -> Optional[pulumi.Input[_builtins.str]]:
72
77
  """
73
78
  The guid of the entity to tag.
74
79
  """
75
80
  return pulumi.get(self, "guid")
76
81
 
77
82
  @guid.setter
78
- def guid(self, value: Optional[pulumi.Input[str]]):
83
+ def guid(self, value: Optional[pulumi.Input[_builtins.str]]):
79
84
  pulumi.set(self, "guid", value)
80
85
 
81
- @property
86
+ @_builtins.property
82
87
  @pulumi.getter
83
88
  def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['EntityTagsTagArgs']]]]:
84
89
  """
@@ -91,44 +96,71 @@ class _EntityTagsState:
91
96
  pulumi.set(self, "tags", value)
92
97
 
93
98
 
99
+ @pulumi.type_token("newrelic:index/entityTags:EntityTags")
94
100
  class EntityTags(pulumi.CustomResource):
95
101
  @overload
96
102
  def __init__(__self__,
97
103
  resource_name: str,
98
104
  opts: Optional[pulumi.ResourceOptions] = None,
99
- guid: Optional[pulumi.Input[str]] = None,
100
- tags: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EntityTagsTagArgs']]]]] = None,
105
+ guid: Optional[pulumi.Input[_builtins.str]] = None,
106
+ tags: Optional[pulumi.Input[Sequence[pulumi.Input[Union['EntityTagsTagArgs', 'EntityTagsTagArgsDict']]]]] = None,
101
107
  __props__=None):
102
108
  """
103
109
  Use this resource to create, update, and delete tags for a New Relic One entity.
104
110
 
105
111
  ## Example Usage
106
112
 
107
- <!--Start PulumiCodeChooser -->
108
113
  ```python
109
114
  import pulumi
110
115
  import pulumi_newrelic as newrelic
111
116
 
112
- foo_entity = newrelic.get_entity(name="Example application",
117
+ foo = newrelic.get_entity(name="Example application",
113
118
  type="APPLICATION",
114
119
  domain="APM")
115
- foo_entity_tags = newrelic.EntityTags("fooEntityTags",
116
- guid=foo_entity.guid,
120
+ foo_entity_tags = newrelic.EntityTags("foo",
121
+ guid=foo.guid,
117
122
  tags=[
118
- newrelic.EntityTagsTagArgs(
119
- key="my-key",
120
- values=[
123
+ {
124
+ "key": "my-key",
125
+ "values": [
121
126
  "my-value",
122
127
  "my-other-value",
123
128
  ],
124
- ),
125
- newrelic.EntityTagsTagArgs(
126
- key="my-key-2",
127
- values=["my-value-2"],
128
- ),
129
+ },
130
+ {
131
+ "key": "my-key-2",
132
+ "values": ["my-value-2"],
133
+ },
129
134
  ])
130
135
  ```
131
- <!--End PulumiCodeChooser -->
136
+
137
+ ### Example of applying multiple tags to multiple entities using a nested `dynamic` block
138
+ ```python
139
+ import pulumi
140
+ import pulumi_newrelic as newrelic
141
+ import pulumi_std as std
142
+
143
+ apps = std.toset(input=[
144
+ "Example App Name 1",
145
+ "Example App Name 2",
146
+ ]).result
147
+ custom_tags = {
148
+ "tag-key-1": "tag-value-1",
149
+ "tag-key-2": "tag-value-2",
150
+ "tag-key-3": "tag-value-3",
151
+ }
152
+ foo = {__key: newrelic.get_entity(name=__key,
153
+ type="APPLICATION",
154
+ domain="APM") for __key, __value in apps}
155
+ foo_entity_tags = []
156
+ for range in [{"key": k, "value": v} for [k, v] in enumerate(apps)]:
157
+ foo_entity_tags.append(newrelic.EntityTags(f"foo-{range['key']}",
158
+ tags=[{
159
+ "key": entry["key"],
160
+ "values": [entry["value"]],
161
+ } for entry in [{"key": k, "value": v} for k, v in custom_tags]],
162
+ guid=foo[range["key"]].guid))
163
+ ```
132
164
 
133
165
  ## Import
134
166
 
@@ -144,8 +176,8 @@ class EntityTags(pulumi.CustomResource):
144
176
 
145
177
  :param str resource_name: The name of the resource.
146
178
  :param pulumi.ResourceOptions opts: Options for the resource.
147
- :param pulumi.Input[str] guid: The guid of the entity to tag.
148
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EntityTagsTagArgs']]]] tags: A nested block that describes an entity tag. See Nested tag blocks below for details.
179
+ :param pulumi.Input[_builtins.str] guid: The guid of the entity to tag.
180
+ :param pulumi.Input[Sequence[pulumi.Input[Union['EntityTagsTagArgs', 'EntityTagsTagArgsDict']]]] tags: A nested block that describes an entity tag. See Nested tag blocks below for details.
149
181
  """
150
182
  ...
151
183
  @overload
@@ -158,31 +190,57 @@ class EntityTags(pulumi.CustomResource):
158
190
 
159
191
  ## Example Usage
160
192
 
161
- <!--Start PulumiCodeChooser -->
162
193
  ```python
163
194
  import pulumi
164
195
  import pulumi_newrelic as newrelic
165
196
 
166
- foo_entity = newrelic.get_entity(name="Example application",
197
+ foo = newrelic.get_entity(name="Example application",
167
198
  type="APPLICATION",
168
199
  domain="APM")
169
- foo_entity_tags = newrelic.EntityTags("fooEntityTags",
170
- guid=foo_entity.guid,
200
+ foo_entity_tags = newrelic.EntityTags("foo",
201
+ guid=foo.guid,
171
202
  tags=[
172
- newrelic.EntityTagsTagArgs(
173
- key="my-key",
174
- values=[
203
+ {
204
+ "key": "my-key",
205
+ "values": [
175
206
  "my-value",
176
207
  "my-other-value",
177
208
  ],
178
- ),
179
- newrelic.EntityTagsTagArgs(
180
- key="my-key-2",
181
- values=["my-value-2"],
182
- ),
209
+ },
210
+ {
211
+ "key": "my-key-2",
212
+ "values": ["my-value-2"],
213
+ },
183
214
  ])
184
215
  ```
185
- <!--End PulumiCodeChooser -->
216
+
217
+ ### Example of applying multiple tags to multiple entities using a nested `dynamic` block
218
+ ```python
219
+ import pulumi
220
+ import pulumi_newrelic as newrelic
221
+ import pulumi_std as std
222
+
223
+ apps = std.toset(input=[
224
+ "Example App Name 1",
225
+ "Example App Name 2",
226
+ ]).result
227
+ custom_tags = {
228
+ "tag-key-1": "tag-value-1",
229
+ "tag-key-2": "tag-value-2",
230
+ "tag-key-3": "tag-value-3",
231
+ }
232
+ foo = {__key: newrelic.get_entity(name=__key,
233
+ type="APPLICATION",
234
+ domain="APM") for __key, __value in apps}
235
+ foo_entity_tags = []
236
+ for range in [{"key": k, "value": v} for [k, v] in enumerate(apps)]:
237
+ foo_entity_tags.append(newrelic.EntityTags(f"foo-{range['key']}",
238
+ tags=[{
239
+ "key": entry["key"],
240
+ "values": [entry["value"]],
241
+ } for entry in [{"key": k, "value": v} for k, v in custom_tags]],
242
+ guid=foo[range["key"]].guid))
243
+ ```
186
244
 
187
245
  ## Import
188
246
 
@@ -211,8 +269,8 @@ class EntityTags(pulumi.CustomResource):
211
269
  def _internal_init(__self__,
212
270
  resource_name: str,
213
271
  opts: Optional[pulumi.ResourceOptions] = None,
214
- guid: Optional[pulumi.Input[str]] = None,
215
- tags: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EntityTagsTagArgs']]]]] = None,
272
+ guid: Optional[pulumi.Input[_builtins.str]] = None,
273
+ tags: Optional[pulumi.Input[Sequence[pulumi.Input[Union['EntityTagsTagArgs', 'EntityTagsTagArgsDict']]]]] = None,
216
274
  __props__=None):
217
275
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
218
276
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -238,8 +296,8 @@ class EntityTags(pulumi.CustomResource):
238
296
  def get(resource_name: str,
239
297
  id: pulumi.Input[str],
240
298
  opts: Optional[pulumi.ResourceOptions] = None,
241
- guid: Optional[pulumi.Input[str]] = None,
242
- tags: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EntityTagsTagArgs']]]]] = None) -> 'EntityTags':
299
+ guid: Optional[pulumi.Input[_builtins.str]] = None,
300
+ tags: Optional[pulumi.Input[Sequence[pulumi.Input[Union['EntityTagsTagArgs', 'EntityTagsTagArgsDict']]]]] = None) -> 'EntityTags':
243
301
  """
244
302
  Get an existing EntityTags resource's state with the given name, id, and optional extra
245
303
  properties used to qualify the lookup.
@@ -247,8 +305,8 @@ class EntityTags(pulumi.CustomResource):
247
305
  :param str resource_name: The unique name of the resulting resource.
248
306
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
249
307
  :param pulumi.ResourceOptions opts: Options for the resource.
250
- :param pulumi.Input[str] guid: The guid of the entity to tag.
251
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EntityTagsTagArgs']]]] tags: A nested block that describes an entity tag. See Nested tag blocks below for details.
308
+ :param pulumi.Input[_builtins.str] guid: The guid of the entity to tag.
309
+ :param pulumi.Input[Sequence[pulumi.Input[Union['EntityTagsTagArgs', 'EntityTagsTagArgsDict']]]] tags: A nested block that describes an entity tag. See Nested tag blocks below for details.
252
310
  """
253
311
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
254
312
 
@@ -258,15 +316,15 @@ class EntityTags(pulumi.CustomResource):
258
316
  __props__.__dict__["tags"] = tags
259
317
  return EntityTags(resource_name, opts=opts, __props__=__props__)
260
318
 
261
- @property
319
+ @_builtins.property
262
320
  @pulumi.getter
263
- def guid(self) -> pulumi.Output[str]:
321
+ def guid(self) -> pulumi.Output[_builtins.str]:
264
322
  """
265
323
  The guid of the entity to tag.
266
324
  """
267
325
  return pulumi.get(self, "guid")
268
326
 
269
- @property
327
+ @_builtins.property
270
328
  @pulumi.getter
271
329
  def tags(self) -> pulumi.Output[Sequence['outputs.EntityTagsTag']]:
272
330
  """