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/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__ = ['UserArgs', 'User']
|
|
@@ -14,16 +19,16 @@ __all__ = ['UserArgs', 'User']
|
|
|
14
19
|
@pulumi.input_type
|
|
15
20
|
class UserArgs:
|
|
16
21
|
def __init__(__self__, *,
|
|
17
|
-
authentication_domain_id: pulumi.Input[str],
|
|
18
|
-
email_id: pulumi.Input[str],
|
|
19
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
20
|
-
user_type: Optional[pulumi.Input[str]] = None):
|
|
22
|
+
authentication_domain_id: pulumi.Input[_builtins.str],
|
|
23
|
+
email_id: pulumi.Input[_builtins.str],
|
|
24
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
25
|
+
user_type: Optional[pulumi.Input[_builtins.str]] = None):
|
|
21
26
|
"""
|
|
22
27
|
The set of arguments for constructing a User resource.
|
|
23
|
-
:param pulumi.Input[str] authentication_domain_id: The ID of the authentication domain to which the user to be created would belong.
|
|
24
|
-
:param pulumi.Input[str] email_id: The email ID of the user to be created.
|
|
25
|
-
:param pulumi.Input[str] name: The name of the user to be created.
|
|
26
|
-
:param pulumi.Input[str] user_type: The tier to which the user to be created would belong. Accepted values for this argument are `BASIC_USER_TIER`, `CORE_USER_TIER`, or `FULL_USER_TIER`. If not specified in the configuration, the argument would default to `BASIC_USER_TIER`.
|
|
28
|
+
:param pulumi.Input[_builtins.str] authentication_domain_id: The ID of the authentication domain to which the user to be created would belong.
|
|
29
|
+
:param pulumi.Input[_builtins.str] email_id: The email ID of the user to be created.
|
|
30
|
+
:param pulumi.Input[_builtins.str] name: The name of the user to be created.
|
|
31
|
+
:param pulumi.Input[_builtins.str] user_type: The tier to which the user to be created would belong. Accepted values for this argument are `BASIC_USER_TIER`, `CORE_USER_TIER`, or `FULL_USER_TIER`. If not specified in the configuration, the argument would default to `BASIC_USER_TIER`.
|
|
27
32
|
|
|
28
33
|
> **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.
|
|
29
34
|
|
|
@@ -36,45 +41,45 @@ class UserArgs:
|
|
|
36
41
|
if user_type is not None:
|
|
37
42
|
pulumi.set(__self__, "user_type", user_type)
|
|
38
43
|
|
|
39
|
-
@property
|
|
44
|
+
@_builtins.property
|
|
40
45
|
@pulumi.getter(name="authenticationDomainId")
|
|
41
|
-
def authentication_domain_id(self) -> pulumi.Input[str]:
|
|
46
|
+
def authentication_domain_id(self) -> pulumi.Input[_builtins.str]:
|
|
42
47
|
"""
|
|
43
48
|
The ID of the authentication domain to which the user to be created would belong.
|
|
44
49
|
"""
|
|
45
50
|
return pulumi.get(self, "authentication_domain_id")
|
|
46
51
|
|
|
47
52
|
@authentication_domain_id.setter
|
|
48
|
-
def authentication_domain_id(self, value: pulumi.Input[str]):
|
|
53
|
+
def authentication_domain_id(self, value: pulumi.Input[_builtins.str]):
|
|
49
54
|
pulumi.set(self, "authentication_domain_id", value)
|
|
50
55
|
|
|
51
|
-
@property
|
|
56
|
+
@_builtins.property
|
|
52
57
|
@pulumi.getter(name="emailId")
|
|
53
|
-
def email_id(self) -> pulumi.Input[str]:
|
|
58
|
+
def email_id(self) -> pulumi.Input[_builtins.str]:
|
|
54
59
|
"""
|
|
55
60
|
The email ID of the user to be created.
|
|
56
61
|
"""
|
|
57
62
|
return pulumi.get(self, "email_id")
|
|
58
63
|
|
|
59
64
|
@email_id.setter
|
|
60
|
-
def email_id(self, value: pulumi.Input[str]):
|
|
65
|
+
def email_id(self, value: pulumi.Input[_builtins.str]):
|
|
61
66
|
pulumi.set(self, "email_id", value)
|
|
62
67
|
|
|
63
|
-
@property
|
|
68
|
+
@_builtins.property
|
|
64
69
|
@pulumi.getter
|
|
65
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
|
70
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
66
71
|
"""
|
|
67
72
|
The name of the user to be created.
|
|
68
73
|
"""
|
|
69
74
|
return pulumi.get(self, "name")
|
|
70
75
|
|
|
71
76
|
@name.setter
|
|
72
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
|
77
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
73
78
|
pulumi.set(self, "name", value)
|
|
74
79
|
|
|
75
|
-
@property
|
|
80
|
+
@_builtins.property
|
|
76
81
|
@pulumi.getter(name="userType")
|
|
77
|
-
def user_type(self) -> Optional[pulumi.Input[str]]:
|
|
82
|
+
def user_type(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
78
83
|
"""
|
|
79
84
|
The tier to which the user to be created would belong. Accepted values for this argument are `BASIC_USER_TIER`, `CORE_USER_TIER`, or `FULL_USER_TIER`. If not specified in the configuration, the argument would default to `BASIC_USER_TIER`.
|
|
80
85
|
|
|
@@ -85,23 +90,23 @@ class UserArgs:
|
|
|
85
90
|
return pulumi.get(self, "user_type")
|
|
86
91
|
|
|
87
92
|
@user_type.setter
|
|
88
|
-
def user_type(self, value: Optional[pulumi.Input[str]]):
|
|
93
|
+
def user_type(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
89
94
|
pulumi.set(self, "user_type", value)
|
|
90
95
|
|
|
91
96
|
|
|
92
97
|
@pulumi.input_type
|
|
93
98
|
class _UserState:
|
|
94
99
|
def __init__(__self__, *,
|
|
95
|
-
authentication_domain_id: Optional[pulumi.Input[str]] = None,
|
|
96
|
-
email_id: Optional[pulumi.Input[str]] = None,
|
|
97
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
98
|
-
user_type: Optional[pulumi.Input[str]] = None):
|
|
100
|
+
authentication_domain_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
101
|
+
email_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
102
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
103
|
+
user_type: Optional[pulumi.Input[_builtins.str]] = None):
|
|
99
104
|
"""
|
|
100
105
|
Input properties used for looking up and filtering User resources.
|
|
101
|
-
:param pulumi.Input[str] authentication_domain_id: The ID of the authentication domain to which the user to be created would belong.
|
|
102
|
-
:param pulumi.Input[str] email_id: The email ID of the user to be created.
|
|
103
|
-
:param pulumi.Input[str] name: The name of the user to be created.
|
|
104
|
-
:param pulumi.Input[str] user_type: The tier to which the user to be created would belong. Accepted values for this argument are `BASIC_USER_TIER`, `CORE_USER_TIER`, or `FULL_USER_TIER`. If not specified in the configuration, the argument would default to `BASIC_USER_TIER`.
|
|
106
|
+
:param pulumi.Input[_builtins.str] authentication_domain_id: The ID of the authentication domain to which the user to be created would belong.
|
|
107
|
+
:param pulumi.Input[_builtins.str] email_id: The email ID of the user to be created.
|
|
108
|
+
:param pulumi.Input[_builtins.str] name: The name of the user to be created.
|
|
109
|
+
:param pulumi.Input[_builtins.str] user_type: The tier to which the user to be created would belong. Accepted values for this argument are `BASIC_USER_TIER`, `CORE_USER_TIER`, or `FULL_USER_TIER`. If not specified in the configuration, the argument would default to `BASIC_USER_TIER`.
|
|
105
110
|
|
|
106
111
|
> **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.
|
|
107
112
|
|
|
@@ -116,45 +121,45 @@ class _UserState:
|
|
|
116
121
|
if user_type is not None:
|
|
117
122
|
pulumi.set(__self__, "user_type", user_type)
|
|
118
123
|
|
|
119
|
-
@property
|
|
124
|
+
@_builtins.property
|
|
120
125
|
@pulumi.getter(name="authenticationDomainId")
|
|
121
|
-
def authentication_domain_id(self) -> Optional[pulumi.Input[str]]:
|
|
126
|
+
def authentication_domain_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
122
127
|
"""
|
|
123
128
|
The ID of the authentication domain to which the user to be created would belong.
|
|
124
129
|
"""
|
|
125
130
|
return pulumi.get(self, "authentication_domain_id")
|
|
126
131
|
|
|
127
132
|
@authentication_domain_id.setter
|
|
128
|
-
def authentication_domain_id(self, value: Optional[pulumi.Input[str]]):
|
|
133
|
+
def authentication_domain_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
129
134
|
pulumi.set(self, "authentication_domain_id", value)
|
|
130
135
|
|
|
131
|
-
@property
|
|
136
|
+
@_builtins.property
|
|
132
137
|
@pulumi.getter(name="emailId")
|
|
133
|
-
def email_id(self) -> Optional[pulumi.Input[str]]:
|
|
138
|
+
def email_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
134
139
|
"""
|
|
135
140
|
The email ID of the user to be created.
|
|
136
141
|
"""
|
|
137
142
|
return pulumi.get(self, "email_id")
|
|
138
143
|
|
|
139
144
|
@email_id.setter
|
|
140
|
-
def email_id(self, value: Optional[pulumi.Input[str]]):
|
|
145
|
+
def email_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
141
146
|
pulumi.set(self, "email_id", value)
|
|
142
147
|
|
|
143
|
-
@property
|
|
148
|
+
@_builtins.property
|
|
144
149
|
@pulumi.getter
|
|
145
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
|
150
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
146
151
|
"""
|
|
147
152
|
The name of the user to be created.
|
|
148
153
|
"""
|
|
149
154
|
return pulumi.get(self, "name")
|
|
150
155
|
|
|
151
156
|
@name.setter
|
|
152
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
|
157
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
153
158
|
pulumi.set(self, "name", value)
|
|
154
159
|
|
|
155
|
-
@property
|
|
160
|
+
@_builtins.property
|
|
156
161
|
@pulumi.getter(name="userType")
|
|
157
|
-
def user_type(self) -> Optional[pulumi.Input[str]]:
|
|
162
|
+
def user_type(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
158
163
|
"""
|
|
159
164
|
The tier to which the user to be created would belong. Accepted values for this argument are `BASIC_USER_TIER`, `CORE_USER_TIER`, or `FULL_USER_TIER`. If not specified in the configuration, the argument would default to `BASIC_USER_TIER`.
|
|
160
165
|
|
|
@@ -165,37 +170,37 @@ class _UserState:
|
|
|
165
170
|
return pulumi.get(self, "user_type")
|
|
166
171
|
|
|
167
172
|
@user_type.setter
|
|
168
|
-
def user_type(self, value: Optional[pulumi.Input[str]]):
|
|
173
|
+
def user_type(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
169
174
|
pulumi.set(self, "user_type", value)
|
|
170
175
|
|
|
171
176
|
|
|
177
|
+
@pulumi.type_token("newrelic:index/user:User")
|
|
172
178
|
class User(pulumi.CustomResource):
|
|
173
179
|
@overload
|
|
174
180
|
def __init__(__self__,
|
|
175
181
|
resource_name: str,
|
|
176
182
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
177
|
-
authentication_domain_id: Optional[pulumi.Input[str]] = None,
|
|
178
|
-
email_id: Optional[pulumi.Input[str]] = None,
|
|
179
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
180
|
-
user_type: Optional[pulumi.Input[str]] = None,
|
|
183
|
+
authentication_domain_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
184
|
+
email_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
185
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
186
|
+
user_type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
181
187
|
__props__=None):
|
|
182
188
|
"""
|
|
183
189
|
The `User` resource may be used to create, update and delete users in New Relic.
|
|
184
190
|
|
|
185
191
|
## Example Usage
|
|
186
192
|
|
|
187
|
-
<!--Start PulumiCodeChooser -->
|
|
188
193
|
```python
|
|
189
194
|
import pulumi
|
|
190
195
|
import pulumi_newrelic as newrelic
|
|
191
196
|
|
|
192
|
-
|
|
193
|
-
foo_user = newrelic.User("
|
|
197
|
+
foo = newrelic.get_authentication_domain(name="Test Authentication Domain")
|
|
198
|
+
foo_user = newrelic.User("foo",
|
|
199
|
+
name="Test New User",
|
|
194
200
|
email_id="test_user@test.com",
|
|
195
|
-
authentication_domain_id=
|
|
201
|
+
authentication_domain_id=foo.id,
|
|
196
202
|
user_type="CORE_USER_TIER")
|
|
197
203
|
```
|
|
198
|
-
<!--End PulumiCodeChooser -->
|
|
199
204
|
|
|
200
205
|
## Import
|
|
201
206
|
|
|
@@ -207,10 +212,10 @@ class User(pulumi.CustomResource):
|
|
|
207
212
|
|
|
208
213
|
:param str resource_name: The name of the resource.
|
|
209
214
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
210
|
-
:param pulumi.Input[str] authentication_domain_id: The ID of the authentication domain to which the user to be created would belong.
|
|
211
|
-
:param pulumi.Input[str] email_id: The email ID of the user to be created.
|
|
212
|
-
:param pulumi.Input[str] name: The name of the user to be created.
|
|
213
|
-
:param pulumi.Input[str] user_type: The tier to which the user to be created would belong. Accepted values for this argument are `BASIC_USER_TIER`, `CORE_USER_TIER`, or `FULL_USER_TIER`. If not specified in the configuration, the argument would default to `BASIC_USER_TIER`.
|
|
215
|
+
:param pulumi.Input[_builtins.str] authentication_domain_id: The ID of the authentication domain to which the user to be created would belong.
|
|
216
|
+
:param pulumi.Input[_builtins.str] email_id: The email ID of the user to be created.
|
|
217
|
+
:param pulumi.Input[_builtins.str] name: The name of the user to be created.
|
|
218
|
+
:param pulumi.Input[_builtins.str] user_type: The tier to which the user to be created would belong. Accepted values for this argument are `BASIC_USER_TIER`, `CORE_USER_TIER`, or `FULL_USER_TIER`. If not specified in the configuration, the argument would default to `BASIC_USER_TIER`.
|
|
214
219
|
|
|
215
220
|
> **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.
|
|
216
221
|
|
|
@@ -227,18 +232,17 @@ class User(pulumi.CustomResource):
|
|
|
227
232
|
|
|
228
233
|
## Example Usage
|
|
229
234
|
|
|
230
|
-
<!--Start PulumiCodeChooser -->
|
|
231
235
|
```python
|
|
232
236
|
import pulumi
|
|
233
237
|
import pulumi_newrelic as newrelic
|
|
234
238
|
|
|
235
|
-
|
|
236
|
-
foo_user = newrelic.User("
|
|
239
|
+
foo = newrelic.get_authentication_domain(name="Test Authentication Domain")
|
|
240
|
+
foo_user = newrelic.User("foo",
|
|
241
|
+
name="Test New User",
|
|
237
242
|
email_id="test_user@test.com",
|
|
238
|
-
authentication_domain_id=
|
|
243
|
+
authentication_domain_id=foo.id,
|
|
239
244
|
user_type="CORE_USER_TIER")
|
|
240
245
|
```
|
|
241
|
-
<!--End PulumiCodeChooser -->
|
|
242
246
|
|
|
243
247
|
## Import
|
|
244
248
|
|
|
@@ -263,10 +267,10 @@ class User(pulumi.CustomResource):
|
|
|
263
267
|
def _internal_init(__self__,
|
|
264
268
|
resource_name: str,
|
|
265
269
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
266
|
-
authentication_domain_id: Optional[pulumi.Input[str]] = None,
|
|
267
|
-
email_id: Optional[pulumi.Input[str]] = None,
|
|
268
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
269
|
-
user_type: Optional[pulumi.Input[str]] = None,
|
|
270
|
+
authentication_domain_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
271
|
+
email_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
272
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
273
|
+
user_type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
270
274
|
__props__=None):
|
|
271
275
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
272
276
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -294,10 +298,10 @@ class User(pulumi.CustomResource):
|
|
|
294
298
|
def get(resource_name: str,
|
|
295
299
|
id: pulumi.Input[str],
|
|
296
300
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
297
|
-
authentication_domain_id: Optional[pulumi.Input[str]] = None,
|
|
298
|
-
email_id: Optional[pulumi.Input[str]] = None,
|
|
299
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
300
|
-
user_type: Optional[pulumi.Input[str]] = None) -> 'User':
|
|
301
|
+
authentication_domain_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
302
|
+
email_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
303
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
304
|
+
user_type: Optional[pulumi.Input[_builtins.str]] = None) -> 'User':
|
|
301
305
|
"""
|
|
302
306
|
Get an existing User resource's state with the given name, id, and optional extra
|
|
303
307
|
properties used to qualify the lookup.
|
|
@@ -305,10 +309,10 @@ class User(pulumi.CustomResource):
|
|
|
305
309
|
:param str resource_name: The unique name of the resulting resource.
|
|
306
310
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
307
311
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
308
|
-
:param pulumi.Input[str] authentication_domain_id: The ID of the authentication domain to which the user to be created would belong.
|
|
309
|
-
:param pulumi.Input[str] email_id: The email ID of the user to be created.
|
|
310
|
-
:param pulumi.Input[str] name: The name of the user to be created.
|
|
311
|
-
:param pulumi.Input[str] user_type: The tier to which the user to be created would belong. Accepted values for this argument are `BASIC_USER_TIER`, `CORE_USER_TIER`, or `FULL_USER_TIER`. If not specified in the configuration, the argument would default to `BASIC_USER_TIER`.
|
|
312
|
+
:param pulumi.Input[_builtins.str] authentication_domain_id: The ID of the authentication domain to which the user to be created would belong.
|
|
313
|
+
:param pulumi.Input[_builtins.str] email_id: The email ID of the user to be created.
|
|
314
|
+
:param pulumi.Input[_builtins.str] name: The name of the user to be created.
|
|
315
|
+
:param pulumi.Input[_builtins.str] user_type: The tier to which the user to be created would belong. Accepted values for this argument are `BASIC_USER_TIER`, `CORE_USER_TIER`, or `FULL_USER_TIER`. If not specified in the configuration, the argument would default to `BASIC_USER_TIER`.
|
|
312
316
|
|
|
313
317
|
> **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.
|
|
314
318
|
|
|
@@ -324,33 +328,33 @@ class User(pulumi.CustomResource):
|
|
|
324
328
|
__props__.__dict__["user_type"] = user_type
|
|
325
329
|
return User(resource_name, opts=opts, __props__=__props__)
|
|
326
330
|
|
|
327
|
-
@property
|
|
331
|
+
@_builtins.property
|
|
328
332
|
@pulumi.getter(name="authenticationDomainId")
|
|
329
|
-
def authentication_domain_id(self) -> pulumi.Output[str]:
|
|
333
|
+
def authentication_domain_id(self) -> pulumi.Output[_builtins.str]:
|
|
330
334
|
"""
|
|
331
335
|
The ID of the authentication domain to which the user to be created would belong.
|
|
332
336
|
"""
|
|
333
337
|
return pulumi.get(self, "authentication_domain_id")
|
|
334
338
|
|
|
335
|
-
@property
|
|
339
|
+
@_builtins.property
|
|
336
340
|
@pulumi.getter(name="emailId")
|
|
337
|
-
def email_id(self) -> pulumi.Output[str]:
|
|
341
|
+
def email_id(self) -> pulumi.Output[_builtins.str]:
|
|
338
342
|
"""
|
|
339
343
|
The email ID of the user to be created.
|
|
340
344
|
"""
|
|
341
345
|
return pulumi.get(self, "email_id")
|
|
342
346
|
|
|
343
|
-
@property
|
|
347
|
+
@_builtins.property
|
|
344
348
|
@pulumi.getter
|
|
345
|
-
def name(self) -> pulumi.Output[str]:
|
|
349
|
+
def name(self) -> pulumi.Output[_builtins.str]:
|
|
346
350
|
"""
|
|
347
351
|
The name of the user to be created.
|
|
348
352
|
"""
|
|
349
353
|
return pulumi.get(self, "name")
|
|
350
354
|
|
|
351
|
-
@property
|
|
355
|
+
@_builtins.property
|
|
352
356
|
@pulumi.getter(name="userType")
|
|
353
|
-
def user_type(self) -> pulumi.Output[Optional[str]]:
|
|
357
|
+
def user_type(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
354
358
|
"""
|
|
355
359
|
The tier to which the user to be created would belong. Accepted values for this argument are `BASIC_USER_TIER`, `CORE_USER_TIER`, or `FULL_USER_TIER`. If not specified in the configuration, the argument would default to `BASIC_USER_TIER`.
|
|
356
360
|
|