pulumi-newrelic 5.20.0a1709643785__py3-none-any.whl → 5.39.0a1736834464__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 +13 -4
- pulumi_newrelic/alert_channel.py +122 -101
- pulumi_newrelic/alert_condition.py +120 -109
- pulumi_newrelic/alert_muting_rule.py +130 -74
- pulumi_newrelic/alert_policy.py +88 -67
- pulumi_newrelic/alert_policy_channel.py +81 -68
- pulumi_newrelic/api_access_key.py +49 -52
- pulumi_newrelic/browser_application.py +79 -76
- pulumi_newrelic/cloud/_inputs.py +2527 -1082
- pulumi_newrelic/cloud/aws_govcloud_integrations.py +135 -130
- pulumi_newrelic/cloud/aws_govcloud_link_account.py +25 -18
- pulumi_newrelic/cloud/aws_integrations.py +300 -1324
- pulumi_newrelic/cloud/aws_link_account.py +25 -18
- pulumi_newrelic/cloud/azure_integrations.py +523 -481
- pulumi_newrelic/cloud/azure_link_account.py +36 -29
- pulumi_newrelic/cloud/gcp_integrations.py +343 -320
- pulumi_newrelic/cloud/gcp_link_account.py +25 -18
- 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 +23 -16
- pulumi_newrelic/entity_tags.py +36 -31
- pulumi_newrelic/events_to_metrics_rule.py +27 -20
- pulumi_newrelic/get_account.py +24 -12
- pulumi_newrelic/get_alert_channel.py +26 -13
- pulumi_newrelic/get_alert_policy.py +35 -12
- pulumi_newrelic/get_application.py +39 -27
- pulumi_newrelic/get_authentication_domain.py +17 -9
- pulumi_newrelic/get_cloud_account.py +26 -14
- pulumi_newrelic/get_entity.py +90 -85
- pulumi_newrelic/get_group.py +58 -9
- pulumi_newrelic/get_key_transaction.py +109 -30
- pulumi_newrelic/get_notification_destination.py +64 -14
- pulumi_newrelic/get_obfuscation_expression.py +36 -24
- pulumi_newrelic/get_service_level_alert_helper.py +135 -105
- pulumi_newrelic/get_test_grok_pattern.py +29 -14
- pulumi_newrelic/get_user.py +17 -5
- pulumi_newrelic/group.py +5 -132
- pulumi_newrelic/infra_alert_condition.py +157 -140
- pulumi_newrelic/insights/_inputs.py +43 -0
- pulumi_newrelic/insights/event.py +50 -43
- pulumi_newrelic/insights/outputs.py +5 -0
- pulumi_newrelic/key_transaction.py +464 -0
- pulumi_newrelic/log_parsing_rule.py +29 -18
- pulumi_newrelic/monitor_downtime.py +215 -203
- pulumi_newrelic/notification_channel.py +387 -326
- pulumi_newrelic/notification_destination.py +248 -118
- pulumi_newrelic/nrql_alert_condition.py +353 -246
- pulumi_newrelic/nrql_drop_rule.py +57 -30
- pulumi_newrelic/obfuscation_expression.py +25 -18
- pulumi_newrelic/obfuscation_rule.py +40 -31
- pulumi_newrelic/one_dashboard.py +31 -26
- pulumi_newrelic/one_dashboard_json.py +21 -16
- pulumi_newrelic/one_dashboard_raw.py +112 -101
- pulumi_newrelic/outputs.py +2446 -245
- pulumi_newrelic/plugins/_inputs.py +145 -10
- pulumi_newrelic/plugins/application_settings.py +29 -20
- pulumi_newrelic/plugins/outputs.py +15 -10
- pulumi_newrelic/plugins/workload.py +285 -54
- pulumi_newrelic/provider.py +27 -33
- pulumi_newrelic/pulumi-plugin.json +2 -1
- pulumi_newrelic/service_level.py +193 -180
- pulumi_newrelic/synthetics/_inputs.py +159 -2
- pulumi_newrelic/synthetics/alert_condition.py +91 -78
- pulumi_newrelic/synthetics/broken_links_monitor.py +220 -93
- pulumi_newrelic/synthetics/cert_check_monitor.py +223 -94
- pulumi_newrelic/synthetics/get_private_location.py +34 -22
- pulumi_newrelic/synthetics/get_secure_credential.py +24 -12
- pulumi_newrelic/synthetics/monitor.py +352 -179
- pulumi_newrelic/synthetics/multi_location_alert_condition.py +109 -96
- pulumi_newrelic/synthetics/outputs.py +7 -2
- pulumi_newrelic/synthetics/private_location.py +27 -18
- pulumi_newrelic/synthetics/script_monitor.py +321 -168
- pulumi_newrelic/synthetics/secure_credential.py +25 -20
- pulumi_newrelic/synthetics/step_monitor.py +409 -98
- pulumi_newrelic/user.py +13 -6
- pulumi_newrelic/workflow.py +215 -184
- {pulumi_newrelic-5.20.0a1709643785.dist-info → pulumi_newrelic-5.39.0a1736834464.dist-info}/METADATA +7 -6
- pulumi_newrelic-5.39.0a1736834464.dist-info/RECORD +90 -0
- {pulumi_newrelic-5.20.0a1709643785.dist-info → pulumi_newrelic-5.39.0a1736834464.dist-info}/WHEEL +1 -1
- pulumi_newrelic-5.20.0a1709643785.dist-info/RECORD +0 -89
- {pulumi_newrelic-5.20.0a1709643785.dist-info → pulumi_newrelic-5.39.0a1736834464.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__ = [
|
@@ -22,8 +27,8 @@ class GetPrivateLocationResult:
|
|
22
27
|
A collection of values returned by getPrivateLocation.
|
23
28
|
"""
|
24
29
|
def __init__(__self__, account_id=None, id=None, keys=None, name=None):
|
25
|
-
if account_id and not isinstance(account_id,
|
26
|
-
raise TypeError("Expected argument 'account_id' to be a
|
30
|
+
if account_id and not isinstance(account_id, str):
|
31
|
+
raise TypeError("Expected argument 'account_id' to be a str")
|
27
32
|
pulumi.set(__self__, "account_id", account_id)
|
28
33
|
if id and not isinstance(id, str):
|
29
34
|
raise TypeError("Expected argument 'id' to be a str")
|
@@ -37,7 +42,7 @@ class GetPrivateLocationResult:
|
|
37
42
|
|
38
43
|
@property
|
39
44
|
@pulumi.getter(name="accountId")
|
40
|
-
def account_id(self) -> Optional[
|
45
|
+
def account_id(self) -> Optional[str]:
|
41
46
|
return pulumi.get(self, "account_id")
|
42
47
|
|
43
48
|
@property
|
@@ -74,7 +79,7 @@ class AwaitableGetPrivateLocationResult(GetPrivateLocationResult):
|
|
74
79
|
name=self.name)
|
75
80
|
|
76
81
|
|
77
|
-
def get_private_location(account_id: Optional[
|
82
|
+
def get_private_location(account_id: Optional[str] = None,
|
78
83
|
keys: Optional[Sequence[str]] = None,
|
79
84
|
name: Optional[str] = None,
|
80
85
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetPrivateLocationResult:
|
@@ -87,7 +92,7 @@ def get_private_location(account_id: Optional[int] = None,
|
|
87
92
|
import pulumi
|
88
93
|
import pulumi_newrelic as newrelic
|
89
94
|
|
90
|
-
example = newrelic.synthetics.get_private_location(account_id=123456,
|
95
|
+
example = newrelic.synthetics.get_private_location(account_id="123456",
|
91
96
|
name="My private location")
|
92
97
|
foo = newrelic.synthetics.Monitor("foo", locations_privates=[example.id])
|
93
98
|
```
|
@@ -96,15 +101,15 @@ def get_private_location(account_id: Optional[int] = None,
|
|
96
101
|
import pulumi
|
97
102
|
import pulumi_newrelic as newrelic
|
98
103
|
|
99
|
-
example = newrelic.synthetics.get_private_location(account_id=123456,
|
104
|
+
example = newrelic.synthetics.get_private_location(account_id="123456",
|
100
105
|
name="My private location")
|
101
|
-
foo = newrelic.synthetics.StepMonitor("foo", location_privates=[
|
102
|
-
guid
|
103
|
-
|
106
|
+
foo = newrelic.synthetics.StepMonitor("foo", location_privates=[{
|
107
|
+
"guid": example.id,
|
108
|
+
}])
|
104
109
|
```
|
105
110
|
|
106
111
|
|
107
|
-
:param
|
112
|
+
:param str account_id: The New Relic account ID of the associated private location. If left empty will default to account ID specified in provider level configuration.
|
108
113
|
:param Sequence[str] keys: The key of the private location.
|
109
114
|
:param str name: The name of the Synthetics monitor private location.
|
110
115
|
"""
|
@@ -120,13 +125,10 @@ def get_private_location(account_id: Optional[int] = None,
|
|
120
125
|
id=pulumi.get(__ret__, 'id'),
|
121
126
|
keys=pulumi.get(__ret__, 'keys'),
|
122
127
|
name=pulumi.get(__ret__, 'name'))
|
123
|
-
|
124
|
-
|
125
|
-
@_utilities.lift_output_func(get_private_location)
|
126
|
-
def get_private_location_output(account_id: Optional[pulumi.Input[Optional[int]]] = None,
|
128
|
+
def get_private_location_output(account_id: Optional[pulumi.Input[Optional[str]]] = None,
|
127
129
|
keys: Optional[pulumi.Input[Optional[Sequence[str]]]] = None,
|
128
130
|
name: Optional[pulumi.Input[str]] = None,
|
129
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetPrivateLocationResult]:
|
131
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetPrivateLocationResult]:
|
130
132
|
"""
|
131
133
|
Use this data source to get information about a specific Synthetics monitor private location in New Relic that already exists.
|
132
134
|
|
@@ -136,7 +138,7 @@ def get_private_location_output(account_id: Optional[pulumi.Input[Optional[int]]
|
|
136
138
|
import pulumi
|
137
139
|
import pulumi_newrelic as newrelic
|
138
140
|
|
139
|
-
example = newrelic.synthetics.get_private_location(account_id=123456,
|
141
|
+
example = newrelic.synthetics.get_private_location(account_id="123456",
|
140
142
|
name="My private location")
|
141
143
|
foo = newrelic.synthetics.Monitor("foo", locations_privates=[example.id])
|
142
144
|
```
|
@@ -145,16 +147,26 @@ def get_private_location_output(account_id: Optional[pulumi.Input[Optional[int]]
|
|
145
147
|
import pulumi
|
146
148
|
import pulumi_newrelic as newrelic
|
147
149
|
|
148
|
-
example = newrelic.synthetics.get_private_location(account_id=123456,
|
150
|
+
example = newrelic.synthetics.get_private_location(account_id="123456",
|
149
151
|
name="My private location")
|
150
|
-
foo = newrelic.synthetics.StepMonitor("foo", location_privates=[
|
151
|
-
guid
|
152
|
-
|
152
|
+
foo = newrelic.synthetics.StepMonitor("foo", location_privates=[{
|
153
|
+
"guid": example.id,
|
154
|
+
}])
|
153
155
|
```
|
154
156
|
|
155
157
|
|
156
|
-
:param
|
158
|
+
:param str account_id: The New Relic account ID of the associated private location. If left empty will default to account ID specified in provider level configuration.
|
157
159
|
:param Sequence[str] keys: The key of the private location.
|
158
160
|
:param str name: The name of the Synthetics monitor private location.
|
159
161
|
"""
|
160
|
-
|
162
|
+
__args__ = dict()
|
163
|
+
__args__['accountId'] = account_id
|
164
|
+
__args__['keys'] = keys
|
165
|
+
__args__['name'] = name
|
166
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
167
|
+
__ret__ = pulumi.runtime.invoke_output('newrelic:synthetics/getPrivateLocation:getPrivateLocation', __args__, opts=opts, typ=GetPrivateLocationResult)
|
168
|
+
return __ret__.apply(lambda __response__: GetPrivateLocationResult(
|
169
|
+
account_id=pulumi.get(__response__, 'account_id'),
|
170
|
+
id=pulumi.get(__response__, 'id'),
|
171
|
+
keys=pulumi.get(__response__, 'keys'),
|
172
|
+
name=pulumi.get(__response__, 'name')))
|
@@ -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__ = [
|
@@ -22,8 +27,8 @@ class GetSecureCredentialResult:
|
|
22
27
|
A collection of values returned by getSecureCredential.
|
23
28
|
"""
|
24
29
|
def __init__(__self__, account_id=None, description=None, id=None, key=None, last_updated=None):
|
25
|
-
if account_id and not isinstance(account_id,
|
26
|
-
raise TypeError("Expected argument 'account_id' to be a
|
30
|
+
if account_id and not isinstance(account_id, str):
|
31
|
+
raise TypeError("Expected argument 'account_id' to be a str")
|
27
32
|
pulumi.set(__self__, "account_id", account_id)
|
28
33
|
if description and not isinstance(description, str):
|
29
34
|
raise TypeError("Expected argument 'description' to be a str")
|
@@ -40,7 +45,7 @@ class GetSecureCredentialResult:
|
|
40
45
|
|
41
46
|
@property
|
42
47
|
@pulumi.getter(name="accountId")
|
43
|
-
def account_id(self) ->
|
48
|
+
def account_id(self) -> str:
|
44
49
|
return pulumi.get(self, "account_id")
|
45
50
|
|
46
51
|
@property
|
@@ -86,7 +91,7 @@ class AwaitableGetSecureCredentialResult(GetSecureCredentialResult):
|
|
86
91
|
last_updated=self.last_updated)
|
87
92
|
|
88
93
|
|
89
|
-
def get_secure_credential(account_id: Optional[
|
94
|
+
def get_secure_credential(account_id: Optional[str] = None,
|
90
95
|
key: Optional[str] = None,
|
91
96
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetSecureCredentialResult:
|
92
97
|
"""
|
@@ -104,7 +109,7 @@ def get_secure_credential(account_id: Optional[int] = None,
|
|
104
109
|
```
|
105
110
|
|
106
111
|
|
107
|
-
:param
|
112
|
+
:param str account_id: The account in New Relic associated with the secure credential. Defaults to the account associated with the API key used.
|
108
113
|
:param str key: The secure credential's key name. Regardless of the case used in the configuration, the provider will provide an upcased key to the underlying API.
|
109
114
|
"""
|
110
115
|
__args__ = dict()
|
@@ -119,12 +124,9 @@ def get_secure_credential(account_id: Optional[int] = None,
|
|
119
124
|
id=pulumi.get(__ret__, 'id'),
|
120
125
|
key=pulumi.get(__ret__, 'key'),
|
121
126
|
last_updated=pulumi.get(__ret__, 'last_updated'))
|
122
|
-
|
123
|
-
|
124
|
-
@_utilities.lift_output_func(get_secure_credential)
|
125
|
-
def get_secure_credential_output(account_id: Optional[pulumi.Input[Optional[int]]] = None,
|
127
|
+
def get_secure_credential_output(account_id: Optional[pulumi.Input[Optional[str]]] = None,
|
126
128
|
key: Optional[pulumi.Input[str]] = None,
|
127
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetSecureCredentialResult]:
|
129
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetSecureCredentialResult]:
|
128
130
|
"""
|
129
131
|
Use this data source to get information about a specific Synthetics secure credential in New Relic that already exists.
|
130
132
|
|
@@ -140,7 +142,17 @@ def get_secure_credential_output(account_id: Optional[pulumi.Input[Optional[int]
|
|
140
142
|
```
|
141
143
|
|
142
144
|
|
143
|
-
:param
|
145
|
+
:param str account_id: The account in New Relic associated with the secure credential. Defaults to the account associated with the API key used.
|
144
146
|
:param str key: The secure credential's key name. Regardless of the case used in the configuration, the provider will provide an upcased key to the underlying API.
|
145
147
|
"""
|
146
|
-
|
148
|
+
__args__ = dict()
|
149
|
+
__args__['accountId'] = account_id
|
150
|
+
__args__['key'] = key
|
151
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
152
|
+
__ret__ = pulumi.runtime.invoke_output('newrelic:synthetics/getSecureCredential:getSecureCredential', __args__, opts=opts, typ=GetSecureCredentialResult)
|
153
|
+
return __ret__.apply(lambda __response__: GetSecureCredentialResult(
|
154
|
+
account_id=pulumi.get(__response__, 'account_id'),
|
155
|
+
description=pulumi.get(__response__, 'description'),
|
156
|
+
id=pulumi.get(__response__, 'id'),
|
157
|
+
key=pulumi.get(__response__, 'key'),
|
158
|
+
last_updated=pulumi.get(__response__, 'last_updated')))
|