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.
- pulumi_newrelic/__init__.py +28 -1
- pulumi_newrelic/_inputs.py +10385 -2976
- pulumi_newrelic/_utilities.py +50 -10
- pulumi_newrelic/account_management.py +48 -42
- pulumi_newrelic/alert_channel.py +165 -175
- pulumi_newrelic/alert_condition.py +307 -319
- pulumi_newrelic/alert_muting_rule.py +193 -140
- pulumi_newrelic/alert_policy.py +121 -117
- pulumi_newrelic/alert_policy_channel.py +89 -79
- pulumi_newrelic/api_access_key.py +195 -193
- pulumi_newrelic/browser_application.py +120 -114
- pulumi_newrelic/cloud/__init__.py +3 -1
- pulumi_newrelic/cloud/_inputs.py +4267 -2714
- pulumi_newrelic/cloud/aws_govcloud_integrations.py +206 -196
- pulumi_newrelic/cloud/aws_govcloud_link_account.py +143 -228
- pulumi_newrelic/cloud/aws_integrations.py +510 -1490
- pulumi_newrelic/cloud/aws_link_account.py +80 -76
- pulumi_newrelic/cloud/azure_integrations.py +673 -587
- pulumi_newrelic/cloud/azure_link_account.py +121 -117
- pulumi_newrelic/cloud/gcp_integrations.py +428 -408
- pulumi_newrelic/cloud/gcp_link_account.py +65 -61
- pulumi_newrelic/cloud/oci_link_account.py +926 -0
- pulumi_newrelic/cloud/outputs.py +1678 -2321
- pulumi_newrelic/config/__init__.py +2 -1
- pulumi_newrelic/config/__init__.pyi +8 -3
- pulumi_newrelic/config/vars.py +22 -17
- pulumi_newrelic/data_partition_rule.py +119 -117
- pulumi_newrelic/entity_tags.py +111 -53
- pulumi_newrelic/events_to_metrics_rule.py +106 -102
- pulumi_newrelic/get_account.py +41 -33
- pulumi_newrelic/get_alert_channel.py +73 -28
- pulumi_newrelic/get_alert_policy.py +82 -33
- pulumi_newrelic/get_application.py +51 -43
- pulumi_newrelic/get_authentication_domain.py +27 -23
- pulumi_newrelic/get_cloud_account.py +43 -35
- pulumi_newrelic/get_entity.py +126 -183
- pulumi_newrelic/get_group.py +76 -31
- pulumi_newrelic/get_key_transaction.py +117 -42
- pulumi_newrelic/get_notification_destination.py +75 -38
- pulumi_newrelic/get_obfuscation_expression.py +47 -39
- pulumi_newrelic/get_service_level_alert_helper.py +189 -171
- pulumi_newrelic/get_test_grok_pattern.py +47 -36
- pulumi_newrelic/get_user.py +39 -31
- pulumi_newrelic/group.py +59 -199
- pulumi_newrelic/infra_alert_condition.py +399 -405
- pulumi_newrelic/insights/__init__.py +2 -1
- pulumi_newrelic/insights/_inputs.py +71 -28
- pulumi_newrelic/insights/event.py +54 -52
- pulumi_newrelic/insights/outputs.py +28 -23
- pulumi_newrelic/key_transaction.py +465 -0
- pulumi_newrelic/log_parsing_rule.py +159 -157
- pulumi_newrelic/monitor_downtime.py +311 -331
- pulumi_newrelic/notification_channel.py +534 -464
- pulumi_newrelic/notification_destination.py +238 -141
- pulumi_newrelic/nrql_alert_condition.py +820 -614
- pulumi_newrelic/nrql_drop_rule.py +113 -151
- pulumi_newrelic/obfuscation_expression.py +80 -76
- pulumi_newrelic/obfuscation_rule.py +115 -109
- pulumi_newrelic/one_dashboard.py +110 -104
- pulumi_newrelic/one_dashboard_json.py +69 -63
- pulumi_newrelic/one_dashboard_raw.py +212 -206
- pulumi_newrelic/outputs.py +4936 -2234
- pulumi_newrelic/pipeline_cloud_rule.py +335 -0
- pulumi_newrelic/plugins/__init__.py +2 -1
- pulumi_newrelic/plugins/_inputs.py +519 -89
- pulumi_newrelic/plugins/application_settings.py +463 -187
- pulumi_newrelic/plugins/outputs.py +336 -74
- pulumi_newrelic/plugins/workload.py +313 -189
- pulumi_newrelic/provider.py +156 -142
- pulumi_newrelic/pulumi-plugin.json +2 -1
- pulumi_newrelic/service_level.py +263 -263
- pulumi_newrelic/synthetics/__init__.py +2 -1
- pulumi_newrelic/synthetics/_inputs.py +265 -108
- pulumi_newrelic/synthetics/alert_condition.py +170 -180
- pulumi_newrelic/synthetics/broken_links_monitor.py +297 -249
- pulumi_newrelic/synthetics/cert_check_monitor.py +306 -258
- pulumi_newrelic/synthetics/get_private_location.py +51 -47
- pulumi_newrelic/synthetics/get_secure_credential.py +39 -31
- pulumi_newrelic/synthetics/monitor.py +658 -460
- pulumi_newrelic/synthetics/multi_location_alert_condition.py +211 -205
- pulumi_newrelic/synthetics/outputs.py +92 -87
- pulumi_newrelic/synthetics/private_location.py +118 -112
- pulumi_newrelic/synthetics/script_monitor.py +613 -373
- pulumi_newrelic/synthetics/secure_credential.py +97 -95
- pulumi_newrelic/synthetics/step_monitor.py +445 -275
- pulumi_newrelic/user.py +84 -80
- pulumi_newrelic/workflow.py +336 -322
- {pulumi_newrelic-5.22.0.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/METADATA +7 -6
- pulumi_newrelic-5.58.0a1763707205.dist-info/RECORD +92 -0
- {pulumi_newrelic-5.22.0.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/WHEEL +1 -1
- pulumi_newrelic-5.22.0.dist-info/RECORD +0 -89
- {pulumi_newrelic-5.22.0.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/top_level.txt +0 -0
pulumi_newrelic/entity_tags.py
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
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
|
|
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[
|
|
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
|
-
|
|
117
|
+
foo = newrelic.get_entity(name="Example application",
|
|
113
118
|
type="APPLICATION",
|
|
114
119
|
domain="APM")
|
|
115
|
-
foo_entity_tags = newrelic.EntityTags("
|
|
116
|
-
guid=
|
|
120
|
+
foo_entity_tags = newrelic.EntityTags("foo",
|
|
121
|
+
guid=foo.guid,
|
|
117
122
|
tags=[
|
|
118
|
-
|
|
119
|
-
key
|
|
120
|
-
values
|
|
123
|
+
{
|
|
124
|
+
"key": "my-key",
|
|
125
|
+
"values": [
|
|
121
126
|
"my-value",
|
|
122
127
|
"my-other-value",
|
|
123
128
|
],
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
key
|
|
127
|
-
values
|
|
128
|
-
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"key": "my-key-2",
|
|
132
|
+
"values": ["my-value-2"],
|
|
133
|
+
},
|
|
129
134
|
])
|
|
130
135
|
```
|
|
131
|
-
|
|
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[
|
|
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
|
-
|
|
197
|
+
foo = newrelic.get_entity(name="Example application",
|
|
167
198
|
type="APPLICATION",
|
|
168
199
|
domain="APM")
|
|
169
|
-
foo_entity_tags = newrelic.EntityTags("
|
|
170
|
-
guid=
|
|
200
|
+
foo_entity_tags = newrelic.EntityTags("foo",
|
|
201
|
+
guid=foo.guid,
|
|
171
202
|
tags=[
|
|
172
|
-
|
|
173
|
-
key
|
|
174
|
-
values
|
|
203
|
+
{
|
|
204
|
+
"key": "my-key",
|
|
205
|
+
"values": [
|
|
175
206
|
"my-value",
|
|
176
207
|
"my-other-value",
|
|
177
208
|
],
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
key
|
|
181
|
-
values
|
|
182
|
-
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"key": "my-key-2",
|
|
212
|
+
"values": ["my-value-2"],
|
|
213
|
+
},
|
|
183
214
|
])
|
|
184
215
|
```
|
|
185
|
-
|
|
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[
|
|
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[
|
|
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[
|
|
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
|
"""
|