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
|
@@ -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
|
|
|
@@ -23,8 +28,8 @@ class GetTestGrokPatternResult:
|
|
|
23
28
|
A collection of values returned by getTestGrokPattern.
|
|
24
29
|
"""
|
|
25
30
|
def __init__(__self__, account_id=None, grok=None, id=None, log_lines=None, test_groks=None):
|
|
26
|
-
if account_id and not isinstance(account_id,
|
|
27
|
-
raise TypeError("Expected argument 'account_id' to be a
|
|
31
|
+
if account_id and not isinstance(account_id, str):
|
|
32
|
+
raise TypeError("Expected argument 'account_id' to be a str")
|
|
28
33
|
pulumi.set(__self__, "account_id", account_id)
|
|
29
34
|
if grok and not isinstance(grok, str):
|
|
30
35
|
raise TypeError("Expected argument 'grok' to be a str")
|
|
@@ -39,30 +44,30 @@ class GetTestGrokPatternResult:
|
|
|
39
44
|
raise TypeError("Expected argument 'test_groks' to be a list")
|
|
40
45
|
pulumi.set(__self__, "test_groks", test_groks)
|
|
41
46
|
|
|
42
|
-
@property
|
|
47
|
+
@_builtins.property
|
|
43
48
|
@pulumi.getter(name="accountId")
|
|
44
|
-
def account_id(self) -> Optional[
|
|
49
|
+
def account_id(self) -> Optional[_builtins.str]:
|
|
45
50
|
return pulumi.get(self, "account_id")
|
|
46
51
|
|
|
47
|
-
@property
|
|
52
|
+
@_builtins.property
|
|
48
53
|
@pulumi.getter
|
|
49
|
-
def grok(self) -> str:
|
|
54
|
+
def grok(self) -> _builtins.str:
|
|
50
55
|
return pulumi.get(self, "grok")
|
|
51
56
|
|
|
52
|
-
@property
|
|
57
|
+
@_builtins.property
|
|
53
58
|
@pulumi.getter
|
|
54
|
-
def id(self) -> str:
|
|
59
|
+
def id(self) -> _builtins.str:
|
|
55
60
|
"""
|
|
56
61
|
The provider-assigned unique ID for this managed resource.
|
|
57
62
|
"""
|
|
58
63
|
return pulumi.get(self, "id")
|
|
59
64
|
|
|
60
|
-
@property
|
|
65
|
+
@_builtins.property
|
|
61
66
|
@pulumi.getter(name="logLines")
|
|
62
|
-
def log_lines(self) -> Sequence[str]:
|
|
67
|
+
def log_lines(self) -> Sequence[_builtins.str]:
|
|
63
68
|
return pulumi.get(self, "log_lines")
|
|
64
69
|
|
|
65
|
-
@property
|
|
70
|
+
@_builtins.property
|
|
66
71
|
@pulumi.getter(name="testGroks")
|
|
67
72
|
def test_groks(self) -> Sequence['outputs.GetTestGrokPatternTestGrokResult']:
|
|
68
73
|
"""
|
|
@@ -84,30 +89,29 @@ class AwaitableGetTestGrokPatternResult(GetTestGrokPatternResult):
|
|
|
84
89
|
test_groks=self.test_groks)
|
|
85
90
|
|
|
86
91
|
|
|
87
|
-
def get_test_grok_pattern(account_id: Optional[
|
|
88
|
-
grok: Optional[str] = None,
|
|
89
|
-
log_lines: Optional[Sequence[str]] = None,
|
|
92
|
+
def get_test_grok_pattern(account_id: Optional[_builtins.str] = None,
|
|
93
|
+
grok: Optional[_builtins.str] = None,
|
|
94
|
+
log_lines: Optional[Sequence[_builtins.str]] = None,
|
|
90
95
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetTestGrokPatternResult:
|
|
91
96
|
"""
|
|
92
97
|
## Example Usage
|
|
93
98
|
|
|
94
|
-
<!--Start PulumiCodeChooser -->
|
|
95
99
|
```python
|
|
96
100
|
import pulumi
|
|
97
101
|
import pulumi_newrelic as newrelic
|
|
98
102
|
|
|
99
|
-
|
|
103
|
+
# Data source
|
|
104
|
+
foo = newrelic.get_test_grok_pattern(grok="%{IP:host_ip}",
|
|
100
105
|
log_lines=[
|
|
101
106
|
"host_ip: 43.3.120.2",
|
|
102
107
|
"bytes_received: 2048",
|
|
103
108
|
])
|
|
104
109
|
```
|
|
105
|
-
<!--End PulumiCodeChooser -->
|
|
106
110
|
|
|
107
111
|
|
|
108
|
-
:param
|
|
109
|
-
:param str grok: The Grok pattern to test.
|
|
110
|
-
:param Sequence[str] log_lines: The log lines to test the Grok pattern against.
|
|
112
|
+
:param _builtins.str account_id: The New Relic account ID to operate on. This allows you to override the `account_id` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`.
|
|
113
|
+
:param _builtins.str grok: The Grok pattern to test.
|
|
114
|
+
:param Sequence[_builtins.str] log_lines: The log lines to test the Grok pattern against.
|
|
111
115
|
"""
|
|
112
116
|
__args__ = dict()
|
|
113
117
|
__args__['accountId'] = account_id
|
|
@@ -122,32 +126,39 @@ def get_test_grok_pattern(account_id: Optional[int] = None,
|
|
|
122
126
|
id=pulumi.get(__ret__, 'id'),
|
|
123
127
|
log_lines=pulumi.get(__ret__, 'log_lines'),
|
|
124
128
|
test_groks=pulumi.get(__ret__, 'test_groks'))
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
grok: Optional[pulumi.Input[str]] = None,
|
|
130
|
-
log_lines: Optional[pulumi.Input[Sequence[str]]] = None,
|
|
131
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetTestGrokPatternResult]:
|
|
129
|
+
def get_test_grok_pattern_output(account_id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
130
|
+
grok: Optional[pulumi.Input[_builtins.str]] = None,
|
|
131
|
+
log_lines: Optional[pulumi.Input[Sequence[_builtins.str]]] = None,
|
|
132
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetTestGrokPatternResult]:
|
|
132
133
|
"""
|
|
133
134
|
## Example Usage
|
|
134
135
|
|
|
135
|
-
<!--Start PulumiCodeChooser -->
|
|
136
136
|
```python
|
|
137
137
|
import pulumi
|
|
138
138
|
import pulumi_newrelic as newrelic
|
|
139
139
|
|
|
140
|
-
|
|
140
|
+
# Data source
|
|
141
|
+
foo = newrelic.get_test_grok_pattern(grok="%{IP:host_ip}",
|
|
141
142
|
log_lines=[
|
|
142
143
|
"host_ip: 43.3.120.2",
|
|
143
144
|
"bytes_received: 2048",
|
|
144
145
|
])
|
|
145
146
|
```
|
|
146
|
-
<!--End PulumiCodeChooser -->
|
|
147
147
|
|
|
148
148
|
|
|
149
|
-
:param
|
|
150
|
-
:param str grok: The Grok pattern to test.
|
|
151
|
-
:param Sequence[str] log_lines: The log lines to test the Grok pattern against.
|
|
149
|
+
:param _builtins.str account_id: The New Relic account ID to operate on. This allows you to override the `account_id` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`.
|
|
150
|
+
:param _builtins.str grok: The Grok pattern to test.
|
|
151
|
+
:param Sequence[_builtins.str] log_lines: The log lines to test the Grok pattern against.
|
|
152
152
|
"""
|
|
153
|
-
|
|
153
|
+
__args__ = dict()
|
|
154
|
+
__args__['accountId'] = account_id
|
|
155
|
+
__args__['grok'] = grok
|
|
156
|
+
__args__['logLines'] = log_lines
|
|
157
|
+
opts = pulumi.InvokeOutputOptions.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
|
@@ -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
|
|
|
12
17
|
__all__ = [
|
|
@@ -35,27 +40,27 @@ class GetUserResult:
|
|
|
35
40
|
raise TypeError("Expected argument 'name' to be a str")
|
|
36
41
|
pulumi.set(__self__, "name", name)
|
|
37
42
|
|
|
38
|
-
@property
|
|
43
|
+
@_builtins.property
|
|
39
44
|
@pulumi.getter(name="authenticationDomainId")
|
|
40
|
-
def authentication_domain_id(self) -> str:
|
|
45
|
+
def authentication_domain_id(self) -> _builtins.str:
|
|
41
46
|
return pulumi.get(self, "authentication_domain_id")
|
|
42
47
|
|
|
43
|
-
@property
|
|
48
|
+
@_builtins.property
|
|
44
49
|
@pulumi.getter(name="emailId")
|
|
45
|
-
def email_id(self) -> str:
|
|
50
|
+
def email_id(self) -> _builtins.str:
|
|
46
51
|
return pulumi.get(self, "email_id")
|
|
47
52
|
|
|
48
|
-
@property
|
|
53
|
+
@_builtins.property
|
|
49
54
|
@pulumi.getter
|
|
50
|
-
def id(self) -> str:
|
|
55
|
+
def id(self) -> _builtins.str:
|
|
51
56
|
"""
|
|
52
57
|
The ID of the matching user fetched.
|
|
53
58
|
"""
|
|
54
59
|
return pulumi.get(self, "id")
|
|
55
60
|
|
|
56
|
-
@property
|
|
61
|
+
@_builtins.property
|
|
57
62
|
@pulumi.getter
|
|
58
|
-
def name(self) -> str:
|
|
63
|
+
def name(self) -> _builtins.str:
|
|
59
64
|
return pulumi.get(self, "name")
|
|
60
65
|
|
|
61
66
|
|
|
@@ -71,9 +76,9 @@ class AwaitableGetUserResult(GetUserResult):
|
|
|
71
76
|
name=self.name)
|
|
72
77
|
|
|
73
78
|
|
|
74
|
-
def get_user(authentication_domain_id: Optional[str] = None,
|
|
75
|
-
email_id: Optional[str] = None,
|
|
76
|
-
name: Optional[str] = None,
|
|
79
|
+
def get_user(authentication_domain_id: Optional[_builtins.str] = None,
|
|
80
|
+
email_id: Optional[_builtins.str] = None,
|
|
81
|
+
name: Optional[_builtins.str] = None,
|
|
77
82
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetUserResult:
|
|
78
83
|
"""
|
|
79
84
|
The `User` data source helps search for a user by their name and/or email ID, and accordingly, fetch the ID of the matching user.
|
|
@@ -81,7 +86,6 @@ def get_user(authentication_domain_id: Optional[str] = None,
|
|
|
81
86
|
## Example Usage
|
|
82
87
|
|
|
83
88
|
The below example illustrates fetching a the ID of a user (and other arguments) using the ID of the authentication domain the user belongs to, as well as a name and/or email ID, which can be used as criteria to search for a user who matches these specified parameters.
|
|
84
|
-
<!--Start PulumiCodeChooser -->
|
|
85
89
|
```python
|
|
86
90
|
import pulumi
|
|
87
91
|
import pulumi_newrelic as newrelic
|
|
@@ -92,18 +96,17 @@ def get_user(authentication_domain_id: Optional[str] = None,
|
|
|
92
96
|
user_two = newrelic.get_user(authentication_domain_id=foo.id,
|
|
93
97
|
email_id="test_user@random.com")
|
|
94
98
|
```
|
|
95
|
-
<!--End PulumiCodeChooser -->
|
|
96
99
|
|
|
97
100
|
|
|
98
|
-
:param str authentication_domain_id: The ID of the authentication domain the user to be searched for belongs to.
|
|
99
|
-
:param str email_id: The email ID of the user to search for.
|
|
101
|
+
:param _builtins.str authentication_domain_id: The ID of the authentication domain the user to be searched for belongs to.
|
|
102
|
+
:param _builtins.str email_id: The email ID of the user to search for.
|
|
100
103
|
|
|
101
104
|
It should be noted that either `name` or `email_id` must be specified in order to retrieve a matching user.
|
|
102
105
|
|
|
103
106
|
> **NOTE** If the `name` specified in the configuration matches the names of multiple users in the account, the data source will return the first match from the list of all matching users retrieved from the API. However, when using the `email_id` argument as the search criterion, only the user with the specified email ID will be returned, as each user has a unique email ID and multiple users cannot have the same email ID.
|
|
104
107
|
|
|
105
108
|
> **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.
|
|
106
|
-
:param str name: The name of the user to search for.
|
|
109
|
+
:param _builtins.str name: The name of the user to search for.
|
|
107
110
|
"""
|
|
108
111
|
__args__ = dict()
|
|
109
112
|
__args__['authenticationDomainId'] = authentication_domain_id
|
|
@@ -117,20 +120,16 @@ def get_user(authentication_domain_id: Optional[str] = None,
|
|
|
117
120
|
email_id=pulumi.get(__ret__, 'email_id'),
|
|
118
121
|
id=pulumi.get(__ret__, 'id'),
|
|
119
122
|
name=pulumi.get(__ret__, 'name'))
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
email_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
125
|
-
name: Optional[pulumi.Input[Optional[str]]] = None,
|
|
126
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetUserResult]:
|
|
123
|
+
def get_user_output(authentication_domain_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
124
|
+
email_id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
125
|
+
name: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
126
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetUserResult]:
|
|
127
127
|
"""
|
|
128
128
|
The `User` data source helps search for a user by their name and/or email ID, and accordingly, fetch the ID of the matching user.
|
|
129
129
|
|
|
130
130
|
## Example Usage
|
|
131
131
|
|
|
132
132
|
The below example illustrates fetching a the ID of a user (and other arguments) using the ID of the authentication domain the user belongs to, as well as a name and/or email ID, which can be used as criteria to search for a user who matches these specified parameters.
|
|
133
|
-
<!--Start PulumiCodeChooser -->
|
|
134
133
|
```python
|
|
135
134
|
import pulumi
|
|
136
135
|
import pulumi_newrelic as newrelic
|
|
@@ -141,17 +140,26 @@ def get_user_output(authentication_domain_id: Optional[pulumi.Input[str]] = None
|
|
|
141
140
|
user_two = newrelic.get_user(authentication_domain_id=foo.id,
|
|
142
141
|
email_id="test_user@random.com")
|
|
143
142
|
```
|
|
144
|
-
<!--End PulumiCodeChooser -->
|
|
145
143
|
|
|
146
144
|
|
|
147
|
-
:param str authentication_domain_id: The ID of the authentication domain the user to be searched for belongs to.
|
|
148
|
-
:param str email_id: The email ID of the user to search for.
|
|
145
|
+
:param _builtins.str authentication_domain_id: The ID of the authentication domain the user to be searched for belongs to.
|
|
146
|
+
:param _builtins.str email_id: The email ID of the user to search for.
|
|
149
147
|
|
|
150
148
|
It should be noted that either `name` or `email_id` must be specified in order to retrieve a matching user.
|
|
151
149
|
|
|
152
150
|
> **NOTE** If the `name` specified in the configuration matches the names of multiple users in the account, the data source will return the first match from the list of all matching users retrieved from the API. However, when using the `email_id` argument as the search criterion, only the user with the specified email ID will be returned, as each user has a unique email ID and multiple users cannot have the same email ID.
|
|
153
151
|
|
|
154
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.
|
|
155
|
-
:param str name: The name of the user to search for.
|
|
153
|
+
:param _builtins.str name: The name of the user to search for.
|
|
156
154
|
"""
|
|
157
|
-
|
|
155
|
+
__args__ = dict()
|
|
156
|
+
__args__['authenticationDomainId'] = authentication_domain_id
|
|
157
|
+
__args__['emailId'] = email_id
|
|
158
|
+
__args__['name'] = name
|
|
159
|
+
opts = pulumi.InvokeOutputOptions.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')))
|