pulumi-newrelic 5.21.0a1710157101__py3-none-any.whl → 5.39.0a1736849617__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- pulumi_newrelic/__init__.py +9 -0
- pulumi_newrelic/_inputs.py +7153 -461
- pulumi_newrelic/_utilities.py +41 -5
- pulumi_newrelic/account_management.py +11 -6
- pulumi_newrelic/alert_channel.py +116 -127
- pulumi_newrelic/alert_condition.py +116 -129
- pulumi_newrelic/alert_muting_rule.py +128 -76
- pulumi_newrelic/alert_policy.py +78 -75
- pulumi_newrelic/alert_policy_channel.py +77 -68
- pulumi_newrelic/api_access_key.py +45 -28
- pulumi_newrelic/browser_application.py +77 -78
- pulumi_newrelic/cloud/_inputs.py +2527 -1082
- pulumi_newrelic/cloud/aws_govcloud_integrations.py +133 -128
- pulumi_newrelic/cloud/aws_govcloud_link_account.py +23 -20
- pulumi_newrelic/cloud/aws_integrations.py +298 -1326
- pulumi_newrelic/cloud/aws_link_account.py +23 -20
- pulumi_newrelic/cloud/azure_integrations.py +521 -483
- pulumi_newrelic/cloud/azure_link_account.py +34 -31
- pulumi_newrelic/cloud/gcp_integrations.py +341 -322
- pulumi_newrelic/cloud/gcp_link_account.py +23 -20
- pulumi_newrelic/cloud/outputs.py +327 -1072
- pulumi_newrelic/config/__init__.pyi +6 -1
- pulumi_newrelic/config/vars.py +7 -2
- pulumi_newrelic/data_partition_rule.py +19 -18
- pulumi_newrelic/entity_tags.py +32 -31
- pulumi_newrelic/events_to_metrics_rule.py +23 -20
- pulumi_newrelic/get_account.py +24 -16
- pulumi_newrelic/get_alert_channel.py +26 -13
- pulumi_newrelic/get_alert_policy.py +35 -12
- pulumi_newrelic/get_application.py +39 -31
- pulumi_newrelic/get_authentication_domain.py +17 -13
- pulumi_newrelic/get_cloud_account.py +26 -18
- pulumi_newrelic/get_entity.py +90 -147
- pulumi_newrelic/get_group.py +58 -13
- pulumi_newrelic/get_key_transaction.py +109 -34
- pulumi_newrelic/get_notification_destination.py +64 -14
- pulumi_newrelic/get_obfuscation_expression.py +36 -28
- pulumi_newrelic/get_service_level_alert_helper.py +135 -117
- pulumi_newrelic/get_test_grok_pattern.py +29 -18
- pulumi_newrelic/get_user.py +17 -9
- pulumi_newrelic/group.py +5 -146
- pulumi_newrelic/infra_alert_condition.py +160 -167
- pulumi_newrelic/insights/_inputs.py +43 -0
- pulumi_newrelic/insights/event.py +48 -47
- pulumi_newrelic/insights/outputs.py +5 -0
- pulumi_newrelic/key_transaction.py +464 -0
- pulumi_newrelic/log_parsing_rule.py +25 -24
- pulumi_newrelic/monitor_downtime.py +211 -225
- pulumi_newrelic/notification_channel.py +381 -366
- pulumi_newrelic/notification_destination.py +192 -54
- pulumi_newrelic/nrql_alert_condition.py +345 -262
- pulumi_newrelic/nrql_drop_rule.py +31 -30
- pulumi_newrelic/obfuscation_expression.py +23 -20
- pulumi_newrelic/obfuscation_rule.py +38 -33
- pulumi_newrelic/one_dashboard.py +29 -24
- pulumi_newrelic/one_dashboard_json.py +19 -14
- pulumi_newrelic/one_dashboard_raw.py +110 -105
- pulumi_newrelic/outputs.py +2446 -245
- pulumi_newrelic/plugins/_inputs.py +145 -10
- pulumi_newrelic/plugins/application_settings.py +25 -36
- pulumi_newrelic/plugins/outputs.py +15 -10
- pulumi_newrelic/plugins/workload.py +215 -92
- pulumi_newrelic/provider.py +27 -33
- pulumi_newrelic/pulumi-plugin.json +2 -1
- pulumi_newrelic/service_level.py +185 -186
- pulumi_newrelic/synthetics/_inputs.py +159 -2
- pulumi_newrelic/synthetics/alert_condition.py +87 -98
- pulumi_newrelic/synthetics/broken_links_monitor.py +216 -99
- pulumi_newrelic/synthetics/cert_check_monitor.py +219 -100
- pulumi_newrelic/synthetics/get_private_location.py +34 -30
- pulumi_newrelic/synthetics/get_secure_credential.py +24 -16
- pulumi_newrelic/synthetics/monitor.py +348 -193
- pulumi_newrelic/synthetics/multi_location_alert_condition.py +105 -100
- pulumi_newrelic/synthetics/outputs.py +7 -2
- pulumi_newrelic/synthetics/private_location.py +25 -20
- pulumi_newrelic/synthetics/script_monitor.py +317 -182
- pulumi_newrelic/synthetics/secure_credential.py +23 -22
- pulumi_newrelic/synthetics/step_monitor.py +405 -100
- pulumi_newrelic/user.py +13 -10
- pulumi_newrelic/workflow.py +209 -196
- {pulumi_newrelic-5.21.0a1710157101.dist-info → pulumi_newrelic-5.39.0a1736849617.dist-info}/METADATA +7 -6
- pulumi_newrelic-5.39.0a1736849617.dist-info/RECORD +90 -0
- {pulumi_newrelic-5.21.0a1710157101.dist-info → pulumi_newrelic-5.39.0a1736849617.dist-info}/WHEEL +1 -1
- pulumi_newrelic-5.21.0a1710157101.dist-info/RECORD +0 -89
- {pulumi_newrelic-5.21.0a1710157101.dist-info → pulumi_newrelic-5.39.0a1736849617.dist-info}/top_level.txt +0 -0
@@ -4,9 +4,14 @@
|
|
4
4
|
|
5
5
|
import copy
|
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__ = ['LogParsingRuleArgs', 'LogParsingRule']
|
@@ -18,7 +23,7 @@ class LogParsingRuleArgs:
|
|
18
23
|
grok: pulumi.Input[str],
|
19
24
|
lucene: pulumi.Input[str],
|
20
25
|
nrql: pulumi.Input[str],
|
21
|
-
account_id: Optional[pulumi.Input[
|
26
|
+
account_id: Optional[pulumi.Input[str]] = None,
|
22
27
|
attribute: Optional[pulumi.Input[str]] = None,
|
23
28
|
matched: Optional[pulumi.Input[bool]] = None,
|
24
29
|
name: Optional[pulumi.Input[str]] = None):
|
@@ -28,7 +33,7 @@ class LogParsingRuleArgs:
|
|
28
33
|
:param pulumi.Input[str] grok: The Grok of what to parse.
|
29
34
|
:param pulumi.Input[str] lucene: The Lucene to match events to the parsing rule.
|
30
35
|
:param pulumi.Input[str] nrql: The NRQL to match events to the parsing rule.
|
31
|
-
:param pulumi.Input[
|
36
|
+
:param pulumi.Input[str] account_id: The account id associated with the obfuscation rule.
|
32
37
|
:param pulumi.Input[str] attribute: The parsing rule will apply to value of this attribute. If field is not provided, value will default to message.
|
33
38
|
:param pulumi.Input[bool] matched: Whether the Grok pattern matched.
|
34
39
|
:param pulumi.Input[str] name: Name of rule.
|
@@ -96,14 +101,14 @@ class LogParsingRuleArgs:
|
|
96
101
|
|
97
102
|
@property
|
98
103
|
@pulumi.getter(name="accountId")
|
99
|
-
def account_id(self) -> Optional[pulumi.Input[
|
104
|
+
def account_id(self) -> Optional[pulumi.Input[str]]:
|
100
105
|
"""
|
101
106
|
The account id associated with the obfuscation rule.
|
102
107
|
"""
|
103
108
|
return pulumi.get(self, "account_id")
|
104
109
|
|
105
110
|
@account_id.setter
|
106
|
-
def account_id(self, value: Optional[pulumi.Input[
|
111
|
+
def account_id(self, value: Optional[pulumi.Input[str]]):
|
107
112
|
pulumi.set(self, "account_id", value)
|
108
113
|
|
109
114
|
@property
|
@@ -146,7 +151,7 @@ class LogParsingRuleArgs:
|
|
146
151
|
@pulumi.input_type
|
147
152
|
class _LogParsingRuleState:
|
148
153
|
def __init__(__self__, *,
|
149
|
-
account_id: Optional[pulumi.Input[
|
154
|
+
account_id: Optional[pulumi.Input[str]] = None,
|
150
155
|
attribute: Optional[pulumi.Input[str]] = None,
|
151
156
|
deleted: Optional[pulumi.Input[bool]] = None,
|
152
157
|
enabled: Optional[pulumi.Input[bool]] = None,
|
@@ -157,7 +162,7 @@ class _LogParsingRuleState:
|
|
157
162
|
nrql: Optional[pulumi.Input[str]] = None):
|
158
163
|
"""
|
159
164
|
Input properties used for looking up and filtering LogParsingRule resources.
|
160
|
-
:param pulumi.Input[
|
165
|
+
:param pulumi.Input[str] account_id: The account id associated with the obfuscation rule.
|
161
166
|
:param pulumi.Input[str] attribute: The parsing rule will apply to value of this attribute. If field is not provided, value will default to message.
|
162
167
|
:param pulumi.Input[bool] deleted: Whether or not this rule is deleted.
|
163
168
|
:param pulumi.Input[bool] enabled: Whether the rule should be applied or not to incoming data.
|
@@ -188,14 +193,14 @@ class _LogParsingRuleState:
|
|
188
193
|
|
189
194
|
@property
|
190
195
|
@pulumi.getter(name="accountId")
|
191
|
-
def account_id(self) -> Optional[pulumi.Input[
|
196
|
+
def account_id(self) -> Optional[pulumi.Input[str]]:
|
192
197
|
"""
|
193
198
|
The account id associated with the obfuscation rule.
|
194
199
|
"""
|
195
200
|
return pulumi.get(self, "account_id")
|
196
201
|
|
197
202
|
@account_id.setter
|
198
|
-
def account_id(self, value: Optional[pulumi.Input[
|
203
|
+
def account_id(self, value: Optional[pulumi.Input[str]]):
|
199
204
|
pulumi.set(self, "account_id", value)
|
200
205
|
|
201
206
|
@property
|
@@ -300,7 +305,7 @@ class LogParsingRule(pulumi.CustomResource):
|
|
300
305
|
def __init__(__self__,
|
301
306
|
resource_name: str,
|
302
307
|
opts: Optional[pulumi.ResourceOptions] = None,
|
303
|
-
account_id: Optional[pulumi.Input[
|
308
|
+
account_id: Optional[pulumi.Input[str]] = None,
|
304
309
|
attribute: Optional[pulumi.Input[str]] = None,
|
305
310
|
enabled: Optional[pulumi.Input[bool]] = None,
|
306
311
|
grok: Optional[pulumi.Input[str]] = None,
|
@@ -315,25 +320,23 @@ class LogParsingRule(pulumi.CustomResource):
|
|
315
320
|
## Example Usage
|
316
321
|
|
317
322
|
Use this example to create the log parse rule.
|
318
|
-
<!--Start PulumiCodeChooser -->
|
319
323
|
```python
|
320
324
|
import pulumi
|
321
325
|
import pulumi_newrelic as newrelic
|
322
326
|
|
323
327
|
foo = newrelic.LogParsingRule("foo",
|
328
|
+
name="log_parse_rule",
|
324
329
|
attribute="message",
|
325
330
|
enabled=True,
|
326
|
-
grok="sampleattribute='
|
331
|
+
grok="sampleattribute='%{NUMBER:test:int}'",
|
327
332
|
lucene="logtype:linux_messages",
|
328
333
|
nrql="SELECT * FROM Log WHERE logtype = 'linux_messages'")
|
329
334
|
```
|
330
|
-
<!--End PulumiCodeChooser -->
|
331
335
|
|
332
336
|
## Additional Example
|
333
337
|
|
334
338
|
Use this example to validate a grok pattern and create the log parse rule. More
|
335
339
|
information on grok pattern can be found [here](https://docs.newrelic.com/docs/logs/ui-data/parsing/#grok)
|
336
|
-
<!--Start PulumiCodeChooser -->
|
337
340
|
```python
|
338
341
|
import pulumi
|
339
342
|
import pulumi_newrelic as newrelic
|
@@ -341,6 +344,7 @@ class LogParsingRule(pulumi.CustomResource):
|
|
341
344
|
grok = newrelic.get_test_grok_pattern(grok="%{IP:host_ip}",
|
342
345
|
log_lines=["host_ip: 43.3.120.2"])
|
343
346
|
foo = newrelic.LogParsingRule("foo",
|
347
|
+
name="log_parse_rule",
|
344
348
|
attribute="message",
|
345
349
|
enabled=True,
|
346
350
|
grok=grok.grok,
|
@@ -348,7 +352,6 @@ class LogParsingRule(pulumi.CustomResource):
|
|
348
352
|
nrql="SELECT * FROM Log WHERE logtype = 'linux_messages'",
|
349
353
|
matched=grok.test_groks[0].matched)
|
350
354
|
```
|
351
|
-
<!--End PulumiCodeChooser -->
|
352
355
|
|
353
356
|
## Import
|
354
357
|
|
@@ -362,7 +365,7 @@ class LogParsingRule(pulumi.CustomResource):
|
|
362
365
|
|
363
366
|
:param str resource_name: The name of the resource.
|
364
367
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
365
|
-
:param pulumi.Input[
|
368
|
+
:param pulumi.Input[str] account_id: The account id associated with the obfuscation rule.
|
366
369
|
:param pulumi.Input[str] attribute: The parsing rule will apply to value of this attribute. If field is not provided, value will default to message.
|
367
370
|
:param pulumi.Input[bool] enabled: Whether the rule should be applied or not to incoming data.
|
368
371
|
:param pulumi.Input[str] grok: The Grok of what to parse.
|
@@ -383,25 +386,23 @@ class LogParsingRule(pulumi.CustomResource):
|
|
383
386
|
## Example Usage
|
384
387
|
|
385
388
|
Use this example to create the log parse rule.
|
386
|
-
<!--Start PulumiCodeChooser -->
|
387
389
|
```python
|
388
390
|
import pulumi
|
389
391
|
import pulumi_newrelic as newrelic
|
390
392
|
|
391
393
|
foo = newrelic.LogParsingRule("foo",
|
394
|
+
name="log_parse_rule",
|
392
395
|
attribute="message",
|
393
396
|
enabled=True,
|
394
|
-
grok="sampleattribute='
|
397
|
+
grok="sampleattribute='%{NUMBER:test:int}'",
|
395
398
|
lucene="logtype:linux_messages",
|
396
399
|
nrql="SELECT * FROM Log WHERE logtype = 'linux_messages'")
|
397
400
|
```
|
398
|
-
<!--End PulumiCodeChooser -->
|
399
401
|
|
400
402
|
## Additional Example
|
401
403
|
|
402
404
|
Use this example to validate a grok pattern and create the log parse rule. More
|
403
405
|
information on grok pattern can be found [here](https://docs.newrelic.com/docs/logs/ui-data/parsing/#grok)
|
404
|
-
<!--Start PulumiCodeChooser -->
|
405
406
|
```python
|
406
407
|
import pulumi
|
407
408
|
import pulumi_newrelic as newrelic
|
@@ -409,6 +410,7 @@ class LogParsingRule(pulumi.CustomResource):
|
|
409
410
|
grok = newrelic.get_test_grok_pattern(grok="%{IP:host_ip}",
|
410
411
|
log_lines=["host_ip: 43.3.120.2"])
|
411
412
|
foo = newrelic.LogParsingRule("foo",
|
413
|
+
name="log_parse_rule",
|
412
414
|
attribute="message",
|
413
415
|
enabled=True,
|
414
416
|
grok=grok.grok,
|
@@ -416,7 +418,6 @@ class LogParsingRule(pulumi.CustomResource):
|
|
416
418
|
nrql="SELECT * FROM Log WHERE logtype = 'linux_messages'",
|
417
419
|
matched=grok.test_groks[0].matched)
|
418
420
|
```
|
419
|
-
<!--End PulumiCodeChooser -->
|
420
421
|
|
421
422
|
## Import
|
422
423
|
|
@@ -443,7 +444,7 @@ class LogParsingRule(pulumi.CustomResource):
|
|
443
444
|
def _internal_init(__self__,
|
444
445
|
resource_name: str,
|
445
446
|
opts: Optional[pulumi.ResourceOptions] = None,
|
446
|
-
account_id: Optional[pulumi.Input[
|
447
|
+
account_id: Optional[pulumi.Input[str]] = None,
|
447
448
|
attribute: Optional[pulumi.Input[str]] = None,
|
448
449
|
enabled: Optional[pulumi.Input[bool]] = None,
|
449
450
|
grok: Optional[pulumi.Input[str]] = None,
|
@@ -487,7 +488,7 @@ class LogParsingRule(pulumi.CustomResource):
|
|
487
488
|
def get(resource_name: str,
|
488
489
|
id: pulumi.Input[str],
|
489
490
|
opts: Optional[pulumi.ResourceOptions] = None,
|
490
|
-
account_id: Optional[pulumi.Input[
|
491
|
+
account_id: Optional[pulumi.Input[str]] = None,
|
491
492
|
attribute: Optional[pulumi.Input[str]] = None,
|
492
493
|
deleted: Optional[pulumi.Input[bool]] = None,
|
493
494
|
enabled: Optional[pulumi.Input[bool]] = None,
|
@@ -503,7 +504,7 @@ class LogParsingRule(pulumi.CustomResource):
|
|
503
504
|
:param str resource_name: The unique name of the resulting resource.
|
504
505
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
505
506
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
506
|
-
:param pulumi.Input[
|
507
|
+
:param pulumi.Input[str] account_id: The account id associated with the obfuscation rule.
|
507
508
|
:param pulumi.Input[str] attribute: The parsing rule will apply to value of this attribute. If field is not provided, value will default to message.
|
508
509
|
:param pulumi.Input[bool] deleted: Whether or not this rule is deleted.
|
509
510
|
:param pulumi.Input[bool] enabled: Whether the rule should be applied or not to incoming data.
|
@@ -530,7 +531,7 @@ class LogParsingRule(pulumi.CustomResource):
|
|
530
531
|
|
531
532
|
@property
|
532
533
|
@pulumi.getter(name="accountId")
|
533
|
-
def account_id(self) -> pulumi.Output[
|
534
|
+
def account_id(self) -> pulumi.Output[str]:
|
534
535
|
"""
|
535
536
|
The account id associated with the obfuscation rule.
|
536
537
|
"""
|