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
  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,29 +96,88 @@ 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
  """
109
+ Use this resource to create, update, and delete tags for a New Relic One entity.
110
+
111
+ ## Example Usage
112
+
113
+ ```python
114
+ import pulumi
115
+ import pulumi_newrelic as newrelic
116
+
117
+ foo = newrelic.get_entity(name="Example application",
118
+ type="APPLICATION",
119
+ domain="APM")
120
+ foo_entity_tags = newrelic.EntityTags("foo",
121
+ guid=foo.guid,
122
+ tags=[
123
+ {
124
+ "key": "my-key",
125
+ "values": [
126
+ "my-value",
127
+ "my-other-value",
128
+ ],
129
+ },
130
+ {
131
+ "key": "my-key-2",
132
+ "values": ["my-value-2"],
133
+ },
134
+ ])
135
+ ```
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
+ ```
164
+
103
165
  ## Import
104
166
 
105
167
  New Relic One entity tags can be imported using a concatenated string of the format
106
168
 
107
- `<guid>`, e.g. bash
169
+ `<guid>`, e.g.
170
+
171
+ bash
108
172
 
109
173
  ```sh
110
- $ pulumi import newrelic:index/entityTags:EntityTags foo MjUyMDUyOHxBUE18QVBRTElDQVRJT058MjE1MDM3Nzk1
174
+ $ pulumi import newrelic:index/entityTags:EntityTags foo MjUyMDUyOHxBUE18QVBRTElDQVRJT058MjE1MDM3Nzk1
111
175
  ```
112
176
 
113
177
  :param str resource_name: The name of the resource.
114
178
  :param pulumi.ResourceOptions opts: Options for the resource.
115
- :param pulumi.Input[str] guid: The guid of the entity to tag.
116
- :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.
117
181
  """
118
182
  ...
119
183
  @overload
@@ -122,14 +186,72 @@ class EntityTags(pulumi.CustomResource):
122
186
  args: EntityTagsArgs,
123
187
  opts: Optional[pulumi.ResourceOptions] = None):
124
188
  """
189
+ Use this resource to create, update, and delete tags for a New Relic One entity.
190
+
191
+ ## Example Usage
192
+
193
+ ```python
194
+ import pulumi
195
+ import pulumi_newrelic as newrelic
196
+
197
+ foo = newrelic.get_entity(name="Example application",
198
+ type="APPLICATION",
199
+ domain="APM")
200
+ foo_entity_tags = newrelic.EntityTags("foo",
201
+ guid=foo.guid,
202
+ tags=[
203
+ {
204
+ "key": "my-key",
205
+ "values": [
206
+ "my-value",
207
+ "my-other-value",
208
+ ],
209
+ },
210
+ {
211
+ "key": "my-key-2",
212
+ "values": ["my-value-2"],
213
+ },
214
+ ])
215
+ ```
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
+ ```
244
+
125
245
  ## Import
126
246
 
127
247
  New Relic One entity tags can be imported using a concatenated string of the format
128
248
 
129
- `<guid>`, e.g. bash
249
+ `<guid>`, e.g.
250
+
251
+ bash
130
252
 
131
253
  ```sh
132
- $ pulumi import newrelic:index/entityTags:EntityTags foo MjUyMDUyOHxBUE18QVBRTElDQVRJT058MjE1MDM3Nzk1
254
+ $ pulumi import newrelic:index/entityTags:EntityTags foo MjUyMDUyOHxBUE18QVBRTElDQVRJT058MjE1MDM3Nzk1
133
255
  ```
134
256
 
135
257
  :param str resource_name: The name of the resource.
@@ -147,8 +269,8 @@ class EntityTags(pulumi.CustomResource):
147
269
  def _internal_init(__self__,
148
270
  resource_name: str,
149
271
  opts: Optional[pulumi.ResourceOptions] = None,
150
- guid: Optional[pulumi.Input[str]] = None,
151
- 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,
152
274
  __props__=None):
153
275
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
154
276
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -174,8 +296,8 @@ class EntityTags(pulumi.CustomResource):
174
296
  def get(resource_name: str,
175
297
  id: pulumi.Input[str],
176
298
  opts: Optional[pulumi.ResourceOptions] = None,
177
- guid: Optional[pulumi.Input[str]] = None,
178
- 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':
179
301
  """
180
302
  Get an existing EntityTags resource's state with the given name, id, and optional extra
181
303
  properties used to qualify the lookup.
@@ -183,8 +305,8 @@ class EntityTags(pulumi.CustomResource):
183
305
  :param str resource_name: The unique name of the resulting resource.
184
306
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
185
307
  :param pulumi.ResourceOptions opts: Options for the resource.
186
- :param pulumi.Input[str] guid: The guid of the entity to tag.
187
- :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.
188
310
  """
189
311
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
190
312
 
@@ -194,15 +316,15 @@ class EntityTags(pulumi.CustomResource):
194
316
  __props__.__dict__["tags"] = tags
195
317
  return EntityTags(resource_name, opts=opts, __props__=__props__)
196
318
 
197
- @property
319
+ @_builtins.property
198
320
  @pulumi.getter
199
- def guid(self) -> pulumi.Output[str]:
321
+ def guid(self) -> pulumi.Output[_builtins.str]:
200
322
  """
201
323
  The guid of the entity to tag.
202
324
  """
203
325
  return pulumi.get(self, "guid")
204
326
 
205
- @property
327
+ @_builtins.property
206
328
  @pulumi.getter
207
329
  def tags(self) -> pulumi.Output[Sequence['outputs.EntityTagsTag']]:
208
330
  """