pulumi-newrelic 5.33.0a1727221609__py3-none-any.whl → 5.34.0__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.
- pulumi_newrelic/__init__.py +9 -0
- pulumi_newrelic/_inputs.py +5496 -223
- pulumi_newrelic/_utilities.py +1 -1
- pulumi_newrelic/account_management.py +5 -0
- pulumi_newrelic/alert_channel.py +5 -0
- pulumi_newrelic/alert_condition.py +5 -0
- pulumi_newrelic/alert_muting_rule.py +5 -0
- pulumi_newrelic/alert_policy.py +5 -0
- pulumi_newrelic/alert_policy_channel.py +5 -0
- pulumi_newrelic/api_access_key.py +5 -0
- pulumi_newrelic/browser_application.py +5 -0
- pulumi_newrelic/cloud/_inputs.py +2206 -11
- pulumi_newrelic/cloud/aws_govcloud_integrations.py +5 -0
- pulumi_newrelic/cloud/aws_govcloud_link_account.py +5 -0
- pulumi_newrelic/cloud/aws_integrations.py +5 -0
- pulumi_newrelic/cloud/aws_link_account.py +5 -0
- pulumi_newrelic/cloud/azure_integrations.py +5 -0
- pulumi_newrelic/cloud/azure_link_account.py +5 -0
- pulumi_newrelic/cloud/gcp_integrations.py +5 -0
- pulumi_newrelic/cloud/gcp_link_account.py +5 -0
- pulumi_newrelic/cloud/outputs.py +5 -0
- pulumi_newrelic/config/__init__.pyi +5 -0
- pulumi_newrelic/config/vars.py +5 -0
- pulumi_newrelic/data_partition_rule.py +5 -0
- pulumi_newrelic/entity_tags.py +5 -0
- pulumi_newrelic/events_to_metrics_rule.py +5 -0
- pulumi_newrelic/get_account.py +16 -4
- pulumi_newrelic/get_alert_channel.py +17 -4
- pulumi_newrelic/get_alert_policy.py +18 -4
- pulumi_newrelic/get_application.py +14 -4
- pulumi_newrelic/get_authentication_domain.py +12 -4
- pulumi_newrelic/get_cloud_account.py +16 -4
- pulumi_newrelic/get_entity.py +29 -4
- pulumi_newrelic/get_group.py +15 -4
- pulumi_newrelic/get_key_transaction.py +72 -9
- pulumi_newrelic/get_notification_destination.py +22 -4
- pulumi_newrelic/get_obfuscation_expression.py +14 -4
- pulumi_newrelic/get_service_level_alert_helper.py +28 -4
- pulumi_newrelic/get_test_grok_pattern.py +17 -4
- pulumi_newrelic/get_user.py +16 -4
- pulumi_newrelic/group.py +5 -0
- pulumi_newrelic/infra_alert_condition.py +5 -0
- pulumi_newrelic/insights/_inputs.py +43 -0
- pulumi_newrelic/insights/event.py +5 -0
- pulumi_newrelic/insights/outputs.py +5 -0
- pulumi_newrelic/key_transaction.py +464 -0
- pulumi_newrelic/log_parsing_rule.py +5 -0
- pulumi_newrelic/monitor_downtime.py +5 -0
- pulumi_newrelic/notification_channel.py +5 -0
- pulumi_newrelic/notification_destination.py +5 -0
- pulumi_newrelic/nrql_alert_condition.py +5 -0
- pulumi_newrelic/nrql_drop_rule.py +5 -0
- pulumi_newrelic/obfuscation_expression.py +5 -0
- pulumi_newrelic/obfuscation_rule.py +5 -0
- pulumi_newrelic/one_dashboard.py +5 -0
- pulumi_newrelic/one_dashboard_json.py +5 -0
- pulumi_newrelic/one_dashboard_raw.py +5 -0
- pulumi_newrelic/outputs.py +958 -1
- pulumi_newrelic/plugins/_inputs.py +135 -0
- pulumi_newrelic/plugins/application_settings.py +5 -0
- pulumi_newrelic/plugins/outputs.py +5 -0
- pulumi_newrelic/plugins/workload.py +5 -0
- pulumi_newrelic/provider.py +5 -0
- pulumi_newrelic/pulumi-plugin.json +1 -1
- pulumi_newrelic/service_level.py +5 -0
- pulumi_newrelic/synthetics/_inputs.py +157 -0
- pulumi_newrelic/synthetics/alert_condition.py +5 -0
- pulumi_newrelic/synthetics/broken_links_monitor.py +5 -0
- pulumi_newrelic/synthetics/cert_check_monitor.py +5 -0
- pulumi_newrelic/synthetics/get_private_location.py +16 -4
- pulumi_newrelic/synthetics/get_secure_credential.py +16 -4
- pulumi_newrelic/synthetics/monitor.py +5 -0
- pulumi_newrelic/synthetics/multi_location_alert_condition.py +5 -0
- pulumi_newrelic/synthetics/outputs.py +5 -0
- pulumi_newrelic/synthetics/private_location.py +5 -0
- pulumi_newrelic/synthetics/script_monitor.py +5 -0
- pulumi_newrelic/synthetics/secure_credential.py +5 -0
- pulumi_newrelic/synthetics/step_monitor.py +5 -0
- pulumi_newrelic/user.py +5 -0
- pulumi_newrelic/workflow.py +5 -0
- {pulumi_newrelic-5.33.0a1727221609.dist-info → pulumi_newrelic-5.34.0.dist-info}/METADATA +3 -2
- pulumi_newrelic-5.34.0.dist-info/RECORD +90 -0
- pulumi_newrelic-5.33.0a1727221609.dist-info/RECORD +0 -89
- {pulumi_newrelic-5.33.0a1727221609.dist-info → pulumi_newrelic-5.34.0.dist-info}/WHEEL +0 -0
- {pulumi_newrelic-5.33.0a1727221609.dist-info → pulumi_newrelic-5.34.0.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__ = [
|
@@ -21,13 +26,38 @@ class GetKeyTransactionResult:
|
|
21
26
|
"""
|
22
27
|
A collection of values returned by getKeyTransaction.
|
23
28
|
"""
|
24
|
-
def __init__(__self__, id=None, name=None):
|
29
|
+
def __init__(__self__, domain=None, guid=None, id=None, name=None, type=None):
|
30
|
+
if domain and not isinstance(domain, str):
|
31
|
+
raise TypeError("Expected argument 'domain' to be a str")
|
32
|
+
pulumi.set(__self__, "domain", domain)
|
33
|
+
if guid and not isinstance(guid, str):
|
34
|
+
raise TypeError("Expected argument 'guid' to be a str")
|
35
|
+
pulumi.set(__self__, "guid", guid)
|
25
36
|
if id and not isinstance(id, str):
|
26
37
|
raise TypeError("Expected argument 'id' to be a str")
|
27
38
|
pulumi.set(__self__, "id", id)
|
28
39
|
if name and not isinstance(name, str):
|
29
40
|
raise TypeError("Expected argument 'name' to be a str")
|
30
41
|
pulumi.set(__self__, "name", name)
|
42
|
+
if type and not isinstance(type, str):
|
43
|
+
raise TypeError("Expected argument 'type' to be a str")
|
44
|
+
pulumi.set(__self__, "type", type)
|
45
|
+
|
46
|
+
@property
|
47
|
+
@pulumi.getter
|
48
|
+
def domain(self) -> str:
|
49
|
+
"""
|
50
|
+
Domain of the key transaction in New Relic.
|
51
|
+
"""
|
52
|
+
return pulumi.get(self, "domain")
|
53
|
+
|
54
|
+
@property
|
55
|
+
@pulumi.getter
|
56
|
+
def guid(self) -> str:
|
57
|
+
"""
|
58
|
+
GUID of the key transaction in New Relic.
|
59
|
+
"""
|
60
|
+
return pulumi.get(self, "guid")
|
31
61
|
|
32
62
|
@property
|
33
63
|
@pulumi.getter
|
@@ -40,8 +70,19 @@ class GetKeyTransactionResult:
|
|
40
70
|
@property
|
41
71
|
@pulumi.getter
|
42
72
|
def name(self) -> str:
|
73
|
+
"""
|
74
|
+
Name of the key Transation in New Relic.
|
75
|
+
"""
|
43
76
|
return pulumi.get(self, "name")
|
44
77
|
|
78
|
+
@property
|
79
|
+
@pulumi.getter
|
80
|
+
def type(self) -> str:
|
81
|
+
"""
|
82
|
+
Type of the key transaction in New Relic.
|
83
|
+
"""
|
84
|
+
return pulumi.get(self, "type")
|
85
|
+
|
45
86
|
|
46
87
|
class AwaitableGetKeyTransactionResult(GetKeyTransactionResult):
|
47
88
|
# pylint: disable=using-constant-test
|
@@ -49,11 +90,15 @@ class AwaitableGetKeyTransactionResult(GetKeyTransactionResult):
|
|
49
90
|
if False:
|
50
91
|
yield self
|
51
92
|
return GetKeyTransactionResult(
|
93
|
+
domain=self.domain,
|
94
|
+
guid=self.guid,
|
52
95
|
id=self.id,
|
53
|
-
name=self.name
|
96
|
+
name=self.name,
|
97
|
+
type=self.type)
|
54
98
|
|
55
99
|
|
56
|
-
def get_key_transaction(
|
100
|
+
def get_key_transaction(guid: Optional[str] = None,
|
101
|
+
name: Optional[str] = None,
|
57
102
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetKeyTransactionResult:
|
58
103
|
"""
|
59
104
|
Use this data source to get information about a specific key transaction in New Relic that already exists.
|
@@ -83,20 +128,25 @@ def get_key_transaction(name: Optional[str] = None,
|
|
83
128
|
```
|
84
129
|
|
85
130
|
|
131
|
+
:param str guid: GUID of the key transaction in New Relic.
|
132
|
+
|
133
|
+
> **NOTE** If the `name` specified in the configuration matches the names of multiple key transactions in the account, the data source will return the first match from the list of all matching key transactions retrieved from the API. However, when using the `guid` argument as the search criterion, only the key transaction with that particular GUID is returned, as each key transaction has a unique GUID.
|
86
134
|
:param str name: The name of the key transaction in New Relic.
|
87
135
|
"""
|
88
136
|
__args__ = dict()
|
137
|
+
__args__['guid'] = guid
|
89
138
|
__args__['name'] = name
|
90
139
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
91
140
|
__ret__ = pulumi.runtime.invoke('newrelic:index/getKeyTransaction:getKeyTransaction', __args__, opts=opts, typ=GetKeyTransactionResult).value
|
92
141
|
|
93
142
|
return AwaitableGetKeyTransactionResult(
|
143
|
+
domain=pulumi.get(__ret__, 'domain'),
|
144
|
+
guid=pulumi.get(__ret__, 'guid'),
|
94
145
|
id=pulumi.get(__ret__, 'id'),
|
95
|
-
name=pulumi.get(__ret__, 'name')
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
def get_key_transaction_output(name: Optional[pulumi.Input[str]] = None,
|
146
|
+
name=pulumi.get(__ret__, 'name'),
|
147
|
+
type=pulumi.get(__ret__, 'type'))
|
148
|
+
def get_key_transaction_output(guid: Optional[pulumi.Input[Optional[str]]] = None,
|
149
|
+
name: Optional[pulumi.Input[str]] = None,
|
100
150
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetKeyTransactionResult]:
|
101
151
|
"""
|
102
152
|
Use this data source to get information about a specific key transaction in New Relic that already exists.
|
@@ -126,6 +176,19 @@ def get_key_transaction_output(name: Optional[pulumi.Input[str]] = None,
|
|
126
176
|
```
|
127
177
|
|
128
178
|
|
179
|
+
:param str guid: GUID of the key transaction in New Relic.
|
180
|
+
|
181
|
+
> **NOTE** If the `name` specified in the configuration matches the names of multiple key transactions in the account, the data source will return the first match from the list of all matching key transactions retrieved from the API. However, when using the `guid` argument as the search criterion, only the key transaction with that particular GUID is returned, as each key transaction has a unique GUID.
|
129
182
|
:param str name: The name of the key transaction in New Relic.
|
130
183
|
"""
|
131
|
-
|
184
|
+
__args__ = dict()
|
185
|
+
__args__['guid'] = guid
|
186
|
+
__args__['name'] = name
|
187
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
188
|
+
__ret__ = pulumi.runtime.invoke_output('newrelic:index/getKeyTransaction:getKeyTransaction', __args__, opts=opts, typ=GetKeyTransactionResult)
|
189
|
+
return __ret__.apply(lambda __response__: GetKeyTransactionResult(
|
190
|
+
domain=pulumi.get(__response__, 'domain'),
|
191
|
+
guid=pulumi.get(__response__, 'guid'),
|
192
|
+
id=pulumi.get(__response__, 'id'),
|
193
|
+
name=pulumi.get(__response__, 'name'),
|
194
|
+
type=pulumi.get(__response__, 'type')))
|
@@ -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
|
from . import outputs
|
12
17
|
from ._inputs import *
|
@@ -169,9 +174,6 @@ def get_notification_destination(account_id: Optional[str] = None,
|
|
169
174
|
secure_urls=pulumi.get(__ret__, 'secure_urls'),
|
170
175
|
status=pulumi.get(__ret__, 'status'),
|
171
176
|
type=pulumi.get(__ret__, 'type'))
|
172
|
-
|
173
|
-
|
174
|
-
@_utilities.lift_output_func(get_notification_destination)
|
175
177
|
def get_notification_destination_output(account_id: Optional[pulumi.Input[Optional[str]]] = None,
|
176
178
|
id: Optional[pulumi.Input[Optional[str]]] = None,
|
177
179
|
name: Optional[pulumi.Input[Optional[str]]] = None,
|
@@ -187,4 +189,20 @@ def get_notification_destination_output(account_id: Optional[pulumi.Input[Option
|
|
187
189
|
Optional:
|
188
190
|
:param Sequence[Union['GetNotificationDestinationSecureUrlArgs', 'GetNotificationDestinationSecureUrlArgsDict']] secure_urls: The URL in secure format, showing only the `prefix`, as the `secure_suffix` is a secret.
|
189
191
|
"""
|
190
|
-
|
192
|
+
__args__ = dict()
|
193
|
+
__args__['accountId'] = account_id
|
194
|
+
__args__['id'] = id
|
195
|
+
__args__['name'] = name
|
196
|
+
__args__['secureUrls'] = secure_urls
|
197
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
198
|
+
__ret__ = pulumi.runtime.invoke_output('newrelic:index/getNotificationDestination:getNotificationDestination', __args__, opts=opts, typ=GetNotificationDestinationResult)
|
199
|
+
return __ret__.apply(lambda __response__: GetNotificationDestinationResult(
|
200
|
+
account_id=pulumi.get(__response__, 'account_id'),
|
201
|
+
active=pulumi.get(__response__, 'active'),
|
202
|
+
guid=pulumi.get(__response__, 'guid'),
|
203
|
+
id=pulumi.get(__response__, 'id'),
|
204
|
+
name=pulumi.get(__response__, 'name'),
|
205
|
+
properties=pulumi.get(__response__, 'properties'),
|
206
|
+
secure_urls=pulumi.get(__response__, 'secure_urls'),
|
207
|
+
status=pulumi.get(__response__, 'status'),
|
208
|
+
type=pulumi.get(__response__, 'type')))
|
@@ -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__ = [
|
@@ -102,9 +107,6 @@ def get_obfuscation_expression(account_id: Optional[str] = None,
|
|
102
107
|
account_id=pulumi.get(__ret__, 'account_id'),
|
103
108
|
id=pulumi.get(__ret__, 'id'),
|
104
109
|
name=pulumi.get(__ret__, 'name'))
|
105
|
-
|
106
|
-
|
107
|
-
@_utilities.lift_output_func(get_obfuscation_expression)
|
108
110
|
def get_obfuscation_expression_output(account_id: Optional[pulumi.Input[Optional[str]]] = None,
|
109
111
|
name: Optional[pulumi.Input[str]] = None,
|
110
112
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetObfuscationExpressionResult]:
|
@@ -135,4 +137,12 @@ def get_obfuscation_expression_output(account_id: Optional[pulumi.Input[Optional
|
|
135
137
|
:param str account_id: The account id associated with the obfuscation expression. If left empty will default to account ID specified in provider level configuration.
|
136
138
|
:param str name: Name of expression.
|
137
139
|
"""
|
138
|
-
|
140
|
+
__args__ = dict()
|
141
|
+
__args__['accountId'] = account_id
|
142
|
+
__args__['name'] = name
|
143
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
144
|
+
__ret__ = pulumi.runtime.invoke_output('newrelic:index/getObfuscationExpression:getObfuscationExpression', __args__, opts=opts, typ=GetObfuscationExpressionResult)
|
145
|
+
return __ret__.apply(lambda __response__: GetObfuscationExpressionResult(
|
146
|
+
account_id=pulumi.get(__response__, 'account_id'),
|
147
|
+
id=pulumi.get(__response__, 'id'),
|
148
|
+
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__ = [
|
@@ -308,9 +313,6 @@ def get_service_level_alert_helper(alert_type: Optional[str] = None,
|
|
308
313
|
slo_target=pulumi.get(__ret__, 'slo_target'),
|
309
314
|
threshold=pulumi.get(__ret__, 'threshold'),
|
310
315
|
tolerated_budget_consumption=pulumi.get(__ret__, 'tolerated_budget_consumption'))
|
311
|
-
|
312
|
-
|
313
|
-
@_utilities.lift_output_func(get_service_level_alert_helper)
|
314
316
|
def get_service_level_alert_helper_output(alert_type: Optional[pulumi.Input[str]] = None,
|
315
317
|
custom_evaluation_period: Optional[pulumi.Input[Optional[int]]] = None,
|
316
318
|
custom_tolerated_budget_consumption: Optional[pulumi.Input[Optional[float]]] = None,
|
@@ -440,4 +442,26 @@ def get_service_level_alert_helper_output(alert_type: Optional[pulumi.Input[str]
|
|
440
442
|
:param int slo_period: The time window of the Service Level Objective in days. Valid values are `1`, `7` and `28`.
|
441
443
|
:param float slo_target: The target of the Service Level Objective, valid values between `0` and `100`.
|
442
444
|
"""
|
443
|
-
|
445
|
+
__args__ = dict()
|
446
|
+
__args__['alertType'] = alert_type
|
447
|
+
__args__['customEvaluationPeriod'] = custom_evaluation_period
|
448
|
+
__args__['customToleratedBudgetConsumption'] = custom_tolerated_budget_consumption
|
449
|
+
__args__['isBadEvents'] = is_bad_events
|
450
|
+
__args__['sliGuid'] = sli_guid
|
451
|
+
__args__['sloPeriod'] = slo_period
|
452
|
+
__args__['sloTarget'] = slo_target
|
453
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
454
|
+
__ret__ = pulumi.runtime.invoke_output('newrelic:index/getServiceLevelAlertHelper:getServiceLevelAlertHelper', __args__, opts=opts, typ=GetServiceLevelAlertHelperResult)
|
455
|
+
return __ret__.apply(lambda __response__: GetServiceLevelAlertHelperResult(
|
456
|
+
alert_type=pulumi.get(__response__, 'alert_type'),
|
457
|
+
custom_evaluation_period=pulumi.get(__response__, 'custom_evaluation_period'),
|
458
|
+
custom_tolerated_budget_consumption=pulumi.get(__response__, 'custom_tolerated_budget_consumption'),
|
459
|
+
evaluation_period=pulumi.get(__response__, 'evaluation_period'),
|
460
|
+
id=pulumi.get(__response__, 'id'),
|
461
|
+
is_bad_events=pulumi.get(__response__, 'is_bad_events'),
|
462
|
+
nrql=pulumi.get(__response__, 'nrql'),
|
463
|
+
sli_guid=pulumi.get(__response__, 'sli_guid'),
|
464
|
+
slo_period=pulumi.get(__response__, 'slo_period'),
|
465
|
+
slo_target=pulumi.get(__response__, 'slo_target'),
|
466
|
+
threshold=pulumi.get(__response__, 'threshold'),
|
467
|
+
tolerated_budget_consumption=pulumi.get(__response__, 'tolerated_budget_consumption')))
|
@@ -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
|
from . import outputs
|
12
17
|
|
@@ -121,9 +126,6 @@ def get_test_grok_pattern(account_id: Optional[str] = None,
|
|
121
126
|
id=pulumi.get(__ret__, 'id'),
|
122
127
|
log_lines=pulumi.get(__ret__, 'log_lines'),
|
123
128
|
test_groks=pulumi.get(__ret__, 'test_groks'))
|
124
|
-
|
125
|
-
|
126
|
-
@_utilities.lift_output_func(get_test_grok_pattern)
|
127
129
|
def get_test_grok_pattern_output(account_id: Optional[pulumi.Input[Optional[str]]] = None,
|
128
130
|
grok: Optional[pulumi.Input[str]] = None,
|
129
131
|
log_lines: Optional[pulumi.Input[Sequence[str]]] = None,
|
@@ -148,4 +150,15 @@ def get_test_grok_pattern_output(account_id: Optional[pulumi.Input[Optional[str]
|
|
148
150
|
:param str grok: The Grok pattern to test.
|
149
151
|
:param Sequence[str] log_lines: The log lines to test the Grok pattern against.
|
150
152
|
"""
|
151
|
-
|
153
|
+
__args__ = dict()
|
154
|
+
__args__['accountId'] = account_id
|
155
|
+
__args__['grok'] = grok
|
156
|
+
__args__['logLines'] = log_lines
|
157
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
158
|
+
__ret__ = pulumi.runtime.invoke_output('newrelic:index/getTestGrokPattern:getTestGrokPattern', __args__, opts=opts, typ=GetTestGrokPatternResult)
|
159
|
+
return __ret__.apply(lambda __response__: GetTestGrokPatternResult(
|
160
|
+
account_id=pulumi.get(__response__, 'account_id'),
|
161
|
+
grok=pulumi.get(__response__, 'grok'),
|
162
|
+
id=pulumi.get(__response__, 'id'),
|
163
|
+
log_lines=pulumi.get(__response__, 'log_lines'),
|
164
|
+
test_groks=pulumi.get(__response__, 'test_groks')))
|
pulumi_newrelic/get_user.py
CHANGED
@@ -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__ = [
|
@@ -115,9 +120,6 @@ def get_user(authentication_domain_id: Optional[str] = None,
|
|
115
120
|
email_id=pulumi.get(__ret__, 'email_id'),
|
116
121
|
id=pulumi.get(__ret__, 'id'),
|
117
122
|
name=pulumi.get(__ret__, 'name'))
|
118
|
-
|
119
|
-
|
120
|
-
@_utilities.lift_output_func(get_user)
|
121
123
|
def get_user_output(authentication_domain_id: Optional[pulumi.Input[str]] = None,
|
122
124
|
email_id: Optional[pulumi.Input[Optional[str]]] = None,
|
123
125
|
name: Optional[pulumi.Input[Optional[str]]] = None,
|
@@ -150,4 +152,14 @@ def get_user_output(authentication_domain_id: Optional[pulumi.Input[str]] = None
|
|
150
152
|
> **NOTE** The ID of an authentication domain can be retrieved using its name, via the data source `get_authentication_domain`, as shown in the example above. Head over to the documentation of this data source for more details and examples.
|
151
153
|
:param str name: The name of the user to search for.
|
152
154
|
"""
|
153
|
-
|
155
|
+
__args__ = dict()
|
156
|
+
__args__['authenticationDomainId'] = authentication_domain_id
|
157
|
+
__args__['emailId'] = email_id
|
158
|
+
__args__['name'] = name
|
159
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
160
|
+
__ret__ = pulumi.runtime.invoke_output('newrelic:index/getUser:getUser', __args__, opts=opts, typ=GetUserResult)
|
161
|
+
return __ret__.apply(lambda __response__: GetUserResult(
|
162
|
+
authentication_domain_id=pulumi.get(__response__, 'authentication_domain_id'),
|
163
|
+
email_id=pulumi.get(__response__, 'email_id'),
|
164
|
+
id=pulumi.get(__response__, 'id'),
|
165
|
+
name=pulumi.get(__response__, 'name')))
|
pulumi_newrelic/group.py
CHANGED
@@ -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__ = ['GroupArgs', 'Group']
|
@@ -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
|
from . import outputs
|
12
17
|
from ._inputs import *
|
@@ -4,16 +4,42 @@
|
|
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__ = [
|
13
18
|
'EventEventArgs',
|
19
|
+
'EventEventArgsDict',
|
14
20
|
'EventEventAttributeArgs',
|
21
|
+
'EventEventAttributeArgsDict',
|
15
22
|
]
|
16
23
|
|
24
|
+
MYPY = False
|
25
|
+
|
26
|
+
if not MYPY:
|
27
|
+
class EventEventArgsDict(TypedDict):
|
28
|
+
attributes: pulumi.Input[Sequence[pulumi.Input['EventEventAttributeArgsDict']]]
|
29
|
+
"""
|
30
|
+
An attribute to include in your event payload. Multiple attribute blocks can be defined for an event.
|
31
|
+
"""
|
32
|
+
type: pulumi.Input[str]
|
33
|
+
"""
|
34
|
+
The event's name. Can be a combination of alphanumeric characters, underscores, and colons.
|
35
|
+
"""
|
36
|
+
timestamp: NotRequired[pulumi.Input[int]]
|
37
|
+
"""
|
38
|
+
Must be a Unix epoch timestamp. You can define timestamps either in seconds or in milliseconds.
|
39
|
+
"""
|
40
|
+
elif False:
|
41
|
+
EventEventArgsDict: TypeAlias = Mapping[str, Any]
|
42
|
+
|
17
43
|
@pulumi.input_type
|
18
44
|
class EventEventArgs:
|
19
45
|
def __init__(__self__, *,
|
@@ -67,6 +93,23 @@ class EventEventArgs:
|
|
67
93
|
pulumi.set(self, "timestamp", value)
|
68
94
|
|
69
95
|
|
96
|
+
if not MYPY:
|
97
|
+
class EventEventAttributeArgsDict(TypedDict):
|
98
|
+
key: pulumi.Input[str]
|
99
|
+
"""
|
100
|
+
The name of the attribute.
|
101
|
+
"""
|
102
|
+
value: pulumi.Input[str]
|
103
|
+
"""
|
104
|
+
The value of the attribute.
|
105
|
+
"""
|
106
|
+
type: NotRequired[pulumi.Input[str]]
|
107
|
+
"""
|
108
|
+
Specify the type for the attribute value. This is useful when passing integer or float values to Insights. Allowed values are string, int, or float. Defaults to string.
|
109
|
+
"""
|
110
|
+
elif False:
|
111
|
+
EventEventAttributeArgsDict: TypeAlias = Mapping[str, Any]
|
112
|
+
|
70
113
|
@pulumi.input_type
|
71
114
|
class EventEventAttributeArgs:
|
72
115
|
def __init__(__self__, *,
|
@@ -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
|
from . import outputs
|
12
17
|
from ._inputs import *
|
@@ -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
|
from . import outputs
|
12
17
|
|