pulumi-newrelic 5.49.0a1753337775__py3-none-any.whl → 5.49.0a1753510512__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 +1 -1
- pulumi_newrelic/_inputs.py +3759 -3760
- pulumi_newrelic/account_management.py +35 -36
- pulumi_newrelic/alert_channel.py +55 -56
- pulumi_newrelic/alert_condition.py +217 -218
- pulumi_newrelic/alert_muting_rule.py +92 -93
- pulumi_newrelic/alert_policy.py +69 -70
- pulumi_newrelic/alert_policy_channel.py +52 -53
- pulumi_newrelic/api_access_key.py +112 -113
- pulumi_newrelic/browser_application.py +113 -114
- pulumi_newrelic/cloud/__init__.py +1 -1
- pulumi_newrelic/cloud/_inputs.py +2129 -2130
- pulumi_newrelic/cloud/aws_govcloud_integrations.py +95 -96
- pulumi_newrelic/cloud/aws_govcloud_link_account.py +69 -70
- pulumi_newrelic/cloud/aws_integrations.py +194 -195
- pulumi_newrelic/cloud/aws_link_account.py +69 -70
- pulumi_newrelic/cloud/azure_integrations.py +131 -132
- pulumi_newrelic/cloud/azure_link_account.py +103 -104
- pulumi_newrelic/cloud/gcp_integrations.py +113 -114
- pulumi_newrelic/cloud/gcp_link_account.py +52 -53
- pulumi_newrelic/cloud/outputs.py +1417 -1418
- pulumi_newrelic/config/__init__.py +1 -1
- pulumi_newrelic/config/__init__.pyi +1 -2
- pulumi_newrelic/config/vars.py +14 -15
- pulumi_newrelic/data_partition_rule.py +112 -113
- pulumi_newrelic/entity_tags.py +21 -22
- pulumi_newrelic/events_to_metrics_rule.py +95 -96
- pulumi_newrelic/get_account.py +21 -22
- pulumi_newrelic/get_alert_channel.py +20 -21
- pulumi_newrelic/get_alert_policy.py +25 -26
- pulumi_newrelic/get_application.py +13 -14
- pulumi_newrelic/get_authentication_domain.py +9 -10
- pulumi_newrelic/get_cloud_account.py +21 -22
- pulumi_newrelic/get_entity.py +52 -53
- pulumi_newrelic/get_group.py +17 -18
- pulumi_newrelic/get_key_transaction.py +25 -26
- pulumi_newrelic/get_notification_destination.py +29 -30
- pulumi_newrelic/get_obfuscation_expression.py +15 -16
- pulumi_newrelic/get_service_level_alert_helper.py +53 -54
- pulumi_newrelic/get_test_grok_pattern.py +22 -23
- pulumi_newrelic/get_user.py +21 -22
- pulumi_newrelic/group.py +52 -53
- pulumi_newrelic/infra_alert_condition.py +255 -256
- pulumi_newrelic/insights/__init__.py +1 -1
- pulumi_newrelic/insights/_inputs.py +32 -33
- pulumi_newrelic/insights/event.py +4 -5
- pulumi_newrelic/insights/outputs.py +22 -23
- pulumi_newrelic/key_transaction.py +104 -105
- pulumi_newrelic/log_parsing_rule.py +146 -147
- pulumi_newrelic/monitor_downtime.py +143 -144
- pulumi_newrelic/notification_channel.py +115 -116
- pulumi_newrelic/notification_destination.py +111 -112
- pulumi_newrelic/nrql_alert_condition.py +430 -431
- pulumi_newrelic/nrql_drop_rule.py +78 -79
- pulumi_newrelic/obfuscation_expression.py +69 -70
- pulumi_newrelic/obfuscation_rule.py +89 -90
- pulumi_newrelic/one_dashboard.py +93 -94
- pulumi_newrelic/one_dashboard_json.py +62 -63
- pulumi_newrelic/one_dashboard_raw.py +90 -91
- pulumi_newrelic/outputs.py +2646 -2647
- pulumi_newrelic/plugins/__init__.py +1 -1
- pulumi_newrelic/plugins/_inputs.py +158 -159
- pulumi_newrelic/plugins/application_settings.py +167 -168
- pulumi_newrelic/plugins/outputs.py +108 -109
- pulumi_newrelic/plugins/workload.py +131 -132
- pulumi_newrelic/provider.py +106 -107
- pulumi_newrelic/pulumi-plugin.json +1 -1
- pulumi_newrelic/service_level.py +76 -77
- pulumi_newrelic/synthetics/__init__.py +1 -1
- pulumi_newrelic/synthetics/_inputs.py +127 -128
- pulumi_newrelic/synthetics/alert_condition.py +95 -96
- pulumi_newrelic/synthetics/broken_links_monitor.py +197 -198
- pulumi_newrelic/synthetics/cert_check_monitor.py +205 -206
- pulumi_newrelic/synthetics/get_private_location.py +21 -22
- pulumi_newrelic/synthetics/get_secure_credential.py +19 -20
- pulumi_newrelic/synthetics/monitor.py +378 -379
- pulumi_newrelic/synthetics/multi_location_alert_condition.py +118 -119
- pulumi_newrelic/synthetics/outputs.py +85 -86
- pulumi_newrelic/synthetics/private_location.py +105 -106
- pulumi_newrelic/synthetics/script_monitor.py +302 -303
- pulumi_newrelic/synthetics/secure_credential.py +86 -87
- pulumi_newrelic/synthetics/step_monitor.py +220 -221
- pulumi_newrelic/user.py +69 -70
- pulumi_newrelic/workflow.py +139 -140
- {pulumi_newrelic-5.49.0a1753337775.dist-info → pulumi_newrelic-5.49.0a1753510512.dist-info}/METADATA +1 -1
- pulumi_newrelic-5.49.0a1753510512.dist-info/RECORD +90 -0
- pulumi_newrelic-5.49.0a1753337775.dist-info/RECORD +0 -90
- {pulumi_newrelic-5.49.0a1753337775.dist-info → pulumi_newrelic-5.49.0a1753510512.dist-info}/WHEEL +0 -0
- {pulumi_newrelic-5.49.0a1753337775.dist-info → pulumi_newrelic-5.49.0a1753510512.dist-info}/top_level.txt +0 -0
|
@@ -2,8 +2,7 @@
|
|
|
2
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 builtins
|
|
6
|
-
import copy
|
|
5
|
+
import builtins as _builtins
|
|
7
6
|
import warnings
|
|
8
7
|
import sys
|
|
9
8
|
import pulumi
|
|
@@ -65,76 +64,76 @@ class GetServiceLevelAlertHelperResult:
|
|
|
65
64
|
raise TypeError("Expected argument 'tolerated_budget_consumption' to be a float")
|
|
66
65
|
pulumi.set(__self__, "tolerated_budget_consumption", tolerated_budget_consumption)
|
|
67
66
|
|
|
68
|
-
@property
|
|
67
|
+
@_builtins.property
|
|
69
68
|
@pulumi.getter(name="alertType")
|
|
70
|
-
def alert_type(self) ->
|
|
69
|
+
def alert_type(self) -> _builtins.str:
|
|
71
70
|
return pulumi.get(self, "alert_type")
|
|
72
71
|
|
|
73
|
-
@property
|
|
72
|
+
@_builtins.property
|
|
74
73
|
@pulumi.getter(name="customEvaluationPeriod")
|
|
75
|
-
def custom_evaluation_period(self) -> Optional[
|
|
74
|
+
def custom_evaluation_period(self) -> Optional[_builtins.int]:
|
|
76
75
|
return pulumi.get(self, "custom_evaluation_period")
|
|
77
76
|
|
|
78
|
-
@property
|
|
77
|
+
@_builtins.property
|
|
79
78
|
@pulumi.getter(name="customToleratedBudgetConsumption")
|
|
80
|
-
def custom_tolerated_budget_consumption(self) -> Optional[
|
|
79
|
+
def custom_tolerated_budget_consumption(self) -> Optional[_builtins.float]:
|
|
81
80
|
return pulumi.get(self, "custom_tolerated_budget_consumption")
|
|
82
81
|
|
|
83
|
-
@property
|
|
82
|
+
@_builtins.property
|
|
84
83
|
@pulumi.getter(name="evaluationPeriod")
|
|
85
|
-
def evaluation_period(self) ->
|
|
84
|
+
def evaluation_period(self) -> _builtins.int:
|
|
86
85
|
"""
|
|
87
86
|
(Computed) For non `custom` alert_type, this is the recommended for that type of alert. For `custom` alert_type it has the same value as `custom_evaluation_period`.
|
|
88
87
|
"""
|
|
89
88
|
return pulumi.get(self, "evaluation_period")
|
|
90
89
|
|
|
91
|
-
@property
|
|
90
|
+
@_builtins.property
|
|
92
91
|
@pulumi.getter
|
|
93
|
-
def id(self) ->
|
|
92
|
+
def id(self) -> _builtins.str:
|
|
94
93
|
"""
|
|
95
94
|
The provider-assigned unique ID for this managed resource.
|
|
96
95
|
"""
|
|
97
96
|
return pulumi.get(self, "id")
|
|
98
97
|
|
|
99
|
-
@property
|
|
98
|
+
@_builtins.property
|
|
100
99
|
@pulumi.getter(name="isBadEvents")
|
|
101
|
-
def is_bad_events(self) -> Optional[
|
|
100
|
+
def is_bad_events(self) -> Optional[_builtins.bool]:
|
|
102
101
|
return pulumi.get(self, "is_bad_events")
|
|
103
102
|
|
|
104
|
-
@property
|
|
103
|
+
@_builtins.property
|
|
105
104
|
@pulumi.getter
|
|
106
|
-
def nrql(self) ->
|
|
105
|
+
def nrql(self) -> _builtins.str:
|
|
107
106
|
"""
|
|
108
107
|
(Computed) The nrql query for the selected type of alert.
|
|
109
108
|
"""
|
|
110
109
|
return pulumi.get(self, "nrql")
|
|
111
110
|
|
|
112
|
-
@property
|
|
111
|
+
@_builtins.property
|
|
113
112
|
@pulumi.getter(name="sliGuid")
|
|
114
|
-
def sli_guid(self) ->
|
|
113
|
+
def sli_guid(self) -> _builtins.str:
|
|
115
114
|
return pulumi.get(self, "sli_guid")
|
|
116
115
|
|
|
117
|
-
@property
|
|
116
|
+
@_builtins.property
|
|
118
117
|
@pulumi.getter(name="sloPeriod")
|
|
119
|
-
def slo_period(self) ->
|
|
118
|
+
def slo_period(self) -> _builtins.int:
|
|
120
119
|
return pulumi.get(self, "slo_period")
|
|
121
120
|
|
|
122
|
-
@property
|
|
121
|
+
@_builtins.property
|
|
123
122
|
@pulumi.getter(name="sloTarget")
|
|
124
|
-
def slo_target(self) ->
|
|
123
|
+
def slo_target(self) -> _builtins.float:
|
|
125
124
|
return pulumi.get(self, "slo_target")
|
|
126
125
|
|
|
127
|
-
@property
|
|
126
|
+
@_builtins.property
|
|
128
127
|
@pulumi.getter
|
|
129
|
-
def threshold(self) ->
|
|
128
|
+
def threshold(self) -> _builtins.float:
|
|
130
129
|
"""
|
|
131
130
|
(Computed) The computed threshold given the provided arguments.
|
|
132
131
|
"""
|
|
133
132
|
return pulumi.get(self, "threshold")
|
|
134
133
|
|
|
135
|
-
@property
|
|
134
|
+
@_builtins.property
|
|
136
135
|
@pulumi.getter(name="toleratedBudgetConsumption")
|
|
137
|
-
def tolerated_budget_consumption(self) ->
|
|
136
|
+
def tolerated_budget_consumption(self) -> _builtins.float:
|
|
138
137
|
"""
|
|
139
138
|
(Computed) For non `custom` alert_type, this is the recommended for that type of alert. For `custom` alert_type it has the same value as `custom_tolerated_budget_consumption`.
|
|
140
139
|
"""
|
|
@@ -161,13 +160,13 @@ class AwaitableGetServiceLevelAlertHelperResult(GetServiceLevelAlertHelperResult
|
|
|
161
160
|
tolerated_budget_consumption=self.tolerated_budget_consumption)
|
|
162
161
|
|
|
163
162
|
|
|
164
|
-
def get_service_level_alert_helper(alert_type: Optional[
|
|
165
|
-
custom_evaluation_period: Optional[
|
|
166
|
-
custom_tolerated_budget_consumption: Optional[
|
|
167
|
-
is_bad_events: Optional[
|
|
168
|
-
sli_guid: Optional[
|
|
169
|
-
slo_period: Optional[
|
|
170
|
-
slo_target: Optional[
|
|
163
|
+
def get_service_level_alert_helper(alert_type: Optional[_builtins.str] = None,
|
|
164
|
+
custom_evaluation_period: Optional[_builtins.int] = None,
|
|
165
|
+
custom_tolerated_budget_consumption: Optional[_builtins.float] = None,
|
|
166
|
+
is_bad_events: Optional[_builtins.bool] = None,
|
|
167
|
+
sli_guid: Optional[_builtins.str] = None,
|
|
168
|
+
slo_period: Optional[_builtins.int] = None,
|
|
169
|
+
slo_target: Optional[_builtins.float] = None,
|
|
171
170
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetServiceLevelAlertHelperResult:
|
|
172
171
|
"""
|
|
173
172
|
Use this data source to obtain the necessary fields to set up alerts on your service levels. It can be used for a `custom` alert_type in order to set up an alert with custom tolerated budget consumption and custom evaluation period or for recommended ones like `fast_burn` or `slow_burn`. For more information check [the documentation](https://docs.newrelic.com/docs/service-level-management/alerts-slm/).
|
|
@@ -282,13 +281,13 @@ def get_service_level_alert_helper(alert_type: Optional[builtins.str] = None,
|
|
|
282
281
|
```
|
|
283
282
|
|
|
284
283
|
|
|
285
|
-
:param
|
|
286
|
-
:param
|
|
287
|
-
:param
|
|
288
|
-
:param
|
|
289
|
-
:param
|
|
290
|
-
:param
|
|
291
|
-
:param
|
|
284
|
+
:param _builtins.str alert_type: The type of alert we want to set. Valid values are:
|
|
285
|
+
:param _builtins.int custom_evaluation_period: Aggregation window taken into consideration in seconds. Mandatory if `alert_type` is `custom`.
|
|
286
|
+
:param _builtins.float custom_tolerated_budget_consumption: How much budget you tolerate to consume during the custom evaluation period, valid values between `0` and `100`. Mandatory if `alert_type` is `custom`.
|
|
287
|
+
:param _builtins.bool is_bad_events: If the SLI is defined using bad events. Defaults to `false`
|
|
288
|
+
:param _builtins.str sli_guid: The guid of the sli we want to set the alert on.
|
|
289
|
+
:param _builtins.int slo_period: The time window of the Service Level Objective in days. Valid values are `1`, `7` and `28`.
|
|
290
|
+
:param _builtins.float slo_target: The target of the Service Level Objective, valid values between `0` and `100`.
|
|
292
291
|
"""
|
|
293
292
|
__args__ = dict()
|
|
294
293
|
__args__['alertType'] = alert_type
|
|
@@ -314,13 +313,13 @@ def get_service_level_alert_helper(alert_type: Optional[builtins.str] = None,
|
|
|
314
313
|
slo_target=pulumi.get(__ret__, 'slo_target'),
|
|
315
314
|
threshold=pulumi.get(__ret__, 'threshold'),
|
|
316
315
|
tolerated_budget_consumption=pulumi.get(__ret__, 'tolerated_budget_consumption'))
|
|
317
|
-
def get_service_level_alert_helper_output(alert_type: Optional[pulumi.Input[
|
|
318
|
-
custom_evaluation_period: Optional[pulumi.Input[Optional[
|
|
319
|
-
custom_tolerated_budget_consumption: Optional[pulumi.Input[Optional[
|
|
320
|
-
is_bad_events: Optional[pulumi.Input[Optional[
|
|
321
|
-
sli_guid: Optional[pulumi.Input[
|
|
322
|
-
slo_period: Optional[pulumi.Input[
|
|
323
|
-
slo_target: Optional[pulumi.Input[
|
|
316
|
+
def get_service_level_alert_helper_output(alert_type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
317
|
+
custom_evaluation_period: Optional[pulumi.Input[Optional[_builtins.int]]] = None,
|
|
318
|
+
custom_tolerated_budget_consumption: Optional[pulumi.Input[Optional[_builtins.float]]] = None,
|
|
319
|
+
is_bad_events: Optional[pulumi.Input[Optional[_builtins.bool]]] = None,
|
|
320
|
+
sli_guid: Optional[pulumi.Input[_builtins.str]] = None,
|
|
321
|
+
slo_period: Optional[pulumi.Input[_builtins.int]] = None,
|
|
322
|
+
slo_target: Optional[pulumi.Input[_builtins.float]] = None,
|
|
324
323
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetServiceLevelAlertHelperResult]:
|
|
325
324
|
"""
|
|
326
325
|
Use this data source to obtain the necessary fields to set up alerts on your service levels. It can be used for a `custom` alert_type in order to set up an alert with custom tolerated budget consumption and custom evaluation period or for recommended ones like `fast_burn` or `slow_burn`. For more information check [the documentation](https://docs.newrelic.com/docs/service-level-management/alerts-slm/).
|
|
@@ -435,13 +434,13 @@ def get_service_level_alert_helper_output(alert_type: Optional[pulumi.Input[buil
|
|
|
435
434
|
```
|
|
436
435
|
|
|
437
436
|
|
|
438
|
-
:param
|
|
439
|
-
:param
|
|
440
|
-
:param
|
|
441
|
-
:param
|
|
442
|
-
:param
|
|
443
|
-
:param
|
|
444
|
-
:param
|
|
437
|
+
:param _builtins.str alert_type: The type of alert we want to set. Valid values are:
|
|
438
|
+
:param _builtins.int custom_evaluation_period: Aggregation window taken into consideration in seconds. Mandatory if `alert_type` is `custom`.
|
|
439
|
+
:param _builtins.float custom_tolerated_budget_consumption: How much budget you tolerate to consume during the custom evaluation period, valid values between `0` and `100`. Mandatory if `alert_type` is `custom`.
|
|
440
|
+
:param _builtins.bool is_bad_events: If the SLI is defined using bad events. Defaults to `false`
|
|
441
|
+
:param _builtins.str sli_guid: The guid of the sli we want to set the alert on.
|
|
442
|
+
:param _builtins.int slo_period: The time window of the Service Level Objective in days. Valid values are `1`, `7` and `28`.
|
|
443
|
+
:param _builtins.float slo_target: The target of the Service Level Objective, valid values between `0` and `100`.
|
|
445
444
|
"""
|
|
446
445
|
__args__ = dict()
|
|
447
446
|
__args__['alertType'] = alert_type
|
|
@@ -2,8 +2,7 @@
|
|
|
2
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 builtins
|
|
6
|
-
import copy
|
|
5
|
+
import builtins as _builtins
|
|
7
6
|
import warnings
|
|
8
7
|
import sys
|
|
9
8
|
import pulumi
|
|
@@ -45,30 +44,30 @@ class GetTestGrokPatternResult:
|
|
|
45
44
|
raise TypeError("Expected argument 'test_groks' to be a list")
|
|
46
45
|
pulumi.set(__self__, "test_groks", test_groks)
|
|
47
46
|
|
|
48
|
-
@property
|
|
47
|
+
@_builtins.property
|
|
49
48
|
@pulumi.getter(name="accountId")
|
|
50
|
-
def account_id(self) -> Optional[
|
|
49
|
+
def account_id(self) -> Optional[_builtins.str]:
|
|
51
50
|
return pulumi.get(self, "account_id")
|
|
52
51
|
|
|
53
|
-
@property
|
|
52
|
+
@_builtins.property
|
|
54
53
|
@pulumi.getter
|
|
55
|
-
def grok(self) ->
|
|
54
|
+
def grok(self) -> _builtins.str:
|
|
56
55
|
return pulumi.get(self, "grok")
|
|
57
56
|
|
|
58
|
-
@property
|
|
57
|
+
@_builtins.property
|
|
59
58
|
@pulumi.getter
|
|
60
|
-
def id(self) ->
|
|
59
|
+
def id(self) -> _builtins.str:
|
|
61
60
|
"""
|
|
62
61
|
The provider-assigned unique ID for this managed resource.
|
|
63
62
|
"""
|
|
64
63
|
return pulumi.get(self, "id")
|
|
65
64
|
|
|
66
|
-
@property
|
|
65
|
+
@_builtins.property
|
|
67
66
|
@pulumi.getter(name="logLines")
|
|
68
|
-
def log_lines(self) -> Sequence[
|
|
67
|
+
def log_lines(self) -> Sequence[_builtins.str]:
|
|
69
68
|
return pulumi.get(self, "log_lines")
|
|
70
69
|
|
|
71
|
-
@property
|
|
70
|
+
@_builtins.property
|
|
72
71
|
@pulumi.getter(name="testGroks")
|
|
73
72
|
def test_groks(self) -> Sequence['outputs.GetTestGrokPatternTestGrokResult']:
|
|
74
73
|
"""
|
|
@@ -90,9 +89,9 @@ class AwaitableGetTestGrokPatternResult(GetTestGrokPatternResult):
|
|
|
90
89
|
test_groks=self.test_groks)
|
|
91
90
|
|
|
92
91
|
|
|
93
|
-
def get_test_grok_pattern(account_id: Optional[
|
|
94
|
-
grok: Optional[
|
|
95
|
-
log_lines: Optional[Sequence[
|
|
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,
|
|
96
95
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetTestGrokPatternResult:
|
|
97
96
|
"""
|
|
98
97
|
## Example Usage
|
|
@@ -110,9 +109,9 @@ def get_test_grok_pattern(account_id: Optional[builtins.str] = None,
|
|
|
110
109
|
```
|
|
111
110
|
|
|
112
111
|
|
|
113
|
-
:param
|
|
114
|
-
:param
|
|
115
|
-
:param Sequence[
|
|
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.
|
|
116
115
|
"""
|
|
117
116
|
__args__ = dict()
|
|
118
117
|
__args__['accountId'] = account_id
|
|
@@ -127,9 +126,9 @@ def get_test_grok_pattern(account_id: Optional[builtins.str] = None,
|
|
|
127
126
|
id=pulumi.get(__ret__, 'id'),
|
|
128
127
|
log_lines=pulumi.get(__ret__, 'log_lines'),
|
|
129
128
|
test_groks=pulumi.get(__ret__, 'test_groks'))
|
|
130
|
-
def get_test_grok_pattern_output(account_id: Optional[pulumi.Input[Optional[
|
|
131
|
-
grok: Optional[pulumi.Input[
|
|
132
|
-
log_lines: Optional[pulumi.Input[Sequence[
|
|
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,
|
|
133
132
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetTestGrokPatternResult]:
|
|
134
133
|
"""
|
|
135
134
|
## Example Usage
|
|
@@ -147,9 +146,9 @@ def get_test_grok_pattern_output(account_id: Optional[pulumi.Input[Optional[buil
|
|
|
147
146
|
```
|
|
148
147
|
|
|
149
148
|
|
|
150
|
-
:param
|
|
151
|
-
:param
|
|
152
|
-
:param Sequence[
|
|
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.
|
|
153
152
|
"""
|
|
154
153
|
__args__ = dict()
|
|
155
154
|
__args__['accountId'] = account_id
|
pulumi_newrelic/get_user.py
CHANGED
|
@@ -2,8 +2,7 @@
|
|
|
2
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 builtins
|
|
6
|
-
import copy
|
|
5
|
+
import builtins as _builtins
|
|
7
6
|
import warnings
|
|
8
7
|
import sys
|
|
9
8
|
import pulumi
|
|
@@ -41,27 +40,27 @@ class GetUserResult:
|
|
|
41
40
|
raise TypeError("Expected argument 'name' to be a str")
|
|
42
41
|
pulumi.set(__self__, "name", name)
|
|
43
42
|
|
|
44
|
-
@property
|
|
43
|
+
@_builtins.property
|
|
45
44
|
@pulumi.getter(name="authenticationDomainId")
|
|
46
|
-
def authentication_domain_id(self) ->
|
|
45
|
+
def authentication_domain_id(self) -> _builtins.str:
|
|
47
46
|
return pulumi.get(self, "authentication_domain_id")
|
|
48
47
|
|
|
49
|
-
@property
|
|
48
|
+
@_builtins.property
|
|
50
49
|
@pulumi.getter(name="emailId")
|
|
51
|
-
def email_id(self) ->
|
|
50
|
+
def email_id(self) -> _builtins.str:
|
|
52
51
|
return pulumi.get(self, "email_id")
|
|
53
52
|
|
|
54
|
-
@property
|
|
53
|
+
@_builtins.property
|
|
55
54
|
@pulumi.getter
|
|
56
|
-
def id(self) ->
|
|
55
|
+
def id(self) -> _builtins.str:
|
|
57
56
|
"""
|
|
58
57
|
The ID of the matching user fetched.
|
|
59
58
|
"""
|
|
60
59
|
return pulumi.get(self, "id")
|
|
61
60
|
|
|
62
|
-
@property
|
|
61
|
+
@_builtins.property
|
|
63
62
|
@pulumi.getter
|
|
64
|
-
def name(self) ->
|
|
63
|
+
def name(self) -> _builtins.str:
|
|
65
64
|
return pulumi.get(self, "name")
|
|
66
65
|
|
|
67
66
|
|
|
@@ -77,9 +76,9 @@ class AwaitableGetUserResult(GetUserResult):
|
|
|
77
76
|
name=self.name)
|
|
78
77
|
|
|
79
78
|
|
|
80
|
-
def get_user(authentication_domain_id: Optional[
|
|
81
|
-
email_id: Optional[
|
|
82
|
-
name: Optional[
|
|
79
|
+
def get_user(authentication_domain_id: Optional[_builtins.str] = None,
|
|
80
|
+
email_id: Optional[_builtins.str] = None,
|
|
81
|
+
name: Optional[_builtins.str] = None,
|
|
83
82
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetUserResult:
|
|
84
83
|
"""
|
|
85
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.
|
|
@@ -99,15 +98,15 @@ def get_user(authentication_domain_id: Optional[builtins.str] = None,
|
|
|
99
98
|
```
|
|
100
99
|
|
|
101
100
|
|
|
102
|
-
:param
|
|
103
|
-
:param
|
|
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.
|
|
104
103
|
|
|
105
104
|
It should be noted that either `name` or `email_id` must be specified in order to retrieve a matching user.
|
|
106
105
|
|
|
107
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.
|
|
108
107
|
|
|
109
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.
|
|
110
|
-
:param
|
|
109
|
+
:param _builtins.str name: The name of the user to search for.
|
|
111
110
|
"""
|
|
112
111
|
__args__ = dict()
|
|
113
112
|
__args__['authenticationDomainId'] = authentication_domain_id
|
|
@@ -121,9 +120,9 @@ def get_user(authentication_domain_id: Optional[builtins.str] = None,
|
|
|
121
120
|
email_id=pulumi.get(__ret__, 'email_id'),
|
|
122
121
|
id=pulumi.get(__ret__, 'id'),
|
|
123
122
|
name=pulumi.get(__ret__, 'name'))
|
|
124
|
-
def get_user_output(authentication_domain_id: Optional[pulumi.Input[
|
|
125
|
-
email_id: Optional[pulumi.Input[Optional[
|
|
126
|
-
name: Optional[pulumi.Input[Optional[
|
|
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,
|
|
127
126
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetUserResult]:
|
|
128
127
|
"""
|
|
129
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.
|
|
@@ -143,15 +142,15 @@ def get_user_output(authentication_domain_id: Optional[pulumi.Input[builtins.str
|
|
|
143
142
|
```
|
|
144
143
|
|
|
145
144
|
|
|
146
|
-
:param
|
|
147
|
-
:param
|
|
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.
|
|
148
147
|
|
|
149
148
|
It should be noted that either `name` or `email_id` must be specified in order to retrieve a matching user.
|
|
150
149
|
|
|
151
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.
|
|
152
151
|
|
|
153
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.
|
|
154
|
-
:param
|
|
153
|
+
:param _builtins.str name: The name of the user to search for.
|
|
155
154
|
"""
|
|
156
155
|
__args__ = dict()
|
|
157
156
|
__args__['authenticationDomainId'] = authentication_domain_id
|